@agoric/cosmic-proto 0.5.0-u19.2 → 0.5.0-u21.0

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 (489) hide show
  1. package/dist/address-hooks.d.ts +4 -3
  2. package/dist/address-hooks.js +1 -217
  3. package/dist/address-hooks.js.map +1 -1
  4. package/dist/codegen/agoric/bundle.js +1 -51
  5. package/dist/codegen/agoric/lien/genesis.js +1 -143
  6. package/dist/codegen/agoric/lien/lien.js +1 -87
  7. package/dist/codegen/agoric/swingset/genesis.js +1 -181
  8. package/dist/codegen/agoric/swingset/msgs.js +1 -700
  9. package/dist/codegen/agoric/swingset/msgs.js.map +1 -1
  10. package/dist/codegen/agoric/swingset/query.js +1 -356
  11. package/dist/codegen/agoric/swingset/query.js.map +1 -1
  12. package/dist/codegen/agoric/swingset/swingset.js +1 -816
  13. package/dist/codegen/agoric/swingset/swingset.js.map +1 -1
  14. package/dist/codegen/agoric/vbank/genesis.js +1 -82
  15. package/dist/codegen/agoric/vbank/msgs.js +1 -2
  16. package/dist/codegen/agoric/vbank/query.js +1 -222
  17. package/dist/codegen/agoric/vbank/vbank.js +1 -237
  18. package/dist/codegen/agoric/vbank/vbank.js.map +1 -1
  19. package/dist/codegen/agoric/vibc/msgs.js +1 -127
  20. package/dist/codegen/agoric/vibc/msgs.js.map +1 -1
  21. package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
  22. package/dist/codegen/agoric/vstorage/genesis.js +1 -138
  23. package/dist/codegen/agoric/vstorage/query.d.ts +4 -2
  24. package/dist/codegen/agoric/vstorage/query.js +1 -441
  25. package/dist/codegen/agoric/vstorage/query.js.map +1 -1
  26. package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
  27. package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
  28. package/dist/codegen/agoric/vtransfer/genesis.js.map +1 -1
  29. package/dist/codegen/amino/amino.js +1 -2
  30. package/dist/codegen/amino/bundle.js +1 -6
  31. package/dist/codegen/binary.d.ts +1 -1
  32. package/dist/codegen/binary.js +1 -367
  33. package/dist/codegen/circle/bundle.d.ts +0 -506
  34. package/dist/codegen/circle/bundle.js +1 -40
  35. package/dist/codegen/circle/cctp/v1/attester.js +1 -63
  36. package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
  37. package/dist/codegen/circle/cctp/v1/burn_message.js.map +1 -1
  38. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
  39. package/dist/codegen/circle/cctp/v1/events.js +1 -1612
  40. package/dist/codegen/circle/cctp/v1/events.js.map +1 -1
  41. package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
  42. package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
  43. package/dist/codegen/circle/cctp/v1/message.js +1 -160
  44. package/dist/codegen/circle/cctp/v1/message.js.map +1 -1
  45. package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
  46. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
  47. package/dist/codegen/circle/cctp/v1/query.js +1 -2421
  48. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
  49. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js.map +1 -1
  50. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
  51. package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
  52. package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
  53. package/dist/codegen/circle/cctp/v1/token_pair.js.map +1 -1
  54. package/dist/codegen/circle/cctp/v1/tx.d.ts +0 -998
  55. package/dist/codegen/circle/cctp/v1/tx.js +1 -3264
  56. package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
  57. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.d.ts +100 -0
  58. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js +1 -0
  59. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js.map +1 -0
  60. package/dist/codegen/cosmos/app/v1alpha1/module.d.ts +145 -0
  61. package/dist/codegen/cosmos/app/v1alpha1/module.js +1 -0
  62. package/dist/codegen/cosmos/app/v1alpha1/module.js.map +1 -0
  63. package/dist/codegen/cosmos/auth/module/v1/module.d.ts +62 -0
  64. package/dist/codegen/cosmos/auth/module/v1/module.js +1 -0
  65. package/dist/codegen/cosmos/auth/module/v1/module.js.map +1 -0
  66. package/dist/codegen/cosmos/auth/v1beta1/auth.d.ts +38 -0
  67. package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
  68. package/dist/codegen/cosmos/auth/v1beta1/auth.js.map +1 -1
  69. package/dist/codegen/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  70. package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
  71. package/dist/codegen/cosmos/auth/v1beta1/query.d.ts +77 -2
  72. package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
  73. package/dist/codegen/cosmos/auth/v1beta1/query.js.map +1 -1
  74. package/dist/codegen/cosmos/auth/v1beta1/tx.d.ts +73 -0
  75. package/dist/codegen/cosmos/auth/v1beta1/tx.js +1 -0
  76. package/dist/codegen/cosmos/auth/v1beta1/tx.js.map +1 -0
  77. package/dist/codegen/cosmos/authz/module/v1/module.d.ts +23 -0
  78. package/dist/codegen/cosmos/authz/module/v1/module.js +1 -0
  79. package/dist/codegen/cosmos/authz/module/v1/module.js.map +1 -0
  80. package/dist/codegen/cosmos/authz/v1beta1/authz.d.ts +1 -1
  81. package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
  82. package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +1 -1
  83. package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
  84. package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
  85. package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
  86. package/dist/codegen/cosmos/authz/v1beta1/tx.d.ts +2 -3
  87. package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
  88. package/dist/codegen/cosmos/authz/v1beta1/tx.js.map +1 -1
  89. package/dist/codegen/cosmos/bank/module/v1/module.d.ts +33 -0
  90. package/dist/codegen/cosmos/bank/module/v1/module.js +1 -0
  91. package/dist/codegen/cosmos/bank/module/v1/module.js.map +1 -0
  92. package/dist/codegen/cosmos/bank/v1beta1/authz.d.ts +8 -0
  93. package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
  94. package/dist/codegen/cosmos/bank/v1beta1/authz.js.map +1 -1
  95. package/dist/codegen/cosmos/bank/v1beta1/bank.d.ts +9 -0
  96. package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
  97. package/dist/codegen/cosmos/bank/v1beta1/bank.js.map +1 -1
  98. package/dist/codegen/cosmos/bank/v1beta1/genesis.d.ts +10 -3
  99. package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
  100. package/dist/codegen/cosmos/bank/v1beta1/genesis.js.map +1 -1
  101. package/dist/codegen/cosmos/bank/v1beta1/query.d.ts +147 -1
  102. package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
  103. package/dist/codegen/cosmos/bank/v1beta1/query.js.map +1 -1
  104. package/dist/codegen/cosmos/bank/v1beta1/tx.d.ts +154 -1
  105. package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
  106. package/dist/codegen/cosmos/bank/v1beta1/tx.js.map +1 -1
  107. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
  108. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js.map +1 -1
  109. package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
  110. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
  111. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js.map +1 -1
  112. package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
  113. package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
  114. package/dist/codegen/cosmos/base/v1beta1/coin.js.map +1 -1
  115. package/dist/codegen/cosmos/bundle.d.ts +5016 -4007
  116. package/dist/codegen/cosmos/bundle.js +1 -249
  117. package/dist/codegen/cosmos/bundle.js.map +1 -1
  118. package/dist/codegen/cosmos/capability/module/v1/module.d.ts +29 -0
  119. package/dist/codegen/cosmos/capability/module/v1/module.js +1 -0
  120. package/dist/codegen/cosmos/capability/module/v1/module.js.map +1 -0
  121. package/dist/codegen/cosmos/consensus/module/v1/module.d.ts +26 -0
  122. package/dist/codegen/cosmos/consensus/module/v1/module.js +1 -0
  123. package/dist/codegen/cosmos/consensus/module/v1/module.js.map +1 -0
  124. package/dist/codegen/cosmos/consensus/v1/query.d.ts +52 -0
  125. package/dist/codegen/cosmos/consensus/v1/query.js +1 -0
  126. package/dist/codegen/cosmos/consensus/v1/query.js.map +1 -0
  127. package/dist/codegen/cosmos/consensus/v1/tx.d.ts +67 -0
  128. package/dist/codegen/cosmos/consensus/v1/tx.js +1 -0
  129. package/dist/codegen/cosmos/consensus/v1/tx.js.map +1 -0
  130. package/dist/codegen/cosmos/crisis/module/v1/module.d.ts +29 -0
  131. package/dist/codegen/cosmos/crisis/module/v1/module.js +1 -0
  132. package/dist/codegen/cosmos/crisis/module/v1/module.js.map +1 -0
  133. package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
  134. package/dist/codegen/cosmos/crypto/ed25519/keys.js.map +1 -1
  135. package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
  136. package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
  137. package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
  138. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
  139. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js.map +1 -1
  140. package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
  141. package/dist/codegen/cosmos/crypto/secp256k1/keys.js.map +1 -1
  142. package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
  143. package/dist/codegen/cosmos/crypto/secp256r1/keys.js.map +1 -1
  144. package/dist/codegen/cosmos/distribution/module/v1/module.d.ts +28 -0
  145. package/dist/codegen/cosmos/distribution/module/v1/module.js +1 -0
  146. package/dist/codegen/cosmos/distribution/module/v1/module.js.map +1 -0
  147. package/dist/codegen/cosmos/distribution/v1beta1/distribution.d.ts +24 -0
  148. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
  149. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js.map +1 -1
  150. package/dist/codegen/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
  151. package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
  152. package/dist/codegen/cosmos/distribution/v1beta1/query.d.ts +55 -1
  153. package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
  154. package/dist/codegen/cosmos/distribution/v1beta1/query.js.map +1 -1
  155. package/dist/codegen/cosmos/distribution/v1beta1/tx.d.ts +166 -6
  156. package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
  157. package/dist/codegen/cosmos/distribution/v1beta1/tx.js.map +1 -1
  158. package/dist/codegen/cosmos/evidence/module/v1/module.d.ts +23 -0
  159. package/dist/codegen/cosmos/evidence/module/v1/module.js +1 -0
  160. package/dist/codegen/cosmos/evidence/module/v1/module.js.map +1 -0
  161. package/dist/codegen/cosmos/feegrant/module/v1/module.d.ts +23 -0
  162. package/dist/codegen/cosmos/feegrant/module/v1/module.js +1 -0
  163. package/dist/codegen/cosmos/feegrant/module/v1/module.js.map +1 -0
  164. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  165. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
  166. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js.map +1 -1
  167. package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
  168. package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
  169. package/dist/codegen/cosmos/feegrant/v1beta1/tx.d.ts +1 -1
  170. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
  171. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js.map +1 -1
  172. package/dist/codegen/cosmos/genutil/module/v1/module.d.ts +23 -0
  173. package/dist/codegen/cosmos/genutil/module/v1/module.js +1 -0
  174. package/dist/codegen/cosmos/genutil/module/v1/module.js.map +1 -0
  175. package/dist/codegen/cosmos/gov/module/v1/module.d.ts +32 -0
  176. package/dist/codegen/cosmos/gov/module/v1/module.js +1 -0
  177. package/dist/codegen/cosmos/gov/module/v1/module.js.map +1 -0
  178. package/dist/codegen/cosmos/gov/v1/genesis.d.ts +26 -4
  179. package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
  180. package/dist/codegen/cosmos/gov/v1/genesis.js.map +1 -1
  181. package/dist/codegen/cosmos/gov/v1/gov.d.ts +113 -4
  182. package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
  183. package/dist/codegen/cosmos/gov/v1/gov.js.map +1 -1
  184. package/dist/codegen/cosmos/gov/v1/query.d.ts +31 -6
  185. package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
  186. package/dist/codegen/cosmos/gov/v1/query.js.map +1 -1
  187. package/dist/codegen/cosmos/gov/v1/tx.d.ts +107 -4
  188. package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
  189. package/dist/codegen/cosmos/gov/v1/tx.js.map +1 -1
  190. package/dist/codegen/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  191. package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
  192. package/dist/codegen/cosmos/gov/v1beta1/gov.d.ts +37 -8
  193. package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
  194. package/dist/codegen/cosmos/gov/v1beta1/gov.js.map +1 -1
  195. package/dist/codegen/cosmos/gov/v1beta1/query.d.ts +4 -2
  196. package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
  197. package/dist/codegen/cosmos/gov/v1beta1/query.js.map +1 -1
  198. package/dist/codegen/cosmos/gov/v1beta1/tx.d.ts +20 -3
  199. package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
  200. package/dist/codegen/cosmos/gov/v1beta1/tx.js.map +1 -1
  201. package/dist/codegen/cosmos/group/module/v1/module.d.ts +36 -0
  202. package/dist/codegen/cosmos/group/module/v1/module.js +1 -0
  203. package/dist/codegen/cosmos/group/module/v1/module.js.map +1 -0
  204. package/dist/codegen/cosmos/group/v1/events.d.ts +27 -0
  205. package/dist/codegen/cosmos/group/v1/events.js +1 -696
  206. package/dist/codegen/cosmos/group/v1/events.js.map +1 -1
  207. package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
  208. package/dist/codegen/cosmos/group/v1/query.d.ts +2 -2
  209. package/dist/codegen/cosmos/group/v1/query.js +1 -2096
  210. package/dist/codegen/cosmos/group/v1/tx.d.ts +46 -32
  211. package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
  212. package/dist/codegen/cosmos/group/v1/tx.js.map +1 -1
  213. package/dist/codegen/cosmos/group/v1/types.d.ts +32 -10
  214. package/dist/codegen/cosmos/group/v1/types.js +1 -1387
  215. package/dist/codegen/cosmos/group/v1/types.js.map +1 -1
  216. package/dist/codegen/{proofs.d.ts → cosmos/ics23/v1/proofs.d.ts} +31 -17
  217. package/dist/codegen/cosmos/ics23/v1/proofs.js +1 -0
  218. package/dist/codegen/cosmos/ics23/v1/proofs.js.map +1 -0
  219. package/dist/codegen/cosmos/mint/module/v1/module.d.ts +28 -0
  220. package/dist/codegen/cosmos/mint/module/v1/module.js +1 -0
  221. package/dist/codegen/cosmos/mint/module/v1/module.js.map +1 -0
  222. package/dist/codegen/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  223. package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
  224. package/dist/codegen/cosmos/mint/v1beta1/mint.d.ts +2 -2
  225. package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
  226. package/dist/codegen/cosmos/mint/v1beta1/mint.js.map +1 -1
  227. package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
  228. package/dist/codegen/cosmos/mint/v1beta1/query.js.map +1 -1
  229. package/dist/codegen/cosmos/mint/v1beta1/tx.d.ts +73 -0
  230. package/dist/codegen/cosmos/mint/v1beta1/tx.js +1 -0
  231. package/dist/codegen/cosmos/mint/v1beta1/tx.js.map +1 -0
  232. package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
  233. package/dist/codegen/cosmos/nft/module/v1/module.d.ts +23 -0
  234. package/dist/codegen/cosmos/nft/module/v1/module.js +1 -0
  235. package/dist/codegen/cosmos/nft/module/v1/module.js.map +1 -0
  236. package/dist/codegen/cosmos/params/module/v1/module.d.ts +23 -0
  237. package/dist/codegen/cosmos/params/module/v1/module.js +1 -0
  238. package/dist/codegen/cosmos/params/module/v1/module.js.map +1 -0
  239. package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
  240. package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
  241. package/dist/codegen/cosmos/query/v1/query.d.ts +1 -0
  242. package/dist/codegen/cosmos/query/v1/query.js +1 -0
  243. package/dist/codegen/cosmos/query/v1/query.js.map +1 -0
  244. package/dist/codegen/cosmos/reflection/v1/reflection.d.ts +48 -0
  245. package/dist/codegen/cosmos/reflection/v1/reflection.js +1 -0
  246. package/dist/codegen/cosmos/reflection/v1/reflection.js.map +1 -0
  247. package/dist/codegen/cosmos/slashing/module/v1/module.d.ts +26 -0
  248. package/dist/codegen/cosmos/slashing/module/v1/module.js +1 -0
  249. package/dist/codegen/cosmos/slashing/module/v1/module.js.map +1 -0
  250. package/dist/codegen/cosmos/staking/module/v1/module.d.ts +33 -0
  251. package/dist/codegen/cosmos/staking/module/v1/module.js +1 -0
  252. package/dist/codegen/cosmos/staking/module/v1/module.js.map +1 -0
  253. package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
  254. package/dist/codegen/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  255. package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
  256. package/dist/codegen/cosmos/staking/v1beta1/genesis.js.map +1 -1
  257. package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
  258. package/dist/codegen/cosmos/staking/v1beta1/staking.d.ts +63 -2
  259. package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
  260. package/dist/codegen/cosmos/staking/v1beta1/staking.js.map +1 -1
  261. package/dist/codegen/cosmos/staking/v1beta1/tx.d.ts +71 -1
  262. package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
  263. package/dist/codegen/cosmos/staking/v1beta1/tx.js.map +1 -1
  264. package/dist/codegen/cosmos/tx/config/v1/config.d.ts +35 -0
  265. package/dist/codegen/cosmos/tx/config/v1/config.js +1 -0
  266. package/dist/codegen/cosmos/tx/config/v1/config.js.map +1 -0
  267. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
  268. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js.map +1 -1
  269. package/dist/codegen/cosmos/tx/v1beta1/service.d.ts +270 -2
  270. package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
  271. package/dist/codegen/cosmos/tx/v1beta1/service.js.map +1 -1
  272. package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
  273. package/dist/codegen/cosmos/tx/v1beta1/tx.js.map +1 -1
  274. package/dist/codegen/cosmos/upgrade/module/v1/module.d.ts +26 -0
  275. package/dist/codegen/cosmos/upgrade/module/v1/module.js +1 -0
  276. package/dist/codegen/cosmos/upgrade/module/v1/module.js.map +1 -0
  277. package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
  278. package/dist/codegen/cosmos/upgrade/v1beta1/query.js.map +1 -1
  279. package/dist/codegen/cosmos/upgrade/v1beta1/tx.d.ts +2 -2
  280. package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
  281. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -4
  282. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
  283. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js.map +1 -1
  284. package/dist/codegen/cosmos/vesting/module/v1/module.d.ts +23 -0
  285. package/dist/codegen/cosmos/vesting/module/v1/module.js +1 -0
  286. package/dist/codegen/cosmos/vesting/module/v1/module.js.map +1 -0
  287. package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
  288. package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
  289. package/dist/codegen/cosmos_proto/bundle.js +1 -6
  290. package/dist/codegen/cosmos_proto/cosmos.js +1 -208
  291. package/dist/codegen/decimals.d.ts +20 -0
  292. package/dist/codegen/decimals.js +1 -0
  293. package/dist/codegen/decimals.js.map +1 -0
  294. package/dist/codegen/gogoproto/bundle.js +1 -6
  295. package/dist/codegen/gogoproto/bundle.js.map +1 -1
  296. package/dist/codegen/gogoproto/gogo.js +1 -2
  297. package/dist/codegen/google/api/annotations.js +1 -2
  298. package/dist/codegen/google/api/http.js +1 -319
  299. package/dist/codegen/google/bundle.d.ts +277 -277
  300. package/dist/codegen/google/bundle.js +1 -17
  301. package/dist/codegen/google/bundle.js.map +1 -1
  302. package/dist/codegen/google/protobuf/any.d.ts +10 -4
  303. package/dist/codegen/google/protobuf/any.js +1 -77
  304. package/dist/codegen/google/protobuf/any.js.map +1 -1
  305. package/dist/codegen/google/protobuf/descriptor.js +1 -3421
  306. package/dist/codegen/google/protobuf/descriptor.js.map +1 -1
  307. package/dist/codegen/google/protobuf/duration.js +1 -79
  308. package/dist/codegen/google/protobuf/empty.js +1 -50
  309. package/dist/codegen/google/protobuf/timestamp.js +1 -79
  310. package/dist/codegen/helpers.d.ts +2 -18
  311. package/dist/codegen/helpers.js +1 -196
  312. package/dist/codegen/helpers.js.map +1 -1
  313. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
  314. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
  315. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +9 -4
  316. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
  317. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +1 -1
  318. package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
  319. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.d.ts +39 -0
  320. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
  321. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +1 -1
  322. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
  323. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.d.ts +57 -0
  324. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js +1 -0
  325. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js.map +1 -0
  326. package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
  327. package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
  328. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
  329. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +1 -1
  330. package/dist/codegen/ibc/applications/transfer/v1/authz.d.ts +6 -0
  331. package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
  332. package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +1 -1
  333. package/dist/codegen/ibc/applications/transfer/v1/genesis.d.ts +7 -0
  334. package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
  335. package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +1 -1
  336. package/dist/codegen/ibc/applications/transfer/v1/query.d.ts +47 -0
  337. package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
  338. package/dist/codegen/ibc/applications/transfer/v1/query.js.map +1 -1
  339. package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
  340. package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
  341. package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
  342. package/dist/codegen/ibc/bundle.d.ts +1823 -1662
  343. package/dist/codegen/ibc/bundle.js +1 -142
  344. package/dist/codegen/ibc/bundle.js.map +1 -1
  345. package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
  346. package/dist/codegen/ibc/core/channel/v1/channel.js.map +1 -1
  347. package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
  348. package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
  349. package/dist/codegen/ibc/core/channel/v1/query.js.map +1 -1
  350. package/dist/codegen/ibc/core/channel/v1/tx.d.ts +2 -0
  351. package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
  352. package/dist/codegen/ibc/core/channel/v1/tx.js.map +1 -1
  353. package/dist/codegen/ibc/core/client/v1/client.d.ts +5 -1
  354. package/dist/codegen/ibc/core/client/v1/client.js +1 -583
  355. package/dist/codegen/ibc/core/client/v1/client.js.map +1 -1
  356. package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
  357. package/dist/codegen/ibc/core/client/v1/genesis.js.map +1 -1
  358. package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
  359. package/dist/codegen/ibc/core/client/v1/query.js.map +1 -1
  360. package/dist/codegen/ibc/core/client/v1/tx.d.ts +13 -5
  361. package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
  362. package/dist/codegen/ibc/core/client/v1/tx.js.map +1 -1
  363. package/dist/codegen/ibc/core/commitment/v1/commitment.d.ts +1 -1
  364. package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
  365. package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +1 -1
  366. package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
  367. package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
  368. package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
  369. package/dist/codegen/ibc/core/connection/v1/query.js.map +1 -1
  370. package/dist/codegen/ibc/core/connection/v1/tx.d.ts +16 -0
  371. package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
  372. package/dist/codegen/ibc/core/connection/v1/tx.js.map +1 -1
  373. package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
  374. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.d.ts +27 -0
  375. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js +1 -0
  376. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js.map +1 -0
  377. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
  378. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -1
  379. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
  380. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +1 -1
  381. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.d.ts +270 -0
  382. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js +1 -0
  383. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js.map +1 -0
  384. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +4 -1
  385. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
  386. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -1
  387. package/dist/codegen/icq/bundle.d.ts +85 -85
  388. package/dist/codegen/icq/bundle.js +1 -17
  389. package/dist/codegen/icq/v1/genesis.js +1 -78
  390. package/dist/codegen/icq/v1/icq.js +1 -83
  391. package/dist/codegen/icq/v1/packet.js +1 -270
  392. package/dist/codegen/icq/v1/packet.js.map +1 -1
  393. package/dist/codegen/icq/v1/query.js +1 -114
  394. package/dist/codegen/icq/v1/tx.js +1 -124
  395. package/dist/codegen/index.d.ts +3 -2
  396. package/dist/codegen/index.js +1 -23
  397. package/dist/codegen/index.js.map +1 -1
  398. package/dist/codegen/json-safe.d.ts +1 -1
  399. package/dist/codegen/json-safe.js +1 -8
  400. package/dist/codegen/noble/bundle.d.ts +326 -0
  401. package/dist/codegen/noble/bundle.js +1 -0
  402. package/dist/codegen/noble/bundle.js.map +1 -0
  403. package/dist/codegen/noble/dollar/vaults/v1/tx.d.ts +145 -0
  404. package/dist/codegen/noble/dollar/vaults/v1/tx.js +1 -0
  405. package/dist/codegen/noble/dollar/vaults/v1/tx.js.map +1 -0
  406. package/dist/codegen/noble/dollar/vaults/v1/vaults.d.ts +161 -0
  407. package/dist/codegen/noble/dollar/vaults/v1/vaults.js +1 -0
  408. package/dist/codegen/noble/dollar/vaults/v1/vaults.js.map +1 -0
  409. package/dist/codegen/noble/swap/v1/algorithm.d.ts +11 -0
  410. package/dist/codegen/noble/swap/v1/algorithm.js +1 -0
  411. package/dist/codegen/noble/swap/v1/algorithm.js.map +1 -0
  412. package/dist/codegen/noble/swap/v1/swap.d.ts +59 -0
  413. package/dist/codegen/noble/swap/v1/swap.js +1 -0
  414. package/dist/codegen/noble/swap/v1/swap.js.map +1 -0
  415. package/dist/codegen/noble/swap/v1/tx.d.ts +337 -0
  416. package/dist/codegen/noble/swap/v1/tx.js +1 -0
  417. package/dist/codegen/noble/swap/v1/tx.js.map +1 -0
  418. package/dist/codegen/stride/bundle.d.ts +1912 -1912
  419. package/dist/codegen/stride/bundle.js +1 -71
  420. package/dist/codegen/stride/epochs/genesis.js +1 -227
  421. package/dist/codegen/stride/epochs/query.js +1 -398
  422. package/dist/codegen/stride/records/callbacks.js +1 -136
  423. package/dist/codegen/stride/records/genesis.js +1 -186
  424. package/dist/codegen/stride/records/params.js +1 -50
  425. package/dist/codegen/stride/records/query.js +1 -1552
  426. package/dist/codegen/stride/records/records.js +1 -939
  427. package/dist/codegen/stride/stakedym/genesis.js +1 -312
  428. package/dist/codegen/stride/stakedym/query.js +1 -887
  429. package/dist/codegen/stride/stakedym/stakedym.js +1 -909
  430. package/dist/codegen/stride/stakedym/stakedym.js.map +1 -1
  431. package/dist/codegen/stride/stakedym/tx.js +1 -1661
  432. package/dist/codegen/stride/stakedym/tx.js.map +1 -1
  433. package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
  434. package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
  435. package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
  436. package/dist/codegen/stride/stakeibc/genesis.js +1 -135
  437. package/dist/codegen/stride/stakeibc/gov.js +1 -212
  438. package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
  439. package/dist/codegen/stride/stakeibc/host_zone.js.map +1 -1
  440. package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
  441. package/dist/codegen/stride/stakeibc/packet.js +1 -113
  442. package/dist/codegen/stride/stakeibc/params.js +1 -317
  443. package/dist/codegen/stride/stakeibc/query.js +1 -1372
  444. package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
  445. package/dist/codegen/stride/stakeibc/trade_route.js.map +1 -1
  446. package/dist/codegen/stride/stakeibc/tx.js +1 -3392
  447. package/dist/codegen/stride/stakeibc/tx.js.map +1 -1
  448. package/dist/codegen/stride/stakeibc/validator.js +1 -170
  449. package/dist/codegen/stride/stakeibc/validator.js.map +1 -1
  450. package/dist/codegen/stride/staketia/genesis.js +1 -312
  451. package/dist/codegen/stride/staketia/query.js +1 -887
  452. package/dist/codegen/stride/staketia/staketia.js +1 -819
  453. package/dist/codegen/stride/staketia/tx.js +1 -1671
  454. package/dist/codegen/stride/staketia/tx.js.map +1 -1
  455. package/dist/codegen/tendermint/abci/types.d.ts +264 -692
  456. package/dist/codegen/tendermint/abci/types.js +1 -4434
  457. package/dist/codegen/tendermint/abci/types.js.map +1 -1
  458. package/dist/codegen/tendermint/bundle.d.ts +517 -800
  459. package/dist/codegen/tendermint/bundle.js +1 -42
  460. package/dist/codegen/tendermint/crypto/keys.js +1 -85
  461. package/dist/codegen/tendermint/crypto/keys.js.map +1 -1
  462. package/dist/codegen/tendermint/crypto/proof.js +1 -409
  463. package/dist/codegen/tendermint/crypto/proof.js.map +1 -1
  464. package/dist/codegen/tendermint/libs/bits/types.js +1 -94
  465. package/dist/codegen/tendermint/p2p/types.d.ts +55 -83
  466. package/dist/codegen/tendermint/p2p/types.js +1 -506
  467. package/dist/codegen/tendermint/p2p/types.js.map +1 -1
  468. package/dist/codegen/tendermint/types/block.js +1 -119
  469. package/dist/codegen/tendermint/types/evidence.js +1 -415
  470. package/dist/codegen/tendermint/types/params.js +1 -529
  471. package/dist/codegen/tendermint/types/types.js +1 -1534
  472. package/dist/codegen/tendermint/types/types.js.map +1 -1
  473. package/dist/codegen/tendermint/types/validator.js +1 -299
  474. package/dist/codegen/tendermint/types/validator.js.map +1 -1
  475. package/dist/codegen/tendermint/version/types.js +1 -155
  476. package/dist/codegen/utf8.d.ts +1 -1
  477. package/dist/codegen/utf8.js +1 -138
  478. package/dist/codegen/varint.d.ts +1 -1
  479. package/dist/codegen/varint.js +1 -409
  480. package/dist/helpers.d.ts +5 -0
  481. package/dist/helpers.js +1 -22
  482. package/dist/helpers.js.map +1 -1
  483. package/dist/index.js +1 -6
  484. package/package.json +25 -20
  485. package/dist/codegen/ics23/bundle.d.ts +0 -154
  486. package/dist/codegen/ics23/bundle.js +0 -6
  487. package/dist/codegen/ics23/bundle.js.map +0 -1
  488. package/dist/codegen/proofs.js +0 -1436
  489. package/dist/codegen/proofs.js.map +0 -1
@@ -1,3392 +1 @@
1
- //@ts-nocheck
2
- import { Validator } from './validator.js';
3
- import { Coin } from '../../cosmos/base/v1beta1/coin.js';
4
- import { BinaryReader, BinaryWriter } from '../../binary.js';
5
- import { Decimal, isSet } from '../../helpers.js';
6
- import {} from '../../json-safe.js';
7
- export var AuthzPermissionChange;
8
- (function (AuthzPermissionChange) {
9
- /** GRANT - Grant the address trade permissions */
10
- AuthzPermissionChange[AuthzPermissionChange["GRANT"] = 0] = "GRANT";
11
- /** REVOKE - Revoke trade permissions from the address */
12
- AuthzPermissionChange[AuthzPermissionChange["REVOKE"] = 1] = "REVOKE";
13
- AuthzPermissionChange[AuthzPermissionChange["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
14
- })(AuthzPermissionChange || (AuthzPermissionChange = {}));
15
- export const AuthzPermissionChangeSDKType = AuthzPermissionChange;
16
- export function authzPermissionChangeFromJSON(object) {
17
- switch (object) {
18
- case 0:
19
- case 'GRANT':
20
- return AuthzPermissionChange.GRANT;
21
- case 1:
22
- case 'REVOKE':
23
- return AuthzPermissionChange.REVOKE;
24
- case -1:
25
- case 'UNRECOGNIZED':
26
- default:
27
- return AuthzPermissionChange.UNRECOGNIZED;
28
- }
29
- }
30
- export function authzPermissionChangeToJSON(object) {
31
- switch (object) {
32
- case AuthzPermissionChange.GRANT:
33
- return 'GRANT';
34
- case AuthzPermissionChange.REVOKE:
35
- return 'REVOKE';
36
- case AuthzPermissionChange.UNRECOGNIZED:
37
- default:
38
- return 'UNRECOGNIZED';
39
- }
40
- }
41
- function createBaseMsgUpdateInnerRedemptionRateBounds() {
42
- return {
43
- creator: '',
44
- chainId: '',
45
- minInnerRedemptionRate: '',
46
- maxInnerRedemptionRate: '',
47
- };
48
- }
49
- export const MsgUpdateInnerRedemptionRateBounds = {
50
- typeUrl: '/stride.stakeibc.MsgUpdateInnerRedemptionRateBounds',
51
- encode(message, writer = BinaryWriter.create()) {
52
- if (message.creator !== '') {
53
- writer.uint32(10).string(message.creator);
54
- }
55
- if (message.chainId !== '') {
56
- writer.uint32(18).string(message.chainId);
57
- }
58
- if (message.minInnerRedemptionRate !== '') {
59
- writer
60
- .uint32(26)
61
- .string(Decimal.fromUserInput(message.minInnerRedemptionRate, 18).atomics);
62
- }
63
- if (message.maxInnerRedemptionRate !== '') {
64
- writer
65
- .uint32(34)
66
- .string(Decimal.fromUserInput(message.maxInnerRedemptionRate, 18).atomics);
67
- }
68
- return writer;
69
- },
70
- decode(input, length) {
71
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
72
- let end = length === undefined ? reader.len : reader.pos + length;
73
- const message = createBaseMsgUpdateInnerRedemptionRateBounds();
74
- while (reader.pos < end) {
75
- const tag = reader.uint32();
76
- switch (tag >>> 3) {
77
- case 1:
78
- message.creator = reader.string();
79
- break;
80
- case 2:
81
- message.chainId = reader.string();
82
- break;
83
- case 3:
84
- message.minInnerRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
85
- break;
86
- case 4:
87
- message.maxInnerRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
88
- break;
89
- default:
90
- reader.skipType(tag & 7);
91
- break;
92
- }
93
- }
94
- return message;
95
- },
96
- fromJSON(object) {
97
- return {
98
- creator: isSet(object.creator) ? String(object.creator) : '',
99
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
100
- minInnerRedemptionRate: isSet(object.minInnerRedemptionRate)
101
- ? String(object.minInnerRedemptionRate)
102
- : '',
103
- maxInnerRedemptionRate: isSet(object.maxInnerRedemptionRate)
104
- ? String(object.maxInnerRedemptionRate)
105
- : '',
106
- };
107
- },
108
- toJSON(message) {
109
- const obj = {};
110
- message.creator !== undefined && (obj.creator = message.creator);
111
- message.chainId !== undefined && (obj.chainId = message.chainId);
112
- message.minInnerRedemptionRate !== undefined &&
113
- (obj.minInnerRedemptionRate = message.minInnerRedemptionRate);
114
- message.maxInnerRedemptionRate !== undefined &&
115
- (obj.maxInnerRedemptionRate = message.maxInnerRedemptionRate);
116
- return obj;
117
- },
118
- fromPartial(object) {
119
- const message = createBaseMsgUpdateInnerRedemptionRateBounds();
120
- message.creator = object.creator ?? '';
121
- message.chainId = object.chainId ?? '';
122
- message.minInnerRedemptionRate = object.minInnerRedemptionRate ?? '';
123
- message.maxInnerRedemptionRate = object.maxInnerRedemptionRate ?? '';
124
- return message;
125
- },
126
- fromProtoMsg(message) {
127
- return MsgUpdateInnerRedemptionRateBounds.decode(message.value);
128
- },
129
- toProto(message) {
130
- return MsgUpdateInnerRedemptionRateBounds.encode(message).finish();
131
- },
132
- toProtoMsg(message) {
133
- return {
134
- typeUrl: '/stride.stakeibc.MsgUpdateInnerRedemptionRateBounds',
135
- value: MsgUpdateInnerRedemptionRateBounds.encode(message).finish(),
136
- };
137
- },
138
- };
139
- function createBaseMsgUpdateInnerRedemptionRateBoundsResponse() {
140
- return {};
141
- }
142
- export const MsgUpdateInnerRedemptionRateBoundsResponse = {
143
- typeUrl: '/stride.stakeibc.MsgUpdateInnerRedemptionRateBoundsResponse',
144
- encode(_, writer = BinaryWriter.create()) {
145
- return writer;
146
- },
147
- decode(input, length) {
148
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
149
- let end = length === undefined ? reader.len : reader.pos + length;
150
- const message = createBaseMsgUpdateInnerRedemptionRateBoundsResponse();
151
- while (reader.pos < end) {
152
- const tag = reader.uint32();
153
- switch (tag >>> 3) {
154
- default:
155
- reader.skipType(tag & 7);
156
- break;
157
- }
158
- }
159
- return message;
160
- },
161
- fromJSON(_) {
162
- return {};
163
- },
164
- toJSON(_) {
165
- const obj = {};
166
- return obj;
167
- },
168
- fromPartial(_) {
169
- const message = createBaseMsgUpdateInnerRedemptionRateBoundsResponse();
170
- return message;
171
- },
172
- fromProtoMsg(message) {
173
- return MsgUpdateInnerRedemptionRateBoundsResponse.decode(message.value);
174
- },
175
- toProto(message) {
176
- return MsgUpdateInnerRedemptionRateBoundsResponse.encode(message).finish();
177
- },
178
- toProtoMsg(message) {
179
- return {
180
- typeUrl: '/stride.stakeibc.MsgUpdateInnerRedemptionRateBoundsResponse',
181
- value: MsgUpdateInnerRedemptionRateBoundsResponse.encode(message).finish(),
182
- };
183
- },
184
- };
185
- function createBaseMsgLiquidStake() {
186
- return {
187
- creator: '',
188
- amount: '',
189
- hostDenom: '',
190
- };
191
- }
192
- export const MsgLiquidStake = {
193
- typeUrl: '/stride.stakeibc.MsgLiquidStake',
194
- encode(message, writer = BinaryWriter.create()) {
195
- if (message.creator !== '') {
196
- writer.uint32(10).string(message.creator);
197
- }
198
- if (message.amount !== '') {
199
- writer.uint32(18).string(message.amount);
200
- }
201
- if (message.hostDenom !== '') {
202
- writer.uint32(26).string(message.hostDenom);
203
- }
204
- return writer;
205
- },
206
- decode(input, length) {
207
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
208
- let end = length === undefined ? reader.len : reader.pos + length;
209
- const message = createBaseMsgLiquidStake();
210
- while (reader.pos < end) {
211
- const tag = reader.uint32();
212
- switch (tag >>> 3) {
213
- case 1:
214
- message.creator = reader.string();
215
- break;
216
- case 2:
217
- message.amount = reader.string();
218
- break;
219
- case 3:
220
- message.hostDenom = reader.string();
221
- break;
222
- default:
223
- reader.skipType(tag & 7);
224
- break;
225
- }
226
- }
227
- return message;
228
- },
229
- fromJSON(object) {
230
- return {
231
- creator: isSet(object.creator) ? String(object.creator) : '',
232
- amount: isSet(object.amount) ? String(object.amount) : '',
233
- hostDenom: isSet(object.hostDenom) ? String(object.hostDenom) : '',
234
- };
235
- },
236
- toJSON(message) {
237
- const obj = {};
238
- message.creator !== undefined && (obj.creator = message.creator);
239
- message.amount !== undefined && (obj.amount = message.amount);
240
- message.hostDenom !== undefined && (obj.hostDenom = message.hostDenom);
241
- return obj;
242
- },
243
- fromPartial(object) {
244
- const message = createBaseMsgLiquidStake();
245
- message.creator = object.creator ?? '';
246
- message.amount = object.amount ?? '';
247
- message.hostDenom = object.hostDenom ?? '';
248
- return message;
249
- },
250
- fromProtoMsg(message) {
251
- return MsgLiquidStake.decode(message.value);
252
- },
253
- toProto(message) {
254
- return MsgLiquidStake.encode(message).finish();
255
- },
256
- toProtoMsg(message) {
257
- return {
258
- typeUrl: '/stride.stakeibc.MsgLiquidStake',
259
- value: MsgLiquidStake.encode(message).finish(),
260
- };
261
- },
262
- };
263
- function createBaseMsgLiquidStakeResponse() {
264
- return {
265
- stToken: Coin.fromPartial({}),
266
- };
267
- }
268
- export const MsgLiquidStakeResponse = {
269
- typeUrl: '/stride.stakeibc.MsgLiquidStakeResponse',
270
- encode(message, writer = BinaryWriter.create()) {
271
- if (message.stToken !== undefined) {
272
- Coin.encode(message.stToken, writer.uint32(10).fork()).ldelim();
273
- }
274
- return writer;
275
- },
276
- decode(input, length) {
277
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
278
- let end = length === undefined ? reader.len : reader.pos + length;
279
- const message = createBaseMsgLiquidStakeResponse();
280
- while (reader.pos < end) {
281
- const tag = reader.uint32();
282
- switch (tag >>> 3) {
283
- case 1:
284
- message.stToken = Coin.decode(reader, reader.uint32());
285
- break;
286
- default:
287
- reader.skipType(tag & 7);
288
- break;
289
- }
290
- }
291
- return message;
292
- },
293
- fromJSON(object) {
294
- return {
295
- stToken: isSet(object.stToken)
296
- ? Coin.fromJSON(object.stToken)
297
- : undefined,
298
- };
299
- },
300
- toJSON(message) {
301
- const obj = {};
302
- message.stToken !== undefined &&
303
- (obj.stToken = message.stToken
304
- ? Coin.toJSON(message.stToken)
305
- : undefined);
306
- return obj;
307
- },
308
- fromPartial(object) {
309
- const message = createBaseMsgLiquidStakeResponse();
310
- message.stToken =
311
- object.stToken !== undefined && object.stToken !== null
312
- ? Coin.fromPartial(object.stToken)
313
- : undefined;
314
- return message;
315
- },
316
- fromProtoMsg(message) {
317
- return MsgLiquidStakeResponse.decode(message.value);
318
- },
319
- toProto(message) {
320
- return MsgLiquidStakeResponse.encode(message).finish();
321
- },
322
- toProtoMsg(message) {
323
- return {
324
- typeUrl: '/stride.stakeibc.MsgLiquidStakeResponse',
325
- value: MsgLiquidStakeResponse.encode(message).finish(),
326
- };
327
- },
328
- };
329
- function createBaseMsgLSMLiquidStake() {
330
- return {
331
- creator: '',
332
- amount: '',
333
- lsmTokenIbcDenom: '',
334
- };
335
- }
336
- export const MsgLSMLiquidStake = {
337
- typeUrl: '/stride.stakeibc.MsgLSMLiquidStake',
338
- encode(message, writer = BinaryWriter.create()) {
339
- if (message.creator !== '') {
340
- writer.uint32(10).string(message.creator);
341
- }
342
- if (message.amount !== '') {
343
- writer.uint32(18).string(message.amount);
344
- }
345
- if (message.lsmTokenIbcDenom !== '') {
346
- writer.uint32(26).string(message.lsmTokenIbcDenom);
347
- }
348
- return writer;
349
- },
350
- decode(input, length) {
351
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
352
- let end = length === undefined ? reader.len : reader.pos + length;
353
- const message = createBaseMsgLSMLiquidStake();
354
- while (reader.pos < end) {
355
- const tag = reader.uint32();
356
- switch (tag >>> 3) {
357
- case 1:
358
- message.creator = reader.string();
359
- break;
360
- case 2:
361
- message.amount = reader.string();
362
- break;
363
- case 3:
364
- message.lsmTokenIbcDenom = reader.string();
365
- break;
366
- default:
367
- reader.skipType(tag & 7);
368
- break;
369
- }
370
- }
371
- return message;
372
- },
373
- fromJSON(object) {
374
- return {
375
- creator: isSet(object.creator) ? String(object.creator) : '',
376
- amount: isSet(object.amount) ? String(object.amount) : '',
377
- lsmTokenIbcDenom: isSet(object.lsmTokenIbcDenom)
378
- ? String(object.lsmTokenIbcDenom)
379
- : '',
380
- };
381
- },
382
- toJSON(message) {
383
- const obj = {};
384
- message.creator !== undefined && (obj.creator = message.creator);
385
- message.amount !== undefined && (obj.amount = message.amount);
386
- message.lsmTokenIbcDenom !== undefined &&
387
- (obj.lsmTokenIbcDenom = message.lsmTokenIbcDenom);
388
- return obj;
389
- },
390
- fromPartial(object) {
391
- const message = createBaseMsgLSMLiquidStake();
392
- message.creator = object.creator ?? '';
393
- message.amount = object.amount ?? '';
394
- message.lsmTokenIbcDenom = object.lsmTokenIbcDenom ?? '';
395
- return message;
396
- },
397
- fromProtoMsg(message) {
398
- return MsgLSMLiquidStake.decode(message.value);
399
- },
400
- toProto(message) {
401
- return MsgLSMLiquidStake.encode(message).finish();
402
- },
403
- toProtoMsg(message) {
404
- return {
405
- typeUrl: '/stride.stakeibc.MsgLSMLiquidStake',
406
- value: MsgLSMLiquidStake.encode(message).finish(),
407
- };
408
- },
409
- };
410
- function createBaseMsgLSMLiquidStakeResponse() {
411
- return {
412
- transactionComplete: false,
413
- };
414
- }
415
- export const MsgLSMLiquidStakeResponse = {
416
- typeUrl: '/stride.stakeibc.MsgLSMLiquidStakeResponse',
417
- encode(message, writer = BinaryWriter.create()) {
418
- if (message.transactionComplete === true) {
419
- writer.uint32(8).bool(message.transactionComplete);
420
- }
421
- return writer;
422
- },
423
- decode(input, length) {
424
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
425
- let end = length === undefined ? reader.len : reader.pos + length;
426
- const message = createBaseMsgLSMLiquidStakeResponse();
427
- while (reader.pos < end) {
428
- const tag = reader.uint32();
429
- switch (tag >>> 3) {
430
- case 1:
431
- message.transactionComplete = reader.bool();
432
- break;
433
- default:
434
- reader.skipType(tag & 7);
435
- break;
436
- }
437
- }
438
- return message;
439
- },
440
- fromJSON(object) {
441
- return {
442
- transactionComplete: isSet(object.transactionComplete)
443
- ? Boolean(object.transactionComplete)
444
- : false,
445
- };
446
- },
447
- toJSON(message) {
448
- const obj = {};
449
- message.transactionComplete !== undefined &&
450
- (obj.transactionComplete = message.transactionComplete);
451
- return obj;
452
- },
453
- fromPartial(object) {
454
- const message = createBaseMsgLSMLiquidStakeResponse();
455
- message.transactionComplete = object.transactionComplete ?? false;
456
- return message;
457
- },
458
- fromProtoMsg(message) {
459
- return MsgLSMLiquidStakeResponse.decode(message.value);
460
- },
461
- toProto(message) {
462
- return MsgLSMLiquidStakeResponse.encode(message).finish();
463
- },
464
- toProtoMsg(message) {
465
- return {
466
- typeUrl: '/stride.stakeibc.MsgLSMLiquidStakeResponse',
467
- value: MsgLSMLiquidStakeResponse.encode(message).finish(),
468
- };
469
- },
470
- };
471
- function createBaseMsgClearBalance() {
472
- return {
473
- creator: '',
474
- chainId: '',
475
- amount: '',
476
- channel: '',
477
- };
478
- }
479
- export const MsgClearBalance = {
480
- typeUrl: '/stride.stakeibc.MsgClearBalance',
481
- encode(message, writer = BinaryWriter.create()) {
482
- if (message.creator !== '') {
483
- writer.uint32(10).string(message.creator);
484
- }
485
- if (message.chainId !== '') {
486
- writer.uint32(18).string(message.chainId);
487
- }
488
- if (message.amount !== '') {
489
- writer.uint32(26).string(message.amount);
490
- }
491
- if (message.channel !== '') {
492
- writer.uint32(34).string(message.channel);
493
- }
494
- return writer;
495
- },
496
- decode(input, length) {
497
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
498
- let end = length === undefined ? reader.len : reader.pos + length;
499
- const message = createBaseMsgClearBalance();
500
- while (reader.pos < end) {
501
- const tag = reader.uint32();
502
- switch (tag >>> 3) {
503
- case 1:
504
- message.creator = reader.string();
505
- break;
506
- case 2:
507
- message.chainId = reader.string();
508
- break;
509
- case 3:
510
- message.amount = reader.string();
511
- break;
512
- case 4:
513
- message.channel = reader.string();
514
- break;
515
- default:
516
- reader.skipType(tag & 7);
517
- break;
518
- }
519
- }
520
- return message;
521
- },
522
- fromJSON(object) {
523
- return {
524
- creator: isSet(object.creator) ? String(object.creator) : '',
525
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
526
- amount: isSet(object.amount) ? String(object.amount) : '',
527
- channel: isSet(object.channel) ? String(object.channel) : '',
528
- };
529
- },
530
- toJSON(message) {
531
- const obj = {};
532
- message.creator !== undefined && (obj.creator = message.creator);
533
- message.chainId !== undefined && (obj.chainId = message.chainId);
534
- message.amount !== undefined && (obj.amount = message.amount);
535
- message.channel !== undefined && (obj.channel = message.channel);
536
- return obj;
537
- },
538
- fromPartial(object) {
539
- const message = createBaseMsgClearBalance();
540
- message.creator = object.creator ?? '';
541
- message.chainId = object.chainId ?? '';
542
- message.amount = object.amount ?? '';
543
- message.channel = object.channel ?? '';
544
- return message;
545
- },
546
- fromProtoMsg(message) {
547
- return MsgClearBalance.decode(message.value);
548
- },
549
- toProto(message) {
550
- return MsgClearBalance.encode(message).finish();
551
- },
552
- toProtoMsg(message) {
553
- return {
554
- typeUrl: '/stride.stakeibc.MsgClearBalance',
555
- value: MsgClearBalance.encode(message).finish(),
556
- };
557
- },
558
- };
559
- function createBaseMsgClearBalanceResponse() {
560
- return {};
561
- }
562
- export const MsgClearBalanceResponse = {
563
- typeUrl: '/stride.stakeibc.MsgClearBalanceResponse',
564
- encode(_, writer = BinaryWriter.create()) {
565
- return writer;
566
- },
567
- decode(input, length) {
568
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
569
- let end = length === undefined ? reader.len : reader.pos + length;
570
- const message = createBaseMsgClearBalanceResponse();
571
- while (reader.pos < end) {
572
- const tag = reader.uint32();
573
- switch (tag >>> 3) {
574
- default:
575
- reader.skipType(tag & 7);
576
- break;
577
- }
578
- }
579
- return message;
580
- },
581
- fromJSON(_) {
582
- return {};
583
- },
584
- toJSON(_) {
585
- const obj = {};
586
- return obj;
587
- },
588
- fromPartial(_) {
589
- const message = createBaseMsgClearBalanceResponse();
590
- return message;
591
- },
592
- fromProtoMsg(message) {
593
- return MsgClearBalanceResponse.decode(message.value);
594
- },
595
- toProto(message) {
596
- return MsgClearBalanceResponse.encode(message).finish();
597
- },
598
- toProtoMsg(message) {
599
- return {
600
- typeUrl: '/stride.stakeibc.MsgClearBalanceResponse',
601
- value: MsgClearBalanceResponse.encode(message).finish(),
602
- };
603
- },
604
- };
605
- function createBaseMsgRedeemStake() {
606
- return {
607
- creator: '',
608
- amount: '',
609
- hostZone: '',
610
- receiver: '',
611
- };
612
- }
613
- export const MsgRedeemStake = {
614
- typeUrl: '/stride.stakeibc.MsgRedeemStake',
615
- encode(message, writer = BinaryWriter.create()) {
616
- if (message.creator !== '') {
617
- writer.uint32(10).string(message.creator);
618
- }
619
- if (message.amount !== '') {
620
- writer.uint32(18).string(message.amount);
621
- }
622
- if (message.hostZone !== '') {
623
- writer.uint32(26).string(message.hostZone);
624
- }
625
- if (message.receiver !== '') {
626
- writer.uint32(34).string(message.receiver);
627
- }
628
- return writer;
629
- },
630
- decode(input, length) {
631
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
632
- let end = length === undefined ? reader.len : reader.pos + length;
633
- const message = createBaseMsgRedeemStake();
634
- while (reader.pos < end) {
635
- const tag = reader.uint32();
636
- switch (tag >>> 3) {
637
- case 1:
638
- message.creator = reader.string();
639
- break;
640
- case 2:
641
- message.amount = reader.string();
642
- break;
643
- case 3:
644
- message.hostZone = reader.string();
645
- break;
646
- case 4:
647
- message.receiver = reader.string();
648
- break;
649
- default:
650
- reader.skipType(tag & 7);
651
- break;
652
- }
653
- }
654
- return message;
655
- },
656
- fromJSON(object) {
657
- return {
658
- creator: isSet(object.creator) ? String(object.creator) : '',
659
- amount: isSet(object.amount) ? String(object.amount) : '',
660
- hostZone: isSet(object.hostZone) ? String(object.hostZone) : '',
661
- receiver: isSet(object.receiver) ? String(object.receiver) : '',
662
- };
663
- },
664
- toJSON(message) {
665
- const obj = {};
666
- message.creator !== undefined && (obj.creator = message.creator);
667
- message.amount !== undefined && (obj.amount = message.amount);
668
- message.hostZone !== undefined && (obj.hostZone = message.hostZone);
669
- message.receiver !== undefined && (obj.receiver = message.receiver);
670
- return obj;
671
- },
672
- fromPartial(object) {
673
- const message = createBaseMsgRedeemStake();
674
- message.creator = object.creator ?? '';
675
- message.amount = object.amount ?? '';
676
- message.hostZone = object.hostZone ?? '';
677
- message.receiver = object.receiver ?? '';
678
- return message;
679
- },
680
- fromProtoMsg(message) {
681
- return MsgRedeemStake.decode(message.value);
682
- },
683
- toProto(message) {
684
- return MsgRedeemStake.encode(message).finish();
685
- },
686
- toProtoMsg(message) {
687
- return {
688
- typeUrl: '/stride.stakeibc.MsgRedeemStake',
689
- value: MsgRedeemStake.encode(message).finish(),
690
- };
691
- },
692
- };
693
- function createBaseMsgRedeemStakeResponse() {
694
- return {};
695
- }
696
- export const MsgRedeemStakeResponse = {
697
- typeUrl: '/stride.stakeibc.MsgRedeemStakeResponse',
698
- encode(_, writer = BinaryWriter.create()) {
699
- return writer;
700
- },
701
- decode(input, length) {
702
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
703
- let end = length === undefined ? reader.len : reader.pos + length;
704
- const message = createBaseMsgRedeemStakeResponse();
705
- while (reader.pos < end) {
706
- const tag = reader.uint32();
707
- switch (tag >>> 3) {
708
- default:
709
- reader.skipType(tag & 7);
710
- break;
711
- }
712
- }
713
- return message;
714
- },
715
- fromJSON(_) {
716
- return {};
717
- },
718
- toJSON(_) {
719
- const obj = {};
720
- return obj;
721
- },
722
- fromPartial(_) {
723
- const message = createBaseMsgRedeemStakeResponse();
724
- return message;
725
- },
726
- fromProtoMsg(message) {
727
- return MsgRedeemStakeResponse.decode(message.value);
728
- },
729
- toProto(message) {
730
- return MsgRedeemStakeResponse.encode(message).finish();
731
- },
732
- toProtoMsg(message) {
733
- return {
734
- typeUrl: '/stride.stakeibc.MsgRedeemStakeResponse',
735
- value: MsgRedeemStakeResponse.encode(message).finish(),
736
- };
737
- },
738
- };
739
- function createBaseMsgRegisterHostZone() {
740
- return {
741
- connectionId: '',
742
- bech32prefix: '',
743
- hostDenom: '',
744
- ibcDenom: '',
745
- creator: '',
746
- transferChannelId: '',
747
- unbondingPeriod: BigInt(0),
748
- minRedemptionRate: '',
749
- maxRedemptionRate: '',
750
- lsmLiquidStakeEnabled: false,
751
- communityPoolTreasuryAddress: '',
752
- maxMessagesPerIcaTx: BigInt(0),
753
- };
754
- }
755
- export const MsgRegisterHostZone = {
756
- typeUrl: '/stride.stakeibc.MsgRegisterHostZone',
757
- encode(message, writer = BinaryWriter.create()) {
758
- if (message.connectionId !== '') {
759
- writer.uint32(18).string(message.connectionId);
760
- }
761
- if (message.bech32prefix !== '') {
762
- writer.uint32(98).string(message.bech32prefix);
763
- }
764
- if (message.hostDenom !== '') {
765
- writer.uint32(34).string(message.hostDenom);
766
- }
767
- if (message.ibcDenom !== '') {
768
- writer.uint32(42).string(message.ibcDenom);
769
- }
770
- if (message.creator !== '') {
771
- writer.uint32(50).string(message.creator);
772
- }
773
- if (message.transferChannelId !== '') {
774
- writer.uint32(82).string(message.transferChannelId);
775
- }
776
- if (message.unbondingPeriod !== BigInt(0)) {
777
- writer.uint32(88).uint64(message.unbondingPeriod);
778
- }
779
- if (message.minRedemptionRate !== '') {
780
- writer
781
- .uint32(106)
782
- .string(Decimal.fromUserInput(message.minRedemptionRate, 18).atomics);
783
- }
784
- if (message.maxRedemptionRate !== '') {
785
- writer
786
- .uint32(114)
787
- .string(Decimal.fromUserInput(message.maxRedemptionRate, 18).atomics);
788
- }
789
- if (message.lsmLiquidStakeEnabled === true) {
790
- writer.uint32(120).bool(message.lsmLiquidStakeEnabled);
791
- }
792
- if (message.communityPoolTreasuryAddress !== '') {
793
- writer.uint32(130).string(message.communityPoolTreasuryAddress);
794
- }
795
- if (message.maxMessagesPerIcaTx !== BigInt(0)) {
796
- writer.uint32(136).uint64(message.maxMessagesPerIcaTx);
797
- }
798
- return writer;
799
- },
800
- decode(input, length) {
801
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
802
- let end = length === undefined ? reader.len : reader.pos + length;
803
- const message = createBaseMsgRegisterHostZone();
804
- while (reader.pos < end) {
805
- const tag = reader.uint32();
806
- switch (tag >>> 3) {
807
- case 2:
808
- message.connectionId = reader.string();
809
- break;
810
- case 12:
811
- message.bech32prefix = reader.string();
812
- break;
813
- case 4:
814
- message.hostDenom = reader.string();
815
- break;
816
- case 5:
817
- message.ibcDenom = reader.string();
818
- break;
819
- case 6:
820
- message.creator = reader.string();
821
- break;
822
- case 10:
823
- message.transferChannelId = reader.string();
824
- break;
825
- case 11:
826
- message.unbondingPeriod = reader.uint64();
827
- break;
828
- case 13:
829
- message.minRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
830
- break;
831
- case 14:
832
- message.maxRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
833
- break;
834
- case 15:
835
- message.lsmLiquidStakeEnabled = reader.bool();
836
- break;
837
- case 16:
838
- message.communityPoolTreasuryAddress = reader.string();
839
- break;
840
- case 17:
841
- message.maxMessagesPerIcaTx = reader.uint64();
842
- break;
843
- default:
844
- reader.skipType(tag & 7);
845
- break;
846
- }
847
- }
848
- return message;
849
- },
850
- fromJSON(object) {
851
- return {
852
- connectionId: isSet(object.connectionId)
853
- ? String(object.connectionId)
854
- : '',
855
- bech32prefix: isSet(object.bech32prefix)
856
- ? String(object.bech32prefix)
857
- : '',
858
- hostDenom: isSet(object.hostDenom) ? String(object.hostDenom) : '',
859
- ibcDenom: isSet(object.ibcDenom) ? String(object.ibcDenom) : '',
860
- creator: isSet(object.creator) ? String(object.creator) : '',
861
- transferChannelId: isSet(object.transferChannelId)
862
- ? String(object.transferChannelId)
863
- : '',
864
- unbondingPeriod: isSet(object.unbondingPeriod)
865
- ? BigInt(object.unbondingPeriod.toString())
866
- : BigInt(0),
867
- minRedemptionRate: isSet(object.minRedemptionRate)
868
- ? String(object.minRedemptionRate)
869
- : '',
870
- maxRedemptionRate: isSet(object.maxRedemptionRate)
871
- ? String(object.maxRedemptionRate)
872
- : '',
873
- lsmLiquidStakeEnabled: isSet(object.lsmLiquidStakeEnabled)
874
- ? Boolean(object.lsmLiquidStakeEnabled)
875
- : false,
876
- communityPoolTreasuryAddress: isSet(object.communityPoolTreasuryAddress)
877
- ? String(object.communityPoolTreasuryAddress)
878
- : '',
879
- maxMessagesPerIcaTx: isSet(object.maxMessagesPerIcaTx)
880
- ? BigInt(object.maxMessagesPerIcaTx.toString())
881
- : BigInt(0),
882
- };
883
- },
884
- toJSON(message) {
885
- const obj = {};
886
- message.connectionId !== undefined &&
887
- (obj.connectionId = message.connectionId);
888
- message.bech32prefix !== undefined &&
889
- (obj.bech32prefix = message.bech32prefix);
890
- message.hostDenom !== undefined && (obj.hostDenom = message.hostDenom);
891
- message.ibcDenom !== undefined && (obj.ibcDenom = message.ibcDenom);
892
- message.creator !== undefined && (obj.creator = message.creator);
893
- message.transferChannelId !== undefined &&
894
- (obj.transferChannelId = message.transferChannelId);
895
- message.unbondingPeriod !== undefined &&
896
- (obj.unbondingPeriod = (message.unbondingPeriod || BigInt(0)).toString());
897
- message.minRedemptionRate !== undefined &&
898
- (obj.minRedemptionRate = message.minRedemptionRate);
899
- message.maxRedemptionRate !== undefined &&
900
- (obj.maxRedemptionRate = message.maxRedemptionRate);
901
- message.lsmLiquidStakeEnabled !== undefined &&
902
- (obj.lsmLiquidStakeEnabled = message.lsmLiquidStakeEnabled);
903
- message.communityPoolTreasuryAddress !== undefined &&
904
- (obj.communityPoolTreasuryAddress = message.communityPoolTreasuryAddress);
905
- message.maxMessagesPerIcaTx !== undefined &&
906
- (obj.maxMessagesPerIcaTx = (message.maxMessagesPerIcaTx || BigInt(0)).toString());
907
- return obj;
908
- },
909
- fromPartial(object) {
910
- const message = createBaseMsgRegisterHostZone();
911
- message.connectionId = object.connectionId ?? '';
912
- message.bech32prefix = object.bech32prefix ?? '';
913
- message.hostDenom = object.hostDenom ?? '';
914
- message.ibcDenom = object.ibcDenom ?? '';
915
- message.creator = object.creator ?? '';
916
- message.transferChannelId = object.transferChannelId ?? '';
917
- message.unbondingPeriod =
918
- object.unbondingPeriod !== undefined && object.unbondingPeriod !== null
919
- ? BigInt(object.unbondingPeriod.toString())
920
- : BigInt(0);
921
- message.minRedemptionRate = object.minRedemptionRate ?? '';
922
- message.maxRedemptionRate = object.maxRedemptionRate ?? '';
923
- message.lsmLiquidStakeEnabled = object.lsmLiquidStakeEnabled ?? false;
924
- message.communityPoolTreasuryAddress =
925
- object.communityPoolTreasuryAddress ?? '';
926
- message.maxMessagesPerIcaTx =
927
- object.maxMessagesPerIcaTx !== undefined &&
928
- object.maxMessagesPerIcaTx !== null
929
- ? BigInt(object.maxMessagesPerIcaTx.toString())
930
- : BigInt(0);
931
- return message;
932
- },
933
- fromProtoMsg(message) {
934
- return MsgRegisterHostZone.decode(message.value);
935
- },
936
- toProto(message) {
937
- return MsgRegisterHostZone.encode(message).finish();
938
- },
939
- toProtoMsg(message) {
940
- return {
941
- typeUrl: '/stride.stakeibc.MsgRegisterHostZone',
942
- value: MsgRegisterHostZone.encode(message).finish(),
943
- };
944
- },
945
- };
946
- function createBaseMsgRegisterHostZoneResponse() {
947
- return {};
948
- }
949
- export const MsgRegisterHostZoneResponse = {
950
- typeUrl: '/stride.stakeibc.MsgRegisterHostZoneResponse',
951
- encode(_, writer = BinaryWriter.create()) {
952
- return writer;
953
- },
954
- decode(input, length) {
955
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
956
- let end = length === undefined ? reader.len : reader.pos + length;
957
- const message = createBaseMsgRegisterHostZoneResponse();
958
- while (reader.pos < end) {
959
- const tag = reader.uint32();
960
- switch (tag >>> 3) {
961
- default:
962
- reader.skipType(tag & 7);
963
- break;
964
- }
965
- }
966
- return message;
967
- },
968
- fromJSON(_) {
969
- return {};
970
- },
971
- toJSON(_) {
972
- const obj = {};
973
- return obj;
974
- },
975
- fromPartial(_) {
976
- const message = createBaseMsgRegisterHostZoneResponse();
977
- return message;
978
- },
979
- fromProtoMsg(message) {
980
- return MsgRegisterHostZoneResponse.decode(message.value);
981
- },
982
- toProto(message) {
983
- return MsgRegisterHostZoneResponse.encode(message).finish();
984
- },
985
- toProtoMsg(message) {
986
- return {
987
- typeUrl: '/stride.stakeibc.MsgRegisterHostZoneResponse',
988
- value: MsgRegisterHostZoneResponse.encode(message).finish(),
989
- };
990
- },
991
- };
992
- function createBaseMsgClaimUndelegatedTokens() {
993
- return {
994
- creator: '',
995
- hostZoneId: '',
996
- epoch: BigInt(0),
997
- receiver: '',
998
- };
999
- }
1000
- export const MsgClaimUndelegatedTokens = {
1001
- typeUrl: '/stride.stakeibc.MsgClaimUndelegatedTokens',
1002
- encode(message, writer = BinaryWriter.create()) {
1003
- if (message.creator !== '') {
1004
- writer.uint32(10).string(message.creator);
1005
- }
1006
- if (message.hostZoneId !== '') {
1007
- writer.uint32(18).string(message.hostZoneId);
1008
- }
1009
- if (message.epoch !== BigInt(0)) {
1010
- writer.uint32(24).uint64(message.epoch);
1011
- }
1012
- if (message.receiver !== '') {
1013
- writer.uint32(42).string(message.receiver);
1014
- }
1015
- return writer;
1016
- },
1017
- decode(input, length) {
1018
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1019
- let end = length === undefined ? reader.len : reader.pos + length;
1020
- const message = createBaseMsgClaimUndelegatedTokens();
1021
- while (reader.pos < end) {
1022
- const tag = reader.uint32();
1023
- switch (tag >>> 3) {
1024
- case 1:
1025
- message.creator = reader.string();
1026
- break;
1027
- case 2:
1028
- message.hostZoneId = reader.string();
1029
- break;
1030
- case 3:
1031
- message.epoch = reader.uint64();
1032
- break;
1033
- case 5:
1034
- message.receiver = reader.string();
1035
- break;
1036
- default:
1037
- reader.skipType(tag & 7);
1038
- break;
1039
- }
1040
- }
1041
- return message;
1042
- },
1043
- fromJSON(object) {
1044
- return {
1045
- creator: isSet(object.creator) ? String(object.creator) : '',
1046
- hostZoneId: isSet(object.hostZoneId) ? String(object.hostZoneId) : '',
1047
- epoch: isSet(object.epoch) ? BigInt(object.epoch.toString()) : BigInt(0),
1048
- receiver: isSet(object.receiver) ? String(object.receiver) : '',
1049
- };
1050
- },
1051
- toJSON(message) {
1052
- const obj = {};
1053
- message.creator !== undefined && (obj.creator = message.creator);
1054
- message.hostZoneId !== undefined && (obj.hostZoneId = message.hostZoneId);
1055
- message.epoch !== undefined &&
1056
- (obj.epoch = (message.epoch || BigInt(0)).toString());
1057
- message.receiver !== undefined && (obj.receiver = message.receiver);
1058
- return obj;
1059
- },
1060
- fromPartial(object) {
1061
- const message = createBaseMsgClaimUndelegatedTokens();
1062
- message.creator = object.creator ?? '';
1063
- message.hostZoneId = object.hostZoneId ?? '';
1064
- message.epoch =
1065
- object.epoch !== undefined && object.epoch !== null
1066
- ? BigInt(object.epoch.toString())
1067
- : BigInt(0);
1068
- message.receiver = object.receiver ?? '';
1069
- return message;
1070
- },
1071
- fromProtoMsg(message) {
1072
- return MsgClaimUndelegatedTokens.decode(message.value);
1073
- },
1074
- toProto(message) {
1075
- return MsgClaimUndelegatedTokens.encode(message).finish();
1076
- },
1077
- toProtoMsg(message) {
1078
- return {
1079
- typeUrl: '/stride.stakeibc.MsgClaimUndelegatedTokens',
1080
- value: MsgClaimUndelegatedTokens.encode(message).finish(),
1081
- };
1082
- },
1083
- };
1084
- function createBaseMsgClaimUndelegatedTokensResponse() {
1085
- return {};
1086
- }
1087
- export const MsgClaimUndelegatedTokensResponse = {
1088
- typeUrl: '/stride.stakeibc.MsgClaimUndelegatedTokensResponse',
1089
- encode(_, writer = BinaryWriter.create()) {
1090
- return writer;
1091
- },
1092
- decode(input, length) {
1093
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1094
- let end = length === undefined ? reader.len : reader.pos + length;
1095
- const message = createBaseMsgClaimUndelegatedTokensResponse();
1096
- while (reader.pos < end) {
1097
- const tag = reader.uint32();
1098
- switch (tag >>> 3) {
1099
- default:
1100
- reader.skipType(tag & 7);
1101
- break;
1102
- }
1103
- }
1104
- return message;
1105
- },
1106
- fromJSON(_) {
1107
- return {};
1108
- },
1109
- toJSON(_) {
1110
- const obj = {};
1111
- return obj;
1112
- },
1113
- fromPartial(_) {
1114
- const message = createBaseMsgClaimUndelegatedTokensResponse();
1115
- return message;
1116
- },
1117
- fromProtoMsg(message) {
1118
- return MsgClaimUndelegatedTokensResponse.decode(message.value);
1119
- },
1120
- toProto(message) {
1121
- return MsgClaimUndelegatedTokensResponse.encode(message).finish();
1122
- },
1123
- toProtoMsg(message) {
1124
- return {
1125
- typeUrl: '/stride.stakeibc.MsgClaimUndelegatedTokensResponse',
1126
- value: MsgClaimUndelegatedTokensResponse.encode(message).finish(),
1127
- };
1128
- },
1129
- };
1130
- function createBaseMsgRebalanceValidators() {
1131
- return {
1132
- creator: '',
1133
- hostZone: '',
1134
- numRebalance: BigInt(0),
1135
- };
1136
- }
1137
- export const MsgRebalanceValidators = {
1138
- typeUrl: '/stride.stakeibc.MsgRebalanceValidators',
1139
- encode(message, writer = BinaryWriter.create()) {
1140
- if (message.creator !== '') {
1141
- writer.uint32(10).string(message.creator);
1142
- }
1143
- if (message.hostZone !== '') {
1144
- writer.uint32(18).string(message.hostZone);
1145
- }
1146
- if (message.numRebalance !== BigInt(0)) {
1147
- writer.uint32(24).uint64(message.numRebalance);
1148
- }
1149
- return writer;
1150
- },
1151
- decode(input, length) {
1152
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1153
- let end = length === undefined ? reader.len : reader.pos + length;
1154
- const message = createBaseMsgRebalanceValidators();
1155
- while (reader.pos < end) {
1156
- const tag = reader.uint32();
1157
- switch (tag >>> 3) {
1158
- case 1:
1159
- message.creator = reader.string();
1160
- break;
1161
- case 2:
1162
- message.hostZone = reader.string();
1163
- break;
1164
- case 3:
1165
- message.numRebalance = reader.uint64();
1166
- break;
1167
- default:
1168
- reader.skipType(tag & 7);
1169
- break;
1170
- }
1171
- }
1172
- return message;
1173
- },
1174
- fromJSON(object) {
1175
- return {
1176
- creator: isSet(object.creator) ? String(object.creator) : '',
1177
- hostZone: isSet(object.hostZone) ? String(object.hostZone) : '',
1178
- numRebalance: isSet(object.numRebalance)
1179
- ? BigInt(object.numRebalance.toString())
1180
- : BigInt(0),
1181
- };
1182
- },
1183
- toJSON(message) {
1184
- const obj = {};
1185
- message.creator !== undefined && (obj.creator = message.creator);
1186
- message.hostZone !== undefined && (obj.hostZone = message.hostZone);
1187
- message.numRebalance !== undefined &&
1188
- (obj.numRebalance = (message.numRebalance || BigInt(0)).toString());
1189
- return obj;
1190
- },
1191
- fromPartial(object) {
1192
- const message = createBaseMsgRebalanceValidators();
1193
- message.creator = object.creator ?? '';
1194
- message.hostZone = object.hostZone ?? '';
1195
- message.numRebalance =
1196
- object.numRebalance !== undefined && object.numRebalance !== null
1197
- ? BigInt(object.numRebalance.toString())
1198
- : BigInt(0);
1199
- return message;
1200
- },
1201
- fromProtoMsg(message) {
1202
- return MsgRebalanceValidators.decode(message.value);
1203
- },
1204
- toProto(message) {
1205
- return MsgRebalanceValidators.encode(message).finish();
1206
- },
1207
- toProtoMsg(message) {
1208
- return {
1209
- typeUrl: '/stride.stakeibc.MsgRebalanceValidators',
1210
- value: MsgRebalanceValidators.encode(message).finish(),
1211
- };
1212
- },
1213
- };
1214
- function createBaseMsgRebalanceValidatorsResponse() {
1215
- return {};
1216
- }
1217
- export const MsgRebalanceValidatorsResponse = {
1218
- typeUrl: '/stride.stakeibc.MsgRebalanceValidatorsResponse',
1219
- encode(_, writer = BinaryWriter.create()) {
1220
- return writer;
1221
- },
1222
- decode(input, length) {
1223
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1224
- let end = length === undefined ? reader.len : reader.pos + length;
1225
- const message = createBaseMsgRebalanceValidatorsResponse();
1226
- while (reader.pos < end) {
1227
- const tag = reader.uint32();
1228
- switch (tag >>> 3) {
1229
- default:
1230
- reader.skipType(tag & 7);
1231
- break;
1232
- }
1233
- }
1234
- return message;
1235
- },
1236
- fromJSON(_) {
1237
- return {};
1238
- },
1239
- toJSON(_) {
1240
- const obj = {};
1241
- return obj;
1242
- },
1243
- fromPartial(_) {
1244
- const message = createBaseMsgRebalanceValidatorsResponse();
1245
- return message;
1246
- },
1247
- fromProtoMsg(message) {
1248
- return MsgRebalanceValidatorsResponse.decode(message.value);
1249
- },
1250
- toProto(message) {
1251
- return MsgRebalanceValidatorsResponse.encode(message).finish();
1252
- },
1253
- toProtoMsg(message) {
1254
- return {
1255
- typeUrl: '/stride.stakeibc.MsgRebalanceValidatorsResponse',
1256
- value: MsgRebalanceValidatorsResponse.encode(message).finish(),
1257
- };
1258
- },
1259
- };
1260
- function createBaseMsgAddValidators() {
1261
- return {
1262
- creator: '',
1263
- hostZone: '',
1264
- validators: [],
1265
- };
1266
- }
1267
- export const MsgAddValidators = {
1268
- typeUrl: '/stride.stakeibc.MsgAddValidators',
1269
- encode(message, writer = BinaryWriter.create()) {
1270
- if (message.creator !== '') {
1271
- writer.uint32(10).string(message.creator);
1272
- }
1273
- if (message.hostZone !== '') {
1274
- writer.uint32(18).string(message.hostZone);
1275
- }
1276
- for (const v of message.validators) {
1277
- Validator.encode(v, writer.uint32(26).fork()).ldelim();
1278
- }
1279
- return writer;
1280
- },
1281
- decode(input, length) {
1282
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1283
- let end = length === undefined ? reader.len : reader.pos + length;
1284
- const message = createBaseMsgAddValidators();
1285
- while (reader.pos < end) {
1286
- const tag = reader.uint32();
1287
- switch (tag >>> 3) {
1288
- case 1:
1289
- message.creator = reader.string();
1290
- break;
1291
- case 2:
1292
- message.hostZone = reader.string();
1293
- break;
1294
- case 3:
1295
- message.validators.push(Validator.decode(reader, reader.uint32()));
1296
- break;
1297
- default:
1298
- reader.skipType(tag & 7);
1299
- break;
1300
- }
1301
- }
1302
- return message;
1303
- },
1304
- fromJSON(object) {
1305
- return {
1306
- creator: isSet(object.creator) ? String(object.creator) : '',
1307
- hostZone: isSet(object.hostZone) ? String(object.hostZone) : '',
1308
- validators: Array.isArray(object?.validators)
1309
- ? object.validators.map((e) => Validator.fromJSON(e))
1310
- : [],
1311
- };
1312
- },
1313
- toJSON(message) {
1314
- const obj = {};
1315
- message.creator !== undefined && (obj.creator = message.creator);
1316
- message.hostZone !== undefined && (obj.hostZone = message.hostZone);
1317
- if (message.validators) {
1318
- obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined);
1319
- }
1320
- else {
1321
- obj.validators = [];
1322
- }
1323
- return obj;
1324
- },
1325
- fromPartial(object) {
1326
- const message = createBaseMsgAddValidators();
1327
- message.creator = object.creator ?? '';
1328
- message.hostZone = object.hostZone ?? '';
1329
- message.validators =
1330
- object.validators?.map(e => Validator.fromPartial(e)) || [];
1331
- return message;
1332
- },
1333
- fromProtoMsg(message) {
1334
- return MsgAddValidators.decode(message.value);
1335
- },
1336
- toProto(message) {
1337
- return MsgAddValidators.encode(message).finish();
1338
- },
1339
- toProtoMsg(message) {
1340
- return {
1341
- typeUrl: '/stride.stakeibc.MsgAddValidators',
1342
- value: MsgAddValidators.encode(message).finish(),
1343
- };
1344
- },
1345
- };
1346
- function createBaseMsgAddValidatorsResponse() {
1347
- return {};
1348
- }
1349
- export const MsgAddValidatorsResponse = {
1350
- typeUrl: '/stride.stakeibc.MsgAddValidatorsResponse',
1351
- encode(_, writer = BinaryWriter.create()) {
1352
- return writer;
1353
- },
1354
- decode(input, length) {
1355
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1356
- let end = length === undefined ? reader.len : reader.pos + length;
1357
- const message = createBaseMsgAddValidatorsResponse();
1358
- while (reader.pos < end) {
1359
- const tag = reader.uint32();
1360
- switch (tag >>> 3) {
1361
- default:
1362
- reader.skipType(tag & 7);
1363
- break;
1364
- }
1365
- }
1366
- return message;
1367
- },
1368
- fromJSON(_) {
1369
- return {};
1370
- },
1371
- toJSON(_) {
1372
- const obj = {};
1373
- return obj;
1374
- },
1375
- fromPartial(_) {
1376
- const message = createBaseMsgAddValidatorsResponse();
1377
- return message;
1378
- },
1379
- fromProtoMsg(message) {
1380
- return MsgAddValidatorsResponse.decode(message.value);
1381
- },
1382
- toProto(message) {
1383
- return MsgAddValidatorsResponse.encode(message).finish();
1384
- },
1385
- toProtoMsg(message) {
1386
- return {
1387
- typeUrl: '/stride.stakeibc.MsgAddValidatorsResponse',
1388
- value: MsgAddValidatorsResponse.encode(message).finish(),
1389
- };
1390
- },
1391
- };
1392
- function createBaseValidatorWeight() {
1393
- return {
1394
- address: '',
1395
- weight: BigInt(0),
1396
- };
1397
- }
1398
- export const ValidatorWeight = {
1399
- typeUrl: '/stride.stakeibc.ValidatorWeight',
1400
- encode(message, writer = BinaryWriter.create()) {
1401
- if (message.address !== '') {
1402
- writer.uint32(10).string(message.address);
1403
- }
1404
- if (message.weight !== BigInt(0)) {
1405
- writer.uint32(16).uint64(message.weight);
1406
- }
1407
- return writer;
1408
- },
1409
- decode(input, length) {
1410
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1411
- let end = length === undefined ? reader.len : reader.pos + length;
1412
- const message = createBaseValidatorWeight();
1413
- while (reader.pos < end) {
1414
- const tag = reader.uint32();
1415
- switch (tag >>> 3) {
1416
- case 1:
1417
- message.address = reader.string();
1418
- break;
1419
- case 2:
1420
- message.weight = reader.uint64();
1421
- break;
1422
- default:
1423
- reader.skipType(tag & 7);
1424
- break;
1425
- }
1426
- }
1427
- return message;
1428
- },
1429
- fromJSON(object) {
1430
- return {
1431
- address: isSet(object.address) ? String(object.address) : '',
1432
- weight: isSet(object.weight)
1433
- ? BigInt(object.weight.toString())
1434
- : BigInt(0),
1435
- };
1436
- },
1437
- toJSON(message) {
1438
- const obj = {};
1439
- message.address !== undefined && (obj.address = message.address);
1440
- message.weight !== undefined &&
1441
- (obj.weight = (message.weight || BigInt(0)).toString());
1442
- return obj;
1443
- },
1444
- fromPartial(object) {
1445
- const message = createBaseValidatorWeight();
1446
- message.address = object.address ?? '';
1447
- message.weight =
1448
- object.weight !== undefined && object.weight !== null
1449
- ? BigInt(object.weight.toString())
1450
- : BigInt(0);
1451
- return message;
1452
- },
1453
- fromProtoMsg(message) {
1454
- return ValidatorWeight.decode(message.value);
1455
- },
1456
- toProto(message) {
1457
- return ValidatorWeight.encode(message).finish();
1458
- },
1459
- toProtoMsg(message) {
1460
- return {
1461
- typeUrl: '/stride.stakeibc.ValidatorWeight',
1462
- value: ValidatorWeight.encode(message).finish(),
1463
- };
1464
- },
1465
- };
1466
- function createBaseMsgChangeValidatorWeights() {
1467
- return {
1468
- creator: '',
1469
- hostZone: '',
1470
- validatorWeights: [],
1471
- };
1472
- }
1473
- export const MsgChangeValidatorWeights = {
1474
- typeUrl: '/stride.stakeibc.MsgChangeValidatorWeights',
1475
- encode(message, writer = BinaryWriter.create()) {
1476
- if (message.creator !== '') {
1477
- writer.uint32(10).string(message.creator);
1478
- }
1479
- if (message.hostZone !== '') {
1480
- writer.uint32(18).string(message.hostZone);
1481
- }
1482
- for (const v of message.validatorWeights) {
1483
- ValidatorWeight.encode(v, writer.uint32(26).fork()).ldelim();
1484
- }
1485
- return writer;
1486
- },
1487
- decode(input, length) {
1488
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1489
- let end = length === undefined ? reader.len : reader.pos + length;
1490
- const message = createBaseMsgChangeValidatorWeights();
1491
- while (reader.pos < end) {
1492
- const tag = reader.uint32();
1493
- switch (tag >>> 3) {
1494
- case 1:
1495
- message.creator = reader.string();
1496
- break;
1497
- case 2:
1498
- message.hostZone = reader.string();
1499
- break;
1500
- case 3:
1501
- message.validatorWeights.push(ValidatorWeight.decode(reader, reader.uint32()));
1502
- break;
1503
- default:
1504
- reader.skipType(tag & 7);
1505
- break;
1506
- }
1507
- }
1508
- return message;
1509
- },
1510
- fromJSON(object) {
1511
- return {
1512
- creator: isSet(object.creator) ? String(object.creator) : '',
1513
- hostZone: isSet(object.hostZone) ? String(object.hostZone) : '',
1514
- validatorWeights: Array.isArray(object?.validatorWeights)
1515
- ? object.validatorWeights.map((e) => ValidatorWeight.fromJSON(e))
1516
- : [],
1517
- };
1518
- },
1519
- toJSON(message) {
1520
- const obj = {};
1521
- message.creator !== undefined && (obj.creator = message.creator);
1522
- message.hostZone !== undefined && (obj.hostZone = message.hostZone);
1523
- if (message.validatorWeights) {
1524
- obj.validatorWeights = message.validatorWeights.map(e => e ? ValidatorWeight.toJSON(e) : undefined);
1525
- }
1526
- else {
1527
- obj.validatorWeights = [];
1528
- }
1529
- return obj;
1530
- },
1531
- fromPartial(object) {
1532
- const message = createBaseMsgChangeValidatorWeights();
1533
- message.creator = object.creator ?? '';
1534
- message.hostZone = object.hostZone ?? '';
1535
- message.validatorWeights =
1536
- object.validatorWeights?.map(e => ValidatorWeight.fromPartial(e)) || [];
1537
- return message;
1538
- },
1539
- fromProtoMsg(message) {
1540
- return MsgChangeValidatorWeights.decode(message.value);
1541
- },
1542
- toProto(message) {
1543
- return MsgChangeValidatorWeights.encode(message).finish();
1544
- },
1545
- toProtoMsg(message) {
1546
- return {
1547
- typeUrl: '/stride.stakeibc.MsgChangeValidatorWeights',
1548
- value: MsgChangeValidatorWeights.encode(message).finish(),
1549
- };
1550
- },
1551
- };
1552
- function createBaseMsgChangeValidatorWeightsResponse() {
1553
- return {};
1554
- }
1555
- export const MsgChangeValidatorWeightsResponse = {
1556
- typeUrl: '/stride.stakeibc.MsgChangeValidatorWeightsResponse',
1557
- encode(_, writer = BinaryWriter.create()) {
1558
- return writer;
1559
- },
1560
- decode(input, length) {
1561
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1562
- let end = length === undefined ? reader.len : reader.pos + length;
1563
- const message = createBaseMsgChangeValidatorWeightsResponse();
1564
- while (reader.pos < end) {
1565
- const tag = reader.uint32();
1566
- switch (tag >>> 3) {
1567
- default:
1568
- reader.skipType(tag & 7);
1569
- break;
1570
- }
1571
- }
1572
- return message;
1573
- },
1574
- fromJSON(_) {
1575
- return {};
1576
- },
1577
- toJSON(_) {
1578
- const obj = {};
1579
- return obj;
1580
- },
1581
- fromPartial(_) {
1582
- const message = createBaseMsgChangeValidatorWeightsResponse();
1583
- return message;
1584
- },
1585
- fromProtoMsg(message) {
1586
- return MsgChangeValidatorWeightsResponse.decode(message.value);
1587
- },
1588
- toProto(message) {
1589
- return MsgChangeValidatorWeightsResponse.encode(message).finish();
1590
- },
1591
- toProtoMsg(message) {
1592
- return {
1593
- typeUrl: '/stride.stakeibc.MsgChangeValidatorWeightsResponse',
1594
- value: MsgChangeValidatorWeightsResponse.encode(message).finish(),
1595
- };
1596
- },
1597
- };
1598
- function createBaseMsgDeleteValidator() {
1599
- return {
1600
- creator: '',
1601
- hostZone: '',
1602
- valAddr: '',
1603
- };
1604
- }
1605
- export const MsgDeleteValidator = {
1606
- typeUrl: '/stride.stakeibc.MsgDeleteValidator',
1607
- encode(message, writer = BinaryWriter.create()) {
1608
- if (message.creator !== '') {
1609
- writer.uint32(10).string(message.creator);
1610
- }
1611
- if (message.hostZone !== '') {
1612
- writer.uint32(18).string(message.hostZone);
1613
- }
1614
- if (message.valAddr !== '') {
1615
- writer.uint32(26).string(message.valAddr);
1616
- }
1617
- return writer;
1618
- },
1619
- decode(input, length) {
1620
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1621
- let end = length === undefined ? reader.len : reader.pos + length;
1622
- const message = createBaseMsgDeleteValidator();
1623
- while (reader.pos < end) {
1624
- const tag = reader.uint32();
1625
- switch (tag >>> 3) {
1626
- case 1:
1627
- message.creator = reader.string();
1628
- break;
1629
- case 2:
1630
- message.hostZone = reader.string();
1631
- break;
1632
- case 3:
1633
- message.valAddr = reader.string();
1634
- break;
1635
- default:
1636
- reader.skipType(tag & 7);
1637
- break;
1638
- }
1639
- }
1640
- return message;
1641
- },
1642
- fromJSON(object) {
1643
- return {
1644
- creator: isSet(object.creator) ? String(object.creator) : '',
1645
- hostZone: isSet(object.hostZone) ? String(object.hostZone) : '',
1646
- valAddr: isSet(object.valAddr) ? String(object.valAddr) : '',
1647
- };
1648
- },
1649
- toJSON(message) {
1650
- const obj = {};
1651
- message.creator !== undefined && (obj.creator = message.creator);
1652
- message.hostZone !== undefined && (obj.hostZone = message.hostZone);
1653
- message.valAddr !== undefined && (obj.valAddr = message.valAddr);
1654
- return obj;
1655
- },
1656
- fromPartial(object) {
1657
- const message = createBaseMsgDeleteValidator();
1658
- message.creator = object.creator ?? '';
1659
- message.hostZone = object.hostZone ?? '';
1660
- message.valAddr = object.valAddr ?? '';
1661
- return message;
1662
- },
1663
- fromProtoMsg(message) {
1664
- return MsgDeleteValidator.decode(message.value);
1665
- },
1666
- toProto(message) {
1667
- return MsgDeleteValidator.encode(message).finish();
1668
- },
1669
- toProtoMsg(message) {
1670
- return {
1671
- typeUrl: '/stride.stakeibc.MsgDeleteValidator',
1672
- value: MsgDeleteValidator.encode(message).finish(),
1673
- };
1674
- },
1675
- };
1676
- function createBaseMsgDeleteValidatorResponse() {
1677
- return {};
1678
- }
1679
- export const MsgDeleteValidatorResponse = {
1680
- typeUrl: '/stride.stakeibc.MsgDeleteValidatorResponse',
1681
- encode(_, writer = BinaryWriter.create()) {
1682
- return writer;
1683
- },
1684
- decode(input, length) {
1685
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1686
- let end = length === undefined ? reader.len : reader.pos + length;
1687
- const message = createBaseMsgDeleteValidatorResponse();
1688
- while (reader.pos < end) {
1689
- const tag = reader.uint32();
1690
- switch (tag >>> 3) {
1691
- default:
1692
- reader.skipType(tag & 7);
1693
- break;
1694
- }
1695
- }
1696
- return message;
1697
- },
1698
- fromJSON(_) {
1699
- return {};
1700
- },
1701
- toJSON(_) {
1702
- const obj = {};
1703
- return obj;
1704
- },
1705
- fromPartial(_) {
1706
- const message = createBaseMsgDeleteValidatorResponse();
1707
- return message;
1708
- },
1709
- fromProtoMsg(message) {
1710
- return MsgDeleteValidatorResponse.decode(message.value);
1711
- },
1712
- toProto(message) {
1713
- return MsgDeleteValidatorResponse.encode(message).finish();
1714
- },
1715
- toProtoMsg(message) {
1716
- return {
1717
- typeUrl: '/stride.stakeibc.MsgDeleteValidatorResponse',
1718
- value: MsgDeleteValidatorResponse.encode(message).finish(),
1719
- };
1720
- },
1721
- };
1722
- function createBaseMsgRestoreInterchainAccount() {
1723
- return {
1724
- creator: '',
1725
- chainId: '',
1726
- connectionId: '',
1727
- accountOwner: '',
1728
- };
1729
- }
1730
- export const MsgRestoreInterchainAccount = {
1731
- typeUrl: '/stride.stakeibc.MsgRestoreInterchainAccount',
1732
- encode(message, writer = BinaryWriter.create()) {
1733
- if (message.creator !== '') {
1734
- writer.uint32(10).string(message.creator);
1735
- }
1736
- if (message.chainId !== '') {
1737
- writer.uint32(18).string(message.chainId);
1738
- }
1739
- if (message.connectionId !== '') {
1740
- writer.uint32(26).string(message.connectionId);
1741
- }
1742
- if (message.accountOwner !== '') {
1743
- writer.uint32(34).string(message.accountOwner);
1744
- }
1745
- return writer;
1746
- },
1747
- decode(input, length) {
1748
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1749
- let end = length === undefined ? reader.len : reader.pos + length;
1750
- const message = createBaseMsgRestoreInterchainAccount();
1751
- while (reader.pos < end) {
1752
- const tag = reader.uint32();
1753
- switch (tag >>> 3) {
1754
- case 1:
1755
- message.creator = reader.string();
1756
- break;
1757
- case 2:
1758
- message.chainId = reader.string();
1759
- break;
1760
- case 3:
1761
- message.connectionId = reader.string();
1762
- break;
1763
- case 4:
1764
- message.accountOwner = reader.string();
1765
- break;
1766
- default:
1767
- reader.skipType(tag & 7);
1768
- break;
1769
- }
1770
- }
1771
- return message;
1772
- },
1773
- fromJSON(object) {
1774
- return {
1775
- creator: isSet(object.creator) ? String(object.creator) : '',
1776
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
1777
- connectionId: isSet(object.connectionId)
1778
- ? String(object.connectionId)
1779
- : '',
1780
- accountOwner: isSet(object.accountOwner)
1781
- ? String(object.accountOwner)
1782
- : '',
1783
- };
1784
- },
1785
- toJSON(message) {
1786
- const obj = {};
1787
- message.creator !== undefined && (obj.creator = message.creator);
1788
- message.chainId !== undefined && (obj.chainId = message.chainId);
1789
- message.connectionId !== undefined &&
1790
- (obj.connectionId = message.connectionId);
1791
- message.accountOwner !== undefined &&
1792
- (obj.accountOwner = message.accountOwner);
1793
- return obj;
1794
- },
1795
- fromPartial(object) {
1796
- const message = createBaseMsgRestoreInterchainAccount();
1797
- message.creator = object.creator ?? '';
1798
- message.chainId = object.chainId ?? '';
1799
- message.connectionId = object.connectionId ?? '';
1800
- message.accountOwner = object.accountOwner ?? '';
1801
- return message;
1802
- },
1803
- fromProtoMsg(message) {
1804
- return MsgRestoreInterchainAccount.decode(message.value);
1805
- },
1806
- toProto(message) {
1807
- return MsgRestoreInterchainAccount.encode(message).finish();
1808
- },
1809
- toProtoMsg(message) {
1810
- return {
1811
- typeUrl: '/stride.stakeibc.MsgRestoreInterchainAccount',
1812
- value: MsgRestoreInterchainAccount.encode(message).finish(),
1813
- };
1814
- },
1815
- };
1816
- function createBaseMsgRestoreInterchainAccountResponse() {
1817
- return {};
1818
- }
1819
- export const MsgRestoreInterchainAccountResponse = {
1820
- typeUrl: '/stride.stakeibc.MsgRestoreInterchainAccountResponse',
1821
- encode(_, writer = BinaryWriter.create()) {
1822
- return writer;
1823
- },
1824
- decode(input, length) {
1825
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1826
- let end = length === undefined ? reader.len : reader.pos + length;
1827
- const message = createBaseMsgRestoreInterchainAccountResponse();
1828
- while (reader.pos < end) {
1829
- const tag = reader.uint32();
1830
- switch (tag >>> 3) {
1831
- default:
1832
- reader.skipType(tag & 7);
1833
- break;
1834
- }
1835
- }
1836
- return message;
1837
- },
1838
- fromJSON(_) {
1839
- return {};
1840
- },
1841
- toJSON(_) {
1842
- const obj = {};
1843
- return obj;
1844
- },
1845
- fromPartial(_) {
1846
- const message = createBaseMsgRestoreInterchainAccountResponse();
1847
- return message;
1848
- },
1849
- fromProtoMsg(message) {
1850
- return MsgRestoreInterchainAccountResponse.decode(message.value);
1851
- },
1852
- toProto(message) {
1853
- return MsgRestoreInterchainAccountResponse.encode(message).finish();
1854
- },
1855
- toProtoMsg(message) {
1856
- return {
1857
- typeUrl: '/stride.stakeibc.MsgRestoreInterchainAccountResponse',
1858
- value: MsgRestoreInterchainAccountResponse.encode(message).finish(),
1859
- };
1860
- },
1861
- };
1862
- function createBaseMsgCloseDelegationChannel() {
1863
- return {
1864
- creator: '',
1865
- chainId: '',
1866
- };
1867
- }
1868
- export const MsgCloseDelegationChannel = {
1869
- typeUrl: '/stride.stakeibc.MsgCloseDelegationChannel',
1870
- encode(message, writer = BinaryWriter.create()) {
1871
- if (message.creator !== '') {
1872
- writer.uint32(10).string(message.creator);
1873
- }
1874
- if (message.chainId !== '') {
1875
- writer.uint32(18).string(message.chainId);
1876
- }
1877
- return writer;
1878
- },
1879
- decode(input, length) {
1880
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1881
- let end = length === undefined ? reader.len : reader.pos + length;
1882
- const message = createBaseMsgCloseDelegationChannel();
1883
- while (reader.pos < end) {
1884
- const tag = reader.uint32();
1885
- switch (tag >>> 3) {
1886
- case 1:
1887
- message.creator = reader.string();
1888
- break;
1889
- case 2:
1890
- message.chainId = reader.string();
1891
- break;
1892
- default:
1893
- reader.skipType(tag & 7);
1894
- break;
1895
- }
1896
- }
1897
- return message;
1898
- },
1899
- fromJSON(object) {
1900
- return {
1901
- creator: isSet(object.creator) ? String(object.creator) : '',
1902
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
1903
- };
1904
- },
1905
- toJSON(message) {
1906
- const obj = {};
1907
- message.creator !== undefined && (obj.creator = message.creator);
1908
- message.chainId !== undefined && (obj.chainId = message.chainId);
1909
- return obj;
1910
- },
1911
- fromPartial(object) {
1912
- const message = createBaseMsgCloseDelegationChannel();
1913
- message.creator = object.creator ?? '';
1914
- message.chainId = object.chainId ?? '';
1915
- return message;
1916
- },
1917
- fromProtoMsg(message) {
1918
- return MsgCloseDelegationChannel.decode(message.value);
1919
- },
1920
- toProto(message) {
1921
- return MsgCloseDelegationChannel.encode(message).finish();
1922
- },
1923
- toProtoMsg(message) {
1924
- return {
1925
- typeUrl: '/stride.stakeibc.MsgCloseDelegationChannel',
1926
- value: MsgCloseDelegationChannel.encode(message).finish(),
1927
- };
1928
- },
1929
- };
1930
- function createBaseMsgCloseDelegationChannelResponse() {
1931
- return {};
1932
- }
1933
- export const MsgCloseDelegationChannelResponse = {
1934
- typeUrl: '/stride.stakeibc.MsgCloseDelegationChannelResponse',
1935
- encode(_, writer = BinaryWriter.create()) {
1936
- return writer;
1937
- },
1938
- decode(input, length) {
1939
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1940
- let end = length === undefined ? reader.len : reader.pos + length;
1941
- const message = createBaseMsgCloseDelegationChannelResponse();
1942
- while (reader.pos < end) {
1943
- const tag = reader.uint32();
1944
- switch (tag >>> 3) {
1945
- default:
1946
- reader.skipType(tag & 7);
1947
- break;
1948
- }
1949
- }
1950
- return message;
1951
- },
1952
- fromJSON(_) {
1953
- return {};
1954
- },
1955
- toJSON(_) {
1956
- const obj = {};
1957
- return obj;
1958
- },
1959
- fromPartial(_) {
1960
- const message = createBaseMsgCloseDelegationChannelResponse();
1961
- return message;
1962
- },
1963
- fromProtoMsg(message) {
1964
- return MsgCloseDelegationChannelResponse.decode(message.value);
1965
- },
1966
- toProto(message) {
1967
- return MsgCloseDelegationChannelResponse.encode(message).finish();
1968
- },
1969
- toProtoMsg(message) {
1970
- return {
1971
- typeUrl: '/stride.stakeibc.MsgCloseDelegationChannelResponse',
1972
- value: MsgCloseDelegationChannelResponse.encode(message).finish(),
1973
- };
1974
- },
1975
- };
1976
- function createBaseMsgUpdateValidatorSharesExchRate() {
1977
- return {
1978
- creator: '',
1979
- chainId: '',
1980
- valoper: '',
1981
- };
1982
- }
1983
- export const MsgUpdateValidatorSharesExchRate = {
1984
- typeUrl: '/stride.stakeibc.MsgUpdateValidatorSharesExchRate',
1985
- encode(message, writer = BinaryWriter.create()) {
1986
- if (message.creator !== '') {
1987
- writer.uint32(10).string(message.creator);
1988
- }
1989
- if (message.chainId !== '') {
1990
- writer.uint32(18).string(message.chainId);
1991
- }
1992
- if (message.valoper !== '') {
1993
- writer.uint32(26).string(message.valoper);
1994
- }
1995
- return writer;
1996
- },
1997
- decode(input, length) {
1998
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1999
- let end = length === undefined ? reader.len : reader.pos + length;
2000
- const message = createBaseMsgUpdateValidatorSharesExchRate();
2001
- while (reader.pos < end) {
2002
- const tag = reader.uint32();
2003
- switch (tag >>> 3) {
2004
- case 1:
2005
- message.creator = reader.string();
2006
- break;
2007
- case 2:
2008
- message.chainId = reader.string();
2009
- break;
2010
- case 3:
2011
- message.valoper = reader.string();
2012
- break;
2013
- default:
2014
- reader.skipType(tag & 7);
2015
- break;
2016
- }
2017
- }
2018
- return message;
2019
- },
2020
- fromJSON(object) {
2021
- return {
2022
- creator: isSet(object.creator) ? String(object.creator) : '',
2023
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
2024
- valoper: isSet(object.valoper) ? String(object.valoper) : '',
2025
- };
2026
- },
2027
- toJSON(message) {
2028
- const obj = {};
2029
- message.creator !== undefined && (obj.creator = message.creator);
2030
- message.chainId !== undefined && (obj.chainId = message.chainId);
2031
- message.valoper !== undefined && (obj.valoper = message.valoper);
2032
- return obj;
2033
- },
2034
- fromPartial(object) {
2035
- const message = createBaseMsgUpdateValidatorSharesExchRate();
2036
- message.creator = object.creator ?? '';
2037
- message.chainId = object.chainId ?? '';
2038
- message.valoper = object.valoper ?? '';
2039
- return message;
2040
- },
2041
- fromProtoMsg(message) {
2042
- return MsgUpdateValidatorSharesExchRate.decode(message.value);
2043
- },
2044
- toProto(message) {
2045
- return MsgUpdateValidatorSharesExchRate.encode(message).finish();
2046
- },
2047
- toProtoMsg(message) {
2048
- return {
2049
- typeUrl: '/stride.stakeibc.MsgUpdateValidatorSharesExchRate',
2050
- value: MsgUpdateValidatorSharesExchRate.encode(message).finish(),
2051
- };
2052
- },
2053
- };
2054
- function createBaseMsgUpdateValidatorSharesExchRateResponse() {
2055
- return {};
2056
- }
2057
- export const MsgUpdateValidatorSharesExchRateResponse = {
2058
- typeUrl: '/stride.stakeibc.MsgUpdateValidatorSharesExchRateResponse',
2059
- encode(_, writer = BinaryWriter.create()) {
2060
- return writer;
2061
- },
2062
- decode(input, length) {
2063
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2064
- let end = length === undefined ? reader.len : reader.pos + length;
2065
- const message = createBaseMsgUpdateValidatorSharesExchRateResponse();
2066
- while (reader.pos < end) {
2067
- const tag = reader.uint32();
2068
- switch (tag >>> 3) {
2069
- default:
2070
- reader.skipType(tag & 7);
2071
- break;
2072
- }
2073
- }
2074
- return message;
2075
- },
2076
- fromJSON(_) {
2077
- return {};
2078
- },
2079
- toJSON(_) {
2080
- const obj = {};
2081
- return obj;
2082
- },
2083
- fromPartial(_) {
2084
- const message = createBaseMsgUpdateValidatorSharesExchRateResponse();
2085
- return message;
2086
- },
2087
- fromProtoMsg(message) {
2088
- return MsgUpdateValidatorSharesExchRateResponse.decode(message.value);
2089
- },
2090
- toProto(message) {
2091
- return MsgUpdateValidatorSharesExchRateResponse.encode(message).finish();
2092
- },
2093
- toProtoMsg(message) {
2094
- return {
2095
- typeUrl: '/stride.stakeibc.MsgUpdateValidatorSharesExchRateResponse',
2096
- value: MsgUpdateValidatorSharesExchRateResponse.encode(message).finish(),
2097
- };
2098
- },
2099
- };
2100
- function createBaseMsgCalibrateDelegation() {
2101
- return {
2102
- creator: '',
2103
- chainId: '',
2104
- valoper: '',
2105
- };
2106
- }
2107
- export const MsgCalibrateDelegation = {
2108
- typeUrl: '/stride.stakeibc.MsgCalibrateDelegation',
2109
- encode(message, writer = BinaryWriter.create()) {
2110
- if (message.creator !== '') {
2111
- writer.uint32(10).string(message.creator);
2112
- }
2113
- if (message.chainId !== '') {
2114
- writer.uint32(18).string(message.chainId);
2115
- }
2116
- if (message.valoper !== '') {
2117
- writer.uint32(26).string(message.valoper);
2118
- }
2119
- return writer;
2120
- },
2121
- decode(input, length) {
2122
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2123
- let end = length === undefined ? reader.len : reader.pos + length;
2124
- const message = createBaseMsgCalibrateDelegation();
2125
- while (reader.pos < end) {
2126
- const tag = reader.uint32();
2127
- switch (tag >>> 3) {
2128
- case 1:
2129
- message.creator = reader.string();
2130
- break;
2131
- case 2:
2132
- message.chainId = reader.string();
2133
- break;
2134
- case 3:
2135
- message.valoper = reader.string();
2136
- break;
2137
- default:
2138
- reader.skipType(tag & 7);
2139
- break;
2140
- }
2141
- }
2142
- return message;
2143
- },
2144
- fromJSON(object) {
2145
- return {
2146
- creator: isSet(object.creator) ? String(object.creator) : '',
2147
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
2148
- valoper: isSet(object.valoper) ? String(object.valoper) : '',
2149
- };
2150
- },
2151
- toJSON(message) {
2152
- const obj = {};
2153
- message.creator !== undefined && (obj.creator = message.creator);
2154
- message.chainId !== undefined && (obj.chainId = message.chainId);
2155
- message.valoper !== undefined && (obj.valoper = message.valoper);
2156
- return obj;
2157
- },
2158
- fromPartial(object) {
2159
- const message = createBaseMsgCalibrateDelegation();
2160
- message.creator = object.creator ?? '';
2161
- message.chainId = object.chainId ?? '';
2162
- message.valoper = object.valoper ?? '';
2163
- return message;
2164
- },
2165
- fromProtoMsg(message) {
2166
- return MsgCalibrateDelegation.decode(message.value);
2167
- },
2168
- toProto(message) {
2169
- return MsgCalibrateDelegation.encode(message).finish();
2170
- },
2171
- toProtoMsg(message) {
2172
- return {
2173
- typeUrl: '/stride.stakeibc.MsgCalibrateDelegation',
2174
- value: MsgCalibrateDelegation.encode(message).finish(),
2175
- };
2176
- },
2177
- };
2178
- function createBaseMsgCalibrateDelegationResponse() {
2179
- return {};
2180
- }
2181
- export const MsgCalibrateDelegationResponse = {
2182
- typeUrl: '/stride.stakeibc.MsgCalibrateDelegationResponse',
2183
- encode(_, writer = BinaryWriter.create()) {
2184
- return writer;
2185
- },
2186
- decode(input, length) {
2187
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2188
- let end = length === undefined ? reader.len : reader.pos + length;
2189
- const message = createBaseMsgCalibrateDelegationResponse();
2190
- while (reader.pos < end) {
2191
- const tag = reader.uint32();
2192
- switch (tag >>> 3) {
2193
- default:
2194
- reader.skipType(tag & 7);
2195
- break;
2196
- }
2197
- }
2198
- return message;
2199
- },
2200
- fromJSON(_) {
2201
- return {};
2202
- },
2203
- toJSON(_) {
2204
- const obj = {};
2205
- return obj;
2206
- },
2207
- fromPartial(_) {
2208
- const message = createBaseMsgCalibrateDelegationResponse();
2209
- return message;
2210
- },
2211
- fromProtoMsg(message) {
2212
- return MsgCalibrateDelegationResponse.decode(message.value);
2213
- },
2214
- toProto(message) {
2215
- return MsgCalibrateDelegationResponse.encode(message).finish();
2216
- },
2217
- toProtoMsg(message) {
2218
- return {
2219
- typeUrl: '/stride.stakeibc.MsgCalibrateDelegationResponse',
2220
- value: MsgCalibrateDelegationResponse.encode(message).finish(),
2221
- };
2222
- },
2223
- };
2224
- function createBaseMsgResumeHostZone() {
2225
- return {
2226
- creator: '',
2227
- chainId: '',
2228
- };
2229
- }
2230
- export const MsgResumeHostZone = {
2231
- typeUrl: '/stride.stakeibc.MsgResumeHostZone',
2232
- encode(message, writer = BinaryWriter.create()) {
2233
- if (message.creator !== '') {
2234
- writer.uint32(10).string(message.creator);
2235
- }
2236
- if (message.chainId !== '') {
2237
- writer.uint32(18).string(message.chainId);
2238
- }
2239
- return writer;
2240
- },
2241
- decode(input, length) {
2242
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2243
- let end = length === undefined ? reader.len : reader.pos + length;
2244
- const message = createBaseMsgResumeHostZone();
2245
- while (reader.pos < end) {
2246
- const tag = reader.uint32();
2247
- switch (tag >>> 3) {
2248
- case 1:
2249
- message.creator = reader.string();
2250
- break;
2251
- case 2:
2252
- message.chainId = reader.string();
2253
- break;
2254
- default:
2255
- reader.skipType(tag & 7);
2256
- break;
2257
- }
2258
- }
2259
- return message;
2260
- },
2261
- fromJSON(object) {
2262
- return {
2263
- creator: isSet(object.creator) ? String(object.creator) : '',
2264
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
2265
- };
2266
- },
2267
- toJSON(message) {
2268
- const obj = {};
2269
- message.creator !== undefined && (obj.creator = message.creator);
2270
- message.chainId !== undefined && (obj.chainId = message.chainId);
2271
- return obj;
2272
- },
2273
- fromPartial(object) {
2274
- const message = createBaseMsgResumeHostZone();
2275
- message.creator = object.creator ?? '';
2276
- message.chainId = object.chainId ?? '';
2277
- return message;
2278
- },
2279
- fromProtoMsg(message) {
2280
- return MsgResumeHostZone.decode(message.value);
2281
- },
2282
- toProto(message) {
2283
- return MsgResumeHostZone.encode(message).finish();
2284
- },
2285
- toProtoMsg(message) {
2286
- return {
2287
- typeUrl: '/stride.stakeibc.MsgResumeHostZone',
2288
- value: MsgResumeHostZone.encode(message).finish(),
2289
- };
2290
- },
2291
- };
2292
- function createBaseMsgResumeHostZoneResponse() {
2293
- return {};
2294
- }
2295
- export const MsgResumeHostZoneResponse = {
2296
- typeUrl: '/stride.stakeibc.MsgResumeHostZoneResponse',
2297
- encode(_, writer = BinaryWriter.create()) {
2298
- return writer;
2299
- },
2300
- decode(input, length) {
2301
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2302
- let end = length === undefined ? reader.len : reader.pos + length;
2303
- const message = createBaseMsgResumeHostZoneResponse();
2304
- while (reader.pos < end) {
2305
- const tag = reader.uint32();
2306
- switch (tag >>> 3) {
2307
- default:
2308
- reader.skipType(tag & 7);
2309
- break;
2310
- }
2311
- }
2312
- return message;
2313
- },
2314
- fromJSON(_) {
2315
- return {};
2316
- },
2317
- toJSON(_) {
2318
- const obj = {};
2319
- return obj;
2320
- },
2321
- fromPartial(_) {
2322
- const message = createBaseMsgResumeHostZoneResponse();
2323
- return message;
2324
- },
2325
- fromProtoMsg(message) {
2326
- return MsgResumeHostZoneResponse.decode(message.value);
2327
- },
2328
- toProto(message) {
2329
- return MsgResumeHostZoneResponse.encode(message).finish();
2330
- },
2331
- toProtoMsg(message) {
2332
- return {
2333
- typeUrl: '/stride.stakeibc.MsgResumeHostZoneResponse',
2334
- value: MsgResumeHostZoneResponse.encode(message).finish(),
2335
- };
2336
- },
2337
- };
2338
- function createBaseMsgCreateTradeRoute() {
2339
- return {
2340
- authority: '',
2341
- hostChainId: '',
2342
- strideToRewardConnectionId: '',
2343
- strideToTradeConnectionId: '',
2344
- hostToRewardTransferChannelId: '',
2345
- rewardToTradeTransferChannelId: '',
2346
- tradeToHostTransferChannelId: '',
2347
- rewardDenomOnHost: '',
2348
- rewardDenomOnReward: '',
2349
- rewardDenomOnTrade: '',
2350
- hostDenomOnTrade: '',
2351
- hostDenomOnHost: '',
2352
- poolId: BigInt(0),
2353
- maxAllowedSwapLossRate: '',
2354
- minSwapAmount: '',
2355
- maxSwapAmount: '',
2356
- minTransferAmount: '',
2357
- };
2358
- }
2359
- export const MsgCreateTradeRoute = {
2360
- typeUrl: '/stride.stakeibc.MsgCreateTradeRoute',
2361
- encode(message, writer = BinaryWriter.create()) {
2362
- if (message.authority !== '') {
2363
- writer.uint32(10).string(message.authority);
2364
- }
2365
- if (message.hostChainId !== '') {
2366
- writer.uint32(18).string(message.hostChainId);
2367
- }
2368
- if (message.strideToRewardConnectionId !== '') {
2369
- writer.uint32(26).string(message.strideToRewardConnectionId);
2370
- }
2371
- if (message.strideToTradeConnectionId !== '') {
2372
- writer.uint32(34).string(message.strideToTradeConnectionId);
2373
- }
2374
- if (message.hostToRewardTransferChannelId !== '') {
2375
- writer.uint32(42).string(message.hostToRewardTransferChannelId);
2376
- }
2377
- if (message.rewardToTradeTransferChannelId !== '') {
2378
- writer.uint32(50).string(message.rewardToTradeTransferChannelId);
2379
- }
2380
- if (message.tradeToHostTransferChannelId !== '') {
2381
- writer.uint32(58).string(message.tradeToHostTransferChannelId);
2382
- }
2383
- if (message.rewardDenomOnHost !== '') {
2384
- writer.uint32(66).string(message.rewardDenomOnHost);
2385
- }
2386
- if (message.rewardDenomOnReward !== '') {
2387
- writer.uint32(74).string(message.rewardDenomOnReward);
2388
- }
2389
- if (message.rewardDenomOnTrade !== '') {
2390
- writer.uint32(82).string(message.rewardDenomOnTrade);
2391
- }
2392
- if (message.hostDenomOnTrade !== '') {
2393
- writer.uint32(90).string(message.hostDenomOnTrade);
2394
- }
2395
- if (message.hostDenomOnHost !== '') {
2396
- writer.uint32(98).string(message.hostDenomOnHost);
2397
- }
2398
- if (message.poolId !== BigInt(0)) {
2399
- writer.uint32(104).uint64(message.poolId);
2400
- }
2401
- if (message.maxAllowedSwapLossRate !== '') {
2402
- writer.uint32(114).string(message.maxAllowedSwapLossRate);
2403
- }
2404
- if (message.minSwapAmount !== '') {
2405
- writer.uint32(122).string(message.minSwapAmount);
2406
- }
2407
- if (message.maxSwapAmount !== '') {
2408
- writer.uint32(130).string(message.maxSwapAmount);
2409
- }
2410
- if (message.minTransferAmount !== '') {
2411
- writer.uint32(138).string(message.minTransferAmount);
2412
- }
2413
- return writer;
2414
- },
2415
- decode(input, length) {
2416
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2417
- let end = length === undefined ? reader.len : reader.pos + length;
2418
- const message = createBaseMsgCreateTradeRoute();
2419
- while (reader.pos < end) {
2420
- const tag = reader.uint32();
2421
- switch (tag >>> 3) {
2422
- case 1:
2423
- message.authority = reader.string();
2424
- break;
2425
- case 2:
2426
- message.hostChainId = reader.string();
2427
- break;
2428
- case 3:
2429
- message.strideToRewardConnectionId = reader.string();
2430
- break;
2431
- case 4:
2432
- message.strideToTradeConnectionId = reader.string();
2433
- break;
2434
- case 5:
2435
- message.hostToRewardTransferChannelId = reader.string();
2436
- break;
2437
- case 6:
2438
- message.rewardToTradeTransferChannelId = reader.string();
2439
- break;
2440
- case 7:
2441
- message.tradeToHostTransferChannelId = reader.string();
2442
- break;
2443
- case 8:
2444
- message.rewardDenomOnHost = reader.string();
2445
- break;
2446
- case 9:
2447
- message.rewardDenomOnReward = reader.string();
2448
- break;
2449
- case 10:
2450
- message.rewardDenomOnTrade = reader.string();
2451
- break;
2452
- case 11:
2453
- message.hostDenomOnTrade = reader.string();
2454
- break;
2455
- case 12:
2456
- message.hostDenomOnHost = reader.string();
2457
- break;
2458
- case 13:
2459
- message.poolId = reader.uint64();
2460
- break;
2461
- case 14:
2462
- message.maxAllowedSwapLossRate = reader.string();
2463
- break;
2464
- case 15:
2465
- message.minSwapAmount = reader.string();
2466
- break;
2467
- case 16:
2468
- message.maxSwapAmount = reader.string();
2469
- break;
2470
- case 17:
2471
- message.minTransferAmount = reader.string();
2472
- break;
2473
- default:
2474
- reader.skipType(tag & 7);
2475
- break;
2476
- }
2477
- }
2478
- return message;
2479
- },
2480
- fromJSON(object) {
2481
- return {
2482
- authority: isSet(object.authority) ? String(object.authority) : '',
2483
- hostChainId: isSet(object.hostChainId) ? String(object.hostChainId) : '',
2484
- strideToRewardConnectionId: isSet(object.strideToRewardConnectionId)
2485
- ? String(object.strideToRewardConnectionId)
2486
- : '',
2487
- strideToTradeConnectionId: isSet(object.strideToTradeConnectionId)
2488
- ? String(object.strideToTradeConnectionId)
2489
- : '',
2490
- hostToRewardTransferChannelId: isSet(object.hostToRewardTransferChannelId)
2491
- ? String(object.hostToRewardTransferChannelId)
2492
- : '',
2493
- rewardToTradeTransferChannelId: isSet(object.rewardToTradeTransferChannelId)
2494
- ? String(object.rewardToTradeTransferChannelId)
2495
- : '',
2496
- tradeToHostTransferChannelId: isSet(object.tradeToHostTransferChannelId)
2497
- ? String(object.tradeToHostTransferChannelId)
2498
- : '',
2499
- rewardDenomOnHost: isSet(object.rewardDenomOnHost)
2500
- ? String(object.rewardDenomOnHost)
2501
- : '',
2502
- rewardDenomOnReward: isSet(object.rewardDenomOnReward)
2503
- ? String(object.rewardDenomOnReward)
2504
- : '',
2505
- rewardDenomOnTrade: isSet(object.rewardDenomOnTrade)
2506
- ? String(object.rewardDenomOnTrade)
2507
- : '',
2508
- hostDenomOnTrade: isSet(object.hostDenomOnTrade)
2509
- ? String(object.hostDenomOnTrade)
2510
- : '',
2511
- hostDenomOnHost: isSet(object.hostDenomOnHost)
2512
- ? String(object.hostDenomOnHost)
2513
- : '',
2514
- poolId: isSet(object.poolId)
2515
- ? BigInt(object.poolId.toString())
2516
- : BigInt(0),
2517
- maxAllowedSwapLossRate: isSet(object.maxAllowedSwapLossRate)
2518
- ? String(object.maxAllowedSwapLossRate)
2519
- : '',
2520
- minSwapAmount: isSet(object.minSwapAmount)
2521
- ? String(object.minSwapAmount)
2522
- : '',
2523
- maxSwapAmount: isSet(object.maxSwapAmount)
2524
- ? String(object.maxSwapAmount)
2525
- : '',
2526
- minTransferAmount: isSet(object.minTransferAmount)
2527
- ? String(object.minTransferAmount)
2528
- : '',
2529
- };
2530
- },
2531
- toJSON(message) {
2532
- const obj = {};
2533
- message.authority !== undefined && (obj.authority = message.authority);
2534
- message.hostChainId !== undefined &&
2535
- (obj.hostChainId = message.hostChainId);
2536
- message.strideToRewardConnectionId !== undefined &&
2537
- (obj.strideToRewardConnectionId = message.strideToRewardConnectionId);
2538
- message.strideToTradeConnectionId !== undefined &&
2539
- (obj.strideToTradeConnectionId = message.strideToTradeConnectionId);
2540
- message.hostToRewardTransferChannelId !== undefined &&
2541
- (obj.hostToRewardTransferChannelId =
2542
- message.hostToRewardTransferChannelId);
2543
- message.rewardToTradeTransferChannelId !== undefined &&
2544
- (obj.rewardToTradeTransferChannelId =
2545
- message.rewardToTradeTransferChannelId);
2546
- message.tradeToHostTransferChannelId !== undefined &&
2547
- (obj.tradeToHostTransferChannelId = message.tradeToHostTransferChannelId);
2548
- message.rewardDenomOnHost !== undefined &&
2549
- (obj.rewardDenomOnHost = message.rewardDenomOnHost);
2550
- message.rewardDenomOnReward !== undefined &&
2551
- (obj.rewardDenomOnReward = message.rewardDenomOnReward);
2552
- message.rewardDenomOnTrade !== undefined &&
2553
- (obj.rewardDenomOnTrade = message.rewardDenomOnTrade);
2554
- message.hostDenomOnTrade !== undefined &&
2555
- (obj.hostDenomOnTrade = message.hostDenomOnTrade);
2556
- message.hostDenomOnHost !== undefined &&
2557
- (obj.hostDenomOnHost = message.hostDenomOnHost);
2558
- message.poolId !== undefined &&
2559
- (obj.poolId = (message.poolId || BigInt(0)).toString());
2560
- message.maxAllowedSwapLossRate !== undefined &&
2561
- (obj.maxAllowedSwapLossRate = message.maxAllowedSwapLossRate);
2562
- message.minSwapAmount !== undefined &&
2563
- (obj.minSwapAmount = message.minSwapAmount);
2564
- message.maxSwapAmount !== undefined &&
2565
- (obj.maxSwapAmount = message.maxSwapAmount);
2566
- message.minTransferAmount !== undefined &&
2567
- (obj.minTransferAmount = message.minTransferAmount);
2568
- return obj;
2569
- },
2570
- fromPartial(object) {
2571
- const message = createBaseMsgCreateTradeRoute();
2572
- message.authority = object.authority ?? '';
2573
- message.hostChainId = object.hostChainId ?? '';
2574
- message.strideToRewardConnectionId =
2575
- object.strideToRewardConnectionId ?? '';
2576
- message.strideToTradeConnectionId = object.strideToTradeConnectionId ?? '';
2577
- message.hostToRewardTransferChannelId =
2578
- object.hostToRewardTransferChannelId ?? '';
2579
- message.rewardToTradeTransferChannelId =
2580
- object.rewardToTradeTransferChannelId ?? '';
2581
- message.tradeToHostTransferChannelId =
2582
- object.tradeToHostTransferChannelId ?? '';
2583
- message.rewardDenomOnHost = object.rewardDenomOnHost ?? '';
2584
- message.rewardDenomOnReward = object.rewardDenomOnReward ?? '';
2585
- message.rewardDenomOnTrade = object.rewardDenomOnTrade ?? '';
2586
- message.hostDenomOnTrade = object.hostDenomOnTrade ?? '';
2587
- message.hostDenomOnHost = object.hostDenomOnHost ?? '';
2588
- message.poolId =
2589
- object.poolId !== undefined && object.poolId !== null
2590
- ? BigInt(object.poolId.toString())
2591
- : BigInt(0);
2592
- message.maxAllowedSwapLossRate = object.maxAllowedSwapLossRate ?? '';
2593
- message.minSwapAmount = object.minSwapAmount ?? '';
2594
- message.maxSwapAmount = object.maxSwapAmount ?? '';
2595
- message.minTransferAmount = object.minTransferAmount ?? '';
2596
- return message;
2597
- },
2598
- fromProtoMsg(message) {
2599
- return MsgCreateTradeRoute.decode(message.value);
2600
- },
2601
- toProto(message) {
2602
- return MsgCreateTradeRoute.encode(message).finish();
2603
- },
2604
- toProtoMsg(message) {
2605
- return {
2606
- typeUrl: '/stride.stakeibc.MsgCreateTradeRoute',
2607
- value: MsgCreateTradeRoute.encode(message).finish(),
2608
- };
2609
- },
2610
- };
2611
- function createBaseMsgCreateTradeRouteResponse() {
2612
- return {};
2613
- }
2614
- export const MsgCreateTradeRouteResponse = {
2615
- typeUrl: '/stride.stakeibc.MsgCreateTradeRouteResponse',
2616
- encode(_, writer = BinaryWriter.create()) {
2617
- return writer;
2618
- },
2619
- decode(input, length) {
2620
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2621
- let end = length === undefined ? reader.len : reader.pos + length;
2622
- const message = createBaseMsgCreateTradeRouteResponse();
2623
- while (reader.pos < end) {
2624
- const tag = reader.uint32();
2625
- switch (tag >>> 3) {
2626
- default:
2627
- reader.skipType(tag & 7);
2628
- break;
2629
- }
2630
- }
2631
- return message;
2632
- },
2633
- fromJSON(_) {
2634
- return {};
2635
- },
2636
- toJSON(_) {
2637
- const obj = {};
2638
- return obj;
2639
- },
2640
- fromPartial(_) {
2641
- const message = createBaseMsgCreateTradeRouteResponse();
2642
- return message;
2643
- },
2644
- fromProtoMsg(message) {
2645
- return MsgCreateTradeRouteResponse.decode(message.value);
2646
- },
2647
- toProto(message) {
2648
- return MsgCreateTradeRouteResponse.encode(message).finish();
2649
- },
2650
- toProtoMsg(message) {
2651
- return {
2652
- typeUrl: '/stride.stakeibc.MsgCreateTradeRouteResponse',
2653
- value: MsgCreateTradeRouteResponse.encode(message).finish(),
2654
- };
2655
- },
2656
- };
2657
- function createBaseMsgDeleteTradeRoute() {
2658
- return {
2659
- authority: '',
2660
- rewardDenom: '',
2661
- hostDenom: '',
2662
- };
2663
- }
2664
- export const MsgDeleteTradeRoute = {
2665
- typeUrl: '/stride.stakeibc.MsgDeleteTradeRoute',
2666
- encode(message, writer = BinaryWriter.create()) {
2667
- if (message.authority !== '') {
2668
- writer.uint32(10).string(message.authority);
2669
- }
2670
- if (message.rewardDenom !== '') {
2671
- writer.uint32(18).string(message.rewardDenom);
2672
- }
2673
- if (message.hostDenom !== '') {
2674
- writer.uint32(26).string(message.hostDenom);
2675
- }
2676
- return writer;
2677
- },
2678
- decode(input, length) {
2679
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2680
- let end = length === undefined ? reader.len : reader.pos + length;
2681
- const message = createBaseMsgDeleteTradeRoute();
2682
- while (reader.pos < end) {
2683
- const tag = reader.uint32();
2684
- switch (tag >>> 3) {
2685
- case 1:
2686
- message.authority = reader.string();
2687
- break;
2688
- case 2:
2689
- message.rewardDenom = reader.string();
2690
- break;
2691
- case 3:
2692
- message.hostDenom = reader.string();
2693
- break;
2694
- default:
2695
- reader.skipType(tag & 7);
2696
- break;
2697
- }
2698
- }
2699
- return message;
2700
- },
2701
- fromJSON(object) {
2702
- return {
2703
- authority: isSet(object.authority) ? String(object.authority) : '',
2704
- rewardDenom: isSet(object.rewardDenom) ? String(object.rewardDenom) : '',
2705
- hostDenom: isSet(object.hostDenom) ? String(object.hostDenom) : '',
2706
- };
2707
- },
2708
- toJSON(message) {
2709
- const obj = {};
2710
- message.authority !== undefined && (obj.authority = message.authority);
2711
- message.rewardDenom !== undefined &&
2712
- (obj.rewardDenom = message.rewardDenom);
2713
- message.hostDenom !== undefined && (obj.hostDenom = message.hostDenom);
2714
- return obj;
2715
- },
2716
- fromPartial(object) {
2717
- const message = createBaseMsgDeleteTradeRoute();
2718
- message.authority = object.authority ?? '';
2719
- message.rewardDenom = object.rewardDenom ?? '';
2720
- message.hostDenom = object.hostDenom ?? '';
2721
- return message;
2722
- },
2723
- fromProtoMsg(message) {
2724
- return MsgDeleteTradeRoute.decode(message.value);
2725
- },
2726
- toProto(message) {
2727
- return MsgDeleteTradeRoute.encode(message).finish();
2728
- },
2729
- toProtoMsg(message) {
2730
- return {
2731
- typeUrl: '/stride.stakeibc.MsgDeleteTradeRoute',
2732
- value: MsgDeleteTradeRoute.encode(message).finish(),
2733
- };
2734
- },
2735
- };
2736
- function createBaseMsgDeleteTradeRouteResponse() {
2737
- return {};
2738
- }
2739
- export const MsgDeleteTradeRouteResponse = {
2740
- typeUrl: '/stride.stakeibc.MsgDeleteTradeRouteResponse',
2741
- encode(_, writer = BinaryWriter.create()) {
2742
- return writer;
2743
- },
2744
- decode(input, length) {
2745
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2746
- let end = length === undefined ? reader.len : reader.pos + length;
2747
- const message = createBaseMsgDeleteTradeRouteResponse();
2748
- while (reader.pos < end) {
2749
- const tag = reader.uint32();
2750
- switch (tag >>> 3) {
2751
- default:
2752
- reader.skipType(tag & 7);
2753
- break;
2754
- }
2755
- }
2756
- return message;
2757
- },
2758
- fromJSON(_) {
2759
- return {};
2760
- },
2761
- toJSON(_) {
2762
- const obj = {};
2763
- return obj;
2764
- },
2765
- fromPartial(_) {
2766
- const message = createBaseMsgDeleteTradeRouteResponse();
2767
- return message;
2768
- },
2769
- fromProtoMsg(message) {
2770
- return MsgDeleteTradeRouteResponse.decode(message.value);
2771
- },
2772
- toProto(message) {
2773
- return MsgDeleteTradeRouteResponse.encode(message).finish();
2774
- },
2775
- toProtoMsg(message) {
2776
- return {
2777
- typeUrl: '/stride.stakeibc.MsgDeleteTradeRouteResponse',
2778
- value: MsgDeleteTradeRouteResponse.encode(message).finish(),
2779
- };
2780
- },
2781
- };
2782
- function createBaseMsgUpdateTradeRoute() {
2783
- return {
2784
- authority: '',
2785
- rewardDenom: '',
2786
- hostDenom: '',
2787
- poolId: BigInt(0),
2788
- maxAllowedSwapLossRate: '',
2789
- minSwapAmount: '',
2790
- maxSwapAmount: '',
2791
- minTransferAmount: '',
2792
- };
2793
- }
2794
- export const MsgUpdateTradeRoute = {
2795
- typeUrl: '/stride.stakeibc.MsgUpdateTradeRoute',
2796
- encode(message, writer = BinaryWriter.create()) {
2797
- if (message.authority !== '') {
2798
- writer.uint32(10).string(message.authority);
2799
- }
2800
- if (message.rewardDenom !== '') {
2801
- writer.uint32(18).string(message.rewardDenom);
2802
- }
2803
- if (message.hostDenom !== '') {
2804
- writer.uint32(26).string(message.hostDenom);
2805
- }
2806
- if (message.poolId !== BigInt(0)) {
2807
- writer.uint32(32).uint64(message.poolId);
2808
- }
2809
- if (message.maxAllowedSwapLossRate !== '') {
2810
- writer.uint32(42).string(message.maxAllowedSwapLossRate);
2811
- }
2812
- if (message.minSwapAmount !== '') {
2813
- writer.uint32(50).string(message.minSwapAmount);
2814
- }
2815
- if (message.maxSwapAmount !== '') {
2816
- writer.uint32(58).string(message.maxSwapAmount);
2817
- }
2818
- if (message.minTransferAmount !== '') {
2819
- writer.uint32(138).string(message.minTransferAmount);
2820
- }
2821
- return writer;
2822
- },
2823
- decode(input, length) {
2824
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2825
- let end = length === undefined ? reader.len : reader.pos + length;
2826
- const message = createBaseMsgUpdateTradeRoute();
2827
- while (reader.pos < end) {
2828
- const tag = reader.uint32();
2829
- switch (tag >>> 3) {
2830
- case 1:
2831
- message.authority = reader.string();
2832
- break;
2833
- case 2:
2834
- message.rewardDenom = reader.string();
2835
- break;
2836
- case 3:
2837
- message.hostDenom = reader.string();
2838
- break;
2839
- case 4:
2840
- message.poolId = reader.uint64();
2841
- break;
2842
- case 5:
2843
- message.maxAllowedSwapLossRate = reader.string();
2844
- break;
2845
- case 6:
2846
- message.minSwapAmount = reader.string();
2847
- break;
2848
- case 7:
2849
- message.maxSwapAmount = reader.string();
2850
- break;
2851
- case 17:
2852
- message.minTransferAmount = reader.string();
2853
- break;
2854
- default:
2855
- reader.skipType(tag & 7);
2856
- break;
2857
- }
2858
- }
2859
- return message;
2860
- },
2861
- fromJSON(object) {
2862
- return {
2863
- authority: isSet(object.authority) ? String(object.authority) : '',
2864
- rewardDenom: isSet(object.rewardDenom) ? String(object.rewardDenom) : '',
2865
- hostDenom: isSet(object.hostDenom) ? String(object.hostDenom) : '',
2866
- poolId: isSet(object.poolId)
2867
- ? BigInt(object.poolId.toString())
2868
- : BigInt(0),
2869
- maxAllowedSwapLossRate: isSet(object.maxAllowedSwapLossRate)
2870
- ? String(object.maxAllowedSwapLossRate)
2871
- : '',
2872
- minSwapAmount: isSet(object.minSwapAmount)
2873
- ? String(object.minSwapAmount)
2874
- : '',
2875
- maxSwapAmount: isSet(object.maxSwapAmount)
2876
- ? String(object.maxSwapAmount)
2877
- : '',
2878
- minTransferAmount: isSet(object.minTransferAmount)
2879
- ? String(object.minTransferAmount)
2880
- : '',
2881
- };
2882
- },
2883
- toJSON(message) {
2884
- const obj = {};
2885
- message.authority !== undefined && (obj.authority = message.authority);
2886
- message.rewardDenom !== undefined &&
2887
- (obj.rewardDenom = message.rewardDenom);
2888
- message.hostDenom !== undefined && (obj.hostDenom = message.hostDenom);
2889
- message.poolId !== undefined &&
2890
- (obj.poolId = (message.poolId || BigInt(0)).toString());
2891
- message.maxAllowedSwapLossRate !== undefined &&
2892
- (obj.maxAllowedSwapLossRate = message.maxAllowedSwapLossRate);
2893
- message.minSwapAmount !== undefined &&
2894
- (obj.minSwapAmount = message.minSwapAmount);
2895
- message.maxSwapAmount !== undefined &&
2896
- (obj.maxSwapAmount = message.maxSwapAmount);
2897
- message.minTransferAmount !== undefined &&
2898
- (obj.minTransferAmount = message.minTransferAmount);
2899
- return obj;
2900
- },
2901
- fromPartial(object) {
2902
- const message = createBaseMsgUpdateTradeRoute();
2903
- message.authority = object.authority ?? '';
2904
- message.rewardDenom = object.rewardDenom ?? '';
2905
- message.hostDenom = object.hostDenom ?? '';
2906
- message.poolId =
2907
- object.poolId !== undefined && object.poolId !== null
2908
- ? BigInt(object.poolId.toString())
2909
- : BigInt(0);
2910
- message.maxAllowedSwapLossRate = object.maxAllowedSwapLossRate ?? '';
2911
- message.minSwapAmount = object.minSwapAmount ?? '';
2912
- message.maxSwapAmount = object.maxSwapAmount ?? '';
2913
- message.minTransferAmount = object.minTransferAmount ?? '';
2914
- return message;
2915
- },
2916
- fromProtoMsg(message) {
2917
- return MsgUpdateTradeRoute.decode(message.value);
2918
- },
2919
- toProto(message) {
2920
- return MsgUpdateTradeRoute.encode(message).finish();
2921
- },
2922
- toProtoMsg(message) {
2923
- return {
2924
- typeUrl: '/stride.stakeibc.MsgUpdateTradeRoute',
2925
- value: MsgUpdateTradeRoute.encode(message).finish(),
2926
- };
2927
- },
2928
- };
2929
- function createBaseMsgUpdateTradeRouteResponse() {
2930
- return {};
2931
- }
2932
- export const MsgUpdateTradeRouteResponse = {
2933
- typeUrl: '/stride.stakeibc.MsgUpdateTradeRouteResponse',
2934
- encode(_, writer = BinaryWriter.create()) {
2935
- return writer;
2936
- },
2937
- decode(input, length) {
2938
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2939
- let end = length === undefined ? reader.len : reader.pos + length;
2940
- const message = createBaseMsgUpdateTradeRouteResponse();
2941
- while (reader.pos < end) {
2942
- const tag = reader.uint32();
2943
- switch (tag >>> 3) {
2944
- default:
2945
- reader.skipType(tag & 7);
2946
- break;
2947
- }
2948
- }
2949
- return message;
2950
- },
2951
- fromJSON(_) {
2952
- return {};
2953
- },
2954
- toJSON(_) {
2955
- const obj = {};
2956
- return obj;
2957
- },
2958
- fromPartial(_) {
2959
- const message = createBaseMsgUpdateTradeRouteResponse();
2960
- return message;
2961
- },
2962
- fromProtoMsg(message) {
2963
- return MsgUpdateTradeRouteResponse.decode(message.value);
2964
- },
2965
- toProto(message) {
2966
- return MsgUpdateTradeRouteResponse.encode(message).finish();
2967
- },
2968
- toProtoMsg(message) {
2969
- return {
2970
- typeUrl: '/stride.stakeibc.MsgUpdateTradeRouteResponse',
2971
- value: MsgUpdateTradeRouteResponse.encode(message).finish(),
2972
- };
2973
- },
2974
- };
2975
- function createBaseMsgSetCommunityPoolRebate() {
2976
- return {
2977
- creator: '',
2978
- chainId: '',
2979
- rebateRate: '',
2980
- liquidStakedStTokenAmount: '',
2981
- };
2982
- }
2983
- export const MsgSetCommunityPoolRebate = {
2984
- typeUrl: '/stride.stakeibc.MsgSetCommunityPoolRebate',
2985
- encode(message, writer = BinaryWriter.create()) {
2986
- if (message.creator !== '') {
2987
- writer.uint32(10).string(message.creator);
2988
- }
2989
- if (message.chainId !== '') {
2990
- writer.uint32(18).string(message.chainId);
2991
- }
2992
- if (message.rebateRate !== '') {
2993
- writer
2994
- .uint32(26)
2995
- .string(Decimal.fromUserInput(message.rebateRate, 18).atomics);
2996
- }
2997
- if (message.liquidStakedStTokenAmount !== '') {
2998
- writer.uint32(34).string(message.liquidStakedStTokenAmount);
2999
- }
3000
- return writer;
3001
- },
3002
- decode(input, length) {
3003
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3004
- let end = length === undefined ? reader.len : reader.pos + length;
3005
- const message = createBaseMsgSetCommunityPoolRebate();
3006
- while (reader.pos < end) {
3007
- const tag = reader.uint32();
3008
- switch (tag >>> 3) {
3009
- case 1:
3010
- message.creator = reader.string();
3011
- break;
3012
- case 2:
3013
- message.chainId = reader.string();
3014
- break;
3015
- case 3:
3016
- message.rebateRate = Decimal.fromAtomics(reader.string(), 18).toString();
3017
- break;
3018
- case 4:
3019
- message.liquidStakedStTokenAmount = reader.string();
3020
- break;
3021
- default:
3022
- reader.skipType(tag & 7);
3023
- break;
3024
- }
3025
- }
3026
- return message;
3027
- },
3028
- fromJSON(object) {
3029
- return {
3030
- creator: isSet(object.creator) ? String(object.creator) : '',
3031
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
3032
- rebateRate: isSet(object.rebateRate) ? String(object.rebateRate) : '',
3033
- liquidStakedStTokenAmount: isSet(object.liquidStakedStTokenAmount)
3034
- ? String(object.liquidStakedStTokenAmount)
3035
- : '',
3036
- };
3037
- },
3038
- toJSON(message) {
3039
- const obj = {};
3040
- message.creator !== undefined && (obj.creator = message.creator);
3041
- message.chainId !== undefined && (obj.chainId = message.chainId);
3042
- message.rebateRate !== undefined && (obj.rebateRate = message.rebateRate);
3043
- message.liquidStakedStTokenAmount !== undefined &&
3044
- (obj.liquidStakedStTokenAmount = message.liquidStakedStTokenAmount);
3045
- return obj;
3046
- },
3047
- fromPartial(object) {
3048
- const message = createBaseMsgSetCommunityPoolRebate();
3049
- message.creator = object.creator ?? '';
3050
- message.chainId = object.chainId ?? '';
3051
- message.rebateRate = object.rebateRate ?? '';
3052
- message.liquidStakedStTokenAmount = object.liquidStakedStTokenAmount ?? '';
3053
- return message;
3054
- },
3055
- fromProtoMsg(message) {
3056
- return MsgSetCommunityPoolRebate.decode(message.value);
3057
- },
3058
- toProto(message) {
3059
- return MsgSetCommunityPoolRebate.encode(message).finish();
3060
- },
3061
- toProtoMsg(message) {
3062
- return {
3063
- typeUrl: '/stride.stakeibc.MsgSetCommunityPoolRebate',
3064
- value: MsgSetCommunityPoolRebate.encode(message).finish(),
3065
- };
3066
- },
3067
- };
3068
- function createBaseMsgSetCommunityPoolRebateResponse() {
3069
- return {};
3070
- }
3071
- export const MsgSetCommunityPoolRebateResponse = {
3072
- typeUrl: '/stride.stakeibc.MsgSetCommunityPoolRebateResponse',
3073
- encode(_, writer = BinaryWriter.create()) {
3074
- return writer;
3075
- },
3076
- decode(input, length) {
3077
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3078
- let end = length === undefined ? reader.len : reader.pos + length;
3079
- const message = createBaseMsgSetCommunityPoolRebateResponse();
3080
- while (reader.pos < end) {
3081
- const tag = reader.uint32();
3082
- switch (tag >>> 3) {
3083
- default:
3084
- reader.skipType(tag & 7);
3085
- break;
3086
- }
3087
- }
3088
- return message;
3089
- },
3090
- fromJSON(_) {
3091
- return {};
3092
- },
3093
- toJSON(_) {
3094
- const obj = {};
3095
- return obj;
3096
- },
3097
- fromPartial(_) {
3098
- const message = createBaseMsgSetCommunityPoolRebateResponse();
3099
- return message;
3100
- },
3101
- fromProtoMsg(message) {
3102
- return MsgSetCommunityPoolRebateResponse.decode(message.value);
3103
- },
3104
- toProto(message) {
3105
- return MsgSetCommunityPoolRebateResponse.encode(message).finish();
3106
- },
3107
- toProtoMsg(message) {
3108
- return {
3109
- typeUrl: '/stride.stakeibc.MsgSetCommunityPoolRebateResponse',
3110
- value: MsgSetCommunityPoolRebateResponse.encode(message).finish(),
3111
- };
3112
- },
3113
- };
3114
- function createBaseMsgToggleTradeController() {
3115
- return {
3116
- creator: '',
3117
- chainId: '',
3118
- permissionChange: 0,
3119
- address: '',
3120
- legacy: false,
3121
- };
3122
- }
3123
- export const MsgToggleTradeController = {
3124
- typeUrl: '/stride.stakeibc.MsgToggleTradeController',
3125
- encode(message, writer = BinaryWriter.create()) {
3126
- if (message.creator !== '') {
3127
- writer.uint32(10).string(message.creator);
3128
- }
3129
- if (message.chainId !== '') {
3130
- writer.uint32(18).string(message.chainId);
3131
- }
3132
- if (message.permissionChange !== 0) {
3133
- writer.uint32(24).int32(message.permissionChange);
3134
- }
3135
- if (message.address !== '') {
3136
- writer.uint32(34).string(message.address);
3137
- }
3138
- if (message.legacy === true) {
3139
- writer.uint32(40).bool(message.legacy);
3140
- }
3141
- return writer;
3142
- },
3143
- decode(input, length) {
3144
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3145
- let end = length === undefined ? reader.len : reader.pos + length;
3146
- const message = createBaseMsgToggleTradeController();
3147
- while (reader.pos < end) {
3148
- const tag = reader.uint32();
3149
- switch (tag >>> 3) {
3150
- case 1:
3151
- message.creator = reader.string();
3152
- break;
3153
- case 2:
3154
- message.chainId = reader.string();
3155
- break;
3156
- case 3:
3157
- message.permissionChange = reader.int32();
3158
- break;
3159
- case 4:
3160
- message.address = reader.string();
3161
- break;
3162
- case 5:
3163
- message.legacy = reader.bool();
3164
- break;
3165
- default:
3166
- reader.skipType(tag & 7);
3167
- break;
3168
- }
3169
- }
3170
- return message;
3171
- },
3172
- fromJSON(object) {
3173
- return {
3174
- creator: isSet(object.creator) ? String(object.creator) : '',
3175
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
3176
- permissionChange: isSet(object.permissionChange)
3177
- ? authzPermissionChangeFromJSON(object.permissionChange)
3178
- : -1,
3179
- address: isSet(object.address) ? String(object.address) : '',
3180
- legacy: isSet(object.legacy) ? Boolean(object.legacy) : false,
3181
- };
3182
- },
3183
- toJSON(message) {
3184
- const obj = {};
3185
- message.creator !== undefined && (obj.creator = message.creator);
3186
- message.chainId !== undefined && (obj.chainId = message.chainId);
3187
- message.permissionChange !== undefined &&
3188
- (obj.permissionChange = authzPermissionChangeToJSON(message.permissionChange));
3189
- message.address !== undefined && (obj.address = message.address);
3190
- message.legacy !== undefined && (obj.legacy = message.legacy);
3191
- return obj;
3192
- },
3193
- fromPartial(object) {
3194
- const message = createBaseMsgToggleTradeController();
3195
- message.creator = object.creator ?? '';
3196
- message.chainId = object.chainId ?? '';
3197
- message.permissionChange = object.permissionChange ?? 0;
3198
- message.address = object.address ?? '';
3199
- message.legacy = object.legacy ?? false;
3200
- return message;
3201
- },
3202
- fromProtoMsg(message) {
3203
- return MsgToggleTradeController.decode(message.value);
3204
- },
3205
- toProto(message) {
3206
- return MsgToggleTradeController.encode(message).finish();
3207
- },
3208
- toProtoMsg(message) {
3209
- return {
3210
- typeUrl: '/stride.stakeibc.MsgToggleTradeController',
3211
- value: MsgToggleTradeController.encode(message).finish(),
3212
- };
3213
- },
3214
- };
3215
- function createBaseMsgToggleTradeControllerResponse() {
3216
- return {};
3217
- }
3218
- export const MsgToggleTradeControllerResponse = {
3219
- typeUrl: '/stride.stakeibc.MsgToggleTradeControllerResponse',
3220
- encode(_, writer = BinaryWriter.create()) {
3221
- return writer;
3222
- },
3223
- decode(input, length) {
3224
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3225
- let end = length === undefined ? reader.len : reader.pos + length;
3226
- const message = createBaseMsgToggleTradeControllerResponse();
3227
- while (reader.pos < end) {
3228
- const tag = reader.uint32();
3229
- switch (tag >>> 3) {
3230
- default:
3231
- reader.skipType(tag & 7);
3232
- break;
3233
- }
3234
- }
3235
- return message;
3236
- },
3237
- fromJSON(_) {
3238
- return {};
3239
- },
3240
- toJSON(_) {
3241
- const obj = {};
3242
- return obj;
3243
- },
3244
- fromPartial(_) {
3245
- const message = createBaseMsgToggleTradeControllerResponse();
3246
- return message;
3247
- },
3248
- fromProtoMsg(message) {
3249
- return MsgToggleTradeControllerResponse.decode(message.value);
3250
- },
3251
- toProto(message) {
3252
- return MsgToggleTradeControllerResponse.encode(message).finish();
3253
- },
3254
- toProtoMsg(message) {
3255
- return {
3256
- typeUrl: '/stride.stakeibc.MsgToggleTradeControllerResponse',
3257
- value: MsgToggleTradeControllerResponse.encode(message).finish(),
3258
- };
3259
- },
3260
- };
3261
- function createBaseMsgUpdateHostZoneParams() {
3262
- return {
3263
- authority: '',
3264
- chainId: '',
3265
- maxMessagesPerIcaTx: BigInt(0),
3266
- };
3267
- }
3268
- export const MsgUpdateHostZoneParams = {
3269
- typeUrl: '/stride.stakeibc.MsgUpdateHostZoneParams',
3270
- encode(message, writer = BinaryWriter.create()) {
3271
- if (message.authority !== '') {
3272
- writer.uint32(10).string(message.authority);
3273
- }
3274
- if (message.chainId !== '') {
3275
- writer.uint32(18).string(message.chainId);
3276
- }
3277
- if (message.maxMessagesPerIcaTx !== BigInt(0)) {
3278
- writer.uint32(24).uint64(message.maxMessagesPerIcaTx);
3279
- }
3280
- return writer;
3281
- },
3282
- decode(input, length) {
3283
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3284
- let end = length === undefined ? reader.len : reader.pos + length;
3285
- const message = createBaseMsgUpdateHostZoneParams();
3286
- while (reader.pos < end) {
3287
- const tag = reader.uint32();
3288
- switch (tag >>> 3) {
3289
- case 1:
3290
- message.authority = reader.string();
3291
- break;
3292
- case 2:
3293
- message.chainId = reader.string();
3294
- break;
3295
- case 3:
3296
- message.maxMessagesPerIcaTx = reader.uint64();
3297
- break;
3298
- default:
3299
- reader.skipType(tag & 7);
3300
- break;
3301
- }
3302
- }
3303
- return message;
3304
- },
3305
- fromJSON(object) {
3306
- return {
3307
- authority: isSet(object.authority) ? String(object.authority) : '',
3308
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
3309
- maxMessagesPerIcaTx: isSet(object.maxMessagesPerIcaTx)
3310
- ? BigInt(object.maxMessagesPerIcaTx.toString())
3311
- : BigInt(0),
3312
- };
3313
- },
3314
- toJSON(message) {
3315
- const obj = {};
3316
- message.authority !== undefined && (obj.authority = message.authority);
3317
- message.chainId !== undefined && (obj.chainId = message.chainId);
3318
- message.maxMessagesPerIcaTx !== undefined &&
3319
- (obj.maxMessagesPerIcaTx = (message.maxMessagesPerIcaTx || BigInt(0)).toString());
3320
- return obj;
3321
- },
3322
- fromPartial(object) {
3323
- const message = createBaseMsgUpdateHostZoneParams();
3324
- message.authority = object.authority ?? '';
3325
- message.chainId = object.chainId ?? '';
3326
- message.maxMessagesPerIcaTx =
3327
- object.maxMessagesPerIcaTx !== undefined &&
3328
- object.maxMessagesPerIcaTx !== null
3329
- ? BigInt(object.maxMessagesPerIcaTx.toString())
3330
- : BigInt(0);
3331
- return message;
3332
- },
3333
- fromProtoMsg(message) {
3334
- return MsgUpdateHostZoneParams.decode(message.value);
3335
- },
3336
- toProto(message) {
3337
- return MsgUpdateHostZoneParams.encode(message).finish();
3338
- },
3339
- toProtoMsg(message) {
3340
- return {
3341
- typeUrl: '/stride.stakeibc.MsgUpdateHostZoneParams',
3342
- value: MsgUpdateHostZoneParams.encode(message).finish(),
3343
- };
3344
- },
3345
- };
3346
- function createBaseMsgUpdateHostZoneParamsResponse() {
3347
- return {};
3348
- }
3349
- export const MsgUpdateHostZoneParamsResponse = {
3350
- typeUrl: '/stride.stakeibc.MsgUpdateHostZoneParamsResponse',
3351
- encode(_, writer = BinaryWriter.create()) {
3352
- return writer;
3353
- },
3354
- decode(input, length) {
3355
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3356
- let end = length === undefined ? reader.len : reader.pos + length;
3357
- const message = createBaseMsgUpdateHostZoneParamsResponse();
3358
- while (reader.pos < end) {
3359
- const tag = reader.uint32();
3360
- switch (tag >>> 3) {
3361
- default:
3362
- reader.skipType(tag & 7);
3363
- break;
3364
- }
3365
- }
3366
- return message;
3367
- },
3368
- fromJSON(_) {
3369
- return {};
3370
- },
3371
- toJSON(_) {
3372
- const obj = {};
3373
- return obj;
3374
- },
3375
- fromPartial(_) {
3376
- const message = createBaseMsgUpdateHostZoneParamsResponse();
3377
- return message;
3378
- },
3379
- fromProtoMsg(message) {
3380
- return MsgUpdateHostZoneParamsResponse.decode(message.value);
3381
- },
3382
- toProto(message) {
3383
- return MsgUpdateHostZoneParamsResponse.encode(message).finish();
3384
- },
3385
- toProtoMsg(message) {
3386
- return {
3387
- typeUrl: '/stride.stakeibc.MsgUpdateHostZoneParamsResponse',
3388
- value: MsgUpdateHostZoneParamsResponse.encode(message).finish(),
3389
- };
3390
- },
3391
- };
3392
- //# sourceMappingURL=tx.js.map
1
+ import{Validator as e}from"./validator.js";import{Coin as o}from"../../cosmos/base/v1beta1/coin.js";import{BinaryReader as t,BinaryWriter as n}from"../../binary.js";import{Decimal as r}from"../../decimals.js";import{isSet as a}from"../../helpers.js";import{}from"../../json-safe.js";export var AuthzPermissionChange;!function(e){e[e.GRANT=0]="GRANT",e[e.REVOKE=1]="REVOKE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(AuthzPermissionChange||(AuthzPermissionChange={}));export const AuthzPermissionChangeSDKType=AuthzPermissionChange;export function authzPermissionChangeFromJSON(e){switch(e){case 0:case"GRANT":return AuthzPermissionChange.GRANT;case 1:case"REVOKE":return AuthzPermissionChange.REVOKE;default:return AuthzPermissionChange.UNRECOGNIZED}}export function authzPermissionChangeToJSON(e){switch(e){case AuthzPermissionChange.GRANT:return"GRANT";case AuthzPermissionChange.REVOKE:return"REVOKE";case AuthzPermissionChange.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export const MsgUpdateInnerRedemptionRateBounds={typeUrl:"/stride.stakeibc.MsgUpdateInnerRedemptionRateBounds",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),""!==e.minInnerRedemptionRate&&o.uint32(26).string(r.fromUserInput(e.minInnerRedemptionRate,18).atomics),""!==e.maxInnerRedemptionRate&&o.uint32(34).string(r.fromUserInput(e.maxInnerRedemptionRate,18).atomics),o),decode(e,o){const n=e instanceof t?e:new t(e);let a=void 0===o?n.len:n.pos+o;const s={creator:"",chainId:"",minInnerRedemptionRate:"",maxInnerRedemptionRate:""};for(;n.pos<a;){const e=n.uint32();switch(e>>>3){case 1:s.creator=n.string();break;case 2:s.chainId=n.string();break;case 3:s.minInnerRedemptionRate=r.fromAtomics(n.string(),18).toString();break;case 4:s.maxInnerRedemptionRate=r.fromAtomics(n.string(),18).toString();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):"",minInnerRedemptionRate:a(e.minInnerRedemptionRate)?String(e.minInnerRedemptionRate):"",maxInnerRedemptionRate:a(e.maxInnerRedemptionRate)?String(e.maxInnerRedemptionRate):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.minInnerRedemptionRate&&(o.minInnerRedemptionRate=e.minInnerRedemptionRate),void 0!==e.maxInnerRedemptionRate&&(o.maxInnerRedemptionRate=e.maxInnerRedemptionRate),o},fromPartial(e){const o={creator:"",chainId:"",minInnerRedemptionRate:"",maxInnerRedemptionRate:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o.minInnerRedemptionRate=e.minInnerRedemptionRate??"",o.maxInnerRedemptionRate=e.maxInnerRedemptionRate??"",o},fromProtoMsg:e=>MsgUpdateInnerRedemptionRateBounds.decode(e.value),toProto:e=>MsgUpdateInnerRedemptionRateBounds.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateInnerRedemptionRateBounds",value:MsgUpdateInnerRedemptionRateBounds.encode(e).finish()})};export const MsgUpdateInnerRedemptionRateBoundsResponse={typeUrl:"/stride.stakeibc.MsgUpdateInnerRedemptionRateBoundsResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgUpdateInnerRedemptionRateBoundsResponse.decode(e.value),toProto:e=>MsgUpdateInnerRedemptionRateBoundsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateInnerRedemptionRateBoundsResponse",value:MsgUpdateInnerRedemptionRateBoundsResponse.encode(e).finish()})};export const MsgLiquidStake={typeUrl:"/stride.stakeibc.MsgLiquidStake",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.amount&&o.uint32(18).string(e.amount),""!==e.hostDenom&&o.uint32(26).string(e.hostDenom),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",amount:"",hostDenom:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.amount=n.string();break;case 3:a.hostDenom=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",amount:a(e.amount)?String(e.amount):"",hostDenom:a(e.hostDenom)?String(e.hostDenom):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.amount&&(o.amount=e.amount),void 0!==e.hostDenom&&(o.hostDenom=e.hostDenom),o},fromPartial(e){const o={creator:"",amount:"",hostDenom:""};return o.creator=e.creator??"",o.amount=e.amount??"",o.hostDenom=e.hostDenom??"",o},fromProtoMsg:e=>MsgLiquidStake.decode(e.value),toProto:e=>MsgLiquidStake.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgLiquidStake",value:MsgLiquidStake.encode(e).finish()})};function s(){return{stToken:o.fromPartial({})}}export const MsgLiquidStakeResponse={typeUrl:"/stride.stakeibc.MsgLiquidStakeResponse",encode:(e,t=n.create())=>(void 0!==e.stToken&&o.encode(e.stToken,t.uint32(10).fork()).ldelim(),t),decode(e,n){const r=e instanceof t?e:new t(e);let a=void 0===n?r.len:r.pos+n;const i=s();for(;r.pos<a;){const e=r.uint32();if(e>>>3==1)i.stToken=o.decode(r,r.uint32());else r.skipType(7&e)}return i},fromJSON:e=>({stToken:a(e.stToken)?o.fromJSON(e.stToken):void 0}),toJSON(e){const t={};return void 0!==e.stToken&&(t.stToken=e.stToken?o.toJSON(e.stToken):void 0),t},fromPartial(e){const t=s();return t.stToken=void 0!==e.stToken&&null!==e.stToken?o.fromPartial(e.stToken):void 0,t},fromProtoMsg:e=>MsgLiquidStakeResponse.decode(e.value),toProto:e=>MsgLiquidStakeResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgLiquidStakeResponse",value:MsgLiquidStakeResponse.encode(e).finish()})};export const MsgLSMLiquidStake={typeUrl:"/stride.stakeibc.MsgLSMLiquidStake",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.amount&&o.uint32(18).string(e.amount),""!==e.lsmTokenIbcDenom&&o.uint32(26).string(e.lsmTokenIbcDenom),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",amount:"",lsmTokenIbcDenom:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.amount=n.string();break;case 3:a.lsmTokenIbcDenom=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",amount:a(e.amount)?String(e.amount):"",lsmTokenIbcDenom:a(e.lsmTokenIbcDenom)?String(e.lsmTokenIbcDenom):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.amount&&(o.amount=e.amount),void 0!==e.lsmTokenIbcDenom&&(o.lsmTokenIbcDenom=e.lsmTokenIbcDenom),o},fromPartial(e){const o={creator:"",amount:"",lsmTokenIbcDenom:""};return o.creator=e.creator??"",o.amount=e.amount??"",o.lsmTokenIbcDenom=e.lsmTokenIbcDenom??"",o},fromProtoMsg:e=>MsgLSMLiquidStake.decode(e.value),toProto:e=>MsgLSMLiquidStake.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgLSMLiquidStake",value:MsgLSMLiquidStake.encode(e).finish()})};export const MsgLSMLiquidStakeResponse={typeUrl:"/stride.stakeibc.MsgLSMLiquidStakeResponse",encode:(e,o=n.create())=>(!0===e.transactionComplete&&o.uint32(8).bool(e.transactionComplete),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={transactionComplete:!1};for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)a.transactionComplete=n.bool();else n.skipType(7&e)}return a},fromJSON:e=>({transactionComplete:!!a(e.transactionComplete)&&Boolean(e.transactionComplete)}),toJSON(e){const o={};return void 0!==e.transactionComplete&&(o.transactionComplete=e.transactionComplete),o},fromPartial(e){const o={transactionComplete:!1};return o.transactionComplete=e.transactionComplete??!1,o},fromProtoMsg:e=>MsgLSMLiquidStakeResponse.decode(e.value),toProto:e=>MsgLSMLiquidStakeResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgLSMLiquidStakeResponse",value:MsgLSMLiquidStakeResponse.encode(e).finish()})};export const MsgClearBalance={typeUrl:"/stride.stakeibc.MsgClearBalance",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),""!==e.amount&&o.uint32(26).string(e.amount),""!==e.channel&&o.uint32(34).string(e.channel),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",chainId:"",amount:"",channel:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.chainId=n.string();break;case 3:a.amount=n.string();break;case 4:a.channel=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):"",amount:a(e.amount)?String(e.amount):"",channel:a(e.channel)?String(e.channel):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.amount&&(o.amount=e.amount),void 0!==e.channel&&(o.channel=e.channel),o},fromPartial(e){const o={creator:"",chainId:"",amount:"",channel:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o.amount=e.amount??"",o.channel=e.channel??"",o},fromProtoMsg:e=>MsgClearBalance.decode(e.value),toProto:e=>MsgClearBalance.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgClearBalance",value:MsgClearBalance.encode(e).finish()})};export const MsgClearBalanceResponse={typeUrl:"/stride.stakeibc.MsgClearBalanceResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgClearBalanceResponse.decode(e.value),toProto:e=>MsgClearBalanceResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgClearBalanceResponse",value:MsgClearBalanceResponse.encode(e).finish()})};export const MsgRedeemStake={typeUrl:"/stride.stakeibc.MsgRedeemStake",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.amount&&o.uint32(18).string(e.amount),""!==e.hostZone&&o.uint32(26).string(e.hostZone),""!==e.receiver&&o.uint32(34).string(e.receiver),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",amount:"",hostZone:"",receiver:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.amount=n.string();break;case 3:a.hostZone=n.string();break;case 4:a.receiver=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",amount:a(e.amount)?String(e.amount):"",hostZone:a(e.hostZone)?String(e.hostZone):"",receiver:a(e.receiver)?String(e.receiver):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.amount&&(o.amount=e.amount),void 0!==e.hostZone&&(o.hostZone=e.hostZone),void 0!==e.receiver&&(o.receiver=e.receiver),o},fromPartial(e){const o={creator:"",amount:"",hostZone:"",receiver:""};return o.creator=e.creator??"",o.amount=e.amount??"",o.hostZone=e.hostZone??"",o.receiver=e.receiver??"",o},fromProtoMsg:e=>MsgRedeemStake.decode(e.value),toProto:e=>MsgRedeemStake.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRedeemStake",value:MsgRedeemStake.encode(e).finish()})};export const MsgRedeemStakeResponse={typeUrl:"/stride.stakeibc.MsgRedeemStakeResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgRedeemStakeResponse.decode(e.value),toProto:e=>MsgRedeemStakeResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRedeemStakeResponse",value:MsgRedeemStakeResponse.encode(e).finish()})};function i(){return{connectionId:"",bech32prefix:"",hostDenom:"",ibcDenom:"",creator:"",transferChannelId:"",unbondingPeriod:BigInt(0),minRedemptionRate:"",maxRedemptionRate:"",lsmLiquidStakeEnabled:!1,communityPoolTreasuryAddress:"",maxMessagesPerIcaTx:BigInt(0)}}export const MsgRegisterHostZone={typeUrl:"/stride.stakeibc.MsgRegisterHostZone",encode:(e,o=n.create())=>(""!==e.connectionId&&o.uint32(18).string(e.connectionId),""!==e.bech32prefix&&o.uint32(98).string(e.bech32prefix),""!==e.hostDenom&&o.uint32(34).string(e.hostDenom),""!==e.ibcDenom&&o.uint32(42).string(e.ibcDenom),""!==e.creator&&o.uint32(50).string(e.creator),""!==e.transferChannelId&&o.uint32(82).string(e.transferChannelId),e.unbondingPeriod!==BigInt(0)&&o.uint32(88).uint64(e.unbondingPeriod),""!==e.minRedemptionRate&&o.uint32(106).string(r.fromUserInput(e.minRedemptionRate,18).atomics),""!==e.maxRedemptionRate&&o.uint32(114).string(r.fromUserInput(e.maxRedemptionRate,18).atomics),!0===e.lsmLiquidStakeEnabled&&o.uint32(120).bool(e.lsmLiquidStakeEnabled),""!==e.communityPoolTreasuryAddress&&o.uint32(130).string(e.communityPoolTreasuryAddress),e.maxMessagesPerIcaTx!==BigInt(0)&&o.uint32(136).uint64(e.maxMessagesPerIcaTx),o),decode(e,o){const n=e instanceof t?e:new t(e);let a=void 0===o?n.len:n.pos+o;const s=i();for(;n.pos<a;){const e=n.uint32();switch(e>>>3){case 2:s.connectionId=n.string();break;case 12:s.bech32prefix=n.string();break;case 4:s.hostDenom=n.string();break;case 5:s.ibcDenom=n.string();break;case 6:s.creator=n.string();break;case 10:s.transferChannelId=n.string();break;case 11:s.unbondingPeriod=n.uint64();break;case 13:s.minRedemptionRate=r.fromAtomics(n.string(),18).toString();break;case 14:s.maxRedemptionRate=r.fromAtomics(n.string(),18).toString();break;case 15:s.lsmLiquidStakeEnabled=n.bool();break;case 16:s.communityPoolTreasuryAddress=n.string();break;case 17:s.maxMessagesPerIcaTx=n.uint64();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({connectionId:a(e.connectionId)?String(e.connectionId):"",bech32prefix:a(e.bech32prefix)?String(e.bech32prefix):"",hostDenom:a(e.hostDenom)?String(e.hostDenom):"",ibcDenom:a(e.ibcDenom)?String(e.ibcDenom):"",creator:a(e.creator)?String(e.creator):"",transferChannelId:a(e.transferChannelId)?String(e.transferChannelId):"",unbondingPeriod:a(e.unbondingPeriod)?BigInt(e.unbondingPeriod.toString()):BigInt(0),minRedemptionRate:a(e.minRedemptionRate)?String(e.minRedemptionRate):"",maxRedemptionRate:a(e.maxRedemptionRate)?String(e.maxRedemptionRate):"",lsmLiquidStakeEnabled:!!a(e.lsmLiquidStakeEnabled)&&Boolean(e.lsmLiquidStakeEnabled),communityPoolTreasuryAddress:a(e.communityPoolTreasuryAddress)?String(e.communityPoolTreasuryAddress):"",maxMessagesPerIcaTx:a(e.maxMessagesPerIcaTx)?BigInt(e.maxMessagesPerIcaTx.toString()):BigInt(0)}),toJSON(e){const o={};return void 0!==e.connectionId&&(o.connectionId=e.connectionId),void 0!==e.bech32prefix&&(o.bech32prefix=e.bech32prefix),void 0!==e.hostDenom&&(o.hostDenom=e.hostDenom),void 0!==e.ibcDenom&&(o.ibcDenom=e.ibcDenom),void 0!==e.creator&&(o.creator=e.creator),void 0!==e.transferChannelId&&(o.transferChannelId=e.transferChannelId),void 0!==e.unbondingPeriod&&(o.unbondingPeriod=(e.unbondingPeriod||BigInt(0)).toString()),void 0!==e.minRedemptionRate&&(o.minRedemptionRate=e.minRedemptionRate),void 0!==e.maxRedemptionRate&&(o.maxRedemptionRate=e.maxRedemptionRate),void 0!==e.lsmLiquidStakeEnabled&&(o.lsmLiquidStakeEnabled=e.lsmLiquidStakeEnabled),void 0!==e.communityPoolTreasuryAddress&&(o.communityPoolTreasuryAddress=e.communityPoolTreasuryAddress),void 0!==e.maxMessagesPerIcaTx&&(o.maxMessagesPerIcaTx=(e.maxMessagesPerIcaTx||BigInt(0)).toString()),o},fromPartial(e){const o=i();return o.connectionId=e.connectionId??"",o.bech32prefix=e.bech32prefix??"",o.hostDenom=e.hostDenom??"",o.ibcDenom=e.ibcDenom??"",o.creator=e.creator??"",o.transferChannelId=e.transferChannelId??"",o.unbondingPeriod=void 0!==e.unbondingPeriod&&null!==e.unbondingPeriod?BigInt(e.unbondingPeriod.toString()):BigInt(0),o.minRedemptionRate=e.minRedemptionRate??"",o.maxRedemptionRate=e.maxRedemptionRate??"",o.lsmLiquidStakeEnabled=e.lsmLiquidStakeEnabled??!1,o.communityPoolTreasuryAddress=e.communityPoolTreasuryAddress??"",o.maxMessagesPerIcaTx=void 0!==e.maxMessagesPerIcaTx&&null!==e.maxMessagesPerIcaTx?BigInt(e.maxMessagesPerIcaTx.toString()):BigInt(0),o},fromProtoMsg:e=>MsgRegisterHostZone.decode(e.value),toProto:e=>MsgRegisterHostZone.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRegisterHostZone",value:MsgRegisterHostZone.encode(e).finish()})};export const MsgRegisterHostZoneResponse={typeUrl:"/stride.stakeibc.MsgRegisterHostZoneResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgRegisterHostZoneResponse.decode(e.value),toProto:e=>MsgRegisterHostZoneResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRegisterHostZoneResponse",value:MsgRegisterHostZoneResponse.encode(e).finish()})};function d(){return{creator:"",hostZoneId:"",epoch:BigInt(0),receiver:""}}export const MsgClaimUndelegatedTokens={typeUrl:"/stride.stakeibc.MsgClaimUndelegatedTokens",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.hostZoneId&&o.uint32(18).string(e.hostZoneId),e.epoch!==BigInt(0)&&o.uint32(24).uint64(e.epoch),""!==e.receiver&&o.uint32(42).string(e.receiver),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a=d();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.hostZoneId=n.string();break;case 3:a.epoch=n.uint64();break;case 5:a.receiver=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",hostZoneId:a(e.hostZoneId)?String(e.hostZoneId):"",epoch:a(e.epoch)?BigInt(e.epoch.toString()):BigInt(0),receiver:a(e.receiver)?String(e.receiver):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.hostZoneId&&(o.hostZoneId=e.hostZoneId),void 0!==e.epoch&&(o.epoch=(e.epoch||BigInt(0)).toString()),void 0!==e.receiver&&(o.receiver=e.receiver),o},fromPartial(e){const o=d();return o.creator=e.creator??"",o.hostZoneId=e.hostZoneId??"",o.epoch=void 0!==e.epoch&&null!==e.epoch?BigInt(e.epoch.toString()):BigInt(0),o.receiver=e.receiver??"",o},fromProtoMsg:e=>MsgClaimUndelegatedTokens.decode(e.value),toProto:e=>MsgClaimUndelegatedTokens.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgClaimUndelegatedTokens",value:MsgClaimUndelegatedTokens.encode(e).finish()})};export const MsgClaimUndelegatedTokensResponse={typeUrl:"/stride.stakeibc.MsgClaimUndelegatedTokensResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgClaimUndelegatedTokensResponse.decode(e.value),toProto:e=>MsgClaimUndelegatedTokensResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgClaimUndelegatedTokensResponse",value:MsgClaimUndelegatedTokensResponse.encode(e).finish()})};function c(){return{creator:"",hostZone:"",numRebalance:BigInt(0)}}export const MsgRebalanceValidators={typeUrl:"/stride.stakeibc.MsgRebalanceValidators",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.hostZone&&o.uint32(18).string(e.hostZone),e.numRebalance!==BigInt(0)&&o.uint32(24).uint64(e.numRebalance),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a=c();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.hostZone=n.string();break;case 3:a.numRebalance=n.uint64();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",hostZone:a(e.hostZone)?String(e.hostZone):"",numRebalance:a(e.numRebalance)?BigInt(e.numRebalance.toString()):BigInt(0)}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.hostZone&&(o.hostZone=e.hostZone),void 0!==e.numRebalance&&(o.numRebalance=(e.numRebalance||BigInt(0)).toString()),o},fromPartial(e){const o=c();return o.creator=e.creator??"",o.hostZone=e.hostZone??"",o.numRebalance=void 0!==e.numRebalance&&null!==e.numRebalance?BigInt(e.numRebalance.toString()):BigInt(0),o},fromProtoMsg:e=>MsgRebalanceValidators.decode(e.value),toProto:e=>MsgRebalanceValidators.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRebalanceValidators",value:MsgRebalanceValidators.encode(e).finish()})};export const MsgRebalanceValidatorsResponse={typeUrl:"/stride.stakeibc.MsgRebalanceValidatorsResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgRebalanceValidatorsResponse.decode(e.value),toProto:e=>MsgRebalanceValidatorsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRebalanceValidatorsResponse",value:MsgRebalanceValidatorsResponse.encode(e).finish()})};export const MsgAddValidators={typeUrl:"/stride.stakeibc.MsgAddValidators",encode(o,t=n.create()){""!==o.creator&&t.uint32(10).string(o.creator),""!==o.hostZone&&t.uint32(18).string(o.hostZone);for(const n of o.validators)e.encode(n,t.uint32(26).fork()).ldelim();return t},decode(o,n){const r=o instanceof t?o:new t(o);let a=void 0===n?r.len:r.pos+n;const s={creator:"",hostZone:"",validators:[]};for(;r.pos<a;){const o=r.uint32();switch(o>>>3){case 1:s.creator=r.string();break;case 2:s.hostZone=r.string();break;case 3:s.validators.push(e.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return s},fromJSON:o=>({creator:a(o.creator)?String(o.creator):"",hostZone:a(o.hostZone)?String(o.hostZone):"",validators:Array.isArray(o?.validators)?o.validators.map((o=>e.fromJSON(o))):[]}),toJSON(o){const t={};return void 0!==o.creator&&(t.creator=o.creator),void 0!==o.hostZone&&(t.hostZone=o.hostZone),o.validators?t.validators=o.validators.map((o=>o?e.toJSON(o):void 0)):t.validators=[],t},fromPartial(o){const t={creator:"",hostZone:"",validators:[]};return t.creator=o.creator??"",t.hostZone=o.hostZone??"",t.validators=o.validators?.map((o=>e.fromPartial(o)))||[],t},fromProtoMsg:e=>MsgAddValidators.decode(e.value),toProto:e=>MsgAddValidators.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgAddValidators",value:MsgAddValidators.encode(e).finish()})};export const MsgAddValidatorsResponse={typeUrl:"/stride.stakeibc.MsgAddValidatorsResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgAddValidatorsResponse.decode(e.value),toProto:e=>MsgAddValidatorsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgAddValidatorsResponse",value:MsgAddValidatorsResponse.encode(e).finish()})};function l(){return{address:"",weight:BigInt(0)}}export const ValidatorWeight={typeUrl:"/stride.stakeibc.ValidatorWeight",encode:(e,o=n.create())=>(""!==e.address&&o.uint32(10).string(e.address),e.weight!==BigInt(0)&&o.uint32(16).uint64(e.weight),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a=l();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.address=n.string();break;case 2:a.weight=n.uint64();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({address:a(e.address)?String(e.address):"",weight:a(e.weight)?BigInt(e.weight.toString()):BigInt(0)}),toJSON(e){const o={};return void 0!==e.address&&(o.address=e.address),void 0!==e.weight&&(o.weight=(e.weight||BigInt(0)).toString()),o},fromPartial(e){const o=l();return o.address=e.address??"",o.weight=void 0!==e.weight&&null!==e.weight?BigInt(e.weight.toString()):BigInt(0),o},fromProtoMsg:e=>ValidatorWeight.decode(e.value),toProto:e=>ValidatorWeight.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.ValidatorWeight",value:ValidatorWeight.encode(e).finish()})};export const MsgChangeValidatorWeights={typeUrl:"/stride.stakeibc.MsgChangeValidatorWeights",encode(e,o=n.create()){""!==e.creator&&o.uint32(10).string(e.creator),""!==e.hostZone&&o.uint32(18).string(e.hostZone);for(const t of e.validatorWeights)ValidatorWeight.encode(t,o.uint32(26).fork()).ldelim();return o},decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",hostZone:"",validatorWeights:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.hostZone=n.string();break;case 3:a.validatorWeights.push(ValidatorWeight.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",hostZone:a(e.hostZone)?String(e.hostZone):"",validatorWeights:Array.isArray(e?.validatorWeights)?e.validatorWeights.map((e=>ValidatorWeight.fromJSON(e))):[]}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.hostZone&&(o.hostZone=e.hostZone),e.validatorWeights?o.validatorWeights=e.validatorWeights.map((e=>e?ValidatorWeight.toJSON(e):void 0)):o.validatorWeights=[],o},fromPartial(e){const o={creator:"",hostZone:"",validatorWeights:[]};return o.creator=e.creator??"",o.hostZone=e.hostZone??"",o.validatorWeights=e.validatorWeights?.map((e=>ValidatorWeight.fromPartial(e)))||[],o},fromProtoMsg:e=>MsgChangeValidatorWeights.decode(e.value),toProto:e=>MsgChangeValidatorWeights.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgChangeValidatorWeights",value:MsgChangeValidatorWeights.encode(e).finish()})};export const MsgChangeValidatorWeightsResponse={typeUrl:"/stride.stakeibc.MsgChangeValidatorWeightsResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgChangeValidatorWeightsResponse.decode(e.value),toProto:e=>MsgChangeValidatorWeightsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgChangeValidatorWeightsResponse",value:MsgChangeValidatorWeightsResponse.encode(e).finish()})};export const MsgDeleteValidator={typeUrl:"/stride.stakeibc.MsgDeleteValidator",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.hostZone&&o.uint32(18).string(e.hostZone),""!==e.valAddr&&o.uint32(26).string(e.valAddr),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",hostZone:"",valAddr:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.hostZone=n.string();break;case 3:a.valAddr=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",hostZone:a(e.hostZone)?String(e.hostZone):"",valAddr:a(e.valAddr)?String(e.valAddr):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.hostZone&&(o.hostZone=e.hostZone),void 0!==e.valAddr&&(o.valAddr=e.valAddr),o},fromPartial(e){const o={creator:"",hostZone:"",valAddr:""};return o.creator=e.creator??"",o.hostZone=e.hostZone??"",o.valAddr=e.valAddr??"",o},fromProtoMsg:e=>MsgDeleteValidator.decode(e.value),toProto:e=>MsgDeleteValidator.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgDeleteValidator",value:MsgDeleteValidator.encode(e).finish()})};export const MsgDeleteValidatorResponse={typeUrl:"/stride.stakeibc.MsgDeleteValidatorResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgDeleteValidatorResponse.decode(e.value),toProto:e=>MsgDeleteValidatorResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgDeleteValidatorResponse",value:MsgDeleteValidatorResponse.encode(e).finish()})};export const MsgRestoreInterchainAccount={typeUrl:"/stride.stakeibc.MsgRestoreInterchainAccount",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),""!==e.connectionId&&o.uint32(26).string(e.connectionId),""!==e.accountOwner&&o.uint32(34).string(e.accountOwner),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",chainId:"",connectionId:"",accountOwner:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.chainId=n.string();break;case 3:a.connectionId=n.string();break;case 4:a.accountOwner=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):"",connectionId:a(e.connectionId)?String(e.connectionId):"",accountOwner:a(e.accountOwner)?String(e.accountOwner):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.connectionId&&(o.connectionId=e.connectionId),void 0!==e.accountOwner&&(o.accountOwner=e.accountOwner),o},fromPartial(e){const o={creator:"",chainId:"",connectionId:"",accountOwner:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o.connectionId=e.connectionId??"",o.accountOwner=e.accountOwner??"",o},fromProtoMsg:e=>MsgRestoreInterchainAccount.decode(e.value),toProto:e=>MsgRestoreInterchainAccount.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRestoreInterchainAccount",value:MsgRestoreInterchainAccount.encode(e).finish()})};export const MsgRestoreInterchainAccountResponse={typeUrl:"/stride.stakeibc.MsgRestoreInterchainAccountResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgRestoreInterchainAccountResponse.decode(e.value),toProto:e=>MsgRestoreInterchainAccountResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgRestoreInterchainAccountResponse",value:MsgRestoreInterchainAccountResponse.encode(e).finish()})};export const MsgCloseDelegationChannel={typeUrl:"/stride.stakeibc.MsgCloseDelegationChannel",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",chainId:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.chainId=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),o},fromPartial(e){const o={creator:"",chainId:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o},fromProtoMsg:e=>MsgCloseDelegationChannel.decode(e.value),toProto:e=>MsgCloseDelegationChannel.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgCloseDelegationChannel",value:MsgCloseDelegationChannel.encode(e).finish()})};export const MsgCloseDelegationChannelResponse={typeUrl:"/stride.stakeibc.MsgCloseDelegationChannelResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgCloseDelegationChannelResponse.decode(e.value),toProto:e=>MsgCloseDelegationChannelResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgCloseDelegationChannelResponse",value:MsgCloseDelegationChannelResponse.encode(e).finish()})};export const MsgUpdateValidatorSharesExchRate={typeUrl:"/stride.stakeibc.MsgUpdateValidatorSharesExchRate",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),""!==e.valoper&&o.uint32(26).string(e.valoper),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",chainId:"",valoper:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.chainId=n.string();break;case 3:a.valoper=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):"",valoper:a(e.valoper)?String(e.valoper):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.valoper&&(o.valoper=e.valoper),o},fromPartial(e){const o={creator:"",chainId:"",valoper:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o.valoper=e.valoper??"",o},fromProtoMsg:e=>MsgUpdateValidatorSharesExchRate.decode(e.value),toProto:e=>MsgUpdateValidatorSharesExchRate.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateValidatorSharesExchRate",value:MsgUpdateValidatorSharesExchRate.encode(e).finish()})};export const MsgUpdateValidatorSharesExchRateResponse={typeUrl:"/stride.stakeibc.MsgUpdateValidatorSharesExchRateResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgUpdateValidatorSharesExchRateResponse.decode(e.value),toProto:e=>MsgUpdateValidatorSharesExchRateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateValidatorSharesExchRateResponse",value:MsgUpdateValidatorSharesExchRateResponse.encode(e).finish()})};export const MsgCalibrateDelegation={typeUrl:"/stride.stakeibc.MsgCalibrateDelegation",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),""!==e.valoper&&o.uint32(26).string(e.valoper),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",chainId:"",valoper:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.chainId=n.string();break;case 3:a.valoper=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):"",valoper:a(e.valoper)?String(e.valoper):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.valoper&&(o.valoper=e.valoper),o},fromPartial(e){const o={creator:"",chainId:"",valoper:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o.valoper=e.valoper??"",o},fromProtoMsg:e=>MsgCalibrateDelegation.decode(e.value),toProto:e=>MsgCalibrateDelegation.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgCalibrateDelegation",value:MsgCalibrateDelegation.encode(e).finish()})};export const MsgCalibrateDelegationResponse={typeUrl:"/stride.stakeibc.MsgCalibrateDelegationResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgCalibrateDelegationResponse.decode(e.value),toProto:e=>MsgCalibrateDelegationResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgCalibrateDelegationResponse",value:MsgCalibrateDelegationResponse.encode(e).finish()})};export const MsgResumeHostZone={typeUrl:"/stride.stakeibc.MsgResumeHostZone",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",chainId:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.chainId=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),o},fromPartial(e){const o={creator:"",chainId:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o},fromProtoMsg:e=>MsgResumeHostZone.decode(e.value),toProto:e=>MsgResumeHostZone.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgResumeHostZone",value:MsgResumeHostZone.encode(e).finish()})};export const MsgResumeHostZoneResponse={typeUrl:"/stride.stakeibc.MsgResumeHostZoneResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgResumeHostZoneResponse.decode(e.value),toProto:e=>MsgResumeHostZoneResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgResumeHostZoneResponse",value:MsgResumeHostZoneResponse.encode(e).finish()})};function g(){return{authority:"",hostChainId:"",strideToRewardConnectionId:"",strideToTradeConnectionId:"",hostToRewardTransferChannelId:"",rewardToTradeTransferChannelId:"",tradeToHostTransferChannelId:"",rewardDenomOnHost:"",rewardDenomOnReward:"",rewardDenomOnTrade:"",hostDenomOnTrade:"",hostDenomOnHost:"",poolId:BigInt(0),maxAllowedSwapLossRate:"",minSwapAmount:"",maxSwapAmount:"",minTransferAmount:""}}export const MsgCreateTradeRoute={typeUrl:"/stride.stakeibc.MsgCreateTradeRoute",encode:(e,o=n.create())=>(""!==e.authority&&o.uint32(10).string(e.authority),""!==e.hostChainId&&o.uint32(18).string(e.hostChainId),""!==e.strideToRewardConnectionId&&o.uint32(26).string(e.strideToRewardConnectionId),""!==e.strideToTradeConnectionId&&o.uint32(34).string(e.strideToTradeConnectionId),""!==e.hostToRewardTransferChannelId&&o.uint32(42).string(e.hostToRewardTransferChannelId),""!==e.rewardToTradeTransferChannelId&&o.uint32(50).string(e.rewardToTradeTransferChannelId),""!==e.tradeToHostTransferChannelId&&o.uint32(58).string(e.tradeToHostTransferChannelId),""!==e.rewardDenomOnHost&&o.uint32(66).string(e.rewardDenomOnHost),""!==e.rewardDenomOnReward&&o.uint32(74).string(e.rewardDenomOnReward),""!==e.rewardDenomOnTrade&&o.uint32(82).string(e.rewardDenomOnTrade),""!==e.hostDenomOnTrade&&o.uint32(90).string(e.hostDenomOnTrade),""!==e.hostDenomOnHost&&o.uint32(98).string(e.hostDenomOnHost),e.poolId!==BigInt(0)&&o.uint32(104).uint64(e.poolId),""!==e.maxAllowedSwapLossRate&&o.uint32(114).string(e.maxAllowedSwapLossRate),""!==e.minSwapAmount&&o.uint32(122).string(e.minSwapAmount),""!==e.maxSwapAmount&&o.uint32(130).string(e.maxSwapAmount),""!==e.minTransferAmount&&o.uint32(138).string(e.minTransferAmount),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a=g();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.authority=n.string();break;case 2:a.hostChainId=n.string();break;case 3:a.strideToRewardConnectionId=n.string();break;case 4:a.strideToTradeConnectionId=n.string();break;case 5:a.hostToRewardTransferChannelId=n.string();break;case 6:a.rewardToTradeTransferChannelId=n.string();break;case 7:a.tradeToHostTransferChannelId=n.string();break;case 8:a.rewardDenomOnHost=n.string();break;case 9:a.rewardDenomOnReward=n.string();break;case 10:a.rewardDenomOnTrade=n.string();break;case 11:a.hostDenomOnTrade=n.string();break;case 12:a.hostDenomOnHost=n.string();break;case 13:a.poolId=n.uint64();break;case 14:a.maxAllowedSwapLossRate=n.string();break;case 15:a.minSwapAmount=n.string();break;case 16:a.maxSwapAmount=n.string();break;case 17:a.minTransferAmount=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({authority:a(e.authority)?String(e.authority):"",hostChainId:a(e.hostChainId)?String(e.hostChainId):"",strideToRewardConnectionId:a(e.strideToRewardConnectionId)?String(e.strideToRewardConnectionId):"",strideToTradeConnectionId:a(e.strideToTradeConnectionId)?String(e.strideToTradeConnectionId):"",hostToRewardTransferChannelId:a(e.hostToRewardTransferChannelId)?String(e.hostToRewardTransferChannelId):"",rewardToTradeTransferChannelId:a(e.rewardToTradeTransferChannelId)?String(e.rewardToTradeTransferChannelId):"",tradeToHostTransferChannelId:a(e.tradeToHostTransferChannelId)?String(e.tradeToHostTransferChannelId):"",rewardDenomOnHost:a(e.rewardDenomOnHost)?String(e.rewardDenomOnHost):"",rewardDenomOnReward:a(e.rewardDenomOnReward)?String(e.rewardDenomOnReward):"",rewardDenomOnTrade:a(e.rewardDenomOnTrade)?String(e.rewardDenomOnTrade):"",hostDenomOnTrade:a(e.hostDenomOnTrade)?String(e.hostDenomOnTrade):"",hostDenomOnHost:a(e.hostDenomOnHost)?String(e.hostDenomOnHost):"",poolId:a(e.poolId)?BigInt(e.poolId.toString()):BigInt(0),maxAllowedSwapLossRate:a(e.maxAllowedSwapLossRate)?String(e.maxAllowedSwapLossRate):"",minSwapAmount:a(e.minSwapAmount)?String(e.minSwapAmount):"",maxSwapAmount:a(e.maxSwapAmount)?String(e.maxSwapAmount):"",minTransferAmount:a(e.minTransferAmount)?String(e.minTransferAmount):""}),toJSON(e){const o={};return void 0!==e.authority&&(o.authority=e.authority),void 0!==e.hostChainId&&(o.hostChainId=e.hostChainId),void 0!==e.strideToRewardConnectionId&&(o.strideToRewardConnectionId=e.strideToRewardConnectionId),void 0!==e.strideToTradeConnectionId&&(o.strideToTradeConnectionId=e.strideToTradeConnectionId),void 0!==e.hostToRewardTransferChannelId&&(o.hostToRewardTransferChannelId=e.hostToRewardTransferChannelId),void 0!==e.rewardToTradeTransferChannelId&&(o.rewardToTradeTransferChannelId=e.rewardToTradeTransferChannelId),void 0!==e.tradeToHostTransferChannelId&&(o.tradeToHostTransferChannelId=e.tradeToHostTransferChannelId),void 0!==e.rewardDenomOnHost&&(o.rewardDenomOnHost=e.rewardDenomOnHost),void 0!==e.rewardDenomOnReward&&(o.rewardDenomOnReward=e.rewardDenomOnReward),void 0!==e.rewardDenomOnTrade&&(o.rewardDenomOnTrade=e.rewardDenomOnTrade),void 0!==e.hostDenomOnTrade&&(o.hostDenomOnTrade=e.hostDenomOnTrade),void 0!==e.hostDenomOnHost&&(o.hostDenomOnHost=e.hostDenomOnHost),void 0!==e.poolId&&(o.poolId=(e.poolId||BigInt(0)).toString()),void 0!==e.maxAllowedSwapLossRate&&(o.maxAllowedSwapLossRate=e.maxAllowedSwapLossRate),void 0!==e.minSwapAmount&&(o.minSwapAmount=e.minSwapAmount),void 0!==e.maxSwapAmount&&(o.maxSwapAmount=e.maxSwapAmount),void 0!==e.minTransferAmount&&(o.minTransferAmount=e.minTransferAmount),o},fromPartial(e){const o=g();return o.authority=e.authority??"",o.hostChainId=e.hostChainId??"",o.strideToRewardConnectionId=e.strideToRewardConnectionId??"",o.strideToTradeConnectionId=e.strideToTradeConnectionId??"",o.hostToRewardTransferChannelId=e.hostToRewardTransferChannelId??"",o.rewardToTradeTransferChannelId=e.rewardToTradeTransferChannelId??"",o.tradeToHostTransferChannelId=e.tradeToHostTransferChannelId??"",o.rewardDenomOnHost=e.rewardDenomOnHost??"",o.rewardDenomOnReward=e.rewardDenomOnReward??"",o.rewardDenomOnTrade=e.rewardDenomOnTrade??"",o.hostDenomOnTrade=e.hostDenomOnTrade??"",o.hostDenomOnHost=e.hostDenomOnHost??"",o.poolId=void 0!==e.poolId&&null!==e.poolId?BigInt(e.poolId.toString()):BigInt(0),o.maxAllowedSwapLossRate=e.maxAllowedSwapLossRate??"",o.minSwapAmount=e.minSwapAmount??"",o.maxSwapAmount=e.maxSwapAmount??"",o.minTransferAmount=e.minTransferAmount??"",o},fromProtoMsg:e=>MsgCreateTradeRoute.decode(e.value),toProto:e=>MsgCreateTradeRoute.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgCreateTradeRoute",value:MsgCreateTradeRoute.encode(e).finish()})};export const MsgCreateTradeRouteResponse={typeUrl:"/stride.stakeibc.MsgCreateTradeRouteResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgCreateTradeRouteResponse.decode(e.value),toProto:e=>MsgCreateTradeRouteResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgCreateTradeRouteResponse",value:MsgCreateTradeRouteResponse.encode(e).finish()})};export const MsgDeleteTradeRoute={typeUrl:"/stride.stakeibc.MsgDeleteTradeRoute",encode:(e,o=n.create())=>(""!==e.authority&&o.uint32(10).string(e.authority),""!==e.rewardDenom&&o.uint32(18).string(e.rewardDenom),""!==e.hostDenom&&o.uint32(26).string(e.hostDenom),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={authority:"",rewardDenom:"",hostDenom:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.authority=n.string();break;case 2:a.rewardDenom=n.string();break;case 3:a.hostDenom=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({authority:a(e.authority)?String(e.authority):"",rewardDenom:a(e.rewardDenom)?String(e.rewardDenom):"",hostDenom:a(e.hostDenom)?String(e.hostDenom):""}),toJSON(e){const o={};return void 0!==e.authority&&(o.authority=e.authority),void 0!==e.rewardDenom&&(o.rewardDenom=e.rewardDenom),void 0!==e.hostDenom&&(o.hostDenom=e.hostDenom),o},fromPartial(e){const o={authority:"",rewardDenom:"",hostDenom:""};return o.authority=e.authority??"",o.rewardDenom=e.rewardDenom??"",o.hostDenom=e.hostDenom??"",o},fromProtoMsg:e=>MsgDeleteTradeRoute.decode(e.value),toProto:e=>MsgDeleteTradeRoute.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgDeleteTradeRoute",value:MsgDeleteTradeRoute.encode(e).finish()})};export const MsgDeleteTradeRouteResponse={typeUrl:"/stride.stakeibc.MsgDeleteTradeRouteResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgDeleteTradeRouteResponse.decode(e.value),toProto:e=>MsgDeleteTradeRouteResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgDeleteTradeRouteResponse",value:MsgDeleteTradeRouteResponse.encode(e).finish()})};function m(){return{authority:"",rewardDenom:"",hostDenom:"",poolId:BigInt(0),maxAllowedSwapLossRate:"",minSwapAmount:"",maxSwapAmount:"",minTransferAmount:""}}export const MsgUpdateTradeRoute={typeUrl:"/stride.stakeibc.MsgUpdateTradeRoute",encode:(e,o=n.create())=>(""!==e.authority&&o.uint32(10).string(e.authority),""!==e.rewardDenom&&o.uint32(18).string(e.rewardDenom),""!==e.hostDenom&&o.uint32(26).string(e.hostDenom),e.poolId!==BigInt(0)&&o.uint32(32).uint64(e.poolId),""!==e.maxAllowedSwapLossRate&&o.uint32(42).string(e.maxAllowedSwapLossRate),""!==e.minSwapAmount&&o.uint32(50).string(e.minSwapAmount),""!==e.maxSwapAmount&&o.uint32(58).string(e.maxSwapAmount),""!==e.minTransferAmount&&o.uint32(138).string(e.minTransferAmount),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a=m();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.authority=n.string();break;case 2:a.rewardDenom=n.string();break;case 3:a.hostDenom=n.string();break;case 4:a.poolId=n.uint64();break;case 5:a.maxAllowedSwapLossRate=n.string();break;case 6:a.minSwapAmount=n.string();break;case 7:a.maxSwapAmount=n.string();break;case 17:a.minTransferAmount=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({authority:a(e.authority)?String(e.authority):"",rewardDenom:a(e.rewardDenom)?String(e.rewardDenom):"",hostDenom:a(e.hostDenom)?String(e.hostDenom):"",poolId:a(e.poolId)?BigInt(e.poolId.toString()):BigInt(0),maxAllowedSwapLossRate:a(e.maxAllowedSwapLossRate)?String(e.maxAllowedSwapLossRate):"",minSwapAmount:a(e.minSwapAmount)?String(e.minSwapAmount):"",maxSwapAmount:a(e.maxSwapAmount)?String(e.maxSwapAmount):"",minTransferAmount:a(e.minTransferAmount)?String(e.minTransferAmount):""}),toJSON(e){const o={};return void 0!==e.authority&&(o.authority=e.authority),void 0!==e.rewardDenom&&(o.rewardDenom=e.rewardDenom),void 0!==e.hostDenom&&(o.hostDenom=e.hostDenom),void 0!==e.poolId&&(o.poolId=(e.poolId||BigInt(0)).toString()),void 0!==e.maxAllowedSwapLossRate&&(o.maxAllowedSwapLossRate=e.maxAllowedSwapLossRate),void 0!==e.minSwapAmount&&(o.minSwapAmount=e.minSwapAmount),void 0!==e.maxSwapAmount&&(o.maxSwapAmount=e.maxSwapAmount),void 0!==e.minTransferAmount&&(o.minTransferAmount=e.minTransferAmount),o},fromPartial(e){const o=m();return o.authority=e.authority??"",o.rewardDenom=e.rewardDenom??"",o.hostDenom=e.hostDenom??"",o.poolId=void 0!==e.poolId&&null!==e.poolId?BigInt(e.poolId.toString()):BigInt(0),o.maxAllowedSwapLossRate=e.maxAllowedSwapLossRate??"",o.minSwapAmount=e.minSwapAmount??"",o.maxSwapAmount=e.maxSwapAmount??"",o.minTransferAmount=e.minTransferAmount??"",o},fromProtoMsg:e=>MsgUpdateTradeRoute.decode(e.value),toProto:e=>MsgUpdateTradeRoute.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateTradeRoute",value:MsgUpdateTradeRoute.encode(e).finish()})};export const MsgUpdateTradeRouteResponse={typeUrl:"/stride.stakeibc.MsgUpdateTradeRouteResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgUpdateTradeRouteResponse.decode(e.value),toProto:e=>MsgUpdateTradeRouteResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateTradeRouteResponse",value:MsgUpdateTradeRouteResponse.encode(e).finish()})};export const MsgSetCommunityPoolRebate={typeUrl:"/stride.stakeibc.MsgSetCommunityPoolRebate",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),""!==e.rebateRate&&o.uint32(26).string(r.fromUserInput(e.rebateRate,18).atomics),""!==e.liquidStakedStTokenAmount&&o.uint32(34).string(e.liquidStakedStTokenAmount),o),decode(e,o){const n=e instanceof t?e:new t(e);let a=void 0===o?n.len:n.pos+o;const s={creator:"",chainId:"",rebateRate:"",liquidStakedStTokenAmount:""};for(;n.pos<a;){const e=n.uint32();switch(e>>>3){case 1:s.creator=n.string();break;case 2:s.chainId=n.string();break;case 3:s.rebateRate=r.fromAtomics(n.string(),18).toString();break;case 4:s.liquidStakedStTokenAmount=n.string();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):"",rebateRate:a(e.rebateRate)?String(e.rebateRate):"",liquidStakedStTokenAmount:a(e.liquidStakedStTokenAmount)?String(e.liquidStakedStTokenAmount):""}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.rebateRate&&(o.rebateRate=e.rebateRate),void 0!==e.liquidStakedStTokenAmount&&(o.liquidStakedStTokenAmount=e.liquidStakedStTokenAmount),o},fromPartial(e){const o={creator:"",chainId:"",rebateRate:"",liquidStakedStTokenAmount:""};return o.creator=e.creator??"",o.chainId=e.chainId??"",o.rebateRate=e.rebateRate??"",o.liquidStakedStTokenAmount=e.liquidStakedStTokenAmount??"",o},fromProtoMsg:e=>MsgSetCommunityPoolRebate.decode(e.value),toProto:e=>MsgSetCommunityPoolRebate.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgSetCommunityPoolRebate",value:MsgSetCommunityPoolRebate.encode(e).finish()})};export const MsgSetCommunityPoolRebateResponse={typeUrl:"/stride.stakeibc.MsgSetCommunityPoolRebateResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgSetCommunityPoolRebateResponse.decode(e.value),toProto:e=>MsgSetCommunityPoolRebateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgSetCommunityPoolRebateResponse",value:MsgSetCommunityPoolRebateResponse.encode(e).finish()})};export const MsgToggleTradeController={typeUrl:"/stride.stakeibc.MsgToggleTradeController",encode:(e,o=n.create())=>(""!==e.creator&&o.uint32(10).string(e.creator),""!==e.chainId&&o.uint32(18).string(e.chainId),0!==e.permissionChange&&o.uint32(24).int32(e.permissionChange),""!==e.address&&o.uint32(34).string(e.address),!0===e.legacy&&o.uint32(40).bool(e.legacy),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={creator:"",chainId:"",permissionChange:0,address:"",legacy:!1};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.creator=n.string();break;case 2:a.chainId=n.string();break;case 3:a.permissionChange=n.int32();break;case 4:a.address=n.string();break;case 5:a.legacy=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({creator:a(e.creator)?String(e.creator):"",chainId:a(e.chainId)?String(e.chainId):"",permissionChange:a(e.permissionChange)?authzPermissionChangeFromJSON(e.permissionChange):-1,address:a(e.address)?String(e.address):"",legacy:!!a(e.legacy)&&Boolean(e.legacy)}),toJSON(e){const o={};return void 0!==e.creator&&(o.creator=e.creator),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.permissionChange&&(o.permissionChange=authzPermissionChangeToJSON(e.permissionChange)),void 0!==e.address&&(o.address=e.address),void 0!==e.legacy&&(o.legacy=e.legacy),o},fromPartial(e){const o={creator:"",chainId:"",permissionChange:0,address:"",legacy:!1};return o.creator=e.creator??"",o.chainId=e.chainId??"",o.permissionChange=e.permissionChange??0,o.address=e.address??"",o.legacy=e.legacy??!1,o},fromProtoMsg:e=>MsgToggleTradeController.decode(e.value),toProto:e=>MsgToggleTradeController.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgToggleTradeController",value:MsgToggleTradeController.encode(e).finish()})};export const MsgToggleTradeControllerResponse={typeUrl:"/stride.stakeibc.MsgToggleTradeControllerResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgToggleTradeControllerResponse.decode(e.value),toProto:e=>MsgToggleTradeControllerResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgToggleTradeControllerResponse",value:MsgToggleTradeControllerResponse.encode(e).finish()})};function u(){return{authority:"",chainId:"",maxMessagesPerIcaTx:BigInt(0)}}export const MsgUpdateHostZoneParams={typeUrl:"/stride.stakeibc.MsgUpdateHostZoneParams",encode:(e,o=n.create())=>(""!==e.authority&&o.uint32(10).string(e.authority),""!==e.chainId&&o.uint32(18).string(e.chainId),e.maxMessagesPerIcaTx!==BigInt(0)&&o.uint32(24).uint64(e.maxMessagesPerIcaTx),o),decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a=u();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.authority=n.string();break;case 2:a.chainId=n.string();break;case 3:a.maxMessagesPerIcaTx=n.uint64();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({authority:a(e.authority)?String(e.authority):"",chainId:a(e.chainId)?String(e.chainId):"",maxMessagesPerIcaTx:a(e.maxMessagesPerIcaTx)?BigInt(e.maxMessagesPerIcaTx.toString()):BigInt(0)}),toJSON(e){const o={};return void 0!==e.authority&&(o.authority=e.authority),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.maxMessagesPerIcaTx&&(o.maxMessagesPerIcaTx=(e.maxMessagesPerIcaTx||BigInt(0)).toString()),o},fromPartial(e){const o=u();return o.authority=e.authority??"",o.chainId=e.chainId??"",o.maxMessagesPerIcaTx=void 0!==e.maxMessagesPerIcaTx&&null!==e.maxMessagesPerIcaTx?BigInt(e.maxMessagesPerIcaTx.toString()):BigInt(0),o},fromProtoMsg:e=>MsgUpdateHostZoneParams.decode(e.value),toProto:e=>MsgUpdateHostZoneParams.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateHostZoneParams",value:MsgUpdateHostZoneParams.encode(e).finish()})};export const MsgUpdateHostZoneParamsResponse={typeUrl:"/stride.stakeibc.MsgUpdateHostZoneParamsResponse",encode:(e,o=n.create())=>o,decode(e,o){const n=e instanceof t?e:new t(e);let r=void 0===o?n.len:n.pos+o;const a={};for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return a},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgUpdateHostZoneParamsResponse.decode(e.value),toProto:e=>MsgUpdateHostZoneParamsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.MsgUpdateHostZoneParamsResponse",value:MsgUpdateHostZoneParamsResponse.encode(e).finish()})};