decentralcardgame-cardchain-client-ts 0.0.9 → 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 (326) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +322 -322
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
  7. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
  8. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
  9. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
  10. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
  11. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
  13. package/DecentralCardGame.cardchain.cardchain/types.js +22 -22
  14. package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
  15. package/client.js +7 -7
  16. package/client.ts +11 -10
  17. package/cosmos.auth.v1beta1/module.js +2 -0
  18. package/cosmos.auth.v1beta1/module.ts +2 -0
  19. package/cosmos.auth.v1beta1/rest.js +18 -3
  20. package/cosmos.auth.v1beta1/rest.ts +113 -3
  21. package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
  22. package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
  23. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  24. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  25. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  26. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
  27. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
  28. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
  29. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
  30. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  31. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  32. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
  33. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  34. package/cosmos.auth.v1beta1/types.js +2 -1
  35. package/cosmos.auth.v1beta1/types.ts +2 -0
  36. package/cosmos.authz.v1beta1/module.js +19 -19
  37. package/cosmos.authz.v1beta1/module.ts +29 -29
  38. package/cosmos.authz.v1beta1/registry.js +2 -2
  39. package/cosmos.authz.v1beta1/registry.ts +2 -2
  40. package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
  41. package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
  42. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  43. package/cosmos.bank.v1beta1/module.js +16 -16
  44. package/cosmos.bank.v1beta1/module.ts +24 -24
  45. package/cosmos.bank.v1beta1/registry.js +2 -2
  46. package/cosmos.bank.v1beta1/registry.ts +2 -2
  47. package/cosmos.bank.v1beta1/rest.js +37 -6
  48. package/cosmos.bank.v1beta1/rest.ts +99 -6
  49. package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
  50. package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
  51. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
  52. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
  53. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
  54. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
  55. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
  56. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
  57. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
  58. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
  59. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
  60. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
  61. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  62. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  63. package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
  64. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
  65. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
  66. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
  67. package/cosmos.consensus.v1/index.js +5 -0
  68. package/cosmos.consensus.v1/index.ts +6 -0
  69. package/cosmos.consensus.v1/module.js +81 -0
  70. package/cosmos.consensus.v1/module.ts +129 -0
  71. package/cosmos.consensus.v1/registry.js +5 -0
  72. package/cosmos.consensus.v1/registry.ts +9 -0
  73. package/cosmos.consensus.v1/rest.js +100 -0
  74. package/cosmos.consensus.v1/rest.ts +268 -0
  75. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
  76. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
  77. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
  78. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
  79. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
  80. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
  81. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
  82. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
  83. package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
  84. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
  85. package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
  86. package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
  87. package/cosmos.consensus.v1/types/google/api/http.js +260 -0
  88. package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
  89. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
  90. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
  91. package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
  92. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
  93. package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
  94. package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
  95. package/cosmos.consensus.v1/types.js +1 -0
  96. package/cosmos.consensus.v1/types.ts +5 -0
  97. package/cosmos.crisis.v1beta1/module.js +24 -1
  98. package/cosmos.crisis.v1beta1/module.ts +34 -1
  99. package/cosmos.crisis.v1beta1/registry.js +2 -0
  100. package/cosmos.crisis.v1beta1/registry.ts +2 -0
  101. package/cosmos.crisis.v1beta1/rest.ts +19 -0
  102. package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
  103. package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
  104. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
  105. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
  106. package/cosmos.distribution.v1beta1/module.js +63 -17
  107. package/cosmos.distribution.v1beta1/module.ts +91 -25
  108. package/cosmos.distribution.v1beta1/registry.js +8 -4
  109. package/cosmos.distribution.v1beta1/registry.ts +8 -4
  110. package/cosmos.distribution.v1beta1/rest.js +14 -0
  111. package/cosmos.distribution.v1beta1/rest.ts +66 -7
  112. package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
  113. package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
  114. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
  115. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  116. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
  117. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
  118. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
  119. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
  120. package/cosmos.evidence.v1beta1/rest.js +4 -3
  121. package/cosmos.evidence.v1beta1/rest.ts +4 -3
  122. package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
  123. package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
  124. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
  125. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
  126. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
  127. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
  128. package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
  129. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
  130. package/cosmos.gov.v1/module.js +44 -19
  131. package/cosmos.gov.v1/module.ts +62 -27
  132. package/cosmos.gov.v1/registry.js +4 -2
  133. package/cosmos.gov.v1/registry.ts +4 -2
  134. package/cosmos.gov.v1/rest.ts +155 -41
  135. package/cosmos.gov.v1/types/amino/amino.js +2 -0
  136. package/cosmos.gov.v1/types/amino/amino.ts +2 -0
  137. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
  138. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
  139. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
  140. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
  141. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
  142. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
  143. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
  144. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
  145. package/cosmos.gov.v1/types.js +2 -1
  146. package/cosmos.gov.v1/types.ts +2 -0
  147. package/cosmos.gov.v1beta1/module.js +24 -24
  148. package/cosmos.gov.v1beta1/module.ts +36 -36
  149. package/cosmos.gov.v1beta1/registry.js +4 -4
  150. package/cosmos.gov.v1beta1/registry.ts +4 -4
  151. package/cosmos.gov.v1beta1/rest.ts +65 -96
  152. package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
  153. package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
  154. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  155. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
  156. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
  157. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
  158. package/cosmos.group.v1/module.js +98 -96
  159. package/cosmos.group.v1/module.ts +149 -147
  160. package/cosmos.group.v1/registry.js +16 -16
  161. package/cosmos.group.v1/registry.ts +16 -16
  162. package/cosmos.group.v1/rest.js +3 -3
  163. package/cosmos.group.v1/rest.ts +29 -9
  164. package/cosmos.group.v1/types/amino/amino.js +2 -0
  165. package/cosmos.group.v1/types/amino/amino.ts +2 -0
  166. package/cosmos.group.v1/types/cosmos/group/v1/events.js +65 -1
  167. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
  168. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  169. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
  170. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
  171. package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
  172. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
  173. package/cosmos.group.v1/types.js +2 -1
  174. package/cosmos.group.v1/types.ts +2 -0
  175. package/cosmos.mint.v1beta1/rest.ts +9 -1
  176. package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
  177. package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
  178. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  179. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  180. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
  181. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
  182. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  183. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  184. package/cosmos.nft.v1beta1/rest.ts +18 -22
  185. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
  186. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
  187. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
  188. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  189. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  190. package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
  191. package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
  192. package/cosmos.slashing.v1beta1/rest.ts +8 -0
  193. package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
  194. package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
  195. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  196. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
  197. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
  198. package/cosmos.staking.v1beta1/module.js +34 -32
  199. package/cosmos.staking.v1beta1/module.ts +50 -48
  200. package/cosmos.staking.v1beta1/registry.js +6 -6
  201. package/cosmos.staking.v1beta1/registry.ts +6 -6
  202. package/cosmos.staking.v1beta1/rest.js +7 -7
  203. package/cosmos.staking.v1beta1/rest.ts +49 -8
  204. package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
  205. package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
  206. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
  207. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  208. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  209. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
  210. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
  211. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
  212. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
  213. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
  214. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
  215. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
  216. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
  217. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
  218. package/cosmos.staking.v1beta1/types.js +2 -1
  219. package/cosmos.staking.v1beta1/types.ts +2 -0
  220. package/cosmos.tx.v1beta1/rest.js +66 -2
  221. package/cosmos.tx.v1beta1/rest.ts +177 -16
  222. package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
  223. package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
  224. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
  225. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
  226. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
  227. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
  228. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
  229. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
  230. package/cosmos.upgrade.v1beta1/rest.ts +0 -1
  231. package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
  232. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
  233. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  234. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  235. package/cosmos.vesting.v1beta1/module.js +19 -19
  236. package/cosmos.vesting.v1beta1/module.ts +29 -29
  237. package/cosmos.vesting.v1beta1/registry.js +2 -2
  238. package/cosmos.vesting.v1beta1/registry.ts +2 -2
  239. package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
  240. package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
  241. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  242. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  243. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
  244. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
  245. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
  246. package/ibc.applications.transfer.v1/module.js +5 -27
  247. package/ibc.applications.transfer.v1/module.ts +5 -34
  248. package/ibc.applications.transfer.v1/registry.js +1 -4
  249. package/ibc.applications.transfer.v1/registry.ts +0 -2
  250. package/ibc.applications.transfer.v1/rest.js +15 -1
  251. package/ibc.applications.transfer.v1/rest.ts +30 -1
  252. package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
  253. package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
  254. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  255. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
  256. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
  257. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
  258. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
  259. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
  260. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
  261. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
  262. package/ibc.applications.transfer.v1/types.js +3 -1
  263. package/ibc.applications.transfer.v1/types.ts +4 -0
  264. package/ibc.core.channel.v1/rest.ts +1 -0
  265. package/ibc.core.channel.v1/types/amino/amino.js +2 -0
  266. package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
  267. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  268. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
  269. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
  270. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
  271. package/ibc.core.client.v1/rest.ts +5 -1
  272. package/ibc.core.client.v1/types/amino/amino.js +2 -0
  273. package/ibc.core.client.v1/types/amino/amino.ts +2 -0
  274. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  275. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
  276. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
  277. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
  278. package/ibc.core.connection.v1/types/amino/amino.js +2 -0
  279. package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
  280. package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
  281. package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
  282. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  283. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
  284. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  285. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  286. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
  287. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
  288. package/index.js +3 -1
  289. package/index.ts +3 -1
  290. package/package.json +1 -4
  291. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
  292. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
  293. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
  294. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
  295. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
  296. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
  297. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
  298. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
  299. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
  300. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
  301. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
  302. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
  303. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +0 -0
  304. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +0 -0
  305. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
  306. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
  307. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
  308. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
  309. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +0 -0
  310. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
  311. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
  312. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +0 -0
  313. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
  314. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
  315. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
  316. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
  317. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
  318. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
  319. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
  320. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
  321. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
  322. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
  323. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
  324. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
  325. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
  326. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
@@ -150,7 +150,9 @@ export function proposalStatusToJSON(object: ProposalStatus): string {
150
150
  * Since: cosmos-sdk 0.43
151
151
  */
152
152
  export interface WeightedVoteOption {
153
+ /** option defines the valid vote options, it must not contain duplicate vote options. */
153
154
  option: VoteOption;
155
+ /** weight is the vote weight associated with the vote option. */
154
156
  weight: string;
155
157
  }
156
158
 
@@ -159,7 +161,9 @@ export interface WeightedVoteOption {
159
161
  * manually updated in case of approval.
160
162
  */
161
163
  export interface TextProposal {
164
+ /** title of the proposal. */
162
165
  title: string;
166
+ /** description associated with the proposal. */
163
167
  description: string;
164
168
  }
165
169
 
@@ -168,34 +172,59 @@ export interface TextProposal {
168
172
  * proposal.
169
173
  */
170
174
  export interface Deposit {
175
+ /** proposal_id defines the unique id of the proposal. */
171
176
  proposalId: number;
177
+ /** depositor defines the deposit addresses from the proposals. */
172
178
  depositor: string;
179
+ /** amount to be deposited by depositor. */
173
180
  amount: Coin[];
174
181
  }
175
182
 
176
183
  /** Proposal defines the core field members of a governance proposal. */
177
184
  export interface Proposal {
185
+ /** proposal_id defines the unique id of the proposal. */
178
186
  proposalId: number;
179
- content: Any | undefined;
187
+ /** content is the proposal's content. */
188
+ content:
189
+ | Any
190
+ | undefined;
191
+ /** status defines the proposal status. */
180
192
  status: ProposalStatus;
181
193
  /**
182
194
  * final_tally_result is the final tally result of the proposal. When
183
195
  * querying a proposal via gRPC, this field is not populated until the
184
196
  * proposal's voting period has ended.
185
197
  */
186
- finalTallyResult: TallyResult | undefined;
187
- submitTime: Date | undefined;
188
- depositEndTime: Date | undefined;
198
+ finalTallyResult:
199
+ | TallyResult
200
+ | undefined;
201
+ /** submit_time is the time of proposal submission. */
202
+ submitTime:
203
+ | Date
204
+ | undefined;
205
+ /** deposit_end_time is the end time for deposition. */
206
+ depositEndTime:
207
+ | Date
208
+ | undefined;
209
+ /** total_deposit is the total deposit on the proposal. */
189
210
  totalDeposit: Coin[];
190
- votingStartTime: Date | undefined;
211
+ /** voting_start_time is the starting time to vote on a proposal. */
212
+ votingStartTime:
213
+ | Date
214
+ | undefined;
215
+ /** voting_end_time is the end time of voting on a proposal. */
191
216
  votingEndTime: Date | undefined;
192
217
  }
193
218
 
194
219
  /** TallyResult defines a standard tally for a governance proposal. */
195
220
  export interface TallyResult {
221
+ /** yes is the number of yes votes on a proposal. */
196
222
  yes: string;
223
+ /** abstain is the number of abstain votes on a proposal. */
197
224
  abstain: string;
225
+ /** no is the number of no votes on a proposal. */
198
226
  no: string;
227
+ /** no_with_veto is the number of no with veto votes on a proposal. */
199
228
  noWithVeto: string;
200
229
  }
201
230
 
@@ -204,7 +233,9 @@ export interface TallyResult {
204
233
  * A Vote consists of a proposal ID, the voter, and the vote option.
205
234
  */
206
235
  export interface Vote {
236
+ /** proposal_id defines the unique id of the proposal. */
207
237
  proposalId: number;
238
+ /** voter is the voter address of the proposal. */
208
239
  voter: string;
209
240
  /**
210
241
  * Deprecated: Prefer to use `options` instead. This field is set in queries
@@ -214,7 +245,11 @@ export interface Vote {
214
245
  * @deprecated
215
246
  */
216
247
  option: VoteOption;
217
- /** Since: cosmos-sdk 0.43 */
248
+ /**
249
+ * options is the weighted vote options.
250
+ *
251
+ * Since: cosmos-sdk 0.43
252
+ */
218
253
  options: WeightedVoteOption[];
219
254
  }
220
255
 
@@ -224,14 +259,14 @@ export interface DepositParams {
224
259
  minDeposit: Coin[];
225
260
  /**
226
261
  * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
227
- * months.
262
+ * months.
228
263
  */
229
264
  maxDepositPeriod: Duration | undefined;
230
265
  }
231
266
 
232
267
  /** VotingParams defines the params for voting on governance proposals. */
233
268
  export interface VotingParams {
234
- /** Length of the voting period. */
269
+ /** Duration of the voting period. */
235
270
  votingPeriod: Duration | undefined;
236
271
  }
237
272
 
@@ -239,14 +274,14 @@ export interface VotingParams {
239
274
  export interface TallyParams {
240
275
  /**
241
276
  * Minimum percentage of total stake needed to vote for a result to be
242
- * considered valid.
277
+ * considered valid.
243
278
  */
244
279
  quorum: Uint8Array;
245
280
  /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
246
281
  threshold: Uint8Array;
247
282
  /**
248
283
  * Minimum value of Veto votes to Total votes ratio for proposal to be
249
- * vetoed. Default value: 1/3.
284
+ * vetoed. Default value: 1/3.
250
285
  */
251
286
  vetoThreshold: Uint8Array;
252
287
  }
@@ -45,6 +45,7 @@ export interface QueryProposalsRequest {
45
45
  * method.
46
46
  */
47
47
  export interface QueryProposalsResponse {
48
+ /** proposals defines all the requested governance proposals. */
48
49
  proposals: Proposal[];
49
50
  /** pagination defines the pagination in the response. */
50
51
  pagination: PageResponse | undefined;
@@ -60,7 +61,7 @@ export interface QueryVoteRequest {
60
61
 
61
62
  /** QueryVoteResponse is the response type for the Query/Vote RPC method. */
62
63
  export interface QueryVoteResponse {
63
- /** vote defined the queried vote. */
64
+ /** vote defines the queried vote. */
64
65
  vote: Vote | undefined;
65
66
  }
66
67
 
@@ -74,7 +75,7 @@ export interface QueryVotesRequest {
74
75
 
75
76
  /** QueryVotesResponse is the response type for the Query/Votes RPC method. */
76
77
  export interface QueryVotesResponse {
77
- /** votes defined the queried votes. */
78
+ /** votes defines the queried votes. */
78
79
  votes: Vote[];
79
80
  /** pagination defines the pagination in the response. */
80
81
  pagination: PageResponse | undefined;
@@ -127,6 +128,7 @@ export interface QueryDepositsRequest {
127
128
 
128
129
  /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
129
130
  export interface QueryDepositsResponse {
131
+ /** deposits defines the requested deposits. */
130
132
  deposits: Deposit[];
131
133
  /** pagination defines the pagination in the response. */
132
134
  pagination: PageResponse | undefined;
@@ -12,20 +12,29 @@ export const protobufPackage = "cosmos.gov.v1beta1";
12
12
  * proposal Content.
13
13
  */
14
14
  export interface MsgSubmitProposal {
15
- content: Any | undefined;
15
+ /** content is the proposal's content. */
16
+ content:
17
+ | Any
18
+ | undefined;
19
+ /** initial_deposit is the deposit value that must be paid at proposal submission. */
16
20
  initialDeposit: Coin[];
21
+ /** proposer is the account address of the proposer. */
17
22
  proposer: string;
18
23
  }
19
24
 
20
25
  /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
21
26
  export interface MsgSubmitProposalResponse {
27
+ /** proposal_id defines the unique id of the proposal. */
22
28
  proposalId: number;
23
29
  }
24
30
 
25
31
  /** MsgVote defines a message to cast a vote. */
26
32
  export interface MsgVote {
33
+ /** proposal_id defines the unique id of the proposal. */
27
34
  proposalId: number;
35
+ /** voter is the voter address for the proposal. */
28
36
  voter: string;
37
+ /** option defines the vote option. */
29
38
  option: VoteOption;
30
39
  }
31
40
 
@@ -39,8 +48,11 @@ export interface MsgVoteResponse {
39
48
  * Since: cosmos-sdk 0.43
40
49
  */
41
50
  export interface MsgVoteWeighted {
51
+ /** proposal_id defines the unique id of the proposal. */
42
52
  proposalId: number;
53
+ /** voter is the voter address for the proposal. */
43
54
  voter: string;
55
+ /** options defines the weighted vote options. */
44
56
  options: WeightedVoteOption[];
45
57
  }
46
58
 
@@ -54,8 +66,11 @@ export interface MsgVoteWeightedResponse {
54
66
 
55
67
  /** MsgDeposit defines a message to submit a deposit to an existing proposal. */
56
68
  export interface MsgDeposit {
69
+ /** proposal_id defines the unique id of the proposal. */
57
70
  proposalId: number;
71
+ /** depositor defines the deposit addresses from the proposals. */
58
72
  depositor: string;
73
+ /** amount to be deposited by depositor. */
59
74
  amount: Coin[];
60
75
  }
61
76
 
@@ -3,20 +3,20 @@ import { SigningStargateClient } from "@cosmjs/stargate";
3
3
  import { Registry } from "@cosmjs/proto-signing";
4
4
  import { msgTypes } from './registry';
5
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
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";
12
9
  import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
13
- import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
14
10
  import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
15
- import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
16
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";
17
16
  import { MsgExec } from "./types/cosmos/group/v1/tx";
18
- import { MsgVote } from "./types/cosmos/group/v1/tx";
17
+ import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
19
18
  import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
19
+ import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
20
20
  import { EventCreateGroup as typeEventCreateGroup } from "./types";
21
21
  import { EventUpdateGroup as typeEventUpdateGroup } from "./types";
22
22
  import { EventCreateGroupPolicy as typeEventCreateGroupPolicy } from "./types";
@@ -26,6 +26,7 @@ import { EventWithdrawProposal as typeEventWithdrawProposal } from "./types";
26
26
  import { EventVote as typeEventVote } from "./types";
27
27
  import { EventExec as typeEventExec } from "./types";
28
28
  import { EventLeaveGroup as typeEventLeaveGroup } from "./types";
29
+ import { EventProposalPruned as typeEventProposalPruned } from "./types";
29
30
  import { Member as typeMember } from "./types";
30
31
  import { MemberRequest as typeMemberRequest } from "./types";
31
32
  import { ThresholdDecisionPolicy as typeThresholdDecisionPolicy } from "./types";
@@ -37,7 +38,7 @@ import { GroupPolicyInfo as typeGroupPolicyInfo } from "./types";
37
38
  import { Proposal as typeProposal } from "./types";
38
39
  import { TallyResult as typeTallyResult } from "./types";
39
40
  import { Vote as typeVote } from "./types";
40
- export { MsgUpdateGroupMembers, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgCreateGroupPolicy, MsgSubmitProposal, MsgWithdrawProposal, MsgCreateGroupWithPolicy, MsgCreateGroup, MsgUpdateGroupMetadata, MsgUpdateGroupAdmin, MsgExec, MsgVote, MsgLeaveGroup };
41
+ export { MsgSubmitProposal, MsgVote, MsgUpdateGroupMembers, MsgWithdrawProposal, MsgCreateGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgExec, MsgCreateGroupWithPolicy, MsgLeaveGroup, MsgUpdateGroupPolicyMetadata };
41
42
  export const registry = new Registry(msgTypes);
42
43
  function getStructure(template) {
43
44
  const structure = { fields: [] };
@@ -53,130 +54,116 @@ const defaultFee = {
53
54
  };
54
55
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
55
56
  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 }) {
57
+ async sendMsgSubmitProposal({ value, fee, memo }) {
71
58
  if (!signer) {
72
- throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.');
59
+ throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
73
60
  }
74
61
  try {
75
62
  const { address } = (await signer.getAccounts())[0];
76
63
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
77
- let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) });
64
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
78
65
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
79
66
  }
80
67
  catch (e) {
81
- throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message);
68
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
82
69
  }
83
70
  },
84
- async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
71
+ async sendMsgVote({ value, fee, memo }) {
85
72
  if (!signer) {
86
- throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
73
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
87
74
  }
88
75
  try {
89
76
  const { address } = (await signer.getAccounts())[0];
90
77
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
91
- let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
78
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
92
79
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
93
80
  }
94
81
  catch (e) {
95
- throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
82
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
96
83
  }
97
84
  },
98
- async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
85
+ async sendMsgUpdateGroupMembers({ value, fee, memo }) {
99
86
  if (!signer) {
100
- throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
87
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
101
88
  }
102
89
  try {
103
90
  const { address } = (await signer.getAccounts())[0];
104
91
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
105
- let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
92
+ let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
106
93
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
107
94
  }
108
95
  catch (e) {
109
- throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
96
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
110
97
  }
111
98
  },
112
- async sendMsgCreateGroupPolicy({ value, fee, memo }) {
99
+ async sendMsgWithdrawProposal({ value, fee, memo }) {
113
100
  if (!signer) {
114
- throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.');
101
+ throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
115
102
  }
116
103
  try {
117
104
  const { address } = (await signer.getAccounts())[0];
118
105
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
119
- let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
106
+ let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
120
107
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
121
108
  }
122
109
  catch (e) {
123
- throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
110
+ throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
124
111
  }
125
112
  },
126
- async sendMsgSubmitProposal({ value, fee, memo }) {
113
+ async sendMsgCreateGroup({ value, fee, memo }) {
127
114
  if (!signer) {
128
- throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
115
+ throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
129
116
  }
130
117
  try {
131
118
  const { address } = (await signer.getAccounts())[0];
132
119
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
133
- let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
120
+ let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
134
121
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
135
122
  }
136
123
  catch (e) {
137
- throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
124
+ throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
138
125
  }
139
126
  },
140
- async sendMsgWithdrawProposal({ value, fee, memo }) {
127
+ async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
141
128
  if (!signer) {
142
- throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
129
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
143
130
  }
144
131
  try {
145
132
  const { address } = (await signer.getAccounts())[0];
146
133
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
147
- let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
134
+ let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
148
135
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
149
136
  }
150
137
  catch (e) {
151
- throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
138
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
152
139
  }
153
140
  },
154
- async sendMsgCreateGroupWithPolicy({ value, fee, memo }) {
141
+ async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) {
155
142
  if (!signer) {
156
- throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.');
143
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.');
157
144
  }
158
145
  try {
159
146
  const { address } = (await signer.getAccounts())[0];
160
147
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
161
- let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) });
148
+ let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) });
162
149
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
163
150
  }
164
151
  catch (e) {
165
- throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message);
152
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message);
166
153
  }
167
154
  },
168
- async sendMsgCreateGroup({ value, fee, memo }) {
155
+ async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
169
156
  if (!signer) {
170
- throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
157
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
171
158
  }
172
159
  try {
173
160
  const { address } = (await signer.getAccounts())[0];
174
161
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
175
- let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
162
+ let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
176
163
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
177
164
  }
178
165
  catch (e) {
179
- throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
166
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
180
167
  }
181
168
  },
182
169
  async sendMsgUpdateGroupMetadata({ value, fee, memo }) {
@@ -193,18 +180,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
193
180
  throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message);
194
181
  }
195
182
  },
196
- async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
183
+ async sendMsgCreateGroupPolicy({ value, fee, memo }) {
197
184
  if (!signer) {
198
- throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
185
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.');
199
186
  }
200
187
  try {
201
188
  const { address } = (await signer.getAccounts())[0];
202
189
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
203
- let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
190
+ let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
204
191
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
205
192
  }
206
193
  catch (e) {
207
- throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
194
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
208
195
  }
209
196
  },
210
197
  async sendMsgExec({ value, fee, memo }) {
@@ -221,18 +208,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
221
208
  throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
222
209
  }
223
210
  },
224
- async sendMsgVote({ value, fee, memo }) {
211
+ async sendMsgCreateGroupWithPolicy({ value, fee, memo }) {
225
212
  if (!signer) {
226
- throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
213
+ throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.');
227
214
  }
228
215
  try {
229
216
  const { address } = (await signer.getAccounts())[0];
230
217
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
231
- let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
218
+ let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) });
232
219
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
233
220
  }
234
221
  catch (e) {
235
- throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
222
+ throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message);
236
223
  }
237
224
  },
238
225
  async sendMsgLeaveGroup({ value, fee, memo }) {
@@ -249,76 +236,82 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
249
236
  throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message);
250
237
  }
251
238
  },
252
- msgUpdateGroupMembers({ value }) {
239
+ async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
240
+ if (!signer) {
241
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
242
+ }
253
243
  try {
254
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
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);
255
248
  }
256
249
  catch (e) {
257
- throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
250
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
258
251
  }
259
252
  },
260
- msgUpdateGroupPolicyAdmin({ value }) {
253
+ msgSubmitProposal({ value }) {
261
254
  try {
262
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(value) };
255
+ return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
263
256
  }
264
257
  catch (e) {
265
- throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message);
258
+ throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
266
259
  }
267
260
  },
268
- msgUpdateGroupPolicyDecisionPolicy({ value }) {
261
+ msgVote({ value }) {
269
262
  try {
270
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) };
263
+ return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(value) };
271
264
  }
272
265
  catch (e) {
273
- throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
266
+ throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
274
267
  }
275
268
  },
276
- msgUpdateGroupPolicyMetadata({ value }) {
269
+ msgUpdateGroupMembers({ value }) {
277
270
  try {
278
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) };
271
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
279
272
  }
280
273
  catch (e) {
281
- throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message);
274
+ throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
282
275
  }
283
276
  },
284
- msgCreateGroupPolicy({ value }) {
277
+ msgWithdrawProposal({ value }) {
285
278
  try {
286
- return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) };
279
+ return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
287
280
  }
288
281
  catch (e) {
289
- throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
282
+ throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
290
283
  }
291
284
  },
292
- msgSubmitProposal({ value }) {
285
+ msgCreateGroup({ value }) {
293
286
  try {
294
- return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
287
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
295
288
  }
296
289
  catch (e) {
297
- throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
290
+ throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
298
291
  }
299
292
  },
300
- msgWithdrawProposal({ value }) {
293
+ msgUpdateGroupAdmin({ value }) {
301
294
  try {
302
- return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
295
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) };
303
296
  }
304
297
  catch (e) {
305
- throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
298
+ throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
306
299
  }
307
300
  },
308
- msgCreateGroupWithPolicy({ value }) {
301
+ msgUpdateGroupPolicyAdmin({ value }) {
309
302
  try {
310
- return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(value) };
303
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(value) };
311
304
  }
312
305
  catch (e) {
313
- throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message);
306
+ throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message);
314
307
  }
315
308
  },
316
- msgCreateGroup({ value }) {
309
+ msgUpdateGroupPolicyDecisionPolicy({ value }) {
317
310
  try {
318
- return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
311
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) };
319
312
  }
320
313
  catch (e) {
321
- throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
314
+ throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
322
315
  }
323
316
  },
324
317
  msgUpdateGroupMetadata({ value }) {
@@ -329,12 +322,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
329
322
  throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message);
330
323
  }
331
324
  },
332
- msgUpdateGroupAdmin({ value }) {
325
+ msgCreateGroupPolicy({ value }) {
333
326
  try {
334
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) };
327
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) };
335
328
  }
336
329
  catch (e) {
337
- throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
330
+ throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
338
331
  }
339
332
  },
340
333
  msgExec({ value }) {
@@ -345,12 +338,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
345
338
  throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
346
339
  }
347
340
  },
348
- msgVote({ value }) {
341
+ msgCreateGroupWithPolicy({ value }) {
349
342
  try {
350
- return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(value) };
343
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(value) };
351
344
  }
352
345
  catch (e) {
353
- throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
346
+ throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message);
354
347
  }
355
348
  },
356
349
  msgLeaveGroup({ value }) {
@@ -361,6 +354,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
361
354
  throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message);
362
355
  }
363
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
+ },
364
365
  };
365
366
  };
366
367
  export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
@@ -381,6 +382,7 @@ class SDKModule {
381
382
  EventVote: getStructure(typeEventVote.fromPartial({})),
382
383
  EventExec: getStructure(typeEventExec.fromPartial({})),
383
384
  EventLeaveGroup: getStructure(typeEventLeaveGroup.fromPartial({})),
385
+ EventProposalPruned: getStructure(typeEventProposalPruned.fromPartial({})),
384
386
  Member: getStructure(typeMember.fromPartial({})),
385
387
  MemberRequest: getStructure(typeMemberRequest.fromPartial({})),
386
388
  ThresholdDecisionPolicy: getStructure(typeThresholdDecisionPolicy.fromPartial({})),