mock

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAggregateAttestationProvider added in v1.2.0

func NewAggregateAttestationProvider() eth2client.AggregateAttestationProvider

NewAggregateAttestationProvider returns a mock attestation data provider.

func NewAggregateAttestationsSubmitter

func NewAggregateAttestationsSubmitter() eth2client.AggregateAttestationsSubmitter

NewAggregateAttestationsSubmitter returns a mock aggregate attestation submitter.

func NewAttestationDataProvider added in v0.9.0

func NewAttestationDataProvider() eth2client.AttestationDataProvider

NewAttestationDataProvider returns a mock attestation data provider.

func NewAttestationsSubmitter added in v1.0.0

func NewAttestationsSubmitter() eth2client.AttestationsSubmitter

NewAttestationsSubmitter returns a mock attestations submitter.

func NewAttesterDutiesProvider added in v1.2.0

func NewAttesterDutiesProvider() eth2client.AttesterDutiesProvider

NewAttesterDutiesProvider returns a mock attester duties provider.

func NewBeaconBlockHeadersProvider added in v1.3.1

func NewBeaconBlockHeadersProvider() eth2client.BeaconBlockHeadersProvider

NewBeaconBlockHeadersProvider returns a mock beacon block header provider.

func NewBeaconBlockProposalProvider added in v0.6.1

func NewBeaconBlockProposalProvider() eth2client.BeaconBlockProposalProvider

NewBeaconBlockProposalProvider returns a mock beacon block proposal provider.

func NewBeaconBlockSubmitter

func NewBeaconBlockSubmitter() eth2client.BeaconBlockSubmitter

NewBeaconBlockSubmitter returns a mock beacon block submitter.

func NewBeaconCommitteeSubscriptionsSubmitter

func NewBeaconCommitteeSubscriptionsSubmitter() eth2client.BeaconCommitteeSubscriptionsSubmitter

NewBeaconCommitteeSubscriptionsSubmitter returns a mock beacon committee subscriptions submitter.

func NewBlindedBeaconBlockProposalProvider added in v1.6.0

func NewBlindedBeaconBlockProposalProvider(chainTime chaintime.Service) eth2client.BlindedBeaconBlockProposalProvider

NewBlindedBeaconBlockProposalProvider returns a mock blinded beacon block proposal provider.

func NewBlindedBeaconBlockSubmitter added in v1.6.0

func NewBlindedBeaconBlockSubmitter() eth2client.BlindedBeaconBlockSubmitter

NewBlindedBeaconBlockSubmitter returns a mock blindedBeacon block submitter.

func NewDomainProvider added in v0.9.0

func NewDomainProvider() eth2client.DomainProvider

NewDomainProvider returns a mock domain provider.

func NewErroringAggregateAttestationProvider added in v1.2.0

func NewErroringAggregateAttestationProvider() eth2client.AggregateAttestationProvider

NewErroringAggregateAttestationProvider returns a mock attestation data provider.

func NewErroringAggregateAttestationsSubmitter added in v0.6.1

func NewErroringAggregateAttestationsSubmitter() eth2client.AggregateAttestationsSubmitter

NewErroringAggregateAttestationsSubmitter returns a mock aggregate attestation submitter.

func NewErroringAttestationDataProvider added in v0.9.0

func NewErroringAttestationDataProvider() eth2client.AttestationDataProvider

NewErroringAttestationDataProvider returns a mock attestation data provider.

func NewErroringAttestationsSubmitter added in v1.0.0

func NewErroringAttestationsSubmitter() eth2client.AttestationsSubmitter

NewErroringAttestationsSubmitter returns a mock attestation submitter.

func NewErroringBeaconBlockProposalProvider added in v1.5.0

func NewErroringBeaconBlockProposalProvider() eth2client.BeaconBlockProposalProvider

NewErroringBeaconBlockProposalProvider returns a mock beacon block proposal provider.

func NewErroringBeaconBlockSubmitter added in v0.6.1

func NewErroringBeaconBlockSubmitter() eth2client.BeaconBlockSubmitter

NewErroringBeaconBlockSubmitter returns a mock beacon block submitter.

func NewErroringBeaconCommitteeSubscriptionsSubmitter added in v0.6.1

func NewErroringBeaconCommitteeSubscriptionsSubmitter() eth2client.BeaconCommitteeSubscriptionsSubmitter

NewErroringBeaconCommitteeSubscriptionsSubmitter returns a mock beacon committee subscriptions submitter.

func NewErroringBlindedBeaconBlockProposalProvider added in v1.6.0

func NewErroringBlindedBeaconBlockProposalProvider() eth2client.BlindedBeaconBlockProposalProvider

NewErroringBlindedBeaconBlockProposalProvider returns a mock blinded beacon block proposal provider.

func NewErroringBlindedBeaconBlockSubmitter added in v1.6.0

func NewErroringBlindedBeaconBlockSubmitter() eth2client.BlindedBeaconBlockSubmitter

NewErroringBlindedBeaconBlockSubmitter returns a mock blindedBeacon block submitter.

func NewErroringDomainProvider added in v0.9.0

func NewErroringDomainProvider() eth2client.DomainProvider

NewErroringDomainProvider returns a mock signature domain provider that errors.

func NewErroringEventsProvider added in v1.4.0

func NewErroringEventsProvider() eth2client.EventsProvider

NewErroringEventsProvider returns a mock events provider.

func NewErroringProposalPreparationsSubmitter added in v1.5.0

func NewErroringProposalPreparationsSubmitter() eth2client.ProposalPreparationsSubmitter

NewErroringProposalPreparationsSubmitter returns a mock aggregate attestation submitter.

func NewErroringSlotDurationProvider added in v1.2.0

func NewErroringSlotDurationProvider() eth2client.SlotDurationProvider

NewErroringSlotDurationProvider returns a mock slot duration provider that errors.

func NewErroringSlotsPerEpochProvider added in v0.6.2

func NewErroringSlotsPerEpochProvider() eth2client.SlotsPerEpochProvider

NewErroringSlotsPerEpochProvider returns a mock slots per epoch provider that errors.

func NewErroringSpecProvider added in v1.2.0

func NewErroringSpecProvider() eth2client.SpecProvider

NewErroringSpecProvider returns a mock spec provider.

func NewErroringSyncCommitteeContributionProvider added in v1.2.0

func NewErroringSyncCommitteeContributionProvider() eth2client.SyncCommitteeContributionProvider

NewErroringSyncCommitteeContributionProvider returns a mock attestation data provider.

func NewErroringSyncCommitteeContributionsSubmitter added in v1.2.0

func NewErroringSyncCommitteeContributionsSubmitter() eth2client.SyncCommitteeContributionsSubmitter

NewErroringSyncCommitteeContributionsSubmitter returns a mock attester duties submitter.

func NewErroringSyncCommitteeMessagesSubmitter added in v1.2.0

func NewErroringSyncCommitteeMessagesSubmitter() eth2client.SyncCommitteeMessagesSubmitter

NewErroringSyncCommitteeMessagesSubmitter returns a mock attester duties submitter.

func NewErroringSyncCommitteeSubscriptionsSubmitter added in v1.2.0

func NewErroringSyncCommitteeSubscriptionsSubmitter() eth2client.SyncCommitteeSubscriptionsSubmitter

NewErroringSyncCommitteeSubscriptionsSubmitter returns a mock attester duties submitter.

func NewEventsProvider added in v1.2.0

func NewEventsProvider() eth2client.EventsProvider

NewEventsProvider returns a mock events provider.

func NewFarFutureEpochProvider added in v1.0.0

func NewFarFutureEpochProvider(farFutureEpoch phase0.Epoch) eth2client.FarFutureEpochProvider

NewFarFutureEpochProvider returns a mock far future epoch provider with the provided value.

func NewForkScheduleProvider added in v1.2.0

func NewForkScheduleProvider() eth2client.ForkScheduleProvider

NewForkScheduleProvider returns a mock fork schedule provider.

func NewGenesisTimeProvider

func NewGenesisTimeProvider(genesisTime time.Time) eth2client.GenesisTimeProvider

NewGenesisTimeProvider returns a mock genesis time provider with the provided value.

func NewNilAggregateAttestationProvider added in v1.2.0

func NewNilAggregateAttestationProvider() eth2client.AggregateAttestationProvider

NewNilAggregateAttestationProvider returns a mock attestation data provider.

func NewNilAttestationDataProvider added in v0.9.0

func NewNilAttestationDataProvider() eth2client.AttestationDataProvider

NewNilAttestationDataProvider returns a mock attestation data provider.

func NewNilBeaconBlockProposalProvider added in v1.5.0

func NewNilBeaconBlockProposalProvider() eth2client.BeaconBlockProposalProvider

NewNilBeaconBlockProposalProvider returns a mock beacon block proposal provider.

func NewNilBlindedBeaconBlockProposalProvider added in v1.6.0

func NewNilBlindedBeaconBlockProposalProvider() eth2client.BlindedBeaconBlockProposalProvider

NewNilBlindedBeaconBlockProposalProvider returns a mock beacon block proposal provider.

func NewNilSyncCommitteeContributionProvider added in v1.2.0

func NewNilSyncCommitteeContributionProvider() eth2client.SyncCommitteeContributionProvider

NewNilSyncCommitteeContributionProvider returns a mock attestation data provider.

func NewProposalPreparationsSubmitter added in v1.5.0

func NewProposalPreparationsSubmitter() eth2client.ProposalPreparationsSubmitter

NewProposalPreparationsSubmitter returns a mock proposal preparations submitter.

func NewProposerDutiesProvider added in v1.2.0

func NewProposerDutiesProvider() eth2client.ProposerDutiesProvider

NewProposerDutiesProvider returns a mock proposer duties provider.

func NewSignedBeaconBlockProvider added in v0.9.0

func NewSignedBeaconBlockProvider() eth2client.SignedBeaconBlockProvider

NewSignedBeaconBlockProvider returns a mock beacon block proposal provider.

func NewSleepyAggregateAttestationProvider added in v1.2.0

func NewSleepyAggregateAttestationProvider(wait time.Duration, next eth2client.AggregateAttestationProvider) eth2client.AggregateAttestationProvider

NewSleepyAggregateAttestationProvider returns a mock attestation data provider.

func NewSleepyAggregateAttestationsSubmitter added in v1.4.0

func NewSleepyAggregateAttestationsSubmitter(wait time.Duration, next eth2client.AggregateAttestationsSubmitter) eth2client.AggregateAttestationsSubmitter

NewSleepyAggregateAttestationsSubmitter returns a mock aggregate attestations submitter.

func NewSleepyAttestationDataProvider added in v0.9.0

func NewSleepyAttestationDataProvider(wait time.Duration, next eth2client.AttestationDataProvider) eth2client.AttestationDataProvider

NewSleepyAttestationDataProvider returns a mock attestation data provider.

func NewSleepyAttestationsSubmitter added in v1.4.0

func NewSleepyAttestationsSubmitter(wait time.Duration, next eth2client.AttestationsSubmitter) eth2client.AttestationsSubmitter

NewSleepyAttestationsSubmitter returns a mock attestations submitter.

func NewSleepyBeaconBlockProposalProvider added in v1.5.0

func NewSleepyBeaconBlockProposalProvider(wait time.Duration, next eth2client.BeaconBlockProposalProvider) eth2client.BeaconBlockProposalProvider

NewSleepyBeaconBlockProposalProvider returns a mock beacon block proposal.

func NewSleepyBeaconBlockSubmitter added in v1.4.0

func NewSleepyBeaconBlockSubmitter(wait time.Duration, next eth2client.BeaconBlockSubmitter) eth2client.BeaconBlockSubmitter

NewSleepyBeaconBlockSubmitter returns a mock beacon block submitter.

func NewSleepyBeaconCommitteeSubscriptionsSubmitter added in v1.4.0

func NewSleepyBeaconCommitteeSubscriptionsSubmitter(wait time.Duration, next eth2client.BeaconCommitteeSubscriptionsSubmitter) eth2client.BeaconCommitteeSubscriptionsSubmitter

NewSleepyBeaconCommitteeSubscriptionsSubmitter returns a mock beacon committee subscriptions submitter.

func NewSleepyBlindedBeaconBlockProposalProvider added in v1.6.0

func NewSleepyBlindedBeaconBlockProposalProvider(wait time.Duration, next eth2client.BlindedBeaconBlockProposalProvider) eth2client.BlindedBeaconBlockProposalProvider

NewSleepyBlindedBeaconBlockProposalProvider returns a mock blinded beacon block proposal.

func NewSleepyBlindedBeaconBlockSubmitter added in v1.6.0

func NewSleepyBlindedBeaconBlockSubmitter(wait time.Duration, next eth2client.BlindedBeaconBlockSubmitter) eth2client.BlindedBeaconBlockSubmitter

NewSleepyBlindedBeaconBlockSubmitter returns a mock blindedBeacon block submitter.

func NewSleepyProposalPreparationsSubmitter added in v1.5.0

func NewSleepyProposalPreparationsSubmitter(wait time.Duration, next eth2client.ProposalPreparationsSubmitter) eth2client.ProposalPreparationsSubmitter

NewSleepyProposalPreparationsSubmitter returns a mock aggregate attestations submitter.

func NewSleepySyncCommitteeContributionProvider added in v1.2.0

func NewSleepySyncCommitteeContributionProvider(wait time.Duration, next eth2client.SyncCommitteeContributionProvider) eth2client.SyncCommitteeContributionProvider

NewSleepySyncCommitteeContributionProvider returns a mock attestation data provider.

func NewSleepySyncCommitteeContributionsSubmitter added in v1.4.0

func NewSleepySyncCommitteeContributionsSubmitter(wait time.Duration, next eth2client.SyncCommitteeContributionsSubmitter) eth2client.SyncCommitteeContributionsSubmitter

NewSleepySyncCommitteeContributionsSubmitter returns a mock contribution and proofs submitter.

func NewSleepySyncCommitteeMessagesSubmitter added in v1.4.0

func NewSleepySyncCommitteeMessagesSubmitter(wait time.Duration, next eth2client.SyncCommitteeMessagesSubmitter) eth2client.SyncCommitteeMessagesSubmitter

NewSleepySyncCommitteeMessagesSubmitter returns a mock sync committee messages submitter.

func NewSleepySyncCommitteeSubscriptionsSubmitter added in v1.4.0

func NewSleepySyncCommitteeSubscriptionsSubmitter(wait time.Duration, next eth2client.SyncCommitteeSubscriptionsSubmitter) eth2client.SyncCommitteeSubscriptionsSubmitter

NewSleepySyncCommitteeSubscriptionsSubmitter returns a mock sync committee subscriptions submitter.

func NewSlotDurationProvider

func NewSlotDurationProvider(slotDuration time.Duration) eth2client.SlotDurationProvider

NewSlotDurationProvider returns a mock slot duration provider with the provided value.

func NewSlotsPerEpochProvider

func NewSlotsPerEpochProvider(slotsPerEpoch uint64) eth2client.SlotsPerEpochProvider

NewSlotsPerEpochProvider returns a mock slots per epoch provider with the provided value.

func NewSpecProvider added in v1.2.0

func NewSpecProvider() eth2client.SpecProvider

NewSpecProvider returns a mock spec provider.

func NewSyncCommitteeContributionProvider added in v1.2.0

func NewSyncCommitteeContributionProvider() eth2client.SyncCommitteeContributionProvider

NewSyncCommitteeContributionProvider returns a mock attestation data provider.

func NewSyncCommitteeContributionsSubmitter added in v1.2.0

func NewSyncCommitteeContributionsSubmitter() eth2client.SyncCommitteeContributionsSubmitter

NewSyncCommitteeContributionsSubmitter returns a mock attester duties submitter.

func NewSyncCommitteeDutiesProvider added in v1.2.0

func NewSyncCommitteeDutiesProvider() eth2client.SyncCommitteeDutiesProvider

NewSyncCommitteeDutiesProvider returns a mock attester duties provider.

func NewSyncCommitteeMessagesSubmitter added in v1.2.0

func NewSyncCommitteeMessagesSubmitter() eth2client.SyncCommitteeMessagesSubmitter

NewSyncCommitteeMessagesSubmitter returns a mock attester duties submitter.

func NewSyncCommitteeSubscriptionsSubmitter added in v1.2.0

func NewSyncCommitteeSubscriptionsSubmitter() eth2client.SyncCommitteeSubscriptionsSubmitter

NewSyncCommitteeSubscriptionsSubmitter returns a mock attester duties submitter.

func NewValidatorsManager added in v1.0.0

func NewValidatorsManager() validatorsmanager.Service

NewValidatorsManager creates a mock validators manager.

func NewValidatorsProvider added in v0.6.2

func NewValidatorsProvider() eth2client.ValidatorsProvider

NewValidatorsProvider returns a mock validators provider.

Types

type AggregateAttestationProvider added in v1.2.0

type AggregateAttestationProvider struct{}

AggregateAttestationProvider is a mock for eth2client.AggregateAttestationProvider.

func (*AggregateAttestationProvider) AggregateAttestation added in v1.2.0

func (*AggregateAttestationProvider) AggregateAttestation(_ context.Context, slot phase0.Slot, _ phase0.Root) (*phase0.Attestation, error)

AggregateAttestation is a mock.

type AggregateAttestationsSubmitter

type AggregateAttestationsSubmitter struct{}

AggregateAttestationsSubmitter is a mock for eth2client.AggregateAttestationsSubmitter.

func (*AggregateAttestationsSubmitter) SubmitAggregateAttestations

func (*AggregateAttestationsSubmitter) SubmitAggregateAttestations(_ context.Context, _ []*phase0.SignedAggregateAndProof) error

SubmitAggregateAttestations is a mock.

type AttestationDataProvider added in v0.9.0

type AttestationDataProvider struct{}

AttestationDataProvider is a mock for eth2client.AttestationDataProvider.

func (*AttestationDataProvider) AttestationData added in v0.9.0

func (*AttestationDataProvider) AttestationData(_ context.Context, slot phase0.Slot, committeeIndex phase0.CommitteeIndex) (*phase0.AttestationData, error)

AttestationData is a mock.

type AttestationsSubmitter added in v1.0.0

type AttestationsSubmitter struct{}

AttestationsSubmitter is a mock for eth2client.AttestationsSubmitter.

func (*AttestationsSubmitter) SubmitAttestations added in v1.0.0

func (*AttestationsSubmitter) SubmitAttestations(_ context.Context, _ []*phase0.Attestation) error

SubmitAttestations is a mock.

type AttesterDutiesProvider added in v1.2.0

type AttesterDutiesProvider struct{}

AttesterDutiesProvider is a mock for eth2client.AttesterDutiesProvider.

func (*AttesterDutiesProvider) AttesterDuties added in v1.2.0

AttesterDuties is a mock.

type BeaconBlockHeadersProvider added in v1.3.1

type BeaconBlockHeadersProvider struct{}

BeaconBlockHeadersProvider is a mock for eth2client.BeaconBlockHeadersProvider.

func (*BeaconBlockHeadersProvider) BeaconBlockHeader added in v1.3.1

BeaconBlockHeader provides the block header of a given block ID.

type BeaconBlockProposalProvider added in v0.6.1

type BeaconBlockProposalProvider struct{}

BeaconBlockProposalProvider is a mock for eth2client.BeaconBlockProposalProvider.

func (*BeaconBlockProposalProvider) BeaconBlockProposal added in v0.6.1

func (*BeaconBlockProposalProvider) BeaconBlockProposal(_ context.Context, slot phase0.Slot, randaoReveal phase0.BLSSignature, graffiti []byte) (*spec.VersionedBeaconBlock, error)

BeaconBlockProposal is a mock.

type BeaconBlockSubmitter

type BeaconBlockSubmitter struct{}

BeaconBlockSubmitter is a mock for eth2client.BeaconBlockSubmitter.

func (*BeaconBlockSubmitter) SubmitBeaconBlock

SubmitBeaconBlock is a mock.

type BeaconCommitteeSubscriptionsSubmitter

type BeaconCommitteeSubscriptionsSubmitter struct{}

BeaconCommitteeSubscriptionsSubmitter is a mock for eth2client.BeaconCommitteeSubscriptionsSubmitter.

func (*BeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions

func (*BeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions(_ context.Context, _ []*apiv1.BeaconCommitteeSubscription) error

SubmitBeaconCommitteeSubscriptions is a mock.

type BlindedBeaconBlockProposalProvider added in v1.6.0

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

BlindedBeaconBlockProposalProvider is a mock for eth2client.BlindedBeaconBlockProposalProvider.

func (*BlindedBeaconBlockProposalProvider) BlindedBeaconBlockProposal added in v1.6.0

func (m *BlindedBeaconBlockProposalProvider) BlindedBeaconBlockProposal(_ context.Context, slot phase0.Slot, randaoReveal phase0.BLSSignature, graffiti []byte) (*api.VersionedBlindedBeaconBlock, error)

BlindedBeaconBlockProposal is a mock.

type BlindedBeaconBlockSubmitter added in v1.6.0

type BlindedBeaconBlockSubmitter struct{}

BlindedBeaconBlockSubmitter is a mock for eth2client.BlindedBeaconBlockSubmitter.

func (*BlindedBeaconBlockSubmitter) SubmitBlindedBeaconBlock added in v1.6.0

SubmitBlindedBeaconBlock is a mock.

type BuilderClient added in v1.7.0

type BuilderClient struct {
	MockPubkey *phase0.BLSPubKey
}

func (*BuilderClient) Address added in v1.7.0

func (*BuilderClient) Address() string

Address returns the address of the builder.

func (*BuilderClient) BuilderBid added in v1.7.0

BuilderBidProvider obtains a builder bid.

func (*BuilderClient) Name added in v1.7.0

func (*BuilderClient) Name() string

Name returns the name of the builder implementation.

func (*BuilderClient) Pubkey added in v1.7.0

func (m *BuilderClient) Pubkey() *phase0.BLSPubKey

Pubkey returns the public key of the builder (if any).

type DomainProvider added in v0.9.0

type DomainProvider struct{}

DomainProvider is a mock for eth2client.DomainProvider.

func (*DomainProvider) Domain added in v0.9.0

Domain is a mock.

func (*DomainProvider) GenesisDomain added in v1.7.0

func (*DomainProvider) GenesisDomain(_ context.Context, domainType phase0.DomainType) (phase0.Domain, error)

GenesisDomain is a mock.

type ErroringAggregateAttestationProvider added in v1.2.0

type ErroringAggregateAttestationProvider struct{}

ErroringAggregateAttestationProvider is a mock for eth2client.AggregateAttestationProvider.

func (*ErroringAggregateAttestationProvider) AggregateAttestation added in v1.2.0

AggregateAttestation is a mock.

type ErroringAggregateAttestationsSubmitter added in v0.6.1

type ErroringAggregateAttestationsSubmitter struct{}

ErroringAggregateAttestationsSubmitter is a mock for eth2client.AggregateAttestationsSubmitter that returns errors.

func (*ErroringAggregateAttestationsSubmitter) SubmitAggregateAttestations added in v0.6.1

SubmitAggregateAttestations is a mock.

type ErroringAttestationDataProvider added in v0.9.0

type ErroringAttestationDataProvider struct{}

ErroringAttestationDataProvider is a mock for eth2client.AttestationDataProvider.

func (*ErroringAttestationDataProvider) AttestationData added in v0.9.0

AttestationData is a mock.

type ErroringAttestationsSubmitter added in v1.0.0

type ErroringAttestationsSubmitter struct{}

ErroringAttestationsSubmitter is a mock for eth2client.AttestationsSubmitter that returns errors.

func (*ErroringAttestationsSubmitter) SubmitAttestations added in v1.0.0

SubmitAttestations is a mock.

type ErroringBeaconBlockProposalProvider added in v1.5.0

type ErroringBeaconBlockProposalProvider struct{}

ErroringBeaconBlockProposalProvider is a mock for eth2client.BeaconBlockProposalProvider.

func (*ErroringBeaconBlockProposalProvider) BeaconBlockProposal added in v1.5.0

BeaconBlockProposal is a mock.

type ErroringBeaconBlockSubmitter added in v0.6.1

type ErroringBeaconBlockSubmitter struct{}

ErroringBeaconBlockSubmitter is a mock for eth2client.BeaconBlockSubmitter that returns errors.

func (*ErroringBeaconBlockSubmitter) SubmitBeaconBlock added in v0.6.1

SubmitBeaconBlock is a mock.

type ErroringBeaconCommitteeSubscriptionsSubmitter added in v0.6.1

type ErroringBeaconCommitteeSubscriptionsSubmitter struct{}

ErroringBeaconCommitteeSubscriptionsSubmitter is a mock for eth2client.BeaconCommitteeSubscriptionsSubmitter that returns errors.

func (*ErroringBeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions added in v0.6.1

SubmitBeaconCommitteeSubscriptions is a mock.

type ErroringBlindedBeaconBlockProposalProvider added in v1.6.0

type ErroringBlindedBeaconBlockProposalProvider struct{}

ErroringBlindedBeaconBlockProposalProvider is a mock for eth2client.BlindedBeaconBlockProposalProvider.

func (*ErroringBlindedBeaconBlockProposalProvider) BlindedBeaconBlockProposal added in v1.6.0

BlindedBeaconBlockProposal is a mock.

type ErroringBlindedBeaconBlockSubmitter added in v1.6.0

type ErroringBlindedBeaconBlockSubmitter struct{}

ErroringBlindedBeaconBlockSubmitter is a mock for eth2client.BlindedBeaconBlockSubmitter that returns errors.

func (*ErroringBlindedBeaconBlockSubmitter) SubmitBlindedBeaconBlock added in v1.6.0

SubmitBlindedBeaconBlock is a mock.

type ErroringDomainProvider added in v0.9.0

type ErroringDomainProvider struct{}

ErroringDomainProvider is a mock for eth2client.DomainProvider.

func (*ErroringDomainProvider) Domain added in v0.9.0

Domain is a mock.

func (*ErroringDomainProvider) GenesisDomain added in v1.7.0

GenesisDomain is a mock.

type ErroringEventsProvider added in v1.4.0

type ErroringEventsProvider struct{}

ErroringEventsProvider is a mock for eth2client.EventsProvider.

func (*ErroringEventsProvider) Events added in v1.4.0

Events submits sync committee contributions.

type ErroringProposalPreparationsSubmitter added in v1.5.0

type ErroringProposalPreparationsSubmitter struct{}

ErroringProposalPreparationsSubmitter is a mock for eth2client.ProposalPreparationsSubmitter that returns errors.

func (*ErroringProposalPreparationsSubmitter) SubmitProposalPreparations added in v1.5.0

SubmitProposalPreparations is a mock.

type ErroringSlotDurationProvider added in v1.2.0

type ErroringSlotDurationProvider struct{}

ErroringSlotDurationProvider is a mock for eth2client.SlotDurationProvider.

func (*ErroringSlotDurationProvider) SlotDuration added in v1.2.0

SlotDuration is a mock.

type ErroringSlotsPerEpochProvider added in v0.6.2

type ErroringSlotsPerEpochProvider struct{}

ErroringSlotsPerEpochProvider is a mock for eth2client.SlotsPerEpochProvider.

func (*ErroringSlotsPerEpochProvider) SlotsPerEpoch added in v0.6.2

SlotsPerEpoch is a mock.

type ErroringSpecProvider added in v1.2.0

type ErroringSpecProvider struct{}

ErroringSpecProvider is a mock for eth2client.SpecProvider.

func (*ErroringSpecProvider) Spec added in v1.2.0

func (*ErroringSpecProvider) Spec(_ context.Context) (map[string]interface{}, error)

Spec is a mock.

type ErroringSyncCommitteeContributionProvider added in v1.2.0

type ErroringSyncCommitteeContributionProvider struct{}

ErroringSyncCommitteeContributionProvider is a mock for eth2client.SyncCommitteeContributionProvider.

func (*ErroringSyncCommitteeContributionProvider) SyncCommitteeContribution added in v1.2.0

SyncCommitteeContribution is a mock.

type ErroringSyncCommitteeContributionsSubmitter added in v1.2.0

type ErroringSyncCommitteeContributionsSubmitter struct{}

ErroringSyncCommitteeContributionsSubmitter is a mock for eth2client.SyncCommitteeContributionsSubmitter.

func (*ErroringSyncCommitteeContributionsSubmitter) SubmitSyncCommitteeContributions added in v1.2.0

SubmitSyncCommitteeContributions submits sync committee contributions.

type ErroringSyncCommitteeMessagesSubmitter added in v1.2.0

type ErroringSyncCommitteeMessagesSubmitter struct{}

ErroringSyncCommitteeMessagesSubmitter is a mock for eth2client.SyncCommitteeMessagesSubmitter.

func (*ErroringSyncCommitteeMessagesSubmitter) SubmitSyncCommitteeMessages added in v1.2.0

SubmitSyncCommitteeMessages submits sync committee messages.

type ErroringSyncCommitteeSubscriptionsSubmitter added in v1.2.0

type ErroringSyncCommitteeSubscriptionsSubmitter struct{}

ErroringSyncCommitteeSubscriptionsSubmitter is a mock for eth2client.SyncCommitteeSubscriptionsSubmitter.

func (*ErroringSyncCommitteeSubscriptionsSubmitter) SubmitSyncCommitteeSubscriptions added in v1.2.0

SubmitSyncCommitteeSubscriptions is a mock.

type EventsProvider added in v1.2.0

type EventsProvider struct{}

EventsProvider is a mock for eth2client.EventsProvider.

func (*EventsProvider) Events added in v1.2.0

Events is a mock.

type FarFutureEpochProvider added in v1.0.0

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

FarFutureEpochProvider is a mock for eth2client.FarFutureEpochProvider.

func (*FarFutureEpochProvider) FarFutureEpoch added in v1.0.0

func (m *FarFutureEpochProvider) FarFutureEpoch(_ context.Context) (phase0.Epoch, error)

FarFutureEpoch is a mock.

type ForkScheduleProvider added in v1.2.0

type ForkScheduleProvider struct{}

ForkScheduleProvider is a mock for eth2client.ForkScheduleProvider.

func (*ForkScheduleProvider) ForkSchedule added in v1.2.0

func (*ForkScheduleProvider) ForkSchedule(_ context.Context) ([]*phase0.Fork, error)

ForkSchedule is a mock.

type GenesisTimeProvider

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

GenesisTimeProvider is a mock for eth2client.GenesisTimeProvider.

func (*GenesisTimeProvider) GenesisTime

func (m *GenesisTimeProvider) GenesisTime(_ context.Context) (time.Time, error)

GenesisTime is a mock.

type NilAggregateAttestationProvider added in v1.2.0

type NilAggregateAttestationProvider struct{}

NilAggregateAttestationProvider is a mock for eth2client.AggregateAttestationProvider.

func (*NilAggregateAttestationProvider) AggregateAttestation added in v1.2.0

AggregateAttestation is a mock.

type NilAttestationDataProvider added in v0.9.0

type NilAttestationDataProvider struct{}

NilAttestationDataProvider is a mock for eth2client.AttestationDataProvider.

func (*NilAttestationDataProvider) AttestationData added in v0.9.0

AttestationData is a mock.

type NilBeaconBlockProposalProvider added in v1.5.0

type NilBeaconBlockProposalProvider struct{}

NilBeaconBlockProposalProvider is a mock for eth2client.BeaconBlockProposalProvider.

func (*NilBeaconBlockProposalProvider) BeaconBlockProposal added in v1.5.0

BeaconBlockProposal is a mock.

type NilBlindedBeaconBlockProposalProvider added in v1.6.0

type NilBlindedBeaconBlockProposalProvider struct{}

NilBlindedBeaconBlockProposalProvider is a mock for eth2client.BlindedBeaconBlockProposalProvider.

func (*NilBlindedBeaconBlockProposalProvider) BlindedBeaconBlockProposal added in v1.6.0

BlindedBeaconBlockProposal is a mock.

type NilSyncCommitteeContributionProvider added in v1.2.0

type NilSyncCommitteeContributionProvider struct{}

NilSyncCommitteeContributionProvider is a mock for eth2client.SyncCommitteeContributionProvider.

func (*NilSyncCommitteeContributionProvider) SyncCommitteeContribution added in v1.2.0

SyncCommitteeContribution is a mock.

type ProposalPreparationsSubmitter added in v1.5.0

type ProposalPreparationsSubmitter struct{}

ProposalPreparationsSubmitter is a mock for eth2client.ProposalPreparationsSubmitter.

func (*ProposalPreparationsSubmitter) SubmitProposalPreparations added in v1.5.0

func (*ProposalPreparationsSubmitter) SubmitProposalPreparations(_ context.Context, _ []*apiv1.ProposalPreparation) error

SubmitProposalPreparations is a mock.

type ProposerDutiesProvider added in v1.2.0

type ProposerDutiesProvider struct{}

ProposerDutiesProvider is a mock for eth2client.ProposerDutiesProvider.

func (*ProposerDutiesProvider) ProposerDuties added in v1.2.0

ProposerDuties is a mock.

type SignedBeaconBlockProvider added in v0.9.0

type SignedBeaconBlockProvider struct{}

SignedBeaconBlockProvider is a mock for eth2client.SignedBeaconBlockProvider.

func (*SignedBeaconBlockProvider) SignedBeaconBlock added in v0.9.0

SignedBeaconBlock is a mock.

type SleepyAggregateAttestationProvider added in v1.2.0

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

SleepyAggregateAttestationProvider is a mock for eth2client.AggregateAttestationProvider.

func (*SleepyAggregateAttestationProvider) AggregateAttestation added in v1.2.0

func (m *SleepyAggregateAttestationProvider) AggregateAttestation(ctx context.Context, slot phase0.Slot, attestationDataRoot phase0.Root) (*phase0.Attestation, error)

AggregateAttestation is a mock.

type SleepyAggregateAttestationsSubmitter added in v1.4.0

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

SleepyAggregateAttestationsSubmitter is a mock for eth2client.AggregateAttestationsSubmitter.

func (*SleepyAggregateAttestationsSubmitter) SubmitAggregateAttestations added in v1.4.0

func (m *SleepyAggregateAttestationsSubmitter) SubmitAggregateAttestations(ctx context.Context, aggregateAndProofs []*phase0.SignedAggregateAndProof) error

SubmitAggregateAttestations is a mock.

type SleepyAttestationDataProvider added in v0.9.0

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

SleepyAttestationDataProvider is a mock for eth2client.AttestationDataProvider.

func (*SleepyAttestationDataProvider) AttestationData added in v0.9.0

func (m *SleepyAttestationDataProvider) AttestationData(ctx context.Context, slot phase0.Slot, committeeIndex phase0.CommitteeIndex) (*phase0.AttestationData, error)

AttestationData is a mock.

type SleepyAttestationsSubmitter added in v1.4.0

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

SleepyAttestationsSubmitter is a mock for eth2client.AttestationsSubmitter.

func (*SleepyAttestationsSubmitter) SubmitAttestations added in v1.4.0

func (m *SleepyAttestationsSubmitter) SubmitAttestations(ctx context.Context, attestations []*phase0.Attestation) error

SubmitAttestations is a mock.

type SleepyBeaconBlockProposalProvider added in v1.5.0

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

SleepyBeaconBlockProposalProvider is a mock for eth2client.BeaconBlockProposalProvider.

func (*SleepyBeaconBlockProposalProvider) BeaconBlockProposal added in v1.5.0

func (m *SleepyBeaconBlockProposalProvider) BeaconBlockProposal(ctx context.Context, slot phase0.Slot, randaoReveal phase0.BLSSignature, graffiti []byte) (*spec.VersionedBeaconBlock, error)

BeaconBlockProposal is a mock.

type SleepyBeaconBlockSubmitter added in v1.4.0

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

SleepyBeaconBlockSubmitter is a mock for eth2client.BeaconBlockSubmitter.

func (*SleepyBeaconBlockSubmitter) SubmitBeaconBlock added in v1.4.0

SubmitBeaconBlock is a mock.

type SleepyBeaconCommitteeSubscriptionsSubmitter added in v1.4.0

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

SleepyBeaconCommitteeSubscriptionsSubmitter is a mock for eth2client.BeaconCommitteeSubscriptionsSubmitter.

func (*SleepyBeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions added in v1.4.0

func (m *SleepyBeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions(ctx context.Context, subscriptions []*apiv1.BeaconCommitteeSubscription) error

SubmitBeaconCommitteeSubscriptions is a mock.

type SleepyBlindedBeaconBlockProposalProvider added in v1.6.0

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

SleepyBlindedBeaconBlockProposalProvider is a mock for eth2client.BlindedBeaconBlockProposalProvider.

func (*SleepyBlindedBeaconBlockProposalProvider) BlindedBeaconBlockProposal added in v1.6.0

func (m *SleepyBlindedBeaconBlockProposalProvider) BlindedBeaconBlockProposal(ctx context.Context, slot phase0.Slot, randaoReveal phase0.BLSSignature, graffiti []byte) (*api.VersionedBlindedBeaconBlock, error)

BlindedBeaconBlockProposal is a mock.

type SleepyBlindedBeaconBlockSubmitter added in v1.6.0

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

SleepyBlindedBeaconBlockSubmitter is a mock for eth2client.BlindedBeaconBlockSubmitter.

func (*SleepyBlindedBeaconBlockSubmitter) SubmitBlindedBeaconBlock added in v1.6.0

SubmitBlindedBeaconBlock is a mock.

type SleepyProposalPreparationsSubmitter added in v1.5.0

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

SleepyProposalPreparationsSubmitter is a mock for eth2client.ProposalPreparationsSubmitter.

func (*SleepyProposalPreparationsSubmitter) SubmitProposalPreparations added in v1.5.0

func (m *SleepyProposalPreparationsSubmitter) SubmitProposalPreparations(ctx context.Context, preparations []*apiv1.ProposalPreparation) error

SubmitProposalPreparations is a mock.

type SleepySyncCommitteeContributionProvider added in v1.2.0

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

SleepySyncCommitteeContributionProvider is a mock for eth2client.SyncCommitteeContributionProvider.

func (*SleepySyncCommitteeContributionProvider) SyncCommitteeContribution added in v1.2.0

func (m *SleepySyncCommitteeContributionProvider) SyncCommitteeContribution(ctx context.Context, slot phase0.Slot, subcommitteeIndex uint64, beaconBlockRoot phase0.Root) (*altair.SyncCommitteeContribution, error)

SyncCommitteeContribution is a mock.

type SleepySyncCommitteeContributionsSubmitter added in v1.4.0

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

SleepySyncCommitteeContributionsSubmitter is a mock for eth2client.SyncCommitteeContributionsSubmitter.

func (*SleepySyncCommitteeContributionsSubmitter) SubmitSyncCommitteeContributions added in v1.4.0

func (m *SleepySyncCommitteeContributionsSubmitter) SubmitSyncCommitteeContributions(ctx context.Context, proofs []*altair.SignedContributionAndProof) error

SubmitSyncCommitteeContributions is a mock.

type SleepySyncCommitteeMessagesSubmitter added in v1.4.0

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

SleepySyncCommitteeMessagesSubmitter is a mock for eth2client.SyncCommitteeMessagesSubmitter.

func (*SleepySyncCommitteeMessagesSubmitter) SubmitSyncCommitteeMessages added in v1.4.0

func (m *SleepySyncCommitteeMessagesSubmitter) SubmitSyncCommitteeMessages(ctx context.Context, messages []*altair.SyncCommitteeMessage) error

SubmitSyncCommitteeMessages is a mock.

type SleepySyncCommitteeSubscriptionsSubmitter added in v1.4.0

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

SleepySyncCommitteeSubscriptionsSubmitter is a mock for eth2client.SyncCommitteeSubscriptionsSubmitter.

func (*SleepySyncCommitteeSubscriptionsSubmitter) SubmitSyncCommitteeSubscriptions added in v1.4.0

func (m *SleepySyncCommitteeSubscriptionsSubmitter) SubmitSyncCommitteeSubscriptions(ctx context.Context, subscriptions []*apiv1.SyncCommitteeSubscription) error

SubmitSyncCommitteeSubscriptions is a mock.

type SlotDurationProvider

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

SlotDurationProvider is a mock for eth2client.SlotDurationProvider.

func (*SlotDurationProvider) SlotDuration

func (m *SlotDurationProvider) SlotDuration(_ context.Context) (time.Duration, error)

SlotDuration is a mock.

type SlotsPerEpochProvider

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

SlotsPerEpochProvider is a mock for eth2client.SlotsPerEpochProvider.

func (*SlotsPerEpochProvider) SlotsPerEpoch

func (m *SlotsPerEpochProvider) SlotsPerEpoch(_ context.Context) (uint64, error)

SlotsPerEpoch is a mock.

type SpecProvider added in v1.2.0

type SpecProvider struct{}

SpecProvider is a mock for eth2client.SpecProvider.

func (*SpecProvider) Spec added in v1.2.0

func (*SpecProvider) Spec(_ context.Context) (map[string]interface{}, error)

Spec is a mock.

type SyncCommitteeContributionProvider added in v1.2.0

type SyncCommitteeContributionProvider struct{}

SyncCommitteeContributionProvider is a mock for eth2client.SyncCommitteeContributionProvider.

func (*SyncCommitteeContributionProvider) SyncCommitteeContribution added in v1.2.0

func (*SyncCommitteeContributionProvider) SyncCommitteeContribution(_ context.Context, slot phase0.Slot, subcommitteeIndex uint64, beaconBlockRoot phase0.Root) (*altair.SyncCommitteeContribution, error)

SyncCommitteeContribution is a mock.

type SyncCommitteeContributionsSubmitter added in v1.2.0

type SyncCommitteeContributionsSubmitter struct{}

SyncCommitteeContributionsSubmitter is a mock for eth2client.SyncCommitteeContributionsSubmitter.

func (*SyncCommitteeContributionsSubmitter) SubmitSyncCommitteeContributions added in v1.2.0

SubmitSyncCommitteeContributions submits sync committee contributions.

type SyncCommitteeDutiesProvider added in v1.2.0

type SyncCommitteeDutiesProvider struct{}

SyncCommitteeDutiesProvider is a mock for eth2client.SyncCommitteeDutiesProvider.

func (*SyncCommitteeDutiesProvider) SyncCommitteeDuties added in v1.2.0

SyncCommitteeDuties is a mock.

type SyncCommitteeMessagesSubmitter added in v1.2.0

type SyncCommitteeMessagesSubmitter struct{}

SyncCommitteeMessagesSubmitter is a mock for eth2client.SyncCommitteeMessagesSubmitter.

func (*SyncCommitteeMessagesSubmitter) SubmitSyncCommitteeMessages added in v1.2.0

func (*SyncCommitteeMessagesSubmitter) SubmitSyncCommitteeMessages(_ context.Context, _ []*altair.SyncCommitteeMessage) error

SubmitSyncCommitteeMessages submits sync committee messages.

type SyncCommitteeSubscriptionsSubmitter added in v1.2.0

type SyncCommitteeSubscriptionsSubmitter struct{}

SyncCommitteeSubscriptionsSubmitter is a mock for eth2client.SyncCommitteeSubscriptionsSubmitter.

func (*SyncCommitteeSubscriptionsSubmitter) SubmitSyncCommitteeSubscriptions added in v1.2.0

func (*SyncCommitteeSubscriptionsSubmitter) SubmitSyncCommitteeSubscriptions(_ context.Context, _ []*apiv1.SyncCommitteeSubscription) error

SubmitSyncCommitteeSubscriptions is a mock.

type ValidatorsProvider added in v0.6.2

type ValidatorsProvider struct{}

ValidatorsProvider is a mock.

func (*ValidatorsProvider) Validators added in v0.6.2

Validators is a mock.

func (*ValidatorsProvider) ValidatorsByPubKey added in v0.9.0

func (*ValidatorsProvider) ValidatorsByPubKey(_ context.Context, _ string, validators []phase0.BLSPubKey) (map[phase0.ValidatorIndex]*apiv1.Validator, error)

ValidatorsByPubKey is a mock.

Jump to

Keyboard shortcuts

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