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.

831 lines
21 KiB

  1. // Code generated by mockery 2.7.4. 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. // BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy
  131. func (_m *Client) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error) {
  132. ret := _m.Called(ctx, query, page, perPage, orderBy)
  133. var r0 *coretypes.ResultBlockSearch
  134. if rf, ok := ret.Get(0).(func(context.Context, string, *int, *int, string) *coretypes.ResultBlockSearch); ok {
  135. r0 = rf(ctx, query, page, perPage, orderBy)
  136. } else {
  137. if ret.Get(0) != nil {
  138. r0 = ret.Get(0).(*coretypes.ResultBlockSearch)
  139. }
  140. }
  141. var r1 error
  142. if rf, ok := ret.Get(1).(func(context.Context, string, *int, *int, string) error); ok {
  143. r1 = rf(ctx, query, page, perPage, orderBy)
  144. } else {
  145. r1 = ret.Error(1)
  146. }
  147. return r0, r1
  148. }
  149. // BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight
  150. func (_m *Client) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error) {
  151. ret := _m.Called(ctx, minHeight, maxHeight)
  152. var r0 *coretypes.ResultBlockchainInfo
  153. if rf, ok := ret.Get(0).(func(context.Context, int64, int64) *coretypes.ResultBlockchainInfo); ok {
  154. r0 = rf(ctx, minHeight, maxHeight)
  155. } else {
  156. if ret.Get(0) != nil {
  157. r0 = ret.Get(0).(*coretypes.ResultBlockchainInfo)
  158. }
  159. }
  160. var r1 error
  161. if rf, ok := ret.Get(1).(func(context.Context, int64, int64) error); ok {
  162. r1 = rf(ctx, minHeight, maxHeight)
  163. } else {
  164. r1 = ret.Error(1)
  165. }
  166. return r0, r1
  167. }
  168. // BroadcastEvidence provides a mock function with given fields: _a0, _a1
  169. func (_m *Client) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error) {
  170. ret := _m.Called(_a0, _a1)
  171. var r0 *coretypes.ResultBroadcastEvidence
  172. if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) *coretypes.ResultBroadcastEvidence); ok {
  173. r0 = rf(_a0, _a1)
  174. } else {
  175. if ret.Get(0) != nil {
  176. r0 = ret.Get(0).(*coretypes.ResultBroadcastEvidence)
  177. }
  178. }
  179. var r1 error
  180. if rf, ok := ret.Get(1).(func(context.Context, types.Evidence) error); ok {
  181. r1 = rf(_a0, _a1)
  182. } else {
  183. r1 = ret.Error(1)
  184. }
  185. return r0, r1
  186. }
  187. // BroadcastTxAsync provides a mock function with given fields: _a0, _a1
  188. func (_m *Client) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error) {
  189. ret := _m.Called(_a0, _a1)
  190. var r0 *coretypes.ResultBroadcastTx
  191. if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTx); ok {
  192. r0 = rf(_a0, _a1)
  193. } else {
  194. if ret.Get(0) != nil {
  195. r0 = ret.Get(0).(*coretypes.ResultBroadcastTx)
  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. // BroadcastTxCommit provides a mock function with given fields: _a0, _a1
  207. func (_m *Client) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error) {
  208. ret := _m.Called(_a0, _a1)
  209. var r0 *coretypes.ResultBroadcastTxCommit
  210. if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTxCommit); ok {
  211. r0 = rf(_a0, _a1)
  212. } else {
  213. if ret.Get(0) != nil {
  214. r0 = ret.Get(0).(*coretypes.ResultBroadcastTxCommit)
  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. // BroadcastTxSync provides a mock function with given fields: _a0, _a1
  226. func (_m *Client) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error) {
  227. ret := _m.Called(_a0, _a1)
  228. var r0 *coretypes.ResultBroadcastTx
  229. if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultBroadcastTx); ok {
  230. r0 = rf(_a0, _a1)
  231. } else {
  232. if ret.Get(0) != nil {
  233. r0 = ret.Get(0).(*coretypes.ResultBroadcastTx)
  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. // CheckTx provides a mock function with given fields: _a0, _a1
  245. func (_m *Client) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error) {
  246. ret := _m.Called(_a0, _a1)
  247. var r0 *coretypes.ResultCheckTx
  248. if rf, ok := ret.Get(0).(func(context.Context, types.Tx) *coretypes.ResultCheckTx); ok {
  249. r0 = rf(_a0, _a1)
  250. } else {
  251. if ret.Get(0) != nil {
  252. r0 = ret.Get(0).(*coretypes.ResultCheckTx)
  253. }
  254. }
  255. var r1 error
  256. if rf, ok := ret.Get(1).(func(context.Context, types.Tx) error); ok {
  257. r1 = rf(_a0, _a1)
  258. } else {
  259. r1 = ret.Error(1)
  260. }
  261. return r0, r1
  262. }
  263. // Commit provides a mock function with given fields: ctx, height
  264. func (_m *Client) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error) {
  265. ret := _m.Called(ctx, height)
  266. var r0 *coretypes.ResultCommit
  267. if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultCommit); ok {
  268. r0 = rf(ctx, height)
  269. } else {
  270. if ret.Get(0) != nil {
  271. r0 = ret.Get(0).(*coretypes.ResultCommit)
  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. // ConsensusParams provides a mock function with given fields: ctx, height
  283. func (_m *Client) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error) {
  284. ret := _m.Called(ctx, height)
  285. var r0 *coretypes.ResultConsensusParams
  286. if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultConsensusParams); ok {
  287. r0 = rf(ctx, height)
  288. } else {
  289. if ret.Get(0) != nil {
  290. r0 = ret.Get(0).(*coretypes.ResultConsensusParams)
  291. }
  292. }
  293. var r1 error
  294. if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
  295. r1 = rf(ctx, height)
  296. } else {
  297. r1 = ret.Error(1)
  298. }
  299. return r0, r1
  300. }
  301. // ConsensusState provides a mock function with given fields: _a0
  302. func (_m *Client) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error) {
  303. ret := _m.Called(_a0)
  304. var r0 *coretypes.ResultConsensusState
  305. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultConsensusState); ok {
  306. r0 = rf(_a0)
  307. } else {
  308. if ret.Get(0) != nil {
  309. r0 = ret.Get(0).(*coretypes.ResultConsensusState)
  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. // DumpConsensusState provides a mock function with given fields: _a0
  321. func (_m *Client) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error) {
  322. ret := _m.Called(_a0)
  323. var r0 *coretypes.ResultDumpConsensusState
  324. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultDumpConsensusState); ok {
  325. r0 = rf(_a0)
  326. } else {
  327. if ret.Get(0) != nil {
  328. r0 = ret.Get(0).(*coretypes.ResultDumpConsensusState)
  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. // Genesis provides a mock function with given fields: _a0
  340. func (_m *Client) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error) {
  341. ret := _m.Called(_a0)
  342. var r0 *coretypes.ResultGenesis
  343. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultGenesis); ok {
  344. r0 = rf(_a0)
  345. } else {
  346. if ret.Get(0) != nil {
  347. r0 = ret.Get(0).(*coretypes.ResultGenesis)
  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. // GenesisChunked provides a mock function with given fields: _a0, _a1
  359. func (_m *Client) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error) {
  360. ret := _m.Called(_a0, _a1)
  361. var r0 *coretypes.ResultGenesisChunk
  362. if rf, ok := ret.Get(0).(func(context.Context, uint) *coretypes.ResultGenesisChunk); ok {
  363. r0 = rf(_a0, _a1)
  364. } else {
  365. if ret.Get(0) != nil {
  366. r0 = ret.Get(0).(*coretypes.ResultGenesisChunk)
  367. }
  368. }
  369. var r1 error
  370. if rf, ok := ret.Get(1).(func(context.Context, uint) error); ok {
  371. r1 = rf(_a0, _a1)
  372. } else {
  373. r1 = ret.Error(1)
  374. }
  375. return r0, r1
  376. }
  377. // Health provides a mock function with given fields: _a0
  378. func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error) {
  379. ret := _m.Called(_a0)
  380. var r0 *coretypes.ResultHealth
  381. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultHealth); ok {
  382. r0 = rf(_a0)
  383. } else {
  384. if ret.Get(0) != nil {
  385. r0 = ret.Get(0).(*coretypes.ResultHealth)
  386. }
  387. }
  388. var r1 error
  389. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  390. r1 = rf(_a0)
  391. } else {
  392. r1 = ret.Error(1)
  393. }
  394. return r0, r1
  395. }
  396. // IsRunning provides a mock function with given fields:
  397. func (_m *Client) IsRunning() bool {
  398. ret := _m.Called()
  399. var r0 bool
  400. if rf, ok := ret.Get(0).(func() bool); ok {
  401. r0 = rf()
  402. } else {
  403. r0 = ret.Get(0).(bool)
  404. }
  405. return r0
  406. }
  407. // NetInfo provides a mock function with given fields: _a0
  408. func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error) {
  409. ret := _m.Called(_a0)
  410. var r0 *coretypes.ResultNetInfo
  411. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultNetInfo); ok {
  412. r0 = rf(_a0)
  413. } else {
  414. if ret.Get(0) != nil {
  415. r0 = ret.Get(0).(*coretypes.ResultNetInfo)
  416. }
  417. }
  418. var r1 error
  419. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  420. r1 = rf(_a0)
  421. } else {
  422. r1 = ret.Error(1)
  423. }
  424. return r0, r1
  425. }
  426. // NumUnconfirmedTxs provides a mock function with given fields: _a0
  427. func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error) {
  428. ret := _m.Called(_a0)
  429. var r0 *coretypes.ResultUnconfirmedTxs
  430. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultUnconfirmedTxs); ok {
  431. r0 = rf(_a0)
  432. } else {
  433. if ret.Get(0) != nil {
  434. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  435. }
  436. }
  437. var r1 error
  438. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  439. r1 = rf(_a0)
  440. } else {
  441. r1 = ret.Error(1)
  442. }
  443. return r0, r1
  444. }
  445. // OnReset provides a mock function with given fields:
  446. func (_m *Client) OnReset() error {
  447. ret := _m.Called()
  448. var r0 error
  449. if rf, ok := ret.Get(0).(func() error); ok {
  450. r0 = rf()
  451. } else {
  452. r0 = ret.Error(0)
  453. }
  454. return r0
  455. }
  456. // OnStart provides a mock function with given fields:
  457. func (_m *Client) OnStart() error {
  458. ret := _m.Called()
  459. var r0 error
  460. if rf, ok := ret.Get(0).(func() error); ok {
  461. r0 = rf()
  462. } else {
  463. r0 = ret.Error(0)
  464. }
  465. return r0
  466. }
  467. // OnStop provides a mock function with given fields:
  468. func (_m *Client) OnStop() {
  469. _m.Called()
  470. }
  471. // Quit provides a mock function with given fields:
  472. func (_m *Client) Quit() <-chan struct{} {
  473. ret := _m.Called()
  474. var r0 <-chan struct{}
  475. if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
  476. r0 = rf()
  477. } else {
  478. if ret.Get(0) != nil {
  479. r0 = ret.Get(0).(<-chan struct{})
  480. }
  481. }
  482. return r0
  483. }
  484. // Reset provides a mock function with given fields:
  485. func (_m *Client) Reset() error {
  486. ret := _m.Called()
  487. var r0 error
  488. if rf, ok := ret.Get(0).(func() error); ok {
  489. r0 = rf()
  490. } else {
  491. r0 = ret.Error(0)
  492. }
  493. return r0
  494. }
  495. // SetLogger provides a mock function with given fields: _a0
  496. func (_m *Client) SetLogger(_a0 log.Logger) {
  497. _m.Called(_a0)
  498. }
  499. // Start provides a mock function with given fields:
  500. func (_m *Client) Start() error {
  501. ret := _m.Called()
  502. var r0 error
  503. if rf, ok := ret.Get(0).(func() error); ok {
  504. r0 = rf()
  505. } else {
  506. r0 = ret.Error(0)
  507. }
  508. return r0
  509. }
  510. // Status provides a mock function with given fields: _a0
  511. func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error) {
  512. ret := _m.Called(_a0)
  513. var r0 *coretypes.ResultStatus
  514. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultStatus); ok {
  515. r0 = rf(_a0)
  516. } else {
  517. if ret.Get(0) != nil {
  518. r0 = ret.Get(0).(*coretypes.ResultStatus)
  519. }
  520. }
  521. var r1 error
  522. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  523. r1 = rf(_a0)
  524. } else {
  525. r1 = ret.Error(1)
  526. }
  527. return r0, r1
  528. }
  529. // Stop provides a mock function with given fields:
  530. func (_m *Client) Stop() error {
  531. ret := _m.Called()
  532. var r0 error
  533. if rf, ok := ret.Get(0).(func() error); ok {
  534. r0 = rf()
  535. } else {
  536. r0 = ret.Error(0)
  537. }
  538. return r0
  539. }
  540. // String provides a mock function with given fields:
  541. func (_m *Client) String() string {
  542. ret := _m.Called()
  543. var r0 string
  544. if rf, ok := ret.Get(0).(func() string); ok {
  545. r0 = rf()
  546. } else {
  547. r0 = ret.Get(0).(string)
  548. }
  549. return r0
  550. }
  551. // Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity
  552. func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) {
  553. _va := make([]interface{}, len(outCapacity))
  554. for _i := range outCapacity {
  555. _va[_i] = outCapacity[_i]
  556. }
  557. var _ca []interface{}
  558. _ca = append(_ca, ctx, subscriber, query)
  559. _ca = append(_ca, _va...)
  560. ret := _m.Called(_ca...)
  561. var r0 <-chan coretypes.ResultEvent
  562. if rf, ok := ret.Get(0).(func(context.Context, string, string, ...int) <-chan coretypes.ResultEvent); ok {
  563. r0 = rf(ctx, subscriber, query, outCapacity...)
  564. } else {
  565. if ret.Get(0) != nil {
  566. r0 = ret.Get(0).(<-chan coretypes.ResultEvent)
  567. }
  568. }
  569. var r1 error
  570. if rf, ok := ret.Get(1).(func(context.Context, string, string, ...int) error); ok {
  571. r1 = rf(ctx, subscriber, query, outCapacity...)
  572. } else {
  573. r1 = ret.Error(1)
  574. }
  575. return r0, r1
  576. }
  577. // Tx provides a mock function with given fields: ctx, hash, prove
  578. func (_m *Client) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) {
  579. ret := _m.Called(ctx, hash, prove)
  580. var r0 *coretypes.ResultTx
  581. if rf, ok := ret.Get(0).(func(context.Context, []byte, bool) *coretypes.ResultTx); ok {
  582. r0 = rf(ctx, hash, prove)
  583. } else {
  584. if ret.Get(0) != nil {
  585. r0 = ret.Get(0).(*coretypes.ResultTx)
  586. }
  587. }
  588. var r1 error
  589. if rf, ok := ret.Get(1).(func(context.Context, []byte, bool) error); ok {
  590. r1 = rf(ctx, hash, prove)
  591. } else {
  592. r1 = ret.Error(1)
  593. }
  594. return r0, r1
  595. }
  596. // TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy
  597. func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) {
  598. ret := _m.Called(ctx, query, prove, page, perPage, orderBy)
  599. var r0 *coretypes.ResultTxSearch
  600. if rf, ok := ret.Get(0).(func(context.Context, string, bool, *int, *int, string) *coretypes.ResultTxSearch); ok {
  601. r0 = rf(ctx, query, prove, page, perPage, orderBy)
  602. } else {
  603. if ret.Get(0) != nil {
  604. r0 = ret.Get(0).(*coretypes.ResultTxSearch)
  605. }
  606. }
  607. var r1 error
  608. if rf, ok := ret.Get(1).(func(context.Context, string, bool, *int, *int, string) error); ok {
  609. r1 = rf(ctx, query, prove, page, perPage, orderBy)
  610. } else {
  611. r1 = ret.Error(1)
  612. }
  613. return r0, r1
  614. }
  615. // UnconfirmedTxs provides a mock function with given fields: ctx, limit
  616. func (_m *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error) {
  617. ret := _m.Called(ctx, limit)
  618. var r0 *coretypes.ResultUnconfirmedTxs
  619. if rf, ok := ret.Get(0).(func(context.Context, *int) *coretypes.ResultUnconfirmedTxs); ok {
  620. r0 = rf(ctx, limit)
  621. } else {
  622. if ret.Get(0) != nil {
  623. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  624. }
  625. }
  626. var r1 error
  627. if rf, ok := ret.Get(1).(func(context.Context, *int) error); ok {
  628. r1 = rf(ctx, limit)
  629. } else {
  630. r1 = ret.Error(1)
  631. }
  632. return r0, r1
  633. }
  634. // Unsubscribe provides a mock function with given fields: ctx, subscriber, query
  635. func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error {
  636. ret := _m.Called(ctx, subscriber, query)
  637. var r0 error
  638. if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
  639. r0 = rf(ctx, subscriber, query)
  640. } else {
  641. r0 = ret.Error(0)
  642. }
  643. return r0
  644. }
  645. // UnsubscribeAll provides a mock function with given fields: ctx, subscriber
  646. func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error {
  647. ret := _m.Called(ctx, subscriber)
  648. var r0 error
  649. if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
  650. r0 = rf(ctx, subscriber)
  651. } else {
  652. r0 = ret.Error(0)
  653. }
  654. return r0
  655. }
  656. // Validators provides a mock function with given fields: ctx, height, page, perPage
  657. func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) {
  658. ret := _m.Called(ctx, height, page, perPage)
  659. var r0 *coretypes.ResultValidators
  660. if rf, ok := ret.Get(0).(func(context.Context, *int64, *int, *int) *coretypes.ResultValidators); ok {
  661. r0 = rf(ctx, height, page, perPage)
  662. } else {
  663. if ret.Get(0) != nil {
  664. r0 = ret.Get(0).(*coretypes.ResultValidators)
  665. }
  666. }
  667. var r1 error
  668. if rf, ok := ret.Get(1).(func(context.Context, *int64, *int, *int) error); ok {
  669. r1 = rf(ctx, height, page, perPage)
  670. } else {
  671. r1 = ret.Error(1)
  672. }
  673. return r0, r1
  674. }
  675. // Wait provides a mock function with given fields:
  676. func (_m *Client) Wait() {
  677. _m.Called()
  678. }