decentralcardgame-cardchain-client-ts 0.0.13 → 0.0.15

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 +5 -6
  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
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
+ import { Params } from "./slashing";
3
4
 
4
5
  export const protobufPackage = "cosmos.slashing.v1beta1";
5
6
 
@@ -12,6 +13,31 @@ export interface MsgUnjail {
12
13
  export interface MsgUnjailResponse {
13
14
  }
14
15
 
16
+ /**
17
+ * MsgUpdateParams is the Msg/UpdateParams request type.
18
+ *
19
+ * Since: cosmos-sdk 0.47
20
+ */
21
+ export interface MsgUpdateParams {
22
+ /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
23
+ authority: string;
24
+ /**
25
+ * params defines the x/slashing parameters to update.
26
+ *
27
+ * NOTE: All parameters must be supplied.
28
+ */
29
+ params: Params | undefined;
30
+ }
31
+
32
+ /**
33
+ * MsgUpdateParamsResponse defines the response structure for executing a
34
+ * MsgUpdateParams message.
35
+ *
36
+ * Since: cosmos-sdk 0.47
37
+ */
38
+ export interface MsgUpdateParamsResponse {
39
+ }
40
+
15
41
  function createBaseMsgUnjail(): MsgUnjail {
16
42
  return { validatorAddr: "" };
17
43
  }
@@ -98,6 +124,105 @@ export const MsgUnjailResponse = {
98
124
  },
99
125
  };
100
126
 
127
+ function createBaseMsgUpdateParams(): MsgUpdateParams {
128
+ return { authority: "", params: undefined };
129
+ }
130
+
131
+ export const MsgUpdateParams = {
132
+ encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
133
+ if (message.authority !== "") {
134
+ writer.uint32(10).string(message.authority);
135
+ }
136
+ if (message.params !== undefined) {
137
+ Params.encode(message.params, writer.uint32(18).fork()).ldelim();
138
+ }
139
+ return writer;
140
+ },
141
+
142
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams {
143
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
144
+ let end = length === undefined ? reader.len : reader.pos + length;
145
+ const message = createBaseMsgUpdateParams();
146
+ while (reader.pos < end) {
147
+ const tag = reader.uint32();
148
+ switch (tag >>> 3) {
149
+ case 1:
150
+ message.authority = reader.string();
151
+ break;
152
+ case 2:
153
+ message.params = Params.decode(reader, reader.uint32());
154
+ break;
155
+ default:
156
+ reader.skipType(tag & 7);
157
+ break;
158
+ }
159
+ }
160
+ return message;
161
+ },
162
+
163
+ fromJSON(object: any): MsgUpdateParams {
164
+ return {
165
+ authority: isSet(object.authority) ? String(object.authority) : "",
166
+ params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
167
+ };
168
+ },
169
+
170
+ toJSON(message: MsgUpdateParams): unknown {
171
+ const obj: any = {};
172
+ message.authority !== undefined && (obj.authority = message.authority);
173
+ message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
174
+ return obj;
175
+ },
176
+
177
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
178
+ const message = createBaseMsgUpdateParams();
179
+ message.authority = object.authority ?? "";
180
+ message.params = (object.params !== undefined && object.params !== null)
181
+ ? Params.fromPartial(object.params)
182
+ : undefined;
183
+ return message;
184
+ },
185
+ };
186
+
187
+ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
188
+ return {};
189
+ }
190
+
191
+ export const MsgUpdateParamsResponse = {
192
+ encode(_: MsgUpdateParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
193
+ return writer;
194
+ },
195
+
196
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse {
197
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
198
+ let end = length === undefined ? reader.len : reader.pos + length;
199
+ const message = createBaseMsgUpdateParamsResponse();
200
+ while (reader.pos < end) {
201
+ const tag = reader.uint32();
202
+ switch (tag >>> 3) {
203
+ default:
204
+ reader.skipType(tag & 7);
205
+ break;
206
+ }
207
+ }
208
+ return message;
209
+ },
210
+
211
+ fromJSON(_: any): MsgUpdateParamsResponse {
212
+ return {};
213
+ },
214
+
215
+ toJSON(_: MsgUpdateParamsResponse): unknown {
216
+ const obj: any = {};
217
+ return obj;
218
+ },
219
+
220
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
221
+ const message = createBaseMsgUpdateParamsResponse();
222
+ return message;
223
+ },
224
+ };
225
+
101
226
  /** Msg defines the slashing Msg service. */
102
227
  export interface Msg {
103
228
  /**
@@ -106,6 +231,13 @@ export interface Msg {
106
231
  * and rewards again.
107
232
  */
108
233
  Unjail(request: MsgUnjail): Promise<MsgUnjailResponse>;
234
+ /**
235
+ * UpdateParams defines a governance operation for updating the x/slashing module
236
+ * parameters. The authority defaults to the x/gov module account.
237
+ *
238
+ * Since: cosmos-sdk 0.47
239
+ */
240
+ UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
109
241
  }
110
242
 
111
243
  export class MsgClientImpl implements Msg {
@@ -113,12 +245,19 @@ export class MsgClientImpl implements Msg {
113
245
  constructor(rpc: Rpc) {
114
246
  this.rpc = rpc;
115
247
  this.Unjail = this.Unjail.bind(this);
248
+ this.UpdateParams = this.UpdateParams.bind(this);
116
249
  }
117
250
  Unjail(request: MsgUnjail): Promise<MsgUnjailResponse> {
118
251
  const data = MsgUnjail.encode(request).finish();
119
252
  const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", data);
120
253
  return promise.then((data) => MsgUnjailResponse.decode(new _m0.Reader(data)));
121
254
  }
255
+
256
+ UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
257
+ const data = MsgUpdateParams.encode(request).finish();
258
+ const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "UpdateParams", data);
259
+ return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
260
+ }
122
261
  }
123
262
 
124
263
  interface Rpc {
@@ -3,12 +3,12 @@ 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 { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
7
6
  import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
8
- import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
9
7
  import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
10
- import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
8
+ import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
11
9
  import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
10
+ import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
11
+ import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
12
12
  import { StakeAuthorization as typeStakeAuthorization } from "./types";
13
13
  import { StakeAuthorization_Validators as typeStakeAuthorization_Validators } from "./types";
14
14
  import { LastValidatorPower as typeLastValidatorPower } from "./types";
@@ -32,7 +32,8 @@ import { DelegationResponse as typeDelegationResponse } from "./types";
32
32
  import { RedelegationEntryResponse as typeRedelegationEntryResponse } from "./types";
33
33
  import { RedelegationResponse as typeRedelegationResponse } from "./types";
34
34
  import { Pool as typePool } from "./types";
35
- export { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation };
35
+ import { ValidatorUpdates as typeValidatorUpdates } from "./types";
36
+ export { MsgEditValidator, MsgBeginRedelegate, MsgDelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgUndelegate };
36
37
  export const registry = new Registry(msgTypes);
37
38
  function getStructure(template) {
38
39
  const structure = { fields: [] };
@@ -48,32 +49,32 @@ const defaultFee = {
48
49
  };
49
50
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
50
51
  return {
51
- async sendMsgCreateValidator({ value, fee, memo }) {
52
+ async sendMsgEditValidator({ value, fee, memo }) {
52
53
  if (!signer) {
53
- throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.');
54
+ throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.');
54
55
  }
55
56
  try {
56
57
  const { address } = (await signer.getAccounts())[0];
57
58
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
58
- let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) });
59
+ let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) });
59
60
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
60
61
  }
61
62
  catch (e) {
62
- throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message);
63
+ throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
63
64
  }
64
65
  },
65
- async sendMsgEditValidator({ value, fee, memo }) {
66
+ async sendMsgBeginRedelegate({ value, fee, memo }) {
66
67
  if (!signer) {
67
- throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.');
68
+ throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.');
68
69
  }
69
70
  try {
70
71
  const { address } = (await signer.getAccounts())[0];
71
72
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
72
- let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) });
73
+ let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) });
73
74
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
74
75
  }
75
76
  catch (e) {
76
- throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
77
+ throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message);
77
78
  }
78
79
  },
79
80
  async sendMsgDelegate({ value, fee, memo }) {
@@ -90,62 +91,62 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
90
91
  throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message);
91
92
  }
92
93
  },
93
- async sendMsgBeginRedelegate({ value, fee, memo }) {
94
+ async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
94
95
  if (!signer) {
95
- throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.');
96
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.');
96
97
  }
97
98
  try {
98
99
  const { address } = (await signer.getAccounts())[0];
99
100
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
100
- let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) });
101
+ let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) });
101
102
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
102
103
  }
103
104
  catch (e) {
104
- throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message);
105
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
105
106
  }
106
107
  },
107
- async sendMsgUndelegate({ value, fee, memo }) {
108
+ async sendMsgCreateValidator({ value, fee, memo }) {
108
109
  if (!signer) {
109
- throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.');
110
+ throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.');
110
111
  }
111
112
  try {
112
113
  const { address } = (await signer.getAccounts())[0];
113
114
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
114
- let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) });
115
+ let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) });
115
116
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
116
117
  }
117
118
  catch (e) {
118
- throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: ' + e.message);
119
+ throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message);
119
120
  }
120
121
  },
121
- async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
122
+ async sendMsgUndelegate({ value, fee, memo }) {
122
123
  if (!signer) {
123
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.');
124
+ throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.');
124
125
  }
125
126
  try {
126
127
  const { address } = (await signer.getAccounts())[0];
127
128
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
128
- let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) });
129
+ let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) });
129
130
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
130
131
  }
131
132
  catch (e) {
132
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
133
+ throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: ' + e.message);
133
134
  }
134
135
  },
135
- msgCreateValidator({ value }) {
136
+ msgEditValidator({ value }) {
136
137
  try {
137
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) };
138
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
138
139
  }
139
140
  catch (e) {
140
- throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message);
141
+ throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
141
142
  }
142
143
  },
143
- msgEditValidator({ value }) {
144
+ msgBeginRedelegate({ value }) {
144
145
  try {
145
- return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
146
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) };
146
147
  }
147
148
  catch (e) {
148
- throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
149
+ throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message);
149
150
  }
150
151
  },
151
152
  msgDelegate({ value }) {
@@ -156,28 +157,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
156
157
  throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message);
157
158
  }
158
159
  },
159
- msgBeginRedelegate({ value }) {
160
+ msgCancelUnbondingDelegation({ value }) {
160
161
  try {
161
- return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) };
162
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
162
163
  }
163
164
  catch (e) {
164
- throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message);
165
+ throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message);
165
166
  }
166
167
  },
167
- msgUndelegate({ value }) {
168
+ msgCreateValidator({ value }) {
168
169
  try {
169
- return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) };
170
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) };
170
171
  }
171
172
  catch (e) {
172
- throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message);
173
+ throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message);
173
174
  }
174
175
  },
175
- msgCancelUnbondingDelegation({ value }) {
176
+ msgUndelegate({ value }) {
176
177
  try {
177
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
178
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) };
178
179
  }
179
180
  catch (e) {
180
- throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message);
181
+ throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message);
181
182
  }
182
183
  },
183
184
  };
@@ -214,6 +215,7 @@ class SDKModule {
214
215
  RedelegationEntryResponse: getStructure(typeRedelegationEntryResponse.fromPartial({})),
215
216
  RedelegationResponse: getStructure(typeRedelegationResponse.fromPartial({})),
216
217
  Pool: getStructure(typePool.fromPartial({})),
218
+ ValidatorUpdates: getStructure(typeValidatorUpdates.fromPartial({})),
217
219
  };
218
220
  client.on('signer-changed', (signer) => {
219
221
  this.updateTX(client);
@@ -7,12 +7,12 @@ import { msgTypes } from './registry';
7
7
  import { IgniteClient } from "../client"
8
8
  import { MissingWalletError } from "../helpers"
9
9
  import { Api } from "./rest";
10
- import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
11
10
  import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
12
- import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
13
11
  import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
14
- import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
12
+ import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
15
13
  import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
14
+ import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
15
+ import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
16
16
 
17
17
  import { StakeAuthorization as typeStakeAuthorization} from "./types"
18
18
  import { StakeAuthorization_Validators as typeStakeAuthorization_Validators} from "./types"
@@ -37,17 +37,18 @@ import { DelegationResponse as typeDelegationResponse} from "./types"
37
37
  import { RedelegationEntryResponse as typeRedelegationEntryResponse} from "./types"
38
38
  import { RedelegationResponse as typeRedelegationResponse} from "./types"
39
39
  import { Pool as typePool} from "./types"
40
+ import { ValidatorUpdates as typeValidatorUpdates} from "./types"
40
41
 
41
- export { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation };
42
+ export { MsgEditValidator, MsgBeginRedelegate, MsgDelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgUndelegate };
42
43
 
43
- type sendMsgCreateValidatorParams = {
44
- value: MsgCreateValidator,
44
+ type sendMsgEditValidatorParams = {
45
+ value: MsgEditValidator,
45
46
  fee?: StdFee,
46
47
  memo?: string
47
48
  };
48
49
 
49
- type sendMsgEditValidatorParams = {
50
- value: MsgEditValidator,
50
+ type sendMsgBeginRedelegateParams = {
51
+ value: MsgBeginRedelegate,
51
52
  fee?: StdFee,
52
53
  memo?: string
53
54
  };
@@ -58,49 +59,49 @@ type sendMsgDelegateParams = {
58
59
  memo?: string
59
60
  };
60
61
 
61
- type sendMsgBeginRedelegateParams = {
62
- value: MsgBeginRedelegate,
62
+ type sendMsgCancelUnbondingDelegationParams = {
63
+ value: MsgCancelUnbondingDelegation,
63
64
  fee?: StdFee,
64
65
  memo?: string
65
66
  };
66
67
 
67
- type sendMsgUndelegateParams = {
68
- value: MsgUndelegate,
68
+ type sendMsgCreateValidatorParams = {
69
+ value: MsgCreateValidator,
69
70
  fee?: StdFee,
70
71
  memo?: string
71
72
  };
72
73
 
73
- type sendMsgCancelUnbondingDelegationParams = {
74
- value: MsgCancelUnbondingDelegation,
74
+ type sendMsgUndelegateParams = {
75
+ value: MsgUndelegate,
75
76
  fee?: StdFee,
76
77
  memo?: string
77
78
  };
78
79
 
79
80
 
80
- type msgCreateValidatorParams = {
81
- value: MsgCreateValidator,
82
- };
83
-
84
81
  type msgEditValidatorParams = {
85
82
  value: MsgEditValidator,
86
83
  };
87
84
 
88
- type msgDelegateParams = {
89
- value: MsgDelegate,
90
- };
91
-
92
85
  type msgBeginRedelegateParams = {
93
86
  value: MsgBeginRedelegate,
94
87
  };
95
88
 
96
- type msgUndelegateParams = {
97
- value: MsgUndelegate,
89
+ type msgDelegateParams = {
90
+ value: MsgDelegate,
98
91
  };
99
92
 
100
93
  type msgCancelUnbondingDelegationParams = {
101
94
  value: MsgCancelUnbondingDelegation,
102
95
  };
103
96
 
97
+ type msgCreateValidatorParams = {
98
+ value: MsgCreateValidator,
99
+ };
100
+
101
+ type msgUndelegateParams = {
102
+ value: MsgUndelegate,
103
+ };
104
+
104
105
 
105
106
  export const registry = new Registry(msgTypes);
106
107
 
@@ -131,31 +132,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
131
132
 
132
133
  return {
133
134
 
134
- async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise<DeliverTxResponse> {
135
+ async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
135
136
  if (!signer) {
136
- throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.')
137
+ throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.')
137
138
  }
138
139
  try {
139
140
  const { address } = (await signer.getAccounts())[0];
140
141
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
141
- let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) })
142
+ let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) })
142
143
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
143
144
  } catch (e: any) {
144
- throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message)
145
+ throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message)
145
146
  }
146
147
  },
147
148
 
148
- async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
149
+ async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise<DeliverTxResponse> {
149
150
  if (!signer) {
150
- throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.')
151
+ throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.')
151
152
  }
152
153
  try {
153
154
  const { address } = (await signer.getAccounts())[0];
154
155
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
155
- let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) })
156
+ let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) })
156
157
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
157
158
  } catch (e: any) {
158
- throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message)
159
+ throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message)
159
160
  }
160
161
  },
161
162
 
@@ -173,62 +174,62 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
173
174
  }
174
175
  },
175
176
 
176
- async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise<DeliverTxResponse> {
177
+ async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
177
178
  if (!signer) {
178
- throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.')
179
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.')
179
180
  }
180
181
  try {
181
182
  const { address } = (await signer.getAccounts())[0];
182
183
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
183
- let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) })
184
+ let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) })
184
185
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
185
186
  } catch (e: any) {
186
- throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message)
187
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message)
187
188
  }
188
189
  },
189
190
 
190
- async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise<DeliverTxResponse> {
191
+ async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise<DeliverTxResponse> {
191
192
  if (!signer) {
192
- throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.')
193
+ throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.')
193
194
  }
194
195
  try {
195
196
  const { address } = (await signer.getAccounts())[0];
196
197
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
197
- let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) })
198
+ let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) })
198
199
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
199
200
  } catch (e: any) {
200
- throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: '+ e.message)
201
+ throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message)
201
202
  }
202
203
  },
203
204
 
204
- async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
205
+ async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise<DeliverTxResponse> {
205
206
  if (!signer) {
206
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.')
207
+ throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.')
207
208
  }
208
209
  try {
209
210
  const { address } = (await signer.getAccounts())[0];
210
211
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
211
- let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) })
212
+ let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) })
212
213
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
213
214
  } catch (e: any) {
214
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message)
215
+ throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: '+ e.message)
215
216
  }
216
217
  },
217
218
 
218
219
 
219
- msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject {
220
+ msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
220
221
  try {
221
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) }
222
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
222
223
  } catch (e: any) {
223
- throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message)
224
+ throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message)
224
225
  }
225
226
  },
226
227
 
227
- msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
228
+ msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject {
228
229
  try {
229
- return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
230
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) }
230
231
  } catch (e: any) {
231
- throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message)
232
+ throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message)
232
233
  }
233
234
  },
234
235
 
@@ -240,27 +241,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
240
241
  }
241
242
  },
242
243
 
243
- msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject {
244
+ msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
244
245
  try {
245
- return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) }
246
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
246
247
  } catch (e: any) {
247
- throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message)
248
+ throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message)
248
249
  }
249
250
  },
250
251
 
251
- msgUndelegate({ value }: msgUndelegateParams): EncodeObject {
252
+ msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject {
252
253
  try {
253
- return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) }
254
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) }
254
255
  } catch (e: any) {
255
- throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message)
256
+ throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message)
256
257
  }
257
258
  },
258
259
 
259
- msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
260
+ msgUndelegate({ value }: msgUndelegateParams): EncodeObject {
260
261
  try {
261
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
262
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) }
262
263
  } catch (e: any) {
263
- throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message)
264
+ throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message)
264
265
  }
265
266
  },
266
267
 
@@ -309,6 +310,7 @@ class SDKModule {
309
310
  RedelegationEntryResponse: getStructure(typeRedelegationEntryResponse.fromPartial({})),
310
311
  RedelegationResponse: getStructure(typeRedelegationResponse.fromPartial({})),
311
312
  Pool: getStructure(typePool.fromPartial({})),
313
+ ValidatorUpdates: getStructure(typeValidatorUpdates.fromPartial({})),
312
314
 
313
315
  };
314
316
  client.on('signer-changed',(signer) => {