status-go/rpc/mock/client/client.go

157 lines
5.6 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: rpc/client.go
//
// Generated by this command:
//
// mockgen -package=mock_rpcclient -destination=rpc/mock/client/client.go -source=rpc/client.go
//
// Package mock_rpcclient is a generated GoMock package.
package mock_rpcclient
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
chain "github.com/status-im/status-go/rpc/chain"
ethclient "github.com/status-im/status-go/rpc/chain/ethclient"
network "github.com/status-im/status-go/rpc/network"
common "github.com/status-im/status-go/services/wallet/common"
)
// MockClientInterface is a mock of ClientInterface interface.
type MockClientInterface struct {
ctrl *gomock.Controller
recorder *MockClientInterfaceMockRecorder
}
// MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.
type MockClientInterfaceMockRecorder struct {
mock *MockClientInterface
}
// NewMockClientInterface creates a new mock instance.
func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface {
mock := &MockClientInterface{ctrl: ctrl}
mock.recorder = &MockClientInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder {
return m.recorder
}
// AbstractEthClient mocks base method.
func (m *MockClientInterface) AbstractEthClient(chainID common.ChainID) (ethclient.BatchCallClient, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AbstractEthClient", chainID)
ret0, _ := ret[0].(ethclient.BatchCallClient)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AbstractEthClient indicates an expected call of AbstractEthClient.
func (mr *MockClientInterfaceMockRecorder) AbstractEthClient(chainID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbstractEthClient", reflect.TypeOf((*MockClientInterface)(nil).AbstractEthClient), chainID)
}
// Call mocks base method.
func (m *MockClientInterface) Call(result any, chainID uint64, method string, args ...any) error {
m.ctrl.T.Helper()
varargs := []any{result, chainID, method}
for _, a := range args {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Call", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// Call indicates an expected call of Call.
func (mr *MockClientInterfaceMockRecorder) Call(result, chainID, method any, args ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{result, chainID, method}, args...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockClientInterface)(nil).Call), varargs...)
}
// CallContext mocks base method.
func (m *MockClientInterface) CallContext(context context.Context, result any, chainID uint64, method string, args ...any) error {
m.ctrl.T.Helper()
varargs := []any{context, result, chainID, method}
for _, a := range args {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "CallContext", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// CallContext indicates an expected call of CallContext.
func (mr *MockClientInterfaceMockRecorder) CallContext(context, result, chainID, method any, args ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{context, result, chainID, method}, args...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallContext", reflect.TypeOf((*MockClientInterface)(nil).CallContext), varargs...)
}
// CallRaw mocks base method.
func (m *MockClientInterface) CallRaw(body string) string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CallRaw", body)
ret0, _ := ret[0].(string)
return ret0
}
// CallRaw indicates an expected call of CallRaw.
func (mr *MockClientInterfaceMockRecorder) CallRaw(body any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallRaw", reflect.TypeOf((*MockClientInterface)(nil).CallRaw), body)
}
// EthClient mocks base method.
func (m *MockClientInterface) EthClient(chainID uint64) (chain.ClientInterface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EthClient", chainID)
ret0, _ := ret[0].(chain.ClientInterface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EthClient indicates an expected call of EthClient.
func (mr *MockClientInterfaceMockRecorder) EthClient(chainID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EthClient", reflect.TypeOf((*MockClientInterface)(nil).EthClient), chainID)
}
// EthClients mocks base method.
func (m *MockClientInterface) EthClients(chainIDs []uint64) (map[uint64]chain.ClientInterface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EthClients", chainIDs)
ret0, _ := ret[0].(map[uint64]chain.ClientInterface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EthClients indicates an expected call of EthClients.
func (mr *MockClientInterfaceMockRecorder) EthClients(chainIDs any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EthClients", reflect.TypeOf((*MockClientInterface)(nil).EthClients), chainIDs)
}
// GetNetworkManager mocks base method.
func (m *MockClientInterface) GetNetworkManager() *network.Manager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNetworkManager")
ret0, _ := ret[0].(*network.Manager)
return ret0
}
// GetNetworkManager indicates an expected call of GetNetworkManager.
func (mr *MockClientInterfaceMockRecorder) GetNetworkManager() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNetworkManager", reflect.TypeOf((*MockClientInterface)(nil).GetNetworkManager))
}