Skip to main content

espresso_types/v0/v0_3/
mod.rs

1use vbs::version::Version;
2
3// Re-export types which haven't changed since the last minor version.
4pub use super::v0_1::{
5    ADVZNsProof, ADVZTxProof, AccountQueryData, BLOCK_MERKLE_TREE_HEIGHT, BlockMerkleCommitment,
6    BlockMerkleTree, BlockSize, BuilderSignature, ChainId, FEE_MERKLE_TREE_HEIGHT, FeeAccount,
7    FeeAccountProof, FeeAmount, FeeInfo, FeeMerkleCommitment, FeeMerkleProof, FeeMerkleTree, Index,
8    Iter, L1BlockInfo, L1Client, L1ClientOptions, L1Snapshot, NS_ID_BYTE_LEN, NS_OFFSET_BYTE_LEN,
9    NUM_NSS_BYTE_LEN, NUM_TXS_BYTE_LEN, NamespaceId, NsIndex, NsIter, NsPayload, NsPayloadBuilder,
10    NsPayloadByteLen, NsPayloadOwned, NsPayloadRange, NsTable, NsTableBuilder,
11    NsTableValidationError, NumNss, NumTxs, NumTxsRange, NumTxsUnchecked, Payload, PayloadByteLen,
12    TX_OFFSET_BYTE_LEN, TimeBasedUpgrade, Transaction, TxIndex, TxIter, TxPayload, TxPayloadRange,
13    TxTableEntries, TxTableEntriesRange, Upgrade, UpgradeMode, UpgradeType, ViewBasedUpgrade,
14};
15pub(crate) use super::v0_1::{L1ClientMetrics, L1Event, L1State, L1UpdateTask};
16
17pub const VERSION: Version = Version { major: 0, minor: 3 };
18
19/// Maximum number of active validators in the stake table.
20///
21/// `select_active_validator_set()` picks the top `MAX_VALIDATORS` validators
22/// by stake. Only these validators participate in consensus and can be elected
23/// leader.
24pub const MAX_VALIDATORS: usize = 100;
25
26mod chain_config;
27mod header;
28mod nsproof;
29mod stake_table;
30mod state;
31mod state_cert;
32mod txproof;
33
34pub use chain_config::*;
35pub use header::*;
36pub use nsproof::*;
37pub use stake_table::*;
38pub use state::*;
39pub use state_cert::*;
40pub use txproof::*;