2020-02-19 22:26:14 +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 (interfaces: NodeClient)
|
2020-02-19 22:26:14 +00:00
|
|
|
|
|
|
|
// Package mock is a generated GoMock package.
|
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2020-03-03 13:32:14 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-02-19 22:26:14 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2022-08-16 12:20:13 +00:00
|
|
|
eth "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
2020-02-19 22:26:14 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
2021-05-17 18:32:04 +00:00
|
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
2020-02-19 22:26:14 +00:00
|
|
|
)
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// MockNodeClient is a mock of NodeClient interface.
|
2020-02-19 22:26:14 +00:00
|
|
|
type MockNodeClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockNodeClientMockRecorder
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// MockNodeClientMockRecorder is the mock recorder for MockNodeClient.
|
2020-02-19 22:26:14 +00:00
|
|
|
type MockNodeClientMockRecorder struct {
|
|
|
|
mock *MockNodeClient
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// NewMockNodeClient creates a new mock instance.
|
2020-02-19 22:26:14 +00:00
|
|
|
func NewMockNodeClient(ctrl *gomock.Controller) *MockNodeClient {
|
|
|
|
mock := &MockNodeClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockNodeClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-02-19 22:26:14 +00:00
|
|
|
func (m *MockNodeClient) EXPECT() *MockNodeClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetETH1ConnectionStatus mocks base method.
|
|
|
|
func (m *MockNodeClient) GetETH1ConnectionStatus(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*eth.ETH1ConnectionStatus, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetETH1ConnectionStatus", varargs...)
|
|
|
|
ret0, _ := ret[0].(*eth.ETH1ConnectionStatus)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetETH1ConnectionStatus indicates an expected call of GetETH1ConnectionStatus.
|
|
|
|
func (mr *MockNodeClientMockRecorder) GetETH1ConnectionStatus(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, "GetETH1ConnectionStatus", reflect.TypeOf((*MockNodeClient)(nil).GetETH1ConnectionStatus), varargs...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetGenesis mocks base method.
|
2021-09-07 15:17:50 +00:00
|
|
|
func (m *MockNodeClient) GetGenesis(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*eth.Genesis, error) {
|
2020-02-19 22:26:14 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetGenesis", varargs...)
|
2021-09-07 15:17:50 +00:00
|
|
|
ret0, _ := ret[0].(*eth.Genesis)
|
2020-02-19 22:26:14 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetGenesis indicates an expected call of GetGenesis.
|
2020-02-19 22:26:14 +00:00
|
|
|
func (mr *MockNodeClientMockRecorder) GetGenesis(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, "GetGenesis", reflect.TypeOf((*MockNodeClient)(nil).GetGenesis), varargs...)
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetHost mocks base method.
|
2021-09-07 15:17:50 +00:00
|
|
|
func (m *MockNodeClient) GetHost(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*eth.HostData, error) {
|
2020-06-18 03:53:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetHost", varargs...)
|
2021-09-07 15:17:50 +00:00
|
|
|
ret0, _ := ret[0].(*eth.HostData)
|
2020-06-18 03:53:46 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetHost indicates an expected call of GetHost.
|
2020-06-18 03:53:46 +00:00
|
|
|
func (mr *MockNodeClientMockRecorder) GetHost(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, "GetHost", reflect.TypeOf((*MockNodeClient)(nil).GetHost), varargs...)
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetPeer mocks base method.
|
2021-09-07 15:17:50 +00:00
|
|
|
func (m *MockNodeClient) GetPeer(arg0 context.Context, arg1 *eth.PeerRequest, arg2 ...grpc.CallOption) (*eth.Peer, error) {
|
2020-06-18 03:53:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetPeer", varargs...)
|
2021-09-07 15:17:50 +00:00
|
|
|
ret0, _ := ret[0].(*eth.Peer)
|
2020-06-18 03:53:46 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetPeer indicates an expected call of GetPeer.
|
2020-06-18 03:53:46 +00:00
|
|
|
func (mr *MockNodeClientMockRecorder) GetPeer(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, "GetPeer", reflect.TypeOf((*MockNodeClient)(nil).GetPeer), varargs...)
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetSyncStatus mocks base method.
|
2021-09-07 15:17:50 +00:00
|
|
|
func (m *MockNodeClient) GetSyncStatus(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*eth.SyncStatus, error) {
|
2020-02-19 22:26:14 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetSyncStatus", varargs...)
|
2021-09-07 15:17:50 +00:00
|
|
|
ret0, _ := ret[0].(*eth.SyncStatus)
|
2020-02-19 22:26:14 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetSyncStatus indicates an expected call of GetSyncStatus.
|
2020-02-19 22:26:14 +00:00
|
|
|
func (mr *MockNodeClientMockRecorder) GetSyncStatus(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, "GetSyncStatus", reflect.TypeOf((*MockNodeClient)(nil).GetSyncStatus), varargs...)
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetVersion mocks base method.
|
2021-09-07 15:17:50 +00:00
|
|
|
func (m *MockNodeClient) GetVersion(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*eth.Version, error) {
|
2020-02-19 22:26:14 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetVersion", varargs...)
|
2021-09-07 15:17:50 +00:00
|
|
|
ret0, _ := ret[0].(*eth.Version)
|
2020-02-19 22:26:14 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// GetVersion indicates an expected call of GetVersion.
|
2020-02-19 22:26:14 +00:00
|
|
|
func (mr *MockNodeClientMockRecorder) GetVersion(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, "GetVersion", reflect.TypeOf((*MockNodeClient)(nil).GetVersion), varargs...)
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// ListImplementedServices mocks base method.
|
2021-09-07 15:17:50 +00:00
|
|
|
func (m *MockNodeClient) ListImplementedServices(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*eth.ImplementedServices, error) {
|
2020-02-19 22:26:14 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ListImplementedServices", varargs...)
|
2021-09-07 15:17:50 +00:00
|
|
|
ret0, _ := ret[0].(*eth.ImplementedServices)
|
2020-02-19 22:26:14 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// ListImplementedServices indicates an expected call of ListImplementedServices.
|
2020-02-19 22:26:14 +00:00
|
|
|
func (mr *MockNodeClientMockRecorder) ListImplementedServices(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, "ListImplementedServices", reflect.TypeOf((*MockNodeClient)(nil).ListImplementedServices), varargs...)
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// ListPeers mocks base method.
|
2021-09-07 15:17:50 +00:00
|
|
|
func (m *MockNodeClient) ListPeers(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*eth.Peers, error) {
|
2020-02-19 22:26:14 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ListPeers", varargs...)
|
2021-09-07 15:17:50 +00:00
|
|
|
ret0, _ := ret[0].(*eth.Peers)
|
2020-02-19 22:26:14 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-31 16:43:01 +00:00
|
|
|
// ListPeers indicates an expected call of ListPeers.
|
2020-02-19 22:26:14 +00:00
|
|
|
func (mr *MockNodeClientMockRecorder) ListPeers(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, "ListPeers", reflect.TypeOf((*MockNodeClient)(nil).ListPeers), varargs...)
|
|
|
|
}
|