mock

package
v4.0.0-...-b8b0360 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconBlock

type BeaconBlock struct {
	Htr             [field_params.RootLength]byte
	HtrErr          error
	BeaconBlockBody interfaces.ReadOnlyBeaconBlockBody
	BlockSlot       primitives.Slot
}

func (BeaconBlock) AsSignRequestObject

func (BeaconBlock) AsSignRequestObject() (validatorpb.SignRequestObject, error)

func (BeaconBlock) Body

func (BeaconBlock) Copy

func (BeaconBlock) HashTreeRoot

func (m BeaconBlock) HashTreeRoot() ([field_params.RootLength]byte, error)

func (BeaconBlock) HashTreeRootWith

func (BeaconBlock) HashTreeRootWith(_ *ssz.Hasher) error

func (BeaconBlock) IsBlinded

func (BeaconBlock) IsBlinded() bool

func (BeaconBlock) IsNil

func (BeaconBlock) IsNil() bool

func (BeaconBlock) MarshalSSZ

func (BeaconBlock) MarshalSSZ() ([]byte, error)

func (BeaconBlock) MarshalSSZTo

func (BeaconBlock) MarshalSSZTo(_ []byte) ([]byte, error)

func (BeaconBlock) ParentRoot

func (BeaconBlock) ParentRoot() [field_params.RootLength]byte

func (BeaconBlock) ProposerIndex

func (BeaconBlock) ProposerIndex() primitives.ValidatorIndex

func (BeaconBlock) Proto

func (BeaconBlock) Proto() (proto.Message, error)

func (BeaconBlock) SetBlinded

func (BeaconBlock) SetBlinded(_ bool)

func (BeaconBlock) SetParentRoot

func (BeaconBlock) SetParentRoot(_ []byte)

func (BeaconBlock) SetProposerIndex

func (BeaconBlock) SetProposerIndex(_ primitives.ValidatorIndex)

func (BeaconBlock) SetSlot

func (BeaconBlock) SetSlot(_ primitives.Slot)

func (*BeaconBlock) SetStateRoot

func (b *BeaconBlock) SetStateRoot(root []byte)

func (BeaconBlock) SizeSSZ

func (BeaconBlock) SizeSSZ() int

func (BeaconBlock) Slot

func (m BeaconBlock) Slot() primitives.Slot

func (BeaconBlock) StateRoot

func (BeaconBlock) StateRoot() [field_params.RootLength]byte

func (BeaconBlock) ToBlinded

func (BeaconBlock) UnmarshalSSZ

func (BeaconBlock) UnmarshalSSZ(_ []byte) error

func (BeaconBlock) Version

func (BeaconBlock) Version() int

type BeaconBlockBody

type BeaconBlockBody struct{}

func (*BeaconBlockBody) Attestations

func (b *BeaconBlockBody) Attestations() []*zond.Attestation

func (BeaconBlockBody) AttesterSlashings

func (BeaconBlockBody) AttesterSlashings() []*zond.AttesterSlashing

func (*BeaconBlockBody) BlobKzgCommitments

func (b *BeaconBlockBody) BlobKzgCommitments() ([][]byte, error)

BlobKzgCommitments returns the blob kzg commitments in the block.

func (BeaconBlockBody) Deposits

func (BeaconBlockBody) Deposits() []*zond.Deposit

func (BeaconBlockBody) DilithiumToExecutionChanges

func (BeaconBlockBody) DilithiumToExecutionChanges() ([]*zond.SignedDilithiumToExecutionChange, error)

func (BeaconBlockBody) Eth1Data

func (BeaconBlockBody) Eth1Data() *zond.Eth1Data

func (BeaconBlockBody) Execution

func (BeaconBlockBody) Graffiti

func (BeaconBlockBody) HashTreeRoot

func (BeaconBlockBody) HashTreeRoot() ([field_params.RootLength]byte, error)

func (BeaconBlockBody) IsNil

func (BeaconBlockBody) IsNil() bool

func (BeaconBlockBody) ProposerSlashings

func (BeaconBlockBody) ProposerSlashings() []*zond.ProposerSlashing

func (BeaconBlockBody) Proto

func (BeaconBlockBody) Proto() (proto.Message, error)

func (BeaconBlockBody) RandaoReveal

func (BeaconBlockBody) RandaoReveal() [dilithium2.CryptoBytes]byte

func (*BeaconBlockBody) SetAttestations

func (b *BeaconBlockBody) SetAttestations([]*zond.Attestation)

func (*BeaconBlockBody) SetAttesterSlashings

func (b *BeaconBlockBody) SetAttesterSlashings([]*zond.AttesterSlashing)

func (*BeaconBlockBody) SetDeposits

func (b *BeaconBlockBody) SetDeposits([]*zond.Deposit)

func (*BeaconBlockBody) SetDilithiumToExecutionChanges

func (b *BeaconBlockBody) SetDilithiumToExecutionChanges([]*zond.SignedDilithiumToExecutionChange) error

func (*BeaconBlockBody) SetEth1Data

func (b *BeaconBlockBody) SetEth1Data(*zond.Eth1Data)

func (*BeaconBlockBody) SetExecution

func (b *BeaconBlockBody) SetExecution(interfaces.ExecutionData) error

func (*BeaconBlockBody) SetGraffiti

func (b *BeaconBlockBody) SetGraffiti([]byte)

func (*BeaconBlockBody) SetProposerSlashings

func (b *BeaconBlockBody) SetProposerSlashings([]*zond.ProposerSlashing)

func (*BeaconBlockBody) SetRandaoReveal

func (b *BeaconBlockBody) SetRandaoReveal([]byte)

func (*BeaconBlockBody) SetSyncAggregate

func (b *BeaconBlockBody) SetSyncAggregate(*zond.SyncAggregate) error

func (*BeaconBlockBody) SetVoluntaryExits

func (b *BeaconBlockBody) SetVoluntaryExits([]*zond.SignedVoluntaryExit)

func (BeaconBlockBody) SyncAggregate

func (BeaconBlockBody) SyncAggregate() (*zond.SyncAggregate, error)

func (BeaconBlockBody) VoluntaryExits

func (BeaconBlockBody) VoluntaryExits() []*zond.SignedVoluntaryExit

type SignedBeaconBlock

type SignedBeaconBlock struct {
	BeaconBlock interfaces.ReadOnlyBeaconBlock
}

func (SignedBeaconBlock) Block

func (SignedBeaconBlock) Copy

func (SignedBeaconBlock) Header

func (SignedBeaconBlock) IsBlinded

func (SignedBeaconBlock) IsBlinded() bool

func (SignedBeaconBlock) IsNil

func (m SignedBeaconBlock) IsNil() bool

func (SignedBeaconBlock) MarshalSSZ

func (SignedBeaconBlock) MarshalSSZ() ([]byte, error)

func (SignedBeaconBlock) MarshalSSZTo

func (SignedBeaconBlock) MarshalSSZTo(_ []byte) ([]byte, error)

func (SignedBeaconBlock) PbAltairBlock

func (SignedBeaconBlock) PbBellatrixBlock

func (SignedBeaconBlock) PbBellatrixBlock() (*zond.SignedBeaconBlockBellatrix, error)

func (SignedBeaconBlock) PbBlindedBellatrixBlock

func (SignedBeaconBlock) PbBlindedBellatrixBlock() (*zond.SignedBlindedBeaconBlockBellatrix, error)

func (SignedBeaconBlock) PbBlindedCapellaBlock

func (SignedBeaconBlock) PbBlindedCapellaBlock() (*zond.SignedBlindedBeaconBlockCapella, error)

func (SignedBeaconBlock) PbBlindedDenebBlock

func (SignedBeaconBlock) PbBlindedDenebBlock() (*zond.SignedBlindedBeaconBlockDeneb, error)

func (SignedBeaconBlock) PbCapellaBlock

func (SignedBeaconBlock) PbDenebBlock

func (SignedBeaconBlock) PbGenericBlock

func (SignedBeaconBlock) PbPhase0Block

func (SignedBeaconBlock) PbPhase0Block() (*zond.SignedBeaconBlock, error)

func (SignedBeaconBlock) Proto

func (SignedBeaconBlock) Proto() (proto.Message, error)

func (SignedBeaconBlock) SetSignature

func (SignedBeaconBlock) SetSignature([]byte)

func (SignedBeaconBlock) Signature

func (SignedBeaconBlock) SizeSSZ

func (SignedBeaconBlock) SizeSSZ() int

func (SignedBeaconBlock) ToBlinded

func (SignedBeaconBlock) UnmarshalSSZ

func (SignedBeaconBlock) UnmarshalSSZ(_ []byte) error

func (SignedBeaconBlock) ValueInGwei

func (SignedBeaconBlock) ValueInGwei() uint64

func (SignedBeaconBlock) Version

func (SignedBeaconBlock) Version() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL