decentralcardgame-cardchain-client-ts 0.0.14 → 0.0.16

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 (248) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +318 -383
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +463 -558
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +72 -78
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +72 -78
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +77 -60
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +123 -76
  7. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +657 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +741 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
  10. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.ts +134 -0
  11. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +356 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +415 -0
  13. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
  14. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +281 -0
  15. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
  16. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.ts +115 -0
  17. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +308 -0
  18. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.ts +355 -0
  19. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
  20. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.ts +92 -0
  21. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
  22. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.ts +102 -0
  23. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +325 -0
  24. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +380 -0
  25. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2200 -0
  26. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2633 -0
  27. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
  28. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.ts +111 -0
  29. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
  30. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.ts +183 -0
  31. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
  32. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.ts +124 -0
  33. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +365 -0
  34. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +416 -0
  35. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.js +93 -0
  36. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.ts +124 -0
  37. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4185 -0
  38. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +5139 -0
  39. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +580 -0
  40. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +652 -0
  41. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +346 -0
  42. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +417 -0
  43. package/DecentralCardGame.cardchain.cardchain/types.js +25 -23
  44. package/DecentralCardGame.cardchain.cardchain/types.ts +26 -22
  45. package/DecentralCardGame.cardchain.featureflag/index.js +5 -0
  46. package/DecentralCardGame.cardchain.featureflag/index.ts +6 -0
  47. package/DecentralCardGame.cardchain.featureflag/module.js +62 -0
  48. package/DecentralCardGame.cardchain.featureflag/module.ts +102 -0
  49. package/DecentralCardGame.cardchain.featureflag/registry.js +2 -0
  50. package/DecentralCardGame.cardchain.featureflag/registry.ts +7 -0
  51. package/DecentralCardGame.cardchain.featureflag/rest.js +128 -0
  52. package/DecentralCardGame.cardchain.featureflag/rest.ts +222 -0
  53. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.js +67 -0
  54. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.ts +92 -0
  55. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.js +135 -0
  56. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.ts +172 -0
  57. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.js +36 -0
  58. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.ts +58 -0
  59. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.js +76 -0
  60. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.ts +102 -0
  61. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.js +279 -0
  62. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.ts +371 -0
  63. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.js +7 -0
  64. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.ts +17 -0
  65. package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  66. package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  67. package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.js +2 -0
  68. package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.ts +2 -0
  69. package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.js +2 -0
  70. package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.ts +2 -0
  71. package/DecentralCardGame.cardchain.featureflag/types/google/api/http.js +260 -0
  72. package/DecentralCardGame.cardchain.featureflag/types/google/api/http.ts +589 -0
  73. package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.js +2830 -0
  74. package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.ts +3753 -0
  75. package/DecentralCardGame.cardchain.featureflag/types.js +4 -0
  76. package/DecentralCardGame.cardchain.featureflag/types.ts +11 -0
  77. package/client.js +7 -7
  78. package/client.ts +9 -10
  79. package/cosmos.auth.v1beta1/module.js +0 -2
  80. package/cosmos.auth.v1beta1/module.ts +0 -2
  81. package/cosmos.auth.v1beta1/rest.js +3 -18
  82. package/cosmos.auth.v1beta1/rest.ts +3 -113
  83. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  84. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  85. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  86. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
  87. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
  88. package/cosmos.auth.v1beta1/types.js +1 -2
  89. package/cosmos.auth.v1beta1/types.ts +0 -2
  90. package/cosmos.authz.v1beta1/module.js +19 -19
  91. package/cosmos.authz.v1beta1/module.ts +29 -29
  92. package/cosmos.authz.v1beta1/registry.js +2 -2
  93. package/cosmos.authz.v1beta1/registry.ts +2 -2
  94. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  95. package/cosmos.bank.v1beta1/module.js +16 -16
  96. package/cosmos.bank.v1beta1/module.ts +24 -24
  97. package/cosmos.bank.v1beta1/registry.js +2 -2
  98. package/cosmos.bank.v1beta1/registry.ts +2 -2
  99. package/cosmos.bank.v1beta1/rest.js +6 -37
  100. package/cosmos.bank.v1beta1/rest.ts +6 -99
  101. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
  102. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
  103. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
  104. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
  105. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
  106. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
  107. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
  108. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
  109. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
  110. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  111. package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
  112. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
  113. package/cosmos.crisis.v1beta1/module.js +1 -24
  114. package/cosmos.crisis.v1beta1/module.ts +1 -34
  115. package/cosmos.crisis.v1beta1/registry.js +0 -2
  116. package/cosmos.crisis.v1beta1/registry.ts +0 -2
  117. package/cosmos.crisis.v1beta1/rest.ts +0 -19
  118. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
  119. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
  120. package/cosmos.distribution.v1beta1/module.js +21 -67
  121. package/cosmos.distribution.v1beta1/module.ts +34 -100
  122. package/cosmos.distribution.v1beta1/registry.js +4 -8
  123. package/cosmos.distribution.v1beta1/registry.ts +4 -8
  124. package/cosmos.distribution.v1beta1/rest.js +0 -14
  125. package/cosmos.distribution.v1beta1/rest.ts +7 -66
  126. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
  127. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  128. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
  129. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
  130. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
  131. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
  132. package/cosmos.evidence.v1beta1/rest.js +3 -4
  133. package/cosmos.evidence.v1beta1/rest.ts +3 -4
  134. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
  135. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
  136. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
  137. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
  138. package/cosmos.gov.v1/module.js +21 -46
  139. package/cosmos.gov.v1/module.ts +33 -68
  140. package/cosmos.gov.v1/registry.js +4 -6
  141. package/cosmos.gov.v1/registry.ts +4 -6
  142. package/cosmos.gov.v1/rest.ts +41 -155
  143. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
  144. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
  145. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
  146. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
  147. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
  148. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
  149. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
  150. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
  151. package/cosmos.gov.v1/types.js +1 -2
  152. package/cosmos.gov.v1/types.ts +0 -2
  153. package/cosmos.gov.v1beta1/module.js +24 -24
  154. package/cosmos.gov.v1beta1/module.ts +36 -36
  155. package/cosmos.gov.v1beta1/registry.js +4 -4
  156. package/cosmos.gov.v1beta1/registry.ts +4 -4
  157. package/cosmos.gov.v1beta1/rest.ts +96 -65
  158. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  159. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
  160. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
  161. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
  162. package/cosmos.group.v1/module.js +92 -92
  163. package/cosmos.group.v1/module.ts +138 -138
  164. package/cosmos.group.v1/registry.js +16 -16
  165. package/cosmos.group.v1/registry.ts +16 -16
  166. package/cosmos.group.v1/rest.js +3 -3
  167. package/cosmos.group.v1/rest.ts +9 -29
  168. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  169. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
  170. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
  171. package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
  172. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
  173. package/cosmos.mint.v1beta1/rest.ts +1 -9
  174. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  175. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  176. package/cosmos.nft.v1beta1/rest.ts +22 -18
  177. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
  178. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
  179. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
  180. package/cosmos.slashing.v1beta1/rest.ts +0 -8
  181. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  182. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
  183. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
  184. package/cosmos.staking.v1beta1/module.js +39 -41
  185. package/cosmos.staking.v1beta1/module.ts +59 -61
  186. package/cosmos.staking.v1beta1/registry.js +6 -6
  187. package/cosmos.staking.v1beta1/registry.ts +6 -6
  188. package/cosmos.staking.v1beta1/rest.js +7 -7
  189. package/cosmos.staking.v1beta1/rest.ts +8 -49
  190. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  191. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
  192. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
  193. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
  194. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
  195. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
  196. package/cosmos.staking.v1beta1/types.js +1 -2
  197. package/cosmos.staking.v1beta1/types.ts +0 -2
  198. package/cosmos.tx.v1beta1/rest.js +2 -66
  199. package/cosmos.tx.v1beta1/rest.ts +16 -177
  200. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
  201. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
  202. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
  203. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
  204. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
  205. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
  206. package/cosmos.upgrade.v1beta1/rest.ts +1 -0
  207. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  208. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  209. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  210. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  211. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
  212. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
  213. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
  214. package/ibc.applications.transfer.v1/module.js +27 -5
  215. package/ibc.applications.transfer.v1/module.ts +34 -5
  216. package/ibc.applications.transfer.v1/registry.js +4 -1
  217. package/ibc.applications.transfer.v1/registry.ts +2 -0
  218. package/ibc.applications.transfer.v1/rest.js +1 -15
  219. package/ibc.applications.transfer.v1/rest.ts +1 -30
  220. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  221. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
  222. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
  223. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
  224. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
  225. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
  226. package/ibc.applications.transfer.v1/types.js +1 -3
  227. package/ibc.applications.transfer.v1/types.ts +0 -4
  228. package/ibc.core.channel.v1/rest.ts +0 -1
  229. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  230. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
  231. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
  232. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
  233. package/ibc.core.client.v1/rest.ts +1 -5
  234. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  235. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
  236. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
  237. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
  238. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  239. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
  240. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  241. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  242. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -26
  243. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
  244. package/ibc.core.connection.v1/types/proofs.js +1126 -0
  245. package/ibc.core.connection.v1/types/proofs.ts +1408 -0
  246. package/index.js +3 -3
  247. package/index.ts +3 -3
  248. package/package.json +5 -5
@@ -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 { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
6
7
  import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
7
- import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
8
8
  import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
9
- import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
10
- import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
9
+ import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
11
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 { MsgEditValidator, MsgBeginRedelegate, MsgDelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgUndelegate };
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,32 +48,32 @@ const defaultFee = {
49
48
  };
50
49
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
51
50
  return {
52
- async sendMsgEditValidator({ value, fee, memo }) {
51
+ async sendMsgCreateValidator({ value, fee, memo }) {
53
52
  if (!signer) {
54
- throw new Error('TxClient:sendMsgEditValidator: 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.msgEditValidator({ value: MsgEditValidator.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:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
62
+ throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message);
64
63
  }
65
64
  },
66
- async sendMsgBeginRedelegate({ value, fee, memo }) {
65
+ async sendMsgEditValidator({ value, fee, memo }) {
67
66
  if (!signer) {
68
- throw new Error('TxClient:sendMsgBeginRedelegate: 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.msgBeginRedelegate({ value: MsgBeginRedelegate.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:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message);
76
+ throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
78
77
  }
79
78
  },
80
79
  async sendMsgDelegate({ value, fee, memo }) {
@@ -91,62 +90,62 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
91
90
  throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message);
92
91
  }
93
92
  },
94
- async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
93
+ async sendMsgBeginRedelegate({ value, fee, memo }) {
95
94
  if (!signer) {
96
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.');
95
+ throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.');
97
96
  }
98
97
  try {
99
98
  const { address } = (await signer.getAccounts())[0];
100
99
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
101
- let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) });
100
+ let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) });
102
101
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
103
102
  }
104
103
  catch (e) {
105
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
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 sendMsgUndelegate({ value, fee, memo }) {
121
+ async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
123
122
  if (!signer) {
124
- throw new Error('TxClient:sendMsgUndelegate: 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.msgUndelegate({ value: MsgUndelegate.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:sendMsgUndelegate: Could not broadcast Tx: ' + e.message);
132
+ throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
134
133
  }
135
134
  },
136
- msgEditValidator({ value }) {
135
+ msgCreateValidator({ value }) {
137
136
  try {
138
- return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
137
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) };
139
138
  }
140
139
  catch (e) {
141
- throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
140
+ throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message);
142
141
  }
143
142
  },
144
- msgBeginRedelegate({ value }) {
143
+ msgEditValidator({ value }) {
145
144
  try {
146
- return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) };
145
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
147
146
  }
148
147
  catch (e) {
149
- throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message);
148
+ throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
150
149
  }
151
150
  },
152
151
  msgDelegate({ value }) {
@@ -157,28 +156,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
157
156
  throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message);
158
157
  }
159
158
  },
160
- msgCancelUnbondingDelegation({ value }) {
159
+ msgBeginRedelegate({ value }) {
161
160
  try {
162
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
161
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) };
163
162
  }
164
163
  catch (e) {
165
- throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message);
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
- msgUndelegate({ value }) {
175
+ msgCancelUnbondingDelegation({ value }) {
177
176
  try {
178
- return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) };
177
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
179
178
  }
180
179
  catch (e) {
181
- throw new Error('TxClient:MsgUndelegate: 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 { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
10
11
  import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
11
- import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
12
12
  import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
13
- import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
14
- import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
13
+ import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
15
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,18 +37,17 @@ 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 { MsgEditValidator, MsgBeginRedelegate, MsgDelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgUndelegate };
41
+ export { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation };
43
42
 
44
- type sendMsgEditValidatorParams = {
45
- value: MsgEditValidator,
43
+ type sendMsgCreateValidatorParams = {
44
+ value: MsgCreateValidator,
46
45
  fee?: StdFee,
47
46
  memo?: string
48
47
  };
49
48
 
50
- type sendMsgBeginRedelegateParams = {
51
- value: MsgBeginRedelegate,
49
+ type sendMsgEditValidatorParams = {
50
+ value: MsgEditValidator,
52
51
  fee?: StdFee,
53
52
  memo?: string
54
53
  };
@@ -59,49 +58,49 @@ type sendMsgDelegateParams = {
59
58
  memo?: string
60
59
  };
61
60
 
62
- type sendMsgCancelUnbondingDelegationParams = {
63
- value: MsgCancelUnbondingDelegation,
61
+ type sendMsgBeginRedelegateParams = {
62
+ value: MsgBeginRedelegate,
64
63
  fee?: StdFee,
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 sendMsgUndelegateParams = {
75
- value: MsgUndelegate,
73
+ type sendMsgCancelUnbondingDelegationParams = {
74
+ value: MsgCancelUnbondingDelegation,
76
75
  fee?: StdFee,
77
76
  memo?: string
78
77
  };
79
78
 
80
79
 
81
- type msgEditValidatorParams = {
82
- value: MsgEditValidator,
80
+ type msgCreateValidatorParams = {
81
+ value: MsgCreateValidator,
83
82
  };
84
83
 
85
- type msgBeginRedelegateParams = {
86
- value: MsgBeginRedelegate,
84
+ type msgEditValidatorParams = {
85
+ value: MsgEditValidator,
87
86
  };
88
87
 
89
88
  type msgDelegateParams = {
90
89
  value: MsgDelegate,
91
90
  };
92
91
 
93
- type msgCancelUnbondingDelegationParams = {
94
- value: MsgCancelUnbondingDelegation,
95
- };
96
-
97
- type msgCreateValidatorParams = {
98
- value: MsgCreateValidator,
92
+ type msgBeginRedelegateParams = {
93
+ value: MsgBeginRedelegate,
99
94
  };
100
95
 
101
96
  type msgUndelegateParams = {
102
97
  value: MsgUndelegate,
103
98
  };
104
99
 
100
+ type msgCancelUnbondingDelegationParams = {
101
+ value: MsgCancelUnbondingDelegation,
102
+ };
103
+
105
104
 
106
105
  export const registry = new Registry(msgTypes);
107
106
 
@@ -132,31 +131,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
132
131
 
133
132
  return {
134
133
 
135
- async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
134
+ async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise<DeliverTxResponse> {
136
135
  if (!signer) {
137
- throw new Error('TxClient:sendMsgEditValidator: 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.msgEditValidator({ value: MsgEditValidator.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:sendMsgEditValidator: 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 sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise<DeliverTxResponse> {
148
+ async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
150
149
  if (!signer) {
151
- throw new Error('TxClient:sendMsgBeginRedelegate: 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.msgBeginRedelegate({ value: MsgBeginRedelegate.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:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message)
158
+ throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message)
160
159
  }
161
160
  },
162
161
 
@@ -174,62 +173,62 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
174
173
  }
175
174
  },
176
175
 
177
- async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
176
+ async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise<DeliverTxResponse> {
178
177
  if (!signer) {
179
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.')
178
+ throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.')
180
179
  }
181
180
  try {
182
181
  const { address } = (await signer.getAccounts())[0];
183
182
  const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
184
- let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) })
183
+ let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) })
185
184
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
186
185
  } catch (e: any) {
187
- throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message)
186
+ throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message)
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 sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise<DeliverTxResponse> {
204
+ async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
206
205
  if (!signer) {
207
- throw new Error('TxClient:sendMsgUndelegate: 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.msgUndelegate({ value: MsgUndelegate.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:sendMsgUndelegate: 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
- msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
219
+ msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject {
221
220
  try {
222
- return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
221
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) }
223
222
  } catch (e: any) {
224
- throw new Error('TxClient:MsgEditValidator: 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
- msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject {
227
+ msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
229
228
  try {
230
- return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) }
229
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
231
230
  } catch (e: any) {
232
- throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message)
231
+ throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message)
233
232
  }
234
233
  },
235
234
 
@@ -241,27 +240,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
241
240
  }
242
241
  },
243
242
 
244
- msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
243
+ msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject {
245
244
  try {
246
- return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
245
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) }
247
246
  } catch (e: any) {
248
- throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message)
247
+ throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message)
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
- msgUndelegate({ value }: msgUndelegateParams): EncodeObject {
259
+ msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
261
260
  try {
262
- return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) }
261
+ return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
263
262
  } catch (e: any) {
264
- throw new Error('TxClient:MsgUndelegate: 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) => {