juno-network 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -2
- package/main/codegen/JunoSwap.client.js +44 -42
- package/module/codegen/JunoSwap.client.js +180 -0
- package/module/codegen/JunoSwap.types.js +1 -0
- package/module/codegen/confio/proofs.js +1152 -0
- package/module/codegen/contracts.js +18 -0
- package/module/codegen/cosmos/app/v1alpha1/config.js +148 -0
- package/module/codegen/cosmos/app/v1alpha1/module.js +227 -0
- package/module/codegen/cosmos/app/v1alpha1/query.js +104 -0
- package/module/codegen/cosmos/app/v1alpha1/query.rpc.query.js +20 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +297 -0
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +82 -0
- package/module/codegen/cosmos/auth/v1beta1/query.js +806 -0
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +73 -0
- package/module/codegen/cosmos/auth/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/authz/v1beta1/authz.js +236 -0
- package/module/codegen/cosmos/authz/v1beta1/event.js +135 -0
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +49 -0
- package/module/codegen/cosmos/authz/v1beta1/query.js +365 -0
- package/module/codegen/cosmos/authz/v1beta1/query.lcd.js +76 -0
- package/module/codegen/cosmos/authz/v1beta1/query.rpc.query.js +53 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +91 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +309 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/bank/v1beta1/authz.js +49 -0
- package/module/codegen/cosmos/bank/v1beta1/bank.js +461 -0
- package/module/codegen/cosmos/bank/v1beta1/genesis.js +137 -0
- package/module/codegen/cosmos/bank/v1beta1/query.js +972 -0
- package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +147 -0
- package/module/codegen/cosmos/bank/v1beta1/query.rpc.query.js +123 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +78 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.js +195 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +754 -0
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +155 -0
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +235 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1281 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +712 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +225 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +104 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1091 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +72 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +55 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +209 -0
- package/module/codegen/cosmos/bundle.js +190 -0
- package/module/codegen/cosmos/capability/v1beta1/capability.js +199 -0
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +150 -0
- package/module/codegen/cosmos/client.js +44 -0
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +27 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +129 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/crypto/ed25519/keys.js +95 -0
- package/module/codegen/cosmos/crypto/hd/v1/hd.js +88 -0
- package/module/codegen/cosmos/crypto/keyring/v1/record.js +270 -0
- package/module/codegen/cosmos/crypto/multisig/keys.js +59 -0
- package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +105 -0
- package/module/codegen/cosmos/crypto/secp256k1/keys.js +95 -0
- package/module/codegen/cosmos/crypto/secp256r1/keys.js +95 -0
- package/module/codegen/cosmos/distribution/v1beta1/distribution.js +728 -0
- package/module/codegen/cosmos/distribution/v1beta1/genesis.js +585 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.js +880 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +101 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +119 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +88 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.js +382 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +102 -0
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.js +255 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +36 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +29 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +137 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +365 -0
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +429 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.lcd.js +50 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +54 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +247 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +89 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +68 -0
- package/module/codegen/cosmos/gov/v1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1/gov.js +750 -0
- package/module/codegen/cosmos/gov/v1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1/tx.amino.js +167 -0
- package/module/codegen/cosmos/gov/v1/tx.js +545 -0
- package/module/codegen/cosmos/gov/v1/tx.registry.js +120 -0
- package/module/codegen/cosmos/gov/v1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1beta1/gov.js +801 -0
- package/module/codegen/cosmos/gov/v1beta1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1beta1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +128 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.js +424 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/group/v1/events.js +549 -0
- package/module/codegen/cosmos/group/v1/genesis.js +175 -0
- package/module/codegen/cosmos/group/v1/query.js +1769 -0
- package/module/codegen/cosmos/group/v1/query.lcd.js +167 -0
- package/module/codegen/cosmos/group/v1/query.rpc.query.js +104 -0
- package/module/codegen/cosmos/group/v1/tx.amino.js +429 -0
- package/module/codegen/cosmos/group/v1/tx.js +1969 -0
- package/module/codegen/cosmos/group/v1/tx.registry.js +509 -0
- package/module/codegen/cosmos/group/v1/tx.rpc.msg.js +111 -0
- package/module/codegen/cosmos/group/v1/types.js +1350 -0
- package/module/codegen/cosmos/lcd.js +50 -0
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +73 -0
- package/module/codegen/cosmos/mint/v1beta1/mint.js +193 -0
- package/module/codegen/cosmos/mint/v1beta1/query.js +308 -0
- package/module/codegen/cosmos/mint/v1beta1/query.lcd.js +32 -0
- package/module/codegen/cosmos/mint/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/msg/v1/msg.js +1 -0
- package/module/codegen/cosmos/nft/v1beta1/event.js +264 -0
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +163 -0
- package/module/codegen/cosmos/nft/v1beta1/nft.js +242 -0
- package/module/codegen/cosmos/nft/v1beta1/query.js +917 -0
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +88 -0
- package/module/codegen/cosmos/nft/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +31 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.js +141 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/orm/v1/orm.js +305 -0
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +225 -0
- package/module/codegen/cosmos/params/v1beta1/params.js +175 -0
- package/module/codegen/cosmos/params/v1beta1/query.js +317 -0
- package/module/codegen/cosmos/params/v1beta1/query.lcd.js +38 -0
- package/module/codegen/cosmos/params/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/rpc.query.js +34 -0
- package/module/codegen/cosmos/rpc.tx.js +25 -0
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +317 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.js +355 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +43 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +234 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +19 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +105 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/staking/v1beta1/authz.js +204 -0
- package/module/codegen/cosmos/staking/v1beta1/genesis.js +178 -0
- package/module/codegen/cosmos/staking/v1beta1/query.js +1469 -0
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +196 -0
- package/module/codegen/cosmos/staking/v1beta1/query.rpc.query.js +174 -0
- package/module/codegen/cosmos/staking/v1beta1/staking.js +1446 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +216 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.js +598 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.registry.js +120 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +378 -0
- package/module/codegen/cosmos/tx/v1beta1/service.js +714 -0
- package/module/codegen/cosmos/tx/v1beta1/service.lcd.js +62 -0
- package/module/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +75 -0
- package/module/codegen/cosmos/tx/v1beta1/tx.js +903 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +445 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +66 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +75 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +59 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +174 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +273 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +114 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +440 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +480 -0
- package/module/codegen/cosmos_proto/bundle.js +8 -0
- package/module/codegen/cosmos_proto/cosmos.js +194 -0
- package/module/codegen/cosmwasm/bundle.js +31 -0
- package/module/codegen/cosmwasm/client.js +39 -0
- package/module/codegen/cosmwasm/lcd.js +57 -0
- package/module/codegen/cosmwasm/rpc.query.js +39 -0
- package/module/codegen/cosmwasm/rpc.tx.js +30 -0
- package/module/codegen/cosmwasm/wasm/v1/genesis.js +358 -0
- package/module/codegen/cosmwasm/wasm/v1/ibc.js +127 -0
- package/module/codegen/cosmwasm/wasm/v1/proposal.js +772 -0
- package/module/codegen/cosmwasm/wasm/v1/query.js +1046 -0
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +128 -0
- package/module/codegen/cosmwasm/wasm/v1/query.rpc.query.js +123 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.amino.js +189 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.js +711 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.registry.js +141 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +55 -0
- package/module/codegen/cosmwasm/wasm/v1/types.js +668 -0
- package/module/codegen/gogoproto/bundle.js +8 -0
- package/module/codegen/gogoproto/gogo.js +1 -0
- package/module/codegen/google/api/annotations.js +1 -0
- package/module/codegen/google/api/http.js +328 -0
- package/module/codegen/google/bundle.js +19 -0
- package/module/codegen/google/protobuf/any.js +58 -0
- package/module/codegen/google/protobuf/descriptor.js +2775 -0
- package/module/codegen/google/protobuf/duration.js +119 -0
- package/module/codegen/google/protobuf/empty.js +35 -0
- package/module/codegen/google/protobuf/field_mask.js +48 -0
- package/module/codegen/google/protobuf/struct.js +310 -0
- package/module/codegen/google/protobuf/timestamp.js +143 -0
- package/module/codegen/google/protobuf/wrappers.js +426 -0
- package/module/codegen/ibc/applications/transfer/v1/genesis.js +69 -0
- package/module/codegen/ibc/applications/transfer/v1/query.js +276 -0
- package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +46 -0
- package/module/codegen/ibc/applications/transfer/v1/query.rpc.query.js +55 -0
- package/module/codegen/ibc/applications/transfer/v1/transfer.js +115 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +58 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.js +150 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.registry.js +36 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +20 -0
- package/module/codegen/ibc/applications/transfer/v2/packet.js +78 -0
- package/module/codegen/ibc/bundle.js +120 -0
- package/module/codegen/ibc/client.js +45 -0
- package/module/codegen/ibc/core/channel/v1/channel.js +646 -0
- package/module/codegen/ibc/core/channel/v1/genesis.js +188 -0
- package/module/codegen/ibc/core/channel/v1/query.js +1759 -0
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +162 -0
- package/module/codegen/ibc/core/channel/v1/query.rpc.query.js +165 -0
- package/module/codegen/ibc/core/channel/v1/tx.amino.js +530 -0
- package/module/codegen/ibc/core/channel/v1/tx.js +1218 -0
- package/module/codegen/ibc/core/channel/v1/tx.registry.js +225 -0
- package/module/codegen/ibc/core/channel/v1/tx.rpc.msg.js +83 -0
- package/module/codegen/ibc/core/client/v1/client.js +433 -0
- package/module/codegen/ibc/core/client/v1/genesis.js +215 -0
- package/module/codegen/ibc/core/client/v1/query.js +814 -0
- package/module/codegen/ibc/core/client/v1/query.lcd.js +104 -0
- package/module/codegen/ibc/core/client/v1/query.rpc.query.js +110 -0
- package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
- package/module/codegen/ibc/core/client/v1/tx.js +436 -0
- package/module/codegen/ibc/core/client/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/commitment/v1/commitment.js +190 -0
- package/module/codegen/ibc/core/connection/v1/connection.js +537 -0
- package/module/codegen/ibc/core/connection/v1/genesis.js +81 -0
- package/module/codegen/ibc/core/connection/v1/query.js +608 -0
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +65 -0
- package/module/codegen/ibc/core/connection/v1/query.rpc.query.js +77 -0
- package/module/codegen/ibc/core/connection/v1/tx.amino.js +269 -0
- package/module/codegen/ibc/core/connection/v1/tx.js +603 -0
- package/module/codegen/ibc/core/connection/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/port/v1/query.js +182 -0
- package/module/codegen/ibc/core/port/v1/query.rpc.query.js +20 -0
- package/module/codegen/ibc/core/types/v1/genesis.js +87 -0
- package/module/codegen/ibc/lcd.js +76 -0
- package/module/codegen/ibc/lightclients/localhost/v1/localhost.js +59 -0
- package/module/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/tendermint/v1/tendermint.js +424 -0
- package/module/codegen/ibc/rpc.query.js +52 -0
- package/module/codegen/ibc/rpc.tx.js +43 -0
- package/module/codegen/ics23/bundle.js +8 -0
- package/module/codegen/index.js +18 -0
- package/module/codegen/juno/bundle.js +20 -0
- package/module/codegen/juno/lcd.js +55 -0
- package/module/codegen/juno/mint/genesis.js +57 -0
- package/module/codegen/juno/mint/mint.js +137 -0
- package/module/codegen/juno/mint/query.js +243 -0
- package/module/codegen/juno/mint/query.lcd.js +35 -0
- package/module/codegen/juno/mint/query.rpc.query.js +53 -0
- package/module/codegen/juno/rpc.query.js +37 -0
- package/module/codegen/tendermint/abci/types.js +3341 -0
- package/module/codegen/tendermint/bundle.js +36 -0
- package/module/codegen/tendermint/crypto/keys.js +58 -0
- package/module/codegen/tendermint/crypto/proof.js +317 -0
- package/module/codegen/tendermint/libs/bits/types.js +71 -0
- package/module/codegen/tendermint/p2p/types.js +386 -0
- package/module/codegen/tendermint/types/block.js +78 -0
- package/module/codegen/tendermint/types/evidence.js +281 -0
- package/module/codegen/tendermint/types/params.js +361 -0
- package/module/codegen/tendermint/types/types.js +1172 -0
- package/module/codegen/tendermint/types/validator.js +202 -0
- package/module/codegen/tendermint/version/types.js +119 -0
- package/module/index.js +1 -0
- package/package.json +8 -3
- package/src/codegen/JunoSwap.client.ts +299 -0
- package/src/codegen/JunoSwap.types.ts +143 -0
- package/src/codegen/confio/proofs.ts +1521 -0
- package/src/codegen/contracts.ts +13 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +172 -0
- package/src/codegen/cosmos/app/v1alpha1/module.ts +308 -0
- package/src/codegen/cosmos/app/v1alpha1/query.rpc.query.ts +26 -0
- package/src/codegen/cosmos/app/v1alpha1/query.ts +112 -0
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +316 -0
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +88 -0
- package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +72 -0
- package/src/codegen/cosmos/auth/v1beta1/query.rpc.query.ts +90 -0
- package/src/codegen/cosmos/auth/v1beta1/query.ts +865 -0
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +306 -0
- package/src/codegen/cosmos/authz/v1beta1/event.ts +180 -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 +68 -0
- package/src/codegen/cosmos/authz/v1beta1/query.ts +464 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +131 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +51 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +396 -0
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +68 -0
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +666 -0
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +194 -0
- package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +150 -0
- package/src/codegen/cosmos/bank/v1beta1/query.rpc.query.ts +155 -0
- package/src/codegen/cosmos/bank/v1beta1/query.ts +1301 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +110 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +35 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +230 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1106 -0
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +145 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +282 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +254 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1708 -0
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +759 -0
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +242 -0
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +112 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +74 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.ts +80 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1181 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +266 -0
- package/src/codegen/cosmos/bundle.ts +214 -0
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +216 -0
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +168 -0
- package/src/codegen/cosmos/client.ts +51 -0
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +69 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +37 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +136 -0
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +129 -0
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +349 -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 +122 -0
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +945 -0
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +800 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +104 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.rpc.query.ts +149 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +1187 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +120 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +59 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +473 -0
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +72 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +39 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +283 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +56 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +144 -0
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +421 -0
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +52 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.query.ts +48 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +467 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +75 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +91 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +38 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +269 -0
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/gov/v1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1/gov.ts +983 -0
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +226 -0
- package/src/codegen/cosmos/gov/v1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +66 -0
- package/src/codegen/cosmos/gov/v1/tx.ts +661 -0
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +1064 -0
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1beta1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1beta1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +174 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +518 -0
- package/src/codegen/cosmos/group/v1/events.ts +600 -0
- package/src/codegen/cosmos/group/v1/genesis.ts +208 -0
- package/src/codegen/cosmos/group/v1/query.lcd.ts +159 -0
- package/src/codegen/cosmos/group/v1/query.rpc.query.ts +147 -0
- package/src/codegen/cosmos/group/v1/query.ts +1945 -0
- package/src/codegen/cosmos/group/v1/tx.amino.ts +585 -0
- package/src/codegen/cosmos/group/v1/tx.registry.ts +512 -0
- package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +157 -0
- package/src/codegen/cosmos/group/v1/tx.ts +2197 -0
- package/src/codegen/cosmos/group/v1/types.ts +1577 -0
- package/src/codegen/cosmos/lcd.ts +52 -0
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +81 -0
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +218 -0
- package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +33 -0
- package/src/codegen/cosmos/mint/v1beta1/query.rpc.query.ts +46 -0
- package/src/codegen/cosmos/mint/v1beta1/query.ts +339 -0
- package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
- package/src/codegen/cosmos/nft/v1beta1/event.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +174 -0
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +86 -0
- package/src/codegen/cosmos/nft/v1beta1/query.rpc.query.ts +88 -0
- package/src/codegen/cosmos/nft/v1beta1/query.ts +976 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +156 -0
- package/src/codegen/cosmos/orm/v1/orm.ts +392 -0
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +289 -0
- package/src/codegen/cosmos/params/v1beta1/params.ts +187 -0
- package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +40 -0
- package/src/codegen/cosmos/params/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/params/v1beta1/query.ts +348 -0
- package/src/codegen/cosmos/rpc.query.ts +36 -0
- package/src/codegen/cosmos/rpc.tx.ts +28 -0
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +356 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +45 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.rpc.query.ts +47 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +394 -0
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +268 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +110 -0
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +265 -0
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +253 -0
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +199 -0
- package/src/codegen/cosmos/staking/v1beta1/query.rpc.query.ts +222 -0
- package/src/codegen/cosmos/staking/v1beta1/query.ts +1970 -0
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +1957 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +294 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +68 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +735 -0
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +528 -0
- package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +65 -0
- package/src/codegen/cosmos/tx/v1beta1/service.rpc.svc.ts +94 -0
- package/src/codegen/cosmos/tx/v1beta1/service.ts +984 -0
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +1497 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +69 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.query.ts +99 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +631 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +86 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +40 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +245 -0
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +432 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +157 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +50 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +475 -0
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +527 -0
- package/src/codegen/cosmos_proto/bundle.ts +3 -0
- package/src/codegen/cosmos_proto/cosmos.ts +289 -0
- package/src/codegen/cosmwasm/bundle.ts +34 -0
- package/src/codegen/cosmwasm/client.ts +44 -0
- package/src/codegen/cosmwasm/lcd.ts +59 -0
- package/src/codegen/cosmwasm/rpc.query.ts +41 -0
- package/src/codegen/cosmwasm/rpc.tx.ts +33 -0
- package/src/codegen/cosmwasm/wasm/v1/genesis.ts +433 -0
- package/src/codegen/cosmwasm/wasm/v1/ibc.ts +180 -0
- package/src/codegen/cosmwasm/wasm/v1/proposal.ts +1083 -0
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +131 -0
- package/src/codegen/cosmwasm/wasm/v1/query.rpc.query.ts +152 -0
- package/src/codegen/cosmwasm/wasm/v1/query.ts +1378 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.amino.ts +252 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.registry.ts +142 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts +75 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.ts +944 -0
- package/src/codegen/cosmwasm/wasm/v1/types.ts +861 -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 +683 -0
- package/src/codegen/google/bundle.ts +19 -0
- package/src/codegen/google/protobuf/any.ts +291 -0
- package/src/codegen/google/protobuf/descriptor.ts +4317 -0
- package/src/codegen/google/protobuf/duration.ts +215 -0
- package/src/codegen/google/protobuf/empty.ts +62 -0
- package/src/codegen/google/protobuf/field_mask.ts +459 -0
- package/src/codegen/google/protobuf/struct.ts +420 -0
- package/src/codegen/google/protobuf/timestamp.ts +259 -0
- package/src/codegen/google/protobuf/wrappers.ts +587 -0
- package/src/codegen/ibc/applications/transfer/v1/genesis.ts +82 -0
- package/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +49 -0
- package/src/codegen/ibc/applications/transfer/v1/query.rpc.query.ts +66 -0
- package/src/codegen/ibc/applications/transfer/v1/query.ts +369 -0
- package/src/codegen/ibc/applications/transfer/v1/transfer.ts +182 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +73 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +37 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts +25 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.ts +217 -0
- package/src/codegen/ibc/applications/transfer/v2/packet.ts +115 -0
- package/src/codegen/ibc/bundle.ts +125 -0
- package/src/codegen/ibc/client.ts +53 -0
- package/src/codegen/ibc/core/channel/v1/channel.ts +923 -0
- package/src/codegen/ibc/core/channel/v1/genesis.ts +231 -0
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +165 -0
- package/src/codegen/ibc/core/channel/v1/query.rpc.query.ts +214 -0
- package/src/codegen/ibc/core/channel/v1/query.ts +2444 -0
- package/src/codegen/ibc/core/channel/v1/tx.amino.ts +670 -0
- package/src/codegen/ibc/core/channel/v1/tx.registry.ts +226 -0
- package/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts +116 -0
- package/src/codegen/ibc/core/channel/v1/tx.ts +1492 -0
- package/src/codegen/ibc/core/client/v1/client.ts +629 -0
- package/src/codegen/ibc/core/client/v1/genesis.ts +288 -0
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +107 -0
- package/src/codegen/ibc/core/client/v1/query.rpc.query.ts +138 -0
- package/src/codegen/ibc/core/client/v1/query.ts +1130 -0
- package/src/codegen/ibc/core/client/v1/tx.amino.ts +205 -0
- package/src/codegen/ibc/core/client/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts +55 -0
- package/src/codegen/ibc/core/client/v1/tx.ts +603 -0
- package/src/codegen/ibc/core/commitment/v1/commitment.ts +257 -0
- package/src/codegen/ibc/core/connection/v1/connection.ts +758 -0
- package/src/codegen/ibc/core/connection/v1/genesis.ts +98 -0
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +68 -0
- package/src/codegen/ibc/core/connection/v1/query.rpc.query.ts +97 -0
- package/src/codegen/ibc/core/connection/v1/query.ts +836 -0
- package/src/codegen/ibc/core/connection/v1/tx.amino.ts +343 -0
- package/src/codegen/ibc/core/connection/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts +56 -0
- package/src/codegen/ibc/core/connection/v1/tx.ts +795 -0
- package/src/codegen/ibc/core/port/v1/query.rpc.query.ts +26 -0
- package/src/codegen/ibc/core/port/v1/query.ts +204 -0
- package/src/codegen/ibc/core/types/v1/genesis.ts +98 -0
- package/src/codegen/ibc/lcd.ts +78 -0
- package/src/codegen/ibc/lightclients/localhost/v1/localhost.ts +82 -0
- package/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts +626 -0
- package/src/codegen/ibc/rpc.query.ts +54 -0
- package/src/codegen/ibc/rpc.tx.ts +46 -0
- package/src/codegen/ics23/bundle.ts +3 -0
- package/src/codegen/index.ts +19 -0
- package/src/codegen/juno/bundle.ts +18 -0
- package/src/codegen/juno/lcd.ts +57 -0
- package/src/codegen/juno/mint/genesis.ts +76 -0
- package/src/codegen/juno/mint/mint.ts +172 -0
- package/src/codegen/juno/mint/query.lcd.ts +38 -0
- package/src/codegen/juno/mint/query.rpc.query.ts +64 -0
- package/src/codegen/juno/mint/query.ts +312 -0
- package/src/codegen/juno/rpc.query.ts +39 -0
- package/src/codegen/tendermint/abci/types.ts +3943 -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 +375 -0
- package/src/codegen/tendermint/libs/bits/types.ts +77 -0
- package/src/codegen/tendermint/p2p/types.ts +438 -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 +521 -0
- package/src/codegen/tendermint/types/types.ts +1399 -0
- package/src/codegen/tendermint/types/validator.ts +228 -0
- package/src/codegen/tendermint/version/types.ts +152 -0
- package/src/index.ts +1 -0
- package/types/codegen/JunoSwap.client.d.ts +29 -27
- package/types/codegen/JunoSwap.types.d.ts +43 -25
@@ -0,0 +1,983 @@
|
|
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 "@osmonauts/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
|
+
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
27
|
+
|
28
|
+
export enum VoteOptionSDKType {
|
29
|
+
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
30
|
+
VOTE_OPTION_UNSPECIFIED = 0,
|
31
|
+
|
32
|
+
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
33
|
+
VOTE_OPTION_YES = 1,
|
34
|
+
|
35
|
+
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
36
|
+
VOTE_OPTION_ABSTAIN = 2,
|
37
|
+
|
38
|
+
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
39
|
+
VOTE_OPTION_NO = 3,
|
40
|
+
|
41
|
+
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
42
|
+
VOTE_OPTION_NO_WITH_VETO = 4,
|
43
|
+
UNRECOGNIZED = -1,
|
44
|
+
}
|
45
|
+
export function voteOptionFromJSON(object: any): VoteOption {
|
46
|
+
switch (object) {
|
47
|
+
case 0:
|
48
|
+
case "VOTE_OPTION_UNSPECIFIED":
|
49
|
+
return VoteOption.VOTE_OPTION_UNSPECIFIED;
|
50
|
+
|
51
|
+
case 1:
|
52
|
+
case "VOTE_OPTION_YES":
|
53
|
+
return VoteOption.VOTE_OPTION_YES;
|
54
|
+
|
55
|
+
case 2:
|
56
|
+
case "VOTE_OPTION_ABSTAIN":
|
57
|
+
return VoteOption.VOTE_OPTION_ABSTAIN;
|
58
|
+
|
59
|
+
case 3:
|
60
|
+
case "VOTE_OPTION_NO":
|
61
|
+
return VoteOption.VOTE_OPTION_NO;
|
62
|
+
|
63
|
+
case 4:
|
64
|
+
case "VOTE_OPTION_NO_WITH_VETO":
|
65
|
+
return VoteOption.VOTE_OPTION_NO_WITH_VETO;
|
66
|
+
|
67
|
+
case -1:
|
68
|
+
case "UNRECOGNIZED":
|
69
|
+
default:
|
70
|
+
return VoteOption.UNRECOGNIZED;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
export function voteOptionToJSON(object: VoteOption): string {
|
74
|
+
switch (object) {
|
75
|
+
case VoteOption.VOTE_OPTION_UNSPECIFIED:
|
76
|
+
return "VOTE_OPTION_UNSPECIFIED";
|
77
|
+
|
78
|
+
case VoteOption.VOTE_OPTION_YES:
|
79
|
+
return "VOTE_OPTION_YES";
|
80
|
+
|
81
|
+
case VoteOption.VOTE_OPTION_ABSTAIN:
|
82
|
+
return "VOTE_OPTION_ABSTAIN";
|
83
|
+
|
84
|
+
case VoteOption.VOTE_OPTION_NO:
|
85
|
+
return "VOTE_OPTION_NO";
|
86
|
+
|
87
|
+
case VoteOption.VOTE_OPTION_NO_WITH_VETO:
|
88
|
+
return "VOTE_OPTION_NO_WITH_VETO";
|
89
|
+
|
90
|
+
default:
|
91
|
+
return "UNKNOWN";
|
92
|
+
}
|
93
|
+
}
|
94
|
+
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
95
|
+
|
96
|
+
export enum ProposalStatus {
|
97
|
+
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
|
98
|
+
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
99
|
+
|
100
|
+
/**
|
101
|
+
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
102
|
+
* period.
|
103
|
+
*/
|
104
|
+
PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
|
105
|
+
|
106
|
+
/**
|
107
|
+
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
108
|
+
* period.
|
109
|
+
*/
|
110
|
+
PROPOSAL_STATUS_VOTING_PERIOD = 2,
|
111
|
+
|
112
|
+
/**
|
113
|
+
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
114
|
+
* passed.
|
115
|
+
*/
|
116
|
+
PROPOSAL_STATUS_PASSED = 3,
|
117
|
+
|
118
|
+
/**
|
119
|
+
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
120
|
+
* been rejected.
|
121
|
+
*/
|
122
|
+
PROPOSAL_STATUS_REJECTED = 4,
|
123
|
+
|
124
|
+
/**
|
125
|
+
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
126
|
+
* failed.
|
127
|
+
*/
|
128
|
+
PROPOSAL_STATUS_FAILED = 5,
|
129
|
+
UNRECOGNIZED = -1,
|
130
|
+
}
|
131
|
+
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
132
|
+
|
133
|
+
export enum ProposalStatusSDKType {
|
134
|
+
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
|
135
|
+
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
136
|
+
|
137
|
+
/**
|
138
|
+
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
139
|
+
* period.
|
140
|
+
*/
|
141
|
+
PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
|
142
|
+
|
143
|
+
/**
|
144
|
+
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
145
|
+
* period.
|
146
|
+
*/
|
147
|
+
PROPOSAL_STATUS_VOTING_PERIOD = 2,
|
148
|
+
|
149
|
+
/**
|
150
|
+
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
151
|
+
* passed.
|
152
|
+
*/
|
153
|
+
PROPOSAL_STATUS_PASSED = 3,
|
154
|
+
|
155
|
+
/**
|
156
|
+
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
157
|
+
* been rejected.
|
158
|
+
*/
|
159
|
+
PROPOSAL_STATUS_REJECTED = 4,
|
160
|
+
|
161
|
+
/**
|
162
|
+
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
163
|
+
* failed.
|
164
|
+
*/
|
165
|
+
PROPOSAL_STATUS_FAILED = 5,
|
166
|
+
UNRECOGNIZED = -1,
|
167
|
+
}
|
168
|
+
export function proposalStatusFromJSON(object: any): ProposalStatus {
|
169
|
+
switch (object) {
|
170
|
+
case 0:
|
171
|
+
case "PROPOSAL_STATUS_UNSPECIFIED":
|
172
|
+
return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
|
173
|
+
|
174
|
+
case 1:
|
175
|
+
case "PROPOSAL_STATUS_DEPOSIT_PERIOD":
|
176
|
+
return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD;
|
177
|
+
|
178
|
+
case 2:
|
179
|
+
case "PROPOSAL_STATUS_VOTING_PERIOD":
|
180
|
+
return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD;
|
181
|
+
|
182
|
+
case 3:
|
183
|
+
case "PROPOSAL_STATUS_PASSED":
|
184
|
+
return ProposalStatus.PROPOSAL_STATUS_PASSED;
|
185
|
+
|
186
|
+
case 4:
|
187
|
+
case "PROPOSAL_STATUS_REJECTED":
|
188
|
+
return ProposalStatus.PROPOSAL_STATUS_REJECTED;
|
189
|
+
|
190
|
+
case 5:
|
191
|
+
case "PROPOSAL_STATUS_FAILED":
|
192
|
+
return ProposalStatus.PROPOSAL_STATUS_FAILED;
|
193
|
+
|
194
|
+
case -1:
|
195
|
+
case "UNRECOGNIZED":
|
196
|
+
default:
|
197
|
+
return ProposalStatus.UNRECOGNIZED;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
export function proposalStatusToJSON(object: ProposalStatus): string {
|
201
|
+
switch (object) {
|
202
|
+
case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
|
203
|
+
return "PROPOSAL_STATUS_UNSPECIFIED";
|
204
|
+
|
205
|
+
case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD:
|
206
|
+
return "PROPOSAL_STATUS_DEPOSIT_PERIOD";
|
207
|
+
|
208
|
+
case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD:
|
209
|
+
return "PROPOSAL_STATUS_VOTING_PERIOD";
|
210
|
+
|
211
|
+
case ProposalStatus.PROPOSAL_STATUS_PASSED:
|
212
|
+
return "PROPOSAL_STATUS_PASSED";
|
213
|
+
|
214
|
+
case ProposalStatus.PROPOSAL_STATUS_REJECTED:
|
215
|
+
return "PROPOSAL_STATUS_REJECTED";
|
216
|
+
|
217
|
+
case ProposalStatus.PROPOSAL_STATUS_FAILED:
|
218
|
+
return "PROPOSAL_STATUS_FAILED";
|
219
|
+
|
220
|
+
default:
|
221
|
+
return "UNKNOWN";
|
222
|
+
}
|
223
|
+
}
|
224
|
+
/** WeightedVoteOption defines a unit of vote for vote split. */
|
225
|
+
|
226
|
+
export interface WeightedVoteOption {
|
227
|
+
option: VoteOption;
|
228
|
+
weight: string;
|
229
|
+
}
|
230
|
+
/** WeightedVoteOption defines a unit of vote for vote split. */
|
231
|
+
|
232
|
+
export interface WeightedVoteOptionSDKType {
|
233
|
+
option: VoteOptionSDKType;
|
234
|
+
weight: string;
|
235
|
+
}
|
236
|
+
/**
|
237
|
+
* Deposit defines an amount deposited by an account address to an active
|
238
|
+
* proposal.
|
239
|
+
*/
|
240
|
+
|
241
|
+
export interface Deposit {
|
242
|
+
proposalId: Long;
|
243
|
+
depositor: string;
|
244
|
+
amount: Coin[];
|
245
|
+
}
|
246
|
+
/**
|
247
|
+
* Deposit defines an amount deposited by an account address to an active
|
248
|
+
* proposal.
|
249
|
+
*/
|
250
|
+
|
251
|
+
export interface DepositSDKType {
|
252
|
+
proposal_id: Long;
|
253
|
+
depositor: string;
|
254
|
+
amount: CoinSDKType[];
|
255
|
+
}
|
256
|
+
/** Proposal defines the core field members of a governance proposal. */
|
257
|
+
|
258
|
+
export interface Proposal {
|
259
|
+
id: Long;
|
260
|
+
messages: Any[];
|
261
|
+
status: ProposalStatus;
|
262
|
+
/**
|
263
|
+
* final_tally_result is the final tally result of the proposal. When
|
264
|
+
* querying a proposal via gRPC, this field is not populated until the
|
265
|
+
* proposal's voting period has ended.
|
266
|
+
*/
|
267
|
+
|
268
|
+
finalTallyResult: TallyResult;
|
269
|
+
submitTime: Date;
|
270
|
+
depositEndTime: Date;
|
271
|
+
totalDeposit: Coin[];
|
272
|
+
votingStartTime: Date;
|
273
|
+
votingEndTime: Date;
|
274
|
+
/** metadata is any arbitrary metadata attached to the proposal. */
|
275
|
+
|
276
|
+
metadata: string;
|
277
|
+
}
|
278
|
+
/** Proposal defines the core field members of a governance proposal. */
|
279
|
+
|
280
|
+
export interface ProposalSDKType {
|
281
|
+
id: Long;
|
282
|
+
messages: AnySDKType[];
|
283
|
+
status: ProposalStatusSDKType;
|
284
|
+
/**
|
285
|
+
* final_tally_result is the final tally result of the proposal. When
|
286
|
+
* querying a proposal via gRPC, this field is not populated until the
|
287
|
+
* proposal's voting period has ended.
|
288
|
+
*/
|
289
|
+
|
290
|
+
final_tally_result: TallyResultSDKType;
|
291
|
+
submit_time: Date;
|
292
|
+
deposit_end_time: Date;
|
293
|
+
total_deposit: CoinSDKType[];
|
294
|
+
voting_start_time: Date;
|
295
|
+
voting_end_time: Date;
|
296
|
+
/** metadata is any arbitrary metadata attached to the proposal. */
|
297
|
+
|
298
|
+
metadata: string;
|
299
|
+
}
|
300
|
+
/** TallyResult defines a standard tally for a governance proposal. */
|
301
|
+
|
302
|
+
export interface TallyResult {
|
303
|
+
yesCount: string;
|
304
|
+
abstainCount: string;
|
305
|
+
noCount: string;
|
306
|
+
noWithVetoCount: string;
|
307
|
+
}
|
308
|
+
/** TallyResult defines a standard tally for a governance proposal. */
|
309
|
+
|
310
|
+
export interface TallyResultSDKType {
|
311
|
+
yes_count: string;
|
312
|
+
abstain_count: string;
|
313
|
+
no_count: string;
|
314
|
+
no_with_veto_count: string;
|
315
|
+
}
|
316
|
+
/**
|
317
|
+
* Vote defines a vote on a governance proposal.
|
318
|
+
* A Vote consists of a proposal ID, the voter, and the vote option.
|
319
|
+
*/
|
320
|
+
|
321
|
+
export interface Vote {
|
322
|
+
proposalId: Long;
|
323
|
+
voter: string;
|
324
|
+
options: WeightedVoteOption[];
|
325
|
+
/** metadata is any arbitrary metadata to attached to the vote. */
|
326
|
+
|
327
|
+
metadata: string;
|
328
|
+
}
|
329
|
+
/**
|
330
|
+
* Vote defines a vote on a governance proposal.
|
331
|
+
* A Vote consists of a proposal ID, the voter, and the vote option.
|
332
|
+
*/
|
333
|
+
|
334
|
+
export interface VoteSDKType {
|
335
|
+
proposal_id: Long;
|
336
|
+
voter: string;
|
337
|
+
options: WeightedVoteOptionSDKType[];
|
338
|
+
/** metadata is any arbitrary metadata to attached to the vote. */
|
339
|
+
|
340
|
+
metadata: string;
|
341
|
+
}
|
342
|
+
/** DepositParams defines the params for deposits on governance proposals. */
|
343
|
+
|
344
|
+
export interface DepositParams {
|
345
|
+
/** Minimum deposit for a proposal to enter voting period. */
|
346
|
+
minDeposit: Coin[];
|
347
|
+
/**
|
348
|
+
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
349
|
+
* months.
|
350
|
+
*/
|
351
|
+
|
352
|
+
maxDepositPeriod: Duration;
|
353
|
+
}
|
354
|
+
/** DepositParams defines the params for deposits on governance proposals. */
|
355
|
+
|
356
|
+
export interface DepositParamsSDKType {
|
357
|
+
/** Minimum deposit for a proposal to enter voting period. */
|
358
|
+
min_deposit: CoinSDKType[];
|
359
|
+
/**
|
360
|
+
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
361
|
+
* months.
|
362
|
+
*/
|
363
|
+
|
364
|
+
max_deposit_period: DurationSDKType;
|
365
|
+
}
|
366
|
+
/** VotingParams defines the params for voting on governance proposals. */
|
367
|
+
|
368
|
+
export interface VotingParams {
|
369
|
+
/** Length of the voting period. */
|
370
|
+
votingPeriod: Duration;
|
371
|
+
}
|
372
|
+
/** VotingParams defines the params for voting on governance proposals. */
|
373
|
+
|
374
|
+
export interface VotingParamsSDKType {
|
375
|
+
/** Length of the voting period. */
|
376
|
+
voting_period: DurationSDKType;
|
377
|
+
}
|
378
|
+
/** TallyParams defines the params for tallying votes on governance proposals. */
|
379
|
+
|
380
|
+
export interface TallyParams {
|
381
|
+
/**
|
382
|
+
* Minimum percentage of total stake needed to vote for a result to be
|
383
|
+
* considered valid.
|
384
|
+
*/
|
385
|
+
quorum: string;
|
386
|
+
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
387
|
+
|
388
|
+
threshold: string;
|
389
|
+
/**
|
390
|
+
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
391
|
+
* vetoed. Default value: 1/3.
|
392
|
+
*/
|
393
|
+
|
394
|
+
vetoThreshold: string;
|
395
|
+
}
|
396
|
+
/** TallyParams defines the params for tallying votes on governance proposals. */
|
397
|
+
|
398
|
+
export interface TallyParamsSDKType {
|
399
|
+
/**
|
400
|
+
* Minimum percentage of total stake needed to vote for a result to be
|
401
|
+
* considered valid.
|
402
|
+
*/
|
403
|
+
quorum: string;
|
404
|
+
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
405
|
+
|
406
|
+
threshold: string;
|
407
|
+
/**
|
408
|
+
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
409
|
+
* vetoed. Default value: 1/3.
|
410
|
+
*/
|
411
|
+
|
412
|
+
veto_threshold: string;
|
413
|
+
}
|
414
|
+
|
415
|
+
function createBaseWeightedVoteOption(): WeightedVoteOption {
|
416
|
+
return {
|
417
|
+
option: 0,
|
418
|
+
weight: ""
|
419
|
+
};
|
420
|
+
}
|
421
|
+
|
422
|
+
export const WeightedVoteOption = {
|
423
|
+
encode(message: WeightedVoteOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
424
|
+
if (message.option !== 0) {
|
425
|
+
writer.uint32(8).int32(message.option);
|
426
|
+
}
|
427
|
+
|
428
|
+
if (message.weight !== "") {
|
429
|
+
writer.uint32(18).string(message.weight);
|
430
|
+
}
|
431
|
+
|
432
|
+
return writer;
|
433
|
+
},
|
434
|
+
|
435
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption {
|
436
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
437
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
438
|
+
const message = createBaseWeightedVoteOption();
|
439
|
+
|
440
|
+
while (reader.pos < end) {
|
441
|
+
const tag = reader.uint32();
|
442
|
+
|
443
|
+
switch (tag >>> 3) {
|
444
|
+
case 1:
|
445
|
+
message.option = (reader.int32() as any);
|
446
|
+
break;
|
447
|
+
|
448
|
+
case 2:
|
449
|
+
message.weight = reader.string();
|
450
|
+
break;
|
451
|
+
|
452
|
+
default:
|
453
|
+
reader.skipType(tag & 7);
|
454
|
+
break;
|
455
|
+
}
|
456
|
+
}
|
457
|
+
|
458
|
+
return message;
|
459
|
+
},
|
460
|
+
|
461
|
+
fromPartial(object: DeepPartial<WeightedVoteOption>): WeightedVoteOption {
|
462
|
+
const message = createBaseWeightedVoteOption();
|
463
|
+
message.option = object.option ?? 0;
|
464
|
+
message.weight = object.weight ?? "";
|
465
|
+
return message;
|
466
|
+
}
|
467
|
+
|
468
|
+
};
|
469
|
+
|
470
|
+
function createBaseDeposit(): Deposit {
|
471
|
+
return {
|
472
|
+
proposalId: Long.UZERO,
|
473
|
+
depositor: "",
|
474
|
+
amount: []
|
475
|
+
};
|
476
|
+
}
|
477
|
+
|
478
|
+
export const Deposit = {
|
479
|
+
encode(message: Deposit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
480
|
+
if (!message.proposalId.isZero()) {
|
481
|
+
writer.uint32(8).uint64(message.proposalId);
|
482
|
+
}
|
483
|
+
|
484
|
+
if (message.depositor !== "") {
|
485
|
+
writer.uint32(18).string(message.depositor);
|
486
|
+
}
|
487
|
+
|
488
|
+
for (const v of message.amount) {
|
489
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
490
|
+
}
|
491
|
+
|
492
|
+
return writer;
|
493
|
+
},
|
494
|
+
|
495
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Deposit {
|
496
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
497
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
498
|
+
const message = createBaseDeposit();
|
499
|
+
|
500
|
+
while (reader.pos < end) {
|
501
|
+
const tag = reader.uint32();
|
502
|
+
|
503
|
+
switch (tag >>> 3) {
|
504
|
+
case 1:
|
505
|
+
message.proposalId = (reader.uint64() as Long);
|
506
|
+
break;
|
507
|
+
|
508
|
+
case 2:
|
509
|
+
message.depositor = reader.string();
|
510
|
+
break;
|
511
|
+
|
512
|
+
case 3:
|
513
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
514
|
+
break;
|
515
|
+
|
516
|
+
default:
|
517
|
+
reader.skipType(tag & 7);
|
518
|
+
break;
|
519
|
+
}
|
520
|
+
}
|
521
|
+
|
522
|
+
return message;
|
523
|
+
},
|
524
|
+
|
525
|
+
fromPartial(object: DeepPartial<Deposit>): Deposit {
|
526
|
+
const message = createBaseDeposit();
|
527
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
528
|
+
message.depositor = object.depositor ?? "";
|
529
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
530
|
+
return message;
|
531
|
+
}
|
532
|
+
|
533
|
+
};
|
534
|
+
|
535
|
+
function createBaseProposal(): Proposal {
|
536
|
+
return {
|
537
|
+
id: Long.UZERO,
|
538
|
+
messages: [],
|
539
|
+
status: 0,
|
540
|
+
finalTallyResult: undefined,
|
541
|
+
submitTime: undefined,
|
542
|
+
depositEndTime: undefined,
|
543
|
+
totalDeposit: [],
|
544
|
+
votingStartTime: undefined,
|
545
|
+
votingEndTime: undefined,
|
546
|
+
metadata: ""
|
547
|
+
};
|
548
|
+
}
|
549
|
+
|
550
|
+
export const Proposal = {
|
551
|
+
encode(message: Proposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
552
|
+
if (!message.id.isZero()) {
|
553
|
+
writer.uint32(8).uint64(message.id);
|
554
|
+
}
|
555
|
+
|
556
|
+
for (const v of message.messages) {
|
557
|
+
Any.encode(v!, writer.uint32(18).fork()).ldelim();
|
558
|
+
}
|
559
|
+
|
560
|
+
if (message.status !== 0) {
|
561
|
+
writer.uint32(24).int32(message.status);
|
562
|
+
}
|
563
|
+
|
564
|
+
if (message.finalTallyResult !== undefined) {
|
565
|
+
TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim();
|
566
|
+
}
|
567
|
+
|
568
|
+
if (message.submitTime !== undefined) {
|
569
|
+
Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
|
570
|
+
}
|
571
|
+
|
572
|
+
if (message.depositEndTime !== undefined) {
|
573
|
+
Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim();
|
574
|
+
}
|
575
|
+
|
576
|
+
for (const v of message.totalDeposit) {
|
577
|
+
Coin.encode(v!, writer.uint32(58).fork()).ldelim();
|
578
|
+
}
|
579
|
+
|
580
|
+
if (message.votingStartTime !== undefined) {
|
581
|
+
Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim();
|
582
|
+
}
|
583
|
+
|
584
|
+
if (message.votingEndTime !== undefined) {
|
585
|
+
Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim();
|
586
|
+
}
|
587
|
+
|
588
|
+
if (message.metadata !== "") {
|
589
|
+
writer.uint32(82).string(message.metadata);
|
590
|
+
}
|
591
|
+
|
592
|
+
return writer;
|
593
|
+
},
|
594
|
+
|
595
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal {
|
596
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
597
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
598
|
+
const message = createBaseProposal();
|
599
|
+
|
600
|
+
while (reader.pos < end) {
|
601
|
+
const tag = reader.uint32();
|
602
|
+
|
603
|
+
switch (tag >>> 3) {
|
604
|
+
case 1:
|
605
|
+
message.id = (reader.uint64() as Long);
|
606
|
+
break;
|
607
|
+
|
608
|
+
case 2:
|
609
|
+
message.messages.push(Any.decode(reader, reader.uint32()));
|
610
|
+
break;
|
611
|
+
|
612
|
+
case 3:
|
613
|
+
message.status = (reader.int32() as any);
|
614
|
+
break;
|
615
|
+
|
616
|
+
case 4:
|
617
|
+
message.finalTallyResult = TallyResult.decode(reader, reader.uint32());
|
618
|
+
break;
|
619
|
+
|
620
|
+
case 5:
|
621
|
+
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
622
|
+
break;
|
623
|
+
|
624
|
+
case 6:
|
625
|
+
message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
626
|
+
break;
|
627
|
+
|
628
|
+
case 7:
|
629
|
+
message.totalDeposit.push(Coin.decode(reader, reader.uint32()));
|
630
|
+
break;
|
631
|
+
|
632
|
+
case 8:
|
633
|
+
message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
634
|
+
break;
|
635
|
+
|
636
|
+
case 9:
|
637
|
+
message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
638
|
+
break;
|
639
|
+
|
640
|
+
case 10:
|
641
|
+
message.metadata = reader.string();
|
642
|
+
break;
|
643
|
+
|
644
|
+
default:
|
645
|
+
reader.skipType(tag & 7);
|
646
|
+
break;
|
647
|
+
}
|
648
|
+
}
|
649
|
+
|
650
|
+
return message;
|
651
|
+
},
|
652
|
+
|
653
|
+
fromPartial(object: DeepPartial<Proposal>): Proposal {
|
654
|
+
const message = createBaseProposal();
|
655
|
+
message.id = object.id !== undefined && object.id !== null ? Long.fromValue(object.id) : Long.UZERO;
|
656
|
+
message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
|
657
|
+
message.status = object.status ?? 0;
|
658
|
+
message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined;
|
659
|
+
message.submitTime = object.submitTime ?? undefined;
|
660
|
+
message.depositEndTime = object.depositEndTime ?? undefined;
|
661
|
+
message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || [];
|
662
|
+
message.votingStartTime = object.votingStartTime ?? undefined;
|
663
|
+
message.votingEndTime = object.votingEndTime ?? undefined;
|
664
|
+
message.metadata = object.metadata ?? "";
|
665
|
+
return message;
|
666
|
+
}
|
667
|
+
|
668
|
+
};
|
669
|
+
|
670
|
+
function createBaseTallyResult(): TallyResult {
|
671
|
+
return {
|
672
|
+
yesCount: "",
|
673
|
+
abstainCount: "",
|
674
|
+
noCount: "",
|
675
|
+
noWithVetoCount: ""
|
676
|
+
};
|
677
|
+
}
|
678
|
+
|
679
|
+
export const TallyResult = {
|
680
|
+
encode(message: TallyResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
681
|
+
if (message.yesCount !== "") {
|
682
|
+
writer.uint32(10).string(message.yesCount);
|
683
|
+
}
|
684
|
+
|
685
|
+
if (message.abstainCount !== "") {
|
686
|
+
writer.uint32(18).string(message.abstainCount);
|
687
|
+
}
|
688
|
+
|
689
|
+
if (message.noCount !== "") {
|
690
|
+
writer.uint32(26).string(message.noCount);
|
691
|
+
}
|
692
|
+
|
693
|
+
if (message.noWithVetoCount !== "") {
|
694
|
+
writer.uint32(34).string(message.noWithVetoCount);
|
695
|
+
}
|
696
|
+
|
697
|
+
return writer;
|
698
|
+
},
|
699
|
+
|
700
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult {
|
701
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
702
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
703
|
+
const message = createBaseTallyResult();
|
704
|
+
|
705
|
+
while (reader.pos < end) {
|
706
|
+
const tag = reader.uint32();
|
707
|
+
|
708
|
+
switch (tag >>> 3) {
|
709
|
+
case 1:
|
710
|
+
message.yesCount = reader.string();
|
711
|
+
break;
|
712
|
+
|
713
|
+
case 2:
|
714
|
+
message.abstainCount = reader.string();
|
715
|
+
break;
|
716
|
+
|
717
|
+
case 3:
|
718
|
+
message.noCount = reader.string();
|
719
|
+
break;
|
720
|
+
|
721
|
+
case 4:
|
722
|
+
message.noWithVetoCount = reader.string();
|
723
|
+
break;
|
724
|
+
|
725
|
+
default:
|
726
|
+
reader.skipType(tag & 7);
|
727
|
+
break;
|
728
|
+
}
|
729
|
+
}
|
730
|
+
|
731
|
+
return message;
|
732
|
+
},
|
733
|
+
|
734
|
+
fromPartial(object: DeepPartial<TallyResult>): TallyResult {
|
735
|
+
const message = createBaseTallyResult();
|
736
|
+
message.yesCount = object.yesCount ?? "";
|
737
|
+
message.abstainCount = object.abstainCount ?? "";
|
738
|
+
message.noCount = object.noCount ?? "";
|
739
|
+
message.noWithVetoCount = object.noWithVetoCount ?? "";
|
740
|
+
return message;
|
741
|
+
}
|
742
|
+
|
743
|
+
};
|
744
|
+
|
745
|
+
function createBaseVote(): Vote {
|
746
|
+
return {
|
747
|
+
proposalId: Long.UZERO,
|
748
|
+
voter: "",
|
749
|
+
options: [],
|
750
|
+
metadata: ""
|
751
|
+
};
|
752
|
+
}
|
753
|
+
|
754
|
+
export const Vote = {
|
755
|
+
encode(message: Vote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
756
|
+
if (!message.proposalId.isZero()) {
|
757
|
+
writer.uint32(8).uint64(message.proposalId);
|
758
|
+
}
|
759
|
+
|
760
|
+
if (message.voter !== "") {
|
761
|
+
writer.uint32(18).string(message.voter);
|
762
|
+
}
|
763
|
+
|
764
|
+
for (const v of message.options) {
|
765
|
+
WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim();
|
766
|
+
}
|
767
|
+
|
768
|
+
if (message.metadata !== "") {
|
769
|
+
writer.uint32(42).string(message.metadata);
|
770
|
+
}
|
771
|
+
|
772
|
+
return writer;
|
773
|
+
},
|
774
|
+
|
775
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Vote {
|
776
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
777
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
778
|
+
const message = createBaseVote();
|
779
|
+
|
780
|
+
while (reader.pos < end) {
|
781
|
+
const tag = reader.uint32();
|
782
|
+
|
783
|
+
switch (tag >>> 3) {
|
784
|
+
case 1:
|
785
|
+
message.proposalId = (reader.uint64() as Long);
|
786
|
+
break;
|
787
|
+
|
788
|
+
case 2:
|
789
|
+
message.voter = reader.string();
|
790
|
+
break;
|
791
|
+
|
792
|
+
case 4:
|
793
|
+
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
794
|
+
break;
|
795
|
+
|
796
|
+
case 5:
|
797
|
+
message.metadata = reader.string();
|
798
|
+
break;
|
799
|
+
|
800
|
+
default:
|
801
|
+
reader.skipType(tag & 7);
|
802
|
+
break;
|
803
|
+
}
|
804
|
+
}
|
805
|
+
|
806
|
+
return message;
|
807
|
+
},
|
808
|
+
|
809
|
+
fromPartial(object: DeepPartial<Vote>): Vote {
|
810
|
+
const message = createBaseVote();
|
811
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
812
|
+
message.voter = object.voter ?? "";
|
813
|
+
message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || [];
|
814
|
+
message.metadata = object.metadata ?? "";
|
815
|
+
return message;
|
816
|
+
}
|
817
|
+
|
818
|
+
};
|
819
|
+
|
820
|
+
function createBaseDepositParams(): DepositParams {
|
821
|
+
return {
|
822
|
+
minDeposit: [],
|
823
|
+
maxDepositPeriod: undefined
|
824
|
+
};
|
825
|
+
}
|
826
|
+
|
827
|
+
export const DepositParams = {
|
828
|
+
encode(message: DepositParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
829
|
+
for (const v of message.minDeposit) {
|
830
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
831
|
+
}
|
832
|
+
|
833
|
+
if (message.maxDepositPeriod !== undefined) {
|
834
|
+
Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
|
835
|
+
}
|
836
|
+
|
837
|
+
return writer;
|
838
|
+
},
|
839
|
+
|
840
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams {
|
841
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
842
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
843
|
+
const message = createBaseDepositParams();
|
844
|
+
|
845
|
+
while (reader.pos < end) {
|
846
|
+
const tag = reader.uint32();
|
847
|
+
|
848
|
+
switch (tag >>> 3) {
|
849
|
+
case 1:
|
850
|
+
message.minDeposit.push(Coin.decode(reader, reader.uint32()));
|
851
|
+
break;
|
852
|
+
|
853
|
+
case 2:
|
854
|
+
message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
|
855
|
+
break;
|
856
|
+
|
857
|
+
default:
|
858
|
+
reader.skipType(tag & 7);
|
859
|
+
break;
|
860
|
+
}
|
861
|
+
}
|
862
|
+
|
863
|
+
return message;
|
864
|
+
},
|
865
|
+
|
866
|
+
fromPartial(object: DeepPartial<DepositParams>): DepositParams {
|
867
|
+
const message = createBaseDepositParams();
|
868
|
+
message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || [];
|
869
|
+
message.maxDepositPeriod = object.maxDepositPeriod ?? undefined;
|
870
|
+
return message;
|
871
|
+
}
|
872
|
+
|
873
|
+
};
|
874
|
+
|
875
|
+
function createBaseVotingParams(): VotingParams {
|
876
|
+
return {
|
877
|
+
votingPeriod: undefined
|
878
|
+
};
|
879
|
+
}
|
880
|
+
|
881
|
+
export const VotingParams = {
|
882
|
+
encode(message: VotingParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
883
|
+
if (message.votingPeriod !== undefined) {
|
884
|
+
Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
|
885
|
+
}
|
886
|
+
|
887
|
+
return writer;
|
888
|
+
},
|
889
|
+
|
890
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams {
|
891
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
892
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
893
|
+
const message = createBaseVotingParams();
|
894
|
+
|
895
|
+
while (reader.pos < end) {
|
896
|
+
const tag = reader.uint32();
|
897
|
+
|
898
|
+
switch (tag >>> 3) {
|
899
|
+
case 1:
|
900
|
+
message.votingPeriod = Duration.decode(reader, reader.uint32());
|
901
|
+
break;
|
902
|
+
|
903
|
+
default:
|
904
|
+
reader.skipType(tag & 7);
|
905
|
+
break;
|
906
|
+
}
|
907
|
+
}
|
908
|
+
|
909
|
+
return message;
|
910
|
+
},
|
911
|
+
|
912
|
+
fromPartial(object: DeepPartial<VotingParams>): VotingParams {
|
913
|
+
const message = createBaseVotingParams();
|
914
|
+
message.votingPeriod = object.votingPeriod ?? undefined;
|
915
|
+
return message;
|
916
|
+
}
|
917
|
+
|
918
|
+
};
|
919
|
+
|
920
|
+
function createBaseTallyParams(): TallyParams {
|
921
|
+
return {
|
922
|
+
quorum: "",
|
923
|
+
threshold: "",
|
924
|
+
vetoThreshold: ""
|
925
|
+
};
|
926
|
+
}
|
927
|
+
|
928
|
+
export const TallyParams = {
|
929
|
+
encode(message: TallyParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
930
|
+
if (message.quorum !== "") {
|
931
|
+
writer.uint32(10).string(message.quorum);
|
932
|
+
}
|
933
|
+
|
934
|
+
if (message.threshold !== "") {
|
935
|
+
writer.uint32(18).string(message.threshold);
|
936
|
+
}
|
937
|
+
|
938
|
+
if (message.vetoThreshold !== "") {
|
939
|
+
writer.uint32(26).string(message.vetoThreshold);
|
940
|
+
}
|
941
|
+
|
942
|
+
return writer;
|
943
|
+
},
|
944
|
+
|
945
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams {
|
946
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
947
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
948
|
+
const message = createBaseTallyParams();
|
949
|
+
|
950
|
+
while (reader.pos < end) {
|
951
|
+
const tag = reader.uint32();
|
952
|
+
|
953
|
+
switch (tag >>> 3) {
|
954
|
+
case 1:
|
955
|
+
message.quorum = reader.string();
|
956
|
+
break;
|
957
|
+
|
958
|
+
case 2:
|
959
|
+
message.threshold = reader.string();
|
960
|
+
break;
|
961
|
+
|
962
|
+
case 3:
|
963
|
+
message.vetoThreshold = reader.string();
|
964
|
+
break;
|
965
|
+
|
966
|
+
default:
|
967
|
+
reader.skipType(tag & 7);
|
968
|
+
break;
|
969
|
+
}
|
970
|
+
}
|
971
|
+
|
972
|
+
return message;
|
973
|
+
},
|
974
|
+
|
975
|
+
fromPartial(object: DeepPartial<TallyParams>): TallyParams {
|
976
|
+
const message = createBaseTallyParams();
|
977
|
+
message.quorum = object.quorum ?? "";
|
978
|
+
message.threshold = object.threshold ?? "";
|
979
|
+
message.vetoThreshold = object.vetoThreshold ?? "";
|
980
|
+
return message;
|
981
|
+
}
|
982
|
+
|
983
|
+
};
|