@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,1162 @@
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
+ * Exec defines modes of execution of a proposal on creation or on new vote.
135
+
136
+ - EXEC_UNSPECIFIED: An empty value means that there should be a separate
137
+ MsgExec request for the proposal to execute.
138
+ - EXEC_TRY: Try to execute the proposal immediately.
139
+ If the proposal is not allowed per the DecisionPolicy,
140
+ the proposal will still be open and could
141
+ be executed at a later point.
142
+ */
143
+ export enum V1Exec {
144
+ EXEC_UNSPECIFIED = "EXEC_UNSPECIFIED",
145
+ EXEC_TRY = "EXEC_TRY",
146
+ }
147
+
148
+ /**
149
+ * GroupInfo represents the high-level on-chain information for a group.
150
+ */
151
+ export interface V1GroupInfo {
152
+ /**
153
+ * id is the unique ID of the group.
154
+ * @format uint64
155
+ */
156
+ id?: string;
157
+
158
+ /** admin is the account address of the group's admin. */
159
+ admin?: string;
160
+
161
+ /** metadata is any arbitrary metadata to attached to the group. */
162
+ metadata?: string;
163
+
164
+ /**
165
+ * version is used to track changes to a group's membership structure that
166
+ * would break existing proposals. Whenever any members weight is changed,
167
+ * or any member is added or removed this version is incremented and will
168
+ * cause proposals based on older versions of this group to fail
169
+ * @format uint64
170
+ */
171
+ version?: string;
172
+
173
+ /** total_weight is the sum of the group members' weights. */
174
+ total_weight?: string;
175
+
176
+ /**
177
+ * created_at is a timestamp specifying when a group was created.
178
+ * @format date-time
179
+ */
180
+ created_at?: string;
181
+ }
182
+
183
+ /**
184
+ * GroupMember represents the relationship between a group and a member.
185
+ */
186
+ export interface V1GroupMember {
187
+ /**
188
+ * group_id is the unique ID of the group.
189
+ * @format uint64
190
+ */
191
+ group_id?: string;
192
+
193
+ /** member is the member data. */
194
+ member?: V1Member;
195
+ }
196
+
197
+ /**
198
+ * GroupPolicyInfo represents the high-level on-chain information for a group policy.
199
+ */
200
+ export interface V1GroupPolicyInfo {
201
+ /** address is the account address of group policy. */
202
+ address?: string;
203
+
204
+ /**
205
+ * group_id is the unique ID of the group.
206
+ * @format uint64
207
+ */
208
+ group_id?: string;
209
+
210
+ /** admin is the account address of the group admin. */
211
+ admin?: string;
212
+
213
+ /** metadata is any arbitrary metadata to attached to the group policy. */
214
+ metadata?: string;
215
+
216
+ /**
217
+ * version is used to track changes to a group's GroupPolicyInfo structure that
218
+ * would create a different result on a running proposal.
219
+ * @format uint64
220
+ */
221
+ version?: string;
222
+
223
+ /** decision_policy specifies the group policy's decision policy. */
224
+ decision_policy?: ProtobufAny;
225
+
226
+ /**
227
+ * created_at is a timestamp specifying when a group policy was created.
228
+ * @format date-time
229
+ */
230
+ created_at?: string;
231
+ }
232
+
233
+ /**
234
+ * Member represents a group member with an account address,
235
+ non-zero weight, metadata and added_at timestamp.
236
+ */
237
+ export interface V1Member {
238
+ /** address is the member's account address. */
239
+ address?: string;
240
+
241
+ /** weight is the member's voting weight that should be greater than 0. */
242
+ weight?: string;
243
+
244
+ /** metadata is any arbitrary metadata attached to the member. */
245
+ metadata?: string;
246
+
247
+ /**
248
+ * added_at is a timestamp specifying when a member was added.
249
+ * @format date-time
250
+ */
251
+ added_at?: string;
252
+ }
253
+
254
+ /**
255
+ * MemberRequest represents a group member to be used in Msg server requests.
256
+ Contrary to `Member`, it doesn't have any `added_at` field
257
+ since this field cannot be set as part of requests.
258
+ */
259
+ export interface V1MemberRequest {
260
+ /** address is the member's account address. */
261
+ address?: string;
262
+
263
+ /** weight is the member's voting weight that should be greater than 0. */
264
+ weight?: string;
265
+
266
+ /** metadata is any arbitrary metadata attached to the member. */
267
+ metadata?: string;
268
+ }
269
+
270
+ /**
271
+ * MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.
272
+ */
273
+ export interface V1MsgCreateGroupPolicyResponse {
274
+ /** address is the account address of the newly created group policy. */
275
+ address?: string;
276
+ }
277
+
278
+ /**
279
+ * MsgCreateGroupResponse is the Msg/CreateGroup response type.
280
+ */
281
+ export interface V1MsgCreateGroupResponse {
282
+ /**
283
+ * group_id is the unique ID of the newly created group.
284
+ * @format uint64
285
+ */
286
+ group_id?: string;
287
+ }
288
+
289
+ /**
290
+ * MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.
291
+ */
292
+ export interface V1MsgCreateGroupWithPolicyResponse {
293
+ /**
294
+ * group_id is the unique ID of the newly created group with policy.
295
+ * @format uint64
296
+ */
297
+ group_id?: string;
298
+
299
+ /** group_policy_address is the account address of the newly created group policy. */
300
+ group_policy_address?: string;
301
+ }
302
+
303
+ /**
304
+ * MsgExecResponse is the Msg/Exec request type.
305
+ */
306
+ export interface V1MsgExecResponse {
307
+ /** result is the final result of the proposal execution. */
308
+ result?: V1ProposalExecutorResult;
309
+ }
310
+
311
+ /**
312
+ * MsgLeaveGroupResponse is the Msg/LeaveGroup response type.
313
+ */
314
+ export type V1MsgLeaveGroupResponse = object;
315
+
316
+ /**
317
+ * MsgSubmitProposalResponse is the Msg/SubmitProposal response type.
318
+ */
319
+ export interface V1MsgSubmitProposalResponse {
320
+ /**
321
+ * proposal is the unique ID of the proposal.
322
+ * @format uint64
323
+ */
324
+ proposal_id?: string;
325
+ }
326
+
327
+ /**
328
+ * MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.
329
+ */
330
+ export type V1MsgUpdateGroupAdminResponse = object;
331
+
332
+ /**
333
+ * MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.
334
+ */
335
+ export type V1MsgUpdateGroupMembersResponse = object;
336
+
337
+ /**
338
+ * MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.
339
+ */
340
+ export type V1MsgUpdateGroupMetadataResponse = object;
341
+
342
+ /**
343
+ * MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.
344
+ */
345
+ export type V1MsgUpdateGroupPolicyAdminResponse = object;
346
+
347
+ /**
348
+ * MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.
349
+ */
350
+ export type V1MsgUpdateGroupPolicyDecisionPolicyResponse = object;
351
+
352
+ /**
353
+ * MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.
354
+ */
355
+ export type V1MsgUpdateGroupPolicyMetadataResponse = object;
356
+
357
+ /**
358
+ * MsgVoteResponse is the Msg/Vote response type.
359
+ */
360
+ export type V1MsgVoteResponse = object;
361
+
362
+ /**
363
+ * MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.
364
+ */
365
+ export type V1MsgWithdrawProposalResponse = object;
366
+
367
+ /**
368
+ * Proposal defines a group proposal. Any member of a group can submit a proposal
369
+ for a group policy to decide upon.
370
+ A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
371
+ passes as well as some optional metadata associated with the proposal.
372
+ */
373
+ export interface V1Proposal {
374
+ /**
375
+ * id is the unique id of the proposal.
376
+ * @format uint64
377
+ */
378
+ id?: string;
379
+
380
+ /** group_policy_address is the account address of group policy. */
381
+ group_policy_address?: string;
382
+
383
+ /** metadata is any arbitrary metadata to attached to the proposal. */
384
+ metadata?: string;
385
+
386
+ /** proposers are the account addresses of the proposers. */
387
+ proposers?: string[];
388
+
389
+ /**
390
+ * submit_time is a timestamp specifying when a proposal was submitted.
391
+ * @format date-time
392
+ */
393
+ submit_time?: string;
394
+
395
+ /**
396
+ * group_version tracks the version of the group at proposal submission.
397
+ * This field is here for informational purposes only.
398
+ * @format uint64
399
+ */
400
+ group_version?: string;
401
+
402
+ /**
403
+ * group_policy_version tracks the version of the group policy at proposal submission.
404
+ * When a decision policy is changed, existing proposals from previous policy
405
+ * versions will become invalid with the `ABORTED` status.
406
+ * This field is here for informational purposes only.
407
+ * @format uint64
408
+ */
409
+ group_policy_version?: string;
410
+
411
+ /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
412
+ status?: V1ProposalStatus;
413
+
414
+ /**
415
+ * final_tally_result contains the sums of all weighted votes for this
416
+ * proposal for each vote option. It is empty at submission, and only
417
+ * populated after tallying, at voting period end or at proposal execution,
418
+ * whichever happens first.
419
+ */
420
+ final_tally_result?: V1TallyResult;
421
+
422
+ /**
423
+ * voting_period_end is the timestamp before which voting must be done.
424
+ * Unless a successfull MsgExec is called before (to execute a proposal whose
425
+ * tally is successful before the voting period ends), tallying will be done
426
+ * at this point, and the `final_tally_result`and `status` fields will be
427
+ * accordingly updated.
428
+ * @format date-time
429
+ */
430
+ voting_period_end?: string;
431
+
432
+ /** executor_result is the final result of the proposal execution. Initial value is NotRun. */
433
+ executor_result?: V1ProposalExecutorResult;
434
+
435
+ /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
436
+ messages?: ProtobufAny[];
437
+ }
438
+
439
+ /**
440
+ * ProposalExecutorResult defines types of proposal executor results.
441
+
442
+ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: An empty value is not allowed.
443
+ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN: We have not yet run the executor.
444
+ - PROPOSAL_EXECUTOR_RESULT_SUCCESS: The executor was successful and proposed action updated state.
445
+ - PROPOSAL_EXECUTOR_RESULT_FAILURE: The executor returned an error and proposed action didn't update state.
446
+ */
447
+ export enum V1ProposalExecutorResult {
448
+ PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",
449
+ PROPOSAL_EXECUTOR_RESULT_NOT_RUN = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN",
450
+ PROPOSAL_EXECUTOR_RESULT_SUCCESS = "PROPOSAL_EXECUTOR_RESULT_SUCCESS",
451
+ PROPOSAL_EXECUTOR_RESULT_FAILURE = "PROPOSAL_EXECUTOR_RESULT_FAILURE",
452
+ }
453
+
454
+ /**
455
+ * ProposalStatus defines proposal statuses.
456
+
457
+ - PROPOSAL_STATUS_UNSPECIFIED: An empty value is invalid and not allowed.
458
+ - PROPOSAL_STATUS_SUBMITTED: Initial status of a proposal when submitted.
459
+ - PROPOSAL_STATUS_ACCEPTED: Final status of a proposal when the final tally is done and the outcome
460
+ passes the group policy's decision policy.
461
+ - PROPOSAL_STATUS_REJECTED: Final status of a proposal when the final tally is done and the outcome
462
+ is rejected by the group policy's decision policy.
463
+ - PROPOSAL_STATUS_ABORTED: Final status of a proposal when the group policy is modified before the
464
+ final tally.
465
+ - PROPOSAL_STATUS_WITHDRAWN: A proposal can be withdrawn before the voting start time by the owner.
466
+ When this happens the final status is Withdrawn.
467
+ */
468
+ export enum V1ProposalStatus {
469
+ PROPOSAL_STATUS_UNSPECIFIED = "PROPOSAL_STATUS_UNSPECIFIED",
470
+ PROPOSAL_STATUS_SUBMITTED = "PROPOSAL_STATUS_SUBMITTED",
471
+ PROPOSAL_STATUS_ACCEPTED = "PROPOSAL_STATUS_ACCEPTED",
472
+ PROPOSAL_STATUS_REJECTED = "PROPOSAL_STATUS_REJECTED",
473
+ PROPOSAL_STATUS_ABORTED = "PROPOSAL_STATUS_ABORTED",
474
+ PROPOSAL_STATUS_WITHDRAWN = "PROPOSAL_STATUS_WITHDRAWN",
475
+ }
476
+
477
+ /**
478
+ * QueryGroupInfoResponse is the Query/GroupInfo response type.
479
+ */
480
+ export interface V1QueryGroupInfoResponse {
481
+ /** info is the GroupInfo for the group. */
482
+ info?: V1GroupInfo;
483
+ }
484
+
485
+ /**
486
+ * QueryGroupMembersResponse is the Query/GroupMembersResponse response type.
487
+ */
488
+ export interface V1QueryGroupMembersResponse {
489
+ /** members are the members of the group with given group_id. */
490
+ members?: V1GroupMember[];
491
+
492
+ /** pagination defines the pagination in the response. */
493
+ pagination?: V1Beta1PageResponse;
494
+ }
495
+
496
+ /**
497
+ * QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.
498
+ */
499
+ export interface V1QueryGroupPoliciesByAdminResponse {
500
+ /** group_policies are the group policies info with provided admin. */
501
+ group_policies?: V1GroupPolicyInfo[];
502
+
503
+ /** pagination defines the pagination in the response. */
504
+ pagination?: V1Beta1PageResponse;
505
+ }
506
+
507
+ /**
508
+ * QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.
509
+ */
510
+ export interface V1QueryGroupPoliciesByGroupResponse {
511
+ /** group_policies are the group policies info associated with the provided group. */
512
+ group_policies?: V1GroupPolicyInfo[];
513
+
514
+ /** pagination defines the pagination in the response. */
515
+ pagination?: V1Beta1PageResponse;
516
+ }
517
+
518
+ /**
519
+ * QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.
520
+ */
521
+ export interface V1QueryGroupPolicyInfoResponse {
522
+ /** info is the GroupPolicyInfo for the group policy. */
523
+ info?: V1GroupPolicyInfo;
524
+ }
525
+
526
+ /**
527
+ * QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.
528
+ */
529
+ export interface V1QueryGroupsByAdminResponse {
530
+ /** groups are the groups info with the provided admin. */
531
+ groups?: V1GroupInfo[];
532
+
533
+ /** pagination defines the pagination in the response. */
534
+ pagination?: V1Beta1PageResponse;
535
+ }
536
+
537
+ /**
538
+ * QueryGroupsByMemberResponse is the Query/GroupsByMember response type.
539
+ */
540
+ export interface V1QueryGroupsByMemberResponse {
541
+ /** groups are the groups info with the provided group member. */
542
+ groups?: V1GroupInfo[];
543
+
544
+ /** pagination defines the pagination in the response. */
545
+ pagination?: V1Beta1PageResponse;
546
+ }
547
+
548
+ /**
549
+ * QueryProposalResponse is the Query/Proposal response type.
550
+ */
551
+ export interface V1QueryProposalResponse {
552
+ /** proposal is the proposal info. */
553
+ proposal?: V1Proposal;
554
+ }
555
+
556
+ /**
557
+ * QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.
558
+ */
559
+ export interface V1QueryProposalsByGroupPolicyResponse {
560
+ /** proposals are the proposals with given group policy. */
561
+ proposals?: V1Proposal[];
562
+
563
+ /** pagination defines the pagination in the response. */
564
+ pagination?: V1Beta1PageResponse;
565
+ }
566
+
567
+ /**
568
+ * QueryTallyResultResponse is the Query/TallyResult response type.
569
+ */
570
+ export interface V1QueryTallyResultResponse {
571
+ /** tally defines the requested tally. */
572
+ tally?: V1TallyResult;
573
+ }
574
+
575
+ /**
576
+ * QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.
577
+ */
578
+ export interface V1QueryVoteByProposalVoterResponse {
579
+ /** vote is the vote with given proposal_id and voter. */
580
+ vote?: V1Vote;
581
+ }
582
+
583
+ /**
584
+ * QueryVotesByProposalResponse is the Query/VotesByProposal response type.
585
+ */
586
+ export interface V1QueryVotesByProposalResponse {
587
+ /** votes are the list of votes for given proposal_id. */
588
+ votes?: V1Vote[];
589
+
590
+ /** pagination defines the pagination in the response. */
591
+ pagination?: V1Beta1PageResponse;
592
+ }
593
+
594
+ /**
595
+ * QueryVotesByVoterResponse is the Query/VotesByVoter response type.
596
+ */
597
+ export interface V1QueryVotesByVoterResponse {
598
+ /** votes are the list of votes by given voter. */
599
+ votes?: V1Vote[];
600
+
601
+ /** pagination defines the pagination in the response. */
602
+ pagination?: V1Beta1PageResponse;
603
+ }
604
+
605
+ /**
606
+ * TallyResult represents the sum of weighted votes for each vote option.
607
+ */
608
+ export interface V1TallyResult {
609
+ /** yes_count is the weighted sum of yes votes. */
610
+ yes_count?: string;
611
+
612
+ /** abstain_count is the weighted sum of abstainers. */
613
+ abstain_count?: string;
614
+
615
+ /** no_count is the weighted sum of no votes. */
616
+ no_count?: string;
617
+
618
+ /** no_with_veto_count is the weighted sum of veto. */
619
+ no_with_veto_count?: string;
620
+ }
621
+
622
+ /**
623
+ * Vote represents a vote for a proposal.
624
+ */
625
+ export interface V1Vote {
626
+ /**
627
+ * proposal is the unique ID of the proposal.
628
+ * @format uint64
629
+ */
630
+ proposal_id?: string;
631
+
632
+ /** voter is the account address of the voter. */
633
+ voter?: string;
634
+
635
+ /** option is the voter's choice on the proposal. */
636
+ option?: V1VoteOption;
637
+
638
+ /** metadata is any arbitrary metadata to attached to the vote. */
639
+ metadata?: string;
640
+
641
+ /**
642
+ * submit_time is the timestamp when the vote was submitted.
643
+ * @format date-time
644
+ */
645
+ submit_time?: string;
646
+ }
647
+
648
+ /**
649
+ * VoteOption enumerates the valid vote options for a given proposal.
650
+
651
+ - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will
652
+ return an error.
653
+ - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
654
+ - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
655
+ - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
656
+ - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
657
+ */
658
+ export enum V1VoteOption {
659
+ VOTE_OPTION_UNSPECIFIED = "VOTE_OPTION_UNSPECIFIED",
660
+ VOTE_OPTION_YES = "VOTE_OPTION_YES",
661
+ VOTE_OPTION_ABSTAIN = "VOTE_OPTION_ABSTAIN",
662
+ VOTE_OPTION_NO = "VOTE_OPTION_NO",
663
+ VOTE_OPTION_NO_WITH_VETO = "VOTE_OPTION_NO_WITH_VETO",
664
+ }
665
+
666
+ /**
667
+ * message SomeRequest {
668
+ Foo some_parameter = 1;
669
+ PageRequest pagination = 2;
670
+ }
671
+ */
672
+ export interface V1Beta1PageRequest {
673
+ /**
674
+ * key is a value returned in PageResponse.next_key to begin
675
+ * querying the next page most efficiently. Only one of offset or key
676
+ * should be set.
677
+ * @format byte
678
+ */
679
+ key?: string;
680
+
681
+ /**
682
+ * offset is a numeric offset that can be used when key is unavailable.
683
+ * It is less efficient than using key. Only one of offset or key should
684
+ * be set.
685
+ * @format uint64
686
+ */
687
+ offset?: string;
688
+
689
+ /**
690
+ * limit is the total number of results to be returned in the result page.
691
+ * If left empty it will default to a value to be set by each app.
692
+ * @format uint64
693
+ */
694
+ limit?: string;
695
+
696
+ /**
697
+ * count_total is set to true to indicate that the result set should include
698
+ * a count of the total number of items available for pagination in UIs.
699
+ * count_total is only respected when offset is used. It is ignored when key
700
+ * is set.
701
+ */
702
+ count_total?: boolean;
703
+
704
+ /**
705
+ * reverse is set to true if results are to be returned in the descending order.
706
+ *
707
+ * Since: cosmos-sdk 0.43
708
+ */
709
+ reverse?: boolean;
710
+ }
711
+
712
+ /**
713
+ * PageResponse is to be embedded in gRPC response messages where the
714
+ corresponding request message has used PageRequest.
715
+
716
+ message SomeResponse {
717
+ repeated Bar results = 1;
718
+ PageResponse page = 2;
719
+ }
720
+ */
721
+ export interface V1Beta1PageResponse {
722
+ /**
723
+ * next_key is the key to be passed to PageRequest.key to
724
+ * query the next page most efficiently. It will be empty if
725
+ * there are no more results.
726
+ * @format byte
727
+ */
728
+ next_key?: string;
729
+
730
+ /**
731
+ * total is total number of results available if PageRequest.count_total
732
+ * was set, its value is undefined otherwise
733
+ * @format uint64
734
+ */
735
+ total?: string;
736
+ }
737
+
738
+ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
739
+
740
+ export type QueryParamsType = Record<string | number, any>;
741
+
742
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
743
+ /** set parameter to `true` for call `securityWorker` for this request */
744
+ secure?: boolean;
745
+ /** request path */
746
+ path: string;
747
+ /** content type of request body */
748
+ type?: ContentType;
749
+ /** query params */
750
+ query?: QueryParamsType;
751
+ /** format of response (i.e. response.json() -> format: "json") */
752
+ format?: ResponseType;
753
+ /** request body */
754
+ body?: unknown;
755
+ }
756
+
757
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
758
+
759
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
760
+ securityWorker?: (
761
+ securityData: SecurityDataType | null,
762
+ ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
763
+ secure?: boolean;
764
+ format?: ResponseType;
765
+ }
766
+
767
+ export enum ContentType {
768
+ Json = "application/json",
769
+ FormData = "multipart/form-data",
770
+ UrlEncoded = "application/x-www-form-urlencoded",
771
+ }
772
+
773
+ export class HttpClient<SecurityDataType = unknown> {
774
+ public instance: AxiosInstance;
775
+ private securityData: SecurityDataType | null = null;
776
+ private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
777
+ private secure?: boolean;
778
+ private format?: ResponseType;
779
+
780
+ constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
781
+ this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
782
+ this.secure = secure;
783
+ this.format = format;
784
+ this.securityWorker = securityWorker;
785
+ }
786
+
787
+ public setSecurityData = (data: SecurityDataType | null) => {
788
+ this.securityData = data;
789
+ };
790
+
791
+ private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
792
+ return {
793
+ ...this.instance.defaults,
794
+ ...params1,
795
+ ...(params2 || {}),
796
+ headers: {
797
+ ...(this.instance.defaults.headers || {}),
798
+ ...(params1.headers || {}),
799
+ ...((params2 && params2.headers) || {}),
800
+ },
801
+ };
802
+ }
803
+
804
+ private createFormData(input: Record<string, unknown>): FormData {
805
+ return Object.keys(input || {}).reduce((formData, key) => {
806
+ const property = input[key];
807
+ formData.append(
808
+ key,
809
+ property instanceof Blob
810
+ ? property
811
+ : typeof property === "object" && property !== null
812
+ ? JSON.stringify(property)
813
+ : `${property}`,
814
+ );
815
+ return formData;
816
+ }, new FormData());
817
+ }
818
+
819
+ public request = async <T = any, _E = any>({
820
+ secure,
821
+ path,
822
+ type,
823
+ query,
824
+ format,
825
+ body,
826
+ ...params
827
+ }: FullRequestParams): Promise<AxiosResponse<T>> => {
828
+ const secureParams =
829
+ ((typeof secure === "boolean" ? secure : this.secure) &&
830
+ this.securityWorker &&
831
+ (await this.securityWorker(this.securityData))) ||
832
+ {};
833
+ const requestParams = this.mergeRequestParams(params, secureParams);
834
+ const responseFormat = (format && this.format) || void 0;
835
+
836
+ if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
837
+ requestParams.headers.common = { Accept: "*/*" };
838
+ requestParams.headers.post = {};
839
+ requestParams.headers.put = {};
840
+
841
+ body = this.createFormData(body as Record<string, unknown>);
842
+ }
843
+
844
+ return this.instance.request({
845
+ ...requestParams,
846
+ headers: {
847
+ ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
848
+ ...(requestParams.headers || {}),
849
+ },
850
+ params: query,
851
+ responseType: responseFormat,
852
+ data: body,
853
+ url: path,
854
+ });
855
+ };
856
+ }
857
+
858
+ /**
859
+ * @title cosmos/group/v1/events.proto
860
+ * @version version not set
861
+ */
862
+ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
863
+ /**
864
+ * No description
865
+ *
866
+ * @tags Query
867
+ * @name QueryGroupInfo
868
+ * @summary GroupInfo queries group info based on group id.
869
+ * @request GET:/cosmos/group/v1/group_info/{group_id}
870
+ */
871
+ queryGroupInfo = (groupId: string, params: RequestParams = {}) =>
872
+ this.request<V1QueryGroupInfoResponse, RpcStatus>({
873
+ path: `/cosmos/group/v1/group_info/${groupId}`,
874
+ method: "GET",
875
+ format: "json",
876
+ ...params,
877
+ });
878
+
879
+ /**
880
+ * No description
881
+ *
882
+ * @tags Query
883
+ * @name QueryGroupMembers
884
+ * @summary GroupMembers queries members of a group
885
+ * @request GET:/cosmos/group/v1/group_members/{group_id}
886
+ */
887
+ queryGroupMembers = (
888
+ groupId: string,
889
+ query?: {
890
+ "pagination.key"?: string;
891
+ "pagination.offset"?: string;
892
+ "pagination.limit"?: string;
893
+ "pagination.count_total"?: boolean;
894
+ "pagination.reverse"?: boolean;
895
+ },
896
+ params: RequestParams = {},
897
+ ) =>
898
+ this.request<V1QueryGroupMembersResponse, RpcStatus>({
899
+ path: `/cosmos/group/v1/group_members/${groupId}`,
900
+ method: "GET",
901
+ query: query,
902
+ format: "json",
903
+ ...params,
904
+ });
905
+
906
+ /**
907
+ * No description
908
+ *
909
+ * @tags Query
910
+ * @name QueryGroupPoliciesByAdmin
911
+ * @summary GroupsByAdmin queries group policies by admin address.
912
+ * @request GET:/cosmos/group/v1/group_policies_by_admin/{admin}
913
+ */
914
+ queryGroupPoliciesByAdmin = (
915
+ admin: string,
916
+ query?: {
917
+ "pagination.key"?: string;
918
+ "pagination.offset"?: string;
919
+ "pagination.limit"?: string;
920
+ "pagination.count_total"?: boolean;
921
+ "pagination.reverse"?: boolean;
922
+ },
923
+ params: RequestParams = {},
924
+ ) =>
925
+ this.request<V1QueryGroupPoliciesByAdminResponse, RpcStatus>({
926
+ path: `/cosmos/group/v1/group_policies_by_admin/${admin}`,
927
+ method: "GET",
928
+ query: query,
929
+ format: "json",
930
+ ...params,
931
+ });
932
+
933
+ /**
934
+ * No description
935
+ *
936
+ * @tags Query
937
+ * @name QueryGroupPoliciesByGroup
938
+ * @summary GroupPoliciesByGroup queries group policies by group id.
939
+ * @request GET:/cosmos/group/v1/group_policies_by_group/{group_id}
940
+ */
941
+ queryGroupPoliciesByGroup = (
942
+ groupId: string,
943
+ query?: {
944
+ "pagination.key"?: string;
945
+ "pagination.offset"?: string;
946
+ "pagination.limit"?: string;
947
+ "pagination.count_total"?: boolean;
948
+ "pagination.reverse"?: boolean;
949
+ },
950
+ params: RequestParams = {},
951
+ ) =>
952
+ this.request<V1QueryGroupPoliciesByGroupResponse, RpcStatus>({
953
+ path: `/cosmos/group/v1/group_policies_by_group/${groupId}`,
954
+ method: "GET",
955
+ query: query,
956
+ format: "json",
957
+ ...params,
958
+ });
959
+
960
+ /**
961
+ * No description
962
+ *
963
+ * @tags Query
964
+ * @name QueryGroupPolicyInfo
965
+ * @summary GroupPolicyInfo queries group policy info based on account address of group policy.
966
+ * @request GET:/cosmos/group/v1/group_policy_info/{address}
967
+ */
968
+ queryGroupPolicyInfo = (address: string, params: RequestParams = {}) =>
969
+ this.request<V1QueryGroupPolicyInfoResponse, RpcStatus>({
970
+ path: `/cosmos/group/v1/group_policy_info/${address}`,
971
+ method: "GET",
972
+ format: "json",
973
+ ...params,
974
+ });
975
+
976
+ /**
977
+ * No description
978
+ *
979
+ * @tags Query
980
+ * @name QueryGroupsByAdmin
981
+ * @summary GroupsByAdmin queries groups by admin address.
982
+ * @request GET:/cosmos/group/v1/groups_by_admin/{admin}
983
+ */
984
+ queryGroupsByAdmin = (
985
+ admin: string,
986
+ query?: {
987
+ "pagination.key"?: string;
988
+ "pagination.offset"?: string;
989
+ "pagination.limit"?: string;
990
+ "pagination.count_total"?: boolean;
991
+ "pagination.reverse"?: boolean;
992
+ },
993
+ params: RequestParams = {},
994
+ ) =>
995
+ this.request<V1QueryGroupsByAdminResponse, RpcStatus>({
996
+ path: `/cosmos/group/v1/groups_by_admin/${admin}`,
997
+ method: "GET",
998
+ query: query,
999
+ format: "json",
1000
+ ...params,
1001
+ });
1002
+
1003
+ /**
1004
+ * No description
1005
+ *
1006
+ * @tags Query
1007
+ * @name QueryGroupsByMember
1008
+ * @summary GroupsByMember queries groups by member address.
1009
+ * @request GET:/cosmos/group/v1/groups_by_member/{address}
1010
+ */
1011
+ queryGroupsByMember = (
1012
+ address: string,
1013
+ query?: {
1014
+ "pagination.key"?: string;
1015
+ "pagination.offset"?: string;
1016
+ "pagination.limit"?: string;
1017
+ "pagination.count_total"?: boolean;
1018
+ "pagination.reverse"?: boolean;
1019
+ },
1020
+ params: RequestParams = {},
1021
+ ) =>
1022
+ this.request<V1QueryGroupsByMemberResponse, RpcStatus>({
1023
+ path: `/cosmos/group/v1/groups_by_member/${address}`,
1024
+ method: "GET",
1025
+ query: query,
1026
+ format: "json",
1027
+ ...params,
1028
+ });
1029
+
1030
+ /**
1031
+ * No description
1032
+ *
1033
+ * @tags Query
1034
+ * @name QueryProposal
1035
+ * @summary Proposal queries a proposal based on proposal id.
1036
+ * @request GET:/cosmos/group/v1/proposal/{proposal_id}
1037
+ */
1038
+ queryProposal = (proposalId: string, params: RequestParams = {}) =>
1039
+ this.request<V1QueryProposalResponse, RpcStatus>({
1040
+ path: `/cosmos/group/v1/proposal/${proposalId}`,
1041
+ method: "GET",
1042
+ format: "json",
1043
+ ...params,
1044
+ });
1045
+
1046
+ /**
1047
+ * No description
1048
+ *
1049
+ * @tags Query
1050
+ * @name QueryTallyResult
1051
+ * @summary TallyResult returns the tally result of a proposal. If the proposal is
1052
+ still in voting period, then this query computes the current tally state,
1053
+ which might not be final. On the other hand, if the proposal is final,
1054
+ then it simply returns the `final_tally_result` state stored in the
1055
+ proposal itself.
1056
+ * @request GET:/cosmos/group/v1/proposals/{proposal_id}/tally
1057
+ */
1058
+ queryTallyResult = (proposalId: string, params: RequestParams = {}) =>
1059
+ this.request<V1QueryTallyResultResponse, RpcStatus>({
1060
+ path: `/cosmos/group/v1/proposals/${proposalId}/tally`,
1061
+ method: "GET",
1062
+ format: "json",
1063
+ ...params,
1064
+ });
1065
+
1066
+ /**
1067
+ * No description
1068
+ *
1069
+ * @tags Query
1070
+ * @name QueryProposalsByGroupPolicy
1071
+ * @summary ProposalsByGroupPolicy queries proposals based on account address of group policy.
1072
+ * @request GET:/cosmos/group/v1/proposals_by_group_policy/{address}
1073
+ */
1074
+ queryProposalsByGroupPolicy = (
1075
+ address: string,
1076
+ query?: {
1077
+ "pagination.key"?: string;
1078
+ "pagination.offset"?: string;
1079
+ "pagination.limit"?: string;
1080
+ "pagination.count_total"?: boolean;
1081
+ "pagination.reverse"?: boolean;
1082
+ },
1083
+ params: RequestParams = {},
1084
+ ) =>
1085
+ this.request<V1QueryProposalsByGroupPolicyResponse, RpcStatus>({
1086
+ path: `/cosmos/group/v1/proposals_by_group_policy/${address}`,
1087
+ method: "GET",
1088
+ query: query,
1089
+ format: "json",
1090
+ ...params,
1091
+ });
1092
+
1093
+ /**
1094
+ * No description
1095
+ *
1096
+ * @tags Query
1097
+ * @name QueryVoteByProposalVoter
1098
+ * @summary VoteByProposalVoter queries a vote by proposal id and voter.
1099
+ * @request GET:/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}
1100
+ */
1101
+ queryVoteByProposalVoter = (proposalId: string, voter: string, params: RequestParams = {}) =>
1102
+ this.request<V1QueryVoteByProposalVoterResponse, RpcStatus>({
1103
+ path: `/cosmos/group/v1/vote_by_proposal_voter/${proposalId}/${voter}`,
1104
+ method: "GET",
1105
+ format: "json",
1106
+ ...params,
1107
+ });
1108
+
1109
+ /**
1110
+ * No description
1111
+ *
1112
+ * @tags Query
1113
+ * @name QueryVotesByProposal
1114
+ * @summary VotesByProposal queries a vote by proposal.
1115
+ * @request GET:/cosmos/group/v1/votes_by_proposal/{proposal_id}
1116
+ */
1117
+ queryVotesByProposal = (
1118
+ proposalId: string,
1119
+ query?: {
1120
+ "pagination.key"?: string;
1121
+ "pagination.offset"?: string;
1122
+ "pagination.limit"?: string;
1123
+ "pagination.count_total"?: boolean;
1124
+ "pagination.reverse"?: boolean;
1125
+ },
1126
+ params: RequestParams = {},
1127
+ ) =>
1128
+ this.request<V1QueryVotesByProposalResponse, RpcStatus>({
1129
+ path: `/cosmos/group/v1/votes_by_proposal/${proposalId}`,
1130
+ method: "GET",
1131
+ query: query,
1132
+ format: "json",
1133
+ ...params,
1134
+ });
1135
+
1136
+ /**
1137
+ * No description
1138
+ *
1139
+ * @tags Query
1140
+ * @name QueryVotesByVoter
1141
+ * @summary VotesByVoter queries a vote by voter.
1142
+ * @request GET:/cosmos/group/v1/votes_by_voter/{voter}
1143
+ */
1144
+ queryVotesByVoter = (
1145
+ voter: string,
1146
+ query?: {
1147
+ "pagination.key"?: string;
1148
+ "pagination.offset"?: string;
1149
+ "pagination.limit"?: string;
1150
+ "pagination.count_total"?: boolean;
1151
+ "pagination.reverse"?: boolean;
1152
+ },
1153
+ params: RequestParams = {},
1154
+ ) =>
1155
+ this.request<V1QueryVotesByVoterResponse, RpcStatus>({
1156
+ path: `/cosmos/group/v1/votes_by_voter/${voter}`,
1157
+ method: "GET",
1158
+ query: query,
1159
+ format: "json",
1160
+ ...params,
1161
+ });
1162
+ }