decentralcardgame-cardchain-client-ts 0.0.11 → 0.0.12

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 (316) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +350 -327
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +517 -484
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +74 -72
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +74 -72
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +12 -1
  7. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.js +1 -1
  8. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.ts +1 -1
  9. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.js +101 -3
  10. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.ts +103 -3
  11. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.js +10 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.ts +11 -0
  13. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.js +2 -4
  14. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.ts +2 -4
  15. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.js +190 -122
  16. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.ts +220 -144
  17. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.js +1 -1
  18. package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.ts +1 -1
  19. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.js +346 -0
  20. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.ts +417 -0
  21. package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
  22. package/DecentralCardGame.cardchain.cardchain/types.ts +25 -25
  23. package/client.js +8 -8
  24. package/client.ts +11 -12
  25. package/cosmos.auth.v1beta1/module.js +0 -2
  26. package/cosmos.auth.v1beta1/module.ts +0 -2
  27. package/cosmos.auth.v1beta1/rest.js +3 -18
  28. package/cosmos.auth.v1beta1/rest.ts +3 -113
  29. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  30. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  31. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  32. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
  33. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
  34. package/cosmos.auth.v1beta1/types.js +1 -2
  35. package/cosmos.auth.v1beta1/types.ts +0 -2
  36. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  37. package/cosmos.bank.v1beta1/rest.js +6 -37
  38. package/cosmos.bank.v1beta1/rest.ts +6 -99
  39. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
  40. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
  41. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
  42. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
  43. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
  44. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
  45. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
  46. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
  47. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
  48. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  49. package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
  50. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
  51. package/cosmos.crisis.v1beta1/module.js +1 -24
  52. package/cosmos.crisis.v1beta1/module.ts +1 -34
  53. package/cosmos.crisis.v1beta1/registry.js +0 -2
  54. package/cosmos.crisis.v1beta1/registry.ts +0 -2
  55. package/cosmos.crisis.v1beta1/rest.ts +0 -19
  56. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
  57. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
  58. package/cosmos.distribution.v1beta1/module.js +9 -55
  59. package/cosmos.distribution.v1beta1/module.ts +13 -79
  60. package/cosmos.distribution.v1beta1/registry.js +2 -6
  61. package/cosmos.distribution.v1beta1/registry.ts +2 -6
  62. package/cosmos.distribution.v1beta1/rest.js +0 -14
  63. package/cosmos.distribution.v1beta1/rest.ts +7 -66
  64. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
  65. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  66. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
  67. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
  68. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
  69. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
  70. package/cosmos.evidence.v1beta1/rest.js +3 -4
  71. package/cosmos.evidence.v1beta1/rest.ts +3 -4
  72. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
  73. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
  74. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
  75. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
  76. package/cosmos.gov.v1/module.js +9 -34
  77. package/cosmos.gov.v1/module.ts +13 -48
  78. package/cosmos.gov.v1/registry.js +2 -4
  79. package/cosmos.gov.v1/registry.ts +2 -4
  80. package/cosmos.gov.v1/rest.ts +41 -155
  81. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
  82. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
  83. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
  84. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
  85. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
  86. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
  87. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
  88. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
  89. package/cosmos.gov.v1/types.js +1 -2
  90. package/cosmos.gov.v1/types.ts +0 -2
  91. package/cosmos.gov.v1beta1/module.js +31 -31
  92. package/cosmos.gov.v1beta1/module.ts +47 -47
  93. package/cosmos.gov.v1beta1/registry.js +4 -4
  94. package/cosmos.gov.v1beta1/registry.ts +4 -4
  95. package/cosmos.gov.v1beta1/rest.ts +96 -65
  96. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  97. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
  98. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
  99. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
  100. package/cosmos.group.v1/module.js +104 -104
  101. package/cosmos.group.v1/module.ts +155 -155
  102. package/cosmos.group.v1/registry.js +18 -18
  103. package/cosmos.group.v1/registry.ts +18 -18
  104. package/cosmos.group.v1/rest.js +3 -3
  105. package/cosmos.group.v1/rest.ts +9 -29
  106. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  107. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
  108. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
  109. package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
  110. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
  111. package/cosmos.mint.v1beta1/rest.ts +1 -9
  112. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  113. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  114. package/cosmos.nft.v1beta1/rest.ts +22 -18
  115. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
  116. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
  117. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
  118. package/cosmos.slashing.v1beta1/rest.ts +0 -8
  119. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  120. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
  121. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
  122. package/cosmos.staking.v1beta1/module.js +40 -42
  123. package/cosmos.staking.v1beta1/module.ts +60 -62
  124. package/cosmos.staking.v1beta1/registry.js +8 -8
  125. package/cosmos.staking.v1beta1/registry.ts +8 -8
  126. package/cosmos.staking.v1beta1/rest.js +7 -7
  127. package/cosmos.staking.v1beta1/rest.ts +8 -49
  128. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  129. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
  130. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
  131. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
  132. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
  133. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
  134. package/cosmos.staking.v1beta1/types.js +1 -2
  135. package/cosmos.staking.v1beta1/types.ts +0 -2
  136. package/cosmos.tx.v1beta1/rest.js +2 -66
  137. package/cosmos.tx.v1beta1/rest.ts +16 -177
  138. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
  139. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
  140. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
  141. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
  142. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
  143. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
  144. package/cosmos.upgrade.v1beta1/rest.ts +1 -0
  145. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  146. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  147. package/cosmos.vesting.v1beta1/module.js +16 -16
  148. package/cosmos.vesting.v1beta1/module.ts +24 -24
  149. package/cosmos.vesting.v1beta1/registry.js +2 -2
  150. package/cosmos.vesting.v1beta1/registry.ts +2 -2
  151. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  152. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  153. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
  154. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
  155. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
  156. package/ibc.applications.transfer.v1/module.js +27 -5
  157. package/ibc.applications.transfer.v1/module.ts +34 -5
  158. package/ibc.applications.transfer.v1/registry.js +4 -1
  159. package/ibc.applications.transfer.v1/registry.ts +2 -0
  160. package/ibc.applications.transfer.v1/rest.js +1 -15
  161. package/ibc.applications.transfer.v1/rest.ts +1 -30
  162. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  163. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
  164. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
  165. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
  166. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
  167. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
  168. package/ibc.applications.transfer.v1/types.js +1 -3
  169. package/ibc.applications.transfer.v1/types.ts +0 -4
  170. package/ibc.core.channel.v1/rest.ts +0 -1
  171. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  172. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
  173. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
  174. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
  175. package/ibc.core.client.v1/rest.ts +1 -5
  176. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  177. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
  178. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
  179. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
  180. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  181. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
  182. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  183. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  184. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -26
  185. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
  186. package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.js → proofs.js} +1 -1
  187. package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.ts → proofs.ts} +1 -1
  188. package/index.js +1 -3
  189. package/index.ts +1 -3
  190. package/package.json +1 -1
  191. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.js +0 -84
  192. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.ts +0 -114
  193. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.js +0 -127
  194. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.ts +0 -161
  195. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.js +0 -148
  196. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.ts +0 -182
  197. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +0 -2
  198. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +0 -2
  199. package/cosmos.auth.v1beta1/types/amino/amino.js +0 -2
  200. package/cosmos.auth.v1beta1/types/amino/amino.ts +0 -2
  201. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +0 -105
  202. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +0 -172
  203. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
  204. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
  205. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +0 -2
  206. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +0 -2
  207. package/cosmos.authz.v1beta1/types/amino/amino.js +0 -2
  208. package/cosmos.authz.v1beta1/types/amino/amino.ts +0 -2
  209. package/cosmos.bank.v1beta1/types/amino/amino.js +0 -2
  210. package/cosmos.bank.v1beta1/types/amino/amino.ts +0 -2
  211. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +0 -2
  212. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +0 -2
  213. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +0 -2
  214. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +0 -2
  215. package/cosmos.consensus.v1/index.js +0 -5
  216. package/cosmos.consensus.v1/index.ts +0 -6
  217. package/cosmos.consensus.v1/module.js +0 -81
  218. package/cosmos.consensus.v1/module.ts +0 -129
  219. package/cosmos.consensus.v1/registry.js +0 -5
  220. package/cosmos.consensus.v1/registry.ts +0 -9
  221. package/cosmos.consensus.v1/rest.js +0 -100
  222. package/cosmos.consensus.v1/rest.ts +0 -268
  223. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +0 -94
  224. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +0 -147
  225. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +0 -129
  226. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +0 -196
  227. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +0 -2
  228. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +0 -2
  229. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +0 -171
  230. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +0 -247
  231. package/cosmos.consensus.v1/types/gogoproto/gogo.js +0 -2
  232. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +0 -2
  233. package/cosmos.consensus.v1/types/google/api/annotations.js +0 -2
  234. package/cosmos.consensus.v1/types/google/api/annotations.ts +0 -2
  235. package/cosmos.consensus.v1/types/google/api/http.js +0 -260
  236. package/cosmos.consensus.v1/types/google/api/http.ts +0 -589
  237. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +0 -2830
  238. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +0 -3753
  239. package/cosmos.consensus.v1/types/google/protobuf/duration.js +0 -84
  240. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +0 -187
  241. package/cosmos.consensus.v1/types/tendermint/types/params.js +0 -369
  242. package/cosmos.consensus.v1/types/tendermint/types/params.ts +0 -498
  243. package/cosmos.consensus.v1/types.js +0 -1
  244. package/cosmos.consensus.v1/types.ts +0 -5
  245. package/cosmos.crisis.v1beta1/types/amino/amino.js +0 -2
  246. package/cosmos.crisis.v1beta1/types/amino/amino.ts +0 -2
  247. package/cosmos.distribution.v1beta1/types/amino/amino.js +0 -2
  248. package/cosmos.distribution.v1beta1/types/amino/amino.ts +0 -2
  249. package/cosmos.evidence.v1beta1/types/amino/amino.js +0 -2
  250. package/cosmos.evidence.v1beta1/types/amino/amino.ts +0 -2
  251. package/cosmos.feegrant.v1beta1/types/amino/amino.js +0 -2
  252. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +0 -2
  253. package/cosmos.gov.v1/types/amino/amino.js +0 -2
  254. package/cosmos.gov.v1/types/amino/amino.ts +0 -2
  255. package/cosmos.gov.v1beta1/types/amino/amino.js +0 -2
  256. package/cosmos.gov.v1beta1/types/amino/amino.ts +0 -2
  257. package/cosmos.group.v1/types/amino/amino.js +0 -2
  258. package/cosmos.group.v1/types/amino/amino.ts +0 -2
  259. package/cosmos.mint.v1beta1/types/amino/amino.js +0 -2
  260. package/cosmos.mint.v1beta1/types/amino/amino.ts +0 -2
  261. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +0 -105
  262. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +0 -172
  263. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
  264. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
  265. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +0 -171
  266. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +0 -247
  267. package/cosmos.params.v1beta1/types/amino/amino.js +0 -2
  268. package/cosmos.params.v1beta1/types/amino/amino.ts +0 -2
  269. package/cosmos.slashing.v1beta1/types/amino/amino.js +0 -2
  270. package/cosmos.slashing.v1beta1/types/amino/amino.ts +0 -2
  271. package/cosmos.staking.v1beta1/types/amino/amino.js +0 -2
  272. package/cosmos.staking.v1beta1/types/amino/amino.ts +0 -2
  273. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +0 -2
  274. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +0 -2
  275. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +0 -3812
  276. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +0 -4525
  277. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +0 -369
  278. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +0 -498
  279. package/cosmos.tx.v1beta1/types/amino/amino.js +0 -2
  280. package/cosmos.tx.v1beta1/types/amino/amino.ts +0 -2
  281. package/cosmos.upgrade.v1beta1/types/amino/amino.js +0 -2
  282. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +0 -2
  283. package/cosmos.vesting.v1beta1/types/amino/amino.js +0 -2
  284. package/cosmos.vesting.v1beta1/types/amino/amino.ts +0 -2
  285. package/ibc.applications.transfer.v1/types/amino/amino.js +0 -2
  286. package/ibc.applications.transfer.v1/types/amino/amino.ts +0 -2
  287. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +0 -135
  288. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +0 -178
  289. package/ibc.core.channel.v1/types/amino/amino.js +0 -2
  290. package/ibc.core.channel.v1/types/amino/amino.ts +0 -2
  291. package/ibc.core.client.v1/types/amino/amino.js +0 -2
  292. package/ibc.core.client.v1/types/amino/amino.ts +0 -2
  293. package/ibc.core.connection.v1/types/amino/amino.js +0 -2
  294. package/ibc.core.connection.v1/types/amino/amino.ts +0 -2
  295. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.js +0 -0
  296. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.ts +0 -0
  297. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.js +0 -0
  298. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.ts +0 -0
  299. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.js +0 -0
  300. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.ts +0 -0
  301. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.js +0 -0
  302. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.ts +0 -0
  303. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.js +0 -0
  304. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.ts +0 -0
  305. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.js +0 -0
  306. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.ts +0 -0
  307. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.js +0 -0
  308. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.ts +0 -0
  309. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.js +0 -0
  310. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.ts +0 -0
  311. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.js +0 -0
  312. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.ts +0 -0
  313. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.js +0 -0
  314. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.ts +0 -0
  315. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.js +0 -0
  316. /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.ts +0 -0
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params } from "./slashing";
4
3
 
5
4
  export const protobufPackage = "cosmos.slashing.v1beta1";
6
5
 
@@ -13,31 +12,6 @@ export interface MsgUnjail {
13
12
  export interface MsgUnjailResponse {
14
13
  }
15
14
 
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
-
41
15
  function createBaseMsgUnjail(): MsgUnjail {
42
16
  return { validatorAddr: "" };
43
17
  }
@@ -124,105 +98,6 @@ export const MsgUnjailResponse = {
124
98
  },
125
99
  };
126
100
 
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
-
226
101
  /** Msg defines the slashing Msg service. */
227
102
  export interface Msg {
228
103
  /**
@@ -231,13 +106,6 @@ export interface Msg {
231
106
  * and rewards again.
232
107
  */
233
108
  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>;
241
109
  }
242
110
 
243
111
  export class MsgClientImpl implements Msg {
@@ -245,19 +113,12 @@ export class MsgClientImpl implements Msg {
245
113
  constructor(rpc: Rpc) {
246
114
  this.rpc = rpc;
247
115
  this.Unjail = this.Unjail.bind(this);
248
- this.UpdateParams = this.UpdateParams.bind(this);
249
116
  }
250
117
  Unjail(request: MsgUnjail): Promise<MsgUnjailResponse> {
251
118
  const data = MsgUnjail.encode(request).finish();
252
119
  const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", data);
253
120
  return promise.then((data) => MsgUnjailResponse.decode(new _m0.Reader(data)));
254
121
  }
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
- }
261
122
  }
262
123
 
263
124
  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 { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
7
- import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
8
- import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
9
- import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
10
6
  import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
7
+ import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
11
8
  import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
9
+ import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
10
+ import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
11
+ import { MsgCancelUnbondingDelegation } 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,8 +32,7 @@ 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
- import { ValidatorUpdates as typeValidatorUpdates } from "./types";
36
- export { MsgUndelegate, MsgCancelUnbondingDelegation, MsgEditValidator, MsgBeginRedelegate, MsgCreateValidator, MsgDelegate };
35
+ export { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation };
37
36
  export const registry = new Registry(msgTypes);
38
37
  function getStructure(template) {
39
38
  const structure = { fields: [] };
@@ -49,46 +48,46 @@ const defaultFee = {
49
48
  };
50
49
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
51
50
  return {
52
- async sendMsgUndelegate({ value, fee, memo }) {
51
+ async sendMsgCreateValidator({ value, fee, memo }) {
53
52
  if (!signer) {
54
- throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.');
53
+ throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.');
55
54
  }
56
55
  try {
57
56
  const { address } = (await signer.getAccounts())[0];
58
57
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
59
- let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) });
58
+ let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) });
60
59
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
61
60
  }
62
61
  catch (e) {
63
- throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: ' + e.message);
62
+ throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message);
64
63
  }
65
64
  },
66
- async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
65
+ async sendMsgEditValidator({ value, fee, memo }) {
67
66
  if (!signer) {
68
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.');
67
+ throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.');
69
68
  }
70
69
  try {
71
70
  const { address } = (await signer.getAccounts())[0];
72
71
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
73
- let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) });
72
+ let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) });
74
73
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
75
74
  }
76
75
  catch (e) {
77
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
76
+ throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
78
77
  }
79
78
  },
80
- async sendMsgEditValidator({ value, fee, memo }) {
79
+ async sendMsgDelegate({ value, fee, memo }) {
81
80
  if (!signer) {
82
- throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.');
81
+ throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.');
83
82
  }
84
83
  try {
85
84
  const { address } = (await signer.getAccounts())[0];
86
85
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
87
- let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) });
86
+ let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) });
88
87
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
89
88
  }
90
89
  catch (e) {
91
- throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
90
+ throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message);
92
91
  }
93
92
  },
94
93
  async sendMsgBeginRedelegate({ value, fee, memo }) {
@@ -105,56 +104,56 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
105
104
  throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message);
106
105
  }
107
106
  },
108
- async sendMsgCreateValidator({ value, fee, memo }) {
107
+ async sendMsgUndelegate({ value, fee, memo }) {
109
108
  if (!signer) {
110
- throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.');
109
+ throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.');
111
110
  }
112
111
  try {
113
112
  const { address } = (await signer.getAccounts())[0];
114
113
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
115
- let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) });
114
+ let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) });
116
115
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
117
116
  }
118
117
  catch (e) {
119
- throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message);
118
+ throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: ' + e.message);
120
119
  }
121
120
  },
122
- async sendMsgDelegate({ value, fee, memo }) {
121
+ async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
123
122
  if (!signer) {
124
- throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.');
123
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.');
125
124
  }
126
125
  try {
127
126
  const { address } = (await signer.getAccounts())[0];
128
127
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
129
- let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) });
128
+ let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) });
130
129
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
131
130
  }
132
131
  catch (e) {
133
- throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message);
132
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
134
133
  }
135
134
  },
136
- msgUndelegate({ value }) {
135
+ msgCreateValidator({ value }) {
137
136
  try {
138
- return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) };
137
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) };
139
138
  }
140
139
  catch (e) {
141
- throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message);
140
+ throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message);
142
141
  }
143
142
  },
144
- msgCancelUnbondingDelegation({ value }) {
143
+ msgEditValidator({ value }) {
145
144
  try {
146
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
145
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
147
146
  }
148
147
  catch (e) {
149
- throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message);
148
+ throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
150
149
  }
151
150
  },
152
- msgEditValidator({ value }) {
151
+ msgDelegate({ value }) {
153
152
  try {
154
- return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
153
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial(value) };
155
154
  }
156
155
  catch (e) {
157
- throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
156
+ throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message);
158
157
  }
159
158
  },
160
159
  msgBeginRedelegate({ value }) {
@@ -165,20 +164,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
165
164
  throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message);
166
165
  }
167
166
  },
168
- msgCreateValidator({ value }) {
167
+ msgUndelegate({ value }) {
169
168
  try {
170
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) };
169
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) };
171
170
  }
172
171
  catch (e) {
173
- throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message);
172
+ throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message);
174
173
  }
175
174
  },
176
- msgDelegate({ value }) {
175
+ msgCancelUnbondingDelegation({ value }) {
177
176
  try {
178
- return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial(value) };
177
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
179
178
  }
180
179
  catch (e) {
181
- throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message);
180
+ throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message);
182
181
  }
183
182
  },
184
183
  };
@@ -215,7 +214,6 @@ class SDKModule {
215
214
  RedelegationEntryResponse: getStructure(typeRedelegationEntryResponse.fromPartial({})),
216
215
  RedelegationResponse: getStructure(typeRedelegationResponse.fromPartial({})),
217
216
  Pool: getStructure(typePool.fromPartial({})),
218
- ValidatorUpdates: getStructure(typeValidatorUpdates.fromPartial({})),
219
217
  };
220
218
  client.on('signer-changed', (signer) => {
221
219
  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 { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
11
- import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
12
- import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
13
- import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
14
10
  import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
11
+ import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
15
12
  import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
13
+ import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
14
+ import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
15
+ import { MsgCancelUnbondingDelegation } 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,24 +37,23 @@ 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"
41
40
 
42
- export { MsgUndelegate, MsgCancelUnbondingDelegation, MsgEditValidator, MsgBeginRedelegate, MsgCreateValidator, MsgDelegate };
41
+ export { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation };
43
42
 
44
- type sendMsgUndelegateParams = {
45
- value: MsgUndelegate,
43
+ type sendMsgCreateValidatorParams = {
44
+ value: MsgCreateValidator,
46
45
  fee?: StdFee,
47
46
  memo?: string
48
47
  };
49
48
 
50
- type sendMsgCancelUnbondingDelegationParams = {
51
- value: MsgCancelUnbondingDelegation,
49
+ type sendMsgEditValidatorParams = {
50
+ value: MsgEditValidator,
52
51
  fee?: StdFee,
53
52
  memo?: string
54
53
  };
55
54
 
56
- type sendMsgEditValidatorParams = {
57
- value: MsgEditValidator,
55
+ type sendMsgDelegateParams = {
56
+ value: MsgDelegate,
58
57
  fee?: StdFee,
59
58
  memo?: string
60
59
  };
@@ -65,41 +64,41 @@ type sendMsgBeginRedelegateParams = {
65
64
  memo?: string
66
65
  };
67
66
 
68
- type sendMsgCreateValidatorParams = {
69
- value: MsgCreateValidator,
67
+ type sendMsgUndelegateParams = {
68
+ value: MsgUndelegate,
70
69
  fee?: StdFee,
71
70
  memo?: string
72
71
  };
73
72
 
74
- type sendMsgDelegateParams = {
75
- value: MsgDelegate,
73
+ type sendMsgCancelUnbondingDelegationParams = {
74
+ value: MsgCancelUnbondingDelegation,
76
75
  fee?: StdFee,
77
76
  memo?: string
78
77
  };
79
78
 
80
79
 
81
- type msgUndelegateParams = {
82
- value: MsgUndelegate,
83
- };
84
-
85
- type msgCancelUnbondingDelegationParams = {
86
- value: MsgCancelUnbondingDelegation,
80
+ type msgCreateValidatorParams = {
81
+ value: MsgCreateValidator,
87
82
  };
88
83
 
89
84
  type msgEditValidatorParams = {
90
85
  value: MsgEditValidator,
91
86
  };
92
87
 
88
+ type msgDelegateParams = {
89
+ value: MsgDelegate,
90
+ };
91
+
93
92
  type msgBeginRedelegateParams = {
94
93
  value: MsgBeginRedelegate,
95
94
  };
96
95
 
97
- type msgCreateValidatorParams = {
98
- value: MsgCreateValidator,
96
+ type msgUndelegateParams = {
97
+ value: MsgUndelegate,
99
98
  };
100
99
 
101
- type msgDelegateParams = {
102
- value: MsgDelegate,
100
+ type msgCancelUnbondingDelegationParams = {
101
+ value: MsgCancelUnbondingDelegation,
103
102
  };
104
103
 
105
104
 
@@ -132,45 +131,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
132
131
 
133
132
  return {
134
133
 
135
- async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise<DeliverTxResponse> {
134
+ async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise<DeliverTxResponse> {
136
135
  if (!signer) {
137
- throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.')
136
+ throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.')
138
137
  }
139
138
  try {
140
139
  const { address } = (await signer.getAccounts())[0];
141
140
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
142
- let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) })
141
+ let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) })
143
142
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
144
143
  } catch (e: any) {
145
- throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: '+ e.message)
144
+ throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message)
146
145
  }
147
146
  },
148
147
 
149
- async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
148
+ async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
150
149
  if (!signer) {
151
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.')
150
+ throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.')
152
151
  }
153
152
  try {
154
153
  const { address } = (await signer.getAccounts())[0];
155
154
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
156
- let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) })
155
+ let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) })
157
156
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
158
157
  } catch (e: any) {
159
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message)
158
+ throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message)
160
159
  }
161
160
  },
162
161
 
163
- async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
162
+ async sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise<DeliverTxResponse> {
164
163
  if (!signer) {
165
- throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.')
164
+ throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.')
166
165
  }
167
166
  try {
168
167
  const { address } = (await signer.getAccounts())[0];
169
168
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
170
- let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) })
169
+ let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) })
171
170
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
172
171
  } catch (e: any) {
173
- throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message)
172
+ throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: '+ e.message)
174
173
  }
175
174
  },
176
175
 
@@ -188,56 +187,56 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
188
187
  }
189
188
  },
190
189
 
191
- async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise<DeliverTxResponse> {
190
+ async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise<DeliverTxResponse> {
192
191
  if (!signer) {
193
- throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.')
192
+ throw new Error('TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.')
194
193
  }
195
194
  try {
196
195
  const { address } = (await signer.getAccounts())[0];
197
196
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
198
- let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) })
197
+ let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) })
199
198
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
200
199
  } catch (e: any) {
201
- throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message)
200
+ throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: '+ e.message)
202
201
  }
203
202
  },
204
203
 
205
- async sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise<DeliverTxResponse> {
204
+ async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
206
205
  if (!signer) {
207
- throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.')
206
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.')
208
207
  }
209
208
  try {
210
209
  const { address } = (await signer.getAccounts())[0];
211
210
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
212
- let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) })
211
+ let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) })
213
212
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
214
213
  } catch (e: any) {
215
- throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: '+ e.message)
214
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message)
216
215
  }
217
216
  },
218
217
 
219
218
 
220
- msgUndelegate({ value }: msgUndelegateParams): EncodeObject {
219
+ msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject {
221
220
  try {
222
- return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) }
221
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) }
223
222
  } catch (e: any) {
224
- throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message)
223
+ throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message)
225
224
  }
226
225
  },
227
226
 
228
- msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
227
+ msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
229
228
  try {
230
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
229
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
231
230
  } catch (e: any) {
232
- throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message)
231
+ throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message)
233
232
  }
234
233
  },
235
234
 
236
- msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
235
+ msgDelegate({ value }: msgDelegateParams): EncodeObject {
237
236
  try {
238
- return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
237
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial( value ) }
239
238
  } catch (e: any) {
240
- throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message)
239
+ throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message)
241
240
  }
242
241
  },
243
242
 
@@ -249,19 +248,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
249
248
  }
250
249
  },
251
250
 
252
- msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject {
251
+ msgUndelegate({ value }: msgUndelegateParams): EncodeObject {
253
252
  try {
254
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) }
253
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) }
255
254
  } catch (e: any) {
256
- throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message)
255
+ throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message)
257
256
  }
258
257
  },
259
258
 
260
- msgDelegate({ value }: msgDelegateParams): EncodeObject {
259
+ msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
261
260
  try {
262
- return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial( value ) }
261
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
263
262
  } catch (e: any) {
264
- throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message)
263
+ throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message)
265
264
  }
266
265
  },
267
266
 
@@ -310,7 +309,6 @@ class SDKModule {
310
309
  RedelegationEntryResponse: getStructure(typeRedelegationEntryResponse.fromPartial({})),
311
310
  RedelegationResponse: getStructure(typeRedelegationResponse.fromPartial({})),
312
311
  Pool: getStructure(typePool.fromPartial({})),
313
- ValidatorUpdates: getStructure(typeValidatorUpdates.fromPartial({})),
314
312
 
315
313
  };
316
314
  client.on('signer-changed',(signer) => {