You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

780 lines
19 KiB

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