@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,604 @@
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
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
14
+ URL that describes the type of the serialized message.
15
+
16
+ Protobuf library provides support to pack/unpack Any values in the form
17
+ of utility functions or additional generated methods of the Any type.
18
+
19
+ Example 1: Pack and unpack a message in C++.
20
+
21
+ Foo foo = ...;
22
+ Any any;
23
+ any.PackFrom(foo);
24
+ ...
25
+ if (any.UnpackTo(&foo)) {
26
+ ...
27
+ }
28
+
29
+ Example 2: Pack and unpack a message in Java.
30
+
31
+ Foo foo = ...;
32
+ Any any = Any.pack(foo);
33
+ ...
34
+ if (any.is(Foo.class)) {
35
+ foo = any.unpack(Foo.class);
36
+ }
37
+
38
+ Example 3: Pack and unpack a message in Python.
39
+
40
+ foo = Foo(...)
41
+ any = Any()
42
+ any.Pack(foo)
43
+ ...
44
+ if any.Is(Foo.DESCRIPTOR):
45
+ any.Unpack(foo)
46
+ ...
47
+
48
+ Example 4: Pack and unpack a message in Go
49
+
50
+ foo := &pb.Foo{...}
51
+ any, err := anypb.New(foo)
52
+ if err != nil {
53
+ ...
54
+ }
55
+ ...
56
+ foo := &pb.Foo{}
57
+ if err := any.UnmarshalTo(foo); err != nil {
58
+ ...
59
+ }
60
+
61
+ The pack methods provided by protobuf library will by default use
62
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
63
+ methods only use the fully qualified type name after the last '/'
64
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
65
+ name "y.z".
66
+
67
+
68
+ JSON
69
+ ====
70
+ The JSON representation of an `Any` value uses the regular
71
+ representation of the deserialized, embedded message, with an
72
+ additional field `@type` which contains the type URL. Example:
73
+
74
+ package google.profile;
75
+ message Person {
76
+ string first_name = 1;
77
+ string last_name = 2;
78
+ }
79
+
80
+ {
81
+ "@type": "type.googleapis.com/google.profile.Person",
82
+ "firstName": <string>,
83
+ "lastName": <string>
84
+ }
85
+
86
+ If the embedded message type is well-known and has a custom JSON
87
+ representation, that representation will be embedded adding a field
88
+ `value` which holds the custom JSON in addition to the `@type`
89
+ field. Example (for message [google.protobuf.Duration][]):
90
+
91
+ {
92
+ "@type": "type.googleapis.com/google.protobuf.Duration",
93
+ "value": "1.212s"
94
+ }
95
+ */
96
+ export interface ProtobufAny {
97
+ /**
98
+ * A URL/resource name that uniquely identifies the type of the serialized
99
+ * protocol buffer message. This string must contain at least
100
+ * one "/" character. The last segment of the URL's path must represent
101
+ * the fully qualified name of the type (as in
102
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
103
+ * (e.g., leading "." is not accepted).
104
+ *
105
+ * In practice, teams usually precompile into the binary all types that they
106
+ * expect it to use in the context of Any. However, for URLs which use the
107
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
108
+ * server that maps type URLs to message definitions as follows:
109
+ * * If no scheme is provided, `https` is assumed.
110
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
111
+ * value in binary format, or produce an error.
112
+ * * Applications are allowed to cache lookup results based on the
113
+ * URL, or have them precompiled into a binary to avoid any
114
+ * lookup. Therefore, binary compatibility needs to be preserved
115
+ * on changes to types. (Use versioned type names to manage
116
+ * breaking changes.)
117
+ * Note: this functionality is not currently available in the official
118
+ * protobuf release, and it is not used for type URLs beginning with
119
+ * type.googleapis.com.
120
+ * Schemes other than `http`, `https` (or the empty scheme) might be
121
+ * used with implementation specific semantics.
122
+ */
123
+ "@type"?: string;
124
+ }
125
+
126
+ export interface RpcStatus {
127
+ /** @format int32 */
128
+ code?: number;
129
+ message?: string;
130
+ details?: ProtobufAny[];
131
+ }
132
+
133
+ /**
134
+ * Grant gives permissions to execute
135
+ the provide method with expiration time.
136
+ */
137
+ export interface V1Beta1Grant {
138
+ /**
139
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
140
+ * URL that describes the type of the serialized message.
141
+ *
142
+ * Protobuf library provides support to pack/unpack Any values in the form
143
+ * of utility functions or additional generated methods of the Any type.
144
+ * Example 1: Pack and unpack a message in C++.
145
+ * Foo foo = ...;
146
+ * Any any;
147
+ * any.PackFrom(foo);
148
+ * ...
149
+ * if (any.UnpackTo(&foo)) {
150
+ * ...
151
+ * }
152
+ * Example 2: Pack and unpack a message in Java.
153
+ * Any any = Any.pack(foo);
154
+ * if (any.is(Foo.class)) {
155
+ * foo = any.unpack(Foo.class);
156
+ * Example 3: Pack and unpack a message in Python.
157
+ * foo = Foo(...)
158
+ * any = Any()
159
+ * any.Pack(foo)
160
+ * if any.Is(Foo.DESCRIPTOR):
161
+ * any.Unpack(foo)
162
+ * Example 4: Pack and unpack a message in Go
163
+ * foo := &pb.Foo{...}
164
+ * any, err := anypb.New(foo)
165
+ * if err != nil {
166
+ * ...
167
+ * }
168
+ * ...
169
+ * foo := &pb.Foo{}
170
+ * if err := any.UnmarshalTo(foo); err != nil {
171
+ * The pack methods provided by protobuf library will by default use
172
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
173
+ * methods only use the fully qualified type name after the last '/'
174
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
175
+ * name "y.z".
176
+ * JSON
177
+ * ====
178
+ * The JSON representation of an `Any` value uses the regular
179
+ * representation of the deserialized, embedded message, with an
180
+ * additional field `@type` which contains the type URL. Example:
181
+ * package google.profile;
182
+ * message Person {
183
+ * string first_name = 1;
184
+ * string last_name = 2;
185
+ * {
186
+ * "@type": "type.googleapis.com/google.profile.Person",
187
+ * "firstName": <string>,
188
+ * "lastName": <string>
189
+ * If the embedded message type is well-known and has a custom JSON
190
+ * representation, that representation will be embedded adding a field
191
+ * `value` which holds the custom JSON in addition to the `@type`
192
+ * field. Example (for message [google.protobuf.Duration][]):
193
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
194
+ * "value": "1.212s"
195
+ */
196
+ authorization?: ProtobufAny;
197
+
198
+ /**
199
+ * time when the grant will expire and will be pruned. If null, then the grant
200
+ * doesn't have a time expiration (other conditions in `authorization`
201
+ * may apply to invalidate the grant)
202
+ * @format date-time
203
+ */
204
+ expiration?: string;
205
+ }
206
+
207
+ export interface V1Beta1GrantAuthorization {
208
+ granter?: string;
209
+ grantee?: string;
210
+
211
+ /**
212
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
213
+ * URL that describes the type of the serialized message.
214
+ *
215
+ * Protobuf library provides support to pack/unpack Any values in the form
216
+ * of utility functions or additional generated methods of the Any type.
217
+ * Example 1: Pack and unpack a message in C++.
218
+ * Foo foo = ...;
219
+ * Any any;
220
+ * any.PackFrom(foo);
221
+ * ...
222
+ * if (any.UnpackTo(&foo)) {
223
+ * ...
224
+ * }
225
+ * Example 2: Pack and unpack a message in Java.
226
+ * Any any = Any.pack(foo);
227
+ * if (any.is(Foo.class)) {
228
+ * foo = any.unpack(Foo.class);
229
+ * Example 3: Pack and unpack a message in Python.
230
+ * foo = Foo(...)
231
+ * any = Any()
232
+ * any.Pack(foo)
233
+ * if any.Is(Foo.DESCRIPTOR):
234
+ * any.Unpack(foo)
235
+ * Example 4: Pack and unpack a message in Go
236
+ * foo := &pb.Foo{...}
237
+ * any, err := anypb.New(foo)
238
+ * if err != nil {
239
+ * ...
240
+ * }
241
+ * ...
242
+ * foo := &pb.Foo{}
243
+ * if err := any.UnmarshalTo(foo); err != nil {
244
+ * The pack methods provided by protobuf library will by default use
245
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
246
+ * methods only use the fully qualified type name after the last '/'
247
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
248
+ * name "y.z".
249
+ * JSON
250
+ * ====
251
+ * The JSON representation of an `Any` value uses the regular
252
+ * representation of the deserialized, embedded message, with an
253
+ * additional field `@type` which contains the type URL. Example:
254
+ * package google.profile;
255
+ * message Person {
256
+ * string first_name = 1;
257
+ * string last_name = 2;
258
+ * {
259
+ * "@type": "type.googleapis.com/google.profile.Person",
260
+ * "firstName": <string>,
261
+ * "lastName": <string>
262
+ * If the embedded message type is well-known and has a custom JSON
263
+ * representation, that representation will be embedded adding a field
264
+ * `value` which holds the custom JSON in addition to the `@type`
265
+ * field. Example (for message [google.protobuf.Duration][]):
266
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
267
+ * "value": "1.212s"
268
+ */
269
+ authorization?: ProtobufAny;
270
+
271
+ /** @format date-time */
272
+ expiration?: string;
273
+ }
274
+
275
+ /**
276
+ * MsgExecResponse defines the Msg/MsgExecResponse response type.
277
+ */
278
+ export interface V1Beta1MsgExecResponse {
279
+ results?: string[];
280
+ }
281
+
282
+ /**
283
+ * MsgGrantResponse defines the Msg/MsgGrant response type.
284
+ */
285
+ export type V1Beta1MsgGrantResponse = object;
286
+
287
+ /**
288
+ * MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
289
+ */
290
+ export type V1Beta1MsgRevokeResponse = object;
291
+
292
+ /**
293
+ * message SomeRequest {
294
+ Foo some_parameter = 1;
295
+ PageRequest pagination = 2;
296
+ }
297
+ */
298
+ export interface V1Beta1PageRequest {
299
+ /**
300
+ * key is a value returned in PageResponse.next_key to begin
301
+ * querying the next page most efficiently. Only one of offset or key
302
+ * should be set.
303
+ * @format byte
304
+ */
305
+ key?: string;
306
+
307
+ /**
308
+ * offset is a numeric offset that can be used when key is unavailable.
309
+ * It is less efficient than using key. Only one of offset or key should
310
+ * be set.
311
+ * @format uint64
312
+ */
313
+ offset?: string;
314
+
315
+ /**
316
+ * limit is the total number of results to be returned in the result page.
317
+ * If left empty it will default to a value to be set by each app.
318
+ * @format uint64
319
+ */
320
+ limit?: string;
321
+
322
+ /**
323
+ * count_total is set to true to indicate that the result set should include
324
+ * a count of the total number of items available for pagination in UIs.
325
+ * count_total is only respected when offset is used. It is ignored when key
326
+ * is set.
327
+ */
328
+ count_total?: boolean;
329
+
330
+ /**
331
+ * reverse is set to true if results are to be returned in the descending order.
332
+ *
333
+ * Since: cosmos-sdk 0.43
334
+ */
335
+ reverse?: boolean;
336
+ }
337
+
338
+ /**
339
+ * PageResponse is to be embedded in gRPC response messages where the
340
+ corresponding request message has used PageRequest.
341
+
342
+ message SomeResponse {
343
+ repeated Bar results = 1;
344
+ PageResponse page = 2;
345
+ }
346
+ */
347
+ export interface V1Beta1PageResponse {
348
+ /**
349
+ * next_key is the key to be passed to PageRequest.key to
350
+ * query the next page most efficiently. It will be empty if
351
+ * there are no more results.
352
+ * @format byte
353
+ */
354
+ next_key?: string;
355
+
356
+ /**
357
+ * total is total number of results available if PageRequest.count_total
358
+ * was set, its value is undefined otherwise
359
+ * @format uint64
360
+ */
361
+ total?: string;
362
+ }
363
+
364
+ /**
365
+ * QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
366
+ */
367
+ export interface V1Beta1QueryGranteeGrantsResponse {
368
+ /** grants is a list of grants granted to the grantee. */
369
+ grants?: V1Beta1GrantAuthorization[];
370
+
371
+ /** pagination defines an pagination for the response. */
372
+ pagination?: V1Beta1PageResponse;
373
+ }
374
+
375
+ /**
376
+ * QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
377
+ */
378
+ export interface V1Beta1QueryGranterGrantsResponse {
379
+ /** grants is a list of grants granted by the granter. */
380
+ grants?: V1Beta1GrantAuthorization[];
381
+
382
+ /** pagination defines an pagination for the response. */
383
+ pagination?: V1Beta1PageResponse;
384
+ }
385
+
386
+ /**
387
+ * QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
388
+ */
389
+ export interface V1Beta1QueryGrantsResponse {
390
+ /** authorizations is a list of grants granted for grantee by granter. */
391
+ grants?: V1Beta1Grant[];
392
+
393
+ /** pagination defines an pagination for the response. */
394
+ pagination?: V1Beta1PageResponse;
395
+ }
396
+
397
+ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
398
+
399
+ export type QueryParamsType = Record<string | number, any>;
400
+
401
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
402
+ /** set parameter to `true` for call `securityWorker` for this request */
403
+ secure?: boolean;
404
+ /** request path */
405
+ path: string;
406
+ /** content type of request body */
407
+ type?: ContentType;
408
+ /** query params */
409
+ query?: QueryParamsType;
410
+ /** format of response (i.e. response.json() -> format: "json") */
411
+ format?: ResponseType;
412
+ /** request body */
413
+ body?: unknown;
414
+ }
415
+
416
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
417
+
418
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
419
+ securityWorker?: (
420
+ securityData: SecurityDataType | null,
421
+ ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
422
+ secure?: boolean;
423
+ format?: ResponseType;
424
+ }
425
+
426
+ export enum ContentType {
427
+ Json = "application/json",
428
+ FormData = "multipart/form-data",
429
+ UrlEncoded = "application/x-www-form-urlencoded",
430
+ }
431
+
432
+ export class HttpClient<SecurityDataType = unknown> {
433
+ public instance: AxiosInstance;
434
+ private securityData: SecurityDataType | null = null;
435
+ private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
436
+ private secure?: boolean;
437
+ private format?: ResponseType;
438
+
439
+ constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
440
+ this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
441
+ this.secure = secure;
442
+ this.format = format;
443
+ this.securityWorker = securityWorker;
444
+ }
445
+
446
+ public setSecurityData = (data: SecurityDataType | null) => {
447
+ this.securityData = data;
448
+ };
449
+
450
+ private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
451
+ return {
452
+ ...this.instance.defaults,
453
+ ...params1,
454
+ ...(params2 || {}),
455
+ headers: {
456
+ ...(this.instance.defaults.headers || {}),
457
+ ...(params1.headers || {}),
458
+ ...((params2 && params2.headers) || {}),
459
+ },
460
+ };
461
+ }
462
+
463
+ private createFormData(input: Record<string, unknown>): FormData {
464
+ return Object.keys(input || {}).reduce((formData, key) => {
465
+ const property = input[key];
466
+ formData.append(
467
+ key,
468
+ property instanceof Blob
469
+ ? property
470
+ : typeof property === "object" && property !== null
471
+ ? JSON.stringify(property)
472
+ : `${property}`,
473
+ );
474
+ return formData;
475
+ }, new FormData());
476
+ }
477
+
478
+ public request = async <T = any, _E = any>({
479
+ secure,
480
+ path,
481
+ type,
482
+ query,
483
+ format,
484
+ body,
485
+ ...params
486
+ }: FullRequestParams): Promise<AxiosResponse<T>> => {
487
+ const secureParams =
488
+ ((typeof secure === "boolean" ? secure : this.secure) &&
489
+ this.securityWorker &&
490
+ (await this.securityWorker(this.securityData))) ||
491
+ {};
492
+ const requestParams = this.mergeRequestParams(params, secureParams);
493
+ const responseFormat = (format && this.format) || void 0;
494
+
495
+ if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
496
+ requestParams.headers.common = { Accept: "*/*" };
497
+ requestParams.headers.post = {};
498
+ requestParams.headers.put = {};
499
+
500
+ body = this.createFormData(body as Record<string, unknown>);
501
+ }
502
+
503
+ return this.instance.request({
504
+ ...requestParams,
505
+ headers: {
506
+ ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
507
+ ...(requestParams.headers || {}),
508
+ },
509
+ params: query,
510
+ responseType: responseFormat,
511
+ data: body,
512
+ url: path,
513
+ });
514
+ };
515
+ }
516
+
517
+ /**
518
+ * @title cosmos/authz/v1beta1/authz.proto
519
+ * @version version not set
520
+ */
521
+ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
522
+ /**
523
+ * No description
524
+ *
525
+ * @tags Query
526
+ * @name QueryGrants
527
+ * @summary Returns list of `Authorization`, granted to the grantee by the granter.
528
+ * @request GET:/cosmos/authz/v1beta1/grants
529
+ */
530
+ queryGrants = (
531
+ query?: {
532
+ granter?: string;
533
+ grantee?: string;
534
+ msg_type_url?: string;
535
+ "pagination.key"?: string;
536
+ "pagination.offset"?: string;
537
+ "pagination.limit"?: string;
538
+ "pagination.count_total"?: boolean;
539
+ "pagination.reverse"?: boolean;
540
+ },
541
+ params: RequestParams = {},
542
+ ) =>
543
+ this.request<V1Beta1QueryGrantsResponse, RpcStatus>({
544
+ path: `/cosmos/authz/v1beta1/grants`,
545
+ method: "GET",
546
+ query: query,
547
+ format: "json",
548
+ ...params,
549
+ });
550
+
551
+ /**
552
+ * @description Since: cosmos-sdk 0.46
553
+ *
554
+ * @tags Query
555
+ * @name QueryGranteeGrants
556
+ * @summary GranteeGrants returns a list of `GrantAuthorization` by grantee.
557
+ * @request GET:/cosmos/authz/v1beta1/grants/grantee/{grantee}
558
+ */
559
+ queryGranteeGrants = (
560
+ grantee: string,
561
+ query?: {
562
+ "pagination.key"?: string;
563
+ "pagination.offset"?: string;
564
+ "pagination.limit"?: string;
565
+ "pagination.count_total"?: boolean;
566
+ "pagination.reverse"?: boolean;
567
+ },
568
+ params: RequestParams = {},
569
+ ) =>
570
+ this.request<V1Beta1QueryGranteeGrantsResponse, RpcStatus>({
571
+ path: `/cosmos/authz/v1beta1/grants/grantee/${grantee}`,
572
+ method: "GET",
573
+ query: query,
574
+ format: "json",
575
+ ...params,
576
+ });
577
+
578
+ /**
579
+ * @description Since: cosmos-sdk 0.46
580
+ *
581
+ * @tags Query
582
+ * @name QueryGranterGrants
583
+ * @summary GranterGrants returns list of `GrantAuthorization`, granted by granter.
584
+ * @request GET:/cosmos/authz/v1beta1/grants/granter/{granter}
585
+ */
586
+ queryGranterGrants = (
587
+ granter: string,
588
+ query?: {
589
+ "pagination.key"?: string;
590
+ "pagination.offset"?: string;
591
+ "pagination.limit"?: string;
592
+ "pagination.count_total"?: boolean;
593
+ "pagination.reverse"?: boolean;
594
+ },
595
+ params: RequestParams = {},
596
+ ) =>
597
+ this.request<V1Beta1QueryGranterGrantsResponse, RpcStatus>({
598
+ path: `/cosmos/authz/v1beta1/grants/granter/${granter}`,
599
+ method: "GET",
600
+ query: query,
601
+ format: "json",
602
+ ...params,
603
+ });
604
+ }