-
Notifications
You must be signed in to change notification settings - Fork 664
/
mock_cache_internal_state.go
534 lines (453 loc) · 19.8 KB
/
mock_cache_internal_state.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
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
// Code generated by MockGen. DO NOT EDIT.
// Source: vms/platformvm/cache_internal_state.go
// Package platformvm is a generated GoMock package.
package platformvm
import (
reflect "reflect"
time "time"
database "github.com/ava-labs/avalanchego/database"
ids "github.com/ava-labs/avalanchego/ids"
avax "github.com/ava-labs/avalanchego/vms/components/avax"
status "github.com/ava-labs/avalanchego/vms/platformvm/status"
gomock "github.com/golang/mock/gomock"
)
// MockInternalState is a mock of InternalState interface.
type MockInternalState struct {
ctrl *gomock.Controller
recorder *MockInternalStateMockRecorder
}
// MockInternalStateMockRecorder is the mock recorder for MockInternalState.
type MockInternalStateMockRecorder struct {
mock *MockInternalState
}
// NewMockInternalState creates a new mock instance.
func NewMockInternalState(ctrl *gomock.Controller) *MockInternalState {
mock := &MockInternalState{ctrl: ctrl}
mock.recorder = &MockInternalStateMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInternalState) EXPECT() *MockInternalStateMockRecorder {
return m.recorder
}
// Abort mocks base method.
func (m *MockInternalState) Abort() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Abort")
}
// Abort indicates an expected call of Abort.
func (mr *MockInternalStateMockRecorder) Abort() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Abort", reflect.TypeOf((*MockInternalState)(nil).Abort))
}
// AddBlock mocks base method.
func (m *MockInternalState) AddBlock(block Block) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddBlock", block)
}
// AddBlock indicates an expected call of AddBlock.
func (mr *MockInternalStateMockRecorder) AddBlock(block interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBlock", reflect.TypeOf((*MockInternalState)(nil).AddBlock), block)
}
// AddChain mocks base method.
func (m *MockInternalState) AddChain(createChainTx *Tx) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddChain", createChainTx)
}
// AddChain indicates an expected call of AddChain.
func (mr *MockInternalStateMockRecorder) AddChain(createChainTx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChain", reflect.TypeOf((*MockInternalState)(nil).AddChain), createChainTx)
}
// AddCurrentStaker mocks base method.
func (m *MockInternalState) AddCurrentStaker(tx *Tx, potentialReward uint64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddCurrentStaker", tx, potentialReward)
}
// AddCurrentStaker indicates an expected call of AddCurrentStaker.
func (mr *MockInternalStateMockRecorder) AddCurrentStaker(tx, potentialReward interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCurrentStaker", reflect.TypeOf((*MockInternalState)(nil).AddCurrentStaker), tx, potentialReward)
}
// AddPendingStaker mocks base method.
func (m *MockInternalState) AddPendingStaker(tx *Tx) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddPendingStaker", tx)
}
// AddPendingStaker indicates an expected call of AddPendingStaker.
func (mr *MockInternalStateMockRecorder) AddPendingStaker(tx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPendingStaker", reflect.TypeOf((*MockInternalState)(nil).AddPendingStaker), tx)
}
// AddRewardUTXO mocks base method.
func (m *MockInternalState) AddRewardUTXO(txID ids.ID, utxo *avax.UTXO) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddRewardUTXO", txID, utxo)
}
// AddRewardUTXO indicates an expected call of AddRewardUTXO.
func (mr *MockInternalStateMockRecorder) AddRewardUTXO(txID, utxo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRewardUTXO", reflect.TypeOf((*MockInternalState)(nil).AddRewardUTXO), txID, utxo)
}
// AddSubnet mocks base method.
func (m *MockInternalState) AddSubnet(createSubnetTx *Tx) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddSubnet", createSubnetTx)
}
// AddSubnet indicates an expected call of AddSubnet.
func (mr *MockInternalStateMockRecorder) AddSubnet(createSubnetTx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSubnet", reflect.TypeOf((*MockInternalState)(nil).AddSubnet), createSubnetTx)
}
// AddTx mocks base method.
func (m *MockInternalState) AddTx(tx *Tx, status status.Status) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddTx", tx, status)
}
// AddTx indicates an expected call of AddTx.
func (mr *MockInternalStateMockRecorder) AddTx(tx, status interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTx", reflect.TypeOf((*MockInternalState)(nil).AddTx), tx, status)
}
// AddUTXO mocks base method.
func (m *MockInternalState) AddUTXO(utxo *avax.UTXO) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddUTXO", utxo)
}
// AddUTXO indicates an expected call of AddUTXO.
func (mr *MockInternalStateMockRecorder) AddUTXO(utxo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUTXO", reflect.TypeOf((*MockInternalState)(nil).AddUTXO), utxo)
}
// Close mocks base method.
func (m *MockInternalState) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockInternalStateMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockInternalState)(nil).Close))
}
// Commit mocks base method.
func (m *MockInternalState) Commit() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Commit")
ret0, _ := ret[0].(error)
return ret0
}
// Commit indicates an expected call of Commit.
func (mr *MockInternalStateMockRecorder) Commit() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockInternalState)(nil).Commit))
}
// CommitBatch mocks base method.
func (m *MockInternalState) CommitBatch() (database.Batch, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CommitBatch")
ret0, _ := ret[0].(database.Batch)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CommitBatch indicates an expected call of CommitBatch.
func (mr *MockInternalStateMockRecorder) CommitBatch() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitBatch", reflect.TypeOf((*MockInternalState)(nil).CommitBatch))
}
// CurrentStakerChainState mocks base method.
func (m *MockInternalState) CurrentStakerChainState() currentStakerChainState {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CurrentStakerChainState")
ret0, _ := ret[0].(currentStakerChainState)
return ret0
}
// CurrentStakerChainState indicates an expected call of CurrentStakerChainState.
func (mr *MockInternalStateMockRecorder) CurrentStakerChainState() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentStakerChainState", reflect.TypeOf((*MockInternalState)(nil).CurrentStakerChainState))
}
// DeleteCurrentStaker mocks base method.
func (m *MockInternalState) DeleteCurrentStaker(tx *Tx) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "DeleteCurrentStaker", tx)
}
// DeleteCurrentStaker indicates an expected call of DeleteCurrentStaker.
func (mr *MockInternalStateMockRecorder) DeleteCurrentStaker(tx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCurrentStaker", reflect.TypeOf((*MockInternalState)(nil).DeleteCurrentStaker), tx)
}
// DeletePendingStaker mocks base method.
func (m *MockInternalState) DeletePendingStaker(tx *Tx) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "DeletePendingStaker", tx)
}
// DeletePendingStaker indicates an expected call of DeletePendingStaker.
func (mr *MockInternalStateMockRecorder) DeletePendingStaker(tx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePendingStaker", reflect.TypeOf((*MockInternalState)(nil).DeletePendingStaker), tx)
}
// DeleteUTXO mocks base method.
func (m *MockInternalState) DeleteUTXO(utxoID ids.ID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "DeleteUTXO", utxoID)
}
// DeleteUTXO indicates an expected call of DeleteUTXO.
func (mr *MockInternalStateMockRecorder) DeleteUTXO(utxoID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUTXO", reflect.TypeOf((*MockInternalState)(nil).DeleteUTXO), utxoID)
}
// GetBlock mocks base method.
func (m *MockInternalState) GetBlock(blockID ids.ID) (Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlock", blockID)
ret0, _ := ret[0].(Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlock indicates an expected call of GetBlock.
func (mr *MockInternalStateMockRecorder) GetBlock(blockID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockInternalState)(nil).GetBlock), blockID)
}
// GetChains mocks base method.
func (m *MockInternalState) GetChains(subnetID ids.ID) ([]*Tx, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChains", subnetID)
ret0, _ := ret[0].([]*Tx)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetChains indicates an expected call of GetChains.
func (mr *MockInternalStateMockRecorder) GetChains(subnetID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChains", reflect.TypeOf((*MockInternalState)(nil).GetChains), subnetID)
}
// GetCurrentSupply mocks base method.
func (m *MockInternalState) GetCurrentSupply() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCurrentSupply")
ret0, _ := ret[0].(uint64)
return ret0
}
// GetCurrentSupply indicates an expected call of GetCurrentSupply.
func (mr *MockInternalStateMockRecorder) GetCurrentSupply() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentSupply", reflect.TypeOf((*MockInternalState)(nil).GetCurrentSupply))
}
// GetLastAccepted mocks base method.
func (m *MockInternalState) GetLastAccepted() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLastAccepted")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// GetLastAccepted indicates an expected call of GetLastAccepted.
func (mr *MockInternalStateMockRecorder) GetLastAccepted() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastAccepted", reflect.TypeOf((*MockInternalState)(nil).GetLastAccepted))
}
// GetRewardUTXOs mocks base method.
func (m *MockInternalState) GetRewardUTXOs(txID ids.ID) ([]*avax.UTXO, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRewardUTXOs", txID)
ret0, _ := ret[0].([]*avax.UTXO)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRewardUTXOs indicates an expected call of GetRewardUTXOs.
func (mr *MockInternalStateMockRecorder) GetRewardUTXOs(txID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRewardUTXOs", reflect.TypeOf((*MockInternalState)(nil).GetRewardUTXOs), txID)
}
// GetStartTime mocks base method.
func (m *MockInternalState) GetStartTime(nodeID ids.NodeID) (time.Time, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStartTime", nodeID)
ret0, _ := ret[0].(time.Time)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetStartTime indicates an expected call of GetStartTime.
func (mr *MockInternalStateMockRecorder) GetStartTime(nodeID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStartTime", reflect.TypeOf((*MockInternalState)(nil).GetStartTime), nodeID)
}
// GetSubnets mocks base method.
func (m *MockInternalState) GetSubnets() ([]*Tx, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSubnets")
ret0, _ := ret[0].([]*Tx)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetSubnets indicates an expected call of GetSubnets.
func (mr *MockInternalStateMockRecorder) GetSubnets() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubnets", reflect.TypeOf((*MockInternalState)(nil).GetSubnets))
}
// GetTimestamp mocks base method.
func (m *MockInternalState) GetTimestamp() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTimestamp")
ret0, _ := ret[0].(time.Time)
return ret0
}
// GetTimestamp indicates an expected call of GetTimestamp.
func (mr *MockInternalStateMockRecorder) GetTimestamp() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimestamp", reflect.TypeOf((*MockInternalState)(nil).GetTimestamp))
}
// GetTx mocks base method.
func (m *MockInternalState) GetTx(txID ids.ID) (*Tx, status.Status, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTx", txID)
ret0, _ := ret[0].(*Tx)
ret1, _ := ret[1].(status.Status)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetTx indicates an expected call of GetTx.
func (mr *MockInternalStateMockRecorder) GetTx(txID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTx", reflect.TypeOf((*MockInternalState)(nil).GetTx), txID)
}
// GetUTXO mocks base method.
func (m *MockInternalState) GetUTXO(utxoID ids.ID) (*avax.UTXO, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUTXO", utxoID)
ret0, _ := ret[0].(*avax.UTXO)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetUTXO indicates an expected call of GetUTXO.
func (mr *MockInternalStateMockRecorder) GetUTXO(utxoID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUTXO", reflect.TypeOf((*MockInternalState)(nil).GetUTXO), utxoID)
}
// GetUptime mocks base method.
func (m *MockInternalState) GetUptime(nodeID ids.NodeID) (time.Duration, time.Time, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUptime", nodeID)
ret0, _ := ret[0].(time.Duration)
ret1, _ := ret[1].(time.Time)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetUptime indicates an expected call of GetUptime.
func (mr *MockInternalStateMockRecorder) GetUptime(nodeID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUptime", reflect.TypeOf((*MockInternalState)(nil).GetUptime), nodeID)
}
// GetValidatorWeightDiffs mocks base method.
func (m *MockInternalState) GetValidatorWeightDiffs(height uint64, subnetID ids.ID) (map[ids.NodeID]*ValidatorWeightDiff, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetValidatorWeightDiffs", height, subnetID)
ret0, _ := ret[0].(map[ids.NodeID]*ValidatorWeightDiff)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetValidatorWeightDiffs indicates an expected call of GetValidatorWeightDiffs.
func (mr *MockInternalStateMockRecorder) GetValidatorWeightDiffs(height, subnetID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValidatorWeightDiffs", reflect.TypeOf((*MockInternalState)(nil).GetValidatorWeightDiffs), height, subnetID)
}
// PendingStakerChainState mocks base method.
func (m *MockInternalState) PendingStakerChainState() pendingStakerChainState {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PendingStakerChainState")
ret0, _ := ret[0].(pendingStakerChainState)
return ret0
}
// PendingStakerChainState indicates an expected call of PendingStakerChainState.
func (mr *MockInternalStateMockRecorder) PendingStakerChainState() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingStakerChainState", reflect.TypeOf((*MockInternalState)(nil).PendingStakerChainState))
}
// SetCurrentStakerChainState mocks base method.
func (m *MockInternalState) SetCurrentStakerChainState(arg0 currentStakerChainState) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetCurrentStakerChainState", arg0)
}
// SetCurrentStakerChainState indicates an expected call of SetCurrentStakerChainState.
func (mr *MockInternalStateMockRecorder) SetCurrentStakerChainState(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentStakerChainState", reflect.TypeOf((*MockInternalState)(nil).SetCurrentStakerChainState), arg0)
}
// SetCurrentSupply mocks base method.
func (m *MockInternalState) SetCurrentSupply(arg0 uint64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetCurrentSupply", arg0)
}
// SetCurrentSupply indicates an expected call of SetCurrentSupply.
func (mr *MockInternalStateMockRecorder) SetCurrentSupply(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentSupply", reflect.TypeOf((*MockInternalState)(nil).SetCurrentSupply), arg0)
}
// SetHeight mocks base method.
func (m *MockInternalState) SetHeight(height uint64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetHeight", height)
}
// SetHeight indicates an expected call of SetHeight.
func (mr *MockInternalStateMockRecorder) SetHeight(height interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeight", reflect.TypeOf((*MockInternalState)(nil).SetHeight), height)
}
// SetLastAccepted mocks base method.
func (m *MockInternalState) SetLastAccepted(arg0 ids.ID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetLastAccepted", arg0)
}
// SetLastAccepted indicates an expected call of SetLastAccepted.
func (mr *MockInternalStateMockRecorder) SetLastAccepted(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLastAccepted", reflect.TypeOf((*MockInternalState)(nil).SetLastAccepted), arg0)
}
// SetPendingStakerChainState mocks base method.
func (m *MockInternalState) SetPendingStakerChainState(arg0 pendingStakerChainState) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetPendingStakerChainState", arg0)
}
// SetPendingStakerChainState indicates an expected call of SetPendingStakerChainState.
func (mr *MockInternalStateMockRecorder) SetPendingStakerChainState(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPendingStakerChainState", reflect.TypeOf((*MockInternalState)(nil).SetPendingStakerChainState), arg0)
}
// SetTimestamp mocks base method.
func (m *MockInternalState) SetTimestamp(arg0 time.Time) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetTimestamp", arg0)
}
// SetTimestamp indicates an expected call of SetTimestamp.
func (mr *MockInternalStateMockRecorder) SetTimestamp(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTimestamp", reflect.TypeOf((*MockInternalState)(nil).SetTimestamp), arg0)
}
// SetUptime mocks base method.
func (m *MockInternalState) SetUptime(nodeID ids.NodeID, upDuration time.Duration, lastUpdated time.Time) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetUptime", nodeID, upDuration, lastUpdated)
ret0, _ := ret[0].(error)
return ret0
}
// SetUptime indicates an expected call of SetUptime.
func (mr *MockInternalStateMockRecorder) SetUptime(nodeID, upDuration, lastUpdated interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUptime", reflect.TypeOf((*MockInternalState)(nil).SetUptime), nodeID, upDuration, lastUpdated)
}
// UTXOIDs mocks base method.
func (m *MockInternalState) UTXOIDs(addr []byte, previous ids.ID, limit int) ([]ids.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UTXOIDs", addr, previous, limit)
ret0, _ := ret[0].([]ids.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UTXOIDs indicates an expected call of UTXOIDs.
func (mr *MockInternalStateMockRecorder) UTXOIDs(addr, previous, limit interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UTXOIDs", reflect.TypeOf((*MockInternalState)(nil).UTXOIDs), addr, previous, limit)
}