code.vegaprotocol.io/vega@v0.79.0/core/validators/mocks/mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/validators (interfaces: NodeWallets,TimeService,Commander,ValidatorTopology,Wallet,ValidatorPerformance,Notary,Signatures,MultiSigTopology) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 time "time" 11 12 txn "code.vegaprotocol.io/vega/core/txn" 13 validators "code.vegaprotocol.io/vega/core/validators" 14 crypto "code.vegaprotocol.io/vega/libs/crypto" 15 v1 "code.vegaprotocol.io/vega/protos/vega/commands/v1" 16 v10 "code.vegaprotocol.io/vega/protos/vega/snapshot/v1" 17 backoff "github.com/cenkalti/backoff" 18 gomock "github.com/golang/mock/gomock" 19 decimal "github.com/shopspring/decimal" 20 protoiface "google.golang.org/protobuf/runtime/protoiface" 21 ) 22 23 // MockNodeWallets is a mock of NodeWallets interface. 24 type MockNodeWallets struct { 25 ctrl *gomock.Controller 26 recorder *MockNodeWalletsMockRecorder 27 } 28 29 // MockNodeWalletsMockRecorder is the mock recorder for MockNodeWallets. 30 type MockNodeWalletsMockRecorder struct { 31 mock *MockNodeWallets 32 } 33 34 // NewMockNodeWallets creates a new mock instance. 35 func NewMockNodeWallets(ctrl *gomock.Controller) *MockNodeWallets { 36 mock := &MockNodeWallets{ctrl: ctrl} 37 mock.recorder = &MockNodeWalletsMockRecorder{mock} 38 return mock 39 } 40 41 // EXPECT returns an object that allows the caller to indicate expected use. 42 func (m *MockNodeWallets) EXPECT() *MockNodeWalletsMockRecorder { 43 return m.recorder 44 } 45 46 // GetEthereum mocks base method. 47 func (m *MockNodeWallets) GetEthereum() validators.Signer { 48 m.ctrl.T.Helper() 49 ret := m.ctrl.Call(m, "GetEthereum") 50 ret0, _ := ret[0].(validators.Signer) 51 return ret0 52 } 53 54 // GetEthereum indicates an expected call of GetEthereum. 55 func (mr *MockNodeWalletsMockRecorder) GetEthereum() *gomock.Call { 56 mr.mock.ctrl.T.Helper() 57 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEthereum", reflect.TypeOf((*MockNodeWallets)(nil).GetEthereum)) 58 } 59 60 // GetEthereumAddress mocks base method. 61 func (m *MockNodeWallets) GetEthereumAddress() string { 62 m.ctrl.T.Helper() 63 ret := m.ctrl.Call(m, "GetEthereumAddress") 64 ret0, _ := ret[0].(string) 65 return ret0 66 } 67 68 // GetEthereumAddress indicates an expected call of GetEthereumAddress. 69 func (mr *MockNodeWalletsMockRecorder) GetEthereumAddress() *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEthereumAddress", reflect.TypeOf((*MockNodeWallets)(nil).GetEthereumAddress)) 72 } 73 74 // GetTendermintPubkey mocks base method. 75 func (m *MockNodeWallets) GetTendermintPubkey() string { 76 m.ctrl.T.Helper() 77 ret := m.ctrl.Call(m, "GetTendermintPubkey") 78 ret0, _ := ret[0].(string) 79 return ret0 80 } 81 82 // GetTendermintPubkey indicates an expected call of GetTendermintPubkey. 83 func (mr *MockNodeWalletsMockRecorder) GetTendermintPubkey() *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTendermintPubkey", reflect.TypeOf((*MockNodeWallets)(nil).GetTendermintPubkey)) 86 } 87 88 // GetVega mocks base method. 89 func (m *MockNodeWallets) GetVega() validators.Wallet { 90 m.ctrl.T.Helper() 91 ret := m.ctrl.Call(m, "GetVega") 92 ret0, _ := ret[0].(validators.Wallet) 93 return ret0 94 } 95 96 // GetVega indicates an expected call of GetVega. 97 func (mr *MockNodeWalletsMockRecorder) GetVega() *gomock.Call { 98 mr.mock.ctrl.T.Helper() 99 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVega", reflect.TypeOf((*MockNodeWallets)(nil).GetVega)) 100 } 101 102 // MockTimeService is a mock of TimeService interface. 103 type MockTimeService struct { 104 ctrl *gomock.Controller 105 recorder *MockTimeServiceMockRecorder 106 } 107 108 // MockTimeServiceMockRecorder is the mock recorder for MockTimeService. 109 type MockTimeServiceMockRecorder struct { 110 mock *MockTimeService 111 } 112 113 // NewMockTimeService creates a new mock instance. 114 func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService { 115 mock := &MockTimeService{ctrl: ctrl} 116 mock.recorder = &MockTimeServiceMockRecorder{mock} 117 return mock 118 } 119 120 // EXPECT returns an object that allows the caller to indicate expected use. 121 func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder { 122 return m.recorder 123 } 124 125 // GetTimeNow mocks base method. 126 func (m *MockTimeService) GetTimeNow() time.Time { 127 m.ctrl.T.Helper() 128 ret := m.ctrl.Call(m, "GetTimeNow") 129 ret0, _ := ret[0].(time.Time) 130 return ret0 131 } 132 133 // GetTimeNow indicates an expected call of GetTimeNow. 134 func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeNow", reflect.TypeOf((*MockTimeService)(nil).GetTimeNow)) 137 } 138 139 // MockCommander is a mock of Commander interface. 140 type MockCommander struct { 141 ctrl *gomock.Controller 142 recorder *MockCommanderMockRecorder 143 } 144 145 // MockCommanderMockRecorder is the mock recorder for MockCommander. 146 type MockCommanderMockRecorder struct { 147 mock *MockCommander 148 } 149 150 // NewMockCommander creates a new mock instance. 151 func NewMockCommander(ctrl *gomock.Controller) *MockCommander { 152 mock := &MockCommander{ctrl: ctrl} 153 mock.recorder = &MockCommanderMockRecorder{mock} 154 return mock 155 } 156 157 // EXPECT returns an object that allows the caller to indicate expected use. 158 func (m *MockCommander) EXPECT() *MockCommanderMockRecorder { 159 return m.recorder 160 } 161 162 // Command mocks base method. 163 func (m *MockCommander) Command(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff) { 164 m.ctrl.T.Helper() 165 m.ctrl.Call(m, "Command", arg0, arg1, arg2, arg3, arg4) 166 } 167 168 // Command indicates an expected call of Command. 169 func (mr *MockCommanderMockRecorder) Command(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 170 mr.mock.ctrl.T.Helper() 171 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Command", reflect.TypeOf((*MockCommander)(nil).Command), arg0, arg1, arg2, arg3, arg4) 172 } 173 174 // CommandSync mocks base method. 175 func (m *MockCommander) CommandSync(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff) { 176 m.ctrl.T.Helper() 177 m.ctrl.Call(m, "CommandSync", arg0, arg1, arg2, arg3, arg4) 178 } 179 180 // CommandSync indicates an expected call of CommandSync. 181 func (mr *MockCommanderMockRecorder) CommandSync(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 182 mr.mock.ctrl.T.Helper() 183 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommandSync", reflect.TypeOf((*MockCommander)(nil).CommandSync), arg0, arg1, arg2, arg3, arg4) 184 } 185 186 // MockValidatorTopology is a mock of ValidatorTopology interface. 187 type MockValidatorTopology struct { 188 ctrl *gomock.Controller 189 recorder *MockValidatorTopologyMockRecorder 190 } 191 192 // MockValidatorTopologyMockRecorder is the mock recorder for MockValidatorTopology. 193 type MockValidatorTopologyMockRecorder struct { 194 mock *MockValidatorTopology 195 } 196 197 // NewMockValidatorTopology creates a new mock instance. 198 func NewMockValidatorTopology(ctrl *gomock.Controller) *MockValidatorTopology { 199 mock := &MockValidatorTopology{ctrl: ctrl} 200 mock.recorder = &MockValidatorTopologyMockRecorder{mock} 201 return mock 202 } 203 204 // EXPECT returns an object that allows the caller to indicate expected use. 205 func (m *MockValidatorTopology) EXPECT() *MockValidatorTopologyMockRecorder { 206 return m.recorder 207 } 208 209 // AllVegaPubKeys mocks base method. 210 func (m *MockValidatorTopology) AllVegaPubKeys() []string { 211 m.ctrl.T.Helper() 212 ret := m.ctrl.Call(m, "AllVegaPubKeys") 213 ret0, _ := ret[0].([]string) 214 return ret0 215 } 216 217 // AllVegaPubKeys indicates an expected call of AllVegaPubKeys. 218 func (mr *MockValidatorTopologyMockRecorder) AllVegaPubKeys() *gomock.Call { 219 mr.mock.ctrl.T.Helper() 220 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllVegaPubKeys", reflect.TypeOf((*MockValidatorTopology)(nil).AllVegaPubKeys)) 221 } 222 223 // GetTotalVotingPower mocks base method. 224 func (m *MockValidatorTopology) GetTotalVotingPower() int64 { 225 m.ctrl.T.Helper() 226 ret := m.ctrl.Call(m, "GetTotalVotingPower") 227 ret0, _ := ret[0].(int64) 228 return ret0 229 } 230 231 // GetTotalVotingPower indicates an expected call of GetTotalVotingPower. 232 func (mr *MockValidatorTopologyMockRecorder) GetTotalVotingPower() *gomock.Call { 233 mr.mock.ctrl.T.Helper() 234 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTotalVotingPower", reflect.TypeOf((*MockValidatorTopology)(nil).GetTotalVotingPower)) 235 } 236 237 // GetVotingPower mocks base method. 238 func (m *MockValidatorTopology) GetVotingPower(arg0 string) int64 { 239 m.ctrl.T.Helper() 240 ret := m.ctrl.Call(m, "GetVotingPower", arg0) 241 ret0, _ := ret[0].(int64) 242 return ret0 243 } 244 245 // GetVotingPower indicates an expected call of GetVotingPower. 246 func (mr *MockValidatorTopologyMockRecorder) GetVotingPower(arg0 interface{}) *gomock.Call { 247 mr.mock.ctrl.T.Helper() 248 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVotingPower", reflect.TypeOf((*MockValidatorTopology)(nil).GetVotingPower), arg0) 249 } 250 251 // IsTendermintValidator mocks base method. 252 func (m *MockValidatorTopology) IsTendermintValidator(arg0 string) bool { 253 m.ctrl.T.Helper() 254 ret := m.ctrl.Call(m, "IsTendermintValidator", arg0) 255 ret0, _ := ret[0].(bool) 256 return ret0 257 } 258 259 // IsTendermintValidator indicates an expected call of IsTendermintValidator. 260 func (mr *MockValidatorTopologyMockRecorder) IsTendermintValidator(arg0 interface{}) *gomock.Call { 261 mr.mock.ctrl.T.Helper() 262 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTendermintValidator", reflect.TypeOf((*MockValidatorTopology)(nil).IsTendermintValidator), arg0) 263 } 264 265 // IsValidator mocks base method. 266 func (m *MockValidatorTopology) IsValidator() bool { 267 m.ctrl.T.Helper() 268 ret := m.ctrl.Call(m, "IsValidator") 269 ret0, _ := ret[0].(bool) 270 return ret0 271 } 272 273 // IsValidator indicates an expected call of IsValidator. 274 func (mr *MockValidatorTopologyMockRecorder) IsValidator() *gomock.Call { 275 mr.mock.ctrl.T.Helper() 276 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidator", reflect.TypeOf((*MockValidatorTopology)(nil).IsValidator)) 277 } 278 279 // IsValidatorVegaPubKey mocks base method. 280 func (m *MockValidatorTopology) IsValidatorVegaPubKey(arg0 string) bool { 281 m.ctrl.T.Helper() 282 ret := m.ctrl.Call(m, "IsValidatorVegaPubKey", arg0) 283 ret0, _ := ret[0].(bool) 284 return ret0 285 } 286 287 // IsValidatorVegaPubKey indicates an expected call of IsValidatorVegaPubKey. 288 func (mr *MockValidatorTopologyMockRecorder) IsValidatorVegaPubKey(arg0 interface{}) *gomock.Call { 289 mr.mock.ctrl.T.Helper() 290 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidatorVegaPubKey", reflect.TypeOf((*MockValidatorTopology)(nil).IsValidatorVegaPubKey), arg0) 291 } 292 293 // SelfVegaPubKey mocks base method. 294 func (m *MockValidatorTopology) SelfVegaPubKey() string { 295 m.ctrl.T.Helper() 296 ret := m.ctrl.Call(m, "SelfVegaPubKey") 297 ret0, _ := ret[0].(string) 298 return ret0 299 } 300 301 // SelfVegaPubKey indicates an expected call of SelfVegaPubKey. 302 func (mr *MockValidatorTopologyMockRecorder) SelfVegaPubKey() *gomock.Call { 303 mr.mock.ctrl.T.Helper() 304 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfVegaPubKey", reflect.TypeOf((*MockValidatorTopology)(nil).SelfVegaPubKey)) 305 } 306 307 // MockWallet is a mock of Wallet interface. 308 type MockWallet struct { 309 ctrl *gomock.Controller 310 recorder *MockWalletMockRecorder 311 } 312 313 // MockWalletMockRecorder is the mock recorder for MockWallet. 314 type MockWalletMockRecorder struct { 315 mock *MockWallet 316 } 317 318 // NewMockWallet creates a new mock instance. 319 func NewMockWallet(ctrl *gomock.Controller) *MockWallet { 320 mock := &MockWallet{ctrl: ctrl} 321 mock.recorder = &MockWalletMockRecorder{mock} 322 return mock 323 } 324 325 // EXPECT returns an object that allows the caller to indicate expected use. 326 func (m *MockWallet) EXPECT() *MockWalletMockRecorder { 327 return m.recorder 328 } 329 330 // Algo mocks base method. 331 func (m *MockWallet) Algo() string { 332 m.ctrl.T.Helper() 333 ret := m.ctrl.Call(m, "Algo") 334 ret0, _ := ret[0].(string) 335 return ret0 336 } 337 338 // Algo indicates an expected call of Algo. 339 func (mr *MockWalletMockRecorder) Algo() *gomock.Call { 340 mr.mock.ctrl.T.Helper() 341 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Algo", reflect.TypeOf((*MockWallet)(nil).Algo)) 342 } 343 344 // ID mocks base method. 345 func (m *MockWallet) ID() crypto.PublicKey { 346 m.ctrl.T.Helper() 347 ret := m.ctrl.Call(m, "ID") 348 ret0, _ := ret[0].(crypto.PublicKey) 349 return ret0 350 } 351 352 // ID indicates an expected call of ID. 353 func (mr *MockWalletMockRecorder) ID() *gomock.Call { 354 mr.mock.ctrl.T.Helper() 355 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockWallet)(nil).ID)) 356 } 357 358 // PubKey mocks base method. 359 func (m *MockWallet) PubKey() crypto.PublicKey { 360 m.ctrl.T.Helper() 361 ret := m.ctrl.Call(m, "PubKey") 362 ret0, _ := ret[0].(crypto.PublicKey) 363 return ret0 364 } 365 366 // PubKey indicates an expected call of PubKey. 367 func (mr *MockWalletMockRecorder) PubKey() *gomock.Call { 368 mr.mock.ctrl.T.Helper() 369 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PubKey", reflect.TypeOf((*MockWallet)(nil).PubKey)) 370 } 371 372 // Sign mocks base method. 373 func (m *MockWallet) Sign(arg0 []byte) ([]byte, error) { 374 m.ctrl.T.Helper() 375 ret := m.ctrl.Call(m, "Sign", arg0) 376 ret0, _ := ret[0].([]byte) 377 ret1, _ := ret[1].(error) 378 return ret0, ret1 379 } 380 381 // Sign indicates an expected call of Sign. 382 func (mr *MockWalletMockRecorder) Sign(arg0 interface{}) *gomock.Call { 383 mr.mock.ctrl.T.Helper() 384 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockWallet)(nil).Sign), arg0) 385 } 386 387 // MockValidatorPerformance is a mock of ValidatorPerformance interface. 388 type MockValidatorPerformance struct { 389 ctrl *gomock.Controller 390 recorder *MockValidatorPerformanceMockRecorder 391 } 392 393 // MockValidatorPerformanceMockRecorder is the mock recorder for MockValidatorPerformance. 394 type MockValidatorPerformanceMockRecorder struct { 395 mock *MockValidatorPerformance 396 } 397 398 // NewMockValidatorPerformance creates a new mock instance. 399 func NewMockValidatorPerformance(ctrl *gomock.Controller) *MockValidatorPerformance { 400 mock := &MockValidatorPerformance{ctrl: ctrl} 401 mock.recorder = &MockValidatorPerformanceMockRecorder{mock} 402 return mock 403 } 404 405 // EXPECT returns an object that allows the caller to indicate expected use. 406 func (m *MockValidatorPerformance) EXPECT() *MockValidatorPerformanceMockRecorder { 407 return m.recorder 408 } 409 410 // BeginBlock mocks base method. 411 func (m *MockValidatorPerformance) BeginBlock(arg0 context.Context, arg1 string) { 412 m.ctrl.T.Helper() 413 m.ctrl.Call(m, "BeginBlock", arg0, arg1) 414 } 415 416 // BeginBlock indicates an expected call of BeginBlock. 417 func (mr *MockValidatorPerformanceMockRecorder) BeginBlock(arg0, arg1 interface{}) *gomock.Call { 418 mr.mock.ctrl.T.Helper() 419 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginBlock", reflect.TypeOf((*MockValidatorPerformance)(nil).BeginBlock), arg0, arg1) 420 } 421 422 // Deserialize mocks base method. 423 func (m *MockValidatorPerformance) Deserialize(arg0 *v10.ValidatorPerformance) { 424 m.ctrl.T.Helper() 425 m.ctrl.Call(m, "Deserialize", arg0) 426 } 427 428 // Deserialize indicates an expected call of Deserialize. 429 func (mr *MockValidatorPerformanceMockRecorder) Deserialize(arg0 interface{}) *gomock.Call { 430 mr.mock.ctrl.T.Helper() 431 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deserialize", reflect.TypeOf((*MockValidatorPerformance)(nil).Deserialize), arg0) 432 } 433 434 // Reset mocks base method. 435 func (m *MockValidatorPerformance) Reset() { 436 m.ctrl.T.Helper() 437 m.ctrl.Call(m, "Reset") 438 } 439 440 // Reset indicates an expected call of Reset. 441 func (mr *MockValidatorPerformanceMockRecorder) Reset() *gomock.Call { 442 mr.mock.ctrl.T.Helper() 443 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockValidatorPerformance)(nil).Reset)) 444 } 445 446 // Serialize mocks base method. 447 func (m *MockValidatorPerformance) Serialize() *v10.ValidatorPerformance { 448 m.ctrl.T.Helper() 449 ret := m.ctrl.Call(m, "Serialize") 450 ret0, _ := ret[0].(*v10.ValidatorPerformance) 451 return ret0 452 } 453 454 // Serialize indicates an expected call of Serialize. 455 func (mr *MockValidatorPerformanceMockRecorder) Serialize() *gomock.Call { 456 mr.mock.ctrl.T.Helper() 457 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serialize", reflect.TypeOf((*MockValidatorPerformance)(nil).Serialize)) 458 } 459 460 // ValidatorPerformanceScore mocks base method. 461 func (m *MockValidatorPerformance) ValidatorPerformanceScore(arg0 string, arg1, arg2 int64, arg3 decimal.Decimal) decimal.Decimal { 462 m.ctrl.T.Helper() 463 ret := m.ctrl.Call(m, "ValidatorPerformanceScore", arg0, arg1, arg2, arg3) 464 ret0, _ := ret[0].(decimal.Decimal) 465 return ret0 466 } 467 468 // ValidatorPerformanceScore indicates an expected call of ValidatorPerformanceScore. 469 func (mr *MockValidatorPerformanceMockRecorder) ValidatorPerformanceScore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 470 mr.mock.ctrl.T.Helper() 471 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorPerformanceScore", reflect.TypeOf((*MockValidatorPerformance)(nil).ValidatorPerformanceScore), arg0, arg1, arg2, arg3) 472 } 473 474 // MockNotary is a mock of Notary interface. 475 type MockNotary struct { 476 ctrl *gomock.Controller 477 recorder *MockNotaryMockRecorder 478 } 479 480 // MockNotaryMockRecorder is the mock recorder for MockNotary. 481 type MockNotaryMockRecorder struct { 482 mock *MockNotary 483 } 484 485 // NewMockNotary creates a new mock instance. 486 func NewMockNotary(ctrl *gomock.Controller) *MockNotary { 487 mock := &MockNotary{ctrl: ctrl} 488 mock.recorder = &MockNotaryMockRecorder{mock} 489 return mock 490 } 491 492 // EXPECT returns an object that allows the caller to indicate expected use. 493 func (m *MockNotary) EXPECT() *MockNotaryMockRecorder { 494 return m.recorder 495 } 496 497 // IsSigned mocks base method. 498 func (m *MockNotary) IsSigned(arg0 context.Context, arg1 string, arg2 v1.NodeSignatureKind) ([]v1.NodeSignature, bool) { 499 m.ctrl.T.Helper() 500 ret := m.ctrl.Call(m, "IsSigned", arg0, arg1, arg2) 501 ret0, _ := ret[0].([]v1.NodeSignature) 502 ret1, _ := ret[1].(bool) 503 return ret0, ret1 504 } 505 506 // IsSigned indicates an expected call of IsSigned. 507 func (mr *MockNotaryMockRecorder) IsSigned(arg0, arg1, arg2 interface{}) *gomock.Call { 508 mr.mock.ctrl.T.Helper() 509 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSigned", reflect.TypeOf((*MockNotary)(nil).IsSigned), arg0, arg1, arg2) 510 } 511 512 // OfferSignatures mocks base method. 513 func (m *MockNotary) OfferSignatures(arg0 v1.NodeSignatureKind, arg1 func(string) []byte) { 514 m.ctrl.T.Helper() 515 m.ctrl.Call(m, "OfferSignatures", arg0, arg1) 516 } 517 518 // OfferSignatures indicates an expected call of OfferSignatures. 519 func (mr *MockNotaryMockRecorder) OfferSignatures(arg0, arg1 interface{}) *gomock.Call { 520 mr.mock.ctrl.T.Helper() 521 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OfferSignatures", reflect.TypeOf((*MockNotary)(nil).OfferSignatures), arg0, arg1) 522 } 523 524 // StartAggregate mocks base method. 525 func (m *MockNotary) StartAggregate(arg0 string, arg1 v1.NodeSignatureKind, arg2 []byte) { 526 m.ctrl.T.Helper() 527 m.ctrl.Call(m, "StartAggregate", arg0, arg1, arg2) 528 } 529 530 // StartAggregate indicates an expected call of StartAggregate. 531 func (mr *MockNotaryMockRecorder) StartAggregate(arg0, arg1, arg2 interface{}) *gomock.Call { 532 mr.mock.ctrl.T.Helper() 533 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAggregate", reflect.TypeOf((*MockNotary)(nil).StartAggregate), arg0, arg1, arg2) 534 } 535 536 // MockSignatures is a mock of Signatures interface. 537 type MockSignatures struct { 538 ctrl *gomock.Controller 539 recorder *MockSignaturesMockRecorder 540 } 541 542 // MockSignaturesMockRecorder is the mock recorder for MockSignatures. 543 type MockSignaturesMockRecorder struct { 544 mock *MockSignatures 545 } 546 547 // NewMockSignatures creates a new mock instance. 548 func NewMockSignatures(ctrl *gomock.Controller) *MockSignatures { 549 mock := &MockSignatures{ctrl: ctrl} 550 mock.recorder = &MockSignaturesMockRecorder{mock} 551 return mock 552 } 553 554 // EXPECT returns an object that allows the caller to indicate expected use. 555 func (m *MockSignatures) EXPECT() *MockSignaturesMockRecorder { 556 return m.recorder 557 } 558 559 // ClearStaleSignatures mocks base method. 560 func (m *MockSignatures) ClearStaleSignatures() { 561 m.ctrl.T.Helper() 562 m.ctrl.Call(m, "ClearStaleSignatures") 563 } 564 565 // ClearStaleSignatures indicates an expected call of ClearStaleSignatures. 566 func (mr *MockSignaturesMockRecorder) ClearStaleSignatures() *gomock.Call { 567 mr.mock.ctrl.T.Helper() 568 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearStaleSignatures", reflect.TypeOf((*MockSignatures)(nil).ClearStaleSignatures)) 569 } 570 571 // EmitValidatorAddedSignatures mocks base method. 572 func (m *MockSignatures) EmitValidatorAddedSignatures(arg0 context.Context, arg1, arg2, arg3 string, arg4 time.Time) error { 573 m.ctrl.T.Helper() 574 ret := m.ctrl.Call(m, "EmitValidatorAddedSignatures", arg0, arg1, arg2, arg3, arg4) 575 ret0, _ := ret[0].(error) 576 return ret0 577 } 578 579 // EmitValidatorAddedSignatures indicates an expected call of EmitValidatorAddedSignatures. 580 func (mr *MockSignaturesMockRecorder) EmitValidatorAddedSignatures(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 581 mr.mock.ctrl.T.Helper() 582 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EmitValidatorAddedSignatures", reflect.TypeOf((*MockSignatures)(nil).EmitValidatorAddedSignatures), arg0, arg1, arg2, arg3, arg4) 583 } 584 585 // EmitValidatorRemovedSignatures mocks base method. 586 func (m *MockSignatures) EmitValidatorRemovedSignatures(arg0 context.Context, arg1, arg2, arg3 string, arg4 time.Time) error { 587 m.ctrl.T.Helper() 588 ret := m.ctrl.Call(m, "EmitValidatorRemovedSignatures", arg0, arg1, arg2, arg3, arg4) 589 ret0, _ := ret[0].(error) 590 return ret0 591 } 592 593 // EmitValidatorRemovedSignatures indicates an expected call of EmitValidatorRemovedSignatures. 594 func (mr *MockSignaturesMockRecorder) EmitValidatorRemovedSignatures(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 595 mr.mock.ctrl.T.Helper() 596 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EmitValidatorRemovedSignatures", reflect.TypeOf((*MockSignatures)(nil).EmitValidatorRemovedSignatures), arg0, arg1, arg2, arg3, arg4) 597 } 598 599 // OfferSignatures mocks base method. 600 func (m *MockSignatures) OfferSignatures() { 601 m.ctrl.T.Helper() 602 m.ctrl.Call(m, "OfferSignatures") 603 } 604 605 // OfferSignatures indicates an expected call of OfferSignatures. 606 func (mr *MockSignaturesMockRecorder) OfferSignatures() *gomock.Call { 607 mr.mock.ctrl.T.Helper() 608 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OfferSignatures", reflect.TypeOf((*MockSignatures)(nil).OfferSignatures)) 609 } 610 611 // PreparePromotionsSignatures mocks base method. 612 func (m *MockSignatures) PreparePromotionsSignatures(arg0 context.Context, arg1 time.Time, arg2 uint64, arg3, arg4 map[string]validators.StatusAddress) { 613 m.ctrl.T.Helper() 614 m.ctrl.Call(m, "PreparePromotionsSignatures", arg0, arg1, arg2, arg3, arg4) 615 } 616 617 // PreparePromotionsSignatures indicates an expected call of PreparePromotionsSignatures. 618 func (mr *MockSignaturesMockRecorder) PreparePromotionsSignatures(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 619 mr.mock.ctrl.T.Helper() 620 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreparePromotionsSignatures", reflect.TypeOf((*MockSignatures)(nil).PreparePromotionsSignatures), arg0, arg1, arg2, arg3, arg4) 621 } 622 623 // PrepareValidatorSignatures mocks base method. 624 func (m *MockSignatures) PrepareValidatorSignatures(arg0 context.Context, arg1 []validators.NodeIDAddress, arg2 uint64, arg3 bool) { 625 m.ctrl.T.Helper() 626 m.ctrl.Call(m, "PrepareValidatorSignatures", arg0, arg1, arg2, arg3) 627 } 628 629 // PrepareValidatorSignatures indicates an expected call of PrepareValidatorSignatures. 630 func (mr *MockSignaturesMockRecorder) PrepareValidatorSignatures(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 631 mr.mock.ctrl.T.Helper() 632 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareValidatorSignatures", reflect.TypeOf((*MockSignatures)(nil).PrepareValidatorSignatures), arg0, arg1, arg2, arg3) 633 } 634 635 // RestorePendingSignatures mocks base method. 636 func (m *MockSignatures) RestorePendingSignatures(arg0 *v10.ToplogySignatures) { 637 m.ctrl.T.Helper() 638 m.ctrl.Call(m, "RestorePendingSignatures", arg0) 639 } 640 641 // RestorePendingSignatures indicates an expected call of RestorePendingSignatures. 642 func (mr *MockSignaturesMockRecorder) RestorePendingSignatures(arg0 interface{}) *gomock.Call { 643 mr.mock.ctrl.T.Helper() 644 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestorePendingSignatures", reflect.TypeOf((*MockSignatures)(nil).RestorePendingSignatures), arg0) 645 } 646 647 // SerialisePendingSignatures mocks base method. 648 func (m *MockSignatures) SerialisePendingSignatures() *v10.ToplogySignatures { 649 m.ctrl.T.Helper() 650 ret := m.ctrl.Call(m, "SerialisePendingSignatures") 651 ret0, _ := ret[0].(*v10.ToplogySignatures) 652 return ret0 653 } 654 655 // SerialisePendingSignatures indicates an expected call of SerialisePendingSignatures. 656 func (mr *MockSignaturesMockRecorder) SerialisePendingSignatures() *gomock.Call { 657 mr.mock.ctrl.T.Helper() 658 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SerialisePendingSignatures", reflect.TypeOf((*MockSignatures)(nil).SerialisePendingSignatures)) 659 } 660 661 // SetNonce mocks base method. 662 func (m *MockSignatures) SetNonce(arg0 time.Time) { 663 m.ctrl.T.Helper() 664 m.ctrl.Call(m, "SetNonce", arg0) 665 } 666 667 // SetNonce indicates an expected call of SetNonce. 668 func (mr *MockSignaturesMockRecorder) SetNonce(arg0 interface{}) *gomock.Call { 669 mr.mock.ctrl.T.Helper() 670 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNonce", reflect.TypeOf((*MockSignatures)(nil).SetNonce), arg0) 671 } 672 673 // MockMultiSigTopology is a mock of MultiSigTopology interface. 674 type MockMultiSigTopology struct { 675 ctrl *gomock.Controller 676 recorder *MockMultiSigTopologyMockRecorder 677 } 678 679 // MockMultiSigTopologyMockRecorder is the mock recorder for MockMultiSigTopology. 680 type MockMultiSigTopologyMockRecorder struct { 681 mock *MockMultiSigTopology 682 } 683 684 // NewMockMultiSigTopology creates a new mock instance. 685 func NewMockMultiSigTopology(ctrl *gomock.Controller) *MockMultiSigTopology { 686 mock := &MockMultiSigTopology{ctrl: ctrl} 687 mock.recorder = &MockMultiSigTopologyMockRecorder{mock} 688 return mock 689 } 690 691 // EXPECT returns an object that allows the caller to indicate expected use. 692 func (m *MockMultiSigTopology) EXPECT() *MockMultiSigTopologyMockRecorder { 693 return m.recorder 694 } 695 696 // ChainID mocks base method. 697 func (m *MockMultiSigTopology) ChainID() string { 698 m.ctrl.T.Helper() 699 ret := m.ctrl.Call(m, "ChainID") 700 ret0, _ := ret[0].(string) 701 return ret0 702 } 703 704 // ChainID indicates an expected call of ChainID. 705 func (mr *MockMultiSigTopologyMockRecorder) ChainID() *gomock.Call { 706 mr.mock.ctrl.T.Helper() 707 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainID", reflect.TypeOf((*MockMultiSigTopology)(nil).ChainID)) 708 } 709 710 // ExcessSigners mocks base method. 711 func (m *MockMultiSigTopology) ExcessSigners(arg0 []string) bool { 712 m.ctrl.T.Helper() 713 ret := m.ctrl.Call(m, "ExcessSigners", arg0) 714 ret0, _ := ret[0].(bool) 715 return ret0 716 } 717 718 // ExcessSigners indicates an expected call of ExcessSigners. 719 func (mr *MockMultiSigTopologyMockRecorder) ExcessSigners(arg0 interface{}) *gomock.Call { 720 mr.mock.ctrl.T.Helper() 721 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcessSigners", reflect.TypeOf((*MockMultiSigTopology)(nil).ExcessSigners), arg0) 722 } 723 724 // GetSigners mocks base method. 725 func (m *MockMultiSigTopology) GetSigners() []string { 726 m.ctrl.T.Helper() 727 ret := m.ctrl.Call(m, "GetSigners") 728 ret0, _ := ret[0].([]string) 729 return ret0 730 } 731 732 // GetSigners indicates an expected call of GetSigners. 733 func (mr *MockMultiSigTopologyMockRecorder) GetSigners() *gomock.Call { 734 mr.mock.ctrl.T.Helper() 735 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSigners", reflect.TypeOf((*MockMultiSigTopology)(nil).GetSigners)) 736 } 737 738 // GetThreshold mocks base method. 739 func (m *MockMultiSigTopology) GetThreshold() uint32 { 740 m.ctrl.T.Helper() 741 ret := m.ctrl.Call(m, "GetThreshold") 742 ret0, _ := ret[0].(uint32) 743 return ret0 744 } 745 746 // GetThreshold indicates an expected call of GetThreshold. 747 func (mr *MockMultiSigTopologyMockRecorder) GetThreshold() *gomock.Call { 748 mr.mock.ctrl.T.Helper() 749 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetThreshold", reflect.TypeOf((*MockMultiSigTopology)(nil).GetThreshold)) 750 } 751 752 // IsSigner mocks base method. 753 func (m *MockMultiSigTopology) IsSigner(arg0 string) bool { 754 m.ctrl.T.Helper() 755 ret := m.ctrl.Call(m, "IsSigner", arg0) 756 ret0, _ := ret[0].(bool) 757 return ret0 758 } 759 760 // IsSigner indicates an expected call of IsSigner. 761 func (mr *MockMultiSigTopologyMockRecorder) IsSigner(arg0 interface{}) *gomock.Call { 762 mr.mock.ctrl.T.Helper() 763 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSigner", reflect.TypeOf((*MockMultiSigTopology)(nil).IsSigner), arg0) 764 }