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.

788 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. // IsRunning provides a mock function with given fields:
  434. func (_m *Client) IsRunning() bool {
  435. ret := _m.Called()
  436. var r0 bool
  437. if rf, ok := ret.Get(0).(func() bool); ok {
  438. r0 = rf()
  439. } else {
  440. r0 = ret.Get(0).(bool)
  441. }
  442. return r0
  443. }
  444. // NetInfo provides a mock function with given fields: _a0
  445. func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error) {
  446. ret := _m.Called(_a0)
  447. var r0 *coretypes.ResultNetInfo
  448. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultNetInfo); ok {
  449. r0 = rf(_a0)
  450. } else {
  451. if ret.Get(0) != nil {
  452. r0 = ret.Get(0).(*coretypes.ResultNetInfo)
  453. }
  454. }
  455. var r1 error
  456. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  457. r1 = rf(_a0)
  458. } else {
  459. r1 = ret.Error(1)
  460. }
  461. return r0, r1
  462. }
  463. // NumUnconfirmedTxs provides a mock function with given fields: _a0
  464. func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error) {
  465. ret := _m.Called(_a0)
  466. var r0 *coretypes.ResultUnconfirmedTxs
  467. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultUnconfirmedTxs); ok {
  468. r0 = rf(_a0)
  469. } else {
  470. if ret.Get(0) != nil {
  471. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  472. }
  473. }
  474. var r1 error
  475. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  476. r1 = rf(_a0)
  477. } else {
  478. r1 = ret.Error(1)
  479. }
  480. return r0, r1
  481. }
  482. // RemoveTx provides a mock function with given fields: _a0, _a1
  483. func (_m *Client) RemoveTx(_a0 context.Context, _a1 types.TxKey) error {
  484. ret := _m.Called(_a0, _a1)
  485. var r0 error
  486. if rf, ok := ret.Get(0).(func(context.Context, types.TxKey) error); ok {
  487. r0 = rf(_a0, _a1)
  488. } else {
  489. r0 = ret.Error(0)
  490. }
  491. return r0
  492. }
  493. // Start provides a mock function with given fields: _a0
  494. func (_m *Client) Start(_a0 context.Context) error {
  495. ret := _m.Called(_a0)
  496. var r0 error
  497. if rf, ok := ret.Get(0).(func(context.Context) error); ok {
  498. r0 = rf(_a0)
  499. } else {
  500. r0 = ret.Error(0)
  501. }
  502. return r0
  503. }
  504. // Status provides a mock function with given fields: _a0
  505. func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error) {
  506. ret := _m.Called(_a0)
  507. var r0 *coretypes.ResultStatus
  508. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultStatus); ok {
  509. r0 = rf(_a0)
  510. } else {
  511. if ret.Get(0) != nil {
  512. r0 = ret.Get(0).(*coretypes.ResultStatus)
  513. }
  514. }
  515. var r1 error
  516. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  517. r1 = rf(_a0)
  518. } else {
  519. r1 = ret.Error(1)
  520. }
  521. return r0, r1
  522. }
  523. // Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity
  524. func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) {
  525. _va := make([]interface{}, len(outCapacity))
  526. for _i := range outCapacity {
  527. _va[_i] = outCapacity[_i]
  528. }
  529. var _ca []interface{}
  530. _ca = append(_ca, ctx, subscriber, query)
  531. _ca = append(_ca, _va...)
  532. ret := _m.Called(_ca...)
  533. var r0 <-chan coretypes.ResultEvent
  534. if rf, ok := ret.Get(0).(func(context.Context, string, string, ...int) <-chan coretypes.ResultEvent); ok {
  535. r0 = rf(ctx, subscriber, query, outCapacity...)
  536. } else {
  537. if ret.Get(0) != nil {
  538. r0 = ret.Get(0).(<-chan coretypes.ResultEvent)
  539. }
  540. }
  541. var r1 error
  542. if rf, ok := ret.Get(1).(func(context.Context, string, string, ...int) error); ok {
  543. r1 = rf(ctx, subscriber, query, outCapacity...)
  544. } else {
  545. r1 = ret.Error(1)
  546. }
  547. return r0, r1
  548. }
  549. // Tx provides a mock function with given fields: ctx, hash, prove
  550. func (_m *Client) Tx(ctx context.Context, hash bytes.HexBytes, prove bool) (*coretypes.ResultTx, error) {
  551. ret := _m.Called(ctx, hash, prove)
  552. var r0 *coretypes.ResultTx
  553. if rf, ok := ret.Get(0).(func(context.Context, bytes.HexBytes, bool) *coretypes.ResultTx); ok {
  554. r0 = rf(ctx, hash, prove)
  555. } else {
  556. if ret.Get(0) != nil {
  557. r0 = ret.Get(0).(*coretypes.ResultTx)
  558. }
  559. }
  560. var r1 error
  561. if rf, ok := ret.Get(1).(func(context.Context, bytes.HexBytes, bool) error); ok {
  562. r1 = rf(ctx, hash, prove)
  563. } else {
  564. r1 = ret.Error(1)
  565. }
  566. return r0, r1
  567. }
  568. // TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy
  569. func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) {
  570. ret := _m.Called(ctx, query, prove, page, perPage, orderBy)
  571. var r0 *coretypes.ResultTxSearch
  572. if rf, ok := ret.Get(0).(func(context.Context, string, bool, *int, *int, string) *coretypes.ResultTxSearch); ok {
  573. r0 = rf(ctx, query, prove, page, perPage, orderBy)
  574. } else {
  575. if ret.Get(0) != nil {
  576. r0 = ret.Get(0).(*coretypes.ResultTxSearch)
  577. }
  578. }
  579. var r1 error
  580. if rf, ok := ret.Get(1).(func(context.Context, string, bool, *int, *int, string) error); ok {
  581. r1 = rf(ctx, query, prove, page, perPage, orderBy)
  582. } else {
  583. r1 = ret.Error(1)
  584. }
  585. return r0, r1
  586. }
  587. // UnconfirmedTxs provides a mock function with given fields: ctx, page, perPage
  588. func (_m *Client) UnconfirmedTxs(ctx context.Context, page *int, perPage *int) (*coretypes.ResultUnconfirmedTxs, error) {
  589. ret := _m.Called(ctx, page, perPage)
  590. var r0 *coretypes.ResultUnconfirmedTxs
  591. if rf, ok := ret.Get(0).(func(context.Context, *int, *int) *coretypes.ResultUnconfirmedTxs); ok {
  592. r0 = rf(ctx, page, perPage)
  593. } else {
  594. if ret.Get(0) != nil {
  595. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  596. }
  597. }
  598. var r1 error
  599. if rf, ok := ret.Get(1).(func(context.Context, *int, *int) error); ok {
  600. r1 = rf(ctx, page, perPage)
  601. } else {
  602. r1 = ret.Error(1)
  603. }
  604. return r0, r1
  605. }
  606. // Unsubscribe provides a mock function with given fields: ctx, subscriber, query
  607. func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error {
  608. ret := _m.Called(ctx, subscriber, query)
  609. var r0 error
  610. if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
  611. r0 = rf(ctx, subscriber, query)
  612. } else {
  613. r0 = ret.Error(0)
  614. }
  615. return r0
  616. }
  617. // UnsubscribeAll provides a mock function with given fields: ctx, subscriber
  618. func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error {
  619. ret := _m.Called(ctx, subscriber)
  620. var r0 error
  621. if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
  622. r0 = rf(ctx, subscriber)
  623. } else {
  624. r0 = ret.Error(0)
  625. }
  626. return r0
  627. }
  628. // Validators provides a mock function with given fields: ctx, height, page, perPage
  629. func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) {
  630. ret := _m.Called(ctx, height, page, perPage)
  631. var r0 *coretypes.ResultValidators
  632. if rf, ok := ret.Get(0).(func(context.Context, *int64, *int, *int) *coretypes.ResultValidators); ok {
  633. r0 = rf(ctx, height, page, perPage)
  634. } else {
  635. if ret.Get(0) != nil {
  636. r0 = ret.Get(0).(*coretypes.ResultValidators)
  637. }
  638. }
  639. var r1 error
  640. if rf, ok := ret.Get(1).(func(context.Context, *int64, *int, *int) error); ok {
  641. r1 = rf(ctx, height, page, perPage)
  642. } else {
  643. r1 = ret.Error(1)
  644. }
  645. return r0, r1
  646. }