mirror of
https://github.com/hanzoai/numscript.git
synced 2026-10-30 18:26:57 +00:00
* feat: feature flag syntax * feat: change syntax * feat: reject invalid features * feat: add static check of unknown features * feat: more defensive args handling * fix: fix typo
22 lines
303 B
Plaintext
22 lines
303 B
Plaintext
|
|
vars {
|
|
asset $ass
|
|
monetary $bal = balance(@alice, $ass)
|
|
}
|
|
|
|
send [$ass 15] (
|
|
source = {
|
|
@alice
|
|
@bob
|
|
}
|
|
destination = @swap
|
|
)
|
|
|
|
send [$ass *] (
|
|
source = @swap
|
|
destination = {
|
|
max $bal to @alice_2
|
|
remaining to @bob_2
|
|
}
|
|
)
|