Documentation
¶
Index ¶
- type BuilderVersion
- type DataVersion
- type VersionedAggregateAndProof
- func (v *VersionedAggregateAndProof) AggregatorIndex() (phase0.ValidatorIndex, error)
- func (v *VersionedAggregateAndProof) HashTreeRoot() ([32]byte, error)
- func (v *VersionedAggregateAndProof) IsEmpty() bool
- func (v *VersionedAggregateAndProof) SelectionProof() (phase0.BLSSignature, error)
- func (v *VersionedAggregateAndProof) String() string
- type VersionedAttestation
- func (v *VersionedAttestation) AggregationBits() (bitfield.Bitlist, error)
- func (v *VersionedAttestation) CommitteeBits() (bitfield.Bitvector64, error)
- func (v *VersionedAttestation) CommitteeIndex() (phase0.CommitteeIndex, error)
- func (v *VersionedAttestation) Data() (*phase0.AttestationData, error)
- func (v *VersionedAttestation) HashTreeRoot() ([32]byte, error)
- func (v *VersionedAttestation) IsEmpty() bool
- func (v *VersionedAttestation) Signature() (phase0.BLSSignature, error)
- func (v *VersionedAttestation) String() string
- func (v *VersionedAttestation) UnmarshalJSON(input []byte) error
- type VersionedAttesterSlashing
- type VersionedBeaconBlock
- func (v *VersionedBeaconBlock) Attestations() ([]VersionedAttestation, error)
- func (v *VersionedBeaconBlock) AttesterSlashings() ([]VersionedAttesterSlashing, error)
- func (v *VersionedBeaconBlock) BodyRoot() (phase0.Root, error)
- func (v *VersionedBeaconBlock) ExecutionPayload() (*VersionedExecutionPayload, error)
- func (v *VersionedBeaconBlock) Graffiti() ([32]byte, error)
- func (v *VersionedBeaconBlock) IsEmpty() bool
- func (v *VersionedBeaconBlock) ParentRoot() (phase0.Root, error)
- func (v *VersionedBeaconBlock) ProposerIndex() (phase0.ValidatorIndex, error)
- func (v *VersionedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)
- func (v *VersionedBeaconBlock) RandaoReveal() (phase0.BLSSignature, error)
- func (v *VersionedBeaconBlock) Root() (phase0.Root, error)
- func (v *VersionedBeaconBlock) SignedExecutionPayloadBid() (*VersionedSignedExecutionPayloadBid, 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) Builders() ([]*gloas.Builder, error)
- func (v *VersionedBeaconState) ConsolidationBalanceToConsume() (phase0.Gwei, error)
- func (v *VersionedBeaconState) DepositBalanceToConsume() (phase0.Gwei, error)
- func (v *VersionedBeaconState) DepositRequestsStartIndex() (uint64, error)
- func (v *VersionedBeaconState) EarliestConsolidationEpoch() (phase0.Epoch, error)
- func (v *VersionedBeaconState) EarliestExitEpoch() (phase0.Epoch, error)
- func (v *VersionedBeaconState) ExecutionPayloadAvailability() ([]uint8, error)
- func (v *VersionedBeaconState) ExitBalanceToConsume() (phase0.Gwei, error)
- func (v *VersionedBeaconState) FieldGeneralizedIndex(name string) (int, error)
- func (v *VersionedBeaconState) FieldIndex(name string) (int, error)
- func (v *VersionedBeaconState) FieldRoot(name string) (phase0.Hash32, error)
- func (v *VersionedBeaconState) FieldTree(name string) (*treeproof.Node, error)
- func (v *VersionedBeaconState) GetTree() (*treeproof.Node, error)
- func (v *VersionedBeaconState) HashTreeRoot() (phase0.Hash32, error)
- func (v *VersionedBeaconState) IsEmpty() bool
- func (v *VersionedBeaconState) NextWithdrawalValidatorIndex() (phase0.ValidatorIndex, error)
- func (v *VersionedBeaconState) PendingConsolidations() ([]*electra.PendingConsolidation, error)
- func (v *VersionedBeaconState) PendingDeposits() ([]*electra.PendingDeposit, error)
- func (v *VersionedBeaconState) PendingPartialWithdrawals() ([]*electra.PendingPartialWithdrawal, error)
- func (v *VersionedBeaconState) ProveField(name string) ([]phase0.Hash32, error)
- func (v *VersionedBeaconState) Slot() (phase0.Slot, error)
- func (v *VersionedBeaconState) String() string
- func (v *VersionedBeaconState) ValidatorAtIndex(index phase0.ValidatorIndex) (*phase0.Validator, error)
- func (v *VersionedBeaconState) ValidatorBalance(index phase0.ValidatorIndex) (phase0.Gwei, error)
- func (v *VersionedBeaconState) ValidatorBalances() ([]phase0.Gwei, error)
- func (v *VersionedBeaconState) Validators() ([]*phase0.Validator, error)
- func (v *VersionedBeaconState) VerifyFieldProof(proof []phase0.Hash32, name string) (bool, error)
- type VersionedExecutionPayload
- func (v *VersionedExecutionPayload) BaseFeePerGas() (*uint256.Int, error)
- func (v *VersionedExecutionPayload) BlobGasUsed() (uint64, error)
- func (v *VersionedExecutionPayload) BlockHash() (phase0.Hash32, error)
- func (v *VersionedExecutionPayload) BlockNumber() (uint64, error)
- func (v *VersionedExecutionPayload) ExcessBlobGas() (uint64, error)
- func (v *VersionedExecutionPayload) ExtraData() ([]byte, error)
- func (v *VersionedExecutionPayload) FeeRecipient() (bellatrix.ExecutionAddress, error)
- func (v *VersionedExecutionPayload) GasLimit() (uint64, error)
- func (v *VersionedExecutionPayload) GasUsed() (uint64, error)
- func (v *VersionedExecutionPayload) IsEmpty() bool
- func (v *VersionedExecutionPayload) LogsBloom() ([256]byte, error)
- func (v *VersionedExecutionPayload) ParentHash() (phase0.Hash32, error)
- func (v *VersionedExecutionPayload) PrevRandao() ([32]byte, error)
- func (v *VersionedExecutionPayload) ReceiptsRoot() (phase0.Root, error)
- func (v *VersionedExecutionPayload) StateRoot() (phase0.Root, error)
- func (v *VersionedExecutionPayload) String() string
- func (v *VersionedExecutionPayload) Timestamp() (uint64, error)
- func (v *VersionedExecutionPayload) Transactions() ([]bellatrix.Transaction, error)
- func (v *VersionedExecutionPayload) Withdrawals() ([]*capella.Withdrawal, error)
- type VersionedIndexedAttestation
- func (v *VersionedIndexedAttestation) AttestingIndices() ([]uint64, error)
- func (v *VersionedIndexedAttestation) Data() (*phase0.AttestationData, error)
- func (v *VersionedIndexedAttestation) IsEmpty() bool
- func (v *VersionedIndexedAttestation) Signature() (phase0.BLSSignature, error)
- func (v *VersionedIndexedAttestation) String() string
- type VersionedSignedAggregateAndProof
- func (v *VersionedSignedAggregateAndProof) AggregatorIndex() (phase0.ValidatorIndex, error)
- func (v *VersionedSignedAggregateAndProof) IsEmpty() bool
- func (v *VersionedSignedAggregateAndProof) SelectionProof() (phase0.BLSSignature, error)
- func (v *VersionedSignedAggregateAndProof) Signature() (phase0.BLSSignature, error)
- func (v *VersionedSignedAggregateAndProof) Slot() (phase0.Slot, error)
- func (v *VersionedSignedAggregateAndProof) String() string
- type VersionedSignedBeaconBlock
- func (v *VersionedSignedBeaconBlock) Attestations() ([]*VersionedAttestation, error)
- func (v *VersionedSignedBeaconBlock) AttesterSlashings() ([]VersionedAttesterSlashing, error)
- func (v *VersionedSignedBeaconBlock) BLSToExecutionChanges() ([]*capella.SignedBLSToExecutionChange, error)
- func (v *VersionedSignedBeaconBlock) BlobKZGCommitments() ([]deneb.KZGCommitment, error)
- func (v *VersionedSignedBeaconBlock) BodyRoot() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) Deposits() ([]*phase0.Deposit, error)
- func (v *VersionedSignedBeaconBlock) ETH1Data() (*phase0.ETH1Data, error)
- func (v *VersionedSignedBeaconBlock) ExecutionBlockHash() (phase0.Hash32, error)
- func (v *VersionedSignedBeaconBlock) ExecutionBlockNumber() (uint64, error)
- func (v *VersionedSignedBeaconBlock) ExecutionPayload() (*VersionedExecutionPayload, error)
- func (v *VersionedSignedBeaconBlock) ExecutionRequests() (*electra.ExecutionRequests, error)
- func (v *VersionedSignedBeaconBlock) ExecutionTransactions() ([]bellatrix.Transaction, error)
- func (v *VersionedSignedBeaconBlock) Graffiti() ([32]byte, error)
- func (v *VersionedSignedBeaconBlock) IsEmpty() bool
- func (v *VersionedSignedBeaconBlock) ParentRoot() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) ProposerIndex() (phase0.ValidatorIndex, error)
- func (v *VersionedSignedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)
- func (v *VersionedSignedBeaconBlock) RandaoReveal() (phase0.BLSSignature, error)
- func (v *VersionedSignedBeaconBlock) Root() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) SignedExecutionPayloadBid() (*VersionedSignedExecutionPayloadBid, error)
- func (v *VersionedSignedBeaconBlock) Slot() (phase0.Slot, error)
- func (v *VersionedSignedBeaconBlock) StateRoot() (phase0.Root, error)
- func (v *VersionedSignedBeaconBlock) String() string
- func (v *VersionedSignedBeaconBlock) SyncAggregate() (*altair.SyncAggregate, error)
- func (v *VersionedSignedBeaconBlock) VoluntaryExits() ([]*phase0.SignedVoluntaryExit, error)
- func (v *VersionedSignedBeaconBlock) Withdrawals() ([]*capella.Withdrawal, error)
- type VersionedSignedExecutionPayloadBid
- func (v *VersionedSignedExecutionPayloadBid) BlobKZGCommitments() ([]deneb.KZGCommitment, error)
- func (v *VersionedSignedExecutionPayloadBid) BlockHash() (phase0.Hash32, error)
- func (v *VersionedSignedExecutionPayloadBid) BuilderIndex() (gloas.BuilderIndex, error)
- func (v *VersionedSignedExecutionPayloadBid) ExecutionPayment() (phase0.Gwei, error)
- func (v *VersionedSignedExecutionPayloadBid) FeeRecipient() (bellatrix.ExecutionAddress, error)
- func (v *VersionedSignedExecutionPayloadBid) GasLimit() (uint64, error)
- func (v *VersionedSignedExecutionPayloadBid) ParentBlockHash() (phase0.Hash32, error)
- func (v *VersionedSignedExecutionPayloadBid) ParentBlockRoot() (phase0.Root, error)
- func (v *VersionedSignedExecutionPayloadBid) Signature() (phase0.BLSSignature, error)
- func (v *VersionedSignedExecutionPayloadBid) Slot() (phase0.Slot, error)
- func (v *VersionedSignedExecutionPayloadBid) String() string
- func (v *VersionedSignedExecutionPayloadBid) Value() (phase0.Gwei, error)
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 ( // DataVersionUnknown is an unknown data version. DataVersionUnknown DataVersion = iota // DataVersionPhase0 is data applicable for the initial release of the beacon chain. DataVersionPhase0 // 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 // DataVersionElectra is data applicable for the Electra release of the beacon chain. DataVersionElectra // DataVersionFulu is data applicable for the Fulu release of the beacon chain. DataVersionFulu // DataVersionGloas is data applicable for the Gloas release of the beacon chain. DataVersionGloas // DataVersionHeze is data applicable for the Heze release of the beacon chain. DataVersionHeze )
func DataVersionFromString ¶
func DataVersionFromString(fork string) (DataVersion, error)
DataVersionFromString turns a fork string into a DataVersion returns an error if the fork is not recognized.
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 VersionedAggregateAndProof ¶
type VersionedAggregateAndProof struct {
Version DataVersion
Phase0 *phase0.AggregateAndProof
Altair *phase0.AggregateAndProof
Bellatrix *phase0.AggregateAndProof
Capella *phase0.AggregateAndProof
Deneb *phase0.AggregateAndProof
Electra *electra.AggregateAndProof
Fulu *electra.AggregateAndProof
Gloas *electra.AggregateAndProof
Heze *electra.AggregateAndProof
}
VersionedAggregateAndProof contains a versioned aggregate and proof.
func (*VersionedAggregateAndProof) AggregatorIndex ¶
func (v *VersionedAggregateAndProof) AggregatorIndex() (phase0.ValidatorIndex, error)
AggregatorIndex returns the aggregator index of the aggregate.
func (*VersionedAggregateAndProof) HashTreeRoot ¶
func (v *VersionedAggregateAndProof) HashTreeRoot() ([32]byte, error)
HashTreeRoot returns the hash tree root of the aggregate and proof.
func (*VersionedAggregateAndProof) IsEmpty ¶
func (v *VersionedAggregateAndProof) IsEmpty() bool
IsEmpty returns true if there is no aggregate and proof.
func (*VersionedAggregateAndProof) SelectionProof ¶
func (v *VersionedAggregateAndProof) SelectionProof() (phase0.BLSSignature, error)
SelectionProof returns the selection proof of the aggregate.
func (*VersionedAggregateAndProof) String ¶
func (v *VersionedAggregateAndProof) String() string
String returns a string version of the structure.
type VersionedAttestation ¶
type VersionedAttestation struct {
Version DataVersion
ValidatorIndex *phase0.ValidatorIndex
Phase0 *phase0.Attestation
Altair *phase0.Attestation
Bellatrix *phase0.Attestation
Capella *phase0.Attestation
Deneb *phase0.Attestation
Electra *electra.Attestation
Fulu *electra.Attestation
Gloas *electra.Attestation
Heze *electra.Attestation
}
VersionedAttestation contains a versioned attestation.
func (*VersionedAttestation) AggregationBits ¶
func (v *VersionedAttestation) AggregationBits() (bitfield.Bitlist, error)
AggregationBits returns the aggregation bits of the attestation.
func (*VersionedAttestation) CommitteeBits ¶
func (v *VersionedAttestation) CommitteeBits() (bitfield.Bitvector64, error)
CommitteeBits returns the committee bits of the attestation.
func (*VersionedAttestation) CommitteeIndex ¶
func (v *VersionedAttestation) CommitteeIndex() (phase0.CommitteeIndex, error)
CommitteeIndex returns the index if only one bit is set, otherwise error.
func (*VersionedAttestation) Data ¶
func (v *VersionedAttestation) Data() (*phase0.AttestationData, error)
Data returns the data of the attestation.
func (*VersionedAttestation) HashTreeRoot ¶
func (v *VersionedAttestation) HashTreeRoot() ([32]byte, error)
func (*VersionedAttestation) IsEmpty ¶
func (v *VersionedAttestation) IsEmpty() bool
IsEmpty returns true if there is no block.
func (*VersionedAttestation) Signature ¶
func (v *VersionedAttestation) Signature() (phase0.BLSSignature, error)
Signature returns the signature of the attestation.
func (*VersionedAttestation) String ¶
func (v *VersionedAttestation) String() string
String returns a string version of the structure.
func (*VersionedAttestation) UnmarshalJSON ¶
func (v *VersionedAttestation) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type VersionedAttesterSlashing ¶
type VersionedAttesterSlashing struct {
Version DataVersion
Phase0 *phase0.AttesterSlashing
Altair *phase0.AttesterSlashing
Bellatrix *phase0.AttesterSlashing
Capella *phase0.AttesterSlashing
Deneb *phase0.AttesterSlashing
Electra *electra.AttesterSlashing
Fulu *electra.AttesterSlashing
Gloas *electra.AttesterSlashing
Heze *electra.AttesterSlashing
}
VersionedAttesterSlashing contains a versioned attestation.
func (*VersionedAttesterSlashing) Attestation1 ¶
func (v *VersionedAttesterSlashing) Attestation1() (*VersionedIndexedAttestation, error)
Attestation1 returns the first indexed attestation.
func (*VersionedAttesterSlashing) Attestation2 ¶
func (v *VersionedAttesterSlashing) Attestation2() (*VersionedIndexedAttestation, error)
Attestation2 returns the second indexed attestation.
func (*VersionedAttesterSlashing) IsEmpty ¶
func (v *VersionedAttesterSlashing) IsEmpty() bool
IsEmpty returns true if there is no block.
func (*VersionedAttesterSlashing) String ¶
func (v *VersionedAttesterSlashing) String() string
String returns a string version of the structure.
type VersionedBeaconBlock ¶
type VersionedBeaconBlock struct {
Version DataVersion
Phase0 *phase0.BeaconBlock
Altair *altair.BeaconBlock
Bellatrix *bellatrix.BeaconBlock
Capella *capella.BeaconBlock
Deneb *deneb.BeaconBlock
Electra *electra.BeaconBlock
Fulu *electra.BeaconBlock
Gloas *gloas.BeaconBlock
Heze *heze.BeaconBlock
}
VersionedBeaconBlock contains a versioned beacon block.
func (*VersionedBeaconBlock) Attestations ¶
func (v *VersionedBeaconBlock) Attestations() ([]VersionedAttestation, error)
Attestations returns the attestations of the beacon block.
func (*VersionedBeaconBlock) AttesterSlashings ¶
func (v *VersionedBeaconBlock) AttesterSlashings() ([]VersionedAttesterSlashing, 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) ExecutionPayload ¶
func (v *VersionedBeaconBlock) ExecutionPayload() (*VersionedExecutionPayload, error)
ExecutionPayload returns the execution payload of the beacon block.
func (*VersionedBeaconBlock) Graffiti ¶
func (v *VersionedBeaconBlock) Graffiti() ([32]byte, error)
Graffiti returns the graffiti 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) ProposerIndex ¶
func (v *VersionedBeaconBlock) ProposerIndex() (phase0.ValidatorIndex, error)
ProposerIndex returns the proposer index 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) RandaoReveal ¶
func (v *VersionedBeaconBlock) RandaoReveal() (phase0.BLSSignature, error)
RandaoReveal returns the RANDAO reveal of the beacon block.
func (*VersionedBeaconBlock) Root ¶
func (v *VersionedBeaconBlock) Root() (phase0.Root, error)
Root returns the root of the beacon block.
func (*VersionedBeaconBlock) SignedExecutionPayloadBid ¶
func (v *VersionedBeaconBlock) SignedExecutionPayloadBid() (*VersionedSignedExecutionPayloadBid, error)
SignedExecutionPayloadBid returns the execution payload bid 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
Electra *electra.BeaconBlockBody
Fulu *electra.BeaconBlockBody
Gloas *gloas.BeaconBlockBody
Heze *heze.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
Electra *electra.BeaconState
Fulu *fulu.BeaconState
Gloas *gloas.BeaconState
Heze *heze.BeaconState
}
VersionedBeaconState contains a versioned beacon state.
func (*VersionedBeaconState) Builders ¶
func (v *VersionedBeaconState) Builders() ([]*gloas.Builder, error)
Builders returns the builders of the state.
func (*VersionedBeaconState) ConsolidationBalanceToConsume ¶
func (v *VersionedBeaconState) ConsolidationBalanceToConsume() (phase0.Gwei, error)
ConsolidationBalanceToConsume returns the consolidation balance to consume of the state.
func (*VersionedBeaconState) DepositBalanceToConsume ¶
func (v *VersionedBeaconState) DepositBalanceToConsume() (phase0.Gwei, error)
DepositBalanceToConsume returns the deposit balance to consume of the state.
func (*VersionedBeaconState) DepositRequestsStartIndex ¶
func (v *VersionedBeaconState) DepositRequestsStartIndex() (uint64, error)
DepositRequestsStartIndex returns the deposit requests start index of the state.
func (*VersionedBeaconState) EarliestConsolidationEpoch ¶
func (v *VersionedBeaconState) EarliestConsolidationEpoch() (phase0.Epoch, error)
EarliestConsolidationEpoch returns the earliest consolidation epoch of the state.
func (*VersionedBeaconState) EarliestExitEpoch ¶
func (v *VersionedBeaconState) EarliestExitEpoch() (phase0.Epoch, error)
EarliestExitEpoch returns the earliest exit epoch of the state.
func (*VersionedBeaconState) ExecutionPayloadAvailability ¶
func (v *VersionedBeaconState) ExecutionPayloadAvailability() ([]uint8, error)
ExecutionPayloadAvailability returns the execution payload availability of the state.
func (*VersionedBeaconState) ExitBalanceToConsume ¶
func (v *VersionedBeaconState) ExitBalanceToConsume() (phase0.Gwei, error)
ExitBalanceToConsume returns the deposit balance to consume of the state.
func (*VersionedBeaconState) FieldGeneralizedIndex ¶
func (v *VersionedBeaconState) FieldGeneralizedIndex(name string) (int, error)
FieldGeneralizedIndex returns the generalized index for a given field name. The generalized index represents the field's absolute position in the Merkle tree. This is used for generating and verifying Merkle proofs. Returns an error if the field doesn't exist or the state is empty.
func (*VersionedBeaconState) FieldIndex ¶
func (v *VersionedBeaconState) FieldIndex(name string) (int, error)
FieldIndex returns the struct field index for a given field name. The index represents the field's position in the struct's memory layout. Returns an error if the field doesn't exist or the state is empty.
func (*VersionedBeaconState) FieldRoot ¶
func (v *VersionedBeaconState) FieldRoot(name string) (phase0.Hash32, error)
FieldRoot returns the SSZ hash root of a specific field in the beacon state. Parameters:
- name: The name of the field to get the root for
Returns:
- phase0.Hash32: The SSZ hash root of the field
- error: If the field doesn't exist, the state is empty, or the field is not hash tree rootable
func (*VersionedBeaconState) FieldTree ¶
func (v *VersionedBeaconState) FieldTree(name string) (*treeproof.Node, error)
FieldTree returns the Merkle subtree for a specific field in the beacon state.
func (*VersionedBeaconState) GetTree ¶
func (v *VersionedBeaconState) GetTree() (*treeproof.Node, error)
GetTree returns the GetTree of the specific beacon state version.
func (*VersionedBeaconState) HashTreeRoot ¶
func (v *VersionedBeaconState) HashTreeRoot() (phase0.Hash32, error)
HashTreeRoot returns the HashTreeRoot of the specific beacon state version.
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) PendingConsolidations ¶
func (v *VersionedBeaconState) PendingConsolidations() ([]*electra.PendingConsolidation, error)
PendingConsolidations returns the pending consolidations of the state.
func (*VersionedBeaconState) PendingDeposits ¶
func (v *VersionedBeaconState) PendingDeposits() ([]*electra.PendingDeposit, error)
PendingDeposits returns the pending deposits of the state.
func (*VersionedBeaconState) PendingPartialWithdrawals ¶
func (v *VersionedBeaconState) PendingPartialWithdrawals() ([]*electra.PendingPartialWithdrawal, error)
PendingPartialWithdrawals returns the pending partial withdrawals of the state.
func (*VersionedBeaconState) ProveField ¶
func (v *VersionedBeaconState) ProveField(name string) ([]phase0.Hash32, error)
ProveField generates a Merkle proof for a specific field against the beacon state root. Parameters:
- name: The name of the field to generate a proof for
Returns:
- []phase0.Hash32: The Merkle proof as a sequence of 32-byte hashes
- error: If the field doesn't exist or there's an error generating the proof
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) ValidatorAtIndex ¶
func (v *VersionedBeaconState) ValidatorAtIndex(index phase0.ValidatorIndex) (*phase0.Validator, error)
ValidatorAtIndex returns the validator at the given index. This is a convenience method that handles accessing the validators array. Parameters:
- index: The index of the validator to retrieve
Returns:
- *phase0.Validator: The validator at the given index
- error: If the index is invalid or there's an error accessing the validators
func (*VersionedBeaconState) ValidatorBalance ¶
func (v *VersionedBeaconState) ValidatorBalance(index phase0.ValidatorIndex) (phase0.Gwei, error)
ValidatorBalance returns the balance of the validator at the given index. This is a convenience method that handles accessing the balances array. Parameters:
- index: The index of the validator whose balance to retrieve
Returns:
- phase0.Gwei: The balance in Gwei
- error: If the index is invalid or there's an error accessing the balances
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.
func (*VersionedBeaconState) VerifyFieldProof ¶
VerifyFieldProof verifies a Merkle proof for a field against the beacon state root. Parameters:
- proof: The Merkle proof as a sequence of 32-byte hashes
- name: The name of the field the proof is for
Returns:
- bool: True if the proof is valid, false otherwise
- error: If there's an error during verification
type VersionedExecutionPayload ¶
type VersionedExecutionPayload struct {
Version DataVersion
Bellatrix *bellatrix.ExecutionPayload
Capella *capella.ExecutionPayload
Deneb *deneb.ExecutionPayload
Electra *deneb.ExecutionPayload
Fulu *deneb.ExecutionPayload
Gloas *deneb.ExecutionPayload
Heze *deneb.ExecutionPayload
}
VersionedExecutionPayload contains a versioned execution payload.
func (*VersionedExecutionPayload) BaseFeePerGas ¶
func (v *VersionedExecutionPayload) BaseFeePerGas() (*uint256.Int, error)
BaseFeePerGas returns the base fee per gas of the execution payload.
func (*VersionedExecutionPayload) BlobGasUsed ¶
func (v *VersionedExecutionPayload) BlobGasUsed() (uint64, error)
BlobGasUsed returns the blob gas used of the execution payload.
func (*VersionedExecutionPayload) BlockHash ¶
func (v *VersionedExecutionPayload) BlockHash() (phase0.Hash32, error)
BlockHash returns the block hash of the execution payload.
func (*VersionedExecutionPayload) BlockNumber ¶
func (v *VersionedExecutionPayload) BlockNumber() (uint64, error)
BlockNumber returns the block number of the execution payload.
func (*VersionedExecutionPayload) ExcessBlobGas ¶
func (v *VersionedExecutionPayload) ExcessBlobGas() (uint64, error)
ExcessBlobGas returns the excess blob gas of the execution payload.
func (*VersionedExecutionPayload) ExtraData ¶
func (v *VersionedExecutionPayload) ExtraData() ([]byte, error)
ExtraData returns the extra data of the execution payload.
func (*VersionedExecutionPayload) FeeRecipient ¶
func (v *VersionedExecutionPayload) FeeRecipient() (bellatrix.ExecutionAddress, error)
FeeRecipient returns the fee recipient of the execution payload.
func (*VersionedExecutionPayload) GasLimit ¶
func (v *VersionedExecutionPayload) GasLimit() (uint64, error)
GasLimit returns the gas limit of the execution payload.
func (*VersionedExecutionPayload) GasUsed ¶
func (v *VersionedExecutionPayload) GasUsed() (uint64, error)
GasUsed returns the gas used of the execution payload.
func (*VersionedExecutionPayload) IsEmpty ¶
func (v *VersionedExecutionPayload) IsEmpty() bool
IsEmpty returns true if there is no block.
func (*VersionedExecutionPayload) LogsBloom ¶
func (v *VersionedExecutionPayload) LogsBloom() ([256]byte, error)
LogsBloom returns the logs bloom of the execution payload.
func (*VersionedExecutionPayload) ParentHash ¶
func (v *VersionedExecutionPayload) ParentHash() (phase0.Hash32, error)
ParentHash returns the parent hash of the execution payload.
func (*VersionedExecutionPayload) PrevRandao ¶
func (v *VersionedExecutionPayload) PrevRandao() ([32]byte, error)
PrevRandao returns the prev randao of the execution payload.
func (*VersionedExecutionPayload) ReceiptsRoot ¶
func (v *VersionedExecutionPayload) ReceiptsRoot() (phase0.Root, error)
ReceiptsRoot returns the receipts root of the execution payload.
func (*VersionedExecutionPayload) StateRoot ¶
func (v *VersionedExecutionPayload) StateRoot() (phase0.Root, error)
StateRoot returns the state root of the execution payload.
func (*VersionedExecutionPayload) String ¶
func (v *VersionedExecutionPayload) String() string
String returns a string version of the structure.
func (*VersionedExecutionPayload) Timestamp ¶
func (v *VersionedExecutionPayload) Timestamp() (uint64, error)
Timestamp returns the timestamp of the execution payload.
func (*VersionedExecutionPayload) Transactions ¶
func (v *VersionedExecutionPayload) Transactions() ([]bellatrix.Transaction, error)
Transactions returns the transactions of the execution payload.
func (*VersionedExecutionPayload) Withdrawals ¶
func (v *VersionedExecutionPayload) Withdrawals() ([]*capella.Withdrawal, error)
Withdrawals returns the withdrawals of the execution payload.
type VersionedIndexedAttestation ¶
type VersionedIndexedAttestation struct {
Version DataVersion
Phase0 *phase0.IndexedAttestation
Altair *phase0.IndexedAttestation
Bellatrix *phase0.IndexedAttestation
Capella *phase0.IndexedAttestation
Deneb *phase0.IndexedAttestation
Electra *electra.IndexedAttestation
Fulu *electra.IndexedAttestation
Gloas *electra.IndexedAttestation
Heze *electra.IndexedAttestation
}
VersionedIndexedAttestation contains a versioned indexed attestation.
func (*VersionedIndexedAttestation) AttestingIndices ¶
func (v *VersionedIndexedAttestation) AttestingIndices() ([]uint64, error)
AttestingIndices returns the attesting indices of the indexed attestation.
func (*VersionedIndexedAttestation) Data ¶
func (v *VersionedIndexedAttestation) Data() (*phase0.AttestationData, error)
Data returns the data of the indexed attestation.
func (*VersionedIndexedAttestation) IsEmpty ¶
func (v *VersionedIndexedAttestation) IsEmpty() bool
IsEmpty returns true if there is no block.
func (*VersionedIndexedAttestation) Signature ¶
func (v *VersionedIndexedAttestation) Signature() (phase0.BLSSignature, error)
Signature returns the signature of the indexed attestation.
func (*VersionedIndexedAttestation) String ¶
func (v *VersionedIndexedAttestation) String() string
String returns a string version of the structure.
type VersionedSignedAggregateAndProof ¶
type VersionedSignedAggregateAndProof struct {
Version DataVersion
Phase0 *phase0.SignedAggregateAndProof
Altair *phase0.SignedAggregateAndProof
Bellatrix *phase0.SignedAggregateAndProof
Capella *phase0.SignedAggregateAndProof
Deneb *phase0.SignedAggregateAndProof
Electra *electra.SignedAggregateAndProof
Fulu *electra.SignedAggregateAndProof
Gloas *electra.SignedAggregateAndProof
Heze *electra.SignedAggregateAndProof
}
VersionedSignedAggregateAndProof contains a versioned signed aggregate and proof.
func (*VersionedSignedAggregateAndProof) AggregatorIndex ¶
func (v *VersionedSignedAggregateAndProof) AggregatorIndex() (phase0.ValidatorIndex, error)
AggregatorIndex returns the aggregator index of the aggregate.
func (*VersionedSignedAggregateAndProof) IsEmpty ¶
func (v *VersionedSignedAggregateAndProof) IsEmpty() bool
IsEmpty returns true if there is no aggregate and proof.
func (*VersionedSignedAggregateAndProof) SelectionProof ¶
func (v *VersionedSignedAggregateAndProof) SelectionProof() (phase0.BLSSignature, error)
SelectionProof returns the selection proof of the signed aggregate.
func (*VersionedSignedAggregateAndProof) Signature ¶
func (v *VersionedSignedAggregateAndProof) Signature() (phase0.BLSSignature, error)
Signature returns the signature of the signed aggregate and proof.
func (*VersionedSignedAggregateAndProof) Slot ¶
func (v *VersionedSignedAggregateAndProof) Slot() (phase0.Slot, error)
Slot returns the slot of the signed aggregate and proof.
func (*VersionedSignedAggregateAndProof) String ¶
func (v *VersionedSignedAggregateAndProof) String() string
String returns a string version of the structure.
type VersionedSignedBeaconBlock ¶
type VersionedSignedBeaconBlock struct {
Version DataVersion
Phase0 *phase0.SignedBeaconBlock
Altair *altair.SignedBeaconBlock
Bellatrix *bellatrix.SignedBeaconBlock
Capella *capella.SignedBeaconBlock
Deneb *deneb.SignedBeaconBlock
Electra *electra.SignedBeaconBlock
Fulu *electra.SignedBeaconBlock
Gloas *gloas.SignedBeaconBlock
Heze *heze.SignedBeaconBlock
}
VersionedSignedBeaconBlock contains a versioned signed beacon block.
func (*VersionedSignedBeaconBlock) Attestations ¶
func (v *VersionedSignedBeaconBlock) Attestations() ([]*VersionedAttestation, error)
Attestations returns the attestations of the beacon block.
func (*VersionedSignedBeaconBlock) AttesterSlashings ¶
func (v *VersionedSignedBeaconBlock) AttesterSlashings() ([]VersionedAttesterSlashing, error)
AttesterSlashings returns the attester slashings of the beacon block.
func (*VersionedSignedBeaconBlock) BLSToExecutionChanges ¶
func (v *VersionedSignedBeaconBlock) BLSToExecutionChanges() ([]*capella.SignedBLSToExecutionChange, error)
BLSToExecutionChanges returns the bls to execution changes of the beacon block.
func (*VersionedSignedBeaconBlock) BlobKZGCommitments ¶
func (v *VersionedSignedBeaconBlock) BlobKZGCommitments() ([]deneb.KZGCommitment, error)
BlobKZGCommitments returns the blob KZG commitments 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) Deposits ¶
func (v *VersionedSignedBeaconBlock) Deposits() ([]*phase0.Deposit, error)
Deposits returns the deposits of the beacon block.
func (*VersionedSignedBeaconBlock) ETH1Data ¶
func (v *VersionedSignedBeaconBlock) ETH1Data() (*phase0.ETH1Data, error)
ETH1Data returns the eth1 data of the beacon block.
func (*VersionedSignedBeaconBlock) ExecutionBlockHash ¶
func (v *VersionedSignedBeaconBlock) ExecutionBlockHash() (phase0.Hash32, error)
ExecutionBlockHash returns the block hash of the beacon block.
func (*VersionedSignedBeaconBlock) ExecutionBlockNumber ¶
func (v *VersionedSignedBeaconBlock) ExecutionBlockNumber() (uint64, error)
ExecutionBlockNumber returns the block number of the beacon block.
func (*VersionedSignedBeaconBlock) ExecutionPayload ¶
func (v *VersionedSignedBeaconBlock) ExecutionPayload() (*VersionedExecutionPayload, error)
ExecutionPayload returns the execution payload of the signed beacon block.
func (*VersionedSignedBeaconBlock) ExecutionRequests ¶
func (v *VersionedSignedBeaconBlock) ExecutionRequests() (*electra.ExecutionRequests, error)
ExecutionRequests returs the execution requests for the block.
func (*VersionedSignedBeaconBlock) ExecutionTransactions ¶
func (v *VersionedSignedBeaconBlock) ExecutionTransactions() ([]bellatrix.Transaction, error)
ExecutionTransactions returns the execution payload transactions for the block.
func (*VersionedSignedBeaconBlock) Graffiti ¶
func (v *VersionedSignedBeaconBlock) Graffiti() ([32]byte, error)
Graffiti returns the graffiti for the block.
func (*VersionedSignedBeaconBlock) IsEmpty ¶
func (v *VersionedSignedBeaconBlock) IsEmpty() bool
IsEmpty returns true if the block is empty.
func (*VersionedSignedBeaconBlock) ParentRoot ¶
func (v *VersionedSignedBeaconBlock) ParentRoot() (phase0.Root, error)
ParentRoot returns the parent root of the beacon block.
func (*VersionedSignedBeaconBlock) ProposerIndex ¶
func (v *VersionedSignedBeaconBlock) ProposerIndex() (phase0.ValidatorIndex, error)
ProposerIndex returns the proposer index 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) RandaoReveal ¶
func (v *VersionedSignedBeaconBlock) RandaoReveal() (phase0.BLSSignature, error)
RandaoReveal returns the randao reveal of the beacon block.
func (*VersionedSignedBeaconBlock) Root ¶
func (v *VersionedSignedBeaconBlock) Root() (phase0.Root, error)
Root returns the root of the beacon block.
func (*VersionedSignedBeaconBlock) SignedExecutionPayloadBid ¶
func (v *VersionedSignedBeaconBlock) SignedExecutionPayloadBid() (*VersionedSignedExecutionPayloadBid, error)
SignedExecutionPayloadBid returns the execution payload bid 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.
func (*VersionedSignedBeaconBlock) SyncAggregate ¶
func (v *VersionedSignedBeaconBlock) SyncAggregate() (*altair.SyncAggregate, error)
SyncAggregate returns the sync aggregate of the beacon block.
func (*VersionedSignedBeaconBlock) VoluntaryExits ¶
func (v *VersionedSignedBeaconBlock) VoluntaryExits() ([]*phase0.SignedVoluntaryExit, error)
VoluntaryExits returns the voluntary exits of the beacon block.
func (*VersionedSignedBeaconBlock) Withdrawals ¶
func (v *VersionedSignedBeaconBlock) Withdrawals() ([]*capella.Withdrawal, error)
Withdrawals returns the withdrawals of the beacon block.
type VersionedSignedExecutionPayloadBid ¶
type VersionedSignedExecutionPayloadBid struct {
Version DataVersion
Gloas *gloas.SignedExecutionPayloadBid
Heze *heze.SignedExecutionPayloadBid
}
VersionedSignedExecutionPayloadBid contains a versioned signed execution payload bid.
func (*VersionedSignedExecutionPayloadBid) BlobKZGCommitments ¶
func (v *VersionedSignedExecutionPayloadBid) BlobKZGCommitments() ([]deneb.KZGCommitment, error)
BlobKZGCommitments returns the blob kzg commitments of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) BlockHash ¶
func (v *VersionedSignedExecutionPayloadBid) BlockHash() (phase0.Hash32, error)
BlockHash returns the block hash of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) BuilderIndex ¶
func (v *VersionedSignedExecutionPayloadBid) BuilderIndex() (gloas.BuilderIndex, error)
BuilderIndex returns the builder index of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) ExecutionPayment ¶
func (v *VersionedSignedExecutionPayloadBid) ExecutionPayment() (phase0.Gwei, error)
ExecutionPayment returns the execution payment of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) FeeRecipient ¶
func (v *VersionedSignedExecutionPayloadBid) FeeRecipient() (bellatrix.ExecutionAddress, error)
FeeRecipient returns the fee recipient of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) GasLimit ¶
func (v *VersionedSignedExecutionPayloadBid) GasLimit() (uint64, error)
GasLimit returns the gas limit of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) ParentBlockHash ¶
func (v *VersionedSignedExecutionPayloadBid) ParentBlockHash() (phase0.Hash32, error)
ParentBlockHash returns the parent block hash of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) ParentBlockRoot ¶
func (v *VersionedSignedExecutionPayloadBid) ParentBlockRoot() (phase0.Root, error)
ParentBlockRoot returns the parent block root of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) Signature ¶
func (v *VersionedSignedExecutionPayloadBid) Signature() (phase0.BLSSignature, error)
Signature returns the signature of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) Slot ¶
func (v *VersionedSignedExecutionPayloadBid) Slot() (phase0.Slot, error)
Slot returns the slot of the execution payload bid.
func (*VersionedSignedExecutionPayloadBid) String ¶
func (v *VersionedSignedExecutionPayloadBid) String() string
String returns a string version of the structure.
Source Files
¶
- builderversion.go
- dataversion.go
- versionedaggregateandproof.go
- versionedattestation.go
- versionedattestation_json.go
- versionedattesterslashing.go
- versionedbeaconblock.go
- versionedbeaconblockbody.go
- versionedbeaconstate.go
- versionedexecutionpayload.go
- versionedindexedattestation.go
- versionedsignedaggregateandproof.go
- versionedsignedbeaconblock.go
- versionedsignedexecutionpayloadbid.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |
|
Code generated by dynamic-ssz.
|
Code generated by dynamic-ssz. |