Versions in this module Expand all Collapse all v1 v1.0.0 Jul 16, 2024 Changes in this version + var ForkChoiceNodeValidityStrings = [...]string + var SupportedEventTopics = map[string]bool + type AttesterDuty struct + CommitteeIndex phase0.CommitteeIndex + CommitteeLength uint64 + CommitteesAtSlot uint64 + PubKey phase0.BLSPubKey + Slot phase0.Slot + ValidatorCommitteeIndex uint64 + ValidatorIndex phase0.ValidatorIndex + func (a *AttesterDuty) MarshalJSON() ([]byte, error) + func (a *AttesterDuty) String() string + func (a *AttesterDuty) UnmarshalJSON(input []byte) error + type BeaconBlockHeader struct + Canonical bool + Header *phase0.SignedBeaconBlockHeader + Root phase0.Root + func (b *BeaconBlockHeader) MarshalJSON() ([]byte, error) + func (b *BeaconBlockHeader) String() string + func (b *BeaconBlockHeader) UnmarshalJSON(input []byte) error + type BeaconCommittee struct + Index phase0.CommitteeIndex + Slot phase0.Slot + Validators []phase0.ValidatorIndex + func (b *BeaconCommittee) MarshalJSON() ([]byte, error) + func (b *BeaconCommittee) String() string + func (b *BeaconCommittee) UnmarshalJSON(input []byte) error + type BeaconCommitteeSubscription struct + CommitteeIndex phase0.CommitteeIndex + CommitteesAtSlot uint64 + IsAggregator bool + Slot phase0.Slot + ValidatorIndex phase0.ValidatorIndex + func (b *BeaconCommitteeSubscription) MarshalJSON() ([]byte, error) + func (b *BeaconCommitteeSubscription) String() string + func (b *BeaconCommitteeSubscription) UnmarshalJSON(input []byte) error + type BlobSidecarEvent struct + BlockRoot phase0.Root + Index deneb.BlobIndex + KZGCommitment deneb.KZGCommitment + Slot phase0.Slot + VersionedHash deneb.VersionedHash + func (e *BlobSidecarEvent) MarshalJSON() ([]byte, error) + func (e *BlobSidecarEvent) String() string + func (e *BlobSidecarEvent) UnmarshalJSON(input []byte) error + type BlockEvent struct + Block phase0.Root + ExecutionOptimistic bool + Slot phase0.Slot + func (e *BlockEvent) MarshalJSON() ([]byte, error) + func (e *BlockEvent) String() string + func (e *BlockEvent) UnmarshalJSON(input []byte) error + type ChainReorgEvent struct + Depth uint64 + Epoch phase0.Epoch + NewHeadBlock phase0.Root + NewHeadState phase0.Root + OldHeadBlock phase0.Root + OldHeadState phase0.Root + Slot phase0.Slot + func (e *ChainReorgEvent) MarshalJSON() ([]byte, error) + func (e *ChainReorgEvent) String() string + func (e *ChainReorgEvent) UnmarshalJSON(input []byte) error + type DepositContract struct + Address []byte + ChainID uint64 + func (d *DepositContract) MarshalJSON() ([]byte, error) + func (d *DepositContract) String() string + func (d *DepositContract) UnmarshalJSON(input []byte) error + type Event struct + Data interface{} + Topic string + func (e *Event) MarshalJSON() ([]byte, error) + func (e *Event) String() string + func (e *Event) UnmarshalJSON(input []byte) error + type Finality struct + Finalized *phase0.Checkpoint + Justified *phase0.Checkpoint + PreviousJustified *phase0.Checkpoint + func (f *Finality) MarshalJSON() ([]byte, error) + func (f *Finality) String() string + func (f *Finality) UnmarshalJSON(input []byte) error + type FinalizedCheckpointEvent struct + Block phase0.Root + Epoch phase0.Epoch + State phase0.Root + func (e *FinalizedCheckpointEvent) MarshalJSON() ([]byte, error) + func (e *FinalizedCheckpointEvent) String() string + func (e *FinalizedCheckpointEvent) UnmarshalJSON(input []byte) error + type ForkChoice struct + FinalizedCheckpoint phase0.Checkpoint + ForkChoiceNodes []*ForkChoiceNode + JustifiedCheckpoint phase0.Checkpoint + func (f *ForkChoice) MarshalJSON() ([]byte, error) + func (f *ForkChoice) String() string + func (f *ForkChoice) UnmarshalJSON(input []byte) error + type ForkChoiceNode struct + BlockRoot phase0.Root + ExecutionBlockHash phase0.Root + ExtraData map[string]interface{} + FinalizedEpoch phase0.Epoch + JustifiedEpoch phase0.Epoch + ParentRoot phase0.Root + Slot phase0.Slot + Validity ForkChoiceNodeValidity + Weight uint64 + func (f *ForkChoiceNode) MarshalJSON() ([]byte, error) + func (f *ForkChoiceNode) String() string + func (f *ForkChoiceNode) UnmarshalJSON(input []byte) error + type ForkChoiceNodeValidity uint64 + const ForkChoiceNodeValidityInvalid + const ForkChoiceNodeValidityOptimistic + const ForkChoiceNodeValidityUnknown + const ForkChoiceNodeValidityValid + func ForkChoiceNodeValidityFromString(input string) (ForkChoiceNodeValidity, error) + func (d *ForkChoiceNodeValidity) MarshalJSON() ([]byte, error) + func (d *ForkChoiceNodeValidity) UnmarshalJSON(input []byte) error + func (d ForkChoiceNodeValidity) String() string + type Genesis struct + GenesisForkVersion phase0.Version + GenesisTime time.Time + GenesisValidatorsRoot phase0.Root + func (g *Genesis) MarshalJSON() ([]byte, error) + func (g *Genesis) String() string + func (g *Genesis) UnmarshalJSON(input []byte) error + type HeadEvent struct + Block phase0.Root + CurrentDutyDependentRoot phase0.Root + EpochTransition bool + PreviousDutyDependentRoot phase0.Root + Slot phase0.Slot + State phase0.Root + func (e *HeadEvent) MarshalJSON() ([]byte, error) + func (e *HeadEvent) String() string + func (e *HeadEvent) UnmarshalJSON(input []byte) error + type PayloadAttributesData struct + ParentBlockHash phase0.Hash32 + ParentBlockNumber uint64 + ParentBlockRoot phase0.Root + ProposalSlot phase0.Slot + ProposerIndex phase0.ValidatorIndex + V1 *PayloadAttributesV1 + V2 *PayloadAttributesV2 + V3 *PayloadAttributesV3 + type PayloadAttributesEvent struct + Data *PayloadAttributesData + Version spec.DataVersion + func (e *PayloadAttributesEvent) MarshalJSON() ([]byte, error) + func (e *PayloadAttributesEvent) String() string + func (e *PayloadAttributesEvent) UnmarshalJSON(input []byte) error + type PayloadAttributesV1 struct + PrevRandao [32]byte + SuggestedFeeRecipient bellatrix.ExecutionAddress + Timestamp uint64 + func (p *PayloadAttributesV1) UnmarshalJSON(input []byte) error + type PayloadAttributesV2 struct + PrevRandao [32]byte + SuggestedFeeRecipient bellatrix.ExecutionAddress + Timestamp uint64 + Withdrawals []*capella.Withdrawal + func (p *PayloadAttributesV2) UnmarshalJSON(input []byte) error + type PayloadAttributesV3 struct + ParentBeaconBlockRoot phase0.Root + PrevRandao [32]byte + SuggestedFeeRecipient bellatrix.ExecutionAddress + Timestamp uint64 + Withdrawals []*capella.Withdrawal + func (p *PayloadAttributesV3) UnmarshalJSON(input []byte) error + type Peer struct + Direction string + Enr string + LastSeenP2PAddress string + PeerID string + State string + func (p *Peer) MarshalJSON() ([]byte, error) + func (p *Peer) String() string + func (p *Peer) UnmarshalJSON(input []byte) error + type ProposalPreparation struct + FeeRecipient bellatrix.ExecutionAddress + ValidatorIndex phase0.ValidatorIndex + func (p *ProposalPreparation) MarshalJSON() ([]byte, error) + func (p *ProposalPreparation) String() string + func (p *ProposalPreparation) UnmarshalJSON(input []byte) error + type ProposerDuty struct + PubKey phase0.BLSPubKey + Slot phase0.Slot + ValidatorIndex phase0.ValidatorIndex + func (p *ProposerDuty) MarshalJSON() ([]byte, error) + func (p *ProposerDuty) String() string + func (p *ProposerDuty) UnmarshalJSON(input []byte) error + type SignedValidatorRegistration struct + Message *ValidatorRegistration + Signature phase0.BLSSignature + func (s *SignedValidatorRegistration) GetTree() (*ssz.Node, error) + func (s *SignedValidatorRegistration) HashTreeRoot() ([32]byte, error) + func (s *SignedValidatorRegistration) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (s *SignedValidatorRegistration) MarshalJSON() ([]byte, error) + func (s *SignedValidatorRegistration) MarshalSSZ() ([]byte, error) + func (s *SignedValidatorRegistration) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (s *SignedValidatorRegistration) MarshalYAML() ([]byte, error) + func (s *SignedValidatorRegistration) SizeSSZ() (size int) + func (s *SignedValidatorRegistration) String() string + func (s *SignedValidatorRegistration) UnmarshalJSON(input []byte) error + func (s *SignedValidatorRegistration) UnmarshalSSZ(buf []byte) error + func (s *SignedValidatorRegistration) UnmarshalYAML(input []byte) error + type SyncCommittee struct + ValidatorAggregates [][]phase0.ValidatorIndex + Validators []phase0.ValidatorIndex + func (s *SyncCommittee) MarshalJSON() ([]byte, error) + func (s *SyncCommittee) String() string + func (s *SyncCommittee) UnmarshalJSON(input []byte) error + type SyncCommitteeDuty struct + PubKey phase0.BLSPubKey + ValidatorIndex phase0.ValidatorIndex + ValidatorSyncCommitteeIndices []phase0.CommitteeIndex + func (s *SyncCommitteeDuty) MarshalJSON() ([]byte, error) + func (s *SyncCommitteeDuty) String() string + func (s *SyncCommitteeDuty) UnmarshalJSON(input []byte) error + type SyncCommitteeSubscription struct + SyncCommitteeIndices []phase0.CommitteeIndex + UntilEpoch phase0.Epoch + ValidatorIndex phase0.ValidatorIndex + func (s *SyncCommitteeSubscription) MarshalJSON() ([]byte, error) + func (s *SyncCommitteeSubscription) String() string + func (s *SyncCommitteeSubscription) UnmarshalJSON(input []byte) error + type SyncState struct + HeadSlot phase0.Slot + IsOptimistic bool + IsSyncing bool + SyncDistance phase0.Slot + func (s *SyncState) MarshalJSON() ([]byte, error) + func (s *SyncState) String() string + func (s *SyncState) UnmarshalJSON(input []byte) error + type Validator struct + Balance phase0.Gwei + Index phase0.ValidatorIndex + Status ValidatorState + Validator *phase0.Validator + func (v *Validator) MarshalJSON() ([]byte, error) + func (v *Validator) PubKey(_ context.Context) (phase0.BLSPubKey, error) + func (v *Validator) String() string + func (v *Validator) UnmarshalJSON(input []byte) error + type ValidatorBalance struct + Balance phase0.Gwei + Index phase0.ValidatorIndex + func (v *ValidatorBalance) MarshalJSON() ([]byte, error) + func (v *ValidatorBalance) String() string + func (v *ValidatorBalance) UnmarshalJSON(input []byte) error + type ValidatorRegistration struct + FeeRecipient bellatrix.ExecutionAddress + GasLimit uint64 + Pubkey phase0.BLSPubKey + Timestamp time.Time + func (v *ValidatorRegistration) GetTree() (*ssz.Node, error) + func (v *ValidatorRegistration) HashTreeRoot() ([32]byte, error) + func (v *ValidatorRegistration) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (v *ValidatorRegistration) MarshalJSON() ([]byte, error) + func (v *ValidatorRegistration) MarshalSSZ() ([]byte, error) + func (v *ValidatorRegistration) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (v *ValidatorRegistration) MarshalYAML() ([]byte, error) + func (v *ValidatorRegistration) SizeSSZ() (size int) + func (v *ValidatorRegistration) String() string + func (v *ValidatorRegistration) UnmarshalJSON(input []byte) error + func (v *ValidatorRegistration) UnmarshalSSZ(buf []byte) error + func (v *ValidatorRegistration) UnmarshalYAML(input []byte) error + type ValidatorState int + const ValidatorStateActiveExiting + const ValidatorStateActiveOngoing + const ValidatorStateActiveSlashed + const ValidatorStateExitedSlashed + const ValidatorStateExitedUnslashed + const ValidatorStatePendingInitialized + const ValidatorStatePendingQueued + const ValidatorStateUnknown + const ValidatorStateWithdrawalDone + const ValidatorStateWithdrawalPossible + func ValidatorToState(validator *phase0.Validator, balance *phase0.Gwei, currentEpoch phase0.Epoch, ...) ValidatorState + func (v *ValidatorState) MarshalJSON() ([]byte, error) + func (v *ValidatorState) UnmarshalJSON(input []byte) error + func (v ValidatorState) HasActivated() bool + func (v ValidatorState) HasBalance() bool + func (v ValidatorState) HasExited() bool + func (v ValidatorState) IsActive() bool + func (v ValidatorState) IsAttesting() bool + func (v ValidatorState) IsExited() bool + func (v ValidatorState) IsPending() bool + func (v ValidatorState) String() string