Documentation ¶
Index ¶
- type DataVersion
- type VersionedBeaconBlock
- func (v *VersionedBeaconBlock) Attestations() ([]*phase0.Attestation, error)
- func (v *VersionedBeaconBlock) AttesterSlashings() ([]*phase0.AttesterSlashing, error)
- func (v *VersionedBeaconBlock) BodyRoot() (phase0.Root, error)
- func (v *VersionedBeaconBlock) IsEmpty() bool
- func (v *VersionedBeaconBlock) ParentRoot() (phase0.Root, error)
- func (v *VersionedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)
- func (v *VersionedBeaconBlock) Slot() (phase0.Slot, error)
- func (v *VersionedBeaconBlock) StateRoot() (phase0.Root, error)
- type VersionedBeaconBlockBody
- type VersionedSignedBeaconBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataVersion ¶
type DataVersion int
DataVersion defines the spec version of the data in a response.
const ( // DataVersionPhase0 is data applicable for the initial release of the beacon chain. DataVersionPhase0 DataVersion = iota // DataVersionAltair is data applicable for the Altair release of the beacon chain. DataVersionAltair )
func (*DataVersion) MarshalJSON ¶
func (d *DataVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (DataVersion) String ¶
func (d DataVersion) String() string
String returns a string representation of the
func (*DataVersion) UnmarshalJSON ¶
func (d *DataVersion) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type VersionedBeaconBlock ¶
type VersionedBeaconBlock struct { Version DataVersion Phase0 *phase0.BeaconBlock Altair *altair.BeaconBlock }
VersionedBeaconBlock contains a versioned beacon block.
func (*VersionedBeaconBlock) Attestations ¶
func (v *VersionedBeaconBlock) Attestations() ([]*phase0.Attestation, error)
Attestations returns the attestations of the beacon block.
func (*VersionedBeaconBlock) AttesterSlashings ¶
func (v *VersionedBeaconBlock) AttesterSlashings() ([]*phase0.AttesterSlashing, error)
AttesterSlashings returns the attester slashings of the beacon block.
func (*VersionedBeaconBlock) BodyRoot ¶
func (v *VersionedBeaconBlock) BodyRoot() (phase0.Root, error)
BodyRoot returns the body root of the beacon block.
func (*VersionedBeaconBlock) IsEmpty ¶
func (v *VersionedBeaconBlock) IsEmpty() bool
IsEmpty returns true if there is no block.
func (*VersionedBeaconBlock) ParentRoot ¶
func (v *VersionedBeaconBlock) ParentRoot() (phase0.Root, error)
ParentRoot returns the parent root of the beacon block.
func (*VersionedBeaconBlock) ProposerSlashings ¶
func (v *VersionedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)
ProposerSlashings returns the proposer slashings of the beacon block.
type VersionedBeaconBlockBody ¶
type VersionedBeaconBlockBody struct { Version DataVersion Phase0 *phase0.BeaconBlockBody Altair *altair.BeaconBlockBody }
VersionedBeaconBlockBody contains a versioned beacon block body.
type VersionedSignedBeaconBlock ¶
type VersionedSignedBeaconBlock struct { Version DataVersion Phase0 *phase0.SignedBeaconBlock Altair *altair.SignedBeaconBlock }
VersionedSignedBeaconBlock contains a versioned signed beacon block.
func (*VersionedSignedBeaconBlock) Attestations ¶
func (v *VersionedSignedBeaconBlock) Attestations() ([]*phase0.Attestation, error)
Attestations returns the attestations of the beacon block.