github.com/Oyster-zx/tendermint@v0.34.24-fork/rpc/client/mocks/client.go (about) 1 // Code generated by mockery 2.7.4. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 bytes "github.com/tendermint/tendermint/libs/bytes" 7 client "github.com/tendermint/tendermint/rpc/client" 8 9 context "context" 10 11 coretypes "github.com/tendermint/tendermint/rpc/core/types" 12 13 log "github.com/tendermint/tendermint/libs/log" 14 15 mock "github.com/stretchr/testify/mock" 16 17 types "github.com/tendermint/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 // GenesisChunked provides a mock function with given fields: _a0, _a1 440 func (_m *Client) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error) { 441 ret := _m.Called(_a0, _a1) 442 443 var r0 *coretypes.ResultGenesisChunk 444 if rf, ok := ret.Get(0).(func(context.Context, uint) *coretypes.ResultGenesisChunk); ok { 445 r0 = rf(_a0, _a1) 446 } else { 447 if ret.Get(0) != nil { 448 r0 = ret.Get(0).(*coretypes.ResultGenesisChunk) 449 } 450 } 451 452 var r1 error 453 if rf, ok := ret.Get(1).(func(context.Context, uint) error); ok { 454 r1 = rf(_a0, _a1) 455 } else { 456 r1 = ret.Error(1) 457 } 458 459 return r0, r1 460 } 461 462 // Health provides a mock function with given fields: _a0 463 func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error) { 464 ret := _m.Called(_a0) 465 466 var r0 *coretypes.ResultHealth 467 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultHealth); ok { 468 r0 = rf(_a0) 469 } else { 470 if ret.Get(0) != nil { 471 r0 = ret.Get(0).(*coretypes.ResultHealth) 472 } 473 } 474 475 var r1 error 476 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 477 r1 = rf(_a0) 478 } else { 479 r1 = ret.Error(1) 480 } 481 482 return r0, r1 483 } 484 485 // IsRunning provides a mock function with given fields: 486 func (_m *Client) IsRunning() bool { 487 ret := _m.Called() 488 489 var r0 bool 490 if rf, ok := ret.Get(0).(func() bool); ok { 491 r0 = rf() 492 } else { 493 r0 = ret.Get(0).(bool) 494 } 495 496 return r0 497 } 498 499 // NetInfo provides a mock function with given fields: _a0 500 func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error) { 501 ret := _m.Called(_a0) 502 503 var r0 *coretypes.ResultNetInfo 504 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultNetInfo); ok { 505 r0 = rf(_a0) 506 } else { 507 if ret.Get(0) != nil { 508 r0 = ret.Get(0).(*coretypes.ResultNetInfo) 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 // NumUnconfirmedTxs provides a mock function with given fields: _a0 523 func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error) { 524 ret := _m.Called(_a0) 525 526 var r0 *coretypes.ResultUnconfirmedTxs 527 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultUnconfirmedTxs); ok { 528 r0 = rf(_a0) 529 } else { 530 if ret.Get(0) != nil { 531 r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs) 532 } 533 } 534 535 var r1 error 536 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 537 r1 = rf(_a0) 538 } else { 539 r1 = ret.Error(1) 540 } 541 542 return r0, r1 543 } 544 545 // OnReset provides a mock function with given fields: 546 func (_m *Client) OnReset() error { 547 ret := _m.Called() 548 549 var r0 error 550 if rf, ok := ret.Get(0).(func() error); ok { 551 r0 = rf() 552 } else { 553 r0 = ret.Error(0) 554 } 555 556 return r0 557 } 558 559 // OnStart provides a mock function with given fields: 560 func (_m *Client) OnStart() error { 561 ret := _m.Called() 562 563 var r0 error 564 if rf, ok := ret.Get(0).(func() error); ok { 565 r0 = rf() 566 } else { 567 r0 = ret.Error(0) 568 } 569 570 return r0 571 } 572 573 // OnStop provides a mock function with given fields: 574 func (_m *Client) OnStop() { 575 _m.Called() 576 } 577 578 // Quit provides a mock function with given fields: 579 func (_m *Client) Quit() <-chan struct{} { 580 ret := _m.Called() 581 582 var r0 <-chan struct{} 583 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 584 r0 = rf() 585 } else { 586 if ret.Get(0) != nil { 587 r0 = ret.Get(0).(<-chan struct{}) 588 } 589 } 590 591 return r0 592 } 593 594 // Reset provides a mock function with given fields: 595 func (_m *Client) Reset() error { 596 ret := _m.Called() 597 598 var r0 error 599 if rf, ok := ret.Get(0).(func() error); ok { 600 r0 = rf() 601 } else { 602 r0 = ret.Error(0) 603 } 604 605 return r0 606 } 607 608 // SetLogger provides a mock function with given fields: _a0 609 func (_m *Client) SetLogger(_a0 log.Logger) { 610 _m.Called(_a0) 611 } 612 613 // Start provides a mock function with given fields: 614 func (_m *Client) Start() error { 615 ret := _m.Called() 616 617 var r0 error 618 if rf, ok := ret.Get(0).(func() error); ok { 619 r0 = rf() 620 } else { 621 r0 = ret.Error(0) 622 } 623 624 return r0 625 } 626 627 // Status provides a mock function with given fields: _a0 628 func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error) { 629 ret := _m.Called(_a0) 630 631 var r0 *coretypes.ResultStatus 632 if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultStatus); ok { 633 r0 = rf(_a0) 634 } else { 635 if ret.Get(0) != nil { 636 r0 = ret.Get(0).(*coretypes.ResultStatus) 637 } 638 } 639 640 var r1 error 641 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 642 r1 = rf(_a0) 643 } else { 644 r1 = ret.Error(1) 645 } 646 647 return r0, r1 648 } 649 650 // Stop provides a mock function with given fields: 651 func (_m *Client) Stop() error { 652 ret := _m.Called() 653 654 var r0 error 655 if rf, ok := ret.Get(0).(func() error); ok { 656 r0 = rf() 657 } else { 658 r0 = ret.Error(0) 659 } 660 661 return r0 662 } 663 664 // String provides a mock function with given fields: 665 func (_m *Client) String() string { 666 ret := _m.Called() 667 668 var r0 string 669 if rf, ok := ret.Get(0).(func() string); ok { 670 r0 = rf() 671 } else { 672 r0 = ret.Get(0).(string) 673 } 674 675 return r0 676 } 677 678 // Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity 679 func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) { 680 _va := make([]interface{}, len(outCapacity)) 681 for _i := range outCapacity { 682 _va[_i] = outCapacity[_i] 683 } 684 var _ca []interface{} 685 _ca = append(_ca, ctx, subscriber, query) 686 _ca = append(_ca, _va...) 687 ret := _m.Called(_ca...) 688 689 var r0 <-chan coretypes.ResultEvent 690 if rf, ok := ret.Get(0).(func(context.Context, string, string, ...int) <-chan coretypes.ResultEvent); ok { 691 r0 = rf(ctx, subscriber, query, outCapacity...) 692 } else { 693 if ret.Get(0) != nil { 694 r0 = ret.Get(0).(<-chan coretypes.ResultEvent) 695 } 696 } 697 698 var r1 error 699 if rf, ok := ret.Get(1).(func(context.Context, string, string, ...int) error); ok { 700 r1 = rf(ctx, subscriber, query, outCapacity...) 701 } else { 702 r1 = ret.Error(1) 703 } 704 705 return r0, r1 706 } 707 708 // Tx provides a mock function with given fields: ctx, hash, prove 709 func (_m *Client) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) { 710 ret := _m.Called(ctx, hash, prove) 711 712 var r0 *coretypes.ResultTx 713 if rf, ok := ret.Get(0).(func(context.Context, []byte, bool) *coretypes.ResultTx); ok { 714 r0 = rf(ctx, hash, prove) 715 } else { 716 if ret.Get(0) != nil { 717 r0 = ret.Get(0).(*coretypes.ResultTx) 718 } 719 } 720 721 var r1 error 722 if rf, ok := ret.Get(1).(func(context.Context, []byte, bool) error); ok { 723 r1 = rf(ctx, hash, prove) 724 } else { 725 r1 = ret.Error(1) 726 } 727 728 return r0, r1 729 } 730 731 // TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy 732 func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) { 733 ret := _m.Called(ctx, query, prove, page, perPage, orderBy) 734 735 var r0 *coretypes.ResultTxSearch 736 if rf, ok := ret.Get(0).(func(context.Context, string, bool, *int, *int, string) *coretypes.ResultTxSearch); ok { 737 r0 = rf(ctx, query, prove, page, perPage, orderBy) 738 } else { 739 if ret.Get(0) != nil { 740 r0 = ret.Get(0).(*coretypes.ResultTxSearch) 741 } 742 } 743 744 var r1 error 745 if rf, ok := ret.Get(1).(func(context.Context, string, bool, *int, *int, string) error); ok { 746 r1 = rf(ctx, query, prove, page, perPage, orderBy) 747 } else { 748 r1 = ret.Error(1) 749 } 750 751 return r0, r1 752 } 753 754 // UnconfirmedTxs provides a mock function with given fields: ctx, limit 755 func (_m *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error) { 756 ret := _m.Called(ctx, limit) 757 758 var r0 *coretypes.ResultUnconfirmedTxs 759 if rf, ok := ret.Get(0).(func(context.Context, *int) *coretypes.ResultUnconfirmedTxs); ok { 760 r0 = rf(ctx, limit) 761 } else { 762 if ret.Get(0) != nil { 763 r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs) 764 } 765 } 766 767 var r1 error 768 if rf, ok := ret.Get(1).(func(context.Context, *int) error); ok { 769 r1 = rf(ctx, limit) 770 } else { 771 r1 = ret.Error(1) 772 } 773 774 return r0, r1 775 } 776 777 // Unsubscribe provides a mock function with given fields: ctx, subscriber, query 778 func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error { 779 ret := _m.Called(ctx, subscriber, query) 780 781 var r0 error 782 if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { 783 r0 = rf(ctx, subscriber, query) 784 } else { 785 r0 = ret.Error(0) 786 } 787 788 return r0 789 } 790 791 // UnsubscribeAll provides a mock function with given fields: ctx, subscriber 792 func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error { 793 ret := _m.Called(ctx, subscriber) 794 795 var r0 error 796 if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { 797 r0 = rf(ctx, subscriber) 798 } else { 799 r0 = ret.Error(0) 800 } 801 802 return r0 803 } 804 805 // Validators provides a mock function with given fields: ctx, height, page, perPage 806 func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) { 807 ret := _m.Called(ctx, height, page, perPage) 808 809 var r0 *coretypes.ResultValidators 810 if rf, ok := ret.Get(0).(func(context.Context, *int64, *int, *int) *coretypes.ResultValidators); ok { 811 r0 = rf(ctx, height, page, perPage) 812 } else { 813 if ret.Get(0) != nil { 814 r0 = ret.Get(0).(*coretypes.ResultValidators) 815 } 816 } 817 818 var r1 error 819 if rf, ok := ret.Get(1).(func(context.Context, *int64, *int, *int) error); ok { 820 r1 = rf(ctx, height, page, perPage) 821 } else { 822 r1 = ret.Error(1) 823 } 824 825 return r0, r1 826 }