decentralcardgame-cardchain-client-ts 0.0.12 → 0.0.14

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 (329) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +357 -334
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +532 -499
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +77 -75
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +77 -75
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +31 -23
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +89 -62
  7. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +89 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +95 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +11 -11
  10. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +12 -12
  11. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +1 -1
  12. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +1 -1
  13. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +58 -29
  14. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +65 -33
  15. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +72 -66
  16. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +99 -92
  17. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.js → DecentralCardGame/cardchain/cardchain/set.js} +8 -8
  18. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.ts → DecentralCardGame/cardchain/cardchain/set.ts} +20 -20
  19. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.js → DecentralCardGame/cardchain/cardchain/set_proposal.js} +11 -11
  20. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.ts → DecentralCardGame/cardchain/cardchain/set_proposal.ts} +18 -18
  21. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +362 -261
  22. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +568 -466
  23. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +34 -8
  24. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +36 -9
  25. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
  26. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
  27. package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
  28. package/DecentralCardGame.cardchain.cardchain/types.ts +24 -24
  29. package/client.js +7 -8
  30. package/client.ts +11 -11
  31. package/cosmos.auth.v1beta1/module.js +2 -0
  32. package/cosmos.auth.v1beta1/module.ts +3 -1
  33. package/cosmos.auth.v1beta1/rest.js +18 -3
  34. package/cosmos.auth.v1beta1/rest.ts +113 -3
  35. package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
  36. package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
  37. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  38. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  39. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  40. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
  41. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
  42. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
  43. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
  44. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  45. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  46. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
  47. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  48. package/cosmos.auth.v1beta1/types.js +2 -1
  49. package/cosmos.auth.v1beta1/types.ts +2 -0
  50. package/cosmos.authz.v1beta1/module.js +19 -19
  51. package/cosmos.authz.v1beta1/module.ts +30 -30
  52. package/cosmos.authz.v1beta1/registry.js +2 -2
  53. package/cosmos.authz.v1beta1/registry.ts +2 -2
  54. package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
  55. package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
  56. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  57. package/cosmos.bank.v1beta1/module.js +16 -16
  58. package/cosmos.bank.v1beta1/module.ts +25 -25
  59. package/cosmos.bank.v1beta1/registry.js +2 -2
  60. package/cosmos.bank.v1beta1/registry.ts +2 -2
  61. package/cosmos.bank.v1beta1/rest.js +37 -6
  62. package/cosmos.bank.v1beta1/rest.ts +99 -6
  63. package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
  64. package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
  65. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
  66. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
  67. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
  68. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
  69. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
  70. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
  71. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
  72. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
  73. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
  74. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
  75. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  76. package/cosmos.base.tendermint.v1beta1/module.ts +1 -1
  77. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  78. package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
  79. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
  80. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
  81. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
  82. package/cosmos.consensus.v1/index.js +5 -0
  83. package/cosmos.consensus.v1/index.ts +6 -0
  84. package/cosmos.consensus.v1/module.js +81 -0
  85. package/cosmos.consensus.v1/module.ts +129 -0
  86. package/cosmos.consensus.v1/registry.js +5 -0
  87. package/cosmos.consensus.v1/registry.ts +9 -0
  88. package/cosmos.consensus.v1/rest.js +100 -0
  89. package/cosmos.consensus.v1/rest.ts +268 -0
  90. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
  91. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
  92. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
  93. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
  94. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
  95. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
  96. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
  97. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
  98. package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
  99. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
  100. package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
  101. package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
  102. package/cosmos.consensus.v1/types/google/api/http.js +260 -0
  103. package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
  104. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
  105. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
  106. package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
  107. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
  108. package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
  109. package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
  110. package/cosmos.consensus.v1/types.js +1 -0
  111. package/cosmos.consensus.v1/types.ts +5 -0
  112. package/cosmos.crisis.v1beta1/module.js +24 -1
  113. package/cosmos.crisis.v1beta1/module.ts +35 -2
  114. package/cosmos.crisis.v1beta1/registry.js +2 -0
  115. package/cosmos.crisis.v1beta1/registry.ts +2 -0
  116. package/cosmos.crisis.v1beta1/rest.ts +19 -0
  117. package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
  118. package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
  119. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
  120. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
  121. package/cosmos.distribution.v1beta1/module.js +67 -21
  122. package/cosmos.distribution.v1beta1/module.ts +101 -35
  123. package/cosmos.distribution.v1beta1/registry.js +8 -4
  124. package/cosmos.distribution.v1beta1/registry.ts +8 -4
  125. package/cosmos.distribution.v1beta1/rest.js +14 -0
  126. package/cosmos.distribution.v1beta1/rest.ts +66 -7
  127. package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
  128. package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
  129. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
  130. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  131. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
  132. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
  133. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
  134. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
  135. package/cosmos.evidence.v1beta1/module.ts +1 -1
  136. package/cosmos.evidence.v1beta1/rest.js +4 -3
  137. package/cosmos.evidence.v1beta1/rest.ts +4 -3
  138. package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
  139. package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
  140. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
  141. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
  142. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
  143. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
  144. package/cosmos.feegrant.v1beta1/module.ts +1 -1
  145. package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
  146. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
  147. package/cosmos.gov.v1/module.js +46 -21
  148. package/cosmos.gov.v1/module.ts +69 -34
  149. package/cosmos.gov.v1/registry.js +6 -4
  150. package/cosmos.gov.v1/registry.ts +6 -4
  151. package/cosmos.gov.v1/rest.ts +155 -41
  152. package/cosmos.gov.v1/types/amino/amino.js +2 -0
  153. package/cosmos.gov.v1/types/amino/amino.ts +2 -0
  154. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
  155. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
  156. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
  157. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
  158. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
  159. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
  160. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
  161. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
  162. package/cosmos.gov.v1/types.js +2 -1
  163. package/cosmos.gov.v1/types.ts +2 -0
  164. package/cosmos.gov.v1beta1/module.js +24 -24
  165. package/cosmos.gov.v1beta1/module.ts +37 -37
  166. package/cosmos.gov.v1beta1/registry.js +4 -4
  167. package/cosmos.gov.v1beta1/registry.ts +4 -4
  168. package/cosmos.gov.v1beta1/rest.ts +65 -96
  169. package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
  170. package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
  171. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  172. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
  173. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
  174. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
  175. package/cosmos.group.v1/module.js +92 -92
  176. package/cosmos.group.v1/module.ts +139 -139
  177. package/cosmos.group.v1/registry.js +16 -16
  178. package/cosmos.group.v1/registry.ts +16 -16
  179. package/cosmos.group.v1/rest.js +3 -3
  180. package/cosmos.group.v1/rest.ts +29 -9
  181. package/cosmos.group.v1/types/amino/amino.js +2 -0
  182. package/cosmos.group.v1/types/amino/amino.ts +2 -0
  183. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  184. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
  185. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
  186. package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
  187. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
  188. package/cosmos.mint.v1beta1/module.ts +1 -1
  189. package/cosmos.mint.v1beta1/rest.ts +9 -1
  190. package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
  191. package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
  192. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  193. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  194. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
  195. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
  196. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  197. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  198. package/cosmos.nft.v1beta1/module.ts +1 -1
  199. package/cosmos.nft.v1beta1/rest.ts +18 -22
  200. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
  201. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
  202. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
  203. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  204. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  205. package/cosmos.params.v1beta1/module.ts +1 -1
  206. package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
  207. package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
  208. package/cosmos.slashing.v1beta1/module.ts +1 -1
  209. package/cosmos.slashing.v1beta1/rest.ts +8 -0
  210. package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
  211. package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
  212. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  213. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
  214. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
  215. package/cosmos.staking.v1beta1/module.js +41 -39
  216. package/cosmos.staking.v1beta1/module.ts +62 -60
  217. package/cosmos.staking.v1beta1/registry.js +6 -6
  218. package/cosmos.staking.v1beta1/registry.ts +6 -6
  219. package/cosmos.staking.v1beta1/rest.js +7 -7
  220. package/cosmos.staking.v1beta1/rest.ts +49 -8
  221. package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
  222. package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
  223. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
  224. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  225. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  226. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
  227. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
  228. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
  229. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
  230. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
  231. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
  232. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
  233. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
  234. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
  235. package/cosmos.staking.v1beta1/types.js +2 -1
  236. package/cosmos.staking.v1beta1/types.ts +2 -0
  237. package/cosmos.tx.v1beta1/module.ts +1 -1
  238. package/cosmos.tx.v1beta1/rest.js +66 -2
  239. package/cosmos.tx.v1beta1/rest.ts +177 -16
  240. package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
  241. package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
  242. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
  243. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
  244. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
  245. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
  246. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
  247. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
  248. package/cosmos.upgrade.v1beta1/module.ts +1 -1
  249. package/cosmos.upgrade.v1beta1/rest.ts +0 -1
  250. package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
  251. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
  252. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  253. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  254. package/cosmos.vesting.v1beta1/module.ts +1 -1
  255. package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
  256. package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
  257. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  258. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  259. package/ibc.applications.interchain_accounts.controller.v1/module.ts +1 -1
  260. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
  261. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
  262. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
  263. package/ibc.applications.interchain_accounts.host.v1/module.ts +1 -1
  264. package/ibc.applications.transfer.v1/module.js +5 -27
  265. package/ibc.applications.transfer.v1/module.ts +6 -35
  266. package/ibc.applications.transfer.v1/registry.js +1 -4
  267. package/ibc.applications.transfer.v1/registry.ts +0 -2
  268. package/ibc.applications.transfer.v1/rest.js +15 -1
  269. package/ibc.applications.transfer.v1/rest.ts +30 -1
  270. package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
  271. package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
  272. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  273. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
  274. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
  275. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
  276. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
  277. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
  278. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
  279. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
  280. package/ibc.applications.transfer.v1/types.js +3 -1
  281. package/ibc.applications.transfer.v1/types.ts +4 -0
  282. package/ibc.core.channel.v1/module.ts +1 -1
  283. package/ibc.core.channel.v1/rest.ts +1 -0
  284. package/ibc.core.channel.v1/types/amino/amino.js +2 -0
  285. package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
  286. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  287. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
  288. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
  289. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
  290. package/ibc.core.client.v1/module.ts +1 -1
  291. package/ibc.core.client.v1/rest.ts +5 -1
  292. package/ibc.core.client.v1/types/amino/amino.js +2 -0
  293. package/ibc.core.client.v1/types/amino/amino.ts +2 -0
  294. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  295. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
  296. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
  297. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
  298. package/ibc.core.connection.v1/module.ts +1 -1
  299. package/ibc.core.connection.v1/types/amino/amino.js +2 -0
  300. package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
  301. package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
  302. package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
  303. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  304. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
  305. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  306. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  307. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
  308. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
  309. package/index.js +3 -1
  310. package/index.ts +3 -1
  311. package/package.json +8 -8
  312. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
  313. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
  314. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
  315. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
  316. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
  317. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
  318. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
  319. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
  320. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
  321. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
  322. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
  323. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
  324. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
  325. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
  326. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
  327. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
  328. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
  329. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.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
 
@@ -4,19 +4,19 @@ import { Registry } from "@cosmjs/proto-signing";
4
4
  import { msgTypes } from './registry';
5
5
  import { Api } from "./rest";
6
6
  import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
7
- import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
8
- import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
9
7
  import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
10
- import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
11
- import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
8
+ import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
9
+ import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
10
+ import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
12
11
  import { MsgVote } from "./types/cosmos/group/v1/tx";
13
12
  import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
14
- import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
13
+ import { MsgExec } from "./types/cosmos/group/v1/tx";
14
+ import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
15
+ import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
16
+ import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
15
17
  import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
16
- import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
17
- import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
18
18
  import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
19
- import { MsgExec } from "./types/cosmos/group/v1/tx";
19
+ import { MsgWithdrawProposal } 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";
@@ -38,7 +38,7 @@ import { GroupPolicyInfo as typeGroupPolicyInfo } from "./types";
38
38
  import { Proposal as typeProposal } from "./types";
39
39
  import { TallyResult as typeTallyResult } from "./types";
40
40
  import { Vote as typeVote } from "./types";
41
- export { MsgCreateGroupWithPolicy, MsgCreateGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyDecisionPolicy, MsgWithdrawProposal, MsgVote, MsgSubmitProposal, MsgCreateGroupPolicy, MsgUpdateGroupMembers, MsgUpdateGroupMetadata, MsgLeaveGroup, MsgUpdateGroupPolicyAdmin, MsgExec };
41
+ export { MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupMetadata, MsgLeaveGroup, MsgCreateGroupPolicy, MsgVote, MsgSubmitProposal, MsgExec, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupPolicyAdmin, MsgWithdrawProposal };
42
42
  export const registry = new Registry(msgTypes);
43
43
  function getStructure(template) {
44
44
  const structure = { fields: [] };
@@ -68,158 +68,158 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
68
68
  throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message);
69
69
  }
70
70
  },
71
- async sendMsgCreateGroup({ value, fee, memo }) {
71
+ async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
72
72
  if (!signer) {
73
- throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
73
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
74
74
  }
75
75
  try {
76
76
  const { address } = (await signer.getAccounts())[0];
77
77
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
78
- let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
78
+ let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
79
79
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
80
80
  }
81
81
  catch (e) {
82
- throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
82
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
83
83
  }
84
84
  },
85
- async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
85
+ async sendMsgUpdateGroupMetadata({ value, fee, memo }) {
86
86
  if (!signer) {
87
- throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
87
+ throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.');
88
88
  }
89
89
  try {
90
90
  const { address } = (await signer.getAccounts())[0];
91
91
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
92
- let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
92
+ let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) });
93
93
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
94
94
  }
95
95
  catch (e) {
96
- throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
96
+ throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message);
97
97
  }
98
98
  },
99
- async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
99
+ async sendMsgLeaveGroup({ value, fee, memo }) {
100
100
  if (!signer) {
101
- throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
101
+ throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.');
102
102
  }
103
103
  try {
104
104
  const { address } = (await signer.getAccounts())[0];
105
105
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
106
- let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
106
+ let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) });
107
107
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
108
108
  }
109
109
  catch (e) {
110
- throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
110
+ throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message);
111
111
  }
112
112
  },
113
- async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
113
+ async sendMsgCreateGroupPolicy({ value, fee, memo }) {
114
114
  if (!signer) {
115
- throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
115
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.');
116
116
  }
117
117
  try {
118
118
  const { address } = (await signer.getAccounts())[0];
119
119
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
120
- let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
120
+ let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
121
121
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
122
122
  }
123
123
  catch (e) {
124
- throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
124
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
125
125
  }
126
126
  },
127
- async sendMsgWithdrawProposal({ value, fee, memo }) {
127
+ async sendMsgVote({ value, fee, memo }) {
128
128
  if (!signer) {
129
- throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
129
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
130
130
  }
131
131
  try {
132
132
  const { address } = (await signer.getAccounts())[0];
133
133
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
134
- let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
134
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
135
135
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
136
136
  }
137
137
  catch (e) {
138
- throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
138
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
139
139
  }
140
140
  },
141
- async sendMsgVote({ value, fee, memo }) {
141
+ async sendMsgSubmitProposal({ value, fee, memo }) {
142
142
  if (!signer) {
143
- throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
143
+ throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
144
144
  }
145
145
  try {
146
146
  const { address } = (await signer.getAccounts())[0];
147
147
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
148
- let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
148
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
149
149
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
150
150
  }
151
151
  catch (e) {
152
- throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
152
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
153
153
  }
154
154
  },
155
- async sendMsgSubmitProposal({ value, fee, memo }) {
155
+ async sendMsgExec({ value, fee, memo }) {
156
156
  if (!signer) {
157
- throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
157
+ throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.');
158
158
  }
159
159
  try {
160
160
  const { address } = (await signer.getAccounts())[0];
161
161
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
162
- let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
162
+ let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
163
163
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
164
164
  }
165
165
  catch (e) {
166
- throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
166
+ throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
167
167
  }
168
168
  },
169
- async sendMsgCreateGroupPolicy({ value, fee, memo }) {
169
+ async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
170
170
  if (!signer) {
171
- throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.');
171
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
172
172
  }
173
173
  try {
174
174
  const { address } = (await signer.getAccounts())[0];
175
175
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
176
- let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
176
+ let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
177
177
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
178
178
  }
179
179
  catch (e) {
180
- throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
180
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
181
181
  }
182
182
  },
183
- async sendMsgUpdateGroupMembers({ value, fee, memo }) {
183
+ async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
184
184
  if (!signer) {
185
- throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
185
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
186
186
  }
187
187
  try {
188
188
  const { address } = (await signer.getAccounts())[0];
189
189
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
190
- let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
190
+ let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
191
191
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
192
192
  }
193
193
  catch (e) {
194
- throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
194
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
195
195
  }
196
196
  },
197
- async sendMsgUpdateGroupMetadata({ value, fee, memo }) {
197
+ async sendMsgCreateGroup({ value, fee, memo }) {
198
198
  if (!signer) {
199
- throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.');
199
+ throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
200
200
  }
201
201
  try {
202
202
  const { address } = (await signer.getAccounts())[0];
203
203
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
204
- let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) });
204
+ let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
205
205
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
206
206
  }
207
207
  catch (e) {
208
- throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message);
208
+ throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
209
209
  }
210
210
  },
211
- async sendMsgLeaveGroup({ value, fee, memo }) {
211
+ async sendMsgUpdateGroupMembers({ value, fee, memo }) {
212
212
  if (!signer) {
213
- throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.');
213
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
214
214
  }
215
215
  try {
216
216
  const { address } = (await signer.getAccounts())[0];
217
217
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
218
- let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) });
218
+ let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
219
219
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
220
220
  }
221
221
  catch (e) {
222
- throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message);
222
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
223
223
  }
224
224
  },
225
225
  async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) {
@@ -236,18 +236,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
236
236
  throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message);
237
237
  }
238
238
  },
239
- async sendMsgExec({ value, fee, memo }) {
239
+ async sendMsgWithdrawProposal({ value, fee, memo }) {
240
240
  if (!signer) {
241
- throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.');
241
+ throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
242
242
  }
243
243
  try {
244
244
  const { address } = (await signer.getAccounts())[0];
245
245
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
246
- let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
246
+ let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
247
247
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
248
248
  }
249
249
  catch (e) {
250
- throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
250
+ throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
251
251
  }
252
252
  },
253
253
  msgCreateGroupWithPolicy({ value }) {
@@ -258,44 +258,36 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
258
258
  throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message);
259
259
  }
260
260
  },
261
- msgCreateGroup({ value }) {
262
- try {
263
- return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
264
- }
265
- catch (e) {
266
- throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
267
- }
268
- },
269
- msgUpdateGroupAdmin({ value }) {
261
+ msgUpdateGroupPolicyMetadata({ value }) {
270
262
  try {
271
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) };
263
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) };
272
264
  }
273
265
  catch (e) {
274
- throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
266
+ throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message);
275
267
  }
276
268
  },
277
- msgUpdateGroupPolicyMetadata({ value }) {
269
+ msgUpdateGroupMetadata({ value }) {
278
270
  try {
279
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) };
271
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(value) };
280
272
  }
281
273
  catch (e) {
282
- throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message);
274
+ throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message);
283
275
  }
284
276
  },
285
- msgUpdateGroupPolicyDecisionPolicy({ value }) {
277
+ msgLeaveGroup({ value }) {
286
278
  try {
287
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) };
279
+ return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial(value) };
288
280
  }
289
281
  catch (e) {
290
- throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
282
+ throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message);
291
283
  }
292
284
  },
293
- msgWithdrawProposal({ value }) {
285
+ msgCreateGroupPolicy({ value }) {
294
286
  try {
295
- return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
287
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) };
296
288
  }
297
289
  catch (e) {
298
- throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
290
+ throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
299
291
  }
300
292
  },
301
293
  msgVote({ value }) {
@@ -314,36 +306,44 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
314
306
  throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
315
307
  }
316
308
  },
317
- msgCreateGroupPolicy({ value }) {
309
+ msgExec({ value }) {
318
310
  try {
319
- return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) };
311
+ return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(value) };
320
312
  }
321
313
  catch (e) {
322
- throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
314
+ throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
323
315
  }
324
316
  },
325
- msgUpdateGroupMembers({ value }) {
317
+ msgUpdateGroupAdmin({ value }) {
326
318
  try {
327
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
319
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) };
328
320
  }
329
321
  catch (e) {
330
- throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
322
+ throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
331
323
  }
332
324
  },
333
- msgUpdateGroupMetadata({ value }) {
325
+ msgUpdateGroupPolicyDecisionPolicy({ value }) {
334
326
  try {
335
- return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(value) };
327
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) };
336
328
  }
337
329
  catch (e) {
338
- throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message);
330
+ throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
339
331
  }
340
332
  },
341
- msgLeaveGroup({ value }) {
333
+ msgCreateGroup({ value }) {
342
334
  try {
343
- return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial(value) };
335
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
344
336
  }
345
337
  catch (e) {
346
- throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message);
338
+ throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
339
+ }
340
+ },
341
+ msgUpdateGroupMembers({ value }) {
342
+ try {
343
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
344
+ }
345
+ catch (e) {
346
+ throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
347
347
  }
348
348
  },
349
349
  msgUpdateGroupPolicyAdmin({ value }) {
@@ -354,12 +354,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
354
354
  throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message);
355
355
  }
356
356
  },
357
- msgExec({ value }) {
357
+ msgWithdrawProposal({ value }) {
358
358
  try {
359
- return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(value) };
359
+ return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
360
360
  }
361
361
  catch (e) {
362
- throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
362
+ throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
363
363
  }
364
364
  },
365
365
  };