LCOV - code coverage report
Current view: top level - flamenco/runtime/tests/generated - txn.pb.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 0 5 0.0 %
Date: 2024-11-13 11:58:15 Functions: 0 0 -

          Line data    Source code
       1             : /* Automatically generated nanopb header */
       2             : /* Generated by nanopb-0.4.8-dev */
       3             : 
       4             : #ifndef PB_ORG_SOLANA_SEALEVEL_V1_TXN_PB_H_INCLUDED
       5             : #define PB_ORG_SOLANA_SEALEVEL_V1_TXN_PB_H_INCLUDED
       6             : 
       7             : #include "../../../nanopb/pb_firedancer.h"
       8             : #include "context.pb.h"
       9             : #include "metadata.pb.h"
      10             : 
      11             : #if PB_PROTO_HEADER_VERSION != 40
      12             : #error Regenerate this file with the current version of nanopb generator.
      13             : #endif
      14             : 
      15             : /* Struct definitions */
      16             : /* Message header contains the counts of required readonly and signatures */
      17             : typedef struct fd_exec_test_message_header {
      18             :     uint32_t num_required_signatures;
      19             :     uint32_t num_readonly_signed_accounts;
      20             :     uint32_t num_readonly_unsigned_accounts;
      21             : } fd_exec_test_message_header_t;
      22             : 
      23             : /* The instruction a transaction executes */
      24             : typedef struct fd_exec_test_compiled_instruction {
      25             :     /* Index into the message pubkey array */
      26             :     uint32_t program_id_index;
      27             :     /* Indexes into the message pubkey array */
      28             :     pb_size_t accounts_count;
      29             :     uint32_t *accounts;
      30             :     pb_bytes_array_t *data;
      31             : } fd_exec_test_compiled_instruction_t;
      32             : 
      33             : /* List of address table lookups used to load additional accounts for a transaction */
      34             : typedef struct fd_exec_test_message_address_table_lookup {
      35             :     pb_byte_t account_key[32];
      36             :     pb_size_t writable_indexes_count;
      37             :     uint32_t *writable_indexes;
      38             :     pb_size_t readonly_indexes_count;
      39             :     uint32_t *readonly_indexes;
      40             : } fd_exec_test_message_address_table_lookup_t;
      41             : 
      42             : /* Message contains the transaction data */
      43             : typedef struct fd_exec_test_transaction_message {
      44             :     /* Whether this is a legacy message or not */
      45             :     bool is_legacy;
      46             :     bool has_header;
      47             :     fd_exec_test_message_header_t header;
      48             :     /* Vector of pubkeys */
      49             :     pb_size_t account_keys_count;
      50             :     pb_bytes_array_t **account_keys;
      51             :     /* Data associated with the accounts referred above. Not all accounts need to be here. */
      52             :     pb_size_t account_shared_data_count;
      53             :     struct fd_exec_test_acct_state *account_shared_data;
      54             :     /* Recent blockhash provided in message */
      55             :     pb_bytes_array_t *recent_blockhash;
      56             :     /* The instructions this transaction executes */
      57             :     pb_size_t instructions_count;
      58             :     struct fd_exec_test_compiled_instruction *instructions;
      59             :     /* Not available in legacy message */
      60             :     pb_size_t address_table_lookups_count;
      61             :     struct fd_exec_test_message_address_table_lookup *address_table_lookups;
      62             : } fd_exec_test_transaction_message_t;
      63             : 
      64             : /* A valid verified transaction */
      65             : typedef struct fd_exec_test_sanitized_transaction {
      66             :     /* The transaction information */
      67             :     bool has_message;
      68             :     fd_exec_test_transaction_message_t message;
      69             :     /* The message hash */
      70             :     pb_byte_t message_hash[32];
      71             :     /* Is this a voting transaction? */
      72             :     bool is_simple_vote_tx;
      73             :     /* The signatures needed in the transaction */
      74             :     pb_size_t signatures_count;
      75             :     pb_bytes_array_t **signatures;
      76             : } fd_exec_test_sanitized_transaction_t;
      77             : 
      78             : /* This Transaction context be used to fuzz either `load_execute_and_commit_transactions`,
      79             :  `load_and_execute_transactions` in `bank.rs` or `load_and_execute_sanitized_transactions`
      80             :  in `svm/transaction_processor.rs` */
      81             : typedef struct fd_exec_test_txn_context {
      82             :     /* The transaction data */
      83             :     bool has_tx;
      84             :     fd_exec_test_sanitized_transaction_t tx;
      85             :     /* Up to 300 (actually 301) most recent blockhashes (ordered from oldest to newest) */
      86             :     pb_size_t blockhash_queue_count;
      87             :     pb_bytes_array_t **blockhash_queue;
      88             :     bool has_epoch_ctx;
      89             :     fd_exec_test_epoch_context_t epoch_ctx;
      90             :     bool has_slot_ctx;
      91             :     fd_exec_test_slot_context_t slot_ctx;
      92             : } fd_exec_test_txn_context_t;
      93             : 
      94             : /* The resulting state of an account after a transaction */
      95             : typedef struct fd_exec_test_resulting_state {
      96             :     pb_size_t acct_states_count;
      97             :     struct fd_exec_test_acct_state *acct_states;
      98             :     pb_size_t rent_debits_count;
      99             :     struct fd_exec_test_rent_debits *rent_debits;
     100             :     uint64_t transaction_rent;
     101             : } fd_exec_test_resulting_state_t;
     102             : 
     103             : /* The rent state for an account after a transaction */
     104             : typedef struct fd_exec_test_rent_debits {
     105             :     pb_byte_t pubkey[32];
     106             :     int64_t rent_collected;
     107             : } fd_exec_test_rent_debits_t;
     108             : 
     109             : typedef struct fd_exec_test_fee_details {
     110             :     uint64_t transaction_fee;
     111             :     uint64_t prioritization_fee;
     112             : } fd_exec_test_fee_details_t;
     113             : 
     114             : /* The execution results for a transaction */
     115             : typedef struct fd_exec_test_txn_result {
     116             :     /* Whether this transaction was executed */
     117             :     bool executed;
     118             :     /* Whether there was a sanitization error */
     119             :     bool sanitization_error;
     120             :     /* The state of each account after the transaction */
     121             :     bool has_resulting_state;
     122             :     fd_exec_test_resulting_state_t resulting_state;
     123             :     uint64_t rent;
     124             :     /* If an executed transaction has no error */
     125             :     bool is_ok;
     126             :     /* The transaction status (error code) */
     127             :     uint32_t status;
     128             :     /* The instruction error, if any */
     129             :     uint32_t instruction_error;
     130             :     /* The instruction error index, if any */
     131             :     uint32_t instruction_error_index;
     132             :     /* Custom error, if any */
     133             :     uint32_t custom_error;
     134             :     /* The return data from this transaction, if any */
     135             :     pb_bytes_array_t *return_data;
     136             :     /* Number of executed compute units */
     137             :     uint64_t executed_units;
     138             :     /* The collected fees in this transaction */
     139             :     bool has_fee_details;
     140             :     fd_exec_test_fee_details_t fee_details;
     141             : } fd_exec_test_txn_result_t;
     142             : 
     143             : /* Txn fixtures */
     144             : typedef struct fd_exec_test_txn_fixture {
     145             :     bool has_metadata;
     146             :     fd_exec_test_fixture_metadata_t metadata;
     147             :     /* Context */
     148             :     bool has_input;
     149             :     fd_exec_test_txn_context_t input;
     150             :     /* Effects */
     151             :     bool has_output;
     152             :     fd_exec_test_txn_result_t output;
     153             : } fd_exec_test_txn_fixture_t;
     154             : 
     155             : 
     156             : #ifdef __cplusplus
     157             : extern "C" {
     158             : #endif
     159             : 
     160             : /* Initializer values for message structs */
     161           0 : #define FD_EXEC_TEST_MESSAGE_HEADER_INIT_DEFAULT {0, 0, 0}
     162             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_INIT_DEFAULT {0, 0, NULL, NULL}
     163             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_INIT_DEFAULT {{0}, 0, NULL, 0, NULL}
     164           0 : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_INIT_DEFAULT {0, false, FD_EXEC_TEST_MESSAGE_HEADER_INIT_DEFAULT, 0, NULL, 0, NULL, NULL, 0, NULL, 0, NULL}
     165           0 : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_INIT_DEFAULT {false, FD_EXEC_TEST_TRANSACTION_MESSAGE_INIT_DEFAULT, {0}, 0, 0, NULL}
     166           0 : #define FD_EXEC_TEST_TXN_CONTEXT_INIT_DEFAULT    {false, FD_EXEC_TEST_SANITIZED_TRANSACTION_INIT_DEFAULT, 0, NULL, false, FD_EXEC_TEST_EPOCH_CONTEXT_INIT_DEFAULT, false, FD_EXEC_TEST_SLOT_CONTEXT_INIT_DEFAULT}
     167             : #define FD_EXEC_TEST_RESULTING_STATE_INIT_DEFAULT {0, NULL, 0, NULL, 0}
     168             : #define FD_EXEC_TEST_RENT_DEBITS_INIT_DEFAULT    {{0}, 0}
     169             : #define FD_EXEC_TEST_FEE_DETAILS_INIT_DEFAULT    {0, 0}
     170             : #define FD_EXEC_TEST_TXN_RESULT_INIT_DEFAULT     {0, 0, false, FD_EXEC_TEST_RESULTING_STATE_INIT_DEFAULT, 0, 0, 0, 0, 0, 0, NULL, 0, false, FD_EXEC_TEST_FEE_DETAILS_INIT_DEFAULT}
     171             : #define FD_EXEC_TEST_TXN_FIXTURE_INIT_DEFAULT    {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_DEFAULT, false, FD_EXEC_TEST_TXN_CONTEXT_INIT_DEFAULT, false, FD_EXEC_TEST_TXN_RESULT_INIT_DEFAULT}
     172             : #define FD_EXEC_TEST_MESSAGE_HEADER_INIT_ZERO    {0, 0, 0}
     173             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_INIT_ZERO {0, 0, NULL, NULL}
     174             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_INIT_ZERO {{0}, 0, NULL, 0, NULL}
     175             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_INIT_ZERO {0, false, FD_EXEC_TEST_MESSAGE_HEADER_INIT_ZERO, 0, NULL, 0, NULL, NULL, 0, NULL, 0, NULL}
     176             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_INIT_ZERO {false, FD_EXEC_TEST_TRANSACTION_MESSAGE_INIT_ZERO, {0}, 0, 0, NULL}
     177             : #define FD_EXEC_TEST_TXN_CONTEXT_INIT_ZERO       {false, FD_EXEC_TEST_SANITIZED_TRANSACTION_INIT_ZERO, 0, NULL, false, FD_EXEC_TEST_EPOCH_CONTEXT_INIT_ZERO, false, FD_EXEC_TEST_SLOT_CONTEXT_INIT_ZERO}
     178             : #define FD_EXEC_TEST_RESULTING_STATE_INIT_ZERO   {0, NULL, 0, NULL, 0}
     179             : #define FD_EXEC_TEST_RENT_DEBITS_INIT_ZERO       {{0}, 0}
     180             : #define FD_EXEC_TEST_FEE_DETAILS_INIT_ZERO       {0, 0}
     181             : #define FD_EXEC_TEST_TXN_RESULT_INIT_ZERO        {0, 0, false, FD_EXEC_TEST_RESULTING_STATE_INIT_ZERO, 0, 0, 0, 0, 0, 0, NULL, 0, false, FD_EXEC_TEST_FEE_DETAILS_INIT_ZERO}
     182             : #define FD_EXEC_TEST_TXN_FIXTURE_INIT_ZERO       {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_ZERO, false, FD_EXEC_TEST_TXN_CONTEXT_INIT_ZERO, false, FD_EXEC_TEST_TXN_RESULT_INIT_ZERO}
     183             : 
     184             : /* Field tags (for use in manual encoding/decoding) */
     185             : #define FD_EXEC_TEST_MESSAGE_HEADER_NUM_REQUIRED_SIGNATURES_TAG 1
     186             : #define FD_EXEC_TEST_MESSAGE_HEADER_NUM_READONLY_SIGNED_ACCOUNTS_TAG 2
     187             : #define FD_EXEC_TEST_MESSAGE_HEADER_NUM_READONLY_UNSIGNED_ACCOUNTS_TAG 3
     188             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_PROGRAM_ID_INDEX_TAG 1
     189             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_ACCOUNTS_TAG 2
     190             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_DATA_TAG 3
     191             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_ACCOUNT_KEY_TAG 1
     192             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_WRITABLE_INDEXES_TAG 2
     193             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_READONLY_INDEXES_TAG 3
     194             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_IS_LEGACY_TAG 1
     195             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_HEADER_TAG 2
     196             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_ACCOUNT_KEYS_TAG 3
     197             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_ACCOUNT_SHARED_DATA_TAG 4
     198             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_RECENT_BLOCKHASH_TAG 5
     199             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_INSTRUCTIONS_TAG 6
     200             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_ADDRESS_TABLE_LOOKUPS_TAG 7
     201             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_MESSAGE_TAG 1
     202             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_MESSAGE_HASH_TAG 2
     203             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_IS_SIMPLE_VOTE_TX_TAG 3
     204             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_SIGNATURES_TAG 4
     205             : #define FD_EXEC_TEST_TXN_CONTEXT_TX_TAG          1
     206             : #define FD_EXEC_TEST_TXN_CONTEXT_BLOCKHASH_QUEUE_TAG 3
     207             : #define FD_EXEC_TEST_TXN_CONTEXT_EPOCH_CTX_TAG   4
     208             : #define FD_EXEC_TEST_TXN_CONTEXT_SLOT_CTX_TAG    5
     209             : #define FD_EXEC_TEST_RESULTING_STATE_ACCT_STATES_TAG 1
     210             : #define FD_EXEC_TEST_RESULTING_STATE_RENT_DEBITS_TAG 2
     211             : #define FD_EXEC_TEST_RESULTING_STATE_TRANSACTION_RENT_TAG 3
     212             : #define FD_EXEC_TEST_RENT_DEBITS_PUBKEY_TAG      1
     213             : #define FD_EXEC_TEST_RENT_DEBITS_RENT_COLLECTED_TAG 2
     214             : #define FD_EXEC_TEST_FEE_DETAILS_TRANSACTION_FEE_TAG 1
     215             : #define FD_EXEC_TEST_FEE_DETAILS_PRIORITIZATION_FEE_TAG 2
     216             : #define FD_EXEC_TEST_TXN_RESULT_EXECUTED_TAG     1
     217             : #define FD_EXEC_TEST_TXN_RESULT_SANITIZATION_ERROR_TAG 2
     218             : #define FD_EXEC_TEST_TXN_RESULT_RESULTING_STATE_TAG 3
     219             : #define FD_EXEC_TEST_TXN_RESULT_RENT_TAG         4
     220             : #define FD_EXEC_TEST_TXN_RESULT_IS_OK_TAG        5
     221             : #define FD_EXEC_TEST_TXN_RESULT_STATUS_TAG       6
     222             : #define FD_EXEC_TEST_TXN_RESULT_INSTRUCTION_ERROR_TAG 7
     223             : #define FD_EXEC_TEST_TXN_RESULT_INSTRUCTION_ERROR_INDEX_TAG 8
     224             : #define FD_EXEC_TEST_TXN_RESULT_CUSTOM_ERROR_TAG 9
     225             : #define FD_EXEC_TEST_TXN_RESULT_RETURN_DATA_TAG  10
     226             : #define FD_EXEC_TEST_TXN_RESULT_EXECUTED_UNITS_TAG 11
     227             : #define FD_EXEC_TEST_TXN_RESULT_FEE_DETAILS_TAG  12
     228             : #define FD_EXEC_TEST_TXN_FIXTURE_METADATA_TAG    1
     229             : #define FD_EXEC_TEST_TXN_FIXTURE_INPUT_TAG       2
     230             : #define FD_EXEC_TEST_TXN_FIXTURE_OUTPUT_TAG      3
     231             : 
     232             : /* Struct field encoding specification for nanopb */
     233             : #define FD_EXEC_TEST_MESSAGE_HEADER_FIELDLIST(X, a) \
     234             : X(a, STATIC,   SINGULAR, UINT32,   num_required_signatures,   1) \
     235             : X(a, STATIC,   SINGULAR, UINT32,   num_readonly_signed_accounts,   2) \
     236             : X(a, STATIC,   SINGULAR, UINT32,   num_readonly_unsigned_accounts,   3)
     237             : #define FD_EXEC_TEST_MESSAGE_HEADER_CALLBACK NULL
     238             : #define FD_EXEC_TEST_MESSAGE_HEADER_DEFAULT NULL
     239             : 
     240             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_FIELDLIST(X, a) \
     241             : X(a, STATIC,   SINGULAR, UINT32,   program_id_index,   1) \
     242             : X(a, POINTER,  REPEATED, UINT32,   accounts,          2) \
     243             : X(a, POINTER,  SINGULAR, BYTES,    data,              3)
     244             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_CALLBACK NULL
     245             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_DEFAULT NULL
     246             : 
     247             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_FIELDLIST(X, a) \
     248             : X(a, STATIC,   SINGULAR, FIXED_LENGTH_BYTES, account_key,       1) \
     249             : X(a, POINTER,  REPEATED, UINT32,   writable_indexes,   2) \
     250             : X(a, POINTER,  REPEATED, UINT32,   readonly_indexes,   3)
     251             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_CALLBACK NULL
     252             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_DEFAULT NULL
     253             : 
     254             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_FIELDLIST(X, a) \
     255             : X(a, STATIC,   SINGULAR, BOOL,     is_legacy,         1) \
     256             : X(a, STATIC,   OPTIONAL, MESSAGE,  header,            2) \
     257             : X(a, POINTER,  REPEATED, BYTES,    account_keys,      3) \
     258             : X(a, POINTER,  REPEATED, MESSAGE,  account_shared_data,   4) \
     259             : X(a, POINTER,  SINGULAR, BYTES,    recent_blockhash,   5) \
     260             : X(a, POINTER,  REPEATED, MESSAGE,  instructions,      6) \
     261             : X(a, POINTER,  REPEATED, MESSAGE,  address_table_lookups,   7)
     262             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_CALLBACK NULL
     263             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_DEFAULT NULL
     264             : #define fd_exec_test_transaction_message_t_header_MSGTYPE fd_exec_test_message_header_t
     265             : #define fd_exec_test_transaction_message_t_account_shared_data_MSGTYPE fd_exec_test_acct_state_t
     266             : #define fd_exec_test_transaction_message_t_instructions_MSGTYPE fd_exec_test_compiled_instruction_t
     267             : #define fd_exec_test_transaction_message_t_address_table_lookups_MSGTYPE fd_exec_test_message_address_table_lookup_t
     268             : 
     269             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_FIELDLIST(X, a) \
     270             : X(a, STATIC,   OPTIONAL, MESSAGE,  message,           1) \
     271             : X(a, STATIC,   SINGULAR, FIXED_LENGTH_BYTES, message_hash,      2) \
     272             : X(a, STATIC,   SINGULAR, BOOL,     is_simple_vote_tx,   3) \
     273             : X(a, POINTER,  REPEATED, BYTES,    signatures,        4)
     274             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_CALLBACK NULL
     275             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_DEFAULT NULL
     276             : #define fd_exec_test_sanitized_transaction_t_message_MSGTYPE fd_exec_test_transaction_message_t
     277             : 
     278             : #define FD_EXEC_TEST_TXN_CONTEXT_FIELDLIST(X, a) \
     279             : X(a, STATIC,   OPTIONAL, MESSAGE,  tx,                1) \
     280             : X(a, POINTER,  REPEATED, BYTES,    blockhash_queue,   3) \
     281             : X(a, STATIC,   OPTIONAL, MESSAGE,  epoch_ctx,         4) \
     282             : X(a, STATIC,   OPTIONAL, MESSAGE,  slot_ctx,          5)
     283             : #define FD_EXEC_TEST_TXN_CONTEXT_CALLBACK NULL
     284             : #define FD_EXEC_TEST_TXN_CONTEXT_DEFAULT NULL
     285             : #define fd_exec_test_txn_context_t_tx_MSGTYPE fd_exec_test_sanitized_transaction_t
     286             : #define fd_exec_test_txn_context_t_epoch_ctx_MSGTYPE fd_exec_test_epoch_context_t
     287             : #define fd_exec_test_txn_context_t_slot_ctx_MSGTYPE fd_exec_test_slot_context_t
     288             : 
     289             : #define FD_EXEC_TEST_RESULTING_STATE_FIELDLIST(X, a) \
     290             : X(a, POINTER,  REPEATED, MESSAGE,  acct_states,       1) \
     291             : X(a, POINTER,  REPEATED, MESSAGE,  rent_debits,       2) \
     292             : X(a, STATIC,   SINGULAR, UINT64,   transaction_rent,   3)
     293             : #define FD_EXEC_TEST_RESULTING_STATE_CALLBACK NULL
     294             : #define FD_EXEC_TEST_RESULTING_STATE_DEFAULT NULL
     295             : #define fd_exec_test_resulting_state_t_acct_states_MSGTYPE fd_exec_test_acct_state_t
     296             : #define fd_exec_test_resulting_state_t_rent_debits_MSGTYPE fd_exec_test_rent_debits_t
     297             : 
     298             : #define FD_EXEC_TEST_RENT_DEBITS_FIELDLIST(X, a) \
     299             : X(a, STATIC,   SINGULAR, FIXED_LENGTH_BYTES, pubkey,            1) \
     300             : X(a, STATIC,   SINGULAR, INT64,    rent_collected,    2)
     301             : #define FD_EXEC_TEST_RENT_DEBITS_CALLBACK NULL
     302             : #define FD_EXEC_TEST_RENT_DEBITS_DEFAULT NULL
     303             : 
     304             : #define FD_EXEC_TEST_FEE_DETAILS_FIELDLIST(X, a) \
     305             : X(a, STATIC,   SINGULAR, UINT64,   transaction_fee,   1) \
     306             : X(a, STATIC,   SINGULAR, UINT64,   prioritization_fee,   2)
     307             : #define FD_EXEC_TEST_FEE_DETAILS_CALLBACK NULL
     308             : #define FD_EXEC_TEST_FEE_DETAILS_DEFAULT NULL
     309             : 
     310             : #define FD_EXEC_TEST_TXN_RESULT_FIELDLIST(X, a) \
     311             : X(a, STATIC,   SINGULAR, BOOL,     executed,          1) \
     312             : X(a, STATIC,   SINGULAR, BOOL,     sanitization_error,   2) \
     313             : X(a, STATIC,   OPTIONAL, MESSAGE,  resulting_state,   3) \
     314             : X(a, STATIC,   SINGULAR, UINT64,   rent,              4) \
     315             : X(a, STATIC,   SINGULAR, BOOL,     is_ok,             5) \
     316             : X(a, STATIC,   SINGULAR, UINT32,   status,            6) \
     317             : X(a, STATIC,   SINGULAR, UINT32,   instruction_error,   7) \
     318             : X(a, STATIC,   SINGULAR, UINT32,   instruction_error_index,   8) \
     319             : X(a, STATIC,   SINGULAR, UINT32,   custom_error,      9) \
     320             : X(a, POINTER,  SINGULAR, BYTES,    return_data,      10) \
     321             : X(a, STATIC,   SINGULAR, UINT64,   executed_units,   11) \
     322             : X(a, STATIC,   OPTIONAL, MESSAGE,  fee_details,      12)
     323             : #define FD_EXEC_TEST_TXN_RESULT_CALLBACK NULL
     324             : #define FD_EXEC_TEST_TXN_RESULT_DEFAULT NULL
     325             : #define fd_exec_test_txn_result_t_resulting_state_MSGTYPE fd_exec_test_resulting_state_t
     326             : #define fd_exec_test_txn_result_t_fee_details_MSGTYPE fd_exec_test_fee_details_t
     327             : 
     328             : #define FD_EXEC_TEST_TXN_FIXTURE_FIELDLIST(X, a) \
     329             : X(a, STATIC,   OPTIONAL, MESSAGE,  metadata,          1) \
     330             : X(a, STATIC,   OPTIONAL, MESSAGE,  input,             2) \
     331             : X(a, STATIC,   OPTIONAL, MESSAGE,  output,            3)
     332             : #define FD_EXEC_TEST_TXN_FIXTURE_CALLBACK NULL
     333             : #define FD_EXEC_TEST_TXN_FIXTURE_DEFAULT NULL
     334             : #define fd_exec_test_txn_fixture_t_metadata_MSGTYPE fd_exec_test_fixture_metadata_t
     335             : #define fd_exec_test_txn_fixture_t_input_MSGTYPE fd_exec_test_txn_context_t
     336             : #define fd_exec_test_txn_fixture_t_output_MSGTYPE fd_exec_test_txn_result_t
     337             : 
     338             : extern const pb_msgdesc_t fd_exec_test_message_header_t_msg;
     339             : extern const pb_msgdesc_t fd_exec_test_compiled_instruction_t_msg;
     340             : extern const pb_msgdesc_t fd_exec_test_message_address_table_lookup_t_msg;
     341             : extern const pb_msgdesc_t fd_exec_test_transaction_message_t_msg;
     342             : extern const pb_msgdesc_t fd_exec_test_sanitized_transaction_t_msg;
     343             : extern const pb_msgdesc_t fd_exec_test_txn_context_t_msg;
     344             : extern const pb_msgdesc_t fd_exec_test_resulting_state_t_msg;
     345             : extern const pb_msgdesc_t fd_exec_test_rent_debits_t_msg;
     346             : extern const pb_msgdesc_t fd_exec_test_fee_details_t_msg;
     347             : extern const pb_msgdesc_t fd_exec_test_txn_result_t_msg;
     348             : extern const pb_msgdesc_t fd_exec_test_txn_fixture_t_msg;
     349             : 
     350             : /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
     351             : #define FD_EXEC_TEST_MESSAGE_HEADER_FIELDS &fd_exec_test_message_header_t_msg
     352             : #define FD_EXEC_TEST_COMPILED_INSTRUCTION_FIELDS &fd_exec_test_compiled_instruction_t_msg
     353             : #define FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_FIELDS &fd_exec_test_message_address_table_lookup_t_msg
     354             : #define FD_EXEC_TEST_TRANSACTION_MESSAGE_FIELDS &fd_exec_test_transaction_message_t_msg
     355             : #define FD_EXEC_TEST_SANITIZED_TRANSACTION_FIELDS &fd_exec_test_sanitized_transaction_t_msg
     356           0 : #define FD_EXEC_TEST_TXN_CONTEXT_FIELDS &fd_exec_test_txn_context_t_msg
     357             : #define FD_EXEC_TEST_RESULTING_STATE_FIELDS &fd_exec_test_resulting_state_t_msg
     358             : #define FD_EXEC_TEST_RENT_DEBITS_FIELDS &fd_exec_test_rent_debits_t_msg
     359             : #define FD_EXEC_TEST_FEE_DETAILS_FIELDS &fd_exec_test_fee_details_t_msg
     360             : #define FD_EXEC_TEST_TXN_RESULT_FIELDS &fd_exec_test_txn_result_t_msg
     361             : #define FD_EXEC_TEST_TXN_FIXTURE_FIELDS &fd_exec_test_txn_fixture_t_msg
     362             : 
     363             : /* Maximum encoded size of messages (where known) */
     364             : /* fd_exec_test_CompiledInstruction_size depends on runtime parameters */
     365             : /* fd_exec_test_MessageAddressTableLookup_size depends on runtime parameters */
     366             : /* fd_exec_test_TransactionMessage_size depends on runtime parameters */
     367             : /* fd_exec_test_SanitizedTransaction_size depends on runtime parameters */
     368             : /* fd_exec_test_TxnContext_size depends on runtime parameters */
     369             : /* fd_exec_test_ResultingState_size depends on runtime parameters */
     370             : /* fd_exec_test_TxnResult_size depends on runtime parameters */
     371             : /* fd_exec_test_TxnFixture_size depends on runtime parameters */
     372             : #define FD_EXEC_TEST_FEE_DETAILS_SIZE            22
     373             : #define FD_EXEC_TEST_MESSAGE_HEADER_SIZE         18
     374             : #define FD_EXEC_TEST_RENT_DEBITS_SIZE            45
     375             : #define ORG_SOLANA_SEALEVEL_V1_TXN_PB_H_MAX_SIZE FD_EXEC_TEST_RENT_DEBITS_SIZE
     376             : 
     377             : /* Mapping from canonical names (mangle_names or overridden package name) */
     378             : #define org_solana_sealevel_v1_MessageHeader fd_exec_test_MessageHeader
     379             : #define org_solana_sealevel_v1_CompiledInstruction fd_exec_test_CompiledInstruction
     380             : #define org_solana_sealevel_v1_MessageAddressTableLookup fd_exec_test_MessageAddressTableLookup
     381             : #define org_solana_sealevel_v1_TransactionMessage fd_exec_test_TransactionMessage
     382             : #define org_solana_sealevel_v1_SanitizedTransaction fd_exec_test_SanitizedTransaction
     383             : #define org_solana_sealevel_v1_TxnContext fd_exec_test_TxnContext
     384             : #define org_solana_sealevel_v1_ResultingState fd_exec_test_ResultingState
     385             : #define org_solana_sealevel_v1_RentDebits fd_exec_test_RentDebits
     386             : #define org_solana_sealevel_v1_FeeDetails fd_exec_test_FeeDetails
     387             : #define org_solana_sealevel_v1_TxnResult fd_exec_test_TxnResult
     388             : #define org_solana_sealevel_v1_TxnFixture fd_exec_test_TxnFixture
     389             : #define ORG_SOLANA_SEALEVEL_V1_MESSAGE_HEADER_INIT_DEFAULT FD_EXEC_TEST_MESSAGE_HEADER_INIT_DEFAULT
     390             : #define ORG_SOLANA_SEALEVEL_V1_COMPILED_INSTRUCTION_INIT_DEFAULT FD_EXEC_TEST_COMPILED_INSTRUCTION_INIT_DEFAULT
     391             : #define ORG_SOLANA_SEALEVEL_V1_MESSAGE_ADDRESS_TABLE_LOOKUP_INIT_DEFAULT FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_INIT_DEFAULT
     392             : #define ORG_SOLANA_SEALEVEL_V1_TRANSACTION_MESSAGE_INIT_DEFAULT FD_EXEC_TEST_TRANSACTION_MESSAGE_INIT_DEFAULT
     393             : #define ORG_SOLANA_SEALEVEL_V1_SANITIZED_TRANSACTION_INIT_DEFAULT FD_EXEC_TEST_SANITIZED_TRANSACTION_INIT_DEFAULT
     394             : #define ORG_SOLANA_SEALEVEL_V1_TXN_CONTEXT_INIT_DEFAULT FD_EXEC_TEST_TXN_CONTEXT_INIT_DEFAULT
     395             : #define ORG_SOLANA_SEALEVEL_V1_RESULTING_STATE_INIT_DEFAULT FD_EXEC_TEST_RESULTING_STATE_INIT_DEFAULT
     396             : #define ORG_SOLANA_SEALEVEL_V1_RENT_DEBITS_INIT_DEFAULT FD_EXEC_TEST_RENT_DEBITS_INIT_DEFAULT
     397             : #define ORG_SOLANA_SEALEVEL_V1_FEE_DETAILS_INIT_DEFAULT FD_EXEC_TEST_FEE_DETAILS_INIT_DEFAULT
     398             : #define ORG_SOLANA_SEALEVEL_V1_TXN_RESULT_INIT_DEFAULT FD_EXEC_TEST_TXN_RESULT_INIT_DEFAULT
     399             : #define ORG_SOLANA_SEALEVEL_V1_TXN_FIXTURE_INIT_DEFAULT FD_EXEC_TEST_TXN_FIXTURE_INIT_DEFAULT
     400             : #define ORG_SOLANA_SEALEVEL_V1_MESSAGE_HEADER_INIT_ZERO FD_EXEC_TEST_MESSAGE_HEADER_INIT_ZERO
     401             : #define ORG_SOLANA_SEALEVEL_V1_COMPILED_INSTRUCTION_INIT_ZERO FD_EXEC_TEST_COMPILED_INSTRUCTION_INIT_ZERO
     402             : #define ORG_SOLANA_SEALEVEL_V1_MESSAGE_ADDRESS_TABLE_LOOKUP_INIT_ZERO FD_EXEC_TEST_MESSAGE_ADDRESS_TABLE_LOOKUP_INIT_ZERO
     403             : #define ORG_SOLANA_SEALEVEL_V1_TRANSACTION_MESSAGE_INIT_ZERO FD_EXEC_TEST_TRANSACTION_MESSAGE_INIT_ZERO
     404             : #define ORG_SOLANA_SEALEVEL_V1_SANITIZED_TRANSACTION_INIT_ZERO FD_EXEC_TEST_SANITIZED_TRANSACTION_INIT_ZERO
     405             : #define ORG_SOLANA_SEALEVEL_V1_TXN_CONTEXT_INIT_ZERO FD_EXEC_TEST_TXN_CONTEXT_INIT_ZERO
     406             : #define ORG_SOLANA_SEALEVEL_V1_RESULTING_STATE_INIT_ZERO FD_EXEC_TEST_RESULTING_STATE_INIT_ZERO
     407             : #define ORG_SOLANA_SEALEVEL_V1_RENT_DEBITS_INIT_ZERO FD_EXEC_TEST_RENT_DEBITS_INIT_ZERO
     408             : #define ORG_SOLANA_SEALEVEL_V1_FEE_DETAILS_INIT_ZERO FD_EXEC_TEST_FEE_DETAILS_INIT_ZERO
     409             : #define ORG_SOLANA_SEALEVEL_V1_TXN_RESULT_INIT_ZERO FD_EXEC_TEST_TXN_RESULT_INIT_ZERO
     410             : #define ORG_SOLANA_SEALEVEL_V1_TXN_FIXTURE_INIT_ZERO FD_EXEC_TEST_TXN_FIXTURE_INIT_ZERO
     411             : 
     412             : #ifdef __cplusplus
     413             : } /* extern "C" */
     414             : #endif
     415             : 
     416             : #endif

Generated by: LCOV version 1.14