Documentation ¶
Index ¶
- type Duties
- func (d *Duties[D]) Add(epoch phase0.Epoch, slot phase0.Slot, validatorIndex phase0.ValidatorIndex, ...)
- func (d *Duties[D]) CommitteeSlotDuties(epoch phase0.Epoch, slot phase0.Slot) []*D
- func (d *Duties[D]) ResetEpoch(epoch phase0.Epoch)
- func (d *Duties[D]) ValidatorDuty(epoch phase0.Epoch, slot phase0.Slot, validatorIndex phase0.ValidatorIndex) *D
- type Duty
- type Store
- type SyncCommitteeDuties
- func (d *SyncCommitteeDuties) Add(period uint64, validatorIndex phase0.ValidatorIndex, ...)
- func (d *SyncCommitteeDuties) CommitteePeriodDuties(period uint64) []*eth2apiv1.SyncCommitteeDuty
- func (d *SyncCommitteeDuties) Duty(period uint64, validatorIndex phase0.ValidatorIndex) *eth2apiv1.SyncCommitteeDuty
- func (d *SyncCommitteeDuties) Reset(period uint64)
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 (*Duties[D]) CommitteeSlotDuties ¶
func (*Duties[D]) ResetEpoch ¶
func (*Duties[D]) ValidatorDuty ¶
type Duty ¶
type Duty interface { eth2apiv1.AttesterDuty | eth2apiv1.ProposerDuty | eth2apiv1.SyncCommitteeDuty }
type Store ¶
type Store struct { Attester *Duties[eth2apiv1.AttesterDuty] Proposer *Duties[eth2apiv1.ProposerDuty] SyncCommittee *SyncCommitteeDuties }
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 (d *SyncCommitteeDuties) Duty(period uint64, validatorIndex phase0.ValidatorIndex) *eth2apiv1.SyncCommitteeDuty
func (*SyncCommitteeDuties) Reset ¶
func (d *SyncCommitteeDuties) Reset(period uint64)
Click to show internal directories.
Click to hide internal directories.