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
41 lines
865 B
JSON
41 lines
865 B
JSON
{
|
|
"testCases": [
|
|
{
|
|
"it": "-",
|
|
"balances": [
|
|
{
|
|
"account": "orders:1234",
|
|
"asset": "EUR/2",
|
|
"amount": 10000
|
|
}
|
|
],
|
|
"expect.postings": [
|
|
{
|
|
"source": "orders:1234",
|
|
"destination": "platform:commission:sales_tax",
|
|
"amount": 300,
|
|
"asset": "EUR/2"
|
|
},
|
|
{
|
|
"source": "orders:1234",
|
|
"destination": "users:1234:cashback",
|
|
"amount": 60,
|
|
"asset": "EUR/2"
|
|
},
|
|
{
|
|
"source": "orders:1234",
|
|
"destination": "platform:commission:revenue",
|
|
"amount": 1140,
|
|
"asset": "EUR/2"
|
|
},
|
|
{
|
|
"source": "orders:1234",
|
|
"destination": "merchants:6789",
|
|
"amount": 8500,
|
|
"asset": "EUR/2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|