-
Notifications
You must be signed in to change notification settings - Fork 19
/
mocks.go
128 lines (109 loc) · 4.93 KB
/
mocks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/wallet/service/v2 (interfaces: ClientAPI)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
jsonrpc "code.vegaprotocol.io/vega/libs/jsonrpc"
api "code.vegaprotocol.io/vega/wallet/api"
wallet "code.vegaprotocol.io/vega/wallet/wallet"
gomock "github.com/golang/mock/gomock"
)
// MockClientAPI is a mock of ClientAPI interface.
type MockClientAPI struct {
ctrl *gomock.Controller
recorder *MockClientAPIMockRecorder
}
// MockClientAPIMockRecorder is the mock recorder for MockClientAPI.
type MockClientAPIMockRecorder struct {
mock *MockClientAPI
}
// NewMockClientAPI creates a new mock instance.
func NewMockClientAPI(ctrl *gomock.Controller) *MockClientAPI {
mock := &MockClientAPI{ctrl: ctrl}
mock.recorder = &MockClientAPIMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClientAPI) EXPECT() *MockClientAPIMockRecorder {
return m.recorder
}
// CheckTransaction mocks base method.
func (m *MockClientAPI) CheckTransaction(arg0 context.Context, arg1 jsonrpc.Params, arg2 api.ConnectedWallet) (jsonrpc.Result, *jsonrpc.ErrorDetails) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CheckTransaction", arg0, arg1, arg2)
ret0, _ := ret[0].(jsonrpc.Result)
ret1, _ := ret[1].(*jsonrpc.ErrorDetails)
return ret0, ret1
}
// CheckTransaction indicates an expected call of CheckTransaction.
func (mr *MockClientAPIMockRecorder) CheckTransaction(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckTransaction", reflect.TypeOf((*MockClientAPI)(nil).CheckTransaction), arg0, arg1, arg2)
}
// ConnectWallet mocks base method.
func (m *MockClientAPI) ConnectWallet(arg0 context.Context, arg1 string) (wallet.Wallet, *jsonrpc.ErrorDetails) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ConnectWallet", arg0, arg1)
ret0, _ := ret[0].(wallet.Wallet)
ret1, _ := ret[1].(*jsonrpc.ErrorDetails)
return ret0, ret1
}
// ConnectWallet indicates an expected call of ConnectWallet.
func (mr *MockClientAPIMockRecorder) ConnectWallet(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectWallet", reflect.TypeOf((*MockClientAPI)(nil).ConnectWallet), arg0, arg1)
}
// GetChainID mocks base method.
func (m *MockClientAPI) GetChainID(arg0 context.Context) (jsonrpc.Result, *jsonrpc.ErrorDetails) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChainID", arg0)
ret0, _ := ret[0].(jsonrpc.Result)
ret1, _ := ret[1].(*jsonrpc.ErrorDetails)
return ret0, ret1
}
// GetChainID indicates an expected call of GetChainID.
func (mr *MockClientAPIMockRecorder) GetChainID(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChainID", reflect.TypeOf((*MockClientAPI)(nil).GetChainID), arg0)
}
// ListKeys mocks base method.
func (m *MockClientAPI) ListKeys(arg0 context.Context, arg1 api.ConnectedWallet) (jsonrpc.Result, *jsonrpc.ErrorDetails) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListKeys", arg0, arg1)
ret0, _ := ret[0].(jsonrpc.Result)
ret1, _ := ret[1].(*jsonrpc.ErrorDetails)
return ret0, ret1
}
// ListKeys indicates an expected call of ListKeys.
func (mr *MockClientAPIMockRecorder) ListKeys(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeys", reflect.TypeOf((*MockClientAPI)(nil).ListKeys), arg0, arg1)
}
// SendTransaction mocks base method.
func (m *MockClientAPI) SendTransaction(arg0 context.Context, arg1 jsonrpc.Params, arg2 api.ConnectedWallet) (jsonrpc.Result, *jsonrpc.ErrorDetails) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SendTransaction", arg0, arg1, arg2)
ret0, _ := ret[0].(jsonrpc.Result)
ret1, _ := ret[1].(*jsonrpc.ErrorDetails)
return ret0, ret1
}
// SendTransaction indicates an expected call of SendTransaction.
func (mr *MockClientAPIMockRecorder) SendTransaction(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTransaction", reflect.TypeOf((*MockClientAPI)(nil).SendTransaction), arg0, arg1, arg2)
}
// SignTransaction mocks base method.
func (m *MockClientAPI) SignTransaction(arg0 context.Context, arg1 jsonrpc.Params, arg2 api.ConnectedWallet) (jsonrpc.Result, *jsonrpc.ErrorDetails) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SignTransaction", arg0, arg1, arg2)
ret0, _ := ret[0].(jsonrpc.Result)
ret1, _ := ret[1].(*jsonrpc.ErrorDetails)
return ret0, ret1
}
// SignTransaction indicates an expected call of SignTransaction.
func (mr *MockClientAPIMockRecorder) SignTransaction(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignTransaction", reflect.TypeOf((*MockClientAPI)(nil).SignTransaction), arg0, arg1, arg2)
}