Line data Source code
1 : /* Automatically generated nanopb header */ 2 : /* Generated by nanopb-0.4.9.1 */ 3 : 4 : #ifndef PB_ORG_SOLANA_SEALEVEL_V1_PACK_PB_H_INCLUDED 5 : #define PB_ORG_SOLANA_SEALEVEL_V1_PACK_PB_H_INCLUDED 6 : 7 : #include "../../../nanopb/pb_firedancer.h" 8 : #include "metadata.pb.h" 9 : 10 : #if PB_PROTO_HEADER_VERSION != 40 11 : #error Regenerate this file with the current version of nanopb generator. 12 : #endif 13 : 14 : /* Struct definitions */ 15 : typedef struct fd_exec_test_pack_compute_budget_context { 16 : pb_size_t instr_datas_count; 17 : pb_bytes_array_t **instr_datas; 18 : } fd_exec_test_pack_compute_budget_context_t; 19 : 20 : typedef struct fd_exec_test_pack_compute_budget_effects { 21 : uint64_t compute_unit_limit; 22 : uint64_t rewards; 23 : uint32_t heap_sz; 24 : uint32_t loaded_acct_data_sz; 25 : /* To prevent empty effects when encoding a "skipped" effects */ 26 : uint32_t is_empty; 27 : } fd_exec_test_pack_compute_budget_effects_t; 28 : 29 : typedef struct fd_exec_test_pack_compute_budget_fixture { 30 : bool has_metadata; 31 : fd_exec_test_fixture_metadata_t metadata; 32 : bool has_input; 33 : fd_exec_test_pack_compute_budget_context_t input; 34 : bool has_output; 35 : fd_exec_test_pack_compute_budget_effects_t output; 36 : } fd_exec_test_pack_compute_budget_fixture_t; 37 : 38 : 39 : #ifdef __cplusplus 40 : extern "C" { 41 : #endif 42 : 43 : /* Initializer values for message structs */ 44 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT {0, NULL} 45 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT {0, 0, 0, 0, 0} 46 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_DEFAULT {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_DEFAULT, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT} 47 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO {0, NULL} 48 0 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO {0, 0, 0, 0, 0} 49 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_ZERO {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_ZERO, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO} 50 : 51 : /* Field tags (for use in manual encoding/decoding) */ 52 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INSTR_DATAS_TAG 1 53 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_COMPUTE_UNIT_LIMIT_TAG 1 54 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_REWARDS_TAG 2 55 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_HEAP_SZ_TAG 3 56 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_LOADED_ACCT_DATA_SZ_TAG 4 57 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_IS_EMPTY_TAG 5 58 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_METADATA_TAG 1 59 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INPUT_TAG 2 60 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_OUTPUT_TAG 3 61 : 62 : /* Struct field encoding specification for nanopb */ 63 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_FIELDLIST(X, a) \ 64 : X(a, POINTER, REPEATED, BYTES, instr_datas, 1) 65 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_CALLBACK NULL 66 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_DEFAULT NULL 67 : 68 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_FIELDLIST(X, a) \ 69 : X(a, STATIC, SINGULAR, UINT64, compute_unit_limit, 1) \ 70 : X(a, STATIC, SINGULAR, UINT64, rewards, 2) \ 71 : X(a, STATIC, SINGULAR, UINT32, heap_sz, 3) \ 72 : X(a, STATIC, SINGULAR, UINT32, loaded_acct_data_sz, 4) \ 73 : X(a, STATIC, SINGULAR, UINT32, is_empty, 5) 74 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_CALLBACK NULL 75 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_DEFAULT NULL 76 : 77 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_FIELDLIST(X, a) \ 78 : X(a, STATIC, OPTIONAL, MESSAGE, metadata, 1) \ 79 : X(a, STATIC, OPTIONAL, MESSAGE, input, 2) \ 80 : X(a, STATIC, OPTIONAL, MESSAGE, output, 3) 81 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_CALLBACK NULL 82 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_DEFAULT NULL 83 : #define fd_exec_test_pack_compute_budget_fixture_t_metadata_MSGTYPE fd_exec_test_fixture_metadata_t 84 : #define fd_exec_test_pack_compute_budget_fixture_t_input_MSGTYPE fd_exec_test_pack_compute_budget_context_t 85 : #define fd_exec_test_pack_compute_budget_fixture_t_output_MSGTYPE fd_exec_test_pack_compute_budget_effects_t 86 : 87 : extern const pb_msgdesc_t fd_exec_test_pack_compute_budget_context_t_msg; 88 : extern const pb_msgdesc_t fd_exec_test_pack_compute_budget_effects_t_msg; 89 : extern const pb_msgdesc_t fd_exec_test_pack_compute_budget_fixture_t_msg; 90 : 91 : /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ 92 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_FIELDS &fd_exec_test_pack_compute_budget_context_t_msg 93 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_FIELDS &fd_exec_test_pack_compute_budget_effects_t_msg 94 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_FIELDS &fd_exec_test_pack_compute_budget_fixture_t_msg 95 : 96 : /* Maximum encoded size of messages (where known) */ 97 : /* fd_exec_test_PackComputeBudgetContext_size depends on runtime parameters */ 98 : /* fd_exec_test_PackComputeBudgetFixture_size depends on runtime parameters */ 99 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_SIZE 40 100 : #define ORG_SOLANA_SEALEVEL_V1_PACK_PB_H_MAX_SIZE FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_SIZE 101 : 102 : /* Mapping from canonical names (mangle_names or overridden package name) */ 103 : #define org_solana_sealevel_v1_PackComputeBudgetContext fd_exec_test_PackComputeBudgetContext 104 : #define org_solana_sealevel_v1_PackComputeBudgetEffects fd_exec_test_PackComputeBudgetEffects 105 : #define org_solana_sealevel_v1_PackComputeBudgetFixture fd_exec_test_PackComputeBudgetFixture 106 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT 107 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT 108 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_FIXTURE_INIT_DEFAULT FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_DEFAULT 109 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO 110 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO 111 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_FIXTURE_INIT_ZERO FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_ZERO 112 : 113 : #ifdef __cplusplus 114 : } /* extern "C" */ 115 : #endif 116 : 117 : #endif