LCOV - code coverage report
Current view: top level - flamenco/runtime/tests/generated - context.pb.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 2 5 40.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_CONTEXT_PB_H_INCLUDED
       5             : #define PB_ORG_SOLANA_SEALEVEL_V1_CONTEXT_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             : /* Struct definitions */
      14             : /* A set of feature flags. */
      15             : typedef struct fd_exec_test_feature_set {
      16             :     /* Every item in this list marks an enabled feature.  The value of
      17             :  each item is the first 8 bytes of the feature ID as a little-
      18             :  endian integer. */
      19             :     pb_size_t features_count;
      20             :     uint64_t *features;
      21             : } fd_exec_test_feature_set_t;
      22             : 
      23             : /* A seed address.  This is not a PDA. */
      24             : typedef struct fd_exec_test_seed_address {
      25             :     /* The seed address base.  (32 bytes) */
      26             :     pb_callback_t base;
      27             :     /* The seed path  (<= 32 bytes) */
      28             :     pb_callback_t seed;
      29             :     /* The seed address owner.  (32 bytes) */
      30             :     pb_callback_t owner;
      31             : } fd_exec_test_seed_address_t;
      32             : 
      33             : /* The complete state of an account excluding its public key. */
      34             : typedef struct fd_exec_test_acct_state {
      35             :     /* The account address.  (32 bytes) */
      36             :     pb_byte_t address[32];
      37             :     uint64_t lamports;
      38             :     /* Account data is limited to 10 MiB on Solana mainnet as of 2024-Feb. */
      39             :     pb_bytes_array_t *data;
      40             :     bool executable;
      41             :     /* The rent epoch is deprecated on Solana mainnet as of 2024-Feb.
      42             :  If ommitted, implies a value of UINT64_MAX. */
      43             :     uint64_t rent_epoch;
      44             :     /* Address of the program that owns this account.  (32 bytes) */
      45             :     pb_byte_t owner[32];
      46             :     /* The account address, but derived as a seed address.  Overrides
      47             :  `address` if present.
      48             :  TODO: This is a solfuzz specific extension and is not compliant
      49             :  with the org.solana.sealevel.v1 API. */
      50             :     bool has_seed_addr;
      51             :     fd_exec_test_seed_address_t seed_addr;
      52             : } fd_exec_test_acct_state_t;
      53             : 
      54             : /* EpochContext includes context scoped to an epoch.
      55             :  On "real" ledgers, it is created during the epoch boundary. */
      56             : typedef struct fd_exec_test_epoch_context {
      57             :     bool has_features;
      58             :     fd_exec_test_feature_set_t features;
      59             : } fd_exec_test_epoch_context_t;
      60             : 
      61             : /* SlotContext includes context scoped to a block.
      62             :  On "real" ledgers, it is created during the slot boundary. */
      63             : typedef struct fd_exec_test_slot_context {
      64             :     /* Slot number */
      65             :     uint64_t slot;
      66             : } fd_exec_test_slot_context_t;
      67             : 
      68             : 
      69             : #ifdef __cplusplus
      70             : extern "C" {
      71             : #endif
      72             : 
      73             : /* Initializer values for message structs */
      74           0 : #define FD_EXEC_TEST_FEATURE_SET_INIT_DEFAULT    {0, NULL}
      75             : #define FD_EXEC_TEST_SEED_ADDRESS_INIT_DEFAULT   {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
      76             : #define FD_EXEC_TEST_ACCT_STATE_INIT_DEFAULT     {{0}, 0, NULL, 0, 0, {0}, false, FD_EXEC_TEST_SEED_ADDRESS_INIT_DEFAULT}
      77           0 : #define FD_EXEC_TEST_EPOCH_CONTEXT_INIT_DEFAULT  {false, FD_EXEC_TEST_FEATURE_SET_INIT_DEFAULT}
      78           0 : #define FD_EXEC_TEST_SLOT_CONTEXT_INIT_DEFAULT   {0}
      79             : #define FD_EXEC_TEST_FEATURE_SET_INIT_ZERO       {0, NULL}
      80       47313 : #define FD_EXEC_TEST_SEED_ADDRESS_INIT_ZERO      {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
      81       47313 : #define FD_EXEC_TEST_ACCT_STATE_INIT_ZERO        {{0}, 0, NULL, 0, 0, {0}, false, FD_EXEC_TEST_SEED_ADDRESS_INIT_ZERO}
      82             : #define FD_EXEC_TEST_EPOCH_CONTEXT_INIT_ZERO     {false, FD_EXEC_TEST_FEATURE_SET_INIT_ZERO}
      83             : #define FD_EXEC_TEST_SLOT_CONTEXT_INIT_ZERO      {0}
      84             : 
      85             : /* Field tags (for use in manual encoding/decoding) */
      86             : #define FD_EXEC_TEST_FEATURE_SET_FEATURES_TAG    1
      87             : #define FD_EXEC_TEST_SEED_ADDRESS_BASE_TAG       1
      88             : #define FD_EXEC_TEST_SEED_ADDRESS_SEED_TAG       2
      89             : #define FD_EXEC_TEST_SEED_ADDRESS_OWNER_TAG      3
      90             : #define FD_EXEC_TEST_ACCT_STATE_ADDRESS_TAG      1
      91             : #define FD_EXEC_TEST_ACCT_STATE_LAMPORTS_TAG     2
      92             : #define FD_EXEC_TEST_ACCT_STATE_DATA_TAG         3
      93             : #define FD_EXEC_TEST_ACCT_STATE_EXECUTABLE_TAG   4
      94             : #define FD_EXEC_TEST_ACCT_STATE_RENT_EPOCH_TAG   5
      95             : #define FD_EXEC_TEST_ACCT_STATE_OWNER_TAG        6
      96             : #define FD_EXEC_TEST_ACCT_STATE_SEED_ADDR_TAG    7
      97             : #define FD_EXEC_TEST_EPOCH_CONTEXT_FEATURES_TAG  1
      98             : #define FD_EXEC_TEST_SLOT_CONTEXT_SLOT_TAG       1
      99             : 
     100             : /* Struct field encoding specification for nanopb */
     101             : #define FD_EXEC_TEST_FEATURE_SET_FIELDLIST(X, a) \
     102             : X(a, POINTER,  REPEATED, FIXED64,  features,          1)
     103             : #define FD_EXEC_TEST_FEATURE_SET_CALLBACK NULL
     104             : #define FD_EXEC_TEST_FEATURE_SET_DEFAULT NULL
     105             : 
     106             : #define FD_EXEC_TEST_SEED_ADDRESS_FIELDLIST(X, a) \
     107             : X(a, CALLBACK, SINGULAR, BYTES,    base,              1) \
     108             : X(a, CALLBACK, SINGULAR, BYTES,    seed,              2) \
     109             : X(a, CALLBACK, SINGULAR, BYTES,    owner,             3)
     110             : #define FD_EXEC_TEST_SEED_ADDRESS_CALLBACK pb_default_field_callback
     111             : #define FD_EXEC_TEST_SEED_ADDRESS_DEFAULT NULL
     112             : 
     113             : #define FD_EXEC_TEST_ACCT_STATE_FIELDLIST(X, a) \
     114             : X(a, STATIC,   SINGULAR, FIXED_LENGTH_BYTES, address,           1) \
     115             : X(a, STATIC,   SINGULAR, UINT64,   lamports,          2) \
     116             : X(a, POINTER,  SINGULAR, BYTES,    data,              3) \
     117             : X(a, STATIC,   SINGULAR, BOOL,     executable,        4) \
     118             : X(a, STATIC,   SINGULAR, UINT64,   rent_epoch,        5) \
     119             : X(a, STATIC,   SINGULAR, FIXED_LENGTH_BYTES, owner,             6) \
     120             : X(a, STATIC,   OPTIONAL, MESSAGE,  seed_addr,         7)
     121             : #define FD_EXEC_TEST_ACCT_STATE_CALLBACK NULL
     122             : #define FD_EXEC_TEST_ACCT_STATE_DEFAULT NULL
     123             : #define fd_exec_test_acct_state_t_seed_addr_MSGTYPE fd_exec_test_seed_address_t
     124             : 
     125             : #define FD_EXEC_TEST_EPOCH_CONTEXT_FIELDLIST(X, a) \
     126             : X(a, STATIC,   OPTIONAL, MESSAGE,  features,          1)
     127             : #define FD_EXEC_TEST_EPOCH_CONTEXT_CALLBACK NULL
     128             : #define FD_EXEC_TEST_EPOCH_CONTEXT_DEFAULT NULL
     129             : #define fd_exec_test_epoch_context_t_features_MSGTYPE fd_exec_test_feature_set_t
     130             : 
     131             : #define FD_EXEC_TEST_SLOT_CONTEXT_FIELDLIST(X, a) \
     132             : X(a, STATIC,   SINGULAR, FIXED64,  slot,              1)
     133             : #define FD_EXEC_TEST_SLOT_CONTEXT_CALLBACK NULL
     134             : #define FD_EXEC_TEST_SLOT_CONTEXT_DEFAULT NULL
     135             : 
     136             : extern const pb_msgdesc_t fd_exec_test_feature_set_t_msg;
     137             : extern const pb_msgdesc_t fd_exec_test_seed_address_t_msg;
     138             : extern const pb_msgdesc_t fd_exec_test_acct_state_t_msg;
     139             : extern const pb_msgdesc_t fd_exec_test_epoch_context_t_msg;
     140             : extern const pb_msgdesc_t fd_exec_test_slot_context_t_msg;
     141             : 
     142             : /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
     143             : #define FD_EXEC_TEST_FEATURE_SET_FIELDS &fd_exec_test_feature_set_t_msg
     144             : #define FD_EXEC_TEST_SEED_ADDRESS_FIELDS &fd_exec_test_seed_address_t_msg
     145             : #define FD_EXEC_TEST_ACCT_STATE_FIELDS &fd_exec_test_acct_state_t_msg
     146             : #define FD_EXEC_TEST_EPOCH_CONTEXT_FIELDS &fd_exec_test_epoch_context_t_msg
     147             : #define FD_EXEC_TEST_SLOT_CONTEXT_FIELDS &fd_exec_test_slot_context_t_msg
     148             : 
     149             : /* Maximum encoded size of messages (where known) */
     150             : /* fd_exec_test_FeatureSet_size depends on runtime parameters */
     151             : /* fd_exec_test_SeedAddress_size depends on runtime parameters */
     152             : /* fd_exec_test_AcctState_size depends on runtime parameters */
     153             : /* fd_exec_test_EpochContext_size depends on runtime parameters */
     154             : #define FD_EXEC_TEST_SLOT_CONTEXT_SIZE           9
     155             : #define ORG_SOLANA_SEALEVEL_V1_CONTEXT_PB_H_MAX_SIZE FD_EXEC_TEST_SLOT_CONTEXT_SIZE
     156             : 
     157             : /* Mapping from canonical names (mangle_names or overridden package name) */
     158             : #define org_solana_sealevel_v1_FeatureSet fd_exec_test_FeatureSet
     159             : #define org_solana_sealevel_v1_SeedAddress fd_exec_test_SeedAddress
     160             : #define org_solana_sealevel_v1_AcctState fd_exec_test_AcctState
     161             : #define org_solana_sealevel_v1_EpochContext fd_exec_test_EpochContext
     162             : #define org_solana_sealevel_v1_SlotContext fd_exec_test_SlotContext
     163             : #define ORG_SOLANA_SEALEVEL_V1_FEATURE_SET_INIT_DEFAULT FD_EXEC_TEST_FEATURE_SET_INIT_DEFAULT
     164             : #define ORG_SOLANA_SEALEVEL_V1_SEED_ADDRESS_INIT_DEFAULT FD_EXEC_TEST_SEED_ADDRESS_INIT_DEFAULT
     165             : #define ORG_SOLANA_SEALEVEL_V1_ACCT_STATE_INIT_DEFAULT FD_EXEC_TEST_ACCT_STATE_INIT_DEFAULT
     166             : #define ORG_SOLANA_SEALEVEL_V1_EPOCH_CONTEXT_INIT_DEFAULT FD_EXEC_TEST_EPOCH_CONTEXT_INIT_DEFAULT
     167             : #define ORG_SOLANA_SEALEVEL_V1_SLOT_CONTEXT_INIT_DEFAULT FD_EXEC_TEST_SLOT_CONTEXT_INIT_DEFAULT
     168             : #define ORG_SOLANA_SEALEVEL_V1_FEATURE_SET_INIT_ZERO FD_EXEC_TEST_FEATURE_SET_INIT_ZERO
     169             : #define ORG_SOLANA_SEALEVEL_V1_SEED_ADDRESS_INIT_ZERO FD_EXEC_TEST_SEED_ADDRESS_INIT_ZERO
     170             : #define ORG_SOLANA_SEALEVEL_V1_ACCT_STATE_INIT_ZERO FD_EXEC_TEST_ACCT_STATE_INIT_ZERO
     171             : #define ORG_SOLANA_SEALEVEL_V1_EPOCH_CONTEXT_INIT_ZERO FD_EXEC_TEST_EPOCH_CONTEXT_INIT_ZERO
     172             : #define ORG_SOLANA_SEALEVEL_V1_SLOT_CONTEXT_INIT_ZERO FD_EXEC_TEST_SLOT_CONTEXT_INIT_ZERO
     173             : 
     174             : #ifdef __cplusplus
     175             : } /* extern "C" */
     176             : #endif
     177             : 
     178             : #endif

Generated by: LCOV version 1.14