@xpla/xpla-react 1.7.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +47 -0
- package/src/amino/amino.ts +1 -0
- package/src/binary.ts +534 -0
- package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
- package/src/cosmos/app/runtime/v2/module.ts +589 -0
- package/src/cosmos/app/v1alpha1/config.ts +422 -0
- package/src/cosmos/app/v1alpha1/module.ts +461 -0
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +14 -0
- package/src/cosmos/app/v1alpha1/query.ts +177 -0
- package/src/cosmos/auth/module/v1/module.ts +253 -0
- package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
- package/src/cosmos/auth/v1beta1/auth.ts +550 -0
- package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/auth/v1beta1/tx.ts +219 -0
- package/src/cosmos/authz/module/v1/module.ts +80 -0
- package/src/cosmos/authz/v1beta1/authz.ts +481 -0
- package/src/cosmos/authz/v1beta1/event.ts +259 -0
- package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/authz/v1beta1/query.ts +707 -0
- package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/authz/v1beta1/tx.ts +647 -0
- package/src/cosmos/autocli/v1/options.ts +1145 -0
- package/src/cosmos/autocli/v1/query.rpc.func.ts +14 -0
- package/src/cosmos/autocli/v1/query.ts +288 -0
- package/src/cosmos/bank/module/v1/module.ts +153 -0
- package/src/cosmos/bank/v1beta1/authz.ts +138 -0
- package/src/cosmos/bank/v1beta1/bank.ts +974 -0
- package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
- package/src/cosmos/base/grpc/v2/service.ts +473 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/base/node/v1beta1/query.ts +454 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -0
- package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
- package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
- package/src/cosmos/base/v1beta1/coin.ts +439 -0
- package/src/cosmos/circuit/module/v1/module.ts +99 -0
- package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
- package/src/cosmos/circuit/v1/query.ts +574 -0
- package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -0
- package/src/cosmos/circuit/v1/tx.ts +676 -0
- package/src/cosmos/circuit/v1/types.ts +413 -0
- package/src/cosmos/consensus/module/v1/module.ts +99 -0
- package/src/cosmos/consensus/v1/query.rpc.func.ts +14 -0
- package/src/cosmos/consensus/v1/query.ts +185 -0
- package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -0
- package/src/cosmos/consensus/v1/tx.ts +255 -0
- package/src/cosmos/crisis/module/v1/module.ts +115 -0
- package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
- package/src/cosmos/crisis/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
- package/src/cosmos/crypto/ed25519/keys.ts +209 -0
- package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
- package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
- package/src/cosmos/crypto/multisig/keys.ts +122 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
- package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
- package/src/cosmos/distribution/module/v1/module.ts +113 -0
- package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
- package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -0
- package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
- package/src/cosmos/evidence/module/v1/module.ts +80 -0
- package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
- package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/evidence/v1beta1/query.ts +451 -0
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
- package/src/cosmos/feegrant/module/v1/module.ts +80 -0
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
- package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
- package/src/cosmos/genutil/module/v1/module.ts +80 -0
- package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
- package/src/cosmos/gov/module/v1/module.ts +121 -0
- package/src/cosmos/gov/v1/genesis.ts +280 -0
- package/src/cosmos/gov/v1/gov.ts +1843 -0
- package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
- package/src/cosmos/gov/v1/query.ts +1970 -0
- package/src/cosmos/gov/v1/tx.registry.ts +137 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -0
- package/src/cosmos/gov/v1/tx.ts +1657 -0
- package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
- package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -0
- package/src/cosmos/gov/v1beta1/tx.ts +881 -0
- package/src/cosmos/group/module/v1/module.ts +128 -0
- package/src/cosmos/group/v1/events.ts +1044 -0
- package/src/cosmos/group/v1/genesis.ts +240 -0
- package/src/cosmos/group/v1/query.rpc.func.ts +157 -0
- package/src/cosmos/group/v1/query.ts +3015 -0
- package/src/cosmos/group/v1/tx.registry.ts +263 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.ts +2081 -0
- package/src/cosmos/ics23/v1/proofs.ts +2060 -0
- package/src/cosmos/mint/module/v1/module.ts +113 -0
- package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
- package/src/cosmos/mint/v1beta1/mint.ts +291 -0
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/mint/v1beta1/query.ts +541 -0
- package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/mint/v1beta1/tx.ts +219 -0
- package/src/cosmos/msg/textual/v1/textual.ts +1 -0
- package/src/cosmos/msg/v1/msg.ts +1 -0
- package/src/cosmos/nft/module/v1/module.ts +80 -0
- package/src/cosmos/nft/v1beta1/event.ts +403 -0
- package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
- package/src/cosmos/nft/v1beta1/nft.ts +356 -0
- package/src/cosmos/nft/v1beta1/query.rpc.func.ts +80 -0
- package/src/cosmos/nft/v1beta1/query.ts +1465 -0
- package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/nft/v1beta1/tx.ts +224 -0
- package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +25 -0
- package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
- package/src/cosmos/orm/v1/orm.ts +589 -0
- package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
- package/src/cosmos/params/module/v1/module.ts +80 -0
- package/src/cosmos/params/v1beta1/params.ts +255 -0
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/params/v1beta1/query.ts +525 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
- package/src/cosmos/reflection/v1/reflection.ts +179 -0
- package/src/cosmos/slashing/module/v1/module.ts +99 -0
- package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/slashing/v1beta1/query.ts +598 -0
- package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
- package/src/cosmos/staking/module/v1/module.ts +157 -0
- package/src/cosmos/staking/v1beta1/authz.ts +323 -0
- package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +157 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -0
- package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
- package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
- package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
- package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
- package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
- package/src/cosmos/store/v1beta1/listening.ts +286 -0
- package/src/cosmos/streaming/v1/grpc.ts +985 -0
- package/src/cosmos/tx/config/v1/config.ts +127 -0
- package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -0
- package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
- package/src/cosmos/upgrade/module/v1/module.ts +99 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +58 -0
- package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
- package/src/cosmos/validate/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
- package/src/cosmos_proto/cosmos.ts +341 -0
- package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
- package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
- package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +124 -0
- package/src/cosmwasm/wasm/v1/query.ts +2560 -0
- package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -0
- package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
- package/src/cosmwasm/wasm/v1/types.ts +1120 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
- package/src/ethermint/evm/v1/events.ts +485 -0
- package/src/ethermint/evm/v1/evm.ts +1590 -0
- package/src/ethermint/evm/v1/genesis.ts +240 -0
- package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
- package/src/ethermint/evm/v1/query.ts +2535 -0
- package/src/ethermint/evm/v1/tx.registry.ts +47 -0
- package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
- package/src/ethermint/evm/v1/tx.ts +1333 -0
- package/src/ethermint/feemarket/v1/events.ts +195 -0
- package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
- package/src/ethermint/feemarket/v1/genesis.ts +114 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
- package/src/ethermint/feemarket/v1/query.ts +487 -0
- package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
- package/src/ethermint/feemarket/v1/tx.ts +197 -0
- package/src/ethermint/types/v1/account.ts +114 -0
- package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
- package/src/ethermint/types/v1/indexer.ts +205 -0
- package/src/ethermint/types/v1/web3.ts +147 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.ts +191 -0
- package/src/helpers.ts +259 -0
- package/src/ibc/applications/fee/v1/ack.ts +131 -0
- package/src/ibc/applications/fee/v1/fee.ts +481 -0
- package/src/ibc/applications/fee/v1/genesis.ts +661 -0
- package/src/ibc/applications/fee/v1/metadata.ts +121 -0
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +113 -0
- package/src/ibc/applications/fee/v1/query.ts +2134 -0
- package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -0
- package/src/ibc/applications/fee/v1/tx.ts +889 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +25 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +14 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
- package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
- package/src/ibc/applications/transfer/v1/authz.ts +280 -0
- package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +69 -0
- package/src/ibc/applications/transfer/v1/query.ts +1205 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
- package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -0
- package/src/ibc/applications/transfer/v1/tx.ts +532 -0
- package/src/ibc/applications/transfer/v2/packet.ts +171 -0
- package/src/ibc/core/channel/v1/channel.ts +1510 -0
- package/src/ibc/core/channel/v1/genesis.ts +354 -0
- package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
- package/src/ibc/core/channel/v1/query.ts +4354 -0
- package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -0
- package/src/ibc/core/client/v1/client.ts +927 -0
- package/src/ibc/core/client/v1/genesis.ts +426 -0
- package/src/ibc/core/client/v1/query.rpc.func.ts +113 -0
- package/src/ibc/core/client/v1/query.ts +2280 -0
- package/src/ibc/core/client/v1/tx.registry.ts +137 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
- package/src/ibc/core/client/v1/tx.ts +1543 -0
- package/src/ibc/core/commitment/v1/commitment.ts +418 -0
- package/src/ibc/core/connection/v1/connection.ts +1010 -0
- package/src/ibc/core/connection/v1/genesis.ts +146 -0
- package/src/ibc/core/connection/v1/query.rpc.func.ts +69 -0
- package/src/ibc/core/connection/v1/query.ts +1408 -0
- package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -0
- package/src/ibc/core/connection/v1/tx.ts +1365 -0
- package/src/ibc/core/types/v1/genesis.ts +137 -0
- package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
- package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +25 -0
- package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
- package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
- package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
- package/src/react-query.ts +185 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/p2p/types.ts +507 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.ts +155 -0
- package/src/utf8.ts +148 -0
- package/src/varint.ts +488 -0
- package/src/xpla/reward/v1beta1/genesis.ts +92 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
- package/src/xpla/reward/v1beta1/query.ts +333 -0
- package/src/xpla/reward/v1beta1/reward.ts +153 -0
- package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/reward/v1beta1/tx.ts +391 -0
- package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
- package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
- package/src/xpla/volunteer/v1beta1/query.ts +160 -0
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
- package/tsconfig.esm.json +10 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,3073 @@
|
|
|
1
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../base/query/v1beta1/pagination";
|
|
2
|
+
import { Validator, ValidatorAmino, DelegationResponse, DelegationResponseAmino, UnbondingDelegation, UnbondingDelegationAmino, RedelegationResponse, RedelegationResponseAmino, HistoricalInfo, HistoricalInfoAmino, Pool, PoolAmino, Params, ParamsAmino } from "./staking";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/** QueryValidatorsRequest is request type for Query/Validators RPC method. */
|
|
7
|
+
export interface QueryValidatorsRequest {
|
|
8
|
+
/** status enables to query for validators matching a given status. */
|
|
9
|
+
status: string;
|
|
10
|
+
/** pagination defines an optional pagination for the request. */
|
|
11
|
+
pagination?: PageRequest;
|
|
12
|
+
}
|
|
13
|
+
export interface QueryValidatorsRequestProtoMsg {
|
|
14
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest";
|
|
15
|
+
value: Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
/** QueryValidatorsRequest is request type for Query/Validators RPC method. */
|
|
18
|
+
export interface QueryValidatorsRequestAmino {
|
|
19
|
+
/** status enables to query for validators matching a given status. */
|
|
20
|
+
status: string;
|
|
21
|
+
/** pagination defines an optional pagination for the request. */
|
|
22
|
+
pagination?: PageRequestAmino;
|
|
23
|
+
}
|
|
24
|
+
export interface QueryValidatorsRequestAminoMsg {
|
|
25
|
+
type: "cosmos-sdk/QueryValidatorsRequest";
|
|
26
|
+
value: QueryValidatorsRequestAmino;
|
|
27
|
+
}
|
|
28
|
+
/** QueryValidatorsResponse is response type for the Query/Validators RPC method */
|
|
29
|
+
export interface QueryValidatorsResponse {
|
|
30
|
+
/** validators contains all the queried validators. */
|
|
31
|
+
validators: Validator[];
|
|
32
|
+
/** pagination defines the pagination in the response. */
|
|
33
|
+
pagination?: PageResponse;
|
|
34
|
+
}
|
|
35
|
+
export interface QueryValidatorsResponseProtoMsg {
|
|
36
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse";
|
|
37
|
+
value: Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
/** QueryValidatorsResponse is response type for the Query/Validators RPC method */
|
|
40
|
+
export interface QueryValidatorsResponseAmino {
|
|
41
|
+
/** validators contains all the queried validators. */
|
|
42
|
+
validators: ValidatorAmino[];
|
|
43
|
+
/** pagination defines the pagination in the response. */
|
|
44
|
+
pagination?: PageResponseAmino;
|
|
45
|
+
}
|
|
46
|
+
export interface QueryValidatorsResponseAminoMsg {
|
|
47
|
+
type: "cosmos-sdk/QueryValidatorsResponse";
|
|
48
|
+
value: QueryValidatorsResponseAmino;
|
|
49
|
+
}
|
|
50
|
+
/** QueryValidatorRequest is response type for the Query/Validator RPC method */
|
|
51
|
+
export interface QueryValidatorRequest {
|
|
52
|
+
/** validator_addr defines the validator address to query for. */
|
|
53
|
+
validatorAddr: string;
|
|
54
|
+
}
|
|
55
|
+
export interface QueryValidatorRequestProtoMsg {
|
|
56
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest";
|
|
57
|
+
value: Uint8Array;
|
|
58
|
+
}
|
|
59
|
+
/** QueryValidatorRequest is response type for the Query/Validator RPC method */
|
|
60
|
+
export interface QueryValidatorRequestAmino {
|
|
61
|
+
/** validator_addr defines the validator address to query for. */
|
|
62
|
+
validator_addr: string;
|
|
63
|
+
}
|
|
64
|
+
export interface QueryValidatorRequestAminoMsg {
|
|
65
|
+
type: "cosmos-sdk/QueryValidatorRequest";
|
|
66
|
+
value: QueryValidatorRequestAmino;
|
|
67
|
+
}
|
|
68
|
+
/** QueryValidatorResponse is response type for the Query/Validator RPC method */
|
|
69
|
+
export interface QueryValidatorResponse {
|
|
70
|
+
/** validator defines the validator info. */
|
|
71
|
+
validator: Validator;
|
|
72
|
+
}
|
|
73
|
+
export interface QueryValidatorResponseProtoMsg {
|
|
74
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse";
|
|
75
|
+
value: Uint8Array;
|
|
76
|
+
}
|
|
77
|
+
/** QueryValidatorResponse is response type for the Query/Validator RPC method */
|
|
78
|
+
export interface QueryValidatorResponseAmino {
|
|
79
|
+
/** validator defines the validator info. */
|
|
80
|
+
validator: ValidatorAmino;
|
|
81
|
+
}
|
|
82
|
+
export interface QueryValidatorResponseAminoMsg {
|
|
83
|
+
type: "cosmos-sdk/QueryValidatorResponse";
|
|
84
|
+
value: QueryValidatorResponseAmino;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* QueryValidatorDelegationsRequest is request type for the
|
|
88
|
+
* Query/ValidatorDelegations RPC method
|
|
89
|
+
*/
|
|
90
|
+
export interface QueryValidatorDelegationsRequest {
|
|
91
|
+
/** validator_addr defines the validator address to query for. */
|
|
92
|
+
validatorAddr: string;
|
|
93
|
+
/** pagination defines an optional pagination for the request. */
|
|
94
|
+
pagination?: PageRequest;
|
|
95
|
+
}
|
|
96
|
+
export interface QueryValidatorDelegationsRequestProtoMsg {
|
|
97
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest";
|
|
98
|
+
value: Uint8Array;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* QueryValidatorDelegationsRequest is request type for the
|
|
102
|
+
* Query/ValidatorDelegations RPC method
|
|
103
|
+
*/
|
|
104
|
+
export interface QueryValidatorDelegationsRequestAmino {
|
|
105
|
+
/** validator_addr defines the validator address to query for. */
|
|
106
|
+
validator_addr: string;
|
|
107
|
+
/** pagination defines an optional pagination for the request. */
|
|
108
|
+
pagination?: PageRequestAmino;
|
|
109
|
+
}
|
|
110
|
+
export interface QueryValidatorDelegationsRequestAminoMsg {
|
|
111
|
+
type: "cosmos-sdk/QueryValidatorDelegationsRequest";
|
|
112
|
+
value: QueryValidatorDelegationsRequestAmino;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* QueryValidatorDelegationsResponse is response type for the
|
|
116
|
+
* Query/ValidatorDelegations RPC method
|
|
117
|
+
*/
|
|
118
|
+
export interface QueryValidatorDelegationsResponse {
|
|
119
|
+
delegationResponses: DelegationResponse[];
|
|
120
|
+
/** pagination defines the pagination in the response. */
|
|
121
|
+
pagination?: PageResponse;
|
|
122
|
+
}
|
|
123
|
+
export interface QueryValidatorDelegationsResponseProtoMsg {
|
|
124
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse";
|
|
125
|
+
value: Uint8Array;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* QueryValidatorDelegationsResponse is response type for the
|
|
129
|
+
* Query/ValidatorDelegations RPC method
|
|
130
|
+
*/
|
|
131
|
+
export interface QueryValidatorDelegationsResponseAmino {
|
|
132
|
+
delegation_responses: DelegationResponseAmino[];
|
|
133
|
+
/** pagination defines the pagination in the response. */
|
|
134
|
+
pagination?: PageResponseAmino;
|
|
135
|
+
}
|
|
136
|
+
export interface QueryValidatorDelegationsResponseAminoMsg {
|
|
137
|
+
type: "cosmos-sdk/QueryValidatorDelegationsResponse";
|
|
138
|
+
value: QueryValidatorDelegationsResponseAmino;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* QueryValidatorUnbondingDelegationsRequest is required type for the
|
|
142
|
+
* Query/ValidatorUnbondingDelegations RPC method
|
|
143
|
+
*/
|
|
144
|
+
export interface QueryValidatorUnbondingDelegationsRequest {
|
|
145
|
+
/** validator_addr defines the validator address to query for. */
|
|
146
|
+
validatorAddr: string;
|
|
147
|
+
/** pagination defines an optional pagination for the request. */
|
|
148
|
+
pagination?: PageRequest;
|
|
149
|
+
}
|
|
150
|
+
export interface QueryValidatorUnbondingDelegationsRequestProtoMsg {
|
|
151
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest";
|
|
152
|
+
value: Uint8Array;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* QueryValidatorUnbondingDelegationsRequest is required type for the
|
|
156
|
+
* Query/ValidatorUnbondingDelegations RPC method
|
|
157
|
+
*/
|
|
158
|
+
export interface QueryValidatorUnbondingDelegationsRequestAmino {
|
|
159
|
+
/** validator_addr defines the validator address to query for. */
|
|
160
|
+
validator_addr: string;
|
|
161
|
+
/** pagination defines an optional pagination for the request. */
|
|
162
|
+
pagination?: PageRequestAmino;
|
|
163
|
+
}
|
|
164
|
+
export interface QueryValidatorUnbondingDelegationsRequestAminoMsg {
|
|
165
|
+
type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest";
|
|
166
|
+
value: QueryValidatorUnbondingDelegationsRequestAmino;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* QueryValidatorUnbondingDelegationsResponse is response type for the
|
|
170
|
+
* Query/ValidatorUnbondingDelegations RPC method.
|
|
171
|
+
*/
|
|
172
|
+
export interface QueryValidatorUnbondingDelegationsResponse {
|
|
173
|
+
unbondingResponses: UnbondingDelegation[];
|
|
174
|
+
/** pagination defines the pagination in the response. */
|
|
175
|
+
pagination?: PageResponse;
|
|
176
|
+
}
|
|
177
|
+
export interface QueryValidatorUnbondingDelegationsResponseProtoMsg {
|
|
178
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse";
|
|
179
|
+
value: Uint8Array;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* QueryValidatorUnbondingDelegationsResponse is response type for the
|
|
183
|
+
* Query/ValidatorUnbondingDelegations RPC method.
|
|
184
|
+
*/
|
|
185
|
+
export interface QueryValidatorUnbondingDelegationsResponseAmino {
|
|
186
|
+
unbonding_responses: UnbondingDelegationAmino[];
|
|
187
|
+
/** pagination defines the pagination in the response. */
|
|
188
|
+
pagination?: PageResponseAmino;
|
|
189
|
+
}
|
|
190
|
+
export interface QueryValidatorUnbondingDelegationsResponseAminoMsg {
|
|
191
|
+
type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse";
|
|
192
|
+
value: QueryValidatorUnbondingDelegationsResponseAmino;
|
|
193
|
+
}
|
|
194
|
+
/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */
|
|
195
|
+
export interface QueryDelegationRequest {
|
|
196
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
197
|
+
delegatorAddr: string;
|
|
198
|
+
/** validator_addr defines the validator address to query for. */
|
|
199
|
+
validatorAddr: string;
|
|
200
|
+
}
|
|
201
|
+
export interface QueryDelegationRequestProtoMsg {
|
|
202
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest";
|
|
203
|
+
value: Uint8Array;
|
|
204
|
+
}
|
|
205
|
+
/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */
|
|
206
|
+
export interface QueryDelegationRequestAmino {
|
|
207
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
208
|
+
delegator_addr: string;
|
|
209
|
+
/** validator_addr defines the validator address to query for. */
|
|
210
|
+
validator_addr: string;
|
|
211
|
+
}
|
|
212
|
+
export interface QueryDelegationRequestAminoMsg {
|
|
213
|
+
type: "cosmos-sdk/QueryDelegationRequest";
|
|
214
|
+
value: QueryDelegationRequestAmino;
|
|
215
|
+
}
|
|
216
|
+
/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */
|
|
217
|
+
export interface QueryDelegationResponse {
|
|
218
|
+
/** delegation_responses defines the delegation info of a delegation. */
|
|
219
|
+
delegationResponse?: DelegationResponse;
|
|
220
|
+
}
|
|
221
|
+
export interface QueryDelegationResponseProtoMsg {
|
|
222
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse";
|
|
223
|
+
value: Uint8Array;
|
|
224
|
+
}
|
|
225
|
+
/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */
|
|
226
|
+
export interface QueryDelegationResponseAmino {
|
|
227
|
+
/** delegation_responses defines the delegation info of a delegation. */
|
|
228
|
+
delegation_response?: DelegationResponseAmino;
|
|
229
|
+
}
|
|
230
|
+
export interface QueryDelegationResponseAminoMsg {
|
|
231
|
+
type: "cosmos-sdk/QueryDelegationResponse";
|
|
232
|
+
value: QueryDelegationResponseAmino;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* QueryUnbondingDelegationRequest is request type for the
|
|
236
|
+
* Query/UnbondingDelegation RPC method.
|
|
237
|
+
*/
|
|
238
|
+
export interface QueryUnbondingDelegationRequest {
|
|
239
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
240
|
+
delegatorAddr: string;
|
|
241
|
+
/** validator_addr defines the validator address to query for. */
|
|
242
|
+
validatorAddr: string;
|
|
243
|
+
}
|
|
244
|
+
export interface QueryUnbondingDelegationRequestProtoMsg {
|
|
245
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest";
|
|
246
|
+
value: Uint8Array;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* QueryUnbondingDelegationRequest is request type for the
|
|
250
|
+
* Query/UnbondingDelegation RPC method.
|
|
251
|
+
*/
|
|
252
|
+
export interface QueryUnbondingDelegationRequestAmino {
|
|
253
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
254
|
+
delegator_addr: string;
|
|
255
|
+
/** validator_addr defines the validator address to query for. */
|
|
256
|
+
validator_addr: string;
|
|
257
|
+
}
|
|
258
|
+
export interface QueryUnbondingDelegationRequestAminoMsg {
|
|
259
|
+
type: "cosmos-sdk/QueryUnbondingDelegationRequest";
|
|
260
|
+
value: QueryUnbondingDelegationRequestAmino;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* QueryDelegationResponse is response type for the Query/UnbondingDelegation
|
|
264
|
+
* RPC method.
|
|
265
|
+
*/
|
|
266
|
+
export interface QueryUnbondingDelegationResponse {
|
|
267
|
+
/** unbond defines the unbonding information of a delegation. */
|
|
268
|
+
unbond: UnbondingDelegation;
|
|
269
|
+
}
|
|
270
|
+
export interface QueryUnbondingDelegationResponseProtoMsg {
|
|
271
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse";
|
|
272
|
+
value: Uint8Array;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* QueryDelegationResponse is response type for the Query/UnbondingDelegation
|
|
276
|
+
* RPC method.
|
|
277
|
+
*/
|
|
278
|
+
export interface QueryUnbondingDelegationResponseAmino {
|
|
279
|
+
/** unbond defines the unbonding information of a delegation. */
|
|
280
|
+
unbond: UnbondingDelegationAmino;
|
|
281
|
+
}
|
|
282
|
+
export interface QueryUnbondingDelegationResponseAminoMsg {
|
|
283
|
+
type: "cosmos-sdk/QueryUnbondingDelegationResponse";
|
|
284
|
+
value: QueryUnbondingDelegationResponseAmino;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* QueryDelegatorDelegationsRequest is request type for the
|
|
288
|
+
* Query/DelegatorDelegations RPC method.
|
|
289
|
+
*/
|
|
290
|
+
export interface QueryDelegatorDelegationsRequest {
|
|
291
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
292
|
+
delegatorAddr: string;
|
|
293
|
+
/** pagination defines an optional pagination for the request. */
|
|
294
|
+
pagination?: PageRequest;
|
|
295
|
+
}
|
|
296
|
+
export interface QueryDelegatorDelegationsRequestProtoMsg {
|
|
297
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest";
|
|
298
|
+
value: Uint8Array;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* QueryDelegatorDelegationsRequest is request type for the
|
|
302
|
+
* Query/DelegatorDelegations RPC method.
|
|
303
|
+
*/
|
|
304
|
+
export interface QueryDelegatorDelegationsRequestAmino {
|
|
305
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
306
|
+
delegator_addr: string;
|
|
307
|
+
/** pagination defines an optional pagination for the request. */
|
|
308
|
+
pagination?: PageRequestAmino;
|
|
309
|
+
}
|
|
310
|
+
export interface QueryDelegatorDelegationsRequestAminoMsg {
|
|
311
|
+
type: "cosmos-sdk/QueryDelegatorDelegationsRequest";
|
|
312
|
+
value: QueryDelegatorDelegationsRequestAmino;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* QueryDelegatorDelegationsResponse is response type for the
|
|
316
|
+
* Query/DelegatorDelegations RPC method.
|
|
317
|
+
*/
|
|
318
|
+
export interface QueryDelegatorDelegationsResponse {
|
|
319
|
+
/** delegation_responses defines all the delegations' info of a delegator. */
|
|
320
|
+
delegationResponses: DelegationResponse[];
|
|
321
|
+
/** pagination defines the pagination in the response. */
|
|
322
|
+
pagination?: PageResponse;
|
|
323
|
+
}
|
|
324
|
+
export interface QueryDelegatorDelegationsResponseProtoMsg {
|
|
325
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse";
|
|
326
|
+
value: Uint8Array;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* QueryDelegatorDelegationsResponse is response type for the
|
|
330
|
+
* Query/DelegatorDelegations RPC method.
|
|
331
|
+
*/
|
|
332
|
+
export interface QueryDelegatorDelegationsResponseAmino {
|
|
333
|
+
/** delegation_responses defines all the delegations' info of a delegator. */
|
|
334
|
+
delegation_responses: DelegationResponseAmino[];
|
|
335
|
+
/** pagination defines the pagination in the response. */
|
|
336
|
+
pagination?: PageResponseAmino;
|
|
337
|
+
}
|
|
338
|
+
export interface QueryDelegatorDelegationsResponseAminoMsg {
|
|
339
|
+
type: "cosmos-sdk/QueryDelegatorDelegationsResponse";
|
|
340
|
+
value: QueryDelegatorDelegationsResponseAmino;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* QueryDelegatorUnbondingDelegationsRequest is request type for the
|
|
344
|
+
* Query/DelegatorUnbondingDelegations RPC method.
|
|
345
|
+
*/
|
|
346
|
+
export interface QueryDelegatorUnbondingDelegationsRequest {
|
|
347
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
348
|
+
delegatorAddr: string;
|
|
349
|
+
/** pagination defines an optional pagination for the request. */
|
|
350
|
+
pagination?: PageRequest;
|
|
351
|
+
}
|
|
352
|
+
export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg {
|
|
353
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest";
|
|
354
|
+
value: Uint8Array;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* QueryDelegatorUnbondingDelegationsRequest is request type for the
|
|
358
|
+
* Query/DelegatorUnbondingDelegations RPC method.
|
|
359
|
+
*/
|
|
360
|
+
export interface QueryDelegatorUnbondingDelegationsRequestAmino {
|
|
361
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
362
|
+
delegator_addr: string;
|
|
363
|
+
/** pagination defines an optional pagination for the request. */
|
|
364
|
+
pagination?: PageRequestAmino;
|
|
365
|
+
}
|
|
366
|
+
export interface QueryDelegatorUnbondingDelegationsRequestAminoMsg {
|
|
367
|
+
type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest";
|
|
368
|
+
value: QueryDelegatorUnbondingDelegationsRequestAmino;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* QueryUnbondingDelegatorDelegationsResponse is response type for the
|
|
372
|
+
* Query/UnbondingDelegatorDelegations RPC method.
|
|
373
|
+
*/
|
|
374
|
+
export interface QueryDelegatorUnbondingDelegationsResponse {
|
|
375
|
+
unbondingResponses: UnbondingDelegation[];
|
|
376
|
+
/** pagination defines the pagination in the response. */
|
|
377
|
+
pagination?: PageResponse;
|
|
378
|
+
}
|
|
379
|
+
export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg {
|
|
380
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse";
|
|
381
|
+
value: Uint8Array;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* QueryUnbondingDelegatorDelegationsResponse is response type for the
|
|
385
|
+
* Query/UnbondingDelegatorDelegations RPC method.
|
|
386
|
+
*/
|
|
387
|
+
export interface QueryDelegatorUnbondingDelegationsResponseAmino {
|
|
388
|
+
unbonding_responses: UnbondingDelegationAmino[];
|
|
389
|
+
/** pagination defines the pagination in the response. */
|
|
390
|
+
pagination?: PageResponseAmino;
|
|
391
|
+
}
|
|
392
|
+
export interface QueryDelegatorUnbondingDelegationsResponseAminoMsg {
|
|
393
|
+
type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse";
|
|
394
|
+
value: QueryDelegatorUnbondingDelegationsResponseAmino;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* QueryRedelegationsRequest is request type for the Query/Redelegations RPC
|
|
398
|
+
* method.
|
|
399
|
+
*/
|
|
400
|
+
export interface QueryRedelegationsRequest {
|
|
401
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
402
|
+
delegatorAddr: string;
|
|
403
|
+
/** src_validator_addr defines the validator address to redelegate from. */
|
|
404
|
+
srcValidatorAddr: string;
|
|
405
|
+
/** dst_validator_addr defines the validator address to redelegate to. */
|
|
406
|
+
dstValidatorAddr: string;
|
|
407
|
+
/** pagination defines an optional pagination for the request. */
|
|
408
|
+
pagination?: PageRequest;
|
|
409
|
+
}
|
|
410
|
+
export interface QueryRedelegationsRequestProtoMsg {
|
|
411
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest";
|
|
412
|
+
value: Uint8Array;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* QueryRedelegationsRequest is request type for the Query/Redelegations RPC
|
|
416
|
+
* method.
|
|
417
|
+
*/
|
|
418
|
+
export interface QueryRedelegationsRequestAmino {
|
|
419
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
420
|
+
delegator_addr: string;
|
|
421
|
+
/** src_validator_addr defines the validator address to redelegate from. */
|
|
422
|
+
src_validator_addr: string;
|
|
423
|
+
/** dst_validator_addr defines the validator address to redelegate to. */
|
|
424
|
+
dst_validator_addr: string;
|
|
425
|
+
/** pagination defines an optional pagination for the request. */
|
|
426
|
+
pagination?: PageRequestAmino;
|
|
427
|
+
}
|
|
428
|
+
export interface QueryRedelegationsRequestAminoMsg {
|
|
429
|
+
type: "cosmos-sdk/QueryRedelegationsRequest";
|
|
430
|
+
value: QueryRedelegationsRequestAmino;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* QueryRedelegationsResponse is response type for the Query/Redelegations RPC
|
|
434
|
+
* method.
|
|
435
|
+
*/
|
|
436
|
+
export interface QueryRedelegationsResponse {
|
|
437
|
+
redelegationResponses: RedelegationResponse[];
|
|
438
|
+
/** pagination defines the pagination in the response. */
|
|
439
|
+
pagination?: PageResponse;
|
|
440
|
+
}
|
|
441
|
+
export interface QueryRedelegationsResponseProtoMsg {
|
|
442
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse";
|
|
443
|
+
value: Uint8Array;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* QueryRedelegationsResponse is response type for the Query/Redelegations RPC
|
|
447
|
+
* method.
|
|
448
|
+
*/
|
|
449
|
+
export interface QueryRedelegationsResponseAmino {
|
|
450
|
+
redelegation_responses: RedelegationResponseAmino[];
|
|
451
|
+
/** pagination defines the pagination in the response. */
|
|
452
|
+
pagination?: PageResponseAmino;
|
|
453
|
+
}
|
|
454
|
+
export interface QueryRedelegationsResponseAminoMsg {
|
|
455
|
+
type: "cosmos-sdk/QueryRedelegationsResponse";
|
|
456
|
+
value: QueryRedelegationsResponseAmino;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* QueryDelegatorValidatorsRequest is request type for the
|
|
460
|
+
* Query/DelegatorValidators RPC method.
|
|
461
|
+
*/
|
|
462
|
+
export interface QueryDelegatorValidatorsRequest {
|
|
463
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
464
|
+
delegatorAddr: string;
|
|
465
|
+
/** pagination defines an optional pagination for the request. */
|
|
466
|
+
pagination?: PageRequest;
|
|
467
|
+
}
|
|
468
|
+
export interface QueryDelegatorValidatorsRequestProtoMsg {
|
|
469
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest";
|
|
470
|
+
value: Uint8Array;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* QueryDelegatorValidatorsRequest is request type for the
|
|
474
|
+
* Query/DelegatorValidators RPC method.
|
|
475
|
+
*/
|
|
476
|
+
export interface QueryDelegatorValidatorsRequestAmino {
|
|
477
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
478
|
+
delegator_addr: string;
|
|
479
|
+
/** pagination defines an optional pagination for the request. */
|
|
480
|
+
pagination?: PageRequestAmino;
|
|
481
|
+
}
|
|
482
|
+
export interface QueryDelegatorValidatorsRequestAminoMsg {
|
|
483
|
+
type: "cosmos-sdk/QueryDelegatorValidatorsRequest";
|
|
484
|
+
value: QueryDelegatorValidatorsRequestAmino;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* QueryDelegatorValidatorsResponse is response type for the
|
|
488
|
+
* Query/DelegatorValidators RPC method.
|
|
489
|
+
*/
|
|
490
|
+
export interface QueryDelegatorValidatorsResponse {
|
|
491
|
+
/** validators defines the validators' info of a delegator. */
|
|
492
|
+
validators: Validator[];
|
|
493
|
+
/** pagination defines the pagination in the response. */
|
|
494
|
+
pagination?: PageResponse;
|
|
495
|
+
}
|
|
496
|
+
export interface QueryDelegatorValidatorsResponseProtoMsg {
|
|
497
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse";
|
|
498
|
+
value: Uint8Array;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* QueryDelegatorValidatorsResponse is response type for the
|
|
502
|
+
* Query/DelegatorValidators RPC method.
|
|
503
|
+
*/
|
|
504
|
+
export interface QueryDelegatorValidatorsResponseAmino {
|
|
505
|
+
/** validators defines the validators' info of a delegator. */
|
|
506
|
+
validators: ValidatorAmino[];
|
|
507
|
+
/** pagination defines the pagination in the response. */
|
|
508
|
+
pagination?: PageResponseAmino;
|
|
509
|
+
}
|
|
510
|
+
export interface QueryDelegatorValidatorsResponseAminoMsg {
|
|
511
|
+
type: "cosmos-sdk/QueryDelegatorValidatorsResponse";
|
|
512
|
+
value: QueryDelegatorValidatorsResponseAmino;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* QueryDelegatorValidatorRequest is request type for the
|
|
516
|
+
* Query/DelegatorValidator RPC method.
|
|
517
|
+
*/
|
|
518
|
+
export interface QueryDelegatorValidatorRequest {
|
|
519
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
520
|
+
delegatorAddr: string;
|
|
521
|
+
/** validator_addr defines the validator address to query for. */
|
|
522
|
+
validatorAddr: string;
|
|
523
|
+
}
|
|
524
|
+
export interface QueryDelegatorValidatorRequestProtoMsg {
|
|
525
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest";
|
|
526
|
+
value: Uint8Array;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* QueryDelegatorValidatorRequest is request type for the
|
|
530
|
+
* Query/DelegatorValidator RPC method.
|
|
531
|
+
*/
|
|
532
|
+
export interface QueryDelegatorValidatorRequestAmino {
|
|
533
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
534
|
+
delegator_addr: string;
|
|
535
|
+
/** validator_addr defines the validator address to query for. */
|
|
536
|
+
validator_addr: string;
|
|
537
|
+
}
|
|
538
|
+
export interface QueryDelegatorValidatorRequestAminoMsg {
|
|
539
|
+
type: "cosmos-sdk/QueryDelegatorValidatorRequest";
|
|
540
|
+
value: QueryDelegatorValidatorRequestAmino;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* QueryDelegatorValidatorResponse response type for the
|
|
544
|
+
* Query/DelegatorValidator RPC method.
|
|
545
|
+
*/
|
|
546
|
+
export interface QueryDelegatorValidatorResponse {
|
|
547
|
+
/** validator defines the validator info. */
|
|
548
|
+
validator: Validator;
|
|
549
|
+
}
|
|
550
|
+
export interface QueryDelegatorValidatorResponseProtoMsg {
|
|
551
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse";
|
|
552
|
+
value: Uint8Array;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* QueryDelegatorValidatorResponse response type for the
|
|
556
|
+
* Query/DelegatorValidator RPC method.
|
|
557
|
+
*/
|
|
558
|
+
export interface QueryDelegatorValidatorResponseAmino {
|
|
559
|
+
/** validator defines the validator info. */
|
|
560
|
+
validator: ValidatorAmino;
|
|
561
|
+
}
|
|
562
|
+
export interface QueryDelegatorValidatorResponseAminoMsg {
|
|
563
|
+
type: "cosmos-sdk/QueryDelegatorValidatorResponse";
|
|
564
|
+
value: QueryDelegatorValidatorResponseAmino;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
|
|
568
|
+
* method.
|
|
569
|
+
*/
|
|
570
|
+
export interface QueryHistoricalInfoRequest {
|
|
571
|
+
/** height defines at which height to query the historical info. */
|
|
572
|
+
height: bigint;
|
|
573
|
+
}
|
|
574
|
+
export interface QueryHistoricalInfoRequestProtoMsg {
|
|
575
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest";
|
|
576
|
+
value: Uint8Array;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
|
|
580
|
+
* method.
|
|
581
|
+
*/
|
|
582
|
+
export interface QueryHistoricalInfoRequestAmino {
|
|
583
|
+
/** height defines at which height to query the historical info. */
|
|
584
|
+
height: string;
|
|
585
|
+
}
|
|
586
|
+
export interface QueryHistoricalInfoRequestAminoMsg {
|
|
587
|
+
type: "cosmos-sdk/QueryHistoricalInfoRequest";
|
|
588
|
+
value: QueryHistoricalInfoRequestAmino;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
|
|
592
|
+
* method.
|
|
593
|
+
*/
|
|
594
|
+
export interface QueryHistoricalInfoResponse {
|
|
595
|
+
/** hist defines the historical info at the given height. */
|
|
596
|
+
hist?: HistoricalInfo;
|
|
597
|
+
}
|
|
598
|
+
export interface QueryHistoricalInfoResponseProtoMsg {
|
|
599
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse";
|
|
600
|
+
value: Uint8Array;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
|
|
604
|
+
* method.
|
|
605
|
+
*/
|
|
606
|
+
export interface QueryHistoricalInfoResponseAmino {
|
|
607
|
+
/** hist defines the historical info at the given height. */
|
|
608
|
+
hist?: HistoricalInfoAmino;
|
|
609
|
+
}
|
|
610
|
+
export interface QueryHistoricalInfoResponseAminoMsg {
|
|
611
|
+
type: "cosmos-sdk/QueryHistoricalInfoResponse";
|
|
612
|
+
value: QueryHistoricalInfoResponseAmino;
|
|
613
|
+
}
|
|
614
|
+
/** QueryPoolRequest is request type for the Query/Pool RPC method. */
|
|
615
|
+
export interface QueryPoolRequest {}
|
|
616
|
+
export interface QueryPoolRequestProtoMsg {
|
|
617
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest";
|
|
618
|
+
value: Uint8Array;
|
|
619
|
+
}
|
|
620
|
+
/** QueryPoolRequest is request type for the Query/Pool RPC method. */
|
|
621
|
+
export interface QueryPoolRequestAmino {}
|
|
622
|
+
export interface QueryPoolRequestAminoMsg {
|
|
623
|
+
type: "cosmos-sdk/QueryPoolRequest";
|
|
624
|
+
value: QueryPoolRequestAmino;
|
|
625
|
+
}
|
|
626
|
+
/** QueryPoolResponse is response type for the Query/Pool RPC method. */
|
|
627
|
+
export interface QueryPoolResponse {
|
|
628
|
+
/** pool defines the pool info. */
|
|
629
|
+
pool: Pool;
|
|
630
|
+
}
|
|
631
|
+
export interface QueryPoolResponseProtoMsg {
|
|
632
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse";
|
|
633
|
+
value: Uint8Array;
|
|
634
|
+
}
|
|
635
|
+
/** QueryPoolResponse is response type for the Query/Pool RPC method. */
|
|
636
|
+
export interface QueryPoolResponseAmino {
|
|
637
|
+
/** pool defines the pool info. */
|
|
638
|
+
pool: PoolAmino;
|
|
639
|
+
}
|
|
640
|
+
export interface QueryPoolResponseAminoMsg {
|
|
641
|
+
type: "cosmos-sdk/QueryPoolResponse";
|
|
642
|
+
value: QueryPoolResponseAmino;
|
|
643
|
+
}
|
|
644
|
+
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
645
|
+
export interface QueryParamsRequest {}
|
|
646
|
+
export interface QueryParamsRequestProtoMsg {
|
|
647
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest";
|
|
648
|
+
value: Uint8Array;
|
|
649
|
+
}
|
|
650
|
+
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
651
|
+
export interface QueryParamsRequestAmino {}
|
|
652
|
+
export interface QueryParamsRequestAminoMsg {
|
|
653
|
+
type: "cosmos-sdk/QueryParamsRequest";
|
|
654
|
+
value: QueryParamsRequestAmino;
|
|
655
|
+
}
|
|
656
|
+
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
657
|
+
export interface QueryParamsResponse {
|
|
658
|
+
/** params holds all the parameters of this module. */
|
|
659
|
+
params: Params;
|
|
660
|
+
}
|
|
661
|
+
export interface QueryParamsResponseProtoMsg {
|
|
662
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse";
|
|
663
|
+
value: Uint8Array;
|
|
664
|
+
}
|
|
665
|
+
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
666
|
+
export interface QueryParamsResponseAmino {
|
|
667
|
+
/** params holds all the parameters of this module. */
|
|
668
|
+
params: ParamsAmino;
|
|
669
|
+
}
|
|
670
|
+
export interface QueryParamsResponseAminoMsg {
|
|
671
|
+
type: "cosmos-sdk/QueryParamsResponse";
|
|
672
|
+
value: QueryParamsResponseAmino;
|
|
673
|
+
}
|
|
674
|
+
function createBaseQueryValidatorsRequest(): QueryValidatorsRequest {
|
|
675
|
+
return {
|
|
676
|
+
status: "",
|
|
677
|
+
pagination: undefined
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
export const QueryValidatorsRequest = {
|
|
681
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest",
|
|
682
|
+
aminoType: "cosmos-sdk/QueryValidatorsRequest",
|
|
683
|
+
is(o: any): o is QueryValidatorsRequest {
|
|
684
|
+
return o && (o.$typeUrl === QueryValidatorsRequest.typeUrl || typeof o.status === "string");
|
|
685
|
+
},
|
|
686
|
+
isAmino(o: any): o is QueryValidatorsRequestAmino {
|
|
687
|
+
return o && (o.$typeUrl === QueryValidatorsRequest.typeUrl || typeof o.status === "string");
|
|
688
|
+
},
|
|
689
|
+
encode(message: QueryValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
690
|
+
if (message.status !== "") {
|
|
691
|
+
writer.uint32(10).string(message.status);
|
|
692
|
+
}
|
|
693
|
+
if (message.pagination !== undefined) {
|
|
694
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
695
|
+
}
|
|
696
|
+
return writer;
|
|
697
|
+
},
|
|
698
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsRequest {
|
|
699
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
700
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
701
|
+
const message = createBaseQueryValidatorsRequest();
|
|
702
|
+
while (reader.pos < end) {
|
|
703
|
+
const tag = reader.uint32();
|
|
704
|
+
switch (tag >>> 3) {
|
|
705
|
+
case 1:
|
|
706
|
+
message.status = reader.string();
|
|
707
|
+
break;
|
|
708
|
+
case 2:
|
|
709
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
710
|
+
break;
|
|
711
|
+
default:
|
|
712
|
+
reader.skipType(tag & 7);
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return message;
|
|
717
|
+
},
|
|
718
|
+
fromPartial(object: DeepPartial<QueryValidatorsRequest>): QueryValidatorsRequest {
|
|
719
|
+
const message = createBaseQueryValidatorsRequest();
|
|
720
|
+
message.status = object.status ?? "";
|
|
721
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
722
|
+
return message;
|
|
723
|
+
},
|
|
724
|
+
fromAmino(object: QueryValidatorsRequestAmino): QueryValidatorsRequest {
|
|
725
|
+
const message = createBaseQueryValidatorsRequest();
|
|
726
|
+
if (object.status !== undefined && object.status !== null) {
|
|
727
|
+
message.status = object.status;
|
|
728
|
+
}
|
|
729
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
730
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
731
|
+
}
|
|
732
|
+
return message;
|
|
733
|
+
},
|
|
734
|
+
toAmino(message: QueryValidatorsRequest): QueryValidatorsRequestAmino {
|
|
735
|
+
const obj: any = {};
|
|
736
|
+
obj.status = message.status === "" ? undefined : message.status;
|
|
737
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
738
|
+
return obj;
|
|
739
|
+
},
|
|
740
|
+
fromAminoMsg(object: QueryValidatorsRequestAminoMsg): QueryValidatorsRequest {
|
|
741
|
+
return QueryValidatorsRequest.fromAmino(object.value);
|
|
742
|
+
},
|
|
743
|
+
toAminoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestAminoMsg {
|
|
744
|
+
return {
|
|
745
|
+
type: "cosmos-sdk/QueryValidatorsRequest",
|
|
746
|
+
value: QueryValidatorsRequest.toAmino(message)
|
|
747
|
+
};
|
|
748
|
+
},
|
|
749
|
+
fromProtoMsg(message: QueryValidatorsRequestProtoMsg): QueryValidatorsRequest {
|
|
750
|
+
return QueryValidatorsRequest.decode(message.value);
|
|
751
|
+
},
|
|
752
|
+
toProto(message: QueryValidatorsRequest): Uint8Array {
|
|
753
|
+
return QueryValidatorsRequest.encode(message).finish();
|
|
754
|
+
},
|
|
755
|
+
toProtoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestProtoMsg {
|
|
756
|
+
return {
|
|
757
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest",
|
|
758
|
+
value: QueryValidatorsRequest.encode(message).finish()
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
GlobalDecoderRegistry.register(QueryValidatorsRequest.typeUrl, QueryValidatorsRequest);
|
|
763
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorsRequest.aminoType, QueryValidatorsRequest.typeUrl);
|
|
764
|
+
function createBaseQueryValidatorsResponse(): QueryValidatorsResponse {
|
|
765
|
+
return {
|
|
766
|
+
validators: [],
|
|
767
|
+
pagination: undefined
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
export const QueryValidatorsResponse = {
|
|
771
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse",
|
|
772
|
+
aminoType: "cosmos-sdk/QueryValidatorsResponse",
|
|
773
|
+
is(o: any): o is QueryValidatorsResponse {
|
|
774
|
+
return o && (o.$typeUrl === QueryValidatorsResponse.typeUrl || Array.isArray(o.validators) && (!o.validators.length || Validator.is(o.validators[0])));
|
|
775
|
+
},
|
|
776
|
+
isAmino(o: any): o is QueryValidatorsResponseAmino {
|
|
777
|
+
return o && (o.$typeUrl === QueryValidatorsResponse.typeUrl || Array.isArray(o.validators) && (!o.validators.length || Validator.isAmino(o.validators[0])));
|
|
778
|
+
},
|
|
779
|
+
encode(message: QueryValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
780
|
+
for (const v of message.validators) {
|
|
781
|
+
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
782
|
+
}
|
|
783
|
+
if (message.pagination !== undefined) {
|
|
784
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
785
|
+
}
|
|
786
|
+
return writer;
|
|
787
|
+
},
|
|
788
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsResponse {
|
|
789
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
790
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
791
|
+
const message = createBaseQueryValidatorsResponse();
|
|
792
|
+
while (reader.pos < end) {
|
|
793
|
+
const tag = reader.uint32();
|
|
794
|
+
switch (tag >>> 3) {
|
|
795
|
+
case 1:
|
|
796
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
797
|
+
break;
|
|
798
|
+
case 2:
|
|
799
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
800
|
+
break;
|
|
801
|
+
default:
|
|
802
|
+
reader.skipType(tag & 7);
|
|
803
|
+
break;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
return message;
|
|
807
|
+
},
|
|
808
|
+
fromPartial(object: DeepPartial<QueryValidatorsResponse>): QueryValidatorsResponse {
|
|
809
|
+
const message = createBaseQueryValidatorsResponse();
|
|
810
|
+
message.validators = object.validators?.map(e => Validator.fromPartial(e)) || [];
|
|
811
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
812
|
+
return message;
|
|
813
|
+
},
|
|
814
|
+
fromAmino(object: QueryValidatorsResponseAmino): QueryValidatorsResponse {
|
|
815
|
+
const message = createBaseQueryValidatorsResponse();
|
|
816
|
+
message.validators = object.validators?.map(e => Validator.fromAmino(e)) || [];
|
|
817
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
818
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
819
|
+
}
|
|
820
|
+
return message;
|
|
821
|
+
},
|
|
822
|
+
toAmino(message: QueryValidatorsResponse): QueryValidatorsResponseAmino {
|
|
823
|
+
const obj: any = {};
|
|
824
|
+
if (message.validators) {
|
|
825
|
+
obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined);
|
|
826
|
+
} else {
|
|
827
|
+
obj.validators = message.validators;
|
|
828
|
+
}
|
|
829
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
830
|
+
return obj;
|
|
831
|
+
},
|
|
832
|
+
fromAminoMsg(object: QueryValidatorsResponseAminoMsg): QueryValidatorsResponse {
|
|
833
|
+
return QueryValidatorsResponse.fromAmino(object.value);
|
|
834
|
+
},
|
|
835
|
+
toAminoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseAminoMsg {
|
|
836
|
+
return {
|
|
837
|
+
type: "cosmos-sdk/QueryValidatorsResponse",
|
|
838
|
+
value: QueryValidatorsResponse.toAmino(message)
|
|
839
|
+
};
|
|
840
|
+
},
|
|
841
|
+
fromProtoMsg(message: QueryValidatorsResponseProtoMsg): QueryValidatorsResponse {
|
|
842
|
+
return QueryValidatorsResponse.decode(message.value);
|
|
843
|
+
},
|
|
844
|
+
toProto(message: QueryValidatorsResponse): Uint8Array {
|
|
845
|
+
return QueryValidatorsResponse.encode(message).finish();
|
|
846
|
+
},
|
|
847
|
+
toProtoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseProtoMsg {
|
|
848
|
+
return {
|
|
849
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse",
|
|
850
|
+
value: QueryValidatorsResponse.encode(message).finish()
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
GlobalDecoderRegistry.register(QueryValidatorsResponse.typeUrl, QueryValidatorsResponse);
|
|
855
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorsResponse.aminoType, QueryValidatorsResponse.typeUrl);
|
|
856
|
+
function createBaseQueryValidatorRequest(): QueryValidatorRequest {
|
|
857
|
+
return {
|
|
858
|
+
validatorAddr: ""
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
export const QueryValidatorRequest = {
|
|
862
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest",
|
|
863
|
+
aminoType: "cosmos-sdk/QueryValidatorRequest",
|
|
864
|
+
is(o: any): o is QueryValidatorRequest {
|
|
865
|
+
return o && (o.$typeUrl === QueryValidatorRequest.typeUrl || typeof o.validatorAddr === "string");
|
|
866
|
+
},
|
|
867
|
+
isAmino(o: any): o is QueryValidatorRequestAmino {
|
|
868
|
+
return o && (o.$typeUrl === QueryValidatorRequest.typeUrl || typeof o.validator_addr === "string");
|
|
869
|
+
},
|
|
870
|
+
encode(message: QueryValidatorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
871
|
+
if (message.validatorAddr !== "") {
|
|
872
|
+
writer.uint32(10).string(message.validatorAddr);
|
|
873
|
+
}
|
|
874
|
+
return writer;
|
|
875
|
+
},
|
|
876
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorRequest {
|
|
877
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
878
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
879
|
+
const message = createBaseQueryValidatorRequest();
|
|
880
|
+
while (reader.pos < end) {
|
|
881
|
+
const tag = reader.uint32();
|
|
882
|
+
switch (tag >>> 3) {
|
|
883
|
+
case 1:
|
|
884
|
+
message.validatorAddr = reader.string();
|
|
885
|
+
break;
|
|
886
|
+
default:
|
|
887
|
+
reader.skipType(tag & 7);
|
|
888
|
+
break;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
return message;
|
|
892
|
+
},
|
|
893
|
+
fromPartial(object: DeepPartial<QueryValidatorRequest>): QueryValidatorRequest {
|
|
894
|
+
const message = createBaseQueryValidatorRequest();
|
|
895
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
896
|
+
return message;
|
|
897
|
+
},
|
|
898
|
+
fromAmino(object: QueryValidatorRequestAmino): QueryValidatorRequest {
|
|
899
|
+
const message = createBaseQueryValidatorRequest();
|
|
900
|
+
if (object.validator_addr !== undefined && object.validator_addr !== null) {
|
|
901
|
+
message.validatorAddr = object.validator_addr;
|
|
902
|
+
}
|
|
903
|
+
return message;
|
|
904
|
+
},
|
|
905
|
+
toAmino(message: QueryValidatorRequest): QueryValidatorRequestAmino {
|
|
906
|
+
const obj: any = {};
|
|
907
|
+
obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr;
|
|
908
|
+
return obj;
|
|
909
|
+
},
|
|
910
|
+
fromAminoMsg(object: QueryValidatorRequestAminoMsg): QueryValidatorRequest {
|
|
911
|
+
return QueryValidatorRequest.fromAmino(object.value);
|
|
912
|
+
},
|
|
913
|
+
toAminoMsg(message: QueryValidatorRequest): QueryValidatorRequestAminoMsg {
|
|
914
|
+
return {
|
|
915
|
+
type: "cosmos-sdk/QueryValidatorRequest",
|
|
916
|
+
value: QueryValidatorRequest.toAmino(message)
|
|
917
|
+
};
|
|
918
|
+
},
|
|
919
|
+
fromProtoMsg(message: QueryValidatorRequestProtoMsg): QueryValidatorRequest {
|
|
920
|
+
return QueryValidatorRequest.decode(message.value);
|
|
921
|
+
},
|
|
922
|
+
toProto(message: QueryValidatorRequest): Uint8Array {
|
|
923
|
+
return QueryValidatorRequest.encode(message).finish();
|
|
924
|
+
},
|
|
925
|
+
toProtoMsg(message: QueryValidatorRequest): QueryValidatorRequestProtoMsg {
|
|
926
|
+
return {
|
|
927
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest",
|
|
928
|
+
value: QueryValidatorRequest.encode(message).finish()
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
GlobalDecoderRegistry.register(QueryValidatorRequest.typeUrl, QueryValidatorRequest);
|
|
933
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorRequest.aminoType, QueryValidatorRequest.typeUrl);
|
|
934
|
+
function createBaseQueryValidatorResponse(): QueryValidatorResponse {
|
|
935
|
+
return {
|
|
936
|
+
validator: Validator.fromPartial({})
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
export const QueryValidatorResponse = {
|
|
940
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse",
|
|
941
|
+
aminoType: "cosmos-sdk/QueryValidatorResponse",
|
|
942
|
+
is(o: any): o is QueryValidatorResponse {
|
|
943
|
+
return o && (o.$typeUrl === QueryValidatorResponse.typeUrl || Validator.is(o.validator));
|
|
944
|
+
},
|
|
945
|
+
isAmino(o: any): o is QueryValidatorResponseAmino {
|
|
946
|
+
return o && (o.$typeUrl === QueryValidatorResponse.typeUrl || Validator.isAmino(o.validator));
|
|
947
|
+
},
|
|
948
|
+
encode(message: QueryValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
949
|
+
if (message.validator !== undefined) {
|
|
950
|
+
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
|
951
|
+
}
|
|
952
|
+
return writer;
|
|
953
|
+
},
|
|
954
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorResponse {
|
|
955
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
956
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
957
|
+
const message = createBaseQueryValidatorResponse();
|
|
958
|
+
while (reader.pos < end) {
|
|
959
|
+
const tag = reader.uint32();
|
|
960
|
+
switch (tag >>> 3) {
|
|
961
|
+
case 1:
|
|
962
|
+
message.validator = Validator.decode(reader, reader.uint32());
|
|
963
|
+
break;
|
|
964
|
+
default:
|
|
965
|
+
reader.skipType(tag & 7);
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
return message;
|
|
970
|
+
},
|
|
971
|
+
fromPartial(object: DeepPartial<QueryValidatorResponse>): QueryValidatorResponse {
|
|
972
|
+
const message = createBaseQueryValidatorResponse();
|
|
973
|
+
message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined;
|
|
974
|
+
return message;
|
|
975
|
+
},
|
|
976
|
+
fromAmino(object: QueryValidatorResponseAmino): QueryValidatorResponse {
|
|
977
|
+
const message = createBaseQueryValidatorResponse();
|
|
978
|
+
if (object.validator !== undefined && object.validator !== null) {
|
|
979
|
+
message.validator = Validator.fromAmino(object.validator);
|
|
980
|
+
}
|
|
981
|
+
return message;
|
|
982
|
+
},
|
|
983
|
+
toAmino(message: QueryValidatorResponse): QueryValidatorResponseAmino {
|
|
984
|
+
const obj: any = {};
|
|
985
|
+
obj.validator = message.validator ? Validator.toAmino(message.validator) : Validator.toAmino(Validator.fromPartial({}));
|
|
986
|
+
return obj;
|
|
987
|
+
},
|
|
988
|
+
fromAminoMsg(object: QueryValidatorResponseAminoMsg): QueryValidatorResponse {
|
|
989
|
+
return QueryValidatorResponse.fromAmino(object.value);
|
|
990
|
+
},
|
|
991
|
+
toAminoMsg(message: QueryValidatorResponse): QueryValidatorResponseAminoMsg {
|
|
992
|
+
return {
|
|
993
|
+
type: "cosmos-sdk/QueryValidatorResponse",
|
|
994
|
+
value: QueryValidatorResponse.toAmino(message)
|
|
995
|
+
};
|
|
996
|
+
},
|
|
997
|
+
fromProtoMsg(message: QueryValidatorResponseProtoMsg): QueryValidatorResponse {
|
|
998
|
+
return QueryValidatorResponse.decode(message.value);
|
|
999
|
+
},
|
|
1000
|
+
toProto(message: QueryValidatorResponse): Uint8Array {
|
|
1001
|
+
return QueryValidatorResponse.encode(message).finish();
|
|
1002
|
+
},
|
|
1003
|
+
toProtoMsg(message: QueryValidatorResponse): QueryValidatorResponseProtoMsg {
|
|
1004
|
+
return {
|
|
1005
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse",
|
|
1006
|
+
value: QueryValidatorResponse.encode(message).finish()
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
GlobalDecoderRegistry.register(QueryValidatorResponse.typeUrl, QueryValidatorResponse);
|
|
1011
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorResponse.aminoType, QueryValidatorResponse.typeUrl);
|
|
1012
|
+
function createBaseQueryValidatorDelegationsRequest(): QueryValidatorDelegationsRequest {
|
|
1013
|
+
return {
|
|
1014
|
+
validatorAddr: "",
|
|
1015
|
+
pagination: undefined
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
export const QueryValidatorDelegationsRequest = {
|
|
1019
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest",
|
|
1020
|
+
aminoType: "cosmos-sdk/QueryValidatorDelegationsRequest",
|
|
1021
|
+
is(o: any): o is QueryValidatorDelegationsRequest {
|
|
1022
|
+
return o && (o.$typeUrl === QueryValidatorDelegationsRequest.typeUrl || typeof o.validatorAddr === "string");
|
|
1023
|
+
},
|
|
1024
|
+
isAmino(o: any): o is QueryValidatorDelegationsRequestAmino {
|
|
1025
|
+
return o && (o.$typeUrl === QueryValidatorDelegationsRequest.typeUrl || typeof o.validator_addr === "string");
|
|
1026
|
+
},
|
|
1027
|
+
encode(message: QueryValidatorDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1028
|
+
if (message.validatorAddr !== "") {
|
|
1029
|
+
writer.uint32(10).string(message.validatorAddr);
|
|
1030
|
+
}
|
|
1031
|
+
if (message.pagination !== undefined) {
|
|
1032
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1033
|
+
}
|
|
1034
|
+
return writer;
|
|
1035
|
+
},
|
|
1036
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsRequest {
|
|
1037
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1038
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1039
|
+
const message = createBaseQueryValidatorDelegationsRequest();
|
|
1040
|
+
while (reader.pos < end) {
|
|
1041
|
+
const tag = reader.uint32();
|
|
1042
|
+
switch (tag >>> 3) {
|
|
1043
|
+
case 1:
|
|
1044
|
+
message.validatorAddr = reader.string();
|
|
1045
|
+
break;
|
|
1046
|
+
case 2:
|
|
1047
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1048
|
+
break;
|
|
1049
|
+
default:
|
|
1050
|
+
reader.skipType(tag & 7);
|
|
1051
|
+
break;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
return message;
|
|
1055
|
+
},
|
|
1056
|
+
fromPartial(object: DeepPartial<QueryValidatorDelegationsRequest>): QueryValidatorDelegationsRequest {
|
|
1057
|
+
const message = createBaseQueryValidatorDelegationsRequest();
|
|
1058
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
1059
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1060
|
+
return message;
|
|
1061
|
+
},
|
|
1062
|
+
fromAmino(object: QueryValidatorDelegationsRequestAmino): QueryValidatorDelegationsRequest {
|
|
1063
|
+
const message = createBaseQueryValidatorDelegationsRequest();
|
|
1064
|
+
if (object.validator_addr !== undefined && object.validator_addr !== null) {
|
|
1065
|
+
message.validatorAddr = object.validator_addr;
|
|
1066
|
+
}
|
|
1067
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1068
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1069
|
+
}
|
|
1070
|
+
return message;
|
|
1071
|
+
},
|
|
1072
|
+
toAmino(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAmino {
|
|
1073
|
+
const obj: any = {};
|
|
1074
|
+
obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr;
|
|
1075
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1076
|
+
return obj;
|
|
1077
|
+
},
|
|
1078
|
+
fromAminoMsg(object: QueryValidatorDelegationsRequestAminoMsg): QueryValidatorDelegationsRequest {
|
|
1079
|
+
return QueryValidatorDelegationsRequest.fromAmino(object.value);
|
|
1080
|
+
},
|
|
1081
|
+
toAminoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAminoMsg {
|
|
1082
|
+
return {
|
|
1083
|
+
type: "cosmos-sdk/QueryValidatorDelegationsRequest",
|
|
1084
|
+
value: QueryValidatorDelegationsRequest.toAmino(message)
|
|
1085
|
+
};
|
|
1086
|
+
},
|
|
1087
|
+
fromProtoMsg(message: QueryValidatorDelegationsRequestProtoMsg): QueryValidatorDelegationsRequest {
|
|
1088
|
+
return QueryValidatorDelegationsRequest.decode(message.value);
|
|
1089
|
+
},
|
|
1090
|
+
toProto(message: QueryValidatorDelegationsRequest): Uint8Array {
|
|
1091
|
+
return QueryValidatorDelegationsRequest.encode(message).finish();
|
|
1092
|
+
},
|
|
1093
|
+
toProtoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestProtoMsg {
|
|
1094
|
+
return {
|
|
1095
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest",
|
|
1096
|
+
value: QueryValidatorDelegationsRequest.encode(message).finish()
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
};
|
|
1100
|
+
GlobalDecoderRegistry.register(QueryValidatorDelegationsRequest.typeUrl, QueryValidatorDelegationsRequest);
|
|
1101
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorDelegationsRequest.aminoType, QueryValidatorDelegationsRequest.typeUrl);
|
|
1102
|
+
function createBaseQueryValidatorDelegationsResponse(): QueryValidatorDelegationsResponse {
|
|
1103
|
+
return {
|
|
1104
|
+
delegationResponses: [],
|
|
1105
|
+
pagination: undefined
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
export const QueryValidatorDelegationsResponse = {
|
|
1109
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse",
|
|
1110
|
+
aminoType: "cosmos-sdk/QueryValidatorDelegationsResponse",
|
|
1111
|
+
is(o: any): o is QueryValidatorDelegationsResponse {
|
|
1112
|
+
return o && (o.$typeUrl === QueryValidatorDelegationsResponse.typeUrl || Array.isArray(o.delegationResponses) && (!o.delegationResponses.length || DelegationResponse.is(o.delegationResponses[0])));
|
|
1113
|
+
},
|
|
1114
|
+
isAmino(o: any): o is QueryValidatorDelegationsResponseAmino {
|
|
1115
|
+
return o && (o.$typeUrl === QueryValidatorDelegationsResponse.typeUrl || Array.isArray(o.delegation_responses) && (!o.delegation_responses.length || DelegationResponse.isAmino(o.delegation_responses[0])));
|
|
1116
|
+
},
|
|
1117
|
+
encode(message: QueryValidatorDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1118
|
+
for (const v of message.delegationResponses) {
|
|
1119
|
+
DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1120
|
+
}
|
|
1121
|
+
if (message.pagination !== undefined) {
|
|
1122
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1123
|
+
}
|
|
1124
|
+
return writer;
|
|
1125
|
+
},
|
|
1126
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsResponse {
|
|
1127
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1128
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1129
|
+
const message = createBaseQueryValidatorDelegationsResponse();
|
|
1130
|
+
while (reader.pos < end) {
|
|
1131
|
+
const tag = reader.uint32();
|
|
1132
|
+
switch (tag >>> 3) {
|
|
1133
|
+
case 1:
|
|
1134
|
+
message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32()));
|
|
1135
|
+
break;
|
|
1136
|
+
case 2:
|
|
1137
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1138
|
+
break;
|
|
1139
|
+
default:
|
|
1140
|
+
reader.skipType(tag & 7);
|
|
1141
|
+
break;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
return message;
|
|
1145
|
+
},
|
|
1146
|
+
fromPartial(object: DeepPartial<QueryValidatorDelegationsResponse>): QueryValidatorDelegationsResponse {
|
|
1147
|
+
const message = createBaseQueryValidatorDelegationsResponse();
|
|
1148
|
+
message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || [];
|
|
1149
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1150
|
+
return message;
|
|
1151
|
+
},
|
|
1152
|
+
fromAmino(object: QueryValidatorDelegationsResponseAmino): QueryValidatorDelegationsResponse {
|
|
1153
|
+
const message = createBaseQueryValidatorDelegationsResponse();
|
|
1154
|
+
message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || [];
|
|
1155
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1156
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1157
|
+
}
|
|
1158
|
+
return message;
|
|
1159
|
+
},
|
|
1160
|
+
toAmino(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAmino {
|
|
1161
|
+
const obj: any = {};
|
|
1162
|
+
if (message.delegationResponses) {
|
|
1163
|
+
obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined);
|
|
1164
|
+
} else {
|
|
1165
|
+
obj.delegation_responses = message.delegationResponses;
|
|
1166
|
+
}
|
|
1167
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1168
|
+
return obj;
|
|
1169
|
+
},
|
|
1170
|
+
fromAminoMsg(object: QueryValidatorDelegationsResponseAminoMsg): QueryValidatorDelegationsResponse {
|
|
1171
|
+
return QueryValidatorDelegationsResponse.fromAmino(object.value);
|
|
1172
|
+
},
|
|
1173
|
+
toAminoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAminoMsg {
|
|
1174
|
+
return {
|
|
1175
|
+
type: "cosmos-sdk/QueryValidatorDelegationsResponse",
|
|
1176
|
+
value: QueryValidatorDelegationsResponse.toAmino(message)
|
|
1177
|
+
};
|
|
1178
|
+
},
|
|
1179
|
+
fromProtoMsg(message: QueryValidatorDelegationsResponseProtoMsg): QueryValidatorDelegationsResponse {
|
|
1180
|
+
return QueryValidatorDelegationsResponse.decode(message.value);
|
|
1181
|
+
},
|
|
1182
|
+
toProto(message: QueryValidatorDelegationsResponse): Uint8Array {
|
|
1183
|
+
return QueryValidatorDelegationsResponse.encode(message).finish();
|
|
1184
|
+
},
|
|
1185
|
+
toProtoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseProtoMsg {
|
|
1186
|
+
return {
|
|
1187
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse",
|
|
1188
|
+
value: QueryValidatorDelegationsResponse.encode(message).finish()
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
GlobalDecoderRegistry.register(QueryValidatorDelegationsResponse.typeUrl, QueryValidatorDelegationsResponse);
|
|
1193
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorDelegationsResponse.aminoType, QueryValidatorDelegationsResponse.typeUrl);
|
|
1194
|
+
function createBaseQueryValidatorUnbondingDelegationsRequest(): QueryValidatorUnbondingDelegationsRequest {
|
|
1195
|
+
return {
|
|
1196
|
+
validatorAddr: "",
|
|
1197
|
+
pagination: undefined
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
export const QueryValidatorUnbondingDelegationsRequest = {
|
|
1201
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest",
|
|
1202
|
+
aminoType: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest",
|
|
1203
|
+
is(o: any): o is QueryValidatorUnbondingDelegationsRequest {
|
|
1204
|
+
return o && (o.$typeUrl === QueryValidatorUnbondingDelegationsRequest.typeUrl || typeof o.validatorAddr === "string");
|
|
1205
|
+
},
|
|
1206
|
+
isAmino(o: any): o is QueryValidatorUnbondingDelegationsRequestAmino {
|
|
1207
|
+
return o && (o.$typeUrl === QueryValidatorUnbondingDelegationsRequest.typeUrl || typeof o.validator_addr === "string");
|
|
1208
|
+
},
|
|
1209
|
+
encode(message: QueryValidatorUnbondingDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1210
|
+
if (message.validatorAddr !== "") {
|
|
1211
|
+
writer.uint32(10).string(message.validatorAddr);
|
|
1212
|
+
}
|
|
1213
|
+
if (message.pagination !== undefined) {
|
|
1214
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1215
|
+
}
|
|
1216
|
+
return writer;
|
|
1217
|
+
},
|
|
1218
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest {
|
|
1219
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1221
|
+
const message = createBaseQueryValidatorUnbondingDelegationsRequest();
|
|
1222
|
+
while (reader.pos < end) {
|
|
1223
|
+
const tag = reader.uint32();
|
|
1224
|
+
switch (tag >>> 3) {
|
|
1225
|
+
case 1:
|
|
1226
|
+
message.validatorAddr = reader.string();
|
|
1227
|
+
break;
|
|
1228
|
+
case 2:
|
|
1229
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1230
|
+
break;
|
|
1231
|
+
default:
|
|
1232
|
+
reader.skipType(tag & 7);
|
|
1233
|
+
break;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
return message;
|
|
1237
|
+
},
|
|
1238
|
+
fromPartial(object: DeepPartial<QueryValidatorUnbondingDelegationsRequest>): QueryValidatorUnbondingDelegationsRequest {
|
|
1239
|
+
const message = createBaseQueryValidatorUnbondingDelegationsRequest();
|
|
1240
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
1241
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1242
|
+
return message;
|
|
1243
|
+
},
|
|
1244
|
+
fromAmino(object: QueryValidatorUnbondingDelegationsRequestAmino): QueryValidatorUnbondingDelegationsRequest {
|
|
1245
|
+
const message = createBaseQueryValidatorUnbondingDelegationsRequest();
|
|
1246
|
+
if (object.validator_addr !== undefined && object.validator_addr !== null) {
|
|
1247
|
+
message.validatorAddr = object.validator_addr;
|
|
1248
|
+
}
|
|
1249
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1250
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1251
|
+
}
|
|
1252
|
+
return message;
|
|
1253
|
+
},
|
|
1254
|
+
toAmino(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAmino {
|
|
1255
|
+
const obj: any = {};
|
|
1256
|
+
obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr;
|
|
1257
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1258
|
+
return obj;
|
|
1259
|
+
},
|
|
1260
|
+
fromAminoMsg(object: QueryValidatorUnbondingDelegationsRequestAminoMsg): QueryValidatorUnbondingDelegationsRequest {
|
|
1261
|
+
return QueryValidatorUnbondingDelegationsRequest.fromAmino(object.value);
|
|
1262
|
+
},
|
|
1263
|
+
toAminoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAminoMsg {
|
|
1264
|
+
return {
|
|
1265
|
+
type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest",
|
|
1266
|
+
value: QueryValidatorUnbondingDelegationsRequest.toAmino(message)
|
|
1267
|
+
};
|
|
1268
|
+
},
|
|
1269
|
+
fromProtoMsg(message: QueryValidatorUnbondingDelegationsRequestProtoMsg): QueryValidatorUnbondingDelegationsRequest {
|
|
1270
|
+
return QueryValidatorUnbondingDelegationsRequest.decode(message.value);
|
|
1271
|
+
},
|
|
1272
|
+
toProto(message: QueryValidatorUnbondingDelegationsRequest): Uint8Array {
|
|
1273
|
+
return QueryValidatorUnbondingDelegationsRequest.encode(message).finish();
|
|
1274
|
+
},
|
|
1275
|
+
toProtoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestProtoMsg {
|
|
1276
|
+
return {
|
|
1277
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest",
|
|
1278
|
+
value: QueryValidatorUnbondingDelegationsRequest.encode(message).finish()
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
GlobalDecoderRegistry.register(QueryValidatorUnbondingDelegationsRequest.typeUrl, QueryValidatorUnbondingDelegationsRequest);
|
|
1283
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorUnbondingDelegationsRequest.aminoType, QueryValidatorUnbondingDelegationsRequest.typeUrl);
|
|
1284
|
+
function createBaseQueryValidatorUnbondingDelegationsResponse(): QueryValidatorUnbondingDelegationsResponse {
|
|
1285
|
+
return {
|
|
1286
|
+
unbondingResponses: [],
|
|
1287
|
+
pagination: undefined
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1290
|
+
export const QueryValidatorUnbondingDelegationsResponse = {
|
|
1291
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse",
|
|
1292
|
+
aminoType: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse",
|
|
1293
|
+
is(o: any): o is QueryValidatorUnbondingDelegationsResponse {
|
|
1294
|
+
return o && (o.$typeUrl === QueryValidatorUnbondingDelegationsResponse.typeUrl || Array.isArray(o.unbondingResponses) && (!o.unbondingResponses.length || UnbondingDelegation.is(o.unbondingResponses[0])));
|
|
1295
|
+
},
|
|
1296
|
+
isAmino(o: any): o is QueryValidatorUnbondingDelegationsResponseAmino {
|
|
1297
|
+
return o && (o.$typeUrl === QueryValidatorUnbondingDelegationsResponse.typeUrl || Array.isArray(o.unbonding_responses) && (!o.unbonding_responses.length || UnbondingDelegation.isAmino(o.unbonding_responses[0])));
|
|
1298
|
+
},
|
|
1299
|
+
encode(message: QueryValidatorUnbondingDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1300
|
+
for (const v of message.unbondingResponses) {
|
|
1301
|
+
UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1302
|
+
}
|
|
1303
|
+
if (message.pagination !== undefined) {
|
|
1304
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1305
|
+
}
|
|
1306
|
+
return writer;
|
|
1307
|
+
},
|
|
1308
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse {
|
|
1309
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1310
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1311
|
+
const message = createBaseQueryValidatorUnbondingDelegationsResponse();
|
|
1312
|
+
while (reader.pos < end) {
|
|
1313
|
+
const tag = reader.uint32();
|
|
1314
|
+
switch (tag >>> 3) {
|
|
1315
|
+
case 1:
|
|
1316
|
+
message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32()));
|
|
1317
|
+
break;
|
|
1318
|
+
case 2:
|
|
1319
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1320
|
+
break;
|
|
1321
|
+
default:
|
|
1322
|
+
reader.skipType(tag & 7);
|
|
1323
|
+
break;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
return message;
|
|
1327
|
+
},
|
|
1328
|
+
fromPartial(object: DeepPartial<QueryValidatorUnbondingDelegationsResponse>): QueryValidatorUnbondingDelegationsResponse {
|
|
1329
|
+
const message = createBaseQueryValidatorUnbondingDelegationsResponse();
|
|
1330
|
+
message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || [];
|
|
1331
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1332
|
+
return message;
|
|
1333
|
+
},
|
|
1334
|
+
fromAmino(object: QueryValidatorUnbondingDelegationsResponseAmino): QueryValidatorUnbondingDelegationsResponse {
|
|
1335
|
+
const message = createBaseQueryValidatorUnbondingDelegationsResponse();
|
|
1336
|
+
message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || [];
|
|
1337
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1338
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1339
|
+
}
|
|
1340
|
+
return message;
|
|
1341
|
+
},
|
|
1342
|
+
toAmino(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAmino {
|
|
1343
|
+
const obj: any = {};
|
|
1344
|
+
if (message.unbondingResponses) {
|
|
1345
|
+
obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined);
|
|
1346
|
+
} else {
|
|
1347
|
+
obj.unbonding_responses = message.unbondingResponses;
|
|
1348
|
+
}
|
|
1349
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1350
|
+
return obj;
|
|
1351
|
+
},
|
|
1352
|
+
fromAminoMsg(object: QueryValidatorUnbondingDelegationsResponseAminoMsg): QueryValidatorUnbondingDelegationsResponse {
|
|
1353
|
+
return QueryValidatorUnbondingDelegationsResponse.fromAmino(object.value);
|
|
1354
|
+
},
|
|
1355
|
+
toAminoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAminoMsg {
|
|
1356
|
+
return {
|
|
1357
|
+
type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse",
|
|
1358
|
+
value: QueryValidatorUnbondingDelegationsResponse.toAmino(message)
|
|
1359
|
+
};
|
|
1360
|
+
},
|
|
1361
|
+
fromProtoMsg(message: QueryValidatorUnbondingDelegationsResponseProtoMsg): QueryValidatorUnbondingDelegationsResponse {
|
|
1362
|
+
return QueryValidatorUnbondingDelegationsResponse.decode(message.value);
|
|
1363
|
+
},
|
|
1364
|
+
toProto(message: QueryValidatorUnbondingDelegationsResponse): Uint8Array {
|
|
1365
|
+
return QueryValidatorUnbondingDelegationsResponse.encode(message).finish();
|
|
1366
|
+
},
|
|
1367
|
+
toProtoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseProtoMsg {
|
|
1368
|
+
return {
|
|
1369
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse",
|
|
1370
|
+
value: QueryValidatorUnbondingDelegationsResponse.encode(message).finish()
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
GlobalDecoderRegistry.register(QueryValidatorUnbondingDelegationsResponse.typeUrl, QueryValidatorUnbondingDelegationsResponse);
|
|
1375
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorUnbondingDelegationsResponse.aminoType, QueryValidatorUnbondingDelegationsResponse.typeUrl);
|
|
1376
|
+
function createBaseQueryDelegationRequest(): QueryDelegationRequest {
|
|
1377
|
+
return {
|
|
1378
|
+
delegatorAddr: "",
|
|
1379
|
+
validatorAddr: ""
|
|
1380
|
+
};
|
|
1381
|
+
}
|
|
1382
|
+
export const QueryDelegationRequest = {
|
|
1383
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest",
|
|
1384
|
+
aminoType: "cosmos-sdk/QueryDelegationRequest",
|
|
1385
|
+
is(o: any): o is QueryDelegationRequest {
|
|
1386
|
+
return o && (o.$typeUrl === QueryDelegationRequest.typeUrl || typeof o.delegatorAddr === "string" && typeof o.validatorAddr === "string");
|
|
1387
|
+
},
|
|
1388
|
+
isAmino(o: any): o is QueryDelegationRequestAmino {
|
|
1389
|
+
return o && (o.$typeUrl === QueryDelegationRequest.typeUrl || typeof o.delegator_addr === "string" && typeof o.validator_addr === "string");
|
|
1390
|
+
},
|
|
1391
|
+
encode(message: QueryDelegationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1392
|
+
if (message.delegatorAddr !== "") {
|
|
1393
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1394
|
+
}
|
|
1395
|
+
if (message.validatorAddr !== "") {
|
|
1396
|
+
writer.uint32(18).string(message.validatorAddr);
|
|
1397
|
+
}
|
|
1398
|
+
return writer;
|
|
1399
|
+
},
|
|
1400
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRequest {
|
|
1401
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1402
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1403
|
+
const message = createBaseQueryDelegationRequest();
|
|
1404
|
+
while (reader.pos < end) {
|
|
1405
|
+
const tag = reader.uint32();
|
|
1406
|
+
switch (tag >>> 3) {
|
|
1407
|
+
case 1:
|
|
1408
|
+
message.delegatorAddr = reader.string();
|
|
1409
|
+
break;
|
|
1410
|
+
case 2:
|
|
1411
|
+
message.validatorAddr = reader.string();
|
|
1412
|
+
break;
|
|
1413
|
+
default:
|
|
1414
|
+
reader.skipType(tag & 7);
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
return message;
|
|
1419
|
+
},
|
|
1420
|
+
fromPartial(object: DeepPartial<QueryDelegationRequest>): QueryDelegationRequest {
|
|
1421
|
+
const message = createBaseQueryDelegationRequest();
|
|
1422
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1423
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
1424
|
+
return message;
|
|
1425
|
+
},
|
|
1426
|
+
fromAmino(object: QueryDelegationRequestAmino): QueryDelegationRequest {
|
|
1427
|
+
const message = createBaseQueryDelegationRequest();
|
|
1428
|
+
if (object.delegator_addr !== undefined && object.delegator_addr !== null) {
|
|
1429
|
+
message.delegatorAddr = object.delegator_addr;
|
|
1430
|
+
}
|
|
1431
|
+
if (object.validator_addr !== undefined && object.validator_addr !== null) {
|
|
1432
|
+
message.validatorAddr = object.validator_addr;
|
|
1433
|
+
}
|
|
1434
|
+
return message;
|
|
1435
|
+
},
|
|
1436
|
+
toAmino(message: QueryDelegationRequest): QueryDelegationRequestAmino {
|
|
1437
|
+
const obj: any = {};
|
|
1438
|
+
obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr;
|
|
1439
|
+
obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr;
|
|
1440
|
+
return obj;
|
|
1441
|
+
},
|
|
1442
|
+
fromAminoMsg(object: QueryDelegationRequestAminoMsg): QueryDelegationRequest {
|
|
1443
|
+
return QueryDelegationRequest.fromAmino(object.value);
|
|
1444
|
+
},
|
|
1445
|
+
toAminoMsg(message: QueryDelegationRequest): QueryDelegationRequestAminoMsg {
|
|
1446
|
+
return {
|
|
1447
|
+
type: "cosmos-sdk/QueryDelegationRequest",
|
|
1448
|
+
value: QueryDelegationRequest.toAmino(message)
|
|
1449
|
+
};
|
|
1450
|
+
},
|
|
1451
|
+
fromProtoMsg(message: QueryDelegationRequestProtoMsg): QueryDelegationRequest {
|
|
1452
|
+
return QueryDelegationRequest.decode(message.value);
|
|
1453
|
+
},
|
|
1454
|
+
toProto(message: QueryDelegationRequest): Uint8Array {
|
|
1455
|
+
return QueryDelegationRequest.encode(message).finish();
|
|
1456
|
+
},
|
|
1457
|
+
toProtoMsg(message: QueryDelegationRequest): QueryDelegationRequestProtoMsg {
|
|
1458
|
+
return {
|
|
1459
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest",
|
|
1460
|
+
value: QueryDelegationRequest.encode(message).finish()
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
};
|
|
1464
|
+
GlobalDecoderRegistry.register(QueryDelegationRequest.typeUrl, QueryDelegationRequest);
|
|
1465
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegationRequest.aminoType, QueryDelegationRequest.typeUrl);
|
|
1466
|
+
function createBaseQueryDelegationResponse(): QueryDelegationResponse {
|
|
1467
|
+
return {
|
|
1468
|
+
delegationResponse: undefined
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
export const QueryDelegationResponse = {
|
|
1472
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse",
|
|
1473
|
+
aminoType: "cosmos-sdk/QueryDelegationResponse",
|
|
1474
|
+
is(o: any): o is QueryDelegationResponse {
|
|
1475
|
+
return o && o.$typeUrl === QueryDelegationResponse.typeUrl;
|
|
1476
|
+
},
|
|
1477
|
+
isAmino(o: any): o is QueryDelegationResponseAmino {
|
|
1478
|
+
return o && o.$typeUrl === QueryDelegationResponse.typeUrl;
|
|
1479
|
+
},
|
|
1480
|
+
encode(message: QueryDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1481
|
+
if (message.delegationResponse !== undefined) {
|
|
1482
|
+
DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim();
|
|
1483
|
+
}
|
|
1484
|
+
return writer;
|
|
1485
|
+
},
|
|
1486
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationResponse {
|
|
1487
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1488
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1489
|
+
const message = createBaseQueryDelegationResponse();
|
|
1490
|
+
while (reader.pos < end) {
|
|
1491
|
+
const tag = reader.uint32();
|
|
1492
|
+
switch (tag >>> 3) {
|
|
1493
|
+
case 1:
|
|
1494
|
+
message.delegationResponse = DelegationResponse.decode(reader, reader.uint32());
|
|
1495
|
+
break;
|
|
1496
|
+
default:
|
|
1497
|
+
reader.skipType(tag & 7);
|
|
1498
|
+
break;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
return message;
|
|
1502
|
+
},
|
|
1503
|
+
fromPartial(object: DeepPartial<QueryDelegationResponse>): QueryDelegationResponse {
|
|
1504
|
+
const message = createBaseQueryDelegationResponse();
|
|
1505
|
+
message.delegationResponse = object.delegationResponse !== undefined && object.delegationResponse !== null ? DelegationResponse.fromPartial(object.delegationResponse) : undefined;
|
|
1506
|
+
return message;
|
|
1507
|
+
},
|
|
1508
|
+
fromAmino(object: QueryDelegationResponseAmino): QueryDelegationResponse {
|
|
1509
|
+
const message = createBaseQueryDelegationResponse();
|
|
1510
|
+
if (object.delegation_response !== undefined && object.delegation_response !== null) {
|
|
1511
|
+
message.delegationResponse = DelegationResponse.fromAmino(object.delegation_response);
|
|
1512
|
+
}
|
|
1513
|
+
return message;
|
|
1514
|
+
},
|
|
1515
|
+
toAmino(message: QueryDelegationResponse): QueryDelegationResponseAmino {
|
|
1516
|
+
const obj: any = {};
|
|
1517
|
+
obj.delegation_response = message.delegationResponse ? DelegationResponse.toAmino(message.delegationResponse) : undefined;
|
|
1518
|
+
return obj;
|
|
1519
|
+
},
|
|
1520
|
+
fromAminoMsg(object: QueryDelegationResponseAminoMsg): QueryDelegationResponse {
|
|
1521
|
+
return QueryDelegationResponse.fromAmino(object.value);
|
|
1522
|
+
},
|
|
1523
|
+
toAminoMsg(message: QueryDelegationResponse): QueryDelegationResponseAminoMsg {
|
|
1524
|
+
return {
|
|
1525
|
+
type: "cosmos-sdk/QueryDelegationResponse",
|
|
1526
|
+
value: QueryDelegationResponse.toAmino(message)
|
|
1527
|
+
};
|
|
1528
|
+
},
|
|
1529
|
+
fromProtoMsg(message: QueryDelegationResponseProtoMsg): QueryDelegationResponse {
|
|
1530
|
+
return QueryDelegationResponse.decode(message.value);
|
|
1531
|
+
},
|
|
1532
|
+
toProto(message: QueryDelegationResponse): Uint8Array {
|
|
1533
|
+
return QueryDelegationResponse.encode(message).finish();
|
|
1534
|
+
},
|
|
1535
|
+
toProtoMsg(message: QueryDelegationResponse): QueryDelegationResponseProtoMsg {
|
|
1536
|
+
return {
|
|
1537
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse",
|
|
1538
|
+
value: QueryDelegationResponse.encode(message).finish()
|
|
1539
|
+
};
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
GlobalDecoderRegistry.register(QueryDelegationResponse.typeUrl, QueryDelegationResponse);
|
|
1543
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegationResponse.aminoType, QueryDelegationResponse.typeUrl);
|
|
1544
|
+
function createBaseQueryUnbondingDelegationRequest(): QueryUnbondingDelegationRequest {
|
|
1545
|
+
return {
|
|
1546
|
+
delegatorAddr: "",
|
|
1547
|
+
validatorAddr: ""
|
|
1548
|
+
};
|
|
1549
|
+
}
|
|
1550
|
+
export const QueryUnbondingDelegationRequest = {
|
|
1551
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest",
|
|
1552
|
+
aminoType: "cosmos-sdk/QueryUnbondingDelegationRequest",
|
|
1553
|
+
is(o: any): o is QueryUnbondingDelegationRequest {
|
|
1554
|
+
return o && (o.$typeUrl === QueryUnbondingDelegationRequest.typeUrl || typeof o.delegatorAddr === "string" && typeof o.validatorAddr === "string");
|
|
1555
|
+
},
|
|
1556
|
+
isAmino(o: any): o is QueryUnbondingDelegationRequestAmino {
|
|
1557
|
+
return o && (o.$typeUrl === QueryUnbondingDelegationRequest.typeUrl || typeof o.delegator_addr === "string" && typeof o.validator_addr === "string");
|
|
1558
|
+
},
|
|
1559
|
+
encode(message: QueryUnbondingDelegationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1560
|
+
if (message.delegatorAddr !== "") {
|
|
1561
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1562
|
+
}
|
|
1563
|
+
if (message.validatorAddr !== "") {
|
|
1564
|
+
writer.uint32(18).string(message.validatorAddr);
|
|
1565
|
+
}
|
|
1566
|
+
return writer;
|
|
1567
|
+
},
|
|
1568
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationRequest {
|
|
1569
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1570
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1571
|
+
const message = createBaseQueryUnbondingDelegationRequest();
|
|
1572
|
+
while (reader.pos < end) {
|
|
1573
|
+
const tag = reader.uint32();
|
|
1574
|
+
switch (tag >>> 3) {
|
|
1575
|
+
case 1:
|
|
1576
|
+
message.delegatorAddr = reader.string();
|
|
1577
|
+
break;
|
|
1578
|
+
case 2:
|
|
1579
|
+
message.validatorAddr = reader.string();
|
|
1580
|
+
break;
|
|
1581
|
+
default:
|
|
1582
|
+
reader.skipType(tag & 7);
|
|
1583
|
+
break;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
return message;
|
|
1587
|
+
},
|
|
1588
|
+
fromPartial(object: DeepPartial<QueryUnbondingDelegationRequest>): QueryUnbondingDelegationRequest {
|
|
1589
|
+
const message = createBaseQueryUnbondingDelegationRequest();
|
|
1590
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1591
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
1592
|
+
return message;
|
|
1593
|
+
},
|
|
1594
|
+
fromAmino(object: QueryUnbondingDelegationRequestAmino): QueryUnbondingDelegationRequest {
|
|
1595
|
+
const message = createBaseQueryUnbondingDelegationRequest();
|
|
1596
|
+
if (object.delegator_addr !== undefined && object.delegator_addr !== null) {
|
|
1597
|
+
message.delegatorAddr = object.delegator_addr;
|
|
1598
|
+
}
|
|
1599
|
+
if (object.validator_addr !== undefined && object.validator_addr !== null) {
|
|
1600
|
+
message.validatorAddr = object.validator_addr;
|
|
1601
|
+
}
|
|
1602
|
+
return message;
|
|
1603
|
+
},
|
|
1604
|
+
toAmino(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAmino {
|
|
1605
|
+
const obj: any = {};
|
|
1606
|
+
obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr;
|
|
1607
|
+
obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr;
|
|
1608
|
+
return obj;
|
|
1609
|
+
},
|
|
1610
|
+
fromAminoMsg(object: QueryUnbondingDelegationRequestAminoMsg): QueryUnbondingDelegationRequest {
|
|
1611
|
+
return QueryUnbondingDelegationRequest.fromAmino(object.value);
|
|
1612
|
+
},
|
|
1613
|
+
toAminoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAminoMsg {
|
|
1614
|
+
return {
|
|
1615
|
+
type: "cosmos-sdk/QueryUnbondingDelegationRequest",
|
|
1616
|
+
value: QueryUnbondingDelegationRequest.toAmino(message)
|
|
1617
|
+
};
|
|
1618
|
+
},
|
|
1619
|
+
fromProtoMsg(message: QueryUnbondingDelegationRequestProtoMsg): QueryUnbondingDelegationRequest {
|
|
1620
|
+
return QueryUnbondingDelegationRequest.decode(message.value);
|
|
1621
|
+
},
|
|
1622
|
+
toProto(message: QueryUnbondingDelegationRequest): Uint8Array {
|
|
1623
|
+
return QueryUnbondingDelegationRequest.encode(message).finish();
|
|
1624
|
+
},
|
|
1625
|
+
toProtoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestProtoMsg {
|
|
1626
|
+
return {
|
|
1627
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest",
|
|
1628
|
+
value: QueryUnbondingDelegationRequest.encode(message).finish()
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
GlobalDecoderRegistry.register(QueryUnbondingDelegationRequest.typeUrl, QueryUnbondingDelegationRequest);
|
|
1633
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUnbondingDelegationRequest.aminoType, QueryUnbondingDelegationRequest.typeUrl);
|
|
1634
|
+
function createBaseQueryUnbondingDelegationResponse(): QueryUnbondingDelegationResponse {
|
|
1635
|
+
return {
|
|
1636
|
+
unbond: UnbondingDelegation.fromPartial({})
|
|
1637
|
+
};
|
|
1638
|
+
}
|
|
1639
|
+
export const QueryUnbondingDelegationResponse = {
|
|
1640
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse",
|
|
1641
|
+
aminoType: "cosmos-sdk/QueryUnbondingDelegationResponse",
|
|
1642
|
+
is(o: any): o is QueryUnbondingDelegationResponse {
|
|
1643
|
+
return o && (o.$typeUrl === QueryUnbondingDelegationResponse.typeUrl || UnbondingDelegation.is(o.unbond));
|
|
1644
|
+
},
|
|
1645
|
+
isAmino(o: any): o is QueryUnbondingDelegationResponseAmino {
|
|
1646
|
+
return o && (o.$typeUrl === QueryUnbondingDelegationResponse.typeUrl || UnbondingDelegation.isAmino(o.unbond));
|
|
1647
|
+
},
|
|
1648
|
+
encode(message: QueryUnbondingDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1649
|
+
if (message.unbond !== undefined) {
|
|
1650
|
+
UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim();
|
|
1651
|
+
}
|
|
1652
|
+
return writer;
|
|
1653
|
+
},
|
|
1654
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationResponse {
|
|
1655
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1656
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1657
|
+
const message = createBaseQueryUnbondingDelegationResponse();
|
|
1658
|
+
while (reader.pos < end) {
|
|
1659
|
+
const tag = reader.uint32();
|
|
1660
|
+
switch (tag >>> 3) {
|
|
1661
|
+
case 1:
|
|
1662
|
+
message.unbond = UnbondingDelegation.decode(reader, reader.uint32());
|
|
1663
|
+
break;
|
|
1664
|
+
default:
|
|
1665
|
+
reader.skipType(tag & 7);
|
|
1666
|
+
break;
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
return message;
|
|
1670
|
+
},
|
|
1671
|
+
fromPartial(object: DeepPartial<QueryUnbondingDelegationResponse>): QueryUnbondingDelegationResponse {
|
|
1672
|
+
const message = createBaseQueryUnbondingDelegationResponse();
|
|
1673
|
+
message.unbond = object.unbond !== undefined && object.unbond !== null ? UnbondingDelegation.fromPartial(object.unbond) : undefined;
|
|
1674
|
+
return message;
|
|
1675
|
+
},
|
|
1676
|
+
fromAmino(object: QueryUnbondingDelegationResponseAmino): QueryUnbondingDelegationResponse {
|
|
1677
|
+
const message = createBaseQueryUnbondingDelegationResponse();
|
|
1678
|
+
if (object.unbond !== undefined && object.unbond !== null) {
|
|
1679
|
+
message.unbond = UnbondingDelegation.fromAmino(object.unbond);
|
|
1680
|
+
}
|
|
1681
|
+
return message;
|
|
1682
|
+
},
|
|
1683
|
+
toAmino(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAmino {
|
|
1684
|
+
const obj: any = {};
|
|
1685
|
+
obj.unbond = message.unbond ? UnbondingDelegation.toAmino(message.unbond) : UnbondingDelegation.toAmino(UnbondingDelegation.fromPartial({}));
|
|
1686
|
+
return obj;
|
|
1687
|
+
},
|
|
1688
|
+
fromAminoMsg(object: QueryUnbondingDelegationResponseAminoMsg): QueryUnbondingDelegationResponse {
|
|
1689
|
+
return QueryUnbondingDelegationResponse.fromAmino(object.value);
|
|
1690
|
+
},
|
|
1691
|
+
toAminoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAminoMsg {
|
|
1692
|
+
return {
|
|
1693
|
+
type: "cosmos-sdk/QueryUnbondingDelegationResponse",
|
|
1694
|
+
value: QueryUnbondingDelegationResponse.toAmino(message)
|
|
1695
|
+
};
|
|
1696
|
+
},
|
|
1697
|
+
fromProtoMsg(message: QueryUnbondingDelegationResponseProtoMsg): QueryUnbondingDelegationResponse {
|
|
1698
|
+
return QueryUnbondingDelegationResponse.decode(message.value);
|
|
1699
|
+
},
|
|
1700
|
+
toProto(message: QueryUnbondingDelegationResponse): Uint8Array {
|
|
1701
|
+
return QueryUnbondingDelegationResponse.encode(message).finish();
|
|
1702
|
+
},
|
|
1703
|
+
toProtoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseProtoMsg {
|
|
1704
|
+
return {
|
|
1705
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse",
|
|
1706
|
+
value: QueryUnbondingDelegationResponse.encode(message).finish()
|
|
1707
|
+
};
|
|
1708
|
+
}
|
|
1709
|
+
};
|
|
1710
|
+
GlobalDecoderRegistry.register(QueryUnbondingDelegationResponse.typeUrl, QueryUnbondingDelegationResponse);
|
|
1711
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUnbondingDelegationResponse.aminoType, QueryUnbondingDelegationResponse.typeUrl);
|
|
1712
|
+
function createBaseQueryDelegatorDelegationsRequest(): QueryDelegatorDelegationsRequest {
|
|
1713
|
+
return {
|
|
1714
|
+
delegatorAddr: "",
|
|
1715
|
+
pagination: undefined
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
export const QueryDelegatorDelegationsRequest = {
|
|
1719
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest",
|
|
1720
|
+
aminoType: "cosmos-sdk/QueryDelegatorDelegationsRequest",
|
|
1721
|
+
is(o: any): o is QueryDelegatorDelegationsRequest {
|
|
1722
|
+
return o && (o.$typeUrl === QueryDelegatorDelegationsRequest.typeUrl || typeof o.delegatorAddr === "string");
|
|
1723
|
+
},
|
|
1724
|
+
isAmino(o: any): o is QueryDelegatorDelegationsRequestAmino {
|
|
1725
|
+
return o && (o.$typeUrl === QueryDelegatorDelegationsRequest.typeUrl || typeof o.delegator_addr === "string");
|
|
1726
|
+
},
|
|
1727
|
+
encode(message: QueryDelegatorDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1728
|
+
if (message.delegatorAddr !== "") {
|
|
1729
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1730
|
+
}
|
|
1731
|
+
if (message.pagination !== undefined) {
|
|
1732
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1733
|
+
}
|
|
1734
|
+
return writer;
|
|
1735
|
+
},
|
|
1736
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest {
|
|
1737
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1738
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1739
|
+
const message = createBaseQueryDelegatorDelegationsRequest();
|
|
1740
|
+
while (reader.pos < end) {
|
|
1741
|
+
const tag = reader.uint32();
|
|
1742
|
+
switch (tag >>> 3) {
|
|
1743
|
+
case 1:
|
|
1744
|
+
message.delegatorAddr = reader.string();
|
|
1745
|
+
break;
|
|
1746
|
+
case 2:
|
|
1747
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1748
|
+
break;
|
|
1749
|
+
default:
|
|
1750
|
+
reader.skipType(tag & 7);
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
return message;
|
|
1755
|
+
},
|
|
1756
|
+
fromPartial(object: DeepPartial<QueryDelegatorDelegationsRequest>): QueryDelegatorDelegationsRequest {
|
|
1757
|
+
const message = createBaseQueryDelegatorDelegationsRequest();
|
|
1758
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1759
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1760
|
+
return message;
|
|
1761
|
+
},
|
|
1762
|
+
fromAmino(object: QueryDelegatorDelegationsRequestAmino): QueryDelegatorDelegationsRequest {
|
|
1763
|
+
const message = createBaseQueryDelegatorDelegationsRequest();
|
|
1764
|
+
if (object.delegator_addr !== undefined && object.delegator_addr !== null) {
|
|
1765
|
+
message.delegatorAddr = object.delegator_addr;
|
|
1766
|
+
}
|
|
1767
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1768
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1769
|
+
}
|
|
1770
|
+
return message;
|
|
1771
|
+
},
|
|
1772
|
+
toAmino(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAmino {
|
|
1773
|
+
const obj: any = {};
|
|
1774
|
+
obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr;
|
|
1775
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1776
|
+
return obj;
|
|
1777
|
+
},
|
|
1778
|
+
fromAminoMsg(object: QueryDelegatorDelegationsRequestAminoMsg): QueryDelegatorDelegationsRequest {
|
|
1779
|
+
return QueryDelegatorDelegationsRequest.fromAmino(object.value);
|
|
1780
|
+
},
|
|
1781
|
+
toAminoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAminoMsg {
|
|
1782
|
+
return {
|
|
1783
|
+
type: "cosmos-sdk/QueryDelegatorDelegationsRequest",
|
|
1784
|
+
value: QueryDelegatorDelegationsRequest.toAmino(message)
|
|
1785
|
+
};
|
|
1786
|
+
},
|
|
1787
|
+
fromProtoMsg(message: QueryDelegatorDelegationsRequestProtoMsg): QueryDelegatorDelegationsRequest {
|
|
1788
|
+
return QueryDelegatorDelegationsRequest.decode(message.value);
|
|
1789
|
+
},
|
|
1790
|
+
toProto(message: QueryDelegatorDelegationsRequest): Uint8Array {
|
|
1791
|
+
return QueryDelegatorDelegationsRequest.encode(message).finish();
|
|
1792
|
+
},
|
|
1793
|
+
toProtoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestProtoMsg {
|
|
1794
|
+
return {
|
|
1795
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest",
|
|
1796
|
+
value: QueryDelegatorDelegationsRequest.encode(message).finish()
|
|
1797
|
+
};
|
|
1798
|
+
}
|
|
1799
|
+
};
|
|
1800
|
+
GlobalDecoderRegistry.register(QueryDelegatorDelegationsRequest.typeUrl, QueryDelegatorDelegationsRequest);
|
|
1801
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorDelegationsRequest.aminoType, QueryDelegatorDelegationsRequest.typeUrl);
|
|
1802
|
+
function createBaseQueryDelegatorDelegationsResponse(): QueryDelegatorDelegationsResponse {
|
|
1803
|
+
return {
|
|
1804
|
+
delegationResponses: [],
|
|
1805
|
+
pagination: undefined
|
|
1806
|
+
};
|
|
1807
|
+
}
|
|
1808
|
+
export const QueryDelegatorDelegationsResponse = {
|
|
1809
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse",
|
|
1810
|
+
aminoType: "cosmos-sdk/QueryDelegatorDelegationsResponse",
|
|
1811
|
+
is(o: any): o is QueryDelegatorDelegationsResponse {
|
|
1812
|
+
return o && (o.$typeUrl === QueryDelegatorDelegationsResponse.typeUrl || Array.isArray(o.delegationResponses) && (!o.delegationResponses.length || DelegationResponse.is(o.delegationResponses[0])));
|
|
1813
|
+
},
|
|
1814
|
+
isAmino(o: any): o is QueryDelegatorDelegationsResponseAmino {
|
|
1815
|
+
return o && (o.$typeUrl === QueryDelegatorDelegationsResponse.typeUrl || Array.isArray(o.delegation_responses) && (!o.delegation_responses.length || DelegationResponse.isAmino(o.delegation_responses[0])));
|
|
1816
|
+
},
|
|
1817
|
+
encode(message: QueryDelegatorDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1818
|
+
for (const v of message.delegationResponses) {
|
|
1819
|
+
DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1820
|
+
}
|
|
1821
|
+
if (message.pagination !== undefined) {
|
|
1822
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1823
|
+
}
|
|
1824
|
+
return writer;
|
|
1825
|
+
},
|
|
1826
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse {
|
|
1827
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1828
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1829
|
+
const message = createBaseQueryDelegatorDelegationsResponse();
|
|
1830
|
+
while (reader.pos < end) {
|
|
1831
|
+
const tag = reader.uint32();
|
|
1832
|
+
switch (tag >>> 3) {
|
|
1833
|
+
case 1:
|
|
1834
|
+
message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32()));
|
|
1835
|
+
break;
|
|
1836
|
+
case 2:
|
|
1837
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1838
|
+
break;
|
|
1839
|
+
default:
|
|
1840
|
+
reader.skipType(tag & 7);
|
|
1841
|
+
break;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
return message;
|
|
1845
|
+
},
|
|
1846
|
+
fromPartial(object: DeepPartial<QueryDelegatorDelegationsResponse>): QueryDelegatorDelegationsResponse {
|
|
1847
|
+
const message = createBaseQueryDelegatorDelegationsResponse();
|
|
1848
|
+
message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || [];
|
|
1849
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1850
|
+
return message;
|
|
1851
|
+
},
|
|
1852
|
+
fromAmino(object: QueryDelegatorDelegationsResponseAmino): QueryDelegatorDelegationsResponse {
|
|
1853
|
+
const message = createBaseQueryDelegatorDelegationsResponse();
|
|
1854
|
+
message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || [];
|
|
1855
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1856
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1857
|
+
}
|
|
1858
|
+
return message;
|
|
1859
|
+
},
|
|
1860
|
+
toAmino(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAmino {
|
|
1861
|
+
const obj: any = {};
|
|
1862
|
+
if (message.delegationResponses) {
|
|
1863
|
+
obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined);
|
|
1864
|
+
} else {
|
|
1865
|
+
obj.delegation_responses = message.delegationResponses;
|
|
1866
|
+
}
|
|
1867
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1868
|
+
return obj;
|
|
1869
|
+
},
|
|
1870
|
+
fromAminoMsg(object: QueryDelegatorDelegationsResponseAminoMsg): QueryDelegatorDelegationsResponse {
|
|
1871
|
+
return QueryDelegatorDelegationsResponse.fromAmino(object.value);
|
|
1872
|
+
},
|
|
1873
|
+
toAminoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAminoMsg {
|
|
1874
|
+
return {
|
|
1875
|
+
type: "cosmos-sdk/QueryDelegatorDelegationsResponse",
|
|
1876
|
+
value: QueryDelegatorDelegationsResponse.toAmino(message)
|
|
1877
|
+
};
|
|
1878
|
+
},
|
|
1879
|
+
fromProtoMsg(message: QueryDelegatorDelegationsResponseProtoMsg): QueryDelegatorDelegationsResponse {
|
|
1880
|
+
return QueryDelegatorDelegationsResponse.decode(message.value);
|
|
1881
|
+
},
|
|
1882
|
+
toProto(message: QueryDelegatorDelegationsResponse): Uint8Array {
|
|
1883
|
+
return QueryDelegatorDelegationsResponse.encode(message).finish();
|
|
1884
|
+
},
|
|
1885
|
+
toProtoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseProtoMsg {
|
|
1886
|
+
return {
|
|
1887
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse",
|
|
1888
|
+
value: QueryDelegatorDelegationsResponse.encode(message).finish()
|
|
1889
|
+
};
|
|
1890
|
+
}
|
|
1891
|
+
};
|
|
1892
|
+
GlobalDecoderRegistry.register(QueryDelegatorDelegationsResponse.typeUrl, QueryDelegatorDelegationsResponse);
|
|
1893
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorDelegationsResponse.aminoType, QueryDelegatorDelegationsResponse.typeUrl);
|
|
1894
|
+
function createBaseQueryDelegatorUnbondingDelegationsRequest(): QueryDelegatorUnbondingDelegationsRequest {
|
|
1895
|
+
return {
|
|
1896
|
+
delegatorAddr: "",
|
|
1897
|
+
pagination: undefined
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
export const QueryDelegatorUnbondingDelegationsRequest = {
|
|
1901
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest",
|
|
1902
|
+
aminoType: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest",
|
|
1903
|
+
is(o: any): o is QueryDelegatorUnbondingDelegationsRequest {
|
|
1904
|
+
return o && (o.$typeUrl === QueryDelegatorUnbondingDelegationsRequest.typeUrl || typeof o.delegatorAddr === "string");
|
|
1905
|
+
},
|
|
1906
|
+
isAmino(o: any): o is QueryDelegatorUnbondingDelegationsRequestAmino {
|
|
1907
|
+
return o && (o.$typeUrl === QueryDelegatorUnbondingDelegationsRequest.typeUrl || typeof o.delegator_addr === "string");
|
|
1908
|
+
},
|
|
1909
|
+
encode(message: QueryDelegatorUnbondingDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1910
|
+
if (message.delegatorAddr !== "") {
|
|
1911
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1912
|
+
}
|
|
1913
|
+
if (message.pagination !== undefined) {
|
|
1914
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1915
|
+
}
|
|
1916
|
+
return writer;
|
|
1917
|
+
},
|
|
1918
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest {
|
|
1919
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1920
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1921
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsRequest();
|
|
1922
|
+
while (reader.pos < end) {
|
|
1923
|
+
const tag = reader.uint32();
|
|
1924
|
+
switch (tag >>> 3) {
|
|
1925
|
+
case 1:
|
|
1926
|
+
message.delegatorAddr = reader.string();
|
|
1927
|
+
break;
|
|
1928
|
+
case 2:
|
|
1929
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1930
|
+
break;
|
|
1931
|
+
default:
|
|
1932
|
+
reader.skipType(tag & 7);
|
|
1933
|
+
break;
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
return message;
|
|
1937
|
+
},
|
|
1938
|
+
fromPartial(object: DeepPartial<QueryDelegatorUnbondingDelegationsRequest>): QueryDelegatorUnbondingDelegationsRequest {
|
|
1939
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsRequest();
|
|
1940
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1941
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1942
|
+
return message;
|
|
1943
|
+
},
|
|
1944
|
+
fromAmino(object: QueryDelegatorUnbondingDelegationsRequestAmino): QueryDelegatorUnbondingDelegationsRequest {
|
|
1945
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsRequest();
|
|
1946
|
+
if (object.delegator_addr !== undefined && object.delegator_addr !== null) {
|
|
1947
|
+
message.delegatorAddr = object.delegator_addr;
|
|
1948
|
+
}
|
|
1949
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1950
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1951
|
+
}
|
|
1952
|
+
return message;
|
|
1953
|
+
},
|
|
1954
|
+
toAmino(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAmino {
|
|
1955
|
+
const obj: any = {};
|
|
1956
|
+
obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr;
|
|
1957
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1958
|
+
return obj;
|
|
1959
|
+
},
|
|
1960
|
+
fromAminoMsg(object: QueryDelegatorUnbondingDelegationsRequestAminoMsg): QueryDelegatorUnbondingDelegationsRequest {
|
|
1961
|
+
return QueryDelegatorUnbondingDelegationsRequest.fromAmino(object.value);
|
|
1962
|
+
},
|
|
1963
|
+
toAminoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAminoMsg {
|
|
1964
|
+
return {
|
|
1965
|
+
type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest",
|
|
1966
|
+
value: QueryDelegatorUnbondingDelegationsRequest.toAmino(message)
|
|
1967
|
+
};
|
|
1968
|
+
},
|
|
1969
|
+
fromProtoMsg(message: QueryDelegatorUnbondingDelegationsRequestProtoMsg): QueryDelegatorUnbondingDelegationsRequest {
|
|
1970
|
+
return QueryDelegatorUnbondingDelegationsRequest.decode(message.value);
|
|
1971
|
+
},
|
|
1972
|
+
toProto(message: QueryDelegatorUnbondingDelegationsRequest): Uint8Array {
|
|
1973
|
+
return QueryDelegatorUnbondingDelegationsRequest.encode(message).finish();
|
|
1974
|
+
},
|
|
1975
|
+
toProtoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestProtoMsg {
|
|
1976
|
+
return {
|
|
1977
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest",
|
|
1978
|
+
value: QueryDelegatorUnbondingDelegationsRequest.encode(message).finish()
|
|
1979
|
+
};
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1982
|
+
GlobalDecoderRegistry.register(QueryDelegatorUnbondingDelegationsRequest.typeUrl, QueryDelegatorUnbondingDelegationsRequest);
|
|
1983
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorUnbondingDelegationsRequest.aminoType, QueryDelegatorUnbondingDelegationsRequest.typeUrl);
|
|
1984
|
+
function createBaseQueryDelegatorUnbondingDelegationsResponse(): QueryDelegatorUnbondingDelegationsResponse {
|
|
1985
|
+
return {
|
|
1986
|
+
unbondingResponses: [],
|
|
1987
|
+
pagination: undefined
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
export const QueryDelegatorUnbondingDelegationsResponse = {
|
|
1991
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse",
|
|
1992
|
+
aminoType: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse",
|
|
1993
|
+
is(o: any): o is QueryDelegatorUnbondingDelegationsResponse {
|
|
1994
|
+
return o && (o.$typeUrl === QueryDelegatorUnbondingDelegationsResponse.typeUrl || Array.isArray(o.unbondingResponses) && (!o.unbondingResponses.length || UnbondingDelegation.is(o.unbondingResponses[0])));
|
|
1995
|
+
},
|
|
1996
|
+
isAmino(o: any): o is QueryDelegatorUnbondingDelegationsResponseAmino {
|
|
1997
|
+
return o && (o.$typeUrl === QueryDelegatorUnbondingDelegationsResponse.typeUrl || Array.isArray(o.unbonding_responses) && (!o.unbonding_responses.length || UnbondingDelegation.isAmino(o.unbonding_responses[0])));
|
|
1998
|
+
},
|
|
1999
|
+
encode(message: QueryDelegatorUnbondingDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2000
|
+
for (const v of message.unbondingResponses) {
|
|
2001
|
+
UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
2002
|
+
}
|
|
2003
|
+
if (message.pagination !== undefined) {
|
|
2004
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2005
|
+
}
|
|
2006
|
+
return writer;
|
|
2007
|
+
},
|
|
2008
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse {
|
|
2009
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2010
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2011
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsResponse();
|
|
2012
|
+
while (reader.pos < end) {
|
|
2013
|
+
const tag = reader.uint32();
|
|
2014
|
+
switch (tag >>> 3) {
|
|
2015
|
+
case 1:
|
|
2016
|
+
message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32()));
|
|
2017
|
+
break;
|
|
2018
|
+
case 2:
|
|
2019
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2020
|
+
break;
|
|
2021
|
+
default:
|
|
2022
|
+
reader.skipType(tag & 7);
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
return message;
|
|
2027
|
+
},
|
|
2028
|
+
fromPartial(object: DeepPartial<QueryDelegatorUnbondingDelegationsResponse>): QueryDelegatorUnbondingDelegationsResponse {
|
|
2029
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsResponse();
|
|
2030
|
+
message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || [];
|
|
2031
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2032
|
+
return message;
|
|
2033
|
+
},
|
|
2034
|
+
fromAmino(object: QueryDelegatorUnbondingDelegationsResponseAmino): QueryDelegatorUnbondingDelegationsResponse {
|
|
2035
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsResponse();
|
|
2036
|
+
message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || [];
|
|
2037
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2038
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2039
|
+
}
|
|
2040
|
+
return message;
|
|
2041
|
+
},
|
|
2042
|
+
toAmino(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAmino {
|
|
2043
|
+
const obj: any = {};
|
|
2044
|
+
if (message.unbondingResponses) {
|
|
2045
|
+
obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined);
|
|
2046
|
+
} else {
|
|
2047
|
+
obj.unbonding_responses = message.unbondingResponses;
|
|
2048
|
+
}
|
|
2049
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2050
|
+
return obj;
|
|
2051
|
+
},
|
|
2052
|
+
fromAminoMsg(object: QueryDelegatorUnbondingDelegationsResponseAminoMsg): QueryDelegatorUnbondingDelegationsResponse {
|
|
2053
|
+
return QueryDelegatorUnbondingDelegationsResponse.fromAmino(object.value);
|
|
2054
|
+
},
|
|
2055
|
+
toAminoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAminoMsg {
|
|
2056
|
+
return {
|
|
2057
|
+
type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse",
|
|
2058
|
+
value: QueryDelegatorUnbondingDelegationsResponse.toAmino(message)
|
|
2059
|
+
};
|
|
2060
|
+
},
|
|
2061
|
+
fromProtoMsg(message: QueryDelegatorUnbondingDelegationsResponseProtoMsg): QueryDelegatorUnbondingDelegationsResponse {
|
|
2062
|
+
return QueryDelegatorUnbondingDelegationsResponse.decode(message.value);
|
|
2063
|
+
},
|
|
2064
|
+
toProto(message: QueryDelegatorUnbondingDelegationsResponse): Uint8Array {
|
|
2065
|
+
return QueryDelegatorUnbondingDelegationsResponse.encode(message).finish();
|
|
2066
|
+
},
|
|
2067
|
+
toProtoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseProtoMsg {
|
|
2068
|
+
return {
|
|
2069
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse",
|
|
2070
|
+
value: QueryDelegatorUnbondingDelegationsResponse.encode(message).finish()
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
2073
|
+
};
|
|
2074
|
+
GlobalDecoderRegistry.register(QueryDelegatorUnbondingDelegationsResponse.typeUrl, QueryDelegatorUnbondingDelegationsResponse);
|
|
2075
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorUnbondingDelegationsResponse.aminoType, QueryDelegatorUnbondingDelegationsResponse.typeUrl);
|
|
2076
|
+
function createBaseQueryRedelegationsRequest(): QueryRedelegationsRequest {
|
|
2077
|
+
return {
|
|
2078
|
+
delegatorAddr: "",
|
|
2079
|
+
srcValidatorAddr: "",
|
|
2080
|
+
dstValidatorAddr: "",
|
|
2081
|
+
pagination: undefined
|
|
2082
|
+
};
|
|
2083
|
+
}
|
|
2084
|
+
export const QueryRedelegationsRequest = {
|
|
2085
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest",
|
|
2086
|
+
aminoType: "cosmos-sdk/QueryRedelegationsRequest",
|
|
2087
|
+
is(o: any): o is QueryRedelegationsRequest {
|
|
2088
|
+
return o && (o.$typeUrl === QueryRedelegationsRequest.typeUrl || typeof o.delegatorAddr === "string" && typeof o.srcValidatorAddr === "string" && typeof o.dstValidatorAddr === "string");
|
|
2089
|
+
},
|
|
2090
|
+
isAmino(o: any): o is QueryRedelegationsRequestAmino {
|
|
2091
|
+
return o && (o.$typeUrl === QueryRedelegationsRequest.typeUrl || typeof o.delegator_addr === "string" && typeof o.src_validator_addr === "string" && typeof o.dst_validator_addr === "string");
|
|
2092
|
+
},
|
|
2093
|
+
encode(message: QueryRedelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2094
|
+
if (message.delegatorAddr !== "") {
|
|
2095
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
2096
|
+
}
|
|
2097
|
+
if (message.srcValidatorAddr !== "") {
|
|
2098
|
+
writer.uint32(18).string(message.srcValidatorAddr);
|
|
2099
|
+
}
|
|
2100
|
+
if (message.dstValidatorAddr !== "") {
|
|
2101
|
+
writer.uint32(26).string(message.dstValidatorAddr);
|
|
2102
|
+
}
|
|
2103
|
+
if (message.pagination !== undefined) {
|
|
2104
|
+
PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
2105
|
+
}
|
|
2106
|
+
return writer;
|
|
2107
|
+
},
|
|
2108
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsRequest {
|
|
2109
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2110
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2111
|
+
const message = createBaseQueryRedelegationsRequest();
|
|
2112
|
+
while (reader.pos < end) {
|
|
2113
|
+
const tag = reader.uint32();
|
|
2114
|
+
switch (tag >>> 3) {
|
|
2115
|
+
case 1:
|
|
2116
|
+
message.delegatorAddr = reader.string();
|
|
2117
|
+
break;
|
|
2118
|
+
case 2:
|
|
2119
|
+
message.srcValidatorAddr = reader.string();
|
|
2120
|
+
break;
|
|
2121
|
+
case 3:
|
|
2122
|
+
message.dstValidatorAddr = reader.string();
|
|
2123
|
+
break;
|
|
2124
|
+
case 4:
|
|
2125
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2126
|
+
break;
|
|
2127
|
+
default:
|
|
2128
|
+
reader.skipType(tag & 7);
|
|
2129
|
+
break;
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
return message;
|
|
2133
|
+
},
|
|
2134
|
+
fromPartial(object: DeepPartial<QueryRedelegationsRequest>): QueryRedelegationsRequest {
|
|
2135
|
+
const message = createBaseQueryRedelegationsRequest();
|
|
2136
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
2137
|
+
message.srcValidatorAddr = object.srcValidatorAddr ?? "";
|
|
2138
|
+
message.dstValidatorAddr = object.dstValidatorAddr ?? "";
|
|
2139
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2140
|
+
return message;
|
|
2141
|
+
},
|
|
2142
|
+
fromAmino(object: QueryRedelegationsRequestAmino): QueryRedelegationsRequest {
|
|
2143
|
+
const message = createBaseQueryRedelegationsRequest();
|
|
2144
|
+
if (object.delegator_addr !== undefined && object.delegator_addr !== null) {
|
|
2145
|
+
message.delegatorAddr = object.delegator_addr;
|
|
2146
|
+
}
|
|
2147
|
+
if (object.src_validator_addr !== undefined && object.src_validator_addr !== null) {
|
|
2148
|
+
message.srcValidatorAddr = object.src_validator_addr;
|
|
2149
|
+
}
|
|
2150
|
+
if (object.dst_validator_addr !== undefined && object.dst_validator_addr !== null) {
|
|
2151
|
+
message.dstValidatorAddr = object.dst_validator_addr;
|
|
2152
|
+
}
|
|
2153
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2154
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2155
|
+
}
|
|
2156
|
+
return message;
|
|
2157
|
+
},
|
|
2158
|
+
toAmino(message: QueryRedelegationsRequest): QueryRedelegationsRequestAmino {
|
|
2159
|
+
const obj: any = {};
|
|
2160
|
+
obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr;
|
|
2161
|
+
obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr;
|
|
2162
|
+
obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr;
|
|
2163
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2164
|
+
return obj;
|
|
2165
|
+
},
|
|
2166
|
+
fromAminoMsg(object: QueryRedelegationsRequestAminoMsg): QueryRedelegationsRequest {
|
|
2167
|
+
return QueryRedelegationsRequest.fromAmino(object.value);
|
|
2168
|
+
},
|
|
2169
|
+
toAminoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestAminoMsg {
|
|
2170
|
+
return {
|
|
2171
|
+
type: "cosmos-sdk/QueryRedelegationsRequest",
|
|
2172
|
+
value: QueryRedelegationsRequest.toAmino(message)
|
|
2173
|
+
};
|
|
2174
|
+
},
|
|
2175
|
+
fromProtoMsg(message: QueryRedelegationsRequestProtoMsg): QueryRedelegationsRequest {
|
|
2176
|
+
return QueryRedelegationsRequest.decode(message.value);
|
|
2177
|
+
},
|
|
2178
|
+
toProto(message: QueryRedelegationsRequest): Uint8Array {
|
|
2179
|
+
return QueryRedelegationsRequest.encode(message).finish();
|
|
2180
|
+
},
|
|
2181
|
+
toProtoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestProtoMsg {
|
|
2182
|
+
return {
|
|
2183
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest",
|
|
2184
|
+
value: QueryRedelegationsRequest.encode(message).finish()
|
|
2185
|
+
};
|
|
2186
|
+
}
|
|
2187
|
+
};
|
|
2188
|
+
GlobalDecoderRegistry.register(QueryRedelegationsRequest.typeUrl, QueryRedelegationsRequest);
|
|
2189
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryRedelegationsRequest.aminoType, QueryRedelegationsRequest.typeUrl);
|
|
2190
|
+
function createBaseQueryRedelegationsResponse(): QueryRedelegationsResponse {
|
|
2191
|
+
return {
|
|
2192
|
+
redelegationResponses: [],
|
|
2193
|
+
pagination: undefined
|
|
2194
|
+
};
|
|
2195
|
+
}
|
|
2196
|
+
export const QueryRedelegationsResponse = {
|
|
2197
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse",
|
|
2198
|
+
aminoType: "cosmos-sdk/QueryRedelegationsResponse",
|
|
2199
|
+
is(o: any): o is QueryRedelegationsResponse {
|
|
2200
|
+
return o && (o.$typeUrl === QueryRedelegationsResponse.typeUrl || Array.isArray(o.redelegationResponses) && (!o.redelegationResponses.length || RedelegationResponse.is(o.redelegationResponses[0])));
|
|
2201
|
+
},
|
|
2202
|
+
isAmino(o: any): o is QueryRedelegationsResponseAmino {
|
|
2203
|
+
return o && (o.$typeUrl === QueryRedelegationsResponse.typeUrl || Array.isArray(o.redelegation_responses) && (!o.redelegation_responses.length || RedelegationResponse.isAmino(o.redelegation_responses[0])));
|
|
2204
|
+
},
|
|
2205
|
+
encode(message: QueryRedelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2206
|
+
for (const v of message.redelegationResponses) {
|
|
2207
|
+
RedelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
2208
|
+
}
|
|
2209
|
+
if (message.pagination !== undefined) {
|
|
2210
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2211
|
+
}
|
|
2212
|
+
return writer;
|
|
2213
|
+
},
|
|
2214
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsResponse {
|
|
2215
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2216
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2217
|
+
const message = createBaseQueryRedelegationsResponse();
|
|
2218
|
+
while (reader.pos < end) {
|
|
2219
|
+
const tag = reader.uint32();
|
|
2220
|
+
switch (tag >>> 3) {
|
|
2221
|
+
case 1:
|
|
2222
|
+
message.redelegationResponses.push(RedelegationResponse.decode(reader, reader.uint32()));
|
|
2223
|
+
break;
|
|
2224
|
+
case 2:
|
|
2225
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2226
|
+
break;
|
|
2227
|
+
default:
|
|
2228
|
+
reader.skipType(tag & 7);
|
|
2229
|
+
break;
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
return message;
|
|
2233
|
+
},
|
|
2234
|
+
fromPartial(object: DeepPartial<QueryRedelegationsResponse>): QueryRedelegationsResponse {
|
|
2235
|
+
const message = createBaseQueryRedelegationsResponse();
|
|
2236
|
+
message.redelegationResponses = object.redelegationResponses?.map(e => RedelegationResponse.fromPartial(e)) || [];
|
|
2237
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2238
|
+
return message;
|
|
2239
|
+
},
|
|
2240
|
+
fromAmino(object: QueryRedelegationsResponseAmino): QueryRedelegationsResponse {
|
|
2241
|
+
const message = createBaseQueryRedelegationsResponse();
|
|
2242
|
+
message.redelegationResponses = object.redelegation_responses?.map(e => RedelegationResponse.fromAmino(e)) || [];
|
|
2243
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2244
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2245
|
+
}
|
|
2246
|
+
return message;
|
|
2247
|
+
},
|
|
2248
|
+
toAmino(message: QueryRedelegationsResponse): QueryRedelegationsResponseAmino {
|
|
2249
|
+
const obj: any = {};
|
|
2250
|
+
if (message.redelegationResponses) {
|
|
2251
|
+
obj.redelegation_responses = message.redelegationResponses.map(e => e ? RedelegationResponse.toAmino(e) : undefined);
|
|
2252
|
+
} else {
|
|
2253
|
+
obj.redelegation_responses = message.redelegationResponses;
|
|
2254
|
+
}
|
|
2255
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2256
|
+
return obj;
|
|
2257
|
+
},
|
|
2258
|
+
fromAminoMsg(object: QueryRedelegationsResponseAminoMsg): QueryRedelegationsResponse {
|
|
2259
|
+
return QueryRedelegationsResponse.fromAmino(object.value);
|
|
2260
|
+
},
|
|
2261
|
+
toAminoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseAminoMsg {
|
|
2262
|
+
return {
|
|
2263
|
+
type: "cosmos-sdk/QueryRedelegationsResponse",
|
|
2264
|
+
value: QueryRedelegationsResponse.toAmino(message)
|
|
2265
|
+
};
|
|
2266
|
+
},
|
|
2267
|
+
fromProtoMsg(message: QueryRedelegationsResponseProtoMsg): QueryRedelegationsResponse {
|
|
2268
|
+
return QueryRedelegationsResponse.decode(message.value);
|
|
2269
|
+
},
|
|
2270
|
+
toProto(message: QueryRedelegationsResponse): Uint8Array {
|
|
2271
|
+
return QueryRedelegationsResponse.encode(message).finish();
|
|
2272
|
+
},
|
|
2273
|
+
toProtoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseProtoMsg {
|
|
2274
|
+
return {
|
|
2275
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse",
|
|
2276
|
+
value: QueryRedelegationsResponse.encode(message).finish()
|
|
2277
|
+
};
|
|
2278
|
+
}
|
|
2279
|
+
};
|
|
2280
|
+
GlobalDecoderRegistry.register(QueryRedelegationsResponse.typeUrl, QueryRedelegationsResponse);
|
|
2281
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryRedelegationsResponse.aminoType, QueryRedelegationsResponse.typeUrl);
|
|
2282
|
+
function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest {
|
|
2283
|
+
return {
|
|
2284
|
+
delegatorAddr: "",
|
|
2285
|
+
pagination: undefined
|
|
2286
|
+
};
|
|
2287
|
+
}
|
|
2288
|
+
export const QueryDelegatorValidatorsRequest = {
|
|
2289
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest",
|
|
2290
|
+
aminoType: "cosmos-sdk/QueryDelegatorValidatorsRequest",
|
|
2291
|
+
is(o: any): o is QueryDelegatorValidatorsRequest {
|
|
2292
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorsRequest.typeUrl || typeof o.delegatorAddr === "string");
|
|
2293
|
+
},
|
|
2294
|
+
isAmino(o: any): o is QueryDelegatorValidatorsRequestAmino {
|
|
2295
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorsRequest.typeUrl || typeof o.delegator_addr === "string");
|
|
2296
|
+
},
|
|
2297
|
+
encode(message: QueryDelegatorValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2298
|
+
if (message.delegatorAddr !== "") {
|
|
2299
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
2300
|
+
}
|
|
2301
|
+
if (message.pagination !== undefined) {
|
|
2302
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2303
|
+
}
|
|
2304
|
+
return writer;
|
|
2305
|
+
},
|
|
2306
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest {
|
|
2307
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2308
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2309
|
+
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
2310
|
+
while (reader.pos < end) {
|
|
2311
|
+
const tag = reader.uint32();
|
|
2312
|
+
switch (tag >>> 3) {
|
|
2313
|
+
case 1:
|
|
2314
|
+
message.delegatorAddr = reader.string();
|
|
2315
|
+
break;
|
|
2316
|
+
case 2:
|
|
2317
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2318
|
+
break;
|
|
2319
|
+
default:
|
|
2320
|
+
reader.skipType(tag & 7);
|
|
2321
|
+
break;
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
return message;
|
|
2325
|
+
},
|
|
2326
|
+
fromPartial(object: DeepPartial<QueryDelegatorValidatorsRequest>): QueryDelegatorValidatorsRequest {
|
|
2327
|
+
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
2328
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
2329
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2330
|
+
return message;
|
|
2331
|
+
},
|
|
2332
|
+
fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest {
|
|
2333
|
+
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
2334
|
+
if (object.delegator_addr !== undefined && object.delegator_addr !== null) {
|
|
2335
|
+
message.delegatorAddr = object.delegator_addr;
|
|
2336
|
+
}
|
|
2337
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2338
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2339
|
+
}
|
|
2340
|
+
return message;
|
|
2341
|
+
},
|
|
2342
|
+
toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino {
|
|
2343
|
+
const obj: any = {};
|
|
2344
|
+
obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr;
|
|
2345
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2346
|
+
return obj;
|
|
2347
|
+
},
|
|
2348
|
+
fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest {
|
|
2349
|
+
return QueryDelegatorValidatorsRequest.fromAmino(object.value);
|
|
2350
|
+
},
|
|
2351
|
+
toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg {
|
|
2352
|
+
return {
|
|
2353
|
+
type: "cosmos-sdk/QueryDelegatorValidatorsRequest",
|
|
2354
|
+
value: QueryDelegatorValidatorsRequest.toAmino(message)
|
|
2355
|
+
};
|
|
2356
|
+
},
|
|
2357
|
+
fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest {
|
|
2358
|
+
return QueryDelegatorValidatorsRequest.decode(message.value);
|
|
2359
|
+
},
|
|
2360
|
+
toProto(message: QueryDelegatorValidatorsRequest): Uint8Array {
|
|
2361
|
+
return QueryDelegatorValidatorsRequest.encode(message).finish();
|
|
2362
|
+
},
|
|
2363
|
+
toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg {
|
|
2364
|
+
return {
|
|
2365
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest",
|
|
2366
|
+
value: QueryDelegatorValidatorsRequest.encode(message).finish()
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
};
|
|
2370
|
+
GlobalDecoderRegistry.register(QueryDelegatorValidatorsRequest.typeUrl, QueryDelegatorValidatorsRequest);
|
|
2371
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorValidatorsRequest.aminoType, QueryDelegatorValidatorsRequest.typeUrl);
|
|
2372
|
+
function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse {
|
|
2373
|
+
return {
|
|
2374
|
+
validators: [],
|
|
2375
|
+
pagination: undefined
|
|
2376
|
+
};
|
|
2377
|
+
}
|
|
2378
|
+
export const QueryDelegatorValidatorsResponse = {
|
|
2379
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse",
|
|
2380
|
+
aminoType: "cosmos-sdk/QueryDelegatorValidatorsResponse",
|
|
2381
|
+
is(o: any): o is QueryDelegatorValidatorsResponse {
|
|
2382
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorsResponse.typeUrl || Array.isArray(o.validators) && (!o.validators.length || Validator.is(o.validators[0])));
|
|
2383
|
+
},
|
|
2384
|
+
isAmino(o: any): o is QueryDelegatorValidatorsResponseAmino {
|
|
2385
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorsResponse.typeUrl || Array.isArray(o.validators) && (!o.validators.length || Validator.isAmino(o.validators[0])));
|
|
2386
|
+
},
|
|
2387
|
+
encode(message: QueryDelegatorValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2388
|
+
for (const v of message.validators) {
|
|
2389
|
+
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
2390
|
+
}
|
|
2391
|
+
if (message.pagination !== undefined) {
|
|
2392
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2393
|
+
}
|
|
2394
|
+
return writer;
|
|
2395
|
+
},
|
|
2396
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse {
|
|
2397
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2398
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2399
|
+
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
2400
|
+
while (reader.pos < end) {
|
|
2401
|
+
const tag = reader.uint32();
|
|
2402
|
+
switch (tag >>> 3) {
|
|
2403
|
+
case 1:
|
|
2404
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
2405
|
+
break;
|
|
2406
|
+
case 2:
|
|
2407
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2408
|
+
break;
|
|
2409
|
+
default:
|
|
2410
|
+
reader.skipType(tag & 7);
|
|
2411
|
+
break;
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
return message;
|
|
2415
|
+
},
|
|
2416
|
+
fromPartial(object: DeepPartial<QueryDelegatorValidatorsResponse>): QueryDelegatorValidatorsResponse {
|
|
2417
|
+
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
2418
|
+
message.validators = object.validators?.map(e => Validator.fromPartial(e)) || [];
|
|
2419
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2420
|
+
return message;
|
|
2421
|
+
},
|
|
2422
|
+
fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse {
|
|
2423
|
+
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
2424
|
+
message.validators = object.validators?.map(e => Validator.fromAmino(e)) || [];
|
|
2425
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2426
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2427
|
+
}
|
|
2428
|
+
return message;
|
|
2429
|
+
},
|
|
2430
|
+
toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino {
|
|
2431
|
+
const obj: any = {};
|
|
2432
|
+
if (message.validators) {
|
|
2433
|
+
obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined);
|
|
2434
|
+
} else {
|
|
2435
|
+
obj.validators = message.validators;
|
|
2436
|
+
}
|
|
2437
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2438
|
+
return obj;
|
|
2439
|
+
},
|
|
2440
|
+
fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse {
|
|
2441
|
+
return QueryDelegatorValidatorsResponse.fromAmino(object.value);
|
|
2442
|
+
},
|
|
2443
|
+
toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg {
|
|
2444
|
+
return {
|
|
2445
|
+
type: "cosmos-sdk/QueryDelegatorValidatorsResponse",
|
|
2446
|
+
value: QueryDelegatorValidatorsResponse.toAmino(message)
|
|
2447
|
+
};
|
|
2448
|
+
},
|
|
2449
|
+
fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse {
|
|
2450
|
+
return QueryDelegatorValidatorsResponse.decode(message.value);
|
|
2451
|
+
},
|
|
2452
|
+
toProto(message: QueryDelegatorValidatorsResponse): Uint8Array {
|
|
2453
|
+
return QueryDelegatorValidatorsResponse.encode(message).finish();
|
|
2454
|
+
},
|
|
2455
|
+
toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg {
|
|
2456
|
+
return {
|
|
2457
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse",
|
|
2458
|
+
value: QueryDelegatorValidatorsResponse.encode(message).finish()
|
|
2459
|
+
};
|
|
2460
|
+
}
|
|
2461
|
+
};
|
|
2462
|
+
GlobalDecoderRegistry.register(QueryDelegatorValidatorsResponse.typeUrl, QueryDelegatorValidatorsResponse);
|
|
2463
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorValidatorsResponse.aminoType, QueryDelegatorValidatorsResponse.typeUrl);
|
|
2464
|
+
function createBaseQueryDelegatorValidatorRequest(): QueryDelegatorValidatorRequest {
|
|
2465
|
+
return {
|
|
2466
|
+
delegatorAddr: "",
|
|
2467
|
+
validatorAddr: ""
|
|
2468
|
+
};
|
|
2469
|
+
}
|
|
2470
|
+
export const QueryDelegatorValidatorRequest = {
|
|
2471
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest",
|
|
2472
|
+
aminoType: "cosmos-sdk/QueryDelegatorValidatorRequest",
|
|
2473
|
+
is(o: any): o is QueryDelegatorValidatorRequest {
|
|
2474
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorRequest.typeUrl || typeof o.delegatorAddr === "string" && typeof o.validatorAddr === "string");
|
|
2475
|
+
},
|
|
2476
|
+
isAmino(o: any): o is QueryDelegatorValidatorRequestAmino {
|
|
2477
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorRequest.typeUrl || typeof o.delegator_addr === "string" && typeof o.validator_addr === "string");
|
|
2478
|
+
},
|
|
2479
|
+
encode(message: QueryDelegatorValidatorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2480
|
+
if (message.delegatorAddr !== "") {
|
|
2481
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
2482
|
+
}
|
|
2483
|
+
if (message.validatorAddr !== "") {
|
|
2484
|
+
writer.uint32(18).string(message.validatorAddr);
|
|
2485
|
+
}
|
|
2486
|
+
return writer;
|
|
2487
|
+
},
|
|
2488
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorRequest {
|
|
2489
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2490
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2491
|
+
const message = createBaseQueryDelegatorValidatorRequest();
|
|
2492
|
+
while (reader.pos < end) {
|
|
2493
|
+
const tag = reader.uint32();
|
|
2494
|
+
switch (tag >>> 3) {
|
|
2495
|
+
case 1:
|
|
2496
|
+
message.delegatorAddr = reader.string();
|
|
2497
|
+
break;
|
|
2498
|
+
case 2:
|
|
2499
|
+
message.validatorAddr = reader.string();
|
|
2500
|
+
break;
|
|
2501
|
+
default:
|
|
2502
|
+
reader.skipType(tag & 7);
|
|
2503
|
+
break;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
return message;
|
|
2507
|
+
},
|
|
2508
|
+
fromPartial(object: DeepPartial<QueryDelegatorValidatorRequest>): QueryDelegatorValidatorRequest {
|
|
2509
|
+
const message = createBaseQueryDelegatorValidatorRequest();
|
|
2510
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
2511
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
2512
|
+
return message;
|
|
2513
|
+
},
|
|
2514
|
+
fromAmino(object: QueryDelegatorValidatorRequestAmino): QueryDelegatorValidatorRequest {
|
|
2515
|
+
const message = createBaseQueryDelegatorValidatorRequest();
|
|
2516
|
+
if (object.delegator_addr !== undefined && object.delegator_addr !== null) {
|
|
2517
|
+
message.delegatorAddr = object.delegator_addr;
|
|
2518
|
+
}
|
|
2519
|
+
if (object.validator_addr !== undefined && object.validator_addr !== null) {
|
|
2520
|
+
message.validatorAddr = object.validator_addr;
|
|
2521
|
+
}
|
|
2522
|
+
return message;
|
|
2523
|
+
},
|
|
2524
|
+
toAmino(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAmino {
|
|
2525
|
+
const obj: any = {};
|
|
2526
|
+
obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr;
|
|
2527
|
+
obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr;
|
|
2528
|
+
return obj;
|
|
2529
|
+
},
|
|
2530
|
+
fromAminoMsg(object: QueryDelegatorValidatorRequestAminoMsg): QueryDelegatorValidatorRequest {
|
|
2531
|
+
return QueryDelegatorValidatorRequest.fromAmino(object.value);
|
|
2532
|
+
},
|
|
2533
|
+
toAminoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAminoMsg {
|
|
2534
|
+
return {
|
|
2535
|
+
type: "cosmos-sdk/QueryDelegatorValidatorRequest",
|
|
2536
|
+
value: QueryDelegatorValidatorRequest.toAmino(message)
|
|
2537
|
+
};
|
|
2538
|
+
},
|
|
2539
|
+
fromProtoMsg(message: QueryDelegatorValidatorRequestProtoMsg): QueryDelegatorValidatorRequest {
|
|
2540
|
+
return QueryDelegatorValidatorRequest.decode(message.value);
|
|
2541
|
+
},
|
|
2542
|
+
toProto(message: QueryDelegatorValidatorRequest): Uint8Array {
|
|
2543
|
+
return QueryDelegatorValidatorRequest.encode(message).finish();
|
|
2544
|
+
},
|
|
2545
|
+
toProtoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestProtoMsg {
|
|
2546
|
+
return {
|
|
2547
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest",
|
|
2548
|
+
value: QueryDelegatorValidatorRequest.encode(message).finish()
|
|
2549
|
+
};
|
|
2550
|
+
}
|
|
2551
|
+
};
|
|
2552
|
+
GlobalDecoderRegistry.register(QueryDelegatorValidatorRequest.typeUrl, QueryDelegatorValidatorRequest);
|
|
2553
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorValidatorRequest.aminoType, QueryDelegatorValidatorRequest.typeUrl);
|
|
2554
|
+
function createBaseQueryDelegatorValidatorResponse(): QueryDelegatorValidatorResponse {
|
|
2555
|
+
return {
|
|
2556
|
+
validator: Validator.fromPartial({})
|
|
2557
|
+
};
|
|
2558
|
+
}
|
|
2559
|
+
export const QueryDelegatorValidatorResponse = {
|
|
2560
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse",
|
|
2561
|
+
aminoType: "cosmos-sdk/QueryDelegatorValidatorResponse",
|
|
2562
|
+
is(o: any): o is QueryDelegatorValidatorResponse {
|
|
2563
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorResponse.typeUrl || Validator.is(o.validator));
|
|
2564
|
+
},
|
|
2565
|
+
isAmino(o: any): o is QueryDelegatorValidatorResponseAmino {
|
|
2566
|
+
return o && (o.$typeUrl === QueryDelegatorValidatorResponse.typeUrl || Validator.isAmino(o.validator));
|
|
2567
|
+
},
|
|
2568
|
+
encode(message: QueryDelegatorValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2569
|
+
if (message.validator !== undefined) {
|
|
2570
|
+
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
|
2571
|
+
}
|
|
2572
|
+
return writer;
|
|
2573
|
+
},
|
|
2574
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorResponse {
|
|
2575
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2576
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2577
|
+
const message = createBaseQueryDelegatorValidatorResponse();
|
|
2578
|
+
while (reader.pos < end) {
|
|
2579
|
+
const tag = reader.uint32();
|
|
2580
|
+
switch (tag >>> 3) {
|
|
2581
|
+
case 1:
|
|
2582
|
+
message.validator = Validator.decode(reader, reader.uint32());
|
|
2583
|
+
break;
|
|
2584
|
+
default:
|
|
2585
|
+
reader.skipType(tag & 7);
|
|
2586
|
+
break;
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
return message;
|
|
2590
|
+
},
|
|
2591
|
+
fromPartial(object: DeepPartial<QueryDelegatorValidatorResponse>): QueryDelegatorValidatorResponse {
|
|
2592
|
+
const message = createBaseQueryDelegatorValidatorResponse();
|
|
2593
|
+
message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined;
|
|
2594
|
+
return message;
|
|
2595
|
+
},
|
|
2596
|
+
fromAmino(object: QueryDelegatorValidatorResponseAmino): QueryDelegatorValidatorResponse {
|
|
2597
|
+
const message = createBaseQueryDelegatorValidatorResponse();
|
|
2598
|
+
if (object.validator !== undefined && object.validator !== null) {
|
|
2599
|
+
message.validator = Validator.fromAmino(object.validator);
|
|
2600
|
+
}
|
|
2601
|
+
return message;
|
|
2602
|
+
},
|
|
2603
|
+
toAmino(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAmino {
|
|
2604
|
+
const obj: any = {};
|
|
2605
|
+
obj.validator = message.validator ? Validator.toAmino(message.validator) : Validator.toAmino(Validator.fromPartial({}));
|
|
2606
|
+
return obj;
|
|
2607
|
+
},
|
|
2608
|
+
fromAminoMsg(object: QueryDelegatorValidatorResponseAminoMsg): QueryDelegatorValidatorResponse {
|
|
2609
|
+
return QueryDelegatorValidatorResponse.fromAmino(object.value);
|
|
2610
|
+
},
|
|
2611
|
+
toAminoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAminoMsg {
|
|
2612
|
+
return {
|
|
2613
|
+
type: "cosmos-sdk/QueryDelegatorValidatorResponse",
|
|
2614
|
+
value: QueryDelegatorValidatorResponse.toAmino(message)
|
|
2615
|
+
};
|
|
2616
|
+
},
|
|
2617
|
+
fromProtoMsg(message: QueryDelegatorValidatorResponseProtoMsg): QueryDelegatorValidatorResponse {
|
|
2618
|
+
return QueryDelegatorValidatorResponse.decode(message.value);
|
|
2619
|
+
},
|
|
2620
|
+
toProto(message: QueryDelegatorValidatorResponse): Uint8Array {
|
|
2621
|
+
return QueryDelegatorValidatorResponse.encode(message).finish();
|
|
2622
|
+
},
|
|
2623
|
+
toProtoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseProtoMsg {
|
|
2624
|
+
return {
|
|
2625
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse",
|
|
2626
|
+
value: QueryDelegatorValidatorResponse.encode(message).finish()
|
|
2627
|
+
};
|
|
2628
|
+
}
|
|
2629
|
+
};
|
|
2630
|
+
GlobalDecoderRegistry.register(QueryDelegatorValidatorResponse.typeUrl, QueryDelegatorValidatorResponse);
|
|
2631
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorValidatorResponse.aminoType, QueryDelegatorValidatorResponse.typeUrl);
|
|
2632
|
+
function createBaseQueryHistoricalInfoRequest(): QueryHistoricalInfoRequest {
|
|
2633
|
+
return {
|
|
2634
|
+
height: BigInt(0)
|
|
2635
|
+
};
|
|
2636
|
+
}
|
|
2637
|
+
export const QueryHistoricalInfoRequest = {
|
|
2638
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest",
|
|
2639
|
+
aminoType: "cosmos-sdk/QueryHistoricalInfoRequest",
|
|
2640
|
+
is(o: any): o is QueryHistoricalInfoRequest {
|
|
2641
|
+
return o && (o.$typeUrl === QueryHistoricalInfoRequest.typeUrl || typeof o.height === "bigint");
|
|
2642
|
+
},
|
|
2643
|
+
isAmino(o: any): o is QueryHistoricalInfoRequestAmino {
|
|
2644
|
+
return o && (o.$typeUrl === QueryHistoricalInfoRequest.typeUrl || typeof o.height === "bigint");
|
|
2645
|
+
},
|
|
2646
|
+
encode(message: QueryHistoricalInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2647
|
+
if (message.height !== BigInt(0)) {
|
|
2648
|
+
writer.uint32(8).int64(message.height);
|
|
2649
|
+
}
|
|
2650
|
+
return writer;
|
|
2651
|
+
},
|
|
2652
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoRequest {
|
|
2653
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2654
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2655
|
+
const message = createBaseQueryHistoricalInfoRequest();
|
|
2656
|
+
while (reader.pos < end) {
|
|
2657
|
+
const tag = reader.uint32();
|
|
2658
|
+
switch (tag >>> 3) {
|
|
2659
|
+
case 1:
|
|
2660
|
+
message.height = reader.int64();
|
|
2661
|
+
break;
|
|
2662
|
+
default:
|
|
2663
|
+
reader.skipType(tag & 7);
|
|
2664
|
+
break;
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
return message;
|
|
2668
|
+
},
|
|
2669
|
+
fromPartial(object: DeepPartial<QueryHistoricalInfoRequest>): QueryHistoricalInfoRequest {
|
|
2670
|
+
const message = createBaseQueryHistoricalInfoRequest();
|
|
2671
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
2672
|
+
return message;
|
|
2673
|
+
},
|
|
2674
|
+
fromAmino(object: QueryHistoricalInfoRequestAmino): QueryHistoricalInfoRequest {
|
|
2675
|
+
const message = createBaseQueryHistoricalInfoRequest();
|
|
2676
|
+
if (object.height !== undefined && object.height !== null) {
|
|
2677
|
+
message.height = BigInt(object.height);
|
|
2678
|
+
}
|
|
2679
|
+
return message;
|
|
2680
|
+
},
|
|
2681
|
+
toAmino(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAmino {
|
|
2682
|
+
const obj: any = {};
|
|
2683
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
2684
|
+
return obj;
|
|
2685
|
+
},
|
|
2686
|
+
fromAminoMsg(object: QueryHistoricalInfoRequestAminoMsg): QueryHistoricalInfoRequest {
|
|
2687
|
+
return QueryHistoricalInfoRequest.fromAmino(object.value);
|
|
2688
|
+
},
|
|
2689
|
+
toAminoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAminoMsg {
|
|
2690
|
+
return {
|
|
2691
|
+
type: "cosmos-sdk/QueryHistoricalInfoRequest",
|
|
2692
|
+
value: QueryHistoricalInfoRequest.toAmino(message)
|
|
2693
|
+
};
|
|
2694
|
+
},
|
|
2695
|
+
fromProtoMsg(message: QueryHistoricalInfoRequestProtoMsg): QueryHistoricalInfoRequest {
|
|
2696
|
+
return QueryHistoricalInfoRequest.decode(message.value);
|
|
2697
|
+
},
|
|
2698
|
+
toProto(message: QueryHistoricalInfoRequest): Uint8Array {
|
|
2699
|
+
return QueryHistoricalInfoRequest.encode(message).finish();
|
|
2700
|
+
},
|
|
2701
|
+
toProtoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestProtoMsg {
|
|
2702
|
+
return {
|
|
2703
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest",
|
|
2704
|
+
value: QueryHistoricalInfoRequest.encode(message).finish()
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
};
|
|
2708
|
+
GlobalDecoderRegistry.register(QueryHistoricalInfoRequest.typeUrl, QueryHistoricalInfoRequest);
|
|
2709
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryHistoricalInfoRequest.aminoType, QueryHistoricalInfoRequest.typeUrl);
|
|
2710
|
+
function createBaseQueryHistoricalInfoResponse(): QueryHistoricalInfoResponse {
|
|
2711
|
+
return {
|
|
2712
|
+
hist: undefined
|
|
2713
|
+
};
|
|
2714
|
+
}
|
|
2715
|
+
export const QueryHistoricalInfoResponse = {
|
|
2716
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse",
|
|
2717
|
+
aminoType: "cosmos-sdk/QueryHistoricalInfoResponse",
|
|
2718
|
+
is(o: any): o is QueryHistoricalInfoResponse {
|
|
2719
|
+
return o && o.$typeUrl === QueryHistoricalInfoResponse.typeUrl;
|
|
2720
|
+
},
|
|
2721
|
+
isAmino(o: any): o is QueryHistoricalInfoResponseAmino {
|
|
2722
|
+
return o && o.$typeUrl === QueryHistoricalInfoResponse.typeUrl;
|
|
2723
|
+
},
|
|
2724
|
+
encode(message: QueryHistoricalInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2725
|
+
if (message.hist !== undefined) {
|
|
2726
|
+
HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim();
|
|
2727
|
+
}
|
|
2728
|
+
return writer;
|
|
2729
|
+
},
|
|
2730
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoResponse {
|
|
2731
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2732
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2733
|
+
const message = createBaseQueryHistoricalInfoResponse();
|
|
2734
|
+
while (reader.pos < end) {
|
|
2735
|
+
const tag = reader.uint32();
|
|
2736
|
+
switch (tag >>> 3) {
|
|
2737
|
+
case 1:
|
|
2738
|
+
message.hist = HistoricalInfo.decode(reader, reader.uint32());
|
|
2739
|
+
break;
|
|
2740
|
+
default:
|
|
2741
|
+
reader.skipType(tag & 7);
|
|
2742
|
+
break;
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
return message;
|
|
2746
|
+
},
|
|
2747
|
+
fromPartial(object: DeepPartial<QueryHistoricalInfoResponse>): QueryHistoricalInfoResponse {
|
|
2748
|
+
const message = createBaseQueryHistoricalInfoResponse();
|
|
2749
|
+
message.hist = object.hist !== undefined && object.hist !== null ? HistoricalInfo.fromPartial(object.hist) : undefined;
|
|
2750
|
+
return message;
|
|
2751
|
+
},
|
|
2752
|
+
fromAmino(object: QueryHistoricalInfoResponseAmino): QueryHistoricalInfoResponse {
|
|
2753
|
+
const message = createBaseQueryHistoricalInfoResponse();
|
|
2754
|
+
if (object.hist !== undefined && object.hist !== null) {
|
|
2755
|
+
message.hist = HistoricalInfo.fromAmino(object.hist);
|
|
2756
|
+
}
|
|
2757
|
+
return message;
|
|
2758
|
+
},
|
|
2759
|
+
toAmino(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAmino {
|
|
2760
|
+
const obj: any = {};
|
|
2761
|
+
obj.hist = message.hist ? HistoricalInfo.toAmino(message.hist) : undefined;
|
|
2762
|
+
return obj;
|
|
2763
|
+
},
|
|
2764
|
+
fromAminoMsg(object: QueryHistoricalInfoResponseAminoMsg): QueryHistoricalInfoResponse {
|
|
2765
|
+
return QueryHistoricalInfoResponse.fromAmino(object.value);
|
|
2766
|
+
},
|
|
2767
|
+
toAminoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAminoMsg {
|
|
2768
|
+
return {
|
|
2769
|
+
type: "cosmos-sdk/QueryHistoricalInfoResponse",
|
|
2770
|
+
value: QueryHistoricalInfoResponse.toAmino(message)
|
|
2771
|
+
};
|
|
2772
|
+
},
|
|
2773
|
+
fromProtoMsg(message: QueryHistoricalInfoResponseProtoMsg): QueryHistoricalInfoResponse {
|
|
2774
|
+
return QueryHistoricalInfoResponse.decode(message.value);
|
|
2775
|
+
},
|
|
2776
|
+
toProto(message: QueryHistoricalInfoResponse): Uint8Array {
|
|
2777
|
+
return QueryHistoricalInfoResponse.encode(message).finish();
|
|
2778
|
+
},
|
|
2779
|
+
toProtoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseProtoMsg {
|
|
2780
|
+
return {
|
|
2781
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse",
|
|
2782
|
+
value: QueryHistoricalInfoResponse.encode(message).finish()
|
|
2783
|
+
};
|
|
2784
|
+
}
|
|
2785
|
+
};
|
|
2786
|
+
GlobalDecoderRegistry.register(QueryHistoricalInfoResponse.typeUrl, QueryHistoricalInfoResponse);
|
|
2787
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryHistoricalInfoResponse.aminoType, QueryHistoricalInfoResponse.typeUrl);
|
|
2788
|
+
function createBaseQueryPoolRequest(): QueryPoolRequest {
|
|
2789
|
+
return {};
|
|
2790
|
+
}
|
|
2791
|
+
export const QueryPoolRequest = {
|
|
2792
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest",
|
|
2793
|
+
aminoType: "cosmos-sdk/QueryPoolRequest",
|
|
2794
|
+
is(o: any): o is QueryPoolRequest {
|
|
2795
|
+
return o && o.$typeUrl === QueryPoolRequest.typeUrl;
|
|
2796
|
+
},
|
|
2797
|
+
isAmino(o: any): o is QueryPoolRequestAmino {
|
|
2798
|
+
return o && o.$typeUrl === QueryPoolRequest.typeUrl;
|
|
2799
|
+
},
|
|
2800
|
+
encode(_: QueryPoolRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2801
|
+
return writer;
|
|
2802
|
+
},
|
|
2803
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolRequest {
|
|
2804
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2805
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2806
|
+
const message = createBaseQueryPoolRequest();
|
|
2807
|
+
while (reader.pos < end) {
|
|
2808
|
+
const tag = reader.uint32();
|
|
2809
|
+
switch (tag >>> 3) {
|
|
2810
|
+
default:
|
|
2811
|
+
reader.skipType(tag & 7);
|
|
2812
|
+
break;
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
return message;
|
|
2816
|
+
},
|
|
2817
|
+
fromPartial(_: DeepPartial<QueryPoolRequest>): QueryPoolRequest {
|
|
2818
|
+
const message = createBaseQueryPoolRequest();
|
|
2819
|
+
return message;
|
|
2820
|
+
},
|
|
2821
|
+
fromAmino(_: QueryPoolRequestAmino): QueryPoolRequest {
|
|
2822
|
+
const message = createBaseQueryPoolRequest();
|
|
2823
|
+
return message;
|
|
2824
|
+
},
|
|
2825
|
+
toAmino(_: QueryPoolRequest): QueryPoolRequestAmino {
|
|
2826
|
+
const obj: any = {};
|
|
2827
|
+
return obj;
|
|
2828
|
+
},
|
|
2829
|
+
fromAminoMsg(object: QueryPoolRequestAminoMsg): QueryPoolRequest {
|
|
2830
|
+
return QueryPoolRequest.fromAmino(object.value);
|
|
2831
|
+
},
|
|
2832
|
+
toAminoMsg(message: QueryPoolRequest): QueryPoolRequestAminoMsg {
|
|
2833
|
+
return {
|
|
2834
|
+
type: "cosmos-sdk/QueryPoolRequest",
|
|
2835
|
+
value: QueryPoolRequest.toAmino(message)
|
|
2836
|
+
};
|
|
2837
|
+
},
|
|
2838
|
+
fromProtoMsg(message: QueryPoolRequestProtoMsg): QueryPoolRequest {
|
|
2839
|
+
return QueryPoolRequest.decode(message.value);
|
|
2840
|
+
},
|
|
2841
|
+
toProto(message: QueryPoolRequest): Uint8Array {
|
|
2842
|
+
return QueryPoolRequest.encode(message).finish();
|
|
2843
|
+
},
|
|
2844
|
+
toProtoMsg(message: QueryPoolRequest): QueryPoolRequestProtoMsg {
|
|
2845
|
+
return {
|
|
2846
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest",
|
|
2847
|
+
value: QueryPoolRequest.encode(message).finish()
|
|
2848
|
+
};
|
|
2849
|
+
}
|
|
2850
|
+
};
|
|
2851
|
+
GlobalDecoderRegistry.register(QueryPoolRequest.typeUrl, QueryPoolRequest);
|
|
2852
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryPoolRequest.aminoType, QueryPoolRequest.typeUrl);
|
|
2853
|
+
function createBaseQueryPoolResponse(): QueryPoolResponse {
|
|
2854
|
+
return {
|
|
2855
|
+
pool: Pool.fromPartial({})
|
|
2856
|
+
};
|
|
2857
|
+
}
|
|
2858
|
+
export const QueryPoolResponse = {
|
|
2859
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse",
|
|
2860
|
+
aminoType: "cosmos-sdk/QueryPoolResponse",
|
|
2861
|
+
is(o: any): o is QueryPoolResponse {
|
|
2862
|
+
return o && (o.$typeUrl === QueryPoolResponse.typeUrl || Pool.is(o.pool));
|
|
2863
|
+
},
|
|
2864
|
+
isAmino(o: any): o is QueryPoolResponseAmino {
|
|
2865
|
+
return o && (o.$typeUrl === QueryPoolResponse.typeUrl || Pool.isAmino(o.pool));
|
|
2866
|
+
},
|
|
2867
|
+
encode(message: QueryPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2868
|
+
if (message.pool !== undefined) {
|
|
2869
|
+
Pool.encode(message.pool, writer.uint32(10).fork()).ldelim();
|
|
2870
|
+
}
|
|
2871
|
+
return writer;
|
|
2872
|
+
},
|
|
2873
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolResponse {
|
|
2874
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2875
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2876
|
+
const message = createBaseQueryPoolResponse();
|
|
2877
|
+
while (reader.pos < end) {
|
|
2878
|
+
const tag = reader.uint32();
|
|
2879
|
+
switch (tag >>> 3) {
|
|
2880
|
+
case 1:
|
|
2881
|
+
message.pool = Pool.decode(reader, reader.uint32());
|
|
2882
|
+
break;
|
|
2883
|
+
default:
|
|
2884
|
+
reader.skipType(tag & 7);
|
|
2885
|
+
break;
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
return message;
|
|
2889
|
+
},
|
|
2890
|
+
fromPartial(object: DeepPartial<QueryPoolResponse>): QueryPoolResponse {
|
|
2891
|
+
const message = createBaseQueryPoolResponse();
|
|
2892
|
+
message.pool = object.pool !== undefined && object.pool !== null ? Pool.fromPartial(object.pool) : undefined;
|
|
2893
|
+
return message;
|
|
2894
|
+
},
|
|
2895
|
+
fromAmino(object: QueryPoolResponseAmino): QueryPoolResponse {
|
|
2896
|
+
const message = createBaseQueryPoolResponse();
|
|
2897
|
+
if (object.pool !== undefined && object.pool !== null) {
|
|
2898
|
+
message.pool = Pool.fromAmino(object.pool);
|
|
2899
|
+
}
|
|
2900
|
+
return message;
|
|
2901
|
+
},
|
|
2902
|
+
toAmino(message: QueryPoolResponse): QueryPoolResponseAmino {
|
|
2903
|
+
const obj: any = {};
|
|
2904
|
+
obj.pool = message.pool ? Pool.toAmino(message.pool) : Pool.toAmino(Pool.fromPartial({}));
|
|
2905
|
+
return obj;
|
|
2906
|
+
},
|
|
2907
|
+
fromAminoMsg(object: QueryPoolResponseAminoMsg): QueryPoolResponse {
|
|
2908
|
+
return QueryPoolResponse.fromAmino(object.value);
|
|
2909
|
+
},
|
|
2910
|
+
toAminoMsg(message: QueryPoolResponse): QueryPoolResponseAminoMsg {
|
|
2911
|
+
return {
|
|
2912
|
+
type: "cosmos-sdk/QueryPoolResponse",
|
|
2913
|
+
value: QueryPoolResponse.toAmino(message)
|
|
2914
|
+
};
|
|
2915
|
+
},
|
|
2916
|
+
fromProtoMsg(message: QueryPoolResponseProtoMsg): QueryPoolResponse {
|
|
2917
|
+
return QueryPoolResponse.decode(message.value);
|
|
2918
|
+
},
|
|
2919
|
+
toProto(message: QueryPoolResponse): Uint8Array {
|
|
2920
|
+
return QueryPoolResponse.encode(message).finish();
|
|
2921
|
+
},
|
|
2922
|
+
toProtoMsg(message: QueryPoolResponse): QueryPoolResponseProtoMsg {
|
|
2923
|
+
return {
|
|
2924
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse",
|
|
2925
|
+
value: QueryPoolResponse.encode(message).finish()
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2928
|
+
};
|
|
2929
|
+
GlobalDecoderRegistry.register(QueryPoolResponse.typeUrl, QueryPoolResponse);
|
|
2930
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryPoolResponse.aminoType, QueryPoolResponse.typeUrl);
|
|
2931
|
+
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
2932
|
+
return {};
|
|
2933
|
+
}
|
|
2934
|
+
export const QueryParamsRequest = {
|
|
2935
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest",
|
|
2936
|
+
aminoType: "cosmos-sdk/QueryParamsRequest",
|
|
2937
|
+
is(o: any): o is QueryParamsRequest {
|
|
2938
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
2939
|
+
},
|
|
2940
|
+
isAmino(o: any): o is QueryParamsRequestAmino {
|
|
2941
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
2942
|
+
},
|
|
2943
|
+
encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2944
|
+
return writer;
|
|
2945
|
+
},
|
|
2946
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
|
|
2947
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2948
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2949
|
+
const message = createBaseQueryParamsRequest();
|
|
2950
|
+
while (reader.pos < end) {
|
|
2951
|
+
const tag = reader.uint32();
|
|
2952
|
+
switch (tag >>> 3) {
|
|
2953
|
+
default:
|
|
2954
|
+
reader.skipType(tag & 7);
|
|
2955
|
+
break;
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
return message;
|
|
2959
|
+
},
|
|
2960
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest {
|
|
2961
|
+
const message = createBaseQueryParamsRequest();
|
|
2962
|
+
return message;
|
|
2963
|
+
},
|
|
2964
|
+
fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest {
|
|
2965
|
+
const message = createBaseQueryParamsRequest();
|
|
2966
|
+
return message;
|
|
2967
|
+
},
|
|
2968
|
+
toAmino(_: QueryParamsRequest): QueryParamsRequestAmino {
|
|
2969
|
+
const obj: any = {};
|
|
2970
|
+
return obj;
|
|
2971
|
+
},
|
|
2972
|
+
fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest {
|
|
2973
|
+
return QueryParamsRequest.fromAmino(object.value);
|
|
2974
|
+
},
|
|
2975
|
+
toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg {
|
|
2976
|
+
return {
|
|
2977
|
+
type: "cosmos-sdk/QueryParamsRequest",
|
|
2978
|
+
value: QueryParamsRequest.toAmino(message)
|
|
2979
|
+
};
|
|
2980
|
+
},
|
|
2981
|
+
fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest {
|
|
2982
|
+
return QueryParamsRequest.decode(message.value);
|
|
2983
|
+
},
|
|
2984
|
+
toProto(message: QueryParamsRequest): Uint8Array {
|
|
2985
|
+
return QueryParamsRequest.encode(message).finish();
|
|
2986
|
+
},
|
|
2987
|
+
toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg {
|
|
2988
|
+
return {
|
|
2989
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest",
|
|
2990
|
+
value: QueryParamsRequest.encode(message).finish()
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2993
|
+
};
|
|
2994
|
+
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
2995
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
2996
|
+
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
2997
|
+
return {
|
|
2998
|
+
params: Params.fromPartial({})
|
|
2999
|
+
};
|
|
3000
|
+
}
|
|
3001
|
+
export const QueryParamsResponse = {
|
|
3002
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse",
|
|
3003
|
+
aminoType: "cosmos-sdk/QueryParamsResponse",
|
|
3004
|
+
is(o: any): o is QueryParamsResponse {
|
|
3005
|
+
return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.is(o.params));
|
|
3006
|
+
},
|
|
3007
|
+
isAmino(o: any): o is QueryParamsResponseAmino {
|
|
3008
|
+
return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.isAmino(o.params));
|
|
3009
|
+
},
|
|
3010
|
+
encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3011
|
+
if (message.params !== undefined) {
|
|
3012
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
3013
|
+
}
|
|
3014
|
+
return writer;
|
|
3015
|
+
},
|
|
3016
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
|
|
3017
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3018
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3019
|
+
const message = createBaseQueryParamsResponse();
|
|
3020
|
+
while (reader.pos < end) {
|
|
3021
|
+
const tag = reader.uint32();
|
|
3022
|
+
switch (tag >>> 3) {
|
|
3023
|
+
case 1:
|
|
3024
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
3025
|
+
break;
|
|
3026
|
+
default:
|
|
3027
|
+
reader.skipType(tag & 7);
|
|
3028
|
+
break;
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
return message;
|
|
3032
|
+
},
|
|
3033
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse {
|
|
3034
|
+
const message = createBaseQueryParamsResponse();
|
|
3035
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
3036
|
+
return message;
|
|
3037
|
+
},
|
|
3038
|
+
fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse {
|
|
3039
|
+
const message = createBaseQueryParamsResponse();
|
|
3040
|
+
if (object.params !== undefined && object.params !== null) {
|
|
3041
|
+
message.params = Params.fromAmino(object.params);
|
|
3042
|
+
}
|
|
3043
|
+
return message;
|
|
3044
|
+
},
|
|
3045
|
+
toAmino(message: QueryParamsResponse): QueryParamsResponseAmino {
|
|
3046
|
+
const obj: any = {};
|
|
3047
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
3048
|
+
return obj;
|
|
3049
|
+
},
|
|
3050
|
+
fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse {
|
|
3051
|
+
return QueryParamsResponse.fromAmino(object.value);
|
|
3052
|
+
},
|
|
3053
|
+
toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg {
|
|
3054
|
+
return {
|
|
3055
|
+
type: "cosmos-sdk/QueryParamsResponse",
|
|
3056
|
+
value: QueryParamsResponse.toAmino(message)
|
|
3057
|
+
};
|
|
3058
|
+
},
|
|
3059
|
+
fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse {
|
|
3060
|
+
return QueryParamsResponse.decode(message.value);
|
|
3061
|
+
},
|
|
3062
|
+
toProto(message: QueryParamsResponse): Uint8Array {
|
|
3063
|
+
return QueryParamsResponse.encode(message).finish();
|
|
3064
|
+
},
|
|
3065
|
+
toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg {
|
|
3066
|
+
return {
|
|
3067
|
+
typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse",
|
|
3068
|
+
value: QueryParamsResponse.encode(message).finish()
|
|
3069
|
+
};
|
|
3070
|
+
}
|
|
3071
|
+
};
|
|
3072
|
+
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
3073
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|