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,385 @@
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
2
|
+
import { Params, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardSDKType } from "./distribution";
|
3
|
+
import { DecCoin, DecCoinSDKType } from "../../base/v1beta1/coin";
|
4
|
+
import * as _m0 from "protobufjs/minimal";
|
5
|
+
import { DeepPartial, Long } from "../../../helpers";
|
6
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
7
|
+
export interface QueryParamsRequest {
|
8
|
+
}
|
9
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
10
|
+
export interface QueryParamsRequestSDKType {
|
11
|
+
}
|
12
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
13
|
+
export interface QueryParamsResponse {
|
14
|
+
/** params defines the parameters of the module. */
|
15
|
+
params?: Params;
|
16
|
+
}
|
17
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
18
|
+
export interface QueryParamsResponseSDKType {
|
19
|
+
/** params defines the parameters of the module. */
|
20
|
+
params?: ParamsSDKType;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
24
|
+
* Query/ValidatorOutstandingRewards RPC method.
|
25
|
+
*/
|
26
|
+
export interface QueryValidatorOutstandingRewardsRequest {
|
27
|
+
/** validator_address defines the validator address to query for. */
|
28
|
+
validatorAddress: string;
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
32
|
+
* Query/ValidatorOutstandingRewards RPC method.
|
33
|
+
*/
|
34
|
+
export interface QueryValidatorOutstandingRewardsRequestSDKType {
|
35
|
+
/** validator_address defines the validator address to query for. */
|
36
|
+
validator_address: string;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
40
|
+
* Query/ValidatorOutstandingRewards RPC method.
|
41
|
+
*/
|
42
|
+
export interface QueryValidatorOutstandingRewardsResponse {
|
43
|
+
rewards?: ValidatorOutstandingRewards;
|
44
|
+
}
|
45
|
+
/**
|
46
|
+
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
47
|
+
* Query/ValidatorOutstandingRewards RPC method.
|
48
|
+
*/
|
49
|
+
export interface QueryValidatorOutstandingRewardsResponseSDKType {
|
50
|
+
rewards?: ValidatorOutstandingRewardsSDKType;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* QueryValidatorCommissionRequest is the request type for the
|
54
|
+
* Query/ValidatorCommission RPC method
|
55
|
+
*/
|
56
|
+
export interface QueryValidatorCommissionRequest {
|
57
|
+
/** validator_address defines the validator address to query for. */
|
58
|
+
validatorAddress: string;
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* QueryValidatorCommissionRequest is the request type for the
|
62
|
+
* Query/ValidatorCommission RPC method
|
63
|
+
*/
|
64
|
+
export interface QueryValidatorCommissionRequestSDKType {
|
65
|
+
/** validator_address defines the validator address to query for. */
|
66
|
+
validator_address: string;
|
67
|
+
}
|
68
|
+
/**
|
69
|
+
* QueryValidatorCommissionResponse is the response type for the
|
70
|
+
* Query/ValidatorCommission RPC method
|
71
|
+
*/
|
72
|
+
export interface QueryValidatorCommissionResponse {
|
73
|
+
/** commission defines the commision the validator received. */
|
74
|
+
commission?: ValidatorAccumulatedCommission;
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* QueryValidatorCommissionResponse is the response type for the
|
78
|
+
* Query/ValidatorCommission RPC method
|
79
|
+
*/
|
80
|
+
export interface QueryValidatorCommissionResponseSDKType {
|
81
|
+
/** commission defines the commision the validator received. */
|
82
|
+
commission?: ValidatorAccumulatedCommissionSDKType;
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* QueryValidatorSlashesRequest is the request type for the
|
86
|
+
* Query/ValidatorSlashes RPC method
|
87
|
+
*/
|
88
|
+
export interface QueryValidatorSlashesRequest {
|
89
|
+
/** validator_address defines the validator address to query for. */
|
90
|
+
validatorAddress: string;
|
91
|
+
/** starting_height defines the optional starting height to query the slashes. */
|
92
|
+
startingHeight: Long;
|
93
|
+
/** starting_height defines the optional ending height to query the slashes. */
|
94
|
+
endingHeight: Long;
|
95
|
+
/** pagination defines an optional pagination for the request. */
|
96
|
+
pagination?: PageRequest;
|
97
|
+
}
|
98
|
+
/**
|
99
|
+
* QueryValidatorSlashesRequest is the request type for the
|
100
|
+
* Query/ValidatorSlashes RPC method
|
101
|
+
*/
|
102
|
+
export interface QueryValidatorSlashesRequestSDKType {
|
103
|
+
/** validator_address defines the validator address to query for. */
|
104
|
+
validator_address: string;
|
105
|
+
/** starting_height defines the optional starting height to query the slashes. */
|
106
|
+
starting_height: Long;
|
107
|
+
/** starting_height defines the optional ending height to query the slashes. */
|
108
|
+
ending_height: Long;
|
109
|
+
/** pagination defines an optional pagination for the request. */
|
110
|
+
pagination?: PageRequestSDKType;
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* QueryValidatorSlashesResponse is the response type for the
|
114
|
+
* Query/ValidatorSlashes RPC method.
|
115
|
+
*/
|
116
|
+
export interface QueryValidatorSlashesResponse {
|
117
|
+
/** slashes defines the slashes the validator received. */
|
118
|
+
slashes: ValidatorSlashEvent[];
|
119
|
+
/** pagination defines the pagination in the response. */
|
120
|
+
pagination?: PageResponse;
|
121
|
+
}
|
122
|
+
/**
|
123
|
+
* QueryValidatorSlashesResponse is the response type for the
|
124
|
+
* Query/ValidatorSlashes RPC method.
|
125
|
+
*/
|
126
|
+
export interface QueryValidatorSlashesResponseSDKType {
|
127
|
+
/** slashes defines the slashes the validator received. */
|
128
|
+
slashes: ValidatorSlashEventSDKType[];
|
129
|
+
/** pagination defines the pagination in the response. */
|
130
|
+
pagination?: PageResponseSDKType;
|
131
|
+
}
|
132
|
+
/**
|
133
|
+
* QueryDelegationRewardsRequest is the request type for the
|
134
|
+
* Query/DelegationRewards RPC method.
|
135
|
+
*/
|
136
|
+
export interface QueryDelegationRewardsRequest {
|
137
|
+
/** delegator_address defines the delegator address to query for. */
|
138
|
+
delegatorAddress: string;
|
139
|
+
/** validator_address defines the validator address to query for. */
|
140
|
+
validatorAddress: string;
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* QueryDelegationRewardsRequest is the request type for the
|
144
|
+
* Query/DelegationRewards RPC method.
|
145
|
+
*/
|
146
|
+
export interface QueryDelegationRewardsRequestSDKType {
|
147
|
+
/** delegator_address defines the delegator address to query for. */
|
148
|
+
delegator_address: string;
|
149
|
+
/** validator_address defines the validator address to query for. */
|
150
|
+
validator_address: string;
|
151
|
+
}
|
152
|
+
/**
|
153
|
+
* QueryDelegationRewardsResponse is the response type for the
|
154
|
+
* Query/DelegationRewards RPC method.
|
155
|
+
*/
|
156
|
+
export interface QueryDelegationRewardsResponse {
|
157
|
+
/** rewards defines the rewards accrued by a delegation. */
|
158
|
+
rewards: DecCoin[];
|
159
|
+
}
|
160
|
+
/**
|
161
|
+
* QueryDelegationRewardsResponse is the response type for the
|
162
|
+
* Query/DelegationRewards RPC method.
|
163
|
+
*/
|
164
|
+
export interface QueryDelegationRewardsResponseSDKType {
|
165
|
+
/** rewards defines the rewards accrued by a delegation. */
|
166
|
+
rewards: DecCoinSDKType[];
|
167
|
+
}
|
168
|
+
/**
|
169
|
+
* QueryDelegationTotalRewardsRequest is the request type for the
|
170
|
+
* Query/DelegationTotalRewards RPC method.
|
171
|
+
*/
|
172
|
+
export interface QueryDelegationTotalRewardsRequest {
|
173
|
+
/** delegator_address defines the delegator address to query for. */
|
174
|
+
delegatorAddress: string;
|
175
|
+
}
|
176
|
+
/**
|
177
|
+
* QueryDelegationTotalRewardsRequest is the request type for the
|
178
|
+
* Query/DelegationTotalRewards RPC method.
|
179
|
+
*/
|
180
|
+
export interface QueryDelegationTotalRewardsRequestSDKType {
|
181
|
+
/** delegator_address defines the delegator address to query for. */
|
182
|
+
delegator_address: string;
|
183
|
+
}
|
184
|
+
/**
|
185
|
+
* QueryDelegationTotalRewardsResponse is the response type for the
|
186
|
+
* Query/DelegationTotalRewards RPC method.
|
187
|
+
*/
|
188
|
+
export interface QueryDelegationTotalRewardsResponse {
|
189
|
+
/** rewards defines all the rewards accrued by a delegator. */
|
190
|
+
rewards: DelegationDelegatorReward[];
|
191
|
+
/** total defines the sum of all the rewards. */
|
192
|
+
total: DecCoin[];
|
193
|
+
}
|
194
|
+
/**
|
195
|
+
* QueryDelegationTotalRewardsResponse is the response type for the
|
196
|
+
* Query/DelegationTotalRewards RPC method.
|
197
|
+
*/
|
198
|
+
export interface QueryDelegationTotalRewardsResponseSDKType {
|
199
|
+
/** rewards defines all the rewards accrued by a delegator. */
|
200
|
+
rewards: DelegationDelegatorRewardSDKType[];
|
201
|
+
/** total defines the sum of all the rewards. */
|
202
|
+
total: DecCoinSDKType[];
|
203
|
+
}
|
204
|
+
/**
|
205
|
+
* QueryDelegatorValidatorsRequest is the request type for the
|
206
|
+
* Query/DelegatorValidators RPC method.
|
207
|
+
*/
|
208
|
+
export interface QueryDelegatorValidatorsRequest {
|
209
|
+
/** delegator_address defines the delegator address to query for. */
|
210
|
+
delegatorAddress: string;
|
211
|
+
}
|
212
|
+
/**
|
213
|
+
* QueryDelegatorValidatorsRequest is the request type for the
|
214
|
+
* Query/DelegatorValidators RPC method.
|
215
|
+
*/
|
216
|
+
export interface QueryDelegatorValidatorsRequestSDKType {
|
217
|
+
/** delegator_address defines the delegator address to query for. */
|
218
|
+
delegator_address: string;
|
219
|
+
}
|
220
|
+
/**
|
221
|
+
* QueryDelegatorValidatorsResponse is the response type for the
|
222
|
+
* Query/DelegatorValidators RPC method.
|
223
|
+
*/
|
224
|
+
export interface QueryDelegatorValidatorsResponse {
|
225
|
+
/** validators defines the validators a delegator is delegating for. */
|
226
|
+
validators: string[];
|
227
|
+
}
|
228
|
+
/**
|
229
|
+
* QueryDelegatorValidatorsResponse is the response type for the
|
230
|
+
* Query/DelegatorValidators RPC method.
|
231
|
+
*/
|
232
|
+
export interface QueryDelegatorValidatorsResponseSDKType {
|
233
|
+
/** validators defines the validators a delegator is delegating for. */
|
234
|
+
validators: string[];
|
235
|
+
}
|
236
|
+
/**
|
237
|
+
* QueryDelegatorWithdrawAddressRequest is the request type for the
|
238
|
+
* Query/DelegatorWithdrawAddress RPC method.
|
239
|
+
*/
|
240
|
+
export interface QueryDelegatorWithdrawAddressRequest {
|
241
|
+
/** delegator_address defines the delegator address to query for. */
|
242
|
+
delegatorAddress: string;
|
243
|
+
}
|
244
|
+
/**
|
245
|
+
* QueryDelegatorWithdrawAddressRequest is the request type for the
|
246
|
+
* Query/DelegatorWithdrawAddress RPC method.
|
247
|
+
*/
|
248
|
+
export interface QueryDelegatorWithdrawAddressRequestSDKType {
|
249
|
+
/** delegator_address defines the delegator address to query for. */
|
250
|
+
delegator_address: string;
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* QueryDelegatorWithdrawAddressResponse is the response type for the
|
254
|
+
* Query/DelegatorWithdrawAddress RPC method.
|
255
|
+
*/
|
256
|
+
export interface QueryDelegatorWithdrawAddressResponse {
|
257
|
+
/** withdraw_address defines the delegator address to query for. */
|
258
|
+
withdrawAddress: string;
|
259
|
+
}
|
260
|
+
/**
|
261
|
+
* QueryDelegatorWithdrawAddressResponse is the response type for the
|
262
|
+
* Query/DelegatorWithdrawAddress RPC method.
|
263
|
+
*/
|
264
|
+
export interface QueryDelegatorWithdrawAddressResponseSDKType {
|
265
|
+
/** withdraw_address defines the delegator address to query for. */
|
266
|
+
withdraw_address: string;
|
267
|
+
}
|
268
|
+
/**
|
269
|
+
* QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
|
270
|
+
* method.
|
271
|
+
*/
|
272
|
+
export interface QueryCommunityPoolRequest {
|
273
|
+
}
|
274
|
+
/**
|
275
|
+
* QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
|
276
|
+
* method.
|
277
|
+
*/
|
278
|
+
export interface QueryCommunityPoolRequestSDKType {
|
279
|
+
}
|
280
|
+
/**
|
281
|
+
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
282
|
+
* RPC method.
|
283
|
+
*/
|
284
|
+
export interface QueryCommunityPoolResponse {
|
285
|
+
/** pool defines community pool's coins. */
|
286
|
+
pool: DecCoin[];
|
287
|
+
}
|
288
|
+
/**
|
289
|
+
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
290
|
+
* RPC method.
|
291
|
+
*/
|
292
|
+
export interface QueryCommunityPoolResponseSDKType {
|
293
|
+
/** pool defines community pool's coins. */
|
294
|
+
pool: DecCoinSDKType[];
|
295
|
+
}
|
296
|
+
export declare const QueryParamsRequest: {
|
297
|
+
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
298
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
299
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
300
|
+
};
|
301
|
+
export declare const QueryParamsResponse: {
|
302
|
+
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
303
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
304
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
305
|
+
};
|
306
|
+
export declare const QueryValidatorOutstandingRewardsRequest: {
|
307
|
+
encode(message: QueryValidatorOutstandingRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
308
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest;
|
309
|
+
fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsRequest>): QueryValidatorOutstandingRewardsRequest;
|
310
|
+
};
|
311
|
+
export declare const QueryValidatorOutstandingRewardsResponse: {
|
312
|
+
encode(message: QueryValidatorOutstandingRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
313
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse;
|
314
|
+
fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsResponse>): QueryValidatorOutstandingRewardsResponse;
|
315
|
+
};
|
316
|
+
export declare const QueryValidatorCommissionRequest: {
|
317
|
+
encode(message: QueryValidatorCommissionRequest, writer?: _m0.Writer): _m0.Writer;
|
318
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionRequest;
|
319
|
+
fromPartial(object: DeepPartial<QueryValidatorCommissionRequest>): QueryValidatorCommissionRequest;
|
320
|
+
};
|
321
|
+
export declare const QueryValidatorCommissionResponse: {
|
322
|
+
encode(message: QueryValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer;
|
323
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionResponse;
|
324
|
+
fromPartial(object: DeepPartial<QueryValidatorCommissionResponse>): QueryValidatorCommissionResponse;
|
325
|
+
};
|
326
|
+
export declare const QueryValidatorSlashesRequest: {
|
327
|
+
encode(message: QueryValidatorSlashesRequest, writer?: _m0.Writer): _m0.Writer;
|
328
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesRequest;
|
329
|
+
fromPartial(object: DeepPartial<QueryValidatorSlashesRequest>): QueryValidatorSlashesRequest;
|
330
|
+
};
|
331
|
+
export declare const QueryValidatorSlashesResponse: {
|
332
|
+
encode(message: QueryValidatorSlashesResponse, writer?: _m0.Writer): _m0.Writer;
|
333
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesResponse;
|
334
|
+
fromPartial(object: DeepPartial<QueryValidatorSlashesResponse>): QueryValidatorSlashesResponse;
|
335
|
+
};
|
336
|
+
export declare const QueryDelegationRewardsRequest: {
|
337
|
+
encode(message: QueryDelegationRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
338
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsRequest;
|
339
|
+
fromPartial(object: DeepPartial<QueryDelegationRewardsRequest>): QueryDelegationRewardsRequest;
|
340
|
+
};
|
341
|
+
export declare const QueryDelegationRewardsResponse: {
|
342
|
+
encode(message: QueryDelegationRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
343
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsResponse;
|
344
|
+
fromPartial(object: DeepPartial<QueryDelegationRewardsResponse>): QueryDelegationRewardsResponse;
|
345
|
+
};
|
346
|
+
export declare const QueryDelegationTotalRewardsRequest: {
|
347
|
+
encode(message: QueryDelegationTotalRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
348
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest;
|
349
|
+
fromPartial(object: DeepPartial<QueryDelegationTotalRewardsRequest>): QueryDelegationTotalRewardsRequest;
|
350
|
+
};
|
351
|
+
export declare const QueryDelegationTotalRewardsResponse: {
|
352
|
+
encode(message: QueryDelegationTotalRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
353
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse;
|
354
|
+
fromPartial(object: DeepPartial<QueryDelegationTotalRewardsResponse>): QueryDelegationTotalRewardsResponse;
|
355
|
+
};
|
356
|
+
export declare const QueryDelegatorValidatorsRequest: {
|
357
|
+
encode(message: QueryDelegatorValidatorsRequest, writer?: _m0.Writer): _m0.Writer;
|
358
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest;
|
359
|
+
fromPartial(object: DeepPartial<QueryDelegatorValidatorsRequest>): QueryDelegatorValidatorsRequest;
|
360
|
+
};
|
361
|
+
export declare const QueryDelegatorValidatorsResponse: {
|
362
|
+
encode(message: QueryDelegatorValidatorsResponse, writer?: _m0.Writer): _m0.Writer;
|
363
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse;
|
364
|
+
fromPartial(object: DeepPartial<QueryDelegatorValidatorsResponse>): QueryDelegatorValidatorsResponse;
|
365
|
+
};
|
366
|
+
export declare const QueryDelegatorWithdrawAddressRequest: {
|
367
|
+
encode(message: QueryDelegatorWithdrawAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
368
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest;
|
369
|
+
fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressRequest>): QueryDelegatorWithdrawAddressRequest;
|
370
|
+
};
|
371
|
+
export declare const QueryDelegatorWithdrawAddressResponse: {
|
372
|
+
encode(message: QueryDelegatorWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
373
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse;
|
374
|
+
fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressResponse>): QueryDelegatorWithdrawAddressResponse;
|
375
|
+
};
|
376
|
+
export declare const QueryCommunityPoolRequest: {
|
377
|
+
encode(_: QueryCommunityPoolRequest, writer?: _m0.Writer): _m0.Writer;
|
378
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolRequest;
|
379
|
+
fromPartial(_: DeepPartial<QueryCommunityPoolRequest>): QueryCommunityPoolRequest;
|
380
|
+
};
|
381
|
+
export declare const QueryCommunityPoolResponse: {
|
382
|
+
encode(message: QueryCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer;
|
383
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolResponse;
|
384
|
+
fromPartial(object: DeepPartial<QueryCommunityPoolResponse>): QueryCommunityPoolResponse;
|
385
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
2
|
+
import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query";
|
3
|
+
export declare class LCDQueryClient {
|
4
|
+
req: LCDClient;
|
5
|
+
constructor({ requestClient }: {
|
6
|
+
requestClient: LCDClient;
|
7
|
+
});
|
8
|
+
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
9
|
+
validatorOutstandingRewards(params: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponseSDKType>;
|
10
|
+
validatorCommission(params: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponseSDKType>;
|
11
|
+
validatorSlashes(params: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponseSDKType>;
|
12
|
+
delegationRewards(params: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponseSDKType>;
|
13
|
+
delegationTotalRewards(params: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponseSDKType>;
|
14
|
+
delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponseSDKType>;
|
15
|
+
delegatorWithdrawAddress(params: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponseSDKType>;
|
16
|
+
communityPool(_params?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponseSDKType>;
|
17
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query";
|
4
|
+
/** Query defines the gRPC querier service for distribution module. */
|
5
|
+
export interface Query {
|
6
|
+
/** Params queries params of the distribution module. */
|
7
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
8
|
+
/** ValidatorOutstandingRewards queries rewards of a validator address. */
|
9
|
+
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
10
|
+
/** ValidatorCommission queries accumulated commission for a validator. */
|
11
|
+
validatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
12
|
+
/** ValidatorSlashes queries slash events of a validator. */
|
13
|
+
validatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
14
|
+
/** DelegationRewards queries the total rewards accrued by a delegation. */
|
15
|
+
delegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
|
16
|
+
/**
|
17
|
+
* DelegationTotalRewards queries the total rewards accrued by a each
|
18
|
+
* validator.
|
19
|
+
*/
|
20
|
+
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
|
21
|
+
/** DelegatorValidators queries the validators of a delegator. */
|
22
|
+
delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
|
23
|
+
/** DelegatorWithdrawAddress queries withdraw address of a delegator. */
|
24
|
+
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
|
25
|
+
/** CommunityPool queries the community pool coins. */
|
26
|
+
communityPool(request?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
|
27
|
+
}
|
28
|
+
export declare class QueryClientImpl implements Query {
|
29
|
+
private readonly rpc;
|
30
|
+
constructor(rpc: Rpc);
|
31
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
32
|
+
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
33
|
+
validatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
34
|
+
validatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
35
|
+
delegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
|
36
|
+
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
|
37
|
+
delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
|
38
|
+
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
|
39
|
+
communityPool(request?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
|
40
|
+
}
|
41
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
42
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
43
|
+
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
44
|
+
validatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
45
|
+
validatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
46
|
+
delegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
|
47
|
+
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
|
48
|
+
delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
|
49
|
+
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
|
50
|
+
communityPool(request?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
|
51
|
+
};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
2
|
+
import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx";
|
3
|
+
export interface AminoMsgSetWithdrawAddress extends AminoMsg {
|
4
|
+
type: "cosmos-sdk/MsgModifyWithdrawAddress";
|
5
|
+
value: {
|
6
|
+
delegator_address: string;
|
7
|
+
withdraw_address: string;
|
8
|
+
};
|
9
|
+
}
|
10
|
+
export interface AminoMsgWithdrawDelegatorReward extends AminoMsg {
|
11
|
+
type: "cosmos-sdk/MsgWithdrawDelegationReward";
|
12
|
+
value: {
|
13
|
+
delegator_address: string;
|
14
|
+
validator_address: string;
|
15
|
+
};
|
16
|
+
}
|
17
|
+
export interface AminoMsgWithdrawValidatorCommission extends AminoMsg {
|
18
|
+
type: "cosmos-sdk/MsgWithdrawValidatorCommission";
|
19
|
+
value: {
|
20
|
+
validator_address: string;
|
21
|
+
};
|
22
|
+
}
|
23
|
+
export interface AminoMsgFundCommunityPool extends AminoMsg {
|
24
|
+
type: "cosmos-sdk/MsgFundCommunityPool";
|
25
|
+
value: {
|
26
|
+
amount: {
|
27
|
+
denom: string;
|
28
|
+
amount: string;
|
29
|
+
}[];
|
30
|
+
depositor: string;
|
31
|
+
};
|
32
|
+
}
|
33
|
+
export declare const AminoConverter: {
|
34
|
+
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": {
|
35
|
+
aminoType: string;
|
36
|
+
toAmino: ({ delegatorAddress, withdrawAddress }: MsgSetWithdrawAddress) => AminoMsgSetWithdrawAddress["value"];
|
37
|
+
fromAmino: ({ delegator_address, withdraw_address }: AminoMsgSetWithdrawAddress["value"]) => MsgSetWithdrawAddress;
|
38
|
+
};
|
39
|
+
"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": {
|
40
|
+
aminoType: string;
|
41
|
+
toAmino: ({ delegatorAddress, validatorAddress }: MsgWithdrawDelegatorReward) => AminoMsgWithdrawDelegatorReward["value"];
|
42
|
+
fromAmino: ({ delegator_address, validator_address }: AminoMsgWithdrawDelegatorReward["value"]) => MsgWithdrawDelegatorReward;
|
43
|
+
};
|
44
|
+
"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": {
|
45
|
+
aminoType: string;
|
46
|
+
toAmino: ({ validatorAddress }: MsgWithdrawValidatorCommission) => AminoMsgWithdrawValidatorCommission["value"];
|
47
|
+
fromAmino: ({ validator_address }: AminoMsgWithdrawValidatorCommission["value"]) => MsgWithdrawValidatorCommission;
|
48
|
+
};
|
49
|
+
"/cosmos.distribution.v1beta1.MsgFundCommunityPool": {
|
50
|
+
aminoType: string;
|
51
|
+
toAmino: ({ amount, depositor }: MsgFundCommunityPool) => AminoMsgFundCommunityPool["value"];
|
52
|
+
fromAmino: ({ amount, depositor }: AminoMsgFundCommunityPool["value"]) => MsgFundCommunityPool;
|
53
|
+
};
|
54
|
+
};
|
@@ -0,0 +1,133 @@
|
|
1
|
+
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
4
|
+
/**
|
5
|
+
* MsgSetWithdrawAddress sets the withdraw address for
|
6
|
+
* a delegator (or validator self-delegation).
|
7
|
+
*/
|
8
|
+
export interface MsgSetWithdrawAddress {
|
9
|
+
delegatorAddress: string;
|
10
|
+
withdrawAddress: string;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* MsgSetWithdrawAddress sets the withdraw address for
|
14
|
+
* a delegator (or validator self-delegation).
|
15
|
+
*/
|
16
|
+
export interface MsgSetWithdrawAddressSDKType {
|
17
|
+
delegator_address: string;
|
18
|
+
withdraw_address: string;
|
19
|
+
}
|
20
|
+
/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */
|
21
|
+
export interface MsgSetWithdrawAddressResponse {
|
22
|
+
}
|
23
|
+
/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */
|
24
|
+
export interface MsgSetWithdrawAddressResponseSDKType {
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
28
|
+
* from a single validator.
|
29
|
+
*/
|
30
|
+
export interface MsgWithdrawDelegatorReward {
|
31
|
+
delegatorAddress: string;
|
32
|
+
validatorAddress: string;
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
36
|
+
* from a single validator.
|
37
|
+
*/
|
38
|
+
export interface MsgWithdrawDelegatorRewardSDKType {
|
39
|
+
delegator_address: string;
|
40
|
+
validator_address: string;
|
41
|
+
}
|
42
|
+
/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */
|
43
|
+
export interface MsgWithdrawDelegatorRewardResponse {
|
44
|
+
amount: Coin[];
|
45
|
+
}
|
46
|
+
/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */
|
47
|
+
export interface MsgWithdrawDelegatorRewardResponseSDKType {
|
48
|
+
amount: CoinSDKType[];
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
52
|
+
* address.
|
53
|
+
*/
|
54
|
+
export interface MsgWithdrawValidatorCommission {
|
55
|
+
validatorAddress: string;
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
59
|
+
* address.
|
60
|
+
*/
|
61
|
+
export interface MsgWithdrawValidatorCommissionSDKType {
|
62
|
+
validator_address: string;
|
63
|
+
}
|
64
|
+
/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */
|
65
|
+
export interface MsgWithdrawValidatorCommissionResponse {
|
66
|
+
amount: Coin[];
|
67
|
+
}
|
68
|
+
/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */
|
69
|
+
export interface MsgWithdrawValidatorCommissionResponseSDKType {
|
70
|
+
amount: CoinSDKType[];
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* MsgFundCommunityPool allows an account to directly
|
74
|
+
* fund the community pool.
|
75
|
+
*/
|
76
|
+
export interface MsgFundCommunityPool {
|
77
|
+
amount: Coin[];
|
78
|
+
depositor: string;
|
79
|
+
}
|
80
|
+
/**
|
81
|
+
* MsgFundCommunityPool allows an account to directly
|
82
|
+
* fund the community pool.
|
83
|
+
*/
|
84
|
+
export interface MsgFundCommunityPoolSDKType {
|
85
|
+
amount: CoinSDKType[];
|
86
|
+
depositor: string;
|
87
|
+
}
|
88
|
+
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
89
|
+
export interface MsgFundCommunityPoolResponse {
|
90
|
+
}
|
91
|
+
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
92
|
+
export interface MsgFundCommunityPoolResponseSDKType {
|
93
|
+
}
|
94
|
+
export declare const MsgSetWithdrawAddress: {
|
95
|
+
encode(message: MsgSetWithdrawAddress, writer?: _m0.Writer): _m0.Writer;
|
96
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddress;
|
97
|
+
fromPartial(object: DeepPartial<MsgSetWithdrawAddress>): MsgSetWithdrawAddress;
|
98
|
+
};
|
99
|
+
export declare const MsgSetWithdrawAddressResponse: {
|
100
|
+
encode(_: MsgSetWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
101
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse;
|
102
|
+
fromPartial(_: DeepPartial<MsgSetWithdrawAddressResponse>): MsgSetWithdrawAddressResponse;
|
103
|
+
};
|
104
|
+
export declare const MsgWithdrawDelegatorReward: {
|
105
|
+
encode(message: MsgWithdrawDelegatorReward, writer?: _m0.Writer): _m0.Writer;
|
106
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorReward;
|
107
|
+
fromPartial(object: DeepPartial<MsgWithdrawDelegatorReward>): MsgWithdrawDelegatorReward;
|
108
|
+
};
|
109
|
+
export declare const MsgWithdrawDelegatorRewardResponse: {
|
110
|
+
encode(message: MsgWithdrawDelegatorRewardResponse, writer?: _m0.Writer): _m0.Writer;
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse;
|
112
|
+
fromPartial(object: DeepPartial<MsgWithdrawDelegatorRewardResponse>): MsgWithdrawDelegatorRewardResponse;
|
113
|
+
};
|
114
|
+
export declare const MsgWithdrawValidatorCommission: {
|
115
|
+
encode(message: MsgWithdrawValidatorCommission, writer?: _m0.Writer): _m0.Writer;
|
116
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommission;
|
117
|
+
fromPartial(object: DeepPartial<MsgWithdrawValidatorCommission>): MsgWithdrawValidatorCommission;
|
118
|
+
};
|
119
|
+
export declare const MsgWithdrawValidatorCommissionResponse: {
|
120
|
+
encode(message: MsgWithdrawValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer;
|
121
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse;
|
122
|
+
fromPartial(object: DeepPartial<MsgWithdrawValidatorCommissionResponse>): MsgWithdrawValidatorCommissionResponse;
|
123
|
+
};
|
124
|
+
export declare const MsgFundCommunityPool: {
|
125
|
+
encode(message: MsgFundCommunityPool, writer?: _m0.Writer): _m0.Writer;
|
126
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPool;
|
127
|
+
fromPartial(object: DeepPartial<MsgFundCommunityPool>): MsgFundCommunityPool;
|
128
|
+
};
|
129
|
+
export declare const MsgFundCommunityPoolResponse: {
|
130
|
+
encode(_: MsgFundCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer;
|
131
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPoolResponse;
|
132
|
+
fromPartial(_: DeepPartial<MsgFundCommunityPoolResponse>): MsgFundCommunityPoolResponse;
|
133
|
+
};
|