Re-exportsΒ§
pub use v0_6::AccountQueryData;pub use v0_6::BlockMerkleCommitment;pub use v0_6::BlockMerkleTree;pub use v0_6::BuilderSignature;pub use v0_6::ChainId;pub use v0_6::FeeAccount;pub use v0_6::FeeAccountProof;pub use v0_6::FeeAmount;pub use v0_6::FeeInfo;pub use v0_6::FeeMerkleCommitment;pub use v0_6::FeeMerkleProof;pub use v0_6::FeeMerkleTree;pub use v0_6::Index;pub use v0_6::Iter;pub use v0_6::L1BlockInfo;pub use v0_6::L1ClientOptions;pub use v0_6::L1Snapshot;pub use v0_6::NamespaceId;pub use v0_6::NsIndex;pub use v0_6::NsIter;pub use v0_6::NsPayload;pub use v0_6::NsPayloadBuilder;pub use v0_6::NsPayloadByteLen;pub use v0_6::NsPayloadOwned;pub use v0_6::NsPayloadRange;pub use v0_6::NsTable;pub use v0_6::NsTableBuilder;pub use v0_6::NsTableValidationError;pub use v0_6::NumNss;pub use v0_6::NumTxs;pub use v0_6::NumTxsRange;pub use v0_6::NumTxsUnchecked;pub use v0_6::Payload;pub use v0_6::PayloadByteLen;pub use v0_6::Transaction;pub use v0_6::TxIndex;pub use v0_6::TxIter;pub use v0_6::TxPayload;pub use v0_6::TxPayloadRange;pub use v0_6::TxTableEntries;pub use v0_6::TxTableEntriesRange;pub use v0_6::Upgrade;pub use v0_6::UpgradeType;pub use v0_6::UpgradeMode;pub use v0_6::TimeBasedUpgrade;pub use v0_6::ViewBasedUpgrade;pub use v0_6::BlockSize;pub use v0_6::L1Client;pub use v0_3::StateCertQueryDataV1;pub use v0_4::StateCertQueryDataV2;pub use crate::v0_1::BLOCK_MERKLE_TREE_HEIGHT;pub use crate::v0_1::DECAF_CHAIN_ID;pub use crate::v0_1::FEE_MERKLE_TREE_HEIGHT;pub use crate::v0_1::NS_ID_BYTE_LEN;pub use crate::v0_1::NS_OFFSET_BYTE_LEN;pub use crate::v0_1::NUM_NSS_BYTE_LEN;pub use crate::v0_1::NUM_TXS_BYTE_LEN;pub use crate::v0_1::TX_OFFSET_BYTE_LEN;pub use crate::v0_3::ChainConfig;
ModulesΒ§
- config
- header π
- impls π
- mock
- nsproof π
- reward_
mt - Two-level Merkle tree for reward account balances.
- sparse_
mt - testing
- traits
- This module contains all the traits used for building the sequencer types. It also includes some trait implementations that cannot be implemented in an external crate.
- txproof π
- utils π
- v0_1
- v0_2
- v0_3
- v0_4
- v0_5
- v0_6
MacrosΒ§
- assert_
eq_ πall_ versions_ of_ type - define_
modules π - reexport_
latest_ πversion_ of_ type - reexport_
unchanged_ πtypes - Re-export types which have not changed across any minor version.
- with_
minor_ πversions
StructsΒ§
- ADVZ
Namespace Proof Query Data - Backoff
Params - Computed
Rewards - Epoch
Committees - Type to describe DA and Stake memberships.
- Epoch
Rewards Calculator - Manages a single background epoch reward calculation. Each consumer (consensus and state loop) should have its own instance.
- Epoch
Rewards Result - Result of epoch rewards calculation.
- Epoch
Snapshot - A consistent per-epoch view of
EpochCommittees. - Genesis
Header - Information about the genesis state which feeds into the genesis block header.
- Namespace
Proof Query Data - NewProposal
- Proposal to append a block.
- Node
State - Represents the immutable state of a node.
- Parse
Duration Error - Parse
Size Error - Ratio
- Reward
Distributor - SeqTypes
- Stake
Table State - Timestamp
- Timestamp
Millis - Upgrade
Map - NewType to hold upgrades and some convenience behavior.
- Validated
State - State to be validated by replicas.
- Validator
Leader Counts - Maps each validator to its leader count for an epoch.
- Validator
Set
EnumsΒ§
- Builder
Validation Error - Possible builder validation failures
- Epoch
Committees Error - FeeError
- Possible charge fee failures
- Header
- Each variant represents a specific minor version header.
- NsProof
- Each variant represents a specific version of a namespace proof.
- Parse
Ratio Error - Proposal
Validation Error - Possible proposal validation failures
- State
Validation Error - This enum is not used in code but functions as an index of possible validation errors.
- TxProof
- Update
ConstantsΒ§
FunctionsΒ§
- calculate_
proportion_ staked_ and_ reward_ rate - Calculates the stake ratio
pand reward rateR(p). - get_
l1_ deposits - parse_
duration - parse_
size - retain_
accounts - Get a partial snapshot of the given fee state, which contains only the specified accounts.
- to_
registered_ validator_ map - upgrade_
commitment_ map - validators_
from_ l1_ events
Type AliasesΒ§
- Authenticated
Validator Map - Certificate2
- Type alias for the new protocolβs phase-2 certificate over
Vote2Data - DrbAnd
Header Upgrade Version - Epoch
Reward Version - Epoch
Version - Event
- FeeVersion
- Leaf
- Leaf2
- Network
Config - PrivKey
- PubKey
- Registered
Validator Map - Stake
Table Hash