mirror of
https://github.com/hanzoai/numscript.git
synced 2026-10-30 18:26:57 +00:00
47 lines
928 B
JSON
47 lines
928 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/specs.schema.json",
|
|
"featureFlags": [
|
|
"experimental-asset-scaling"
|
|
],
|
|
"balances": {
|
|
"acc1": {
|
|
"EUR/2": 50
|
|
}
|
|
},
|
|
"testCases": [
|
|
{
|
|
"it": "casts all the avlb",
|
|
"balances": {
|
|
"acc2": {
|
|
"EUR/3": 500
|
|
}
|
|
},
|
|
"expect.postings": [
|
|
{
|
|
"source": "acc2",
|
|
"destination": "swap",
|
|
"amount": 500,
|
|
"asset": "EUR/3"
|
|
},
|
|
{
|
|
"source": "swap",
|
|
"destination": "acc2",
|
|
"amount": 50,
|
|
"asset": "EUR/2"
|
|
},
|
|
{
|
|
"source": "acc1",
|
|
"destination": "dest",
|
|
"amount": 50,
|
|
"asset": "EUR/2"
|
|
},
|
|
{
|
|
"source": "acc2",
|
|
"destination": "dest",
|
|
"amount": 50,
|
|
"asset": "EUR/2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |