diff --git a/flatbuffers/context.fbs b/flatbuffers/context.fbs index 74d138d..052a477 100644 --- a/flatbuffers/context.fbs +++ b/flatbuffers/context.fbs @@ -26,6 +26,9 @@ table FeatureSet { features:[ulong]; } +/* For inputs, the account data is the raw data. For outputs, the + account data is the XXHash of the raw resulting account data, + hashed for performance. */ table Account { address:Pubkey (required); lamports:ulong; diff --git a/flatbuffers/instr.fbs b/flatbuffers/instr.fbs new file mode 100644 index 0000000..4f5197a --- /dev/null +++ b/flatbuffers/instr.fbs @@ -0,0 +1,35 @@ +// Generated from invoke.proto + +include "metadata.fbs"; +include "context.fbs"; + +namespace org.solana.sealevel.v2; + +table InstrAccount { + index:ubyte; + is_writable:bool; + is_signer:bool; +} + +table InstrContext { + program_id:Pubkey (required); + account_states:[Account] (required); + instr_accounts:[InstrAccount] (required); + instr_data:[ubyte] (required); + cu_avail:ulong; + features:FeatureSet (required); +} + +table InstrEffects { + err_code:ubyte; + custom_err_code:uint; + modified_accounts:[Account]; + cu_remaining:ulong; + return_data:[ubyte]; +} + +table InstrFixture { + metadata:FixtureMetadata (required); + input:InstrContext (required); + output:InstrEffects (required); +}