decentralcardgame-cardchain-client-ts 0.0.13 → 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 (314) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +357 -334
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +531 -498
  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 -7
  30. package/client.ts +10 -9
  31. package/cosmos.auth.v1beta1/module.js +2 -0
  32. package/cosmos.auth.v1beta1/module.ts +2 -0
  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 +29 -29
  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 +24 -24
  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/rest.js +3 -3
  77. package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
  78. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
  79. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
  80. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
  81. package/cosmos.consensus.v1/index.js +5 -0
  82. package/cosmos.consensus.v1/index.ts +6 -0
  83. package/cosmos.consensus.v1/module.js +81 -0
  84. package/cosmos.consensus.v1/module.ts +129 -0
  85. package/cosmos.consensus.v1/registry.js +5 -0
  86. package/cosmos.consensus.v1/registry.ts +9 -0
  87. package/cosmos.consensus.v1/rest.js +100 -0
  88. package/cosmos.consensus.v1/rest.ts +268 -0
  89. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
  90. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
  91. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
  92. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
  93. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
  94. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
  95. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
  96. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
  97. package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
  98. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
  99. package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
  100. package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
  101. package/cosmos.consensus.v1/types/google/api/http.js +260 -0
  102. package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
  103. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
  104. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
  105. package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
  106. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
  107. package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
  108. package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
  109. package/cosmos.consensus.v1/types.js +1 -0
  110. package/cosmos.consensus.v1/types.ts +5 -0
  111. package/cosmos.crisis.v1beta1/module.js +24 -1
  112. package/cosmos.crisis.v1beta1/module.ts +34 -1
  113. package/cosmos.crisis.v1beta1/registry.js +2 -0
  114. package/cosmos.crisis.v1beta1/registry.ts +2 -0
  115. package/cosmos.crisis.v1beta1/rest.ts +19 -0
  116. package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
  117. package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
  118. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
  119. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
  120. package/cosmos.distribution.v1beta1/module.js +67 -21
  121. package/cosmos.distribution.v1beta1/module.ts +100 -34
  122. package/cosmos.distribution.v1beta1/registry.js +8 -4
  123. package/cosmos.distribution.v1beta1/registry.ts +8 -4
  124. package/cosmos.distribution.v1beta1/rest.js +14 -0
  125. package/cosmos.distribution.v1beta1/rest.ts +66 -7
  126. package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
  127. package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
  128. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
  129. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  130. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
  131. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
  132. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
  133. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
  134. package/cosmos.evidence.v1beta1/rest.js +4 -3
  135. package/cosmos.evidence.v1beta1/rest.ts +4 -3
  136. package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
  137. package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
  138. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
  139. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
  140. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
  141. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
  142. package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
  143. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
  144. package/cosmos.gov.v1/module.js +46 -21
  145. package/cosmos.gov.v1/module.ts +68 -33
  146. package/cosmos.gov.v1/registry.js +6 -4
  147. package/cosmos.gov.v1/registry.ts +6 -4
  148. package/cosmos.gov.v1/rest.ts +155 -41
  149. package/cosmos.gov.v1/types/amino/amino.js +2 -0
  150. package/cosmos.gov.v1/types/amino/amino.ts +2 -0
  151. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
  152. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
  153. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
  154. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
  155. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
  156. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
  157. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
  158. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
  159. package/cosmos.gov.v1/types.js +2 -1
  160. package/cosmos.gov.v1/types.ts +2 -0
  161. package/cosmos.gov.v1beta1/module.js +24 -24
  162. package/cosmos.gov.v1beta1/module.ts +36 -36
  163. package/cosmos.gov.v1beta1/registry.js +4 -4
  164. package/cosmos.gov.v1beta1/registry.ts +4 -4
  165. package/cosmos.gov.v1beta1/rest.ts +65 -96
  166. package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
  167. package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
  168. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  169. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
  170. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
  171. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
  172. package/cosmos.group.v1/module.js +92 -92
  173. package/cosmos.group.v1/module.ts +138 -138
  174. package/cosmos.group.v1/registry.js +16 -16
  175. package/cosmos.group.v1/registry.ts +16 -16
  176. package/cosmos.group.v1/rest.js +3 -3
  177. package/cosmos.group.v1/rest.ts +29 -9
  178. package/cosmos.group.v1/types/amino/amino.js +2 -0
  179. package/cosmos.group.v1/types/amino/amino.ts +2 -0
  180. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  181. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
  182. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
  183. package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
  184. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
  185. package/cosmos.mint.v1beta1/rest.ts +9 -1
  186. package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
  187. package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
  188. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  189. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  190. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
  191. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
  192. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  193. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  194. package/cosmos.nft.v1beta1/rest.ts +18 -22
  195. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
  196. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
  197. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
  198. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  199. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  200. package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
  201. package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
  202. package/cosmos.slashing.v1beta1/rest.ts +8 -0
  203. package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
  204. package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
  205. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  206. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
  207. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
  208. package/cosmos.staking.v1beta1/module.js +41 -39
  209. package/cosmos.staking.v1beta1/module.ts +61 -59
  210. package/cosmos.staking.v1beta1/registry.js +6 -6
  211. package/cosmos.staking.v1beta1/registry.ts +6 -6
  212. package/cosmos.staking.v1beta1/rest.js +7 -7
  213. package/cosmos.staking.v1beta1/rest.ts +49 -8
  214. package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
  215. package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
  216. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
  217. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  218. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  219. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
  220. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
  221. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
  222. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
  223. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
  224. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
  225. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
  226. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
  227. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
  228. package/cosmos.staking.v1beta1/types.js +2 -1
  229. package/cosmos.staking.v1beta1/types.ts +2 -0
  230. package/cosmos.tx.v1beta1/rest.js +66 -2
  231. package/cosmos.tx.v1beta1/rest.ts +177 -16
  232. package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
  233. package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
  234. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
  235. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
  236. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
  237. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
  238. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
  239. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
  240. package/cosmos.upgrade.v1beta1/rest.ts +0 -1
  241. package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
  242. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
  243. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  244. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  245. package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
  246. package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
  247. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  248. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  249. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
  250. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
  251. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
  252. package/ibc.applications.transfer.v1/module.js +5 -27
  253. package/ibc.applications.transfer.v1/module.ts +5 -34
  254. package/ibc.applications.transfer.v1/registry.js +1 -4
  255. package/ibc.applications.transfer.v1/registry.ts +0 -2
  256. package/ibc.applications.transfer.v1/rest.js +15 -1
  257. package/ibc.applications.transfer.v1/rest.ts +30 -1
  258. package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
  259. package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
  260. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  261. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
  262. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
  263. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
  264. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
  265. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
  266. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
  267. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
  268. package/ibc.applications.transfer.v1/types.js +3 -1
  269. package/ibc.applications.transfer.v1/types.ts +4 -0
  270. package/ibc.core.channel.v1/rest.ts +1 -0
  271. package/ibc.core.channel.v1/types/amino/amino.js +2 -0
  272. package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
  273. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  274. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
  275. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
  276. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
  277. package/ibc.core.client.v1/rest.ts +5 -1
  278. package/ibc.core.client.v1/types/amino/amino.js +2 -0
  279. package/ibc.core.client.v1/types/amino/amino.ts +2 -0
  280. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  281. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
  282. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
  283. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
  284. package/ibc.core.connection.v1/types/amino/amino.js +2 -0
  285. package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
  286. package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
  287. package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
  288. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  289. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
  290. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  291. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  292. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
  293. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
  294. package/index.js +3 -1
  295. package/index.ts +3 -1
  296. package/package.json +2 -3
  297. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
  298. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
  299. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
  300. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
  301. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
  302. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
  303. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
  304. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
  305. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
  306. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
  307. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
  308. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
  309. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
  310. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
  311. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
  312. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
  313. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
  314. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.ts} +0 -0
@@ -269,6 +269,9 @@ function createBaseProposal() {
269
269
  votingStartTime: undefined,
270
270
  votingEndTime: undefined,
271
271
  metadata: "",
272
+ title: "",
273
+ summary: "",
274
+ proposer: "",
272
275
  };
273
276
  }
274
277
  export const Proposal = {
@@ -303,6 +306,15 @@ export const Proposal = {
303
306
  if (message.metadata !== "") {
304
307
  writer.uint32(82).string(message.metadata);
305
308
  }
309
+ if (message.title !== "") {
310
+ writer.uint32(90).string(message.title);
311
+ }
312
+ if (message.summary !== "") {
313
+ writer.uint32(98).string(message.summary);
314
+ }
315
+ if (message.proposer !== "") {
316
+ writer.uint32(106).string(message.proposer);
317
+ }
306
318
  return writer;
307
319
  },
308
320
  decode(input, length) {
@@ -342,6 +354,15 @@ export const Proposal = {
342
354
  case 10:
343
355
  message.metadata = reader.string();
344
356
  break;
357
+ case 11:
358
+ message.title = reader.string();
359
+ break;
360
+ case 12:
361
+ message.summary = reader.string();
362
+ break;
363
+ case 13:
364
+ message.proposer = reader.string();
365
+ break;
345
366
  default:
346
367
  reader.skipType(tag & 7);
347
368
  break;
@@ -361,6 +382,9 @@ export const Proposal = {
361
382
  votingStartTime: isSet(object.votingStartTime) ? fromJsonTimestamp(object.votingStartTime) : undefined,
362
383
  votingEndTime: isSet(object.votingEndTime) ? fromJsonTimestamp(object.votingEndTime) : undefined,
363
384
  metadata: isSet(object.metadata) ? String(object.metadata) : "",
385
+ title: isSet(object.title) ? String(object.title) : "",
386
+ summary: isSet(object.summary) ? String(object.summary) : "",
387
+ proposer: isSet(object.proposer) ? String(object.proposer) : "",
364
388
  };
365
389
  },
366
390
  toJSON(message) {
@@ -386,6 +410,9 @@ export const Proposal = {
386
410
  message.votingStartTime !== undefined && (obj.votingStartTime = message.votingStartTime.toISOString());
387
411
  message.votingEndTime !== undefined && (obj.votingEndTime = message.votingEndTime.toISOString());
388
412
  message.metadata !== undefined && (obj.metadata = message.metadata);
413
+ message.title !== undefined && (obj.title = message.title);
414
+ message.summary !== undefined && (obj.summary = message.summary);
415
+ message.proposer !== undefined && (obj.proposer = message.proposer);
389
416
  return obj;
390
417
  },
391
418
  fromPartial(object) {
@@ -402,6 +429,9 @@ export const Proposal = {
402
429
  message.votingStartTime = object.votingStartTime ?? undefined;
403
430
  message.votingEndTime = object.votingEndTime ?? undefined;
404
431
  message.metadata = object.metadata ?? "";
432
+ message.title = object.title ?? "";
433
+ message.summary = object.summary ?? "";
434
+ message.proposer = object.proposer ?? "";
405
435
  return message;
406
436
  },
407
437
  };
@@ -715,6 +745,155 @@ export const TallyParams = {
715
745
  return message;
716
746
  },
717
747
  };
748
+ function createBaseParams() {
749
+ return {
750
+ minDeposit: [],
751
+ maxDepositPeriod: undefined,
752
+ votingPeriod: undefined,
753
+ quorum: "",
754
+ threshold: "",
755
+ vetoThreshold: "",
756
+ minInitialDepositRatio: "",
757
+ burnVoteQuorum: false,
758
+ burnProposalDepositPrevote: false,
759
+ burnVoteVeto: false,
760
+ };
761
+ }
762
+ export const Params = {
763
+ encode(message, writer = _m0.Writer.create()) {
764
+ for (const v of message.minDeposit) {
765
+ Coin.encode(v, writer.uint32(10).fork()).ldelim();
766
+ }
767
+ if (message.maxDepositPeriod !== undefined) {
768
+ Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
769
+ }
770
+ if (message.votingPeriod !== undefined) {
771
+ Duration.encode(message.votingPeriod, writer.uint32(26).fork()).ldelim();
772
+ }
773
+ if (message.quorum !== "") {
774
+ writer.uint32(34).string(message.quorum);
775
+ }
776
+ if (message.threshold !== "") {
777
+ writer.uint32(42).string(message.threshold);
778
+ }
779
+ if (message.vetoThreshold !== "") {
780
+ writer.uint32(50).string(message.vetoThreshold);
781
+ }
782
+ if (message.minInitialDepositRatio !== "") {
783
+ writer.uint32(58).string(message.minInitialDepositRatio);
784
+ }
785
+ if (message.burnVoteQuorum === true) {
786
+ writer.uint32(104).bool(message.burnVoteQuorum);
787
+ }
788
+ if (message.burnProposalDepositPrevote === true) {
789
+ writer.uint32(112).bool(message.burnProposalDepositPrevote);
790
+ }
791
+ if (message.burnVoteVeto === true) {
792
+ writer.uint32(120).bool(message.burnVoteVeto);
793
+ }
794
+ return writer;
795
+ },
796
+ decode(input, length) {
797
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
798
+ let end = length === undefined ? reader.len : reader.pos + length;
799
+ const message = createBaseParams();
800
+ while (reader.pos < end) {
801
+ const tag = reader.uint32();
802
+ switch (tag >>> 3) {
803
+ case 1:
804
+ message.minDeposit.push(Coin.decode(reader, reader.uint32()));
805
+ break;
806
+ case 2:
807
+ message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
808
+ break;
809
+ case 3:
810
+ message.votingPeriod = Duration.decode(reader, reader.uint32());
811
+ break;
812
+ case 4:
813
+ message.quorum = reader.string();
814
+ break;
815
+ case 5:
816
+ message.threshold = reader.string();
817
+ break;
818
+ case 6:
819
+ message.vetoThreshold = reader.string();
820
+ break;
821
+ case 7:
822
+ message.minInitialDepositRatio = reader.string();
823
+ break;
824
+ case 13:
825
+ message.burnVoteQuorum = reader.bool();
826
+ break;
827
+ case 14:
828
+ message.burnProposalDepositPrevote = reader.bool();
829
+ break;
830
+ case 15:
831
+ message.burnVoteVeto = reader.bool();
832
+ break;
833
+ default:
834
+ reader.skipType(tag & 7);
835
+ break;
836
+ }
837
+ }
838
+ return message;
839
+ },
840
+ fromJSON(object) {
841
+ return {
842
+ minDeposit: Array.isArray(object?.minDeposit) ? object.minDeposit.map((e) => Coin.fromJSON(e)) : [],
843
+ maxDepositPeriod: isSet(object.maxDepositPeriod) ? Duration.fromJSON(object.maxDepositPeriod) : undefined,
844
+ votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined,
845
+ quorum: isSet(object.quorum) ? String(object.quorum) : "",
846
+ threshold: isSet(object.threshold) ? String(object.threshold) : "",
847
+ vetoThreshold: isSet(object.vetoThreshold) ? String(object.vetoThreshold) : "",
848
+ minInitialDepositRatio: isSet(object.minInitialDepositRatio) ? String(object.minInitialDepositRatio) : "",
849
+ burnVoteQuorum: isSet(object.burnVoteQuorum) ? Boolean(object.burnVoteQuorum) : false,
850
+ burnProposalDepositPrevote: isSet(object.burnProposalDepositPrevote)
851
+ ? Boolean(object.burnProposalDepositPrevote)
852
+ : false,
853
+ burnVoteVeto: isSet(object.burnVoteVeto) ? Boolean(object.burnVoteVeto) : false,
854
+ };
855
+ },
856
+ toJSON(message) {
857
+ const obj = {};
858
+ if (message.minDeposit) {
859
+ obj.minDeposit = message.minDeposit.map((e) => e ? Coin.toJSON(e) : undefined);
860
+ }
861
+ else {
862
+ obj.minDeposit = [];
863
+ }
864
+ message.maxDepositPeriod !== undefined
865
+ && (obj.maxDepositPeriod = message.maxDepositPeriod ? Duration.toJSON(message.maxDepositPeriod) : undefined);
866
+ message.votingPeriod !== undefined
867
+ && (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined);
868
+ message.quorum !== undefined && (obj.quorum = message.quorum);
869
+ message.threshold !== undefined && (obj.threshold = message.threshold);
870
+ message.vetoThreshold !== undefined && (obj.vetoThreshold = message.vetoThreshold);
871
+ message.minInitialDepositRatio !== undefined && (obj.minInitialDepositRatio = message.minInitialDepositRatio);
872
+ message.burnVoteQuorum !== undefined && (obj.burnVoteQuorum = message.burnVoteQuorum);
873
+ message.burnProposalDepositPrevote !== undefined
874
+ && (obj.burnProposalDepositPrevote = message.burnProposalDepositPrevote);
875
+ message.burnVoteVeto !== undefined && (obj.burnVoteVeto = message.burnVoteVeto);
876
+ return obj;
877
+ },
878
+ fromPartial(object) {
879
+ const message = createBaseParams();
880
+ message.minDeposit = object.minDeposit?.map((e) => Coin.fromPartial(e)) || [];
881
+ message.maxDepositPeriod = (object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null)
882
+ ? Duration.fromPartial(object.maxDepositPeriod)
883
+ : undefined;
884
+ message.votingPeriod = (object.votingPeriod !== undefined && object.votingPeriod !== null)
885
+ ? Duration.fromPartial(object.votingPeriod)
886
+ : undefined;
887
+ message.quorum = object.quorum ?? "";
888
+ message.threshold = object.threshold ?? "";
889
+ message.vetoThreshold = object.vetoThreshold ?? "";
890
+ message.minInitialDepositRatio = object.minInitialDepositRatio ?? "";
891
+ message.burnVoteQuorum = object.burnVoteQuorum ?? false;
892
+ message.burnProposalDepositPrevote = object.burnProposalDepositPrevote ?? false;
893
+ message.burnVoteVeto = object.burnVoteVeto ?? false;
894
+ return message;
895
+ },
896
+ };
718
897
  var globalThis = (() => {
719
898
  if (typeof globalThis !== "undefined") {
720
899
  return globalThis;
@@ -148,7 +148,9 @@ export function proposalStatusToJSON(object: ProposalStatus): string {
148
148
 
149
149
  /** WeightedVoteOption defines a unit of vote for vote split. */
150
150
  export interface WeightedVoteOption {
151
+ /** option defines the valid vote options, it must not contain duplicate vote options. */
151
152
  option: VoteOption;
153
+ /** weight is the vote weight associated with the vote option. */
152
154
  weight: string;
153
155
  }
154
156
 
@@ -157,38 +159,79 @@ export interface WeightedVoteOption {
157
159
  * proposal.
158
160
  */
159
161
  export interface Deposit {
162
+ /** proposal_id defines the unique id of the proposal. */
160
163
  proposalId: number;
164
+ /** depositor defines the deposit addresses from the proposals. */
161
165
  depositor: string;
166
+ /** amount to be deposited by depositor. */
162
167
  amount: Coin[];
163
168
  }
164
169
 
165
170
  /** Proposal defines the core field members of a governance proposal. */
166
171
  export interface Proposal {
172
+ /** id defines the unique id of the proposal. */
167
173
  id: number;
174
+ /** messages are the arbitrary messages to be executed if the proposal passes. */
168
175
  messages: Any[];
176
+ /** status defines the proposal status. */
169
177
  status: ProposalStatus;
170
178
  /**
171
179
  * final_tally_result is the final tally result of the proposal. When
172
180
  * querying a proposal via gRPC, this field is not populated until the
173
181
  * proposal's voting period has ended.
174
182
  */
175
- finalTallyResult: TallyResult | undefined;
176
- submitTime: Date | undefined;
177
- depositEndTime: Date | undefined;
183
+ finalTallyResult:
184
+ | TallyResult
185
+ | undefined;
186
+ /** submit_time is the time of proposal submission. */
187
+ submitTime:
188
+ | Date
189
+ | undefined;
190
+ /** deposit_end_time is the end time for deposition. */
191
+ depositEndTime:
192
+ | Date
193
+ | undefined;
194
+ /** total_deposit is the total deposit on the proposal. */
178
195
  totalDeposit: Coin[];
179
- votingStartTime: Date | undefined;
196
+ /** voting_start_time is the starting time to vote on a proposal. */
197
+ votingStartTime:
198
+ | Date
199
+ | undefined;
200
+ /** voting_end_time is the end time of voting on a proposal. */
180
201
  votingEndTime:
181
202
  | Date
182
203
  | undefined;
183
204
  /** metadata is any arbitrary metadata attached to the proposal. */
184
205
  metadata: string;
206
+ /**
207
+ * title is the title of the proposal
208
+ *
209
+ * Since: cosmos-sdk 0.47
210
+ */
211
+ title: string;
212
+ /**
213
+ * summary is a short summary of the proposal
214
+ *
215
+ * Since: cosmos-sdk 0.47
216
+ */
217
+ summary: string;
218
+ /**
219
+ * Proposer is the address of the proposal sumbitter
220
+ *
221
+ * Since: cosmos-sdk 0.47
222
+ */
223
+ proposer: string;
185
224
  }
186
225
 
187
226
  /** TallyResult defines a standard tally for a governance proposal. */
188
227
  export interface TallyResult {
228
+ /** yes_count is the number of yes votes on a proposal. */
189
229
  yesCount: string;
230
+ /** abstain_count is the number of abstain votes on a proposal. */
190
231
  abstainCount: string;
232
+ /** no_count is the number of no votes on a proposal. */
191
233
  noCount: string;
234
+ /** no_with_veto_count is the number of no with veto votes on a proposal. */
192
235
  noWithVetoCount: string;
193
236
  }
194
237
 
@@ -197,8 +240,11 @@ export interface TallyResult {
197
240
  * A Vote consists of a proposal ID, the voter, and the vote option.
198
241
  */
199
242
  export interface Vote {
243
+ /** proposal_id defines the unique id of the proposal. */
200
244
  proposalId: number;
245
+ /** voter is the voter address of the proposal. */
201
246
  voter: string;
247
+ /** options is the weighted vote options. */
202
248
  options: WeightedVoteOption[];
203
249
  /** metadata is any arbitrary metadata to attached to the vote. */
204
250
  metadata: string;
@@ -210,19 +256,52 @@ export interface DepositParams {
210
256
  minDeposit: Coin[];
211
257
  /**
212
258
  * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
213
- * months.
259
+ * months.
214
260
  */
215
261
  maxDepositPeriod: Duration | undefined;
216
262
  }
217
263
 
218
264
  /** VotingParams defines the params for voting on governance proposals. */
219
265
  export interface VotingParams {
220
- /** Length of the voting period. */
266
+ /** Duration of the voting period. */
221
267
  votingPeriod: Duration | undefined;
222
268
  }
223
269
 
224
270
  /** TallyParams defines the params for tallying votes on governance proposals. */
225
271
  export interface TallyParams {
272
+ /**
273
+ * Minimum percentage of total stake needed to vote for a result to be
274
+ * considered valid.
275
+ */
276
+ quorum: string;
277
+ /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
278
+ threshold: string;
279
+ /**
280
+ * Minimum value of Veto votes to Total votes ratio for proposal to be
281
+ * vetoed. Default value: 1/3.
282
+ */
283
+ vetoThreshold: string;
284
+ }
285
+
286
+ /**
287
+ * Params defines the parameters for the x/gov module.
288
+ *
289
+ * Since: cosmos-sdk 0.47
290
+ */
291
+ export interface Params {
292
+ /** Minimum deposit for a proposal to enter voting period. */
293
+ minDeposit: Coin[];
294
+ /**
295
+ * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
296
+ * months.
297
+ */
298
+ maxDepositPeriod:
299
+ | Duration
300
+ | undefined;
301
+ /** Duration of the voting period. */
302
+ votingPeriod:
303
+ | Duration
304
+ | undefined;
226
305
  /**
227
306
  * Minimum percentage of total stake needed to vote for a result to be
228
307
  * considered valid.
@@ -235,6 +314,14 @@ export interface TallyParams {
235
314
  * vetoed. Default value: 1/3.
236
315
  */
237
316
  vetoThreshold: string;
317
+ /** The ratio representing the proportion of the deposit value that must be paid at proposal submission. */
318
+ minInitialDepositRatio: string;
319
+ /** burn deposits if a proposal does not meet quorum */
320
+ burnVoteQuorum: boolean;
321
+ /** burn deposits if the proposal does not enter voting period */
322
+ burnProposalDepositPrevote: boolean;
323
+ /** burn deposits if quorum with vote type no_veto is met */
324
+ burnVoteVeto: boolean;
238
325
  }
239
326
 
240
327
  function createBaseWeightedVoteOption(): WeightedVoteOption {
@@ -378,6 +465,9 @@ function createBaseProposal(): Proposal {
378
465
  votingStartTime: undefined,
379
466
  votingEndTime: undefined,
380
467
  metadata: "",
468
+ title: "",
469
+ summary: "",
470
+ proposer: "",
381
471
  };
382
472
  }
383
473
 
@@ -413,6 +503,15 @@ export const Proposal = {
413
503
  if (message.metadata !== "") {
414
504
  writer.uint32(82).string(message.metadata);
415
505
  }
506
+ if (message.title !== "") {
507
+ writer.uint32(90).string(message.title);
508
+ }
509
+ if (message.summary !== "") {
510
+ writer.uint32(98).string(message.summary);
511
+ }
512
+ if (message.proposer !== "") {
513
+ writer.uint32(106).string(message.proposer);
514
+ }
416
515
  return writer;
417
516
  },
418
517
 
@@ -453,6 +552,15 @@ export const Proposal = {
453
552
  case 10:
454
553
  message.metadata = reader.string();
455
554
  break;
555
+ case 11:
556
+ message.title = reader.string();
557
+ break;
558
+ case 12:
559
+ message.summary = reader.string();
560
+ break;
561
+ case 13:
562
+ message.proposer = reader.string();
563
+ break;
456
564
  default:
457
565
  reader.skipType(tag & 7);
458
566
  break;
@@ -473,6 +581,9 @@ export const Proposal = {
473
581
  votingStartTime: isSet(object.votingStartTime) ? fromJsonTimestamp(object.votingStartTime) : undefined,
474
582
  votingEndTime: isSet(object.votingEndTime) ? fromJsonTimestamp(object.votingEndTime) : undefined,
475
583
  metadata: isSet(object.metadata) ? String(object.metadata) : "",
584
+ title: isSet(object.title) ? String(object.title) : "",
585
+ summary: isSet(object.summary) ? String(object.summary) : "",
586
+ proposer: isSet(object.proposer) ? String(object.proposer) : "",
476
587
  };
477
588
  },
478
589
 
@@ -497,6 +608,9 @@ export const Proposal = {
497
608
  message.votingStartTime !== undefined && (obj.votingStartTime = message.votingStartTime.toISOString());
498
609
  message.votingEndTime !== undefined && (obj.votingEndTime = message.votingEndTime.toISOString());
499
610
  message.metadata !== undefined && (obj.metadata = message.metadata);
611
+ message.title !== undefined && (obj.title = message.title);
612
+ message.summary !== undefined && (obj.summary = message.summary);
613
+ message.proposer !== undefined && (obj.proposer = message.proposer);
500
614
  return obj;
501
615
  },
502
616
 
@@ -514,6 +628,9 @@ export const Proposal = {
514
628
  message.votingStartTime = object.votingStartTime ?? undefined;
515
629
  message.votingEndTime = object.votingEndTime ?? undefined;
516
630
  message.metadata = object.metadata ?? "";
631
+ message.title = object.title ?? "";
632
+ message.summary = object.summary ?? "";
633
+ message.proposer = object.proposer ?? "";
517
634
  return message;
518
635
  },
519
636
  };
@@ -856,6 +973,160 @@ export const TallyParams = {
856
973
  },
857
974
  };
858
975
 
976
+ function createBaseParams(): Params {
977
+ return {
978
+ minDeposit: [],
979
+ maxDepositPeriod: undefined,
980
+ votingPeriod: undefined,
981
+ quorum: "",
982
+ threshold: "",
983
+ vetoThreshold: "",
984
+ minInitialDepositRatio: "",
985
+ burnVoteQuorum: false,
986
+ burnProposalDepositPrevote: false,
987
+ burnVoteVeto: false,
988
+ };
989
+ }
990
+
991
+ export const Params = {
992
+ encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
993
+ for (const v of message.minDeposit) {
994
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
995
+ }
996
+ if (message.maxDepositPeriod !== undefined) {
997
+ Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
998
+ }
999
+ if (message.votingPeriod !== undefined) {
1000
+ Duration.encode(message.votingPeriod, writer.uint32(26).fork()).ldelim();
1001
+ }
1002
+ if (message.quorum !== "") {
1003
+ writer.uint32(34).string(message.quorum);
1004
+ }
1005
+ if (message.threshold !== "") {
1006
+ writer.uint32(42).string(message.threshold);
1007
+ }
1008
+ if (message.vetoThreshold !== "") {
1009
+ writer.uint32(50).string(message.vetoThreshold);
1010
+ }
1011
+ if (message.minInitialDepositRatio !== "") {
1012
+ writer.uint32(58).string(message.minInitialDepositRatio);
1013
+ }
1014
+ if (message.burnVoteQuorum === true) {
1015
+ writer.uint32(104).bool(message.burnVoteQuorum);
1016
+ }
1017
+ if (message.burnProposalDepositPrevote === true) {
1018
+ writer.uint32(112).bool(message.burnProposalDepositPrevote);
1019
+ }
1020
+ if (message.burnVoteVeto === true) {
1021
+ writer.uint32(120).bool(message.burnVoteVeto);
1022
+ }
1023
+ return writer;
1024
+ },
1025
+
1026
+ decode(input: _m0.Reader | Uint8Array, length?: number): Params {
1027
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1028
+ let end = length === undefined ? reader.len : reader.pos + length;
1029
+ const message = createBaseParams();
1030
+ while (reader.pos < end) {
1031
+ const tag = reader.uint32();
1032
+ switch (tag >>> 3) {
1033
+ case 1:
1034
+ message.minDeposit.push(Coin.decode(reader, reader.uint32()));
1035
+ break;
1036
+ case 2:
1037
+ message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
1038
+ break;
1039
+ case 3:
1040
+ message.votingPeriod = Duration.decode(reader, reader.uint32());
1041
+ break;
1042
+ case 4:
1043
+ message.quorum = reader.string();
1044
+ break;
1045
+ case 5:
1046
+ message.threshold = reader.string();
1047
+ break;
1048
+ case 6:
1049
+ message.vetoThreshold = reader.string();
1050
+ break;
1051
+ case 7:
1052
+ message.minInitialDepositRatio = reader.string();
1053
+ break;
1054
+ case 13:
1055
+ message.burnVoteQuorum = reader.bool();
1056
+ break;
1057
+ case 14:
1058
+ message.burnProposalDepositPrevote = reader.bool();
1059
+ break;
1060
+ case 15:
1061
+ message.burnVoteVeto = reader.bool();
1062
+ break;
1063
+ default:
1064
+ reader.skipType(tag & 7);
1065
+ break;
1066
+ }
1067
+ }
1068
+ return message;
1069
+ },
1070
+
1071
+ fromJSON(object: any): Params {
1072
+ return {
1073
+ minDeposit: Array.isArray(object?.minDeposit) ? object.minDeposit.map((e: any) => Coin.fromJSON(e)) : [],
1074
+ maxDepositPeriod: isSet(object.maxDepositPeriod) ? Duration.fromJSON(object.maxDepositPeriod) : undefined,
1075
+ votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined,
1076
+ quorum: isSet(object.quorum) ? String(object.quorum) : "",
1077
+ threshold: isSet(object.threshold) ? String(object.threshold) : "",
1078
+ vetoThreshold: isSet(object.vetoThreshold) ? String(object.vetoThreshold) : "",
1079
+ minInitialDepositRatio: isSet(object.minInitialDepositRatio) ? String(object.minInitialDepositRatio) : "",
1080
+ burnVoteQuorum: isSet(object.burnVoteQuorum) ? Boolean(object.burnVoteQuorum) : false,
1081
+ burnProposalDepositPrevote: isSet(object.burnProposalDepositPrevote)
1082
+ ? Boolean(object.burnProposalDepositPrevote)
1083
+ : false,
1084
+ burnVoteVeto: isSet(object.burnVoteVeto) ? Boolean(object.burnVoteVeto) : false,
1085
+ };
1086
+ },
1087
+
1088
+ toJSON(message: Params): unknown {
1089
+ const obj: any = {};
1090
+ if (message.minDeposit) {
1091
+ obj.minDeposit = message.minDeposit.map((e) => e ? Coin.toJSON(e) : undefined);
1092
+ } else {
1093
+ obj.minDeposit = [];
1094
+ }
1095
+ message.maxDepositPeriod !== undefined
1096
+ && (obj.maxDepositPeriod = message.maxDepositPeriod ? Duration.toJSON(message.maxDepositPeriod) : undefined);
1097
+ message.votingPeriod !== undefined
1098
+ && (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined);
1099
+ message.quorum !== undefined && (obj.quorum = message.quorum);
1100
+ message.threshold !== undefined && (obj.threshold = message.threshold);
1101
+ message.vetoThreshold !== undefined && (obj.vetoThreshold = message.vetoThreshold);
1102
+ message.minInitialDepositRatio !== undefined && (obj.minInitialDepositRatio = message.minInitialDepositRatio);
1103
+ message.burnVoteQuorum !== undefined && (obj.burnVoteQuorum = message.burnVoteQuorum);
1104
+ message.burnProposalDepositPrevote !== undefined
1105
+ && (obj.burnProposalDepositPrevote = message.burnProposalDepositPrevote);
1106
+ message.burnVoteVeto !== undefined && (obj.burnVoteVeto = message.burnVoteVeto);
1107
+ return obj;
1108
+ },
1109
+
1110
+ fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
1111
+ const message = createBaseParams();
1112
+ message.minDeposit = object.minDeposit?.map((e) => Coin.fromPartial(e)) || [];
1113
+ message.maxDepositPeriod = (object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null)
1114
+ ? Duration.fromPartial(object.maxDepositPeriod)
1115
+ : undefined;
1116
+ message.votingPeriod = (object.votingPeriod !== undefined && object.votingPeriod !== null)
1117
+ ? Duration.fromPartial(object.votingPeriod)
1118
+ : undefined;
1119
+ message.quorum = object.quorum ?? "";
1120
+ message.threshold = object.threshold ?? "";
1121
+ message.vetoThreshold = object.vetoThreshold ?? "";
1122
+ message.minInitialDepositRatio = object.minInitialDepositRatio ?? "";
1123
+ message.burnVoteQuorum = object.burnVoteQuorum ?? false;
1124
+ message.burnProposalDepositPrevote = object.burnProposalDepositPrevote ?? false;
1125
+ message.burnVoteVeto = object.burnVoteVeto ?? false;
1126
+ return message;
1127
+ },
1128
+ };
1129
+
859
1130
  declare var self: any | undefined;
860
1131
  declare var window: any | undefined;
861
1132
  declare var global: any | undefined;
@@ -2,7 +2,7 @@
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
  import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
5
- import { Deposit, DepositParams, Proposal, proposalStatusFromJSON, proposalStatusToJSON, TallyParams, TallyResult, Vote, VotingParams, } from "./gov";
5
+ import { Deposit, DepositParams, Params, Proposal, proposalStatusFromJSON, proposalStatusToJSON, TallyParams, TallyResult, Vote, VotingParams, } from "./gov";
6
6
  export const protobufPackage = "cosmos.gov.v1";
7
7
  function createBaseQueryProposalRequest() {
8
8
  return { proposalId: 0 };
@@ -471,7 +471,7 @@ export const QueryParamsRequest = {
471
471
  },
472
472
  };
473
473
  function createBaseQueryParamsResponse() {
474
- return { votingParams: undefined, depositParams: undefined, tallyParams: undefined };
474
+ return { votingParams: undefined, depositParams: undefined, tallyParams: undefined, params: undefined };
475
475
  }
476
476
  export const QueryParamsResponse = {
477
477
  encode(message, writer = _m0.Writer.create()) {
@@ -484,6 +484,9 @@ export const QueryParamsResponse = {
484
484
  if (message.tallyParams !== undefined) {
485
485
  TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim();
486
486
  }
487
+ if (message.params !== undefined) {
488
+ Params.encode(message.params, writer.uint32(34).fork()).ldelim();
489
+ }
487
490
  return writer;
488
491
  },
489
492
  decode(input, length) {
@@ -502,6 +505,9 @@ export const QueryParamsResponse = {
502
505
  case 3:
503
506
  message.tallyParams = TallyParams.decode(reader, reader.uint32());
504
507
  break;
508
+ case 4:
509
+ message.params = Params.decode(reader, reader.uint32());
510
+ break;
505
511
  default:
506
512
  reader.skipType(tag & 7);
507
513
  break;
@@ -514,6 +520,7 @@ export const QueryParamsResponse = {
514
520
  votingParams: isSet(object.votingParams) ? VotingParams.fromJSON(object.votingParams) : undefined,
515
521
  depositParams: isSet(object.depositParams) ? DepositParams.fromJSON(object.depositParams) : undefined,
516
522
  tallyParams: isSet(object.tallyParams) ? TallyParams.fromJSON(object.tallyParams) : undefined,
523
+ params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
517
524
  };
518
525
  },
519
526
  toJSON(message) {
@@ -524,6 +531,7 @@ export const QueryParamsResponse = {
524
531
  && (obj.depositParams = message.depositParams ? DepositParams.toJSON(message.depositParams) : undefined);
525
532
  message.tallyParams !== undefined
526
533
  && (obj.tallyParams = message.tallyParams ? TallyParams.toJSON(message.tallyParams) : undefined);
534
+ message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
527
535
  return obj;
528
536
  },
529
537
  fromPartial(object) {
@@ -537,6 +545,9 @@ export const QueryParamsResponse = {
537
545
  message.tallyParams = (object.tallyParams !== undefined && object.tallyParams !== null)
538
546
  ? TallyParams.fromPartial(object.tallyParams)
539
547
  : undefined;
548
+ message.params = (object.params !== undefined && object.params !== null)
549
+ ? Params.fromPartial(object.params)
550
+ : undefined;
540
551
  return message;
541
552
  },
542
553
  };