duties

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerOptions

type ControllerOptions struct {
	Logger              *zap.Logger
	Ctx                 context.Context
	BeaconClient        beacon.Beacon
	EthNetwork          core.Network
	ValidatorController validator.IController
	GenesisEpoch        uint64
	DutyLimit           uint64
}

ControllerOptions holds the needed dependencies

type DutyController

type DutyController interface {
	Start()
}

DutyController interface for dispatching duties execution according to slot ticker

func NewDutyController

func NewDutyController(opts *ControllerOptions) DutyController

NewDutyController creates a new instance of DutyController

type DutyFetcher

type DutyFetcher interface {
	GetDuties(slot uint64) ([]beacon.Duty, error)
}

DutyFetcher represents the component that manages duties

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL