mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
* Use dependent root to request duties * Add actual roots to the event stream * Add feature flag * fix no go * fix test * add test * log duties changes on reorgs * send depdendent root on grpc response * fix wrong return status in tests * fix tests * gazelle * add unil wait for wg * parse slot twice * add slot deadline to update duties * fix conflict * add dependency * lint * Thanks James! * fix segfault * fix rpc tests --------- Co-authored-by: terence tsao <terence@prysmaticlabs.com>
519 lines
23 KiB
Go
Generated
519 lines
23 KiB
Go
Generated
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/OffchainLabs/prysm/v6/validator/client/iface (interfaces: ValidatorClient)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=validator_mock -destination=testing/validator-mock/validator_client_mock.go github.com/OffchainLabs/prysm/v6/validator/client/iface ValidatorClient
|
|
//
|
|
|
|
// Package validator_mock is a generated GoMock package.
|
|
package validator_mock
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
event "github.com/OffchainLabs/prysm/v6/api/client/event"
|
|
primitives "github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
|
iface "github.com/OffchainLabs/prysm/v6/validator/client/iface"
|
|
gomock "go.uber.org/mock/gomock"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
)
|
|
|
|
// MockValidatorClient is a mock of ValidatorClient interface.
|
|
type MockValidatorClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockValidatorClientMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockValidatorClientMockRecorder is the mock recorder for MockValidatorClient.
|
|
type MockValidatorClientMockRecorder struct {
|
|
mock *MockValidatorClient
|
|
}
|
|
|
|
// NewMockValidatorClient creates a new mock instance.
|
|
func NewMockValidatorClient(ctrl *gomock.Controller) *MockValidatorClient {
|
|
mock := &MockValidatorClient{ctrl: ctrl}
|
|
mock.recorder = &MockValidatorClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockValidatorClient) EXPECT() *MockValidatorClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AggregatedSelections mocks base method.
|
|
func (m *MockValidatorClient) AggregatedSelections(ctx context.Context, selections []iface.BeaconCommitteeSelection) ([]iface.BeaconCommitteeSelection, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AggregatedSelections", ctx, selections)
|
|
ret0, _ := ret[0].([]iface.BeaconCommitteeSelection)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AggregatedSelections indicates an expected call of AggregatedSelections.
|
|
func (mr *MockValidatorClientMockRecorder) AggregatedSelections(ctx, selections any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregatedSelections", reflect.TypeOf((*MockValidatorClient)(nil).AggregatedSelections), ctx, selections)
|
|
}
|
|
|
|
// AggregatedSyncSelections mocks base method.
|
|
func (m *MockValidatorClient) AggregatedSyncSelections(ctx context.Context, selections []iface.SyncCommitteeSelection) ([]iface.SyncCommitteeSelection, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AggregatedSyncSelections", ctx, selections)
|
|
ret0, _ := ret[0].([]iface.SyncCommitteeSelection)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AggregatedSyncSelections indicates an expected call of AggregatedSyncSelections.
|
|
func (mr *MockValidatorClientMockRecorder) AggregatedSyncSelections(ctx, selections any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregatedSyncSelections", reflect.TypeOf((*MockValidatorClient)(nil).AggregatedSyncSelections), ctx, selections)
|
|
}
|
|
|
|
// AttestationData mocks base method.
|
|
func (m *MockValidatorClient) AttestationData(ctx context.Context, in *eth.AttestationDataRequest) (*eth.AttestationData, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AttestationData", ctx, in)
|
|
ret0, _ := ret[0].(*eth.AttestationData)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AttestationData indicates an expected call of AttestationData.
|
|
func (mr *MockValidatorClientMockRecorder) AttestationData(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttestationData", reflect.TypeOf((*MockValidatorClient)(nil).AttestationData), ctx, in)
|
|
}
|
|
|
|
// BeaconBlock mocks base method.
|
|
func (m *MockValidatorClient) BeaconBlock(ctx context.Context, in *eth.BlockRequest) (*eth.GenericBeaconBlock, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BeaconBlock", ctx, in)
|
|
ret0, _ := ret[0].(*eth.GenericBeaconBlock)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BeaconBlock indicates an expected call of BeaconBlock.
|
|
func (mr *MockValidatorClientMockRecorder) BeaconBlock(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeaconBlock", reflect.TypeOf((*MockValidatorClient)(nil).BeaconBlock), ctx, in)
|
|
}
|
|
|
|
// CheckDoppelGanger mocks base method.
|
|
func (m *MockValidatorClient) CheckDoppelGanger(ctx context.Context, in *eth.DoppelGangerRequest) (*eth.DoppelGangerResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CheckDoppelGanger", ctx, in)
|
|
ret0, _ := ret[0].(*eth.DoppelGangerResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CheckDoppelGanger indicates an expected call of CheckDoppelGanger.
|
|
func (mr *MockValidatorClientMockRecorder) CheckDoppelGanger(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckDoppelGanger", reflect.TypeOf((*MockValidatorClient)(nil).CheckDoppelGanger), ctx, in)
|
|
}
|
|
|
|
// DomainData mocks base method.
|
|
func (m *MockValidatorClient) DomainData(ctx context.Context, in *eth.DomainRequest) (*eth.DomainResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DomainData", ctx, in)
|
|
ret0, _ := ret[0].(*eth.DomainResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// DomainData indicates an expected call of DomainData.
|
|
func (mr *MockValidatorClientMockRecorder) DomainData(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DomainData", reflect.TypeOf((*MockValidatorClient)(nil).DomainData), ctx, in)
|
|
}
|
|
|
|
// Duties mocks base method.
|
|
func (m *MockValidatorClient) Duties(ctx context.Context, in *eth.DutiesRequest) (*eth.ValidatorDutiesContainer, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Duties", ctx, in)
|
|
ret0, _ := ret[0].(*eth.ValidatorDutiesContainer)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Duties indicates an expected call of Duties.
|
|
func (mr *MockValidatorClientMockRecorder) Duties(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Duties", reflect.TypeOf((*MockValidatorClient)(nil).Duties), ctx, in)
|
|
}
|
|
|
|
// EventStreamIsRunning mocks base method.
|
|
func (m *MockValidatorClient) EventStreamIsRunning() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "EventStreamIsRunning")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// EventStreamIsRunning indicates an expected call of EventStreamIsRunning.
|
|
func (mr *MockValidatorClientMockRecorder) EventStreamIsRunning() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EventStreamIsRunning", reflect.TypeOf((*MockValidatorClient)(nil).EventStreamIsRunning))
|
|
}
|
|
|
|
// FeeRecipientByPubKey mocks base method.
|
|
func (m *MockValidatorClient) FeeRecipientByPubKey(ctx context.Context, in *eth.FeeRecipientByPubKeyRequest) (*eth.FeeRecipientByPubKeyResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FeeRecipientByPubKey", ctx, in)
|
|
ret0, _ := ret[0].(*eth.FeeRecipientByPubKeyResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FeeRecipientByPubKey indicates an expected call of FeeRecipientByPubKey.
|
|
func (mr *MockValidatorClientMockRecorder) FeeRecipientByPubKey(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeeRecipientByPubKey", reflect.TypeOf((*MockValidatorClient)(nil).FeeRecipientByPubKey), ctx, in)
|
|
}
|
|
|
|
// Host mocks base method.
|
|
func (m *MockValidatorClient) Host() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Host")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Host indicates an expected call of Host.
|
|
func (mr *MockValidatorClientMockRecorder) Host() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Host", reflect.TypeOf((*MockValidatorClient)(nil).Host))
|
|
}
|
|
|
|
// MultipleValidatorStatus mocks base method.
|
|
func (m *MockValidatorClient) MultipleValidatorStatus(ctx context.Context, in *eth.MultipleValidatorStatusRequest) (*eth.MultipleValidatorStatusResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "MultipleValidatorStatus", ctx, in)
|
|
ret0, _ := ret[0].(*eth.MultipleValidatorStatusResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// MultipleValidatorStatus indicates an expected call of MultipleValidatorStatus.
|
|
func (mr *MockValidatorClientMockRecorder) MultipleValidatorStatus(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultipleValidatorStatus", reflect.TypeOf((*MockValidatorClient)(nil).MultipleValidatorStatus), ctx, in)
|
|
}
|
|
|
|
// PrepareBeaconProposer mocks base method.
|
|
func (m *MockValidatorClient) PrepareBeaconProposer(ctx context.Context, in *eth.PrepareBeaconProposerRequest) (*emptypb.Empty, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PrepareBeaconProposer", ctx, in)
|
|
ret0, _ := ret[0].(*emptypb.Empty)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// PrepareBeaconProposer indicates an expected call of PrepareBeaconProposer.
|
|
func (mr *MockValidatorClientMockRecorder) PrepareBeaconProposer(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareBeaconProposer", reflect.TypeOf((*MockValidatorClient)(nil).PrepareBeaconProposer), ctx, in)
|
|
}
|
|
|
|
// ProposeAttestation mocks base method.
|
|
func (m *MockValidatorClient) ProposeAttestation(ctx context.Context, in *eth.Attestation) (*eth.AttestResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ProposeAttestation", ctx, in)
|
|
ret0, _ := ret[0].(*eth.AttestResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ProposeAttestation indicates an expected call of ProposeAttestation.
|
|
func (mr *MockValidatorClientMockRecorder) ProposeAttestation(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeAttestation", reflect.TypeOf((*MockValidatorClient)(nil).ProposeAttestation), ctx, in)
|
|
}
|
|
|
|
// ProposeAttestationElectra mocks base method.
|
|
func (m *MockValidatorClient) ProposeAttestationElectra(ctx context.Context, in *eth.SingleAttestation) (*eth.AttestResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ProposeAttestationElectra", ctx, in)
|
|
ret0, _ := ret[0].(*eth.AttestResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ProposeAttestationElectra indicates an expected call of ProposeAttestationElectra.
|
|
func (mr *MockValidatorClientMockRecorder) ProposeAttestationElectra(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeAttestationElectra", reflect.TypeOf((*MockValidatorClient)(nil).ProposeAttestationElectra), ctx, in)
|
|
}
|
|
|
|
// ProposeBeaconBlock mocks base method.
|
|
func (m *MockValidatorClient) ProposeBeaconBlock(ctx context.Context, in *eth.GenericSignedBeaconBlock) (*eth.ProposeResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ProposeBeaconBlock", ctx, in)
|
|
ret0, _ := ret[0].(*eth.ProposeResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ProposeBeaconBlock indicates an expected call of ProposeBeaconBlock.
|
|
func (mr *MockValidatorClientMockRecorder) ProposeBeaconBlock(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeBeaconBlock", reflect.TypeOf((*MockValidatorClient)(nil).ProposeBeaconBlock), ctx, in)
|
|
}
|
|
|
|
// ProposeExit mocks base method.
|
|
func (m *MockValidatorClient) ProposeExit(ctx context.Context, in *eth.SignedVoluntaryExit) (*eth.ProposeExitResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ProposeExit", ctx, in)
|
|
ret0, _ := ret[0].(*eth.ProposeExitResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ProposeExit indicates an expected call of ProposeExit.
|
|
func (mr *MockValidatorClientMockRecorder) ProposeExit(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeExit", reflect.TypeOf((*MockValidatorClient)(nil).ProposeExit), ctx, in)
|
|
}
|
|
|
|
// SetHost mocks base method.
|
|
func (m *MockValidatorClient) SetHost(host string) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "SetHost", host)
|
|
}
|
|
|
|
// SetHost indicates an expected call of SetHost.
|
|
func (mr *MockValidatorClientMockRecorder) SetHost(host any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHost", reflect.TypeOf((*MockValidatorClient)(nil).SetHost), host)
|
|
}
|
|
|
|
// StartEventStream mocks base method.
|
|
func (m *MockValidatorClient) StartEventStream(ctx context.Context, topics []string, eventsChannel chan<- *event.Event) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "StartEventStream", ctx, topics, eventsChannel)
|
|
}
|
|
|
|
// StartEventStream indicates an expected call of StartEventStream.
|
|
func (mr *MockValidatorClientMockRecorder) StartEventStream(ctx, topics, eventsChannel any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartEventStream", reflect.TypeOf((*MockValidatorClient)(nil).StartEventStream), ctx, topics, eventsChannel)
|
|
}
|
|
|
|
// SubmitAggregateSelectionProof mocks base method.
|
|
func (m *MockValidatorClient) SubmitAggregateSelectionProof(ctx context.Context, in *eth.AggregateSelectionRequest, index primitives.ValidatorIndex, committeeLength uint64) (*eth.AggregateSelectionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubmitAggregateSelectionProof", ctx, in, index, committeeLength)
|
|
ret0, _ := ret[0].(*eth.AggregateSelectionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubmitAggregateSelectionProof indicates an expected call of SubmitAggregateSelectionProof.
|
|
func (mr *MockValidatorClientMockRecorder) SubmitAggregateSelectionProof(ctx, in, index, committeeLength any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitAggregateSelectionProof", reflect.TypeOf((*MockValidatorClient)(nil).SubmitAggregateSelectionProof), ctx, in, index, committeeLength)
|
|
}
|
|
|
|
// SubmitAggregateSelectionProofElectra mocks base method.
|
|
func (m *MockValidatorClient) SubmitAggregateSelectionProofElectra(ctx context.Context, in *eth.AggregateSelectionRequest, arg2 primitives.ValidatorIndex, arg3 uint64) (*eth.AggregateSelectionElectraResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubmitAggregateSelectionProofElectra", ctx, in, arg2, arg3)
|
|
ret0, _ := ret[0].(*eth.AggregateSelectionElectraResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubmitAggregateSelectionProofElectra indicates an expected call of SubmitAggregateSelectionProofElectra.
|
|
func (mr *MockValidatorClientMockRecorder) SubmitAggregateSelectionProofElectra(ctx, in, arg2, arg3 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitAggregateSelectionProofElectra", reflect.TypeOf((*MockValidatorClient)(nil).SubmitAggregateSelectionProofElectra), ctx, in, arg2, arg3)
|
|
}
|
|
|
|
// SubmitSignedAggregateSelectionProof mocks base method.
|
|
func (m *MockValidatorClient) SubmitSignedAggregateSelectionProof(ctx context.Context, in *eth.SignedAggregateSubmitRequest) (*eth.SignedAggregateSubmitResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubmitSignedAggregateSelectionProof", ctx, in)
|
|
ret0, _ := ret[0].(*eth.SignedAggregateSubmitResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubmitSignedAggregateSelectionProof indicates an expected call of SubmitSignedAggregateSelectionProof.
|
|
func (mr *MockValidatorClientMockRecorder) SubmitSignedAggregateSelectionProof(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitSignedAggregateSelectionProof", reflect.TypeOf((*MockValidatorClient)(nil).SubmitSignedAggregateSelectionProof), ctx, in)
|
|
}
|
|
|
|
// SubmitSignedAggregateSelectionProofElectra mocks base method.
|
|
func (m *MockValidatorClient) SubmitSignedAggregateSelectionProofElectra(ctx context.Context, in *eth.SignedAggregateSubmitElectraRequest) (*eth.SignedAggregateSubmitResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubmitSignedAggregateSelectionProofElectra", ctx, in)
|
|
ret0, _ := ret[0].(*eth.SignedAggregateSubmitResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubmitSignedAggregateSelectionProofElectra indicates an expected call of SubmitSignedAggregateSelectionProofElectra.
|
|
func (mr *MockValidatorClientMockRecorder) SubmitSignedAggregateSelectionProofElectra(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitSignedAggregateSelectionProofElectra", reflect.TypeOf((*MockValidatorClient)(nil).SubmitSignedAggregateSelectionProofElectra), ctx, in)
|
|
}
|
|
|
|
// SubmitSignedContributionAndProof mocks base method.
|
|
func (m *MockValidatorClient) SubmitSignedContributionAndProof(ctx context.Context, in *eth.SignedContributionAndProof) (*emptypb.Empty, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubmitSignedContributionAndProof", ctx, in)
|
|
ret0, _ := ret[0].(*emptypb.Empty)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubmitSignedContributionAndProof indicates an expected call of SubmitSignedContributionAndProof.
|
|
func (mr *MockValidatorClientMockRecorder) SubmitSignedContributionAndProof(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitSignedContributionAndProof", reflect.TypeOf((*MockValidatorClient)(nil).SubmitSignedContributionAndProof), ctx, in)
|
|
}
|
|
|
|
// SubmitSyncMessage mocks base method.
|
|
func (m *MockValidatorClient) SubmitSyncMessage(ctx context.Context, in *eth.SyncCommitteeMessage) (*emptypb.Empty, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubmitSyncMessage", ctx, in)
|
|
ret0, _ := ret[0].(*emptypb.Empty)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubmitSyncMessage indicates an expected call of SubmitSyncMessage.
|
|
func (mr *MockValidatorClientMockRecorder) SubmitSyncMessage(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitSyncMessage", reflect.TypeOf((*MockValidatorClient)(nil).SubmitSyncMessage), ctx, in)
|
|
}
|
|
|
|
// SubmitValidatorRegistrations mocks base method.
|
|
func (m *MockValidatorClient) SubmitValidatorRegistrations(ctx context.Context, in *eth.SignedValidatorRegistrationsV1) (*emptypb.Empty, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubmitValidatorRegistrations", ctx, in)
|
|
ret0, _ := ret[0].(*emptypb.Empty)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubmitValidatorRegistrations indicates an expected call of SubmitValidatorRegistrations.
|
|
func (mr *MockValidatorClientMockRecorder) SubmitValidatorRegistrations(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitValidatorRegistrations", reflect.TypeOf((*MockValidatorClient)(nil).SubmitValidatorRegistrations), ctx, in)
|
|
}
|
|
|
|
// SubscribeCommitteeSubnets mocks base method.
|
|
func (m *MockValidatorClient) SubscribeCommitteeSubnets(ctx context.Context, in *eth.CommitteeSubnetsSubscribeRequest, duties []*eth.ValidatorDuty) (*emptypb.Empty, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SubscribeCommitteeSubnets", ctx, in, duties)
|
|
ret0, _ := ret[0].(*emptypb.Empty)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SubscribeCommitteeSubnets indicates an expected call of SubscribeCommitteeSubnets.
|
|
func (mr *MockValidatorClientMockRecorder) SubscribeCommitteeSubnets(ctx, in, duties any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeCommitteeSubnets", reflect.TypeOf((*MockValidatorClient)(nil).SubscribeCommitteeSubnets), ctx, in, duties)
|
|
}
|
|
|
|
// SyncCommitteeContribution mocks base method.
|
|
func (m *MockValidatorClient) SyncCommitteeContribution(ctx context.Context, in *eth.SyncCommitteeContributionRequest) (*eth.SyncCommitteeContribution, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SyncCommitteeContribution", ctx, in)
|
|
ret0, _ := ret[0].(*eth.SyncCommitteeContribution)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SyncCommitteeContribution indicates an expected call of SyncCommitteeContribution.
|
|
func (mr *MockValidatorClientMockRecorder) SyncCommitteeContribution(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncCommitteeContribution", reflect.TypeOf((*MockValidatorClient)(nil).SyncCommitteeContribution), ctx, in)
|
|
}
|
|
|
|
// SyncMessageBlockRoot mocks base method.
|
|
func (m *MockValidatorClient) SyncMessageBlockRoot(ctx context.Context, in *emptypb.Empty) (*eth.SyncMessageBlockRootResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SyncMessageBlockRoot", ctx, in)
|
|
ret0, _ := ret[0].(*eth.SyncMessageBlockRootResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SyncMessageBlockRoot indicates an expected call of SyncMessageBlockRoot.
|
|
func (mr *MockValidatorClientMockRecorder) SyncMessageBlockRoot(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncMessageBlockRoot", reflect.TypeOf((*MockValidatorClient)(nil).SyncMessageBlockRoot), ctx, in)
|
|
}
|
|
|
|
// SyncSubcommitteeIndex mocks base method.
|
|
func (m *MockValidatorClient) SyncSubcommitteeIndex(ctx context.Context, in *eth.SyncSubcommitteeIndexRequest) (*eth.SyncSubcommitteeIndexResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SyncSubcommitteeIndex", ctx, in)
|
|
ret0, _ := ret[0].(*eth.SyncSubcommitteeIndexResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SyncSubcommitteeIndex indicates an expected call of SyncSubcommitteeIndex.
|
|
func (mr *MockValidatorClientMockRecorder) SyncSubcommitteeIndex(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncSubcommitteeIndex", reflect.TypeOf((*MockValidatorClient)(nil).SyncSubcommitteeIndex), ctx, in)
|
|
}
|
|
|
|
// ValidatorIndex mocks base method.
|
|
func (m *MockValidatorClient) ValidatorIndex(ctx context.Context, in *eth.ValidatorIndexRequest) (*eth.ValidatorIndexResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ValidatorIndex", ctx, in)
|
|
ret0, _ := ret[0].(*eth.ValidatorIndexResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ValidatorIndex indicates an expected call of ValidatorIndex.
|
|
func (mr *MockValidatorClientMockRecorder) ValidatorIndex(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorIndex", reflect.TypeOf((*MockValidatorClient)(nil).ValidatorIndex), ctx, in)
|
|
}
|
|
|
|
// ValidatorStatus mocks base method.
|
|
func (m *MockValidatorClient) ValidatorStatus(ctx context.Context, in *eth.ValidatorStatusRequest) (*eth.ValidatorStatusResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ValidatorStatus", ctx, in)
|
|
ret0, _ := ret[0].(*eth.ValidatorStatusResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ValidatorStatus indicates an expected call of ValidatorStatus.
|
|
func (mr *MockValidatorClientMockRecorder) ValidatorStatus(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorStatus", reflect.TypeOf((*MockValidatorClient)(nil).ValidatorStatus), ctx, in)
|
|
}
|
|
|
|
// WaitForChainStart mocks base method.
|
|
func (m *MockValidatorClient) WaitForChainStart(ctx context.Context, in *emptypb.Empty) (*eth.ChainStartResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "WaitForChainStart", ctx, in)
|
|
ret0, _ := ret[0].(*eth.ChainStartResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// WaitForChainStart indicates an expected call of WaitForChainStart.
|
|
func (mr *MockValidatorClientMockRecorder) WaitForChainStart(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForChainStart", reflect.TypeOf((*MockValidatorClient)(nil).WaitForChainStart), ctx, in)
|
|
}
|