Documentation
¶
Index ¶
- type Action
- type Addr
- type BlockInfo
- type BroadcastPrecommit
- type BroadcastPrevote
- type BroadcastProposal
- type Commit
- type Hash
- type Hashable
- type Height
- type Message
- type MessageHeader
- type MessageType
- type Precommit
- type Prevote
- type Proposal
- type ProposalCommitment
- type ProposalFin
- type ProposalInit
- type Round
- type ScheduleTimeout
- type Step
- type Timeout
- type Transaction
- type ValueID
- type Vote
- type VotingPower
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastPrecommit ¶
type BroadcastPrevote ¶
type Message ¶
type Message[V Hashable[H], H Hash, A Addr] interface { MsgType() MessageType GetHeight() Height }
type MessageHeader ¶
type MessageType ¶
type MessageType uint8
MessageType represents the type of message stored in the WAL.
const ( MessageTypeProposal MessageType = iota MessageTypePrevote MessageTypePrecommit MessageTypeTimeout MessageTypeUnknown )
func (MessageType) String ¶
func (m MessageType) String() string
String returns the string representation of the MessageType.
type Precommit ¶
func (Precommit[H, A]) MsgType ¶
func (p Precommit[H, A]) MsgType() MessageType
type Proposal ¶
type Proposal[V Hashable[H], H Hash, A Addr] struct { MessageHeader[A] ValidRound Round `cbor:"valid_round"` Value *V `cbor:"value"` }
func (Proposal[V, H, A]) MsgType ¶
func (p Proposal[V, H, A]) MsgType() MessageType
type ProposalCommitment ¶ added in v0.14.6
type ProposalCommitment struct {
BlockNumber uint64
Builder felt.Felt
// We must set these by hand. They will be compared against ProposalCommitment
ParentCommitment felt.Felt
Timestamp uint64
ProtocolVersion semver.Version
// These also need set by hand. However, we would need to update the DB
// and blockchain Reader interface, so they are ignored for now.
OldStateRoot felt.Felt
VersionConstantCommitment felt.Felt
NextL2GasPriceFRI felt.Felt // If empty proposal, use last value
// These values may be zero for empty proposals
StateDiffCommitment felt.Felt
TransactionCommitment felt.Felt
EventCommitment felt.Felt
ReceiptCommitment felt.Felt
ConcatenatedCounts felt.Felt
L1GasPriceFRI felt.Felt
L1DataGasPriceFRI felt.Felt
L2GasPriceFRI felt.Felt
L2GasUsed felt.Felt
L1DAMode core.L1DAMode
}
type ProposalFin ¶ added in v0.14.6
type ProposalInit ¶ added in v0.14.6
type ScheduleTimeout ¶
type ScheduleTimeout Timeout
type Timeout ¶
type Timeout struct {
Step Step
Height Height
Round Round
// contains filtered or unexported fields
}
func (Timeout) MsgType ¶
func (t Timeout) MsgType() MessageType
type Transaction ¶ added in v0.14.6
type Vote ¶
type Vote[H Hash, A Addr] struct { MessageHeader[A] ID *H `cbor:"id"` }
type VotingPower ¶
type VotingPower uint
Click to show internal directories.
Click to hide internal directories.