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,10 @@ 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 { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
6
7
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
7
- import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
8
8
  import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
9
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
9
+ import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
10
10
  import { WeightedVoteOption as typeWeightedVoteOption } from "./types";
11
11
  import { TextProposal as typeTextProposal } from "./types";
12
12
  import { Deposit as typeDeposit } from "./types";
@@ -16,7 +16,7 @@ import { Vote as typeVote } from "./types";
16
16
  import { DepositParams as typeDepositParams } from "./types";
17
17
  import { VotingParams as typeVotingParams } from "./types";
18
18
  import { TallyParams as typeTallyParams } from "./types";
19
- export { MsgDeposit, MsgSubmitProposal, MsgVote, MsgVoteWeighted };
19
+ export { MsgVoteWeighted, MsgDeposit, MsgVote, MsgSubmitProposal };
20
20
  export const registry = new Registry(msgTypes);
21
21
  function getStructure(template) {
22
22
  const structure = { fields: [] };
@@ -32,32 +32,32 @@ const defaultFee = {
32
32
  };
33
33
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
34
34
  return {
35
- async sendMsgDeposit({ value, fee, memo }) {
35
+ async sendMsgVoteWeighted({ value, fee, memo }) {
36
36
  if (!signer) {
37
- throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.');
37
+ throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.');
38
38
  }
39
39
  try {
40
40
  const { address } = (await signer.getAccounts())[0];
41
41
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
42
- let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
42
+ let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
43
43
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
44
44
  }
45
45
  catch (e) {
46
- throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
46
+ throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
47
47
  }
48
48
  },
49
- async sendMsgSubmitProposal({ value, fee, memo }) {
49
+ async sendMsgDeposit({ value, fee, memo }) {
50
50
  if (!signer) {
51
- throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
51
+ throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.');
52
52
  }
53
53
  try {
54
54
  const { address } = (await signer.getAccounts())[0];
55
55
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
56
- let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
56
+ let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
57
57
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
58
58
  }
59
59
  catch (e) {
60
- throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
60
+ throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
61
61
  }
62
62
  },
63
63
  async sendMsgVote({ value, fee, memo }) {
@@ -74,34 +74,34 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
74
74
  throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
75
75
  }
76
76
  },
77
- async sendMsgVoteWeighted({ value, fee, memo }) {
77
+ async sendMsgSubmitProposal({ value, fee, memo }) {
78
78
  if (!signer) {
79
- throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.');
79
+ throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
80
80
  }
81
81
  try {
82
82
  const { address } = (await signer.getAccounts())[0];
83
83
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
84
- let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
84
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
85
85
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
86
86
  }
87
87
  catch (e) {
88
- throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
88
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
89
89
  }
90
90
  },
91
- msgDeposit({ value }) {
91
+ msgVoteWeighted({ value }) {
92
92
  try {
93
- return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial(value) };
93
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
94
94
  }
95
95
  catch (e) {
96
- throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message);
96
+ throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message);
97
97
  }
98
98
  },
99
- msgSubmitProposal({ value }) {
99
+ msgDeposit({ value }) {
100
100
  try {
101
- return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
101
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial(value) };
102
102
  }
103
103
  catch (e) {
104
- throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
104
+ throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message);
105
105
  }
106
106
  },
107
107
  msgVote({ value }) {
@@ -112,12 +112,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
112
112
  throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
113
113
  }
114
114
  },
115
- msgVoteWeighted({ value }) {
115
+ msgSubmitProposal({ value }) {
116
116
  try {
117
- return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
117
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
118
118
  }
119
119
  catch (e) {
120
- throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message);
120
+ throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
121
121
  }
122
122
  },
123
123
  };
@@ -1,16 +1,16 @@
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 { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
10
11
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
11
- import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
12
12
  import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
13
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
13
+ import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
14
14
 
15
15
  import { WeightedVoteOption as typeWeightedVoteOption} from "./types"
16
16
  import { TextProposal as typeTextProposal} from "./types"
@@ -22,16 +22,16 @@ import { DepositParams as typeDepositParams} from "./types"
22
22
  import { VotingParams as typeVotingParams} from "./types"
23
23
  import { TallyParams as typeTallyParams} from "./types"
24
24
 
25
- export { MsgDeposit, MsgSubmitProposal, MsgVote, MsgVoteWeighted };
25
+ export { MsgVoteWeighted, MsgDeposit, MsgVote, MsgSubmitProposal };
26
26
 
27
- type sendMsgDepositParams = {
28
- value: MsgDeposit,
27
+ type sendMsgVoteWeightedParams = {
28
+ value: MsgVoteWeighted,
29
29
  fee?: StdFee,
30
30
  memo?: string
31
31
  };
32
32
 
33
- type sendMsgSubmitProposalParams = {
34
- value: MsgSubmitProposal,
33
+ type sendMsgDepositParams = {
34
+ value: MsgDeposit,
35
35
  fee?: StdFee,
36
36
  memo?: string
37
37
  };
@@ -42,27 +42,27 @@ type sendMsgVoteParams = {
42
42
  memo?: string
43
43
  };
44
44
 
45
- type sendMsgVoteWeightedParams = {
46
- value: MsgVoteWeighted,
45
+ type sendMsgSubmitProposalParams = {
46
+ value: MsgSubmitProposal,
47
47
  fee?: StdFee,
48
48
  memo?: string
49
49
  };
50
50
 
51
51
 
52
- type msgDepositParams = {
53
- value: MsgDeposit,
52
+ type msgVoteWeightedParams = {
53
+ value: MsgVoteWeighted,
54
54
  };
55
55
 
56
- type msgSubmitProposalParams = {
57
- value: MsgSubmitProposal,
56
+ type msgDepositParams = {
57
+ value: MsgDeposit,
58
58
  };
59
59
 
60
60
  type msgVoteParams = {
61
61
  value: MsgVote,
62
62
  };
63
63
 
64
- type msgVoteWeightedParams = {
65
- value: MsgVoteWeighted,
64
+ type msgSubmitProposalParams = {
65
+ value: MsgSubmitProposal,
66
66
  };
67
67
 
68
68
 
@@ -95,31 +95,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
95
95
 
96
96
  return {
97
97
 
98
- async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse> {
98
+ async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
99
99
  if (!signer) {
100
- throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.')
100
+ throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.')
101
101
  }
102
102
  try {
103
103
  const { address } = (await signer.getAccounts())[0];
104
104
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
105
- let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) })
105
+ let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
106
106
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
107
107
  } catch (e: any) {
108
- throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message)
108
+ throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
109
109
  }
110
110
  },
111
111
 
112
- async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
112
+ async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse> {
113
113
  if (!signer) {
114
- throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.')
114
+ throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.')
115
115
  }
116
116
  try {
117
117
  const { address } = (await signer.getAccounts())[0];
118
118
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
119
- let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
119
+ let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) })
120
120
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
121
121
  } catch (e: any) {
122
- throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
122
+ throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message)
123
123
  }
124
124
  },
125
125
 
@@ -137,34 +137,34 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
137
137
  }
138
138
  },
139
139
 
140
- async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
140
+ async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
141
141
  if (!signer) {
142
- throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.')
142
+ throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.')
143
143
  }
144
144
  try {
145
145
  const { address } = (await signer.getAccounts())[0];
146
146
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
147
- let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
147
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
148
148
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
149
149
  } catch (e: any) {
150
- throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
150
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
151
151
  }
152
152
  },
153
153
 
154
154
 
155
- msgDeposit({ value }: msgDepositParams): EncodeObject {
155
+ msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
156
156
  try {
157
- return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) }
157
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
158
158
  } catch (e: any) {
159
- throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message)
159
+ throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message)
160
160
  }
161
161
  },
162
162
 
163
- msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
163
+ msgDeposit({ value }: msgDepositParams): EncodeObject {
164
164
  try {
165
- return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
165
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) }
166
166
  } catch (e: any) {
167
- throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
167
+ throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message)
168
168
  }
169
169
  },
170
170
 
@@ -176,11 +176,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
176
176
  }
177
177
  },
178
178
 
179
- msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
179
+ msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
180
180
  try {
181
- return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
181
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
182
182
  } catch (e: any) {
183
- throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message)
183
+ throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
184
184
  }
185
185
  },
186
186
 
@@ -1,11 +1,11 @@
1
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
1
2
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
2
- import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
3
3
  import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
4
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
4
+ import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
5
5
  const msgTypes = [
6
+ ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
6
7
  ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit],
7
- ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
8
8
  ["/cosmos.gov.v1beta1.MsgVote", MsgVote],
9
- ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
9
+ ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
10
10
  ];
11
11
  export { msgTypes };
@@ -1,14 +1,14 @@
1
1
  import { GeneratedType } from "@cosmjs/proto-signing";
2
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
2
3
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
3
- import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
4
4
  import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
5
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
5
+ import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
6
6
 
7
7
  const msgTypes: Array<[string, GeneratedType]> = [
8
+ ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
8
9
  ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit],
9
- ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
10
10
  ["/cosmos.gov.v1beta1.MsgVote", MsgVote],
11
- ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
11
+ ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
12
12
 
13
13
  ];
14
14
 
@@ -146,9 +146,16 @@ export interface V1Beta1Coin {
146
146
  proposal.
147
147
  */
148
148
  export interface V1Beta1Deposit {
149
- /** @format uint64 */
149
+ /**
150
+ * proposal_id defines the unique id of the proposal.
151
+ * @format uint64
152
+ */
150
153
  proposal_id?: string;
154
+
155
+ /** depositor defines the deposit addresses from the proposals. */
151
156
  depositor?: string;
157
+
158
+ /** amount to be deposited by depositor. */
152
159
  amount?: V1Beta1Coin[];
153
160
  }
154
161
 
@@ -161,7 +168,7 @@ export interface V1Beta1DepositParams {
161
168
 
162
169
  /**
163
170
  * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
164
- * months.
171
+ * months.
165
172
  */
166
173
  max_deposit_period?: string;
167
174
  }
@@ -175,7 +182,10 @@ export type V1Beta1MsgDepositResponse = object;
175
182
  * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
176
183
  */
177
184
  export interface V1Beta1MsgSubmitProposalResponse {
178
- /** @format uint64 */
185
+ /**
186
+ * proposal_id defines the unique id of the proposal.
187
+ * @format uint64
188
+ */
179
189
  proposal_id?: string;
180
190
  }
181
191
 
@@ -267,83 +277,16 @@ export interface V1Beta1PageResponse {
267
277
  * Proposal defines the core field members of a governance proposal.
268
278
  */
269
279
  export interface V1Beta1Proposal {
270
- /** @format uint64 */
271
- proposal_id?: string;
272
-
273
280
  /**
274
- * `Any` contains an arbitrary serialized protocol buffer message along with a
275
- * URL that describes the type of the serialized message.
276
- *
277
- * Protobuf library provides support to pack/unpack Any values in the form
278
- * of utility functions or additional generated methods of the Any type.
279
- * Example 1: Pack and unpack a message in C++.
280
- * Foo foo = ...;
281
- * Any any;
282
- * any.PackFrom(foo);
283
- * ...
284
- * if (any.UnpackTo(&foo)) {
285
- * ...
286
- * }
287
- * Example 2: Pack and unpack a message in Java.
288
- * Any any = Any.pack(foo);
289
- * if (any.is(Foo.class)) {
290
- * foo = any.unpack(Foo.class);
291
- * Example 3: Pack and unpack a message in Python.
292
- * foo = Foo(...)
293
- * any = Any()
294
- * any.Pack(foo)
295
- * if any.Is(Foo.DESCRIPTOR):
296
- * any.Unpack(foo)
297
- * Example 4: Pack and unpack a message in Go
298
- * foo := &pb.Foo{...}
299
- * any, err := anypb.New(foo)
300
- * if err != nil {
301
- * ...
302
- * }
303
- * ...
304
- * foo := &pb.Foo{}
305
- * if err := any.UnmarshalTo(foo); err != nil {
306
- * The pack methods provided by protobuf library will by default use
307
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
308
- * methods only use the fully qualified type name after the last '/'
309
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
310
- * name "y.z".
311
- * JSON
312
- * ====
313
- * The JSON representation of an `Any` value uses the regular
314
- * representation of the deserialized, embedded message, with an
315
- * additional field `@type` which contains the type URL. Example:
316
- * package google.profile;
317
- * message Person {
318
- * string first_name = 1;
319
- * string last_name = 2;
320
- * {
321
- * "@type": "type.googleapis.com/google.profile.Person",
322
- * "firstName": <string>,
323
- * "lastName": <string>
324
- * If the embedded message type is well-known and has a custom JSON
325
- * representation, that representation will be embedded adding a field
326
- * `value` which holds the custom JSON in addition to the `@type`
327
- * field. Example (for message [google.protobuf.Duration][]):
328
- * "@type": "type.googleapis.com/google.protobuf.Duration",
329
- * "value": "1.212s"
281
+ * proposal_id defines the unique id of the proposal.
282
+ * @format uint64
330
283
  */
284
+ proposal_id?: string;
285
+
286
+ /** content is the proposal's content. */
331
287
  content?: ProtobufAny;
332
288
 
333
- /**
334
- * ProposalStatus enumerates the valid statuses of a proposal.
335
- *
336
- * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
337
- * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
338
- * period.
339
- * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
340
- * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
341
- * passed.
342
- * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
343
- * been rejected.
344
- * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
345
- * failed.
346
- */
289
+ /** status defines the proposal status. */
347
290
  status?: V1Beta1ProposalStatus;
348
291
 
349
292
  /**
@@ -353,17 +296,31 @@ export interface V1Beta1Proposal {
353
296
  */
354
297
  final_tally_result?: V1Beta1TallyResult;
355
298
 
356
- /** @format date-time */
299
+ /**
300
+ * submit_time is the time of proposal submission.
301
+ * @format date-time
302
+ */
357
303
  submit_time?: string;
358
304
 
359
- /** @format date-time */
305
+ /**
306
+ * deposit_end_time is the end time for deposition.
307
+ * @format date-time
308
+ */
360
309
  deposit_end_time?: string;
310
+
311
+ /** total_deposit is the total deposit on the proposal. */
361
312
  total_deposit?: V1Beta1Coin[];
362
313
 
363
- /** @format date-time */
314
+ /**
315
+ * voting_start_time is the starting time to vote on a proposal.
316
+ * @format date-time
317
+ */
364
318
  voting_start_time?: string;
365
319
 
366
- /** @format date-time */
320
+ /**
321
+ * voting_end_time is the end time of voting on a proposal.
322
+ * @format date-time
323
+ */
367
324
  voting_end_time?: string;
368
325
  }
369
326
 
@@ -403,6 +360,7 @@ export interface V1Beta1QueryDepositResponse {
403
360
  * QueryDepositsResponse is the response type for the Query/Deposits RPC method.
404
361
  */
405
362
  export interface V1Beta1QueryDepositsResponse {
363
+ /** deposits defines the requested deposits. */
406
364
  deposits?: V1Beta1Deposit[];
407
365
 
408
366
  /** pagination defines the pagination in the response. */
@@ -436,6 +394,7 @@ export interface V1Beta1QueryProposalResponse {
436
394
  method.
437
395
  */
438
396
  export interface V1Beta1QueryProposalsResponse {
397
+ /** proposals defines all the requested governance proposals. */
439
398
  proposals?: V1Beta1Proposal[];
440
399
 
441
400
  /** pagination defines the pagination in the response. */
@@ -454,7 +413,7 @@ export interface V1Beta1QueryTallyResultResponse {
454
413
  * QueryVoteResponse is the response type for the Query/Vote RPC method.
455
414
  */
456
415
  export interface V1Beta1QueryVoteResponse {
457
- /** vote defined the queried vote. */
416
+ /** vote defines the queried vote. */
458
417
  vote?: V1Beta1Vote;
459
418
  }
460
419
 
@@ -462,7 +421,7 @@ export interface V1Beta1QueryVoteResponse {
462
421
  * QueryVotesResponse is the response type for the Query/Votes RPC method.
463
422
  */
464
423
  export interface V1Beta1QueryVotesResponse {
465
- /** votes defined the queried votes. */
424
+ /** votes defines the queried votes. */
466
425
  votes?: V1Beta1Vote[];
467
426
 
468
427
  /** pagination defines the pagination in the response. */
@@ -475,7 +434,7 @@ export interface V1Beta1QueryVotesResponse {
475
434
  export interface V1Beta1TallyParams {
476
435
  /**
477
436
  * Minimum percentage of total stake needed to vote for a result to be
478
- * considered valid.
437
+ * considered valid.
479
438
  * @format byte
480
439
  */
481
440
  quorum?: string;
@@ -488,7 +447,7 @@ export interface V1Beta1TallyParams {
488
447
 
489
448
  /**
490
449
  * Minimum value of Veto votes to Total votes ratio for proposal to be
491
- * vetoed. Default value: 1/3.
450
+ * vetoed. Default value: 1/3.
492
451
  * @format byte
493
452
  */
494
453
  veto_threshold?: string;
@@ -498,9 +457,16 @@ export interface V1Beta1TallyParams {
498
457
  * TallyResult defines a standard tally for a governance proposal.
499
458
  */
500
459
  export interface V1Beta1TallyResult {
460
+ /** yes is the number of yes votes on a proposal. */
501
461
  yes?: string;
462
+
463
+ /** abstain is the number of abstain votes on a proposal. */
502
464
  abstain?: string;
465
+
466
+ /** no is the number of no votes on a proposal. */
503
467
  no?: string;
468
+
469
+ /** no_with_veto is the number of no with veto votes on a proposal. */
504
470
  no_with_veto?: string;
505
471
  }
506
472
 
@@ -509,8 +475,13 @@ export interface V1Beta1TallyResult {
509
475
  A Vote consists of a proposal ID, the voter, and the vote option.
510
476
  */
511
477
  export interface V1Beta1Vote {
512
- /** @format uint64 */
478
+ /**
479
+ * proposal_id defines the unique id of the proposal.
480
+ * @format uint64
481
+ */
513
482
  proposal_id?: string;
483
+
484
+ /** voter is the voter address of the proposal. */
514
485
  voter?: string;
515
486
 
516
487
  /**
@@ -520,7 +491,11 @@ export interface V1Beta1Vote {
520
491
  */
521
492
  option?: V1Beta1VoteOption;
522
493
 
523
- /** Since: cosmos-sdk 0.43 */
494
+ /**
495
+ * options is the weighted vote options.
496
+ *
497
+ * Since: cosmos-sdk 0.43
498
+ */
524
499
  options?: V1Beta1WeightedVoteOption[];
525
500
  }
526
501
 
@@ -545,7 +520,7 @@ export enum V1Beta1VoteOption {
545
520
  * VotingParams defines the params for voting on governance proposals.
546
521
  */
547
522
  export interface V1Beta1VotingParams {
548
- /** Length of the voting period. */
523
+ /** Duration of the voting period. */
549
524
  voting_period?: string;
550
525
  }
551
526
 
@@ -555,16 +530,10 @@ export interface V1Beta1VotingParams {
555
530
  Since: cosmos-sdk 0.43
556
531
  */
557
532
  export interface V1Beta1WeightedVoteOption {
558
- /**
559
- * VoteOption enumerates the valid vote options for a given governance proposal.
560
- *
561
- * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
562
- * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
563
- * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
564
- * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
565
- * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
566
- */
533
+ /** option defines the valid vote options, it must not contain duplicate vote options. */
567
534
  option?: V1Beta1VoteOption;
535
+
536
+ /** weight is the vote weight associated with the vote option. */
568
537
  weight?: string;
569
538
  }
570
539
 
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export const protobufPackage = "amino";
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export const protobufPackage = "amino";
@@ -15,15 +15,15 @@ export interface GenesisState {
15
15
  votes: Vote[];
16
16
  /** proposals defines all the proposals present at genesis. */
17
17
  proposals: Proposal[];
18
- /** params defines all the paramaters of related to deposit. */
18
+ /** params defines all the parameters of related to deposit. */
19
19
  depositParams:
20
20
  | DepositParams
21
21
  | undefined;
22
- /** params defines all the paramaters of related to voting. */
22
+ /** params defines all the parameters of related to voting. */
23
23
  votingParams:
24
24
  | VotingParams
25
25
  | undefined;
26
- /** params defines all the paramaters of related to tally. */
26
+ /** params defines all the parameters of related to tally. */
27
27
  tallyParams: TallyParams | undefined;
28
28
  }
29
29