Documentation ¶
Index ¶
- Variables
- func SignedBlindedBeaconBlockToBeaconBlock(signedBlindedBeaconBlock *types.SignedBlindedBeaconBlock, ...) *types.SignedBeaconBlock
- type BeaconState
- func (s *BeaconState) HeadSlot() Slot
- func (s *BeaconState) IsKnownValidator(pk types.PubkeyHex) (bool, error)
- func (s *BeaconState) KnownValidatorByIndex(index uint64) (types.PubkeyHex, error)
- func (s *BeaconState) KnownValidators() map[types.PubkeyHex]struct{}
- func (s *BeaconState) ValidatorsMap() BuilderGetValidatorsResponseEntrySlice
- type BidTraceExtended
- type BidTraceWithTimestamp
- type BlockBidAndTrace
- type BuilderGetValidatorsResponseEntrySlice
- type CompleteBlockstruct
- type DeliveredTrace
- type DutiesState
- type Epoch
- type GenesisInfo
- type HeaderAndTrace
- type HeaderData
- type HeaderRequest
- type HeaderTraceQuery
- type MetricGroup
- type PayloadKey
- type PayloadQuery
- type PayloadTraceQuery
- type PrometheusObserver
- type PubKey
- type Slot
- type ValidatorsState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownValue = errors.New("value is unknown") ErrPayloadAlreadyDelivered = errors.New("the slot payload was already delivered") )
Functions ¶
func SignedBlindedBeaconBlockToBeaconBlock ¶ added in v0.3.9
func SignedBlindedBeaconBlockToBeaconBlock(signedBlindedBeaconBlock *types.SignedBlindedBeaconBlock, executionPayload *types.ExecutionPayload) *types.SignedBeaconBlock
Types ¶
type BeaconState ¶
type BeaconState struct { DutiesState ValidatorsState GenesisInfo }
func (*BeaconState) HeadSlot ¶
func (s *BeaconState) HeadSlot() Slot
func (*BeaconState) IsKnownValidator ¶
func (s *BeaconState) IsKnownValidator(pk types.PubkeyHex) (bool, error)
func (*BeaconState) KnownValidatorByIndex ¶
func (s *BeaconState) KnownValidatorByIndex(index uint64) (types.PubkeyHex, error)
func (*BeaconState) KnownValidators ¶
func (s *BeaconState) KnownValidators() map[types.PubkeyHex]struct{}
func (*BeaconState) ValidatorsMap ¶
func (s *BeaconState) ValidatorsMap() BuilderGetValidatorsResponseEntrySlice
type BidTraceExtended ¶
type BidTraceWithTimestamp ¶
type BidTraceWithTimestamp struct { BidTraceExtended Timestamp uint64 `json:"timestamp,string"` }
type BlockBidAndTrace ¶
type BlockBidAndTrace struct { Trace *types.SignedBidTrace Bid *types.GetHeaderResponse Payload *types.GetPayloadResponse }
type BuilderGetValidatorsResponseEntrySlice ¶
type BuilderGetValidatorsResponseEntrySlice []types.BuilderGetValidatorsResponseEntry
func (BuilderGetValidatorsResponseEntrySlice) Loggable ¶
func (b BuilderGetValidatorsResponseEntrySlice) Loggable() map[string]any
type CompleteBlockstruct ¶ added in v0.3.4
type CompleteBlockstruct struct { Header HeaderAndTrace Payload BlockBidAndTrace }
/ That's to be improved in future
type DeliveredTrace ¶
type DeliveredTrace struct { Trace BidTraceWithTimestamp BlockNumber uint64 }
type DutiesState ¶
type DutiesState struct { CurrentSlot Slot ProposerDutiesResponse BuilderGetValidatorsResponseEntrySlice }
type GenesisInfo ¶
type HeaderAndTrace ¶
type HeaderAndTrace struct { Header *types.ExecutionPayloadHeader Trace *BidTraceWithTimestamp }
type HeaderData ¶
type HeaderData struct { HeaderAndTrace Slot Slot Marshaled []byte `json:"-"` }
/ extra
func (*HeaderData) UnmarshalJSON ¶
func (hd *HeaderData) UnmarshalJSON(b []byte) error
type HeaderRequest ¶
func (HeaderRequest) ParentHash ¶
func (hr HeaderRequest) ParentHash() (types.Hash, error)
func (HeaderRequest) Pubkey ¶
func (hr HeaderRequest) Pubkey() (PubKey, error)
func (HeaderRequest) Slot ¶
func (hr HeaderRequest) Slot() (Slot, error)
type HeaderTraceQuery ¶
HeaderTraceQuery structure used to query header structure
func (HeaderTraceQuery) HasBlockHash ¶
func (q HeaderTraceQuery) HasBlockHash() bool
func (HeaderTraceQuery) HasBlockNum ¶
func (q HeaderTraceQuery) HasBlockNum() bool
func (HeaderTraceQuery) HasLimit ¶
func (q HeaderTraceQuery) HasLimit() bool
func (HeaderTraceQuery) HasSlot ¶
func (q HeaderTraceQuery) HasSlot() bool
type MetricGroup ¶ added in v0.3.9
type MetricGroup struct {
// contains filtered or unexported fields
}
func NewMetricGroup ¶ added in v0.3.9
func NewMetricGroup(num int) *MetricGroup
func (*MetricGroup) Append ¶ added in v0.3.9
func (mg *MetricGroup) Append(dur time.Duration, labels ...string)
func (*MetricGroup) AppendSince ¶ added in v0.3.9
func (mg *MetricGroup) AppendSince(t time.Time, labels ...string)
func (MetricGroup) Observe ¶ added in v0.3.9
func (mg MetricGroup) Observe(t PrometheusObserver)
func (MetricGroup) ObserveWithError ¶ added in v0.3.9
func (mg MetricGroup) ObserveWithError(t PrometheusObserver, err error)
type PayloadKey ¶
func (PayloadKey) Loggable ¶ added in v0.3.4
func (k PayloadKey) Loggable() map[string]any
type PayloadQuery ¶
type PayloadTraceQuery ¶
type PayloadTraceQuery struct { Slot Slot BlockHash types.Hash BlockNum uint64 Pubkey types.PublicKey Cursor, Limit uint64 }
PayloadTraceQuery structure used to query payloads only
func (PayloadTraceQuery) HasBlockHash ¶
func (q PayloadTraceQuery) HasBlockHash() bool
func (PayloadTraceQuery) HasBlockNum ¶
func (q PayloadTraceQuery) HasBlockNum() bool
func (PayloadTraceQuery) HasCursor ¶
func (q PayloadTraceQuery) HasCursor() bool
func (PayloadTraceQuery) HasLimit ¶
func (q PayloadTraceQuery) HasLimit() bool
func (PayloadTraceQuery) HasPubkey ¶
func (q PayloadTraceQuery) HasPubkey() bool
func (PayloadTraceQuery) HasSlot ¶
func (q PayloadTraceQuery) HasSlot() bool
type PrometheusObserver ¶ added in v0.3.9
type PrometheusObserver interface {
WithLabelValues(lvs ...string) prometheus.Observer
}
Click to show internal directories.
Click to hide internal directories.