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_BLOCK_PB_H_INCLUDED
5 : #define PB_ORG_SOLANA_SEALEVEL_V1_BLOCK_PB_H_INCLUDED
6 :
7 : #include "../../../../../ballet/nanopb/pb_firedancer.h"
8 : #include "context.pb.h"
9 : #include "txn.pb.h"
10 : #include "metadata.pb.h"
11 :
12 : #if PB_PROTO_HEADER_VERSION != 40
13 : #error Regenerate this file with the current version of nanopb generator.
14 : #endif
15 :
16 : /* Struct definitions */
17 : typedef struct fd_exec_test_block_context {
18 : /* All transactions in this microblock (can be 0) */
19 : pb_size_t txns_count;
20 : struct fd_exec_test_sanitized_transaction *txns;
21 : /* Input account states */
22 : pb_size_t acct_states_count;
23 : struct fd_exec_test_acct_state *acct_states;
24 : /* The blockhash queue */
25 : pb_size_t blockhash_queue_count;
26 : pb_bytes_array_t **blockhash_queue;
27 : /* Slot context (contains slot number) */
28 : bool has_slot_ctx;
29 : fd_exec_test_slot_context_t slot_ctx;
30 : /* Epoch context (contains feature info) */
31 : bool has_epoch_ctx;
32 : fd_exec_test_epoch_context_t epoch_ctx;
33 : } fd_exec_test_block_context_t;
34 :
35 : typedef struct fd_exec_test_block_effects {
36 : /* If block execution failed */
37 : bool has_error;
38 : /* Slot capitalization */
39 : uint64_t slot_capitalization;
40 : /* Bank hash */
41 : pb_byte_t bank_hash[32];
42 : } fd_exec_test_block_effects_t;
43 :
44 : typedef struct fd_exec_test_block_fixture {
45 : bool has_metadata;
46 : fd_exec_test_fixture_metadata_t metadata;
47 : /* The block input */
48 : bool has_input;
49 : fd_exec_test_block_context_t input;
50 : /* The output */
51 : bool has_output;
52 : fd_exec_test_block_effects_t output;
53 : } fd_exec_test_block_fixture_t;
54 :
55 :
56 : #ifdef __cplusplus
57 : extern "C" {
58 : #endif
59 :
60 : /* Initializer values for message structs */
61 : #define FD_EXEC_TEST_BLOCK_CONTEXT_INIT_DEFAULT {0, NULL, 0, NULL, 0, NULL, false, FD_EXEC_TEST_SLOT_CONTEXT_INIT_DEFAULT, false, FD_EXEC_TEST_EPOCH_CONTEXT_INIT_DEFAULT}
62 : #define FD_EXEC_TEST_BLOCK_EFFECTS_INIT_DEFAULT {0, 0, {0}}
63 : #define FD_EXEC_TEST_BLOCK_FIXTURE_INIT_DEFAULT {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_DEFAULT, false, FD_EXEC_TEST_BLOCK_CONTEXT_INIT_DEFAULT, false, FD_EXEC_TEST_BLOCK_EFFECTS_INIT_DEFAULT}
64 : #define FD_EXEC_TEST_BLOCK_CONTEXT_INIT_ZERO {0, NULL, 0, NULL, 0, NULL, false, FD_EXEC_TEST_SLOT_CONTEXT_INIT_ZERO, false, FD_EXEC_TEST_EPOCH_CONTEXT_INIT_ZERO}
65 : #define FD_EXEC_TEST_BLOCK_EFFECTS_INIT_ZERO {0, 0, {0}}
66 : #define FD_EXEC_TEST_BLOCK_FIXTURE_INIT_ZERO {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_ZERO, false, FD_EXEC_TEST_BLOCK_CONTEXT_INIT_ZERO, false, FD_EXEC_TEST_BLOCK_EFFECTS_INIT_ZERO}
67 :
68 : /* Field tags (for use in manual encoding/decoding) */
69 : #define FD_EXEC_TEST_BLOCK_CONTEXT_TXNS_TAG 1
70 : #define FD_EXEC_TEST_BLOCK_CONTEXT_ACCT_STATES_TAG 2
71 : #define FD_EXEC_TEST_BLOCK_CONTEXT_BLOCKHASH_QUEUE_TAG 3
72 : #define FD_EXEC_TEST_BLOCK_CONTEXT_SLOT_CTX_TAG 4
73 : #define FD_EXEC_TEST_BLOCK_CONTEXT_EPOCH_CTX_TAG 5
74 : #define FD_EXEC_TEST_BLOCK_EFFECTS_HAS_ERROR_TAG 1
75 : #define FD_EXEC_TEST_BLOCK_EFFECTS_SLOT_CAPITALIZATION_TAG 2
76 : #define FD_EXEC_TEST_BLOCK_EFFECTS_BANK_HASH_TAG 3
77 : #define FD_EXEC_TEST_BLOCK_FIXTURE_METADATA_TAG 1
78 : #define FD_EXEC_TEST_BLOCK_FIXTURE_INPUT_TAG 2
79 : #define FD_EXEC_TEST_BLOCK_FIXTURE_OUTPUT_TAG 3
80 :
81 : /* Struct field encoding specification for nanopb */
82 : #define FD_EXEC_TEST_BLOCK_CONTEXT_FIELDLIST(X, a) \
83 : X(a, POINTER, REPEATED, MESSAGE, txns, 1) \
84 : X(a, POINTER, REPEATED, MESSAGE, acct_states, 2) \
85 : X(a, POINTER, REPEATED, BYTES, blockhash_queue, 3) \
86 : X(a, STATIC, OPTIONAL, MESSAGE, slot_ctx, 4) \
87 : X(a, STATIC, OPTIONAL, MESSAGE, epoch_ctx, 5)
88 : #define FD_EXEC_TEST_BLOCK_CONTEXT_CALLBACK NULL
89 : #define FD_EXEC_TEST_BLOCK_CONTEXT_DEFAULT NULL
90 : #define fd_exec_test_block_context_t_txns_MSGTYPE fd_exec_test_sanitized_transaction_t
91 : #define fd_exec_test_block_context_t_acct_states_MSGTYPE fd_exec_test_acct_state_t
92 : #define fd_exec_test_block_context_t_slot_ctx_MSGTYPE fd_exec_test_slot_context_t
93 : #define fd_exec_test_block_context_t_epoch_ctx_MSGTYPE fd_exec_test_epoch_context_t
94 :
95 : #define FD_EXEC_TEST_BLOCK_EFFECTS_FIELDLIST(X, a) \
96 : X(a, STATIC, SINGULAR, BOOL, has_error, 1) \
97 : X(a, STATIC, SINGULAR, UINT64, slot_capitalization, 2) \
98 : X(a, STATIC, SINGULAR, FIXED_LENGTH_BYTES, bank_hash, 3)
99 : #define FD_EXEC_TEST_BLOCK_EFFECTS_CALLBACK NULL
100 : #define FD_EXEC_TEST_BLOCK_EFFECTS_DEFAULT NULL
101 :
102 : #define FD_EXEC_TEST_BLOCK_FIXTURE_FIELDLIST(X, a) \
103 : X(a, STATIC, OPTIONAL, MESSAGE, metadata, 1) \
104 : X(a, STATIC, OPTIONAL, MESSAGE, input, 2) \
105 : X(a, STATIC, OPTIONAL, MESSAGE, output, 3)
106 : #define FD_EXEC_TEST_BLOCK_FIXTURE_CALLBACK NULL
107 : #define FD_EXEC_TEST_BLOCK_FIXTURE_DEFAULT NULL
108 : #define fd_exec_test_block_fixture_t_metadata_MSGTYPE fd_exec_test_fixture_metadata_t
109 : #define fd_exec_test_block_fixture_t_input_MSGTYPE fd_exec_test_block_context_t
110 : #define fd_exec_test_block_fixture_t_output_MSGTYPE fd_exec_test_block_effects_t
111 :
112 : extern const pb_msgdesc_t fd_exec_test_block_context_t_msg;
113 : extern const pb_msgdesc_t fd_exec_test_block_effects_t_msg;
114 : extern const pb_msgdesc_t fd_exec_test_block_fixture_t_msg;
115 :
116 : /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
117 0 : #define FD_EXEC_TEST_BLOCK_CONTEXT_FIELDS &fd_exec_test_block_context_t_msg
118 : #define FD_EXEC_TEST_BLOCK_EFFECTS_FIELDS &fd_exec_test_block_effects_t_msg
119 : #define FD_EXEC_TEST_BLOCK_FIXTURE_FIELDS &fd_exec_test_block_fixture_t_msg
120 :
121 : /* Maximum encoded size of messages (where known) */
122 : /* fd_exec_test_BlockContext_size depends on runtime parameters */
123 : /* fd_exec_test_BlockFixture_size depends on runtime parameters */
124 : #define FD_EXEC_TEST_BLOCK_EFFECTS_SIZE 47
125 : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_PB_H_MAX_SIZE FD_EXEC_TEST_BLOCK_EFFECTS_SIZE
126 :
127 : /* Mapping from canonical names (mangle_names or overridden package name) */
128 : #define org_solana_sealevel_v1_BlockContext fd_exec_test_BlockContext
129 : #define org_solana_sealevel_v1_BlockEffects fd_exec_test_BlockEffects
130 : #define org_solana_sealevel_v1_BlockFixture fd_exec_test_BlockFixture
131 : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_CONTEXT_INIT_DEFAULT FD_EXEC_TEST_BLOCK_CONTEXT_INIT_DEFAULT
132 : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_EFFECTS_INIT_DEFAULT FD_EXEC_TEST_BLOCK_EFFECTS_INIT_DEFAULT
133 : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_FIXTURE_INIT_DEFAULT FD_EXEC_TEST_BLOCK_FIXTURE_INIT_DEFAULT
134 : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_CONTEXT_INIT_ZERO FD_EXEC_TEST_BLOCK_CONTEXT_INIT_ZERO
135 : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_EFFECTS_INIT_ZERO FD_EXEC_TEST_BLOCK_EFFECTS_INIT_ZERO
136 : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_FIXTURE_INIT_ZERO FD_EXEC_TEST_BLOCK_FIXTURE_INIT_ZERO
137 :
138 : #ifdef __cplusplus
139 : } /* extern "C" */
140 : #endif
141 :
142 : #endif
|