@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,1372 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /*
4
+ * ---------------------------------------------------------------
5
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
6
+ * ## ##
7
+ * ## AUTHOR: acacode ##
8
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
9
+ * ---------------------------------------------------------------
10
+ */
11
+
12
+ /**
13
+ * Event allows application developers to attach additional information to
14
+ ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx.
15
+ Later, transactions may be queried using these events.
16
+ */
17
+ export interface AbciEvent {
18
+ type?: string;
19
+ attributes?: AbciEventAttribute[];
20
+ }
21
+
22
+ /**
23
+ * EventAttribute is a single key-value pair, associated with an event.
24
+ */
25
+ export interface AbciEventAttribute {
26
+ /** @format byte */
27
+ key?: string;
28
+
29
+ /** @format byte */
30
+ value?: string;
31
+
32
+ /** nondeterministic */
33
+ index?: boolean;
34
+ }
35
+
36
+ /**
37
+ * Result is the union of ResponseFormat and ResponseCheckTx.
38
+ */
39
+ export interface Abciv1Beta1Result {
40
+ /**
41
+ * Data is any data returned from message or handler execution. It MUST be
42
+ * length prefixed in order to separate data from multiple message executions.
43
+ * Deprecated. This field is still populated, but prefer msg_response instead
44
+ * because it also contains the Msg response typeURL.
45
+ * @format byte
46
+ */
47
+ data?: string;
48
+
49
+ /** Log contains the log information from message or handler execution. */
50
+ log?: string;
51
+
52
+ /**
53
+ * Events contains a slice of Event objects that were emitted during message
54
+ * or handler execution.
55
+ */
56
+ events?: AbciEvent[];
57
+
58
+ /**
59
+ * msg_responses contains the Msg handler responses type packed in Anys.
60
+ *
61
+ * Since: cosmos-sdk 0.46
62
+ */
63
+ msg_responses?: ProtobufAny[];
64
+ }
65
+
66
+ export interface CryptoPublicKey {
67
+ /** @format byte */
68
+ ed25519?: string;
69
+
70
+ /** @format byte */
71
+ secp256k1?: string;
72
+ }
73
+
74
+ /**
75
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
76
+ URL that describes the type of the serialized message.
77
+
78
+ Protobuf library provides support to pack/unpack Any values in the form
79
+ of utility functions or additional generated methods of the Any type.
80
+
81
+ Example 1: Pack and unpack a message in C++.
82
+
83
+ Foo foo = ...;
84
+ Any any;
85
+ any.PackFrom(foo);
86
+ ...
87
+ if (any.UnpackTo(&foo)) {
88
+ ...
89
+ }
90
+
91
+ Example 2: Pack and unpack a message in Java.
92
+
93
+ Foo foo = ...;
94
+ Any any = Any.pack(foo);
95
+ ...
96
+ if (any.is(Foo.class)) {
97
+ foo = any.unpack(Foo.class);
98
+ }
99
+
100
+ Example 3: Pack and unpack a message in Python.
101
+
102
+ foo = Foo(...)
103
+ any = Any()
104
+ any.Pack(foo)
105
+ ...
106
+ if any.Is(Foo.DESCRIPTOR):
107
+ any.Unpack(foo)
108
+ ...
109
+
110
+ Example 4: Pack and unpack a message in Go
111
+
112
+ foo := &pb.Foo{...}
113
+ any, err := anypb.New(foo)
114
+ if err != nil {
115
+ ...
116
+ }
117
+ ...
118
+ foo := &pb.Foo{}
119
+ if err := any.UnmarshalTo(foo); err != nil {
120
+ ...
121
+ }
122
+
123
+ The pack methods provided by protobuf library will by default use
124
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
125
+ methods only use the fully qualified type name after the last '/'
126
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
127
+ name "y.z".
128
+
129
+
130
+ JSON
131
+ ====
132
+ The JSON representation of an `Any` value uses the regular
133
+ representation of the deserialized, embedded message, with an
134
+ additional field `@type` which contains the type URL. Example:
135
+
136
+ package google.profile;
137
+ message Person {
138
+ string first_name = 1;
139
+ string last_name = 2;
140
+ }
141
+
142
+ {
143
+ "@type": "type.googleapis.com/google.profile.Person",
144
+ "firstName": <string>,
145
+ "lastName": <string>
146
+ }
147
+
148
+ If the embedded message type is well-known and has a custom JSON
149
+ representation, that representation will be embedded adding a field
150
+ `value` which holds the custom JSON in addition to the `@type`
151
+ field. Example (for message [google.protobuf.Duration][]):
152
+
153
+ {
154
+ "@type": "type.googleapis.com/google.protobuf.Duration",
155
+ "value": "1.212s"
156
+ }
157
+ */
158
+ export interface ProtobufAny {
159
+ /**
160
+ * A URL/resource name that uniquely identifies the type of the serialized
161
+ * protocol buffer message. This string must contain at least
162
+ * one "/" character. The last segment of the URL's path must represent
163
+ * the fully qualified name of the type (as in
164
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
165
+ * (e.g., leading "." is not accepted).
166
+ *
167
+ * In practice, teams usually precompile into the binary all types that they
168
+ * expect it to use in the context of Any. However, for URLs which use the
169
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
170
+ * server that maps type URLs to message definitions as follows:
171
+ * * If no scheme is provided, `https` is assumed.
172
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
173
+ * value in binary format, or produce an error.
174
+ * * Applications are allowed to cache lookup results based on the
175
+ * URL, or have them precompiled into a binary to avoid any
176
+ * lookup. Therefore, binary compatibility needs to be preserved
177
+ * on changes to types. (Use versioned type names to manage
178
+ * breaking changes.)
179
+ * Note: this functionality is not currently available in the official
180
+ * protobuf release, and it is not used for type URLs beginning with
181
+ * type.googleapis.com.
182
+ * Schemes other than `http`, `https` (or the empty scheme) might be
183
+ * used with implementation specific semantics.
184
+ */
185
+ "@type"?: string;
186
+ }
187
+
188
+ export interface RpcStatus {
189
+ /** @format int32 */
190
+ code?: number;
191
+ message?: string;
192
+ details?: ProtobufAny[];
193
+ }
194
+
195
+ export interface TenderminttypesData {
196
+ /**
197
+ * Txs that will be applied by state @ block.Height+1.
198
+ * NOTE: not all txs here are valid. We're just agreeing on the order first.
199
+ * This means that block.AppHash does not include these txs.
200
+ */
201
+ txs?: string[];
202
+ }
203
+
204
+ export interface TenderminttypesEvidence {
205
+ /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */
206
+ duplicate_vote_evidence?: TypesDuplicateVoteEvidence;
207
+
208
+ /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */
209
+ light_client_attack_evidence?: TypesLightClientAttackEvidence;
210
+ }
211
+
212
+ export interface TenderminttypesValidator {
213
+ /** @format byte */
214
+ address?: string;
215
+ pub_key?: CryptoPublicKey;
216
+
217
+ /** @format int64 */
218
+ voting_power?: string;
219
+
220
+ /** @format int64 */
221
+ proposer_priority?: string;
222
+ }
223
+
224
+ export interface TypesBlock {
225
+ /** Header defines the structure of a Tendermint block header. */
226
+ header?: TypesHeader;
227
+ data?: TenderminttypesData;
228
+ evidence?: TypesEvidenceList;
229
+
230
+ /** Commit contains the evidence that a block was committed by a set of validators. */
231
+ last_commit?: TypesCommit;
232
+ }
233
+
234
+ export interface TypesBlockID {
235
+ /** @format byte */
236
+ hash?: string;
237
+ part_set_header?: TypesPartSetHeader;
238
+ }
239
+
240
+ export enum TypesBlockIDFlag {
241
+ BLOCK_ID_FLAG_UNKNOWN = "BLOCK_ID_FLAG_UNKNOWN",
242
+ BLOCK_ID_FLAG_ABSENT = "BLOCK_ID_FLAG_ABSENT",
243
+ BLOCK_ID_FLAG_COMMIT = "BLOCK_ID_FLAG_COMMIT",
244
+ BLOCK_ID_FLAG_NIL = "BLOCK_ID_FLAG_NIL",
245
+ }
246
+
247
+ /**
248
+ * Commit contains the evidence that a block was committed by a set of validators.
249
+ */
250
+ export interface TypesCommit {
251
+ /** @format int64 */
252
+ height?: string;
253
+
254
+ /** @format int32 */
255
+ round?: number;
256
+ block_id?: TypesBlockID;
257
+ signatures?: TypesCommitSig[];
258
+ }
259
+
260
+ /**
261
+ * CommitSig is a part of the Vote included in a Commit.
262
+ */
263
+ export interface TypesCommitSig {
264
+ block_id_flag?: TypesBlockIDFlag;
265
+
266
+ /** @format byte */
267
+ validator_address?: string;
268
+
269
+ /** @format date-time */
270
+ timestamp?: string;
271
+
272
+ /** @format byte */
273
+ signature?: string;
274
+ }
275
+
276
+ /**
277
+ * DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
278
+ */
279
+ export interface TypesDuplicateVoteEvidence {
280
+ /**
281
+ * Vote represents a prevote, precommit, or commit vote from validators for
282
+ * consensus.
283
+ */
284
+ vote_a?: TypesVote;
285
+
286
+ /**
287
+ * Vote represents a prevote, precommit, or commit vote from validators for
288
+ * consensus.
289
+ */
290
+ vote_b?: TypesVote;
291
+
292
+ /** @format int64 */
293
+ total_voting_power?: string;
294
+
295
+ /** @format int64 */
296
+ validator_power?: string;
297
+
298
+ /** @format date-time */
299
+ timestamp?: string;
300
+ }
301
+
302
+ export interface TypesEvidenceList {
303
+ evidence?: TenderminttypesEvidence[];
304
+ }
305
+
306
+ /**
307
+ * Header defines the structure of a Tendermint block header.
308
+ */
309
+ export interface TypesHeader {
310
+ /**
311
+ * basic block info
312
+ * Consensus captures the consensus rules for processing a block in the blockchain,
313
+ * including all blockchain data structures and the rules of the application's
314
+ * state transition machine.
315
+ */
316
+ version?: VersionConsensus;
317
+ chain_id?: string;
318
+
319
+ /** @format int64 */
320
+ height?: string;
321
+
322
+ /** @format date-time */
323
+ time?: string;
324
+
325
+ /** prev block info */
326
+ last_block_id?: TypesBlockID;
327
+
328
+ /**
329
+ * hashes of block data
330
+ * commit from validators from the last block
331
+ * @format byte
332
+ */
333
+ last_commit_hash?: string;
334
+
335
+ /**
336
+ * transactions
337
+ * @format byte
338
+ */
339
+ data_hash?: string;
340
+
341
+ /**
342
+ * hashes from the app output from the prev block
343
+ * validators for the current block
344
+ * @format byte
345
+ */
346
+ validators_hash?: string;
347
+
348
+ /**
349
+ * validators for the next block
350
+ * @format byte
351
+ */
352
+ next_validators_hash?: string;
353
+
354
+ /**
355
+ * consensus params for current block
356
+ * @format byte
357
+ */
358
+ consensus_hash?: string;
359
+
360
+ /**
361
+ * state after txs from the previous block
362
+ * @format byte
363
+ */
364
+ app_hash?: string;
365
+
366
+ /**
367
+ * root hash of all results from the txs from the previous block
368
+ * @format byte
369
+ */
370
+ last_results_hash?: string;
371
+
372
+ /**
373
+ * consensus info
374
+ * evidence included in the block
375
+ * @format byte
376
+ */
377
+ evidence_hash?: string;
378
+
379
+ /**
380
+ * original proposer of the block
381
+ * @format byte
382
+ */
383
+ proposer_address?: string;
384
+ }
385
+
386
+ export interface TypesLightBlock {
387
+ signed_header?: TypesSignedHeader;
388
+ validator_set?: TypesValidatorSet;
389
+ }
390
+
391
+ /**
392
+ * LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
393
+ */
394
+ export interface TypesLightClientAttackEvidence {
395
+ conflicting_block?: TypesLightBlock;
396
+
397
+ /** @format int64 */
398
+ common_height?: string;
399
+ byzantine_validators?: TenderminttypesValidator[];
400
+
401
+ /** @format int64 */
402
+ total_voting_power?: string;
403
+
404
+ /** @format date-time */
405
+ timestamp?: string;
406
+ }
407
+
408
+ export interface TypesPartSetHeader {
409
+ /** @format int64 */
410
+ total?: number;
411
+
412
+ /** @format byte */
413
+ hash?: string;
414
+ }
415
+
416
+ export interface TypesSignedHeader {
417
+ /** Header defines the structure of a Tendermint block header. */
418
+ header?: TypesHeader;
419
+
420
+ /** Commit contains the evidence that a block was committed by a set of validators. */
421
+ commit?: TypesCommit;
422
+ }
423
+
424
+ /**
425
+ * SignedMsgType is a type of signed message in the consensus.
426
+
427
+ - SIGNED_MSG_TYPE_PREVOTE: Votes
428
+ - SIGNED_MSG_TYPE_PROPOSAL: Proposals
429
+ */
430
+ export enum TypesSignedMsgType {
431
+ SIGNED_MSG_TYPE_UNKNOWN = "SIGNED_MSG_TYPE_UNKNOWN",
432
+ SIGNED_MSG_TYPE_PREVOTE = "SIGNED_MSG_TYPE_PREVOTE",
433
+ SIGNED_MSG_TYPE_PRECOMMIT = "SIGNED_MSG_TYPE_PRECOMMIT",
434
+ SIGNED_MSG_TYPE_PROPOSAL = "SIGNED_MSG_TYPE_PROPOSAL",
435
+ }
436
+
437
+ export interface TypesValidatorSet {
438
+ validators?: TenderminttypesValidator[];
439
+ proposer?: TenderminttypesValidator;
440
+
441
+ /** @format int64 */
442
+ total_voting_power?: string;
443
+ }
444
+
445
+ /**
446
+ * Vote represents a prevote, precommit, or commit vote from validators for
447
+ consensus.
448
+ */
449
+ export interface TypesVote {
450
+ /**
451
+ * SignedMsgType is a type of signed message in the consensus.
452
+ *
453
+ * - SIGNED_MSG_TYPE_PREVOTE: Votes
454
+ * - SIGNED_MSG_TYPE_PROPOSAL: Proposals
455
+ */
456
+ type?: TypesSignedMsgType;
457
+
458
+ /** @format int64 */
459
+ height?: string;
460
+
461
+ /** @format int32 */
462
+ round?: number;
463
+
464
+ /** zero if vote is nil. */
465
+ block_id?: TypesBlockID;
466
+
467
+ /** @format date-time */
468
+ timestamp?: string;
469
+
470
+ /** @format byte */
471
+ validator_address?: string;
472
+
473
+ /** @format int32 */
474
+ validator_index?: number;
475
+
476
+ /** @format byte */
477
+ signature?: string;
478
+ }
479
+
480
+ /**
481
+ * ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
482
+ */
483
+ export interface V1Beta1ABCIMessageLog {
484
+ /** @format int64 */
485
+ msg_index?: number;
486
+ log?: string;
487
+
488
+ /**
489
+ * Events contains a slice of Event objects that were emitted during some
490
+ * execution.
491
+ */
492
+ events?: V1Beta1StringEvent[];
493
+ }
494
+
495
+ /**
496
+ * Attribute defines an attribute wrapper where the key and value are
497
+ strings instead of raw bytes.
498
+ */
499
+ export interface V1Beta1Attribute {
500
+ key?: string;
501
+ value?: string;
502
+ }
503
+
504
+ /**
505
+ * AuthInfo describes the fee and signer modes that are used to sign a
506
+ transaction.
507
+ */
508
+ export interface V1Beta1AuthInfo {
509
+ /**
510
+ * signer_infos defines the signing modes for the required signers. The number
511
+ * and order of elements must match the required signers from TxBody's
512
+ * messages. The first element is the primary signer and the one which pays
513
+ * the fee.
514
+ */
515
+ signer_infos?: V1Beta1SignerInfo[];
516
+
517
+ /**
518
+ * Fee is the fee and gas limit for the transaction. The first signer is the
519
+ * primary signer and the one which pays the fee. The fee can be calculated
520
+ * based on the cost of evaluating the body and doing signature verification
521
+ * of the signers. This can be estimated via simulation.
522
+ */
523
+ fee?: V1Beta1Fee;
524
+
525
+ /**
526
+ * Tip is the optional tip used for transactions fees paid in another denom.
527
+ *
528
+ * This field is ignored if the chain didn't enable tips, i.e. didn't add the
529
+ * `TipDecorator` in its posthandler.
530
+ * Since: cosmos-sdk 0.46
531
+ */
532
+ tip?: V1Beta1Tip;
533
+ }
534
+
535
+ /**
536
+ * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
537
+
538
+ - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
539
+ - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
540
+ the tx to be committed in a block.
541
+ - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
542
+ a CheckTx execution response only.
543
+ - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
544
+ immediately.
545
+ */
546
+ export enum V1Beta1BroadcastMode {
547
+ BROADCAST_MODE_UNSPECIFIED = "BROADCAST_MODE_UNSPECIFIED",
548
+ BROADCAST_MODE_BLOCK = "BROADCAST_MODE_BLOCK",
549
+ BROADCAST_MODE_SYNC = "BROADCAST_MODE_SYNC",
550
+ BROADCAST_MODE_ASYNC = "BROADCAST_MODE_ASYNC",
551
+ }
552
+
553
+ /**
554
+ * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
555
+ RPC method.
556
+ */
557
+ export interface V1Beta1BroadcastTxRequest {
558
+ /**
559
+ * tx_bytes is the raw transaction.
560
+ * @format byte
561
+ */
562
+ tx_bytes?: string;
563
+
564
+ /**
565
+ * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
566
+ *
567
+ * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
568
+ * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
569
+ * the tx to be committed in a block.
570
+ * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
571
+ * a CheckTx execution response only.
572
+ * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
573
+ * immediately.
574
+ */
575
+ mode?: V1Beta1BroadcastMode;
576
+ }
577
+
578
+ /**
579
+ * BroadcastTxResponse is the response type for the
580
+ Service.BroadcastTx method.
581
+ */
582
+ export interface V1Beta1BroadcastTxResponse {
583
+ /** tx_response is the queried TxResponses. */
584
+ tx_response?: V1Beta1TxResponse;
585
+ }
586
+
587
+ /**
588
+ * Coin defines a token with a denomination and an amount.
589
+
590
+ NOTE: The amount field is an Int which implements the custom method
591
+ signatures required by gogoproto.
592
+ */
593
+ export interface V1Beta1Coin {
594
+ denom?: string;
595
+ amount?: string;
596
+ }
597
+
598
+ /**
599
+ * CompactBitArray is an implementation of a space efficient bit array.
600
+ This is used to ensure that the encoded data takes up a minimal amount of
601
+ space after proto encoding.
602
+ This is not thread safe, and is not intended for concurrent usage.
603
+ */
604
+ export interface V1Beta1CompactBitArray {
605
+ /** @format int64 */
606
+ extra_bits_stored?: number;
607
+
608
+ /** @format byte */
609
+ elems?: string;
610
+ }
611
+
612
+ /**
613
+ * Fee includes the amount of coins paid in fees and the maximum
614
+ gas to be used by the transaction. The ratio yields an effective "gasprice",
615
+ which must be above some miminum to be accepted into the mempool.
616
+ */
617
+ export interface V1Beta1Fee {
618
+ /** amount is the amount of coins to be paid as a fee */
619
+ amount?: V1Beta1Coin[];
620
+
621
+ /**
622
+ * gas_limit is the maximum gas that can be used in transaction processing
623
+ * before an out of gas error occurs
624
+ * @format uint64
625
+ */
626
+ gas_limit?: string;
627
+
628
+ /**
629
+ * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
630
+ * the payer must be a tx signer (and thus have signed this field in AuthInfo).
631
+ * setting this field does *not* change the ordering of required signers for the transaction.
632
+ */
633
+ payer?: string;
634
+
635
+ /**
636
+ * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
637
+ * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
638
+ * not support fee grants, this will fail
639
+ */
640
+ granter?: string;
641
+ }
642
+
643
+ /**
644
+ * GasInfo defines tx execution gas context.
645
+ */
646
+ export interface V1Beta1GasInfo {
647
+ /**
648
+ * GasWanted is the maximum units of work we allow this tx to perform.
649
+ * @format uint64
650
+ */
651
+ gas_wanted?: string;
652
+
653
+ /**
654
+ * GasUsed is the amount of gas actually consumed.
655
+ * @format uint64
656
+ */
657
+ gas_used?: string;
658
+ }
659
+
660
+ /**
661
+ * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.
662
+
663
+ Since: cosmos-sdk 0.45.2
664
+ */
665
+ export interface V1Beta1GetBlockWithTxsResponse {
666
+ /** txs are the transactions in the block. */
667
+ txs?: V1Beta1Tx[];
668
+ block_id?: TypesBlockID;
669
+ block?: TypesBlock;
670
+
671
+ /** pagination defines a pagination for the response. */
672
+ pagination?: V1Beta1PageResponse;
673
+ }
674
+
675
+ /**
676
+ * GetTxResponse is the response type for the Service.GetTx method.
677
+ */
678
+ export interface V1Beta1GetTxResponse {
679
+ /** tx is the queried transaction. */
680
+ tx?: V1Beta1Tx;
681
+
682
+ /** tx_response is the queried TxResponses. */
683
+ tx_response?: V1Beta1TxResponse;
684
+ }
685
+
686
+ /**
687
+ * GetTxsEventResponse is the response type for the Service.TxsByEvents
688
+ RPC method.
689
+ */
690
+ export interface V1Beta1GetTxsEventResponse {
691
+ /** txs is the list of queried transactions. */
692
+ txs?: V1Beta1Tx[];
693
+
694
+ /** tx_responses is the list of queried TxResponses. */
695
+ tx_responses?: V1Beta1TxResponse[];
696
+
697
+ /**
698
+ * pagination defines a pagination for the response.
699
+ * Deprecated post v0.46.x: use total instead.
700
+ */
701
+ pagination?: V1Beta1PageResponse;
702
+
703
+ /**
704
+ * total is total number of results available
705
+ * @format uint64
706
+ */
707
+ total?: string;
708
+ }
709
+
710
+ /**
711
+ * ModeInfo describes the signing mode of a single or nested multisig signer.
712
+ */
713
+ export interface V1Beta1ModeInfo {
714
+ /** single represents a single signer */
715
+ single?: V1Beta1ModeInfoSingle;
716
+
717
+ /** multi represents a nested multisig signer */
718
+ multi?: V1Beta1ModeInfoMulti;
719
+ }
720
+
721
+ export interface V1Beta1ModeInfoMulti {
722
+ /**
723
+ * bitarray specifies which keys within the multisig are signing
724
+ * CompactBitArray is an implementation of a space efficient bit array.
725
+ * This is used to ensure that the encoded data takes up a minimal amount of
726
+ * space after proto encoding.
727
+ * This is not thread safe, and is not intended for concurrent usage.
728
+ */
729
+ bitarray?: V1Beta1CompactBitArray;
730
+
731
+ /**
732
+ * mode_infos is the corresponding modes of the signers of the multisig
733
+ * which could include nested multisig public keys
734
+ */
735
+ mode_infos?: V1Beta1ModeInfo[];
736
+ }
737
+
738
+ export interface V1Beta1ModeInfoSingle {
739
+ /**
740
+ * mode is the signing mode of the single signer
741
+ * SignMode represents a signing mode with its own security guarantees.
742
+ *
743
+ * This enum should be considered a registry of all known sign modes
744
+ * in the Cosmos ecosystem. Apps are not expected to support all known
745
+ * sign modes. Apps that would like to support custom sign modes are
746
+ * encouraged to open a small PR against this file to add a new case
747
+ * to this SignMode enum describing their sign mode so that different
748
+ * apps have a consistent version of this enum.
749
+ * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
750
+ * rejected.
751
+ * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
752
+ * verified with raw bytes from Tx.
753
+ * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some
754
+ * human-readable textual representation on top of the binary representation
755
+ * from SIGN_MODE_DIRECT. It is currently not supported.
756
+ * - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses
757
+ * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
758
+ * require signers signing over other signers' `signer_info`. It also allows
759
+ * for adding Tips in transactions.
760
+ * Since: cosmos-sdk 0.46
761
+ * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
762
+ * Amino JSON and will be removed in the future.
763
+ * - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
764
+ * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
765
+ * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
766
+ * but is not implemented on the SDK by default. To enable EIP-191, you need
767
+ * to pass a custom `TxConfig` that has an implementation of
768
+ * `SignModeHandler` for EIP-191. The SDK may decide to fully support
769
+ * EIP-191 in the future.
770
+ * Since: cosmos-sdk 0.45.2
771
+ */
772
+ mode?: V1Beta1SignMode;
773
+ }
774
+
775
+ /**
776
+ * - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
777
+ - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order
778
+ - ORDER_BY_DESC: ORDER_BY_DESC defines descending order
779
+ */
780
+ export enum V1Beta1OrderBy {
781
+ ORDER_BY_UNSPECIFIED = "ORDER_BY_UNSPECIFIED",
782
+ ORDER_BY_ASC = "ORDER_BY_ASC",
783
+ ORDER_BY_DESC = "ORDER_BY_DESC",
784
+ }
785
+
786
+ /**
787
+ * message SomeRequest {
788
+ Foo some_parameter = 1;
789
+ PageRequest pagination = 2;
790
+ }
791
+ */
792
+ export interface V1Beta1PageRequest {
793
+ /**
794
+ * key is a value returned in PageResponse.next_key to begin
795
+ * querying the next page most efficiently. Only one of offset or key
796
+ * should be set.
797
+ * @format byte
798
+ */
799
+ key?: string;
800
+
801
+ /**
802
+ * offset is a numeric offset that can be used when key is unavailable.
803
+ * It is less efficient than using key. Only one of offset or key should
804
+ * be set.
805
+ * @format uint64
806
+ */
807
+ offset?: string;
808
+
809
+ /**
810
+ * limit is the total number of results to be returned in the result page.
811
+ * If left empty it will default to a value to be set by each app.
812
+ * @format uint64
813
+ */
814
+ limit?: string;
815
+
816
+ /**
817
+ * count_total is set to true to indicate that the result set should include
818
+ * a count of the total number of items available for pagination in UIs.
819
+ * count_total is only respected when offset is used. It is ignored when key
820
+ * is set.
821
+ */
822
+ count_total?: boolean;
823
+
824
+ /**
825
+ * reverse is set to true if results are to be returned in the descending order.
826
+ *
827
+ * Since: cosmos-sdk 0.43
828
+ */
829
+ reverse?: boolean;
830
+ }
831
+
832
+ /**
833
+ * PageResponse is to be embedded in gRPC response messages where the
834
+ corresponding request message has used PageRequest.
835
+
836
+ message SomeResponse {
837
+ repeated Bar results = 1;
838
+ PageResponse page = 2;
839
+ }
840
+ */
841
+ export interface V1Beta1PageResponse {
842
+ /**
843
+ * next_key is the key to be passed to PageRequest.key to
844
+ * query the next page most efficiently. It will be empty if
845
+ * there are no more results.
846
+ * @format byte
847
+ */
848
+ next_key?: string;
849
+
850
+ /**
851
+ * total is total number of results available if PageRequest.count_total
852
+ * was set, its value is undefined otherwise
853
+ * @format uint64
854
+ */
855
+ total?: string;
856
+ }
857
+
858
+ /**
859
+ * SignMode represents a signing mode with its own security guarantees.
860
+
861
+ This enum should be considered a registry of all known sign modes
862
+ in the Cosmos ecosystem. Apps are not expected to support all known
863
+ sign modes. Apps that would like to support custom sign modes are
864
+ encouraged to open a small PR against this file to add a new case
865
+ to this SignMode enum describing their sign mode so that different
866
+ apps have a consistent version of this enum.
867
+
868
+ - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
869
+ rejected.
870
+ - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
871
+ verified with raw bytes from Tx.
872
+ - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some
873
+ human-readable textual representation on top of the binary representation
874
+ from SIGN_MODE_DIRECT. It is currently not supported.
875
+ - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses
876
+ SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
877
+ require signers signing over other signers' `signer_info`. It also allows
878
+ for adding Tips in transactions.
879
+
880
+ Since: cosmos-sdk 0.46
881
+ - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
882
+ Amino JSON and will be removed in the future.
883
+ - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
884
+ SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
885
+
886
+ Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
887
+ but is not implemented on the SDK by default. To enable EIP-191, you need
888
+ to pass a custom `TxConfig` that has an implementation of
889
+ `SignModeHandler` for EIP-191. The SDK may decide to fully support
890
+ EIP-191 in the future.
891
+
892
+ Since: cosmos-sdk 0.45.2
893
+ */
894
+ export enum V1Beta1SignMode {
895
+ SIGN_MODE_UNSPECIFIED = "SIGN_MODE_UNSPECIFIED",
896
+ SIGN_MODE_DIRECT = "SIGN_MODE_DIRECT",
897
+ SIGN_MODE_TEXTUAL = "SIGN_MODE_TEXTUAL",
898
+ SIGN_MODE_DIRECT_AUX = "SIGN_MODE_DIRECT_AUX",
899
+ SIGN_MODE_LEGACY_AMINO_JSON = "SIGN_MODE_LEGACY_AMINO_JSON",
900
+ SIGNMODEEIP191 = "SIGN_MODE_EIP_191",
901
+ }
902
+
903
+ /**
904
+ * SignerInfo describes the public key and signing mode of a single top-level
905
+ signer.
906
+ */
907
+ export interface V1Beta1SignerInfo {
908
+ /**
909
+ * public_key is the public key of the signer. It is optional for accounts
910
+ * that already exist in state. If unset, the verifier can use the required \
911
+ * signer address for this position and lookup the public key.
912
+ */
913
+ public_key?: ProtobufAny;
914
+
915
+ /**
916
+ * mode_info describes the signing mode of the signer and is a nested
917
+ * structure to support nested multisig pubkey's
918
+ * ModeInfo describes the signing mode of a single or nested multisig signer.
919
+ */
920
+ mode_info?: V1Beta1ModeInfo;
921
+
922
+ /**
923
+ * sequence is the sequence of the account, which describes the
924
+ * number of committed transactions signed by a given address. It is used to
925
+ * prevent replay attacks.
926
+ * @format uint64
927
+ */
928
+ sequence?: string;
929
+ }
930
+
931
+ /**
932
+ * SimulateRequest is the request type for the Service.Simulate
933
+ RPC method.
934
+ */
935
+ export interface V1Beta1SimulateRequest {
936
+ /**
937
+ * tx is the transaction to simulate.
938
+ * Deprecated. Send raw tx bytes instead.
939
+ */
940
+ tx?: V1Beta1Tx;
941
+
942
+ /**
943
+ * tx_bytes is the raw transaction.
944
+ *
945
+ * Since: cosmos-sdk 0.43
946
+ * @format byte
947
+ */
948
+ tx_bytes?: string;
949
+ }
950
+
951
+ /**
952
+ * SimulateResponse is the response type for the
953
+ Service.SimulateRPC method.
954
+ */
955
+ export interface V1Beta1SimulateResponse {
956
+ /** gas_info is the information about gas used in the simulation. */
957
+ gas_info?: V1Beta1GasInfo;
958
+
959
+ /** result is the result of the simulation. */
960
+ result?: Abciv1Beta1Result;
961
+ }
962
+
963
+ /**
964
+ * StringEvent defines en Event object wrapper where all the attributes
965
+ contain key/value pairs that are strings instead of raw bytes.
966
+ */
967
+ export interface V1Beta1StringEvent {
968
+ type?: string;
969
+ attributes?: V1Beta1Attribute[];
970
+ }
971
+
972
+ /**
973
+ * Tip is the tip used for meta-transactions.
974
+
975
+ Since: cosmos-sdk 0.46
976
+ */
977
+ export interface V1Beta1Tip {
978
+ /** amount is the amount of the tip */
979
+ amount?: V1Beta1Coin[];
980
+
981
+ /** tipper is the address of the account paying for the tip */
982
+ tipper?: string;
983
+ }
984
+
985
+ /**
986
+ * Tx is the standard type used for broadcasting transactions.
987
+ */
988
+ export interface V1Beta1Tx {
989
+ /**
990
+ * body is the processable content of the transaction
991
+ * TxBody is the body of a transaction that all signers sign over.
992
+ */
993
+ body?: V1Beta1TxBody;
994
+
995
+ /**
996
+ * auth_info is the authorization related content of the transaction,
997
+ * specifically signers, signer modes and fee
998
+ * AuthInfo describes the fee and signer modes that are used to sign a
999
+ * transaction.
1000
+ */
1001
+ auth_info?: V1Beta1AuthInfo;
1002
+
1003
+ /**
1004
+ * signatures is a list of signatures that matches the length and order of
1005
+ * AuthInfo's signer_infos to allow connecting signature meta information like
1006
+ * public key and signing mode by position.
1007
+ */
1008
+ signatures?: string[];
1009
+ }
1010
+
1011
+ /**
1012
+ * TxBody is the body of a transaction that all signers sign over.
1013
+ */
1014
+ export interface V1Beta1TxBody {
1015
+ /**
1016
+ * messages is a list of messages to be executed. The required signers of
1017
+ * those messages define the number and order of elements in AuthInfo's
1018
+ * signer_infos and Tx's signatures. Each required signer address is added to
1019
+ * the list only the first time it occurs.
1020
+ * By convention, the first required signer (usually from the first message)
1021
+ * is referred to as the primary signer and pays the fee for the whole
1022
+ * transaction.
1023
+ */
1024
+ messages?: ProtobufAny[];
1025
+
1026
+ /**
1027
+ * memo is any arbitrary note/comment to be added to the transaction.
1028
+ * WARNING: in clients, any publicly exposed text should not be called memo,
1029
+ * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122).
1030
+ */
1031
+ memo?: string;
1032
+
1033
+ /**
1034
+ * timeout is the block height after which this transaction will not
1035
+ * be processed by the chain
1036
+ * @format uint64
1037
+ */
1038
+ timeout_height?: string;
1039
+
1040
+ /**
1041
+ * extension_options are arbitrary options that can be added by chains
1042
+ * when the default options are not sufficient. If any of these are present
1043
+ * and can't be handled, the transaction will be rejected
1044
+ */
1045
+ extension_options?: ProtobufAny[];
1046
+
1047
+ /**
1048
+ * extension_options are arbitrary options that can be added by chains
1049
+ * when the default options are not sufficient. If any of these are present
1050
+ * and can't be handled, they will be ignored
1051
+ */
1052
+ non_critical_extension_options?: ProtobufAny[];
1053
+ }
1054
+
1055
+ /**
1056
+ * TxResponse defines a structure containing relevant tx data and metadata. The
1057
+ tags are stringified and the log is JSON decoded.
1058
+ */
1059
+ export interface V1Beta1TxResponse {
1060
+ /**
1061
+ * The block height
1062
+ * @format int64
1063
+ */
1064
+ height?: string;
1065
+
1066
+ /** The transaction hash. */
1067
+ txhash?: string;
1068
+
1069
+ /** Namespace for the Code */
1070
+ codespace?: string;
1071
+
1072
+ /**
1073
+ * Response code.
1074
+ * @format int64
1075
+ */
1076
+ code?: number;
1077
+
1078
+ /** Result bytes, if any. */
1079
+ data?: string;
1080
+
1081
+ /**
1082
+ * The output of the application's logger (raw string). May be
1083
+ * non-deterministic.
1084
+ */
1085
+ raw_log?: string;
1086
+
1087
+ /** The output of the application's logger (typed). May be non-deterministic. */
1088
+ logs?: V1Beta1ABCIMessageLog[];
1089
+
1090
+ /** Additional information. May be non-deterministic. */
1091
+ info?: string;
1092
+
1093
+ /**
1094
+ * Amount of gas requested for transaction.
1095
+ * @format int64
1096
+ */
1097
+ gas_wanted?: string;
1098
+
1099
+ /**
1100
+ * Amount of gas consumed by transaction.
1101
+ * @format int64
1102
+ */
1103
+ gas_used?: string;
1104
+
1105
+ /** The request transaction bytes. */
1106
+ tx?: ProtobufAny;
1107
+
1108
+ /**
1109
+ * Time of the previous block. For heights > 1, it's the weighted median of
1110
+ * the timestamps of the valid votes in the block.LastCommit. For height == 1,
1111
+ * it's genesis time.
1112
+ */
1113
+ timestamp?: string;
1114
+
1115
+ /**
1116
+ * Events defines all the events emitted by processing a transaction. Note,
1117
+ * these events include those emitted by processing all the messages and those
1118
+ * emitted from the ante. Whereas Logs contains the events, with
1119
+ * additional metadata, emitted only by processing the messages.
1120
+ *
1121
+ * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
1122
+ */
1123
+ events?: AbciEvent[];
1124
+ }
1125
+
1126
+ /**
1127
+ * Consensus captures the consensus rules for processing a block in the blockchain,
1128
+ including all blockchain data structures and the rules of the application's
1129
+ state transition machine.
1130
+ */
1131
+ export interface VersionConsensus {
1132
+ /** @format uint64 */
1133
+ block?: string;
1134
+
1135
+ /** @format uint64 */
1136
+ app?: string;
1137
+ }
1138
+
1139
+ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
1140
+
1141
+ export type QueryParamsType = Record<string | number, any>;
1142
+
1143
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
1144
+ /** set parameter to `true` for call `securityWorker` for this request */
1145
+ secure?: boolean;
1146
+ /** request path */
1147
+ path: string;
1148
+ /** content type of request body */
1149
+ type?: ContentType;
1150
+ /** query params */
1151
+ query?: QueryParamsType;
1152
+ /** format of response (i.e. response.json() -> format: "json") */
1153
+ format?: ResponseType;
1154
+ /** request body */
1155
+ body?: unknown;
1156
+ }
1157
+
1158
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
1159
+
1160
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
1161
+ securityWorker?: (
1162
+ securityData: SecurityDataType | null,
1163
+ ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
1164
+ secure?: boolean;
1165
+ format?: ResponseType;
1166
+ }
1167
+
1168
+ export enum ContentType {
1169
+ Json = "application/json",
1170
+ FormData = "multipart/form-data",
1171
+ UrlEncoded = "application/x-www-form-urlencoded",
1172
+ }
1173
+
1174
+ export class HttpClient<SecurityDataType = unknown> {
1175
+ public instance: AxiosInstance;
1176
+ private securityData: SecurityDataType | null = null;
1177
+ private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
1178
+ private secure?: boolean;
1179
+ private format?: ResponseType;
1180
+
1181
+ constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
1182
+ this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
1183
+ this.secure = secure;
1184
+ this.format = format;
1185
+ this.securityWorker = securityWorker;
1186
+ }
1187
+
1188
+ public setSecurityData = (data: SecurityDataType | null) => {
1189
+ this.securityData = data;
1190
+ };
1191
+
1192
+ private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
1193
+ return {
1194
+ ...this.instance.defaults,
1195
+ ...params1,
1196
+ ...(params2 || {}),
1197
+ headers: {
1198
+ ...(this.instance.defaults.headers || {}),
1199
+ ...(params1.headers || {}),
1200
+ ...((params2 && params2.headers) || {}),
1201
+ },
1202
+ };
1203
+ }
1204
+
1205
+ private createFormData(input: Record<string, unknown>): FormData {
1206
+ return Object.keys(input || {}).reduce((formData, key) => {
1207
+ const property = input[key];
1208
+ formData.append(
1209
+ key,
1210
+ property instanceof Blob
1211
+ ? property
1212
+ : typeof property === "object" && property !== null
1213
+ ? JSON.stringify(property)
1214
+ : `${property}`,
1215
+ );
1216
+ return formData;
1217
+ }, new FormData());
1218
+ }
1219
+
1220
+ public request = async <T = any, _E = any>({
1221
+ secure,
1222
+ path,
1223
+ type,
1224
+ query,
1225
+ format,
1226
+ body,
1227
+ ...params
1228
+ }: FullRequestParams): Promise<AxiosResponse<T>> => {
1229
+ const secureParams =
1230
+ ((typeof secure === "boolean" ? secure : this.secure) &&
1231
+ this.securityWorker &&
1232
+ (await this.securityWorker(this.securityData))) ||
1233
+ {};
1234
+ const requestParams = this.mergeRequestParams(params, secureParams);
1235
+ const responseFormat = (format && this.format) || void 0;
1236
+
1237
+ if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
1238
+ requestParams.headers.common = { Accept: "*/*" };
1239
+ requestParams.headers.post = {};
1240
+ requestParams.headers.put = {};
1241
+
1242
+ body = this.createFormData(body as Record<string, unknown>);
1243
+ }
1244
+
1245
+ return this.instance.request({
1246
+ ...requestParams,
1247
+ headers: {
1248
+ ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
1249
+ ...(requestParams.headers || {}),
1250
+ },
1251
+ params: query,
1252
+ responseType: responseFormat,
1253
+ data: body,
1254
+ url: path,
1255
+ });
1256
+ };
1257
+ }
1258
+
1259
+ /**
1260
+ * @title cosmos/tx/v1beta1/service.proto
1261
+ * @version version not set
1262
+ */
1263
+ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
1264
+ /**
1265
+ * No description
1266
+ *
1267
+ * @tags Service
1268
+ * @name ServiceSimulate
1269
+ * @summary Simulate simulates executing a transaction for estimating gas usage.
1270
+ * @request POST:/cosmos/tx/v1beta1/simulate
1271
+ */
1272
+ serviceSimulate = (body: V1Beta1SimulateRequest, params: RequestParams = {}) =>
1273
+ this.request<V1Beta1SimulateResponse, RpcStatus>({
1274
+ path: `/cosmos/tx/v1beta1/simulate`,
1275
+ method: "POST",
1276
+ body: body,
1277
+ type: ContentType.Json,
1278
+ format: "json",
1279
+ ...params,
1280
+ });
1281
+
1282
+ /**
1283
+ * No description
1284
+ *
1285
+ * @tags Service
1286
+ * @name ServiceGetTxsEvent
1287
+ * @summary GetTxsEvent fetches txs by event.
1288
+ * @request GET:/cosmos/tx/v1beta1/txs
1289
+ */
1290
+ serviceGetTxsEvent = (
1291
+ query?: {
1292
+ events?: string[];
1293
+ "pagination.key"?: string;
1294
+ "pagination.offset"?: string;
1295
+ "pagination.limit"?: string;
1296
+ "pagination.count_total"?: boolean;
1297
+ "pagination.reverse"?: boolean;
1298
+ order_by?: "ORDER_BY_UNSPECIFIED" | "ORDER_BY_ASC" | "ORDER_BY_DESC";
1299
+ page?: string;
1300
+ limit?: string;
1301
+ },
1302
+ params: RequestParams = {},
1303
+ ) =>
1304
+ this.request<V1Beta1GetTxsEventResponse, RpcStatus>({
1305
+ path: `/cosmos/tx/v1beta1/txs`,
1306
+ method: "GET",
1307
+ query: query,
1308
+ format: "json",
1309
+ ...params,
1310
+ });
1311
+
1312
+ /**
1313
+ * No description
1314
+ *
1315
+ * @tags Service
1316
+ * @name ServiceBroadcastTx
1317
+ * @summary BroadcastTx broadcast transaction.
1318
+ * @request POST:/cosmos/tx/v1beta1/txs
1319
+ */
1320
+ serviceBroadcastTx = (body: V1Beta1BroadcastTxRequest, params: RequestParams = {}) =>
1321
+ this.request<V1Beta1BroadcastTxResponse, RpcStatus>({
1322
+ path: `/cosmos/tx/v1beta1/txs`,
1323
+ method: "POST",
1324
+ body: body,
1325
+ type: ContentType.Json,
1326
+ format: "json",
1327
+ ...params,
1328
+ });
1329
+
1330
+ /**
1331
+ * @description Since: cosmos-sdk 0.45.2
1332
+ *
1333
+ * @tags Service
1334
+ * @name ServiceGetBlockWithTxs
1335
+ * @summary GetBlockWithTxs fetches a block with decoded txs.
1336
+ * @request GET:/cosmos/tx/v1beta1/txs/block/{height}
1337
+ */
1338
+ serviceGetBlockWithTxs = (
1339
+ height: string,
1340
+ query?: {
1341
+ "pagination.key"?: string;
1342
+ "pagination.offset"?: string;
1343
+ "pagination.limit"?: string;
1344
+ "pagination.count_total"?: boolean;
1345
+ "pagination.reverse"?: boolean;
1346
+ },
1347
+ params: RequestParams = {},
1348
+ ) =>
1349
+ this.request<V1Beta1GetBlockWithTxsResponse, RpcStatus>({
1350
+ path: `/cosmos/tx/v1beta1/txs/block/${height}`,
1351
+ method: "GET",
1352
+ query: query,
1353
+ format: "json",
1354
+ ...params,
1355
+ });
1356
+
1357
+ /**
1358
+ * No description
1359
+ *
1360
+ * @tags Service
1361
+ * @name ServiceGetTx
1362
+ * @summary GetTx fetches a tx by hash.
1363
+ * @request GET:/cosmos/tx/v1beta1/txs/{hash}
1364
+ */
1365
+ serviceGetTx = (hash: string, params: RequestParams = {}) =>
1366
+ this.request<V1Beta1GetTxResponse, RpcStatus>({
1367
+ path: `/cosmos/tx/v1beta1/txs/${hash}`,
1368
+ method: "GET",
1369
+ format: "json",
1370
+ ...params,
1371
+ });
1372
+ }