decentralcardgame-cardchain-client-ts 0.0.10 → 0.0.11

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 (535) hide show
  1. package/DecentralCardGame.cardchain.cardchain/index.js +5 -0
  2. package/DecentralCardGame.cardchain.cardchain/module.js +1046 -0
  3. package/DecentralCardGame.cardchain.cardchain/module.ts +460 -460
  4. package/DecentralCardGame.cardchain.cardchain/registry.js +85 -0
  5. package/DecentralCardGame.cardchain.cardchain/registry.ts +64 -64
  6. package/DecentralCardGame.cardchain.cardchain/rest.js +396 -0
  7. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +562 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/collection.js +365 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/collection_proposal.js +93 -0
  10. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +102 -0
  11. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +350 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +254 -0
  13. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +88 -0
  14. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +210 -0
  15. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +67 -0
  16. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +73 -0
  17. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +275 -0
  18. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +1980 -0
  19. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +85 -0
  20. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +148 -0
  21. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +93 -0
  22. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +4325 -0
  23. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +496 -0
  24. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.js +84 -0
  25. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.js +127 -0
  26. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.js +148 -0
  27. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
  28. package/DecentralCardGame.cardchain.cardchain/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  29. package/DecentralCardGame.cardchain.cardchain/types/cosmos/base/v1beta1/coin.js +192 -0
  30. package/DecentralCardGame.cardchain.cardchain/types/cosmos_proto/cosmos.js +171 -0
  31. package/DecentralCardGame.cardchain.cardchain/types/gogoproto/gogo.js +2 -0
  32. package/DecentralCardGame.cardchain.cardchain/types/google/api/annotations.js +2 -0
  33. package/DecentralCardGame.cardchain.cardchain/types/google/api/http.js +260 -0
  34. package/DecentralCardGame.cardchain.cardchain/types/google/protobuf/descriptor.js +2830 -0
  35. package/DecentralCardGame.cardchain.cardchain/types.js +23 -0
  36. package/client.js +7 -7
  37. package/cosmos.auth.v1beta1/index.js +5 -0
  38. package/cosmos.auth.v1beta1/module.js +64 -0
  39. package/cosmos.auth.v1beta1/registry.js +2 -0
  40. package/cosmos.auth.v1beta1/rest.js +228 -0
  41. package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
  42. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
  43. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.js +67 -0
  44. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +969 -0
  45. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
  46. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  47. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  48. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
  49. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  50. package/cosmos.auth.v1beta1/types/gogoproto/gogo.js +2 -0
  51. package/cosmos.auth.v1beta1/types/google/api/annotations.js +2 -0
  52. package/cosmos.auth.v1beta1/types/google/api/http.js +260 -0
  53. package/cosmos.auth.v1beta1/types/google/protobuf/any.js +99 -0
  54. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  55. package/cosmos.auth.v1beta1/types.js +5 -0
  56. package/cosmos.authz.v1beta1/index.js +5 -0
  57. package/cosmos.authz.v1beta1/module.js +140 -0
  58. package/cosmos.authz.v1beta1/registry.js +9 -0
  59. package/cosmos.authz.v1beta1/rest.js +131 -0
  60. package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
  61. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.js +244 -0
  62. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.js +128 -0
  63. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.js +54 -0
  64. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.js +394 -0
  65. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.js +362 -0
  66. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  67. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  68. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  69. package/cosmos.authz.v1beta1/types/gogoproto/gogo.js +2 -0
  70. package/cosmos.authz.v1beta1/types/google/api/annotations.js +2 -0
  71. package/cosmos.authz.v1beta1/types/google/api/http.js +260 -0
  72. package/cosmos.authz.v1beta1/types/google/protobuf/any.js +99 -0
  73. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  74. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.js +84 -0
  75. package/cosmos.authz.v1beta1/types.js +7 -0
  76. package/cosmos.bank.v1beta1/index.js +5 -0
  77. package/cosmos.bank.v1beta1/module.js +125 -0
  78. package/cosmos.bank.v1beta1/registry.js +7 -0
  79. package/cosmos.bank.v1beta1/rest.js +253 -0
  80. package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
  81. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +66 -0
  82. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.js +455 -0
  83. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +170 -0
  84. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1243 -0
  85. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +424 -0
  86. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  87. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  88. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  89. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
  90. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  91. package/cosmos.bank.v1beta1/types/gogoproto/gogo.js +2 -0
  92. package/cosmos.bank.v1beta1/types/google/api/annotations.js +2 -0
  93. package/cosmos.bank.v1beta1/types/google/api/http.js +260 -0
  94. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  95. package/cosmos.bank.v1beta1/types.js +11 -0
  96. package/cosmos.base.tendermint.v1beta1/index.js +5 -0
  97. package/cosmos.base.tendermint.v1beta1/module.js +70 -0
  98. package/cosmos.base.tendermint.v1beta1/registry.js +2 -0
  99. package/cosmos.base.tendermint.v1beta1/rest.js +209 -0
  100. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
  101. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  102. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.js +1281 -0
  103. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.js +350 -0
  104. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  105. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.js +2 -0
  106. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.js +2 -0
  107. package/cosmos.base.tendermint.v1beta1/types/google/api/http.js +260 -0
  108. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.js +99 -0
  109. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  110. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.js +84 -0
  111. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.js +100 -0
  112. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.js +356 -0
  113. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.js +352 -0
  114. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.js +86 -0
  115. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.js +343 -0
  116. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.js +1207 -0
  117. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.js +254 -0
  118. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.js +133 -0
  119. package/cosmos.base.tendermint.v1beta1/types.js +8 -0
  120. package/cosmos.consensus.v1/index.js +5 -0
  121. package/cosmos.consensus.v1/module.js +81 -0
  122. package/cosmos.consensus.v1/registry.js +5 -0
  123. package/cosmos.consensus.v1/rest.js +100 -0
  124. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
  125. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
  126. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
  127. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
  128. package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
  129. package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
  130. package/cosmos.consensus.v1/types/google/api/http.js +260 -0
  131. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
  132. package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
  133. package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
  134. package/cosmos.consensus.v1/types.js +1 -0
  135. package/cosmos.crisis.v1beta1/index.js +5 -0
  136. package/cosmos.crisis.v1beta1/module.js +104 -0
  137. package/cosmos.crisis.v1beta1/registry.js +7 -0
  138. package/cosmos.crisis.v1beta1/rest.js +83 -0
  139. package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
  140. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  141. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.js +51 -0
  142. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +206 -0
  143. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  144. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  145. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.js +2 -0
  146. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  147. package/cosmos.crisis.v1beta1/types.js +1 -0
  148. package/cosmos.distribution.v1beta1/index.js +5 -0
  149. package/cosmos.distribution.v1beta1/module.js +235 -0
  150. package/cosmos.distribution.v1beta1/registry.js +15 -0
  151. package/cosmos.distribution.v1beta1/rest.js +228 -0
  152. package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
  153. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  154. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  155. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.js +737 -0
  156. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.js +656 -0
  157. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +1046 -0
  158. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +595 -0
  159. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  160. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  161. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.js +2 -0
  162. package/cosmos.distribution.v1beta1/types/google/api/annotations.js +2 -0
  163. package/cosmos.distribution.v1beta1/types/google/api/http.js +260 -0
  164. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  165. package/cosmos.distribution.v1beta1/types.js +20 -0
  166. package/cosmos.evidence.v1beta1/index.js +5 -0
  167. package/cosmos.evidence.v1beta1/module.js +84 -0
  168. package/cosmos.evidence.v1beta1/registry.js +5 -0
  169. package/cosmos.evidence.v1beta1/rest.js +116 -0
  170. package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
  171. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  172. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.js +124 -0
  173. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.js +50 -0
  174. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +265 -0
  175. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.js +154 -0
  176. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  177. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  178. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.js +2 -0
  179. package/cosmos.evidence.v1beta1/types/google/api/annotations.js +2 -0
  180. package/cosmos.evidence.v1beta1/types/google/api/http.js +260 -0
  181. package/cosmos.evidence.v1beta1/types/google/protobuf/any.js +99 -0
  182. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  183. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.js +84 -0
  184. package/cosmos.evidence.v1beta1/types.js +2 -0
  185. package/cosmos.feegrant.v1beta1/index.js +5 -0
  186. package/cosmos.feegrant.v1beta1/module.js +113 -0
  187. package/cosmos.feegrant.v1beta1/registry.js +7 -0
  188. package/cosmos.feegrant.v1beta1/rest.js +130 -0
  189. package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
  190. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  191. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  192. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.js +307 -0
  193. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.js +52 -0
  194. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.js +357 -0
  195. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.js +205 -0
  196. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  197. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  198. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.js +2 -0
  199. package/cosmos.feegrant.v1beta1/types/google/api/annotations.js +2 -0
  200. package/cosmos.feegrant.v1beta1/types/google/api/http.js +260 -0
  201. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.js +99 -0
  202. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  203. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.js +84 -0
  204. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.js +84 -0
  205. package/cosmos.feegrant.v1beta1/types.js +5 -0
  206. package/cosmos.gov.v1/index.js +5 -0
  207. package/cosmos.gov.v1/module.js +192 -0
  208. package/cosmos.gov.v1/registry.js +13 -0
  209. package/cosmos.gov.v1/rest.js +242 -0
  210. package/cosmos.gov.v1/types/amino/amino.js +2 -0
  211. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  212. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  213. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +174 -0
  214. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +945 -0
  215. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +928 -0
  216. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +701 -0
  217. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.js +2 -0
  218. package/cosmos.gov.v1/types/cosmos_proto/cosmos.js +171 -0
  219. package/cosmos.gov.v1/types/gogoproto/gogo.js +2 -0
  220. package/cosmos.gov.v1/types/google/api/annotations.js +2 -0
  221. package/cosmos.gov.v1/types/google/api/http.js +260 -0
  222. package/cosmos.gov.v1/types/google/protobuf/any.js +99 -0
  223. package/cosmos.gov.v1/types/google/protobuf/descriptor.js +2830 -0
  224. package/cosmos.gov.v1/types/google/protobuf/duration.js +84 -0
  225. package/cosmos.gov.v1/types/google/protobuf/timestamp.js +84 -0
  226. package/cosmos.gov.v1/types.js +10 -0
  227. package/cosmos.gov.v1beta1/index.js +5 -0
  228. package/cosmos.gov.v1beta1/module.js +169 -0
  229. package/cosmos.gov.v1beta1/registry.js +11 -0
  230. package/cosmos.gov.v1beta1/rest.js +242 -0
  231. package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
  232. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  233. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  234. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.js +162 -0
  235. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.js +832 -0
  236. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.js +917 -0
  237. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.js +467 -0
  238. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  239. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  240. package/cosmos.gov.v1beta1/types/gogoproto/gogo.js +2 -0
  241. package/cosmos.gov.v1beta1/types/google/api/annotations.js +2 -0
  242. package/cosmos.gov.v1beta1/types/google/api/http.js +260 -0
  243. package/cosmos.gov.v1beta1/types/google/protobuf/any.js +99 -0
  244. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  245. package/cosmos.gov.v1beta1/types/google/protobuf/duration.js +84 -0
  246. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.js +84 -0
  247. package/cosmos.gov.v1beta1/types.js +10 -0
  248. package/cosmos.group.v1/index.js +5 -0
  249. package/cosmos.group.v1/module.js +423 -0
  250. package/cosmos.group.v1/registry.js +31 -0
  251. package/cosmos.group.v1/rest.js +366 -0
  252. package/cosmos.group.v1/types/amino/amino.js +2 -0
  253. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  254. package/cosmos.group.v1/types/cosmos/group/v1/events.js +497 -0
  255. package/cosmos.group.v1/types/cosmos/group/v1/genesis.js +177 -0
  256. package/cosmos.group.v1/types/cosmos/group/v1/query.js +1578 -0
  257. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +1639 -0
  258. package/cosmos.group.v1/types/cosmos/group/v1/types.js +1125 -0
  259. package/cosmos.group.v1/types/cosmos/msg/v1/msg.js +2 -0
  260. package/cosmos.group.v1/types/cosmos_proto/cosmos.js +171 -0
  261. package/cosmos.group.v1/types/gogoproto/gogo.js +2 -0
  262. package/cosmos.group.v1/types/google/api/annotations.js +2 -0
  263. package/cosmos.group.v1/types/google/api/http.js +260 -0
  264. package/cosmos.group.v1/types/google/protobuf/any.js +99 -0
  265. package/cosmos.group.v1/types/google/protobuf/descriptor.js +2830 -0
  266. package/cosmos.group.v1/types/google/protobuf/duration.js +84 -0
  267. package/cosmos.group.v1/types/google/protobuf/timestamp.js +84 -0
  268. package/cosmos.group.v1/types.js +22 -0
  269. package/cosmos.mint.v1beta1/index.js +5 -0
  270. package/cosmos.mint.v1beta1/module.js +60 -0
  271. package/cosmos.mint.v1beta1/registry.js +2 -0
  272. package/cosmos.mint.v1beta1/rest.js +128 -0
  273. package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
  274. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.js +63 -0
  275. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.js +179 -0
  276. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.js +298 -0
  277. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
  278. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  279. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  280. package/cosmos.mint.v1beta1/types/gogoproto/gogo.js +2 -0
  281. package/cosmos.mint.v1beta1/types/google/api/annotations.js +2 -0
  282. package/cosmos.mint.v1beta1/types/google/api/http.js +260 -0
  283. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  284. package/cosmos.mint.v1beta1/types.js +3 -0
  285. package/cosmos.nft.v1beta1/index.js +5 -0
  286. package/cosmos.nft.v1beta1/module.js +68 -0
  287. package/cosmos.nft.v1beta1/registry.js +2 -0
  288. package/cosmos.nft.v1beta1/rest.js +187 -0
  289. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  290. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  291. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.js +198 -0
  292. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.js +126 -0
  293. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.js +183 -0
  294. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.js +752 -0
  295. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.js +120 -0
  296. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  297. package/cosmos.nft.v1beta1/types/google/api/annotations.js +2 -0
  298. package/cosmos.nft.v1beta1/types/google/api/http.js +260 -0
  299. package/cosmos.nft.v1beta1/types/google/protobuf/any.js +99 -0
  300. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  301. package/cosmos.nft.v1beta1/types.js +7 -0
  302. package/cosmos.params.v1beta1/index.js +5 -0
  303. package/cosmos.params.v1beta1/module.js +62 -0
  304. package/cosmos.params.v1beta1/registry.js +2 -0
  305. package/cosmos.params.v1beta1/rest.js +116 -0
  306. package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
  307. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.js +133 -0
  308. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.js +257 -0
  309. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  310. package/cosmos.params.v1beta1/types/gogoproto/gogo.js +2 -0
  311. package/cosmos.params.v1beta1/types/google/api/annotations.js +2 -0
  312. package/cosmos.params.v1beta1/types/google/api/http.js +260 -0
  313. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  314. package/cosmos.params.v1beta1/types.js +4 -0
  315. package/cosmos.slashing.v1beta1/index.js +5 -0
  316. package/cosmos.slashing.v1beta1/module.js +92 -0
  317. package/cosmos.slashing.v1beta1/registry.js +5 -0
  318. package/cosmos.slashing.v1beta1/rest.js +129 -0
  319. package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
  320. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  321. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  322. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.js +279 -0
  323. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.js +300 -0
  324. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.js +275 -0
  325. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +185 -0
  326. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  327. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.js +2 -0
  328. package/cosmos.slashing.v1beta1/types/google/api/annotations.js +2 -0
  329. package/cosmos.slashing.v1beta1/types/google/api/http.js +260 -0
  330. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  331. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.js +84 -0
  332. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.js +84 -0
  333. package/cosmos.slashing.v1beta1/types.js +6 -0
  334. package/cosmos.staking.v1beta1/index.js +5 -0
  335. package/cosmos.staking.v1beta1/module.js +245 -0
  336. package/cosmos.staking.v1beta1/registry.js +15 -0
  337. package/cosmos.staking.v1beta1/rest.js +308 -0
  338. package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
  339. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  340. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  341. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  342. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
  343. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.js +184 -0
  344. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.js +259 -0
  345. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.js +1568 -0
  346. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +1614 -0
  347. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +861 -0
  348. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  349. package/cosmos.staking.v1beta1/types/gogoproto/gogo.js +2 -0
  350. package/cosmos.staking.v1beta1/types/google/api/annotations.js +2 -0
  351. package/cosmos.staking.v1beta1/types/google/api/http.js +260 -0
  352. package/cosmos.staking.v1beta1/types/google/protobuf/any.js +99 -0
  353. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  354. package/cosmos.staking.v1beta1/types/google/protobuf/duration.js +84 -0
  355. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.js +84 -0
  356. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
  357. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.js +100 -0
  358. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.js +356 -0
  359. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
  360. package/cosmos.staking.v1beta1/types/tendermint/types/types.js +1207 -0
  361. package/cosmos.staking.v1beta1/types/tendermint/types/validator.js +254 -0
  362. package/cosmos.staking.v1beta1/types/tendermint/version/types.js +133 -0
  363. package/cosmos.staking.v1beta1/types.js +25 -0
  364. package/cosmos.tx.v1beta1/index.js +5 -0
  365. package/cosmos.tx.v1beta1/module.js +82 -0
  366. package/cosmos.tx.v1beta1/registry.js +2 -0
  367. package/cosmos.tx.v1beta1/rest.js +320 -0
  368. package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
  369. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +803 -0
  370. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  371. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  372. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.js +147 -0
  373. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.js +449 -0
  374. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +1160 -0
  375. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.js +959 -0
  376. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  377. package/cosmos.tx.v1beta1/types/gogoproto/gogo.js +2 -0
  378. package/cosmos.tx.v1beta1/types/google/api/annotations.js +2 -0
  379. package/cosmos.tx.v1beta1/types/google/api/http.js +260 -0
  380. package/cosmos.tx.v1beta1/types/google/protobuf/any.js +99 -0
  381. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  382. package/cosmos.tx.v1beta1/types/google/protobuf/duration.js +84 -0
  383. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.js +84 -0
  384. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +3812 -0
  385. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.js +100 -0
  386. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.js +356 -0
  387. package/cosmos.tx.v1beta1/types/tendermint/types/block.js +86 -0
  388. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.js +343 -0
  389. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +369 -0
  390. package/cosmos.tx.v1beta1/types/tendermint/types/types.js +1207 -0
  391. package/cosmos.tx.v1beta1/types/tendermint/types/validator.js +254 -0
  392. package/cosmos.tx.v1beta1/types/tendermint/version/types.js +133 -0
  393. package/cosmos.tx.v1beta1/types.js +14 -0
  394. package/cosmos.upgrade.v1beta1/index.js +5 -0
  395. package/cosmos.upgrade.v1beta1/module.js +113 -0
  396. package/cosmos.upgrade.v1beta1/registry.js +7 -0
  397. package/cosmos.upgrade.v1beta1/rest.js +162 -0
  398. package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
  399. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  400. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.js +501 -0
  401. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.js +183 -0
  402. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  403. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  404. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.js +2 -0
  405. package/cosmos.upgrade.v1beta1/types/google/api/annotations.js +2 -0
  406. package/cosmos.upgrade.v1beta1/types/google/api/http.js +260 -0
  407. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.js +99 -0
  408. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  409. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.js +84 -0
  410. package/cosmos.upgrade.v1beta1/types.js +5 -0
  411. package/cosmos.vesting.v1beta1/index.js +5 -0
  412. package/cosmos.vesting.v1beta1/module.js +140 -0
  413. package/cosmos.vesting.v1beta1/registry.js +9 -0
  414. package/cosmos.vesting.v1beta1/rest.js +83 -0
  415. package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
  416. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
  417. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  418. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  419. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.js +383 -0
  420. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.js +422 -0
  421. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  422. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.js +2 -0
  423. package/cosmos.vesting.v1beta1/types/google/protobuf/any.js +99 -0
  424. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  425. package/cosmos.vesting.v1beta1/types.js +7 -0
  426. package/ibc.applications.interchain_accounts.controller.v1/index.js +5 -0
  427. package/ibc.applications.interchain_accounts.controller.v1/module.js +58 -0
  428. package/ibc.applications.interchain_accounts.controller.v1/registry.js +2 -0
  429. package/ibc.applications.interchain_accounts.controller.v1/rest.js +123 -0
  430. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.js +2 -0
  431. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.js +2 -0
  432. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.js +260 -0
  433. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
  434. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.js +2830 -0
  435. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.js +47 -0
  436. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.js +193 -0
  437. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +277 -0
  438. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
  439. package/ibc.applications.interchain_accounts.controller.v1/types.js +2 -0
  440. package/ibc.applications.interchain_accounts.host.v1/index.js +5 -0
  441. package/ibc.applications.interchain_accounts.host.v1/module.js +58 -0
  442. package/ibc.applications.interchain_accounts.host.v1/registry.js +2 -0
  443. package/ibc.applications.interchain_accounts.host.v1/rest.js +100 -0
  444. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.js +2 -0
  445. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.js +2 -0
  446. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.js +260 -0
  447. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.js +2830 -0
  448. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.js +63 -0
  449. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.js +94 -0
  450. package/ibc.applications.interchain_accounts.host.v1/types.js +2 -0
  451. package/ibc.applications.transfer.v1/index.js +5 -0
  452. package/ibc.applications.transfer.v1/module.js +64 -0
  453. package/ibc.applications.transfer.v1/registry.js +2 -0
  454. package/ibc.applications.transfer.v1/rest.js +171 -0
  455. package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
  456. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  457. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  458. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  459. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.js +171 -0
  460. package/ibc.applications.transfer.v1/types/gogoproto/gogo.js +2 -0
  461. package/ibc.applications.transfer.v1/types/google/api/annotations.js +2 -0
  462. package/ibc.applications.transfer.v1/types/google/api/http.js +260 -0
  463. package/ibc.applications.transfer.v1/types/google/protobuf/any.js +99 -0
  464. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.js +2830 -0
  465. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.js +84 -0
  466. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
  467. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +90 -0
  468. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +574 -0
  469. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.js +110 -0
  470. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +204 -0
  471. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.js +448 -0
  472. package/ibc.applications.transfer.v1/types.js +5 -0
  473. package/ibc.core.channel.v1/index.js +5 -0
  474. package/ibc.core.channel.v1/module.js +72 -0
  475. package/ibc.core.channel.v1/registry.js +2 -0
  476. package/ibc.core.channel.v1/rest.js +323 -0
  477. package/ibc.core.channel.v1/types/amino/amino.js +2 -0
  478. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  479. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  480. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.js +171 -0
  481. package/ibc.core.channel.v1/types/gogoproto/gogo.js +2 -0
  482. package/ibc.core.channel.v1/types/google/api/annotations.js +2 -0
  483. package/ibc.core.channel.v1/types/google/api/http.js +260 -0
  484. package/ibc.core.channel.v1/types/google/protobuf/any.js +99 -0
  485. package/ibc.core.channel.v1/types/google/protobuf/descriptor.js +2830 -0
  486. package/ibc.core.channel.v1/types/google/protobuf/timestamp.js +84 -0
  487. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.js +714 -0
  488. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.js +254 -0
  489. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.js +1866 -0
  490. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +1436 -0
  491. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.js +448 -0
  492. package/ibc.core.channel.v1/types.js +9 -0
  493. package/ibc.core.client.v1/index.js +5 -0
  494. package/ibc.core.client.v1/module.js +74 -0
  495. package/ibc.core.client.v1/registry.js +2 -0
  496. package/ibc.core.client.v1/rest.js +218 -0
  497. package/ibc.core.client.v1/types/amino/amino.js +2 -0
  498. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  499. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  500. package/ibc.core.client.v1/types/cosmos_proto/cosmos.js +171 -0
  501. package/ibc.core.client.v1/types/gogoproto/gogo.js +2 -0
  502. package/ibc.core.client.v1/types/google/api/annotations.js +2 -0
  503. package/ibc.core.client.v1/types/google/api/http.js +260 -0
  504. package/ibc.core.client.v1/types/google/protobuf/any.js +99 -0
  505. package/ibc.core.client.v1/types/google/protobuf/descriptor.js +2830 -0
  506. package/ibc.core.client.v1/types/google/protobuf/timestamp.js +84 -0
  507. package/ibc.core.client.v1/types/ibc/core/client/v1/client.js +448 -0
  508. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.js +287 -0
  509. package/ibc.core.client.v1/types/ibc/core/client/v1/query.js +1026 -0
  510. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +510 -0
  511. package/ibc.core.client.v1/types.js +10 -0
  512. package/ibc.core.connection.v1/index.js +5 -0
  513. package/ibc.core.connection.v1/module.js +70 -0
  514. package/ibc.core.connection.v1/registry.js +2 -0
  515. package/ibc.core.connection.v1/rest.js +191 -0
  516. package/ibc.core.connection.v1/types/amino/amino.js +2 -0
  517. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  518. package/ibc.core.connection.v1/types/cosmos/ics23/v1/proofs.js +1126 -0
  519. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  520. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.js +171 -0
  521. package/ibc.core.connection.v1/types/gogoproto/gogo.js +2 -0
  522. package/ibc.core.connection.v1/types/google/api/annotations.js +2 -0
  523. package/ibc.core.connection.v1/types/google/api/http.js +260 -0
  524. package/ibc.core.connection.v1/types/google/protobuf/any.js +99 -0
  525. package/ibc.core.connection.v1/types/google/protobuf/descriptor.js +2830 -0
  526. package/ibc.core.connection.v1/types/google/protobuf/timestamp.js +84 -0
  527. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.js +448 -0
  528. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +223 -0
  529. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.js +537 -0
  530. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.js +120 -0
  531. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +766 -0
  532. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +731 -0
  533. package/ibc.core.connection.v1/types.js +8 -0
  534. package/index.js +3 -1
  535. package/package.json +1 -1
@@ -0,0 +1,84 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ export const protobufPackage = "google.protobuf";
5
+ function createBaseDuration() {
6
+ return { seconds: 0, nanos: 0 };
7
+ }
8
+ export const Duration = {
9
+ encode(message, writer = _m0.Writer.create()) {
10
+ if (message.seconds !== 0) {
11
+ writer.uint32(8).int64(message.seconds);
12
+ }
13
+ if (message.nanos !== 0) {
14
+ writer.uint32(16).int32(message.nanos);
15
+ }
16
+ return writer;
17
+ },
18
+ decode(input, length) {
19
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
20
+ let end = length === undefined ? reader.len : reader.pos + length;
21
+ const message = createBaseDuration();
22
+ while (reader.pos < end) {
23
+ const tag = reader.uint32();
24
+ switch (tag >>> 3) {
25
+ case 1:
26
+ message.seconds = longToNumber(reader.int64());
27
+ break;
28
+ case 2:
29
+ message.nanos = reader.int32();
30
+ break;
31
+ default:
32
+ reader.skipType(tag & 7);
33
+ break;
34
+ }
35
+ }
36
+ return message;
37
+ },
38
+ fromJSON(object) {
39
+ return {
40
+ seconds: isSet(object.seconds) ? Number(object.seconds) : 0,
41
+ nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
42
+ };
43
+ },
44
+ toJSON(message) {
45
+ const obj = {};
46
+ message.seconds !== undefined && (obj.seconds = Math.round(message.seconds));
47
+ message.nanos !== undefined && (obj.nanos = Math.round(message.nanos));
48
+ return obj;
49
+ },
50
+ fromPartial(object) {
51
+ const message = createBaseDuration();
52
+ message.seconds = object.seconds ?? 0;
53
+ message.nanos = object.nanos ?? 0;
54
+ return message;
55
+ },
56
+ };
57
+ var globalThis = (() => {
58
+ if (typeof globalThis !== "undefined") {
59
+ return globalThis;
60
+ }
61
+ if (typeof self !== "undefined") {
62
+ return self;
63
+ }
64
+ if (typeof window !== "undefined") {
65
+ return window;
66
+ }
67
+ if (typeof global !== "undefined") {
68
+ return global;
69
+ }
70
+ throw "Unable to locate global object";
71
+ })();
72
+ function longToNumber(long) {
73
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
74
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
75
+ }
76
+ return long.toNumber();
77
+ }
78
+ if (_m0.util.Long !== Long) {
79
+ _m0.util.Long = Long;
80
+ _m0.configure();
81
+ }
82
+ function isSet(value) {
83
+ return value !== null && value !== undefined;
84
+ }
@@ -0,0 +1,84 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ export const protobufPackage = "google.protobuf";
5
+ function createBaseTimestamp() {
6
+ return { seconds: 0, nanos: 0 };
7
+ }
8
+ export const Timestamp = {
9
+ encode(message, writer = _m0.Writer.create()) {
10
+ if (message.seconds !== 0) {
11
+ writer.uint32(8).int64(message.seconds);
12
+ }
13
+ if (message.nanos !== 0) {
14
+ writer.uint32(16).int32(message.nanos);
15
+ }
16
+ return writer;
17
+ },
18
+ decode(input, length) {
19
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
20
+ let end = length === undefined ? reader.len : reader.pos + length;
21
+ const message = createBaseTimestamp();
22
+ while (reader.pos < end) {
23
+ const tag = reader.uint32();
24
+ switch (tag >>> 3) {
25
+ case 1:
26
+ message.seconds = longToNumber(reader.int64());
27
+ break;
28
+ case 2:
29
+ message.nanos = reader.int32();
30
+ break;
31
+ default:
32
+ reader.skipType(tag & 7);
33
+ break;
34
+ }
35
+ }
36
+ return message;
37
+ },
38
+ fromJSON(object) {
39
+ return {
40
+ seconds: isSet(object.seconds) ? Number(object.seconds) : 0,
41
+ nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
42
+ };
43
+ },
44
+ toJSON(message) {
45
+ const obj = {};
46
+ message.seconds !== undefined && (obj.seconds = Math.round(message.seconds));
47
+ message.nanos !== undefined && (obj.nanos = Math.round(message.nanos));
48
+ return obj;
49
+ },
50
+ fromPartial(object) {
51
+ const message = createBaseTimestamp();
52
+ message.seconds = object.seconds ?? 0;
53
+ message.nanos = object.nanos ?? 0;
54
+ return message;
55
+ },
56
+ };
57
+ var globalThis = (() => {
58
+ if (typeof globalThis !== "undefined") {
59
+ return globalThis;
60
+ }
61
+ if (typeof self !== "undefined") {
62
+ return self;
63
+ }
64
+ if (typeof window !== "undefined") {
65
+ return window;
66
+ }
67
+ if (typeof global !== "undefined") {
68
+ return global;
69
+ }
70
+ throw "Unable to locate global object";
71
+ })();
72
+ function longToNumber(long) {
73
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
74
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
75
+ }
76
+ return long.toNumber();
77
+ }
78
+ if (_m0.util.Long !== Long) {
79
+ _m0.util.Long = Long;
80
+ _m0.configure();
81
+ }
82
+ function isSet(value) {
83
+ return value !== null && value !== undefined;
84
+ }
@@ -0,0 +1,10 @@
1
+ import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov";
2
+ import { TextProposal } from "./types/cosmos/gov/v1beta1/gov";
3
+ import { Deposit } from "./types/cosmos/gov/v1beta1/gov";
4
+ import { Proposal } from "./types/cosmos/gov/v1beta1/gov";
5
+ import { TallyResult } from "./types/cosmos/gov/v1beta1/gov";
6
+ import { Vote } from "./types/cosmos/gov/v1beta1/gov";
7
+ import { DepositParams } from "./types/cosmos/gov/v1beta1/gov";
8
+ import { VotingParams } from "./types/cosmos/gov/v1beta1/gov";
9
+ import { TallyParams } from "./types/cosmos/gov/v1beta1/gov";
10
+ export { WeightedVoteOption, TextProposal, Deposit, Proposal, TallyResult, Vote, DepositParams, VotingParams, TallyParams, };
@@ -0,0 +1,5 @@
1
+ import Module from './module';
2
+ import { txClient, queryClient, registry } from './module';
3
+ import { msgTypes } from './registry';
4
+ export * from "./types";
5
+ export { Module, msgTypes, txClient, queryClient, registry };
@@ -0,0 +1,423 @@
1
+ // Generated by Ignite ignite.com/cli
2
+ import { SigningStargateClient } from "@cosmjs/stargate";
3
+ import { Registry } from "@cosmjs/proto-signing";
4
+ import { msgTypes } from './registry';
5
+ import { Api } from "./rest";
6
+ import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
7
+ import { MsgVote } from "./types/cosmos/group/v1/tx";
8
+ import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
9
+ import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
10
+ import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
11
+ import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
12
+ import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
13
+ import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
14
+ import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
15
+ import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
16
+ import { MsgExec } from "./types/cosmos/group/v1/tx";
17
+ import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
18
+ import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
19
+ import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
20
+ import { EventCreateGroup as typeEventCreateGroup } from "./types";
21
+ import { EventUpdateGroup as typeEventUpdateGroup } from "./types";
22
+ import { EventCreateGroupPolicy as typeEventCreateGroupPolicy } from "./types";
23
+ import { EventUpdateGroupPolicy as typeEventUpdateGroupPolicy } from "./types";
24
+ import { EventSubmitProposal as typeEventSubmitProposal } from "./types";
25
+ import { EventWithdrawProposal as typeEventWithdrawProposal } from "./types";
26
+ import { EventVote as typeEventVote } from "./types";
27
+ import { EventExec as typeEventExec } from "./types";
28
+ import { EventLeaveGroup as typeEventLeaveGroup } from "./types";
29
+ import { EventProposalPruned as typeEventProposalPruned } from "./types";
30
+ import { Member as typeMember } from "./types";
31
+ import { MemberRequest as typeMemberRequest } from "./types";
32
+ import { ThresholdDecisionPolicy as typeThresholdDecisionPolicy } from "./types";
33
+ import { PercentageDecisionPolicy as typePercentageDecisionPolicy } from "./types";
34
+ import { DecisionPolicyWindows as typeDecisionPolicyWindows } from "./types";
35
+ import { GroupInfo as typeGroupInfo } from "./types";
36
+ import { GroupMember as typeGroupMember } from "./types";
37
+ import { GroupPolicyInfo as typeGroupPolicyInfo } from "./types";
38
+ import { Proposal as typeProposal } from "./types";
39
+ import { TallyResult as typeTallyResult } from "./types";
40
+ import { Vote as typeVote } from "./types";
41
+ export { MsgSubmitProposal, MsgVote, MsgUpdateGroupMembers, MsgWithdrawProposal, MsgCreateGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgExec, MsgCreateGroupWithPolicy, MsgLeaveGroup, MsgUpdateGroupPolicyMetadata };
42
+ export const registry = new Registry(msgTypes);
43
+ function getStructure(template) {
44
+ const structure = { fields: [] };
45
+ for (let [key, value] of Object.entries(template)) {
46
+ let field = { name: key, type: typeof value };
47
+ structure.fields.push(field);
48
+ }
49
+ return structure;
50
+ }
51
+ const defaultFee = {
52
+ amount: [],
53
+ gas: "200000",
54
+ };
55
+ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
56
+ return {
57
+ async sendMsgSubmitProposal({ value, fee, memo }) {
58
+ if (!signer) {
59
+ throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
60
+ }
61
+ try {
62
+ const { address } = (await signer.getAccounts())[0];
63
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
64
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
65
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
66
+ }
67
+ catch (e) {
68
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
69
+ }
70
+ },
71
+ async sendMsgVote({ value, fee, memo }) {
72
+ if (!signer) {
73
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
74
+ }
75
+ try {
76
+ const { address } = (await signer.getAccounts())[0];
77
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
78
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
79
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
80
+ }
81
+ catch (e) {
82
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
83
+ }
84
+ },
85
+ async sendMsgUpdateGroupMembers({ value, fee, memo }) {
86
+ if (!signer) {
87
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
88
+ }
89
+ try {
90
+ const { address } = (await signer.getAccounts())[0];
91
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
92
+ let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
93
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
94
+ }
95
+ catch (e) {
96
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
97
+ }
98
+ },
99
+ async sendMsgWithdrawProposal({ value, fee, memo }) {
100
+ if (!signer) {
101
+ throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
102
+ }
103
+ try {
104
+ const { address } = (await signer.getAccounts())[0];
105
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
106
+ let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
107
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
108
+ }
109
+ catch (e) {
110
+ throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
111
+ }
112
+ },
113
+ async sendMsgCreateGroup({ value, fee, memo }) {
114
+ if (!signer) {
115
+ throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
116
+ }
117
+ try {
118
+ const { address } = (await signer.getAccounts())[0];
119
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
120
+ let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
121
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
122
+ }
123
+ catch (e) {
124
+ throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
125
+ }
126
+ },
127
+ async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
128
+ if (!signer) {
129
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
130
+ }
131
+ try {
132
+ const { address } = (await signer.getAccounts())[0];
133
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
134
+ let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
135
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
136
+ }
137
+ catch (e) {
138
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
139
+ }
140
+ },
141
+ async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) {
142
+ if (!signer) {
143
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.');
144
+ }
145
+ try {
146
+ const { address } = (await signer.getAccounts())[0];
147
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
148
+ let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) });
149
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
150
+ }
151
+ catch (e) {
152
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message);
153
+ }
154
+ },
155
+ async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
156
+ if (!signer) {
157
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
158
+ }
159
+ try {
160
+ const { address } = (await signer.getAccounts())[0];
161
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
162
+ let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
163
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
164
+ }
165
+ catch (e) {
166
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
167
+ }
168
+ },
169
+ async sendMsgUpdateGroupMetadata({ value, fee, memo }) {
170
+ if (!signer) {
171
+ throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.');
172
+ }
173
+ try {
174
+ const { address } = (await signer.getAccounts())[0];
175
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
176
+ let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) });
177
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
178
+ }
179
+ catch (e) {
180
+ throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message);
181
+ }
182
+ },
183
+ async sendMsgCreateGroupPolicy({ value, fee, memo }) {
184
+ if (!signer) {
185
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.');
186
+ }
187
+ try {
188
+ const { address } = (await signer.getAccounts())[0];
189
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
190
+ let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
191
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
192
+ }
193
+ catch (e) {
194
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
195
+ }
196
+ },
197
+ async sendMsgExec({ value, fee, memo }) {
198
+ if (!signer) {
199
+ throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.');
200
+ }
201
+ try {
202
+ const { address } = (await signer.getAccounts())[0];
203
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
204
+ let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
205
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
206
+ }
207
+ catch (e) {
208
+ throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
209
+ }
210
+ },
211
+ async sendMsgCreateGroupWithPolicy({ value, fee, memo }) {
212
+ if (!signer) {
213
+ throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.');
214
+ }
215
+ try {
216
+ const { address } = (await signer.getAccounts())[0];
217
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
218
+ let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) });
219
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
220
+ }
221
+ catch (e) {
222
+ throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message);
223
+ }
224
+ },
225
+ async sendMsgLeaveGroup({ value, fee, memo }) {
226
+ if (!signer) {
227
+ throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.');
228
+ }
229
+ try {
230
+ const { address } = (await signer.getAccounts())[0];
231
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
232
+ let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) });
233
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
234
+ }
235
+ catch (e) {
236
+ throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message);
237
+ }
238
+ },
239
+ async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
240
+ if (!signer) {
241
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
242
+ }
243
+ try {
244
+ const { address } = (await signer.getAccounts())[0];
245
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
246
+ let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
247
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
248
+ }
249
+ catch (e) {
250
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
251
+ }
252
+ },
253
+ msgSubmitProposal({ value }) {
254
+ try {
255
+ return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
256
+ }
257
+ catch (e) {
258
+ throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
259
+ }
260
+ },
261
+ msgVote({ value }) {
262
+ try {
263
+ return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(value) };
264
+ }
265
+ catch (e) {
266
+ throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
267
+ }
268
+ },
269
+ msgUpdateGroupMembers({ value }) {
270
+ try {
271
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
272
+ }
273
+ catch (e) {
274
+ throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
275
+ }
276
+ },
277
+ msgWithdrawProposal({ value }) {
278
+ try {
279
+ return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
280
+ }
281
+ catch (e) {
282
+ throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
283
+ }
284
+ },
285
+ msgCreateGroup({ value }) {
286
+ try {
287
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
288
+ }
289
+ catch (e) {
290
+ throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
291
+ }
292
+ },
293
+ msgUpdateGroupAdmin({ value }) {
294
+ try {
295
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) };
296
+ }
297
+ catch (e) {
298
+ throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
299
+ }
300
+ },
301
+ msgUpdateGroupPolicyAdmin({ value }) {
302
+ try {
303
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(value) };
304
+ }
305
+ catch (e) {
306
+ throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message);
307
+ }
308
+ },
309
+ msgUpdateGroupPolicyDecisionPolicy({ value }) {
310
+ try {
311
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) };
312
+ }
313
+ catch (e) {
314
+ throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
315
+ }
316
+ },
317
+ msgUpdateGroupMetadata({ value }) {
318
+ try {
319
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(value) };
320
+ }
321
+ catch (e) {
322
+ throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message);
323
+ }
324
+ },
325
+ msgCreateGroupPolicy({ value }) {
326
+ try {
327
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) };
328
+ }
329
+ catch (e) {
330
+ throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
331
+ }
332
+ },
333
+ msgExec({ value }) {
334
+ try {
335
+ return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(value) };
336
+ }
337
+ catch (e) {
338
+ throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
339
+ }
340
+ },
341
+ msgCreateGroupWithPolicy({ value }) {
342
+ try {
343
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(value) };
344
+ }
345
+ catch (e) {
346
+ throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message);
347
+ }
348
+ },
349
+ msgLeaveGroup({ value }) {
350
+ try {
351
+ return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial(value) };
352
+ }
353
+ catch (e) {
354
+ throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message);
355
+ }
356
+ },
357
+ msgUpdateGroupPolicyMetadata({ value }) {
358
+ try {
359
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) };
360
+ }
361
+ catch (e) {
362
+ throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message);
363
+ }
364
+ },
365
+ };
366
+ };
367
+ export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
368
+ return new Api({ baseURL: addr });
369
+ };
370
+ class SDKModule {
371
+ constructor(client) {
372
+ this.registry = [];
373
+ this.query = queryClient({ addr: client.env.apiURL });
374
+ this.updateTX(client);
375
+ this.structure = {
376
+ EventCreateGroup: getStructure(typeEventCreateGroup.fromPartial({})),
377
+ EventUpdateGroup: getStructure(typeEventUpdateGroup.fromPartial({})),
378
+ EventCreateGroupPolicy: getStructure(typeEventCreateGroupPolicy.fromPartial({})),
379
+ EventUpdateGroupPolicy: getStructure(typeEventUpdateGroupPolicy.fromPartial({})),
380
+ EventSubmitProposal: getStructure(typeEventSubmitProposal.fromPartial({})),
381
+ EventWithdrawProposal: getStructure(typeEventWithdrawProposal.fromPartial({})),
382
+ EventVote: getStructure(typeEventVote.fromPartial({})),
383
+ EventExec: getStructure(typeEventExec.fromPartial({})),
384
+ EventLeaveGroup: getStructure(typeEventLeaveGroup.fromPartial({})),
385
+ EventProposalPruned: getStructure(typeEventProposalPruned.fromPartial({})),
386
+ Member: getStructure(typeMember.fromPartial({})),
387
+ MemberRequest: getStructure(typeMemberRequest.fromPartial({})),
388
+ ThresholdDecisionPolicy: getStructure(typeThresholdDecisionPolicy.fromPartial({})),
389
+ PercentageDecisionPolicy: getStructure(typePercentageDecisionPolicy.fromPartial({})),
390
+ DecisionPolicyWindows: getStructure(typeDecisionPolicyWindows.fromPartial({})),
391
+ GroupInfo: getStructure(typeGroupInfo.fromPartial({})),
392
+ GroupMember: getStructure(typeGroupMember.fromPartial({})),
393
+ GroupPolicyInfo: getStructure(typeGroupPolicyInfo.fromPartial({})),
394
+ Proposal: getStructure(typeProposal.fromPartial({})),
395
+ TallyResult: getStructure(typeTallyResult.fromPartial({})),
396
+ Vote: getStructure(typeVote.fromPartial({})),
397
+ };
398
+ client.on('signer-changed', (signer) => {
399
+ this.updateTX(client);
400
+ });
401
+ }
402
+ updateTX(client) {
403
+ const methods = txClient({
404
+ signer: client.signer,
405
+ addr: client.env.rpcURL,
406
+ prefix: client.env.prefix ?? "cosmos",
407
+ });
408
+ this.tx = methods;
409
+ for (let m in methods) {
410
+ this.tx[m] = methods[m].bind(this.tx);
411
+ }
412
+ }
413
+ }
414
+ ;
415
+ const Module = (test) => {
416
+ return {
417
+ module: {
418
+ CosmosGroupV1: new SDKModule(test)
419
+ },
420
+ registry: msgTypes
421
+ };
422
+ };
423
+ export default Module;
@@ -0,0 +1,31 @@
1
+ import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
2
+ import { MsgVote } from "./types/cosmos/group/v1/tx";
3
+ import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
4
+ import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
5
+ import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
6
+ import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
7
+ import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
8
+ import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
9
+ import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
10
+ import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
11
+ import { MsgExec } from "./types/cosmos/group/v1/tx";
12
+ import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
13
+ import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
14
+ import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
15
+ const msgTypes = [
16
+ ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
17
+ ["/cosmos.group.v1.MsgVote", MsgVote],
18
+ ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers],
19
+ ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
20
+ ["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
21
+ ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
22
+ ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
23
+ ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
24
+ ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
25
+ ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
26
+ ["/cosmos.group.v1.MsgExec", MsgExec],
27
+ ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
28
+ ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
29
+ ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
30
+ ];
31
+ export { msgTypes };