LCOV - code coverage report
Current view: top level - flamenco/runtime/tests/generated - block.pb.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 0 1 0.0 %
Date: 2025-09-18 04:41:32 Functions: 0 0 -

          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_cost_tracker {
      18             :     uint64_t block_cost;
      19             :     uint64_t vote_cost;
      20             : } fd_exec_test_cost_tracker_t;
      21             : 
      22             : typedef struct fd_exec_test_block_context {
      23             :     /* All transactions in this microblock (can be 0) */
      24             :     pb_size_t txns_count;
      25             :     struct fd_exec_test_sanitized_transaction *txns;
      26             :     /* Input account states */
      27             :     pb_size_t acct_states_count;
      28             :     struct fd_exec_test_acct_state *acct_states;
      29             :     /* The blockhash queue */
      30             :     pb_size_t blockhash_queue_count;
      31             :     pb_bytes_array_t **blockhash_queue;
      32             :     /* Slot context (contains slot number) */
      33             :     bool has_slot_ctx;
      34             :     fd_exec_test_slot_context_t slot_ctx;
      35             :     /* Epoch context (contains feature info) */
      36             :     bool has_epoch_ctx;
      37             :     fd_exec_test_epoch_context_t epoch_ctx;
      38             : } fd_exec_test_block_context_t;
      39             : 
      40             : typedef struct fd_exec_test_block_effects {
      41             :     /* If block execution failed */
      42             :     bool has_error;
      43             :     /* Slot capitalization */
      44             :     uint64_t slot_capitalization;
      45             :     /* Bank hash */
      46             :     pb_byte_t bank_hash[32];
      47             :     /* The cost tracker */
      48             :     bool has_cost_tracker;
      49             :     fd_exec_test_cost_tracker_t cost_tracker;
      50             : } fd_exec_test_block_effects_t;
      51             : 
      52             : typedef struct fd_exec_test_block_fixture {
      53             :     bool has_metadata;
      54             :     fd_exec_test_fixture_metadata_t metadata;
      55             :     /* The block input */
      56             :     bool has_input;
      57             :     fd_exec_test_block_context_t input;
      58             :     /* The output */
      59             :     bool has_output;
      60             :     fd_exec_test_block_effects_t output;
      61             : } fd_exec_test_block_fixture_t;
      62             : 
      63             : 
      64             : #ifdef __cplusplus
      65             : extern "C" {
      66             : #endif
      67             : 
      68             : /* Initializer values for message structs */
      69             : #define FD_EXEC_TEST_COST_TRACKER_INIT_DEFAULT   {0, 0}
      70             : #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}
      71             : #define FD_EXEC_TEST_BLOCK_EFFECTS_INIT_DEFAULT  {0, 0, {0}, false, FD_EXEC_TEST_COST_TRACKER_INIT_DEFAULT}
      72             : #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}
      73             : #define FD_EXEC_TEST_COST_TRACKER_INIT_ZERO      {0, 0}
      74             : #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}
      75             : #define FD_EXEC_TEST_BLOCK_EFFECTS_INIT_ZERO     {0, 0, {0}, false, FD_EXEC_TEST_COST_TRACKER_INIT_ZERO}
      76             : #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}
      77             : 
      78             : /* Field tags (for use in manual encoding/decoding) */
      79             : #define FD_EXEC_TEST_COST_TRACKER_BLOCK_COST_TAG 1
      80             : #define FD_EXEC_TEST_COST_TRACKER_VOTE_COST_TAG  2
      81             : #define FD_EXEC_TEST_BLOCK_CONTEXT_TXNS_TAG      1
      82             : #define FD_EXEC_TEST_BLOCK_CONTEXT_ACCT_STATES_TAG 2
      83             : #define FD_EXEC_TEST_BLOCK_CONTEXT_BLOCKHASH_QUEUE_TAG 3
      84             : #define FD_EXEC_TEST_BLOCK_CONTEXT_SLOT_CTX_TAG  4
      85             : #define FD_EXEC_TEST_BLOCK_CONTEXT_EPOCH_CTX_TAG 5
      86             : #define FD_EXEC_TEST_BLOCK_EFFECTS_HAS_ERROR_TAG 1
      87             : #define FD_EXEC_TEST_BLOCK_EFFECTS_SLOT_CAPITALIZATION_TAG 2
      88             : #define FD_EXEC_TEST_BLOCK_EFFECTS_BANK_HASH_TAG 3
      89             : #define FD_EXEC_TEST_BLOCK_EFFECTS_COST_TRACKER_TAG 4
      90             : #define FD_EXEC_TEST_BLOCK_FIXTURE_METADATA_TAG  1
      91             : #define FD_EXEC_TEST_BLOCK_FIXTURE_INPUT_TAG     2
      92             : #define FD_EXEC_TEST_BLOCK_FIXTURE_OUTPUT_TAG    3
      93             : 
      94             : /* Struct field encoding specification for nanopb */
      95             : #define FD_EXEC_TEST_COST_TRACKER_FIELDLIST(X, a) \
      96             : X(a, STATIC,   SINGULAR, UINT64,   block_cost,        1) \
      97             : X(a, STATIC,   SINGULAR, UINT64,   vote_cost,         2)
      98             : #define FD_EXEC_TEST_COST_TRACKER_CALLBACK NULL
      99             : #define FD_EXEC_TEST_COST_TRACKER_DEFAULT NULL
     100             : 
     101             : #define FD_EXEC_TEST_BLOCK_CONTEXT_FIELDLIST(X, a) \
     102             : X(a, POINTER,  REPEATED, MESSAGE,  txns,              1) \
     103             : X(a, POINTER,  REPEATED, MESSAGE,  acct_states,       2) \
     104             : X(a, POINTER,  REPEATED, BYTES,    blockhash_queue,   3) \
     105             : X(a, STATIC,   OPTIONAL, MESSAGE,  slot_ctx,          4) \
     106             : X(a, STATIC,   OPTIONAL, MESSAGE,  epoch_ctx,         5)
     107             : #define FD_EXEC_TEST_BLOCK_CONTEXT_CALLBACK NULL
     108             : #define FD_EXEC_TEST_BLOCK_CONTEXT_DEFAULT NULL
     109             : #define fd_exec_test_block_context_t_txns_MSGTYPE fd_exec_test_sanitized_transaction_t
     110             : #define fd_exec_test_block_context_t_acct_states_MSGTYPE fd_exec_test_acct_state_t
     111             : #define fd_exec_test_block_context_t_slot_ctx_MSGTYPE fd_exec_test_slot_context_t
     112             : #define fd_exec_test_block_context_t_epoch_ctx_MSGTYPE fd_exec_test_epoch_context_t
     113             : 
     114             : #define FD_EXEC_TEST_BLOCK_EFFECTS_FIELDLIST(X, a) \
     115             : X(a, STATIC,   SINGULAR, BOOL,     has_error,         1) \
     116             : X(a, STATIC,   SINGULAR, UINT64,   slot_capitalization,   2) \
     117             : X(a, STATIC,   SINGULAR, FIXED_LENGTH_BYTES, bank_hash,         3) \
     118             : X(a, STATIC,   OPTIONAL, MESSAGE,  cost_tracker,      4)
     119             : #define FD_EXEC_TEST_BLOCK_EFFECTS_CALLBACK NULL
     120             : #define FD_EXEC_TEST_BLOCK_EFFECTS_DEFAULT NULL
     121             : #define fd_exec_test_block_effects_t_cost_tracker_MSGTYPE fd_exec_test_cost_tracker_t
     122             : 
     123             : #define FD_EXEC_TEST_BLOCK_FIXTURE_FIELDLIST(X, a) \
     124             : X(a, STATIC,   OPTIONAL, MESSAGE,  metadata,          1) \
     125             : X(a, STATIC,   OPTIONAL, MESSAGE,  input,             2) \
     126             : X(a, STATIC,   OPTIONAL, MESSAGE,  output,            3)
     127             : #define FD_EXEC_TEST_BLOCK_FIXTURE_CALLBACK NULL
     128             : #define FD_EXEC_TEST_BLOCK_FIXTURE_DEFAULT NULL
     129             : #define fd_exec_test_block_fixture_t_metadata_MSGTYPE fd_exec_test_fixture_metadata_t
     130             : #define fd_exec_test_block_fixture_t_input_MSGTYPE fd_exec_test_block_context_t
     131             : #define fd_exec_test_block_fixture_t_output_MSGTYPE fd_exec_test_block_effects_t
     132             : 
     133             : extern const pb_msgdesc_t fd_exec_test_cost_tracker_t_msg;
     134             : extern const pb_msgdesc_t fd_exec_test_block_context_t_msg;
     135             : extern const pb_msgdesc_t fd_exec_test_block_effects_t_msg;
     136             : extern const pb_msgdesc_t fd_exec_test_block_fixture_t_msg;
     137             : 
     138             : /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
     139             : #define FD_EXEC_TEST_COST_TRACKER_FIELDS &fd_exec_test_cost_tracker_t_msg
     140           0 : #define FD_EXEC_TEST_BLOCK_CONTEXT_FIELDS &fd_exec_test_block_context_t_msg
     141             : #define FD_EXEC_TEST_BLOCK_EFFECTS_FIELDS &fd_exec_test_block_effects_t_msg
     142             : #define FD_EXEC_TEST_BLOCK_FIXTURE_FIELDS &fd_exec_test_block_fixture_t_msg
     143             : 
     144             : /* Maximum encoded size of messages (where known) */
     145             : /* fd_exec_test_BlockContext_size depends on runtime parameters */
     146             : /* fd_exec_test_BlockFixture_size depends on runtime parameters */
     147             : #define FD_EXEC_TEST_BLOCK_EFFECTS_SIZE          71
     148             : #define FD_EXEC_TEST_COST_TRACKER_SIZE           22
     149             : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_PB_H_MAX_SIZE FD_EXEC_TEST_BLOCK_EFFECTS_SIZE
     150             : 
     151             : /* Mapping from canonical names (mangle_names or overridden package name) */
     152             : #define org_solana_sealevel_v1_CostTracker fd_exec_test_CostTracker
     153             : #define org_solana_sealevel_v1_BlockContext fd_exec_test_BlockContext
     154             : #define org_solana_sealevel_v1_BlockEffects fd_exec_test_BlockEffects
     155             : #define org_solana_sealevel_v1_BlockFixture fd_exec_test_BlockFixture
     156             : #define ORG_SOLANA_SEALEVEL_V1_COST_TRACKER_INIT_DEFAULT FD_EXEC_TEST_COST_TRACKER_INIT_DEFAULT
     157             : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_CONTEXT_INIT_DEFAULT FD_EXEC_TEST_BLOCK_CONTEXT_INIT_DEFAULT
     158             : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_EFFECTS_INIT_DEFAULT FD_EXEC_TEST_BLOCK_EFFECTS_INIT_DEFAULT
     159             : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_FIXTURE_INIT_DEFAULT FD_EXEC_TEST_BLOCK_FIXTURE_INIT_DEFAULT
     160             : #define ORG_SOLANA_SEALEVEL_V1_COST_TRACKER_INIT_ZERO FD_EXEC_TEST_COST_TRACKER_INIT_ZERO
     161             : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_CONTEXT_INIT_ZERO FD_EXEC_TEST_BLOCK_CONTEXT_INIT_ZERO
     162             : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_EFFECTS_INIT_ZERO FD_EXEC_TEST_BLOCK_EFFECTS_INIT_ZERO
     163             : #define ORG_SOLANA_SEALEVEL_V1_BLOCK_FIXTURE_INIT_ZERO FD_EXEC_TEST_BLOCK_FIXTURE_INIT_ZERO
     164             : 
     165             : #ifdef __cplusplus
     166             : } /* extern "C" */
     167             : #endif
     168             : 
     169             : #endif

Generated by: LCOV version 1.14