Line data Source code
1 : /* Automatically generated nanopb header */
2 : /* Generated by nanopb-0.4.8 */
3 :
4 : #ifndef PB_SOLANA_STORAGE_CONFIRMEDBLOCK_FD_SOLANA_BLOCK_PB_H_INCLUDED
5 : #define PB_SOLANA_STORAGE_CONFIRMEDBLOCK_FD_SOLANA_BLOCK_PB_H_INCLUDED
6 :
7 : #include "../nanopb/pb_firedancer.h"
8 :
9 : #if PB_PROTO_HEADER_VERSION != 40
10 : #error Regenerate this file with the current version of nanopb generator.
11 : #endif
12 :
13 : /* Enum definitions */
14 : typedef enum _fd_solblock_RewardType {
15 : fd_solblock_RewardType_Unspecified = 0,
16 : fd_solblock_RewardType_Fee = 1,
17 : fd_solblock_RewardType_Rent = 2,
18 : fd_solblock_RewardType_Staking = 3,
19 : fd_solblock_RewardType_Voting = 4
20 : } fd_solblock_RewardType;
21 :
22 : /* Struct definitions */
23 : typedef struct _fd_solblock_MessageHeader {
24 : bool has_num_required_signatures;
25 : uint32_t num_required_signatures;
26 : bool has_num_readonly_signed_accounts;
27 : uint32_t num_readonly_signed_accounts;
28 : bool has_num_readonly_unsigned_accounts;
29 : uint32_t num_readonly_unsigned_accounts;
30 : } fd_solblock_MessageHeader;
31 :
32 : typedef struct _fd_solblock_Instruction {
33 : bool has_program_id_index;
34 : uint32_t program_id_index;
35 : pb_bytes_array_t *accounts;
36 : pb_bytes_array_t *data;
37 : } fd_solblock_Instruction;
38 :
39 : typedef struct _fd_solblock_MessageAddressTableLookup {
40 : bool has_account_key;
41 : pb_byte_t account_key[32];
42 : pb_callback_t writable_indexes;
43 : pb_callback_t readonly_indexes;
44 : } fd_solblock_MessageAddressTableLookup;
45 :
46 : typedef struct _fd_solblock_Message {
47 : bool has_header;
48 : fd_solblock_MessageHeader header;
49 : pb_size_t account_keys_count;
50 : pb_byte_t (*account_keys)[32];
51 : bool has_recent_blockhash;
52 : pb_byte_t recent_blockhash[32];
53 : pb_size_t instructions_count;
54 : struct _fd_solblock_Instruction *instructions;
55 : bool has_versioned;
56 : bool versioned;
57 : pb_size_t address_table_lookups_count;
58 : struct _fd_solblock_MessageAddressTableLookup *address_table_lookups;
59 : } fd_solblock_Message;
60 :
61 : typedef struct _fd_solblock_Transaction {
62 : pb_size_t signatures_count;
63 : pb_byte_t (*signatures)[32];
64 : bool has_message;
65 : fd_solblock_Message message;
66 : } fd_solblock_Transaction;
67 :
68 : typedef struct _fd_solblock_InnerInstruction {
69 : bool has_program_id_index;
70 : uint32_t program_id_index;
71 : pb_bytes_array_t *accounts;
72 : pb_bytes_array_t *data;
73 : /* Invocation stack height of an inner instruction.
74 : Available since Solana v1.14.6
75 : Set to `None` for txs executed on earlier versions. */
76 : bool has_stack_height;
77 : uint32_t stack_height;
78 : } fd_solblock_InnerInstruction;
79 :
80 : typedef struct _fd_solblock_InnerInstructions {
81 : bool has_index;
82 : uint32_t index;
83 : pb_size_t instructions_count;
84 : struct _fd_solblock_InnerInstruction *instructions;
85 : } fd_solblock_InnerInstructions;
86 :
87 : typedef struct _fd_solblock_TransactionError {
88 : pb_bytes_array_t *err;
89 : } fd_solblock_TransactionError;
90 :
91 : typedef struct _fd_solblock_UiTokenAmount {
92 : bool has_ui_amount;
93 : double ui_amount;
94 : bool has_decimals;
95 : uint32_t decimals;
96 : char *amount;
97 : char *ui_amount_string;
98 : } fd_solblock_UiTokenAmount;
99 :
100 : typedef struct _fd_solblock_TokenBalance {
101 : bool has_account_index;
102 : uint32_t account_index;
103 : bool has_mint;
104 : char mint[45];
105 : bool has_ui_token_amount;
106 : fd_solblock_UiTokenAmount ui_token_amount;
107 : bool has_owner;
108 : char owner[45];
109 : bool has_program_id;
110 : char program_id[45];
111 : } fd_solblock_TokenBalance;
112 :
113 : typedef struct _fd_solblock_Reward {
114 : bool has_pubkey;
115 : char pubkey[45];
116 : bool has_lamports;
117 : int64_t lamports;
118 : bool has_post_balance;
119 : uint64_t post_balance;
120 : bool has_reward_type;
121 : fd_solblock_RewardType reward_type;
122 : char *commission;
123 : } fd_solblock_Reward;
124 :
125 : typedef struct _fd_solblock_ReturnData {
126 : bool has_program_id;
127 : pb_byte_t program_id[32];
128 : pb_callback_t data;
129 : } fd_solblock_ReturnData;
130 :
131 : typedef struct _fd_solblock_TransactionStatusMeta {
132 : bool has_err;
133 : fd_solblock_TransactionError err;
134 : bool has_fee;
135 : uint64_t fee;
136 : pb_size_t pre_balances_count;
137 : uint64_t *pre_balances;
138 : pb_size_t post_balances_count;
139 : uint64_t *post_balances;
140 : pb_size_t inner_instructions_count;
141 : struct _fd_solblock_InnerInstructions *inner_instructions;
142 : pb_size_t log_messages_count;
143 : char **log_messages;
144 : pb_size_t pre_token_balances_count;
145 : struct _fd_solblock_TokenBalance *pre_token_balances;
146 : pb_size_t post_token_balances_count;
147 : struct _fd_solblock_TokenBalance *post_token_balances;
148 : pb_size_t rewards_count;
149 : struct _fd_solblock_Reward *rewards;
150 : bool has_inner_instructions_none;
151 : bool inner_instructions_none;
152 : bool has_log_messages_none;
153 : bool log_messages_none;
154 : pb_size_t loaded_writable_addresses_count;
155 : pb_bytes_array_t **loaded_writable_addresses;
156 : pb_size_t loaded_readonly_addresses_count;
157 : pb_bytes_array_t **loaded_readonly_addresses;
158 : bool has_return_data;
159 : fd_solblock_ReturnData return_data;
160 : bool has_return_data_none;
161 : bool return_data_none;
162 : /* Sum of compute units consumed by all instructions.
163 : Available since Solana v1.10.35 / v1.11.6.
164 : Set to `None` for txs executed on earlier versions. */
165 : bool has_compute_units_consumed;
166 : uint64_t compute_units_consumed;
167 : } fd_solblock_TransactionStatusMeta;
168 :
169 : typedef struct _fd_solblock_ConfirmedTransaction {
170 : bool has_transaction;
171 : fd_solblock_Transaction transaction;
172 : bool has_meta;
173 : fd_solblock_TransactionStatusMeta meta;
174 : } fd_solblock_ConfirmedTransaction;
175 :
176 :
177 : #ifdef __cplusplus
178 : extern "C" {
179 : #endif
180 :
181 : /* Helper constants for enums */
182 : #define _fd_solblock_RewardType_MIN fd_solblock_RewardType_Unspecified
183 : #define _fd_solblock_RewardType_MAX fd_solblock_RewardType_Voting
184 : #define _fd_solblock_RewardType_ARRAYSIZE ((fd_solblock_RewardType)(fd_solblock_RewardType_Voting+1))
185 :
186 :
187 :
188 :
189 :
190 :
191 :
192 :
193 :
194 :
195 :
196 :
197 : #define fd_solblock_Reward_reward_type_ENUMTYPE fd_solblock_RewardType
198 :
199 :
200 :
201 :
202 : /* Initializer values for message structs */
203 : #define fd_solblock_MessageHeader_init_default {false, 0, false, 0, false, 0}
204 : #define fd_solblock_Instruction_init_default {false, 0, NULL, NULL}
205 : #define fd_solblock_MessageAddressTableLookup_init_default {false, {0}, {{NULL}, NULL}, {{NULL}, NULL}}
206 : #define fd_solblock_Message_init_default {false, fd_solblock_MessageHeader_init_default, 0, NULL, false, {0}, 0, NULL, false, 0, 0, NULL}
207 : #define fd_solblock_Transaction_init_default {0, NULL, false, fd_solblock_Message_init_default}
208 : #define fd_solblock_ConfirmedTransaction_init_default {false, fd_solblock_Transaction_init_default, false, fd_solblock_TransactionStatusMeta_init_default}
209 : #define fd_solblock_InnerInstruction_init_default {false, 0, NULL, NULL, false, 0}
210 : #define fd_solblock_InnerInstructions_init_default {false, 0, 0, NULL}
211 : #define fd_solblock_TransactionError_init_default {NULL}
212 : #define fd_solblock_UiTokenAmount_init_default {false, 0, false, 0, NULL, NULL}
213 : #define fd_solblock_TokenBalance_init_default {false, 0, false, "", false, fd_solblock_UiTokenAmount_init_default, false, "", false, ""}
214 : #define fd_solblock_Reward_init_default {false, "", false, 0, false, 0, false, _fd_solblock_RewardType_MIN, NULL}
215 : #define fd_solblock_ReturnData_init_default {false, {0}, {{NULL}, NULL}}
216 : #define fd_solblock_TransactionStatusMeta_init_default {false, fd_solblock_TransactionError_init_default, false, 0, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, false, 0, false, 0, 0, NULL, 0, NULL, false, fd_solblock_ReturnData_init_default, false, 0, false, 0}
217 : #define fd_solblock_MessageHeader_init_zero {false, 0, false, 0, false, 0}
218 : #define fd_solblock_Instruction_init_zero {false, 0, NULL, NULL}
219 : #define fd_solblock_MessageAddressTableLookup_init_zero {false, {0}, {{NULL}, NULL}, {{NULL}, NULL}}
220 : #define fd_solblock_Message_init_zero {false, fd_solblock_MessageHeader_init_zero, 0, NULL, false, {0}, 0, NULL, false, 0, 0, NULL}
221 : #define fd_solblock_Transaction_init_zero {0, NULL, false, fd_solblock_Message_init_zero}
222 : #define fd_solblock_ConfirmedTransaction_init_zero {false, fd_solblock_Transaction_init_zero, false, fd_solblock_TransactionStatusMeta_init_zero}
223 : #define fd_solblock_InnerInstruction_init_zero {false, 0, NULL, NULL, false, 0}
224 : #define fd_solblock_InnerInstructions_init_zero {false, 0, 0, NULL}
225 : #define fd_solblock_TransactionError_init_zero {NULL}
226 : #define fd_solblock_UiTokenAmount_init_zero {false, 0, false, 0, NULL, NULL}
227 : #define fd_solblock_TokenBalance_init_zero {false, 0, false, "", false, fd_solblock_UiTokenAmount_init_zero, false, "", false, ""}
228 : #define fd_solblock_Reward_init_zero {false, "", false, 0, false, 0, false, _fd_solblock_RewardType_MIN, NULL}
229 : #define fd_solblock_ReturnData_init_zero {false, {0}, {{NULL}, NULL}}
230 : #define fd_solblock_TransactionStatusMeta_init_zero {false, fd_solblock_TransactionError_init_zero, false, 0, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, false, 0, false, 0, 0, NULL, 0, NULL, false, fd_solblock_ReturnData_init_zero, false, 0, false, 0}
231 :
232 : /* Field tags (for use in manual encoding/decoding) */
233 : #define fd_solblock_MessageHeader_num_required_signatures_tag 1
234 : #define fd_solblock_MessageHeader_num_readonly_signed_accounts_tag 2
235 : #define fd_solblock_MessageHeader_num_readonly_unsigned_accounts_tag 3
236 : #define fd_solblock_Instruction_program_id_index_tag 1
237 : #define fd_solblock_Instruction_accounts_tag 2
238 : #define fd_solblock_Instruction_data_tag 3
239 : #define fd_solblock_MessageAddressTableLookup_account_key_tag 1
240 : #define fd_solblock_MessageAddressTableLookup_writable_indexes_tag 2
241 : #define fd_solblock_MessageAddressTableLookup_readonly_indexes_tag 3
242 : #define fd_solblock_Message_header_tag 1
243 : #define fd_solblock_Message_account_keys_tag 2
244 : #define fd_solblock_Message_recent_blockhash_tag 3
245 : #define fd_solblock_Message_instructions_tag 4
246 : #define fd_solblock_Message_versioned_tag 5
247 : #define fd_solblock_Message_address_table_lookups_tag 6
248 : #define fd_solblock_Transaction_signatures_tag 1
249 : #define fd_solblock_Transaction_message_tag 2
250 : #define fd_solblock_InnerInstruction_program_id_index_tag 1
251 : #define fd_solblock_InnerInstruction_accounts_tag 2
252 : #define fd_solblock_InnerInstruction_data_tag 3
253 : #define fd_solblock_InnerInstruction_stack_height_tag 4
254 : #define fd_solblock_InnerInstructions_index_tag 1
255 : #define fd_solblock_InnerInstructions_instructions_tag 2
256 : #define fd_solblock_TransactionError_err_tag 1
257 : #define fd_solblock_UiTokenAmount_ui_amount_tag 1
258 : #define fd_solblock_UiTokenAmount_decimals_tag 2
259 : #define fd_solblock_UiTokenAmount_amount_tag 3
260 : #define fd_solblock_UiTokenAmount_ui_amount_string_tag 4
261 : #define fd_solblock_TokenBalance_account_index_tag 1
262 : #define fd_solblock_TokenBalance_mint_tag 2
263 : #define fd_solblock_TokenBalance_ui_token_amount_tag 3
264 : #define fd_solblock_TokenBalance_owner_tag 4
265 : #define fd_solblock_TokenBalance_program_id_tag 5
266 : #define fd_solblock_Reward_pubkey_tag 1
267 : #define fd_solblock_Reward_lamports_tag 2
268 : #define fd_solblock_Reward_post_balance_tag 3
269 : #define fd_solblock_Reward_reward_type_tag 4
270 : #define fd_solblock_Reward_commission_tag 5
271 : #define fd_solblock_ReturnData_program_id_tag 1
272 : #define fd_solblock_ReturnData_data_tag 2
273 : #define fd_solblock_TransactionStatusMeta_err_tag 1
274 : #define fd_solblock_TransactionStatusMeta_fee_tag 2
275 : #define fd_solblock_TransactionStatusMeta_pre_balances_tag 3
276 : #define fd_solblock_TransactionStatusMeta_post_balances_tag 4
277 : #define fd_solblock_TransactionStatusMeta_inner_instructions_tag 5
278 : #define fd_solblock_TransactionStatusMeta_log_messages_tag 6
279 : #define fd_solblock_TransactionStatusMeta_pre_token_balances_tag 7
280 : #define fd_solblock_TransactionStatusMeta_post_token_balances_tag 8
281 : #define fd_solblock_TransactionStatusMeta_rewards_tag 9
282 : #define fd_solblock_TransactionStatusMeta_inner_instructions_none_tag 10
283 : #define fd_solblock_TransactionStatusMeta_log_messages_none_tag 11
284 : #define fd_solblock_TransactionStatusMeta_loaded_writable_addresses_tag 12
285 : #define fd_solblock_TransactionStatusMeta_loaded_readonly_addresses_tag 13
286 : #define fd_solblock_TransactionStatusMeta_return_data_tag 14
287 : #define fd_solblock_TransactionStatusMeta_return_data_none_tag 15
288 : #define fd_solblock_TransactionStatusMeta_compute_units_consumed_tag 16
289 : #define fd_solblock_ConfirmedTransaction_transaction_tag 1
290 : #define fd_solblock_ConfirmedTransaction_meta_tag 2
291 :
292 : /* Struct field encoding specification for nanopb */
293 : #define fd_solblock_MessageHeader_FIELDLIST(X, a) \
294 : X(a, STATIC, OPTIONAL, UINT32, num_required_signatures, 1) \
295 : X(a, STATIC, OPTIONAL, UINT32, num_readonly_signed_accounts, 2) \
296 : X(a, STATIC, OPTIONAL, UINT32, num_readonly_unsigned_accounts, 3)
297 : #define fd_solblock_MessageHeader_CALLBACK NULL
298 : #define fd_solblock_MessageHeader_DEFAULT NULL
299 :
300 : #define fd_solblock_Instruction_FIELDLIST(X, a) \
301 : X(a, STATIC, OPTIONAL, UINT32, program_id_index, 1) \
302 : X(a, POINTER, OPTIONAL, BYTES, accounts, 2) \
303 : X(a, POINTER, OPTIONAL, BYTES, data, 3)
304 : #define fd_solblock_Instruction_CALLBACK NULL
305 : #define fd_solblock_Instruction_DEFAULT NULL
306 :
307 : #define fd_solblock_MessageAddressTableLookup_FIELDLIST(X, a) \
308 : X(a, STATIC, OPTIONAL, FIXED_LENGTH_BYTES, account_key, 1) \
309 : X(a, CALLBACK, OPTIONAL, BYTES, writable_indexes, 2) \
310 : X(a, CALLBACK, OPTIONAL, BYTES, readonly_indexes, 3)
311 : #define fd_solblock_MessageAddressTableLookup_CALLBACK pb_default_field_callback
312 : #define fd_solblock_MessageAddressTableLookup_DEFAULT NULL
313 :
314 : #define fd_solblock_Message_FIELDLIST(X, a) \
315 : X(a, STATIC, OPTIONAL, MESSAGE, header, 1) \
316 : X(a, POINTER, REPEATED, FIXED_LENGTH_BYTES, account_keys, 2) \
317 : X(a, STATIC, OPTIONAL, FIXED_LENGTH_BYTES, recent_blockhash, 3) \
318 : X(a, POINTER, REPEATED, MESSAGE, instructions, 4) \
319 : X(a, STATIC, OPTIONAL, BOOL, versioned, 5) \
320 : X(a, POINTER, REPEATED, MESSAGE, address_table_lookups, 6)
321 : #define fd_solblock_Message_CALLBACK NULL
322 : #define fd_solblock_Message_DEFAULT NULL
323 : #define fd_solblock_Message_header_MSGTYPE fd_solblock_MessageHeader
324 : #define fd_solblock_Message_instructions_MSGTYPE fd_solblock_Instruction
325 : #define fd_solblock_Message_address_table_lookups_MSGTYPE fd_solblock_MessageAddressTableLookup
326 :
327 : #define fd_solblock_Transaction_FIELDLIST(X, a) \
328 : X(a, POINTER, REPEATED, FIXED_LENGTH_BYTES, signatures, 1) \
329 : X(a, STATIC, OPTIONAL, MESSAGE, message, 2)
330 : #define fd_solblock_Transaction_CALLBACK NULL
331 : #define fd_solblock_Transaction_DEFAULT NULL
332 : #define fd_solblock_Transaction_message_MSGTYPE fd_solblock_Message
333 :
334 : #define fd_solblock_ConfirmedTransaction_FIELDLIST(X, a) \
335 : X(a, STATIC, OPTIONAL, MESSAGE, transaction, 1) \
336 : X(a, STATIC, OPTIONAL, MESSAGE, meta, 2)
337 : #define fd_solblock_ConfirmedTransaction_CALLBACK NULL
338 : #define fd_solblock_ConfirmedTransaction_DEFAULT NULL
339 : #define fd_solblock_ConfirmedTransaction_transaction_MSGTYPE fd_solblock_Transaction
340 : #define fd_solblock_ConfirmedTransaction_meta_MSGTYPE fd_solblock_TransactionStatusMeta
341 :
342 : #define fd_solblock_InnerInstruction_FIELDLIST(X, a) \
343 : X(a, STATIC, OPTIONAL, UINT32, program_id_index, 1) \
344 : X(a, POINTER, OPTIONAL, BYTES, accounts, 2) \
345 : X(a, POINTER, OPTIONAL, BYTES, data, 3) \
346 : X(a, STATIC, OPTIONAL, UINT32, stack_height, 4)
347 : #define fd_solblock_InnerInstruction_CALLBACK NULL
348 : #define fd_solblock_InnerInstruction_DEFAULT NULL
349 :
350 : #define fd_solblock_InnerInstructions_FIELDLIST(X, a) \
351 : X(a, STATIC, OPTIONAL, UINT32, index, 1) \
352 : X(a, POINTER, REPEATED, MESSAGE, instructions, 2)
353 : #define fd_solblock_InnerInstructions_CALLBACK NULL
354 : #define fd_solblock_InnerInstructions_DEFAULT NULL
355 : #define fd_solblock_InnerInstructions_instructions_MSGTYPE fd_solblock_InnerInstruction
356 :
357 : #define fd_solblock_TransactionError_FIELDLIST(X, a) \
358 : X(a, POINTER, OPTIONAL, BYTES, err, 1)
359 : #define fd_solblock_TransactionError_CALLBACK NULL
360 : #define fd_solblock_TransactionError_DEFAULT NULL
361 :
362 : #define fd_solblock_UiTokenAmount_FIELDLIST(X, a) \
363 : X(a, STATIC, OPTIONAL, DOUBLE, ui_amount, 1) \
364 : X(a, STATIC, OPTIONAL, UINT32, decimals, 2) \
365 : X(a, POINTER, OPTIONAL, STRING, amount, 3) \
366 : X(a, POINTER, OPTIONAL, STRING, ui_amount_string, 4)
367 : #define fd_solblock_UiTokenAmount_CALLBACK NULL
368 : #define fd_solblock_UiTokenAmount_DEFAULT NULL
369 :
370 : #define fd_solblock_TokenBalance_FIELDLIST(X, a) \
371 : X(a, STATIC, OPTIONAL, UINT32, account_index, 1) \
372 : X(a, STATIC, OPTIONAL, STRING, mint, 2) \
373 : X(a, STATIC, OPTIONAL, MESSAGE, ui_token_amount, 3) \
374 : X(a, STATIC, OPTIONAL, STRING, owner, 4) \
375 : X(a, STATIC, OPTIONAL, STRING, program_id, 5)
376 : #define fd_solblock_TokenBalance_CALLBACK NULL
377 : #define fd_solblock_TokenBalance_DEFAULT NULL
378 : #define fd_solblock_TokenBalance_ui_token_amount_MSGTYPE fd_solblock_UiTokenAmount
379 :
380 : #define fd_solblock_Reward_FIELDLIST(X, a) \
381 : X(a, STATIC, OPTIONAL, STRING, pubkey, 1) \
382 : X(a, STATIC, OPTIONAL, INT64, lamports, 2) \
383 : X(a, STATIC, OPTIONAL, UINT64, post_balance, 3) \
384 : X(a, STATIC, OPTIONAL, UENUM, reward_type, 4) \
385 : X(a, POINTER, OPTIONAL, STRING, commission, 5)
386 : #define fd_solblock_Reward_CALLBACK NULL
387 : #define fd_solblock_Reward_DEFAULT NULL
388 :
389 : #define fd_solblock_ReturnData_FIELDLIST(X, a) \
390 : X(a, STATIC, OPTIONAL, FIXED_LENGTH_BYTES, program_id, 1) \
391 : X(a, CALLBACK, OPTIONAL, BYTES, data, 2)
392 : #define fd_solblock_ReturnData_CALLBACK pb_default_field_callback
393 : #define fd_solblock_ReturnData_DEFAULT NULL
394 :
395 : #define fd_solblock_TransactionStatusMeta_FIELDLIST(X, a) \
396 : X(a, STATIC, OPTIONAL, MESSAGE, err, 1) \
397 : X(a, STATIC, OPTIONAL, UINT64, fee, 2) \
398 : X(a, POINTER, REPEATED, UINT64, pre_balances, 3) \
399 : X(a, POINTER, REPEATED, UINT64, post_balances, 4) \
400 : X(a, POINTER, REPEATED, MESSAGE, inner_instructions, 5) \
401 : X(a, POINTER, REPEATED, STRING, log_messages, 6) \
402 : X(a, POINTER, REPEATED, MESSAGE, pre_token_balances, 7) \
403 : X(a, POINTER, REPEATED, MESSAGE, post_token_balances, 8) \
404 : X(a, POINTER, REPEATED, MESSAGE, rewards, 9) \
405 : X(a, STATIC, OPTIONAL, BOOL, inner_instructions_none, 10) \
406 : X(a, STATIC, OPTIONAL, BOOL, log_messages_none, 11) \
407 : X(a, POINTER, REPEATED, BYTES, loaded_writable_addresses, 12) \
408 : X(a, POINTER, REPEATED, BYTES, loaded_readonly_addresses, 13) \
409 : X(a, STATIC, OPTIONAL, MESSAGE, return_data, 14) \
410 : X(a, STATIC, OPTIONAL, BOOL, return_data_none, 15) \
411 : X(a, STATIC, OPTIONAL, UINT64, compute_units_consumed, 16)
412 : #define fd_solblock_TransactionStatusMeta_CALLBACK NULL
413 : #define fd_solblock_TransactionStatusMeta_DEFAULT NULL
414 : #define fd_solblock_TransactionStatusMeta_err_MSGTYPE fd_solblock_TransactionError
415 : #define fd_solblock_TransactionStatusMeta_inner_instructions_MSGTYPE fd_solblock_InnerInstructions
416 : #define fd_solblock_TransactionStatusMeta_pre_token_balances_MSGTYPE fd_solblock_TokenBalance
417 : #define fd_solblock_TransactionStatusMeta_post_token_balances_MSGTYPE fd_solblock_TokenBalance
418 : #define fd_solblock_TransactionStatusMeta_rewards_MSGTYPE fd_solblock_Reward
419 : #define fd_solblock_TransactionStatusMeta_return_data_MSGTYPE fd_solblock_ReturnData
420 :
421 : extern const pb_msgdesc_t fd_solblock_MessageHeader_msg;
422 : extern const pb_msgdesc_t fd_solblock_Instruction_msg;
423 : extern const pb_msgdesc_t fd_solblock_MessageAddressTableLookup_msg;
424 : extern const pb_msgdesc_t fd_solblock_Message_msg;
425 : extern const pb_msgdesc_t fd_solblock_Transaction_msg;
426 : extern const pb_msgdesc_t fd_solblock_ConfirmedTransaction_msg;
427 : extern const pb_msgdesc_t fd_solblock_InnerInstruction_msg;
428 : extern const pb_msgdesc_t fd_solblock_InnerInstructions_msg;
429 : extern const pb_msgdesc_t fd_solblock_TransactionError_msg;
430 : extern const pb_msgdesc_t fd_solblock_UiTokenAmount_msg;
431 : extern const pb_msgdesc_t fd_solblock_TokenBalance_msg;
432 : extern const pb_msgdesc_t fd_solblock_Reward_msg;
433 : extern const pb_msgdesc_t fd_solblock_ReturnData_msg;
434 : extern const pb_msgdesc_t fd_solblock_TransactionStatusMeta_msg;
435 :
436 : /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
437 : #define fd_solblock_MessageHeader_fields &fd_solblock_MessageHeader_msg
438 : #define fd_solblock_Instruction_fields &fd_solblock_Instruction_msg
439 : #define fd_solblock_MessageAddressTableLookup_fields &fd_solblock_MessageAddressTableLookup_msg
440 : #define fd_solblock_Message_fields &fd_solblock_Message_msg
441 : #define fd_solblock_Transaction_fields &fd_solblock_Transaction_msg
442 : #define fd_solblock_ConfirmedTransaction_fields &fd_solblock_ConfirmedTransaction_msg
443 : #define fd_solblock_InnerInstruction_fields &fd_solblock_InnerInstruction_msg
444 : #define fd_solblock_InnerInstructions_fields &fd_solblock_InnerInstructions_msg
445 : #define fd_solblock_TransactionError_fields &fd_solblock_TransactionError_msg
446 : #define fd_solblock_UiTokenAmount_fields &fd_solblock_UiTokenAmount_msg
447 : #define fd_solblock_TokenBalance_fields &fd_solblock_TokenBalance_msg
448 : #define fd_solblock_Reward_fields &fd_solblock_Reward_msg
449 : #define fd_solblock_ReturnData_fields &fd_solblock_ReturnData_msg
450 0 : #define fd_solblock_TransactionStatusMeta_fields &fd_solblock_TransactionStatusMeta_msg
451 :
452 : /* Maximum encoded size of messages (where known) */
453 : /* fd_solblock_Instruction_size depends on runtime parameters */
454 : /* fd_solblock_MessageAddressTableLookup_size depends on runtime parameters */
455 : /* fd_solblock_Message_size depends on runtime parameters */
456 : /* fd_solblock_Transaction_size depends on runtime parameters */
457 : /* fd_solblock_ConfirmedTransaction_size depends on runtime parameters */
458 : /* fd_solblock_InnerInstruction_size depends on runtime parameters */
459 : /* fd_solblock_InnerInstructions_size depends on runtime parameters */
460 : /* fd_solblock_TransactionError_size depends on runtime parameters */
461 : /* fd_solblock_UiTokenAmount_size depends on runtime parameters */
462 : /* fd_solblock_TokenBalance_size depends on runtime parameters */
463 : /* fd_solblock_Reward_size depends on runtime parameters */
464 : /* fd_solblock_ReturnData_size depends on runtime parameters */
465 : /* fd_solblock_TransactionStatusMeta_size depends on runtime parameters */
466 : #define SOLANA_STORAGE_CONFIRMEDBLOCK_FD_SOLANA_BLOCK_PB_H_MAX_SIZE fd_solblock_MessageHeader_size
467 : #define fd_solblock_MessageHeader_size 18
468 :
469 : /* Mapping from canonical names (mangle_names or overridden package name) */
470 : #define solana_storage_ConfirmedBlock_RewardType fd_solblock_RewardType
471 : #define solana_storage_ConfirmedBlock_MessageHeader fd_solblock_MessageHeader
472 : #define solana_storage_ConfirmedBlock_Instruction fd_solblock_Instruction
473 : #define solana_storage_ConfirmedBlock_MessageAddressTableLookup fd_solblock_MessageAddressTableLookup
474 : #define solana_storage_ConfirmedBlock_Message fd_solblock_Message
475 : #define solana_storage_ConfirmedBlock_Transaction fd_solblock_Transaction
476 : #define solana_storage_ConfirmedBlock_ConfirmedTransaction fd_solblock_ConfirmedTransaction
477 : #define solana_storage_ConfirmedBlock_InnerInstruction fd_solblock_InnerInstruction
478 : #define solana_storage_ConfirmedBlock_InnerInstructions fd_solblock_InnerInstructions
479 : #define solana_storage_ConfirmedBlock_TransactionError fd_solblock_TransactionError
480 : #define solana_storage_ConfirmedBlock_UiTokenAmount fd_solblock_UiTokenAmount
481 : #define solana_storage_ConfirmedBlock_TokenBalance fd_solblock_TokenBalance
482 : #define solana_storage_ConfirmedBlock_Reward fd_solblock_Reward
483 : #define solana_storage_ConfirmedBlock_ReturnData fd_solblock_ReturnData
484 : #define solana_storage_ConfirmedBlock_TransactionStatusMeta fd_solblock_TransactionStatusMeta
485 : #define _solana_storage_ConfirmedBlock_RewardType_MIN _fd_solblock_RewardType_MIN
486 : #define _solana_storage_ConfirmedBlock_RewardType_MAX _fd_solblock_RewardType_MAX
487 : #define _solana_storage_ConfirmedBlock_RewardType_ARRAYSIZE _fd_solblock_RewardType_ARRAYSIZE
488 : #define solana_storage_ConfirmedBlock_MessageHeader_init_default fd_solblock_MessageHeader_init_default
489 : #define solana_storage_ConfirmedBlock_Instruction_init_default fd_solblock_Instruction_init_default
490 : #define solana_storage_ConfirmedBlock_MessageAddressTableLookup_init_default fd_solblock_MessageAddressTableLookup_init_default
491 : #define solana_storage_ConfirmedBlock_Message_init_default fd_solblock_Message_init_default
492 : #define solana_storage_ConfirmedBlock_Transaction_init_default fd_solblock_Transaction_init_default
493 : #define solana_storage_ConfirmedBlock_ConfirmedTransaction_init_default fd_solblock_ConfirmedTransaction_init_default
494 : #define solana_storage_ConfirmedBlock_InnerInstruction_init_default fd_solblock_InnerInstruction_init_default
495 : #define solana_storage_ConfirmedBlock_InnerInstructions_init_default fd_solblock_InnerInstructions_init_default
496 : #define solana_storage_ConfirmedBlock_TransactionError_init_default fd_solblock_TransactionError_init_default
497 : #define solana_storage_ConfirmedBlock_UiTokenAmount_init_default fd_solblock_UiTokenAmount_init_default
498 : #define solana_storage_ConfirmedBlock_TokenBalance_init_default fd_solblock_TokenBalance_init_default
499 : #define solana_storage_ConfirmedBlock_Reward_init_default fd_solblock_Reward_init_default
500 : #define solana_storage_ConfirmedBlock_ReturnData_init_default fd_solblock_ReturnData_init_default
501 : #define solana_storage_ConfirmedBlock_TransactionStatusMeta_init_default fd_solblock_TransactionStatusMeta_init_default
502 : #define solana_storage_ConfirmedBlock_MessageHeader_init_zero fd_solblock_MessageHeader_init_zero
503 : #define solana_storage_ConfirmedBlock_Instruction_init_zero fd_solblock_Instruction_init_zero
504 : #define solana_storage_ConfirmedBlock_MessageAddressTableLookup_init_zero fd_solblock_MessageAddressTableLookup_init_zero
505 : #define solana_storage_ConfirmedBlock_Message_init_zero fd_solblock_Message_init_zero
506 : #define solana_storage_ConfirmedBlock_Transaction_init_zero fd_solblock_Transaction_init_zero
507 : #define solana_storage_ConfirmedBlock_ConfirmedTransaction_init_zero fd_solblock_ConfirmedTransaction_init_zero
508 : #define solana_storage_ConfirmedBlock_InnerInstruction_init_zero fd_solblock_InnerInstruction_init_zero
509 : #define solana_storage_ConfirmedBlock_InnerInstructions_init_zero fd_solblock_InnerInstructions_init_zero
510 : #define solana_storage_ConfirmedBlock_TransactionError_init_zero fd_solblock_TransactionError_init_zero
511 : #define solana_storage_ConfirmedBlock_UiTokenAmount_init_zero fd_solblock_UiTokenAmount_init_zero
512 : #define solana_storage_ConfirmedBlock_TokenBalance_init_zero fd_solblock_TokenBalance_init_zero
513 : #define solana_storage_ConfirmedBlock_Reward_init_zero fd_solblock_Reward_init_zero
514 : #define solana_storage_ConfirmedBlock_ReturnData_init_zero fd_solblock_ReturnData_init_zero
515 : #define solana_storage_ConfirmedBlock_TransactionStatusMeta_init_zero fd_solblock_TransactionStatusMeta_init_zero
516 :
517 : #ifdef __cplusplus
518 : } /* extern "C" */
519 : #endif
520 :
521 : #endif
|