Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions flatbuffers/context.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
35 changes: 35 additions & 0 deletions flatbuffers/instr.fbs
Original file line number Diff line number Diff line change
@@ -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);
}