@burnt-labs/xion-types 0.0.1-test.1762962136

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 (554) hide show
  1. package/jest.config.js +18 -0
  2. package/package.json +56 -0
  3. package/scripts/aminos.ts +29 -0
  4. package/scripts/codegen.ts +94 -0
  5. package/scripts/download-protos.ts +248 -0
  6. package/telescope.config.json +84 -0
  7. package/tsconfig.esm.json +9 -0
  8. package/tsconfig.json +18 -0
  9. package/types/abstractaccount/bundle.ts +35 -0
  10. package/types/abstractaccount/client.ts +48 -0
  11. package/types/abstractaccount/lcd.ts +130 -0
  12. package/types/abstractaccount/rpc.query.ts +93 -0
  13. package/types/abstractaccount/rpc.tx.ts +74 -0
  14. package/types/abstractaccount/v1/account.ts +250 -0
  15. package/types/abstractaccount/v1/events.ts +135 -0
  16. package/types/abstractaccount/v1/genesis.ts +106 -0
  17. package/types/abstractaccount/v1/params.ts +192 -0
  18. package/types/abstractaccount/v1/query.lcd.ts +19 -0
  19. package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
  20. package/types/abstractaccount/v1/query.ts +160 -0
  21. package/types/abstractaccount/v1/tx.amino.ts +14 -0
  22. package/types/abstractaccount/v1/tx.registry.ts +53 -0
  23. package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
  24. package/types/abstractaccount/v1/tx.ts +454 -0
  25. package/types/amino/amino.ts +1 -0
  26. package/types/amino/bundle.ts +5 -0
  27. package/types/binary.ts +535 -0
  28. package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
  29. package/types/cosmos/app/v1alpha1/config.ts +437 -0
  30. package/types/cosmos/app/v1alpha1/module.ts +466 -0
  31. package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
  32. package/types/cosmos/app/v1alpha1/query.ts +176 -0
  33. package/types/cosmos/auth/module/v1/module.ts +288 -0
  34. package/types/cosmos/auth/v1beta1/auth.ts +562 -0
  35. package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
  36. package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
  37. package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
  38. package/types/cosmos/auth/v1beta1/query.ts +2005 -0
  39. package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
  40. package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
  41. package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
  42. package/types/cosmos/auth/v1beta1/tx.ts +208 -0
  43. package/types/cosmos/authz/module/v1/module.ts +77 -0
  44. package/types/cosmos/authz/v1beta1/authz.ts +599 -0
  45. package/types/cosmos/authz/v1beta1/event.ts +274 -0
  46. package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
  47. package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
  48. package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
  49. package/types/cosmos/authz/v1beta1/query.ts +734 -0
  50. package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
  51. package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
  52. package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
  53. package/types/cosmos/authz/v1beta1/tx.ts +666 -0
  54. package/types/cosmos/autocli/v1/options.ts +1317 -0
  55. package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
  56. package/types/cosmos/autocli/v1/query.ts +298 -0
  57. package/types/cosmos/bank/module/v1/module.ts +156 -0
  58. package/types/cosmos/bank/v1beta1/authz.ts +134 -0
  59. package/types/cosmos/bank/v1beta1/bank.ts +984 -0
  60. package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
  61. package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
  62. package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
  63. package/types/cosmos/bank/v1beta1/query.ts +3051 -0
  64. package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
  65. package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
  66. package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
  67. package/types/cosmos/bank/v1beta1/tx.ts +845 -0
  68. package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
  69. package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
  70. package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
  71. package/types/cosmos/base/node/v1beta1/query.ts +467 -0
  72. package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
  73. package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
  74. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
  75. package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
  76. package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
  77. package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
  78. package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
  79. package/types/cosmos/base/v1beta1/coin.ts +449 -0
  80. package/types/cosmos/benchmark/module/v1/module.ts +384 -0
  81. package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
  82. package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
  83. package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
  84. package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
  85. package/types/cosmos/benchmark/v1/tx.ts +224 -0
  86. package/types/cosmos/bundle.ts +807 -0
  87. package/types/cosmos/circuit/module/v1/module.ts +100 -0
  88. package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
  89. package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
  90. package/types/cosmos/circuit/v1/query.ts +576 -0
  91. package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
  92. package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
  93. package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
  94. package/types/cosmos/circuit/v1/tx.ts +685 -0
  95. package/types/cosmos/circuit/v1/types.ts +419 -0
  96. package/types/cosmos/client.ts +100 -0
  97. package/types/cosmos/consensus/module/v1/module.ts +100 -0
  98. package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
  99. package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
  100. package/types/cosmos/consensus/v1/query.ts +182 -0
  101. package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
  102. package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
  103. package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
  104. package/types/cosmos/consensus/v1/tx.ts +257 -0
  105. package/types/cosmos/counter/module/v1/module.ts +100 -0
  106. package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
  107. package/types/cosmos/counter/v1/query.ts +171 -0
  108. package/types/cosmos/counter/v1/tx.amino.ts +9 -0
  109. package/types/cosmos/counter/v1/tx.registry.ts +35 -0
  110. package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
  111. package/types/cosmos/counter/v1/tx.ts +217 -0
  112. package/types/cosmos/crisis/module/v1/module.ts +119 -0
  113. package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
  114. package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
  115. package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
  116. package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
  117. package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
  118. package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
  119. package/types/cosmos/crypto/ed25519/keys.ts +214 -0
  120. package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
  121. package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
  122. package/types/cosmos/crypto/multisig/keys.ts +124 -0
  123. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
  124. package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
  125. package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
  126. package/types/cosmos/distribution/module/v1/module.ts +115 -0
  127. package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
  128. package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
  129. package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
  130. package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
  131. package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
  132. package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
  133. package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
  134. package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
  135. package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
  136. package/types/cosmos/epochs/module/v1/module.ts +77 -0
  137. package/types/cosmos/epochs/v1beta1/events.ts +205 -0
  138. package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
  139. package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
  140. package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
  141. package/types/cosmos/epochs/v1beta1/query.ts +390 -0
  142. package/types/cosmos/evidence/module/v1/module.ts +77 -0
  143. package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
  144. package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
  145. package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
  146. package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
  147. package/types/cosmos/evidence/v1beta1/query.ts +458 -0
  148. package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
  149. package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
  150. package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
  151. package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
  152. package/types/cosmos/feegrant/module/v1/module.ts +77 -0
  153. package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
  154. package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
  155. package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
  156. package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
  157. package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
  158. package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
  159. package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
  160. package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
  161. package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
  162. package/types/cosmos/genutil/module/v1/module.ts +77 -0
  163. package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
  164. package/types/cosmos/gov/module/v1/module.ts +123 -0
  165. package/types/cosmos/gov/v1/genesis.ts +288 -0
  166. package/types/cosmos/gov/v1/gov.ts +1889 -0
  167. package/types/cosmos/gov/v1/query.lcd.ts +95 -0
  168. package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
  169. package/types/cosmos/gov/v1/query.ts +2026 -0
  170. package/types/cosmos/gov/v1/tx.amino.ts +39 -0
  171. package/types/cosmos/gov/v1/tx.registry.ts +143 -0
  172. package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
  173. package/types/cosmos/gov/v1/tx.ts +1911 -0
  174. package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
  175. package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
  176. package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
  177. package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
  178. package/types/cosmos/gov/v1beta1/query.ts +1813 -0
  179. package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
  180. package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
  181. package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
  182. package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
  183. package/types/cosmos/group/module/v1/module.ts +128 -0
  184. package/types/cosmos/group/v1/events.ts +1195 -0
  185. package/types/cosmos/group/v1/genesis.ts +256 -0
  186. package/types/cosmos/group/v1/query.lcd.ts +158 -0
  187. package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
  188. package/types/cosmos/group/v1/query.ts +3108 -0
  189. package/types/cosmos/group/v1/tx.amino.ts +74 -0
  190. package/types/cosmos/group/v1/tx.registry.ts +269 -0
  191. package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
  192. package/types/cosmos/group/v1/tx.ts +3353 -0
  193. package/types/cosmos/group/v1/types.ts +2248 -0
  194. package/types/cosmos/ics23/v1/proofs.ts +2167 -0
  195. package/types/cosmos/lcd.ts +125 -0
  196. package/types/cosmos/mint/module/v1/module.ts +115 -0
  197. package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
  198. package/types/cosmos/mint/v1beta1/mint.ts +313 -0
  199. package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
  200. package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
  201. package/types/cosmos/mint/v1beta1/query.ts +544 -0
  202. package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
  203. package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
  204. package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
  205. package/types/cosmos/mint/v1beta1/tx.ts +208 -0
  206. package/types/cosmos/msg/textual/v1/textual.ts +1 -0
  207. package/types/cosmos/msg/v1/msg.ts +1 -0
  208. package/types/cosmos/nft/module/v1/module.ts +77 -0
  209. package/types/cosmos/nft/v1beta1/event.ts +429 -0
  210. package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
  211. package/types/cosmos/nft/v1beta1/nft.ts +389 -0
  212. package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
  213. package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
  214. package/types/cosmos/nft/v1beta1/query.ts +1513 -0
  215. package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
  216. package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
  217. package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
  218. package/types/cosmos/nft/v1beta1/tx.ts +232 -0
  219. package/types/cosmos/params/module/v1/module.ts +77 -0
  220. package/types/cosmos/params/v1beta1/params.ts +262 -0
  221. package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
  222. package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
  223. package/types/cosmos/params/v1beta1/query.ts +521 -0
  224. package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
  225. package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
  226. package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
  227. package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
  228. package/types/cosmos/protocolpool/v1/query.ts +761 -0
  229. package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
  230. package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
  231. package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
  232. package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
  233. package/types/cosmos/protocolpool/v1/types.ts +268 -0
  234. package/types/cosmos/query/v1/query.ts +1 -0
  235. package/types/cosmos/reflection/v1/reflection.ts +178 -0
  236. package/types/cosmos/rpc.query.ts +90 -0
  237. package/types/cosmos/rpc.tx.ts +71 -0
  238. package/types/cosmos/slashing/module/v1/module.ts +100 -0
  239. package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
  240. package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
  241. package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
  242. package/types/cosmos/slashing/v1beta1/query.ts +606 -0
  243. package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
  244. package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
  245. package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
  246. package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
  247. package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
  248. package/types/cosmos/staking/module/v1/module.ts +165 -0
  249. package/types/cosmos/staking/v1beta1/authz.ts +321 -0
  250. package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
  251. package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
  252. package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
  253. package/types/cosmos/staking/v1beta1/query.ts +3187 -0
  254. package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
  255. package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
  256. package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
  257. package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
  258. package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
  259. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
  260. package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
  261. package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
  262. package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
  263. package/types/cosmos/store/v1beta1/listening.ts +296 -0
  264. package/types/cosmos/tx/config/v1/config.ts +127 -0
  265. package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
  266. package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
  267. package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
  268. package/types/cosmos/tx/v1beta1/service.ts +2319 -0
  269. package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
  270. package/types/cosmos/upgrade/module/v1/module.ts +100 -0
  271. package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
  272. package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
  273. package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
  274. package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
  275. package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
  276. package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
  277. package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
  278. package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
  279. package/types/cosmos/vesting/module/v1/module.ts +77 -0
  280. package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
  281. package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
  282. package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
  283. package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
  284. package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
  285. package/types/cosmos_proto/bundle.ts +5 -0
  286. package/types/cosmos_proto/cosmos.ts +355 -0
  287. package/types/cosmwasm/bundle.ts +39 -0
  288. package/types/cosmwasm/client.ts +48 -0
  289. package/types/cosmwasm/lcd.ts +132 -0
  290. package/types/cosmwasm/rpc.query.ts +95 -0
  291. package/types/cosmwasm/rpc.tx.ts +76 -0
  292. package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
  293. package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
  294. package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
  295. package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
  296. package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
  297. package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
  298. package/types/cosmwasm/wasm/v1/query.ts +3339 -0
  299. package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
  300. package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
  301. package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
  302. package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
  303. package/types/cosmwasm/wasm/v1/types.ts +1193 -0
  304. package/types/gogoproto/bundle.ts +5 -0
  305. package/types/gogoproto/gogo.ts +1 -0
  306. package/types/google/api/annotations.ts +1 -0
  307. package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
  308. package/types/google/api/apikeys/v2/resources.ts +1268 -0
  309. package/types/google/api/auth.ts +1175 -0
  310. package/types/google/api/backend.ts +691 -0
  311. package/types/google/api/billing.ts +333 -0
  312. package/types/google/api/client.ts +3100 -0
  313. package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
  314. package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
  315. package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
  316. package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
  317. package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
  318. package/types/google/api/config_change.ts +385 -0
  319. package/types/google/api/consumer.ts +362 -0
  320. package/types/google/api/context.ts +418 -0
  321. package/types/google/api/control.ts +141 -0
  322. package/types/google/api/distribution.ts +1253 -0
  323. package/types/google/api/documentation.ts +738 -0
  324. package/types/google/api/endpoint.ts +245 -0
  325. package/types/google/api/error_reason.ts +816 -0
  326. package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
  327. package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
  328. package/types/google/api/expr/v1alpha1/eval.ts +675 -0
  329. package/types/google/api/expr/v1alpha1/explain.ts +257 -0
  330. package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
  331. package/types/google/api/expr/v1alpha1/value.ts +771 -0
  332. package/types/google/api/expr/v1beta1/decl.ts +563 -0
  333. package/types/google/api/expr/v1beta1/eval.ts +758 -0
  334. package/types/google/api/expr/v1beta1/expr.ts +1750 -0
  335. package/types/google/api/expr/v1beta1/source.ts +446 -0
  336. package/types/google/api/expr/v1beta1/value.ts +771 -0
  337. package/types/google/api/field_behavior.ts +136 -0
  338. package/types/google/api/field_info.ts +319 -0
  339. package/types/google/api/http.ts +1362 -0
  340. package/types/google/api/httpbody.ts +270 -0
  341. package/types/google/api/label.ts +174 -0
  342. package/types/google/api/launch_stage.ts +112 -0
  343. package/types/google/api/log.ts +201 -0
  344. package/types/google/api/logging.ts +355 -0
  345. package/types/google/api/metric.ts +1174 -0
  346. package/types/google/api/monitored_resource.ts +841 -0
  347. package/types/google/api/monitoring.ts +430 -0
  348. package/types/google/api/policy.ts +314 -0
  349. package/types/google/api/quota.ts +1040 -0
  350. package/types/google/api/resource.ts +769 -0
  351. package/types/google/api/routing.ts +1405 -0
  352. package/types/google/api/service.ts +790 -0
  353. package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
  354. package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
  355. package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
  356. package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
  357. package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
  358. package/types/google/api/servicecontrol/v1/operation.ts +544 -0
  359. package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
  360. package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
  361. package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
  362. package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
  363. package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
  364. package/types/google/api/serviceusage/v1/resources.ts +629 -0
  365. package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
  366. package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
  367. package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
  368. package/types/google/api/source_info.ts +97 -0
  369. package/types/google/api/system_parameter.ts +461 -0
  370. package/types/google/api/usage.ts +404 -0
  371. package/types/google/api/visibility.ts +328 -0
  372. package/types/google/bundle.ts +115 -0
  373. package/types/google/logging/type/log_severity.ts +104 -0
  374. package/types/google/longrunning/operations.ts +1153 -0
  375. package/types/google/protobuf/any.ts +424 -0
  376. package/types/google/protobuf/api.ts +942 -0
  377. package/types/google/protobuf/descriptor.ts +7801 -0
  378. package/types/google/protobuf/duration.ts +284 -0
  379. package/types/google/protobuf/empty.ts +93 -0
  380. package/types/google/protobuf/field_mask.ts +694 -0
  381. package/types/google/protobuf/source_context.ts +105 -0
  382. package/types/google/protobuf/struct.ts +584 -0
  383. package/types/google/protobuf/timestamp.ts +373 -0
  384. package/types/google/protobuf/type.ts +1279 -0
  385. package/types/google/protobuf/wrappers.ts +1002 -0
  386. package/types/google/rpc/code.ts +286 -0
  387. package/types/google/rpc/context/attribute_context.ts +2517 -0
  388. package/types/google/rpc/context/audit_context.ts +188 -0
  389. package/types/google/rpc/error_details.ts +2467 -0
  390. package/types/google/rpc/http.ts +424 -0
  391. package/types/google/rpc/status.ts +173 -0
  392. package/types/helpers.ts +259 -0
  393. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
  394. package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
  395. package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
  396. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  397. package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
  398. package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
  399. package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
  400. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
  401. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
  402. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
  403. package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
  404. package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
  405. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
  406. package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
  407. package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
  408. package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
  409. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
  410. package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
  411. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
  412. package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
  413. package/types/ibc/applications/transfer/v1/authz.ts +297 -0
  414. package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
  415. package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
  416. package/types/ibc/applications/transfer/v1/packet.ts +186 -0
  417. package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
  418. package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
  419. package/types/ibc/applications/transfer/v1/query.ts +1233 -0
  420. package/types/ibc/applications/transfer/v1/token.ts +347 -0
  421. package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
  422. package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
  423. package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
  424. package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
  425. package/types/ibc/applications/transfer/v1/tx.ts +579 -0
  426. package/types/ibc/bundle.ts +265 -0
  427. package/types/ibc/client.ts +72 -0
  428. package/types/ibc/core/channel/v1/channel.ts +1455 -0
  429. package/types/ibc/core/channel/v1/genesis.ts +351 -0
  430. package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
  431. package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
  432. package/types/ibc/core/channel/v1/query.ts +3943 -0
  433. package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
  434. package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
  435. package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
  436. package/types/ibc/core/channel/v1/tx.ts +2558 -0
  437. package/types/ibc/core/channel/v2/genesis.ts +433 -0
  438. package/types/ibc/core/channel/v2/packet.ts +640 -0
  439. package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
  440. package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
  441. package/types/ibc/core/channel/v2/query.ts +2075 -0
  442. package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
  443. package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
  444. package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
  445. package/types/ibc/core/channel/v2/tx.ts +1003 -0
  446. package/types/ibc/core/client/v1/client.ts +636 -0
  447. package/types/ibc/core/client/v1/genesis.ts +448 -0
  448. package/types/ibc/core/client/v1/query.lcd.ts +102 -0
  449. package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
  450. package/types/ibc/core/client/v1/query.ts +2588 -0
  451. package/types/ibc/core/client/v1/tx.amino.ts +44 -0
  452. package/types/ibc/core/client/v1/tx.registry.ts +161 -0
  453. package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
  454. package/types/ibc/core/client/v1/tx.ts +1796 -0
  455. package/types/ibc/core/client/v2/config.ts +115 -0
  456. package/types/ibc/core/client/v2/counterparty.ts +122 -0
  457. package/types/ibc/core/client/v2/genesis.ts +220 -0
  458. package/types/ibc/core/client/v2/query.lcd.ts +25 -0
  459. package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
  460. package/types/ibc/core/client/v2/query.ts +402 -0
  461. package/types/ibc/core/client/v2/tx.amino.ts +14 -0
  462. package/types/ibc/core/client/v2/tx.registry.ts +53 -0
  463. package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
  464. package/types/ibc/core/client/v2/tx.ts +453 -0
  465. package/types/ibc/core/commitment/v1/commitment.ts +321 -0
  466. package/types/ibc/core/commitment/v2/commitment.ts +193 -0
  467. package/types/ibc/core/connection/v1/connection.ts +1056 -0
  468. package/types/ibc/core/connection/v1/genesis.ts +150 -0
  469. package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
  470. package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
  471. package/types/ibc/core/connection/v1/query.ts +1472 -0
  472. package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
  473. package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
  474. package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
  475. package/types/ibc/core/connection/v1/tx.ts +1456 -0
  476. package/types/ibc/core/types/v1/genesis.ts +191 -0
  477. package/types/ibc/lcd.ts +176 -0
  478. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
  479. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
  480. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
  481. package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
  482. package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
  483. package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
  484. package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
  485. package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
  486. package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
  487. package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
  488. package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
  489. package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
  490. package/types/ibc/rpc.query.ts +123 -0
  491. package/types/ibc/rpc.tx.ts +104 -0
  492. package/types/index.ts +25 -0
  493. package/types/tendermint/abci/types.ts +6565 -0
  494. package/types/tendermint/bundle.ts +33 -0
  495. package/types/tendermint/crypto/keys.ts +106 -0
  496. package/types/tendermint/crypto/proof.ts +576 -0
  497. package/types/tendermint/p2p/types.ts +523 -0
  498. package/types/tendermint/types/block.ts +134 -0
  499. package/types/tendermint/types/evidence.ts +491 -0
  500. package/types/tendermint/types/params.ts +839 -0
  501. package/types/tendermint/types/types.ts +2266 -0
  502. package/types/tendermint/types/validator.ts +399 -0
  503. package/types/tendermint/version/types.ts +228 -0
  504. package/types/utf8.ts +149 -0
  505. package/types/varint.ts +489 -0
  506. package/types/xion/bundle.ts +117 -0
  507. package/types/xion/client.ts +57 -0
  508. package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
  509. package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
  510. package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
  511. package/types/xion/feeabs/v1beta1/params.ts +189 -0
  512. package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
  513. package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
  514. package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
  515. package/types/xion/feeabs/v1beta1/query.ts +732 -0
  516. package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
  517. package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
  518. package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
  519. package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
  520. package/types/xion/globalfee/v1/genesis.ts +249 -0
  521. package/types/xion/globalfee/v1/query.lcd.ts +19 -0
  522. package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
  523. package/types/xion/globalfee/v1/query.ts +178 -0
  524. package/types/xion/jwk/v1/audience.ts +224 -0
  525. package/types/xion/jwk/v1/genesis.ts +117 -0
  526. package/types/xion/jwk/v1/params.ts +113 -0
  527. package/types/xion/jwk/v1/query.lcd.ts +52 -0
  528. package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
  529. package/types/xion/jwk/v1/query.ts +1697 -0
  530. package/types/xion/jwk/v1/tx.amino.ts +29 -0
  531. package/types/xion/jwk/v1/tx.registry.ts +107 -0
  532. package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
  533. package/types/xion/jwk/v1/tx.ts +1040 -0
  534. package/types/xion/lcd.ts +147 -0
  535. package/types/xion/mint/v1/event.ts +216 -0
  536. package/types/xion/mint/v1/genesis.ts +114 -0
  537. package/types/xion/mint/v1/mint.ts +307 -0
  538. package/types/xion/mint/v1/query.lcd.ts +31 -0
  539. package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
  540. package/types/xion/mint/v1/query.ts +508 -0
  541. package/types/xion/mint/v1/tx.amino.ts +9 -0
  542. package/types/xion/mint/v1/tx.registry.ts +35 -0
  543. package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
  544. package/types/xion/mint/v1/tx.ts +222 -0
  545. package/types/xion/rpc.query.ts +105 -0
  546. package/types/xion/rpc.tx.ts +83 -0
  547. package/types/xion/v1/feegrant.ts +457 -0
  548. package/types/xion/v1/genesis.ts +116 -0
  549. package/types/xion/v1/query.rpc.Query.ts +64 -0
  550. package/types/xion/v1/query.ts +862 -0
  551. package/types/xion/v1/tx.amino.ts +24 -0
  552. package/types/xion/v1/tx.registry.ts +89 -0
  553. package/types/xion/v1/tx.rpc.msg.ts +57 -0
  554. package/types/xion/v1/tx.ts +793 -0
@@ -0,0 +1,1911 @@
1
+ //@ts-nocheck
2
+ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
3
+ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
4
+ import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, Params, ParamsAmino, ParamsSDKType } from "./gov";
5
+ import { Timestamp } from "../../../google/protobuf/timestamp";
6
+ import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalSDKType, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg, CommunityPoolSpendProposalWithDepositSDKType } from "../../distribution/v1beta1/distribution";
7
+ import { TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "../v1beta1/gov";
8
+ import { ParameterChangeProposal, ParameterChangeProposalProtoMsg, ParameterChangeProposalSDKType } from "../../params/v1beta1/params";
9
+ import { SoftwareUpgradeProposal, SoftwareUpgradeProposalProtoMsg, SoftwareUpgradeProposalSDKType, CancelSoftwareUpgradeProposal, CancelSoftwareUpgradeProposalProtoMsg, CancelSoftwareUpgradeProposalSDKType } from "../../upgrade/v1beta1/upgrade";
10
+ import { StoreCodeProposal, StoreCodeProposalProtoMsg, StoreCodeProposalSDKType, InstantiateContractProposal, InstantiateContractProposalProtoMsg, InstantiateContractProposalSDKType, InstantiateContract2Proposal, InstantiateContract2ProposalProtoMsg, InstantiateContract2ProposalSDKType, MigrateContractProposal, MigrateContractProposalProtoMsg, MigrateContractProposalSDKType, SudoContractProposal, SudoContractProposalProtoMsg, SudoContractProposalSDKType, ExecuteContractProposal, ExecuteContractProposalProtoMsg, ExecuteContractProposalSDKType, UpdateAdminProposal, UpdateAdminProposalProtoMsg, UpdateAdminProposalSDKType, ClearAdminProposal, ClearAdminProposalProtoMsg, ClearAdminProposalSDKType, PinCodesProposal, PinCodesProposalProtoMsg, PinCodesProposalSDKType, UnpinCodesProposal, UnpinCodesProposalProtoMsg, UnpinCodesProposalSDKType, UpdateInstantiateConfigProposal, UpdateInstantiateConfigProposalProtoMsg, UpdateInstantiateConfigProposalSDKType, StoreAndInstantiateContractProposal, StoreAndInstantiateContractProposalProtoMsg, StoreAndInstantiateContractProposalSDKType } from "../../../cosmwasm/wasm/v1/proposal_legacy";
11
+ import { BinaryReader, BinaryWriter } from "../../../binary";
12
+ import { toTimestamp, fromTimestamp } from "../../../helpers";
13
+ /**
14
+ * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
15
+ * proposal Content.
16
+ */
17
+ export interface MsgSubmitProposal {
18
+ /** messages are the arbitrary messages to be executed if proposal passes. */
19
+ messages: Any[];
20
+ /** initial_deposit is the deposit value that must be paid at proposal submission. */
21
+ initialDeposit: Coin[];
22
+ /** proposer is the account address of the proposer. */
23
+ proposer: string;
24
+ /** metadata is any arbitrary metadata attached to the proposal. */
25
+ metadata: string;
26
+ /** title is the title of the proposal. */
27
+ title: string;
28
+ /** summary is the summary of the proposal */
29
+ summary: string;
30
+ /** expedited defines if the proposal is expedited or not */
31
+ expedited: boolean;
32
+ }
33
+ export interface MsgSubmitProposalProtoMsg {
34
+ typeUrl: "/cosmos.gov.v1.MsgSubmitProposal";
35
+ value: Uint8Array;
36
+ }
37
+ /**
38
+ * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
39
+ * proposal Content.
40
+ * @name MsgSubmitProposalAmino
41
+ * @package cosmos.gov.v1
42
+ * @see proto type: cosmos.gov.v1.MsgSubmitProposal
43
+ */
44
+ export interface MsgSubmitProposalAmino {
45
+ /**
46
+ * messages are the arbitrary messages to be executed if proposal passes.
47
+ */
48
+ messages?: AnyAmino[];
49
+ /**
50
+ * initial_deposit is the deposit value that must be paid at proposal submission.
51
+ */
52
+ initial_deposit: CoinAmino[];
53
+ /**
54
+ * proposer is the account address of the proposer.
55
+ */
56
+ proposer?: string;
57
+ /**
58
+ * metadata is any arbitrary metadata attached to the proposal.
59
+ */
60
+ metadata?: string;
61
+ /**
62
+ * title is the title of the proposal.
63
+ */
64
+ title?: string;
65
+ /**
66
+ * summary is the summary of the proposal
67
+ */
68
+ summary?: string;
69
+ /**
70
+ * expedited defines if the proposal is expedited or not
71
+ */
72
+ expedited?: boolean;
73
+ }
74
+ export interface MsgSubmitProposalAminoMsg {
75
+ type: "cosmos-sdk/v1/MsgSubmitProposal";
76
+ value: MsgSubmitProposalAmino;
77
+ }
78
+ /**
79
+ * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
80
+ * proposal Content.
81
+ */
82
+ export interface MsgSubmitProposalSDKType {
83
+ messages: AnySDKType[];
84
+ initial_deposit: CoinSDKType[];
85
+ proposer: string;
86
+ metadata: string;
87
+ title: string;
88
+ summary: string;
89
+ expedited: boolean;
90
+ }
91
+ /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
92
+ export interface MsgSubmitProposalResponse {
93
+ /** proposal_id defines the unique id of the proposal. */
94
+ proposalId: bigint;
95
+ }
96
+ export interface MsgSubmitProposalResponseProtoMsg {
97
+ typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse";
98
+ value: Uint8Array;
99
+ }
100
+ /**
101
+ * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
102
+ * @name MsgSubmitProposalResponseAmino
103
+ * @package cosmos.gov.v1
104
+ * @see proto type: cosmos.gov.v1.MsgSubmitProposalResponse
105
+ */
106
+ export interface MsgSubmitProposalResponseAmino {
107
+ /**
108
+ * proposal_id defines the unique id of the proposal.
109
+ */
110
+ proposal_id?: string;
111
+ }
112
+ export interface MsgSubmitProposalResponseAminoMsg {
113
+ type: "cosmos-sdk/v1/MsgSubmitProposalResponse";
114
+ value: MsgSubmitProposalResponseAmino;
115
+ }
116
+ /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
117
+ export interface MsgSubmitProposalResponseSDKType {
118
+ proposal_id: bigint;
119
+ }
120
+ /**
121
+ * MsgExecLegacyContent is used to wrap the legacy content field into a message.
122
+ * This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
123
+ */
124
+ export interface MsgExecLegacyContent {
125
+ /** content is the proposal's content. */
126
+ content?: CommunityPoolSpendProposal | CommunityPoolSpendProposalWithDeposit | TextProposal | ParameterChangeProposal | SoftwareUpgradeProposal | CancelSoftwareUpgradeProposal | StoreCodeProposal | InstantiateContractProposal | InstantiateContract2Proposal | MigrateContractProposal | SudoContractProposal | ExecuteContractProposal | UpdateAdminProposal | ClearAdminProposal | PinCodesProposal | UnpinCodesProposal | UpdateInstantiateConfigProposal | StoreAndInstantiateContractProposal | Any | undefined;
127
+ /** authority must be the gov module address. */
128
+ authority: string;
129
+ }
130
+ export interface MsgExecLegacyContentProtoMsg {
131
+ typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent";
132
+ value: Uint8Array;
133
+ }
134
+ export type MsgExecLegacyContentEncoded = Omit<MsgExecLegacyContent, "content"> & {
135
+ /** content is the proposal's content. */content?: CommunityPoolSpendProposalProtoMsg | CommunityPoolSpendProposalWithDepositProtoMsg | TextProposalProtoMsg | ParameterChangeProposalProtoMsg | SoftwareUpgradeProposalProtoMsg | CancelSoftwareUpgradeProposalProtoMsg | StoreCodeProposalProtoMsg | InstantiateContractProposalProtoMsg | InstantiateContract2ProposalProtoMsg | MigrateContractProposalProtoMsg | SudoContractProposalProtoMsg | ExecuteContractProposalProtoMsg | UpdateAdminProposalProtoMsg | ClearAdminProposalProtoMsg | PinCodesProposalProtoMsg | UnpinCodesProposalProtoMsg | UpdateInstantiateConfigProposalProtoMsg | StoreAndInstantiateContractProposalProtoMsg | AnyProtoMsg | undefined;
136
+ };
137
+ /**
138
+ * MsgExecLegacyContent is used to wrap the legacy content field into a message.
139
+ * This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
140
+ * @name MsgExecLegacyContentAmino
141
+ * @package cosmos.gov.v1
142
+ * @see proto type: cosmos.gov.v1.MsgExecLegacyContent
143
+ */
144
+ export interface MsgExecLegacyContentAmino {
145
+ /**
146
+ * content is the proposal's content.
147
+ */
148
+ content?: AnyAmino;
149
+ /**
150
+ * authority must be the gov module address.
151
+ */
152
+ authority?: string;
153
+ }
154
+ export interface MsgExecLegacyContentAminoMsg {
155
+ type: "cosmos-sdk/v1/MsgExecLegacyContent";
156
+ value: MsgExecLegacyContentAmino;
157
+ }
158
+ /**
159
+ * MsgExecLegacyContent is used to wrap the legacy content field into a message.
160
+ * This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
161
+ */
162
+ export interface MsgExecLegacyContentSDKType {
163
+ content?: CommunityPoolSpendProposalSDKType | CommunityPoolSpendProposalWithDepositSDKType | TextProposalSDKType | ParameterChangeProposalSDKType | SoftwareUpgradeProposalSDKType | CancelSoftwareUpgradeProposalSDKType | StoreCodeProposalSDKType | InstantiateContractProposalSDKType | InstantiateContract2ProposalSDKType | MigrateContractProposalSDKType | SudoContractProposalSDKType | ExecuteContractProposalSDKType | UpdateAdminProposalSDKType | ClearAdminProposalSDKType | PinCodesProposalSDKType | UnpinCodesProposalSDKType | UpdateInstantiateConfigProposalSDKType | StoreAndInstantiateContractProposalSDKType | AnySDKType | undefined;
164
+ authority: string;
165
+ }
166
+ /** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
167
+ export interface MsgExecLegacyContentResponse {}
168
+ export interface MsgExecLegacyContentResponseProtoMsg {
169
+ typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse";
170
+ value: Uint8Array;
171
+ }
172
+ /**
173
+ * MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.
174
+ * @name MsgExecLegacyContentResponseAmino
175
+ * @package cosmos.gov.v1
176
+ * @see proto type: cosmos.gov.v1.MsgExecLegacyContentResponse
177
+ */
178
+ export interface MsgExecLegacyContentResponseAmino {}
179
+ export interface MsgExecLegacyContentResponseAminoMsg {
180
+ type: "cosmos-sdk/v1/MsgExecLegacyContentResponse";
181
+ value: MsgExecLegacyContentResponseAmino;
182
+ }
183
+ /** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
184
+ export interface MsgExecLegacyContentResponseSDKType {}
185
+ /** MsgVote defines a message to cast a vote. */
186
+ export interface MsgVote {
187
+ /** proposal_id defines the unique id of the proposal. */
188
+ proposalId: bigint;
189
+ /** voter is the voter address for the proposal. */
190
+ voter: string;
191
+ /** option defines the vote option. */
192
+ option: VoteOption;
193
+ /** metadata is any arbitrary metadata attached to the Vote. */
194
+ metadata: string;
195
+ }
196
+ export interface MsgVoteProtoMsg {
197
+ typeUrl: "/cosmos.gov.v1.MsgVote";
198
+ value: Uint8Array;
199
+ }
200
+ /**
201
+ * MsgVote defines a message to cast a vote.
202
+ * @name MsgVoteAmino
203
+ * @package cosmos.gov.v1
204
+ * @see proto type: cosmos.gov.v1.MsgVote
205
+ */
206
+ export interface MsgVoteAmino {
207
+ /**
208
+ * proposal_id defines the unique id of the proposal.
209
+ */
210
+ proposal_id: string;
211
+ /**
212
+ * voter is the voter address for the proposal.
213
+ */
214
+ voter?: string;
215
+ /**
216
+ * option defines the vote option.
217
+ */
218
+ option?: VoteOption;
219
+ /**
220
+ * metadata is any arbitrary metadata attached to the Vote.
221
+ */
222
+ metadata?: string;
223
+ }
224
+ export interface MsgVoteAminoMsg {
225
+ type: "cosmos-sdk/v1/MsgVote";
226
+ value: MsgVoteAmino;
227
+ }
228
+ /** MsgVote defines a message to cast a vote. */
229
+ export interface MsgVoteSDKType {
230
+ proposal_id: bigint;
231
+ voter: string;
232
+ option: VoteOption;
233
+ metadata: string;
234
+ }
235
+ /** MsgVoteResponse defines the Msg/Vote response type. */
236
+ export interface MsgVoteResponse {}
237
+ export interface MsgVoteResponseProtoMsg {
238
+ typeUrl: "/cosmos.gov.v1.MsgVoteResponse";
239
+ value: Uint8Array;
240
+ }
241
+ /**
242
+ * MsgVoteResponse defines the Msg/Vote response type.
243
+ * @name MsgVoteResponseAmino
244
+ * @package cosmos.gov.v1
245
+ * @see proto type: cosmos.gov.v1.MsgVoteResponse
246
+ */
247
+ export interface MsgVoteResponseAmino {}
248
+ export interface MsgVoteResponseAminoMsg {
249
+ type: "cosmos-sdk/v1/MsgVoteResponse";
250
+ value: MsgVoteResponseAmino;
251
+ }
252
+ /** MsgVoteResponse defines the Msg/Vote response type. */
253
+ export interface MsgVoteResponseSDKType {}
254
+ /** MsgVoteWeighted defines a message to cast a vote. */
255
+ export interface MsgVoteWeighted {
256
+ /** proposal_id defines the unique id of the proposal. */
257
+ proposalId: bigint;
258
+ /** voter is the voter address for the proposal. */
259
+ voter: string;
260
+ /** options defines the weighted vote options. */
261
+ options: WeightedVoteOption[];
262
+ /** metadata is any arbitrary metadata attached to the VoteWeighted. */
263
+ metadata: string;
264
+ }
265
+ export interface MsgVoteWeightedProtoMsg {
266
+ typeUrl: "/cosmos.gov.v1.MsgVoteWeighted";
267
+ value: Uint8Array;
268
+ }
269
+ /**
270
+ * MsgVoteWeighted defines a message to cast a vote.
271
+ * @name MsgVoteWeightedAmino
272
+ * @package cosmos.gov.v1
273
+ * @see proto type: cosmos.gov.v1.MsgVoteWeighted
274
+ */
275
+ export interface MsgVoteWeightedAmino {
276
+ /**
277
+ * proposal_id defines the unique id of the proposal.
278
+ */
279
+ proposal_id: string;
280
+ /**
281
+ * voter is the voter address for the proposal.
282
+ */
283
+ voter?: string;
284
+ /**
285
+ * options defines the weighted vote options.
286
+ */
287
+ options?: WeightedVoteOptionAmino[];
288
+ /**
289
+ * metadata is any arbitrary metadata attached to the VoteWeighted.
290
+ */
291
+ metadata?: string;
292
+ }
293
+ export interface MsgVoteWeightedAminoMsg {
294
+ type: "cosmos-sdk/v1/MsgVoteWeighted";
295
+ value: MsgVoteWeightedAmino;
296
+ }
297
+ /** MsgVoteWeighted defines a message to cast a vote. */
298
+ export interface MsgVoteWeightedSDKType {
299
+ proposal_id: bigint;
300
+ voter: string;
301
+ options: WeightedVoteOptionSDKType[];
302
+ metadata: string;
303
+ }
304
+ /** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
305
+ export interface MsgVoteWeightedResponse {}
306
+ export interface MsgVoteWeightedResponseProtoMsg {
307
+ typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse";
308
+ value: Uint8Array;
309
+ }
310
+ /**
311
+ * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
312
+ * @name MsgVoteWeightedResponseAmino
313
+ * @package cosmos.gov.v1
314
+ * @see proto type: cosmos.gov.v1.MsgVoteWeightedResponse
315
+ */
316
+ export interface MsgVoteWeightedResponseAmino {}
317
+ export interface MsgVoteWeightedResponseAminoMsg {
318
+ type: "cosmos-sdk/v1/MsgVoteWeightedResponse";
319
+ value: MsgVoteWeightedResponseAmino;
320
+ }
321
+ /** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
322
+ export interface MsgVoteWeightedResponseSDKType {}
323
+ /** MsgDeposit defines a message to submit a deposit to an existing proposal. */
324
+ export interface MsgDeposit {
325
+ /** proposal_id defines the unique id of the proposal. */
326
+ proposalId: bigint;
327
+ /** depositor defines the deposit addresses from the proposals. */
328
+ depositor: string;
329
+ /** amount to be deposited by depositor. */
330
+ amount: Coin[];
331
+ }
332
+ export interface MsgDepositProtoMsg {
333
+ typeUrl: "/cosmos.gov.v1.MsgDeposit";
334
+ value: Uint8Array;
335
+ }
336
+ /**
337
+ * MsgDeposit defines a message to submit a deposit to an existing proposal.
338
+ * @name MsgDepositAmino
339
+ * @package cosmos.gov.v1
340
+ * @see proto type: cosmos.gov.v1.MsgDeposit
341
+ */
342
+ export interface MsgDepositAmino {
343
+ /**
344
+ * proposal_id defines the unique id of the proposal.
345
+ */
346
+ proposal_id: string;
347
+ /**
348
+ * depositor defines the deposit addresses from the proposals.
349
+ */
350
+ depositor?: string;
351
+ /**
352
+ * amount to be deposited by depositor.
353
+ */
354
+ amount: CoinAmino[];
355
+ }
356
+ export interface MsgDepositAminoMsg {
357
+ type: "cosmos-sdk/v1/MsgDeposit";
358
+ value: MsgDepositAmino;
359
+ }
360
+ /** MsgDeposit defines a message to submit a deposit to an existing proposal. */
361
+ export interface MsgDepositSDKType {
362
+ proposal_id: bigint;
363
+ depositor: string;
364
+ amount: CoinSDKType[];
365
+ }
366
+ /** MsgDepositResponse defines the Msg/Deposit response type. */
367
+ export interface MsgDepositResponse {}
368
+ export interface MsgDepositResponseProtoMsg {
369
+ typeUrl: "/cosmos.gov.v1.MsgDepositResponse";
370
+ value: Uint8Array;
371
+ }
372
+ /**
373
+ * MsgDepositResponse defines the Msg/Deposit response type.
374
+ * @name MsgDepositResponseAmino
375
+ * @package cosmos.gov.v1
376
+ * @see proto type: cosmos.gov.v1.MsgDepositResponse
377
+ */
378
+ export interface MsgDepositResponseAmino {}
379
+ export interface MsgDepositResponseAminoMsg {
380
+ type: "cosmos-sdk/v1/MsgDepositResponse";
381
+ value: MsgDepositResponseAmino;
382
+ }
383
+ /** MsgDepositResponse defines the Msg/Deposit response type. */
384
+ export interface MsgDepositResponseSDKType {}
385
+ /** MsgUpdateParams is the Msg/UpdateParams request type. */
386
+ export interface MsgUpdateParams {
387
+ /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
388
+ authority: string;
389
+ /**
390
+ * params defines the x/gov parameters to update.
391
+ *
392
+ * NOTE: All parameters must be supplied.
393
+ */
394
+ params: Params;
395
+ }
396
+ export interface MsgUpdateParamsProtoMsg {
397
+ typeUrl: "/cosmos.gov.v1.MsgUpdateParams";
398
+ value: Uint8Array;
399
+ }
400
+ /**
401
+ * MsgUpdateParams is the Msg/UpdateParams request type.
402
+ * @name MsgUpdateParamsAmino
403
+ * @package cosmos.gov.v1
404
+ * @see proto type: cosmos.gov.v1.MsgUpdateParams
405
+ */
406
+ export interface MsgUpdateParamsAmino {
407
+ /**
408
+ * authority is the address that controls the module (defaults to x/gov unless overwritten).
409
+ */
410
+ authority?: string;
411
+ /**
412
+ * params defines the x/gov parameters to update.
413
+ *
414
+ * NOTE: All parameters must be supplied.
415
+ */
416
+ params: ParamsAmino;
417
+ }
418
+ export interface MsgUpdateParamsAminoMsg {
419
+ type: "cosmos-sdk/x/gov/v1/MsgUpdateParams";
420
+ value: MsgUpdateParamsAmino;
421
+ }
422
+ /** MsgUpdateParams is the Msg/UpdateParams request type. */
423
+ export interface MsgUpdateParamsSDKType {
424
+ authority: string;
425
+ params: ParamsSDKType;
426
+ }
427
+ /**
428
+ * MsgUpdateParamsResponse defines the response structure for executing a
429
+ * MsgUpdateParams message.
430
+ */
431
+ export interface MsgUpdateParamsResponse {}
432
+ export interface MsgUpdateParamsResponseProtoMsg {
433
+ typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse";
434
+ value: Uint8Array;
435
+ }
436
+ /**
437
+ * MsgUpdateParamsResponse defines the response structure for executing a
438
+ * MsgUpdateParams message.
439
+ * @name MsgUpdateParamsResponseAmino
440
+ * @package cosmos.gov.v1
441
+ * @see proto type: cosmos.gov.v1.MsgUpdateParamsResponse
442
+ */
443
+ export interface MsgUpdateParamsResponseAmino {}
444
+ export interface MsgUpdateParamsResponseAminoMsg {
445
+ type: "cosmos-sdk/v1/MsgUpdateParamsResponse";
446
+ value: MsgUpdateParamsResponseAmino;
447
+ }
448
+ /**
449
+ * MsgUpdateParamsResponse defines the response structure for executing a
450
+ * MsgUpdateParams message.
451
+ */
452
+ export interface MsgUpdateParamsResponseSDKType {}
453
+ /** MsgCancelProposal is the Msg/CancelProposal request type. */
454
+ export interface MsgCancelProposal {
455
+ /** proposal_id defines the unique id of the proposal. */
456
+ proposalId: bigint;
457
+ /** proposer is the account address of the proposer. */
458
+ proposer: string;
459
+ }
460
+ export interface MsgCancelProposalProtoMsg {
461
+ typeUrl: "/cosmos.gov.v1.MsgCancelProposal";
462
+ value: Uint8Array;
463
+ }
464
+ /**
465
+ * MsgCancelProposal is the Msg/CancelProposal request type.
466
+ * @name MsgCancelProposalAmino
467
+ * @package cosmos.gov.v1
468
+ * @see proto type: cosmos.gov.v1.MsgCancelProposal
469
+ */
470
+ export interface MsgCancelProposalAmino {
471
+ /**
472
+ * proposal_id defines the unique id of the proposal.
473
+ */
474
+ proposal_id: string;
475
+ /**
476
+ * proposer is the account address of the proposer.
477
+ */
478
+ proposer?: string;
479
+ }
480
+ export interface MsgCancelProposalAminoMsg {
481
+ type: "cosmos-sdk/v1/MsgCancelProposal";
482
+ value: MsgCancelProposalAmino;
483
+ }
484
+ /** MsgCancelProposal is the Msg/CancelProposal request type. */
485
+ export interface MsgCancelProposalSDKType {
486
+ proposal_id: bigint;
487
+ proposer: string;
488
+ }
489
+ /**
490
+ * MsgCancelProposalResponse defines the response structure for executing a
491
+ * MsgCancelProposal message.
492
+ */
493
+ export interface MsgCancelProposalResponse {
494
+ /** proposal_id defines the unique id of the proposal. */
495
+ proposalId: bigint;
496
+ /** canceled_time is the time when proposal is canceled. */
497
+ canceledTime: Date;
498
+ /** canceled_height defines the block height at which the proposal is canceled. */
499
+ canceledHeight: bigint;
500
+ }
501
+ export interface MsgCancelProposalResponseProtoMsg {
502
+ typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse";
503
+ value: Uint8Array;
504
+ }
505
+ /**
506
+ * MsgCancelProposalResponse defines the response structure for executing a
507
+ * MsgCancelProposal message.
508
+ * @name MsgCancelProposalResponseAmino
509
+ * @package cosmos.gov.v1
510
+ * @see proto type: cosmos.gov.v1.MsgCancelProposalResponse
511
+ */
512
+ export interface MsgCancelProposalResponseAmino {
513
+ /**
514
+ * proposal_id defines the unique id of the proposal.
515
+ */
516
+ proposal_id: string;
517
+ /**
518
+ * canceled_time is the time when proposal is canceled.
519
+ */
520
+ canceled_time?: string;
521
+ /**
522
+ * canceled_height defines the block height at which the proposal is canceled.
523
+ */
524
+ canceled_height?: string;
525
+ }
526
+ export interface MsgCancelProposalResponseAminoMsg {
527
+ type: "cosmos-sdk/v1/MsgCancelProposalResponse";
528
+ value: MsgCancelProposalResponseAmino;
529
+ }
530
+ /**
531
+ * MsgCancelProposalResponse defines the response structure for executing a
532
+ * MsgCancelProposal message.
533
+ */
534
+ export interface MsgCancelProposalResponseSDKType {
535
+ proposal_id: bigint;
536
+ canceled_time: Date;
537
+ canceled_height: bigint;
538
+ }
539
+ function createBaseMsgSubmitProposal(): MsgSubmitProposal {
540
+ return {
541
+ messages: [],
542
+ initialDeposit: [],
543
+ proposer: "",
544
+ metadata: "",
545
+ title: "",
546
+ summary: "",
547
+ expedited: false
548
+ };
549
+ }
550
+ export const MsgSubmitProposal = {
551
+ typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
552
+ encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
553
+ for (const v of message.messages) {
554
+ Any.encode(v!, writer.uint32(10).fork()).ldelim();
555
+ }
556
+ for (const v of message.initialDeposit) {
557
+ Coin.encode(v!, writer.uint32(18).fork()).ldelim();
558
+ }
559
+ if (message.proposer !== "") {
560
+ writer.uint32(26).string(message.proposer);
561
+ }
562
+ if (message.metadata !== "") {
563
+ writer.uint32(34).string(message.metadata);
564
+ }
565
+ if (message.title !== "") {
566
+ writer.uint32(42).string(message.title);
567
+ }
568
+ if (message.summary !== "") {
569
+ writer.uint32(50).string(message.summary);
570
+ }
571
+ if (message.expedited === true) {
572
+ writer.uint32(56).bool(message.expedited);
573
+ }
574
+ return writer;
575
+ },
576
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal {
577
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
578
+ let end = length === undefined ? reader.len : reader.pos + length;
579
+ const message = createBaseMsgSubmitProposal();
580
+ while (reader.pos < end) {
581
+ const tag = reader.uint32();
582
+ switch (tag >>> 3) {
583
+ case 1:
584
+ message.messages.push(Any.decode(reader, reader.uint32()));
585
+ break;
586
+ case 2:
587
+ message.initialDeposit.push(Coin.decode(reader, reader.uint32()));
588
+ break;
589
+ case 3:
590
+ message.proposer = reader.string();
591
+ break;
592
+ case 4:
593
+ message.metadata = reader.string();
594
+ break;
595
+ case 5:
596
+ message.title = reader.string();
597
+ break;
598
+ case 6:
599
+ message.summary = reader.string();
600
+ break;
601
+ case 7:
602
+ message.expedited = reader.bool();
603
+ break;
604
+ default:
605
+ reader.skipType(tag & 7);
606
+ break;
607
+ }
608
+ }
609
+ return message;
610
+ },
611
+ fromPartial(object: Partial<MsgSubmitProposal>): MsgSubmitProposal {
612
+ const message = createBaseMsgSubmitProposal();
613
+ message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
614
+ message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || [];
615
+ message.proposer = object.proposer ?? "";
616
+ message.metadata = object.metadata ?? "";
617
+ message.title = object.title ?? "";
618
+ message.summary = object.summary ?? "";
619
+ message.expedited = object.expedited ?? false;
620
+ return message;
621
+ },
622
+ fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal {
623
+ const message = createBaseMsgSubmitProposal();
624
+ message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
625
+ message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || [];
626
+ if (object.proposer !== undefined && object.proposer !== null) {
627
+ message.proposer = object.proposer;
628
+ }
629
+ if (object.metadata !== undefined && object.metadata !== null) {
630
+ message.metadata = object.metadata;
631
+ }
632
+ if (object.title !== undefined && object.title !== null) {
633
+ message.title = object.title;
634
+ }
635
+ if (object.summary !== undefined && object.summary !== null) {
636
+ message.summary = object.summary;
637
+ }
638
+ if (object.expedited !== undefined && object.expedited !== null) {
639
+ message.expedited = object.expedited;
640
+ }
641
+ return message;
642
+ },
643
+ toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino {
644
+ const obj: any = {};
645
+ if (message.messages) {
646
+ obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
647
+ } else {
648
+ obj.messages = message.messages;
649
+ }
650
+ if (message.initialDeposit) {
651
+ obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined);
652
+ } else {
653
+ obj.initial_deposit = message.initialDeposit;
654
+ }
655
+ obj.proposer = message.proposer === "" ? undefined : message.proposer;
656
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
657
+ obj.title = message.title === "" ? undefined : message.title;
658
+ obj.summary = message.summary === "" ? undefined : message.summary;
659
+ obj.expedited = message.expedited === false ? undefined : message.expedited;
660
+ return obj;
661
+ },
662
+ fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal {
663
+ return MsgSubmitProposal.fromAmino(object.value);
664
+ },
665
+ toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg {
666
+ return {
667
+ type: "cosmos-sdk/v1/MsgSubmitProposal",
668
+ value: MsgSubmitProposal.toAmino(message)
669
+ };
670
+ },
671
+ fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal {
672
+ return MsgSubmitProposal.decode(message.value);
673
+ },
674
+ toProto(message: MsgSubmitProposal): Uint8Array {
675
+ return MsgSubmitProposal.encode(message).finish();
676
+ },
677
+ toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg {
678
+ return {
679
+ typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
680
+ value: MsgSubmitProposal.encode(message).finish()
681
+ };
682
+ }
683
+ };
684
+ function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse {
685
+ return {
686
+ proposalId: BigInt(0)
687
+ };
688
+ }
689
+ export const MsgSubmitProposalResponse = {
690
+ typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse",
691
+ encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
692
+ if (message.proposalId !== BigInt(0)) {
693
+ writer.uint32(8).uint64(message.proposalId);
694
+ }
695
+ return writer;
696
+ },
697
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse {
698
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
699
+ let end = length === undefined ? reader.len : reader.pos + length;
700
+ const message = createBaseMsgSubmitProposalResponse();
701
+ while (reader.pos < end) {
702
+ const tag = reader.uint32();
703
+ switch (tag >>> 3) {
704
+ case 1:
705
+ message.proposalId = reader.uint64();
706
+ break;
707
+ default:
708
+ reader.skipType(tag & 7);
709
+ break;
710
+ }
711
+ }
712
+ return message;
713
+ },
714
+ fromPartial(object: Partial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse {
715
+ const message = createBaseMsgSubmitProposalResponse();
716
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
717
+ return message;
718
+ },
719
+ fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse {
720
+ const message = createBaseMsgSubmitProposalResponse();
721
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
722
+ message.proposalId = BigInt(object.proposal_id);
723
+ }
724
+ return message;
725
+ },
726
+ toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino {
727
+ const obj: any = {};
728
+ obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
729
+ return obj;
730
+ },
731
+ fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse {
732
+ return MsgSubmitProposalResponse.fromAmino(object.value);
733
+ },
734
+ toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg {
735
+ return {
736
+ type: "cosmos-sdk/v1/MsgSubmitProposalResponse",
737
+ value: MsgSubmitProposalResponse.toAmino(message)
738
+ };
739
+ },
740
+ fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse {
741
+ return MsgSubmitProposalResponse.decode(message.value);
742
+ },
743
+ toProto(message: MsgSubmitProposalResponse): Uint8Array {
744
+ return MsgSubmitProposalResponse.encode(message).finish();
745
+ },
746
+ toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg {
747
+ return {
748
+ typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse",
749
+ value: MsgSubmitProposalResponse.encode(message).finish()
750
+ };
751
+ }
752
+ };
753
+ function createBaseMsgExecLegacyContent(): MsgExecLegacyContent {
754
+ return {
755
+ content: undefined,
756
+ authority: ""
757
+ };
758
+ }
759
+ export const MsgExecLegacyContent = {
760
+ typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
761
+ encode(message: MsgExecLegacyContent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
762
+ if (message.content !== undefined) {
763
+ Any.encode(message.content as Any, writer.uint32(10).fork()).ldelim();
764
+ }
765
+ if (message.authority !== "") {
766
+ writer.uint32(18).string(message.authority);
767
+ }
768
+ return writer;
769
+ },
770
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent {
771
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
772
+ let end = length === undefined ? reader.len : reader.pos + length;
773
+ const message = createBaseMsgExecLegacyContent();
774
+ while (reader.pos < end) {
775
+ const tag = reader.uint32();
776
+ switch (tag >>> 3) {
777
+ case 1:
778
+ message.content = Cosmos_govv1beta1Content_InterfaceDecoder(reader) as Any;
779
+ break;
780
+ case 2:
781
+ message.authority = reader.string();
782
+ break;
783
+ default:
784
+ reader.skipType(tag & 7);
785
+ break;
786
+ }
787
+ }
788
+ return message;
789
+ },
790
+ fromPartial(object: Partial<MsgExecLegacyContent>): MsgExecLegacyContent {
791
+ const message = createBaseMsgExecLegacyContent();
792
+ message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined;
793
+ message.authority = object.authority ?? "";
794
+ return message;
795
+ },
796
+ fromAmino(object: MsgExecLegacyContentAmino): MsgExecLegacyContent {
797
+ const message = createBaseMsgExecLegacyContent();
798
+ if (object.content !== undefined && object.content !== null) {
799
+ message.content = Cosmos_govv1beta1Content_FromAmino(object.content);
800
+ }
801
+ if (object.authority !== undefined && object.authority !== null) {
802
+ message.authority = object.authority;
803
+ }
804
+ return message;
805
+ },
806
+ toAmino(message: MsgExecLegacyContent): MsgExecLegacyContentAmino {
807
+ const obj: any = {};
808
+ obj.content = message.content ? Cosmos_govv1beta1Content_ToAmino(message.content as Any) : undefined;
809
+ obj.authority = message.authority === "" ? undefined : message.authority;
810
+ return obj;
811
+ },
812
+ fromAminoMsg(object: MsgExecLegacyContentAminoMsg): MsgExecLegacyContent {
813
+ return MsgExecLegacyContent.fromAmino(object.value);
814
+ },
815
+ toAminoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentAminoMsg {
816
+ return {
817
+ type: "cosmos-sdk/v1/MsgExecLegacyContent",
818
+ value: MsgExecLegacyContent.toAmino(message)
819
+ };
820
+ },
821
+ fromProtoMsg(message: MsgExecLegacyContentProtoMsg): MsgExecLegacyContent {
822
+ return MsgExecLegacyContent.decode(message.value);
823
+ },
824
+ toProto(message: MsgExecLegacyContent): Uint8Array {
825
+ return MsgExecLegacyContent.encode(message).finish();
826
+ },
827
+ toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg {
828
+ return {
829
+ typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
830
+ value: MsgExecLegacyContent.encode(message).finish()
831
+ };
832
+ }
833
+ };
834
+ function createBaseMsgExecLegacyContentResponse(): MsgExecLegacyContentResponse {
835
+ return {};
836
+ }
837
+ export const MsgExecLegacyContentResponse = {
838
+ typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse",
839
+ encode(_: MsgExecLegacyContentResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
840
+ return writer;
841
+ },
842
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse {
843
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
844
+ let end = length === undefined ? reader.len : reader.pos + length;
845
+ const message = createBaseMsgExecLegacyContentResponse();
846
+ while (reader.pos < end) {
847
+ const tag = reader.uint32();
848
+ switch (tag >>> 3) {
849
+ default:
850
+ reader.skipType(tag & 7);
851
+ break;
852
+ }
853
+ }
854
+ return message;
855
+ },
856
+ fromPartial(_: Partial<MsgExecLegacyContentResponse>): MsgExecLegacyContentResponse {
857
+ const message = createBaseMsgExecLegacyContentResponse();
858
+ return message;
859
+ },
860
+ fromAmino(_: MsgExecLegacyContentResponseAmino): MsgExecLegacyContentResponse {
861
+ const message = createBaseMsgExecLegacyContentResponse();
862
+ return message;
863
+ },
864
+ toAmino(_: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAmino {
865
+ const obj: any = {};
866
+ return obj;
867
+ },
868
+ fromAminoMsg(object: MsgExecLegacyContentResponseAminoMsg): MsgExecLegacyContentResponse {
869
+ return MsgExecLegacyContentResponse.fromAmino(object.value);
870
+ },
871
+ toAminoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAminoMsg {
872
+ return {
873
+ type: "cosmos-sdk/v1/MsgExecLegacyContentResponse",
874
+ value: MsgExecLegacyContentResponse.toAmino(message)
875
+ };
876
+ },
877
+ fromProtoMsg(message: MsgExecLegacyContentResponseProtoMsg): MsgExecLegacyContentResponse {
878
+ return MsgExecLegacyContentResponse.decode(message.value);
879
+ },
880
+ toProto(message: MsgExecLegacyContentResponse): Uint8Array {
881
+ return MsgExecLegacyContentResponse.encode(message).finish();
882
+ },
883
+ toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg {
884
+ return {
885
+ typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse",
886
+ value: MsgExecLegacyContentResponse.encode(message).finish()
887
+ };
888
+ }
889
+ };
890
+ function createBaseMsgVote(): MsgVote {
891
+ return {
892
+ proposalId: BigInt(0),
893
+ voter: "",
894
+ option: 0,
895
+ metadata: ""
896
+ };
897
+ }
898
+ export const MsgVote = {
899
+ typeUrl: "/cosmos.gov.v1.MsgVote",
900
+ encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
901
+ if (message.proposalId !== BigInt(0)) {
902
+ writer.uint32(8).uint64(message.proposalId);
903
+ }
904
+ if (message.voter !== "") {
905
+ writer.uint32(18).string(message.voter);
906
+ }
907
+ if (message.option !== 0) {
908
+ writer.uint32(24).int32(message.option);
909
+ }
910
+ if (message.metadata !== "") {
911
+ writer.uint32(34).string(message.metadata);
912
+ }
913
+ return writer;
914
+ },
915
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgVote {
916
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
917
+ let end = length === undefined ? reader.len : reader.pos + length;
918
+ const message = createBaseMsgVote();
919
+ while (reader.pos < end) {
920
+ const tag = reader.uint32();
921
+ switch (tag >>> 3) {
922
+ case 1:
923
+ message.proposalId = reader.uint64();
924
+ break;
925
+ case 2:
926
+ message.voter = reader.string();
927
+ break;
928
+ case 3:
929
+ message.option = reader.int32() as any;
930
+ break;
931
+ case 4:
932
+ message.metadata = reader.string();
933
+ break;
934
+ default:
935
+ reader.skipType(tag & 7);
936
+ break;
937
+ }
938
+ }
939
+ return message;
940
+ },
941
+ fromPartial(object: Partial<MsgVote>): MsgVote {
942
+ const message = createBaseMsgVote();
943
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
944
+ message.voter = object.voter ?? "";
945
+ message.option = object.option ?? 0;
946
+ message.metadata = object.metadata ?? "";
947
+ return message;
948
+ },
949
+ fromAmino(object: MsgVoteAmino): MsgVote {
950
+ const message = createBaseMsgVote();
951
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
952
+ message.proposalId = BigInt(object.proposal_id);
953
+ }
954
+ if (object.voter !== undefined && object.voter !== null) {
955
+ message.voter = object.voter;
956
+ }
957
+ if (object.option !== undefined && object.option !== null) {
958
+ message.option = object.option;
959
+ }
960
+ if (object.metadata !== undefined && object.metadata !== null) {
961
+ message.metadata = object.metadata;
962
+ }
963
+ return message;
964
+ },
965
+ toAmino(message: MsgVote): MsgVoteAmino {
966
+ const obj: any = {};
967
+ obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
968
+ obj.voter = message.voter === "" ? undefined : message.voter;
969
+ obj.option = message.option === 0 ? undefined : message.option;
970
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
971
+ return obj;
972
+ },
973
+ fromAminoMsg(object: MsgVoteAminoMsg): MsgVote {
974
+ return MsgVote.fromAmino(object.value);
975
+ },
976
+ toAminoMsg(message: MsgVote): MsgVoteAminoMsg {
977
+ return {
978
+ type: "cosmos-sdk/v1/MsgVote",
979
+ value: MsgVote.toAmino(message)
980
+ };
981
+ },
982
+ fromProtoMsg(message: MsgVoteProtoMsg): MsgVote {
983
+ return MsgVote.decode(message.value);
984
+ },
985
+ toProto(message: MsgVote): Uint8Array {
986
+ return MsgVote.encode(message).finish();
987
+ },
988
+ toProtoMsg(message: MsgVote): MsgVoteProtoMsg {
989
+ return {
990
+ typeUrl: "/cosmos.gov.v1.MsgVote",
991
+ value: MsgVote.encode(message).finish()
992
+ };
993
+ }
994
+ };
995
+ function createBaseMsgVoteResponse(): MsgVoteResponse {
996
+ return {};
997
+ }
998
+ export const MsgVoteResponse = {
999
+ typeUrl: "/cosmos.gov.v1.MsgVoteResponse",
1000
+ encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1001
+ return writer;
1002
+ },
1003
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse {
1004
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1005
+ let end = length === undefined ? reader.len : reader.pos + length;
1006
+ const message = createBaseMsgVoteResponse();
1007
+ while (reader.pos < end) {
1008
+ const tag = reader.uint32();
1009
+ switch (tag >>> 3) {
1010
+ default:
1011
+ reader.skipType(tag & 7);
1012
+ break;
1013
+ }
1014
+ }
1015
+ return message;
1016
+ },
1017
+ fromPartial(_: Partial<MsgVoteResponse>): MsgVoteResponse {
1018
+ const message = createBaseMsgVoteResponse();
1019
+ return message;
1020
+ },
1021
+ fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse {
1022
+ const message = createBaseMsgVoteResponse();
1023
+ return message;
1024
+ },
1025
+ toAmino(_: MsgVoteResponse): MsgVoteResponseAmino {
1026
+ const obj: any = {};
1027
+ return obj;
1028
+ },
1029
+ fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse {
1030
+ return MsgVoteResponse.fromAmino(object.value);
1031
+ },
1032
+ toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg {
1033
+ return {
1034
+ type: "cosmos-sdk/v1/MsgVoteResponse",
1035
+ value: MsgVoteResponse.toAmino(message)
1036
+ };
1037
+ },
1038
+ fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse {
1039
+ return MsgVoteResponse.decode(message.value);
1040
+ },
1041
+ toProto(message: MsgVoteResponse): Uint8Array {
1042
+ return MsgVoteResponse.encode(message).finish();
1043
+ },
1044
+ toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg {
1045
+ return {
1046
+ typeUrl: "/cosmos.gov.v1.MsgVoteResponse",
1047
+ value: MsgVoteResponse.encode(message).finish()
1048
+ };
1049
+ }
1050
+ };
1051
+ function createBaseMsgVoteWeighted(): MsgVoteWeighted {
1052
+ return {
1053
+ proposalId: BigInt(0),
1054
+ voter: "",
1055
+ options: [],
1056
+ metadata: ""
1057
+ };
1058
+ }
1059
+ export const MsgVoteWeighted = {
1060
+ typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
1061
+ encode(message: MsgVoteWeighted, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1062
+ if (message.proposalId !== BigInt(0)) {
1063
+ writer.uint32(8).uint64(message.proposalId);
1064
+ }
1065
+ if (message.voter !== "") {
1066
+ writer.uint32(18).string(message.voter);
1067
+ }
1068
+ for (const v of message.options) {
1069
+ WeightedVoteOption.encode(v!, writer.uint32(26).fork()).ldelim();
1070
+ }
1071
+ if (message.metadata !== "") {
1072
+ writer.uint32(34).string(message.metadata);
1073
+ }
1074
+ return writer;
1075
+ },
1076
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted {
1077
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1078
+ let end = length === undefined ? reader.len : reader.pos + length;
1079
+ const message = createBaseMsgVoteWeighted();
1080
+ while (reader.pos < end) {
1081
+ const tag = reader.uint32();
1082
+ switch (tag >>> 3) {
1083
+ case 1:
1084
+ message.proposalId = reader.uint64();
1085
+ break;
1086
+ case 2:
1087
+ message.voter = reader.string();
1088
+ break;
1089
+ case 3:
1090
+ message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
1091
+ break;
1092
+ case 4:
1093
+ message.metadata = reader.string();
1094
+ break;
1095
+ default:
1096
+ reader.skipType(tag & 7);
1097
+ break;
1098
+ }
1099
+ }
1100
+ return message;
1101
+ },
1102
+ fromPartial(object: Partial<MsgVoteWeighted>): MsgVoteWeighted {
1103
+ const message = createBaseMsgVoteWeighted();
1104
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
1105
+ message.voter = object.voter ?? "";
1106
+ message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || [];
1107
+ message.metadata = object.metadata ?? "";
1108
+ return message;
1109
+ },
1110
+ fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted {
1111
+ const message = createBaseMsgVoteWeighted();
1112
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
1113
+ message.proposalId = BigInt(object.proposal_id);
1114
+ }
1115
+ if (object.voter !== undefined && object.voter !== null) {
1116
+ message.voter = object.voter;
1117
+ }
1118
+ message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || [];
1119
+ if (object.metadata !== undefined && object.metadata !== null) {
1120
+ message.metadata = object.metadata;
1121
+ }
1122
+ return message;
1123
+ },
1124
+ toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino {
1125
+ const obj: any = {};
1126
+ obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
1127
+ obj.voter = message.voter === "" ? undefined : message.voter;
1128
+ if (message.options) {
1129
+ obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined);
1130
+ } else {
1131
+ obj.options = message.options;
1132
+ }
1133
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
1134
+ return obj;
1135
+ },
1136
+ fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted {
1137
+ return MsgVoteWeighted.fromAmino(object.value);
1138
+ },
1139
+ toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg {
1140
+ return {
1141
+ type: "cosmos-sdk/v1/MsgVoteWeighted",
1142
+ value: MsgVoteWeighted.toAmino(message)
1143
+ };
1144
+ },
1145
+ fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted {
1146
+ return MsgVoteWeighted.decode(message.value);
1147
+ },
1148
+ toProto(message: MsgVoteWeighted): Uint8Array {
1149
+ return MsgVoteWeighted.encode(message).finish();
1150
+ },
1151
+ toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg {
1152
+ return {
1153
+ typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
1154
+ value: MsgVoteWeighted.encode(message).finish()
1155
+ };
1156
+ }
1157
+ };
1158
+ function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse {
1159
+ return {};
1160
+ }
1161
+ export const MsgVoteWeightedResponse = {
1162
+ typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse",
1163
+ encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1164
+ return writer;
1165
+ },
1166
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse {
1167
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1168
+ let end = length === undefined ? reader.len : reader.pos + length;
1169
+ const message = createBaseMsgVoteWeightedResponse();
1170
+ while (reader.pos < end) {
1171
+ const tag = reader.uint32();
1172
+ switch (tag >>> 3) {
1173
+ default:
1174
+ reader.skipType(tag & 7);
1175
+ break;
1176
+ }
1177
+ }
1178
+ return message;
1179
+ },
1180
+ fromPartial(_: Partial<MsgVoteWeightedResponse>): MsgVoteWeightedResponse {
1181
+ const message = createBaseMsgVoteWeightedResponse();
1182
+ return message;
1183
+ },
1184
+ fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse {
1185
+ const message = createBaseMsgVoteWeightedResponse();
1186
+ return message;
1187
+ },
1188
+ toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino {
1189
+ const obj: any = {};
1190
+ return obj;
1191
+ },
1192
+ fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse {
1193
+ return MsgVoteWeightedResponse.fromAmino(object.value);
1194
+ },
1195
+ toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg {
1196
+ return {
1197
+ type: "cosmos-sdk/v1/MsgVoteWeightedResponse",
1198
+ value: MsgVoteWeightedResponse.toAmino(message)
1199
+ };
1200
+ },
1201
+ fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse {
1202
+ return MsgVoteWeightedResponse.decode(message.value);
1203
+ },
1204
+ toProto(message: MsgVoteWeightedResponse): Uint8Array {
1205
+ return MsgVoteWeightedResponse.encode(message).finish();
1206
+ },
1207
+ toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg {
1208
+ return {
1209
+ typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse",
1210
+ value: MsgVoteWeightedResponse.encode(message).finish()
1211
+ };
1212
+ }
1213
+ };
1214
+ function createBaseMsgDeposit(): MsgDeposit {
1215
+ return {
1216
+ proposalId: BigInt(0),
1217
+ depositor: "",
1218
+ amount: []
1219
+ };
1220
+ }
1221
+ export const MsgDeposit = {
1222
+ typeUrl: "/cosmos.gov.v1.MsgDeposit",
1223
+ encode(message: MsgDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1224
+ if (message.proposalId !== BigInt(0)) {
1225
+ writer.uint32(8).uint64(message.proposalId);
1226
+ }
1227
+ if (message.depositor !== "") {
1228
+ writer.uint32(18).string(message.depositor);
1229
+ }
1230
+ for (const v of message.amount) {
1231
+ Coin.encode(v!, writer.uint32(26).fork()).ldelim();
1232
+ }
1233
+ return writer;
1234
+ },
1235
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit {
1236
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1237
+ let end = length === undefined ? reader.len : reader.pos + length;
1238
+ const message = createBaseMsgDeposit();
1239
+ while (reader.pos < end) {
1240
+ const tag = reader.uint32();
1241
+ switch (tag >>> 3) {
1242
+ case 1:
1243
+ message.proposalId = reader.uint64();
1244
+ break;
1245
+ case 2:
1246
+ message.depositor = reader.string();
1247
+ break;
1248
+ case 3:
1249
+ message.amount.push(Coin.decode(reader, reader.uint32()));
1250
+ break;
1251
+ default:
1252
+ reader.skipType(tag & 7);
1253
+ break;
1254
+ }
1255
+ }
1256
+ return message;
1257
+ },
1258
+ fromPartial(object: Partial<MsgDeposit>): MsgDeposit {
1259
+ const message = createBaseMsgDeposit();
1260
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
1261
+ message.depositor = object.depositor ?? "";
1262
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
1263
+ return message;
1264
+ },
1265
+ fromAmino(object: MsgDepositAmino): MsgDeposit {
1266
+ const message = createBaseMsgDeposit();
1267
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
1268
+ message.proposalId = BigInt(object.proposal_id);
1269
+ }
1270
+ if (object.depositor !== undefined && object.depositor !== null) {
1271
+ message.depositor = object.depositor;
1272
+ }
1273
+ message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
1274
+ return message;
1275
+ },
1276
+ toAmino(message: MsgDeposit): MsgDepositAmino {
1277
+ const obj: any = {};
1278
+ obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
1279
+ obj.depositor = message.depositor === "" ? undefined : message.depositor;
1280
+ if (message.amount) {
1281
+ obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
1282
+ } else {
1283
+ obj.amount = message.amount;
1284
+ }
1285
+ return obj;
1286
+ },
1287
+ fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit {
1288
+ return MsgDeposit.fromAmino(object.value);
1289
+ },
1290
+ toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg {
1291
+ return {
1292
+ type: "cosmos-sdk/v1/MsgDeposit",
1293
+ value: MsgDeposit.toAmino(message)
1294
+ };
1295
+ },
1296
+ fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit {
1297
+ return MsgDeposit.decode(message.value);
1298
+ },
1299
+ toProto(message: MsgDeposit): Uint8Array {
1300
+ return MsgDeposit.encode(message).finish();
1301
+ },
1302
+ toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg {
1303
+ return {
1304
+ typeUrl: "/cosmos.gov.v1.MsgDeposit",
1305
+ value: MsgDeposit.encode(message).finish()
1306
+ };
1307
+ }
1308
+ };
1309
+ function createBaseMsgDepositResponse(): MsgDepositResponse {
1310
+ return {};
1311
+ }
1312
+ export const MsgDepositResponse = {
1313
+ typeUrl: "/cosmos.gov.v1.MsgDepositResponse",
1314
+ encode(_: MsgDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1315
+ return writer;
1316
+ },
1317
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse {
1318
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1319
+ let end = length === undefined ? reader.len : reader.pos + length;
1320
+ const message = createBaseMsgDepositResponse();
1321
+ while (reader.pos < end) {
1322
+ const tag = reader.uint32();
1323
+ switch (tag >>> 3) {
1324
+ default:
1325
+ reader.skipType(tag & 7);
1326
+ break;
1327
+ }
1328
+ }
1329
+ return message;
1330
+ },
1331
+ fromPartial(_: Partial<MsgDepositResponse>): MsgDepositResponse {
1332
+ const message = createBaseMsgDepositResponse();
1333
+ return message;
1334
+ },
1335
+ fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse {
1336
+ const message = createBaseMsgDepositResponse();
1337
+ return message;
1338
+ },
1339
+ toAmino(_: MsgDepositResponse): MsgDepositResponseAmino {
1340
+ const obj: any = {};
1341
+ return obj;
1342
+ },
1343
+ fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse {
1344
+ return MsgDepositResponse.fromAmino(object.value);
1345
+ },
1346
+ toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg {
1347
+ return {
1348
+ type: "cosmos-sdk/v1/MsgDepositResponse",
1349
+ value: MsgDepositResponse.toAmino(message)
1350
+ };
1351
+ },
1352
+ fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse {
1353
+ return MsgDepositResponse.decode(message.value);
1354
+ },
1355
+ toProto(message: MsgDepositResponse): Uint8Array {
1356
+ return MsgDepositResponse.encode(message).finish();
1357
+ },
1358
+ toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg {
1359
+ return {
1360
+ typeUrl: "/cosmos.gov.v1.MsgDepositResponse",
1361
+ value: MsgDepositResponse.encode(message).finish()
1362
+ };
1363
+ }
1364
+ };
1365
+ function createBaseMsgUpdateParams(): MsgUpdateParams {
1366
+ return {
1367
+ authority: "",
1368
+ params: Params.fromPartial({})
1369
+ };
1370
+ }
1371
+ export const MsgUpdateParams = {
1372
+ typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
1373
+ encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1374
+ if (message.authority !== "") {
1375
+ writer.uint32(10).string(message.authority);
1376
+ }
1377
+ if (message.params !== undefined) {
1378
+ Params.encode(message.params, writer.uint32(18).fork()).ldelim();
1379
+ }
1380
+ return writer;
1381
+ },
1382
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
1383
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1384
+ let end = length === undefined ? reader.len : reader.pos + length;
1385
+ const message = createBaseMsgUpdateParams();
1386
+ while (reader.pos < end) {
1387
+ const tag = reader.uint32();
1388
+ switch (tag >>> 3) {
1389
+ case 1:
1390
+ message.authority = reader.string();
1391
+ break;
1392
+ case 2:
1393
+ message.params = Params.decode(reader, reader.uint32());
1394
+ break;
1395
+ default:
1396
+ reader.skipType(tag & 7);
1397
+ break;
1398
+ }
1399
+ }
1400
+ return message;
1401
+ },
1402
+ fromPartial(object: Partial<MsgUpdateParams>): MsgUpdateParams {
1403
+ const message = createBaseMsgUpdateParams();
1404
+ message.authority = object.authority ?? "";
1405
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
1406
+ return message;
1407
+ },
1408
+ fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
1409
+ const message = createBaseMsgUpdateParams();
1410
+ if (object.authority !== undefined && object.authority !== null) {
1411
+ message.authority = object.authority;
1412
+ }
1413
+ if (object.params !== undefined && object.params !== null) {
1414
+ message.params = Params.fromAmino(object.params);
1415
+ }
1416
+ return message;
1417
+ },
1418
+ toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
1419
+ const obj: any = {};
1420
+ obj.authority = message.authority === "" ? undefined : message.authority;
1421
+ obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
1422
+ return obj;
1423
+ },
1424
+ fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
1425
+ return MsgUpdateParams.fromAmino(object.value);
1426
+ },
1427
+ toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
1428
+ return {
1429
+ type: "cosmos-sdk/x/gov/v1/MsgUpdateParams",
1430
+ value: MsgUpdateParams.toAmino(message)
1431
+ };
1432
+ },
1433
+ fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
1434
+ return MsgUpdateParams.decode(message.value);
1435
+ },
1436
+ toProto(message: MsgUpdateParams): Uint8Array {
1437
+ return MsgUpdateParams.encode(message).finish();
1438
+ },
1439
+ toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
1440
+ return {
1441
+ typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
1442
+ value: MsgUpdateParams.encode(message).finish()
1443
+ };
1444
+ }
1445
+ };
1446
+ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
1447
+ return {};
1448
+ }
1449
+ export const MsgUpdateParamsResponse = {
1450
+ typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse",
1451
+ encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1452
+ return writer;
1453
+ },
1454
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
1455
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1456
+ let end = length === undefined ? reader.len : reader.pos + length;
1457
+ const message = createBaseMsgUpdateParamsResponse();
1458
+ while (reader.pos < end) {
1459
+ const tag = reader.uint32();
1460
+ switch (tag >>> 3) {
1461
+ default:
1462
+ reader.skipType(tag & 7);
1463
+ break;
1464
+ }
1465
+ }
1466
+ return message;
1467
+ },
1468
+ fromPartial(_: Partial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
1469
+ const message = createBaseMsgUpdateParamsResponse();
1470
+ return message;
1471
+ },
1472
+ fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
1473
+ const message = createBaseMsgUpdateParamsResponse();
1474
+ return message;
1475
+ },
1476
+ toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
1477
+ const obj: any = {};
1478
+ return obj;
1479
+ },
1480
+ fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
1481
+ return MsgUpdateParamsResponse.fromAmino(object.value);
1482
+ },
1483
+ toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
1484
+ return {
1485
+ type: "cosmos-sdk/v1/MsgUpdateParamsResponse",
1486
+ value: MsgUpdateParamsResponse.toAmino(message)
1487
+ };
1488
+ },
1489
+ fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
1490
+ return MsgUpdateParamsResponse.decode(message.value);
1491
+ },
1492
+ toProto(message: MsgUpdateParamsResponse): Uint8Array {
1493
+ return MsgUpdateParamsResponse.encode(message).finish();
1494
+ },
1495
+ toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
1496
+ return {
1497
+ typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse",
1498
+ value: MsgUpdateParamsResponse.encode(message).finish()
1499
+ };
1500
+ }
1501
+ };
1502
+ function createBaseMsgCancelProposal(): MsgCancelProposal {
1503
+ return {
1504
+ proposalId: BigInt(0),
1505
+ proposer: ""
1506
+ };
1507
+ }
1508
+ export const MsgCancelProposal = {
1509
+ typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
1510
+ encode(message: MsgCancelProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1511
+ if (message.proposalId !== BigInt(0)) {
1512
+ writer.uint32(8).uint64(message.proposalId);
1513
+ }
1514
+ if (message.proposer !== "") {
1515
+ writer.uint32(18).string(message.proposer);
1516
+ }
1517
+ return writer;
1518
+ },
1519
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposal {
1520
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1521
+ let end = length === undefined ? reader.len : reader.pos + length;
1522
+ const message = createBaseMsgCancelProposal();
1523
+ while (reader.pos < end) {
1524
+ const tag = reader.uint32();
1525
+ switch (tag >>> 3) {
1526
+ case 1:
1527
+ message.proposalId = reader.uint64();
1528
+ break;
1529
+ case 2:
1530
+ message.proposer = reader.string();
1531
+ break;
1532
+ default:
1533
+ reader.skipType(tag & 7);
1534
+ break;
1535
+ }
1536
+ }
1537
+ return message;
1538
+ },
1539
+ fromPartial(object: Partial<MsgCancelProposal>): MsgCancelProposal {
1540
+ const message = createBaseMsgCancelProposal();
1541
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
1542
+ message.proposer = object.proposer ?? "";
1543
+ return message;
1544
+ },
1545
+ fromAmino(object: MsgCancelProposalAmino): MsgCancelProposal {
1546
+ const message = createBaseMsgCancelProposal();
1547
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
1548
+ message.proposalId = BigInt(object.proposal_id);
1549
+ }
1550
+ if (object.proposer !== undefined && object.proposer !== null) {
1551
+ message.proposer = object.proposer;
1552
+ }
1553
+ return message;
1554
+ },
1555
+ toAmino(message: MsgCancelProposal): MsgCancelProposalAmino {
1556
+ const obj: any = {};
1557
+ obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
1558
+ obj.proposer = message.proposer === "" ? undefined : message.proposer;
1559
+ return obj;
1560
+ },
1561
+ fromAminoMsg(object: MsgCancelProposalAminoMsg): MsgCancelProposal {
1562
+ return MsgCancelProposal.fromAmino(object.value);
1563
+ },
1564
+ toAminoMsg(message: MsgCancelProposal): MsgCancelProposalAminoMsg {
1565
+ return {
1566
+ type: "cosmos-sdk/v1/MsgCancelProposal",
1567
+ value: MsgCancelProposal.toAmino(message)
1568
+ };
1569
+ },
1570
+ fromProtoMsg(message: MsgCancelProposalProtoMsg): MsgCancelProposal {
1571
+ return MsgCancelProposal.decode(message.value);
1572
+ },
1573
+ toProto(message: MsgCancelProposal): Uint8Array {
1574
+ return MsgCancelProposal.encode(message).finish();
1575
+ },
1576
+ toProtoMsg(message: MsgCancelProposal): MsgCancelProposalProtoMsg {
1577
+ return {
1578
+ typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
1579
+ value: MsgCancelProposal.encode(message).finish()
1580
+ };
1581
+ }
1582
+ };
1583
+ function createBaseMsgCancelProposalResponse(): MsgCancelProposalResponse {
1584
+ return {
1585
+ proposalId: BigInt(0),
1586
+ canceledTime: new Date(),
1587
+ canceledHeight: BigInt(0)
1588
+ };
1589
+ }
1590
+ export const MsgCancelProposalResponse = {
1591
+ typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse",
1592
+ encode(message: MsgCancelProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1593
+ if (message.proposalId !== BigInt(0)) {
1594
+ writer.uint32(8).uint64(message.proposalId);
1595
+ }
1596
+ if (message.canceledTime !== undefined) {
1597
+ Timestamp.encode(toTimestamp(message.canceledTime), writer.uint32(18).fork()).ldelim();
1598
+ }
1599
+ if (message.canceledHeight !== BigInt(0)) {
1600
+ writer.uint32(24).uint64(message.canceledHeight);
1601
+ }
1602
+ return writer;
1603
+ },
1604
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposalResponse {
1605
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1606
+ let end = length === undefined ? reader.len : reader.pos + length;
1607
+ const message = createBaseMsgCancelProposalResponse();
1608
+ while (reader.pos < end) {
1609
+ const tag = reader.uint32();
1610
+ switch (tag >>> 3) {
1611
+ case 1:
1612
+ message.proposalId = reader.uint64();
1613
+ break;
1614
+ case 2:
1615
+ message.canceledTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1616
+ break;
1617
+ case 3:
1618
+ message.canceledHeight = reader.uint64();
1619
+ break;
1620
+ default:
1621
+ reader.skipType(tag & 7);
1622
+ break;
1623
+ }
1624
+ }
1625
+ return message;
1626
+ },
1627
+ fromPartial(object: Partial<MsgCancelProposalResponse>): MsgCancelProposalResponse {
1628
+ const message = createBaseMsgCancelProposalResponse();
1629
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
1630
+ message.canceledTime = object.canceledTime ?? undefined;
1631
+ message.canceledHeight = object.canceledHeight !== undefined && object.canceledHeight !== null ? BigInt(object.canceledHeight.toString()) : BigInt(0);
1632
+ return message;
1633
+ },
1634
+ fromAmino(object: MsgCancelProposalResponseAmino): MsgCancelProposalResponse {
1635
+ const message = createBaseMsgCancelProposalResponse();
1636
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
1637
+ message.proposalId = BigInt(object.proposal_id);
1638
+ }
1639
+ if (object.canceled_time !== undefined && object.canceled_time !== null) {
1640
+ message.canceledTime = fromTimestamp(Timestamp.fromAmino(object.canceled_time));
1641
+ }
1642
+ if (object.canceled_height !== undefined && object.canceled_height !== null) {
1643
+ message.canceledHeight = BigInt(object.canceled_height);
1644
+ }
1645
+ return message;
1646
+ },
1647
+ toAmino(message: MsgCancelProposalResponse): MsgCancelProposalResponseAmino {
1648
+ const obj: any = {};
1649
+ obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
1650
+ obj.canceled_time = message.canceledTime ? Timestamp.toAmino(toTimestamp(message.canceledTime)) : undefined;
1651
+ obj.canceled_height = message.canceledHeight !== BigInt(0) ? message.canceledHeight?.toString() : undefined;
1652
+ return obj;
1653
+ },
1654
+ fromAminoMsg(object: MsgCancelProposalResponseAminoMsg): MsgCancelProposalResponse {
1655
+ return MsgCancelProposalResponse.fromAmino(object.value);
1656
+ },
1657
+ toAminoMsg(message: MsgCancelProposalResponse): MsgCancelProposalResponseAminoMsg {
1658
+ return {
1659
+ type: "cosmos-sdk/v1/MsgCancelProposalResponse",
1660
+ value: MsgCancelProposalResponse.toAmino(message)
1661
+ };
1662
+ },
1663
+ fromProtoMsg(message: MsgCancelProposalResponseProtoMsg): MsgCancelProposalResponse {
1664
+ return MsgCancelProposalResponse.decode(message.value);
1665
+ },
1666
+ toProto(message: MsgCancelProposalResponse): Uint8Array {
1667
+ return MsgCancelProposalResponse.encode(message).finish();
1668
+ },
1669
+ toProtoMsg(message: MsgCancelProposalResponse): MsgCancelProposalResponseProtoMsg {
1670
+ return {
1671
+ typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse",
1672
+ value: MsgCancelProposalResponse.encode(message).finish()
1673
+ };
1674
+ }
1675
+ };
1676
+ export const Cosmos_govv1beta1Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): CommunityPoolSpendProposal | CommunityPoolSpendProposalWithDeposit | TextProposal | ParameterChangeProposal | SoftwareUpgradeProposal | CancelSoftwareUpgradeProposal | StoreCodeProposal | InstantiateContractProposal | InstantiateContract2Proposal | MigrateContractProposal | SudoContractProposal | ExecuteContractProposal | UpdateAdminProposal | ClearAdminProposal | PinCodesProposal | UnpinCodesProposal | UpdateInstantiateConfigProposal | StoreAndInstantiateContractProposal | Any => {
1677
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1678
+ const data = Any.decode(reader, reader.uint32());
1679
+ switch (data.typeUrl) {
1680
+ case "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal":
1681
+ return CommunityPoolSpendProposal.decode(data.value);
1682
+ case "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit":
1683
+ return CommunityPoolSpendProposalWithDeposit.decode(data.value);
1684
+ case "/cosmos.gov.v1beta1.TextProposal":
1685
+ return TextProposal.decode(data.value);
1686
+ case "/cosmos.params.v1beta1.ParameterChangeProposal":
1687
+ return ParameterChangeProposal.decode(data.value);
1688
+ case "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal":
1689
+ return SoftwareUpgradeProposal.decode(data.value);
1690
+ case "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal":
1691
+ return CancelSoftwareUpgradeProposal.decode(data.value);
1692
+ case "/cosmwasm.wasm.v1.StoreCodeProposal":
1693
+ return StoreCodeProposal.decode(data.value);
1694
+ case "/cosmwasm.wasm.v1.InstantiateContractProposal":
1695
+ return InstantiateContractProposal.decode(data.value);
1696
+ case "/cosmwasm.wasm.v1.InstantiateContract2Proposal":
1697
+ return InstantiateContract2Proposal.decode(data.value);
1698
+ case "/cosmwasm.wasm.v1.MigrateContractProposal":
1699
+ return MigrateContractProposal.decode(data.value);
1700
+ case "/cosmwasm.wasm.v1.SudoContractProposal":
1701
+ return SudoContractProposal.decode(data.value);
1702
+ case "/cosmwasm.wasm.v1.ExecuteContractProposal":
1703
+ return ExecuteContractProposal.decode(data.value);
1704
+ case "/cosmwasm.wasm.v1.UpdateAdminProposal":
1705
+ return UpdateAdminProposal.decode(data.value);
1706
+ case "/cosmwasm.wasm.v1.ClearAdminProposal":
1707
+ return ClearAdminProposal.decode(data.value);
1708
+ case "/cosmwasm.wasm.v1.PinCodesProposal":
1709
+ return PinCodesProposal.decode(data.value);
1710
+ case "/cosmwasm.wasm.v1.UnpinCodesProposal":
1711
+ return UnpinCodesProposal.decode(data.value);
1712
+ case "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal":
1713
+ return UpdateInstantiateConfigProposal.decode(data.value);
1714
+ case "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal":
1715
+ return StoreAndInstantiateContractProposal.decode(data.value);
1716
+ default:
1717
+ return data;
1718
+ }
1719
+ };
1720
+ export const Cosmos_govv1beta1Content_FromAmino = (content: AnyAmino): Any => {
1721
+ switch (content.type) {
1722
+ case "cosmos-sdk/v1/CommunityPoolSpendProposal":
1723
+ return Any.fromPartial({
1724
+ typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
1725
+ value: CommunityPoolSpendProposal.encode(CommunityPoolSpendProposal.fromPartial(CommunityPoolSpendProposal.fromAmino(content.value))).finish()
1726
+ });
1727
+ case "cosmos-sdk/v1/CommunityPoolSpendProposalWithDeposit":
1728
+ return Any.fromPartial({
1729
+ typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",
1730
+ value: CommunityPoolSpendProposalWithDeposit.encode(CommunityPoolSpendProposalWithDeposit.fromPartial(CommunityPoolSpendProposalWithDeposit.fromAmino(content.value))).finish()
1731
+ });
1732
+ case "cosmos-sdk/TextProposal":
1733
+ return Any.fromPartial({
1734
+ typeUrl: "/cosmos.gov.v1beta1.TextProposal",
1735
+ value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish()
1736
+ });
1737
+ case "cosmos-sdk/ParameterChangeProposal":
1738
+ return Any.fromPartial({
1739
+ typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal",
1740
+ value: ParameterChangeProposal.encode(ParameterChangeProposal.fromPartial(ParameterChangeProposal.fromAmino(content.value))).finish()
1741
+ });
1742
+ case "cosmos-sdk/SoftwareUpgradeProposal":
1743
+ return Any.fromPartial({
1744
+ typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",
1745
+ value: SoftwareUpgradeProposal.encode(SoftwareUpgradeProposal.fromPartial(SoftwareUpgradeProposal.fromAmino(content.value))).finish()
1746
+ });
1747
+ case "cosmos-sdk/CancelSoftwareUpgradeProposal":
1748
+ return Any.fromPartial({
1749
+ typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",
1750
+ value: CancelSoftwareUpgradeProposal.encode(CancelSoftwareUpgradeProposal.fromPartial(CancelSoftwareUpgradeProposal.fromAmino(content.value))).finish()
1751
+ });
1752
+ case "wasm/StoreCodeProposal":
1753
+ return Any.fromPartial({
1754
+ typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal",
1755
+ value: StoreCodeProposal.encode(StoreCodeProposal.fromPartial(StoreCodeProposal.fromAmino(content.value))).finish()
1756
+ });
1757
+ case "wasm/InstantiateContractProposal":
1758
+ return Any.fromPartial({
1759
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal",
1760
+ value: InstantiateContractProposal.encode(InstantiateContractProposal.fromPartial(InstantiateContractProposal.fromAmino(content.value))).finish()
1761
+ });
1762
+ case "wasm/InstantiateContract2Proposal":
1763
+ return Any.fromPartial({
1764
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal",
1765
+ value: InstantiateContract2Proposal.encode(InstantiateContract2Proposal.fromPartial(InstantiateContract2Proposal.fromAmino(content.value))).finish()
1766
+ });
1767
+ case "wasm/MigrateContractProposal":
1768
+ return Any.fromPartial({
1769
+ typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal",
1770
+ value: MigrateContractProposal.encode(MigrateContractProposal.fromPartial(MigrateContractProposal.fromAmino(content.value))).finish()
1771
+ });
1772
+ case "wasm/SudoContractProposal":
1773
+ return Any.fromPartial({
1774
+ typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal",
1775
+ value: SudoContractProposal.encode(SudoContractProposal.fromPartial(SudoContractProposal.fromAmino(content.value))).finish()
1776
+ });
1777
+ case "wasm/ExecuteContractProposal":
1778
+ return Any.fromPartial({
1779
+ typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal",
1780
+ value: ExecuteContractProposal.encode(ExecuteContractProposal.fromPartial(ExecuteContractProposal.fromAmino(content.value))).finish()
1781
+ });
1782
+ case "wasm/UpdateAdminProposal":
1783
+ return Any.fromPartial({
1784
+ typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal",
1785
+ value: UpdateAdminProposal.encode(UpdateAdminProposal.fromPartial(UpdateAdminProposal.fromAmino(content.value))).finish()
1786
+ });
1787
+ case "wasm/ClearAdminProposal":
1788
+ return Any.fromPartial({
1789
+ typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal",
1790
+ value: ClearAdminProposal.encode(ClearAdminProposal.fromPartial(ClearAdminProposal.fromAmino(content.value))).finish()
1791
+ });
1792
+ case "wasm/PinCodesProposal":
1793
+ return Any.fromPartial({
1794
+ typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal",
1795
+ value: PinCodesProposal.encode(PinCodesProposal.fromPartial(PinCodesProposal.fromAmino(content.value))).finish()
1796
+ });
1797
+ case "wasm/UnpinCodesProposal":
1798
+ return Any.fromPartial({
1799
+ typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal",
1800
+ value: UnpinCodesProposal.encode(UnpinCodesProposal.fromPartial(UnpinCodesProposal.fromAmino(content.value))).finish()
1801
+ });
1802
+ case "wasm/UpdateInstantiateConfigProposal":
1803
+ return Any.fromPartial({
1804
+ typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",
1805
+ value: UpdateInstantiateConfigProposal.encode(UpdateInstantiateConfigProposal.fromPartial(UpdateInstantiateConfigProposal.fromAmino(content.value))).finish()
1806
+ });
1807
+ case "wasm/StoreAndInstantiateContractProposal":
1808
+ return Any.fromPartial({
1809
+ typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal",
1810
+ value: StoreAndInstantiateContractProposal.encode(StoreAndInstantiateContractProposal.fromPartial(StoreAndInstantiateContractProposal.fromAmino(content.value))).finish()
1811
+ });
1812
+ default:
1813
+ return Any.fromAmino(content);
1814
+ }
1815
+ };
1816
+ export const Cosmos_govv1beta1Content_ToAmino = (content: Any) => {
1817
+ switch (content.typeUrl) {
1818
+ case "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal":
1819
+ return {
1820
+ type: "cosmos-sdk/v1/CommunityPoolSpendProposal",
1821
+ value: CommunityPoolSpendProposal.toAmino(CommunityPoolSpendProposal.decode(content.value, undefined))
1822
+ };
1823
+ case "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit":
1824
+ return {
1825
+ type: "cosmos-sdk/v1/CommunityPoolSpendProposalWithDeposit",
1826
+ value: CommunityPoolSpendProposalWithDeposit.toAmino(CommunityPoolSpendProposalWithDeposit.decode(content.value, undefined))
1827
+ };
1828
+ case "/cosmos.gov.v1beta1.TextProposal":
1829
+ return {
1830
+ type: "cosmos-sdk/TextProposal",
1831
+ value: TextProposal.toAmino(TextProposal.decode(content.value, undefined))
1832
+ };
1833
+ case "/cosmos.params.v1beta1.ParameterChangeProposal":
1834
+ return {
1835
+ type: "cosmos-sdk/ParameterChangeProposal",
1836
+ value: ParameterChangeProposal.toAmino(ParameterChangeProposal.decode(content.value, undefined))
1837
+ };
1838
+ case "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal":
1839
+ return {
1840
+ type: "cosmos-sdk/SoftwareUpgradeProposal",
1841
+ value: SoftwareUpgradeProposal.toAmino(SoftwareUpgradeProposal.decode(content.value, undefined))
1842
+ };
1843
+ case "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal":
1844
+ return {
1845
+ type: "cosmos-sdk/CancelSoftwareUpgradeProposal",
1846
+ value: CancelSoftwareUpgradeProposal.toAmino(CancelSoftwareUpgradeProposal.decode(content.value, undefined))
1847
+ };
1848
+ case "/cosmwasm.wasm.v1.StoreCodeProposal":
1849
+ return {
1850
+ type: "wasm/StoreCodeProposal",
1851
+ value: StoreCodeProposal.toAmino(StoreCodeProposal.decode(content.value, undefined))
1852
+ };
1853
+ case "/cosmwasm.wasm.v1.InstantiateContractProposal":
1854
+ return {
1855
+ type: "wasm/InstantiateContractProposal",
1856
+ value: InstantiateContractProposal.toAmino(InstantiateContractProposal.decode(content.value, undefined))
1857
+ };
1858
+ case "/cosmwasm.wasm.v1.InstantiateContract2Proposal":
1859
+ return {
1860
+ type: "wasm/InstantiateContract2Proposal",
1861
+ value: InstantiateContract2Proposal.toAmino(InstantiateContract2Proposal.decode(content.value, undefined))
1862
+ };
1863
+ case "/cosmwasm.wasm.v1.MigrateContractProposal":
1864
+ return {
1865
+ type: "wasm/MigrateContractProposal",
1866
+ value: MigrateContractProposal.toAmino(MigrateContractProposal.decode(content.value, undefined))
1867
+ };
1868
+ case "/cosmwasm.wasm.v1.SudoContractProposal":
1869
+ return {
1870
+ type: "wasm/SudoContractProposal",
1871
+ value: SudoContractProposal.toAmino(SudoContractProposal.decode(content.value, undefined))
1872
+ };
1873
+ case "/cosmwasm.wasm.v1.ExecuteContractProposal":
1874
+ return {
1875
+ type: "wasm/ExecuteContractProposal",
1876
+ value: ExecuteContractProposal.toAmino(ExecuteContractProposal.decode(content.value, undefined))
1877
+ };
1878
+ case "/cosmwasm.wasm.v1.UpdateAdminProposal":
1879
+ return {
1880
+ type: "wasm/UpdateAdminProposal",
1881
+ value: UpdateAdminProposal.toAmino(UpdateAdminProposal.decode(content.value, undefined))
1882
+ };
1883
+ case "/cosmwasm.wasm.v1.ClearAdminProposal":
1884
+ return {
1885
+ type: "wasm/ClearAdminProposal",
1886
+ value: ClearAdminProposal.toAmino(ClearAdminProposal.decode(content.value, undefined))
1887
+ };
1888
+ case "/cosmwasm.wasm.v1.PinCodesProposal":
1889
+ return {
1890
+ type: "wasm/PinCodesProposal",
1891
+ value: PinCodesProposal.toAmino(PinCodesProposal.decode(content.value, undefined))
1892
+ };
1893
+ case "/cosmwasm.wasm.v1.UnpinCodesProposal":
1894
+ return {
1895
+ type: "wasm/UnpinCodesProposal",
1896
+ value: UnpinCodesProposal.toAmino(UnpinCodesProposal.decode(content.value, undefined))
1897
+ };
1898
+ case "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal":
1899
+ return {
1900
+ type: "wasm/UpdateInstantiateConfigProposal",
1901
+ value: UpdateInstantiateConfigProposal.toAmino(UpdateInstantiateConfigProposal.decode(content.value, undefined))
1902
+ };
1903
+ case "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal":
1904
+ return {
1905
+ type: "wasm/StoreAndInstantiateContractProposal",
1906
+ value: StoreAndInstantiateContractProposal.toAmino(StoreAndInstantiateContractProposal.decode(content.value, undefined))
1907
+ };
1908
+ default:
1909
+ return Any.toAmino(content);
1910
+ }
1911
+ };