mirror of
https://github.com/hanzo-fi/numscript.git
synced 2026-10-30 20:54:52 +00:00
* fix: update schemas * fix: update the schema of new specs file generator * fix: update specs $schema field to the new one
27 lines
712 B
JSON
27 lines
712 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/v1.specs.schema.json",
|
|
"featureFlags": [
|
|
"experimental-scoped-function",
|
|
"experimental-mid-script-function-call"
|
|
],
|
|
"balances": [
|
|
{ "account": "a", "asset": "COIN", "amount": 999, "scope": "s" },
|
|
{ "account": "b", "asset": "COIN", "amount": 60 }
|
|
],
|
|
"testCases": [
|
|
{
|
|
"it": "a scoped source can be capped with max",
|
|
"expect.postings": [
|
|
{
|
|
"source": "a",
|
|
"sourceScope": "s",
|
|
"destination": "dest",
|
|
"asset": "COIN",
|
|
"amount": 40
|
|
},
|
|
{ "source": "b", "destination": "dest", "asset": "COIN", "amount": 60 }
|
|
]
|
|
}
|
|
]
|
|
}
|