Add FATE opcodes for account-issued currency
Gajumaru Bytecode Tests / tests (push) Successful in 49m26s

SPEND_CURRENCY, BALANCE_CURRENCY, and CURRENCY_SUPPLY (0xba–0xbc)
expose AIC transfer, holder balance, and issuer total supply to
Sophia/FATE. Regenerated op modules follow from this table.
This commit is contained in:
Ulf Wiger
2026-08-23 00:14:44 +02:00
parent 54dc140629
commit c44313efb9
+3
View File
@@ -251,6 +251,9 @@ ops_defs() ->
, { 'VERIFY_SIG_MLDSA44', 16#b7, false, true, true, ?GAS(2340), [a,a,a,a], verify_sig_mldsa44, {bytes, bytes, bytes}, boolean, "Arg0 := verify_sig_mldsa44(Hash, Pubkey, Signature)"}
, { 'VERIFY_SIG_MLDSA65', 16#b8, false, true, true, ?GAS(3640), [a,a,a,a], verify_sig_mldsa65, {bytes, bytes, bytes}, boolean, "Arg0 := verify_sig_mldsa65(Hash, Pubkey, Signature)"}
, { 'VERIFY_SIG_MLDSA87', 16#b9, false, true, true, ?GAS(5720), [a,a,a,a], verify_sig_mldsa87, {bytes, bytes, bytes}, boolean, "Arg0 := verify_sig_mldsa87(Hash, Pubkey, Signature)"}
, { 'SPEND_CURRENCY', 16#ba, false, false, true, ?GAS(5000), [a,a,a], spend_currency, {address, address, integer}, none, "Transfer Arg2 units of the currency issued by Arg1 to account Arg0."}
, { 'BALANCE_CURRENCY', 16#bb, false, true, true, ?GAS(2000), [a,a,a], balance_currency, {address, address}, integer, "Arg0 := Arg1's balance of the currency issued by Arg2."}
, { 'CURRENCY_SUPPLY', 16#bc, false, true, true, ?GAS(2000), [a,a], currency_supply, {address}, integer, "Arg0 := total supply of the account-issued currency of Arg1 (0 if none)."}
, { 'DBG_LOC', 16#f0, false, true, true, ?GAS(0), [a, a], dbg_loc, {string, integer}, none, "Debug Op: Execution location. Args = {file_name, line_num}" }
, { 'DBG_DEF', 16#f1, false, true, true, ?GAS(0), [a, a], dbg_def, {string, any}, none, "Debug Op: Define a variable. Args = {var_name, register}" }