Documentation
¶
Overview ¶
Package validatormock provides mock validator client functionality.
Index ¶
- func Attest(ctx context.Context, eth2Cl Eth2Provider, signFunc SignFunc, slot eth2p0.Slot, ...) error
- func ProposeBlindedBlock(ctx context.Context, eth2Cl Eth2Provider, signFunc SignFunc, slot eth2p0.Slot, ...) error
- func ProposeBlock(ctx context.Context, eth2Cl Eth2Provider, signFunc SignFunc, slot eth2p0.Slot, ...) error
- type Eth2Provider
- type SignFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attest ¶
func Attest(ctx context.Context, eth2Cl Eth2Provider, signFunc SignFunc, slot eth2p0.Slot, pubkeys ...eth2p0.BLSPubKey, ) error
Attest performs attestation duties for the provided slot and pubkeys (validators).
Types ¶
type Eth2Provider ¶ added in v0.4.0
type Eth2Provider interface {
eth2client.AttestationDataProvider
eth2client.AttestationsSubmitter
eth2client.AttesterDutiesProvider
eth2client.BlindedBeaconBlockSubmitter
eth2client.BeaconBlockProposalProvider
eth2client.BeaconBlockSubmitter
eth2client.DomainProvider
eth2client.ProposerDutiesProvider
eth2client.SlotsPerEpochProvider
eth2client.SpecProvider
eth2client.ValidatorsProvider
}
Eth2Provider defines the eth2 beacon api providers required to perform attestations.
Click to show internal directories.
Click to hide internal directories.