mock

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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