pub type MockHeader = TestBlockHeader;Aliased Type§
pub struct MockHeader {
pub block_number: u64,
pub payload_commitment: VidCommitment,
pub builder_commitment: BuilderCommitment,
pub metadata: TestMetadata,
pub timestamp: u64,
pub timestamp_millis: u64,
pub random: u64,
pub version: Version,
}Fields§
§block_number: u64Block number.
payload_commitment: VidCommitmentVID commitment to the payload.
builder_commitment: BuilderCommitmentFast commitment for builder verification
metadata: TestMetadatablock metadata
timestamp: u64Timestamp when this header was created.
timestamp_millis: u64Timestamp when this header was created.
random: u64random
version: Versionversion
Trait Implementations§
Source§impl ExplorerHeader<MockTypes> for MockHeader
impl ExplorerHeader<MockTypes> for MockHeader
Source§type BalanceAmount = i128
type BalanceAmount = i128
BalanceAmount is a type that represents a general balance amount. It
does not indicate how this balance is represented, just that there is
a representation of it that adheres to the trait restrictions specified.
Source§type WalletAddress = [u8; 32]
type WalletAddress = [u8; 32]
WalletAddress is a type that represents the address of a Wallet. It
does not indicate how this address is represented, just that there is
a representation of it that adheres to the trait restrictions specified.
Source§type ProposerId = [u8; 32]
type ProposerId = [u8; 32]
ProposerId is a type that represents the proposer id of the block. It
does not indicate how this proposer id is represented, just that there is
a representation of it that adheres to the trait restrictions specified.
Source§fn proposer_id(&self) -> Self::ProposerId
fn proposer_id(&self) -> Self::ProposerId
The proposer id of the block as stored within the block header.
Source§fn fee_info_account(&self) -> Self::WalletAddress
fn fee_info_account(&self) -> Self::WalletAddress
The wallet address of the fee info account contained within the block
header.
Source§fn fee_info_balance(&self) -> Self::BalanceAmount
fn fee_info_balance(&self) -> Self::BalanceAmount
The balance amount of the fee info contained within the block header.
Source§fn reward_balance(&self) -> Self::BalanceAmount
fn reward_balance(&self) -> Self::BalanceAmount
The balance amount of the reward for constructing the block.
Source§fn namespace_ids(&self) -> Vec<i64>
fn namespace_ids(&self) -> Vec<i64>
A collection of namespace ids that are contained within the block header.
Source§impl HeightIndexed for MockHeader
impl HeightIndexed for MockHeader
Source§impl QueryableHeader<MockTypes> for MockHeader
impl QueryableHeader<MockTypes> for MockHeader
Source§type NamespaceId = i64
type NamespaceId = i64
Serialized representation of a namespace.
Source§type NamespaceIndex = i64
type NamespaceIndex = i64
Index for looking up a namespace.