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
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"testCases": [
|
|
{
|
|
"it": "-",
|
|
"balances": [
|
|
{
|
|
"account": "users:1234:main",
|
|
"asset": "USD/2",
|
|
"amount": 5000
|
|
},
|
|
{
|
|
"account": "users:1234:vouchers:2024-01-31",
|
|
"asset": "USD/2",
|
|
"amount": 1000
|
|
},
|
|
{
|
|
"account": "users:1234:vouchers:2024-02-17",
|
|
"asset": "USD/2",
|
|
"amount": 3000
|
|
},
|
|
{
|
|
"account": "users:1234:vouchers:2024-03-22",
|
|
"asset": "USD/2",
|
|
"amount": 10000
|
|
}
|
|
],
|
|
"expect.postings": [
|
|
{
|
|
"source": "users:1234:main",
|
|
"destination": "orders:4567:payment",
|
|
"amount": 5000,
|
|
"asset": "USD/2"
|
|
},
|
|
{
|
|
"source": "users:1234:vouchers:2024-01-31",
|
|
"destination": "orders:4567:payment",
|
|
"amount": 1000,
|
|
"asset": "USD/2"
|
|
},
|
|
{
|
|
"source": "users:1234:vouchers:2024-02-17",
|
|
"destination": "orders:4567:payment",
|
|
"amount": 3000,
|
|
"asset": "USD/2"
|
|
},
|
|
{
|
|
"source": "users:1234:vouchers:2024-03-22",
|
|
"destination": "orders:4567:payment",
|
|
"amount": 1000,
|
|
"asset": "USD/2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|