Documentation ¶
Index ¶
- type AttestationData
- type AttesterSlashingData
- type BlobSidecarData
- type BlockData
- type BlockGossipData
- type BlsToExecutionChangesData
- type ChainReorgData
- type ContributionAndProofData
- type EventEmitter
- type EventStream
- type EventTopic
- type FinalizedCheckpointData
- type HeadData
- type LightClientFinalityUpdateData
- type LightClientOptimisticUpdateData
- type PayloadAttributesContent
- type PayloadAttributesData
- type ProposerSlashingData
- type VoluntaryExitData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttesterSlashingData ¶
type AttesterSlashingData = cltypes.AttesterSlashing
type BlobSidecarData ¶
type BlobSidecarData = cltypes.BlobSidecar
type BlockGossipData ¶
type BlsToExecutionChangesData ¶
type BlsToExecutionChangesData = cltypes.SignedBLSToExecutionChange
type ChainReorgData ¶
type ChainReorgData struct { Slot uint64 `json:"slot,string"` Depth uint64 `json:"depth,string"` OldHeadBlock common.Hash `json:"old_head_block"` NewHeadBlock common.Hash `json:"new_head_block"` OldHeadState common.Hash `json:"old_head_state"` NewHeadState common.Hash `json:"new_head_state"` Epoch uint64 `json:"epoch,string"` ExecutionOptimistic bool `json:"execution_optimistic"` }
type ContributionAndProofData ¶
type ContributionAndProofData = cltypes.SignedContributionAndProof
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func NewEventEmitter ¶
func NewEventEmitter() *EventEmitter
func (*EventEmitter) Operation ¶
func (e *EventEmitter) Operation() *operationFeed
func (*EventEmitter) State ¶
func (e *EventEmitter) State() *stateFeed
type EventStream ¶
type EventStream struct { Event EventTopic `json:"event"` Data interface{} `json:"data"` }
type EventTopic ¶
type EventTopic string
const ( OpAttestation EventTopic = "attestation" OpVoluntaryExit EventTopic = "voluntary_exit" OpProposerSlashing EventTopic = "proposer_slashing" OpAttesterSlashing EventTopic = "attester_slashing" OpBlsToExecution EventTopic = "bls_to_execution_change" OpContributionProof EventTopic = "contribution_and_proof" OpBlobSidecar EventTopic = "blob_sidecar" )
Operation event topics
const ( StateHead EventTopic = "head" StateBlock EventTopic = "block" StateBlockGossip EventTopic = "block_gossip" StateFinalizedCheckpoint EventTopic = "finalized_checkpoint" StateChainReorg EventTopic = "chain_reorg" StateLightClientFinalityUpdate EventTopic = "light_client_finality_update" StateLightClientOptimisticUpdate EventTopic = "light_client_optimistic_update" StatePayloadAttributes EventTopic = "payload_attributes" )
State event topics
type FinalizedCheckpointData ¶
type HeadData ¶
type HeadData struct { Slot uint64 `json:"slot,string"` Block common.Hash `json:"block"` State common.Hash `json:"state"` EpochTransition bool `json:"epoch_transition"` PreviousDutyDependentRoot common.Hash `json:"previous_duty_dependent_root"` CurrentDutyDependentRoot common.Hash `json:"current_duty_dependent_root"` ExecutionOptimistic bool `json:"execution_optimistic"` }
State event data types
type LightClientFinalityUpdateData ¶
type LightClientFinalityUpdateData struct { Version string `json:"version"` Data cltypes.LightClientFinalityUpdate `json:"data"` }
type LightClientOptimisticUpdateData ¶
type LightClientOptimisticUpdateData struct { Version string `json:"version"` Data cltypes.LightClientOptimisticUpdate `json:"data"` }
type PayloadAttributesContent ¶
type PayloadAttributesContent struct { /* proposal_slot: the slot at which a block using these payload attributes may be built. parent_block_root: the beacon block root of the parent block to be built upon. parent_block_number: the execution block number of the parent block. parent_block_hash: the execution block hash of the parent block. proposer_index: the validator index of the proposer at proposal_slot on the chain identified by parent_block_root. */ ProposerIndex uint64 `json:"proposer_index,string"` ProposalSlot uint64 `json:"proposal_slot,string"` ParentBlockNumber uint64 `json:"parent_block_number,string"` ParentBlockRoot common.Hash `json:"parent_block_root"` ParentBlockHash common.Hash `json:"parent_block_hash"` PayloadAttributes engine_types.PayloadAttributes `json:"payload_attributes"` }
type PayloadAttributesData ¶
type PayloadAttributesData struct { Version string `json:"version"` Data PayloadAttributesContent `json:"data"` }
type ProposerSlashingData ¶
type ProposerSlashingData = cltypes.ProposerSlashing
type VoluntaryExitData ¶
type VoluntaryExitData = cltypes.SignedVoluntaryExit
Click to show internal directories.
Click to hide internal directories.