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
45 lines
787 B
JSON
45 lines
787 B
JSON
{
|
|
"testCases": [
|
|
{
|
|
"it": "-",
|
|
"balances": [
|
|
{
|
|
"account": "a",
|
|
"asset": "COIN",
|
|
"amount": 100
|
|
},
|
|
{
|
|
"account": "b",
|
|
"asset": "COIN",
|
|
"amount": 100
|
|
},
|
|
{
|
|
"account": "c",
|
|
"asset": "COIN",
|
|
"amount": 100
|
|
}
|
|
],
|
|
"expect.postings": [
|
|
{
|
|
"source": "a",
|
|
"destination": "d",
|
|
"amount": 61,
|
|
"asset": "COIN"
|
|
},
|
|
{
|
|
"source": "b",
|
|
"destination": "d",
|
|
"amount": 35,
|
|
"asset": "COIN"
|
|
},
|
|
{
|
|
"source": "c",
|
|
"destination": "d",
|
|
"amount": 4,
|
|
"asset": "COIN"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|