Documentation ¶
Index ¶
- func NewAccountsProvider() accountmanager.AccountsProvider
- func NewErroringValidatingAccountsProvider() accountmanager.ValidatingAccountsProvider
- func NewRefresher() accountmanager.Refresher
- type ValidatingAccountsProvider
- func (s *ValidatingAccountsProvider) AddAccount(index phase0.ValidatorIndex, account e2wtypes.Account)
- func (s *ValidatingAccountsProvider) SyncCommitteeAccountsForEpoch(_ context.Context, _ phase0.Epoch) (map[phase0.ValidatorIndex]e2wtypes.Account, error)
- func (s *ValidatingAccountsProvider) SyncCommitteeAccountsForEpochByIndex(_ context.Context, _ phase0.Epoch, indices []phase0.ValidatorIndex) (map[phase0.ValidatorIndex]e2wtypes.Account, error)
- func (s *ValidatingAccountsProvider) ValidatingAccountsForEpoch(_ context.Context, _ phase0.Epoch) (map[phase0.ValidatorIndex]e2wtypes.Account, error)
- func (s *ValidatingAccountsProvider) ValidatingAccountsForEpochByIndex(_ context.Context, _ phase0.Epoch, indices []phase0.ValidatorIndex) (map[phase0.ValidatorIndex]e2wtypes.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountsProvider ¶ added in v1.7.0
func NewAccountsProvider() accountmanager.AccountsProvider
NewAccountsProvider is a mock.
func NewErroringValidatingAccountsProvider ¶ added in v1.5.0
func NewErroringValidatingAccountsProvider() accountmanager.ValidatingAccountsProvider
NewErroringValidatingAccountsProvider is a mock.
func NewRefresher ¶ added in v1.2.0
func NewRefresher() accountmanager.Refresher
NewRefresher is a mock.
Types ¶
type ValidatingAccountsProvider ¶ added in v1.9.0
type ValidatingAccountsProvider struct {
// contains filtered or unexported fields
}
func NewValidatingAccountsProvider ¶ added in v1.2.0
func NewValidatingAccountsProvider() *ValidatingAccountsProvider
NewValidatingAccountsProvider is a mock. skipcq: RVV-B0011
func (*ValidatingAccountsProvider) AddAccount ¶ added in v1.9.0
func (s *ValidatingAccountsProvider) AddAccount(index phase0.ValidatorIndex, account e2wtypes.Account)
AddAccount adds an account to the mock provider.
func (*ValidatingAccountsProvider) SyncCommitteeAccountsForEpoch ¶ added in v1.9.0
func (s *ValidatingAccountsProvider) SyncCommitteeAccountsForEpoch(_ context.Context, _ phase0.Epoch) (map[phase0.ValidatorIndex]e2wtypes.Account, error)
SyncCommitteeAccountsForEpoch is a mock.
func (*ValidatingAccountsProvider) SyncCommitteeAccountsForEpochByIndex ¶ added in v1.9.0
func (s *ValidatingAccountsProvider) SyncCommitteeAccountsForEpochByIndex(_ context.Context, _ phase0.Epoch, indices []phase0.ValidatorIndex, ) ( map[phase0.ValidatorIndex]e2wtypes.Account, error, )
SyncCommitteeAccountsForEpochByIndex obtains the specified validating accounts for a given epoch.
func (*ValidatingAccountsProvider) ValidatingAccountsForEpoch ¶ added in v1.9.0
func (s *ValidatingAccountsProvider) ValidatingAccountsForEpoch(_ context.Context, _ phase0.Epoch) (map[phase0.ValidatorIndex]e2wtypes.Account, error)
ValidatingAccountsForEpoch is a mock.
func (*ValidatingAccountsProvider) ValidatingAccountsForEpochByIndex ¶ added in v1.9.0
func (s *ValidatingAccountsProvider) ValidatingAccountsForEpochByIndex(_ context.Context, _ phase0.Epoch, indices []phase0.ValidatorIndex, ) ( map[phase0.ValidatorIndex]e2wtypes.Account, error, )
ValidatingAccountsForEpochByIndex obtains the specified validating accounts for a given epoch.
Click to show internal directories.
Click to hide internal directories.