juno-network 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/codegen/JunoSwap.client.js +1 -1
- package/main/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/bundle.js +8 -8
- package/main/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/rpc.query.js +8 -8
- package/main/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
- package/main/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +8 -8
- package/main/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmwasm/bundle.js +1 -1
- package/main/codegen/cosmwasm/rpc.query.js +9 -9
- package/main/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/google/protobuf/descriptor.js +18 -18
- package/main/codegen/helpers.js +29 -18
- package/main/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
- package/main/codegen/ibc/bundle.js +4 -4
- package/main/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/rpc.query.js +12 -12
- package/main/codegen/juno/bundle.js +1 -1
- package/main/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/juno/rpc.query.js +9 -9
- package/module/codegen/JunoSwap.client.js +1 -1
- package/module/codegen/contracts.js +1 -1
- package/module/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/bundle.js +8 -8
- package/module/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/rpc.query.js +8 -8
- package/module/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
- package/module/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +2 -2
- package/module/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmwasm/bundle.js +1 -1
- package/module/codegen/cosmwasm/rpc.query.js +9 -9
- package/module/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/google/protobuf/descriptor.js +18 -18
- package/module/codegen/helpers.js +18 -10
- package/module/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
- package/module/codegen/ibc/bundle.js +4 -4
- package/module/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/rpc.query.js +12 -12
- package/module/codegen/index.js +1 -1
- package/module/codegen/juno/bundle.js +1 -1
- package/module/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/juno/rpc.query.js +9 -9
- package/package.json +3 -3
- package/src/codegen/JunoSwap.client.ts +1 -1
- package/src/codegen/JunoSwap.types.ts +1 -1
- package/src/codegen/contracts.ts +1 -1
- package/src/codegen/cosmos/authz/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/bank/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/bundle.ts +8 -8
- package/src/codegen/cosmos/distribution/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/gov/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/gov/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/rpc.query.ts +8 -8
- package/src/codegen/cosmos/staking/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +4 -4
- package/src/codegen/cosmos/tx/v1beta1/{service.rpc.svc.ts → service.rpc.Service.ts} +2 -2
- package/src/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmwasm/bundle.ts +1 -1
- package/src/codegen/cosmwasm/rpc.query.ts +9 -9
- package/src/codegen/cosmwasm/wasm/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/google/protobuf/descriptor.ts +18 -18
- package/src/codegen/helpers.ts +24 -16
- package/src/codegen/ibc/applications/transfer/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +1 -1
- package/src/codegen/ibc/bundle.ts +4 -4
- package/src/codegen/ibc/core/channel/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/core/client/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/core/connection/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/rpc.query.ts +12 -12
- package/src/codegen/index.ts +1 -1
- package/src/codegen/juno/bundle.ts +1 -1
- package/src/codegen/juno/mint/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/juno/rpc.query.ts +9 -9
- package/types/codegen/JunoSwap.client.d.ts +122 -0
- package/types/codegen/JunoSwap.types.d.ts +142 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.Query.d.ts +32 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.Query.d.ts +57 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +6233 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.Query.d.ts +51 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.Query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.Query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.Query.d.ts +80 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts +36 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts +43 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +1109 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.Query.d.ts +48 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/bundle.d.ts +1413 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +3781 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.Query.d.ts +88 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts +50 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.Query.d.ts +41 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +226 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.Query.d.ts +24 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +2065 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
@@ -0,0 +1,298 @@
|
|
1
|
+
import { ProposalStatus, ProposalStatusSDKType, Proposal, ProposalSDKType, Vote, VoteSDKType, VotingParams, VotingParamsSDKType, DepositParams, DepositParamsSDKType, TallyParams, TallyParamsSDKType, Deposit, DepositSDKType, TallyResult, TallyResultSDKType } from "./gov";
|
2
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
4
|
+
import { Long, DeepPartial } from "../../../helpers";
|
5
|
+
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
6
|
+
export interface QueryProposalRequest {
|
7
|
+
/** proposal_id defines the unique id of the proposal. */
|
8
|
+
proposalId: Long;
|
9
|
+
}
|
10
|
+
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
11
|
+
export interface QueryProposalRequestSDKType {
|
12
|
+
/** proposal_id defines the unique id of the proposal. */
|
13
|
+
proposal_id: Long;
|
14
|
+
}
|
15
|
+
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
16
|
+
export interface QueryProposalResponse {
|
17
|
+
proposal?: Proposal;
|
18
|
+
}
|
19
|
+
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
20
|
+
export interface QueryProposalResponseSDKType {
|
21
|
+
proposal?: ProposalSDKType;
|
22
|
+
}
|
23
|
+
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
24
|
+
export interface QueryProposalsRequest {
|
25
|
+
/** proposal_status defines the status of the proposals. */
|
26
|
+
proposalStatus: ProposalStatus;
|
27
|
+
/** voter defines the voter address for the proposals. */
|
28
|
+
voter: string;
|
29
|
+
/** depositor defines the deposit addresses from the proposals. */
|
30
|
+
depositor: string;
|
31
|
+
/** pagination defines an optional pagination for the request. */
|
32
|
+
pagination?: PageRequest;
|
33
|
+
}
|
34
|
+
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
35
|
+
export interface QueryProposalsRequestSDKType {
|
36
|
+
/** proposal_status defines the status of the proposals. */
|
37
|
+
proposal_status: ProposalStatusSDKType;
|
38
|
+
/** voter defines the voter address for the proposals. */
|
39
|
+
voter: string;
|
40
|
+
/** depositor defines the deposit addresses from the proposals. */
|
41
|
+
depositor: string;
|
42
|
+
/** pagination defines an optional pagination for the request. */
|
43
|
+
pagination?: PageRequestSDKType;
|
44
|
+
}
|
45
|
+
/**
|
46
|
+
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
47
|
+
* method.
|
48
|
+
*/
|
49
|
+
export interface QueryProposalsResponse {
|
50
|
+
proposals: Proposal[];
|
51
|
+
/** pagination defines the pagination in the response. */
|
52
|
+
pagination?: PageResponse;
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
56
|
+
* method.
|
57
|
+
*/
|
58
|
+
export interface QueryProposalsResponseSDKType {
|
59
|
+
proposals: ProposalSDKType[];
|
60
|
+
/** pagination defines the pagination in the response. */
|
61
|
+
pagination?: PageResponseSDKType;
|
62
|
+
}
|
63
|
+
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
64
|
+
export interface QueryVoteRequest {
|
65
|
+
/** proposal_id defines the unique id of the proposal. */
|
66
|
+
proposalId: Long;
|
67
|
+
/** voter defines the oter address for the proposals. */
|
68
|
+
voter: string;
|
69
|
+
}
|
70
|
+
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
71
|
+
export interface QueryVoteRequestSDKType {
|
72
|
+
/** proposal_id defines the unique id of the proposal. */
|
73
|
+
proposal_id: Long;
|
74
|
+
/** voter defines the oter address for the proposals. */
|
75
|
+
voter: string;
|
76
|
+
}
|
77
|
+
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
78
|
+
export interface QueryVoteResponse {
|
79
|
+
/** vote defined the queried vote. */
|
80
|
+
vote?: Vote;
|
81
|
+
}
|
82
|
+
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
83
|
+
export interface QueryVoteResponseSDKType {
|
84
|
+
/** vote defined the queried vote. */
|
85
|
+
vote?: VoteSDKType;
|
86
|
+
}
|
87
|
+
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
88
|
+
export interface QueryVotesRequest {
|
89
|
+
/** proposal_id defines the unique id of the proposal. */
|
90
|
+
proposalId: Long;
|
91
|
+
/** pagination defines an optional pagination for the request. */
|
92
|
+
pagination?: PageRequest;
|
93
|
+
}
|
94
|
+
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
95
|
+
export interface QueryVotesRequestSDKType {
|
96
|
+
/** proposal_id defines the unique id of the proposal. */
|
97
|
+
proposal_id: Long;
|
98
|
+
/** pagination defines an optional pagination for the request. */
|
99
|
+
pagination?: PageRequestSDKType;
|
100
|
+
}
|
101
|
+
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
102
|
+
export interface QueryVotesResponse {
|
103
|
+
/** votes defined the queried votes. */
|
104
|
+
votes: Vote[];
|
105
|
+
/** pagination defines the pagination in the response. */
|
106
|
+
pagination?: PageResponse;
|
107
|
+
}
|
108
|
+
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
109
|
+
export interface QueryVotesResponseSDKType {
|
110
|
+
/** votes defined the queried votes. */
|
111
|
+
votes: VoteSDKType[];
|
112
|
+
/** pagination defines the pagination in the response. */
|
113
|
+
pagination?: PageResponseSDKType;
|
114
|
+
}
|
115
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
116
|
+
export interface QueryParamsRequest {
|
117
|
+
/**
|
118
|
+
* params_type defines which parameters to query for, can be one of "voting",
|
119
|
+
* "tallying" or "deposit".
|
120
|
+
*/
|
121
|
+
paramsType: string;
|
122
|
+
}
|
123
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
124
|
+
export interface QueryParamsRequestSDKType {
|
125
|
+
/**
|
126
|
+
* params_type defines which parameters to query for, can be one of "voting",
|
127
|
+
* "tallying" or "deposit".
|
128
|
+
*/
|
129
|
+
params_type: string;
|
130
|
+
}
|
131
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
132
|
+
export interface QueryParamsResponse {
|
133
|
+
/** voting_params defines the parameters related to voting. */
|
134
|
+
votingParams?: VotingParams;
|
135
|
+
/** deposit_params defines the parameters related to deposit. */
|
136
|
+
depositParams?: DepositParams;
|
137
|
+
/** tally_params defines the parameters related to tally. */
|
138
|
+
tallyParams?: TallyParams;
|
139
|
+
}
|
140
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
141
|
+
export interface QueryParamsResponseSDKType {
|
142
|
+
/** voting_params defines the parameters related to voting. */
|
143
|
+
voting_params?: VotingParamsSDKType;
|
144
|
+
/** deposit_params defines the parameters related to deposit. */
|
145
|
+
deposit_params?: DepositParamsSDKType;
|
146
|
+
/** tally_params defines the parameters related to tally. */
|
147
|
+
tally_params?: TallyParamsSDKType;
|
148
|
+
}
|
149
|
+
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
150
|
+
export interface QueryDepositRequest {
|
151
|
+
/** proposal_id defines the unique id of the proposal. */
|
152
|
+
proposalId: Long;
|
153
|
+
/** depositor defines the deposit addresses from the proposals. */
|
154
|
+
depositor: string;
|
155
|
+
}
|
156
|
+
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
157
|
+
export interface QueryDepositRequestSDKType {
|
158
|
+
/** proposal_id defines the unique id of the proposal. */
|
159
|
+
proposal_id: Long;
|
160
|
+
/** depositor defines the deposit addresses from the proposals. */
|
161
|
+
depositor: string;
|
162
|
+
}
|
163
|
+
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
164
|
+
export interface QueryDepositResponse {
|
165
|
+
/** deposit defines the requested deposit. */
|
166
|
+
deposit?: Deposit;
|
167
|
+
}
|
168
|
+
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
169
|
+
export interface QueryDepositResponseSDKType {
|
170
|
+
/** deposit defines the requested deposit. */
|
171
|
+
deposit?: DepositSDKType;
|
172
|
+
}
|
173
|
+
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
174
|
+
export interface QueryDepositsRequest {
|
175
|
+
/** proposal_id defines the unique id of the proposal. */
|
176
|
+
proposalId: Long;
|
177
|
+
/** pagination defines an optional pagination for the request. */
|
178
|
+
pagination?: PageRequest;
|
179
|
+
}
|
180
|
+
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
181
|
+
export interface QueryDepositsRequestSDKType {
|
182
|
+
/** proposal_id defines the unique id of the proposal. */
|
183
|
+
proposal_id: Long;
|
184
|
+
/** pagination defines an optional pagination for the request. */
|
185
|
+
pagination?: PageRequestSDKType;
|
186
|
+
}
|
187
|
+
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
188
|
+
export interface QueryDepositsResponse {
|
189
|
+
deposits: Deposit[];
|
190
|
+
/** pagination defines the pagination in the response. */
|
191
|
+
pagination?: PageResponse;
|
192
|
+
}
|
193
|
+
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
194
|
+
export interface QueryDepositsResponseSDKType {
|
195
|
+
deposits: DepositSDKType[];
|
196
|
+
/** pagination defines the pagination in the response. */
|
197
|
+
pagination?: PageResponseSDKType;
|
198
|
+
}
|
199
|
+
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
200
|
+
export interface QueryTallyResultRequest {
|
201
|
+
/** proposal_id defines the unique id of the proposal. */
|
202
|
+
proposalId: Long;
|
203
|
+
}
|
204
|
+
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
205
|
+
export interface QueryTallyResultRequestSDKType {
|
206
|
+
/** proposal_id defines the unique id of the proposal. */
|
207
|
+
proposal_id: Long;
|
208
|
+
}
|
209
|
+
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
210
|
+
export interface QueryTallyResultResponse {
|
211
|
+
/** tally defines the requested tally. */
|
212
|
+
tally?: TallyResult;
|
213
|
+
}
|
214
|
+
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
215
|
+
export interface QueryTallyResultResponseSDKType {
|
216
|
+
/** tally defines the requested tally. */
|
217
|
+
tally?: TallyResultSDKType;
|
218
|
+
}
|
219
|
+
export declare const QueryProposalRequest: {
|
220
|
+
encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer;
|
221
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest;
|
222
|
+
fromPartial(object: DeepPartial<QueryProposalRequest>): QueryProposalRequest;
|
223
|
+
};
|
224
|
+
export declare const QueryProposalResponse: {
|
225
|
+
encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
226
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse;
|
227
|
+
fromPartial(object: DeepPartial<QueryProposalResponse>): QueryProposalResponse;
|
228
|
+
};
|
229
|
+
export declare const QueryProposalsRequest: {
|
230
|
+
encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer;
|
231
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest;
|
232
|
+
fromPartial(object: DeepPartial<QueryProposalsRequest>): QueryProposalsRequest;
|
233
|
+
};
|
234
|
+
export declare const QueryProposalsResponse: {
|
235
|
+
encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer;
|
236
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse;
|
237
|
+
fromPartial(object: DeepPartial<QueryProposalsResponse>): QueryProposalsResponse;
|
238
|
+
};
|
239
|
+
export declare const QueryVoteRequest: {
|
240
|
+
encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer;
|
241
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest;
|
242
|
+
fromPartial(object: DeepPartial<QueryVoteRequest>): QueryVoteRequest;
|
243
|
+
};
|
244
|
+
export declare const QueryVoteResponse: {
|
245
|
+
encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
246
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse;
|
247
|
+
fromPartial(object: DeepPartial<QueryVoteResponse>): QueryVoteResponse;
|
248
|
+
};
|
249
|
+
export declare const QueryVotesRequest: {
|
250
|
+
encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer;
|
251
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest;
|
252
|
+
fromPartial(object: DeepPartial<QueryVotesRequest>): QueryVotesRequest;
|
253
|
+
};
|
254
|
+
export declare const QueryVotesResponse: {
|
255
|
+
encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer;
|
256
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse;
|
257
|
+
fromPartial(object: DeepPartial<QueryVotesResponse>): QueryVotesResponse;
|
258
|
+
};
|
259
|
+
export declare const QueryParamsRequest: {
|
260
|
+
encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
261
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
262
|
+
fromPartial(object: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
263
|
+
};
|
264
|
+
export declare const QueryParamsResponse: {
|
265
|
+
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
266
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
267
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
268
|
+
};
|
269
|
+
export declare const QueryDepositRequest: {
|
270
|
+
encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer;
|
271
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest;
|
272
|
+
fromPartial(object: DeepPartial<QueryDepositRequest>): QueryDepositRequest;
|
273
|
+
};
|
274
|
+
export declare const QueryDepositResponse: {
|
275
|
+
encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
276
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse;
|
277
|
+
fromPartial(object: DeepPartial<QueryDepositResponse>): QueryDepositResponse;
|
278
|
+
};
|
279
|
+
export declare const QueryDepositsRequest: {
|
280
|
+
encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer;
|
281
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest;
|
282
|
+
fromPartial(object: DeepPartial<QueryDepositsRequest>): QueryDepositsRequest;
|
283
|
+
};
|
284
|
+
export declare const QueryDepositsResponse: {
|
285
|
+
encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer;
|
286
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse;
|
287
|
+
fromPartial(object: DeepPartial<QueryDepositsResponse>): QueryDepositsResponse;
|
288
|
+
};
|
289
|
+
export declare const QueryTallyResultRequest: {
|
290
|
+
encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer;
|
291
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest;
|
292
|
+
fromPartial(object: DeepPartial<QueryTallyResultRequest>): QueryTallyResultRequest;
|
293
|
+
};
|
294
|
+
export declare const QueryTallyResultResponse: {
|
295
|
+
encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer;
|
296
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse;
|
297
|
+
fromPartial(object: DeepPartial<QueryTallyResultResponse>): QueryTallyResultResponse;
|
298
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
2
|
+
import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query";
|
3
|
+
export declare class LCDQueryClient {
|
4
|
+
req: LCDClient;
|
5
|
+
constructor({ requestClient }: {
|
6
|
+
requestClient: LCDClient;
|
7
|
+
});
|
8
|
+
proposal(params: QueryProposalRequest): Promise<QueryProposalResponseSDKType>;
|
9
|
+
proposals(params: QueryProposalsRequest): Promise<QueryProposalsResponseSDKType>;
|
10
|
+
vote(params: QueryVoteRequest): Promise<QueryVoteResponseSDKType>;
|
11
|
+
votes(params: QueryVotesRequest): Promise<QueryVotesResponseSDKType>;
|
12
|
+
params(params: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
13
|
+
deposit(params: QueryDepositRequest): Promise<QueryDepositResponseSDKType>;
|
14
|
+
deposits(params: QueryDepositsRequest): Promise<QueryDepositsResponseSDKType>;
|
15
|
+
tallyResult(params: QueryTallyResultRequest): Promise<QueryTallyResultResponseSDKType>;
|
16
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
3
|
+
import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query";
|
4
|
+
/** Query defines the gRPC querier service for gov module */
|
5
|
+
export interface Query {
|
6
|
+
/** Proposal queries proposal details based on ProposalID. */
|
7
|
+
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
8
|
+
/** Proposals queries all proposals based on given status. */
|
9
|
+
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
10
|
+
/** Vote queries voted information based on proposalID, voterAddr. */
|
11
|
+
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
12
|
+
/** Votes queries votes of a given proposal. */
|
13
|
+
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
14
|
+
/** Params queries all parameters of the gov module. */
|
15
|
+
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
16
|
+
/** Deposit queries single deposit information based proposalID, depositAddr. */
|
17
|
+
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
18
|
+
/** Deposits queries all deposits of a single proposal. */
|
19
|
+
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
20
|
+
/** TallyResult queries the tally of a proposal vote. */
|
21
|
+
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
22
|
+
}
|
23
|
+
export declare class QueryClientImpl implements Query {
|
24
|
+
private readonly rpc;
|
25
|
+
constructor(rpc: Rpc);
|
26
|
+
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
27
|
+
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
28
|
+
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
29
|
+
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
30
|
+
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
31
|
+
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
32
|
+
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
33
|
+
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
34
|
+
}
|
35
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
36
|
+
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
37
|
+
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
38
|
+
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
39
|
+
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
40
|
+
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
41
|
+
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
42
|
+
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
43
|
+
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
44
|
+
};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
2
|
+
import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx";
|
3
|
+
export interface AminoMsgSubmitProposal extends AminoMsg {
|
4
|
+
type: "cosmos-sdk/v1/MsgSubmitProposal";
|
5
|
+
value: {
|
6
|
+
messages: {
|
7
|
+
type_url: string;
|
8
|
+
value: Uint8Array;
|
9
|
+
}[];
|
10
|
+
initial_deposit: {
|
11
|
+
denom: string;
|
12
|
+
amount: string;
|
13
|
+
}[];
|
14
|
+
proposer: string;
|
15
|
+
metadata: string;
|
16
|
+
};
|
17
|
+
}
|
18
|
+
export interface AminoMsgExecLegacyContent extends AminoMsg {
|
19
|
+
type: "cosmos-sdk/v1/MsgExecLegacyContent";
|
20
|
+
value: {
|
21
|
+
content: {
|
22
|
+
type_url: string;
|
23
|
+
value: Uint8Array;
|
24
|
+
};
|
25
|
+
authority: string;
|
26
|
+
};
|
27
|
+
}
|
28
|
+
export interface AminoMsgVote extends AminoMsg {
|
29
|
+
type: "cosmos-sdk/v1/MsgVote";
|
30
|
+
value: {
|
31
|
+
proposal_id: string;
|
32
|
+
voter: string;
|
33
|
+
option: number;
|
34
|
+
metadata: string;
|
35
|
+
};
|
36
|
+
}
|
37
|
+
export interface AminoMsgVoteWeighted extends AminoMsg {
|
38
|
+
type: "cosmos-sdk/v1/MsgVoteWeighted";
|
39
|
+
value: {
|
40
|
+
proposal_id: string;
|
41
|
+
voter: string;
|
42
|
+
options: {
|
43
|
+
option: number;
|
44
|
+
weight: string;
|
45
|
+
}[];
|
46
|
+
metadata: string;
|
47
|
+
};
|
48
|
+
}
|
49
|
+
export interface AminoMsgDeposit extends AminoMsg {
|
50
|
+
type: "cosmos-sdk/v1/MsgDeposit";
|
51
|
+
value: {
|
52
|
+
proposal_id: string;
|
53
|
+
depositor: string;
|
54
|
+
amount: {
|
55
|
+
denom: string;
|
56
|
+
amount: string;
|
57
|
+
}[];
|
58
|
+
};
|
59
|
+
}
|
60
|
+
export declare const AminoConverter: {
|
61
|
+
"/cosmos.gov.v1.MsgSubmitProposal": {
|
62
|
+
aminoType: string;
|
63
|
+
toAmino: ({ messages, initialDeposit, proposer, metadata }: MsgSubmitProposal) => AminoMsgSubmitProposal["value"];
|
64
|
+
fromAmino: ({ messages, initial_deposit, proposer, metadata }: AminoMsgSubmitProposal["value"]) => MsgSubmitProposal;
|
65
|
+
};
|
66
|
+
"/cosmos.gov.v1.MsgExecLegacyContent": {
|
67
|
+
aminoType: string;
|
68
|
+
toAmino: ({ content, authority }: MsgExecLegacyContent) => AminoMsgExecLegacyContent["value"];
|
69
|
+
fromAmino: ({ content, authority }: AminoMsgExecLegacyContent["value"]) => MsgExecLegacyContent;
|
70
|
+
};
|
71
|
+
"/cosmos.gov.v1.MsgVote": {
|
72
|
+
aminoType: string;
|
73
|
+
toAmino: ({ proposalId, voter, option, metadata }: MsgVote) => AminoMsgVote["value"];
|
74
|
+
fromAmino: ({ proposal_id, voter, option, metadata }: AminoMsgVote["value"]) => MsgVote;
|
75
|
+
};
|
76
|
+
"/cosmos.gov.v1.MsgVoteWeighted": {
|
77
|
+
aminoType: string;
|
78
|
+
toAmino: ({ proposalId, voter, options, metadata }: MsgVoteWeighted) => AminoMsgVoteWeighted["value"];
|
79
|
+
fromAmino: ({ proposal_id, voter, options, metadata }: AminoMsgVoteWeighted["value"]) => MsgVoteWeighted;
|
80
|
+
};
|
81
|
+
"/cosmos.gov.v1.MsgDeposit": {
|
82
|
+
aminoType: string;
|
83
|
+
toAmino: ({ proposalId, depositor, amount }: MsgDeposit) => AminoMsgDeposit["value"];
|
84
|
+
fromAmino: ({ proposal_id, depositor, amount }: AminoMsgDeposit["value"]) => MsgDeposit;
|
85
|
+
};
|
86
|
+
};
|
@@ -0,0 +1,169 @@
|
|
1
|
+
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
2
|
+
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
3
|
+
import { VoteOption, VoteOptionSDKType, WeightedVoteOption, WeightedVoteOptionSDKType } from "./gov";
|
4
|
+
import * as _m0 from "protobufjs/minimal";
|
5
|
+
import { DeepPartial, Long } from "../../../helpers";
|
6
|
+
/**
|
7
|
+
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
8
|
+
* proposal Content.
|
9
|
+
*/
|
10
|
+
export interface MsgSubmitProposal {
|
11
|
+
messages: Any[];
|
12
|
+
initialDeposit: Coin[];
|
13
|
+
proposer: string;
|
14
|
+
/** metadata is any arbitrary metadata attached to the proposal. */
|
15
|
+
metadata: string;
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
19
|
+
* proposal Content.
|
20
|
+
*/
|
21
|
+
export interface MsgSubmitProposalSDKType {
|
22
|
+
messages: AnySDKType[];
|
23
|
+
initial_deposit: CoinSDKType[];
|
24
|
+
proposer: string;
|
25
|
+
/** metadata is any arbitrary metadata attached to the proposal. */
|
26
|
+
metadata: string;
|
27
|
+
}
|
28
|
+
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
29
|
+
export interface MsgSubmitProposalResponse {
|
30
|
+
proposalId: Long;
|
31
|
+
}
|
32
|
+
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
33
|
+
export interface MsgSubmitProposalResponseSDKType {
|
34
|
+
proposal_id: Long;
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
|
38
|
+
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
|
39
|
+
*/
|
40
|
+
export interface MsgExecLegacyContent {
|
41
|
+
/** content is the proposal's content. */
|
42
|
+
content?: Any;
|
43
|
+
/** authority must be the gov module address. */
|
44
|
+
authority: string;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
|
48
|
+
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
|
49
|
+
*/
|
50
|
+
export interface MsgExecLegacyContentSDKType {
|
51
|
+
/** content is the proposal's content. */
|
52
|
+
content?: AnySDKType;
|
53
|
+
/** authority must be the gov module address. */
|
54
|
+
authority: string;
|
55
|
+
}
|
56
|
+
/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
|
57
|
+
export interface MsgExecLegacyContentResponse {
|
58
|
+
}
|
59
|
+
/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
|
60
|
+
export interface MsgExecLegacyContentResponseSDKType {
|
61
|
+
}
|
62
|
+
/** MsgVote defines a message to cast a vote. */
|
63
|
+
export interface MsgVote {
|
64
|
+
proposalId: Long;
|
65
|
+
voter: string;
|
66
|
+
option: VoteOption;
|
67
|
+
metadata: string;
|
68
|
+
}
|
69
|
+
/** MsgVote defines a message to cast a vote. */
|
70
|
+
export interface MsgVoteSDKType {
|
71
|
+
proposal_id: Long;
|
72
|
+
voter: string;
|
73
|
+
option: VoteOptionSDKType;
|
74
|
+
metadata: string;
|
75
|
+
}
|
76
|
+
/** MsgVoteResponse defines the Msg/Vote response type. */
|
77
|
+
export interface MsgVoteResponse {
|
78
|
+
}
|
79
|
+
/** MsgVoteResponse defines the Msg/Vote response type. */
|
80
|
+
export interface MsgVoteResponseSDKType {
|
81
|
+
}
|
82
|
+
/** MsgVoteWeighted defines a message to cast a vote. */
|
83
|
+
export interface MsgVoteWeighted {
|
84
|
+
proposalId: Long;
|
85
|
+
voter: string;
|
86
|
+
options: WeightedVoteOption[];
|
87
|
+
metadata: string;
|
88
|
+
}
|
89
|
+
/** MsgVoteWeighted defines a message to cast a vote. */
|
90
|
+
export interface MsgVoteWeightedSDKType {
|
91
|
+
proposal_id: Long;
|
92
|
+
voter: string;
|
93
|
+
options: WeightedVoteOptionSDKType[];
|
94
|
+
metadata: string;
|
95
|
+
}
|
96
|
+
/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
|
97
|
+
export interface MsgVoteWeightedResponse {
|
98
|
+
}
|
99
|
+
/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
|
100
|
+
export interface MsgVoteWeightedResponseSDKType {
|
101
|
+
}
|
102
|
+
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
103
|
+
export interface MsgDeposit {
|
104
|
+
proposalId: Long;
|
105
|
+
depositor: string;
|
106
|
+
amount: Coin[];
|
107
|
+
}
|
108
|
+
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
109
|
+
export interface MsgDepositSDKType {
|
110
|
+
proposal_id: Long;
|
111
|
+
depositor: string;
|
112
|
+
amount: CoinSDKType[];
|
113
|
+
}
|
114
|
+
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
115
|
+
export interface MsgDepositResponse {
|
116
|
+
}
|
117
|
+
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
118
|
+
export interface MsgDepositResponseSDKType {
|
119
|
+
}
|
120
|
+
export declare const MsgSubmitProposal: {
|
121
|
+
encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer;
|
122
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal;
|
123
|
+
fromPartial(object: DeepPartial<MsgSubmitProposal>): MsgSubmitProposal;
|
124
|
+
};
|
125
|
+
export declare const MsgSubmitProposalResponse: {
|
126
|
+
encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
127
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse;
|
128
|
+
fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse;
|
129
|
+
};
|
130
|
+
export declare const MsgExecLegacyContent: {
|
131
|
+
encode(message: MsgExecLegacyContent, writer?: _m0.Writer): _m0.Writer;
|
132
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContent;
|
133
|
+
fromPartial(object: DeepPartial<MsgExecLegacyContent>): MsgExecLegacyContent;
|
134
|
+
};
|
135
|
+
export declare const MsgExecLegacyContentResponse: {
|
136
|
+
encode(_: MsgExecLegacyContentResponse, writer?: _m0.Writer): _m0.Writer;
|
137
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContentResponse;
|
138
|
+
fromPartial(_: DeepPartial<MsgExecLegacyContentResponse>): MsgExecLegacyContentResponse;
|
139
|
+
};
|
140
|
+
export declare const MsgVote: {
|
141
|
+
encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer;
|
142
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote;
|
143
|
+
fromPartial(object: DeepPartial<MsgVote>): MsgVote;
|
144
|
+
};
|
145
|
+
export declare const MsgVoteResponse: {
|
146
|
+
encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
147
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse;
|
148
|
+
fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse;
|
149
|
+
};
|
150
|
+
export declare const MsgVoteWeighted: {
|
151
|
+
encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer;
|
152
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted;
|
153
|
+
fromPartial(object: DeepPartial<MsgVoteWeighted>): MsgVoteWeighted;
|
154
|
+
};
|
155
|
+
export declare const MsgVoteWeightedResponse: {
|
156
|
+
encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer;
|
157
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse;
|
158
|
+
fromPartial(_: DeepPartial<MsgVoteWeightedResponse>): MsgVoteWeightedResponse;
|
159
|
+
};
|
160
|
+
export declare const MsgDeposit: {
|
161
|
+
encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer;
|
162
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit;
|
163
|
+
fromPartial(object: DeepPartial<MsgDeposit>): MsgDeposit;
|
164
|
+
};
|
165
|
+
export declare const MsgDepositResponse: {
|
166
|
+
encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
167
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse;
|
168
|
+
fromPartial(_: DeepPartial<MsgDepositResponse>): MsgDepositResponse;
|
169
|
+
};
|