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.

756 lines
20 KiB

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