Skip to main content

espresso_types/v0/v0_3/
mod.rs

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