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.

803 lines
20 KiB

  1. // Code generated by mockery v2.6.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. bytes "github.com/tendermint/tendermint/libs/bytes"
  5. client "github.com/tendermint/tendermint/rpc/client"
  6. context "context"
  7. coretypes "github.com/tendermint/tendermint/rpc/core/types"
  8. log "github.com/tendermint/tendermint/libs/log"
  9. mock "github.com/stretchr/testify/mock"
  10. types "github.com/tendermint/tendermint/types"
  11. )
  12. // Client is an autogenerated mock type for the Client type
  13. type Client struct {
  14. mock.Mock
  15. }
  16. // ABCIInfo provides a mock function with given fields: _a0
  17. func (_m *Client) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error) {
  18. ret := _m.Called(_a0)
  19. var r0 *coretypes.ResultABCIInfo
  20. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultABCIInfo); ok {
  21. r0 = rf(_a0)
  22. } else {
  23. if ret.Get(0) != nil {
  24. r0 = ret.Get(0).(*coretypes.ResultABCIInfo)
  25. }
  26. }
  27. var r1 error
  28. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  29. r1 = rf(_a0)
  30. } else {
  31. r1 = ret.Error(1)
  32. }
  33. return r0, r1
  34. }
  35. // ABCIQuery provides a mock function with given fields: ctx, path, data
  36. func (_m *Client) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error) {
  37. ret := _m.Called(ctx, path, data)
  38. var r0 *coretypes.ResultABCIQuery
  39. if rf, ok := ret.Get(0).(func(context.Context, string, bytes.HexBytes) *coretypes.ResultABCIQuery); ok {
  40. r0 = rf(ctx, path, data)
  41. } else {
  42. if ret.Get(0) != nil {
  43. r0 = ret.Get(0).(*coretypes.ResultABCIQuery)
  44. }
  45. }
  46. var r1 error
  47. if rf, ok := ret.Get(1).(func(context.Context, string, bytes.HexBytes) error); ok {
  48. r1 = rf(ctx, path, data)
  49. } else {
  50. r1 = ret.Error(1)
  51. }
  52. return r0, r1
  53. }
  54. // ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts
  55. func (_m *Client) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error) {
  56. ret := _m.Called(ctx, path, data, opts)
  57. var r0 *coretypes.ResultABCIQuery
  58. if rf, ok := ret.Get(0).(func(context.Context, string, bytes.HexBytes, client.ABCIQueryOptions) *coretypes.ResultABCIQuery); ok {
  59. r0 = rf(ctx, path, data, opts)
  60. } else {
  61. if ret.Get(0) != nil {
  62. r0 = ret.Get(0).(*coretypes.ResultABCIQuery)
  63. }
  64. }
  65. var r1 error
  66. if rf, ok := ret.Get(1).(func(context.Context, string, bytes.HexBytes, client.ABCIQueryOptions) error); ok {
  67. r1 = rf(ctx, path, data, opts)
  68. } else {
  69. r1 = ret.Error(1)
  70. }
  71. return r0, r1
  72. }
  73. // Block provides a mock function with given fields: ctx, height
  74. func (_m *Client) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error) {
  75. ret := _m.Called(ctx, height)
  76. var r0 *coretypes.ResultBlock
  77. if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultBlock); ok {
  78. r0 = rf(ctx, height)
  79. } else {
  80. if ret.Get(0) != nil {
  81. r0 = ret.Get(0).(*coretypes.ResultBlock)
  82. }
  83. }
  84. var r1 error
  85. if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
  86. r1 = rf(ctx, height)
  87. } else {
  88. r1 = ret.Error(1)
  89. }
  90. return r0, r1
  91. }
  92. // BlockByHash provides a mock function with given fields: ctx, hash
  93. func (_m *Client) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error) {
  94. ret := _m.Called(ctx, hash)
  95. var r0 *coretypes.ResultBlock
  96. if rf, ok := ret.Get(0).(func(context.Context, []byte) *coretypes.ResultBlock); ok {
  97. r0 = rf(ctx, hash)
  98. } else {
  99. if ret.Get(0) != nil {
  100. r0 = ret.Get(0).(*coretypes.ResultBlock)
  101. }
  102. }
  103. var r1 error
  104. if rf, ok := ret.Get(1).(func(context.Context, []byte) error); ok {
  105. r1 = rf(ctx, hash)
  106. } else {
  107. r1 = ret.Error(1)
  108. }
  109. return r0, r1
  110. }
  111. // BlockResults provides a mock function with given fields: ctx, height
  112. func (_m *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error) {
  113. ret := _m.Called(ctx, height)
  114. var r0 *coretypes.ResultBlockResults
  115. if rf, ok := ret.Get(0).(func(context.Context, *int64) *coretypes.ResultBlockResults); ok {
  116. r0 = rf(ctx, height)
  117. } else {
  118. if ret.Get(0) != nil {
  119. r0 = ret.Get(0).(*coretypes.ResultBlockResults)
  120. }
  121. }
  122. var r1 error
  123. if rf, ok := ret.Get(1).(func(context.Context, *int64) error); ok {
  124. r1 = rf(ctx, height)
  125. } else {
  126. r1 = ret.Error(1)
  127. }
  128. return r0, r1
  129. }
  130. // 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. // Health provides a mock function with given fields: _a0
  359. func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error) {
  360. ret := _m.Called(_a0)
  361. var r0 *coretypes.ResultHealth
  362. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultHealth); ok {
  363. r0 = rf(_a0)
  364. } else {
  365. if ret.Get(0) != nil {
  366. r0 = ret.Get(0).(*coretypes.ResultHealth)
  367. }
  368. }
  369. var r1 error
  370. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  371. r1 = rf(_a0)
  372. } else {
  373. r1 = ret.Error(1)
  374. }
  375. return r0, r1
  376. }
  377. // IsRunning provides a mock function with given fields:
  378. func (_m *Client) IsRunning() bool {
  379. ret := _m.Called()
  380. var r0 bool
  381. if rf, ok := ret.Get(0).(func() bool); ok {
  382. r0 = rf()
  383. } else {
  384. r0 = ret.Get(0).(bool)
  385. }
  386. return r0
  387. }
  388. // NetInfo provides a mock function with given fields: _a0
  389. func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error) {
  390. ret := _m.Called(_a0)
  391. var r0 *coretypes.ResultNetInfo
  392. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultNetInfo); ok {
  393. r0 = rf(_a0)
  394. } else {
  395. if ret.Get(0) != nil {
  396. r0 = ret.Get(0).(*coretypes.ResultNetInfo)
  397. }
  398. }
  399. var r1 error
  400. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  401. r1 = rf(_a0)
  402. } else {
  403. r1 = ret.Error(1)
  404. }
  405. return r0, r1
  406. }
  407. // NumUnconfirmedTxs provides a mock function with given fields: _a0
  408. func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error) {
  409. ret := _m.Called(_a0)
  410. var r0 *coretypes.ResultUnconfirmedTxs
  411. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultUnconfirmedTxs); ok {
  412. r0 = rf(_a0)
  413. } else {
  414. if ret.Get(0) != nil {
  415. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  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. // OnReset provides a mock function with given fields:
  427. func (_m *Client) OnReset() error {
  428. ret := _m.Called()
  429. var r0 error
  430. if rf, ok := ret.Get(0).(func() error); ok {
  431. r0 = rf()
  432. } else {
  433. r0 = ret.Error(0)
  434. }
  435. return r0
  436. }
  437. // OnStart provides a mock function with given fields:
  438. func (_m *Client) OnStart() error {
  439. ret := _m.Called()
  440. var r0 error
  441. if rf, ok := ret.Get(0).(func() error); ok {
  442. r0 = rf()
  443. } else {
  444. r0 = ret.Error(0)
  445. }
  446. return r0
  447. }
  448. // OnStop provides a mock function with given fields:
  449. func (_m *Client) OnStop() {
  450. _m.Called()
  451. }
  452. // Quit provides a mock function with given fields:
  453. func (_m *Client) Quit() <-chan struct{} {
  454. ret := _m.Called()
  455. var r0 <-chan struct{}
  456. if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
  457. r0 = rf()
  458. } else {
  459. if ret.Get(0) != nil {
  460. r0 = ret.Get(0).(<-chan struct{})
  461. }
  462. }
  463. return r0
  464. }
  465. // Reset provides a mock function with given fields:
  466. func (_m *Client) Reset() error {
  467. ret := _m.Called()
  468. var r0 error
  469. if rf, ok := ret.Get(0).(func() error); ok {
  470. r0 = rf()
  471. } else {
  472. r0 = ret.Error(0)
  473. }
  474. return r0
  475. }
  476. // SetLogger provides a mock function with given fields: _a0
  477. func (_m *Client) SetLogger(_a0 log.Logger) {
  478. _m.Called(_a0)
  479. }
  480. // Start provides a mock function with given fields:
  481. func (_m *Client) Start() error {
  482. ret := _m.Called()
  483. var r0 error
  484. if rf, ok := ret.Get(0).(func() error); ok {
  485. r0 = rf()
  486. } else {
  487. r0 = ret.Error(0)
  488. }
  489. return r0
  490. }
  491. // Status provides a mock function with given fields: _a0
  492. func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error) {
  493. ret := _m.Called(_a0)
  494. var r0 *coretypes.ResultStatus
  495. if rf, ok := ret.Get(0).(func(context.Context) *coretypes.ResultStatus); ok {
  496. r0 = rf(_a0)
  497. } else {
  498. if ret.Get(0) != nil {
  499. r0 = ret.Get(0).(*coretypes.ResultStatus)
  500. }
  501. }
  502. var r1 error
  503. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  504. r1 = rf(_a0)
  505. } else {
  506. r1 = ret.Error(1)
  507. }
  508. return r0, r1
  509. }
  510. // Stop provides a mock function with given fields:
  511. func (_m *Client) Stop() error {
  512. ret := _m.Called()
  513. var r0 error
  514. if rf, ok := ret.Get(0).(func() error); ok {
  515. r0 = rf()
  516. } else {
  517. r0 = ret.Error(0)
  518. }
  519. return r0
  520. }
  521. // String provides a mock function with given fields:
  522. func (_m *Client) String() string {
  523. ret := _m.Called()
  524. var r0 string
  525. if rf, ok := ret.Get(0).(func() string); ok {
  526. r0 = rf()
  527. } else {
  528. r0 = ret.Get(0).(string)
  529. }
  530. return r0
  531. }
  532. // Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity
  533. func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) {
  534. _va := make([]interface{}, len(outCapacity))
  535. for _i := range outCapacity {
  536. _va[_i] = outCapacity[_i]
  537. }
  538. var _ca []interface{}
  539. _ca = append(_ca, ctx, subscriber, query)
  540. _ca = append(_ca, _va...)
  541. ret := _m.Called(_ca...)
  542. var r0 <-chan coretypes.ResultEvent
  543. if rf, ok := ret.Get(0).(func(context.Context, string, string, ...int) <-chan coretypes.ResultEvent); ok {
  544. r0 = rf(ctx, subscriber, query, outCapacity...)
  545. } else {
  546. if ret.Get(0) != nil {
  547. r0 = ret.Get(0).(<-chan coretypes.ResultEvent)
  548. }
  549. }
  550. var r1 error
  551. if rf, ok := ret.Get(1).(func(context.Context, string, string, ...int) error); ok {
  552. r1 = rf(ctx, subscriber, query, outCapacity...)
  553. } else {
  554. r1 = ret.Error(1)
  555. }
  556. return r0, r1
  557. }
  558. // Tx provides a mock function with given fields: ctx, hash, prove
  559. func (_m *Client) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) {
  560. ret := _m.Called(ctx, hash, prove)
  561. var r0 *coretypes.ResultTx
  562. if rf, ok := ret.Get(0).(func(context.Context, []byte, bool) *coretypes.ResultTx); ok {
  563. r0 = rf(ctx, hash, prove)
  564. } else {
  565. if ret.Get(0) != nil {
  566. r0 = ret.Get(0).(*coretypes.ResultTx)
  567. }
  568. }
  569. var r1 error
  570. if rf, ok := ret.Get(1).(func(context.Context, []byte, bool) error); ok {
  571. r1 = rf(ctx, hash, prove)
  572. } else {
  573. r1 = ret.Error(1)
  574. }
  575. return r0, r1
  576. }
  577. // TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy
  578. func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) {
  579. ret := _m.Called(ctx, query, prove, page, perPage, orderBy)
  580. var r0 *coretypes.ResultTxSearch
  581. if rf, ok := ret.Get(0).(func(context.Context, string, bool, *int, *int, string) *coretypes.ResultTxSearch); ok {
  582. r0 = rf(ctx, query, prove, page, perPage, orderBy)
  583. } else {
  584. if ret.Get(0) != nil {
  585. r0 = ret.Get(0).(*coretypes.ResultTxSearch)
  586. }
  587. }
  588. var r1 error
  589. if rf, ok := ret.Get(1).(func(context.Context, string, bool, *int, *int, string) error); ok {
  590. r1 = rf(ctx, query, prove, page, perPage, orderBy)
  591. } else {
  592. r1 = ret.Error(1)
  593. }
  594. return r0, r1
  595. }
  596. // UnconfirmedTxs provides a mock function with given fields: ctx, limit
  597. func (_m *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error) {
  598. ret := _m.Called(ctx, limit)
  599. var r0 *coretypes.ResultUnconfirmedTxs
  600. if rf, ok := ret.Get(0).(func(context.Context, *int) *coretypes.ResultUnconfirmedTxs); ok {
  601. r0 = rf(ctx, limit)
  602. } else {
  603. if ret.Get(0) != nil {
  604. r0 = ret.Get(0).(*coretypes.ResultUnconfirmedTxs)
  605. }
  606. }
  607. var r1 error
  608. if rf, ok := ret.Get(1).(func(context.Context, *int) error); ok {
  609. r1 = rf(ctx, limit)
  610. } else {
  611. r1 = ret.Error(1)
  612. }
  613. return r0, r1
  614. }
  615. // Unsubscribe provides a mock function with given fields: ctx, subscriber, query
  616. func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error {
  617. ret := _m.Called(ctx, subscriber, query)
  618. var r0 error
  619. if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
  620. r0 = rf(ctx, subscriber, query)
  621. } else {
  622. r0 = ret.Error(0)
  623. }
  624. return r0
  625. }
  626. // UnsubscribeAll provides a mock function with given fields: ctx, subscriber
  627. func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error {
  628. ret := _m.Called(ctx, subscriber)
  629. var r0 error
  630. if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
  631. r0 = rf(ctx, subscriber)
  632. } else {
  633. r0 = ret.Error(0)
  634. }
  635. return r0
  636. }
  637. // Validators provides a mock function with given fields: ctx, height, page, perPage
  638. func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) {
  639. ret := _m.Called(ctx, height, page, perPage)
  640. var r0 *coretypes.ResultValidators
  641. if rf, ok := ret.Get(0).(func(context.Context, *int64, *int, *int) *coretypes.ResultValidators); ok {
  642. r0 = rf(ctx, height, page, perPage)
  643. } else {
  644. if ret.Get(0) != nil {
  645. r0 = ret.Get(0).(*coretypes.ResultValidators)
  646. }
  647. }
  648. var r1 error
  649. if rf, ok := ret.Get(1).(func(context.Context, *int64, *int, *int) error); ok {
  650. r1 = rf(ctx, height, page, perPage)
  651. } else {
  652. r1 = ret.Error(1)
  653. }
  654. return r0, r1
  655. }