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.

774 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. // Header provides a mock function with given fields: ctx, height
  377. func (_m *Client) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error) {
  378. ret := _m.Called(ctx, height)
  379. var r0 *coretypes.ResultHeader
  380. if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultHeader); ok {
  381. r0 = rf(ctx, height)
  382. } else {
  383. if ret.Get(0) != nil {
  384. r0 = ret.Get(0).(*coretypes.ResultHeader)
  385. }
  386. }
  387. var r1 error
  388. if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
  389. r1 = rf(ctx, height)
  390. } else {
  391. r1 = ret.Error(1)
  392. }
  393. return r0, r1
  394. }
  395. // HeaderByHash provides a mock function with given fields: ctx, hash
  396. func (_m *Client) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, error) {
  397. ret := _m.Called(ctx, hash)
  398. var r0 *coretypes.ResultHeader
  399. if rf, ok := ret.Get(0).(func(context.Context, bytes.HexBytes) *coretypes.ResultHeader); ok {
  400. r0 = rf(ctx, hash)
  401. } else {
  402. if ret.Get(0) != nil {
  403. r0 = ret.Get(0).(*coretypes.ResultHeader)
  404. }
  405. }
  406. var r1 error
  407. if rf, ok := ret.Get(1).(func(context.Context, bytes.HexBytes) error); ok {
  408. r1 = rf(ctx, hash)
  409. } else {
  410. r1 = ret.Error(1)
  411. }
  412. return r0, r1
  413. }
  414. // Health provides a mock function with given fields: _a0
  415. func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error) {
  416. ret := _m.Called(_a0)
  417. var r0 *coretypes.ResultHealth
  418. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultHealth); ok {
  419. r0 = rf(_a0)
  420. } else {
  421. if ret.Get(0) != nil {
  422. r0 = ret.Get(0).(*coretypes.ResultHealth)
  423. }
  424. }
  425. var r1 error
  426. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  427. r1 = rf(_a0)
  428. } else {
  429. r1 = ret.Error(1)
  430. }
  431. return r0, r1
  432. }
  433. // NetInfo provides a mock function with given fields: _a0
  434. func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error) {
  435. ret := _m.Called(_a0)
  436. var r0 *coretypes.ResultNetInfo
  437. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultNetInfo); ok {
  438. r0 = rf(_a0)
  439. } else {
  440. if ret.Get(0) != nil {
  441. r0 = ret.Get(0).(*coretypes.ResultNetInfo)
  442. }
  443. }
  444. var r1 error
  445. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  446. r1 = rf(_a0)
  447. } else {
  448. r1 = ret.Error(1)
  449. }
  450. return r0, r1
  451. }
  452. // NumUnconfirmedTxs provides a mock function with given fields: _a0
  453. func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error) {
  454. ret := _m.Called(_a0)
  455. var r0 *coretypes.ResultUnconfirmedTxs
  456. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultUnconfirmedTxs); ok {
  457. r0 = rf(_a0)
  458. } else {
  459. if ret.Get(0) != nil {
  460. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  461. }
  462. }
  463. var r1 error
  464. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  465. r1 = rf(_a0)
  466. } else {
  467. r1 = ret.Error(1)
  468. }
  469. return r0, r1
  470. }
  471. // RemoveTx provides a mock function with given fields: _a0, _a1
  472. func (_m *Client) RemoveTx(_a0 context.Context, _a1 types.TxKey) error {
  473. ret := _m.Called(_a0, _a1)
  474. var r0 error
  475. if rf, ok := ret.Get(0).(func(context.Context, types.TxKey) error); ok {
  476. r0 = rf(_a0, _a1)
  477. } else {
  478. r0 = ret.Error(0)
  479. }
  480. return r0
  481. }
  482. // Start provides a mock function with given fields: _a0
  483. func (_m *Client) Start(_a0 context.Context) error {
  484. ret := _m.Called(_a0)
  485. var r0 error
  486. if rf, ok := ret.Get(0).(func(context.Context) error); ok {
  487. r0 = rf(_a0)
  488. } else {
  489. r0 = ret.Error(0)
  490. }
  491. return r0
  492. }
  493. // Status provides a mock function with given fields: _a0
  494. func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error) {
  495. ret := _m.Called(_a0)
  496. var r0 *coretypes.ResultStatus
  497. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultStatus); ok {
  498. r0 = rf(_a0)
  499. } else {
  500. if ret.Get(0) != nil {
  501. r0 = ret.Get(0).(*coretypes.ResultStatus)
  502. }
  503. }
  504. var r1 error
  505. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  506. r1 = rf(_a0)
  507. } else {
  508. r1 = ret.Error(1)
  509. }
  510. return r0, r1
  511. }
  512. // Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity
  513. func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) {
  514. _va := make([]interface{}, len(outCapacity))
  515. for _i := range outCapacity {
  516. _va[_i] = outCapacity[_i]
  517. }
  518. var _ca []interface{}
  519. _ca = append(_ca, ctx, subscriber, query)
  520. _ca = append(_ca, _va...)
  521. ret := _m.Called(_ca...)
  522. var r0 <-chan coretypes.ResultEvent
  523. if rf, ok := ret.Get(0).(func(context.Context, string, string, ...int) <-chan coretypes.ResultEvent); ok {
  524. r0 = rf(ctx, subscriber, query, outCapacity...)
  525. } else {
  526. if ret.Get(0) != nil {
  527. r0 = ret.Get(0).(<-chan coretypes.ResultEvent)
  528. }
  529. }
  530. var r1 error
  531. if rf, ok := ret.Get(1).(func(context.Context, string, string, ...int) error); ok {
  532. r1 = rf(ctx, subscriber, query, outCapacity...)
  533. } else {
  534. r1 = ret.Error(1)
  535. }
  536. return r0, r1
  537. }
  538. // Tx provides a mock function with given fields: ctx, hash, prove
  539. func (_m *Client) Tx(ctx context.Context, hash bytes.HexBytes, prove bool) (*coretypes.ResultTx, error) {
  540. ret := _m.Called(ctx, hash, prove)
  541. var r0 *coretypes.ResultTx
  542. if rf, ok := ret.Get(0).(func(context.Context, bytes.HexBytes, bool) *coretypes.ResultTx); ok {
  543. r0 = rf(ctx, hash, prove)
  544. } else {
  545. if ret.Get(0) != nil {
  546. r0 = ret.Get(0).(*coretypes.ResultTx)
  547. }
  548. }
  549. var r1 error
  550. if rf, ok := ret.Get(1).(func(context.Context, bytes.HexBytes, bool) error); ok {
  551. r1 = rf(ctx, hash, prove)
  552. } else {
  553. r1 = ret.Error(1)
  554. }
  555. return r0, r1
  556. }
  557. // TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy
  558. func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) {
  559. ret := _m.Called(ctx, query, prove, page, perPage, orderBy)
  560. var r0 *coretypes.ResultTxSearch
  561. if rf, ok := ret.Get(0).(func(context.Context, string, bool, *int, *int, string) *coretypes.ResultTxSearch); ok {
  562. r0 = rf(ctx, query, prove, page, perPage, orderBy)
  563. } else {
  564. if ret.Get(0) != nil {
  565. r0 = ret.Get(0).(*coretypes.ResultTxSearch)
  566. }
  567. }
  568. var r1 error
  569. if rf, ok := ret.Get(1).(func(context.Context, string, bool, *int, *int, string) error); ok {
  570. r1 = rf(ctx, query, prove, page, perPage, orderBy)
  571. } else {
  572. r1 = ret.Error(1)
  573. }
  574. return r0, r1
  575. }
  576. // UnconfirmedTxs provides a mock function with given fields: ctx, page, perPage
  577. func (_m *Client) UnconfirmedTxs(ctx context.Context, page *int, perPage *int) (*coretypes.ResultUnconfirmedTxs, error) {
  578. ret := _m.Called(ctx, page, perPage)
  579. var r0 *coretypes.ResultUnconfirmedTxs
  580. if rf, ok := ret.Get(0).(func(context.Context, *int, *int) *coretypes.ResultUnconfirmedTxs); ok {
  581. r0 = rf(ctx, page, perPage)
  582. } else {
  583. if ret.Get(0) != nil {
  584. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  585. }
  586. }
  587. var r1 error
  588. if rf, ok := ret.Get(1).(func(context.Context, *int, *int) error); ok {
  589. r1 = rf(ctx, page, perPage)
  590. } else {
  591. r1 = ret.Error(1)
  592. }
  593. return r0, r1
  594. }
  595. // Unsubscribe provides a mock function with given fields: ctx, subscriber, query
  596. func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error {
  597. ret := _m.Called(ctx, subscriber, query)
  598. var r0 error
  599. if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
  600. r0 = rf(ctx, subscriber, query)
  601. } else {
  602. r0 = ret.Error(0)
  603. }
  604. return r0
  605. }
  606. // UnsubscribeAll provides a mock function with given fields: ctx, subscriber
  607. func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error {
  608. ret := _m.Called(ctx, subscriber)
  609. var r0 error
  610. if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
  611. r0 = rf(ctx, subscriber)
  612. } else {
  613. r0 = ret.Error(0)
  614. }
  615. return r0
  616. }
  617. // Validators provides a mock function with given fields: ctx, height, page, perPage
  618. func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) {
  619. ret := _m.Called(ctx, height, page, perPage)
  620. var r0 *coretypes.ResultValidators
  621. if rf, ok := ret.Get(0).(func(context.Context, *int64, *int, *int) *coretypes.ResultValidators); ok {
  622. r0 = rf(ctx, height, page, perPage)
  623. } else {
  624. if ret.Get(0) != nil {
  625. r0 = ret.Get(0).(*coretypes.ResultValidators)
  626. }
  627. }
  628. var r1 error
  629. if rf, ok := ret.Get(1).(func(context.Context, *int64, *int, *int) error); ok {
  630. r1 = rf(ctx, height, page, perPage)
  631. } else {
  632. r1 = ret.Error(1)
  633. }
  634. return r0, r1
  635. }