-
Notifications
You must be signed in to change notification settings - Fork 19
/
mocks.go
764 lines (645 loc) · 27.7 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
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
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/validators (interfaces: NodeWallets,TimeService,Commander,ValidatorTopology,Wallet,ValidatorPerformance,Notary,Signatures,MultiSigTopology)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
time "time"
txn "code.vegaprotocol.io/vega/core/txn"
validators "code.vegaprotocol.io/vega/core/validators"
crypto "code.vegaprotocol.io/vega/libs/crypto"
v1 "code.vegaprotocol.io/vega/protos/vega/commands/v1"
v10 "code.vegaprotocol.io/vega/protos/vega/snapshot/v1"
backoff "github.com/cenkalti/backoff"
gomock "github.com/golang/mock/gomock"
decimal "github.com/shopspring/decimal"
protoiface "google.golang.org/protobuf/runtime/protoiface"
)
// MockNodeWallets is a mock of NodeWallets interface.
type MockNodeWallets struct {
ctrl *gomock.Controller
recorder *MockNodeWalletsMockRecorder
}
// MockNodeWalletsMockRecorder is the mock recorder for MockNodeWallets.
type MockNodeWalletsMockRecorder struct {
mock *MockNodeWallets
}
// NewMockNodeWallets creates a new mock instance.
func NewMockNodeWallets(ctrl *gomock.Controller) *MockNodeWallets {
mock := &MockNodeWallets{ctrl: ctrl}
mock.recorder = &MockNodeWalletsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockNodeWallets) EXPECT() *MockNodeWalletsMockRecorder {
return m.recorder
}
// GetEthereum mocks base method.
func (m *MockNodeWallets) GetEthereum() validators.Signer {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEthereum")
ret0, _ := ret[0].(validators.Signer)
return ret0
}
// GetEthereum indicates an expected call of GetEthereum.
func (mr *MockNodeWalletsMockRecorder) GetEthereum() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEthereum", reflect.TypeOf((*MockNodeWallets)(nil).GetEthereum))
}
// GetEthereumAddress mocks base method.
func (m *MockNodeWallets) GetEthereumAddress() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEthereumAddress")
ret0, _ := ret[0].(string)
return ret0
}
// GetEthereumAddress indicates an expected call of GetEthereumAddress.
func (mr *MockNodeWalletsMockRecorder) GetEthereumAddress() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEthereumAddress", reflect.TypeOf((*MockNodeWallets)(nil).GetEthereumAddress))
}
// GetTendermintPubkey mocks base method.
func (m *MockNodeWallets) GetTendermintPubkey() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTendermintPubkey")
ret0, _ := ret[0].(string)
return ret0
}
// GetTendermintPubkey indicates an expected call of GetTendermintPubkey.
func (mr *MockNodeWalletsMockRecorder) GetTendermintPubkey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTendermintPubkey", reflect.TypeOf((*MockNodeWallets)(nil).GetTendermintPubkey))
}
// GetVega mocks base method.
func (m *MockNodeWallets) GetVega() validators.Wallet {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetVega")
ret0, _ := ret[0].(validators.Wallet)
return ret0
}
// GetVega indicates an expected call of GetVega.
func (mr *MockNodeWalletsMockRecorder) GetVega() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVega", reflect.TypeOf((*MockNodeWallets)(nil).GetVega))
}
// MockTimeService is a mock of TimeService interface.
type MockTimeService struct {
ctrl *gomock.Controller
recorder *MockTimeServiceMockRecorder
}
// MockTimeServiceMockRecorder is the mock recorder for MockTimeService.
type MockTimeServiceMockRecorder struct {
mock *MockTimeService
}
// NewMockTimeService creates a new mock instance.
func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService {
mock := &MockTimeService{ctrl: ctrl}
mock.recorder = &MockTimeServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder {
return m.recorder
}
// GetTimeNow mocks base method.
func (m *MockTimeService) GetTimeNow() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTimeNow")
ret0, _ := ret[0].(time.Time)
return ret0
}
// GetTimeNow indicates an expected call of GetTimeNow.
func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeNow", reflect.TypeOf((*MockTimeService)(nil).GetTimeNow))
}
// MockCommander is a mock of Commander interface.
type MockCommander struct {
ctrl *gomock.Controller
recorder *MockCommanderMockRecorder
}
// MockCommanderMockRecorder is the mock recorder for MockCommander.
type MockCommanderMockRecorder struct {
mock *MockCommander
}
// NewMockCommander creates a new mock instance.
func NewMockCommander(ctrl *gomock.Controller) *MockCommander {
mock := &MockCommander{ctrl: ctrl}
mock.recorder = &MockCommanderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCommander) EXPECT() *MockCommanderMockRecorder {
return m.recorder
}
// Command mocks base method.
func (m *MockCommander) Command(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Command", arg0, arg1, arg2, arg3, arg4)
}
// Command indicates an expected call of Command.
func (mr *MockCommanderMockRecorder) Command(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Command", reflect.TypeOf((*MockCommander)(nil).Command), arg0, arg1, arg2, arg3, arg4)
}
// CommandSync mocks base method.
func (m *MockCommander) CommandSync(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "CommandSync", arg0, arg1, arg2, arg3, arg4)
}
// CommandSync indicates an expected call of CommandSync.
func (mr *MockCommanderMockRecorder) CommandSync(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommandSync", reflect.TypeOf((*MockCommander)(nil).CommandSync), arg0, arg1, arg2, arg3, arg4)
}
// MockValidatorTopology is a mock of ValidatorTopology interface.
type MockValidatorTopology struct {
ctrl *gomock.Controller
recorder *MockValidatorTopologyMockRecorder
}
// MockValidatorTopologyMockRecorder is the mock recorder for MockValidatorTopology.
type MockValidatorTopologyMockRecorder struct {
mock *MockValidatorTopology
}
// NewMockValidatorTopology creates a new mock instance.
func NewMockValidatorTopology(ctrl *gomock.Controller) *MockValidatorTopology {
mock := &MockValidatorTopology{ctrl: ctrl}
mock.recorder = &MockValidatorTopologyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockValidatorTopology) EXPECT() *MockValidatorTopologyMockRecorder {
return m.recorder
}
// AllVegaPubKeys mocks base method.
func (m *MockValidatorTopology) AllVegaPubKeys() []string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AllVegaPubKeys")
ret0, _ := ret[0].([]string)
return ret0
}
// AllVegaPubKeys indicates an expected call of AllVegaPubKeys.
func (mr *MockValidatorTopologyMockRecorder) AllVegaPubKeys() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllVegaPubKeys", reflect.TypeOf((*MockValidatorTopology)(nil).AllVegaPubKeys))
}
// GetTotalVotingPower mocks base method.
func (m *MockValidatorTopology) GetTotalVotingPower() int64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTotalVotingPower")
ret0, _ := ret[0].(int64)
return ret0
}
// GetTotalVotingPower indicates an expected call of GetTotalVotingPower.
func (mr *MockValidatorTopologyMockRecorder) GetTotalVotingPower() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTotalVotingPower", reflect.TypeOf((*MockValidatorTopology)(nil).GetTotalVotingPower))
}
// GetVotingPower mocks base method.
func (m *MockValidatorTopology) GetVotingPower(arg0 string) int64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetVotingPower", arg0)
ret0, _ := ret[0].(int64)
return ret0
}
// GetVotingPower indicates an expected call of GetVotingPower.
func (mr *MockValidatorTopologyMockRecorder) GetVotingPower(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVotingPower", reflect.TypeOf((*MockValidatorTopology)(nil).GetVotingPower), arg0)
}
// IsTendermintValidator mocks base method.
func (m *MockValidatorTopology) IsTendermintValidator(arg0 string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsTendermintValidator", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// IsTendermintValidator indicates an expected call of IsTendermintValidator.
func (mr *MockValidatorTopologyMockRecorder) IsTendermintValidator(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTendermintValidator", reflect.TypeOf((*MockValidatorTopology)(nil).IsTendermintValidator), arg0)
}
// IsValidator mocks base method.
func (m *MockValidatorTopology) IsValidator() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsValidator")
ret0, _ := ret[0].(bool)
return ret0
}
// IsValidator indicates an expected call of IsValidator.
func (mr *MockValidatorTopologyMockRecorder) IsValidator() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidator", reflect.TypeOf((*MockValidatorTopology)(nil).IsValidator))
}
// IsValidatorVegaPubKey mocks base method.
func (m *MockValidatorTopology) IsValidatorVegaPubKey(arg0 string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsValidatorVegaPubKey", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// IsValidatorVegaPubKey indicates an expected call of IsValidatorVegaPubKey.
func (mr *MockValidatorTopologyMockRecorder) IsValidatorVegaPubKey(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidatorVegaPubKey", reflect.TypeOf((*MockValidatorTopology)(nil).IsValidatorVegaPubKey), arg0)
}
// SelfVegaPubKey mocks base method.
func (m *MockValidatorTopology) SelfVegaPubKey() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SelfVegaPubKey")
ret0, _ := ret[0].(string)
return ret0
}
// SelfVegaPubKey indicates an expected call of SelfVegaPubKey.
func (mr *MockValidatorTopologyMockRecorder) SelfVegaPubKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfVegaPubKey", reflect.TypeOf((*MockValidatorTopology)(nil).SelfVegaPubKey))
}
// MockWallet is a mock of Wallet interface.
type MockWallet struct {
ctrl *gomock.Controller
recorder *MockWalletMockRecorder
}
// MockWalletMockRecorder is the mock recorder for MockWallet.
type MockWalletMockRecorder struct {
mock *MockWallet
}
// NewMockWallet creates a new mock instance.
func NewMockWallet(ctrl *gomock.Controller) *MockWallet {
mock := &MockWallet{ctrl: ctrl}
mock.recorder = &MockWalletMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWallet) EXPECT() *MockWalletMockRecorder {
return m.recorder
}
// Algo mocks base method.
func (m *MockWallet) Algo() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Algo")
ret0, _ := ret[0].(string)
return ret0
}
// Algo indicates an expected call of Algo.
func (mr *MockWalletMockRecorder) Algo() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Algo", reflect.TypeOf((*MockWallet)(nil).Algo))
}
// ID mocks base method.
func (m *MockWallet) ID() crypto.PublicKey {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ID")
ret0, _ := ret[0].(crypto.PublicKey)
return ret0
}
// ID indicates an expected call of ID.
func (mr *MockWalletMockRecorder) ID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockWallet)(nil).ID))
}
// PubKey mocks base method.
func (m *MockWallet) PubKey() crypto.PublicKey {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PubKey")
ret0, _ := ret[0].(crypto.PublicKey)
return ret0
}
// PubKey indicates an expected call of PubKey.
func (mr *MockWalletMockRecorder) PubKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PubKey", reflect.TypeOf((*MockWallet)(nil).PubKey))
}
// Sign mocks base method.
func (m *MockWallet) Sign(arg0 []byte) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Sign", arg0)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Sign indicates an expected call of Sign.
func (mr *MockWalletMockRecorder) Sign(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockWallet)(nil).Sign), arg0)
}
// MockValidatorPerformance is a mock of ValidatorPerformance interface.
type MockValidatorPerformance struct {
ctrl *gomock.Controller
recorder *MockValidatorPerformanceMockRecorder
}
// MockValidatorPerformanceMockRecorder is the mock recorder for MockValidatorPerformance.
type MockValidatorPerformanceMockRecorder struct {
mock *MockValidatorPerformance
}
// NewMockValidatorPerformance creates a new mock instance.
func NewMockValidatorPerformance(ctrl *gomock.Controller) *MockValidatorPerformance {
mock := &MockValidatorPerformance{ctrl: ctrl}
mock.recorder = &MockValidatorPerformanceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockValidatorPerformance) EXPECT() *MockValidatorPerformanceMockRecorder {
return m.recorder
}
// BeginBlock mocks base method.
func (m *MockValidatorPerformance) BeginBlock(arg0 context.Context, arg1 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "BeginBlock", arg0, arg1)
}
// BeginBlock indicates an expected call of BeginBlock.
func (mr *MockValidatorPerformanceMockRecorder) BeginBlock(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginBlock", reflect.TypeOf((*MockValidatorPerformance)(nil).BeginBlock), arg0, arg1)
}
// Deserialize mocks base method.
func (m *MockValidatorPerformance) Deserialize(arg0 *v10.ValidatorPerformance) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Deserialize", arg0)
}
// Deserialize indicates an expected call of Deserialize.
func (mr *MockValidatorPerformanceMockRecorder) Deserialize(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deserialize", reflect.TypeOf((*MockValidatorPerformance)(nil).Deserialize), arg0)
}
// Reset mocks base method.
func (m *MockValidatorPerformance) Reset() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Reset")
}
// Reset indicates an expected call of Reset.
func (mr *MockValidatorPerformanceMockRecorder) Reset() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockValidatorPerformance)(nil).Reset))
}
// Serialize mocks base method.
func (m *MockValidatorPerformance) Serialize() *v10.ValidatorPerformance {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Serialize")
ret0, _ := ret[0].(*v10.ValidatorPerformance)
return ret0
}
// Serialize indicates an expected call of Serialize.
func (mr *MockValidatorPerformanceMockRecorder) Serialize() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serialize", reflect.TypeOf((*MockValidatorPerformance)(nil).Serialize))
}
// ValidatorPerformanceScore mocks base method.
func (m *MockValidatorPerformance) ValidatorPerformanceScore(arg0 string, arg1, arg2 int64, arg3 decimal.Decimal) decimal.Decimal {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ValidatorPerformanceScore", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(decimal.Decimal)
return ret0
}
// ValidatorPerformanceScore indicates an expected call of ValidatorPerformanceScore.
func (mr *MockValidatorPerformanceMockRecorder) ValidatorPerformanceScore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorPerformanceScore", reflect.TypeOf((*MockValidatorPerformance)(nil).ValidatorPerformanceScore), arg0, arg1, arg2, arg3)
}
// MockNotary is a mock of Notary interface.
type MockNotary struct {
ctrl *gomock.Controller
recorder *MockNotaryMockRecorder
}
// MockNotaryMockRecorder is the mock recorder for MockNotary.
type MockNotaryMockRecorder struct {
mock *MockNotary
}
// NewMockNotary creates a new mock instance.
func NewMockNotary(ctrl *gomock.Controller) *MockNotary {
mock := &MockNotary{ctrl: ctrl}
mock.recorder = &MockNotaryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockNotary) EXPECT() *MockNotaryMockRecorder {
return m.recorder
}
// IsSigned mocks base method.
func (m *MockNotary) IsSigned(arg0 context.Context, arg1 string, arg2 v1.NodeSignatureKind) ([]v1.NodeSignature, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsSigned", arg0, arg1, arg2)
ret0, _ := ret[0].([]v1.NodeSignature)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// IsSigned indicates an expected call of IsSigned.
func (mr *MockNotaryMockRecorder) IsSigned(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSigned", reflect.TypeOf((*MockNotary)(nil).IsSigned), arg0, arg1, arg2)
}
// OfferSignatures mocks base method.
func (m *MockNotary) OfferSignatures(arg0 v1.NodeSignatureKind, arg1 func(string) []byte) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "OfferSignatures", arg0, arg1)
}
// OfferSignatures indicates an expected call of OfferSignatures.
func (mr *MockNotaryMockRecorder) OfferSignatures(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OfferSignatures", reflect.TypeOf((*MockNotary)(nil).OfferSignatures), arg0, arg1)
}
// StartAggregate mocks base method.
func (m *MockNotary) StartAggregate(arg0 string, arg1 v1.NodeSignatureKind, arg2 []byte) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "StartAggregate", arg0, arg1, arg2)
}
// StartAggregate indicates an expected call of StartAggregate.
func (mr *MockNotaryMockRecorder) StartAggregate(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAggregate", reflect.TypeOf((*MockNotary)(nil).StartAggregate), arg0, arg1, arg2)
}
// MockSignatures is a mock of Signatures interface.
type MockSignatures struct {
ctrl *gomock.Controller
recorder *MockSignaturesMockRecorder
}
// MockSignaturesMockRecorder is the mock recorder for MockSignatures.
type MockSignaturesMockRecorder struct {
mock *MockSignatures
}
// NewMockSignatures creates a new mock instance.
func NewMockSignatures(ctrl *gomock.Controller) *MockSignatures {
mock := &MockSignatures{ctrl: ctrl}
mock.recorder = &MockSignaturesMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSignatures) EXPECT() *MockSignaturesMockRecorder {
return m.recorder
}
// ClearStaleSignatures mocks base method.
func (m *MockSignatures) ClearStaleSignatures() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ClearStaleSignatures")
}
// ClearStaleSignatures indicates an expected call of ClearStaleSignatures.
func (mr *MockSignaturesMockRecorder) ClearStaleSignatures() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearStaleSignatures", reflect.TypeOf((*MockSignatures)(nil).ClearStaleSignatures))
}
// EmitValidatorAddedSignatures mocks base method.
func (m *MockSignatures) EmitValidatorAddedSignatures(arg0 context.Context, arg1, arg2, arg3 string, arg4 time.Time) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EmitValidatorAddedSignatures", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].(error)
return ret0
}
// EmitValidatorAddedSignatures indicates an expected call of EmitValidatorAddedSignatures.
func (mr *MockSignaturesMockRecorder) EmitValidatorAddedSignatures(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EmitValidatorAddedSignatures", reflect.TypeOf((*MockSignatures)(nil).EmitValidatorAddedSignatures), arg0, arg1, arg2, arg3, arg4)
}
// EmitValidatorRemovedSignatures mocks base method.
func (m *MockSignatures) EmitValidatorRemovedSignatures(arg0 context.Context, arg1, arg2, arg3 string, arg4 time.Time) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EmitValidatorRemovedSignatures", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].(error)
return ret0
}
// EmitValidatorRemovedSignatures indicates an expected call of EmitValidatorRemovedSignatures.
func (mr *MockSignaturesMockRecorder) EmitValidatorRemovedSignatures(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EmitValidatorRemovedSignatures", reflect.TypeOf((*MockSignatures)(nil).EmitValidatorRemovedSignatures), arg0, arg1, arg2, arg3, arg4)
}
// OfferSignatures mocks base method.
func (m *MockSignatures) OfferSignatures() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "OfferSignatures")
}
// OfferSignatures indicates an expected call of OfferSignatures.
func (mr *MockSignaturesMockRecorder) OfferSignatures() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OfferSignatures", reflect.TypeOf((*MockSignatures)(nil).OfferSignatures))
}
// PreparePromotionsSignatures mocks base method.
func (m *MockSignatures) PreparePromotionsSignatures(arg0 context.Context, arg1 time.Time, arg2 uint64, arg3, arg4 map[string]validators.StatusAddress) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "PreparePromotionsSignatures", arg0, arg1, arg2, arg3, arg4)
}
// PreparePromotionsSignatures indicates an expected call of PreparePromotionsSignatures.
func (mr *MockSignaturesMockRecorder) PreparePromotionsSignatures(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreparePromotionsSignatures", reflect.TypeOf((*MockSignatures)(nil).PreparePromotionsSignatures), arg0, arg1, arg2, arg3, arg4)
}
// PrepareValidatorSignatures mocks base method.
func (m *MockSignatures) PrepareValidatorSignatures(arg0 context.Context, arg1 []validators.NodeIDAddress, arg2 uint64, arg3 bool) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "PrepareValidatorSignatures", arg0, arg1, arg2, arg3)
}
// PrepareValidatorSignatures indicates an expected call of PrepareValidatorSignatures.
func (mr *MockSignaturesMockRecorder) PrepareValidatorSignatures(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareValidatorSignatures", reflect.TypeOf((*MockSignatures)(nil).PrepareValidatorSignatures), arg0, arg1, arg2, arg3)
}
// RestorePendingSignatures mocks base method.
func (m *MockSignatures) RestorePendingSignatures(arg0 *v10.ToplogySignatures) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RestorePendingSignatures", arg0)
}
// RestorePendingSignatures indicates an expected call of RestorePendingSignatures.
func (mr *MockSignaturesMockRecorder) RestorePendingSignatures(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestorePendingSignatures", reflect.TypeOf((*MockSignatures)(nil).RestorePendingSignatures), arg0)
}
// SerialisePendingSignatures mocks base method.
func (m *MockSignatures) SerialisePendingSignatures() *v10.ToplogySignatures {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SerialisePendingSignatures")
ret0, _ := ret[0].(*v10.ToplogySignatures)
return ret0
}
// SerialisePendingSignatures indicates an expected call of SerialisePendingSignatures.
func (mr *MockSignaturesMockRecorder) SerialisePendingSignatures() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SerialisePendingSignatures", reflect.TypeOf((*MockSignatures)(nil).SerialisePendingSignatures))
}
// SetNonce mocks base method.
func (m *MockSignatures) SetNonce(arg0 time.Time) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetNonce", arg0)
}
// SetNonce indicates an expected call of SetNonce.
func (mr *MockSignaturesMockRecorder) SetNonce(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNonce", reflect.TypeOf((*MockSignatures)(nil).SetNonce), arg0)
}
// MockMultiSigTopology is a mock of MultiSigTopology interface.
type MockMultiSigTopology struct {
ctrl *gomock.Controller
recorder *MockMultiSigTopologyMockRecorder
}
// MockMultiSigTopologyMockRecorder is the mock recorder for MockMultiSigTopology.
type MockMultiSigTopologyMockRecorder struct {
mock *MockMultiSigTopology
}
// NewMockMultiSigTopology creates a new mock instance.
func NewMockMultiSigTopology(ctrl *gomock.Controller) *MockMultiSigTopology {
mock := &MockMultiSigTopology{ctrl: ctrl}
mock.recorder = &MockMultiSigTopologyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMultiSigTopology) EXPECT() *MockMultiSigTopologyMockRecorder {
return m.recorder
}
// ChainID mocks base method.
func (m *MockMultiSigTopology) ChainID() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChainID")
ret0, _ := ret[0].(string)
return ret0
}
// ChainID indicates an expected call of ChainID.
func (mr *MockMultiSigTopologyMockRecorder) ChainID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainID", reflect.TypeOf((*MockMultiSigTopology)(nil).ChainID))
}
// ExcessSigners mocks base method.
func (m *MockMultiSigTopology) ExcessSigners(arg0 []string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ExcessSigners", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// ExcessSigners indicates an expected call of ExcessSigners.
func (mr *MockMultiSigTopologyMockRecorder) ExcessSigners(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcessSigners", reflect.TypeOf((*MockMultiSigTopology)(nil).ExcessSigners), arg0)
}
// GetSigners mocks base method.
func (m *MockMultiSigTopology) GetSigners() []string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSigners")
ret0, _ := ret[0].([]string)
return ret0
}
// GetSigners indicates an expected call of GetSigners.
func (mr *MockMultiSigTopologyMockRecorder) GetSigners() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSigners", reflect.TypeOf((*MockMultiSigTopology)(nil).GetSigners))
}
// GetThreshold mocks base method.
func (m *MockMultiSigTopology) GetThreshold() uint32 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetThreshold")
ret0, _ := ret[0].(uint32)
return ret0
}
// GetThreshold indicates an expected call of GetThreshold.
func (mr *MockMultiSigTopologyMockRecorder) GetThreshold() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetThreshold", reflect.TypeOf((*MockMultiSigTopology)(nil).GetThreshold))
}
// IsSigner mocks base method.
func (m *MockMultiSigTopology) IsSigner(arg0 string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsSigner", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// IsSigner indicates an expected call of IsSigner.
func (mr *MockMultiSigTopologyMockRecorder) IsSigner(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSigner", reflect.TypeOf((*MockMultiSigTopology)(nil).IsSigner), arg0)
}