@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,1889 @@
1
+ //@ts-nocheck
2
+ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
3
+ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
4
+ import { Timestamp } from "../../../google/protobuf/timestamp";
5
+ import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration";
6
+ import { BinaryReader, BinaryWriter } from "../../../binary";
7
+ import { toTimestamp, fromTimestamp } from "../../../helpers";
8
+ /** VoteOption enumerates the valid vote options for a given governance proposal. */
9
+ export enum VoteOption {
10
+ /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
11
+ VOTE_OPTION_UNSPECIFIED = 0,
12
+ /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
13
+ VOTE_OPTION_YES = 1,
14
+ /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
15
+ VOTE_OPTION_ABSTAIN = 2,
16
+ /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
17
+ VOTE_OPTION_NO = 3,
18
+ /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
19
+ VOTE_OPTION_NO_WITH_VETO = 4,
20
+ UNRECOGNIZED = -1,
21
+ }
22
+ export const VoteOptionSDKType = VoteOption;
23
+ export const VoteOptionAmino = VoteOption;
24
+ export function voteOptionFromJSON(object: any): VoteOption {
25
+ switch (object) {
26
+ case 0:
27
+ case "VOTE_OPTION_UNSPECIFIED":
28
+ return VoteOption.VOTE_OPTION_UNSPECIFIED;
29
+ case 1:
30
+ case "VOTE_OPTION_YES":
31
+ return VoteOption.VOTE_OPTION_YES;
32
+ case 2:
33
+ case "VOTE_OPTION_ABSTAIN":
34
+ return VoteOption.VOTE_OPTION_ABSTAIN;
35
+ case 3:
36
+ case "VOTE_OPTION_NO":
37
+ return VoteOption.VOTE_OPTION_NO;
38
+ case 4:
39
+ case "VOTE_OPTION_NO_WITH_VETO":
40
+ return VoteOption.VOTE_OPTION_NO_WITH_VETO;
41
+ case -1:
42
+ case "UNRECOGNIZED":
43
+ default:
44
+ return VoteOption.UNRECOGNIZED;
45
+ }
46
+ }
47
+ export function voteOptionToJSON(object: VoteOption): string {
48
+ switch (object) {
49
+ case VoteOption.VOTE_OPTION_UNSPECIFIED:
50
+ return "VOTE_OPTION_UNSPECIFIED";
51
+ case VoteOption.VOTE_OPTION_YES:
52
+ return "VOTE_OPTION_YES";
53
+ case VoteOption.VOTE_OPTION_ABSTAIN:
54
+ return "VOTE_OPTION_ABSTAIN";
55
+ case VoteOption.VOTE_OPTION_NO:
56
+ return "VOTE_OPTION_NO";
57
+ case VoteOption.VOTE_OPTION_NO_WITH_VETO:
58
+ return "VOTE_OPTION_NO_WITH_VETO";
59
+ case VoteOption.UNRECOGNIZED:
60
+ default:
61
+ return "UNRECOGNIZED";
62
+ }
63
+ }
64
+ /** ProposalStatus enumerates the valid statuses of a proposal. */
65
+ export enum ProposalStatus {
66
+ /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */
67
+ PROPOSAL_STATUS_UNSPECIFIED = 0,
68
+ /**
69
+ * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
70
+ * period.
71
+ */
72
+ PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
73
+ /**
74
+ * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
75
+ * period.
76
+ */
77
+ PROPOSAL_STATUS_VOTING_PERIOD = 2,
78
+ /**
79
+ * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
80
+ * passed.
81
+ */
82
+ PROPOSAL_STATUS_PASSED = 3,
83
+ /**
84
+ * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
85
+ * been rejected.
86
+ */
87
+ PROPOSAL_STATUS_REJECTED = 4,
88
+ /**
89
+ * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
90
+ * failed.
91
+ */
92
+ PROPOSAL_STATUS_FAILED = 5,
93
+ UNRECOGNIZED = -1,
94
+ }
95
+ export const ProposalStatusSDKType = ProposalStatus;
96
+ export const ProposalStatusAmino = ProposalStatus;
97
+ export function proposalStatusFromJSON(object: any): ProposalStatus {
98
+ switch (object) {
99
+ case 0:
100
+ case "PROPOSAL_STATUS_UNSPECIFIED":
101
+ return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
102
+ case 1:
103
+ case "PROPOSAL_STATUS_DEPOSIT_PERIOD":
104
+ return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD;
105
+ case 2:
106
+ case "PROPOSAL_STATUS_VOTING_PERIOD":
107
+ return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD;
108
+ case 3:
109
+ case "PROPOSAL_STATUS_PASSED":
110
+ return ProposalStatus.PROPOSAL_STATUS_PASSED;
111
+ case 4:
112
+ case "PROPOSAL_STATUS_REJECTED":
113
+ return ProposalStatus.PROPOSAL_STATUS_REJECTED;
114
+ case 5:
115
+ case "PROPOSAL_STATUS_FAILED":
116
+ return ProposalStatus.PROPOSAL_STATUS_FAILED;
117
+ case -1:
118
+ case "UNRECOGNIZED":
119
+ default:
120
+ return ProposalStatus.UNRECOGNIZED;
121
+ }
122
+ }
123
+ export function proposalStatusToJSON(object: ProposalStatus): string {
124
+ switch (object) {
125
+ case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
126
+ return "PROPOSAL_STATUS_UNSPECIFIED";
127
+ case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD:
128
+ return "PROPOSAL_STATUS_DEPOSIT_PERIOD";
129
+ case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD:
130
+ return "PROPOSAL_STATUS_VOTING_PERIOD";
131
+ case ProposalStatus.PROPOSAL_STATUS_PASSED:
132
+ return "PROPOSAL_STATUS_PASSED";
133
+ case ProposalStatus.PROPOSAL_STATUS_REJECTED:
134
+ return "PROPOSAL_STATUS_REJECTED";
135
+ case ProposalStatus.PROPOSAL_STATUS_FAILED:
136
+ return "PROPOSAL_STATUS_FAILED";
137
+ case ProposalStatus.UNRECOGNIZED:
138
+ default:
139
+ return "UNRECOGNIZED";
140
+ }
141
+ }
142
+ /** WeightedVoteOption defines a unit of vote for vote split. */
143
+ export interface WeightedVoteOption {
144
+ /** option defines the valid vote options, it must not contain duplicate vote options. */
145
+ option: VoteOption;
146
+ /** weight is the vote weight associated with the vote option. */
147
+ weight: string;
148
+ }
149
+ export interface WeightedVoteOptionProtoMsg {
150
+ typeUrl: "/cosmos.gov.v1.WeightedVoteOption";
151
+ value: Uint8Array;
152
+ }
153
+ /**
154
+ * WeightedVoteOption defines a unit of vote for vote split.
155
+ * @name WeightedVoteOptionAmino
156
+ * @package cosmos.gov.v1
157
+ * @see proto type: cosmos.gov.v1.WeightedVoteOption
158
+ */
159
+ export interface WeightedVoteOptionAmino {
160
+ /**
161
+ * option defines the valid vote options, it must not contain duplicate vote options.
162
+ */
163
+ option?: VoteOption;
164
+ /**
165
+ * weight is the vote weight associated with the vote option.
166
+ */
167
+ weight?: string;
168
+ }
169
+ export interface WeightedVoteOptionAminoMsg {
170
+ type: "cosmos-sdk/v1/WeightedVoteOption";
171
+ value: WeightedVoteOptionAmino;
172
+ }
173
+ /** WeightedVoteOption defines a unit of vote for vote split. */
174
+ export interface WeightedVoteOptionSDKType {
175
+ option: VoteOption;
176
+ weight: string;
177
+ }
178
+ /**
179
+ * Deposit defines an amount deposited by an account address to an active
180
+ * proposal.
181
+ */
182
+ export interface Deposit {
183
+ /** proposal_id defines the unique id of the proposal. */
184
+ proposalId: bigint;
185
+ /** depositor defines the deposit addresses from the proposals. */
186
+ depositor: string;
187
+ /** amount to be deposited by depositor. */
188
+ amount: Coin[];
189
+ }
190
+ export interface DepositProtoMsg {
191
+ typeUrl: "/cosmos.gov.v1.Deposit";
192
+ value: Uint8Array;
193
+ }
194
+ /**
195
+ * Deposit defines an amount deposited by an account address to an active
196
+ * proposal.
197
+ * @name DepositAmino
198
+ * @package cosmos.gov.v1
199
+ * @see proto type: cosmos.gov.v1.Deposit
200
+ */
201
+ export interface DepositAmino {
202
+ /**
203
+ * proposal_id defines the unique id of the proposal.
204
+ */
205
+ proposal_id?: string;
206
+ /**
207
+ * depositor defines the deposit addresses from the proposals.
208
+ */
209
+ depositor?: string;
210
+ /**
211
+ * amount to be deposited by depositor.
212
+ */
213
+ amount: CoinAmino[];
214
+ }
215
+ export interface DepositAminoMsg {
216
+ type: "cosmos-sdk/v1/Deposit";
217
+ value: DepositAmino;
218
+ }
219
+ /**
220
+ * Deposit defines an amount deposited by an account address to an active
221
+ * proposal.
222
+ */
223
+ export interface DepositSDKType {
224
+ proposal_id: bigint;
225
+ depositor: string;
226
+ amount: CoinSDKType[];
227
+ }
228
+ /** Proposal defines the core field members of a governance proposal. */
229
+ export interface Proposal {
230
+ /** id defines the unique id of the proposal. */
231
+ id: bigint;
232
+ /** messages are the arbitrary messages to be executed if the proposal passes. */
233
+ messages: Any[];
234
+ /** status defines the proposal status. */
235
+ status: ProposalStatus;
236
+ /**
237
+ * final_tally_result is the final tally result of the proposal. When
238
+ * querying a proposal via gRPC, this field is not populated until the
239
+ * proposal's voting period has ended.
240
+ */
241
+ finalTallyResult?: TallyResult;
242
+ /** submit_time is the time of proposal submission. */
243
+ submitTime?: Date;
244
+ /** deposit_end_time is the end time for deposition. */
245
+ depositEndTime?: Date;
246
+ /** total_deposit is the total deposit on the proposal. */
247
+ totalDeposit: Coin[];
248
+ /** voting_start_time is the starting time to vote on a proposal. */
249
+ votingStartTime?: Date;
250
+ /** voting_end_time is the end time of voting on a proposal. */
251
+ votingEndTime?: Date;
252
+ /**
253
+ * metadata is any arbitrary metadata attached to the proposal.
254
+ * the recommended format of the metadata is to be found here:
255
+ * https://docs.cosmos.network/v0.47/modules/gov#proposal-3
256
+ */
257
+ metadata: string;
258
+ /** title is the title of the proposal */
259
+ title: string;
260
+ /** summary is a short summary of the proposal */
261
+ summary: string;
262
+ /** proposer is the address of the proposal sumbitter */
263
+ proposer: string;
264
+ /** expedited defines if the proposal is expedited */
265
+ expedited: boolean;
266
+ /** failed_reason defines the reason why the proposal failed */
267
+ failedReason: string;
268
+ }
269
+ export interface ProposalProtoMsg {
270
+ typeUrl: "/cosmos.gov.v1.Proposal";
271
+ value: Uint8Array;
272
+ }
273
+ /**
274
+ * Proposal defines the core field members of a governance proposal.
275
+ * @name ProposalAmino
276
+ * @package cosmos.gov.v1
277
+ * @see proto type: cosmos.gov.v1.Proposal
278
+ */
279
+ export interface ProposalAmino {
280
+ /**
281
+ * id defines the unique id of the proposal.
282
+ */
283
+ id?: string;
284
+ /**
285
+ * messages are the arbitrary messages to be executed if the proposal passes.
286
+ */
287
+ messages?: AnyAmino[];
288
+ /**
289
+ * status defines the proposal status.
290
+ */
291
+ status?: ProposalStatus;
292
+ /**
293
+ * final_tally_result is the final tally result of the proposal. When
294
+ * querying a proposal via gRPC, this field is not populated until the
295
+ * proposal's voting period has ended.
296
+ */
297
+ final_tally_result?: TallyResultAmino;
298
+ /**
299
+ * submit_time is the time of proposal submission.
300
+ */
301
+ submit_time?: string;
302
+ /**
303
+ * deposit_end_time is the end time for deposition.
304
+ */
305
+ deposit_end_time?: string;
306
+ /**
307
+ * total_deposit is the total deposit on the proposal.
308
+ */
309
+ total_deposit: CoinAmino[];
310
+ /**
311
+ * voting_start_time is the starting time to vote on a proposal.
312
+ */
313
+ voting_start_time?: string;
314
+ /**
315
+ * voting_end_time is the end time of voting on a proposal.
316
+ */
317
+ voting_end_time?: string;
318
+ /**
319
+ * metadata is any arbitrary metadata attached to the proposal.
320
+ * the recommended format of the metadata is to be found here:
321
+ * https://docs.cosmos.network/v0.47/modules/gov#proposal-3
322
+ */
323
+ metadata?: string;
324
+ /**
325
+ * title is the title of the proposal
326
+ */
327
+ title?: string;
328
+ /**
329
+ * summary is a short summary of the proposal
330
+ */
331
+ summary?: string;
332
+ /**
333
+ * proposer is the address of the proposal sumbitter
334
+ */
335
+ proposer?: string;
336
+ /**
337
+ * expedited defines if the proposal is expedited
338
+ */
339
+ expedited?: boolean;
340
+ /**
341
+ * failed_reason defines the reason why the proposal failed
342
+ */
343
+ failed_reason?: string;
344
+ }
345
+ export interface ProposalAminoMsg {
346
+ type: "cosmos-sdk/v1/Proposal";
347
+ value: ProposalAmino;
348
+ }
349
+ /** Proposal defines the core field members of a governance proposal. */
350
+ export interface ProposalSDKType {
351
+ id: bigint;
352
+ messages: AnySDKType[];
353
+ status: ProposalStatus;
354
+ final_tally_result?: TallyResultSDKType;
355
+ submit_time?: Date;
356
+ deposit_end_time?: Date;
357
+ total_deposit: CoinSDKType[];
358
+ voting_start_time?: Date;
359
+ voting_end_time?: Date;
360
+ metadata: string;
361
+ title: string;
362
+ summary: string;
363
+ proposer: string;
364
+ expedited: boolean;
365
+ failed_reason: string;
366
+ }
367
+ /** TallyResult defines a standard tally for a governance proposal. */
368
+ export interface TallyResult {
369
+ /** yes_count is the number of yes votes on a proposal. */
370
+ yesCount: string;
371
+ /** abstain_count is the number of abstain votes on a proposal. */
372
+ abstainCount: string;
373
+ /** no_count is the number of no votes on a proposal. */
374
+ noCount: string;
375
+ /** no_with_veto_count is the number of no with veto votes on a proposal. */
376
+ noWithVetoCount: string;
377
+ }
378
+ export interface TallyResultProtoMsg {
379
+ typeUrl: "/cosmos.gov.v1.TallyResult";
380
+ value: Uint8Array;
381
+ }
382
+ /**
383
+ * TallyResult defines a standard tally for a governance proposal.
384
+ * @name TallyResultAmino
385
+ * @package cosmos.gov.v1
386
+ * @see proto type: cosmos.gov.v1.TallyResult
387
+ */
388
+ export interface TallyResultAmino {
389
+ /**
390
+ * yes_count is the number of yes votes on a proposal.
391
+ */
392
+ yes_count?: string;
393
+ /**
394
+ * abstain_count is the number of abstain votes on a proposal.
395
+ */
396
+ abstain_count?: string;
397
+ /**
398
+ * no_count is the number of no votes on a proposal.
399
+ */
400
+ no_count?: string;
401
+ /**
402
+ * no_with_veto_count is the number of no with veto votes on a proposal.
403
+ */
404
+ no_with_veto_count?: string;
405
+ }
406
+ export interface TallyResultAminoMsg {
407
+ type: "cosmos-sdk/v1/TallyResult";
408
+ value: TallyResultAmino;
409
+ }
410
+ /** TallyResult defines a standard tally for a governance proposal. */
411
+ export interface TallyResultSDKType {
412
+ yes_count: string;
413
+ abstain_count: string;
414
+ no_count: string;
415
+ no_with_veto_count: string;
416
+ }
417
+ /**
418
+ * Vote defines a vote on a governance proposal.
419
+ * A Vote consists of a proposal ID, the voter, and the vote option.
420
+ */
421
+ export interface Vote {
422
+ /** proposal_id defines the unique id of the proposal. */
423
+ proposalId: bigint;
424
+ /** voter is the voter address of the proposal. */
425
+ voter: string;
426
+ /** options is the weighted vote options. */
427
+ options: WeightedVoteOption[];
428
+ /**
429
+ * metadata is any arbitrary metadata attached to the vote.
430
+ * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5
431
+ */
432
+ metadata: string;
433
+ }
434
+ export interface VoteProtoMsg {
435
+ typeUrl: "/cosmos.gov.v1.Vote";
436
+ value: Uint8Array;
437
+ }
438
+ /**
439
+ * Vote defines a vote on a governance proposal.
440
+ * A Vote consists of a proposal ID, the voter, and the vote option.
441
+ * @name VoteAmino
442
+ * @package cosmos.gov.v1
443
+ * @see proto type: cosmos.gov.v1.Vote
444
+ */
445
+ export interface VoteAmino {
446
+ /**
447
+ * proposal_id defines the unique id of the proposal.
448
+ */
449
+ proposal_id?: string;
450
+ /**
451
+ * voter is the voter address of the proposal.
452
+ */
453
+ voter?: string;
454
+ /**
455
+ * options is the weighted vote options.
456
+ */
457
+ options?: WeightedVoteOptionAmino[];
458
+ /**
459
+ * metadata is any arbitrary metadata attached to the vote.
460
+ * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5
461
+ */
462
+ metadata?: string;
463
+ }
464
+ export interface VoteAminoMsg {
465
+ type: "cosmos-sdk/v1/Vote";
466
+ value: VoteAmino;
467
+ }
468
+ /**
469
+ * Vote defines a vote on a governance proposal.
470
+ * A Vote consists of a proposal ID, the voter, and the vote option.
471
+ */
472
+ export interface VoteSDKType {
473
+ proposal_id: bigint;
474
+ voter: string;
475
+ options: WeightedVoteOptionSDKType[];
476
+ metadata: string;
477
+ }
478
+ /** DepositParams defines the params for deposits on governance proposals. */
479
+ /** @deprecated */
480
+ export interface DepositParams {
481
+ /** Minimum deposit for a proposal to enter voting period. */
482
+ minDeposit: Coin[];
483
+ /**
484
+ * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
485
+ * months.
486
+ */
487
+ maxDepositPeriod?: Duration;
488
+ }
489
+ export interface DepositParamsProtoMsg {
490
+ typeUrl: "/cosmos.gov.v1.DepositParams";
491
+ value: Uint8Array;
492
+ }
493
+ /**
494
+ * DepositParams defines the params for deposits on governance proposals.
495
+ * @name DepositParamsAmino
496
+ * @package cosmos.gov.v1
497
+ * @see proto type: cosmos.gov.v1.DepositParams
498
+ * @deprecated
499
+ */
500
+ export interface DepositParamsAmino {
501
+ /**
502
+ * Minimum deposit for a proposal to enter voting period.
503
+ */
504
+ min_deposit?: CoinAmino[];
505
+ /**
506
+ * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
507
+ * months.
508
+ */
509
+ max_deposit_period?: DurationAmino;
510
+ }
511
+ export interface DepositParamsAminoMsg {
512
+ type: "cosmos-sdk/v1/DepositParams";
513
+ value: DepositParamsAmino;
514
+ }
515
+ /** DepositParams defines the params for deposits on governance proposals. */
516
+ /** @deprecated */
517
+ export interface DepositParamsSDKType {
518
+ min_deposit: CoinSDKType[];
519
+ max_deposit_period?: DurationSDKType;
520
+ }
521
+ /** VotingParams defines the params for voting on governance proposals. */
522
+ /** @deprecated */
523
+ export interface VotingParams {
524
+ /** Duration of the voting period. */
525
+ votingPeriod?: Duration;
526
+ }
527
+ export interface VotingParamsProtoMsg {
528
+ typeUrl: "/cosmos.gov.v1.VotingParams";
529
+ value: Uint8Array;
530
+ }
531
+ /**
532
+ * VotingParams defines the params for voting on governance proposals.
533
+ * @name VotingParamsAmino
534
+ * @package cosmos.gov.v1
535
+ * @see proto type: cosmos.gov.v1.VotingParams
536
+ * @deprecated
537
+ */
538
+ export interface VotingParamsAmino {
539
+ /**
540
+ * Duration of the voting period.
541
+ */
542
+ voting_period?: DurationAmino;
543
+ }
544
+ export interface VotingParamsAminoMsg {
545
+ type: "cosmos-sdk/v1/VotingParams";
546
+ value: VotingParamsAmino;
547
+ }
548
+ /** VotingParams defines the params for voting on governance proposals. */
549
+ /** @deprecated */
550
+ export interface VotingParamsSDKType {
551
+ voting_period?: DurationSDKType;
552
+ }
553
+ /** TallyParams defines the params for tallying votes on governance proposals. */
554
+ /** @deprecated */
555
+ export interface TallyParams {
556
+ /**
557
+ * Minimum percentage of total stake needed to vote for a result to be
558
+ * considered valid.
559
+ */
560
+ quorum: string;
561
+ /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
562
+ threshold: string;
563
+ /**
564
+ * Minimum value of Veto votes to Total votes ratio for proposal to be
565
+ * vetoed. Default value: 1/3.
566
+ */
567
+ vetoThreshold: string;
568
+ }
569
+ export interface TallyParamsProtoMsg {
570
+ typeUrl: "/cosmos.gov.v1.TallyParams";
571
+ value: Uint8Array;
572
+ }
573
+ /**
574
+ * TallyParams defines the params for tallying votes on governance proposals.
575
+ * @name TallyParamsAmino
576
+ * @package cosmos.gov.v1
577
+ * @see proto type: cosmos.gov.v1.TallyParams
578
+ * @deprecated
579
+ */
580
+ export interface TallyParamsAmino {
581
+ /**
582
+ * Minimum percentage of total stake needed to vote for a result to be
583
+ * considered valid.
584
+ */
585
+ quorum?: string;
586
+ /**
587
+ * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
588
+ */
589
+ threshold?: string;
590
+ /**
591
+ * Minimum value of Veto votes to Total votes ratio for proposal to be
592
+ * vetoed. Default value: 1/3.
593
+ */
594
+ veto_threshold?: string;
595
+ }
596
+ export interface TallyParamsAminoMsg {
597
+ type: "cosmos-sdk/v1/TallyParams";
598
+ value: TallyParamsAmino;
599
+ }
600
+ /** TallyParams defines the params for tallying votes on governance proposals. */
601
+ /** @deprecated */
602
+ export interface TallyParamsSDKType {
603
+ quorum: string;
604
+ threshold: string;
605
+ veto_threshold: string;
606
+ }
607
+ /** Params defines the parameters for the x/gov module. */
608
+ export interface Params {
609
+ /** Minimum deposit for a proposal to enter voting period. */
610
+ minDeposit: Coin[];
611
+ /**
612
+ * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
613
+ * months.
614
+ */
615
+ maxDepositPeriod?: Duration;
616
+ /** Duration of the voting period. */
617
+ votingPeriod?: Duration;
618
+ /**
619
+ * Minimum percentage of total stake needed to vote for a result to be
620
+ * considered valid.
621
+ */
622
+ quorum: string;
623
+ /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
624
+ threshold: string;
625
+ /**
626
+ * Minimum value of Veto votes to Total votes ratio for proposal to be
627
+ * vetoed. Default value: 1/3.
628
+ */
629
+ vetoThreshold: string;
630
+ /** The ratio representing the proportion of the deposit value that must be paid at proposal submission. */
631
+ minInitialDepositRatio: string;
632
+ /** The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. */
633
+ proposalCancelRatio: string;
634
+ /**
635
+ * The address which will receive (proposal_cancel_ratio * deposit) proposal deposits.
636
+ * If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned.
637
+ */
638
+ proposalCancelDest: string;
639
+ /** Duration of the voting period of an expedited proposal. */
640
+ expeditedVotingPeriod?: Duration;
641
+ /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. */
642
+ expeditedThreshold: string;
643
+ /** Minimum expedited deposit for a proposal to enter voting period. */
644
+ expeditedMinDeposit: Coin[];
645
+ /** burn deposits if a proposal does not meet quorum */
646
+ burnVoteQuorum: boolean;
647
+ /** burn deposits if the proposal does not enter voting period */
648
+ burnProposalDepositPrevote: boolean;
649
+ /** burn deposits if quorum with vote type no_veto is met */
650
+ burnVoteVeto: boolean;
651
+ /**
652
+ * The ratio representing the proportion of the deposit value minimum that must be met when making a deposit.
653
+ * Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be
654
+ * required.
655
+ */
656
+ minDepositRatio: string;
657
+ }
658
+ export interface ParamsProtoMsg {
659
+ typeUrl: "/cosmos.gov.v1.Params";
660
+ value: Uint8Array;
661
+ }
662
+ /**
663
+ * Params defines the parameters for the x/gov module.
664
+ * @name ParamsAmino
665
+ * @package cosmos.gov.v1
666
+ * @see proto type: cosmos.gov.v1.Params
667
+ */
668
+ export interface ParamsAmino {
669
+ /**
670
+ * Minimum deposit for a proposal to enter voting period.
671
+ */
672
+ min_deposit: CoinAmino[];
673
+ /**
674
+ * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
675
+ * months.
676
+ */
677
+ max_deposit_period?: DurationAmino;
678
+ /**
679
+ * Duration of the voting period.
680
+ */
681
+ voting_period?: DurationAmino;
682
+ /**
683
+ * Minimum percentage of total stake needed to vote for a result to be
684
+ * considered valid.
685
+ */
686
+ quorum?: string;
687
+ /**
688
+ * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
689
+ */
690
+ threshold?: string;
691
+ /**
692
+ * Minimum value of Veto votes to Total votes ratio for proposal to be
693
+ * vetoed. Default value: 1/3.
694
+ */
695
+ veto_threshold?: string;
696
+ /**
697
+ * The ratio representing the proportion of the deposit value that must be paid at proposal submission.
698
+ */
699
+ min_initial_deposit_ratio?: string;
700
+ /**
701
+ * The cancel ratio which will not be returned back to the depositors when a proposal is cancelled.
702
+ */
703
+ proposal_cancel_ratio?: string;
704
+ /**
705
+ * The address which will receive (proposal_cancel_ratio * deposit) proposal deposits.
706
+ * If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned.
707
+ */
708
+ proposal_cancel_dest?: string;
709
+ /**
710
+ * Duration of the voting period of an expedited proposal.
711
+ */
712
+ expedited_voting_period?: DurationAmino;
713
+ /**
714
+ * Minimum proportion of Yes votes for proposal to pass. Default value: 0.67.
715
+ */
716
+ expedited_threshold?: string;
717
+ /**
718
+ * Minimum expedited deposit for a proposal to enter voting period.
719
+ */
720
+ expedited_min_deposit: CoinAmino[];
721
+ /**
722
+ * burn deposits if a proposal does not meet quorum
723
+ */
724
+ burn_vote_quorum?: boolean;
725
+ /**
726
+ * burn deposits if the proposal does not enter voting period
727
+ */
728
+ burn_proposal_deposit_prevote?: boolean;
729
+ /**
730
+ * burn deposits if quorum with vote type no_veto is met
731
+ */
732
+ burn_vote_veto?: boolean;
733
+ /**
734
+ * The ratio representing the proportion of the deposit value minimum that must be met when making a deposit.
735
+ * Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be
736
+ * required.
737
+ */
738
+ min_deposit_ratio?: string;
739
+ }
740
+ export interface ParamsAminoMsg {
741
+ type: "cosmos-sdk/v1/Params";
742
+ value: ParamsAmino;
743
+ }
744
+ /** Params defines the parameters for the x/gov module. */
745
+ export interface ParamsSDKType {
746
+ min_deposit: CoinSDKType[];
747
+ max_deposit_period?: DurationSDKType;
748
+ voting_period?: DurationSDKType;
749
+ quorum: string;
750
+ threshold: string;
751
+ veto_threshold: string;
752
+ min_initial_deposit_ratio: string;
753
+ proposal_cancel_ratio: string;
754
+ proposal_cancel_dest: string;
755
+ expedited_voting_period?: DurationSDKType;
756
+ expedited_threshold: string;
757
+ expedited_min_deposit: CoinSDKType[];
758
+ burn_vote_quorum: boolean;
759
+ burn_proposal_deposit_prevote: boolean;
760
+ burn_vote_veto: boolean;
761
+ min_deposit_ratio: string;
762
+ }
763
+ function createBaseWeightedVoteOption(): WeightedVoteOption {
764
+ return {
765
+ option: 0,
766
+ weight: ""
767
+ };
768
+ }
769
+ export const WeightedVoteOption = {
770
+ typeUrl: "/cosmos.gov.v1.WeightedVoteOption",
771
+ encode(message: WeightedVoteOption, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
772
+ if (message.option !== 0) {
773
+ writer.uint32(8).int32(message.option);
774
+ }
775
+ if (message.weight !== "") {
776
+ writer.uint32(18).string(message.weight);
777
+ }
778
+ return writer;
779
+ },
780
+ decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption {
781
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
782
+ let end = length === undefined ? reader.len : reader.pos + length;
783
+ const message = createBaseWeightedVoteOption();
784
+ while (reader.pos < end) {
785
+ const tag = reader.uint32();
786
+ switch (tag >>> 3) {
787
+ case 1:
788
+ message.option = reader.int32() as any;
789
+ break;
790
+ case 2:
791
+ message.weight = reader.string();
792
+ break;
793
+ default:
794
+ reader.skipType(tag & 7);
795
+ break;
796
+ }
797
+ }
798
+ return message;
799
+ },
800
+ fromPartial(object: Partial<WeightedVoteOption>): WeightedVoteOption {
801
+ const message = createBaseWeightedVoteOption();
802
+ message.option = object.option ?? 0;
803
+ message.weight = object.weight ?? "";
804
+ return message;
805
+ },
806
+ fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption {
807
+ const message = createBaseWeightedVoteOption();
808
+ if (object.option !== undefined && object.option !== null) {
809
+ message.option = object.option;
810
+ }
811
+ if (object.weight !== undefined && object.weight !== null) {
812
+ message.weight = object.weight;
813
+ }
814
+ return message;
815
+ },
816
+ toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino {
817
+ const obj: any = {};
818
+ obj.option = message.option === 0 ? undefined : message.option;
819
+ obj.weight = message.weight === "" ? undefined : message.weight;
820
+ return obj;
821
+ },
822
+ fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption {
823
+ return WeightedVoteOption.fromAmino(object.value);
824
+ },
825
+ toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg {
826
+ return {
827
+ type: "cosmos-sdk/v1/WeightedVoteOption",
828
+ value: WeightedVoteOption.toAmino(message)
829
+ };
830
+ },
831
+ fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption {
832
+ return WeightedVoteOption.decode(message.value);
833
+ },
834
+ toProto(message: WeightedVoteOption): Uint8Array {
835
+ return WeightedVoteOption.encode(message).finish();
836
+ },
837
+ toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg {
838
+ return {
839
+ typeUrl: "/cosmos.gov.v1.WeightedVoteOption",
840
+ value: WeightedVoteOption.encode(message).finish()
841
+ };
842
+ }
843
+ };
844
+ function createBaseDeposit(): Deposit {
845
+ return {
846
+ proposalId: BigInt(0),
847
+ depositor: "",
848
+ amount: []
849
+ };
850
+ }
851
+ export const Deposit = {
852
+ typeUrl: "/cosmos.gov.v1.Deposit",
853
+ encode(message: Deposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
854
+ if (message.proposalId !== BigInt(0)) {
855
+ writer.uint32(8).uint64(message.proposalId);
856
+ }
857
+ if (message.depositor !== "") {
858
+ writer.uint32(18).string(message.depositor);
859
+ }
860
+ for (const v of message.amount) {
861
+ Coin.encode(v!, writer.uint32(26).fork()).ldelim();
862
+ }
863
+ return writer;
864
+ },
865
+ decode(input: BinaryReader | Uint8Array, length?: number): Deposit {
866
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
867
+ let end = length === undefined ? reader.len : reader.pos + length;
868
+ const message = createBaseDeposit();
869
+ while (reader.pos < end) {
870
+ const tag = reader.uint32();
871
+ switch (tag >>> 3) {
872
+ case 1:
873
+ message.proposalId = reader.uint64();
874
+ break;
875
+ case 2:
876
+ message.depositor = reader.string();
877
+ break;
878
+ case 3:
879
+ message.amount.push(Coin.decode(reader, reader.uint32()));
880
+ break;
881
+ default:
882
+ reader.skipType(tag & 7);
883
+ break;
884
+ }
885
+ }
886
+ return message;
887
+ },
888
+ fromPartial(object: Partial<Deposit>): Deposit {
889
+ const message = createBaseDeposit();
890
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
891
+ message.depositor = object.depositor ?? "";
892
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
893
+ return message;
894
+ },
895
+ fromAmino(object: DepositAmino): Deposit {
896
+ const message = createBaseDeposit();
897
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
898
+ message.proposalId = BigInt(object.proposal_id);
899
+ }
900
+ if (object.depositor !== undefined && object.depositor !== null) {
901
+ message.depositor = object.depositor;
902
+ }
903
+ message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
904
+ return message;
905
+ },
906
+ toAmino(message: Deposit): DepositAmino {
907
+ const obj: any = {};
908
+ obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
909
+ obj.depositor = message.depositor === "" ? undefined : message.depositor;
910
+ if (message.amount) {
911
+ obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
912
+ } else {
913
+ obj.amount = message.amount;
914
+ }
915
+ return obj;
916
+ },
917
+ fromAminoMsg(object: DepositAminoMsg): Deposit {
918
+ return Deposit.fromAmino(object.value);
919
+ },
920
+ toAminoMsg(message: Deposit): DepositAminoMsg {
921
+ return {
922
+ type: "cosmos-sdk/v1/Deposit",
923
+ value: Deposit.toAmino(message)
924
+ };
925
+ },
926
+ fromProtoMsg(message: DepositProtoMsg): Deposit {
927
+ return Deposit.decode(message.value);
928
+ },
929
+ toProto(message: Deposit): Uint8Array {
930
+ return Deposit.encode(message).finish();
931
+ },
932
+ toProtoMsg(message: Deposit): DepositProtoMsg {
933
+ return {
934
+ typeUrl: "/cosmos.gov.v1.Deposit",
935
+ value: Deposit.encode(message).finish()
936
+ };
937
+ }
938
+ };
939
+ function createBaseProposal(): Proposal {
940
+ return {
941
+ id: BigInt(0),
942
+ messages: [],
943
+ status: 0,
944
+ finalTallyResult: undefined,
945
+ submitTime: undefined,
946
+ depositEndTime: undefined,
947
+ totalDeposit: [],
948
+ votingStartTime: undefined,
949
+ votingEndTime: undefined,
950
+ metadata: "",
951
+ title: "",
952
+ summary: "",
953
+ proposer: "",
954
+ expedited: false,
955
+ failedReason: ""
956
+ };
957
+ }
958
+ export const Proposal = {
959
+ typeUrl: "/cosmos.gov.v1.Proposal",
960
+ encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
961
+ if (message.id !== BigInt(0)) {
962
+ writer.uint32(8).uint64(message.id);
963
+ }
964
+ for (const v of message.messages) {
965
+ Any.encode(v!, writer.uint32(18).fork()).ldelim();
966
+ }
967
+ if (message.status !== 0) {
968
+ writer.uint32(24).int32(message.status);
969
+ }
970
+ if (message.finalTallyResult !== undefined) {
971
+ TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim();
972
+ }
973
+ if (message.submitTime !== undefined) {
974
+ Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
975
+ }
976
+ if (message.depositEndTime !== undefined) {
977
+ Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim();
978
+ }
979
+ for (const v of message.totalDeposit) {
980
+ Coin.encode(v!, writer.uint32(58).fork()).ldelim();
981
+ }
982
+ if (message.votingStartTime !== undefined) {
983
+ Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim();
984
+ }
985
+ if (message.votingEndTime !== undefined) {
986
+ Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim();
987
+ }
988
+ if (message.metadata !== "") {
989
+ writer.uint32(82).string(message.metadata);
990
+ }
991
+ if (message.title !== "") {
992
+ writer.uint32(90).string(message.title);
993
+ }
994
+ if (message.summary !== "") {
995
+ writer.uint32(98).string(message.summary);
996
+ }
997
+ if (message.proposer !== "") {
998
+ writer.uint32(106).string(message.proposer);
999
+ }
1000
+ if (message.expedited === true) {
1001
+ writer.uint32(112).bool(message.expedited);
1002
+ }
1003
+ if (message.failedReason !== "") {
1004
+ writer.uint32(122).string(message.failedReason);
1005
+ }
1006
+ return writer;
1007
+ },
1008
+ decode(input: BinaryReader | Uint8Array, length?: number): Proposal {
1009
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1010
+ let end = length === undefined ? reader.len : reader.pos + length;
1011
+ const message = createBaseProposal();
1012
+ while (reader.pos < end) {
1013
+ const tag = reader.uint32();
1014
+ switch (tag >>> 3) {
1015
+ case 1:
1016
+ message.id = reader.uint64();
1017
+ break;
1018
+ case 2:
1019
+ message.messages.push(Any.decode(reader, reader.uint32()));
1020
+ break;
1021
+ case 3:
1022
+ message.status = reader.int32() as any;
1023
+ break;
1024
+ case 4:
1025
+ message.finalTallyResult = TallyResult.decode(reader, reader.uint32());
1026
+ break;
1027
+ case 5:
1028
+ message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1029
+ break;
1030
+ case 6:
1031
+ message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1032
+ break;
1033
+ case 7:
1034
+ message.totalDeposit.push(Coin.decode(reader, reader.uint32()));
1035
+ break;
1036
+ case 8:
1037
+ message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1038
+ break;
1039
+ case 9:
1040
+ message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1041
+ break;
1042
+ case 10:
1043
+ message.metadata = reader.string();
1044
+ break;
1045
+ case 11:
1046
+ message.title = reader.string();
1047
+ break;
1048
+ case 12:
1049
+ message.summary = reader.string();
1050
+ break;
1051
+ case 13:
1052
+ message.proposer = reader.string();
1053
+ break;
1054
+ case 14:
1055
+ message.expedited = reader.bool();
1056
+ break;
1057
+ case 15:
1058
+ message.failedReason = reader.string();
1059
+ break;
1060
+ default:
1061
+ reader.skipType(tag & 7);
1062
+ break;
1063
+ }
1064
+ }
1065
+ return message;
1066
+ },
1067
+ fromPartial(object: Partial<Proposal>): Proposal {
1068
+ const message = createBaseProposal();
1069
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
1070
+ message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
1071
+ message.status = object.status ?? 0;
1072
+ message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined;
1073
+ message.submitTime = object.submitTime ?? undefined;
1074
+ message.depositEndTime = object.depositEndTime ?? undefined;
1075
+ message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || [];
1076
+ message.votingStartTime = object.votingStartTime ?? undefined;
1077
+ message.votingEndTime = object.votingEndTime ?? undefined;
1078
+ message.metadata = object.metadata ?? "";
1079
+ message.title = object.title ?? "";
1080
+ message.summary = object.summary ?? "";
1081
+ message.proposer = object.proposer ?? "";
1082
+ message.expedited = object.expedited ?? false;
1083
+ message.failedReason = object.failedReason ?? "";
1084
+ return message;
1085
+ },
1086
+ fromAmino(object: ProposalAmino): Proposal {
1087
+ const message = createBaseProposal();
1088
+ if (object.id !== undefined && object.id !== null) {
1089
+ message.id = BigInt(object.id);
1090
+ }
1091
+ message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
1092
+ if (object.status !== undefined && object.status !== null) {
1093
+ message.status = object.status;
1094
+ }
1095
+ if (object.final_tally_result !== undefined && object.final_tally_result !== null) {
1096
+ message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result);
1097
+ }
1098
+ if (object.submit_time !== undefined && object.submit_time !== null) {
1099
+ message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time));
1100
+ }
1101
+ if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) {
1102
+ message.depositEndTime = fromTimestamp(Timestamp.fromAmino(object.deposit_end_time));
1103
+ }
1104
+ message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || [];
1105
+ if (object.voting_start_time !== undefined && object.voting_start_time !== null) {
1106
+ message.votingStartTime = fromTimestamp(Timestamp.fromAmino(object.voting_start_time));
1107
+ }
1108
+ if (object.voting_end_time !== undefined && object.voting_end_time !== null) {
1109
+ message.votingEndTime = fromTimestamp(Timestamp.fromAmino(object.voting_end_time));
1110
+ }
1111
+ if (object.metadata !== undefined && object.metadata !== null) {
1112
+ message.metadata = object.metadata;
1113
+ }
1114
+ if (object.title !== undefined && object.title !== null) {
1115
+ message.title = object.title;
1116
+ }
1117
+ if (object.summary !== undefined && object.summary !== null) {
1118
+ message.summary = object.summary;
1119
+ }
1120
+ if (object.proposer !== undefined && object.proposer !== null) {
1121
+ message.proposer = object.proposer;
1122
+ }
1123
+ if (object.expedited !== undefined && object.expedited !== null) {
1124
+ message.expedited = object.expedited;
1125
+ }
1126
+ if (object.failed_reason !== undefined && object.failed_reason !== null) {
1127
+ message.failedReason = object.failed_reason;
1128
+ }
1129
+ return message;
1130
+ },
1131
+ toAmino(message: Proposal): ProposalAmino {
1132
+ const obj: any = {};
1133
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
1134
+ if (message.messages) {
1135
+ obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
1136
+ } else {
1137
+ obj.messages = message.messages;
1138
+ }
1139
+ obj.status = message.status === 0 ? undefined : message.status;
1140
+ obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined;
1141
+ obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined;
1142
+ obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined;
1143
+ if (message.totalDeposit) {
1144
+ obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined);
1145
+ } else {
1146
+ obj.total_deposit = message.totalDeposit;
1147
+ }
1148
+ obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined;
1149
+ obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined;
1150
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
1151
+ obj.title = message.title === "" ? undefined : message.title;
1152
+ obj.summary = message.summary === "" ? undefined : message.summary;
1153
+ obj.proposer = message.proposer === "" ? undefined : message.proposer;
1154
+ obj.expedited = message.expedited === false ? undefined : message.expedited;
1155
+ obj.failed_reason = message.failedReason === "" ? undefined : message.failedReason;
1156
+ return obj;
1157
+ },
1158
+ fromAminoMsg(object: ProposalAminoMsg): Proposal {
1159
+ return Proposal.fromAmino(object.value);
1160
+ },
1161
+ toAminoMsg(message: Proposal): ProposalAminoMsg {
1162
+ return {
1163
+ type: "cosmos-sdk/v1/Proposal",
1164
+ value: Proposal.toAmino(message)
1165
+ };
1166
+ },
1167
+ fromProtoMsg(message: ProposalProtoMsg): Proposal {
1168
+ return Proposal.decode(message.value);
1169
+ },
1170
+ toProto(message: Proposal): Uint8Array {
1171
+ return Proposal.encode(message).finish();
1172
+ },
1173
+ toProtoMsg(message: Proposal): ProposalProtoMsg {
1174
+ return {
1175
+ typeUrl: "/cosmos.gov.v1.Proposal",
1176
+ value: Proposal.encode(message).finish()
1177
+ };
1178
+ }
1179
+ };
1180
+ function createBaseTallyResult(): TallyResult {
1181
+ return {
1182
+ yesCount: "",
1183
+ abstainCount: "",
1184
+ noCount: "",
1185
+ noWithVetoCount: ""
1186
+ };
1187
+ }
1188
+ export const TallyResult = {
1189
+ typeUrl: "/cosmos.gov.v1.TallyResult",
1190
+ encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1191
+ if (message.yesCount !== "") {
1192
+ writer.uint32(10).string(message.yesCount);
1193
+ }
1194
+ if (message.abstainCount !== "") {
1195
+ writer.uint32(18).string(message.abstainCount);
1196
+ }
1197
+ if (message.noCount !== "") {
1198
+ writer.uint32(26).string(message.noCount);
1199
+ }
1200
+ if (message.noWithVetoCount !== "") {
1201
+ writer.uint32(34).string(message.noWithVetoCount);
1202
+ }
1203
+ return writer;
1204
+ },
1205
+ decode(input: BinaryReader | Uint8Array, length?: number): TallyResult {
1206
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1207
+ let end = length === undefined ? reader.len : reader.pos + length;
1208
+ const message = createBaseTallyResult();
1209
+ while (reader.pos < end) {
1210
+ const tag = reader.uint32();
1211
+ switch (tag >>> 3) {
1212
+ case 1:
1213
+ message.yesCount = reader.string();
1214
+ break;
1215
+ case 2:
1216
+ message.abstainCount = reader.string();
1217
+ break;
1218
+ case 3:
1219
+ message.noCount = reader.string();
1220
+ break;
1221
+ case 4:
1222
+ message.noWithVetoCount = reader.string();
1223
+ break;
1224
+ default:
1225
+ reader.skipType(tag & 7);
1226
+ break;
1227
+ }
1228
+ }
1229
+ return message;
1230
+ },
1231
+ fromPartial(object: Partial<TallyResult>): TallyResult {
1232
+ const message = createBaseTallyResult();
1233
+ message.yesCount = object.yesCount ?? "";
1234
+ message.abstainCount = object.abstainCount ?? "";
1235
+ message.noCount = object.noCount ?? "";
1236
+ message.noWithVetoCount = object.noWithVetoCount ?? "";
1237
+ return message;
1238
+ },
1239
+ fromAmino(object: TallyResultAmino): TallyResult {
1240
+ const message = createBaseTallyResult();
1241
+ if (object.yes_count !== undefined && object.yes_count !== null) {
1242
+ message.yesCount = object.yes_count;
1243
+ }
1244
+ if (object.abstain_count !== undefined && object.abstain_count !== null) {
1245
+ message.abstainCount = object.abstain_count;
1246
+ }
1247
+ if (object.no_count !== undefined && object.no_count !== null) {
1248
+ message.noCount = object.no_count;
1249
+ }
1250
+ if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) {
1251
+ message.noWithVetoCount = object.no_with_veto_count;
1252
+ }
1253
+ return message;
1254
+ },
1255
+ toAmino(message: TallyResult): TallyResultAmino {
1256
+ const obj: any = {};
1257
+ obj.yes_count = message.yesCount === "" ? undefined : message.yesCount;
1258
+ obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount;
1259
+ obj.no_count = message.noCount === "" ? undefined : message.noCount;
1260
+ obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount;
1261
+ return obj;
1262
+ },
1263
+ fromAminoMsg(object: TallyResultAminoMsg): TallyResult {
1264
+ return TallyResult.fromAmino(object.value);
1265
+ },
1266
+ toAminoMsg(message: TallyResult): TallyResultAminoMsg {
1267
+ return {
1268
+ type: "cosmos-sdk/v1/TallyResult",
1269
+ value: TallyResult.toAmino(message)
1270
+ };
1271
+ },
1272
+ fromProtoMsg(message: TallyResultProtoMsg): TallyResult {
1273
+ return TallyResult.decode(message.value);
1274
+ },
1275
+ toProto(message: TallyResult): Uint8Array {
1276
+ return TallyResult.encode(message).finish();
1277
+ },
1278
+ toProtoMsg(message: TallyResult): TallyResultProtoMsg {
1279
+ return {
1280
+ typeUrl: "/cosmos.gov.v1.TallyResult",
1281
+ value: TallyResult.encode(message).finish()
1282
+ };
1283
+ }
1284
+ };
1285
+ function createBaseVote(): Vote {
1286
+ return {
1287
+ proposalId: BigInt(0),
1288
+ voter: "",
1289
+ options: [],
1290
+ metadata: ""
1291
+ };
1292
+ }
1293
+ export const Vote = {
1294
+ typeUrl: "/cosmos.gov.v1.Vote",
1295
+ encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1296
+ if (message.proposalId !== BigInt(0)) {
1297
+ writer.uint32(8).uint64(message.proposalId);
1298
+ }
1299
+ if (message.voter !== "") {
1300
+ writer.uint32(18).string(message.voter);
1301
+ }
1302
+ for (const v of message.options) {
1303
+ WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim();
1304
+ }
1305
+ if (message.metadata !== "") {
1306
+ writer.uint32(42).string(message.metadata);
1307
+ }
1308
+ return writer;
1309
+ },
1310
+ decode(input: BinaryReader | Uint8Array, length?: number): Vote {
1311
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1312
+ let end = length === undefined ? reader.len : reader.pos + length;
1313
+ const message = createBaseVote();
1314
+ while (reader.pos < end) {
1315
+ const tag = reader.uint32();
1316
+ switch (tag >>> 3) {
1317
+ case 1:
1318
+ message.proposalId = reader.uint64();
1319
+ break;
1320
+ case 2:
1321
+ message.voter = reader.string();
1322
+ break;
1323
+ case 4:
1324
+ message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
1325
+ break;
1326
+ case 5:
1327
+ message.metadata = reader.string();
1328
+ break;
1329
+ default:
1330
+ reader.skipType(tag & 7);
1331
+ break;
1332
+ }
1333
+ }
1334
+ return message;
1335
+ },
1336
+ fromPartial(object: Partial<Vote>): Vote {
1337
+ const message = createBaseVote();
1338
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
1339
+ message.voter = object.voter ?? "";
1340
+ message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || [];
1341
+ message.metadata = object.metadata ?? "";
1342
+ return message;
1343
+ },
1344
+ fromAmino(object: VoteAmino): Vote {
1345
+ const message = createBaseVote();
1346
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
1347
+ message.proposalId = BigInt(object.proposal_id);
1348
+ }
1349
+ if (object.voter !== undefined && object.voter !== null) {
1350
+ message.voter = object.voter;
1351
+ }
1352
+ message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || [];
1353
+ if (object.metadata !== undefined && object.metadata !== null) {
1354
+ message.metadata = object.metadata;
1355
+ }
1356
+ return message;
1357
+ },
1358
+ toAmino(message: Vote): VoteAmino {
1359
+ const obj: any = {};
1360
+ obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
1361
+ obj.voter = message.voter === "" ? undefined : message.voter;
1362
+ if (message.options) {
1363
+ obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined);
1364
+ } else {
1365
+ obj.options = message.options;
1366
+ }
1367
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
1368
+ return obj;
1369
+ },
1370
+ fromAminoMsg(object: VoteAminoMsg): Vote {
1371
+ return Vote.fromAmino(object.value);
1372
+ },
1373
+ toAminoMsg(message: Vote): VoteAminoMsg {
1374
+ return {
1375
+ type: "cosmos-sdk/v1/Vote",
1376
+ value: Vote.toAmino(message)
1377
+ };
1378
+ },
1379
+ fromProtoMsg(message: VoteProtoMsg): Vote {
1380
+ return Vote.decode(message.value);
1381
+ },
1382
+ toProto(message: Vote): Uint8Array {
1383
+ return Vote.encode(message).finish();
1384
+ },
1385
+ toProtoMsg(message: Vote): VoteProtoMsg {
1386
+ return {
1387
+ typeUrl: "/cosmos.gov.v1.Vote",
1388
+ value: Vote.encode(message).finish()
1389
+ };
1390
+ }
1391
+ };
1392
+ function createBaseDepositParams(): DepositParams {
1393
+ return {
1394
+ minDeposit: [],
1395
+ maxDepositPeriod: undefined
1396
+ };
1397
+ }
1398
+ export const DepositParams = {
1399
+ typeUrl: "/cosmos.gov.v1.DepositParams",
1400
+ encode(message: DepositParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1401
+ for (const v of message.minDeposit) {
1402
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
1403
+ }
1404
+ if (message.maxDepositPeriod !== undefined) {
1405
+ Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
1406
+ }
1407
+ return writer;
1408
+ },
1409
+ decode(input: BinaryReader | Uint8Array, length?: number): DepositParams {
1410
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1411
+ let end = length === undefined ? reader.len : reader.pos + length;
1412
+ const message = createBaseDepositParams();
1413
+ while (reader.pos < end) {
1414
+ const tag = reader.uint32();
1415
+ switch (tag >>> 3) {
1416
+ case 1:
1417
+ message.minDeposit.push(Coin.decode(reader, reader.uint32()));
1418
+ break;
1419
+ case 2:
1420
+ message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
1421
+ break;
1422
+ default:
1423
+ reader.skipType(tag & 7);
1424
+ break;
1425
+ }
1426
+ }
1427
+ return message;
1428
+ },
1429
+ fromPartial(object: Partial<DepositParams>): DepositParams {
1430
+ const message = createBaseDepositParams();
1431
+ message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || [];
1432
+ message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined;
1433
+ return message;
1434
+ },
1435
+ fromAmino(object: DepositParamsAmino): DepositParams {
1436
+ const message = createBaseDepositParams();
1437
+ message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || [];
1438
+ if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) {
1439
+ message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period);
1440
+ }
1441
+ return message;
1442
+ },
1443
+ toAmino(message: DepositParams): DepositParamsAmino {
1444
+ const obj: any = {};
1445
+ if (message.minDeposit) {
1446
+ obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined);
1447
+ } else {
1448
+ obj.min_deposit = message.minDeposit;
1449
+ }
1450
+ obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined;
1451
+ return obj;
1452
+ },
1453
+ fromAminoMsg(object: DepositParamsAminoMsg): DepositParams {
1454
+ return DepositParams.fromAmino(object.value);
1455
+ },
1456
+ toAminoMsg(message: DepositParams): DepositParamsAminoMsg {
1457
+ return {
1458
+ type: "cosmos-sdk/v1/DepositParams",
1459
+ value: DepositParams.toAmino(message)
1460
+ };
1461
+ },
1462
+ fromProtoMsg(message: DepositParamsProtoMsg): DepositParams {
1463
+ return DepositParams.decode(message.value);
1464
+ },
1465
+ toProto(message: DepositParams): Uint8Array {
1466
+ return DepositParams.encode(message).finish();
1467
+ },
1468
+ toProtoMsg(message: DepositParams): DepositParamsProtoMsg {
1469
+ return {
1470
+ typeUrl: "/cosmos.gov.v1.DepositParams",
1471
+ value: DepositParams.encode(message).finish()
1472
+ };
1473
+ }
1474
+ };
1475
+ function createBaseVotingParams(): VotingParams {
1476
+ return {
1477
+ votingPeriod: undefined
1478
+ };
1479
+ }
1480
+ export const VotingParams = {
1481
+ typeUrl: "/cosmos.gov.v1.VotingParams",
1482
+ encode(message: VotingParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1483
+ if (message.votingPeriod !== undefined) {
1484
+ Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
1485
+ }
1486
+ return writer;
1487
+ },
1488
+ decode(input: BinaryReader | Uint8Array, length?: number): VotingParams {
1489
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1490
+ let end = length === undefined ? reader.len : reader.pos + length;
1491
+ const message = createBaseVotingParams();
1492
+ while (reader.pos < end) {
1493
+ const tag = reader.uint32();
1494
+ switch (tag >>> 3) {
1495
+ case 1:
1496
+ message.votingPeriod = Duration.decode(reader, reader.uint32());
1497
+ break;
1498
+ default:
1499
+ reader.skipType(tag & 7);
1500
+ break;
1501
+ }
1502
+ }
1503
+ return message;
1504
+ },
1505
+ fromPartial(object: Partial<VotingParams>): VotingParams {
1506
+ const message = createBaseVotingParams();
1507
+ message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined;
1508
+ return message;
1509
+ },
1510
+ fromAmino(object: VotingParamsAmino): VotingParams {
1511
+ const message = createBaseVotingParams();
1512
+ if (object.voting_period !== undefined && object.voting_period !== null) {
1513
+ message.votingPeriod = Duration.fromAmino(object.voting_period);
1514
+ }
1515
+ return message;
1516
+ },
1517
+ toAmino(message: VotingParams): VotingParamsAmino {
1518
+ const obj: any = {};
1519
+ obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined;
1520
+ return obj;
1521
+ },
1522
+ fromAminoMsg(object: VotingParamsAminoMsg): VotingParams {
1523
+ return VotingParams.fromAmino(object.value);
1524
+ },
1525
+ toAminoMsg(message: VotingParams): VotingParamsAminoMsg {
1526
+ return {
1527
+ type: "cosmos-sdk/v1/VotingParams",
1528
+ value: VotingParams.toAmino(message)
1529
+ };
1530
+ },
1531
+ fromProtoMsg(message: VotingParamsProtoMsg): VotingParams {
1532
+ return VotingParams.decode(message.value);
1533
+ },
1534
+ toProto(message: VotingParams): Uint8Array {
1535
+ return VotingParams.encode(message).finish();
1536
+ },
1537
+ toProtoMsg(message: VotingParams): VotingParamsProtoMsg {
1538
+ return {
1539
+ typeUrl: "/cosmos.gov.v1.VotingParams",
1540
+ value: VotingParams.encode(message).finish()
1541
+ };
1542
+ }
1543
+ };
1544
+ function createBaseTallyParams(): TallyParams {
1545
+ return {
1546
+ quorum: "",
1547
+ threshold: "",
1548
+ vetoThreshold: ""
1549
+ };
1550
+ }
1551
+ export const TallyParams = {
1552
+ typeUrl: "/cosmos.gov.v1.TallyParams",
1553
+ encode(message: TallyParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1554
+ if (message.quorum !== "") {
1555
+ writer.uint32(10).string(message.quorum);
1556
+ }
1557
+ if (message.threshold !== "") {
1558
+ writer.uint32(18).string(message.threshold);
1559
+ }
1560
+ if (message.vetoThreshold !== "") {
1561
+ writer.uint32(26).string(message.vetoThreshold);
1562
+ }
1563
+ return writer;
1564
+ },
1565
+ decode(input: BinaryReader | Uint8Array, length?: number): TallyParams {
1566
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1567
+ let end = length === undefined ? reader.len : reader.pos + length;
1568
+ const message = createBaseTallyParams();
1569
+ while (reader.pos < end) {
1570
+ const tag = reader.uint32();
1571
+ switch (tag >>> 3) {
1572
+ case 1:
1573
+ message.quorum = reader.string();
1574
+ break;
1575
+ case 2:
1576
+ message.threshold = reader.string();
1577
+ break;
1578
+ case 3:
1579
+ message.vetoThreshold = reader.string();
1580
+ break;
1581
+ default:
1582
+ reader.skipType(tag & 7);
1583
+ break;
1584
+ }
1585
+ }
1586
+ return message;
1587
+ },
1588
+ fromPartial(object: Partial<TallyParams>): TallyParams {
1589
+ const message = createBaseTallyParams();
1590
+ message.quorum = object.quorum ?? "";
1591
+ message.threshold = object.threshold ?? "";
1592
+ message.vetoThreshold = object.vetoThreshold ?? "";
1593
+ return message;
1594
+ },
1595
+ fromAmino(object: TallyParamsAmino): TallyParams {
1596
+ const message = createBaseTallyParams();
1597
+ if (object.quorum !== undefined && object.quorum !== null) {
1598
+ message.quorum = object.quorum;
1599
+ }
1600
+ if (object.threshold !== undefined && object.threshold !== null) {
1601
+ message.threshold = object.threshold;
1602
+ }
1603
+ if (object.veto_threshold !== undefined && object.veto_threshold !== null) {
1604
+ message.vetoThreshold = object.veto_threshold;
1605
+ }
1606
+ return message;
1607
+ },
1608
+ toAmino(message: TallyParams): TallyParamsAmino {
1609
+ const obj: any = {};
1610
+ obj.quorum = message.quorum === "" ? undefined : message.quorum;
1611
+ obj.threshold = message.threshold === "" ? undefined : message.threshold;
1612
+ obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold;
1613
+ return obj;
1614
+ },
1615
+ fromAminoMsg(object: TallyParamsAminoMsg): TallyParams {
1616
+ return TallyParams.fromAmino(object.value);
1617
+ },
1618
+ toAminoMsg(message: TallyParams): TallyParamsAminoMsg {
1619
+ return {
1620
+ type: "cosmos-sdk/v1/TallyParams",
1621
+ value: TallyParams.toAmino(message)
1622
+ };
1623
+ },
1624
+ fromProtoMsg(message: TallyParamsProtoMsg): TallyParams {
1625
+ return TallyParams.decode(message.value);
1626
+ },
1627
+ toProto(message: TallyParams): Uint8Array {
1628
+ return TallyParams.encode(message).finish();
1629
+ },
1630
+ toProtoMsg(message: TallyParams): TallyParamsProtoMsg {
1631
+ return {
1632
+ typeUrl: "/cosmos.gov.v1.TallyParams",
1633
+ value: TallyParams.encode(message).finish()
1634
+ };
1635
+ }
1636
+ };
1637
+ function createBaseParams(): Params {
1638
+ return {
1639
+ minDeposit: [],
1640
+ maxDepositPeriod: undefined,
1641
+ votingPeriod: undefined,
1642
+ quorum: "",
1643
+ threshold: "",
1644
+ vetoThreshold: "",
1645
+ minInitialDepositRatio: "",
1646
+ proposalCancelRatio: "",
1647
+ proposalCancelDest: "",
1648
+ expeditedVotingPeriod: undefined,
1649
+ expeditedThreshold: "",
1650
+ expeditedMinDeposit: [],
1651
+ burnVoteQuorum: false,
1652
+ burnProposalDepositPrevote: false,
1653
+ burnVoteVeto: false,
1654
+ minDepositRatio: ""
1655
+ };
1656
+ }
1657
+ export const Params = {
1658
+ typeUrl: "/cosmos.gov.v1.Params",
1659
+ encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1660
+ for (const v of message.minDeposit) {
1661
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
1662
+ }
1663
+ if (message.maxDepositPeriod !== undefined) {
1664
+ Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
1665
+ }
1666
+ if (message.votingPeriod !== undefined) {
1667
+ Duration.encode(message.votingPeriod, writer.uint32(26).fork()).ldelim();
1668
+ }
1669
+ if (message.quorum !== "") {
1670
+ writer.uint32(34).string(message.quorum);
1671
+ }
1672
+ if (message.threshold !== "") {
1673
+ writer.uint32(42).string(message.threshold);
1674
+ }
1675
+ if (message.vetoThreshold !== "") {
1676
+ writer.uint32(50).string(message.vetoThreshold);
1677
+ }
1678
+ if (message.minInitialDepositRatio !== "") {
1679
+ writer.uint32(58).string(message.minInitialDepositRatio);
1680
+ }
1681
+ if (message.proposalCancelRatio !== "") {
1682
+ writer.uint32(66).string(message.proposalCancelRatio);
1683
+ }
1684
+ if (message.proposalCancelDest !== "") {
1685
+ writer.uint32(74).string(message.proposalCancelDest);
1686
+ }
1687
+ if (message.expeditedVotingPeriod !== undefined) {
1688
+ Duration.encode(message.expeditedVotingPeriod, writer.uint32(82).fork()).ldelim();
1689
+ }
1690
+ if (message.expeditedThreshold !== "") {
1691
+ writer.uint32(90).string(message.expeditedThreshold);
1692
+ }
1693
+ for (const v of message.expeditedMinDeposit) {
1694
+ Coin.encode(v!, writer.uint32(98).fork()).ldelim();
1695
+ }
1696
+ if (message.burnVoteQuorum === true) {
1697
+ writer.uint32(104).bool(message.burnVoteQuorum);
1698
+ }
1699
+ if (message.burnProposalDepositPrevote === true) {
1700
+ writer.uint32(112).bool(message.burnProposalDepositPrevote);
1701
+ }
1702
+ if (message.burnVoteVeto === true) {
1703
+ writer.uint32(120).bool(message.burnVoteVeto);
1704
+ }
1705
+ if (message.minDepositRatio !== "") {
1706
+ writer.uint32(130).string(message.minDepositRatio);
1707
+ }
1708
+ return writer;
1709
+ },
1710
+ decode(input: BinaryReader | Uint8Array, length?: number): Params {
1711
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1712
+ let end = length === undefined ? reader.len : reader.pos + length;
1713
+ const message = createBaseParams();
1714
+ while (reader.pos < end) {
1715
+ const tag = reader.uint32();
1716
+ switch (tag >>> 3) {
1717
+ case 1:
1718
+ message.minDeposit.push(Coin.decode(reader, reader.uint32()));
1719
+ break;
1720
+ case 2:
1721
+ message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
1722
+ break;
1723
+ case 3:
1724
+ message.votingPeriod = Duration.decode(reader, reader.uint32());
1725
+ break;
1726
+ case 4:
1727
+ message.quorum = reader.string();
1728
+ break;
1729
+ case 5:
1730
+ message.threshold = reader.string();
1731
+ break;
1732
+ case 6:
1733
+ message.vetoThreshold = reader.string();
1734
+ break;
1735
+ case 7:
1736
+ message.minInitialDepositRatio = reader.string();
1737
+ break;
1738
+ case 8:
1739
+ message.proposalCancelRatio = reader.string();
1740
+ break;
1741
+ case 9:
1742
+ message.proposalCancelDest = reader.string();
1743
+ break;
1744
+ case 10:
1745
+ message.expeditedVotingPeriod = Duration.decode(reader, reader.uint32());
1746
+ break;
1747
+ case 11:
1748
+ message.expeditedThreshold = reader.string();
1749
+ break;
1750
+ case 12:
1751
+ message.expeditedMinDeposit.push(Coin.decode(reader, reader.uint32()));
1752
+ break;
1753
+ case 13:
1754
+ message.burnVoteQuorum = reader.bool();
1755
+ break;
1756
+ case 14:
1757
+ message.burnProposalDepositPrevote = reader.bool();
1758
+ break;
1759
+ case 15:
1760
+ message.burnVoteVeto = reader.bool();
1761
+ break;
1762
+ case 16:
1763
+ message.minDepositRatio = reader.string();
1764
+ break;
1765
+ default:
1766
+ reader.skipType(tag & 7);
1767
+ break;
1768
+ }
1769
+ }
1770
+ return message;
1771
+ },
1772
+ fromPartial(object: Partial<Params>): Params {
1773
+ const message = createBaseParams();
1774
+ message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || [];
1775
+ message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined;
1776
+ message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined;
1777
+ message.quorum = object.quorum ?? "";
1778
+ message.threshold = object.threshold ?? "";
1779
+ message.vetoThreshold = object.vetoThreshold ?? "";
1780
+ message.minInitialDepositRatio = object.minInitialDepositRatio ?? "";
1781
+ message.proposalCancelRatio = object.proposalCancelRatio ?? "";
1782
+ message.proposalCancelDest = object.proposalCancelDest ?? "";
1783
+ message.expeditedVotingPeriod = object.expeditedVotingPeriod !== undefined && object.expeditedVotingPeriod !== null ? Duration.fromPartial(object.expeditedVotingPeriod) : undefined;
1784
+ message.expeditedThreshold = object.expeditedThreshold ?? "";
1785
+ message.expeditedMinDeposit = object.expeditedMinDeposit?.map(e => Coin.fromPartial(e)) || [];
1786
+ message.burnVoteQuorum = object.burnVoteQuorum ?? false;
1787
+ message.burnProposalDepositPrevote = object.burnProposalDepositPrevote ?? false;
1788
+ message.burnVoteVeto = object.burnVoteVeto ?? false;
1789
+ message.minDepositRatio = object.minDepositRatio ?? "";
1790
+ return message;
1791
+ },
1792
+ fromAmino(object: ParamsAmino): Params {
1793
+ const message = createBaseParams();
1794
+ message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || [];
1795
+ if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) {
1796
+ message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period);
1797
+ }
1798
+ if (object.voting_period !== undefined && object.voting_period !== null) {
1799
+ message.votingPeriod = Duration.fromAmino(object.voting_period);
1800
+ }
1801
+ if (object.quorum !== undefined && object.quorum !== null) {
1802
+ message.quorum = object.quorum;
1803
+ }
1804
+ if (object.threshold !== undefined && object.threshold !== null) {
1805
+ message.threshold = object.threshold;
1806
+ }
1807
+ if (object.veto_threshold !== undefined && object.veto_threshold !== null) {
1808
+ message.vetoThreshold = object.veto_threshold;
1809
+ }
1810
+ if (object.min_initial_deposit_ratio !== undefined && object.min_initial_deposit_ratio !== null) {
1811
+ message.minInitialDepositRatio = object.min_initial_deposit_ratio;
1812
+ }
1813
+ if (object.proposal_cancel_ratio !== undefined && object.proposal_cancel_ratio !== null) {
1814
+ message.proposalCancelRatio = object.proposal_cancel_ratio;
1815
+ }
1816
+ if (object.proposal_cancel_dest !== undefined && object.proposal_cancel_dest !== null) {
1817
+ message.proposalCancelDest = object.proposal_cancel_dest;
1818
+ }
1819
+ if (object.expedited_voting_period !== undefined && object.expedited_voting_period !== null) {
1820
+ message.expeditedVotingPeriod = Duration.fromAmino(object.expedited_voting_period);
1821
+ }
1822
+ if (object.expedited_threshold !== undefined && object.expedited_threshold !== null) {
1823
+ message.expeditedThreshold = object.expedited_threshold;
1824
+ }
1825
+ message.expeditedMinDeposit = object.expedited_min_deposit?.map(e => Coin.fromAmino(e)) || [];
1826
+ if (object.burn_vote_quorum !== undefined && object.burn_vote_quorum !== null) {
1827
+ message.burnVoteQuorum = object.burn_vote_quorum;
1828
+ }
1829
+ if (object.burn_proposal_deposit_prevote !== undefined && object.burn_proposal_deposit_prevote !== null) {
1830
+ message.burnProposalDepositPrevote = object.burn_proposal_deposit_prevote;
1831
+ }
1832
+ if (object.burn_vote_veto !== undefined && object.burn_vote_veto !== null) {
1833
+ message.burnVoteVeto = object.burn_vote_veto;
1834
+ }
1835
+ if (object.min_deposit_ratio !== undefined && object.min_deposit_ratio !== null) {
1836
+ message.minDepositRatio = object.min_deposit_ratio;
1837
+ }
1838
+ return message;
1839
+ },
1840
+ toAmino(message: Params): ParamsAmino {
1841
+ const obj: any = {};
1842
+ if (message.minDeposit) {
1843
+ obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined);
1844
+ } else {
1845
+ obj.min_deposit = message.minDeposit;
1846
+ }
1847
+ obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined;
1848
+ obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined;
1849
+ obj.quorum = message.quorum === "" ? undefined : message.quorum;
1850
+ obj.threshold = message.threshold === "" ? undefined : message.threshold;
1851
+ obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold;
1852
+ obj.min_initial_deposit_ratio = message.minInitialDepositRatio === "" ? undefined : message.minInitialDepositRatio;
1853
+ obj.proposal_cancel_ratio = message.proposalCancelRatio === "" ? undefined : message.proposalCancelRatio;
1854
+ obj.proposal_cancel_dest = message.proposalCancelDest === "" ? undefined : message.proposalCancelDest;
1855
+ obj.expedited_voting_period = message.expeditedVotingPeriod ? Duration.toAmino(message.expeditedVotingPeriod) : undefined;
1856
+ obj.expedited_threshold = message.expeditedThreshold === "" ? undefined : message.expeditedThreshold;
1857
+ if (message.expeditedMinDeposit) {
1858
+ obj.expedited_min_deposit = message.expeditedMinDeposit.map(e => e ? Coin.toAmino(e) : undefined);
1859
+ } else {
1860
+ obj.expedited_min_deposit = message.expeditedMinDeposit;
1861
+ }
1862
+ obj.burn_vote_quorum = message.burnVoteQuorum === false ? undefined : message.burnVoteQuorum;
1863
+ obj.burn_proposal_deposit_prevote = message.burnProposalDepositPrevote === false ? undefined : message.burnProposalDepositPrevote;
1864
+ obj.burn_vote_veto = message.burnVoteVeto === false ? undefined : message.burnVoteVeto;
1865
+ obj.min_deposit_ratio = message.minDepositRatio === "" ? undefined : message.minDepositRatio;
1866
+ return obj;
1867
+ },
1868
+ fromAminoMsg(object: ParamsAminoMsg): Params {
1869
+ return Params.fromAmino(object.value);
1870
+ },
1871
+ toAminoMsg(message: Params): ParamsAminoMsg {
1872
+ return {
1873
+ type: "cosmos-sdk/v1/Params",
1874
+ value: Params.toAmino(message)
1875
+ };
1876
+ },
1877
+ fromProtoMsg(message: ParamsProtoMsg): Params {
1878
+ return Params.decode(message.value);
1879
+ },
1880
+ toProto(message: Params): Uint8Array {
1881
+ return Params.encode(message).finish();
1882
+ },
1883
+ toProtoMsg(message: Params): ParamsProtoMsg {
1884
+ return {
1885
+ typeUrl: "/cosmos.gov.v1.Params",
1886
+ value: Params.encode(message).finish()
1887
+ };
1888
+ }
1889
+ };