@iconlake/client 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/client.ts +170 -0
  2. package/cosmos.auth.v1beta1/index.ts +6 -0
  3. package/cosmos.auth.v1beta1/module.ts +102 -0
  4. package/cosmos.auth.v1beta1/registry.ts +7 -0
  5. package/cosmos.auth.v1beta1/rest.ts +641 -0
  6. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  7. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +95 -0
  8. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +1212 -0
  9. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  10. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  11. package/cosmos.auth.v1beta1/types/gogoproto/gogo.ts +2 -0
  12. package/cosmos.auth.v1beta1/types/google/api/annotations.ts +2 -0
  13. package/cosmos.auth.v1beta1/types/google/api/http.ts +589 -0
  14. package/cosmos.auth.v1beta1/types/google/protobuf/any.ts +240 -0
  15. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  16. package/cosmos.auth.v1beta1/types.ts +11 -0
  17. package/cosmos.authz.v1beta1/index.ts +6 -0
  18. package/cosmos.authz.v1beta1/module.ts +207 -0
  19. package/cosmos.authz.v1beta1/registry.ts +13 -0
  20. package/cosmos.authz.v1beta1/rest.ts +604 -0
  21. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.ts +325 -0
  22. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.ts +175 -0
  23. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.ts +78 -0
  24. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.ts +516 -0
  25. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +493 -0
  26. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  27. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  28. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  29. package/cosmos.authz.v1beta1/types/gogoproto/gogo.ts +2 -0
  30. package/cosmos.authz.v1beta1/types/google/api/annotations.ts +2 -0
  31. package/cosmos.authz.v1beta1/types/google/api/http.ts +589 -0
  32. package/cosmos.authz.v1beta1/types/google/protobuf/any.ts +240 -0
  33. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  34. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  35. package/cosmos.authz.v1beta1/types.ts +17 -0
  36. package/cosmos.bank.v1beta1/index.ts +6 -0
  37. package/cosmos.bank.v1beta1/module.ts +182 -0
  38. package/cosmos.bank.v1beta1/registry.ts +11 -0
  39. package/cosmos.bank.v1beta1/rest.ts +656 -0
  40. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +77 -0
  41. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +604 -0
  42. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +203 -0
  43. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +1366 -0
  44. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +289 -0
  45. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  46. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  47. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  48. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  49. package/cosmos.bank.v1beta1/types/gogoproto/gogo.ts +2 -0
  50. package/cosmos.bank.v1beta1/types/google/api/annotations.ts +2 -0
  51. package/cosmos.bank.v1beta1/types/google/api/http.ts +589 -0
  52. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  53. package/cosmos.bank.v1beta1/types.ts +25 -0
  54. package/cosmos.base.node.v1beta1/index.ts +6 -0
  55. package/cosmos.base.node.v1beta1/module.ts +96 -0
  56. package/cosmos.base.node.v1beta1/registry.ts +7 -0
  57. package/cosmos.base.node.v1beta1/rest.ts +170 -0
  58. package/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.ts +137 -0
  59. package/cosmos.base.node.v1beta1/types/google/api/annotations.ts +2 -0
  60. package/cosmos.base.node.v1beta1/types/google/api/http.ts +589 -0
  61. package/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  62. package/cosmos.base.node.v1beta1/types.ts +5 -0
  63. package/cosmos.base.tendermint.v1beta1/index.ts +6 -0
  64. package/cosmos.base.tendermint.v1beta1/module.ts +110 -0
  65. package/cosmos.base.tendermint.v1beta1/registry.ts +7 -0
  66. package/cosmos.base.tendermint.v1beta1/rest.ts +1147 -0
  67. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  68. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +1646 -0
  69. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.ts +442 -0
  70. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  71. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts +2 -0
  72. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts +2 -0
  73. package/cosmos.base.tendermint.v1beta1/types/google/api/http.ts +589 -0
  74. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.ts +240 -0
  75. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  76. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  77. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  78. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  79. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.ts +423 -0
  80. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.ts +112 -0
  81. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.ts +412 -0
  82. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1452 -0
  83. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.ts +308 -0
  84. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.ts +184 -0
  85. package/cosmos.base.tendermint.v1beta1/types.ts +19 -0
  86. package/cosmos.crisis.v1beta1/index.ts +6 -0
  87. package/cosmos.crisis.v1beta1/module.ts +129 -0
  88. package/cosmos.crisis.v1beta1/registry.ts +9 -0
  89. package/cosmos.crisis.v1beta1/rest.ts +152 -0
  90. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  91. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.ts +79 -0
  92. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +159 -0
  93. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  94. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  95. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.ts +2 -0
  96. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  97. package/cosmos.crisis.v1beta1/types.ts +5 -0
  98. package/cosmos.distribution.v1beta1/index.ts +6 -0
  99. package/cosmos.distribution.v1beta1/module.ts +266 -0
  100. package/cosmos.distribution.v1beta1/registry.ts +15 -0
  101. package/cosmos.distribution.v1beta1/rest.ts +557 -0
  102. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  103. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  104. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +945 -0
  105. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +849 -0
  106. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1289 -0
  107. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +550 -0
  108. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  109. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  110. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.ts +2 -0
  111. package/cosmos.distribution.v1beta1/types/google/api/annotations.ts +2 -0
  112. package/cosmos.distribution.v1beta1/types/google/api/http.ts +589 -0
  113. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  114. package/cosmos.distribution.v1beta1/types.ts +43 -0
  115. package/cosmos.evidence.v1beta1/index.ts +6 -0
  116. package/cosmos.evidence.v1beta1/module.ts +131 -0
  117. package/cosmos.evidence.v1beta1/registry.ts +9 -0
  118. package/cosmos.evidence.v1beta1/rest.ts +402 -0
  119. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  120. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +161 -0
  121. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.ts +73 -0
  122. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +343 -0
  123. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +213 -0
  124. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  125. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  126. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.ts +2 -0
  127. package/cosmos.evidence.v1beta1/types/google/api/annotations.ts +2 -0
  128. package/cosmos.evidence.v1beta1/types/google/api/http.ts +589 -0
  129. package/cosmos.evidence.v1beta1/types/google/protobuf/any.ts +240 -0
  130. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  131. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  132. package/cosmos.evidence.v1beta1/types.ts +7 -0
  133. package/cosmos.feegrant.v1beta1/index.ts +6 -0
  134. package/cosmos.feegrant.v1beta1/module.ts +170 -0
  135. package/cosmos.feegrant.v1beta1/registry.ts +11 -0
  136. package/cosmos.feegrant.v1beta1/rest.ts +452 -0
  137. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  138. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  139. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.ts +409 -0
  140. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.ts +76 -0
  141. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.ts +484 -0
  142. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.ts +294 -0
  143. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  144. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  145. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.ts +2 -0
  146. package/cosmos.feegrant.v1beta1/types/google/api/annotations.ts +2 -0
  147. package/cosmos.feegrant.v1beta1/types/google/api/http.ts +589 -0
  148. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.ts +240 -0
  149. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  150. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.ts +187 -0
  151. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  152. package/cosmos.feegrant.v1beta1/types.ts +13 -0
  153. package/cosmos.gov.v1/index.ts +6 -0
  154. package/cosmos.gov.v1/module.ts +244 -0
  155. package/cosmos.gov.v1/registry.ts +15 -0
  156. package/cosmos.gov.v1/rest.ts +798 -0
  157. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  158. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  159. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +208 -0
  160. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +925 -0
  161. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +1202 -0
  162. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +763 -0
  163. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.ts +2 -0
  164. package/cosmos.gov.v1/types/cosmos_proto/cosmos.ts +247 -0
  165. package/cosmos.gov.v1/types/gogoproto/gogo.ts +2 -0
  166. package/cosmos.gov.v1/types/google/api/annotations.ts +2 -0
  167. package/cosmos.gov.v1/types/google/api/http.ts +589 -0
  168. package/cosmos.gov.v1/types/google/protobuf/any.ts +240 -0
  169. package/cosmos.gov.v1/types/google/protobuf/descriptor.ts +3753 -0
  170. package/cosmos.gov.v1/types/google/protobuf/duration.ts +187 -0
  171. package/cosmos.gov.v1/types/google/protobuf/timestamp.ts +216 -0
  172. package/cosmos.gov.v1/types.ts +21 -0
  173. package/cosmos.gov.v1beta1/index.ts +6 -0
  174. package/cosmos.gov.v1beta1/module.ts +246 -0
  175. package/cosmos.gov.v1beta1/registry.ts +15 -0
  176. package/cosmos.gov.v1beta1/rest.ts +864 -0
  177. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  178. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  179. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +206 -0
  180. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +1015 -0
  181. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +1200 -0
  182. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +612 -0
  183. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  184. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  185. package/cosmos.gov.v1beta1/types/gogoproto/gogo.ts +2 -0
  186. package/cosmos.gov.v1beta1/types/google/api/annotations.ts +2 -0
  187. package/cosmos.gov.v1beta1/types/google/api/http.ts +589 -0
  188. package/cosmos.gov.v1beta1/types/google/protobuf/any.ts +240 -0
  189. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  190. package/cosmos.gov.v1beta1/types/google/protobuf/duration.ts +187 -0
  191. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  192. package/cosmos.gov.v1beta1/types.ts +23 -0
  193. package/cosmos.group.v1/index.ts +6 -0
  194. package/cosmos.group.v1/module.ts +598 -0
  195. package/cosmos.group.v1/registry.ts +35 -0
  196. package/cosmos.group.v1/rest.ts +1162 -0
  197. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  198. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +568 -0
  199. package/cosmos.group.v1/types/cosmos/group/v1/genesis.ts +228 -0
  200. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +1897 -0
  201. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +2113 -0
  202. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +1422 -0
  203. package/cosmos.group.v1/types/cosmos/msg/v1/msg.ts +2 -0
  204. package/cosmos.group.v1/types/cosmos_proto/cosmos.ts +247 -0
  205. package/cosmos.group.v1/types/gogoproto/gogo.ts +2 -0
  206. package/cosmos.group.v1/types/google/api/annotations.ts +2 -0
  207. package/cosmos.group.v1/types/google/api/http.ts +589 -0
  208. package/cosmos.group.v1/types/google/protobuf/any.ts +240 -0
  209. package/cosmos.group.v1/types/google/protobuf/descriptor.ts +3753 -0
  210. package/cosmos.group.v1/types/google/protobuf/duration.ts +187 -0
  211. package/cosmos.group.v1/types/google/protobuf/timestamp.ts +216 -0
  212. package/cosmos.group.v1/types.ts +45 -0
  213. package/cosmos.mint.v1beta1/index.ts +6 -0
  214. package/cosmos.mint.v1beta1/module.ts +100 -0
  215. package/cosmos.mint.v1beta1/registry.ts +7 -0
  216. package/cosmos.mint.v1beta1/rest.ts +253 -0
  217. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +92 -0
  218. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +234 -0
  219. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.ts +412 -0
  220. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  221. package/cosmos.mint.v1beta1/types/gogoproto/gogo.ts +2 -0
  222. package/cosmos.mint.v1beta1/types/google/api/annotations.ts +2 -0
  223. package/cosmos.mint.v1beta1/types/google/api/http.ts +589 -0
  224. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  225. package/cosmos.mint.v1beta1/types.ts +9 -0
  226. package/cosmos.nft.v1beta1/index.ts +6 -0
  227. package/cosmos.nft.v1beta1/module.ts +108 -0
  228. package/cosmos.nft.v1beta1/registry.ts +7 -0
  229. package/cosmos.nft.v1beta1/rest.ts +685 -0
  230. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  231. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  232. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +251 -0
  233. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +163 -0
  234. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.ts +240 -0
  235. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +964 -0
  236. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.ts +173 -0
  237. package/cosmos.nft.v1beta1/types/google/api/annotations.ts +2 -0
  238. package/cosmos.nft.v1beta1/types/google/api/http.ts +589 -0
  239. package/cosmos.nft.v1beta1/types/google/protobuf/any.ts +240 -0
  240. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  241. package/cosmos.nft.v1beta1/types.ts +17 -0
  242. package/cosmos.params.v1beta1/index.ts +6 -0
  243. package/cosmos.params.v1beta1/module.ts +102 -0
  244. package/cosmos.params.v1beta1/registry.ts +7 -0
  245. package/cosmos.params.v1beta1/rest.ts +220 -0
  246. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.ts +174 -0
  247. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.ts +364 -0
  248. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  249. package/cosmos.params.v1beta1/types/gogoproto/gogo.ts +2 -0
  250. package/cosmos.params.v1beta1/types/google/api/annotations.ts +2 -0
  251. package/cosmos.params.v1beta1/types/google/api/http.ts +589 -0
  252. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  253. package/cosmos.params.v1beta1/types.ts +11 -0
  254. package/cosmos.slashing.v1beta1/index.ts +6 -0
  255. package/cosmos.slashing.v1beta1/module.ts +139 -0
  256. package/cosmos.slashing.v1beta1/registry.ts +9 -0
  257. package/cosmos.slashing.v1beta1/rest.ts +368 -0
  258. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  259. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  260. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +364 -0
  261. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.ts +411 -0
  262. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.ts +352 -0
  263. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +141 -0
  264. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  265. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.ts +2 -0
  266. package/cosmos.slashing.v1beta1/types/google/api/annotations.ts +2 -0
  267. package/cosmos.slashing.v1beta1/types/google/api/http.ts +589 -0
  268. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  269. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.ts +187 -0
  270. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  271. package/cosmos.slashing.v1beta1/types.ts +15 -0
  272. package/cosmos.staking.v1beta1/index.ts +6 -0
  273. package/cosmos.staking.v1beta1/module.ts +340 -0
  274. package/cosmos.staking.v1beta1/registry.ts +19 -0
  275. package/cosmos.staking.v1beta1/rest.ts +1239 -0
  276. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  277. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  278. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  279. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.ts +245 -0
  280. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +322 -0
  281. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +2109 -0
  282. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +1829 -0
  283. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1005 -0
  284. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  285. package/cosmos.staking.v1beta1/types/gogoproto/gogo.ts +2 -0
  286. package/cosmos.staking.v1beta1/types/google/api/annotations.ts +2 -0
  287. package/cosmos.staking.v1beta1/types/google/api/http.ts +589 -0
  288. package/cosmos.staking.v1beta1/types/google/protobuf/any.ts +240 -0
  289. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  290. package/cosmos.staking.v1beta1/types/google/protobuf/duration.ts +187 -0
  291. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  292. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  293. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  294. package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1452 -0
  295. package/cosmos.staking.v1beta1/types/tendermint/types/validator.ts +308 -0
  296. package/cosmos.staking.v1beta1/types/tendermint/version/types.ts +184 -0
  297. package/cosmos.staking.v1beta1/types.ts +51 -0
  298. package/cosmos.tx.v1beta1/index.ts +6 -0
  299. package/cosmos.tx.v1beta1/module.ts +122 -0
  300. package/cosmos.tx.v1beta1/registry.ts +7 -0
  301. package/cosmos.tx.v1beta1/rest.ts +1372 -0
  302. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +1040 -0
  303. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  304. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  305. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.ts +195 -0
  306. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.ts +556 -0
  307. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +1057 -0
  308. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.ts +1355 -0
  309. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  310. package/cosmos.tx.v1beta1/types/gogoproto/gogo.ts +2 -0
  311. package/cosmos.tx.v1beta1/types/google/api/annotations.ts +2 -0
  312. package/cosmos.tx.v1beta1/types/google/api/http.ts +589 -0
  313. package/cosmos.tx.v1beta1/types/google/protobuf/any.ts +240 -0
  314. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  315. package/cosmos.tx.v1beta1/types/google/protobuf/duration.ts +187 -0
  316. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  317. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +4154 -0
  318. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  319. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  320. package/cosmos.tx.v1beta1/types/tendermint/types/block.ts +112 -0
  321. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.ts +412 -0
  322. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +514 -0
  323. package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1452 -0
  324. package/cosmos.tx.v1beta1/types/tendermint/types/validator.ts +308 -0
  325. package/cosmos.tx.v1beta1/types/tendermint/version/types.ts +184 -0
  326. package/cosmos.tx.v1beta1/types.ts +31 -0
  327. package/cosmos.upgrade.v1beta1/index.ts +6 -0
  328. package/cosmos.upgrade.v1beta1/module.ts +170 -0
  329. package/cosmos.upgrade.v1beta1/registry.ts +11 -0
  330. package/cosmos.upgrade.v1beta1/rest.ts +468 -0
  331. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  332. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.ts +728 -0
  333. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +284 -0
  334. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  335. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  336. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts +2 -0
  337. package/cosmos.upgrade.v1beta1/types/google/api/annotations.ts +2 -0
  338. package/cosmos.upgrade.v1beta1/types/google/api/http.ts +589 -0
  339. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.ts +240 -0
  340. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  341. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  342. package/cosmos.upgrade.v1beta1/types.ts +13 -0
  343. package/cosmos.vesting.v1beta1/index.ts +6 -0
  344. package/cosmos.vesting.v1beta1/module.ts +207 -0
  345. package/cosmos.vesting.v1beta1/registry.ts +13 -0
  346. package/cosmos.vesting.v1beta1/rest.ts +297 -0
  347. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  348. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  349. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  350. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +540 -0
  351. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +529 -0
  352. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  353. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts +2 -0
  354. package/cosmos.vesting.v1beta1/types/google/protobuf/any.ts +240 -0
  355. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  356. package/cosmos.vesting.v1beta1/types.ts +17 -0
  357. package/env.ts +7 -0
  358. package/helpers.ts +32 -0
  359. package/ibc.applications.interchain_accounts.controller.v1/index.ts +6 -0
  360. package/ibc.applications.interchain_accounts.controller.v1/module.ts +98 -0
  361. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +7 -0
  362. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +346 -0
  363. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.ts +2 -0
  364. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.ts +2 -0
  365. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.ts +589 -0
  366. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.ts +240 -0
  367. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.ts +3753 -0
  368. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +75 -0
  369. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.ts +274 -0
  370. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +361 -0
  371. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.ts +234 -0
  372. package/ibc.applications.interchain_accounts.controller.v1/types.ts +7 -0
  373. package/ibc.applications.interchain_accounts.host.v1/index.ts +6 -0
  374. package/ibc.applications.interchain_accounts.host.v1/module.ts +98 -0
  375. package/ibc.applications.interchain_accounts.host.v1/registry.ts +7 -0
  376. package/ibc.applications.interchain_accounts.host.v1/rest.ts +183 -0
  377. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.ts +2 -0
  378. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.ts +2 -0
  379. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.ts +589 -0
  380. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.ts +3753 -0
  381. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.ts +92 -0
  382. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.ts +141 -0
  383. package/ibc.applications.interchain_accounts.host.v1/types.ts +7 -0
  384. package/ibc.applications.transfer.v1/index.ts +6 -0
  385. package/ibc.applications.transfer.v1/module.ts +133 -0
  386. package/ibc.applications.transfer.v1/registry.ts +9 -0
  387. package/ibc.applications.transfer.v1/rest.ts +544 -0
  388. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  389. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  390. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  391. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.ts +247 -0
  392. package/ibc.applications.transfer.v1/types/gogoproto/gogo.ts +2 -0
  393. package/ibc.applications.transfer.v1/types/google/api/annotations.ts +2 -0
  394. package/ibc.applications.transfer.v1/types/google/api/http.ts +589 -0
  395. package/ibc.applications.transfer.v1/types/google/protobuf/any.ts +240 -0
  396. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.ts +3753 -0
  397. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.ts +216 -0
  398. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +100 -0
  399. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +659 -0
  400. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.ts +168 -0
  401. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.ts +287 -0
  402. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +608 -0
  403. package/ibc.applications.transfer.v1/types.ts +9 -0
  404. package/ibc.core.channel.v1/index.ts +6 -0
  405. package/ibc.core.channel.v1/module.ts +112 -0
  406. package/ibc.core.channel.v1/registry.ts +7 -0
  407. package/ibc.core.channel.v1/rest.ts +1375 -0
  408. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  409. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  410. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.ts +247 -0
  411. package/ibc.core.channel.v1/types/gogoproto/gogo.ts +2 -0
  412. package/ibc.core.channel.v1/types/google/api/annotations.ts +2 -0
  413. package/ibc.core.channel.v1/types/google/api/http.ts +589 -0
  414. package/ibc.core.channel.v1/types/google/protobuf/any.ts +240 -0
  415. package/ibc.core.channel.v1/types/google/protobuf/descriptor.ts +3753 -0
  416. package/ibc.core.channel.v1/types/google/protobuf/timestamp.ts +216 -0
  417. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.ts +905 -0
  418. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.ts +301 -0
  419. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.ts +2472 -0
  420. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +1784 -0
  421. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +608 -0
  422. package/ibc.core.channel.v1/types.ts +21 -0
  423. package/ibc.core.client.v1/index.ts +6 -0
  424. package/ibc.core.client.v1/module.ts +114 -0
  425. package/ibc.core.client.v1/registry.ts +7 -0
  426. package/ibc.core.client.v1/rest.ts +1084 -0
  427. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  428. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  429. package/ibc.core.client.v1/types/cosmos_proto/cosmos.ts +247 -0
  430. package/ibc.core.client.v1/types/gogoproto/gogo.ts +2 -0
  431. package/ibc.core.client.v1/types/google/api/annotations.ts +2 -0
  432. package/ibc.core.client.v1/types/google/api/http.ts +589 -0
  433. package/ibc.core.client.v1/types/google/protobuf/any.ts +240 -0
  434. package/ibc.core.client.v1/types/google/protobuf/descriptor.ts +3753 -0
  435. package/ibc.core.client.v1/types/google/protobuf/timestamp.ts +216 -0
  436. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +608 -0
  437. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.ts +357 -0
  438. package/ibc.core.client.v1/types/ibc/core/client/v1/query.ts +1390 -0
  439. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +691 -0
  440. package/ibc.core.client.v1/types.ts +23 -0
  441. package/ibc.core.connection.v1/index.ts +6 -0
  442. package/ibc.core.connection.v1/module.ts +110 -0
  443. package/ibc.core.connection.v1/registry.ts +7 -0
  444. package/ibc.core.connection.v1/rest.ts +889 -0
  445. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  446. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  447. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.ts +247 -0
  448. package/ibc.core.connection.v1/types/gogoproto/gogo.ts +2 -0
  449. package/ibc.core.connection.v1/types/google/api/annotations.ts +2 -0
  450. package/ibc.core.connection.v1/types/google/api/http.ts +589 -0
  451. package/ibc.core.connection.v1/types/google/protobuf/any.ts +240 -0
  452. package/ibc.core.connection.v1/types/google/protobuf/descriptor.ts +3753 -0
  453. package/ibc.core.connection.v1/types/google/protobuf/timestamp.ts +216 -0
  454. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +608 -0
  455. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +299 -0
  456. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.ts +698 -0
  457. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.ts +152 -0
  458. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.ts +1041 -0
  459. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +908 -0
  460. package/ibc.core.connection.v1/types/proofs.ts +1408 -0
  461. package/ibc.core.connection.v1/types.ts +19 -0
  462. package/iconlake.icon/index.ts +6 -0
  463. package/iconlake.icon/module.ts +135 -0
  464. package/iconlake.icon/registry.ts +9 -0
  465. package/iconlake.icon/rest.ts +206 -0
  466. package/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  467. package/iconlake.icon/types/gogoproto/gogo.ts +2 -0
  468. package/iconlake.icon/types/google/api/annotations.ts +2 -0
  469. package/iconlake.icon/types/google/api/http.ts +589 -0
  470. package/iconlake.icon/types/google/protobuf/descriptor.ts +3753 -0
  471. package/iconlake.icon/types/iconlake/icon/genesis.ts +74 -0
  472. package/iconlake.icon/types/iconlake/icon/params.ts +58 -0
  473. package/iconlake.icon/types/iconlake/icon/query.ts +276 -0
  474. package/iconlake.icon/types/iconlake/icon/tx.ts +374 -0
  475. package/iconlake.icon/types.ts +11 -0
  476. package/iconlake.iconlake/index.ts +6 -0
  477. package/iconlake.iconlake/module.ts +133 -0
  478. package/iconlake.iconlake/registry.ts +9 -0
  479. package/iconlake.iconlake/rest.ts +342 -0
  480. package/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  481. package/iconlake.iconlake/types/cosmos/base/v1beta1/coin.ts +261 -0
  482. package/iconlake.iconlake/types/cosmos_proto/cosmos.ts +247 -0
  483. package/iconlake.iconlake/types/gogoproto/gogo.ts +2 -0
  484. package/iconlake.iconlake/types/google/api/annotations.ts +2 -0
  485. package/iconlake.iconlake/types/google/api/http.ts +589 -0
  486. package/iconlake.iconlake/types/google/protobuf/descriptor.ts +3753 -0
  487. package/iconlake.iconlake/types/iconlake/iconlake/account.ts +140 -0
  488. package/iconlake.iconlake/types/iconlake/iconlake/genesis.ts +91 -0
  489. package/iconlake.iconlake/types/iconlake/iconlake/params.ts +58 -0
  490. package/iconlake.iconlake/types/iconlake/iconlake/query.ts +388 -0
  491. package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +214 -0
  492. package/iconlake.iconlake/types.ts +9 -0
  493. package/index.ts +75 -0
  494. package/modules.ts +5 -0
  495. package/package.json +35 -0
  496. package/tsconfig.json +12 -0
  497. package/types.d.ts +21 -0
@@ -0,0 +1,1057 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { Block } from "../../../tendermint/types/block";
5
+ import { BlockID } from "../../../tendermint/types/types";
6
+ import { GasInfo, Result, TxResponse } from "../../base/abci/v1beta1/abci";
7
+ import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
8
+ import { Tx } from "./tx";
9
+
10
+ export const protobufPackage = "cosmos.tx.v1beta1";
11
+
12
+ /** OrderBy defines the sorting order */
13
+ export enum OrderBy {
14
+ /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */
15
+ ORDER_BY_UNSPECIFIED = 0,
16
+ /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */
17
+ ORDER_BY_ASC = 1,
18
+ /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */
19
+ ORDER_BY_DESC = 2,
20
+ UNRECOGNIZED = -1,
21
+ }
22
+
23
+ export function orderByFromJSON(object: any): OrderBy {
24
+ switch (object) {
25
+ case 0:
26
+ case "ORDER_BY_UNSPECIFIED":
27
+ return OrderBy.ORDER_BY_UNSPECIFIED;
28
+ case 1:
29
+ case "ORDER_BY_ASC":
30
+ return OrderBy.ORDER_BY_ASC;
31
+ case 2:
32
+ case "ORDER_BY_DESC":
33
+ return OrderBy.ORDER_BY_DESC;
34
+ case -1:
35
+ case "UNRECOGNIZED":
36
+ default:
37
+ return OrderBy.UNRECOGNIZED;
38
+ }
39
+ }
40
+
41
+ export function orderByToJSON(object: OrderBy): string {
42
+ switch (object) {
43
+ case OrderBy.ORDER_BY_UNSPECIFIED:
44
+ return "ORDER_BY_UNSPECIFIED";
45
+ case OrderBy.ORDER_BY_ASC:
46
+ return "ORDER_BY_ASC";
47
+ case OrderBy.ORDER_BY_DESC:
48
+ return "ORDER_BY_DESC";
49
+ case OrderBy.UNRECOGNIZED:
50
+ default:
51
+ return "UNRECOGNIZED";
52
+ }
53
+ }
54
+
55
+ /** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */
56
+ export enum BroadcastMode {
57
+ /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */
58
+ BROADCAST_MODE_UNSPECIFIED = 0,
59
+ /**
60
+ * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
61
+ * the tx to be committed in a block.
62
+ */
63
+ BROADCAST_MODE_BLOCK = 1,
64
+ /**
65
+ * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
66
+ * a CheckTx execution response only.
67
+ */
68
+ BROADCAST_MODE_SYNC = 2,
69
+ /**
70
+ * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
71
+ * immediately.
72
+ */
73
+ BROADCAST_MODE_ASYNC = 3,
74
+ UNRECOGNIZED = -1,
75
+ }
76
+
77
+ export function broadcastModeFromJSON(object: any): BroadcastMode {
78
+ switch (object) {
79
+ case 0:
80
+ case "BROADCAST_MODE_UNSPECIFIED":
81
+ return BroadcastMode.BROADCAST_MODE_UNSPECIFIED;
82
+ case 1:
83
+ case "BROADCAST_MODE_BLOCK":
84
+ return BroadcastMode.BROADCAST_MODE_BLOCK;
85
+ case 2:
86
+ case "BROADCAST_MODE_SYNC":
87
+ return BroadcastMode.BROADCAST_MODE_SYNC;
88
+ case 3:
89
+ case "BROADCAST_MODE_ASYNC":
90
+ return BroadcastMode.BROADCAST_MODE_ASYNC;
91
+ case -1:
92
+ case "UNRECOGNIZED":
93
+ default:
94
+ return BroadcastMode.UNRECOGNIZED;
95
+ }
96
+ }
97
+
98
+ export function broadcastModeToJSON(object: BroadcastMode): string {
99
+ switch (object) {
100
+ case BroadcastMode.BROADCAST_MODE_UNSPECIFIED:
101
+ return "BROADCAST_MODE_UNSPECIFIED";
102
+ case BroadcastMode.BROADCAST_MODE_BLOCK:
103
+ return "BROADCAST_MODE_BLOCK";
104
+ case BroadcastMode.BROADCAST_MODE_SYNC:
105
+ return "BROADCAST_MODE_SYNC";
106
+ case BroadcastMode.BROADCAST_MODE_ASYNC:
107
+ return "BROADCAST_MODE_ASYNC";
108
+ case BroadcastMode.UNRECOGNIZED:
109
+ default:
110
+ return "UNRECOGNIZED";
111
+ }
112
+ }
113
+
114
+ /**
115
+ * GetTxsEventRequest is the request type for the Service.TxsByEvents
116
+ * RPC method.
117
+ */
118
+ export interface GetTxsEventRequest {
119
+ /** events is the list of transaction event type. */
120
+ events: string[];
121
+ /**
122
+ * pagination defines a pagination for the request.
123
+ * Deprecated post v0.46.x: use page and limit instead.
124
+ *
125
+ * @deprecated
126
+ */
127
+ pagination: PageRequest | undefined;
128
+ orderBy: OrderBy;
129
+ /** page is the page number to query, starts at 1. If not provided, will default to first page. */
130
+ page: number;
131
+ /**
132
+ * limit is the total number of results to be returned in the result page.
133
+ * If left empty it will default to a value to be set by each app.
134
+ */
135
+ limit: number;
136
+ }
137
+
138
+ /**
139
+ * GetTxsEventResponse is the response type for the Service.TxsByEvents
140
+ * RPC method.
141
+ */
142
+ export interface GetTxsEventResponse {
143
+ /** txs is the list of queried transactions. */
144
+ txs: Tx[];
145
+ /** tx_responses is the list of queried TxResponses. */
146
+ txResponses: TxResponse[];
147
+ /**
148
+ * pagination defines a pagination for the response.
149
+ * Deprecated post v0.46.x: use total instead.
150
+ *
151
+ * @deprecated
152
+ */
153
+ pagination:
154
+ | PageResponse
155
+ | undefined;
156
+ /** total is total number of results available */
157
+ total: number;
158
+ }
159
+
160
+ /**
161
+ * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
162
+ * RPC method.
163
+ */
164
+ export interface BroadcastTxRequest {
165
+ /** tx_bytes is the raw transaction. */
166
+ txBytes: Uint8Array;
167
+ mode: BroadcastMode;
168
+ }
169
+
170
+ /**
171
+ * BroadcastTxResponse is the response type for the
172
+ * Service.BroadcastTx method.
173
+ */
174
+ export interface BroadcastTxResponse {
175
+ /** tx_response is the queried TxResponses. */
176
+ txResponse: TxResponse | undefined;
177
+ }
178
+
179
+ /**
180
+ * SimulateRequest is the request type for the Service.Simulate
181
+ * RPC method.
182
+ */
183
+ export interface SimulateRequest {
184
+ /**
185
+ * tx is the transaction to simulate.
186
+ * Deprecated. Send raw tx bytes instead.
187
+ *
188
+ * @deprecated
189
+ */
190
+ tx:
191
+ | Tx
192
+ | undefined;
193
+ /**
194
+ * tx_bytes is the raw transaction.
195
+ *
196
+ * Since: cosmos-sdk 0.43
197
+ */
198
+ txBytes: Uint8Array;
199
+ }
200
+
201
+ /**
202
+ * SimulateResponse is the response type for the
203
+ * Service.SimulateRPC method.
204
+ */
205
+ export interface SimulateResponse {
206
+ /** gas_info is the information about gas used in the simulation. */
207
+ gasInfo:
208
+ | GasInfo
209
+ | undefined;
210
+ /** result is the result of the simulation. */
211
+ result: Result | undefined;
212
+ }
213
+
214
+ /**
215
+ * GetTxRequest is the request type for the Service.GetTx
216
+ * RPC method.
217
+ */
218
+ export interface GetTxRequest {
219
+ /** hash is the tx hash to query, encoded as a hex string. */
220
+ hash: string;
221
+ }
222
+
223
+ /** GetTxResponse is the response type for the Service.GetTx method. */
224
+ export interface GetTxResponse {
225
+ /** tx is the queried transaction. */
226
+ tx:
227
+ | Tx
228
+ | undefined;
229
+ /** tx_response is the queried TxResponses. */
230
+ txResponse: TxResponse | undefined;
231
+ }
232
+
233
+ /**
234
+ * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs
235
+ * RPC method.
236
+ *
237
+ * Since: cosmos-sdk 0.45.2
238
+ */
239
+ export interface GetBlockWithTxsRequest {
240
+ /** height is the height of the block to query. */
241
+ height: number;
242
+ /** pagination defines a pagination for the request. */
243
+ pagination: PageRequest | undefined;
244
+ }
245
+
246
+ /**
247
+ * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.
248
+ *
249
+ * Since: cosmos-sdk 0.45.2
250
+ */
251
+ export interface GetBlockWithTxsResponse {
252
+ /** txs are the transactions in the block. */
253
+ txs: Tx[];
254
+ blockId: BlockID | undefined;
255
+ block:
256
+ | Block
257
+ | undefined;
258
+ /** pagination defines a pagination for the response. */
259
+ pagination: PageResponse | undefined;
260
+ }
261
+
262
+ function createBaseGetTxsEventRequest(): GetTxsEventRequest {
263
+ return { events: [], pagination: undefined, orderBy: 0, page: 0, limit: 0 };
264
+ }
265
+
266
+ export const GetTxsEventRequest = {
267
+ encode(message: GetTxsEventRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
268
+ for (const v of message.events) {
269
+ writer.uint32(10).string(v!);
270
+ }
271
+ if (message.pagination !== undefined) {
272
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
273
+ }
274
+ if (message.orderBy !== 0) {
275
+ writer.uint32(24).int32(message.orderBy);
276
+ }
277
+ if (message.page !== 0) {
278
+ writer.uint32(32).uint64(message.page);
279
+ }
280
+ if (message.limit !== 0) {
281
+ writer.uint32(40).uint64(message.limit);
282
+ }
283
+ return writer;
284
+ },
285
+
286
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetTxsEventRequest {
287
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
288
+ let end = length === undefined ? reader.len : reader.pos + length;
289
+ const message = createBaseGetTxsEventRequest();
290
+ while (reader.pos < end) {
291
+ const tag = reader.uint32();
292
+ switch (tag >>> 3) {
293
+ case 1:
294
+ message.events.push(reader.string());
295
+ break;
296
+ case 2:
297
+ message.pagination = PageRequest.decode(reader, reader.uint32());
298
+ break;
299
+ case 3:
300
+ message.orderBy = reader.int32() as any;
301
+ break;
302
+ case 4:
303
+ message.page = longToNumber(reader.uint64() as Long);
304
+ break;
305
+ case 5:
306
+ message.limit = longToNumber(reader.uint64() as Long);
307
+ break;
308
+ default:
309
+ reader.skipType(tag & 7);
310
+ break;
311
+ }
312
+ }
313
+ return message;
314
+ },
315
+
316
+ fromJSON(object: any): GetTxsEventRequest {
317
+ return {
318
+ events: Array.isArray(object?.events) ? object.events.map((e: any) => String(e)) : [],
319
+ pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
320
+ orderBy: isSet(object.orderBy) ? orderByFromJSON(object.orderBy) : 0,
321
+ page: isSet(object.page) ? Number(object.page) : 0,
322
+ limit: isSet(object.limit) ? Number(object.limit) : 0,
323
+ };
324
+ },
325
+
326
+ toJSON(message: GetTxsEventRequest): unknown {
327
+ const obj: any = {};
328
+ if (message.events) {
329
+ obj.events = message.events.map((e) => e);
330
+ } else {
331
+ obj.events = [];
332
+ }
333
+ message.pagination !== undefined
334
+ && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
335
+ message.orderBy !== undefined && (obj.orderBy = orderByToJSON(message.orderBy));
336
+ message.page !== undefined && (obj.page = Math.round(message.page));
337
+ message.limit !== undefined && (obj.limit = Math.round(message.limit));
338
+ return obj;
339
+ },
340
+
341
+ fromPartial<I extends Exact<DeepPartial<GetTxsEventRequest>, I>>(object: I): GetTxsEventRequest {
342
+ const message = createBaseGetTxsEventRequest();
343
+ message.events = object.events?.map((e) => e) || [];
344
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
345
+ ? PageRequest.fromPartial(object.pagination)
346
+ : undefined;
347
+ message.orderBy = object.orderBy ?? 0;
348
+ message.page = object.page ?? 0;
349
+ message.limit = object.limit ?? 0;
350
+ return message;
351
+ },
352
+ };
353
+
354
+ function createBaseGetTxsEventResponse(): GetTxsEventResponse {
355
+ return { txs: [], txResponses: [], pagination: undefined, total: 0 };
356
+ }
357
+
358
+ export const GetTxsEventResponse = {
359
+ encode(message: GetTxsEventResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
360
+ for (const v of message.txs) {
361
+ Tx.encode(v!, writer.uint32(10).fork()).ldelim();
362
+ }
363
+ for (const v of message.txResponses) {
364
+ TxResponse.encode(v!, writer.uint32(18).fork()).ldelim();
365
+ }
366
+ if (message.pagination !== undefined) {
367
+ PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim();
368
+ }
369
+ if (message.total !== 0) {
370
+ writer.uint32(32).uint64(message.total);
371
+ }
372
+ return writer;
373
+ },
374
+
375
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetTxsEventResponse {
376
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
377
+ let end = length === undefined ? reader.len : reader.pos + length;
378
+ const message = createBaseGetTxsEventResponse();
379
+ while (reader.pos < end) {
380
+ const tag = reader.uint32();
381
+ switch (tag >>> 3) {
382
+ case 1:
383
+ message.txs.push(Tx.decode(reader, reader.uint32()));
384
+ break;
385
+ case 2:
386
+ message.txResponses.push(TxResponse.decode(reader, reader.uint32()));
387
+ break;
388
+ case 3:
389
+ message.pagination = PageResponse.decode(reader, reader.uint32());
390
+ break;
391
+ case 4:
392
+ message.total = longToNumber(reader.uint64() as Long);
393
+ break;
394
+ default:
395
+ reader.skipType(tag & 7);
396
+ break;
397
+ }
398
+ }
399
+ return message;
400
+ },
401
+
402
+ fromJSON(object: any): GetTxsEventResponse {
403
+ return {
404
+ txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => Tx.fromJSON(e)) : [],
405
+ txResponses: Array.isArray(object?.txResponses) ? object.txResponses.map((e: any) => TxResponse.fromJSON(e)) : [],
406
+ pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
407
+ total: isSet(object.total) ? Number(object.total) : 0,
408
+ };
409
+ },
410
+
411
+ toJSON(message: GetTxsEventResponse): unknown {
412
+ const obj: any = {};
413
+ if (message.txs) {
414
+ obj.txs = message.txs.map((e) => e ? Tx.toJSON(e) : undefined);
415
+ } else {
416
+ obj.txs = [];
417
+ }
418
+ if (message.txResponses) {
419
+ obj.txResponses = message.txResponses.map((e) => e ? TxResponse.toJSON(e) : undefined);
420
+ } else {
421
+ obj.txResponses = [];
422
+ }
423
+ message.pagination !== undefined
424
+ && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
425
+ message.total !== undefined && (obj.total = Math.round(message.total));
426
+ return obj;
427
+ },
428
+
429
+ fromPartial<I extends Exact<DeepPartial<GetTxsEventResponse>, I>>(object: I): GetTxsEventResponse {
430
+ const message = createBaseGetTxsEventResponse();
431
+ message.txs = object.txs?.map((e) => Tx.fromPartial(e)) || [];
432
+ message.txResponses = object.txResponses?.map((e) => TxResponse.fromPartial(e)) || [];
433
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
434
+ ? PageResponse.fromPartial(object.pagination)
435
+ : undefined;
436
+ message.total = object.total ?? 0;
437
+ return message;
438
+ },
439
+ };
440
+
441
+ function createBaseBroadcastTxRequest(): BroadcastTxRequest {
442
+ return { txBytes: new Uint8Array(), mode: 0 };
443
+ }
444
+
445
+ export const BroadcastTxRequest = {
446
+ encode(message: BroadcastTxRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
447
+ if (message.txBytes.length !== 0) {
448
+ writer.uint32(10).bytes(message.txBytes);
449
+ }
450
+ if (message.mode !== 0) {
451
+ writer.uint32(16).int32(message.mode);
452
+ }
453
+ return writer;
454
+ },
455
+
456
+ decode(input: _m0.Reader | Uint8Array, length?: number): BroadcastTxRequest {
457
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
458
+ let end = length === undefined ? reader.len : reader.pos + length;
459
+ const message = createBaseBroadcastTxRequest();
460
+ while (reader.pos < end) {
461
+ const tag = reader.uint32();
462
+ switch (tag >>> 3) {
463
+ case 1:
464
+ message.txBytes = reader.bytes();
465
+ break;
466
+ case 2:
467
+ message.mode = reader.int32() as any;
468
+ break;
469
+ default:
470
+ reader.skipType(tag & 7);
471
+ break;
472
+ }
473
+ }
474
+ return message;
475
+ },
476
+
477
+ fromJSON(object: any): BroadcastTxRequest {
478
+ return {
479
+ txBytes: isSet(object.txBytes) ? bytesFromBase64(object.txBytes) : new Uint8Array(),
480
+ mode: isSet(object.mode) ? broadcastModeFromJSON(object.mode) : 0,
481
+ };
482
+ },
483
+
484
+ toJSON(message: BroadcastTxRequest): unknown {
485
+ const obj: any = {};
486
+ message.txBytes !== undefined
487
+ && (obj.txBytes = base64FromBytes(message.txBytes !== undefined ? message.txBytes : new Uint8Array()));
488
+ message.mode !== undefined && (obj.mode = broadcastModeToJSON(message.mode));
489
+ return obj;
490
+ },
491
+
492
+ fromPartial<I extends Exact<DeepPartial<BroadcastTxRequest>, I>>(object: I): BroadcastTxRequest {
493
+ const message = createBaseBroadcastTxRequest();
494
+ message.txBytes = object.txBytes ?? new Uint8Array();
495
+ message.mode = object.mode ?? 0;
496
+ return message;
497
+ },
498
+ };
499
+
500
+ function createBaseBroadcastTxResponse(): BroadcastTxResponse {
501
+ return { txResponse: undefined };
502
+ }
503
+
504
+ export const BroadcastTxResponse = {
505
+ encode(message: BroadcastTxResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
506
+ if (message.txResponse !== undefined) {
507
+ TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim();
508
+ }
509
+ return writer;
510
+ },
511
+
512
+ decode(input: _m0.Reader | Uint8Array, length?: number): BroadcastTxResponse {
513
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
514
+ let end = length === undefined ? reader.len : reader.pos + length;
515
+ const message = createBaseBroadcastTxResponse();
516
+ while (reader.pos < end) {
517
+ const tag = reader.uint32();
518
+ switch (tag >>> 3) {
519
+ case 1:
520
+ message.txResponse = TxResponse.decode(reader, reader.uint32());
521
+ break;
522
+ default:
523
+ reader.skipType(tag & 7);
524
+ break;
525
+ }
526
+ }
527
+ return message;
528
+ },
529
+
530
+ fromJSON(object: any): BroadcastTxResponse {
531
+ return { txResponse: isSet(object.txResponse) ? TxResponse.fromJSON(object.txResponse) : undefined };
532
+ },
533
+
534
+ toJSON(message: BroadcastTxResponse): unknown {
535
+ const obj: any = {};
536
+ message.txResponse !== undefined
537
+ && (obj.txResponse = message.txResponse ? TxResponse.toJSON(message.txResponse) : undefined);
538
+ return obj;
539
+ },
540
+
541
+ fromPartial<I extends Exact<DeepPartial<BroadcastTxResponse>, I>>(object: I): BroadcastTxResponse {
542
+ const message = createBaseBroadcastTxResponse();
543
+ message.txResponse = (object.txResponse !== undefined && object.txResponse !== null)
544
+ ? TxResponse.fromPartial(object.txResponse)
545
+ : undefined;
546
+ return message;
547
+ },
548
+ };
549
+
550
+ function createBaseSimulateRequest(): SimulateRequest {
551
+ return { tx: undefined, txBytes: new Uint8Array() };
552
+ }
553
+
554
+ export const SimulateRequest = {
555
+ encode(message: SimulateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
556
+ if (message.tx !== undefined) {
557
+ Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
558
+ }
559
+ if (message.txBytes.length !== 0) {
560
+ writer.uint32(18).bytes(message.txBytes);
561
+ }
562
+ return writer;
563
+ },
564
+
565
+ decode(input: _m0.Reader | Uint8Array, length?: number): SimulateRequest {
566
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
567
+ let end = length === undefined ? reader.len : reader.pos + length;
568
+ const message = createBaseSimulateRequest();
569
+ while (reader.pos < end) {
570
+ const tag = reader.uint32();
571
+ switch (tag >>> 3) {
572
+ case 1:
573
+ message.tx = Tx.decode(reader, reader.uint32());
574
+ break;
575
+ case 2:
576
+ message.txBytes = reader.bytes();
577
+ break;
578
+ default:
579
+ reader.skipType(tag & 7);
580
+ break;
581
+ }
582
+ }
583
+ return message;
584
+ },
585
+
586
+ fromJSON(object: any): SimulateRequest {
587
+ return {
588
+ tx: isSet(object.tx) ? Tx.fromJSON(object.tx) : undefined,
589
+ txBytes: isSet(object.txBytes) ? bytesFromBase64(object.txBytes) : new Uint8Array(),
590
+ };
591
+ },
592
+
593
+ toJSON(message: SimulateRequest): unknown {
594
+ const obj: any = {};
595
+ message.tx !== undefined && (obj.tx = message.tx ? Tx.toJSON(message.tx) : undefined);
596
+ message.txBytes !== undefined
597
+ && (obj.txBytes = base64FromBytes(message.txBytes !== undefined ? message.txBytes : new Uint8Array()));
598
+ return obj;
599
+ },
600
+
601
+ fromPartial<I extends Exact<DeepPartial<SimulateRequest>, I>>(object: I): SimulateRequest {
602
+ const message = createBaseSimulateRequest();
603
+ message.tx = (object.tx !== undefined && object.tx !== null) ? Tx.fromPartial(object.tx) : undefined;
604
+ message.txBytes = object.txBytes ?? new Uint8Array();
605
+ return message;
606
+ },
607
+ };
608
+
609
+ function createBaseSimulateResponse(): SimulateResponse {
610
+ return { gasInfo: undefined, result: undefined };
611
+ }
612
+
613
+ export const SimulateResponse = {
614
+ encode(message: SimulateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
615
+ if (message.gasInfo !== undefined) {
616
+ GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim();
617
+ }
618
+ if (message.result !== undefined) {
619
+ Result.encode(message.result, writer.uint32(18).fork()).ldelim();
620
+ }
621
+ return writer;
622
+ },
623
+
624
+ decode(input: _m0.Reader | Uint8Array, length?: number): SimulateResponse {
625
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
626
+ let end = length === undefined ? reader.len : reader.pos + length;
627
+ const message = createBaseSimulateResponse();
628
+ while (reader.pos < end) {
629
+ const tag = reader.uint32();
630
+ switch (tag >>> 3) {
631
+ case 1:
632
+ message.gasInfo = GasInfo.decode(reader, reader.uint32());
633
+ break;
634
+ case 2:
635
+ message.result = Result.decode(reader, reader.uint32());
636
+ break;
637
+ default:
638
+ reader.skipType(tag & 7);
639
+ break;
640
+ }
641
+ }
642
+ return message;
643
+ },
644
+
645
+ fromJSON(object: any): SimulateResponse {
646
+ return {
647
+ gasInfo: isSet(object.gasInfo) ? GasInfo.fromJSON(object.gasInfo) : undefined,
648
+ result: isSet(object.result) ? Result.fromJSON(object.result) : undefined,
649
+ };
650
+ },
651
+
652
+ toJSON(message: SimulateResponse): unknown {
653
+ const obj: any = {};
654
+ message.gasInfo !== undefined && (obj.gasInfo = message.gasInfo ? GasInfo.toJSON(message.gasInfo) : undefined);
655
+ message.result !== undefined && (obj.result = message.result ? Result.toJSON(message.result) : undefined);
656
+ return obj;
657
+ },
658
+
659
+ fromPartial<I extends Exact<DeepPartial<SimulateResponse>, I>>(object: I): SimulateResponse {
660
+ const message = createBaseSimulateResponse();
661
+ message.gasInfo = (object.gasInfo !== undefined && object.gasInfo !== null)
662
+ ? GasInfo.fromPartial(object.gasInfo)
663
+ : undefined;
664
+ message.result = (object.result !== undefined && object.result !== null)
665
+ ? Result.fromPartial(object.result)
666
+ : undefined;
667
+ return message;
668
+ },
669
+ };
670
+
671
+ function createBaseGetTxRequest(): GetTxRequest {
672
+ return { hash: "" };
673
+ }
674
+
675
+ export const GetTxRequest = {
676
+ encode(message: GetTxRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
677
+ if (message.hash !== "") {
678
+ writer.uint32(10).string(message.hash);
679
+ }
680
+ return writer;
681
+ },
682
+
683
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetTxRequest {
684
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
685
+ let end = length === undefined ? reader.len : reader.pos + length;
686
+ const message = createBaseGetTxRequest();
687
+ while (reader.pos < end) {
688
+ const tag = reader.uint32();
689
+ switch (tag >>> 3) {
690
+ case 1:
691
+ message.hash = reader.string();
692
+ break;
693
+ default:
694
+ reader.skipType(tag & 7);
695
+ break;
696
+ }
697
+ }
698
+ return message;
699
+ },
700
+
701
+ fromJSON(object: any): GetTxRequest {
702
+ return { hash: isSet(object.hash) ? String(object.hash) : "" };
703
+ },
704
+
705
+ toJSON(message: GetTxRequest): unknown {
706
+ const obj: any = {};
707
+ message.hash !== undefined && (obj.hash = message.hash);
708
+ return obj;
709
+ },
710
+
711
+ fromPartial<I extends Exact<DeepPartial<GetTxRequest>, I>>(object: I): GetTxRequest {
712
+ const message = createBaseGetTxRequest();
713
+ message.hash = object.hash ?? "";
714
+ return message;
715
+ },
716
+ };
717
+
718
+ function createBaseGetTxResponse(): GetTxResponse {
719
+ return { tx: undefined, txResponse: undefined };
720
+ }
721
+
722
+ export const GetTxResponse = {
723
+ encode(message: GetTxResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
724
+ if (message.tx !== undefined) {
725
+ Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
726
+ }
727
+ if (message.txResponse !== undefined) {
728
+ TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim();
729
+ }
730
+ return writer;
731
+ },
732
+
733
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetTxResponse {
734
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
735
+ let end = length === undefined ? reader.len : reader.pos + length;
736
+ const message = createBaseGetTxResponse();
737
+ while (reader.pos < end) {
738
+ const tag = reader.uint32();
739
+ switch (tag >>> 3) {
740
+ case 1:
741
+ message.tx = Tx.decode(reader, reader.uint32());
742
+ break;
743
+ case 2:
744
+ message.txResponse = TxResponse.decode(reader, reader.uint32());
745
+ break;
746
+ default:
747
+ reader.skipType(tag & 7);
748
+ break;
749
+ }
750
+ }
751
+ return message;
752
+ },
753
+
754
+ fromJSON(object: any): GetTxResponse {
755
+ return {
756
+ tx: isSet(object.tx) ? Tx.fromJSON(object.tx) : undefined,
757
+ txResponse: isSet(object.txResponse) ? TxResponse.fromJSON(object.txResponse) : undefined,
758
+ };
759
+ },
760
+
761
+ toJSON(message: GetTxResponse): unknown {
762
+ const obj: any = {};
763
+ message.tx !== undefined && (obj.tx = message.tx ? Tx.toJSON(message.tx) : undefined);
764
+ message.txResponse !== undefined
765
+ && (obj.txResponse = message.txResponse ? TxResponse.toJSON(message.txResponse) : undefined);
766
+ return obj;
767
+ },
768
+
769
+ fromPartial<I extends Exact<DeepPartial<GetTxResponse>, I>>(object: I): GetTxResponse {
770
+ const message = createBaseGetTxResponse();
771
+ message.tx = (object.tx !== undefined && object.tx !== null) ? Tx.fromPartial(object.tx) : undefined;
772
+ message.txResponse = (object.txResponse !== undefined && object.txResponse !== null)
773
+ ? TxResponse.fromPartial(object.txResponse)
774
+ : undefined;
775
+ return message;
776
+ },
777
+ };
778
+
779
+ function createBaseGetBlockWithTxsRequest(): GetBlockWithTxsRequest {
780
+ return { height: 0, pagination: undefined };
781
+ }
782
+
783
+ export const GetBlockWithTxsRequest = {
784
+ encode(message: GetBlockWithTxsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
785
+ if (message.height !== 0) {
786
+ writer.uint32(8).int64(message.height);
787
+ }
788
+ if (message.pagination !== undefined) {
789
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
790
+ }
791
+ return writer;
792
+ },
793
+
794
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockWithTxsRequest {
795
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
796
+ let end = length === undefined ? reader.len : reader.pos + length;
797
+ const message = createBaseGetBlockWithTxsRequest();
798
+ while (reader.pos < end) {
799
+ const tag = reader.uint32();
800
+ switch (tag >>> 3) {
801
+ case 1:
802
+ message.height = longToNumber(reader.int64() as Long);
803
+ break;
804
+ case 2:
805
+ message.pagination = PageRequest.decode(reader, reader.uint32());
806
+ break;
807
+ default:
808
+ reader.skipType(tag & 7);
809
+ break;
810
+ }
811
+ }
812
+ return message;
813
+ },
814
+
815
+ fromJSON(object: any): GetBlockWithTxsRequest {
816
+ return {
817
+ height: isSet(object.height) ? Number(object.height) : 0,
818
+ pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
819
+ };
820
+ },
821
+
822
+ toJSON(message: GetBlockWithTxsRequest): unknown {
823
+ const obj: any = {};
824
+ message.height !== undefined && (obj.height = Math.round(message.height));
825
+ message.pagination !== undefined
826
+ && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
827
+ return obj;
828
+ },
829
+
830
+ fromPartial<I extends Exact<DeepPartial<GetBlockWithTxsRequest>, I>>(object: I): GetBlockWithTxsRequest {
831
+ const message = createBaseGetBlockWithTxsRequest();
832
+ message.height = object.height ?? 0;
833
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
834
+ ? PageRequest.fromPartial(object.pagination)
835
+ : undefined;
836
+ return message;
837
+ },
838
+ };
839
+
840
+ function createBaseGetBlockWithTxsResponse(): GetBlockWithTxsResponse {
841
+ return { txs: [], blockId: undefined, block: undefined, pagination: undefined };
842
+ }
843
+
844
+ export const GetBlockWithTxsResponse = {
845
+ encode(message: GetBlockWithTxsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
846
+ for (const v of message.txs) {
847
+ Tx.encode(v!, writer.uint32(10).fork()).ldelim();
848
+ }
849
+ if (message.blockId !== undefined) {
850
+ BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim();
851
+ }
852
+ if (message.block !== undefined) {
853
+ Block.encode(message.block, writer.uint32(26).fork()).ldelim();
854
+ }
855
+ if (message.pagination !== undefined) {
856
+ PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
857
+ }
858
+ return writer;
859
+ },
860
+
861
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockWithTxsResponse {
862
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
863
+ let end = length === undefined ? reader.len : reader.pos + length;
864
+ const message = createBaseGetBlockWithTxsResponse();
865
+ while (reader.pos < end) {
866
+ const tag = reader.uint32();
867
+ switch (tag >>> 3) {
868
+ case 1:
869
+ message.txs.push(Tx.decode(reader, reader.uint32()));
870
+ break;
871
+ case 2:
872
+ message.blockId = BlockID.decode(reader, reader.uint32());
873
+ break;
874
+ case 3:
875
+ message.block = Block.decode(reader, reader.uint32());
876
+ break;
877
+ case 4:
878
+ message.pagination = PageResponse.decode(reader, reader.uint32());
879
+ break;
880
+ default:
881
+ reader.skipType(tag & 7);
882
+ break;
883
+ }
884
+ }
885
+ return message;
886
+ },
887
+
888
+ fromJSON(object: any): GetBlockWithTxsResponse {
889
+ return {
890
+ txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => Tx.fromJSON(e)) : [],
891
+ blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined,
892
+ block: isSet(object.block) ? Block.fromJSON(object.block) : undefined,
893
+ pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
894
+ };
895
+ },
896
+
897
+ toJSON(message: GetBlockWithTxsResponse): unknown {
898
+ const obj: any = {};
899
+ if (message.txs) {
900
+ obj.txs = message.txs.map((e) => e ? Tx.toJSON(e) : undefined);
901
+ } else {
902
+ obj.txs = [];
903
+ }
904
+ message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined);
905
+ message.block !== undefined && (obj.block = message.block ? Block.toJSON(message.block) : undefined);
906
+ message.pagination !== undefined
907
+ && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
908
+ return obj;
909
+ },
910
+
911
+ fromPartial<I extends Exact<DeepPartial<GetBlockWithTxsResponse>, I>>(object: I): GetBlockWithTxsResponse {
912
+ const message = createBaseGetBlockWithTxsResponse();
913
+ message.txs = object.txs?.map((e) => Tx.fromPartial(e)) || [];
914
+ message.blockId = (object.blockId !== undefined && object.blockId !== null)
915
+ ? BlockID.fromPartial(object.blockId)
916
+ : undefined;
917
+ message.block = (object.block !== undefined && object.block !== null) ? Block.fromPartial(object.block) : undefined;
918
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
919
+ ? PageResponse.fromPartial(object.pagination)
920
+ : undefined;
921
+ return message;
922
+ },
923
+ };
924
+
925
+ /** Service defines a gRPC service for interacting with transactions. */
926
+ export interface Service {
927
+ /** Simulate simulates executing a transaction for estimating gas usage. */
928
+ Simulate(request: SimulateRequest): Promise<SimulateResponse>;
929
+ /** GetTx fetches a tx by hash. */
930
+ GetTx(request: GetTxRequest): Promise<GetTxResponse>;
931
+ /** BroadcastTx broadcast transaction. */
932
+ BroadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
933
+ /** GetTxsEvent fetches txs by event. */
934
+ GetTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
935
+ /**
936
+ * GetBlockWithTxs fetches a block with decoded txs.
937
+ *
938
+ * Since: cosmos-sdk 0.45.2
939
+ */
940
+ GetBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
941
+ }
942
+
943
+ export class ServiceClientImpl implements Service {
944
+ private readonly rpc: Rpc;
945
+ constructor(rpc: Rpc) {
946
+ this.rpc = rpc;
947
+ this.Simulate = this.Simulate.bind(this);
948
+ this.GetTx = this.GetTx.bind(this);
949
+ this.BroadcastTx = this.BroadcastTx.bind(this);
950
+ this.GetTxsEvent = this.GetTxsEvent.bind(this);
951
+ this.GetBlockWithTxs = this.GetBlockWithTxs.bind(this);
952
+ }
953
+ Simulate(request: SimulateRequest): Promise<SimulateResponse> {
954
+ const data = SimulateRequest.encode(request).finish();
955
+ const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data);
956
+ return promise.then((data) => SimulateResponse.decode(new _m0.Reader(data)));
957
+ }
958
+
959
+ GetTx(request: GetTxRequest): Promise<GetTxResponse> {
960
+ const data = GetTxRequest.encode(request).finish();
961
+ const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data);
962
+ return promise.then((data) => GetTxResponse.decode(new _m0.Reader(data)));
963
+ }
964
+
965
+ BroadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse> {
966
+ const data = BroadcastTxRequest.encode(request).finish();
967
+ const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data);
968
+ return promise.then((data) => BroadcastTxResponse.decode(new _m0.Reader(data)));
969
+ }
970
+
971
+ GetTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse> {
972
+ const data = GetTxsEventRequest.encode(request).finish();
973
+ const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data);
974
+ return promise.then((data) => GetTxsEventResponse.decode(new _m0.Reader(data)));
975
+ }
976
+
977
+ GetBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse> {
978
+ const data = GetBlockWithTxsRequest.encode(request).finish();
979
+ const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data);
980
+ return promise.then((data) => GetBlockWithTxsResponse.decode(new _m0.Reader(data)));
981
+ }
982
+ }
983
+
984
+ interface Rpc {
985
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
986
+ }
987
+
988
+ declare var self: any | undefined;
989
+ declare var window: any | undefined;
990
+ declare var global: any | undefined;
991
+ var globalThis: any = (() => {
992
+ if (typeof globalThis !== "undefined") {
993
+ return globalThis;
994
+ }
995
+ if (typeof self !== "undefined") {
996
+ return self;
997
+ }
998
+ if (typeof window !== "undefined") {
999
+ return window;
1000
+ }
1001
+ if (typeof global !== "undefined") {
1002
+ return global;
1003
+ }
1004
+ throw "Unable to locate global object";
1005
+ })();
1006
+
1007
+ function bytesFromBase64(b64: string): Uint8Array {
1008
+ if (globalThis.Buffer) {
1009
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
1010
+ } else {
1011
+ const bin = globalThis.atob(b64);
1012
+ const arr = new Uint8Array(bin.length);
1013
+ for (let i = 0; i < bin.length; ++i) {
1014
+ arr[i] = bin.charCodeAt(i);
1015
+ }
1016
+ return arr;
1017
+ }
1018
+ }
1019
+
1020
+ function base64FromBytes(arr: Uint8Array): string {
1021
+ if (globalThis.Buffer) {
1022
+ return globalThis.Buffer.from(arr).toString("base64");
1023
+ } else {
1024
+ const bin: string[] = [];
1025
+ arr.forEach((byte) => {
1026
+ bin.push(String.fromCharCode(byte));
1027
+ });
1028
+ return globalThis.btoa(bin.join(""));
1029
+ }
1030
+ }
1031
+
1032
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1033
+
1034
+ export type DeepPartial<T> = T extends Builtin ? T
1035
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
1036
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
1037
+ : Partial<T>;
1038
+
1039
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
1040
+ export type Exact<P, I extends P> = P extends Builtin ? P
1041
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
1042
+
1043
+ function longToNumber(long: Long): number {
1044
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
1045
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1046
+ }
1047
+ return long.toNumber();
1048
+ }
1049
+
1050
+ if (_m0.util.Long !== Long) {
1051
+ _m0.util.Long = Long as any;
1052
+ _m0.configure();
1053
+ }
1054
+
1055
+ function isSet(value: any): boolean {
1056
+ return value !== null && value !== undefined;
1057
+ }