Fix: TSH Updates & Emitted Txn (#261)

fixXahauV2
* refactor tsh
* add uritoken mint/cancel tsh
* add flags to hookexections meta and nonce to hookemissions meta

Co-authored-by: Richard Holland <richard.holland@starstone.co.nz>
This commit is contained in:
Denis Angell
2024-01-22 10:25:36 +01:00
committed by GitHub
parent f21d3e1e97
commit f64e626a3f
7 changed files with 1118 additions and 702 deletions

View File

@@ -72,13 +72,15 @@ InnerObjectFormats::InnerObjectFormats()
{sfHookInstructionCount, soeREQUIRED},
{sfHookExecutionIndex, soeREQUIRED},
{sfHookStateChangeCount, soeREQUIRED},
{sfHookEmitCount, soeREQUIRED}});
{sfHookEmitCount, soeREQUIRED},
{sfFlags, soeOPTIONAL}});
add(sfHookEmission.jsonName.c_str(),
sfHookEmission.getCode(),
{{sfHookHash, soeREQUIRED},
{sfHookAccount, soeREQUIRED},
{sfEmittedTxnID, soeREQUIRED}});
{sfEmittedTxnID, soeREQUIRED},
{sfEmitNonce, soeOPTIONAL}});
add(sfHookDefinition.jsonName.c_str(),
sfHookDefinition.getCode(),