/
mock_api.go
470 lines (405 loc) · 20.7 KB
/
mock_api.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/iost-official/go-iost/v3/rpc/pb (interfaces: ApiServiceServer)
// Package main is a generated GoMock package.
package main
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
rpcpb "github.com/iost-official/go-iost/v3/rpc/pb"
)
// MockApiServiceServer is a mock of ApiServiceServer interface.
type MockApiServiceServer struct {
ctrl *gomock.Controller
recorder *MockApiServiceServerMockRecorder
}
// MockApiServiceServerMockRecorder is the mock recorder for MockApiServiceServer.
type MockApiServiceServerMockRecorder struct {
mock *MockApiServiceServer
}
// NewMockApiServiceServer creates a new mock instance.
func NewMockApiServiceServer(ctrl *gomock.Controller) *MockApiServiceServer {
mock := &MockApiServiceServer{ctrl: ctrl}
mock.recorder = &MockApiServiceServerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockApiServiceServer) EXPECT() *MockApiServiceServerMockRecorder {
return m.recorder
}
// ExecTransaction mocks base method.
func (m *MockApiServiceServer) ExecTransaction(arg0 context.Context, arg1 *rpcpb.TransactionRequest) (*rpcpb.TxReceipt, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ExecTransaction", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.TxReceipt)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ExecTransaction indicates an expected call of ExecTransaction.
func (mr *MockApiServiceServerMockRecorder) ExecTransaction(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecTransaction", reflect.TypeOf((*MockApiServiceServer)(nil).ExecTransaction), arg0, arg1)
}
// GetAccount mocks base method.
func (m *MockApiServiceServer) GetAccount(arg0 context.Context, arg1 *rpcpb.GetAccountRequest) (*rpcpb.Account, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccount", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.Account)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAccount indicates an expected call of GetAccount.
func (mr *MockApiServiceServerMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockApiServiceServer)(nil).GetAccount), arg0, arg1)
}
// GetBatchContractStorage mocks base method.
func (m *MockApiServiceServer) GetBatchContractStorage(arg0 context.Context, arg1 *rpcpb.GetBatchContractStorageRequest) (*rpcpb.GetBatchContractStorageResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBatchContractStorage", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetBatchContractStorageResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBatchContractStorage indicates an expected call of GetBatchContractStorage.
func (mr *MockApiServiceServerMockRecorder) GetBatchContractStorage(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBatchContractStorage", reflect.TypeOf((*MockApiServiceServer)(nil).GetBatchContractStorage), arg0, arg1)
}
// GetBlockByHash mocks base method.
func (m *MockApiServiceServer) GetBlockByHash(arg0 context.Context, arg1 *rpcpb.GetBlockByHashRequest) (*rpcpb.BlockResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockByHash", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.BlockResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlockByHash indicates an expected call of GetBlockByHash.
func (mr *MockApiServiceServerMockRecorder) GetBlockByHash(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockByHash", reflect.TypeOf((*MockApiServiceServer)(nil).GetBlockByHash), arg0, arg1)
}
// GetBlockByNumber mocks base method.
func (m *MockApiServiceServer) GetBlockByNumber(arg0 context.Context, arg1 *rpcpb.GetBlockByNumberRequest) (*rpcpb.BlockResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockByNumber", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.BlockResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlockByNumber indicates an expected call of GetBlockByNumber.
func (mr *MockApiServiceServerMockRecorder) GetBlockByNumber(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockByNumber", reflect.TypeOf((*MockApiServiceServer)(nil).GetBlockByNumber), arg0, arg1)
}
// GetBlockHeaderByRange mocks base method.
func (m *MockApiServiceServer) GetBlockHeaderByRange(arg0 context.Context, arg1 *rpcpb.GetBlockHeaderByRangeRequest) (*rpcpb.BlockHeaderByRangeResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockHeaderByRange", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.BlockHeaderByRangeResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlockHeaderByRange indicates an expected call of GetBlockHeaderByRange.
func (mr *MockApiServiceServerMockRecorder) GetBlockHeaderByRange(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockHeaderByRange", reflect.TypeOf((*MockApiServiceServer)(nil).GetBlockHeaderByRange), arg0, arg1)
}
// GetBlockTxsByContract mocks base method.
func (m *MockApiServiceServer) GetBlockTxsByContract(arg0 context.Context, arg1 *rpcpb.GetBlockTxsByContractRequest) (*rpcpb.BlockTxsByContractResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockTxsByContract", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.BlockTxsByContractResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlockTxsByContract indicates an expected call of GetBlockTxsByContract.
func (mr *MockApiServiceServerMockRecorder) GetBlockTxsByContract(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockTxsByContract", reflect.TypeOf((*MockApiServiceServer)(nil).GetBlockTxsByContract), arg0, arg1)
}
// GetCandidateBonus mocks base method.
func (m *MockApiServiceServer) GetCandidateBonus(arg0 context.Context, arg1 *rpcpb.GetAccountRequest) (*rpcpb.CandidateBonus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCandidateBonus", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.CandidateBonus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCandidateBonus indicates an expected call of GetCandidateBonus.
func (mr *MockApiServiceServerMockRecorder) GetCandidateBonus(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCandidateBonus", reflect.TypeOf((*MockApiServiceServer)(nil).GetCandidateBonus), arg0, arg1)
}
// GetChainInfo mocks base method.
func (m *MockApiServiceServer) GetChainInfo(arg0 context.Context, arg1 *rpcpb.EmptyRequest) (*rpcpb.ChainInfoResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChainInfo", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.ChainInfoResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetChainInfo indicates an expected call of GetChainInfo.
func (mr *MockApiServiceServerMockRecorder) GetChainInfo(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChainInfo", reflect.TypeOf((*MockApiServiceServer)(nil).GetChainInfo), arg0, arg1)
}
// GetContract mocks base method.
func (m *MockApiServiceServer) GetContract(arg0 context.Context, arg1 *rpcpb.GetContractRequest) (*rpcpb.Contract, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetContract", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.Contract)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetContract indicates an expected call of GetContract.
func (mr *MockApiServiceServerMockRecorder) GetContract(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContract", reflect.TypeOf((*MockApiServiceServer)(nil).GetContract), arg0, arg1)
}
// GetContractStorage mocks base method.
func (m *MockApiServiceServer) GetContractStorage(arg0 context.Context, arg1 *rpcpb.GetContractStorageRequest) (*rpcpb.GetContractStorageResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetContractStorage", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetContractStorageResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetContractStorage indicates an expected call of GetContractStorage.
func (mr *MockApiServiceServerMockRecorder) GetContractStorage(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContractStorage", reflect.TypeOf((*MockApiServiceServer)(nil).GetContractStorage), arg0, arg1)
}
// GetContractStorageFields mocks base method.
func (m *MockApiServiceServer) GetContractStorageFields(arg0 context.Context, arg1 *rpcpb.GetContractStorageFieldsRequest) (*rpcpb.GetContractStorageFieldsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetContractStorageFields", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetContractStorageFieldsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetContractStorageFields indicates an expected call of GetContractStorageFields.
func (mr *MockApiServiceServerMockRecorder) GetContractStorageFields(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContractStorageFields", reflect.TypeOf((*MockApiServiceServer)(nil).GetContractStorageFields), arg0, arg1)
}
// GetContractVote mocks base method.
func (m *MockApiServiceServer) GetContractVote(arg0 context.Context, arg1 *rpcpb.GetContractRequest) (*rpcpb.ContractVote, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetContractVote", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.ContractVote)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetContractVote indicates an expected call of GetContractVote.
func (mr *MockApiServiceServerMockRecorder) GetContractVote(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContractVote", reflect.TypeOf((*MockApiServiceServer)(nil).GetContractVote), arg0, arg1)
}
// GetGasRatio mocks base method.
func (m *MockApiServiceServer) GetGasRatio(arg0 context.Context, arg1 *rpcpb.EmptyRequest) (*rpcpb.GasRatioResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetGasRatio", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GasRatioResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetGasRatio indicates an expected call of GetGasRatio.
func (mr *MockApiServiceServerMockRecorder) GetGasRatio(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGasRatio", reflect.TypeOf((*MockApiServiceServer)(nil).GetGasRatio), arg0, arg1)
}
// GetNodeInfo mocks base method.
func (m *MockApiServiceServer) GetNodeInfo(arg0 context.Context, arg1 *rpcpb.EmptyRequest) (*rpcpb.NodeInfoResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNodeInfo", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.NodeInfoResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetNodeInfo indicates an expected call of GetNodeInfo.
func (mr *MockApiServiceServerMockRecorder) GetNodeInfo(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNodeInfo", reflect.TypeOf((*MockApiServiceServer)(nil).GetNodeInfo), arg0, arg1)
}
// GetProducerVoteInfo mocks base method.
func (m *MockApiServiceServer) GetProducerVoteInfo(arg0 context.Context, arg1 *rpcpb.GetProducerVoteInfoRequest) (*rpcpb.GetProducerVoteInfoResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetProducerVoteInfo", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetProducerVoteInfoResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetProducerVoteInfo indicates an expected call of GetProducerVoteInfo.
func (mr *MockApiServiceServerMockRecorder) GetProducerVoteInfo(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProducerVoteInfo", reflect.TypeOf((*MockApiServiceServer)(nil).GetProducerVoteInfo), arg0, arg1)
}
// GetRAMInfo mocks base method.
func (m *MockApiServiceServer) GetRAMInfo(arg0 context.Context, arg1 *rpcpb.EmptyRequest) (*rpcpb.RAMInfoResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRAMInfo", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.RAMInfoResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRAMInfo indicates an expected call of GetRAMInfo.
func (mr *MockApiServiceServerMockRecorder) GetRAMInfo(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRAMInfo", reflect.TypeOf((*MockApiServiceServer)(nil).GetRAMInfo), arg0, arg1)
}
// GetRawBlockByNumber mocks base method.
func (m *MockApiServiceServer) GetRawBlockByNumber(arg0 context.Context, arg1 *rpcpb.GetBlockByNumberRequest) (*rpcpb.RawBlockResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRawBlockByNumber", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.RawBlockResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRawBlockByNumber indicates an expected call of GetRawBlockByNumber.
func (mr *MockApiServiceServerMockRecorder) GetRawBlockByNumber(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRawBlockByNumber", reflect.TypeOf((*MockApiServiceServer)(nil).GetRawBlockByNumber), arg0, arg1)
}
// GetToken721Balance mocks base method.
func (m *MockApiServiceServer) GetToken721Balance(arg0 context.Context, arg1 *rpcpb.GetTokenBalanceRequest) (*rpcpb.GetToken721BalanceResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetToken721Balance", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetToken721BalanceResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetToken721Balance indicates an expected call of GetToken721Balance.
func (mr *MockApiServiceServerMockRecorder) GetToken721Balance(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetToken721Balance", reflect.TypeOf((*MockApiServiceServer)(nil).GetToken721Balance), arg0, arg1)
}
// GetToken721Metadata mocks base method.
func (m *MockApiServiceServer) GetToken721Metadata(arg0 context.Context, arg1 *rpcpb.GetToken721InfoRequest) (*rpcpb.GetToken721MetadataResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetToken721Metadata", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetToken721MetadataResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetToken721Metadata indicates an expected call of GetToken721Metadata.
func (mr *MockApiServiceServerMockRecorder) GetToken721Metadata(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetToken721Metadata", reflect.TypeOf((*MockApiServiceServer)(nil).GetToken721Metadata), arg0, arg1)
}
// GetToken721Owner mocks base method.
func (m *MockApiServiceServer) GetToken721Owner(arg0 context.Context, arg1 *rpcpb.GetToken721InfoRequest) (*rpcpb.GetToken721OwnerResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetToken721Owner", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetToken721OwnerResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetToken721Owner indicates an expected call of GetToken721Owner.
func (mr *MockApiServiceServerMockRecorder) GetToken721Owner(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetToken721Owner", reflect.TypeOf((*MockApiServiceServer)(nil).GetToken721Owner), arg0, arg1)
}
// GetTokenBalance mocks base method.
func (m *MockApiServiceServer) GetTokenBalance(arg0 context.Context, arg1 *rpcpb.GetTokenBalanceRequest) (*rpcpb.GetTokenBalanceResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTokenBalance", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.GetTokenBalanceResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTokenBalance indicates an expected call of GetTokenBalance.
func (mr *MockApiServiceServerMockRecorder) GetTokenBalance(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTokenBalance", reflect.TypeOf((*MockApiServiceServer)(nil).GetTokenBalance), arg0, arg1)
}
// GetTokenInfo mocks base method.
func (m *MockApiServiceServer) GetTokenInfo(arg0 context.Context, arg1 *rpcpb.GetTokenInfoRequest) (*rpcpb.TokenInfo, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTokenInfo", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.TokenInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTokenInfo indicates an expected call of GetTokenInfo.
func (mr *MockApiServiceServerMockRecorder) GetTokenInfo(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTokenInfo", reflect.TypeOf((*MockApiServiceServer)(nil).GetTokenInfo), arg0, arg1)
}
// GetTxByHash mocks base method.
func (m *MockApiServiceServer) GetTxByHash(arg0 context.Context, arg1 *rpcpb.TxHashRequest) (*rpcpb.TransactionResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTxByHash", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.TransactionResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTxByHash indicates an expected call of GetTxByHash.
func (mr *MockApiServiceServerMockRecorder) GetTxByHash(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTxByHash", reflect.TypeOf((*MockApiServiceServer)(nil).GetTxByHash), arg0, arg1)
}
// GetTxReceiptByTxHash mocks base method.
func (m *MockApiServiceServer) GetTxReceiptByTxHash(arg0 context.Context, arg1 *rpcpb.TxHashRequest) (*rpcpb.TxReceipt, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTxReceiptByTxHash", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.TxReceipt)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTxReceiptByTxHash indicates an expected call of GetTxReceiptByTxHash.
func (mr *MockApiServiceServerMockRecorder) GetTxReceiptByTxHash(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTxReceiptByTxHash", reflect.TypeOf((*MockApiServiceServer)(nil).GetTxReceiptByTxHash), arg0, arg1)
}
// GetVoterBonus mocks base method.
func (m *MockApiServiceServer) GetVoterBonus(arg0 context.Context, arg1 *rpcpb.GetAccountRequest) (*rpcpb.VoterBonus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetVoterBonus", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.VoterBonus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetVoterBonus indicates an expected call of GetVoterBonus.
func (mr *MockApiServiceServerMockRecorder) GetVoterBonus(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVoterBonus", reflect.TypeOf((*MockApiServiceServer)(nil).GetVoterBonus), arg0, arg1)
}
// ListContractStorage mocks base method.
func (m *MockApiServiceServer) ListContractStorage(arg0 context.Context, arg1 *rpcpb.ListContractStorageRequest) (*rpcpb.ListContractStorageResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListContractStorage", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.ListContractStorageResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListContractStorage indicates an expected call of ListContractStorage.
func (mr *MockApiServiceServerMockRecorder) ListContractStorage(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContractStorage", reflect.TypeOf((*MockApiServiceServer)(nil).ListContractStorage), arg0, arg1)
}
// SendTransaction mocks base method.
func (m *MockApiServiceServer) SendTransaction(arg0 context.Context, arg1 *rpcpb.TransactionRequest) (*rpcpb.SendTransactionResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SendTransaction", arg0, arg1)
ret0, _ := ret[0].(*rpcpb.SendTransactionResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SendTransaction indicates an expected call of SendTransaction.
func (mr *MockApiServiceServerMockRecorder) SendTransaction(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTransaction", reflect.TypeOf((*MockApiServiceServer)(nil).SendTransaction), arg0, arg1)
}
// Subscribe mocks base method.
func (m *MockApiServiceServer) Subscribe(arg0 *rpcpb.SubscribeRequest, arg1 rpcpb.ApiService_SubscribeServer) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Subscribe", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Subscribe indicates an expected call of Subscribe.
func (mr *MockApiServiceServerMockRecorder) Subscribe(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockApiServiceServer)(nil).Subscribe), arg0, arg1)
}