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
@@ -3,10 +3,11 @@ 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 { MsgVote } from "./types/cosmos/gov/v1/tx";
7
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
6
+ import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
8
7
  import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
8
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
9
9
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
10
+ import { MsgVote } from "./types/cosmos/gov/v1/tx";
10
11
  import { WeightedVoteOption as typeWeightedVoteOption } from "./types";
11
12
  import { Deposit as typeDeposit } from "./types";
12
13
  import { Proposal as typeProposal } from "./types";
@@ -15,7 +16,8 @@ import { Vote as typeVote } from "./types";
15
16
  import { DepositParams as typeDepositParams } from "./types";
16
17
  import { VotingParams as typeVotingParams } from "./types";
17
18
  import { TallyParams as typeTallyParams } from "./types";
18
- export { MsgVote, MsgVoteWeighted, MsgDeposit, MsgSubmitProposal };
19
+ import { Params as typeParams } from "./types";
20
+ export { MsgUpdateParams, MsgDeposit, MsgVoteWeighted, MsgSubmitProposal, MsgVote };
19
21
  export const registry = new Registry(msgTypes);
20
22
  function getStructure(template) {
21
23
  const structure = { fields: [] };
@@ -31,46 +33,46 @@ const defaultFee = {
31
33
  };
32
34
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
33
35
  return {
34
- async sendMsgVote({ value, fee, memo }) {
36
+ async sendMsgUpdateParams({ value, fee, memo }) {
35
37
  if (!signer) {
36
- throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
38
+ throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.');
37
39
  }
38
40
  try {
39
41
  const { address } = (await signer.getAccounts())[0];
40
42
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
41
- let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
43
+ let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
42
44
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
43
45
  }
44
46
  catch (e) {
45
- throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
47
+ throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message);
46
48
  }
47
49
  },
48
- async sendMsgVoteWeighted({ value, fee, memo }) {
50
+ async sendMsgDeposit({ value, fee, memo }) {
49
51
  if (!signer) {
50
- throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.');
52
+ throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.');
51
53
  }
52
54
  try {
53
55
  const { address } = (await signer.getAccounts())[0];
54
56
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
55
- let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
57
+ let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
56
58
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
57
59
  }
58
60
  catch (e) {
59
- throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
61
+ throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
60
62
  }
61
63
  },
62
- async sendMsgDeposit({ value, fee, memo }) {
64
+ async sendMsgVoteWeighted({ value, fee, memo }) {
63
65
  if (!signer) {
64
- throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.');
66
+ throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.');
65
67
  }
66
68
  try {
67
69
  const { address } = (await signer.getAccounts())[0];
68
70
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
69
- let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
71
+ let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
70
72
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
71
73
  }
72
74
  catch (e) {
73
- throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
75
+ throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
74
76
  }
75
77
  },
76
78
  async sendMsgSubmitProposal({ value, fee, memo }) {
@@ -87,20 +89,26 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
87
89
  throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
88
90
  }
89
91
  },
90
- msgVote({ value }) {
92
+ async sendMsgVote({ value, fee, memo }) {
93
+ if (!signer) {
94
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
95
+ }
91
96
  try {
92
- return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial(value) };
97
+ const { address } = (await signer.getAccounts())[0];
98
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
99
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
100
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
93
101
  }
94
102
  catch (e) {
95
- throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
103
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
96
104
  }
97
105
  },
98
- msgVoteWeighted({ value }) {
106
+ msgUpdateParams({ value }) {
99
107
  try {
100
- return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
108
+ return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) };
101
109
  }
102
110
  catch (e) {
103
- throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message);
111
+ throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message);
104
112
  }
105
113
  },
106
114
  msgDeposit({ value }) {
@@ -111,6 +119,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
111
119
  throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message);
112
120
  }
113
121
  },
122
+ msgVoteWeighted({ value }) {
123
+ try {
124
+ return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
125
+ }
126
+ catch (e) {
127
+ throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message);
128
+ }
129
+ },
114
130
  msgSubmitProposal({ value }) {
115
131
  try {
116
132
  return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
@@ -119,6 +135,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
119
135
  throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
120
136
  }
121
137
  },
138
+ msgVote({ value }) {
139
+ try {
140
+ return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial(value) };
141
+ }
142
+ catch (e) {
143
+ throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
144
+ }
145
+ },
122
146
  };
123
147
  };
124
148
  export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
@@ -138,6 +162,7 @@ class SDKModule {
138
162
  DepositParams: getStructure(typeDepositParams.fromPartial({})),
139
163
  VotingParams: getStructure(typeVotingParams.fromPartial({})),
140
164
  TallyParams: getStructure(typeTallyParams.fromPartial({})),
165
+ Params: getStructure(typeParams.fromPartial({})),
141
166
  };
142
167
  client.on('signer-changed', (signer) => {
143
168
  this.updateTX(client);
@@ -1,16 +1,17 @@
1
1
  // Generated by Ignite ignite.com/cli
2
2
 
3
- import { StdFee } from "@cosmjs/launchpad";
3
+ import { StdFee } from "@cosmjs/amino";
4
4
  import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate";
5
5
  import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
6
6
  import { msgTypes } from './registry';
7
7
  import { IgniteClient } from "../client"
8
8
  import { MissingWalletError } from "../helpers"
9
9
  import { Api } from "./rest";
10
- import { MsgVote } from "./types/cosmos/gov/v1/tx";
11
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
10
+ import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
12
11
  import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
12
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
13
13
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
14
+ import { MsgVote } from "./types/cosmos/gov/v1/tx";
14
15
 
15
16
  import { WeightedVoteOption as typeWeightedVoteOption} from "./types"
16
17
  import { Deposit as typeDeposit} from "./types"
@@ -20,23 +21,24 @@ import { Vote as typeVote} from "./types"
20
21
  import { DepositParams as typeDepositParams} from "./types"
21
22
  import { VotingParams as typeVotingParams} from "./types"
22
23
  import { TallyParams as typeTallyParams} from "./types"
24
+ import { Params as typeParams} from "./types"
23
25
 
24
- export { MsgVote, MsgVoteWeighted, MsgDeposit, MsgSubmitProposal };
26
+ export { MsgUpdateParams, MsgDeposit, MsgVoteWeighted, MsgSubmitProposal, MsgVote };
25
27
 
26
- type sendMsgVoteParams = {
27
- value: MsgVote,
28
+ type sendMsgUpdateParamsParams = {
29
+ value: MsgUpdateParams,
28
30
  fee?: StdFee,
29
31
  memo?: string
30
32
  };
31
33
 
32
- type sendMsgVoteWeightedParams = {
33
- value: MsgVoteWeighted,
34
+ type sendMsgDepositParams = {
35
+ value: MsgDeposit,
34
36
  fee?: StdFee,
35
37
  memo?: string
36
38
  };
37
39
 
38
- type sendMsgDepositParams = {
39
- value: MsgDeposit,
40
+ type sendMsgVoteWeightedParams = {
41
+ value: MsgVoteWeighted,
40
42
  fee?: StdFee,
41
43
  memo?: string
42
44
  };
@@ -47,23 +49,33 @@ type sendMsgSubmitProposalParams = {
47
49
  memo?: string
48
50
  };
49
51
 
50
-
51
- type msgVoteParams = {
52
+ type sendMsgVoteParams = {
52
53
  value: MsgVote,
54
+ fee?: StdFee,
55
+ memo?: string
53
56
  };
54
57
 
55
- type msgVoteWeightedParams = {
56
- value: MsgVoteWeighted,
58
+
59
+ type msgUpdateParamsParams = {
60
+ value: MsgUpdateParams,
57
61
  };
58
62
 
59
63
  type msgDepositParams = {
60
64
  value: MsgDeposit,
61
65
  };
62
66
 
67
+ type msgVoteWeightedParams = {
68
+ value: MsgVoteWeighted,
69
+ };
70
+
63
71
  type msgSubmitProposalParams = {
64
72
  value: MsgSubmitProposal,
65
73
  };
66
74
 
75
+ type msgVoteParams = {
76
+ value: MsgVote,
77
+ };
78
+
67
79
 
68
80
  export const registry = new Registry(msgTypes);
69
81
 
@@ -94,45 +106,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
94
106
 
95
107
  return {
96
108
 
97
- async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
109
+ async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse> {
98
110
  if (!signer) {
99
- throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
111
+ throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.')
100
112
  }
101
113
  try {
102
114
  const { address } = (await signer.getAccounts())[0];
103
115
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
104
- let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
116
+ let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) })
105
117
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
106
118
  } catch (e: any) {
107
- throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
119
+ throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message)
108
120
  }
109
121
  },
110
122
 
111
- async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
123
+ async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse> {
112
124
  if (!signer) {
113
- throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.')
125
+ throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.')
114
126
  }
115
127
  try {
116
128
  const { address } = (await signer.getAccounts())[0];
117
129
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
118
- let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
130
+ let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) })
119
131
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
120
132
  } catch (e: any) {
121
- throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
133
+ throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message)
122
134
  }
123
135
  },
124
136
 
125
- async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse> {
137
+ async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
126
138
  if (!signer) {
127
- throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.')
139
+ throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.')
128
140
  }
129
141
  try {
130
142
  const { address } = (await signer.getAccounts())[0];
131
143
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
132
- let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) })
144
+ let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
133
145
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
134
146
  } catch (e: any) {
135
- throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message)
147
+ throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
136
148
  }
137
149
  },
138
150
 
@@ -150,20 +162,26 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
150
162
  }
151
163
  },
152
164
 
153
-
154
- msgVote({ value }: msgVoteParams): EncodeObject {
155
- try {
156
- return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial( value ) }
165
+ async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
166
+ if (!signer) {
167
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
168
+ }
169
+ try {
170
+ const { address } = (await signer.getAccounts())[0];
171
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
172
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
173
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
157
174
  } catch (e: any) {
158
- throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
175
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
159
176
  }
160
177
  },
161
178
 
162
- msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
179
+
180
+ msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject {
163
181
  try {
164
- return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
182
+ return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) }
165
183
  } catch (e: any) {
166
- throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message)
184
+ throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message)
167
185
  }
168
186
  },
169
187
 
@@ -175,6 +193,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
175
193
  }
176
194
  },
177
195
 
196
+ msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
197
+ try {
198
+ return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
199
+ } catch (e: any) {
200
+ throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message)
201
+ }
202
+ },
203
+
178
204
  msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
179
205
  try {
180
206
  return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
@@ -183,6 +209,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
183
209
  }
184
210
  },
185
211
 
212
+ msgVote({ value }: msgVoteParams): EncodeObject {
213
+ try {
214
+ return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial( value ) }
215
+ } catch (e: any) {
216
+ throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
217
+ }
218
+ },
219
+
186
220
  }
187
221
  };
188
222
 
@@ -213,6 +247,7 @@ class SDKModule {
213
247
  DepositParams: getStructure(typeDepositParams.fromPartial({})),
214
248
  VotingParams: getStructure(typeVotingParams.fromPartial({})),
215
249
  TallyParams: getStructure(typeTallyParams.fromPartial({})),
250
+ Params: getStructure(typeParams.fromPartial({})),
216
251
 
217
252
  };
218
253
  client.on('signer-changed',(signer) => {
@@ -1,11 +1,13 @@
1
- import { MsgVote } from "./types/cosmos/gov/v1/tx";
2
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
1
+ import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
3
2
  import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
3
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
4
4
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
5
+ import { MsgVote } from "./types/cosmos/gov/v1/tx";
5
6
  const msgTypes = [
6
- ["/cosmos.gov.v1.MsgVote", MsgVote],
7
- ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
7
+ ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams],
8
8
  ["/cosmos.gov.v1.MsgDeposit", MsgDeposit],
9
+ ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
9
10
  ["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal],
11
+ ["/cosmos.gov.v1.MsgVote", MsgVote],
10
12
  ];
11
13
  export { msgTypes };
@@ -1,14 +1,16 @@
1
1
  import { GeneratedType } from "@cosmjs/proto-signing";
2
- import { MsgVote } from "./types/cosmos/gov/v1/tx";
3
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
2
+ import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
4
3
  import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
4
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
5
5
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
6
+ import { MsgVote } from "./types/cosmos/gov/v1/tx";
6
7
 
7
8
  const msgTypes: Array<[string, GeneratedType]> = [
8
- ["/cosmos.gov.v1.MsgVote", MsgVote],
9
- ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
9
+ ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams],
10
10
  ["/cosmos.gov.v1.MsgDeposit", MsgDeposit],
11
+ ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
11
12
  ["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal],
13
+ ["/cosmos.gov.v1.MsgVote", MsgVote],
12
14
 
13
15
  ];
14
16