Skip to main content

Module v0

Module v0 

Source

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Β§

ADVZNamespaceProofQueryData
BackoffParams
ComputedRewards
EpochCommittees
Type to describe DA and Stake memberships.
EpochRewardsCalculator
Manages a single background epoch reward calculation. Each consumer (consensus and state loop) should have its own instance.
EpochRewardsResult
Result of epoch rewards calculation.
EpochSnapshot
A consistent per-epoch view of EpochCommittees.
GenesisHeader
Information about the genesis state which feeds into the genesis block header.
NamespaceProofQueryData
NewProposal
Proposal to append a block.
NodeState
Represents the immutable state of a node.
ParseDurationError
ParseSizeError
Ratio
RewardDistributor
SeqTypes
StakeTableState
Timestamp
TimestampMillis
UpgradeMap
NewType to hold upgrades and some convenience behavior.
ValidatedState
State to be validated by replicas.
ValidatorLeaderCounts
Maps each validator to its leader count for an epoch.
ValidatorSet

EnumsΒ§

BuilderValidationError
Possible builder validation failures
EpochCommitteesError
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.
ParseRatioError
ProposalValidationError
Possible proposal validation failures
StateValidationError
This enum is not used in code but functions as an index of possible validation errors.
TxProof
Update

ConstantsΒ§

BACKOFF_FACTOR
BACKOFF_JITTER
MAX_RETRY_DELAY
MIN_RETRY_DELAY
MOCK_SEQUENCER_VERSIONS

FunctionsΒ§

calculate_proportion_staked_and_reward_rate
Calculates the stake ratio p and reward rate R(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Β§

AuthenticatedValidatorMap
Certificate2
Type alias for the new protocol’s phase-2 certificate over Vote2Data
DrbAndHeaderUpgradeVersion
EpochRewardVersion
EpochVersion
Event
FeeVersion
Leaf
Leaf2
NetworkConfig
PrivKey
PubKey
RegisteredValidatorMap
StakeTableHash