Documentation ¶
Index ¶
- type BuilderVersion
- 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) Root() (phase0.Root, error)
- func (v *VersionedBeaconBlock) Slot() (phase0.Slot, error)
- func (v *VersionedBeaconBlock) StateRoot() (phase0.Root, error)
- func (v *VersionedBeaconBlock) String() string
- type VersionedBeaconBlockBody
- type VersionedBeaconState
- func (v *VersionedBeaconState) IsEmpty() bool
- func (v *VersionedBeaconState) NextWithdrawalValidatorIndex() (phase0.ValidatorIndex, error)
- func (v *VersionedBeaconState) Slot() (phase0.Slot, error)
- func (v *VersionedBeaconState) String() string
- func (v *VersionedBeaconState) ValidatorBalances() ([]phase0.Gwei, error)
- func (v *VersionedBeaconState) Validators() ([]*phase0.Validator, error)
- type VersionedSignedBeaconBlock
- func (v *VersionedSignedBeaconBlock) Attestations() ([]*phase0.Attestation, error)
- func (v *VersionedSignedBeaconBlock) AttesterSlashings() ([]*phase0.AttesterSlashing, error)
- func (v *VersionedSignedBeaconBlock) BodyRoot() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) ParentRoot() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)
- func (v *VersionedSignedBeaconBlock) Root() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) Slot() (phase0.Slot, error)
- func (v *VersionedSignedBeaconBlock) StateRoot() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderVersion ¶
type BuilderVersion uint64
BuilderVersion defines the builder spec version.
const ( // BuilderVersionV1 is applicable for the V1 release of the builder spec. BuilderVersionV1 BuilderVersion = iota )
func (*BuilderVersion) MarshalJSON ¶
func (d *BuilderVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BuilderVersion) String ¶
func (d BuilderVersion) String() string
String returns a string representation of the struct.
func (*BuilderVersion) UnmarshalJSON ¶
func (d *BuilderVersion) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DataVersion ¶
type DataVersion uint64
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 // DataVersionBellatrix is data applicable for the Bellatrix release of the beacon chain. DataVersionBellatrix // DataVersionCapella is data applicable for the Capella release of the beacon chain. DataVersionCapella // DataVersionDeneb is data applicable for the Deneb release of the beacon chain. DataVersionDeneb )
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 struct.
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 Bellatrix *bellatrix.BeaconBlock Capella *capella.BeaconBlock Deneb *deneb.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.
func (*VersionedBeaconBlock) Root ¶
func (v *VersionedBeaconBlock) Root() (phase0.Root, error)
Root returns the root of the beacon block.
func (*VersionedBeaconBlock) Slot ¶
func (v *VersionedBeaconBlock) Slot() (phase0.Slot, error)
Slot returns the slot of the beacon block.
func (*VersionedBeaconBlock) StateRoot ¶
func (v *VersionedBeaconBlock) StateRoot() (phase0.Root, error)
StateRoot returns the state root of the beacon block.
func (*VersionedBeaconBlock) String ¶
func (v *VersionedBeaconBlock) String() string
String returns a string version of the structure.
type VersionedBeaconBlockBody ¶
type VersionedBeaconBlockBody struct { Version DataVersion Phase0 *phase0.BeaconBlockBody Altair *altair.BeaconBlockBody Bellatrix *bellatrix.BeaconBlockBody Capella *capella.BeaconBlockBody Deneb *deneb.BeaconBlockBody }
VersionedBeaconBlockBody contains a versioned beacon block body.
func (*VersionedBeaconBlockBody) String ¶
func (v *VersionedBeaconBlockBody) String() string
String returns a string version of the structure.
type VersionedBeaconState ¶
type VersionedBeaconState struct { Version DataVersion Phase0 *phase0.BeaconState Altair *altair.BeaconState Bellatrix *bellatrix.BeaconState Capella *capella.BeaconState Deneb *deneb.BeaconState }
VersionedBeaconState contains a versioned beacon state.
func (*VersionedBeaconState) IsEmpty ¶
func (v *VersionedBeaconState) IsEmpty() bool
IsEmpty returns true if there is no block.
func (*VersionedBeaconState) NextWithdrawalValidatorIndex ¶
func (v *VersionedBeaconState) NextWithdrawalValidatorIndex() (phase0.ValidatorIndex, error)
NextWithdrawalValidatorIndex returns the next withdrawal validator index of the state.
func (*VersionedBeaconState) Slot ¶
func (v *VersionedBeaconState) Slot() (phase0.Slot, error)
Slot returns the slot of the state.
func (*VersionedBeaconState) String ¶
func (v *VersionedBeaconState) String() string
String returns a string version of the structure.
func (*VersionedBeaconState) ValidatorBalances ¶
func (v *VersionedBeaconState) ValidatorBalances() ([]phase0.Gwei, error)
ValidatorBalances returns the validator balances of the state.
func (*VersionedBeaconState) Validators ¶
func (v *VersionedBeaconState) Validators() ([]*phase0.Validator, error)
Validators returns the validators of the state.
type VersionedSignedBeaconBlock ¶
type VersionedSignedBeaconBlock struct { Version DataVersion Phase0 *phase0.SignedBeaconBlock Altair *altair.SignedBeaconBlock Bellatrix *bellatrix.SignedBeaconBlock Capella *capella.SignedBeaconBlock Deneb *deneb.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.
func (*VersionedSignedBeaconBlock) AttesterSlashings ¶
func (v *VersionedSignedBeaconBlock) AttesterSlashings() ([]*phase0.AttesterSlashing, error)
AttesterSlashings returns the attester slashings of the beacon block.
func (*VersionedSignedBeaconBlock) BodyRoot ¶
func (v *VersionedSignedBeaconBlock) BodyRoot() (phase0.Root, error)
BodyRoot returns the body root of the beacon block.
func (*VersionedSignedBeaconBlock) ParentRoot ¶
func (v *VersionedSignedBeaconBlock) ParentRoot() (phase0.Root, error)
ParentRoot returns the parent root of the beacon block.
func (*VersionedSignedBeaconBlock) ProposerSlashings ¶
func (v *VersionedSignedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)
ProposerSlashings returns the proposer slashings of the beacon block.
func (*VersionedSignedBeaconBlock) Root ¶
func (v *VersionedSignedBeaconBlock) Root() (phase0.Root, error)
Root returns the root of the beacon block.
func (*VersionedSignedBeaconBlock) Slot ¶
func (v *VersionedSignedBeaconBlock) Slot() (phase0.Slot, error)
Slot returns the slot of the signed beacon block.
func (*VersionedSignedBeaconBlock) StateRoot ¶
func (v *VersionedSignedBeaconBlock) StateRoot() (phase0.Root, error)
StateRoot returns the state root of the beacon block.
func (*VersionedSignedBeaconBlock) String ¶
func (v *VersionedSignedBeaconBlock) String() string
String returns a string version of the structure.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by fastssz.
|
Code generated by fastssz. |
Code generated by fastssz.
|
Code generated by fastssz. |
Code generated by fastssz.
|
Code generated by fastssz. |
Code generated by fastssz.
|
Code generated by fastssz. |
Code generated by fastssz.
|
Code generated by fastssz. |