github.com/soomindae/tendermint@v0.0.5-0.20210528140126-84a0c70c8162/rpc/client/mocks/client.go (about) 1 // Code generated by mockery v2.6.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 bytes "github.com/soomindae/tendermint/libs/bytes" 7 client "github.com/soomindae/tendermint/rpc/client" 8 9 context "context" 10 11 coretypes "github.com/soomindae/tendermint/rpc/core/types" 12 13 log "github.com/soomindae/tendermint/libs/log" 14 15 mock "github.com/stretchr/testify/mock" 16 17 types "github.com/soomindae/tendermint/types" 18 ) 19 20 // Client is an autogenerated mock type for the Client type 21 type Client struct { 22 mock.Mock 23 } 24 25 // ABCIInfo provides a mock function with given fields: _a0 26 func (_m *Client) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error) { 27 ret := _m.Called(_a0) 28 29 var r0 *coretypes.ResultABCIInfo 30 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultABCIInfo); ok { 31 r0 = rf(_a0) 32 } else { 33 if ret.Get(0) != nil { 34 r0 = ret.Get(0).(*coretypes.ResultABCIInfo) 35 } 36 } 37 38 var r1 error 39 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 40 r1 = rf(_a0) 41 } else { 42 r1 = ret.Error(1) 43 } 44 45 return r0, r1 46 } 47 48 // ABCIQuery provides a mock function with given fields: ctx, path, data 49 func (_m *Client) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error) { 50 ret := _m.Called(ctx, path, data) 51 52 var r0 *coretypes.ResultABCIQuery 53 if rf, ok := ret.Get(0).(func(context.Context, string, bytes.HexBytes) *coretypes.ResultABCIQuery); ok { 54 r0 = rf(ctx, path, data) 55 } else { 56 if ret.Get(0) != nil { 57 r0 = ret.Get(0).(*coretypes.ResultABCIQuery) 58 } 59 } 60 61 var r1 error 62 if rf, ok := ret.Get(1).(func(context.Context, string, bytes.HexBytes) error); ok { 63 r1 = rf(ctx, path, data) 64 } else { 65 r1 = ret.Error(1) 66 } 67 68 return r0, r1 69 } 70 71 // ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts 72 func (_m *Client) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error) { 73 ret := _m.Called(ctx, path, data, opts) 74 75 var r0 *coretypes.ResultABCIQuery 76 if rf, ok := ret.Get(0).(func(context.Context, string, bytes.HexBytes, client.ABCIQueryOptions) *coretypes.ResultABCIQuery); ok { 77 r0 = rf(ctx, path, data, opts) 78 } else { 79 if ret.Get(0) != nil { 80 r0 = ret.Get(0).(*coretypes.ResultABCIQuery) 81 } 82 } 83 84 var r1 error 85 if rf, ok := ret.Get(1).(func(context.Context, string, bytes.HexBytes, client.ABCIQueryOptions) error); ok { 86 r1 = rf(ctx, path, data, opts) 87 } else { 88 r1 = ret.Error(1) 89 } 90 91 return r0, r1 92 } 93 94 // Block provides a mock function with given fields: ctx, height 95 func (_m *Client) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error) { 96 ret := _m.Called(ctx, height) 97 98 var r0 *coretypes.ResultBlock 99 if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultBlock); ok { 100 r0 = rf(ctx, height) 101 } else { 102 if ret.Get(0) != nil { 103 r0 = ret.Get(0).(*coretypes.ResultBlock) 104 } 105 } 106 107 var r1 error 108 if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok { 109 r1 = rf(ctx, height) 110 } else { 111 r1 = ret.Error(1) 112 } 113 114 return r0, r1 115 } 116 117 // BlockByHash provides a mock function with given fields: ctx, hash 118 func (_m *Client) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error) { 119 ret := _m.Called(ctx, hash) 120 121 var r0 *coretypes.ResultBlock 122 if rf, ok := ret.Get(0).(func(context.Context, []byte) *coretypes.ResultBlock); ok { 123 r0 = rf(ctx, hash) 124 } else { 125 if ret.Get(0) != nil { 126 r0 = ret.Get(0).(*coretypes.ResultBlock) 127 } 128 } 129 130 var r1 error 131 if rf, ok := ret.Get(1).(func(context.Context, []byte) error); ok { 132 r1 = rf(ctx, hash) 133 } else { 134 r1 = ret.Error(1) 135 } 136 137 return r0, r1 138 } 139 140 // BlockResults provides a mock function with given fields: ctx, height 141 func (_m *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error) { 142 ret := _m.Called(ctx, height) 143 144 var r0 *coretypes.ResultBlockResults 145 if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultBlockResults); ok { 146 r0 = rf(ctx, height) 147 } else { 148 if ret.Get(0) != nil { 149 r0 = ret.Get(0).(*coretypes.ResultBlockResults) 150 } 151 } 152 153 var r1 error 154 if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok { 155 r1 = rf(ctx, height) 156 } else { 157 r1 = ret.Error(1) 158 } 159 160 return r0, r1 161 } 162 163 // BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy 164 func (_m *Client) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error) { 165 ret := _m.Called(ctx, query, page, perPage, orderBy) 166 167 var r0 *coretypes.ResultBlockSearch 168 if rf, ok := ret.Get(0).(func(context.Context, string, *int, *int, string) *coretypes.ResultBlockSearch); ok { 169 r0 = rf(ctx, query, page, perPage, orderBy) 170 } else { 171 if ret.Get(0) != nil { 172 r0 = ret.Get(0).(*coretypes.ResultBlockSearch) 173 } 174 } 175 176 var r1 error 177 if rf, ok := ret.Get(1).(func(context.Context, string, *int, *int, string) error); ok { 178 r1 = rf(ctx, query, page, perPage, orderBy) 179 } else { 180 r1 = ret.Error(1) 181 } 182 183 return r0, r1 184 } 185 186 // BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight 187 func (_m *Client) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error) { 188 ret := _m.Called(ctx, minHeight, maxHeight) 189 190 var r0 *coretypes.ResultBlockchainInfo 191 if rf, ok := ret.Get(0).(func(context.Context, int64, int64) *coretypes.ResultBlockchainInfo); ok { 192 r0 = rf(ctx, minHeight, maxHeight) 193 } else { 194 if ret.Get(0) != nil { 195 r0 = ret.Get(0).(*coretypes.ResultBlockchainInfo) 196 } 197 } 198 199 var r1 error 200 if rf, ok := ret.Get(1).(func(context.Context, int64, int64) error); ok { 201 r1 = rf(ctx, minHeight, maxHeight) 202 } else { 203 r1 = ret.Error(1) 204 } 205 206 return r0, r1 207 } 208 209 // BroadcastEvidence provides a mock function with given fields: _a0, _a1 210 func (_m *Client) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error) { 211 ret := _m.Called(_a0, _a1) 212 213 var r0 *coretypes.ResultBroadcastEvidence 214 if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) *coretypes.ResultBroadcastEvidence); ok { 215 r0 = rf(_a0, _a1) 216 } else { 217 if ret.Get(0) != nil { 218 r0 = ret.Get(0).(*coretypes.ResultBroadcastEvidence) 219 } 220 } 221 222 var r1 error 223 if rf, ok := ret.Get(1).(func(context.Context, types.Evidence) error); ok { 224 r1 = rf(_a0, _a1) 225 } else { 226 r1 = ret.Error(1) 227 } 228 229 return r0, r1 230 } 231 232 // BroadcastTxAsync provides a mock function with given fields: _a0, _a1 233 func (_m *Client) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error) { 234 ret := _m.Called(_a0, _a1) 235 236 var r0 *coretypes.ResultBroadcastTx 237 if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTx); ok { 238 r0 = rf(_a0, _a1) 239 } else { 240 if ret.Get(0) != nil { 241 r0 = ret.Get(0).(*coretypes.ResultBroadcastTx) 242 } 243 } 244 245 var r1 error 246 if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok { 247 r1 = rf(_a0, _a1) 248 } else { 249 r1 = ret.Error(1) 250 } 251 252 return r0, r1 253 } 254 255 // BroadcastTxCommit provides a mock function with given fields: _a0, _a1 256 func (_m *Client) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error) { 257 ret := _m.Called(_a0, _a1) 258 259 var r0 *coretypes.ResultBroadcastTxCommit 260 if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTxCommit); ok { 261 r0 = rf(_a0, _a1) 262 } else { 263 if ret.Get(0) != nil { 264 r0 = ret.Get(0).(*coretypes.ResultBroadcastTxCommit) 265 } 266 } 267 268 var r1 error 269 if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok { 270 r1 = rf(_a0, _a1) 271 } else { 272 r1 = ret.Error(1) 273 } 274 275 return r0, r1 276 } 277 278 // BroadcastTxSync provides a mock function with given fields: _a0, _a1 279 func (_m *Client) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error) { 280 ret := _m.Called(_a0, _a1) 281 282 var r0 *coretypes.ResultBroadcastTx 283 if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTx); ok { 284 r0 = rf(_a0, _a1) 285 } else { 286 if ret.Get(0) != nil { 287 r0 = ret.Get(0).(*coretypes.ResultBroadcastTx) 288 } 289 } 290 291 var r1 error 292 if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok { 293 r1 = rf(_a0, _a1) 294 } else { 295 r1 = ret.Error(1) 296 } 297 298 return r0, r1 299 } 300 301 // CheckTx provides a mock function with given fields: _a0, _a1 302 func (_m *Client) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error) { 303 ret := _m.Called(_a0, _a1) 304 305 var r0 *coretypes.ResultCheckTx 306 if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultCheckTx); ok { 307 r0 = rf(_a0, _a1) 308 } else { 309 if ret.Get(0) != nil { 310 r0 = ret.Get(0).(*coretypes.ResultCheckTx) 311 } 312 } 313 314 var r1 error 315 if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok { 316 r1 = rf(_a0, _a1) 317 } else { 318 r1 = ret.Error(1) 319 } 320 321 return r0, r1 322 } 323 324 // Commit provides a mock function with given fields: ctx, height 325 func (_m *Client) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error) { 326 ret := _m.Called(ctx, height) 327 328 var r0 *coretypes.ResultCommit 329 if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultCommit); ok { 330 r0 = rf(ctx, height) 331 } else { 332 if ret.Get(0) != nil { 333 r0 = ret.Get(0).(*coretypes.ResultCommit) 334 } 335 } 336 337 var r1 error 338 if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok { 339 r1 = rf(ctx, height) 340 } else { 341 r1 = ret.Error(1) 342 } 343 344 return r0, r1 345 } 346 347 // ConsensusParams provides a mock function with given fields: ctx, height 348 func (_m *Client) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error) { 349 ret := _m.Called(ctx, height) 350 351 var r0 *coretypes.ResultConsensusParams 352 if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultConsensusParams); ok { 353 r0 = rf(ctx, height) 354 } else { 355 if ret.Get(0) != nil { 356 r0 = ret.Get(0).(*coretypes.ResultConsensusParams) 357 } 358 } 359 360 var r1 error 361 if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok { 362 r1 = rf(ctx, height) 363 } else { 364 r1 = ret.Error(1) 365 } 366 367 return r0, r1 368 } 369 370 // ConsensusState provides a mock function with given fields: _a0 371 func (_m *Client) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error) { 372 ret := _m.Called(_a0) 373 374 var r0 *coretypes.ResultConsensusState 375 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultConsensusState); ok { 376 r0 = rf(_a0) 377 } else { 378 if ret.Get(0) != nil { 379 r0 = ret.Get(0).(*coretypes.ResultConsensusState) 380 } 381 } 382 383 var r1 error 384 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 385 r1 = rf(_a0) 386 } else { 387 r1 = ret.Error(1) 388 } 389 390 return r0, r1 391 } 392 393 // DumpConsensusState provides a mock function with given fields: _a0 394 func (_m *Client) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error) { 395 ret := _m.Called(_a0) 396 397 var r0 *coretypes.ResultDumpConsensusState 398 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultDumpConsensusState); ok { 399 r0 = rf(_a0) 400 } else { 401 if ret.Get(0) != nil { 402 r0 = ret.Get(0).(*coretypes.ResultDumpConsensusState) 403 } 404 } 405 406 var r1 error 407 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 408 r1 = rf(_a0) 409 } else { 410 r1 = ret.Error(1) 411 } 412 413 return r0, r1 414 } 415 416 // Genesis provides a mock function with given fields: _a0 417 func (_m *Client) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error) { 418 ret := _m.Called(_a0) 419 420 var r0 *coretypes.ResultGenesis 421 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultGenesis); ok { 422 r0 = rf(_a0) 423 } else { 424 if ret.Get(0) != nil { 425 r0 = ret.Get(0).(*coretypes.ResultGenesis) 426 } 427 } 428 429 var r1 error 430 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 431 r1 = rf(_a0) 432 } else { 433 r1 = ret.Error(1) 434 } 435 436 return r0, r1 437 } 438 439 // Health provides a mock function with given fields: _a0 440 func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error) { 441 ret := _m.Called(_a0) 442 443 var r0 *coretypes.ResultHealth 444 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultHealth); ok { 445 r0 = rf(_a0) 446 } else { 447 if ret.Get(0) != nil { 448 r0 = ret.Get(0).(*coretypes.ResultHealth) 449 } 450 } 451 452 var r1 error 453 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 454 r1 = rf(_a0) 455 } else { 456 r1 = ret.Error(1) 457 } 458 459 return r0, r1 460 } 461 462 // IsRunning provides a mock function with given fields: 463 func (_m *Client) IsRunning() bool { 464 ret := _m.Called() 465 466 var r0 bool 467 if rf, ok := ret.Get(0).(func() bool); ok { 468 r0 = rf() 469 } else { 470 r0 = ret.Get(0).(bool) 471 } 472 473 return r0 474 } 475 476 // NetInfo provides a mock function with given fields: _a0 477 func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error) { 478 ret := _m.Called(_a0) 479 480 var r0 *coretypes.ResultNetInfo 481 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultNetInfo); ok { 482 r0 = rf(_a0) 483 } else { 484 if ret.Get(0) != nil { 485 r0 = ret.Get(0).(*coretypes.ResultNetInfo) 486 } 487 } 488 489 var r1 error 490 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 491 r1 = rf(_a0) 492 } else { 493 r1 = ret.Error(1) 494 } 495 496 return r0, r1 497 } 498 499 // NumUnconfirmedTxs provides a mock function with given fields: _a0 500 func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error) { 501 ret := _m.Called(_a0) 502 503 var r0 *coretypes.ResultUnconfirmedTxs 504 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultUnconfirmedTxs); ok { 505 r0 = rf(_a0) 506 } else { 507 if ret.Get(0) != nil { 508 r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs) 509 } 510 } 511 512 var r1 error 513 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 514 r1 = rf(_a0) 515 } else { 516 r1 = ret.Error(1) 517 } 518 519 return r0, r1 520 } 521 522 // OnReset provides a mock function with given fields: 523 func (_m *Client) OnReset() error { 524 ret := _m.Called() 525 526 var r0 error 527 if rf, ok := ret.Get(0).(func() error); ok { 528 r0 = rf() 529 } else { 530 r0 = ret.Error(0) 531 } 532 533 return r0 534 } 535 536 // OnStart provides a mock function with given fields: 537 func (_m *Client) OnStart() error { 538 ret := _m.Called() 539 540 var r0 error 541 if rf, ok := ret.Get(0).(func() error); ok { 542 r0 = rf() 543 } else { 544 r0 = ret.Error(0) 545 } 546 547 return r0 548 } 549 550 // OnStop provides a mock function with given fields: 551 func (_m *Client) OnStop() { 552 _m.Called() 553 } 554 555 // Quit provides a mock function with given fields: 556 func (_m *Client) Quit() <-chan struct{} { 557 ret := _m.Called() 558 559 var r0 <-chan struct{} 560 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 561 r0 = rf() 562 } else { 563 if ret.Get(0) != nil { 564 r0 = ret.Get(0).(<-chan struct{}) 565 } 566 } 567 568 return r0 569 } 570 571 // Reset provides a mock function with given fields: 572 func (_m *Client) Reset() error { 573 ret := _m.Called() 574 575 var r0 error 576 if rf, ok := ret.Get(0).(func() error); ok { 577 r0 = rf() 578 } else { 579 r0 = ret.Error(0) 580 } 581 582 return r0 583 } 584 585 // SetLogger provides a mock function with given fields: _a0 586 func (_m *Client) SetLogger(_a0 log.Logger) { 587 _m.Called(_a0) 588 } 589 590 // Start provides a mock function with given fields: 591 func (_m *Client) Start() error { 592 ret := _m.Called() 593 594 var r0 error 595 if rf, ok := ret.Get(0).(func() error); ok { 596 r0 = rf() 597 } else { 598 r0 = ret.Error(0) 599 } 600 601 return r0 602 } 603 604 // Status provides a mock function with given fields: _a0 605 func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error) { 606 ret := _m.Called(_a0) 607 608 var r0 *coretypes.ResultStatus 609 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultStatus); ok { 610 r0 = rf(_a0) 611 } else { 612 if ret.Get(0) != nil { 613 r0 = ret.Get(0).(*coretypes.ResultStatus) 614 } 615 } 616 617 var r1 error 618 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 619 r1 = rf(_a0) 620 } else { 621 r1 = ret.Error(1) 622 } 623 624 return r0, r1 625 } 626 627 // Stop provides a mock function with given fields: 628 func (_m *Client) Stop() error { 629 ret := _m.Called() 630 631 var r0 error 632 if rf, ok := ret.Get(0).(func() error); ok { 633 r0 = rf() 634 } else { 635 r0 = ret.Error(0) 636 } 637 638 return r0 639 } 640 641 // String provides a mock function with given fields: 642 func (_m *Client) String() string { 643 ret := _m.Called() 644 645 var r0 string 646 if rf, ok := ret.Get(0).(func() string); ok { 647 r0 = rf() 648 } else { 649 r0 = ret.Get(0).(string) 650 } 651 652 return r0 653 } 654 655 // Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity 656 func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) { 657 _va := make([]interface{}, len(outCapacity)) 658 for _i := range outCapacity { 659 _va[_i] = outCapacity[_i] 660 } 661 var _ca []interface{} 662 _ca = append(_ca, ctx, subscriber, query) 663 _ca = append(_ca, _va...) 664 ret := _m.Called(_ca...) 665 666 var r0 <-chan coretypes.ResultEvent 667 if rf, ok := ret.Get(0).(func(context.Context, string, string, ...int) <-chan coretypes.ResultEvent); ok { 668 r0 = rf(ctx, subscriber, query, outCapacity...) 669 } else { 670 if ret.Get(0) != nil { 671 r0 = ret.Get(0).(<-chan coretypes.ResultEvent) 672 } 673 } 674 675 var r1 error 676 if rf, ok := ret.Get(1).(func(context.Context, string, string, ...int) error); ok { 677 r1 = rf(ctx, subscriber, query, outCapacity...) 678 } else { 679 r1 = ret.Error(1) 680 } 681 682 return r0, r1 683 } 684 685 // Tx provides a mock function with given fields: ctx, hash, prove 686 func (_m *Client) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) { 687 ret := _m.Called(ctx, hash, prove) 688 689 var r0 *coretypes.ResultTx 690 if rf, ok := ret.Get(0).(func(context.Context, []byte, bool) *coretypes.ResultTx); ok { 691 r0 = rf(ctx, hash, prove) 692 } else { 693 if ret.Get(0) != nil { 694 r0 = ret.Get(0).(*coretypes.ResultTx) 695 } 696 } 697 698 var r1 error 699 if rf, ok := ret.Get(1).(func(context.Context, []byte, bool) error); ok { 700 r1 = rf(ctx, hash, prove) 701 } else { 702 r1 = ret.Error(1) 703 } 704 705 return r0, r1 706 } 707 708 // TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy 709 func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) { 710 ret := _m.Called(ctx, query, prove, page, perPage, orderBy) 711 712 var r0 *coretypes.ResultTxSearch 713 if rf, ok := ret.Get(0).(func(context.Context, string, bool, *int, *int, string) *coretypes.ResultTxSearch); ok { 714 r0 = rf(ctx, query, prove, page, perPage, orderBy) 715 } else { 716 if ret.Get(0) != nil { 717 r0 = ret.Get(0).(*coretypes.ResultTxSearch) 718 } 719 } 720 721 var r1 error 722 if rf, ok := ret.Get(1).(func(context.Context, string, bool, *int, *int, string) error); ok { 723 r1 = rf(ctx, query, prove, page, perPage, orderBy) 724 } else { 725 r1 = ret.Error(1) 726 } 727 728 return r0, r1 729 } 730 731 // UnconfirmedTxs provides a mock function with given fields: ctx, limit 732 func (_m *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error) { 733 ret := _m.Called(ctx, limit) 734 735 var r0 *coretypes.ResultUnconfirmedTxs 736 if rf, ok := ret.Get(0).(func(context.Context, *int) *coretypes.ResultUnconfirmedTxs); ok { 737 r0 = rf(ctx, limit) 738 } else { 739 if ret.Get(0) != nil { 740 r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs) 741 } 742 } 743 744 var r1 error 745 if rf, ok := ret.Get(1).(func(context.Context, *int) error); ok { 746 r1 = rf(ctx, limit) 747 } else { 748 r1 = ret.Error(1) 749 } 750 751 return r0, r1 752 } 753 754 // Unsubscribe provides a mock function with given fields: ctx, subscriber, query 755 func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error { 756 ret := _m.Called(ctx, subscriber, query) 757 758 var r0 error 759 if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { 760 r0 = rf(ctx, subscriber, query) 761 } else { 762 r0 = ret.Error(0) 763 } 764 765 return r0 766 } 767 768 // UnsubscribeAll provides a mock function with given fields: ctx, subscriber 769 func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error { 770 ret := _m.Called(ctx, subscriber) 771 772 var r0 error 773 if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { 774 r0 = rf(ctx, subscriber) 775 } else { 776 r0 = ret.Error(0) 777 } 778 779 return r0 780 } 781 782 // Validators provides a mock function with given fields: ctx, height, page, perPage 783 func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) { 784 ret := _m.Called(ctx, height, page, perPage) 785 786 var r0 *coretypes.ResultValidators 787 if rf, ok := ret.Get(0).(func(context.Context, *int64, *int, *int) *coretypes.ResultValidators); ok { 788 r0 = rf(ctx, height, page, perPage) 789 } else { 790 if ret.Get(0) != nil { 791 r0 = ret.Get(0).(*coretypes.ResultValidators) 792 } 793 } 794 795 var r1 error 796 if rf, ok := ret.Get(1).(func(context.Context, *int64, *int, *int) error); ok { 797 r1 = rf(ctx, height, page, perPage) 798 } else { 799 r1 = ret.Error(1) 800 } 801 802 return r0, r1 803 }