decentralcardgame-cardchain-client-ts 0.0.7 → 0.0.8

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