mirror of
https://github.com/hanzo-fi/numscript.git
synced 2026-10-30 20:54:52 +00:00
reworked balances representation (both internal and external) so that it handles colors as an ad-hoc field instead of relying of string convetions
59 lines
1.1 KiB
JSON
59 lines
1.1 KiB
JSON
{
|
|
"testCases": [
|
|
{
|
|
"it": "-",
|
|
"balances": [
|
|
{
|
|
"account": "a",
|
|
"asset": "COIN",
|
|
"amount": 1000
|
|
},
|
|
{
|
|
"account": "b",
|
|
"asset": "COIN",
|
|
"amount": 40
|
|
},
|
|
{
|
|
"account": "c",
|
|
"asset": "COIN",
|
|
"amount": 1000
|
|
},
|
|
{
|
|
"account": "d",
|
|
"asset": "COIN",
|
|
"amount": 1000
|
|
}
|
|
],
|
|
"variables": {
|
|
"max": "COIN 120"
|
|
},
|
|
"expect.postings": [
|
|
{
|
|
"source": "a",
|
|
"destination": "platform",
|
|
"amount": 4,
|
|
"asset": "COIN"
|
|
},
|
|
{
|
|
"source": "b",
|
|
"destination": "platform",
|
|
"amount": 40,
|
|
"asset": "COIN"
|
|
},
|
|
{
|
|
"source": "c",
|
|
"destination": "platform",
|
|
"amount": 56,
|
|
"asset": "COIN"
|
|
},
|
|
{
|
|
"source": "d",
|
|
"destination": "platform",
|
|
"amount": 100,
|
|
"asset": "COIN"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|