Documentation ¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: 73917667ec5c3b06c8eba456504ef69eaafbc11e210f72a8543afa07756762aa
Code generated by fastssz. DO NOT EDIT. Hash: 70e995ecda118d2cea952b1a831e6cbc52b782de576b7b8f2b03b944e5710204
Code generated by fastssz. DO NOT EDIT. Hash: 8d1d0ce2f8dba3201511757c16283e61b7e61af8dd19847423bf92685bd2b591
Code generated by fastssz. DO NOT EDIT. Hash: 1d60b2f7503ae62dbe1b1eec7aef63ac15e11b4caf0d99046583503ea742c88a
Code generated by fastssz. DO NOT EDIT. Hash: 87cfb52adfbb2f238ebf5ef20daab43c3a54bc40789b7f7d303e6714e3456965
Code generated by fastssz. DO NOT EDIT. Hash: 87cfb52adfbb2f238ebf5ef20daab43c3a54bc40789b7f7d303e6714e3456965
Code generated by fastssz. DO NOT EDIT. Hash: ba05b86b7c5d0460b96554fed0a9434a68cb52284f08f0c316750188eddadb19
Code generated by fastssz. DO NOT EDIT. Hash: 60f0cd34ac0a43c9898048a7ba0ee4d604a2be26e3004dfb529796823e895e50
Code generated by fastssz. DO NOT EDIT. Hash: 11fa0877ac77d8a12ad1e550521cb5ecb386af10f1e7f8183b385bf37f95b972
Index ¶
- type BLSToExecutionChange
- func (b *BLSToExecutionChange) GetTree() (*ssz.Node, error)
- func (b *BLSToExecutionChange) HashTreeRoot() ([32]byte, error)
- func (b *BLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BLSToExecutionChange) MarshalJSON() ([]byte, error)
- func (b *BLSToExecutionChange) MarshalSSZ() ([]byte, error)
- func (b *BLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BLSToExecutionChange) MarshalYAML() ([]byte, error)
- func (b *BLSToExecutionChange) SizeSSZ() (size int)
- func (b *BLSToExecutionChange) String() string
- func (b *BLSToExecutionChange) UnmarshalJSON(input []byte) error
- func (b *BLSToExecutionChange) UnmarshalSSZ(buf []byte) error
- func (b *BLSToExecutionChange) UnmarshalYAML(input []byte) error
- type BeaconBlock
- func (b *BeaconBlock) GetTree() (*ssz.Node, error)
- func (b *BeaconBlock) HashTreeRoot() ([32]byte, error)
- func (b *BeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BeaconBlock) MarshalJSON() ([]byte, error)
- func (b *BeaconBlock) MarshalSSZ() ([]byte, error)
- func (b *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlock) MarshalYAML() ([]byte, error)
- func (b *BeaconBlock) SizeSSZ() (size int)
- func (b *BeaconBlock) String() string
- func (b *BeaconBlock) UnmarshalJSON(input []byte) error
- func (b *BeaconBlock) UnmarshalSSZ(buf []byte) error
- func (b *BeaconBlock) UnmarshalYAML(input []byte) error
- type BeaconBlockBody
- func (b *BeaconBlockBody) GetTree() (*ssz.Node, error)
- func (b *BeaconBlockBody) HashTreeRoot() ([32]byte, error)
- func (b *BeaconBlockBody) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
- func (b *BeaconBlockBody) MarshalSSZ() ([]byte, error)
- func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
- func (b *BeaconBlockBody) SizeSSZ() (size int)
- func (b *BeaconBlockBody) String() string
- func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error
- func (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error
- func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
- type BeaconState
- func (b *BeaconState) GetTree() (*ssz.Node, error)
- func (b *BeaconState) HashTreeRoot() ([32]byte, error)
- func (b *BeaconState) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *BeaconState) MarshalJSON() ([]byte, error)
- func (b *BeaconState) MarshalSSZ() ([]byte, error)
- func (b *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconState) SizeSSZ() (size int)
- func (s *BeaconState) String() string
- func (s *BeaconState) UnmarshalJSON(input []byte) error
- func (b *BeaconState) UnmarshalSSZ(buf []byte) error
- type ExecutionPayload
- func (e *ExecutionPayload) GetTree() (*ssz.Node, error)
- func (e *ExecutionPayload) HashTreeRoot() ([32]byte, error)
- func (e *ExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (e *ExecutionPayload) MarshalJSON() ([]byte, error)
- func (e *ExecutionPayload) MarshalSSZ() ([]byte, error)
- func (e *ExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutionPayload) MarshalYAML() ([]byte, error)
- func (e *ExecutionPayload) SizeSSZ() (size int)
- func (e *ExecutionPayload) String() string
- func (e *ExecutionPayload) UnmarshalJSON(input []byte) error
- func (e *ExecutionPayload) UnmarshalSSZ(buf []byte) error
- func (e *ExecutionPayload) UnmarshalYAML(input []byte) error
- type ExecutionPayloadHeader
- func (e *ExecutionPayloadHeader) GetTree() (*ssz.Node, error)
- func (e *ExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)
- func (e *ExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (e *ExecutionPayloadHeader) MarshalJSON() ([]byte, error)
- func (e *ExecutionPayloadHeader) MarshalSSZ() ([]byte, error)
- func (e *ExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutionPayloadHeader) MarshalYAML() ([]byte, error)
- func (e *ExecutionPayloadHeader) SizeSSZ() (size int)
- func (e *ExecutionPayloadHeader) String() string
- func (e *ExecutionPayloadHeader) UnmarshalJSON(input []byte) error
- func (e *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error
- func (e *ExecutionPayloadHeader) UnmarshalYAML(input []byte) error
- type SignedBLSToExecutionChange
- func (s *SignedBLSToExecutionChange) GetTree() (*ssz.Node, error)
- func (s *SignedBLSToExecutionChange) HashTreeRoot() ([32]byte, error)
- func (s *SignedBLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedBLSToExecutionChange) MarshalJSON() ([]byte, error)
- func (s *SignedBLSToExecutionChange) MarshalSSZ() ([]byte, error)
- func (s *SignedBLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBLSToExecutionChange) MarshalYAML() ([]byte, error)
- func (s *SignedBLSToExecutionChange) SizeSSZ() (size int)
- func (s *SignedBLSToExecutionChange) String() string
- func (s *SignedBLSToExecutionChange) UnmarshalJSON(input []byte) error
- func (s *SignedBLSToExecutionChange) UnmarshalSSZ(buf []byte) error
- func (s *SignedBLSToExecutionChange) UnmarshalYAML(input []byte) error
- type SignedBeaconBlock
- func (s *SignedBeaconBlock) GetTree() (*ssz.Node, error)
- func (s *SignedBeaconBlock) HashTreeRoot() ([32]byte, error)
- func (s *SignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
- func (s *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (s *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
- func (s *SignedBeaconBlock) SizeSSZ() (size int)
- func (s *SignedBeaconBlock) String() string
- func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error
- func (s *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error
- func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error
- type Withdrawal
- func (w *Withdrawal) GetTree() (*ssz.Node, error)
- func (w *Withdrawal) HashTreeRoot() ([32]byte, error)
- func (w *Withdrawal) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (w *Withdrawal) MarshalJSON() ([]byte, error)
- func (w *Withdrawal) MarshalSSZ() ([]byte, error)
- func (w *Withdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (w *Withdrawal) MarshalYAML() ([]byte, error)
- func (w *Withdrawal) SizeSSZ() (size int)
- func (w *Withdrawal) String() string
- func (w *Withdrawal) UnmarshalJSON(input []byte) error
- func (w *Withdrawal) UnmarshalSSZ(buf []byte) error
- func (w *Withdrawal) UnmarshalYAML(input []byte) error
- type WithdrawalIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLSToExecutionChange ¶
type BLSToExecutionChange struct { ValidatorIndex phase0.ValidatorIndex FromBLSPubkey phase0.BLSPubKey `ssz-size:"48"` ToExecutionAddress bellatrix.ExecutionAddress `ssz-size:"20"` }
BLSToExecutionChange provides information about a change of withdrawal credentials.
func (*BLSToExecutionChange) GetTree ¶
func (b *BLSToExecutionChange) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BLSToExecutionChange object
func (*BLSToExecutionChange) HashTreeRoot ¶
func (b *BLSToExecutionChange) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BLSToExecutionChange object
func (*BLSToExecutionChange) HashTreeRootWith ¶
func (b *BLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BLSToExecutionChange object with a hasher
func (*BLSToExecutionChange) MarshalJSON ¶
func (b *BLSToExecutionChange) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BLSToExecutionChange) MarshalSSZ ¶
func (b *BLSToExecutionChange) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BLSToExecutionChange object
func (*BLSToExecutionChange) MarshalSSZTo ¶
func (b *BLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BLSToExecutionChange object to a target array
func (*BLSToExecutionChange) MarshalYAML ¶
func (b *BLSToExecutionChange) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BLSToExecutionChange) SizeSSZ ¶
func (b *BLSToExecutionChange) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BLSToExecutionChange object
func (*BLSToExecutionChange) String ¶
func (b *BLSToExecutionChange) String() string
String returns a string version of the structure.
func (*BLSToExecutionChange) UnmarshalJSON ¶
func (b *BLSToExecutionChange) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BLSToExecutionChange) UnmarshalSSZ ¶
func (b *BLSToExecutionChange) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BLSToExecutionChange object
func (*BLSToExecutionChange) UnmarshalYAML ¶
func (b *BLSToExecutionChange) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconBlock ¶
type BeaconBlock struct { Slot phase0.Slot ProposerIndex phase0.ValidatorIndex ParentRoot phase0.Root `ssz-size:"32"` StateRoot phase0.Root `ssz-size:"32"` Body *BeaconBlockBody }
BeaconBlock represents a beacon block.
func (*BeaconBlock) GetTree ¶
func (b *BeaconBlock) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconBlock object
func (*BeaconBlock) HashTreeRoot ¶
func (b *BeaconBlock) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconBlock object
func (*BeaconBlock) HashTreeRootWith ¶
func (b *BeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconBlock object with a hasher
func (*BeaconBlock) MarshalJSON ¶
func (b *BeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlock) MarshalSSZ ¶
func (b *BeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconBlock object
func (*BeaconBlock) MarshalSSZTo ¶
func (b *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconBlock object to a target array
func (*BeaconBlock) MarshalYAML ¶
func (b *BeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlock) SizeSSZ ¶
func (b *BeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconBlock object
func (*BeaconBlock) String ¶
func (b *BeaconBlock) String() string
String returns a string version of the structure.
func (*BeaconBlock) UnmarshalJSON ¶
func (b *BeaconBlock) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconBlock) UnmarshalSSZ ¶
func (b *BeaconBlock) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconBlock object
func (*BeaconBlock) UnmarshalYAML ¶
func (b *BeaconBlock) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconBlockBody ¶
type BeaconBlockBody struct { RANDAOReveal phase0.BLSSignature `ssz-size:"96"` ETH1Data *phase0.ETH1Data Graffiti [32]byte `ssz-size:"32"` ProposerSlashings []*phase0.ProposerSlashing `ssz-max:"16"` AttesterSlashings []*phase0.AttesterSlashing `ssz-max:"2"` Attestations []*phase0.Attestation `ssz-max:"128"` Deposits []*phase0.Deposit `ssz-max:"16"` VoluntaryExits []*phase0.SignedVoluntaryExit `ssz-max:"16"` SyncAggregate *altair.SyncAggregate ExecutionPayload *ExecutionPayload BLSToExecutionChanges []*SignedBLSToExecutionChange `ssz-max:"16"` }
BeaconBlockBody represents the body of a beacon block.
func (*BeaconBlockBody) GetTree ¶
func (b *BeaconBlockBody) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconBlockBody object
func (*BeaconBlockBody) HashTreeRoot ¶
func (b *BeaconBlockBody) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconBlockBody object
func (*BeaconBlockBody) HashTreeRootWith ¶
func (b *BeaconBlockBody) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconBlockBody object with a hasher
func (*BeaconBlockBody) MarshalJSON ¶
func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlockBody) MarshalSSZ ¶
func (b *BeaconBlockBody) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconBlockBody object
func (*BeaconBlockBody) MarshalSSZTo ¶
func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconBlockBody object to a target array
func (*BeaconBlockBody) MarshalYAML ¶
func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlockBody) SizeSSZ ¶
func (b *BeaconBlockBody) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconBlockBody object
func (*BeaconBlockBody) String ¶
func (b *BeaconBlockBody) String() string
String returns a string version of the structure.
func (*BeaconBlockBody) UnmarshalJSON ¶
func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconBlockBody) UnmarshalSSZ ¶
func (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconBlockBody object
func (*BeaconBlockBody) UnmarshalYAML ¶
func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconState ¶
type BeaconState struct { GenesisTime uint64 GenesisValidatorsRoot []byte `ssz-size:"32"` Slot uint64 Fork *phase0.Fork LatestBlockHeader *phase0.BeaconBlockHeader BlockRoots [][]byte `ssz-size:"8192,32"` StateRoots [][]byte `ssz-size:"8192,32"` HistoricalRoots [][]byte `ssz-size:"?,32" ssz-max:"16777216"` ETH1Data *phase0.ETH1Data ETH1DataVotes []*phase0.ETH1Data `ssz-max:"2048"` ETH1DepositIndex uint64 Validators []*phase0.Validator `ssz-max:"1099511627776"` Balances []uint64 `ssz-max:"1099511627776"` RANDAOMixes [][]byte `ssz-size:"65536,32"` Slashings []uint64 `ssz-size:"8192"` PreviousEpochParticipation []altair.ParticipationFlags `ssz-size:"1099511627776"` CurrentEpochParticipation []altair.ParticipationFlags `ssz-size:"1099511627776"` JustificationBits bitfield.Bitvector4 `ssz-size:"1"` PreviousJustifiedCheckpoint *phase0.Checkpoint CurrentJustifiedCheckpoint *phase0.Checkpoint FinalizedCheckpoint *phase0.Checkpoint InactivityScores []uint64 `ssz-size:"1099511627776"` CurrentSyncCommittee *altair.SyncCommittee NextSyncCommittee *altair.SyncCommittee LatestExecutionPayloadHeader *ExecutionPayloadHeader WithdrawalQueue []*Withdrawal `ssz-max:"1099511627776"` NextWithdrawalIndex WithdrawalIndex NextPartialWithdrawalValidatorIndex phase0.ValidatorIndex }
BeaconState represents a beacon state.
func (*BeaconState) GetTree ¶
func (b *BeaconState) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconState object
func (*BeaconState) HashTreeRoot ¶
func (b *BeaconState) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconState object
func (*BeaconState) HashTreeRootWith ¶
func (b *BeaconState) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconState object with a hasher
func (*BeaconState) MarshalJSON ¶
func (s *BeaconState) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconState) MarshalSSZ ¶
func (b *BeaconState) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconState object
func (*BeaconState) MarshalSSZTo ¶
func (b *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconState object to a target array
func (*BeaconState) SizeSSZ ¶
func (b *BeaconState) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconState object
func (*BeaconState) String ¶
func (s *BeaconState) String() string
String returns a string version of the structure.
func (*BeaconState) UnmarshalJSON ¶
func (s *BeaconState) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler. nolint:gocyclo
func (*BeaconState) UnmarshalSSZ ¶
func (b *BeaconState) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconState object
type ExecutionPayload ¶
type ExecutionPayload struct { ParentHash phase0.Hash32 `ssz-size:"32"` FeeRecipient bellatrix.ExecutionAddress `ssz-size:"20"` StateRoot [32]byte `ssz-size:"32"` ReceiptsRoot [32]byte `ssz-size:"32"` LogsBloom [256]byte `ssz-size:"256"` PrevRandao [32]byte `ssz-size:"32"` BlockNumber uint64 GasLimit uint64 GasUsed uint64 Timestamp uint64 ExtraData []byte `ssz-max:"32"` BaseFeePerGas [32]byte `ssz-size:"32"` BlockHash phase0.Hash32 `ssz-size:"32"` Transactions []bellatrix.Transaction `ssz-max:"1048576,1073741824"` Withdrawals []*Withdrawal `ssz-max:"16"` }
ExecutionPayload represents an execution layer payload.
func (*ExecutionPayload) GetTree ¶
func (e *ExecutionPayload) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ExecutionPayload object
func (*ExecutionPayload) HashTreeRoot ¶
func (e *ExecutionPayload) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ExecutionPayload object
func (*ExecutionPayload) HashTreeRootWith ¶
func (e *ExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ExecutionPayload object with a hasher
func (*ExecutionPayload) MarshalJSON ¶
func (e *ExecutionPayload) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ExecutionPayload) MarshalSSZ ¶
func (e *ExecutionPayload) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ExecutionPayload object
func (*ExecutionPayload) MarshalSSZTo ¶
func (e *ExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ExecutionPayload object to a target array
func (*ExecutionPayload) MarshalYAML ¶
func (e *ExecutionPayload) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*ExecutionPayload) SizeSSZ ¶
func (e *ExecutionPayload) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ExecutionPayload object
func (*ExecutionPayload) String ¶
func (e *ExecutionPayload) String() string
String returns a string version of the structure.
func (*ExecutionPayload) UnmarshalJSON ¶
func (e *ExecutionPayload) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*ExecutionPayload) UnmarshalSSZ ¶
func (e *ExecutionPayload) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ExecutionPayload object
func (*ExecutionPayload) UnmarshalYAML ¶
func (e *ExecutionPayload) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type ExecutionPayloadHeader ¶
type ExecutionPayloadHeader struct { ParentHash phase0.Hash32 `ssz-size:"32"` FeeRecipient bellatrix.ExecutionAddress `ssz-size:"20"` StateRoot [32]byte `ssz-size:"32"` ReceiptsRoot [32]byte `ssz-size:"32"` LogsBloom [256]byte `ssz-size:"256"` PrevRandao [32]byte `ssz-size:"32"` BlockNumber uint64 GasLimit uint64 GasUsed uint64 Timestamp uint64 ExtraData []byte `ssz-max:"32"` BaseFeePerGas [32]byte `ssz-size:"32"` BlockHash phase0.Hash32 `ssz-size:"32"` TransactionsRoot phase0.Root `ssz-size:"32"` WithdrawalsRoot phase0.Root `ssz-size:"32"` }
ExecutionPayloadHeader represents an execution layer payload header.
func (*ExecutionPayloadHeader) GetTree ¶
func (e *ExecutionPayloadHeader) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) HashTreeRoot ¶
func (e *ExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) HashTreeRootWith ¶
func (e *ExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ExecutionPayloadHeader object with a hasher
func (*ExecutionPayloadHeader) MarshalJSON ¶
func (e *ExecutionPayloadHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ExecutionPayloadHeader) MarshalSSZ ¶
func (e *ExecutionPayloadHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) MarshalSSZTo ¶
func (e *ExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ExecutionPayloadHeader object to a target array
func (*ExecutionPayloadHeader) MarshalYAML ¶
func (e *ExecutionPayloadHeader) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*ExecutionPayloadHeader) SizeSSZ ¶
func (e *ExecutionPayloadHeader) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) String ¶
func (e *ExecutionPayloadHeader) String() string
String returns a string version of the structure.
func (*ExecutionPayloadHeader) UnmarshalJSON ¶
func (e *ExecutionPayloadHeader) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*ExecutionPayloadHeader) UnmarshalSSZ ¶
func (e *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) UnmarshalYAML ¶
func (e *ExecutionPayloadHeader) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedBLSToExecutionChange ¶
type SignedBLSToExecutionChange struct { Message *BLSToExecutionChange Signature phase0.BLSSignature `ssz-size:"96"` }
SignedBLSToExecutionChange provides information about a signed BLS to execution change.
func (*SignedBLSToExecutionChange) GetTree ¶
func (s *SignedBLSToExecutionChange) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) HashTreeRoot ¶
func (s *SignedBLSToExecutionChange) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) HashTreeRootWith ¶
func (s *SignedBLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedBLSToExecutionChange object with a hasher
func (*SignedBLSToExecutionChange) MarshalJSON ¶
func (s *SignedBLSToExecutionChange) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBLSToExecutionChange) MarshalSSZ ¶
func (s *SignedBLSToExecutionChange) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) MarshalSSZTo ¶
func (s *SignedBLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedBLSToExecutionChange object to a target array
func (*SignedBLSToExecutionChange) MarshalYAML ¶
func (s *SignedBLSToExecutionChange) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBLSToExecutionChange) SizeSSZ ¶
func (s *SignedBLSToExecutionChange) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) String ¶
func (s *SignedBLSToExecutionChange) String() string
String returns a string version of the structure.
func (*SignedBLSToExecutionChange) UnmarshalJSON ¶
func (s *SignedBLSToExecutionChange) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedBLSToExecutionChange) UnmarshalSSZ ¶
func (s *SignedBLSToExecutionChange) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) UnmarshalYAML ¶
func (s *SignedBLSToExecutionChange) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedBeaconBlock ¶
type SignedBeaconBlock struct { Message *BeaconBlock Signature phase0.BLSSignature `ssz-size:"96"` }
SignedBeaconBlock is a signed beacon block.
func (*SignedBeaconBlock) GetTree ¶
func (s *SignedBeaconBlock) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedBeaconBlock object
func (*SignedBeaconBlock) HashTreeRoot ¶
func (s *SignedBeaconBlock) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedBeaconBlock object
func (*SignedBeaconBlock) HashTreeRootWith ¶
func (s *SignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedBeaconBlock object with a hasher
func (*SignedBeaconBlock) MarshalJSON ¶
func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBeaconBlock) MarshalSSZ ¶
func (s *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedBeaconBlock object
func (*SignedBeaconBlock) MarshalSSZTo ¶
func (s *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedBeaconBlock object to a target array
func (*SignedBeaconBlock) MarshalYAML ¶
func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBeaconBlock) SizeSSZ ¶
func (s *SignedBeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedBeaconBlock object
func (*SignedBeaconBlock) String ¶
func (s *SignedBeaconBlock) String() string
String returns a string version of the structure.
func (*SignedBeaconBlock) UnmarshalJSON ¶
func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedBeaconBlock) UnmarshalSSZ ¶
func (s *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedBeaconBlock object
func (*SignedBeaconBlock) UnmarshalYAML ¶
func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Withdrawal ¶
type Withdrawal struct { Index WithdrawalIndex Address bellatrix.ExecutionAddress `ssz-size:"20"` Amount phase0.Gwei }
Withdrawal provides information about a withdrawal.
func (*Withdrawal) GetTree ¶
func (w *Withdrawal) GetTree() (*ssz.Node, error)
GetTree ssz hashes the Withdrawal object
func (*Withdrawal) HashTreeRoot ¶
func (w *Withdrawal) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the Withdrawal object
func (*Withdrawal) HashTreeRootWith ¶
func (w *Withdrawal) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Withdrawal object with a hasher
func (*Withdrawal) MarshalJSON ¶
func (w *Withdrawal) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*Withdrawal) MarshalSSZ ¶
func (w *Withdrawal) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the Withdrawal object
func (*Withdrawal) MarshalSSZTo ¶
func (w *Withdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the Withdrawal object to a target array
func (*Withdrawal) MarshalYAML ¶
func (w *Withdrawal) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*Withdrawal) SizeSSZ ¶
func (w *Withdrawal) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the Withdrawal object
func (*Withdrawal) String ¶
func (w *Withdrawal) String() string
String returns a string version of the structure.
func (*Withdrawal) UnmarshalJSON ¶
func (w *Withdrawal) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*Withdrawal) UnmarshalSSZ ¶
func (w *Withdrawal) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the Withdrawal object
func (*Withdrawal) UnmarshalYAML ¶
func (w *Withdrawal) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type WithdrawalIndex ¶
type WithdrawalIndex uint64
WithdrawalIndex is the index of a withdrawal operation.
Source Files ¶
- beaconblock.go
- beaconblock_ssz.go
- beaconblockbody.go
- beaconblockbody_ssz.go
- beaconstate.go
- beaconstate_ssz.go
- blstoexecutionchange.go
- blstoexecutionchange_ssz.go
- consts.go
- executionpayload.go
- executionpayload_ssz.go
- executionpayloadheader.go
- executionpayloadheader_ssz.go
- generate.go
- signedbeaconblock.go
- signedbeaconblock_ssz.go
- signedblstoexecutionchange.go
- signedblstoexecutionchange_ssz.go
- types.go
- withdrawal.go
- withdrawal_ssz.go