Line data Source code
1 : #ifndef HEADER_fd_src_flamenco_runtime_sysvar_fd_sysvar_base_h 2 : #define HEADER_fd_src_flamenco_runtime_sysvar_fd_sysvar_base_h 3 : 4 : #include "../../fd_flamenco_base.h" 5 : #include "../../accdb/fd_accdb_base.h" 6 : 7 : #define FD_SYSVAR_ALIGN_MAX (16UL) 8 : 9 3 : #define FD_SYSVAR_CLOCK_BINCODE_SZ ( 40UL) 10 : 11 : #define FD_SYSVAR_EPOCH_REWARDS_BINCODE_SZ ( 81UL) 12 : /* FD_SYSVAR_EPOCH_REWARDS_ALIGN provided by fd_types.h (16UL) */ 13 : #define FD_SYSVAR_EPOCH_REWARDS_FOOTPRINT ( 96UL) 14 : 15 36 : #define FD_SYSVAR_EPOCH_SCHEDULE_BINCODE_SZ ( 33UL) 16 : #define FD_SYSVAR_EPOCH_SCHEDULE_ALIGN ( 8UL) 17 : #define FD_SYSVAR_EPOCH_SCHEDULE_FOOTPRINT ( 40UL) 18 : 19 : #define FD_SYSVAR_LAST_RESTART_SLOT_BINCODE_SZ (8UL) 20 : #define FD_SYSVAR_LAST_RESTART_SLOT_ALIGN (8UL) 21 : #define FD_SYSVAR_LAST_RESTART_SLOT_FOOTPRINT (8UL) 22 : 23 3 : #define FD_SYSVAR_RECENT_HASHES_BINCODE_SZ ( 6008UL) /* Agave v2.2.1: https://github.com/anza-xyz/solana-sdk/blob/slot-history%40v2.2.1/sysvar/src/recent_blockhashes.rs#L157 */ 24 : #define FD_SYSVAR_RECENT_HASHES_ALIGN ( 8UL) 25 : #define FD_SYSVAR_RECENT_HASHES_FOOTPRINT ( 6088UL) 26 : 27 42 : #define FD_SYSVAR_RENT_BINCODE_SZ ( 17UL) 28 : #define FD_SYSVAR_RENT_ALIGN ( 8UL) 29 : #define FD_SYSVAR_RENT_FOOTPRINT ( 24UL) 30 : 31 576 : #define FD_SYSVAR_SLOT_HASHES_BINCODE_SZ ( 20488UL) /* Agave v2.2.1: https://github.com/anza-xyz/solana-sdk/blob/slot-history%40v2.2.1/sysvar/src/slot_hashes.rs#L69 */ 32 : #define FD_SYSVAR_SLOT_HASHES_ALIGN ( 8UL) 33 : #define FD_SYSVAR_SLOT_HASHES_FOOTPRINT ( 20528UL) 34 : 35 534 : #define FD_SYSVAR_SLOT_HISTORY_BINCODE_SZ (131097UL) /* Agave v2.2.1: https://github.com/anza-xyz/solana-sdk/blob/slot-history%40v2.2.1/sysvar/src/slot_history.rs#L65 */ 36 : #define FD_SYSVAR_SLOT_HISTORY_ALIGN ( 8UL) 37 : #define FD_SYSVAR_SLOT_HISTORY_FOOTPRINT (131120UL) 38 : 39 : #define FD_SYSVAR_STAKE_HISTORY_BINCODE_SZ ( 16392UL) /* Agave v2.2.1: https://github.com/anza-xyz/solana-sdk/blob/slot-history%40v2.2.1/sysvar/src/stake_history.rs#L66 */ 40 : #define FD_SYSVAR_STAKE_HISTORY_ALIGN ( 8UL) 41 : #define FD_SYSVAR_STAKE_HISTORY_FOOTPRINT ( 16408UL) 42 : 43 : struct fd_sol_sysvar_clock { 44 : ulong slot; 45 : long epoch_start_timestamp; 46 : ulong epoch; 47 : ulong leader_schedule_epoch; 48 : long unix_timestamp; 49 : }; 50 : typedef struct fd_sol_sysvar_clock fd_sol_sysvar_clock_t; 51 : 52 : #endif /* HEADER_fd_src_flamenco_runtime_sysvar_fd_sysvar_base_h */