decentralcardgame-cardchain-client-ts 0.0.11 → 0.0.13

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 (332) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +350 -327
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +518 -485
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +74 -72
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +74 -72
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +12 -1
  7. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.js +1 -1
  8. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.ts +1 -1
  9. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.js +101 -3
  10. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.ts +103 -3
  11. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.js +10 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.ts +11 -0
  13. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.js +2 -4
  14. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.ts +2 -4
  15. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.js +190 -122
  16. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.ts +220 -144
  17. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.js +1 -1
  18. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.ts +1 -1
  19. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.js +346 -0
  20. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.ts +417 -0
  21. package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
  22. package/DecentralCardGame.cardchain.cardchain/types.ts +25 -25
  23. package/client.js +8 -9
  24. package/client.ts +12 -14
  25. package/cosmos.auth.v1beta1/module.js +0 -2
  26. package/cosmos.auth.v1beta1/module.ts +1 -3
  27. package/cosmos.auth.v1beta1/rest.js +3 -18
  28. package/cosmos.auth.v1beta1/rest.ts +3 -113
  29. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  30. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  31. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  32. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
  33. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
  34. package/cosmos.auth.v1beta1/types.js +1 -2
  35. package/cosmos.auth.v1beta1/types.ts +0 -2
  36. package/cosmos.authz.v1beta1/module.ts +1 -1
  37. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  38. package/cosmos.bank.v1beta1/module.ts +1 -1
  39. package/cosmos.bank.v1beta1/rest.js +6 -37
  40. package/cosmos.bank.v1beta1/rest.ts +6 -99
  41. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
  42. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
  43. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
  44. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
  45. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
  46. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
  47. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
  48. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
  49. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
  50. package/cosmos.base.tendermint.v1beta1/module.ts +1 -1
  51. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  52. package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
  53. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
  54. package/cosmos.crisis.v1beta1/module.js +1 -24
  55. package/cosmos.crisis.v1beta1/module.ts +2 -35
  56. package/cosmos.crisis.v1beta1/registry.js +0 -2
  57. package/cosmos.crisis.v1beta1/registry.ts +0 -2
  58. package/cosmos.crisis.v1beta1/rest.ts +0 -19
  59. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
  60. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
  61. package/cosmos.distribution.v1beta1/module.js +9 -55
  62. package/cosmos.distribution.v1beta1/module.ts +14 -80
  63. package/cosmos.distribution.v1beta1/registry.js +2 -6
  64. package/cosmos.distribution.v1beta1/registry.ts +2 -6
  65. package/cosmos.distribution.v1beta1/rest.js +0 -14
  66. package/cosmos.distribution.v1beta1/rest.ts +7 -66
  67. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
  68. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  69. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
  70. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
  71. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
  72. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
  73. package/cosmos.evidence.v1beta1/module.ts +1 -1
  74. package/cosmos.evidence.v1beta1/rest.js +3 -4
  75. package/cosmos.evidence.v1beta1/rest.ts +3 -4
  76. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
  77. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
  78. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
  79. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
  80. package/cosmos.feegrant.v1beta1/module.ts +1 -1
  81. package/cosmos.gov.v1/module.js +9 -34
  82. package/cosmos.gov.v1/module.ts +14 -49
  83. package/cosmos.gov.v1/registry.js +2 -4
  84. package/cosmos.gov.v1/registry.ts +2 -4
  85. package/cosmos.gov.v1/rest.ts +41 -155
  86. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
  87. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
  88. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
  89. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
  90. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
  91. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
  92. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
  93. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
  94. package/cosmos.gov.v1/types.js +1 -2
  95. package/cosmos.gov.v1/types.ts +0 -2
  96. package/cosmos.gov.v1beta1/module.js +31 -31
  97. package/cosmos.gov.v1beta1/module.ts +48 -48
  98. package/cosmos.gov.v1beta1/registry.js +4 -4
  99. package/cosmos.gov.v1beta1/registry.ts +4 -4
  100. package/cosmos.gov.v1beta1/rest.ts +96 -65
  101. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  102. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
  103. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
  104. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
  105. package/cosmos.group.v1/module.js +104 -104
  106. package/cosmos.group.v1/module.ts +156 -156
  107. package/cosmos.group.v1/registry.js +18 -18
  108. package/cosmos.group.v1/registry.ts +18 -18
  109. package/cosmos.group.v1/rest.js +3 -3
  110. package/cosmos.group.v1/rest.ts +9 -29
  111. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  112. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
  113. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
  114. package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
  115. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
  116. package/cosmos.mint.v1beta1/module.ts +1 -1
  117. package/cosmos.mint.v1beta1/rest.ts +1 -9
  118. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  119. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  120. package/cosmos.nft.v1beta1/module.ts +1 -1
  121. package/cosmos.nft.v1beta1/rest.ts +22 -18
  122. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
  123. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
  124. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
  125. package/cosmos.params.v1beta1/module.ts +1 -1
  126. package/cosmos.slashing.v1beta1/module.ts +1 -1
  127. package/cosmos.slashing.v1beta1/rest.ts +0 -8
  128. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  129. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
  130. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
  131. package/cosmos.staking.v1beta1/module.js +40 -42
  132. package/cosmos.staking.v1beta1/module.ts +61 -63
  133. package/cosmos.staking.v1beta1/registry.js +8 -8
  134. package/cosmos.staking.v1beta1/registry.ts +8 -8
  135. package/cosmos.staking.v1beta1/rest.js +7 -7
  136. package/cosmos.staking.v1beta1/rest.ts +8 -49
  137. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  138. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
  139. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
  140. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
  141. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
  142. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
  143. package/cosmos.staking.v1beta1/types.js +1 -2
  144. package/cosmos.staking.v1beta1/types.ts +0 -2
  145. package/cosmos.tx.v1beta1/module.ts +1 -1
  146. package/cosmos.tx.v1beta1/rest.js +2 -66
  147. package/cosmos.tx.v1beta1/rest.ts +16 -177
  148. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
  149. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
  150. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
  151. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
  152. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
  153. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
  154. package/cosmos.upgrade.v1beta1/module.ts +1 -1
  155. package/cosmos.upgrade.v1beta1/rest.ts +1 -0
  156. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  157. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  158. package/cosmos.vesting.v1beta1/module.js +16 -16
  159. package/cosmos.vesting.v1beta1/module.ts +25 -25
  160. package/cosmos.vesting.v1beta1/registry.js +2 -2
  161. package/cosmos.vesting.v1beta1/registry.ts +2 -2
  162. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  163. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  164. package/ibc.applications.interchain_accounts.controller.v1/module.ts +1 -1
  165. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
  166. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
  167. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
  168. package/ibc.applications.interchain_accounts.host.v1/module.ts +1 -1
  169. package/ibc.applications.transfer.v1/module.js +27 -5
  170. package/ibc.applications.transfer.v1/module.ts +35 -6
  171. package/ibc.applications.transfer.v1/registry.js +4 -1
  172. package/ibc.applications.transfer.v1/registry.ts +2 -0
  173. package/ibc.applications.transfer.v1/rest.js +1 -15
  174. package/ibc.applications.transfer.v1/rest.ts +1 -30
  175. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  176. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
  177. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
  178. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
  179. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
  180. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
  181. package/ibc.applications.transfer.v1/types.js +1 -3
  182. package/ibc.applications.transfer.v1/types.ts +0 -4
  183. package/ibc.core.channel.v1/module.ts +1 -1
  184. package/ibc.core.channel.v1/rest.ts +0 -1
  185. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  186. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
  187. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
  188. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
  189. package/ibc.core.client.v1/module.ts +1 -1
  190. package/ibc.core.client.v1/rest.ts +1 -5
  191. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  192. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
  193. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
  194. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
  195. package/ibc.core.connection.v1/module.ts +1 -1
  196. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  197. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
  198. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  199. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  200. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -26
  201. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
  202. package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.js → proofs.js} +1 -1
  203. package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.ts → proofs.ts} +1 -1
  204. package/index.js +1 -3
  205. package/index.ts +1 -3
  206. package/package.json +9 -8
  207. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.js +0 -84
  208. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.ts +0 -114
  209. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.js +0 -127
  210. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.ts +0 -161
  211. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.js +0 -148
  212. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.ts +0 -182
  213. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +0 -2
  214. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +0 -2
  215. package/cosmos.auth.v1beta1/types/amino/amino.js +0 -2
  216. package/cosmos.auth.v1beta1/types/amino/amino.ts +0 -2
  217. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +0 -105
  218. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +0 -172
  219. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
  220. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
  221. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +0 -2
  222. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +0 -2
  223. package/cosmos.authz.v1beta1/types/amino/amino.js +0 -2
  224. package/cosmos.authz.v1beta1/types/amino/amino.ts +0 -2
  225. package/cosmos.bank.v1beta1/types/amino/amino.js +0 -2
  226. package/cosmos.bank.v1beta1/types/amino/amino.ts +0 -2
  227. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +0 -2
  228. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +0 -2
  229. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +0 -2
  230. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +0 -2
  231. package/cosmos.consensus.v1/index.js +0 -5
  232. package/cosmos.consensus.v1/index.ts +0 -6
  233. package/cosmos.consensus.v1/module.js +0 -81
  234. package/cosmos.consensus.v1/module.ts +0 -129
  235. package/cosmos.consensus.v1/registry.js +0 -5
  236. package/cosmos.consensus.v1/registry.ts +0 -9
  237. package/cosmos.consensus.v1/rest.js +0 -100
  238. package/cosmos.consensus.v1/rest.ts +0 -268
  239. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +0 -94
  240. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +0 -147
  241. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +0 -129
  242. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +0 -196
  243. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +0 -2
  244. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +0 -2
  245. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +0 -171
  246. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +0 -247
  247. package/cosmos.consensus.v1/types/gogoproto/gogo.js +0 -2
  248. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +0 -2
  249. package/cosmos.consensus.v1/types/google/api/annotations.js +0 -2
  250. package/cosmos.consensus.v1/types/google/api/annotations.ts +0 -2
  251. package/cosmos.consensus.v1/types/google/api/http.js +0 -260
  252. package/cosmos.consensus.v1/types/google/api/http.ts +0 -589
  253. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +0 -2830
  254. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +0 -3753
  255. package/cosmos.consensus.v1/types/google/protobuf/duration.js +0 -84
  256. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +0 -187
  257. package/cosmos.consensus.v1/types/tendermint/types/params.js +0 -369
  258. package/cosmos.consensus.v1/types/tendermint/types/params.ts +0 -498
  259. package/cosmos.consensus.v1/types.js +0 -1
  260. package/cosmos.consensus.v1/types.ts +0 -5
  261. package/cosmos.crisis.v1beta1/types/amino/amino.js +0 -2
  262. package/cosmos.crisis.v1beta1/types/amino/amino.ts +0 -2
  263. package/cosmos.distribution.v1beta1/types/amino/amino.js +0 -2
  264. package/cosmos.distribution.v1beta1/types/amino/amino.ts +0 -2
  265. package/cosmos.evidence.v1beta1/types/amino/amino.js +0 -2
  266. package/cosmos.evidence.v1beta1/types/amino/amino.ts +0 -2
  267. package/cosmos.feegrant.v1beta1/types/amino/amino.js +0 -2
  268. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +0 -2
  269. package/cosmos.gov.v1/types/amino/amino.js +0 -2
  270. package/cosmos.gov.v1/types/amino/amino.ts +0 -2
  271. package/cosmos.gov.v1beta1/types/amino/amino.js +0 -2
  272. package/cosmos.gov.v1beta1/types/amino/amino.ts +0 -2
  273. package/cosmos.group.v1/types/amino/amino.js +0 -2
  274. package/cosmos.group.v1/types/amino/amino.ts +0 -2
  275. package/cosmos.mint.v1beta1/types/amino/amino.js +0 -2
  276. package/cosmos.mint.v1beta1/types/amino/amino.ts +0 -2
  277. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +0 -105
  278. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +0 -172
  279. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
  280. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
  281. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +0 -171
  282. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +0 -247
  283. package/cosmos.params.v1beta1/types/amino/amino.js +0 -2
  284. package/cosmos.params.v1beta1/types/amino/amino.ts +0 -2
  285. package/cosmos.slashing.v1beta1/types/amino/amino.js +0 -2
  286. package/cosmos.slashing.v1beta1/types/amino/amino.ts +0 -2
  287. package/cosmos.staking.v1beta1/types/amino/amino.js +0 -2
  288. package/cosmos.staking.v1beta1/types/amino/amino.ts +0 -2
  289. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +0 -2
  290. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +0 -2
  291. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +0 -3812
  292. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +0 -4525
  293. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +0 -369
  294. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +0 -498
  295. package/cosmos.tx.v1beta1/types/amino/amino.js +0 -2
  296. package/cosmos.tx.v1beta1/types/amino/amino.ts +0 -2
  297. package/cosmos.upgrade.v1beta1/types/amino/amino.js +0 -2
  298. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +0 -2
  299. package/cosmos.vesting.v1beta1/types/amino/amino.js +0 -2
  300. package/cosmos.vesting.v1beta1/types/amino/amino.ts +0 -2
  301. package/ibc.applications.transfer.v1/types/amino/amino.js +0 -2
  302. package/ibc.applications.transfer.v1/types/amino/amino.ts +0 -2
  303. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +0 -135
  304. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +0 -178
  305. package/ibc.core.channel.v1/types/amino/amino.js +0 -2
  306. package/ibc.core.channel.v1/types/amino/amino.ts +0 -2
  307. package/ibc.core.client.v1/types/amino/amino.js +0 -2
  308. package/ibc.core.client.v1/types/amino/amino.ts +0 -2
  309. package/ibc.core.connection.v1/types/amino/amino.js +0 -2
  310. package/ibc.core.connection.v1/types/amino/amino.ts +0 -2
  311. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.js +0 -0
  312. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.ts +0 -0
  313. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.js +0 -0
  314. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.ts +0 -0
  315. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.js +0 -0
  316. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.ts +0 -0
  317. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.js +0 -0
  318. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.ts +0 -0
  319. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.js +0 -0
  320. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.ts +0 -0
  321. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.js +0 -0
  322. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.ts +0 -0
  323. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.js +0 -0
  324. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.ts +0 -0
  325. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.js +0 -0
  326. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.ts +0 -0
  327. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.js +0 -0
  328. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.ts +0 -0
  329. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.js +0 -0
  330. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.ts +0 -0
  331. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.js +0 -0
  332. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.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";
7
- import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
8
6
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
9
7
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
8
+ import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
9
+ import { MsgVoteWeighted } 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 { MsgVoteWeighted, MsgVote, MsgDeposit, MsgSubmitProposal };
19
+ export { MsgDeposit, MsgSubmitProposal, MsgVote, MsgVoteWeighted };
20
20
  export const registry = new Registry(msgTypes);
21
21
  function getStructure(template) {
22
22
  const structure = { fields: [] };
@@ -32,92 +32,92 @@ const defaultFee = {
32
32
  };
33
33
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
34
34
  return {
35
- async sendMsgVoteWeighted({ value, fee, memo }) {
35
+ async sendMsgDeposit({ value, fee, memo }) {
36
36
  if (!signer) {
37
- throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.');
37
+ throw new Error('TxClient:sendMsgDeposit: 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.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
42
+ let msg = this.msgDeposit({ value: MsgDeposit.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:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
46
+ throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
47
47
  }
48
48
  },
49
- async sendMsgVote({ value, fee, memo }) {
49
+ async sendMsgSubmitProposal({ value, fee, memo }) {
50
50
  if (!signer) {
51
- throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
51
+ throw new Error('TxClient:sendMsgSubmitProposal: 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.msgVote({ value: MsgVote.fromPartial(value) });
56
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.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:sendMsgVote: Could not broadcast Tx: ' + e.message);
60
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
61
61
  }
62
62
  },
63
- async sendMsgDeposit({ value, fee, memo }) {
63
+ async sendMsgVote({ value, fee, memo }) {
64
64
  if (!signer) {
65
- throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.');
65
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
66
66
  }
67
67
  try {
68
68
  const { address } = (await signer.getAccounts())[0];
69
69
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
70
- let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
70
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
71
71
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
72
72
  }
73
73
  catch (e) {
74
- throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
74
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
75
75
  }
76
76
  },
77
- async sendMsgSubmitProposal({ value, fee, memo }) {
77
+ async sendMsgVoteWeighted({ value, fee, memo }) {
78
78
  if (!signer) {
79
- throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
79
+ throw new Error('TxClient:sendMsgVoteWeighted: 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.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
84
+ let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.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:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
88
+ throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
89
89
  }
90
90
  },
91
- msgVoteWeighted({ value }) {
91
+ msgDeposit({ value }) {
92
92
  try {
93
- return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
93
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial(value) };
94
94
  }
95
95
  catch (e) {
96
- throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message);
96
+ throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message);
97
97
  }
98
98
  },
99
- msgVote({ value }) {
99
+ msgSubmitProposal({ value }) {
100
100
  try {
101
- return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial(value) };
101
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
102
102
  }
103
103
  catch (e) {
104
- throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
104
+ throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
105
105
  }
106
106
  },
107
- msgDeposit({ value }) {
107
+ msgVote({ value }) {
108
108
  try {
109
- return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial(value) };
109
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial(value) };
110
110
  }
111
111
  catch (e) {
112
- throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message);
112
+ throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
113
113
  }
114
114
  },
115
- msgSubmitProposal({ value }) {
115
+ msgVoteWeighted({ value }) {
116
116
  try {
117
- return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
117
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
118
118
  }
119
119
  catch (e) {
120
- throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
120
+ throw new Error('TxClient:MsgVoteWeighted: 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";
11
- import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
12
10
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
13
11
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
12
+ import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
13
+ import { MsgVoteWeighted } 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,19 +22,7 @@ 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 { MsgVoteWeighted, MsgVote, MsgDeposit, MsgSubmitProposal };
26
-
27
- type sendMsgVoteWeightedParams = {
28
- value: MsgVoteWeighted,
29
- fee?: StdFee,
30
- memo?: string
31
- };
32
-
33
- type sendMsgVoteParams = {
34
- value: MsgVote,
35
- fee?: StdFee,
36
- memo?: string
37
- };
25
+ export { MsgDeposit, MsgSubmitProposal, MsgVote, MsgVoteWeighted };
38
26
 
39
27
  type sendMsgDepositParams = {
40
28
  value: MsgDeposit,
@@ -48,14 +36,18 @@ type sendMsgSubmitProposalParams = {
48
36
  memo?: string
49
37
  };
50
38
 
39
+ type sendMsgVoteParams = {
40
+ value: MsgVote,
41
+ fee?: StdFee,
42
+ memo?: string
43
+ };
51
44
 
52
- type msgVoteWeightedParams = {
45
+ type sendMsgVoteWeightedParams = {
53
46
  value: MsgVoteWeighted,
47
+ fee?: StdFee,
48
+ memo?: string
54
49
  };
55
50
 
56
- type msgVoteParams = {
57
- value: MsgVote,
58
- };
59
51
 
60
52
  type msgDepositParams = {
61
53
  value: MsgDeposit,
@@ -65,6 +57,14 @@ type msgSubmitProposalParams = {
65
57
  value: MsgSubmitProposal,
66
58
  };
67
59
 
60
+ type msgVoteParams = {
61
+ value: MsgVote,
62
+ };
63
+
64
+ type msgVoteWeightedParams = {
65
+ value: MsgVoteWeighted,
66
+ };
67
+
68
68
 
69
69
  export const registry = new Registry(msgTypes);
70
70
 
@@ -95,92 +95,92 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
95
95
 
96
96
  return {
97
97
 
98
- async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
98
+ async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse> {
99
99
  if (!signer) {
100
- throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.')
100
+ throw new Error('TxClient:sendMsgDeposit: 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.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
105
+ let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) })
106
106
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
107
107
  } catch (e: any) {
108
- throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
108
+ throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message)
109
109
  }
110
110
  },
111
111
 
112
- async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
112
+ async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
113
113
  if (!signer) {
114
- throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
114
+ throw new Error('TxClient:sendMsgSubmitProposal: 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.msgVote({ value: MsgVote.fromPartial(value) })
119
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
120
120
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
121
121
  } catch (e: any) {
122
- throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
122
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
123
123
  }
124
124
  },
125
125
 
126
- async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse> {
126
+ async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
127
127
  if (!signer) {
128
- throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.')
128
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
129
129
  }
130
130
  try {
131
131
  const { address } = (await signer.getAccounts())[0];
132
132
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
133
- let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) })
133
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
134
134
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
135
135
  } catch (e: any) {
136
- throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message)
136
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
137
137
  }
138
138
  },
139
139
 
140
- async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
140
+ async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
141
141
  if (!signer) {
142
- throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.')
142
+ throw new Error('TxClient:sendMsgVoteWeighted: 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.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
147
+ let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
148
148
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
149
149
  } catch (e: any) {
150
- throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
150
+ throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
151
151
  }
152
152
  },
153
153
 
154
154
 
155
- msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
155
+ msgDeposit({ value }: msgDepositParams): EncodeObject {
156
156
  try {
157
- return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
157
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) }
158
158
  } catch (e: any) {
159
- throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message)
159
+ throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message)
160
160
  }
161
161
  },
162
162
 
163
- msgVote({ value }: msgVoteParams): EncodeObject {
163
+ msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
164
164
  try {
165
- return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial( value ) }
165
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
166
166
  } catch (e: any) {
167
- throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
167
+ throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
168
168
  }
169
169
  },
170
170
 
171
- msgDeposit({ value }: msgDepositParams): EncodeObject {
171
+ msgVote({ value }: msgVoteParams): EncodeObject {
172
172
  try {
173
- return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) }
173
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial( value ) }
174
174
  } catch (e: any) {
175
- throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message)
175
+ throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
176
176
  }
177
177
  },
178
178
 
179
- msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
179
+ msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
180
180
  try {
181
- return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
181
+ return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
182
182
  } catch (e: any) {
183
- throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
183
+ throw new Error('TxClient:MsgVoteWeighted: 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";
2
- import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
3
1
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
4
2
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
3
+ import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
4
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
5
5
  const msgTypes = [
6
- ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
7
- ["/cosmos.gov.v1beta1.MsgVote", MsgVote],
8
6
  ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit],
9
7
  ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
8
+ ["/cosmos.gov.v1beta1.MsgVote", MsgVote],
9
+ ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
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";
3
- import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
4
2
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
5
3
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
4
+ import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
5
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
6
6
 
7
7
  const msgTypes: Array<[string, GeneratedType]> = [
8
- ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
9
- ["/cosmos.gov.v1beta1.MsgVote", MsgVote],
10
8
  ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit],
11
9
  ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
10
+ ["/cosmos.gov.v1beta1.MsgVote", MsgVote],
11
+ ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
12
12
 
13
13
  ];
14
14
 
@@ -146,16 +146,9 @@ export interface V1Beta1Coin {
146
146
  proposal.
147
147
  */
148
148
  export interface V1Beta1Deposit {
149
- /**
150
- * proposal_id defines the unique id of the proposal.
151
- * @format uint64
152
- */
149
+ /** @format uint64 */
153
150
  proposal_id?: string;
154
-
155
- /** depositor defines the deposit addresses from the proposals. */
156
151
  depositor?: string;
157
-
158
- /** amount to be deposited by depositor. */
159
152
  amount?: V1Beta1Coin[];
160
153
  }
161
154
 
@@ -168,7 +161,7 @@ export interface V1Beta1DepositParams {
168
161
 
169
162
  /**
170
163
  * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
171
- * months.
164
+ * months.
172
165
  */
173
166
  max_deposit_period?: string;
174
167
  }
@@ -182,10 +175,7 @@ export type V1Beta1MsgDepositResponse = object;
182
175
  * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
183
176
  */
184
177
  export interface V1Beta1MsgSubmitProposalResponse {
185
- /**
186
- * proposal_id defines the unique id of the proposal.
187
- * @format uint64
188
- */
178
+ /** @format uint64 */
189
179
  proposal_id?: string;
190
180
  }
191
181
 
@@ -277,16 +267,83 @@ export interface V1Beta1PageResponse {
277
267
  * Proposal defines the core field members of a governance proposal.
278
268
  */
279
269
  export interface V1Beta1Proposal {
280
- /**
281
- * proposal_id defines the unique id of the proposal.
282
- * @format uint64
283
- */
270
+ /** @format uint64 */
284
271
  proposal_id?: string;
285
272
 
286
- /** content is the proposal's content. */
273
+ /**
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"
330
+ */
287
331
  content?: ProtobufAny;
288
332
 
289
- /** status defines the proposal status. */
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
+ */
290
347
  status?: V1Beta1ProposalStatus;
291
348
 
292
349
  /**
@@ -296,31 +353,17 @@ export interface V1Beta1Proposal {
296
353
  */
297
354
  final_tally_result?: V1Beta1TallyResult;
298
355
 
299
- /**
300
- * submit_time is the time of proposal submission.
301
- * @format date-time
302
- */
356
+ /** @format date-time */
303
357
  submit_time?: string;
304
358
 
305
- /**
306
- * deposit_end_time is the end time for deposition.
307
- * @format date-time
308
- */
359
+ /** @format date-time */
309
360
  deposit_end_time?: string;
310
-
311
- /** total_deposit is the total deposit on the proposal. */
312
361
  total_deposit?: V1Beta1Coin[];
313
362
 
314
- /**
315
- * voting_start_time is the starting time to vote on a proposal.
316
- * @format date-time
317
- */
363
+ /** @format date-time */
318
364
  voting_start_time?: string;
319
365
 
320
- /**
321
- * voting_end_time is the end time of voting on a proposal.
322
- * @format date-time
323
- */
366
+ /** @format date-time */
324
367
  voting_end_time?: string;
325
368
  }
326
369
 
@@ -360,7 +403,6 @@ export interface V1Beta1QueryDepositResponse {
360
403
  * QueryDepositsResponse is the response type for the Query/Deposits RPC method.
361
404
  */
362
405
  export interface V1Beta1QueryDepositsResponse {
363
- /** deposits defines the requested deposits. */
364
406
  deposits?: V1Beta1Deposit[];
365
407
 
366
408
  /** pagination defines the pagination in the response. */
@@ -394,7 +436,6 @@ export interface V1Beta1QueryProposalResponse {
394
436
  method.
395
437
  */
396
438
  export interface V1Beta1QueryProposalsResponse {
397
- /** proposals defines all the requested governance proposals. */
398
439
  proposals?: V1Beta1Proposal[];
399
440
 
400
441
  /** pagination defines the pagination in the response. */
@@ -413,7 +454,7 @@ export interface V1Beta1QueryTallyResultResponse {
413
454
  * QueryVoteResponse is the response type for the Query/Vote RPC method.
414
455
  */
415
456
  export interface V1Beta1QueryVoteResponse {
416
- /** vote defines the queried vote. */
457
+ /** vote defined the queried vote. */
417
458
  vote?: V1Beta1Vote;
418
459
  }
419
460
 
@@ -421,7 +462,7 @@ export interface V1Beta1QueryVoteResponse {
421
462
  * QueryVotesResponse is the response type for the Query/Votes RPC method.
422
463
  */
423
464
  export interface V1Beta1QueryVotesResponse {
424
- /** votes defines the queried votes. */
465
+ /** votes defined the queried votes. */
425
466
  votes?: V1Beta1Vote[];
426
467
 
427
468
  /** pagination defines the pagination in the response. */
@@ -434,7 +475,7 @@ export interface V1Beta1QueryVotesResponse {
434
475
  export interface V1Beta1TallyParams {
435
476
  /**
436
477
  * Minimum percentage of total stake needed to vote for a result to be
437
- * considered valid.
478
+ * considered valid.
438
479
  * @format byte
439
480
  */
440
481
  quorum?: string;
@@ -447,7 +488,7 @@ export interface V1Beta1TallyParams {
447
488
 
448
489
  /**
449
490
  * Minimum value of Veto votes to Total votes ratio for proposal to be
450
- * vetoed. Default value: 1/3.
491
+ * vetoed. Default value: 1/3.
451
492
  * @format byte
452
493
  */
453
494
  veto_threshold?: string;
@@ -457,16 +498,9 @@ export interface V1Beta1TallyParams {
457
498
  * TallyResult defines a standard tally for a governance proposal.
458
499
  */
459
500
  export interface V1Beta1TallyResult {
460
- /** yes is the number of yes votes on a proposal. */
461
501
  yes?: string;
462
-
463
- /** abstain is the number of abstain votes on a proposal. */
464
502
  abstain?: string;
465
-
466
- /** no is the number of no votes on a proposal. */
467
503
  no?: string;
468
-
469
- /** no_with_veto is the number of no with veto votes on a proposal. */
470
504
  no_with_veto?: string;
471
505
  }
472
506
 
@@ -475,13 +509,8 @@ export interface V1Beta1TallyResult {
475
509
  A Vote consists of a proposal ID, the voter, and the vote option.
476
510
  */
477
511
  export interface V1Beta1Vote {
478
- /**
479
- * proposal_id defines the unique id of the proposal.
480
- * @format uint64
481
- */
512
+ /** @format uint64 */
482
513
  proposal_id?: string;
483
-
484
- /** voter is the voter address of the proposal. */
485
514
  voter?: string;
486
515
 
487
516
  /**
@@ -491,11 +520,7 @@ export interface V1Beta1Vote {
491
520
  */
492
521
  option?: V1Beta1VoteOption;
493
522
 
494
- /**
495
- * options is the weighted vote options.
496
- *
497
- * Since: cosmos-sdk 0.43
498
- */
523
+ /** Since: cosmos-sdk 0.43 */
499
524
  options?: V1Beta1WeightedVoteOption[];
500
525
  }
501
526
 
@@ -520,7 +545,7 @@ export enum V1Beta1VoteOption {
520
545
  * VotingParams defines the params for voting on governance proposals.
521
546
  */
522
547
  export interface V1Beta1VotingParams {
523
- /** Duration of the voting period. */
548
+ /** Length of the voting period. */
524
549
  voting_period?: string;
525
550
  }
526
551
 
@@ -530,10 +555,16 @@ export interface V1Beta1VotingParams {
530
555
  Since: cosmos-sdk 0.43
531
556
  */
532
557
  export interface V1Beta1WeightedVoteOption {
533
- /** option defines the valid vote options, it must not contain duplicate vote options. */
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
+ */
534
567
  option?: V1Beta1VoteOption;
535
-
536
- /** weight is the vote weight associated with the vote option. */
537
568
  weight?: string;
538
569
  }
539
570