Documentation ¶
Index ¶
- func AttesterSlashingsToConsensus(src []*AttesterSlashing) ([]*eth.AttesterSlashing, error)
- func AttsToConsensus(src []*Attestation) ([]*eth.Attestation, error)
- func DepositsToConsensus(src []*Deposit) ([]*eth.Deposit, error)
- func ProposerSlashingsToConsensus(src []*ProposerSlashing) ([]*eth.ProposerSlashing, error)
- func SignedBLSChangesToConsensus(src []*SignedBLSToExecutionChange) ([]*eth.SignedBLSToExecutionChange, error)
- func SignedExitsToConsensus(src []*SignedVoluntaryExit) ([]*eth.SignedVoluntaryExit, error)
- type AddrRequest
- type AggregateAttestationAndProof
- type AggregateAttestationResponse
- type AggregatedAttEventSource
- type Attestation
- type AttestationData
- type AttestationRewards
- type AttestationRewardsResponse
- type AttesterDuty
- type AttesterSlashing
- type BLSToExecutionChange
- type BLSToExecutionChangesPoolResponse
- type BeaconBlock
- type BeaconBlockAltair
- type BeaconBlockBellatrix
- type BeaconBlockBody
- type BeaconBlockBodyAltair
- type BeaconBlockBodyBellatrix
- type BeaconBlockBodyCapella
- type BeaconBlockBodyDeneb
- type BeaconBlockCapella
- type BeaconBlockContentsDeneb
- type BeaconBlockDeneb
- type BeaconBlockHeader
- type BeaconCommitteeSubscription
- type BeaconState
- type BeaconStateAltair
- type BeaconStateBellatrix
- type BeaconStateCapella
- type BeaconStateDeneb
- type BlindedBeaconBlockBellatrix
- type BlindedBeaconBlockBodyBellatrix
- type BlindedBeaconBlockBodyCapella
- type BlindedBeaconBlockBodyDeneb
- type BlindedBeaconBlockCapella
- type BlindedBeaconBlockDeneb
- type BlobSidecarEvent
- type BlockEvent
- type BlockRewards
- type BlockRewardsResponse
- type BlockRoot
- type BlockRootResponse
- type ChainReorgEvent
- type Checkpoint
- type Committee
- type ContributionAndProof
- type Deposit
- type DepositContractData
- type DepositData
- type DepositSnapshot
- type Eth1Data
- type ExecutionPayload
- type ExecutionPayloadCapella
- type ExecutionPayloadDeneb
- type ExecutionPayloadHeader
- type ExecutionPayloadHeaderCapella
- type ExecutionPayloadHeaderDeneb
- type ExpectedWithdrawal
- type ExpectedWithdrawalsResponse
- type FeeRecipient
- type FinalityCheckpoints
- type FinalizedCheckpointEvent
- type Fork
- type ForkChoiceDumpExtraData
- type ForkChoiceHead
- type ForkChoiceNode
- type ForkChoiceNodeExtraData
- type Genesis
- type GetAttestationDataResponse
- type GetAttesterDutiesResponse
- type GetAttesterSlashingsResponse
- type GetBeaconStateV2Response
- type GetBlockAttestationsResponse
- type GetBlockHeaderResponse
- type GetBlockHeadersResponse
- type GetBlockResponse
- type GetBlockV2Response
- type GetCommitteesResponse
- type GetDepositContractResponse
- type GetDepositSnapshotResponse
- type GetFinalityCheckpointsResponse
- type GetForkChoiceDumpResponse
- type GetForkChoiceHeadsV2Response
- type GetForkScheduleResponse
- type GetGenesisResponse
- type GetIdentityResponse
- type GetLivenessResponse
- type GetPeerCountResponse
- type GetPeerResponse
- type GetPeersResponse
- type GetProposerDutiesResponse
- type GetProposerSlashingsResponse
- type GetRandaoResponse
- type GetSpecResponse
- type GetStateForkResponse
- type GetStateRootResponse
- type GetSyncCommitteeDutiesResponse
- type GetSyncCommitteeResponse
- type GetValidatorBalancesResponse
- type GetValidatorCountResponse
- type GetValidatorPerformanceRequest
- type GetValidatorPerformanceResponse
- type GetValidatorResponse
- type GetValidatorsRequest
- type GetValidatorsResponse
- type GetVersionResponse
- type GetWeakSubjectivityResponse
- type HeadEvent
- type HistoricalSummary
- type IdealAttestationReward
- type Identity
- type IndexedAttestation
- type LightClientBootstrap
- type LightClientBootstrapResponse
- type LightClientFinalityUpdate
- type LightClientFinalityUpdateEvent
- type LightClientOptimisticUpdate
- type LightClientOptimisticUpdateEvent
- type LightClientUpdate
- type LightClientUpdateWithVersion
- type LightClientUpdatesByRangeResponse
- type ListAttestationsResponse
- type ListVoluntaryExitsResponse
- type Liveness
- type Metadata
- type PayloadAttributesEvent
- type PayloadAttributesEventData
- type PayloadAttributesV1
- type PayloadAttributesV2
- type PayloadAttributesV3
- type Peer
- type PeerCount
- type PeersResponse
- type PendingAttestation
- type ProduceBlockV3Response
- type ProduceSyncCommitteeContributionResponse
- type ProposerDuty
- type ProposerSlashing
- type Randao
- type Sidecar
- type SidecarsResponse
- type SignedAggregateAttestationAndProof
- type SignedBLSToExecutionChange
- type SignedBeaconBlock
- type SignedBeaconBlockAltair
- type SignedBeaconBlockBellatrix
- type SignedBeaconBlockCapella
- type SignedBeaconBlockContentsDeneb
- type SignedBeaconBlockDeneb
- type SignedBeaconBlockHeader
- type SignedBeaconBlockHeaderContainer
- type SignedBlindedBeaconBlockBellatrix
- type SignedBlindedBeaconBlockCapella
- type SignedBlindedBeaconBlockDeneb
- type SignedBlock
- type SignedContributionAndProof
- type SignedValidatorRegistration
- type SignedVoluntaryExit
- type StateRoot
- type SubmitAggregateAndProofsRequest
- type SubmitAttestationsRequest
- type SubmitBeaconCommitteeSubscriptionsRequest
- type SubmitContributionAndProofsRequest
- type SubmitSyncCommitteeSignaturesRequest
- type SubmitSyncCommitteeSubscriptionsRequest
- type SyncAggregate
- type SyncCommittee
- type SyncCommitteeContribution
- type SyncCommitteeDuty
- type SyncCommitteeMessage
- type SyncCommitteeReward
- type SyncCommitteeRewardsResponse
- type SyncCommitteeSubscription
- type SyncCommitteeValidators
- type SyncDetails
- type SyncDetailsContainer
- type SyncStatusResponse
- type SyncStatusResponseData
- type TotalAttestationReward
- type UnaggregatedAttEventSource
- type Validator
- type ValidatorBalance
- type ValidatorContainer
- type ValidatorCount
- type ValidatorRegistration
- type Version
- type VoluntaryExit
- type WeakSubjectivityData
- type Withdrawal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttesterSlashingsToConsensus ¶
func AttesterSlashingsToConsensus(src []*AttesterSlashing) ([]*eth.AttesterSlashing, error)
func AttsToConsensus ¶
func AttsToConsensus(src []*Attestation) ([]*eth.Attestation, error)
func ProposerSlashingsToConsensus ¶
func ProposerSlashingsToConsensus(src []*ProposerSlashing) ([]*eth.ProposerSlashing, error)
func SignedBLSChangesToConsensus ¶
func SignedBLSChangesToConsensus(src []*SignedBLSToExecutionChange) ([]*eth.SignedBLSToExecutionChange, error)
func SignedExitsToConsensus ¶
func SignedExitsToConsensus(src []*SignedVoluntaryExit) ([]*eth.SignedVoluntaryExit, error)
Types ¶
type AddrRequest ¶
type AddrRequest struct {
Addr string `json:"addr"`
}
type AggregateAttestationAndProof ¶
type AggregateAttestationAndProof struct { AggregatorIndex string `json:"aggregator_index"` Aggregate *Attestation `json:"aggregate"` SelectionProof string `json:"selection_proof"` }
func (*AggregateAttestationAndProof) ToConsensus ¶
func (a *AggregateAttestationAndProof) ToConsensus() (*eth.AggregateAttestationAndProof, error)
type AggregateAttestationResponse ¶
type AggregateAttestationResponse struct {
Data *Attestation `json:"data"`
}
type AggregatedAttEventSource ¶
type AggregatedAttEventSource struct {
Aggregate *Attestation `json:"aggregate"`
}
type Attestation ¶
type Attestation struct { AggregationBits string `json:"aggregation_bits"` Data *AttestationData `json:"data"` Signature string `json:"signature"` }
func AttFromConsensus ¶
func AttFromConsensus(a *eth.Attestation) *Attestation
func AttsFromConsensus ¶
func AttsFromConsensus(src []*eth.Attestation) []*Attestation
func (*Attestation) ToConsensus ¶
func (a *Attestation) ToConsensus() (*eth.Attestation, error)
type AttestationData ¶
type AttestationData struct { Slot string `json:"slot"` CommitteeIndex string `json:"index"` BeaconBlockRoot string `json:"beacon_block_root"` Source *Checkpoint `json:"source"` Target *Checkpoint `json:"target"` }
func AttDataFromConsensus ¶
func AttDataFromConsensus(a *eth.AttestationData) *AttestationData
func (*AttestationData) ToConsensus ¶
func (a *AttestationData) ToConsensus() (*eth.AttestationData, error)
type AttestationRewards ¶
type AttestationRewards struct { IdealRewards []IdealAttestationReward `json:"ideal_rewards"` TotalRewards []TotalAttestationReward `json:"total_rewards"` }
type AttestationRewardsResponse ¶
type AttestationRewardsResponse struct { Data AttestationRewards `json:"data"` ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` }
type AttesterDuty ¶
type AttesterDuty struct { Pubkey string `json:"pubkey"` ValidatorIndex string `json:"validator_index"` CommitteeIndex string `json:"committee_index"` CommitteeLength string `json:"committee_length"` CommitteesAtSlot string `json:"committees_at_slot"` ValidatorCommitteeIndex string `json:"validator_committee_index"` Slot string `json:"slot"` }
type AttesterSlashing ¶
type AttesterSlashing struct { Attestation1 *IndexedAttestation `json:"attestation_1"` Attestation2 *IndexedAttestation `json:"attestation_2"` }
func AttesterSlashingFromConsensus ¶
func AttesterSlashingFromConsensus(src *eth.AttesterSlashing) *AttesterSlashing
func AttesterSlashingsFromConsensus ¶
func AttesterSlashingsFromConsensus(src []*eth.AttesterSlashing) []*AttesterSlashing
func (*AttesterSlashing) ToConsensus ¶
func (s *AttesterSlashing) ToConsensus() (*eth.AttesterSlashing, error)
type BLSToExecutionChange ¶
type BLSToExecutionChange struct { ValidatorIndex string `json:"validator_index"` FromBLSPubkey string `json:"from_bls_pubkey"` ToExecutionAddress string `json:"to_execution_address"` }
func BLSChangeFromConsensus ¶
func BLSChangeFromConsensus(ch *eth.BLSToExecutionChange) *BLSToExecutionChange
func (*BLSToExecutionChange) ToConsensus ¶
func (b *BLSToExecutionChange) ToConsensus() (*eth.BLSToExecutionChange, error)
type BLSToExecutionChangesPoolResponse ¶
type BLSToExecutionChangesPoolResponse struct {
Data []*SignedBLSToExecutionChange `json:"data"`
}
type BeaconBlock ¶
type BeaconBlock struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BeaconBlockBody `json:"body"` }
func BeaconBlockFromConsensus ¶
func BeaconBlockFromConsensus(b *eth.BeaconBlock) *BeaconBlock
func (*BeaconBlock) ToConsensus ¶
func (b *BeaconBlock) ToConsensus() (*eth.BeaconBlock, error)
func (*BeaconBlock) ToGeneric ¶
func (b *BeaconBlock) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockAltair ¶
type BeaconBlockAltair struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BeaconBlockBodyAltair `json:"body"` }
func BeaconBlockAltairFromConsensus ¶
func BeaconBlockAltairFromConsensus(b *eth.BeaconBlockAltair) *BeaconBlockAltair
func (*BeaconBlockAltair) ToConsensus ¶
func (b *BeaconBlockAltair) ToConsensus() (*eth.BeaconBlockAltair, error)
func (*BeaconBlockAltair) ToGeneric ¶
func (b *BeaconBlockAltair) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockBellatrix ¶
type BeaconBlockBellatrix struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BeaconBlockBodyBellatrix `json:"body"` }
func BeaconBlockBellatrixFromConsensus ¶
func BeaconBlockBellatrixFromConsensus(b *eth.BeaconBlockBellatrix) (*BeaconBlockBellatrix, error)
func (*BeaconBlockBellatrix) ToConsensus ¶
func (b *BeaconBlockBellatrix) ToConsensus() (*eth.BeaconBlockBellatrix, error)
func (*BeaconBlockBellatrix) ToGeneric ¶
func (b *BeaconBlockBellatrix) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockBody ¶
type BeaconBlockBody struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` }
type BeaconBlockBodyAltair ¶
type BeaconBlockBodyAltair struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` }
type BeaconBlockBodyBellatrix ¶
type BeaconBlockBodyBellatrix struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` ExecutionPayload *ExecutionPayload `json:"execution_payload"` }
type BeaconBlockBodyCapella ¶
type BeaconBlockBodyCapella struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` ExecutionPayload *ExecutionPayloadCapella `json:"execution_payload"` BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"` }
type BeaconBlockBodyDeneb ¶
type BeaconBlockBodyDeneb struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` ExecutionPayload *ExecutionPayloadDeneb `json:"execution_payload"` BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"` BlobKzgCommitments []string `json:"blob_kzg_commitments"` }
type BeaconBlockCapella ¶
type BeaconBlockCapella struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BeaconBlockBodyCapella `json:"body"` }
func BeaconBlockCapellaFromConsensus ¶
func BeaconBlockCapellaFromConsensus(b *eth.BeaconBlockCapella) (*BeaconBlockCapella, error)
func (*BeaconBlockCapella) ToConsensus ¶
func (b *BeaconBlockCapella) ToConsensus() (*eth.BeaconBlockCapella, error)
func (*BeaconBlockCapella) ToGeneric ¶
func (b *BeaconBlockCapella) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockContentsDeneb ¶
type BeaconBlockContentsDeneb struct { Block *BeaconBlockDeneb `json:"block"` KzgProofs []string `json:"kzg_proofs"` Blobs []string `json:"blobs"` }
func BeaconBlockContentsDenebFromConsensus ¶
func BeaconBlockContentsDenebFromConsensus(b *eth.BeaconBlockContentsDeneb) (*BeaconBlockContentsDeneb, error)
func (*BeaconBlockContentsDeneb) ToConsensus ¶
func (b *BeaconBlockContentsDeneb) ToConsensus() (*eth.BeaconBlockContentsDeneb, error)
func (*BeaconBlockContentsDeneb) ToGeneric ¶
func (b *BeaconBlockContentsDeneb) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockDeneb ¶
type BeaconBlockDeneb struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BeaconBlockBodyDeneb `json:"body"` }
func BeaconBlockDenebFromConsensus ¶
func BeaconBlockDenebFromConsensus(b *eth.BeaconBlockDeneb) (*BeaconBlockDeneb, error)
func (*BeaconBlockDeneb) ToConsensus ¶
func (b *BeaconBlockDeneb) ToConsensus() (*eth.BeaconBlockDeneb, error)
type BeaconBlockHeader ¶
type BeaconBlockHeader struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` BodyRoot string `json:"body_root"` }
func BeaconBlockHeaderFromConsensus ¶
func BeaconBlockHeaderFromConsensus(h *eth.BeaconBlockHeader) *BeaconBlockHeader
func (*BeaconBlockHeader) ToConsensus ¶
func (h *BeaconBlockHeader) ToConsensus() (*eth.BeaconBlockHeader, error)
type BeaconCommitteeSubscription ¶
type BeaconCommitteeSubscription struct { ValidatorIndex string `json:"validator_index"` CommitteeIndex string `json:"committee_index"` CommitteesAtSlot string `json:"committees_at_slot"` Slot string `json:"slot"` IsAggregator bool `json:"is_aggregator"` }
func (*BeaconCommitteeSubscription) ToConsensus ¶
func (b *BeaconCommitteeSubscription) ToConsensus() (*validator.BeaconCommitteeSubscription, error)
type BeaconState ¶
type BeaconState struct { GenesisTime string `json:"genesis_time"` GenesisValidatorsRoot string `json:"genesis_validators_root"` Slot string `json:"slot"` Fork *Fork `json:"fork"` LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"` BlockRoots []string `json:"block_roots"` StateRoots []string `json:"state_roots"` HistoricalRoots []string `json:"historical_roots"` Eth1Data *Eth1Data `json:"eth1_data"` Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"` Eth1DepositIndex string `json:"eth1_deposit_index"` Validators []*Validator `json:"validators"` Balances []string `json:"balances"` RandaoMixes []string `json:"randao_mixes"` Slashings []string `json:"slashings"` PreviousEpochAttestations []*PendingAttestation `json:"previous_epoch_attestations"` CurrentEpochAttestations []*PendingAttestation `json:"current_epoch_attestations"` JustificationBits string `json:"justification_bits"` PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"` CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"` FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"` }
func BeaconStateFromConsensus ¶
func BeaconStateFromConsensus(st beaconState.BeaconState) (*BeaconState, error)
type BeaconStateAltair ¶
type BeaconStateAltair struct { GenesisTime string `json:"genesis_time"` GenesisValidatorsRoot string `json:"genesis_validators_root"` Slot string `json:"slot"` Fork *Fork `json:"fork"` LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"` BlockRoots []string `json:"block_roots"` StateRoots []string `json:"state_roots"` HistoricalRoots []string `json:"historical_roots"` Eth1Data *Eth1Data `json:"eth1_data"` Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"` Eth1DepositIndex string `json:"eth1_deposit_index"` Validators []*Validator `json:"validators"` Balances []string `json:"balances"` RandaoMixes []string `json:"randao_mixes"` Slashings []string `json:"slashings"` PreviousEpochParticipation []string `json:"previous_epoch_participation"` CurrentEpochParticipation []string `json:"current_epoch_participation"` JustificationBits string `json:"justification_bits"` PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"` CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"` FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"` InactivityScores []string `json:"inactivity_scores"` CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"` NextSyncCommittee *SyncCommittee `json:"next_sync_committee"` }
func BeaconStateAltairFromConsensus ¶
func BeaconStateAltairFromConsensus(st beaconState.BeaconState) (*BeaconStateAltair, error)
type BeaconStateBellatrix ¶
type BeaconStateBellatrix struct { GenesisTime string `json:"genesis_time"` GenesisValidatorsRoot string `json:"genesis_validators_root"` Slot string `json:"slot"` Fork *Fork `json:"fork"` LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"` BlockRoots []string `json:"block_roots"` StateRoots []string `json:"state_roots"` HistoricalRoots []string `json:"historical_roots"` Eth1Data *Eth1Data `json:"eth1_data"` Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"` Eth1DepositIndex string `json:"eth1_deposit_index"` Validators []*Validator `json:"validators"` Balances []string `json:"balances"` RandaoMixes []string `json:"randao_mixes"` Slashings []string `json:"slashings"` PreviousEpochParticipation []string `json:"previous_epoch_participation"` CurrentEpochParticipation []string `json:"current_epoch_participation"` JustificationBits string `json:"justification_bits"` PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"` CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"` FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"` InactivityScores []string `json:"inactivity_scores"` CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"` NextSyncCommittee *SyncCommittee `json:"next_sync_committee"` LatestExecutionPayloadHeader *ExecutionPayloadHeader `json:"latest_execution_payload_header"` }
func BeaconStateBellatrixFromConsensus ¶
func BeaconStateBellatrixFromConsensus(st beaconState.BeaconState) (*BeaconStateBellatrix, error)
type BeaconStateCapella ¶
type BeaconStateCapella struct { GenesisTime string `json:"genesis_time"` GenesisValidatorsRoot string `json:"genesis_validators_root"` Slot string `json:"slot"` Fork *Fork `json:"fork"` LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"` BlockRoots []string `json:"block_roots"` StateRoots []string `json:"state_roots"` HistoricalRoots []string `json:"historical_roots"` Eth1Data *Eth1Data `json:"eth1_data"` Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"` Eth1DepositIndex string `json:"eth1_deposit_index"` Validators []*Validator `json:"validators"` Balances []string `json:"balances"` RandaoMixes []string `json:"randao_mixes"` Slashings []string `json:"slashings"` PreviousEpochParticipation []string `json:"previous_epoch_participation"` CurrentEpochParticipation []string `json:"current_epoch_participation"` JustificationBits string `json:"justification_bits"` PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"` CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"` FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"` InactivityScores []string `json:"inactivity_scores"` CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"` NextSyncCommittee *SyncCommittee `json:"next_sync_committee"` LatestExecutionPayloadHeader *ExecutionPayloadHeaderCapella `json:"latest_execution_payload_header"` NextWithdrawalIndex string `json:"next_withdrawal_index"` NextWithdrawalValidatorIndex string `json:"next_withdrawal_validator_index"` HistoricalSummaries []*HistoricalSummary `json:"historical_summaries"` }
func BeaconStateCapellaFromConsensus ¶
func BeaconStateCapellaFromConsensus(st beaconState.BeaconState) (*BeaconStateCapella, error)
type BeaconStateDeneb ¶
type BeaconStateDeneb struct { GenesisTime string `json:"genesis_time"` GenesisValidatorsRoot string `json:"genesis_validators_root"` Slot string `json:"slot"` Fork *Fork `json:"fork"` LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"` BlockRoots []string `json:"block_roots"` StateRoots []string `json:"state_roots"` HistoricalRoots []string `json:"historical_roots"` Eth1Data *Eth1Data `json:"eth1_data"` Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"` Eth1DepositIndex string `json:"eth1_deposit_index"` Validators []*Validator `json:"validators"` Balances []string `json:"balances"` RandaoMixes []string `json:"randao_mixes"` Slashings []string `json:"slashings"` PreviousEpochParticipation []string `json:"previous_epoch_participation"` CurrentEpochParticipation []string `json:"current_epoch_participation"` JustificationBits string `json:"justification_bits"` PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"` CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"` FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"` InactivityScores []string `json:"inactivity_scores"` CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"` NextSyncCommittee *SyncCommittee `json:"next_sync_committee"` LatestExecutionPayloadHeader *ExecutionPayloadHeaderDeneb `json:"latest_execution_payload_header"` NextWithdrawalIndex string `json:"next_withdrawal_index"` NextWithdrawalValidatorIndex string `json:"next_withdrawal_validator_index"` HistoricalSummaries []*HistoricalSummary `json:"historical_summaries"` }
func BeaconStateDenebFromConsensus ¶
func BeaconStateDenebFromConsensus(st beaconState.BeaconState) (*BeaconStateDeneb, error)
type BlindedBeaconBlockBellatrix ¶
type BlindedBeaconBlockBellatrix struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BlindedBeaconBlockBodyBellatrix `json:"body"` }
func BlindedBeaconBlockBellatrixFromConsensus ¶
func BlindedBeaconBlockBellatrixFromConsensus(b *eth.BlindedBeaconBlockBellatrix) (*BlindedBeaconBlockBellatrix, error)
func (*BlindedBeaconBlockBellatrix) ToConsensus ¶
func (b *BlindedBeaconBlockBellatrix) ToConsensus() (*eth.BlindedBeaconBlockBellatrix, error)
func (*BlindedBeaconBlockBellatrix) ToGeneric ¶
func (b *BlindedBeaconBlockBellatrix) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlindedBeaconBlockBodyBellatrix ¶
type BlindedBeaconBlockBodyBellatrix struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` ExecutionPayloadHeader *ExecutionPayloadHeader `json:"execution_payload_header"` }
type BlindedBeaconBlockBodyCapella ¶
type BlindedBeaconBlockBodyCapella struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` ExecutionPayloadHeader *ExecutionPayloadHeaderCapella `json:"execution_payload_header"` BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"` }
type BlindedBeaconBlockBodyDeneb ¶
type BlindedBeaconBlockBodyDeneb struct { RandaoReveal string `json:"randao_reveal"` Eth1Data *Eth1Data `json:"eth1_data"` Graffiti string `json:"graffiti"` ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"` AttesterSlashings []*AttesterSlashing `json:"attester_slashings"` Attestations []*Attestation `json:"attestations"` Deposits []*Deposit `json:"deposits"` VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` ExecutionPayloadHeader *ExecutionPayloadHeaderDeneb `json:"execution_payload_header"` BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"` BlobKzgCommitments []string `json:"blob_kzg_commitments"` }
type BlindedBeaconBlockCapella ¶
type BlindedBeaconBlockCapella struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BlindedBeaconBlockBodyCapella `json:"body"` }
func BlindedBeaconBlockCapellaFromConsensus ¶
func BlindedBeaconBlockCapellaFromConsensus(b *eth.BlindedBeaconBlockCapella) (*BlindedBeaconBlockCapella, error)
func (*BlindedBeaconBlockCapella) ToConsensus ¶
func (b *BlindedBeaconBlockCapella) ToConsensus() (*eth.BlindedBeaconBlockCapella, error)
func (*BlindedBeaconBlockCapella) ToGeneric ¶
func (b *BlindedBeaconBlockCapella) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlindedBeaconBlockDeneb ¶
type BlindedBeaconBlockDeneb struct { Slot string `json:"slot"` ProposerIndex string `json:"proposer_index"` ParentRoot string `json:"parent_root"` StateRoot string `json:"state_root"` Body *BlindedBeaconBlockBodyDeneb `json:"body"` }
func BlindedBeaconBlockDenebFromConsensus ¶
func BlindedBeaconBlockDenebFromConsensus(b *eth.BlindedBeaconBlockDeneb) (*BlindedBeaconBlockDeneb, error)
func (*BlindedBeaconBlockDeneb) ToConsensus ¶
func (b *BlindedBeaconBlockDeneb) ToConsensus() (*eth.BlindedBeaconBlockDeneb, error)
func (*BlindedBeaconBlockDeneb) ToGeneric ¶
func (b *BlindedBeaconBlockDeneb) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlobSidecarEvent ¶
type BlockEvent ¶
type BlockRewards ¶
type BlockRewardsResponse ¶
type BlockRewardsResponse struct { Data *BlockRewards `json:"data"` ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` }
type BlockRootResponse ¶
type ChainReorgEvent ¶
type ChainReorgEvent struct { Slot string `json:"slot"` Depth string `json:"depth"` OldHeadBlock string `json:"old_head_block"` NewHeadBlock string `json:"old_head_state"` OldHeadState string `json:"new_head_block"` NewHeadState string `json:"new_head_state"` Epoch string `json:"epoch"` ExecutionOptimistic bool `json:"execution_optimistic"` }
type Checkpoint ¶
func CheckpointFromConsensus ¶
func CheckpointFromConsensus(c *eth.Checkpoint) *Checkpoint
func (*Checkpoint) ToConsensus ¶
func (c *Checkpoint) ToConsensus() (*eth.Checkpoint, error)
type ContributionAndProof ¶
type ContributionAndProof struct { AggregatorIndex string `json:"aggregator_index"` Contribution *SyncCommitteeContribution `json:"contribution"` SelectionProof string `json:"selection_proof"` }
func ContributionAndProofFromConsensus ¶
func ContributionAndProofFromConsensus(c *eth.ContributionAndProof) *ContributionAndProof
func (*ContributionAndProof) ToConsensus ¶
func (c *ContributionAndProof) ToConsensus() (*eth.ContributionAndProof, error)
type Deposit ¶
type Deposit struct { Proof []string `json:"proof"` Data *DepositData `json:"data"` }
func DepositsFromConsensus ¶
type DepositContractData ¶
type DepositData ¶
type DepositSnapshot ¶
type DepositSnapshot struct { Finalized []string `json:"finalized"` DepositRoot string `json:"deposit_root"` DepositCount string `json:"deposit_count"` ExecutionBlockHash string `json:"execution_block_hash"` ExecutionBlockHeight string `json:"execution_block_height"` }
func DepositSnapshotFromConsensus ¶
func DepositSnapshotFromConsensus(ds *eth.DepositSnapshot) *DepositSnapshot
type Eth1Data ¶
type Eth1Data struct { DepositRoot string `json:"deposit_root"` DepositCount string `json:"deposit_count"` BlockHash string `json:"block_hash"` }
func Eth1DataFromConsensus ¶
type ExecutionPayload ¶
type ExecutionPayload struct { ParentHash string `json:"parent_hash"` FeeRecipient string `json:"fee_recipient"` StateRoot string `json:"state_root"` ReceiptsRoot string `json:"receipts_root"` LogsBloom string `json:"logs_bloom"` PrevRandao string `json:"prev_randao"` BlockNumber string `json:"block_number"` GasLimit string `json:"gas_limit"` GasUsed string `json:"gas_used"` Timestamp string `json:"timestamp"` ExtraData string `json:"extra_data"` BaseFeePerGas string `json:"base_fee_per_gas"` BlockHash string `json:"block_hash"` Transactions []string `json:"transactions"` }
type ExecutionPayloadCapella ¶
type ExecutionPayloadCapella struct { ParentHash string `json:"parent_hash"` FeeRecipient string `json:"fee_recipient"` StateRoot string `json:"state_root"` ReceiptsRoot string `json:"receipts_root"` LogsBloom string `json:"logs_bloom"` PrevRandao string `json:"prev_randao"` BlockNumber string `json:"block_number"` GasLimit string `json:"gas_limit"` GasUsed string `json:"gas_used"` Timestamp string `json:"timestamp"` ExtraData string `json:"extra_data"` BaseFeePerGas string `json:"base_fee_per_gas"` BlockHash string `json:"block_hash"` Transactions []string `json:"transactions"` Withdrawals []*Withdrawal `json:"withdrawals"` }
type ExecutionPayloadDeneb ¶
type ExecutionPayloadDeneb struct { ParentHash string `json:"parent_hash"` FeeRecipient string `json:"fee_recipient"` StateRoot string `json:"state_root"` ReceiptsRoot string `json:"receipts_root"` LogsBloom string `json:"logs_bloom"` PrevRandao string `json:"prev_randao"` BlockNumber string `json:"block_number"` GasLimit string `json:"gas_limit"` GasUsed string `json:"gas_used"` Timestamp string `json:"timestamp"` ExtraData string `json:"extra_data"` BaseFeePerGas string `json:"base_fee_per_gas"` BlockHash string `json:"block_hash"` Transactions []string `json:"transactions"` Withdrawals []*Withdrawal `json:"withdrawals"` BlobGasUsed string `json:"blob_gas_used"` ExcessBlobGas string `json:"excess_blob_gas"` }
type ExecutionPayloadHeader ¶
type ExecutionPayloadHeader struct { ParentHash string `json:"parent_hash"` FeeRecipient string `json:"fee_recipient"` StateRoot string `json:"state_root"` ReceiptsRoot string `json:"receipts_root"` LogsBloom string `json:"logs_bloom"` PrevRandao string `json:"prev_randao"` BlockNumber string `json:"block_number"` GasLimit string `json:"gas_limit"` GasUsed string `json:"gas_used"` Timestamp string `json:"timestamp"` ExtraData string `json:"extra_data"` BaseFeePerGas string `json:"base_fee_per_gas"` BlockHash string `json:"block_hash"` TransactionsRoot string `json:"transactions_root"` }
func ExecutionPayloadHeaderFromConsensus ¶
func ExecutionPayloadHeaderFromConsensus(payload *enginev1.ExecutionPayloadHeader) (*ExecutionPayloadHeader, error)
type ExecutionPayloadHeaderCapella ¶
type ExecutionPayloadHeaderCapella struct { ParentHash string `json:"parent_hash"` FeeRecipient string `json:"fee_recipient"` StateRoot string `json:"state_root"` ReceiptsRoot string `json:"receipts_root"` LogsBloom string `json:"logs_bloom"` PrevRandao string `json:"prev_randao"` BlockNumber string `json:"block_number"` GasLimit string `json:"gas_limit"` GasUsed string `json:"gas_used"` Timestamp string `json:"timestamp"` ExtraData string `json:"extra_data"` BaseFeePerGas string `json:"base_fee_per_gas"` BlockHash string `json:"block_hash"` TransactionsRoot string `json:"transactions_root"` WithdrawalsRoot string `json:"withdrawals_root"` }
func ExecutionPayloadHeaderCapellaFromConsensus ¶
func ExecutionPayloadHeaderCapellaFromConsensus(payload *enginev1.ExecutionPayloadHeaderCapella) (*ExecutionPayloadHeaderCapella, error)
type ExecutionPayloadHeaderDeneb ¶
type ExecutionPayloadHeaderDeneb struct { ParentHash string `json:"parent_hash"` FeeRecipient string `json:"fee_recipient"` StateRoot string `json:"state_root"` ReceiptsRoot string `json:"receipts_root"` LogsBloom string `json:"logs_bloom"` PrevRandao string `json:"prev_randao"` BlockNumber string `json:"block_number"` GasLimit string `json:"gas_limit"` GasUsed string `json:"gas_used"` Timestamp string `json:"timestamp"` ExtraData string `json:"extra_data"` BaseFeePerGas string `json:"base_fee_per_gas"` BlockHash string `json:"block_hash"` TransactionsRoot string `json:"transactions_root"` WithdrawalsRoot string `json:"withdrawals_root"` BlobGasUsed string `json:"blob_gas_used"` ExcessBlobGas string `json:"excess_blob_gas"` }
func ExecutionPayloadHeaderDenebFromConsensus ¶
func ExecutionPayloadHeaderDenebFromConsensus(payload *enginev1.ExecutionPayloadHeaderDeneb) (*ExecutionPayloadHeaderDeneb, error)
type ExpectedWithdrawal ¶
type ExpectedWithdrawalsResponse ¶
type ExpectedWithdrawalsResponse struct { Data []*ExpectedWithdrawal `json:"data"` ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` }
type FeeRecipient ¶
type FinalityCheckpoints ¶
type FinalityCheckpoints struct { PreviousJustified *Checkpoint `json:"previous_justified"` CurrentJustified *Checkpoint `json:"current_justified"` Finalized *Checkpoint `json:"finalized"` }
type Fork ¶
type Fork struct { PreviousVersion string `json:"previous_version"` CurrentVersion string `json:"current_version"` Epoch string `json:"epoch"` }
func ForkFromConsensus ¶
type ForkChoiceDumpExtraData ¶
type ForkChoiceDumpExtraData struct { UnrealizedJustifiedCheckpoint *Checkpoint `json:"unrealized_justified_checkpoint"` UnrealizedFinalizedCheckpoint *Checkpoint `json:"unrealized_finalized_checkpoint"` ProposerBoostRoot string `json:"proposer_boost_root"` PreviousProposerBoostRoot string `json:"previous_proposer_boost_root"` HeadRoot string `json:"head_root"` }
type ForkChoiceHead ¶
type ForkChoiceNode ¶
type ForkChoiceNode struct { Slot string `json:"slot"` BlockRoot string `json:"block_root"` ParentRoot string `json:"parent_root"` JustifiedEpoch string `json:"justified_epoch"` FinalizedEpoch string `json:"finalized_epoch"` Weight string `json:"weight"` Validity string `json:"validity"` ExecutionBlockHash string `json:"execution_block_hash"` ExtraData *ForkChoiceNodeExtraData `json:"extra_data"` }
type ForkChoiceNodeExtraData ¶
type GetAttestationDataResponse ¶
type GetAttestationDataResponse struct {
Data *AttestationData `json:"data"`
}
type GetAttesterDutiesResponse ¶
type GetAttesterDutiesResponse struct { DependentRoot string `json:"dependent_root"` ExecutionOptimistic bool `json:"execution_optimistic"` Data []*AttesterDuty `json:"data"` }
type GetAttesterSlashingsResponse ¶
type GetAttesterSlashingsResponse struct {
Data []*AttesterSlashing `json:"data"`
}
type GetBeaconStateV2Response ¶
type GetBeaconStateV2Response struct { Version string `json:"version"` ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data json.RawMessage `json:"data"` // represents the state values based on the version }
type GetBlockAttestationsResponse ¶
type GetBlockAttestationsResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data []*Attestation `json:"data"` }
type GetBlockHeaderResponse ¶
type GetBlockHeaderResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data *SignedBeaconBlockHeaderContainer `json:"data"` }
type GetBlockHeadersResponse ¶
type GetBlockHeadersResponse struct { Data []*SignedBeaconBlockHeaderContainer `json:"data"` ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` }
type GetBlockResponse ¶
type GetBlockResponse struct {
Data *SignedBlock `json:"data"`
}
type GetBlockV2Response ¶
type GetBlockV2Response struct { Version string `json:"version"` ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data *SignedBlock `json:"data"` }
type GetCommitteesResponse ¶
type GetDepositContractResponse ¶
type GetDepositContractResponse struct {
Data *DepositContractData `json:"data"`
}
type GetDepositSnapshotResponse ¶
type GetDepositSnapshotResponse struct {
Data *DepositSnapshot `json:"data"`
}
type GetFinalityCheckpointsResponse ¶
type GetFinalityCheckpointsResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data *FinalityCheckpoints `json:"data"` }
type GetForkChoiceDumpResponse ¶
type GetForkChoiceDumpResponse struct { JustifiedCheckpoint *Checkpoint `json:"justified_checkpoint"` FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"` ForkChoiceNodes []*ForkChoiceNode `json:"fork_choice_nodes"` ExtraData *ForkChoiceDumpExtraData `json:"extra_data"` }
type GetForkChoiceHeadsV2Response ¶
type GetForkChoiceHeadsV2Response struct {
Data []*ForkChoiceHead `json:"data"`
}
type GetForkScheduleResponse ¶
type GetForkScheduleResponse struct {
Data []*Fork `json:"data"`
}
type GetGenesisResponse ¶
type GetGenesisResponse struct {
Data *Genesis `json:"data"`
}
type GetIdentityResponse ¶
type GetIdentityResponse struct {
Data *Identity `json:"data"`
}
type GetLivenessResponse ¶
type GetLivenessResponse struct {
Data []*Liveness `json:"data"`
}
type GetPeerCountResponse ¶
type GetPeerCountResponse struct {
Data *PeerCount `json:"data"`
}
type GetPeerResponse ¶
type GetPeerResponse struct {
Data *Peer `json:"data"`
}
type GetPeersResponse ¶
type GetPeersResponse struct {
Data []*Peer `json:"data"`
}
type GetProposerDutiesResponse ¶
type GetProposerDutiesResponse struct { DependentRoot string `json:"dependent_root"` ExecutionOptimistic bool `json:"execution_optimistic"` Data []*ProposerDuty `json:"data"` }
type GetProposerSlashingsResponse ¶
type GetProposerSlashingsResponse struct {
Data []*ProposerSlashing `json:"data"`
}
type GetRandaoResponse ¶
type GetSpecResponse ¶
type GetSpecResponse struct {
Data interface{} `json:"data"`
}
type GetStateForkResponse ¶
type GetStateRootResponse ¶
type GetSyncCommitteeDutiesResponse ¶
type GetSyncCommitteeDutiesResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Data []*SyncCommitteeDuty `json:"data"` }
type GetSyncCommitteeResponse ¶
type GetSyncCommitteeResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data *SyncCommitteeValidators `json:"data"` }
type GetValidatorBalancesResponse ¶
type GetValidatorBalancesResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data []*ValidatorBalance `json:"data"` }
type GetValidatorCountResponse ¶
type GetValidatorCountResponse struct { ExecutionOptimistic string `json:"execution_optimistic"` Finalized string `json:"finalized"` Data []*ValidatorCount `json:"data"` }
type GetValidatorPerformanceRequest ¶
type GetValidatorPerformanceRequest struct { PublicKeys [][]byte `json:"public_keys,omitempty"` Indices []primitives.ValidatorIndex `json:"indices,omitempty"` }
type GetValidatorPerformanceResponse ¶
type GetValidatorPerformanceResponse struct { PublicKeys [][]byte `json:"public_keys,omitempty"` CorrectlyVotedSource []bool `json:"correctly_voted_source,omitempty"` CorrectlyVotedTarget []bool `json:"correctly_voted_target,omitempty"` CorrectlyVotedHead []bool `json:"correctly_voted_head,omitempty"` CurrentEffectiveBalances []uint64 `json:"current_effective_balances,omitempty"` BalancesBeforeEpochTransition []uint64 `json:"balances_before_epoch_transition,omitempty"` BalancesAfterEpochTransition []uint64 `json:"balances_after_epoch_transition,omitempty"` MissingValidators [][]byte `json:"missing_validators,omitempty"` InactivityScores []uint64 `json:"inactivity_scores,omitempty"` }
type GetValidatorResponse ¶
type GetValidatorResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data *ValidatorContainer `json:"data"` }
type GetValidatorsRequest ¶
type GetValidatorsResponse ¶
type GetValidatorsResponse struct { ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` Data []*ValidatorContainer `json:"data"` }
type GetVersionResponse ¶
type GetVersionResponse struct {
Data *Version `json:"data"`
}
type GetWeakSubjectivityResponse ¶
type GetWeakSubjectivityResponse struct {
Data *WeakSubjectivityData `json:"data"`
}
type HeadEvent ¶
type HeadEvent struct { Slot string `json:"slot"` Block string `json:"block"` State string `json:"state"` EpochTransition bool `json:"epoch_transition"` ExecutionOptimistic bool `json:"execution_optimistic"` PreviousDutyDependentRoot string `json:"previous_duty_dependent_root"` CurrentDutyDependentRoot string `json:"current_duty_dependent_root"` }
type HistoricalSummary ¶
type HistoricalSummary struct { BlockSummaryRoot string `json:"block_summary_root"` StateSummaryRoot string `json:"state_summary_root"` }
func HistoricalSummaryFromConsensus ¶
func HistoricalSummaryFromConsensus(s *eth.HistoricalSummary) *HistoricalSummary
type IdealAttestationReward ¶
type IndexedAttestation ¶
type IndexedAttestation struct { AttestingIndices []string `json:"attesting_indices"` Data *AttestationData `json:"data"` Signature string `json:"signature"` }
func (*IndexedAttestation) ToConsensus ¶
func (a *IndexedAttestation) ToConsensus() (*eth.IndexedAttestation, error)
type LightClientBootstrap ¶
type LightClientBootstrap struct { Header *BeaconBlockHeader `json:"header"` CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"` CurrentSyncCommitteeBranch []string `json:"current_sync_committee_branch"` }
type LightClientBootstrapResponse ¶
type LightClientBootstrapResponse struct { Version string `json:"version"` Data *LightClientBootstrap `json:"data"` }
type LightClientFinalityUpdate ¶
type LightClientFinalityUpdate struct { AttestedHeader *BeaconBlockHeader `json:"attested_header"` FinalizedHeader *BeaconBlockHeader `json:"finalized_header"` FinalityBranch []string `json:"finality_branch"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` SignatureSlot string `json:"signature_slot"` }
type LightClientFinalityUpdateEvent ¶
type LightClientFinalityUpdateEvent struct { Version string `json:"version"` Data *LightClientFinalityUpdate `json:"data"` }
type LightClientOptimisticUpdate ¶
type LightClientOptimisticUpdate struct { AttestedHeader *BeaconBlockHeader `json:"attested_header"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` SignatureSlot string `json:"signature_slot"` }
type LightClientOptimisticUpdateEvent ¶
type LightClientOptimisticUpdateEvent struct { Version string `json:"version"` Data *LightClientOptimisticUpdate `json:"data"` }
type LightClientUpdate ¶
type LightClientUpdate struct { AttestedHeader *BeaconBlockHeader `json:"attested_header"` NextSyncCommittee *SyncCommittee `json:"next_sync_committee,omitempty"` FinalizedHeader *BeaconBlockHeader `json:"finalized_header,omitempty"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` NextSyncCommitteeBranch []string `json:"next_sync_committee_branch,omitempty"` FinalityBranch []string `json:"finality_branch,omitempty"` SignatureSlot string `json:"signature_slot"` }
type LightClientUpdateWithVersion ¶
type LightClientUpdateWithVersion struct { Version string `json:"version"` Data *LightClientUpdate `json:"data"` }
type LightClientUpdatesByRangeResponse ¶
type LightClientUpdatesByRangeResponse struct {
Updates []*LightClientUpdateWithVersion `json:"updates"`
}
type ListAttestationsResponse ¶
type ListAttestationsResponse struct {
Data []*Attestation `json:"data"`
}
type ListVoluntaryExitsResponse ¶
type ListVoluntaryExitsResponse struct {
Data []*SignedVoluntaryExit `json:"data"`
}
type PayloadAttributesEvent ¶
type PayloadAttributesEvent struct { Version string `json:"version"` Data json.RawMessage `json:"data"` }
type PayloadAttributesEventData ¶
type PayloadAttributesEventData struct { ProposerIndex string `json:"proposer_index"` ProposalSlot string `json:"proposal_slot"` ParentBlockNumber string `json:"parent_block_number"` ParentBlockRoot string `json:"parent_block_root"` ParentBlockHash string `json:"parent_block_hash"` PayloadAttributes json.RawMessage `json:"payload_attributes"` }
type PayloadAttributesV1 ¶
type PayloadAttributesV2 ¶
type PayloadAttributesV2 struct { Timestamp string `json:"timestamp"` PrevRandao string `json:"prev_randao"` SuggestedFeeRecipient string `json:"suggested_fee_recipient"` Withdrawals []*Withdrawal `json:"withdrawals"` }
type PayloadAttributesV3 ¶
type PayloadAttributesV3 struct { Timestamp string `json:"timestamp"` PrevRandao string `json:"prev_randao"` SuggestedFeeRecipient string `json:"suggested_fee_recipient"` Withdrawals []*Withdrawal `json:"withdrawals"` ParentBeaconBlockRoot string `json:"parent_beacon_block_root"` }
type PeersResponse ¶
type PeersResponse struct {
Peers []*Peer `json:"peers"`
}
type PendingAttestation ¶
type PendingAttestation struct { AggregationBits string `json:"aggregation_bits"` Data *AttestationData `json:"data"` InclusionDelay string `json:"inclusion_delay"` ProposerIndex string `json:"proposer_index"` }
func PendingAttestationFromConsensus ¶
func PendingAttestationFromConsensus(a *eth.PendingAttestation) *PendingAttestation
type ProduceBlockV3Response ¶
type ProduceBlockV3Response struct { Version string `json:"version"` ExecutionPayloadBlinded bool `json:"execution_payload_blinded"` ExecutionPayloadValue string `json:"execution_payload_value"` ConsensusBlockValue string `json:"consensus_block_value"` Data json.RawMessage `json:"data"` // represents the block values based on the version }
ProduceBlockV3Response is a wrapper json object for the returned block from the ProduceBlockV3 endpoint
type ProduceSyncCommitteeContributionResponse ¶
type ProduceSyncCommitteeContributionResponse struct {
Data *SyncCommitteeContribution `json:"data"`
}
type ProposerDuty ¶
type ProposerSlashing ¶
type ProposerSlashing struct { SignedHeader1 *SignedBeaconBlockHeader `json:"signed_header_1"` SignedHeader2 *SignedBeaconBlockHeader `json:"signed_header_2"` }
func ProposerSlashingFromConsensus ¶
func ProposerSlashingFromConsensus(src *eth.ProposerSlashing) *ProposerSlashing
func ProposerSlashingsFromConsensus ¶
func ProposerSlashingsFromConsensus(src []*eth.ProposerSlashing) []*ProposerSlashing
func (*ProposerSlashing) ToConsensus ¶
func (s *ProposerSlashing) ToConsensus() (*eth.ProposerSlashing, error)
type Sidecar ¶
type Sidecar struct { Index string `json:"index"` Blob string `json:"blob"` SignedBeaconBlockHeader *SignedBeaconBlockHeader `json:"signed_block_header"` KzgCommitment string `json:"kzg_commitment"` KzgProof string `json:"kzg_proof"` CommitmentInclusionProof []string `json:"kzg_commitment_inclusion_proof"` }
type SidecarsResponse ¶
type SidecarsResponse struct {
Data []*Sidecar `json:"data"`
}
type SignedAggregateAttestationAndProof ¶
type SignedAggregateAttestationAndProof struct { Message *AggregateAttestationAndProof `json:"message"` Signature string `json:"signature"` }
func (*SignedAggregateAttestationAndProof) ToConsensus ¶
func (s *SignedAggregateAttestationAndProof) ToConsensus() (*eth.SignedAggregateAttestationAndProof, error)
type SignedBLSToExecutionChange ¶
type SignedBLSToExecutionChange struct { Message *BLSToExecutionChange `json:"message"` Signature string `json:"signature"` }
func SignedBLSChangeFromConsensus ¶
func SignedBLSChangeFromConsensus(ch *eth.SignedBLSToExecutionChange) *SignedBLSToExecutionChange
func SignedBLSChangesFromConsensus ¶
func SignedBLSChangesFromConsensus(src []*eth.SignedBLSToExecutionChange) []*SignedBLSToExecutionChange
func (*SignedBLSToExecutionChange) ToConsensus ¶
func (s *SignedBLSToExecutionChange) ToConsensus() (*eth.SignedBLSToExecutionChange, error)
type SignedBeaconBlock ¶
type SignedBeaconBlock struct { Message *BeaconBlock `json:"message"` Signature string `json:"signature"` }
func SignedBeaconBlockFromConsensus ¶
func SignedBeaconBlockFromConsensus(b *eth.SignedBeaconBlock) *SignedBeaconBlock
func (*SignedBeaconBlock) ToGeneric ¶
func (b *SignedBeaconBlock) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockAltair ¶
type SignedBeaconBlockAltair struct { Message *BeaconBlockAltair `json:"message"` Signature string `json:"signature"` }
func SignedBeaconBlockAltairFromConsensus ¶
func SignedBeaconBlockAltairFromConsensus(b *eth.SignedBeaconBlockAltair) *SignedBeaconBlockAltair
func (*SignedBeaconBlockAltair) ToGeneric ¶
func (b *SignedBeaconBlockAltair) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockBellatrix ¶
type SignedBeaconBlockBellatrix struct { Message *BeaconBlockBellatrix `json:"message"` Signature string `json:"signature"` }
func SignedBeaconBlockBellatrixFromConsensus ¶
func SignedBeaconBlockBellatrixFromConsensus(b *eth.SignedBeaconBlockBellatrix) (*SignedBeaconBlockBellatrix, error)
func (*SignedBeaconBlockBellatrix) ToGeneric ¶
func (b *SignedBeaconBlockBellatrix) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockCapella ¶
type SignedBeaconBlockCapella struct { Message *BeaconBlockCapella `json:"message"` Signature string `json:"signature"` }
func SignedBeaconBlockCapellaFromConsensus ¶
func SignedBeaconBlockCapellaFromConsensus(b *eth.SignedBeaconBlockCapella) (*SignedBeaconBlockCapella, error)
func (*SignedBeaconBlockCapella) ToGeneric ¶
func (b *SignedBeaconBlockCapella) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockContentsDeneb ¶
type SignedBeaconBlockContentsDeneb struct { SignedBlock *SignedBeaconBlockDeneb `json:"signed_block"` KzgProofs []string `json:"kzg_proofs"` Blobs []string `json:"blobs"` }
func SignedBeaconBlockContentsDenebFromConsensus ¶
func SignedBeaconBlockContentsDenebFromConsensus(b *eth.SignedBeaconBlockContentsDeneb) (*SignedBeaconBlockContentsDeneb, error)
func (*SignedBeaconBlockContentsDeneb) ToGeneric ¶
func (b *SignedBeaconBlockContentsDeneb) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
func (*SignedBeaconBlockContentsDeneb) ToUnsigned ¶
func (b *SignedBeaconBlockContentsDeneb) ToUnsigned() *BeaconBlockContentsDeneb
type SignedBeaconBlockDeneb ¶
type SignedBeaconBlockDeneb struct { Message *BeaconBlockDeneb `json:"message"` Signature string `json:"signature"` }
func SignedBeaconBlockDenebFromConsensus ¶
func SignedBeaconBlockDenebFromConsensus(b *eth.SignedBeaconBlockDeneb) (*SignedBeaconBlockDeneb, error)
func (*SignedBeaconBlockDeneb) ToConsensus ¶
func (b *SignedBeaconBlockDeneb) ToConsensus() (*eth.SignedBeaconBlockDeneb, error)
type SignedBeaconBlockHeader ¶
type SignedBeaconBlockHeader struct { Message *BeaconBlockHeader `json:"message"` Signature string `json:"signature"` }
func SignedBeaconBlockHeaderFromConsensus ¶
func SignedBeaconBlockHeaderFromConsensus(src *eth.SignedBeaconBlockHeader) *SignedBeaconBlockHeader
func (*SignedBeaconBlockHeader) ToConsensus ¶
func (h *SignedBeaconBlockHeader) ToConsensus() (*eth.SignedBeaconBlockHeader, error)
type SignedBeaconBlockHeaderContainer ¶
type SignedBeaconBlockHeaderContainer struct { Header *SignedBeaconBlockHeader `json:"header"` Root string `json:"root"` Canonical bool `json:"canonical"` }
type SignedBlindedBeaconBlockBellatrix ¶
type SignedBlindedBeaconBlockBellatrix struct { Message *BlindedBeaconBlockBellatrix `json:"message"` Signature string `json:"signature"` }
func SignedBlindedBeaconBlockBellatrixFromConsensus ¶
func SignedBlindedBeaconBlockBellatrixFromConsensus(b *eth.SignedBlindedBeaconBlockBellatrix) (*SignedBlindedBeaconBlockBellatrix, error)
func (*SignedBlindedBeaconBlockBellatrix) ToGeneric ¶
func (b *SignedBlindedBeaconBlockBellatrix) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlindedBeaconBlockCapella ¶
type SignedBlindedBeaconBlockCapella struct { Message *BlindedBeaconBlockCapella `json:"message"` Signature string `json:"signature"` }
func SignedBlindedBeaconBlockCapellaFromConsensus ¶
func SignedBlindedBeaconBlockCapellaFromConsensus(b *eth.SignedBlindedBeaconBlockCapella) (*SignedBlindedBeaconBlockCapella, error)
func (*SignedBlindedBeaconBlockCapella) ToGeneric ¶
func (b *SignedBlindedBeaconBlockCapella) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlindedBeaconBlockDeneb ¶
type SignedBlindedBeaconBlockDeneb struct { Message *BlindedBeaconBlockDeneb `json:"message"` Signature string `json:"signature"` }
func SignedBlindedBeaconBlockDenebFromConsensus ¶
func SignedBlindedBeaconBlockDenebFromConsensus(b *eth.SignedBlindedBeaconBlockDeneb) (*SignedBlindedBeaconBlockDeneb, error)
func (*SignedBlindedBeaconBlockDeneb) ToConsensus ¶
func (b *SignedBlindedBeaconBlockDeneb) ToConsensus() (*eth.SignedBlindedBeaconBlockDeneb, error)
func (*SignedBlindedBeaconBlockDeneb) ToGeneric ¶
func (b *SignedBlindedBeaconBlockDeneb) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlock ¶
type SignedBlock struct { Message json.RawMessage `json:"message"` // represents the block values based on the version Signature string `json:"signature"` }
type SignedContributionAndProof ¶
type SignedContributionAndProof struct { Message *ContributionAndProof `json:"message"` Signature string `json:"signature"` }
func SignedContributionAndProofFromConsensus ¶
func SignedContributionAndProofFromConsensus(c *eth.SignedContributionAndProof) *SignedContributionAndProof
func (*SignedContributionAndProof) ToConsensus ¶
func (s *SignedContributionAndProof) ToConsensus() (*eth.SignedContributionAndProof, error)
type SignedValidatorRegistration ¶
type SignedValidatorRegistration struct { Message *ValidatorRegistration `json:"message"` Signature string `json:"signature"` }
func SignedValidatorRegistrationFromConsensus ¶
func SignedValidatorRegistrationFromConsensus(vr *eth.SignedValidatorRegistrationV1) *SignedValidatorRegistration
func (*SignedValidatorRegistration) ToConsensus ¶
func (s *SignedValidatorRegistration) ToConsensus() (*eth.SignedValidatorRegistrationV1, error)
type SignedVoluntaryExit ¶
type SignedVoluntaryExit struct { Message *VoluntaryExit `json:"message"` Signature string `json:"signature"` }
func SignedExitFromConsensus ¶
func SignedExitFromConsensus(e *eth.SignedVoluntaryExit) *SignedVoluntaryExit
func SignedExitsFromConsensus ¶
func SignedExitsFromConsensus(src []*eth.SignedVoluntaryExit) []*SignedVoluntaryExit
func (*SignedVoluntaryExit) ToConsensus ¶
func (e *SignedVoluntaryExit) ToConsensus() (*eth.SignedVoluntaryExit, error)
type SubmitAggregateAndProofsRequest ¶
type SubmitAggregateAndProofsRequest struct {
Data []*SignedAggregateAttestationAndProof `json:"data"`
}
type SubmitAttestationsRequest ¶
type SubmitAttestationsRequest struct {
Data []*Attestation `json:"data"`
}
type SubmitBeaconCommitteeSubscriptionsRequest ¶
type SubmitBeaconCommitteeSubscriptionsRequest struct {
Data []*BeaconCommitteeSubscription `json:"data"`
}
type SubmitContributionAndProofsRequest ¶
type SubmitContributionAndProofsRequest struct {
Data []*SignedContributionAndProof `json:"data"`
}
type SubmitSyncCommitteeSignaturesRequest ¶
type SubmitSyncCommitteeSignaturesRequest struct {
Data []*SyncCommitteeMessage `json:"data"`
}
type SubmitSyncCommitteeSubscriptionsRequest ¶
type SubmitSyncCommitteeSubscriptionsRequest struct {
Data []*SyncCommitteeSubscription `json:"data"`
}
type SyncAggregate ¶
type SyncCommittee ¶
type SyncCommittee struct { Pubkeys []string `json:"pubkeys"` AggregatePubkey string `json:"aggregate_pubkey"` }
func SyncCommitteeFromConsensus ¶
func SyncCommitteeFromConsensus(sc *eth.SyncCommittee) *SyncCommittee
func (*SyncCommittee) ToConsensus ¶
func (sc *SyncCommittee) ToConsensus() (*eth.SyncCommittee, error)
type SyncCommitteeContribution ¶
type SyncCommitteeContribution struct { Slot string `json:"slot"` BeaconBlockRoot string `json:"beacon_block_root"` SubcommitteeIndex string `json:"subcommittee_index"` AggregationBits string `json:"aggregation_bits"` Signature string `json:"signature"` }
func SyncCommitteeContributionFromConsensus ¶
func SyncCommitteeContributionFromConsensus(c *eth.SyncCommitteeContribution) *SyncCommitteeContribution
func (*SyncCommitteeContribution) ToConsensus ¶
func (s *SyncCommitteeContribution) ToConsensus() (*eth.SyncCommitteeContribution, error)
type SyncCommitteeDuty ¶
type SyncCommitteeMessage ¶
type SyncCommitteeMessage struct { Slot string `json:"slot"` BeaconBlockRoot string `json:"beacon_block_root"` ValidatorIndex string `json:"validator_index"` Signature string `json:"signature"` }
func (*SyncCommitteeMessage) ToConsensus ¶
func (m *SyncCommitteeMessage) ToConsensus() (*eth.SyncCommitteeMessage, error)
type SyncCommitteeReward ¶
type SyncCommitteeRewardsResponse ¶
type SyncCommitteeRewardsResponse struct { Data []SyncCommitteeReward `json:"data"` ExecutionOptimistic bool `json:"execution_optimistic"` Finalized bool `json:"finalized"` }
type SyncCommitteeSubscription ¶
type SyncCommitteeSubscription struct { ValidatorIndex string `json:"validator_index"` SyncCommitteeIndices []string `json:"sync_committee_indices"` UntilEpoch string `json:"until_epoch"` }
func (*SyncCommitteeSubscription) ToConsensus ¶
func (s *SyncCommitteeSubscription) ToConsensus() (*validator.SyncCommitteeSubscription, error)
type SyncCommitteeValidators ¶
type SyncDetails ¶
type SyncDetails struct { HeadSlot string `json:"head_slot"` SyncDistance string `json:"sync_distance"` IsSyncing bool `json:"is_syncing"` IsOptimistic bool `json:"is_optimistic"` ElOffline bool `json:"el_offline"` }
SyncDetails contains information about node sync status.
type SyncDetailsContainer ¶
type SyncDetailsContainer struct {
Data *SyncDetails `json:"data"`
}
SyncDetailsContainer is a wrapper for Data.
type SyncStatusResponse ¶
type SyncStatusResponse struct {
Data *SyncStatusResponseData `json:"data"`
}
type SyncStatusResponseData ¶
type TotalAttestationReward ¶
type UnaggregatedAttEventSource ¶
type UnaggregatedAttEventSource struct { AggregationBits string `json:"aggregation_bits"` Data *AttestationData `json:"data"` Signature string `json:"signature"` }
type Validator ¶
type Validator struct { Pubkey string `json:"pubkey"` WithdrawalCredentials string `json:"withdrawal_credentials"` EffectiveBalance string `json:"effective_balance"` Slashed bool `json:"slashed"` ActivationEligibilityEpoch string `json:"activation_eligibility_epoch"` ActivationEpoch string `json:"activation_epoch"` ExitEpoch string `json:"exit_epoch"` WithdrawableEpoch string `json:"withdrawable_epoch"` }
func ValidatorFromConsensus ¶
type ValidatorBalance ¶
type ValidatorContainer ¶
type ValidatorCount ¶
type ValidatorRegistration ¶
type ValidatorRegistration struct { FeeRecipient string `json:"fee_recipient"` GasLimit string `json:"gas_limit"` Timestamp string `json:"timestamp"` Pubkey string `json:"pubkey"` }
func ValidatorRegistrationFromConsensus ¶
func ValidatorRegistrationFromConsensus(vr *eth.ValidatorRegistrationV1) *ValidatorRegistration
func (*ValidatorRegistration) ToConsensus ¶
func (s *ValidatorRegistration) ToConsensus() (*eth.ValidatorRegistrationV1, error)
type VoluntaryExit ¶
type VoluntaryExit struct { Epoch string `json:"epoch"` ValidatorIndex string `json:"validator_index"` }
func ExitFromConsensus ¶
func ExitFromConsensus(e *eth.VoluntaryExit) *VoluntaryExit
func (*VoluntaryExit) ToConsensus ¶
func (e *VoluntaryExit) ToConsensus() (*eth.VoluntaryExit, error)
type WeakSubjectivityData ¶
type WeakSubjectivityData struct { WsCheckpoint *Checkpoint `json:"ws_checkpoint"` StateRoot string `json:"state_root"` }
type Withdrawal ¶
type Withdrawal struct { WithdrawalIndex string `json:"index"` ValidatorIndex string `json:"validator_index"` ExecutionAddress string `json:"address"` Amount string `json:"amount"` }
func WithdrawalFromConsensus ¶
func WithdrawalFromConsensus(w *enginev1.Withdrawal) *Withdrawal
func WithdrawalsFromConsensus ¶
func WithdrawalsFromConsensus(ws []*enginev1.Withdrawal) []*Withdrawal
Source Files ¶
Click to show internal directories.
Click to hide internal directories.