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
672 B
JSON
27 lines
672 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": "treasury", "asset": "EUR/2", "amount": 42 },
|
|
{
|
|
"account": "treasury",
|
|
"asset": "EUR/2",
|
|
"amount": 42,
|
|
"scope": "reserve"
|
|
}
|
|
],
|
|
"testCases": [
|
|
{
|
|
"it": "balance() reads the scoped balance (42), not the unscoped one (100)",
|
|
"expect.postings": [
|
|
{
|
|
"source": "world",
|
|
"destination": "dest",
|
|
"asset": "EUR/2",
|
|
"amount": 42
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|