validator_mock

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package validator_mock is a generated GoMock package.

Package validator_mock is a generated GoMock package.

Package validator_mock is a generated GoMock package.

Package validator_mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBeaconChainClient

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

MockBeaconChainClient is a mock of BeaconChainClient interface.

func NewMockBeaconChainClient

func NewMockBeaconChainClient(ctrl *gomock.Controller) *MockBeaconChainClient

NewMockBeaconChainClient creates a new mock instance.

func (*MockBeaconChainClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBeaconChainClient) GetChainHead

func (m *MockBeaconChainClient) GetChainHead(arg0 context.Context, arg1 *emptypb.Empty) (*eth.ChainHead, error)

GetChainHead mocks base method.

func (*MockBeaconChainClient) GetValidatorParticipation

GetValidatorParticipation mocks base method.

func (*MockBeaconChainClient) GetValidatorPerformance

GetValidatorPerformance mocks base method.

func (*MockBeaconChainClient) GetValidatorQueue

func (m *MockBeaconChainClient) GetValidatorQueue(arg0 context.Context, arg1 *emptypb.Empty) (*eth.ValidatorQueue, error)

GetValidatorQueue mocks base method.

func (*MockBeaconChainClient) ListValidatorBalances

ListValidatorBalances mocks base method.

func (*MockBeaconChainClient) ListValidators

ListValidators mocks base method.

type MockBeaconChainClientMockRecorder

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

MockBeaconChainClientMockRecorder is the mock recorder for MockBeaconChainClient.

func (*MockBeaconChainClientMockRecorder) GetChainHead

func (mr *MockBeaconChainClientMockRecorder) GetChainHead(arg0, arg1 any) *gomock.Call

GetChainHead indicates an expected call of GetChainHead.

func (*MockBeaconChainClientMockRecorder) GetValidatorParticipation

func (mr *MockBeaconChainClientMockRecorder) GetValidatorParticipation(arg0, arg1 any) *gomock.Call

GetValidatorParticipation indicates an expected call of GetValidatorParticipation.

func (*MockBeaconChainClientMockRecorder) GetValidatorPerformance

func (mr *MockBeaconChainClientMockRecorder) GetValidatorPerformance(arg0, arg1 any) *gomock.Call

GetValidatorPerformance indicates an expected call of GetValidatorPerformance.

func (*MockBeaconChainClientMockRecorder) GetValidatorQueue

func (mr *MockBeaconChainClientMockRecorder) GetValidatorQueue(arg0, arg1 any) *gomock.Call

GetValidatorQueue indicates an expected call of GetValidatorQueue.

func (*MockBeaconChainClientMockRecorder) ListValidatorBalances

func (mr *MockBeaconChainClientMockRecorder) ListValidatorBalances(arg0, arg1 any) *gomock.Call

ListValidatorBalances indicates an expected call of ListValidatorBalances.

func (*MockBeaconChainClientMockRecorder) ListValidators

func (mr *MockBeaconChainClientMockRecorder) ListValidators(arg0, arg1 any) *gomock.Call

ListValidators indicates an expected call of ListValidators.

type MockNodeClient

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

MockNodeClient is a mock of NodeClient interface.

func NewMockNodeClient

func NewMockNodeClient(ctrl *gomock.Controller) *MockNodeClient

NewMockNodeClient creates a new mock instance.

func (*MockNodeClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNodeClient) GetGenesis

func (m *MockNodeClient) GetGenesis(arg0 context.Context, arg1 *emptypb.Empty) (*eth.Genesis, error)

GetGenesis mocks base method.

func (*MockNodeClient) GetSyncStatus

func (m *MockNodeClient) GetSyncStatus(arg0 context.Context, arg1 *emptypb.Empty) (*eth.SyncStatus, error)

GetSyncStatus mocks base method.

func (*MockNodeClient) GetVersion

func (m *MockNodeClient) GetVersion(arg0 context.Context, arg1 *emptypb.Empty) (*eth.Version, error)

GetVersion mocks base method.

func (*MockNodeClient) HealthTracker added in v5.0.2

func (m *MockNodeClient) HealthTracker() *beacon.NodeHealthTracker

func (*MockNodeClient) IsHealthy

func (m *MockNodeClient) IsHealthy(arg0 context.Context) bool

IsHealthy mocks base method.

func (*MockNodeClient) ListPeers

func (m *MockNodeClient) ListPeers(arg0 context.Context, arg1 *emptypb.Empty) (*eth.Peers, error)

ListPeers mocks base method.

type MockNodeClientMockRecorder

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

MockNodeClientMockRecorder is the mock recorder for MockNodeClient.

func (*MockNodeClientMockRecorder) GetGenesis

func (mr *MockNodeClientMockRecorder) GetGenesis(arg0, arg1 any) *gomock.Call

GetGenesis indicates an expected call of GetGenesis.

func (*MockNodeClientMockRecorder) GetSyncStatus

func (mr *MockNodeClientMockRecorder) GetSyncStatus(arg0, arg1 any) *gomock.Call

GetSyncStatus indicates an expected call of GetSyncStatus.

func (*MockNodeClientMockRecorder) GetVersion

func (mr *MockNodeClientMockRecorder) GetVersion(arg0, arg1 any) *gomock.Call

GetVersion indicates an expected call of GetVersion.

func (*MockNodeClientMockRecorder) IsHealthy

func (mr *MockNodeClientMockRecorder) IsHealthy(arg0 any) *gomock.Call

IsHealthy indicates an expected call of IsHealthy.

func (*MockNodeClientMockRecorder) ListPeers

func (mr *MockNodeClientMockRecorder) ListPeers(arg0, arg1 any) *gomock.Call

ListPeers indicates an expected call of ListPeers.

type MockPrysmBeaconChainClient

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

MockPrysmBeaconChainClient is a mock of PrysmBeaconChainClient interface.

func NewMockPrysmBeaconChainClient

func NewMockPrysmBeaconChainClient(ctrl *gomock.Controller) *MockPrysmBeaconChainClient

NewMockPrysmBeaconChainClient creates a new mock instance.

func (*MockPrysmBeaconChainClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPrysmBeaconChainClient) GetValidatorCount

func (m *MockPrysmBeaconChainClient) GetValidatorCount(arg0 context.Context, arg1 string, arg2 []validator.Status) ([]iface.ValidatorCount, error)

GetValidatorCount mocks base method.

type MockPrysmBeaconChainClientMockRecorder

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

MockPrysmBeaconChainClientMockRecorder is the mock recorder for MockPrysmBeaconChainClient.

func (*MockPrysmBeaconChainClientMockRecorder) GetValidatorCount

func (mr *MockPrysmBeaconChainClientMockRecorder) GetValidatorCount(arg0, arg1, arg2 any) *gomock.Call

GetValidatorCount indicates an expected call of GetValidatorCount.

type MockValidatorClient

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

MockValidatorClient is a mock of ValidatorClient interface.

func NewMockValidatorClient

func NewMockValidatorClient(ctrl *gomock.Controller) *MockValidatorClient

NewMockValidatorClient creates a new mock instance.

func (*MockValidatorClient) CheckDoppelGanger

CheckDoppelGanger mocks base method.

func (*MockValidatorClient) DomainData

DomainData mocks base method.

func (*MockValidatorClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidatorClient) EventStreamIsRunning

func (m *MockValidatorClient) EventStreamIsRunning() bool

EventStreamIsRunning mocks base method.

func (*MockValidatorClient) GetAggregatedSelections

GetAggregatedSelections mocks base method.

func (*MockValidatorClient) GetAggregatedSyncSelections added in v5.0.2

func (m *MockValidatorClient) GetAggregatedSyncSelections(arg0 context.Context, arg1 []iface.SyncCommitteeSelection) ([]iface.SyncCommitteeSelection, error)

GetAggregatedSyncSelections mocks base method.

func (*MockValidatorClient) GetAttestationData

func (m *MockValidatorClient) GetAttestationData(arg0 context.Context, arg1 *eth.AttestationDataRequest) (*eth.AttestationData, error)

GetAttestationData mocks base method.

func (*MockValidatorClient) GetBeaconBlock

func (m *MockValidatorClient) GetBeaconBlock(arg0 context.Context, arg1 *eth.BlockRequest) (*eth.GenericBeaconBlock, error)

GetBeaconBlock mocks base method.

func (*MockValidatorClient) GetDuties

GetDuties mocks base method.

func (*MockValidatorClient) GetFeeRecipientByPubKey

GetFeeRecipientByPubKey mocks base method.

func (*MockValidatorClient) GetSyncCommitteeContribution

GetSyncCommitteeContribution mocks base method.

func (*MockValidatorClient) GetSyncMessageBlockRoot

func (m *MockValidatorClient) GetSyncMessageBlockRoot(arg0 context.Context, arg1 *emptypb.Empty) (*eth.SyncMessageBlockRootResponse, error)

GetSyncMessageBlockRoot mocks base method.

func (*MockValidatorClient) GetSyncSubcommitteeIndex

GetSyncSubcommitteeIndex mocks base method.

func (*MockValidatorClient) MultipleValidatorStatus

MultipleValidatorStatus mocks base method.

func (*MockValidatorClient) PrepareBeaconProposer

func (m *MockValidatorClient) PrepareBeaconProposer(arg0 context.Context, arg1 *eth.PrepareBeaconProposerRequest) (*emptypb.Empty, error)

PrepareBeaconProposer mocks base method.

func (*MockValidatorClient) ProposeAttestation

func (m *MockValidatorClient) ProposeAttestation(arg0 context.Context, arg1 *eth.Attestation) (*eth.AttestResponse, error)

ProposeAttestation mocks base method.

func (*MockValidatorClient) ProposeBeaconBlock

ProposeBeaconBlock mocks base method.

func (*MockValidatorClient) ProposeExit

ProposeExit mocks base method.

func (*MockValidatorClient) StartEventStream

func (m *MockValidatorClient) StartEventStream(arg0 context.Context, arg1 []string, arg2 chan<- *event.Event)

StartEventStream mocks base method.

func (*MockValidatorClient) SubmitAggregateSelectionProof

SubmitAggregateSelectionProof mocks base method.

func (*MockValidatorClient) SubmitSignedAggregateSelectionProof

func (m *MockValidatorClient) SubmitSignedAggregateSelectionProof(arg0 context.Context, arg1 *eth.SignedAggregateSubmitRequest) (*eth.SignedAggregateSubmitResponse, error)

SubmitSignedAggregateSelectionProof mocks base method.

func (*MockValidatorClient) SubmitSignedContributionAndProof

func (m *MockValidatorClient) SubmitSignedContributionAndProof(arg0 context.Context, arg1 *eth.SignedContributionAndProof) (*emptypb.Empty, error)

SubmitSignedContributionAndProof mocks base method.

func (*MockValidatorClient) SubmitSyncMessage

func (m *MockValidatorClient) SubmitSyncMessage(arg0 context.Context, arg1 *eth.SyncCommitteeMessage) (*emptypb.Empty, error)

SubmitSyncMessage mocks base method.

func (*MockValidatorClient) SubmitValidatorRegistrations

func (m *MockValidatorClient) SubmitValidatorRegistrations(arg0 context.Context, arg1 *eth.SignedValidatorRegistrationsV1) (*emptypb.Empty, error)

SubmitValidatorRegistrations mocks base method.

func (*MockValidatorClient) SubscribeCommitteeSubnets

func (m *MockValidatorClient) SubscribeCommitteeSubnets(arg0 context.Context, arg1 *eth.CommitteeSubnetsSubscribeRequest, arg2 []*eth.DutiesResponse_Duty) (*emptypb.Empty, error)

SubscribeCommitteeSubnets mocks base method.

func (*MockValidatorClient) ValidatorIndex

ValidatorIndex mocks base method.

func (*MockValidatorClient) ValidatorStatus

ValidatorStatus mocks base method.

func (*MockValidatorClient) WaitForActivation

WaitForActivation mocks base method.

func (*MockValidatorClient) WaitForChainStart

func (m *MockValidatorClient) WaitForChainStart(arg0 context.Context, arg1 *emptypb.Empty) (*eth.ChainStartResponse, error)

WaitForChainStart mocks base method.

type MockValidatorClientMockRecorder

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

MockValidatorClientMockRecorder is the mock recorder for MockValidatorClient.

func (*MockValidatorClientMockRecorder) CheckDoppelGanger

func (mr *MockValidatorClientMockRecorder) CheckDoppelGanger(arg0, arg1 any) *gomock.Call

CheckDoppelGanger indicates an expected call of CheckDoppelGanger.

func (*MockValidatorClientMockRecorder) DomainData

func (mr *MockValidatorClientMockRecorder) DomainData(arg0, arg1 any) *gomock.Call

DomainData indicates an expected call of DomainData.

func (*MockValidatorClientMockRecorder) EventStreamIsRunning

func (mr *MockValidatorClientMockRecorder) EventStreamIsRunning() *gomock.Call

EventStreamIsRunning indicates an expected call of EventStreamIsRunning.

func (*MockValidatorClientMockRecorder) GetAggregatedSelections

func (mr *MockValidatorClientMockRecorder) GetAggregatedSelections(arg0, arg1 any) *gomock.Call

GetAggregatedSelections indicates an expected call of GetAggregatedSelections.

func (*MockValidatorClientMockRecorder) GetAggregatedSyncSelections added in v5.0.2

func (mr *MockValidatorClientMockRecorder) GetAggregatedSyncSelections(arg0, arg1 any) *gomock.Call

GetAggregatedSyncSelections indicates an expected call of GetAggregatedSyncSelections.

func (*MockValidatorClientMockRecorder) GetAttestationData

func (mr *MockValidatorClientMockRecorder) GetAttestationData(arg0, arg1 any) *gomock.Call

GetAttestationData indicates an expected call of GetAttestationData.

func (*MockValidatorClientMockRecorder) GetBeaconBlock

func (mr *MockValidatorClientMockRecorder) GetBeaconBlock(arg0, arg1 any) *gomock.Call

GetBeaconBlock indicates an expected call of GetBeaconBlock.

func (*MockValidatorClientMockRecorder) GetDuties

func (mr *MockValidatorClientMockRecorder) GetDuties(arg0, arg1 any) *gomock.Call

GetDuties indicates an expected call of GetDuties.

func (*MockValidatorClientMockRecorder) GetFeeRecipientByPubKey

func (mr *MockValidatorClientMockRecorder) GetFeeRecipientByPubKey(arg0, arg1 any) *gomock.Call

GetFeeRecipientByPubKey indicates an expected call of GetFeeRecipientByPubKey.

func (*MockValidatorClientMockRecorder) GetSyncCommitteeContribution

func (mr *MockValidatorClientMockRecorder) GetSyncCommitteeContribution(arg0, arg1 any) *gomock.Call

GetSyncCommitteeContribution indicates an expected call of GetSyncCommitteeContribution.

func (*MockValidatorClientMockRecorder) GetSyncMessageBlockRoot

func (mr *MockValidatorClientMockRecorder) GetSyncMessageBlockRoot(arg0, arg1 any) *gomock.Call

GetSyncMessageBlockRoot indicates an expected call of GetSyncMessageBlockRoot.

func (*MockValidatorClientMockRecorder) GetSyncSubcommitteeIndex

func (mr *MockValidatorClientMockRecorder) GetSyncSubcommitteeIndex(arg0, arg1 any) *gomock.Call

GetSyncSubcommitteeIndex indicates an expected call of GetSyncSubcommitteeIndex.

func (*MockValidatorClientMockRecorder) MultipleValidatorStatus

func (mr *MockValidatorClientMockRecorder) MultipleValidatorStatus(arg0, arg1 any) *gomock.Call

MultipleValidatorStatus indicates an expected call of MultipleValidatorStatus.

func (*MockValidatorClientMockRecorder) PrepareBeaconProposer

func (mr *MockValidatorClientMockRecorder) PrepareBeaconProposer(arg0, arg1 any) *gomock.Call

PrepareBeaconProposer indicates an expected call of PrepareBeaconProposer.

func (*MockValidatorClientMockRecorder) ProposeAttestation

func (mr *MockValidatorClientMockRecorder) ProposeAttestation(arg0, arg1 any) *gomock.Call

ProposeAttestation indicates an expected call of ProposeAttestation.

func (*MockValidatorClientMockRecorder) ProposeBeaconBlock

func (mr *MockValidatorClientMockRecorder) ProposeBeaconBlock(arg0, arg1 any) *gomock.Call

ProposeBeaconBlock indicates an expected call of ProposeBeaconBlock.

func (*MockValidatorClientMockRecorder) ProposeExit

func (mr *MockValidatorClientMockRecorder) ProposeExit(arg0, arg1 any) *gomock.Call

ProposeExit indicates an expected call of ProposeExit.

func (*MockValidatorClientMockRecorder) StartEventStream

func (mr *MockValidatorClientMockRecorder) StartEventStream(arg0, arg1, arg2 any) *gomock.Call

StartEventStream indicates an expected call of StartEventStream.

func (*MockValidatorClientMockRecorder) SubmitAggregateSelectionProof

func (mr *MockValidatorClientMockRecorder) SubmitAggregateSelectionProof(arg0, arg1, arg2, arg3 any) *gomock.Call

SubmitAggregateSelectionProof indicates an expected call of SubmitAggregateSelectionProof.

func (*MockValidatorClientMockRecorder) SubmitSignedAggregateSelectionProof

func (mr *MockValidatorClientMockRecorder) SubmitSignedAggregateSelectionProof(arg0, arg1 any) *gomock.Call

SubmitSignedAggregateSelectionProof indicates an expected call of SubmitSignedAggregateSelectionProof.

func (*MockValidatorClientMockRecorder) SubmitSignedContributionAndProof

func (mr *MockValidatorClientMockRecorder) SubmitSignedContributionAndProof(arg0, arg1 any) *gomock.Call

SubmitSignedContributionAndProof indicates an expected call of SubmitSignedContributionAndProof.

func (*MockValidatorClientMockRecorder) SubmitSyncMessage

func (mr *MockValidatorClientMockRecorder) SubmitSyncMessage(arg0, arg1 any) *gomock.Call

SubmitSyncMessage indicates an expected call of SubmitSyncMessage.

func (*MockValidatorClientMockRecorder) SubmitValidatorRegistrations

func (mr *MockValidatorClientMockRecorder) SubmitValidatorRegistrations(arg0, arg1 any) *gomock.Call

SubmitValidatorRegistrations indicates an expected call of SubmitValidatorRegistrations.

func (*MockValidatorClientMockRecorder) SubscribeCommitteeSubnets

func (mr *MockValidatorClientMockRecorder) SubscribeCommitteeSubnets(arg0, arg1, arg2 any) *gomock.Call

SubscribeCommitteeSubnets indicates an expected call of SubscribeCommitteeSubnets.

func (*MockValidatorClientMockRecorder) ValidatorIndex

func (mr *MockValidatorClientMockRecorder) ValidatorIndex(arg0, arg1 any) *gomock.Call

ValidatorIndex indicates an expected call of ValidatorIndex.

func (*MockValidatorClientMockRecorder) ValidatorStatus

func (mr *MockValidatorClientMockRecorder) ValidatorStatus(arg0, arg1 any) *gomock.Call

ValidatorStatus indicates an expected call of ValidatorStatus.

func (*MockValidatorClientMockRecorder) WaitForActivation

func (mr *MockValidatorClientMockRecorder) WaitForActivation(arg0, arg1 any) *gomock.Call

WaitForActivation indicates an expected call of WaitForActivation.

func (*MockValidatorClientMockRecorder) WaitForChainStart

func (mr *MockValidatorClientMockRecorder) WaitForChainStart(arg0, arg1 any) *gomock.Call

WaitForChainStart indicates an expected call of WaitForChainStart.

Jump to

Keyboard shortcuts

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