-
Notifications
You must be signed in to change notification settings - Fork 20
/
mocks.go
188 lines (157 loc) · 6.84 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/validators/erc20multisig (interfaces: Witness,MultiSigOnChainVerifier,EthConfirmations,EthereumEventSource)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
time "time"
types "code.vegaprotocol.io/vega/core/types"
validators "code.vegaprotocol.io/vega/core/validators"
gomock "github.com/golang/mock/gomock"
)
// MockWitness is a mock of Witness interface.
type MockWitness struct {
ctrl *gomock.Controller
recorder *MockWitnessMockRecorder
}
// MockWitnessMockRecorder is the mock recorder for MockWitness.
type MockWitnessMockRecorder struct {
mock *MockWitness
}
// NewMockWitness creates a new mock instance.
func NewMockWitness(ctrl *gomock.Controller) *MockWitness {
mock := &MockWitness{ctrl: ctrl}
mock.recorder = &MockWitnessMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWitness) EXPECT() *MockWitnessMockRecorder {
return m.recorder
}
// RestoreResource mocks base method.
func (m *MockWitness) RestoreResource(arg0 validators.Resource, arg1 func(interface{}, bool)) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RestoreResource", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// RestoreResource indicates an expected call of RestoreResource.
func (mr *MockWitnessMockRecorder) RestoreResource(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreResource", reflect.TypeOf((*MockWitness)(nil).RestoreResource), arg0, arg1)
}
// StartCheck mocks base method.
func (m *MockWitness) StartCheck(arg0 validators.Resource, arg1 func(interface{}, bool), arg2 time.Time) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartCheck", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// StartCheck indicates an expected call of StartCheck.
func (mr *MockWitnessMockRecorder) StartCheck(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCheck", reflect.TypeOf((*MockWitness)(nil).StartCheck), arg0, arg1, arg2)
}
// MockMultiSigOnChainVerifier is a mock of MultiSigOnChainVerifier interface.
type MockMultiSigOnChainVerifier struct {
ctrl *gomock.Controller
recorder *MockMultiSigOnChainVerifierMockRecorder
}
// MockMultiSigOnChainVerifierMockRecorder is the mock recorder for MockMultiSigOnChainVerifier.
type MockMultiSigOnChainVerifierMockRecorder struct {
mock *MockMultiSigOnChainVerifier
}
// NewMockMultiSigOnChainVerifier creates a new mock instance.
func NewMockMultiSigOnChainVerifier(ctrl *gomock.Controller) *MockMultiSigOnChainVerifier {
mock := &MockMultiSigOnChainVerifier{ctrl: ctrl}
mock.recorder = &MockMultiSigOnChainVerifierMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMultiSigOnChainVerifier) EXPECT() *MockMultiSigOnChainVerifierMockRecorder {
return m.recorder
}
// CheckSignerEvent mocks base method.
func (m *MockMultiSigOnChainVerifier) CheckSignerEvent(arg0 *types.SignerEvent) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CheckSignerEvent", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// CheckSignerEvent indicates an expected call of CheckSignerEvent.
func (mr *MockMultiSigOnChainVerifierMockRecorder) CheckSignerEvent(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSignerEvent", reflect.TypeOf((*MockMultiSigOnChainVerifier)(nil).CheckSignerEvent), arg0)
}
// CheckThresholdSetEvent mocks base method.
func (m *MockMultiSigOnChainVerifier) CheckThresholdSetEvent(arg0 *types.SignerThresholdSetEvent) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CheckThresholdSetEvent", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// CheckThresholdSetEvent indicates an expected call of CheckThresholdSetEvent.
func (mr *MockMultiSigOnChainVerifierMockRecorder) CheckThresholdSetEvent(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckThresholdSetEvent", reflect.TypeOf((*MockMultiSigOnChainVerifier)(nil).CheckThresholdSetEvent), arg0)
}
// MockEthConfirmations is a mock of EthConfirmations interface.
type MockEthConfirmations struct {
ctrl *gomock.Controller
recorder *MockEthConfirmationsMockRecorder
}
// MockEthConfirmationsMockRecorder is the mock recorder for MockEthConfirmations.
type MockEthConfirmationsMockRecorder struct {
mock *MockEthConfirmations
}
// NewMockEthConfirmations creates a new mock instance.
func NewMockEthConfirmations(ctrl *gomock.Controller) *MockEthConfirmations {
mock := &MockEthConfirmations{ctrl: ctrl}
mock.recorder = &MockEthConfirmationsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEthConfirmations) EXPECT() *MockEthConfirmationsMockRecorder {
return m.recorder
}
// Check mocks base method.
func (m *MockEthConfirmations) Check(arg0 uint64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Check", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Check indicates an expected call of Check.
func (mr *MockEthConfirmationsMockRecorder) Check(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Check", reflect.TypeOf((*MockEthConfirmations)(nil).Check), arg0)
}
// MockEthereumEventSource is a mock of EthereumEventSource interface.
type MockEthereumEventSource struct {
ctrl *gomock.Controller
recorder *MockEthereumEventSourceMockRecorder
}
// MockEthereumEventSourceMockRecorder is the mock recorder for MockEthereumEventSource.
type MockEthereumEventSourceMockRecorder struct {
mock *MockEthereumEventSource
}
// NewMockEthereumEventSource creates a new mock instance.
func NewMockEthereumEventSource(ctrl *gomock.Controller) *MockEthereumEventSource {
mock := &MockEthereumEventSource{ctrl: ctrl}
mock.recorder = &MockEthereumEventSourceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEthereumEventSource) EXPECT() *MockEthereumEventSourceMockRecorder {
return m.recorder
}
// UpdateMultisigControlStartingBlock mocks base method.
func (m *MockEthereumEventSource) UpdateMultisigControlStartingBlock(arg0 uint64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "UpdateMultisigControlStartingBlock", arg0)
}
// UpdateMultisigControlStartingBlock indicates an expected call of UpdateMultisigControlStartingBlock.
func (mr *MockEthereumEventSourceMockRecorder) UpdateMultisigControlStartingBlock(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMultisigControlStartingBlock", reflect.TypeOf((*MockEthereumEventSource)(nil).UpdateMultisigControlStartingBlock), arg0)
}