Documentation
¶
Index ¶
- type Parameter
- func WithBeaconBlockHeadersProvider(provider consensusclient.BeaconBlockHeadersProvider) Parameter
- func WithChainTime(chainTime chaintime.Service) Parameter
- func WithEventsProvider(provider consensusclient.EventsProvider) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithScheduler(service scheduler.Service) Parameter
- func WithSignedBeaconBlockProvider(provider consensusclient.SignedBeaconBlockProvider) Parameter
- type Service
- func (s *Service) BlockGasLimit(_ context.Context, height uint64) (uint64, bool)
- func (s *Service) BlockRootToSlot(ctx context.Context, root phase0.Root) (phase0.Slot, error)
- func (s *Service) ExecutionChainHead(_ context.Context) (phase0.Hash32, uint64)
- func (s *Service) SetBlockRootToSlot(root phase0.Root, slot phase0.Slot)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithBeaconBlockHeadersProvider ¶ added in v1.9.0
func WithBeaconBlockHeadersProvider(provider consensusclient.BeaconBlockHeadersProvider) Parameter
WithBeaconBlockHeadersProvider sets the beacon block headers provider for the service.
func WithChainTime ¶
WithChainTime sets the chain time for the service.
func WithEventsProvider ¶ added in v1.9.0
func WithEventsProvider(provider consensusclient.EventsProvider) Parameter
WithEventsProvider sets the events provider for the service.
func WithLogLevel ¶
WithLogLevel sets the log level for the service.
func WithMonitor ¶
WithMonitor sets the monitor.
func WithScheduler ¶
WithScheduler sets the scheduler for the service..
func WithSignedBeaconBlockProvider ¶ added in v1.9.0
func WithSignedBeaconBlockProvider(provider consensusclient.SignedBeaconBlockProvider) Parameter
WithSignedBeaconBlockProvider sets the signed beacon block provider for the service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides cached information.
func (*Service) BlockGasLimit ¶ added in v1.10.0
BlockGasLimit provides the block gas limit.
func (*Service) BlockRootToSlot ¶
BlockRootToSlot provides the slot for a given block root.
func (*Service) ExecutionChainHead ¶ added in v1.6.0
ExecutionChainHead provides the execution chain head.