2020-07-10 05:49:56 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2022-11-21 16:26:27 +00:00
|
|
|
// Source: github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/validator-client (interfaces: RemoteSignerClient)
|
2020-07-10 05:49:56 +00:00
|
|
|
|
|
|
|
// Package mock is a generated GoMock package.
|
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2022-11-21 16:26:27 +00:00
|
|
|
validatorpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/validator-client"
|
2020-07-10 05:49:56 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
2021-05-17 18:32:04 +00:00
|
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
2020-07-10 05:49:56 +00:00
|
|
|
)
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// MockRemoteSignerClient is a mock of RemoteSignerClient interface.
|
2020-07-10 05:49:56 +00:00
|
|
|
type MockRemoteSignerClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockRemoteSignerClientMockRecorder
|
|
|
|
}
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// MockRemoteSignerClientMockRecorder is the mock recorder for MockRemoteSignerClient.
|
2020-07-10 05:49:56 +00:00
|
|
|
type MockRemoteSignerClientMockRecorder struct {
|
|
|
|
mock *MockRemoteSignerClient
|
|
|
|
}
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// NewMockRemoteSignerClient creates a new mock instance.
|
2020-07-10 05:49:56 +00:00
|
|
|
func NewMockRemoteSignerClient(ctrl *gomock.Controller) *MockRemoteSignerClient {
|
|
|
|
mock := &MockRemoteSignerClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockRemoteSignerClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-07-10 05:49:56 +00:00
|
|
|
func (m *MockRemoteSignerClient) EXPECT() *MockRemoteSignerClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// ListValidatingPublicKeys mocks base method.
|
|
|
|
func (m *MockRemoteSignerClient) ListValidatingPublicKeys(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*validatorpb.ListPublicKeysResponse, error) {
|
2020-07-10 05:49:56 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ListValidatingPublicKeys", varargs...)
|
2022-11-21 16:26:27 +00:00
|
|
|
ret0, _ := ret[0].(*validatorpb.ListPublicKeysResponse)
|
2020-07-10 05:49:56 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// ListValidatingPublicKeys indicates an expected call of ListValidatingPublicKeys.
|
2020-07-10 05:49:56 +00:00
|
|
|
func (mr *MockRemoteSignerClientMockRecorder) ListValidatingPublicKeys(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListValidatingPublicKeys", reflect.TypeOf((*MockRemoteSignerClient)(nil).ListValidatingPublicKeys), varargs...)
|
|
|
|
}
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// Sign mocks base method.
|
|
|
|
func (m *MockRemoteSignerClient) Sign(arg0 context.Context, arg1 *validatorpb.SignRequest, arg2 ...grpc.CallOption) (*validatorpb.SignResponse, error) {
|
2020-07-10 05:49:56 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "Sign", varargs...)
|
2022-11-21 16:26:27 +00:00
|
|
|
ret0, _ := ret[0].(*validatorpb.SignResponse)
|
2020-07-10 05:49:56 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-11-21 16:26:27 +00:00
|
|
|
// Sign indicates an expected call of Sign.
|
2020-07-10 05:49:56 +00:00
|
|
|
func (mr *MockRemoteSignerClientMockRecorder) Sign(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockRemoteSignerClient)(nil).Sign), varargs...)
|
|
|
|
}
|