@zoguxprotocol/proto 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +800 -0
- package/README.md +14 -0
- package/package.json +48 -0
- package/src/codegen/amino/amino.ts +1 -0
- package/src/codegen/amino/bundle.ts +3 -0
- package/src/codegen/cosmos/app/runtime/v1alpha1/module.ts +277 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +265 -0
- package/src/codegen/cosmos/app/v1alpha1/module.ts +274 -0
- package/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts +35 -0
- package/src/codegen/cosmos/app/v1alpha1/query.ts +99 -0
- package/src/codegen/cosmos/auth/module/v1/module.ts +159 -0
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +365 -0
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +74 -0
- package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +130 -0
- package/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts +194 -0
- package/src/codegen/cosmos/auth/v1beta1/query.ts +1221 -0
- package/src/codegen/cosmos/auth/v1beta1/tx.rpc.msg.ts +29 -0
- package/src/codegen/cosmos/auth/v1beta1/tx.ts +135 -0
- package/src/codegen/cosmos/authz/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +298 -0
- package/src/codegen/cosmos/authz/v1beta1/event.ts +170 -0
- package/src/codegen/cosmos/authz/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +79 -0
- package/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts +71 -0
- package/src/codegen/cosmos/authz/v1beta1/query.ts +447 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +56 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +390 -0
- package/src/codegen/cosmos/bank/module/v1/module.ts +76 -0
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +87 -0
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +630 -0
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +199 -0
- package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +237 -0
- package/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts +243 -0
- package/src/codegen/cosmos/bank/v1beta1/query.ts +1727 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +66 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +519 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1147 -0
- package/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts +30 -0
- package/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts +49 -0
- package/src/codegen/cosmos/base/node/v1beta1/query.ts +276 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +243 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +221 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1630 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +113 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +127 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1486 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/types.ts +335 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +278 -0
- package/src/codegen/cosmos/bundle.ts +578 -0
- package/src/codegen/cosmos/circuit/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/circuit/v1/query.lcd.ts +49 -0
- package/src/codegen/cosmos/circuit/v1/query.rpc.Query.ts +65 -0
- package/src/codegen/cosmos/circuit/v1/query.ts +334 -0
- package/src/codegen/cosmos/circuit/v1/tx.rpc.msg.ts +50 -0
- package/src/codegen/cosmos/circuit/v1/tx.ts +409 -0
- package/src/codegen/cosmos/circuit/v1/types.ts +290 -0
- package/src/codegen/cosmos/consensus/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/consensus/v1/query.lcd.ts +22 -0
- package/src/codegen/cosmos/consensus/v1/query.rpc.Query.ts +35 -0
- package/src/codegen/cosmos/consensus/v1/query.ts +103 -0
- package/src/codegen/cosmos/consensus/v1/tx.rpc.msg.ts +29 -0
- package/src/codegen/cosmos/consensus/v1/tx.ts +163 -0
- package/src/codegen/cosmos/crisis/module/v1/module.ts +72 -0
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +62 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +255 -0
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +117 -0
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +326 -0
- package/src/codegen/cosmos/crypto/multisig/keys.ts +78 -0
- package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +142 -0
- package/src/codegen/cosmos/crypto/secp256k1/keys.ts +124 -0
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +117 -0
- package/src/codegen/cosmos/distribution/module/v1/module.ts +71 -0
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +977 -0
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +752 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +112 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts +164 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +1300 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +113 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +907 -0
- package/src/codegen/cosmos/evidence/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +59 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +49 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts +51 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +278 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +135 -0
- package/src/codegen/cosmos/feegrant/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +368 -0
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +57 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts +67 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +424 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +54 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +355 -0
- package/src/codegen/cosmos/genutil/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/gov/module/v1/module.ts +75 -0
- package/src/codegen/cosmos/gov/v1/genesis.ts +203 -0
- package/src/codegen/cosmos/gov/v1/gov.ts +1353 -0
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +123 -0
- package/src/codegen/cosmos/gov/v1/query.rpc.Query.ts +147 -0
- package/src/codegen/cosmos/gov/v1/query.ts +1210 -0
- package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +96 -0
- package/src/codegen/cosmos/gov/v1/tx.ts +1040 -0
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +143 -0
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +1020 -0
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts +133 -0
- package/src/codegen/cosmos/gov/v1beta1/query.ts +1076 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +58 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +539 -0
- package/src/codegen/cosmos/group/module/v1/module.ts +79 -0
- package/src/codegen/cosmos/group/v1/events.ts +633 -0
- package/src/codegen/cosmos/group/v1/genesis.ts +166 -0
- package/src/codegen/cosmos/group/v1/query.lcd.ts +207 -0
- package/src/codegen/cosmos/group/v1/query.rpc.Query.ts +229 -0
- package/src/codegen/cosmos/group/v1/query.ts +1840 -0
- package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +154 -0
- package/src/codegen/cosmos/group/v1/tx.ts +2004 -0
- package/src/codegen/cosmos/group/v1/types.ts +1528 -0
- package/src/codegen/cosmos/lcd.ts +114 -0
- package/src/codegen/cosmos/mint/module/v1/module.ts +71 -0
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +73 -0
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +198 -0
- package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +38 -0
- package/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts +63 -0
- package/src/codegen/cosmos/mint/v1beta1/query.ts +309 -0
- package/src/codegen/cosmos/mint/v1beta1/tx.rpc.msg.ts +29 -0
- package/src/codegen/cosmos/mint/v1beta1/tx.ts +135 -0
- package/src/codegen/cosmos/msg/textual/v1/textual.ts +1 -0
- package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
- package/src/codegen/cosmos/nft/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/nft/v1beta1/event.ts +268 -0
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +143 -0
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +255 -0
- package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +98 -0
- package/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts +124 -0
- package/src/codegen/cosmos/nft/v1beta1/query.ts +886 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +24 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +140 -0
- package/src/codegen/cosmos/orm/module/v1alpha1/module.ts +50 -0
- package/src/codegen/cosmos/orm/query/v1alpha1/query.rpc.Query.ts +49 -0
- package/src/codegen/cosmos/orm/query/v1alpha1/query.ts +640 -0
- package/src/codegen/cosmos/orm/v1/orm.ts +356 -0
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +232 -0
- package/src/codegen/cosmos/params/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/params/v1beta1/params.ts +166 -0
- package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +45 -0
- package/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts +56 -0
- package/src/codegen/cosmos/params/v1beta1/query.ts +321 -0
- package/src/codegen/cosmos/query/v1/query.ts +1 -0
- package/src/codegen/cosmos/reflection/v1/reflection.ts +99 -0
- package/src/codegen/cosmos/rpc.query.ts +82 -0
- package/src/codegen/cosmos/rpc.tx.ts +61 -0
- package/src/codegen/cosmos/slashing/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +309 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +49 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts +65 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +358 -0
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +249 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +43 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +230 -0
- package/src/codegen/cosmos/staking/module/v1/module.ts +104 -0
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +244 -0
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +233 -0
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +220 -0
- package/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts +260 -0
- package/src/codegen/cosmos/staking/v1beta1/query.ts +1910 -0
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +2075 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +102 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +1039 -0
- package/src/codegen/cosmos/store/internal/kv/v1beta1/kv.ts +124 -0
- package/src/codegen/cosmos/store/snapshots/v1/snapshot.ts +564 -0
- package/src/codegen/cosmos/store/streaming/abci/grpc.ts +231 -0
- package/src/codegen/cosmos/store/v1beta1/commit_info.ts +234 -0
- package/src/codegen/cosmos/store/v1beta1/listening.ts +196 -0
- package/src/codegen/cosmos/tx/config/v1/config.ts +78 -0
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +487 -0
- package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +77 -0
- package/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts +167 -0
- package/src/codegen/cosmos/tx/v1beta1/service.ts +1536 -0
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +1331 -0
- package/src/codegen/cosmos/upgrade/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +71 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts +106 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +617 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +43 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +241 -0
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +403 -0
- package/src/codegen/cosmos/vesting/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +445 -0
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +473 -0
- package/src/codegen/cosmos_proto/bundle.ts +3 -0
- package/src/codegen/cosmos_proto/cosmos.ts +255 -0
- package/src/codegen/gogoproto/bundle.ts +3 -0
- package/src/codegen/gogoproto/gogo.ts +1 -0
- package/src/codegen/google/api/annotations.ts +1 -0
- package/src/codegen/google/api/http.ts +920 -0
- package/src/codegen/google/bundle.ts +16 -0
- package/src/codegen/google/protobuf/any.ts +260 -0
- package/src/codegen/google/protobuf/descriptor.ts +3697 -0
- package/src/codegen/google/protobuf/duration.ts +201 -0
- package/src/codegen/google/protobuf/timestamp.ts +247 -0
- package/src/codegen/helpers.ts +242 -0
- package/src/codegen/index.ts +13 -0
- package/src/codegen/tendermint/abci/types.ts +4487 -0
- package/src/codegen/tendermint/bundle.ts +32 -0
- package/src/codegen/tendermint/crypto/keys.ts +69 -0
- package/src/codegen/tendermint/crypto/proof.ts +372 -0
- package/src/codegen/tendermint/libs/bits/types.ts +77 -0
- package/src/codegen/tendermint/p2p/types.ts +350 -0
- package/src/codegen/tendermint/types/block.ts +91 -0
- package/src/codegen/tendermint/types/evidence.ts +325 -0
- package/src/codegen/tendermint/types/params.ts +544 -0
- package/src/codegen/tendermint/types/types.ts +1558 -0
- package/src/codegen/tendermint/types/validator.ts +286 -0
- package/src/codegen/tendermint/version/types.ts +152 -0
- package/src/codegen/zogux/accountplus/accountplus.ts +152 -0
- package/src/codegen/zogux/accountplus/genesis.ts +186 -0
- package/src/codegen/zogux/accountplus/models.ts +103 -0
- package/src/codegen/zogux/accountplus/params.ts +62 -0
- package/src/codegen/zogux/accountplus/query.lcd.ts +46 -0
- package/src/codegen/zogux/accountplus/query.rpc.Query.ts +77 -0
- package/src/codegen/zogux/accountplus/query.ts +455 -0
- package/src/codegen/zogux/accountplus/tx.rpc.msg.ts +47 -0
- package/src/codegen/zogux/accountplus/tx.ts +460 -0
- package/src/codegen/zogux/affiliates/affiliates.ts +425 -0
- package/src/codegen/zogux/affiliates/genesis.ts +73 -0
- package/src/codegen/zogux/affiliates/query.lcd.ts +62 -0
- package/src/codegen/zogux/affiliates/query.rpc.Query.ts +105 -0
- package/src/codegen/zogux/affiliates/query.ts +747 -0
- package/src/codegen/zogux/affiliates/tx.rpc.msg.ts +64 -0
- package/src/codegen/zogux/affiliates/tx.ts +553 -0
- package/src/codegen/zogux/assets/asset.ts +167 -0
- package/src/codegen/zogux/assets/genesis.ts +58 -0
- package/src/codegen/zogux/assets/query.lcd.ts +41 -0
- package/src/codegen/zogux/assets/query.rpc.Query.ts +51 -0
- package/src/codegen/zogux/assets/query.ts +238 -0
- package/src/codegen/zogux/assets/tx.ts +1 -0
- package/src/codegen/zogux/blocktime/blocktime.ts +203 -0
- package/src/codegen/zogux/blocktime/genesis.ts +58 -0
- package/src/codegen/zogux/blocktime/params.ts +125 -0
- package/src/codegen/zogux/blocktime/query.lcd.ts +38 -0
- package/src/codegen/zogux/blocktime/query.rpc.Query.ts +77 -0
- package/src/codegen/zogux/blocktime/query.ts +428 -0
- package/src/codegen/zogux/blocktime/tx.rpc.msg.ts +34 -0
- package/src/codegen/zogux/blocktime/tx.ts +233 -0
- package/src/codegen/zogux/bridge/bridge_event.ts +171 -0
- package/src/codegen/zogux/bridge/bridge_event_info.ts +81 -0
- package/src/codegen/zogux/bridge/events.ts +434 -0
- package/src/codegen/zogux/bridge/genesis.ts +131 -0
- package/src/codegen/zogux/bridge/params.ts +404 -0
- package/src/codegen/zogux/bridge/query.lcd.ts +162 -0
- package/src/codegen/zogux/bridge/query.rpc.Query.ts +249 -0
- package/src/codegen/zogux/bridge/query.ts +1342 -0
- package/src/codegen/zogux/bridge/token.ts +1030 -0
- package/src/codegen/zogux/bridge/tss.ts +883 -0
- package/src/codegen/zogux/bridge/tx.rpc.msg.ts +159 -0
- package/src/codegen/zogux/bridge/tx.ts +542 -0
- package/src/codegen/zogux/bridge/withdrawal.ts +306 -0
- package/src/codegen/zogux/bundle.ts +441 -0
- package/src/codegen/zogux/clob/block_rate_limit_config.ts +216 -0
- package/src/codegen/zogux/clob/clob_pair.ts +396 -0
- package/src/codegen/zogux/clob/equity_tier_limit_config.ts +154 -0
- package/src/codegen/zogux/clob/finalize_block.ts +65 -0
- package/src/codegen/zogux/clob/genesis.ts +97 -0
- package/src/codegen/zogux/clob/liquidations.ts +288 -0
- package/src/codegen/zogux/clob/liquidations_config.ts +358 -0
- package/src/codegen/zogux/clob/matches.ts +552 -0
- package/src/codegen/zogux/clob/mev.ts +525 -0
- package/src/codegen/zogux/clob/operation.ts +200 -0
- package/src/codegen/zogux/clob/order.ts +1538 -0
- package/src/codegen/zogux/clob/order_removals.ts +228 -0
- package/src/codegen/zogux/clob/process_proposer_matches_events.ts +176 -0
- package/src/codegen/zogux/clob/query.lcd.ts +81 -0
- package/src/codegen/zogux/clob/query.rpc.Query.ts +166 -0
- package/src/codegen/zogux/clob/query.ts +1945 -0
- package/src/codegen/zogux/clob/streaming.ts +96 -0
- package/src/codegen/zogux/clob/tx.rpc.msg.ts +131 -0
- package/src/codegen/zogux/clob/tx.ts +1472 -0
- package/src/codegen/zogux/daemons/bridge/bridge.ts +104 -0
- package/src/codegen/zogux/daemons/liquidation/liquidation.ts +156 -0
- package/src/codegen/zogux/daemons/pricefeed/price_feed.ts +244 -0
- package/src/codegen/zogux/delaymsg/block_message_ids.ts +79 -0
- package/src/codegen/zogux/delaymsg/delayed_message.ts +87 -0
- package/src/codegen/zogux/delaymsg/genesis.ts +73 -0
- package/src/codegen/zogux/delaymsg/query.lcd.ts +38 -0
- package/src/codegen/zogux/delaymsg/query.rpc.Query.ts +63 -0
- package/src/codegen/zogux/delaymsg/query.ts +364 -0
- package/src/codegen/zogux/delaymsg/tx.rpc.msg.ts +27 -0
- package/src/codegen/zogux/delaymsg/tx.ts +142 -0
- package/src/codegen/zogux/epochs/epoch_info.ts +167 -0
- package/src/codegen/zogux/epochs/genesis.ts +58 -0
- package/src/codegen/zogux/epochs/query.lcd.ts +41 -0
- package/src/codegen/zogux/epochs/query.rpc.Query.ts +51 -0
- package/src/codegen/zogux/epochs/query.ts +237 -0
- package/src/codegen/zogux/feetiers/genesis.ts +74 -0
- package/src/codegen/zogux/feetiers/params.ts +184 -0
- package/src/codegen/zogux/feetiers/per_market_fee_discount.ts +111 -0
- package/src/codegen/zogux/feetiers/query.lcd.ts +71 -0
- package/src/codegen/zogux/feetiers/query.rpc.Query.ts +108 -0
- package/src/codegen/zogux/feetiers/query.ts +715 -0
- package/src/codegen/zogux/feetiers/staking_tier.ts +151 -0
- package/src/codegen/zogux/feetiers/tx.rpc.msg.ts +47 -0
- package/src/codegen/zogux/feetiers/tx.ts +351 -0
- package/src/codegen/zogux/govplus/genesis.ts +42 -0
- package/src/codegen/zogux/govplus/query.rpc.Query.ts +18 -0
- package/src/codegen/zogux/govplus/query.ts +1 -0
- package/src/codegen/zogux/govplus/tx.rpc.msg.ts +27 -0
- package/src/codegen/zogux/govplus/tx.ts +173 -0
- package/src/codegen/zogux/indexer/events/events.ts +4292 -0
- package/src/codegen/zogux/indexer/indexer_manager/event.ts +428 -0
- package/src/codegen/zogux/indexer/off_chain_updates/off_chain_updates.ts +594 -0
- package/src/codegen/zogux/indexer/protocol/v1/clob.ts +887 -0
- package/src/codegen/zogux/indexer/protocol/v1/perpetual.ts +52 -0
- package/src/codegen/zogux/indexer/protocol/v1/subaccount.ts +281 -0
- package/src/codegen/zogux/indexer/protocol/v1/vault.ts +69 -0
- package/src/codegen/zogux/indexer/redis/redis_order.ts +190 -0
- package/src/codegen/zogux/indexer/shared/removal_reason.ts +216 -0
- package/src/codegen/zogux/indexer/socks/messages.ts +656 -0
- package/src/codegen/zogux/lcd.ts +176 -0
- package/src/codegen/zogux/listing/genesis.ts +76 -0
- package/src/codegen/zogux/listing/params.ts +89 -0
- package/src/codegen/zogux/listing/query.lcd.ts +30 -0
- package/src/codegen/zogux/listing/query.rpc.Query.ts +49 -0
- package/src/codegen/zogux/listing/query.ts +194 -0
- package/src/codegen/zogux/listing/tx.rpc.msg.ts +57 -0
- package/src/codegen/zogux/listing/tx.ts +483 -0
- package/src/codegen/zogux/perpetuals/genesis.ts +83 -0
- package/src/codegen/zogux/perpetuals/params.ts +97 -0
- package/src/codegen/zogux/perpetuals/perpetual.ts +660 -0
- package/src/codegen/zogux/perpetuals/query.lcd.ts +91 -0
- package/src/codegen/zogux/perpetuals/query.rpc.Query.ts +123 -0
- package/src/codegen/zogux/perpetuals/query.ts +765 -0
- package/src/codegen/zogux/perpetuals/tx.rpc.msg.ts +70 -0
- package/src/codegen/zogux/perpetuals/tx.ts +649 -0
- package/src/codegen/zogux/prices/genesis.ts +71 -0
- package/src/codegen/zogux/prices/market_param.ts +162 -0
- package/src/codegen/zogux/prices/market_price.ts +95 -0
- package/src/codegen/zogux/prices/query.lcd.ts +75 -0
- package/src/codegen/zogux/prices/query.rpc.Query.ts +95 -0
- package/src/codegen/zogux/prices/query.ts +630 -0
- package/src/codegen/zogux/prices/streaming.ts +87 -0
- package/src/codegen/zogux/prices/tx.rpc.msg.ts +50 -0
- package/src/codegen/zogux/prices/tx.ts +405 -0
- package/src/codegen/zogux/ratelimit/capacity.ts +147 -0
- package/src/codegen/zogux/ratelimit/genesis.ts +59 -0
- package/src/codegen/zogux/ratelimit/limit_params.ts +174 -0
- package/src/codegen/zogux/ratelimit/pending_send_packet.ts +75 -0
- package/src/codegen/zogux/ratelimit/query.lcd.ts +46 -0
- package/src/codegen/zogux/ratelimit/query.rpc.Query.ts +63 -0
- package/src/codegen/zogux/ratelimit/query.ts +333 -0
- package/src/codegen/zogux/ratelimit/tx.rpc.msg.ts +24 -0
- package/src/codegen/zogux/ratelimit/tx.ts +112 -0
- package/src/codegen/zogux/revshare/genesis.ts +58 -0
- package/src/codegen/zogux/revshare/params.ts +93 -0
- package/src/codegen/zogux/revshare/query.lcd.ts +47 -0
- package/src/codegen/zogux/revshare/query.rpc.Query.ts +80 -0
- package/src/codegen/zogux/revshare/query.ts +415 -0
- package/src/codegen/zogux/revshare/revshare.ts +266 -0
- package/src/codegen/zogux/revshare/tx.rpc.msg.ts +60 -0
- package/src/codegen/zogux/revshare/tx.ts +462 -0
- package/src/codegen/zogux/rewards/genesis.ts +59 -0
- package/src/codegen/zogux/rewards/params.ts +122 -0
- package/src/codegen/zogux/rewards/query.lcd.ts +22 -0
- package/src/codegen/zogux/rewards/query.rpc.Query.ts +35 -0
- package/src/codegen/zogux/rewards/query.ts +98 -0
- package/src/codegen/zogux/rewards/reward_share.ts +75 -0
- package/src/codegen/zogux/rewards/tx.rpc.msg.ts +24 -0
- package/src/codegen/zogux/rewards/tx.ts +112 -0
- package/src/codegen/zogux/rpc.query.ts +106 -0
- package/src/codegen/zogux/rpc.tx.ts +82 -0
- package/src/codegen/zogux/sending/genesis.ts +42 -0
- package/src/codegen/zogux/sending/query.rpc.Query.ts +18 -0
- package/src/codegen/zogux/sending/query.ts +1 -0
- package/src/codegen/zogux/sending/transfer.ts +420 -0
- package/src/codegen/zogux/sending/tx.rpc.msg.ts +64 -0
- package/src/codegen/zogux/sending/tx.ts +237 -0
- package/src/codegen/zogux/stats/genesis.ts +59 -0
- package/src/codegen/zogux/stats/params.ts +59 -0
- package/src/codegen/zogux/stats/query.lcd.ts +54 -0
- package/src/codegen/zogux/stats/query.rpc.Query.ts +77 -0
- package/src/codegen/zogux/stats/query.ts +412 -0
- package/src/codegen/zogux/stats/stats.ts +593 -0
- package/src/codegen/zogux/stats/tx.rpc.msg.ts +24 -0
- package/src/codegen/zogux/stats/tx.ts +112 -0
- package/src/codegen/zogux/subaccounts/asset_position.ts +96 -0
- package/src/codegen/zogux/subaccounts/genesis.ts +58 -0
- package/src/codegen/zogux/subaccounts/leverage.ts +134 -0
- package/src/codegen/zogux/subaccounts/perpetual_position.ts +109 -0
- package/src/codegen/zogux/subaccounts/query.lcd.ts +58 -0
- package/src/codegen/zogux/subaccounts/query.rpc.Query.ts +82 -0
- package/src/codegen/zogux/subaccounts/query.ts +527 -0
- package/src/codegen/zogux/subaccounts/streaming.ts +266 -0
- package/src/codegen/zogux/subaccounts/subaccount.ts +190 -0
- package/src/codegen/zogux/token/genesis.ts +73 -0
- package/src/codegen/zogux/token/params.ts +196 -0
- package/src/codegen/zogux/token/query.lcd.ts +38 -0
- package/src/codegen/zogux/token/query.rpc.Query.ts +63 -0
- package/src/codegen/zogux/token/query.ts +342 -0
- package/src/codegen/zogux/token/tx.rpc.msg.ts +84 -0
- package/src/codegen/zogux/token/tx.ts +828 -0
- package/src/codegen/zogux/vault/genesis.ts +433 -0
- package/src/codegen/zogux/vault/params.ts +523 -0
- package/src/codegen/zogux/vault/query.lcd.ts +91 -0
- package/src/codegen/zogux/vault/query.rpc.Query.ts +137 -0
- package/src/codegen/zogux/vault/query.ts +1162 -0
- package/src/codegen/zogux/vault/share.ts +271 -0
- package/src/codegen/zogux/vault/tx.rpc.msg.ts +97 -0
- package/src/codegen/zogux/vault/tx.ts +1189 -0
- package/src/codegen/zogux/vault/vault.ts +185 -0
- package/src/codegen/zogux/vest/genesis.ts +59 -0
- package/src/codegen/zogux/vest/query.lcd.ts +30 -0
- package/src/codegen/zogux/vest/query.rpc.Query.ts +35 -0
- package/src/codegen/zogux/vest/query.ts +114 -0
- package/src/codegen/zogux/vest/tx.rpc.msg.ts +34 -0
- package/src/codegen/zogux/vest/tx.ts +223 -0
- package/src/codegen/zogux/vest/vest_entry.ts +127 -0
|
@@ -0,0 +1,1020 @@
|
|
|
1
|
+
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
|
2
|
+
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
|
3
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
4
|
+
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
|
5
|
+
import * as _m0 from "protobufjs/minimal";
|
|
6
|
+
import { DeepPartial, Long, toTimestamp, fromTimestamp } from "../../../helpers";
|
|
7
|
+
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
|
8
|
+
|
|
9
|
+
export enum VoteOption {
|
|
10
|
+
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
|
11
|
+
VOTE_OPTION_UNSPECIFIED = 0,
|
|
12
|
+
|
|
13
|
+
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
|
14
|
+
VOTE_OPTION_YES = 1,
|
|
15
|
+
|
|
16
|
+
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
|
17
|
+
VOTE_OPTION_ABSTAIN = 2,
|
|
18
|
+
|
|
19
|
+
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
|
20
|
+
VOTE_OPTION_NO = 3,
|
|
21
|
+
|
|
22
|
+
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
|
23
|
+
VOTE_OPTION_NO_WITH_VETO = 4,
|
|
24
|
+
UNRECOGNIZED = -1,
|
|
25
|
+
}
|
|
26
|
+
export const VoteOptionSDKType = VoteOption;
|
|
27
|
+
export function voteOptionFromJSON(object: any): VoteOption {
|
|
28
|
+
switch (object) {
|
|
29
|
+
case 0:
|
|
30
|
+
case "VOTE_OPTION_UNSPECIFIED":
|
|
31
|
+
return VoteOption.VOTE_OPTION_UNSPECIFIED;
|
|
32
|
+
|
|
33
|
+
case 1:
|
|
34
|
+
case "VOTE_OPTION_YES":
|
|
35
|
+
return VoteOption.VOTE_OPTION_YES;
|
|
36
|
+
|
|
37
|
+
case 2:
|
|
38
|
+
case "VOTE_OPTION_ABSTAIN":
|
|
39
|
+
return VoteOption.VOTE_OPTION_ABSTAIN;
|
|
40
|
+
|
|
41
|
+
case 3:
|
|
42
|
+
case "VOTE_OPTION_NO":
|
|
43
|
+
return VoteOption.VOTE_OPTION_NO;
|
|
44
|
+
|
|
45
|
+
case 4:
|
|
46
|
+
case "VOTE_OPTION_NO_WITH_VETO":
|
|
47
|
+
return VoteOption.VOTE_OPTION_NO_WITH_VETO;
|
|
48
|
+
|
|
49
|
+
case -1:
|
|
50
|
+
case "UNRECOGNIZED":
|
|
51
|
+
default:
|
|
52
|
+
return VoteOption.UNRECOGNIZED;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export function voteOptionToJSON(object: VoteOption): string {
|
|
56
|
+
switch (object) {
|
|
57
|
+
case VoteOption.VOTE_OPTION_UNSPECIFIED:
|
|
58
|
+
return "VOTE_OPTION_UNSPECIFIED";
|
|
59
|
+
|
|
60
|
+
case VoteOption.VOTE_OPTION_YES:
|
|
61
|
+
return "VOTE_OPTION_YES";
|
|
62
|
+
|
|
63
|
+
case VoteOption.VOTE_OPTION_ABSTAIN:
|
|
64
|
+
return "VOTE_OPTION_ABSTAIN";
|
|
65
|
+
|
|
66
|
+
case VoteOption.VOTE_OPTION_NO:
|
|
67
|
+
return "VOTE_OPTION_NO";
|
|
68
|
+
|
|
69
|
+
case VoteOption.VOTE_OPTION_NO_WITH_VETO:
|
|
70
|
+
return "VOTE_OPTION_NO_WITH_VETO";
|
|
71
|
+
|
|
72
|
+
case VoteOption.UNRECOGNIZED:
|
|
73
|
+
default:
|
|
74
|
+
return "UNRECOGNIZED";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
|
78
|
+
|
|
79
|
+
export enum ProposalStatus {
|
|
80
|
+
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */
|
|
81
|
+
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
|
85
|
+
* period.
|
|
86
|
+
*/
|
|
87
|
+
PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
|
91
|
+
* period.
|
|
92
|
+
*/
|
|
93
|
+
PROPOSAL_STATUS_VOTING_PERIOD = 2,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
|
97
|
+
* passed.
|
|
98
|
+
*/
|
|
99
|
+
PROPOSAL_STATUS_PASSED = 3,
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
|
103
|
+
* been rejected.
|
|
104
|
+
*/
|
|
105
|
+
PROPOSAL_STATUS_REJECTED = 4,
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
|
109
|
+
* failed.
|
|
110
|
+
*/
|
|
111
|
+
PROPOSAL_STATUS_FAILED = 5,
|
|
112
|
+
UNRECOGNIZED = -1,
|
|
113
|
+
}
|
|
114
|
+
export const ProposalStatusSDKType = ProposalStatus;
|
|
115
|
+
export function proposalStatusFromJSON(object: any): ProposalStatus {
|
|
116
|
+
switch (object) {
|
|
117
|
+
case 0:
|
|
118
|
+
case "PROPOSAL_STATUS_UNSPECIFIED":
|
|
119
|
+
return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
|
|
120
|
+
|
|
121
|
+
case 1:
|
|
122
|
+
case "PROPOSAL_STATUS_DEPOSIT_PERIOD":
|
|
123
|
+
return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD;
|
|
124
|
+
|
|
125
|
+
case 2:
|
|
126
|
+
case "PROPOSAL_STATUS_VOTING_PERIOD":
|
|
127
|
+
return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD;
|
|
128
|
+
|
|
129
|
+
case 3:
|
|
130
|
+
case "PROPOSAL_STATUS_PASSED":
|
|
131
|
+
return ProposalStatus.PROPOSAL_STATUS_PASSED;
|
|
132
|
+
|
|
133
|
+
case 4:
|
|
134
|
+
case "PROPOSAL_STATUS_REJECTED":
|
|
135
|
+
return ProposalStatus.PROPOSAL_STATUS_REJECTED;
|
|
136
|
+
|
|
137
|
+
case 5:
|
|
138
|
+
case "PROPOSAL_STATUS_FAILED":
|
|
139
|
+
return ProposalStatus.PROPOSAL_STATUS_FAILED;
|
|
140
|
+
|
|
141
|
+
case -1:
|
|
142
|
+
case "UNRECOGNIZED":
|
|
143
|
+
default:
|
|
144
|
+
return ProposalStatus.UNRECOGNIZED;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export function proposalStatusToJSON(object: ProposalStatus): string {
|
|
148
|
+
switch (object) {
|
|
149
|
+
case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
|
|
150
|
+
return "PROPOSAL_STATUS_UNSPECIFIED";
|
|
151
|
+
|
|
152
|
+
case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD:
|
|
153
|
+
return "PROPOSAL_STATUS_DEPOSIT_PERIOD";
|
|
154
|
+
|
|
155
|
+
case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD:
|
|
156
|
+
return "PROPOSAL_STATUS_VOTING_PERIOD";
|
|
157
|
+
|
|
158
|
+
case ProposalStatus.PROPOSAL_STATUS_PASSED:
|
|
159
|
+
return "PROPOSAL_STATUS_PASSED";
|
|
160
|
+
|
|
161
|
+
case ProposalStatus.PROPOSAL_STATUS_REJECTED:
|
|
162
|
+
return "PROPOSAL_STATUS_REJECTED";
|
|
163
|
+
|
|
164
|
+
case ProposalStatus.PROPOSAL_STATUS_FAILED:
|
|
165
|
+
return "PROPOSAL_STATUS_FAILED";
|
|
166
|
+
|
|
167
|
+
case ProposalStatus.UNRECOGNIZED:
|
|
168
|
+
default:
|
|
169
|
+
return "UNRECOGNIZED";
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* WeightedVoteOption defines a unit of vote for vote split.
|
|
174
|
+
*
|
|
175
|
+
* Since: cosmos-sdk 0.43
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
export interface WeightedVoteOption {
|
|
179
|
+
/** option defines the valid vote options, it must not contain duplicate vote options. */
|
|
180
|
+
option: VoteOption;
|
|
181
|
+
/** weight is the vote weight associated with the vote option. */
|
|
182
|
+
|
|
183
|
+
weight: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* WeightedVoteOption defines a unit of vote for vote split.
|
|
187
|
+
*
|
|
188
|
+
* Since: cosmos-sdk 0.43
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
export interface WeightedVoteOptionSDKType {
|
|
192
|
+
option: VoteOption;
|
|
193
|
+
weight: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* TextProposal defines a standard text proposal whose changes need to be
|
|
197
|
+
* manually updated in case of approval.
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
export interface TextProposal {
|
|
201
|
+
/** title of the proposal. */
|
|
202
|
+
title: string;
|
|
203
|
+
/** description associated with the proposal. */
|
|
204
|
+
|
|
205
|
+
description: string;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* TextProposal defines a standard text proposal whose changes need to be
|
|
209
|
+
* manually updated in case of approval.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
export interface TextProposalSDKType {
|
|
213
|
+
title: string;
|
|
214
|
+
description: string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Deposit defines an amount deposited by an account address to an active
|
|
218
|
+
* proposal.
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
export interface Deposit {
|
|
222
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
223
|
+
proposalId: Long;
|
|
224
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
225
|
+
|
|
226
|
+
depositor: string;
|
|
227
|
+
/** amount to be deposited by depositor. */
|
|
228
|
+
|
|
229
|
+
amount: Coin[];
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Deposit defines an amount deposited by an account address to an active
|
|
233
|
+
* proposal.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
export interface DepositSDKType {
|
|
237
|
+
proposal_id: Long;
|
|
238
|
+
depositor: string;
|
|
239
|
+
amount: CoinSDKType[];
|
|
240
|
+
}
|
|
241
|
+
/** Proposal defines the core field members of a governance proposal. */
|
|
242
|
+
|
|
243
|
+
export interface Proposal {
|
|
244
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
245
|
+
proposalId: Long;
|
|
246
|
+
/** content is the proposal's content. */
|
|
247
|
+
|
|
248
|
+
content?: Any;
|
|
249
|
+
/** status defines the proposal status. */
|
|
250
|
+
|
|
251
|
+
status: ProposalStatus;
|
|
252
|
+
/**
|
|
253
|
+
* final_tally_result is the final tally result of the proposal. When
|
|
254
|
+
* querying a proposal via gRPC, this field is not populated until the
|
|
255
|
+
* proposal's voting period has ended.
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
finalTallyResult?: TallyResult;
|
|
259
|
+
/** submit_time is the time of proposal submission. */
|
|
260
|
+
|
|
261
|
+
submitTime?: Date;
|
|
262
|
+
/** deposit_end_time is the end time for deposition. */
|
|
263
|
+
|
|
264
|
+
depositEndTime?: Date;
|
|
265
|
+
/** total_deposit is the total deposit on the proposal. */
|
|
266
|
+
|
|
267
|
+
totalDeposit: Coin[];
|
|
268
|
+
/** voting_start_time is the starting time to vote on a proposal. */
|
|
269
|
+
|
|
270
|
+
votingStartTime?: Date;
|
|
271
|
+
/** voting_end_time is the end time of voting on a proposal. */
|
|
272
|
+
|
|
273
|
+
votingEndTime?: Date;
|
|
274
|
+
}
|
|
275
|
+
/** Proposal defines the core field members of a governance proposal. */
|
|
276
|
+
|
|
277
|
+
export interface ProposalSDKType {
|
|
278
|
+
proposal_id: Long;
|
|
279
|
+
content?: AnySDKType;
|
|
280
|
+
status: ProposalStatus;
|
|
281
|
+
final_tally_result?: TallyResultSDKType;
|
|
282
|
+
submit_time?: Date;
|
|
283
|
+
deposit_end_time?: Date;
|
|
284
|
+
total_deposit: CoinSDKType[];
|
|
285
|
+
voting_start_time?: Date;
|
|
286
|
+
voting_end_time?: Date;
|
|
287
|
+
}
|
|
288
|
+
/** TallyResult defines a standard tally for a governance proposal. */
|
|
289
|
+
|
|
290
|
+
export interface TallyResult {
|
|
291
|
+
/** yes is the number of yes votes on a proposal. */
|
|
292
|
+
yes: string;
|
|
293
|
+
/** abstain is the number of abstain votes on a proposal. */
|
|
294
|
+
|
|
295
|
+
abstain: string;
|
|
296
|
+
/** no is the number of no votes on a proposal. */
|
|
297
|
+
|
|
298
|
+
no: string;
|
|
299
|
+
/** no_with_veto is the number of no with veto votes on a proposal. */
|
|
300
|
+
|
|
301
|
+
noWithVeto: string;
|
|
302
|
+
}
|
|
303
|
+
/** TallyResult defines a standard tally for a governance proposal. */
|
|
304
|
+
|
|
305
|
+
export interface TallyResultSDKType {
|
|
306
|
+
yes: string;
|
|
307
|
+
abstain: string;
|
|
308
|
+
no: string;
|
|
309
|
+
no_with_veto: string;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Vote defines a vote on a governance proposal.
|
|
313
|
+
* A Vote consists of a proposal ID, the voter, and the vote option.
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
export interface Vote {
|
|
317
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
318
|
+
proposalId: Long;
|
|
319
|
+
/** voter is the voter address of the proposal. */
|
|
320
|
+
|
|
321
|
+
voter: string;
|
|
322
|
+
/**
|
|
323
|
+
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
|
324
|
+
* if and only if `len(options) == 1` and that option has weight 1. In all
|
|
325
|
+
* other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
/** @deprecated */
|
|
329
|
+
|
|
330
|
+
option: VoteOption;
|
|
331
|
+
/**
|
|
332
|
+
* options is the weighted vote options.
|
|
333
|
+
*
|
|
334
|
+
* Since: cosmos-sdk 0.43
|
|
335
|
+
*/
|
|
336
|
+
|
|
337
|
+
options: WeightedVoteOption[];
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Vote defines a vote on a governance proposal.
|
|
341
|
+
* A Vote consists of a proposal ID, the voter, and the vote option.
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
export interface VoteSDKType {
|
|
345
|
+
proposal_id: Long;
|
|
346
|
+
voter: string;
|
|
347
|
+
/** @deprecated */
|
|
348
|
+
|
|
349
|
+
option: VoteOption;
|
|
350
|
+
options: WeightedVoteOptionSDKType[];
|
|
351
|
+
}
|
|
352
|
+
/** DepositParams defines the params for deposits on governance proposals. */
|
|
353
|
+
|
|
354
|
+
export interface DepositParams {
|
|
355
|
+
/** Minimum deposit for a proposal to enter voting period. */
|
|
356
|
+
minDeposit: Coin[];
|
|
357
|
+
/**
|
|
358
|
+
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
359
|
+
* months.
|
|
360
|
+
*/
|
|
361
|
+
|
|
362
|
+
maxDepositPeriod?: Duration;
|
|
363
|
+
}
|
|
364
|
+
/** DepositParams defines the params for deposits on governance proposals. */
|
|
365
|
+
|
|
366
|
+
export interface DepositParamsSDKType {
|
|
367
|
+
min_deposit: CoinSDKType[];
|
|
368
|
+
max_deposit_period?: DurationSDKType;
|
|
369
|
+
}
|
|
370
|
+
/** VotingParams defines the params for voting on governance proposals. */
|
|
371
|
+
|
|
372
|
+
export interface VotingParams {
|
|
373
|
+
/** Duration of the voting period. */
|
|
374
|
+
votingPeriod?: Duration;
|
|
375
|
+
}
|
|
376
|
+
/** VotingParams defines the params for voting on governance proposals. */
|
|
377
|
+
|
|
378
|
+
export interface VotingParamsSDKType {
|
|
379
|
+
voting_period?: DurationSDKType;
|
|
380
|
+
}
|
|
381
|
+
/** TallyParams defines the params for tallying votes on governance proposals. */
|
|
382
|
+
|
|
383
|
+
export interface TallyParams {
|
|
384
|
+
/**
|
|
385
|
+
* Minimum percentage of total stake needed to vote for a result to be
|
|
386
|
+
* considered valid.
|
|
387
|
+
*/
|
|
388
|
+
quorum: Uint8Array;
|
|
389
|
+
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
|
390
|
+
|
|
391
|
+
threshold: Uint8Array;
|
|
392
|
+
/**
|
|
393
|
+
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
|
394
|
+
* vetoed. Default value: 1/3.
|
|
395
|
+
*/
|
|
396
|
+
|
|
397
|
+
vetoThreshold: Uint8Array;
|
|
398
|
+
}
|
|
399
|
+
/** TallyParams defines the params for tallying votes on governance proposals. */
|
|
400
|
+
|
|
401
|
+
export interface TallyParamsSDKType {
|
|
402
|
+
quorum: Uint8Array;
|
|
403
|
+
threshold: Uint8Array;
|
|
404
|
+
veto_threshold: Uint8Array;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
function createBaseWeightedVoteOption(): WeightedVoteOption {
|
|
408
|
+
return {
|
|
409
|
+
option: 0,
|
|
410
|
+
weight: ""
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export const WeightedVoteOption = {
|
|
415
|
+
encode(message: WeightedVoteOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
416
|
+
if (message.option !== 0) {
|
|
417
|
+
writer.uint32(8).int32(message.option);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if (message.weight !== "") {
|
|
421
|
+
writer.uint32(18).string(message.weight);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return writer;
|
|
425
|
+
},
|
|
426
|
+
|
|
427
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption {
|
|
428
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
429
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
430
|
+
const message = createBaseWeightedVoteOption();
|
|
431
|
+
|
|
432
|
+
while (reader.pos < end) {
|
|
433
|
+
const tag = reader.uint32();
|
|
434
|
+
|
|
435
|
+
switch (tag >>> 3) {
|
|
436
|
+
case 1:
|
|
437
|
+
message.option = (reader.int32() as any);
|
|
438
|
+
break;
|
|
439
|
+
|
|
440
|
+
case 2:
|
|
441
|
+
message.weight = reader.string();
|
|
442
|
+
break;
|
|
443
|
+
|
|
444
|
+
default:
|
|
445
|
+
reader.skipType(tag & 7);
|
|
446
|
+
break;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
return message;
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
fromPartial(object: DeepPartial<WeightedVoteOption>): WeightedVoteOption {
|
|
454
|
+
const message = createBaseWeightedVoteOption();
|
|
455
|
+
message.option = object.option ?? 0;
|
|
456
|
+
message.weight = object.weight ?? "";
|
|
457
|
+
return message;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
function createBaseTextProposal(): TextProposal {
|
|
463
|
+
return {
|
|
464
|
+
title: "",
|
|
465
|
+
description: ""
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export const TextProposal = {
|
|
470
|
+
encode(message: TextProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
471
|
+
if (message.title !== "") {
|
|
472
|
+
writer.uint32(10).string(message.title);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
if (message.description !== "") {
|
|
476
|
+
writer.uint32(18).string(message.description);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
return writer;
|
|
480
|
+
},
|
|
481
|
+
|
|
482
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TextProposal {
|
|
483
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
484
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
485
|
+
const message = createBaseTextProposal();
|
|
486
|
+
|
|
487
|
+
while (reader.pos < end) {
|
|
488
|
+
const tag = reader.uint32();
|
|
489
|
+
|
|
490
|
+
switch (tag >>> 3) {
|
|
491
|
+
case 1:
|
|
492
|
+
message.title = reader.string();
|
|
493
|
+
break;
|
|
494
|
+
|
|
495
|
+
case 2:
|
|
496
|
+
message.description = reader.string();
|
|
497
|
+
break;
|
|
498
|
+
|
|
499
|
+
default:
|
|
500
|
+
reader.skipType(tag & 7);
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
return message;
|
|
506
|
+
},
|
|
507
|
+
|
|
508
|
+
fromPartial(object: DeepPartial<TextProposal>): TextProposal {
|
|
509
|
+
const message = createBaseTextProposal();
|
|
510
|
+
message.title = object.title ?? "";
|
|
511
|
+
message.description = object.description ?? "";
|
|
512
|
+
return message;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
function createBaseDeposit(): Deposit {
|
|
518
|
+
return {
|
|
519
|
+
proposalId: Long.UZERO,
|
|
520
|
+
depositor: "",
|
|
521
|
+
amount: []
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export const Deposit = {
|
|
526
|
+
encode(message: Deposit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
527
|
+
if (!message.proposalId.isZero()) {
|
|
528
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
if (message.depositor !== "") {
|
|
532
|
+
writer.uint32(18).string(message.depositor);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
for (const v of message.amount) {
|
|
536
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
return writer;
|
|
540
|
+
},
|
|
541
|
+
|
|
542
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Deposit {
|
|
543
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
544
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
545
|
+
const message = createBaseDeposit();
|
|
546
|
+
|
|
547
|
+
while (reader.pos < end) {
|
|
548
|
+
const tag = reader.uint32();
|
|
549
|
+
|
|
550
|
+
switch (tag >>> 3) {
|
|
551
|
+
case 1:
|
|
552
|
+
message.proposalId = (reader.uint64() as Long);
|
|
553
|
+
break;
|
|
554
|
+
|
|
555
|
+
case 2:
|
|
556
|
+
message.depositor = reader.string();
|
|
557
|
+
break;
|
|
558
|
+
|
|
559
|
+
case 3:
|
|
560
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
561
|
+
break;
|
|
562
|
+
|
|
563
|
+
default:
|
|
564
|
+
reader.skipType(tag & 7);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
return message;
|
|
570
|
+
},
|
|
571
|
+
|
|
572
|
+
fromPartial(object: DeepPartial<Deposit>): Deposit {
|
|
573
|
+
const message = createBaseDeposit();
|
|
574
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
|
575
|
+
message.depositor = object.depositor ?? "";
|
|
576
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
577
|
+
return message;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
function createBaseProposal(): Proposal {
|
|
583
|
+
return {
|
|
584
|
+
proposalId: Long.UZERO,
|
|
585
|
+
content: undefined,
|
|
586
|
+
status: 0,
|
|
587
|
+
finalTallyResult: undefined,
|
|
588
|
+
submitTime: undefined,
|
|
589
|
+
depositEndTime: undefined,
|
|
590
|
+
totalDeposit: [],
|
|
591
|
+
votingStartTime: undefined,
|
|
592
|
+
votingEndTime: undefined
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export const Proposal = {
|
|
597
|
+
encode(message: Proposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
598
|
+
if (!message.proposalId.isZero()) {
|
|
599
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
if (message.content !== undefined) {
|
|
603
|
+
Any.encode(message.content, writer.uint32(18).fork()).ldelim();
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (message.status !== 0) {
|
|
607
|
+
writer.uint32(24).int32(message.status);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
if (message.finalTallyResult !== undefined) {
|
|
611
|
+
TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim();
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
if (message.submitTime !== undefined) {
|
|
615
|
+
Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
if (message.depositEndTime !== undefined) {
|
|
619
|
+
Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim();
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
for (const v of message.totalDeposit) {
|
|
623
|
+
Coin.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if (message.votingStartTime !== undefined) {
|
|
627
|
+
Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim();
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
if (message.votingEndTime !== undefined) {
|
|
631
|
+
Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim();
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
return writer;
|
|
635
|
+
},
|
|
636
|
+
|
|
637
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal {
|
|
638
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
639
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
640
|
+
const message = createBaseProposal();
|
|
641
|
+
|
|
642
|
+
while (reader.pos < end) {
|
|
643
|
+
const tag = reader.uint32();
|
|
644
|
+
|
|
645
|
+
switch (tag >>> 3) {
|
|
646
|
+
case 1:
|
|
647
|
+
message.proposalId = (reader.uint64() as Long);
|
|
648
|
+
break;
|
|
649
|
+
|
|
650
|
+
case 2:
|
|
651
|
+
message.content = Any.decode(reader, reader.uint32());
|
|
652
|
+
break;
|
|
653
|
+
|
|
654
|
+
case 3:
|
|
655
|
+
message.status = (reader.int32() as any);
|
|
656
|
+
break;
|
|
657
|
+
|
|
658
|
+
case 4:
|
|
659
|
+
message.finalTallyResult = TallyResult.decode(reader, reader.uint32());
|
|
660
|
+
break;
|
|
661
|
+
|
|
662
|
+
case 5:
|
|
663
|
+
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
664
|
+
break;
|
|
665
|
+
|
|
666
|
+
case 6:
|
|
667
|
+
message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
668
|
+
break;
|
|
669
|
+
|
|
670
|
+
case 7:
|
|
671
|
+
message.totalDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
672
|
+
break;
|
|
673
|
+
|
|
674
|
+
case 8:
|
|
675
|
+
message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
676
|
+
break;
|
|
677
|
+
|
|
678
|
+
case 9:
|
|
679
|
+
message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
680
|
+
break;
|
|
681
|
+
|
|
682
|
+
default:
|
|
683
|
+
reader.skipType(tag & 7);
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
return message;
|
|
689
|
+
},
|
|
690
|
+
|
|
691
|
+
fromPartial(object: DeepPartial<Proposal>): Proposal {
|
|
692
|
+
const message = createBaseProposal();
|
|
693
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
|
694
|
+
message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined;
|
|
695
|
+
message.status = object.status ?? 0;
|
|
696
|
+
message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined;
|
|
697
|
+
message.submitTime = object.submitTime ?? undefined;
|
|
698
|
+
message.depositEndTime = object.depositEndTime ?? undefined;
|
|
699
|
+
message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || [];
|
|
700
|
+
message.votingStartTime = object.votingStartTime ?? undefined;
|
|
701
|
+
message.votingEndTime = object.votingEndTime ?? undefined;
|
|
702
|
+
return message;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
function createBaseTallyResult(): TallyResult {
|
|
708
|
+
return {
|
|
709
|
+
yes: "",
|
|
710
|
+
abstain: "",
|
|
711
|
+
no: "",
|
|
712
|
+
noWithVeto: ""
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export const TallyResult = {
|
|
717
|
+
encode(message: TallyResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
718
|
+
if (message.yes !== "") {
|
|
719
|
+
writer.uint32(10).string(message.yes);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
if (message.abstain !== "") {
|
|
723
|
+
writer.uint32(18).string(message.abstain);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
if (message.no !== "") {
|
|
727
|
+
writer.uint32(26).string(message.no);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
if (message.noWithVeto !== "") {
|
|
731
|
+
writer.uint32(34).string(message.noWithVeto);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
return writer;
|
|
735
|
+
},
|
|
736
|
+
|
|
737
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult {
|
|
738
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
739
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
740
|
+
const message = createBaseTallyResult();
|
|
741
|
+
|
|
742
|
+
while (reader.pos < end) {
|
|
743
|
+
const tag = reader.uint32();
|
|
744
|
+
|
|
745
|
+
switch (tag >>> 3) {
|
|
746
|
+
case 1:
|
|
747
|
+
message.yes = reader.string();
|
|
748
|
+
break;
|
|
749
|
+
|
|
750
|
+
case 2:
|
|
751
|
+
message.abstain = reader.string();
|
|
752
|
+
break;
|
|
753
|
+
|
|
754
|
+
case 3:
|
|
755
|
+
message.no = reader.string();
|
|
756
|
+
break;
|
|
757
|
+
|
|
758
|
+
case 4:
|
|
759
|
+
message.noWithVeto = reader.string();
|
|
760
|
+
break;
|
|
761
|
+
|
|
762
|
+
default:
|
|
763
|
+
reader.skipType(tag & 7);
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
return message;
|
|
769
|
+
},
|
|
770
|
+
|
|
771
|
+
fromPartial(object: DeepPartial<TallyResult>): TallyResult {
|
|
772
|
+
const message = createBaseTallyResult();
|
|
773
|
+
message.yes = object.yes ?? "";
|
|
774
|
+
message.abstain = object.abstain ?? "";
|
|
775
|
+
message.no = object.no ?? "";
|
|
776
|
+
message.noWithVeto = object.noWithVeto ?? "";
|
|
777
|
+
return message;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
function createBaseVote(): Vote {
|
|
783
|
+
return {
|
|
784
|
+
proposalId: Long.UZERO,
|
|
785
|
+
voter: "",
|
|
786
|
+
option: 0,
|
|
787
|
+
options: []
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export const Vote = {
|
|
792
|
+
encode(message: Vote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
793
|
+
if (!message.proposalId.isZero()) {
|
|
794
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
if (message.voter !== "") {
|
|
798
|
+
writer.uint32(18).string(message.voter);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
if (message.option !== 0) {
|
|
802
|
+
writer.uint32(24).int32(message.option);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
for (const v of message.options) {
|
|
806
|
+
WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
return writer;
|
|
810
|
+
},
|
|
811
|
+
|
|
812
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Vote {
|
|
813
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
814
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
815
|
+
const message = createBaseVote();
|
|
816
|
+
|
|
817
|
+
while (reader.pos < end) {
|
|
818
|
+
const tag = reader.uint32();
|
|
819
|
+
|
|
820
|
+
switch (tag >>> 3) {
|
|
821
|
+
case 1:
|
|
822
|
+
message.proposalId = (reader.uint64() as Long);
|
|
823
|
+
break;
|
|
824
|
+
|
|
825
|
+
case 2:
|
|
826
|
+
message.voter = reader.string();
|
|
827
|
+
break;
|
|
828
|
+
|
|
829
|
+
case 3:
|
|
830
|
+
message.option = (reader.int32() as any);
|
|
831
|
+
break;
|
|
832
|
+
|
|
833
|
+
case 4:
|
|
834
|
+
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
|
835
|
+
break;
|
|
836
|
+
|
|
837
|
+
default:
|
|
838
|
+
reader.skipType(tag & 7);
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
return message;
|
|
844
|
+
},
|
|
845
|
+
|
|
846
|
+
fromPartial(object: DeepPartial<Vote>): Vote {
|
|
847
|
+
const message = createBaseVote();
|
|
848
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
|
849
|
+
message.voter = object.voter ?? "";
|
|
850
|
+
message.option = object.option ?? 0;
|
|
851
|
+
message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || [];
|
|
852
|
+
return message;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
function createBaseDepositParams(): DepositParams {
|
|
858
|
+
return {
|
|
859
|
+
minDeposit: [],
|
|
860
|
+
maxDepositPeriod: undefined
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export const DepositParams = {
|
|
865
|
+
encode(message: DepositParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
866
|
+
for (const v of message.minDeposit) {
|
|
867
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
if (message.maxDepositPeriod !== undefined) {
|
|
871
|
+
Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
return writer;
|
|
875
|
+
},
|
|
876
|
+
|
|
877
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams {
|
|
878
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
879
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
880
|
+
const message = createBaseDepositParams();
|
|
881
|
+
|
|
882
|
+
while (reader.pos < end) {
|
|
883
|
+
const tag = reader.uint32();
|
|
884
|
+
|
|
885
|
+
switch (tag >>> 3) {
|
|
886
|
+
case 1:
|
|
887
|
+
message.minDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
888
|
+
break;
|
|
889
|
+
|
|
890
|
+
case 2:
|
|
891
|
+
message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
|
|
892
|
+
break;
|
|
893
|
+
|
|
894
|
+
default:
|
|
895
|
+
reader.skipType(tag & 7);
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
return message;
|
|
901
|
+
},
|
|
902
|
+
|
|
903
|
+
fromPartial(object: DeepPartial<DepositParams>): DepositParams {
|
|
904
|
+
const message = createBaseDepositParams();
|
|
905
|
+
message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || [];
|
|
906
|
+
message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined;
|
|
907
|
+
return message;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
function createBaseVotingParams(): VotingParams {
|
|
913
|
+
return {
|
|
914
|
+
votingPeriod: undefined
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export const VotingParams = {
|
|
919
|
+
encode(message: VotingParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
920
|
+
if (message.votingPeriod !== undefined) {
|
|
921
|
+
Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
return writer;
|
|
925
|
+
},
|
|
926
|
+
|
|
927
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams {
|
|
928
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
929
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
930
|
+
const message = createBaseVotingParams();
|
|
931
|
+
|
|
932
|
+
while (reader.pos < end) {
|
|
933
|
+
const tag = reader.uint32();
|
|
934
|
+
|
|
935
|
+
switch (tag >>> 3) {
|
|
936
|
+
case 1:
|
|
937
|
+
message.votingPeriod = Duration.decode(reader, reader.uint32());
|
|
938
|
+
break;
|
|
939
|
+
|
|
940
|
+
default:
|
|
941
|
+
reader.skipType(tag & 7);
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
return message;
|
|
947
|
+
},
|
|
948
|
+
|
|
949
|
+
fromPartial(object: DeepPartial<VotingParams>): VotingParams {
|
|
950
|
+
const message = createBaseVotingParams();
|
|
951
|
+
message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined;
|
|
952
|
+
return message;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
function createBaseTallyParams(): TallyParams {
|
|
958
|
+
return {
|
|
959
|
+
quorum: new Uint8Array(),
|
|
960
|
+
threshold: new Uint8Array(),
|
|
961
|
+
vetoThreshold: new Uint8Array()
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export const TallyParams = {
|
|
966
|
+
encode(message: TallyParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
967
|
+
if (message.quorum.length !== 0) {
|
|
968
|
+
writer.uint32(10).bytes(message.quorum);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
if (message.threshold.length !== 0) {
|
|
972
|
+
writer.uint32(18).bytes(message.threshold);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
if (message.vetoThreshold.length !== 0) {
|
|
976
|
+
writer.uint32(26).bytes(message.vetoThreshold);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
return writer;
|
|
980
|
+
},
|
|
981
|
+
|
|
982
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams {
|
|
983
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
984
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
985
|
+
const message = createBaseTallyParams();
|
|
986
|
+
|
|
987
|
+
while (reader.pos < end) {
|
|
988
|
+
const tag = reader.uint32();
|
|
989
|
+
|
|
990
|
+
switch (tag >>> 3) {
|
|
991
|
+
case 1:
|
|
992
|
+
message.quorum = reader.bytes();
|
|
993
|
+
break;
|
|
994
|
+
|
|
995
|
+
case 2:
|
|
996
|
+
message.threshold = reader.bytes();
|
|
997
|
+
break;
|
|
998
|
+
|
|
999
|
+
case 3:
|
|
1000
|
+
message.vetoThreshold = reader.bytes();
|
|
1001
|
+
break;
|
|
1002
|
+
|
|
1003
|
+
default:
|
|
1004
|
+
reader.skipType(tag & 7);
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
return message;
|
|
1010
|
+
},
|
|
1011
|
+
|
|
1012
|
+
fromPartial(object: DeepPartial<TallyParams>): TallyParams {
|
|
1013
|
+
const message = createBaseTallyParams();
|
|
1014
|
+
message.quorum = object.quorum ?? new Uint8Array();
|
|
1015
|
+
message.threshold = object.threshold ?? new Uint8Array();
|
|
1016
|
+
message.vetoThreshold = object.vetoThreshold ?? new Uint8Array();
|
|
1017
|
+
return message;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
};
|