Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributer ¶
type Attributer interface {
Version() int
PrevRandao() []byte
Timestamp() uint64
SuggestedFeeRecipient() []byte
Withdrawals() ([]*enginev1.Withdrawal, error)
ParentBeaconBlockRoot() ([]byte, error)
PbV1() (*enginev1.PayloadAttributes, error)
PbV2() (*enginev1.PayloadAttributesV2, error)
PbV3() (*enginev1.PayloadAttributesV3, error)
IsEmpty() bool
}
func EmptyWithVersion ¶
func EmptyWithVersion(version int) Attributer
EmptyWithVersion returns an empty payload attribute with the given version.
func New ¶
func New(i interface{}) (Attributer, error)
New returns a new payload attribute with the given input object.
type EventData ¶
type EventData struct {
ProposerIndex primitives.ValidatorIndex
ProposalSlot primitives.Slot
ParentBlockNumber uint64
ParentBlockRoot []byte
ParentBlockHash []byte
Attributer Attributer
HeadState state.BeaconState
HeadBlock interfaces.ReadOnlySignedBeaconBlock
HeadRoot [field_params.RootLength]byte
}
EventData holds the values for a PayloadAttributes event.
Click to show internal directories.
Click to hide internal directories.