dutystore

package
v1.2.2-unstable-2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duties

type Duties[D Duty] struct {
	// contains filtered or unexported fields
}

func NewDuties

func NewDuties[D Duty]() *Duties[D]

func (*Duties[D]) Add

func (d *Duties[D]) Add(epoch phase0.Epoch, slot phase0.Slot, validatorIndex phase0.ValidatorIndex, duty *D, inCommittee bool)

func (*Duties[D]) CommitteeSlotDuties

func (d *Duties[D]) CommitteeSlotDuties(epoch phase0.Epoch, slot phase0.Slot) []*D

func (*Duties[D]) ResetEpoch

func (d *Duties[D]) ResetEpoch(epoch phase0.Epoch)

func (*Duties[D]) ValidatorDuty

func (d *Duties[D]) ValidatorDuty(epoch phase0.Epoch, slot phase0.Slot, validatorIndex phase0.ValidatorIndex) *D

type Store

type Store struct {
	Attester      *Duties[eth2apiv1.AttesterDuty]
	Proposer      *Duties[eth2apiv1.ProposerDuty]
	SyncCommittee *SyncCommitteeDuties
}

func New

func New() *Store

type SyncCommitteeDuties

type SyncCommitteeDuties struct {
	// contains filtered or unexported fields
}

func NewSyncCommitteeDuties

func NewSyncCommitteeDuties() *SyncCommitteeDuties

func (*SyncCommitteeDuties) Add

func (d *SyncCommitteeDuties) Add(period uint64, validatorIndex phase0.ValidatorIndex, duty *eth2apiv1.SyncCommitteeDuty, inCommittee bool)

func (*SyncCommitteeDuties) CommitteePeriodDuties

func (d *SyncCommitteeDuties) CommitteePeriodDuties(period uint64) []*eth2apiv1.SyncCommitteeDuty

func (*SyncCommitteeDuties) Duty

func (*SyncCommitteeDuties) Reset

func (d *SyncCommitteeDuties) Reset(period uint64)

Jump to

Keyboard shortcuts

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