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
49 lines
891 B
JSON
49 lines
891 B
JSON
{
|
|
"testCases": [
|
|
{
|
|
"it": "-",
|
|
"balances": [
|
|
{
|
|
"account": "alice",
|
|
"asset": "USD",
|
|
"amount": 10
|
|
},
|
|
{
|
|
"account": "bob",
|
|
"asset": "USD",
|
|
"amount": 10
|
|
}
|
|
],
|
|
"variables": {
|
|
"ass": "USD"
|
|
},
|
|
"expect.postings": [
|
|
{
|
|
"source": "alice",
|
|
"destination": "swap",
|
|
"amount": 10,
|
|
"asset": "USD"
|
|
},
|
|
{
|
|
"source": "bob",
|
|
"destination": "swap",
|
|
"amount": 5,
|
|
"asset": "USD"
|
|
},
|
|
{
|
|
"source": "swap",
|
|
"destination": "alice_2",
|
|
"amount": 10,
|
|
"asset": "USD"
|
|
},
|
|
{
|
|
"source": "swap",
|
|
"destination": "bob_2",
|
|
"amount": 5,
|
|
"asset": "USD"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|