@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,1478 @@
|
|
|
1
|
+
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
2
|
+
import { Params, ParamsAmino } from "./distribution";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/**
|
|
7
|
+
* MsgSetWithdrawAddress sets the withdraw address for
|
|
8
|
+
* a delegator (or validator self-delegation).
|
|
9
|
+
*/
|
|
10
|
+
export interface MsgSetWithdrawAddress {
|
|
11
|
+
delegatorAddress: string;
|
|
12
|
+
withdrawAddress: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MsgSetWithdrawAddressProtoMsg {
|
|
15
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress";
|
|
16
|
+
value: Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* MsgSetWithdrawAddress sets the withdraw address for
|
|
20
|
+
* a delegator (or validator self-delegation).
|
|
21
|
+
*/
|
|
22
|
+
export interface MsgSetWithdrawAddressAmino {
|
|
23
|
+
delegator_address: string;
|
|
24
|
+
withdraw_address: string;
|
|
25
|
+
}
|
|
26
|
+
export interface MsgSetWithdrawAddressAminoMsg {
|
|
27
|
+
type: "cosmos-sdk/MsgModifyWithdrawAddress";
|
|
28
|
+
value: MsgSetWithdrawAddressAmino;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
32
|
+
* type.
|
|
33
|
+
*/
|
|
34
|
+
export interface MsgSetWithdrawAddressResponse {}
|
|
35
|
+
export interface MsgSetWithdrawAddressResponseProtoMsg {
|
|
36
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse";
|
|
37
|
+
value: Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
41
|
+
* type.
|
|
42
|
+
*/
|
|
43
|
+
export interface MsgSetWithdrawAddressResponseAmino {}
|
|
44
|
+
export interface MsgSetWithdrawAddressResponseAminoMsg {
|
|
45
|
+
type: "cosmos-sdk/MsgSetWithdrawAddressResponse";
|
|
46
|
+
value: MsgSetWithdrawAddressResponseAmino;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
|
50
|
+
* from a single validator.
|
|
51
|
+
*/
|
|
52
|
+
export interface MsgWithdrawDelegatorReward {
|
|
53
|
+
delegatorAddress: string;
|
|
54
|
+
validatorAddress: string;
|
|
55
|
+
}
|
|
56
|
+
export interface MsgWithdrawDelegatorRewardProtoMsg {
|
|
57
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward";
|
|
58
|
+
value: Uint8Array;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
|
62
|
+
* from a single validator.
|
|
63
|
+
*/
|
|
64
|
+
export interface MsgWithdrawDelegatorRewardAmino {
|
|
65
|
+
delegator_address: string;
|
|
66
|
+
validator_address: string;
|
|
67
|
+
}
|
|
68
|
+
export interface MsgWithdrawDelegatorRewardAminoMsg {
|
|
69
|
+
type: "cosmos-sdk/MsgWithdrawDelegationReward";
|
|
70
|
+
value: MsgWithdrawDelegatorRewardAmino;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
74
|
+
* response type.
|
|
75
|
+
*/
|
|
76
|
+
export interface MsgWithdrawDelegatorRewardResponse {
|
|
77
|
+
/** Since: cosmos-sdk 0.46 */
|
|
78
|
+
amount: Coin[];
|
|
79
|
+
}
|
|
80
|
+
export interface MsgWithdrawDelegatorRewardResponseProtoMsg {
|
|
81
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse";
|
|
82
|
+
value: Uint8Array;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
86
|
+
* response type.
|
|
87
|
+
*/
|
|
88
|
+
export interface MsgWithdrawDelegatorRewardResponseAmino {
|
|
89
|
+
/** Since: cosmos-sdk 0.46 */
|
|
90
|
+
amount: CoinAmino[];
|
|
91
|
+
}
|
|
92
|
+
export interface MsgWithdrawDelegatorRewardResponseAminoMsg {
|
|
93
|
+
type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse";
|
|
94
|
+
value: MsgWithdrawDelegatorRewardResponseAmino;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
|
98
|
+
* address.
|
|
99
|
+
*/
|
|
100
|
+
export interface MsgWithdrawValidatorCommission {
|
|
101
|
+
validatorAddress: string;
|
|
102
|
+
}
|
|
103
|
+
export interface MsgWithdrawValidatorCommissionProtoMsg {
|
|
104
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission";
|
|
105
|
+
value: Uint8Array;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
|
109
|
+
* address.
|
|
110
|
+
*/
|
|
111
|
+
export interface MsgWithdrawValidatorCommissionAmino {
|
|
112
|
+
validator_address: string;
|
|
113
|
+
}
|
|
114
|
+
export interface MsgWithdrawValidatorCommissionAminoMsg {
|
|
115
|
+
type: "cosmos-sdk/MsgWithdrawValidatorCommission";
|
|
116
|
+
value: MsgWithdrawValidatorCommissionAmino;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* MsgWithdrawValidatorCommissionResponse defines the
|
|
120
|
+
* Msg/WithdrawValidatorCommission response type.
|
|
121
|
+
*/
|
|
122
|
+
export interface MsgWithdrawValidatorCommissionResponse {
|
|
123
|
+
/** Since: cosmos-sdk 0.46 */
|
|
124
|
+
amount: Coin[];
|
|
125
|
+
}
|
|
126
|
+
export interface MsgWithdrawValidatorCommissionResponseProtoMsg {
|
|
127
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse";
|
|
128
|
+
value: Uint8Array;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* MsgWithdrawValidatorCommissionResponse defines the
|
|
132
|
+
* Msg/WithdrawValidatorCommission response type.
|
|
133
|
+
*/
|
|
134
|
+
export interface MsgWithdrawValidatorCommissionResponseAmino {
|
|
135
|
+
/** Since: cosmos-sdk 0.46 */
|
|
136
|
+
amount: CoinAmino[];
|
|
137
|
+
}
|
|
138
|
+
export interface MsgWithdrawValidatorCommissionResponseAminoMsg {
|
|
139
|
+
type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse";
|
|
140
|
+
value: MsgWithdrawValidatorCommissionResponseAmino;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* MsgFundCommunityPool allows an account to directly
|
|
144
|
+
* fund the community pool.
|
|
145
|
+
*/
|
|
146
|
+
export interface MsgFundCommunityPool {
|
|
147
|
+
amount: Coin[];
|
|
148
|
+
depositor: string;
|
|
149
|
+
}
|
|
150
|
+
export interface MsgFundCommunityPoolProtoMsg {
|
|
151
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool";
|
|
152
|
+
value: Uint8Array;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* MsgFundCommunityPool allows an account to directly
|
|
156
|
+
* fund the community pool.
|
|
157
|
+
*/
|
|
158
|
+
export interface MsgFundCommunityPoolAmino {
|
|
159
|
+
amount: CoinAmino[];
|
|
160
|
+
depositor: string;
|
|
161
|
+
}
|
|
162
|
+
export interface MsgFundCommunityPoolAminoMsg {
|
|
163
|
+
type: "cosmos-sdk/MsgFundCommunityPool";
|
|
164
|
+
value: MsgFundCommunityPoolAmino;
|
|
165
|
+
}
|
|
166
|
+
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
|
167
|
+
export interface MsgFundCommunityPoolResponse {}
|
|
168
|
+
export interface MsgFundCommunityPoolResponseProtoMsg {
|
|
169
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse";
|
|
170
|
+
value: Uint8Array;
|
|
171
|
+
}
|
|
172
|
+
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
|
173
|
+
export interface MsgFundCommunityPoolResponseAmino {}
|
|
174
|
+
export interface MsgFundCommunityPoolResponseAminoMsg {
|
|
175
|
+
type: "cosmos-sdk/MsgFundCommunityPoolResponse";
|
|
176
|
+
value: MsgFundCommunityPoolResponseAmino;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
180
|
+
*
|
|
181
|
+
* Since: cosmos-sdk 0.47
|
|
182
|
+
*/
|
|
183
|
+
export interface MsgUpdateParams {
|
|
184
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
185
|
+
authority: string;
|
|
186
|
+
/**
|
|
187
|
+
* params defines the x/distribution parameters to update.
|
|
188
|
+
*
|
|
189
|
+
* NOTE: All parameters must be supplied.
|
|
190
|
+
*/
|
|
191
|
+
params: Params;
|
|
192
|
+
}
|
|
193
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
194
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams";
|
|
195
|
+
value: Uint8Array;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
199
|
+
*
|
|
200
|
+
* Since: cosmos-sdk 0.47
|
|
201
|
+
*/
|
|
202
|
+
export interface MsgUpdateParamsAmino {
|
|
203
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
204
|
+
authority: string;
|
|
205
|
+
/**
|
|
206
|
+
* params defines the x/distribution parameters to update.
|
|
207
|
+
*
|
|
208
|
+
* NOTE: All parameters must be supplied.
|
|
209
|
+
*/
|
|
210
|
+
params: ParamsAmino;
|
|
211
|
+
}
|
|
212
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
213
|
+
type: "cosmos-sdk/distribution/MsgUpdateParams";
|
|
214
|
+
value: MsgUpdateParamsAmino;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
218
|
+
* MsgUpdateParams message.
|
|
219
|
+
*
|
|
220
|
+
* Since: cosmos-sdk 0.47
|
|
221
|
+
*/
|
|
222
|
+
export interface MsgUpdateParamsResponse {}
|
|
223
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
224
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse";
|
|
225
|
+
value: Uint8Array;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
229
|
+
* MsgUpdateParams message.
|
|
230
|
+
*
|
|
231
|
+
* Since: cosmos-sdk 0.47
|
|
232
|
+
*/
|
|
233
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
234
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
235
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse";
|
|
236
|
+
value: MsgUpdateParamsResponseAmino;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
240
|
+
* pool to another account. This message is typically executed via a governance
|
|
241
|
+
* proposal with the governance module being the executing authority.
|
|
242
|
+
*
|
|
243
|
+
* Since: cosmos-sdk 0.47
|
|
244
|
+
*/
|
|
245
|
+
export interface MsgCommunityPoolSpend {
|
|
246
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
247
|
+
authority: string;
|
|
248
|
+
recipient: string;
|
|
249
|
+
amount: Coin[];
|
|
250
|
+
}
|
|
251
|
+
export interface MsgCommunityPoolSpendProtoMsg {
|
|
252
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend";
|
|
253
|
+
value: Uint8Array;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
257
|
+
* pool to another account. This message is typically executed via a governance
|
|
258
|
+
* proposal with the governance module being the executing authority.
|
|
259
|
+
*
|
|
260
|
+
* Since: cosmos-sdk 0.47
|
|
261
|
+
*/
|
|
262
|
+
export interface MsgCommunityPoolSpendAmino {
|
|
263
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
264
|
+
authority: string;
|
|
265
|
+
recipient: string;
|
|
266
|
+
amount: CoinAmino[];
|
|
267
|
+
}
|
|
268
|
+
export interface MsgCommunityPoolSpendAminoMsg {
|
|
269
|
+
type: "cosmos-sdk/distr/MsgCommunityPoolSpend";
|
|
270
|
+
value: MsgCommunityPoolSpendAmino;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
274
|
+
* MsgCommunityPoolSpend message.
|
|
275
|
+
*
|
|
276
|
+
* Since: cosmos-sdk 0.47
|
|
277
|
+
*/
|
|
278
|
+
export interface MsgCommunityPoolSpendResponse {}
|
|
279
|
+
export interface MsgCommunityPoolSpendResponseProtoMsg {
|
|
280
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse";
|
|
281
|
+
value: Uint8Array;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
285
|
+
* MsgCommunityPoolSpend message.
|
|
286
|
+
*
|
|
287
|
+
* Since: cosmos-sdk 0.47
|
|
288
|
+
*/
|
|
289
|
+
export interface MsgCommunityPoolSpendResponseAmino {}
|
|
290
|
+
export interface MsgCommunityPoolSpendResponseAminoMsg {
|
|
291
|
+
type: "cosmos-sdk/MsgCommunityPoolSpendResponse";
|
|
292
|
+
value: MsgCommunityPoolSpendResponseAmino;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* DepositValidatorRewardsPool defines the request structure to provide
|
|
296
|
+
* additional rewards to delegators from a specific validator.
|
|
297
|
+
*
|
|
298
|
+
* Since: cosmos-sdk 0.50
|
|
299
|
+
*/
|
|
300
|
+
export interface MsgDepositValidatorRewardsPool {
|
|
301
|
+
depositor: string;
|
|
302
|
+
validatorAddress: string;
|
|
303
|
+
amount: Coin[];
|
|
304
|
+
}
|
|
305
|
+
export interface MsgDepositValidatorRewardsPoolProtoMsg {
|
|
306
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool";
|
|
307
|
+
value: Uint8Array;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* DepositValidatorRewardsPool defines the request structure to provide
|
|
311
|
+
* additional rewards to delegators from a specific validator.
|
|
312
|
+
*
|
|
313
|
+
* Since: cosmos-sdk 0.50
|
|
314
|
+
*/
|
|
315
|
+
export interface MsgDepositValidatorRewardsPoolAmino {
|
|
316
|
+
depositor: string;
|
|
317
|
+
validator_address: string;
|
|
318
|
+
amount: CoinAmino[];
|
|
319
|
+
}
|
|
320
|
+
export interface MsgDepositValidatorRewardsPoolAminoMsg {
|
|
321
|
+
type: "cosmos-sdk/distr/MsgDepositValRewards";
|
|
322
|
+
value: MsgDepositValidatorRewardsPoolAmino;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* MsgDepositValidatorRewardsPoolResponse defines the response to executing a
|
|
326
|
+
* MsgDepositValidatorRewardsPool message.
|
|
327
|
+
*
|
|
328
|
+
* Since: cosmos-sdk 0.50
|
|
329
|
+
*/
|
|
330
|
+
export interface MsgDepositValidatorRewardsPoolResponse {}
|
|
331
|
+
export interface MsgDepositValidatorRewardsPoolResponseProtoMsg {
|
|
332
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse";
|
|
333
|
+
value: Uint8Array;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* MsgDepositValidatorRewardsPoolResponse defines the response to executing a
|
|
337
|
+
* MsgDepositValidatorRewardsPool message.
|
|
338
|
+
*
|
|
339
|
+
* Since: cosmos-sdk 0.50
|
|
340
|
+
*/
|
|
341
|
+
export interface MsgDepositValidatorRewardsPoolResponseAmino {}
|
|
342
|
+
export interface MsgDepositValidatorRewardsPoolResponseAminoMsg {
|
|
343
|
+
type: "cosmos-sdk/MsgDepositValidatorRewardsPoolResponse";
|
|
344
|
+
value: MsgDepositValidatorRewardsPoolResponseAmino;
|
|
345
|
+
}
|
|
346
|
+
function createBaseMsgSetWithdrawAddress(): MsgSetWithdrawAddress {
|
|
347
|
+
return {
|
|
348
|
+
delegatorAddress: "",
|
|
349
|
+
withdrawAddress: ""
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
export const MsgSetWithdrawAddress = {
|
|
353
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
354
|
+
aminoType: "cosmos-sdk/MsgModifyWithdrawAddress",
|
|
355
|
+
is(o: any): o is MsgSetWithdrawAddress {
|
|
356
|
+
return o && (o.$typeUrl === MsgSetWithdrawAddress.typeUrl || typeof o.delegatorAddress === "string" && typeof o.withdrawAddress === "string");
|
|
357
|
+
},
|
|
358
|
+
isAmino(o: any): o is MsgSetWithdrawAddressAmino {
|
|
359
|
+
return o && (o.$typeUrl === MsgSetWithdrawAddress.typeUrl || typeof o.delegator_address === "string" && typeof o.withdraw_address === "string");
|
|
360
|
+
},
|
|
361
|
+
encode(message: MsgSetWithdrawAddress, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
362
|
+
if (message.delegatorAddress !== "") {
|
|
363
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
364
|
+
}
|
|
365
|
+
if (message.withdrawAddress !== "") {
|
|
366
|
+
writer.uint32(18).string(message.withdrawAddress);
|
|
367
|
+
}
|
|
368
|
+
return writer;
|
|
369
|
+
},
|
|
370
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress {
|
|
371
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
372
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
373
|
+
const message = createBaseMsgSetWithdrawAddress();
|
|
374
|
+
while (reader.pos < end) {
|
|
375
|
+
const tag = reader.uint32();
|
|
376
|
+
switch (tag >>> 3) {
|
|
377
|
+
case 1:
|
|
378
|
+
message.delegatorAddress = reader.string();
|
|
379
|
+
break;
|
|
380
|
+
case 2:
|
|
381
|
+
message.withdrawAddress = reader.string();
|
|
382
|
+
break;
|
|
383
|
+
default:
|
|
384
|
+
reader.skipType(tag & 7);
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
return message;
|
|
389
|
+
},
|
|
390
|
+
fromPartial(object: DeepPartial<MsgSetWithdrawAddress>): MsgSetWithdrawAddress {
|
|
391
|
+
const message = createBaseMsgSetWithdrawAddress();
|
|
392
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
393
|
+
message.withdrawAddress = object.withdrawAddress ?? "";
|
|
394
|
+
return message;
|
|
395
|
+
},
|
|
396
|
+
fromAmino(object: MsgSetWithdrawAddressAmino): MsgSetWithdrawAddress {
|
|
397
|
+
const message = createBaseMsgSetWithdrawAddress();
|
|
398
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
399
|
+
message.delegatorAddress = object.delegator_address;
|
|
400
|
+
}
|
|
401
|
+
if (object.withdraw_address !== undefined && object.withdraw_address !== null) {
|
|
402
|
+
message.withdrawAddress = object.withdraw_address;
|
|
403
|
+
}
|
|
404
|
+
return message;
|
|
405
|
+
},
|
|
406
|
+
toAmino(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAmino {
|
|
407
|
+
const obj: any = {};
|
|
408
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
409
|
+
obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress;
|
|
410
|
+
return obj;
|
|
411
|
+
},
|
|
412
|
+
fromAminoMsg(object: MsgSetWithdrawAddressAminoMsg): MsgSetWithdrawAddress {
|
|
413
|
+
return MsgSetWithdrawAddress.fromAmino(object.value);
|
|
414
|
+
},
|
|
415
|
+
toAminoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAminoMsg {
|
|
416
|
+
return {
|
|
417
|
+
type: "cosmos-sdk/MsgModifyWithdrawAddress",
|
|
418
|
+
value: MsgSetWithdrawAddress.toAmino(message)
|
|
419
|
+
};
|
|
420
|
+
},
|
|
421
|
+
fromProtoMsg(message: MsgSetWithdrawAddressProtoMsg): MsgSetWithdrawAddress {
|
|
422
|
+
return MsgSetWithdrawAddress.decode(message.value);
|
|
423
|
+
},
|
|
424
|
+
toProto(message: MsgSetWithdrawAddress): Uint8Array {
|
|
425
|
+
return MsgSetWithdrawAddress.encode(message).finish();
|
|
426
|
+
},
|
|
427
|
+
toProtoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressProtoMsg {
|
|
428
|
+
return {
|
|
429
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
430
|
+
value: MsgSetWithdrawAddress.encode(message).finish()
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
GlobalDecoderRegistry.register(MsgSetWithdrawAddress.typeUrl, MsgSetWithdrawAddress);
|
|
435
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgSetWithdrawAddress.aminoType, MsgSetWithdrawAddress.typeUrl);
|
|
436
|
+
function createBaseMsgSetWithdrawAddressResponse(): MsgSetWithdrawAddressResponse {
|
|
437
|
+
return {};
|
|
438
|
+
}
|
|
439
|
+
export const MsgSetWithdrawAddressResponse = {
|
|
440
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse",
|
|
441
|
+
aminoType: "cosmos-sdk/MsgSetWithdrawAddressResponse",
|
|
442
|
+
is(o: any): o is MsgSetWithdrawAddressResponse {
|
|
443
|
+
return o && o.$typeUrl === MsgSetWithdrawAddressResponse.typeUrl;
|
|
444
|
+
},
|
|
445
|
+
isAmino(o: any): o is MsgSetWithdrawAddressResponseAmino {
|
|
446
|
+
return o && o.$typeUrl === MsgSetWithdrawAddressResponse.typeUrl;
|
|
447
|
+
},
|
|
448
|
+
encode(_: MsgSetWithdrawAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
449
|
+
return writer;
|
|
450
|
+
},
|
|
451
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse {
|
|
452
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
453
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
454
|
+
const message = createBaseMsgSetWithdrawAddressResponse();
|
|
455
|
+
while (reader.pos < end) {
|
|
456
|
+
const tag = reader.uint32();
|
|
457
|
+
switch (tag >>> 3) {
|
|
458
|
+
default:
|
|
459
|
+
reader.skipType(tag & 7);
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
return message;
|
|
464
|
+
},
|
|
465
|
+
fromPartial(_: DeepPartial<MsgSetWithdrawAddressResponse>): MsgSetWithdrawAddressResponse {
|
|
466
|
+
const message = createBaseMsgSetWithdrawAddressResponse();
|
|
467
|
+
return message;
|
|
468
|
+
},
|
|
469
|
+
fromAmino(_: MsgSetWithdrawAddressResponseAmino): MsgSetWithdrawAddressResponse {
|
|
470
|
+
const message = createBaseMsgSetWithdrawAddressResponse();
|
|
471
|
+
return message;
|
|
472
|
+
},
|
|
473
|
+
toAmino(_: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAmino {
|
|
474
|
+
const obj: any = {};
|
|
475
|
+
return obj;
|
|
476
|
+
},
|
|
477
|
+
fromAminoMsg(object: MsgSetWithdrawAddressResponseAminoMsg): MsgSetWithdrawAddressResponse {
|
|
478
|
+
return MsgSetWithdrawAddressResponse.fromAmino(object.value);
|
|
479
|
+
},
|
|
480
|
+
toAminoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAminoMsg {
|
|
481
|
+
return {
|
|
482
|
+
type: "cosmos-sdk/MsgSetWithdrawAddressResponse",
|
|
483
|
+
value: MsgSetWithdrawAddressResponse.toAmino(message)
|
|
484
|
+
};
|
|
485
|
+
},
|
|
486
|
+
fromProtoMsg(message: MsgSetWithdrawAddressResponseProtoMsg): MsgSetWithdrawAddressResponse {
|
|
487
|
+
return MsgSetWithdrawAddressResponse.decode(message.value);
|
|
488
|
+
},
|
|
489
|
+
toProto(message: MsgSetWithdrawAddressResponse): Uint8Array {
|
|
490
|
+
return MsgSetWithdrawAddressResponse.encode(message).finish();
|
|
491
|
+
},
|
|
492
|
+
toProtoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseProtoMsg {
|
|
493
|
+
return {
|
|
494
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse",
|
|
495
|
+
value: MsgSetWithdrawAddressResponse.encode(message).finish()
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
GlobalDecoderRegistry.register(MsgSetWithdrawAddressResponse.typeUrl, MsgSetWithdrawAddressResponse);
|
|
500
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgSetWithdrawAddressResponse.aminoType, MsgSetWithdrawAddressResponse.typeUrl);
|
|
501
|
+
function createBaseMsgWithdrawDelegatorReward(): MsgWithdrawDelegatorReward {
|
|
502
|
+
return {
|
|
503
|
+
delegatorAddress: "",
|
|
504
|
+
validatorAddress: ""
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
export const MsgWithdrawDelegatorReward = {
|
|
508
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
509
|
+
aminoType: "cosmos-sdk/MsgWithdrawDelegationReward",
|
|
510
|
+
is(o: any): o is MsgWithdrawDelegatorReward {
|
|
511
|
+
return o && (o.$typeUrl === MsgWithdrawDelegatorReward.typeUrl || typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string");
|
|
512
|
+
},
|
|
513
|
+
isAmino(o: any): o is MsgWithdrawDelegatorRewardAmino {
|
|
514
|
+
return o && (o.$typeUrl === MsgWithdrawDelegatorReward.typeUrl || typeof o.delegator_address === "string" && typeof o.validator_address === "string");
|
|
515
|
+
},
|
|
516
|
+
encode(message: MsgWithdrawDelegatorReward, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
517
|
+
if (message.delegatorAddress !== "") {
|
|
518
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
519
|
+
}
|
|
520
|
+
if (message.validatorAddress !== "") {
|
|
521
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
522
|
+
}
|
|
523
|
+
return writer;
|
|
524
|
+
},
|
|
525
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward {
|
|
526
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
527
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
528
|
+
const message = createBaseMsgWithdrawDelegatorReward();
|
|
529
|
+
while (reader.pos < end) {
|
|
530
|
+
const tag = reader.uint32();
|
|
531
|
+
switch (tag >>> 3) {
|
|
532
|
+
case 1:
|
|
533
|
+
message.delegatorAddress = reader.string();
|
|
534
|
+
break;
|
|
535
|
+
case 2:
|
|
536
|
+
message.validatorAddress = reader.string();
|
|
537
|
+
break;
|
|
538
|
+
default:
|
|
539
|
+
reader.skipType(tag & 7);
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
return message;
|
|
544
|
+
},
|
|
545
|
+
fromPartial(object: DeepPartial<MsgWithdrawDelegatorReward>): MsgWithdrawDelegatorReward {
|
|
546
|
+
const message = createBaseMsgWithdrawDelegatorReward();
|
|
547
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
548
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
549
|
+
return message;
|
|
550
|
+
},
|
|
551
|
+
fromAmino(object: MsgWithdrawDelegatorRewardAmino): MsgWithdrawDelegatorReward {
|
|
552
|
+
const message = createBaseMsgWithdrawDelegatorReward();
|
|
553
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
554
|
+
message.delegatorAddress = object.delegator_address;
|
|
555
|
+
}
|
|
556
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
557
|
+
message.validatorAddress = object.validator_address;
|
|
558
|
+
}
|
|
559
|
+
return message;
|
|
560
|
+
},
|
|
561
|
+
toAmino(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAmino {
|
|
562
|
+
const obj: any = {};
|
|
563
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
564
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
565
|
+
return obj;
|
|
566
|
+
},
|
|
567
|
+
fromAminoMsg(object: MsgWithdrawDelegatorRewardAminoMsg): MsgWithdrawDelegatorReward {
|
|
568
|
+
return MsgWithdrawDelegatorReward.fromAmino(object.value);
|
|
569
|
+
},
|
|
570
|
+
toAminoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAminoMsg {
|
|
571
|
+
return {
|
|
572
|
+
type: "cosmos-sdk/MsgWithdrawDelegationReward",
|
|
573
|
+
value: MsgWithdrawDelegatorReward.toAmino(message)
|
|
574
|
+
};
|
|
575
|
+
},
|
|
576
|
+
fromProtoMsg(message: MsgWithdrawDelegatorRewardProtoMsg): MsgWithdrawDelegatorReward {
|
|
577
|
+
return MsgWithdrawDelegatorReward.decode(message.value);
|
|
578
|
+
},
|
|
579
|
+
toProto(message: MsgWithdrawDelegatorReward): Uint8Array {
|
|
580
|
+
return MsgWithdrawDelegatorReward.encode(message).finish();
|
|
581
|
+
},
|
|
582
|
+
toProtoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardProtoMsg {
|
|
583
|
+
return {
|
|
584
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
585
|
+
value: MsgWithdrawDelegatorReward.encode(message).finish()
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
GlobalDecoderRegistry.register(MsgWithdrawDelegatorReward.typeUrl, MsgWithdrawDelegatorReward);
|
|
590
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgWithdrawDelegatorReward.aminoType, MsgWithdrawDelegatorReward.typeUrl);
|
|
591
|
+
function createBaseMsgWithdrawDelegatorRewardResponse(): MsgWithdrawDelegatorRewardResponse {
|
|
592
|
+
return {
|
|
593
|
+
amount: []
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
export const MsgWithdrawDelegatorRewardResponse = {
|
|
597
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse",
|
|
598
|
+
aminoType: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse",
|
|
599
|
+
is(o: any): o is MsgWithdrawDelegatorRewardResponse {
|
|
600
|
+
return o && (o.$typeUrl === MsgWithdrawDelegatorRewardResponse.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])));
|
|
601
|
+
},
|
|
602
|
+
isAmino(o: any): o is MsgWithdrawDelegatorRewardResponseAmino {
|
|
603
|
+
return o && (o.$typeUrl === MsgWithdrawDelegatorRewardResponse.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])));
|
|
604
|
+
},
|
|
605
|
+
encode(message: MsgWithdrawDelegatorRewardResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
606
|
+
for (const v of message.amount) {
|
|
607
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
608
|
+
}
|
|
609
|
+
return writer;
|
|
610
|
+
},
|
|
611
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse {
|
|
612
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
613
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
614
|
+
const message = createBaseMsgWithdrawDelegatorRewardResponse();
|
|
615
|
+
while (reader.pos < end) {
|
|
616
|
+
const tag = reader.uint32();
|
|
617
|
+
switch (tag >>> 3) {
|
|
618
|
+
case 1:
|
|
619
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
620
|
+
break;
|
|
621
|
+
default:
|
|
622
|
+
reader.skipType(tag & 7);
|
|
623
|
+
break;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
return message;
|
|
627
|
+
},
|
|
628
|
+
fromPartial(object: DeepPartial<MsgWithdrawDelegatorRewardResponse>): MsgWithdrawDelegatorRewardResponse {
|
|
629
|
+
const message = createBaseMsgWithdrawDelegatorRewardResponse();
|
|
630
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
631
|
+
return message;
|
|
632
|
+
},
|
|
633
|
+
fromAmino(object: MsgWithdrawDelegatorRewardResponseAmino): MsgWithdrawDelegatorRewardResponse {
|
|
634
|
+
const message = createBaseMsgWithdrawDelegatorRewardResponse();
|
|
635
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
636
|
+
return message;
|
|
637
|
+
},
|
|
638
|
+
toAmino(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAmino {
|
|
639
|
+
const obj: any = {};
|
|
640
|
+
if (message.amount) {
|
|
641
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
642
|
+
} else {
|
|
643
|
+
obj.amount = message.amount;
|
|
644
|
+
}
|
|
645
|
+
return obj;
|
|
646
|
+
},
|
|
647
|
+
fromAminoMsg(object: MsgWithdrawDelegatorRewardResponseAminoMsg): MsgWithdrawDelegatorRewardResponse {
|
|
648
|
+
return MsgWithdrawDelegatorRewardResponse.fromAmino(object.value);
|
|
649
|
+
},
|
|
650
|
+
toAminoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAminoMsg {
|
|
651
|
+
return {
|
|
652
|
+
type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse",
|
|
653
|
+
value: MsgWithdrawDelegatorRewardResponse.toAmino(message)
|
|
654
|
+
};
|
|
655
|
+
},
|
|
656
|
+
fromProtoMsg(message: MsgWithdrawDelegatorRewardResponseProtoMsg): MsgWithdrawDelegatorRewardResponse {
|
|
657
|
+
return MsgWithdrawDelegatorRewardResponse.decode(message.value);
|
|
658
|
+
},
|
|
659
|
+
toProto(message: MsgWithdrawDelegatorRewardResponse): Uint8Array {
|
|
660
|
+
return MsgWithdrawDelegatorRewardResponse.encode(message).finish();
|
|
661
|
+
},
|
|
662
|
+
toProtoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseProtoMsg {
|
|
663
|
+
return {
|
|
664
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse",
|
|
665
|
+
value: MsgWithdrawDelegatorRewardResponse.encode(message).finish()
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
GlobalDecoderRegistry.register(MsgWithdrawDelegatorRewardResponse.typeUrl, MsgWithdrawDelegatorRewardResponse);
|
|
670
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgWithdrawDelegatorRewardResponse.aminoType, MsgWithdrawDelegatorRewardResponse.typeUrl);
|
|
671
|
+
function createBaseMsgWithdrawValidatorCommission(): MsgWithdrawValidatorCommission {
|
|
672
|
+
return {
|
|
673
|
+
validatorAddress: ""
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
export const MsgWithdrawValidatorCommission = {
|
|
677
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
678
|
+
aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission",
|
|
679
|
+
is(o: any): o is MsgWithdrawValidatorCommission {
|
|
680
|
+
return o && (o.$typeUrl === MsgWithdrawValidatorCommission.typeUrl || typeof o.validatorAddress === "string");
|
|
681
|
+
},
|
|
682
|
+
isAmino(o: any): o is MsgWithdrawValidatorCommissionAmino {
|
|
683
|
+
return o && (o.$typeUrl === MsgWithdrawValidatorCommission.typeUrl || typeof o.validator_address === "string");
|
|
684
|
+
},
|
|
685
|
+
encode(message: MsgWithdrawValidatorCommission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
686
|
+
if (message.validatorAddress !== "") {
|
|
687
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
688
|
+
}
|
|
689
|
+
return writer;
|
|
690
|
+
},
|
|
691
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission {
|
|
692
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
693
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
694
|
+
const message = createBaseMsgWithdrawValidatorCommission();
|
|
695
|
+
while (reader.pos < end) {
|
|
696
|
+
const tag = reader.uint32();
|
|
697
|
+
switch (tag >>> 3) {
|
|
698
|
+
case 1:
|
|
699
|
+
message.validatorAddress = reader.string();
|
|
700
|
+
break;
|
|
701
|
+
default:
|
|
702
|
+
reader.skipType(tag & 7);
|
|
703
|
+
break;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
return message;
|
|
707
|
+
},
|
|
708
|
+
fromPartial(object: DeepPartial<MsgWithdrawValidatorCommission>): MsgWithdrawValidatorCommission {
|
|
709
|
+
const message = createBaseMsgWithdrawValidatorCommission();
|
|
710
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
711
|
+
return message;
|
|
712
|
+
},
|
|
713
|
+
fromAmino(object: MsgWithdrawValidatorCommissionAmino): MsgWithdrawValidatorCommission {
|
|
714
|
+
const message = createBaseMsgWithdrawValidatorCommission();
|
|
715
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
716
|
+
message.validatorAddress = object.validator_address;
|
|
717
|
+
}
|
|
718
|
+
return message;
|
|
719
|
+
},
|
|
720
|
+
toAmino(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAmino {
|
|
721
|
+
const obj: any = {};
|
|
722
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
723
|
+
return obj;
|
|
724
|
+
},
|
|
725
|
+
fromAminoMsg(object: MsgWithdrawValidatorCommissionAminoMsg): MsgWithdrawValidatorCommission {
|
|
726
|
+
return MsgWithdrawValidatorCommission.fromAmino(object.value);
|
|
727
|
+
},
|
|
728
|
+
toAminoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAminoMsg {
|
|
729
|
+
return {
|
|
730
|
+
type: "cosmos-sdk/MsgWithdrawValidatorCommission",
|
|
731
|
+
value: MsgWithdrawValidatorCommission.toAmino(message)
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
fromProtoMsg(message: MsgWithdrawValidatorCommissionProtoMsg): MsgWithdrawValidatorCommission {
|
|
735
|
+
return MsgWithdrawValidatorCommission.decode(message.value);
|
|
736
|
+
},
|
|
737
|
+
toProto(message: MsgWithdrawValidatorCommission): Uint8Array {
|
|
738
|
+
return MsgWithdrawValidatorCommission.encode(message).finish();
|
|
739
|
+
},
|
|
740
|
+
toProtoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionProtoMsg {
|
|
741
|
+
return {
|
|
742
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
743
|
+
value: MsgWithdrawValidatorCommission.encode(message).finish()
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
GlobalDecoderRegistry.register(MsgWithdrawValidatorCommission.typeUrl, MsgWithdrawValidatorCommission);
|
|
748
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgWithdrawValidatorCommission.aminoType, MsgWithdrawValidatorCommission.typeUrl);
|
|
749
|
+
function createBaseMsgWithdrawValidatorCommissionResponse(): MsgWithdrawValidatorCommissionResponse {
|
|
750
|
+
return {
|
|
751
|
+
amount: []
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
export const MsgWithdrawValidatorCommissionResponse = {
|
|
755
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse",
|
|
756
|
+
aminoType: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse",
|
|
757
|
+
is(o: any): o is MsgWithdrawValidatorCommissionResponse {
|
|
758
|
+
return o && (o.$typeUrl === MsgWithdrawValidatorCommissionResponse.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])));
|
|
759
|
+
},
|
|
760
|
+
isAmino(o: any): o is MsgWithdrawValidatorCommissionResponseAmino {
|
|
761
|
+
return o && (o.$typeUrl === MsgWithdrawValidatorCommissionResponse.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])));
|
|
762
|
+
},
|
|
763
|
+
encode(message: MsgWithdrawValidatorCommissionResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
764
|
+
for (const v of message.amount) {
|
|
765
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
766
|
+
}
|
|
767
|
+
return writer;
|
|
768
|
+
},
|
|
769
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse {
|
|
770
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
771
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
772
|
+
const message = createBaseMsgWithdrawValidatorCommissionResponse();
|
|
773
|
+
while (reader.pos < end) {
|
|
774
|
+
const tag = reader.uint32();
|
|
775
|
+
switch (tag >>> 3) {
|
|
776
|
+
case 1:
|
|
777
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
778
|
+
break;
|
|
779
|
+
default:
|
|
780
|
+
reader.skipType(tag & 7);
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
return message;
|
|
785
|
+
},
|
|
786
|
+
fromPartial(object: DeepPartial<MsgWithdrawValidatorCommissionResponse>): MsgWithdrawValidatorCommissionResponse {
|
|
787
|
+
const message = createBaseMsgWithdrawValidatorCommissionResponse();
|
|
788
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
789
|
+
return message;
|
|
790
|
+
},
|
|
791
|
+
fromAmino(object: MsgWithdrawValidatorCommissionResponseAmino): MsgWithdrawValidatorCommissionResponse {
|
|
792
|
+
const message = createBaseMsgWithdrawValidatorCommissionResponse();
|
|
793
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
794
|
+
return message;
|
|
795
|
+
},
|
|
796
|
+
toAmino(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAmino {
|
|
797
|
+
const obj: any = {};
|
|
798
|
+
if (message.amount) {
|
|
799
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
800
|
+
} else {
|
|
801
|
+
obj.amount = message.amount;
|
|
802
|
+
}
|
|
803
|
+
return obj;
|
|
804
|
+
},
|
|
805
|
+
fromAminoMsg(object: MsgWithdrawValidatorCommissionResponseAminoMsg): MsgWithdrawValidatorCommissionResponse {
|
|
806
|
+
return MsgWithdrawValidatorCommissionResponse.fromAmino(object.value);
|
|
807
|
+
},
|
|
808
|
+
toAminoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAminoMsg {
|
|
809
|
+
return {
|
|
810
|
+
type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse",
|
|
811
|
+
value: MsgWithdrawValidatorCommissionResponse.toAmino(message)
|
|
812
|
+
};
|
|
813
|
+
},
|
|
814
|
+
fromProtoMsg(message: MsgWithdrawValidatorCommissionResponseProtoMsg): MsgWithdrawValidatorCommissionResponse {
|
|
815
|
+
return MsgWithdrawValidatorCommissionResponse.decode(message.value);
|
|
816
|
+
},
|
|
817
|
+
toProto(message: MsgWithdrawValidatorCommissionResponse): Uint8Array {
|
|
818
|
+
return MsgWithdrawValidatorCommissionResponse.encode(message).finish();
|
|
819
|
+
},
|
|
820
|
+
toProtoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseProtoMsg {
|
|
821
|
+
return {
|
|
822
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse",
|
|
823
|
+
value: MsgWithdrawValidatorCommissionResponse.encode(message).finish()
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
GlobalDecoderRegistry.register(MsgWithdrawValidatorCommissionResponse.typeUrl, MsgWithdrawValidatorCommissionResponse);
|
|
828
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgWithdrawValidatorCommissionResponse.aminoType, MsgWithdrawValidatorCommissionResponse.typeUrl);
|
|
829
|
+
function createBaseMsgFundCommunityPool(): MsgFundCommunityPool {
|
|
830
|
+
return {
|
|
831
|
+
amount: [],
|
|
832
|
+
depositor: ""
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
export const MsgFundCommunityPool = {
|
|
836
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
837
|
+
aminoType: "cosmos-sdk/MsgFundCommunityPool",
|
|
838
|
+
is(o: any): o is MsgFundCommunityPool {
|
|
839
|
+
return o && (o.$typeUrl === MsgFundCommunityPool.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])) && typeof o.depositor === "string");
|
|
840
|
+
},
|
|
841
|
+
isAmino(o: any): o is MsgFundCommunityPoolAmino {
|
|
842
|
+
return o && (o.$typeUrl === MsgFundCommunityPool.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])) && typeof o.depositor === "string");
|
|
843
|
+
},
|
|
844
|
+
encode(message: MsgFundCommunityPool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
845
|
+
for (const v of message.amount) {
|
|
846
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
847
|
+
}
|
|
848
|
+
if (message.depositor !== "") {
|
|
849
|
+
writer.uint32(18).string(message.depositor);
|
|
850
|
+
}
|
|
851
|
+
return writer;
|
|
852
|
+
},
|
|
853
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool {
|
|
854
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
855
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
856
|
+
const message = createBaseMsgFundCommunityPool();
|
|
857
|
+
while (reader.pos < end) {
|
|
858
|
+
const tag = reader.uint32();
|
|
859
|
+
switch (tag >>> 3) {
|
|
860
|
+
case 1:
|
|
861
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
862
|
+
break;
|
|
863
|
+
case 2:
|
|
864
|
+
message.depositor = reader.string();
|
|
865
|
+
break;
|
|
866
|
+
default:
|
|
867
|
+
reader.skipType(tag & 7);
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
return message;
|
|
872
|
+
},
|
|
873
|
+
fromPartial(object: DeepPartial<MsgFundCommunityPool>): MsgFundCommunityPool {
|
|
874
|
+
const message = createBaseMsgFundCommunityPool();
|
|
875
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
876
|
+
message.depositor = object.depositor ?? "";
|
|
877
|
+
return message;
|
|
878
|
+
},
|
|
879
|
+
fromAmino(object: MsgFundCommunityPoolAmino): MsgFundCommunityPool {
|
|
880
|
+
const message = createBaseMsgFundCommunityPool();
|
|
881
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
882
|
+
if (object.depositor !== undefined && object.depositor !== null) {
|
|
883
|
+
message.depositor = object.depositor;
|
|
884
|
+
}
|
|
885
|
+
return message;
|
|
886
|
+
},
|
|
887
|
+
toAmino(message: MsgFundCommunityPool): MsgFundCommunityPoolAmino {
|
|
888
|
+
const obj: any = {};
|
|
889
|
+
if (message.amount) {
|
|
890
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
891
|
+
} else {
|
|
892
|
+
obj.amount = message.amount;
|
|
893
|
+
}
|
|
894
|
+
obj.depositor = message.depositor === "" ? undefined : message.depositor;
|
|
895
|
+
return obj;
|
|
896
|
+
},
|
|
897
|
+
fromAminoMsg(object: MsgFundCommunityPoolAminoMsg): MsgFundCommunityPool {
|
|
898
|
+
return MsgFundCommunityPool.fromAmino(object.value);
|
|
899
|
+
},
|
|
900
|
+
toAminoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolAminoMsg {
|
|
901
|
+
return {
|
|
902
|
+
type: "cosmos-sdk/MsgFundCommunityPool",
|
|
903
|
+
value: MsgFundCommunityPool.toAmino(message)
|
|
904
|
+
};
|
|
905
|
+
},
|
|
906
|
+
fromProtoMsg(message: MsgFundCommunityPoolProtoMsg): MsgFundCommunityPool {
|
|
907
|
+
return MsgFundCommunityPool.decode(message.value);
|
|
908
|
+
},
|
|
909
|
+
toProto(message: MsgFundCommunityPool): Uint8Array {
|
|
910
|
+
return MsgFundCommunityPool.encode(message).finish();
|
|
911
|
+
},
|
|
912
|
+
toProtoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolProtoMsg {
|
|
913
|
+
return {
|
|
914
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
915
|
+
value: MsgFundCommunityPool.encode(message).finish()
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
GlobalDecoderRegistry.register(MsgFundCommunityPool.typeUrl, MsgFundCommunityPool);
|
|
920
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgFundCommunityPool.aminoType, MsgFundCommunityPool.typeUrl);
|
|
921
|
+
function createBaseMsgFundCommunityPoolResponse(): MsgFundCommunityPoolResponse {
|
|
922
|
+
return {};
|
|
923
|
+
}
|
|
924
|
+
export const MsgFundCommunityPoolResponse = {
|
|
925
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse",
|
|
926
|
+
aminoType: "cosmos-sdk/MsgFundCommunityPoolResponse",
|
|
927
|
+
is(o: any): o is MsgFundCommunityPoolResponse {
|
|
928
|
+
return o && o.$typeUrl === MsgFundCommunityPoolResponse.typeUrl;
|
|
929
|
+
},
|
|
930
|
+
isAmino(o: any): o is MsgFundCommunityPoolResponseAmino {
|
|
931
|
+
return o && o.$typeUrl === MsgFundCommunityPoolResponse.typeUrl;
|
|
932
|
+
},
|
|
933
|
+
encode(_: MsgFundCommunityPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
934
|
+
return writer;
|
|
935
|
+
},
|
|
936
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse {
|
|
937
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
938
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
939
|
+
const message = createBaseMsgFundCommunityPoolResponse();
|
|
940
|
+
while (reader.pos < end) {
|
|
941
|
+
const tag = reader.uint32();
|
|
942
|
+
switch (tag >>> 3) {
|
|
943
|
+
default:
|
|
944
|
+
reader.skipType(tag & 7);
|
|
945
|
+
break;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
return message;
|
|
949
|
+
},
|
|
950
|
+
fromPartial(_: DeepPartial<MsgFundCommunityPoolResponse>): MsgFundCommunityPoolResponse {
|
|
951
|
+
const message = createBaseMsgFundCommunityPoolResponse();
|
|
952
|
+
return message;
|
|
953
|
+
},
|
|
954
|
+
fromAmino(_: MsgFundCommunityPoolResponseAmino): MsgFundCommunityPoolResponse {
|
|
955
|
+
const message = createBaseMsgFundCommunityPoolResponse();
|
|
956
|
+
return message;
|
|
957
|
+
},
|
|
958
|
+
toAmino(_: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAmino {
|
|
959
|
+
const obj: any = {};
|
|
960
|
+
return obj;
|
|
961
|
+
},
|
|
962
|
+
fromAminoMsg(object: MsgFundCommunityPoolResponseAminoMsg): MsgFundCommunityPoolResponse {
|
|
963
|
+
return MsgFundCommunityPoolResponse.fromAmino(object.value);
|
|
964
|
+
},
|
|
965
|
+
toAminoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAminoMsg {
|
|
966
|
+
return {
|
|
967
|
+
type: "cosmos-sdk/MsgFundCommunityPoolResponse",
|
|
968
|
+
value: MsgFundCommunityPoolResponse.toAmino(message)
|
|
969
|
+
};
|
|
970
|
+
},
|
|
971
|
+
fromProtoMsg(message: MsgFundCommunityPoolResponseProtoMsg): MsgFundCommunityPoolResponse {
|
|
972
|
+
return MsgFundCommunityPoolResponse.decode(message.value);
|
|
973
|
+
},
|
|
974
|
+
toProto(message: MsgFundCommunityPoolResponse): Uint8Array {
|
|
975
|
+
return MsgFundCommunityPoolResponse.encode(message).finish();
|
|
976
|
+
},
|
|
977
|
+
toProtoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseProtoMsg {
|
|
978
|
+
return {
|
|
979
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse",
|
|
980
|
+
value: MsgFundCommunityPoolResponse.encode(message).finish()
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
GlobalDecoderRegistry.register(MsgFundCommunityPoolResponse.typeUrl, MsgFundCommunityPoolResponse);
|
|
985
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgFundCommunityPoolResponse.aminoType, MsgFundCommunityPoolResponse.typeUrl);
|
|
986
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
987
|
+
return {
|
|
988
|
+
authority: "",
|
|
989
|
+
params: Params.fromPartial({})
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
export const MsgUpdateParams = {
|
|
993
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
994
|
+
aminoType: "cosmos-sdk/distribution/MsgUpdateParams",
|
|
995
|
+
is(o: any): o is MsgUpdateParams {
|
|
996
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
|
|
997
|
+
},
|
|
998
|
+
isAmino(o: any): o is MsgUpdateParamsAmino {
|
|
999
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
|
|
1000
|
+
},
|
|
1001
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1002
|
+
if (message.authority !== "") {
|
|
1003
|
+
writer.uint32(10).string(message.authority);
|
|
1004
|
+
}
|
|
1005
|
+
if (message.params !== undefined) {
|
|
1006
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1007
|
+
}
|
|
1008
|
+
return writer;
|
|
1009
|
+
},
|
|
1010
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
1011
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1012
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1013
|
+
const message = createBaseMsgUpdateParams();
|
|
1014
|
+
while (reader.pos < end) {
|
|
1015
|
+
const tag = reader.uint32();
|
|
1016
|
+
switch (tag >>> 3) {
|
|
1017
|
+
case 1:
|
|
1018
|
+
message.authority = reader.string();
|
|
1019
|
+
break;
|
|
1020
|
+
case 2:
|
|
1021
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
1022
|
+
break;
|
|
1023
|
+
default:
|
|
1024
|
+
reader.skipType(tag & 7);
|
|
1025
|
+
break;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return message;
|
|
1029
|
+
},
|
|
1030
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
|
|
1031
|
+
const message = createBaseMsgUpdateParams();
|
|
1032
|
+
message.authority = object.authority ?? "";
|
|
1033
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1034
|
+
return message;
|
|
1035
|
+
},
|
|
1036
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
1037
|
+
const message = createBaseMsgUpdateParams();
|
|
1038
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1039
|
+
message.authority = object.authority;
|
|
1040
|
+
}
|
|
1041
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1042
|
+
message.params = Params.fromAmino(object.params);
|
|
1043
|
+
}
|
|
1044
|
+
return message;
|
|
1045
|
+
},
|
|
1046
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
1047
|
+
const obj: any = {};
|
|
1048
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1049
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
1050
|
+
return obj;
|
|
1051
|
+
},
|
|
1052
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
1053
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
1054
|
+
},
|
|
1055
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
1056
|
+
return {
|
|
1057
|
+
type: "cosmos-sdk/distribution/MsgUpdateParams",
|
|
1058
|
+
value: MsgUpdateParams.toAmino(message)
|
|
1059
|
+
};
|
|
1060
|
+
},
|
|
1061
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
1062
|
+
return MsgUpdateParams.decode(message.value);
|
|
1063
|
+
},
|
|
1064
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
1065
|
+
return MsgUpdateParams.encode(message).finish();
|
|
1066
|
+
},
|
|
1067
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
1068
|
+
return {
|
|
1069
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
1070
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
1075
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
1076
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1077
|
+
return {};
|
|
1078
|
+
}
|
|
1079
|
+
export const MsgUpdateParamsResponse = {
|
|
1080
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse",
|
|
1081
|
+
aminoType: "cosmos-sdk/MsgUpdateParamsResponse",
|
|
1082
|
+
is(o: any): o is MsgUpdateParamsResponse {
|
|
1083
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1084
|
+
},
|
|
1085
|
+
isAmino(o: any): o is MsgUpdateParamsResponseAmino {
|
|
1086
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1087
|
+
},
|
|
1088
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1089
|
+
return writer;
|
|
1090
|
+
},
|
|
1091
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1092
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1093
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1094
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1095
|
+
while (reader.pos < end) {
|
|
1096
|
+
const tag = reader.uint32();
|
|
1097
|
+
switch (tag >>> 3) {
|
|
1098
|
+
default:
|
|
1099
|
+
reader.skipType(tag & 7);
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
return message;
|
|
1104
|
+
},
|
|
1105
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
1106
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1107
|
+
return message;
|
|
1108
|
+
},
|
|
1109
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
1110
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1111
|
+
return message;
|
|
1112
|
+
},
|
|
1113
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
1114
|
+
const obj: any = {};
|
|
1115
|
+
return obj;
|
|
1116
|
+
},
|
|
1117
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
1118
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
1119
|
+
},
|
|
1120
|
+
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
|
|
1121
|
+
return {
|
|
1122
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse",
|
|
1123
|
+
value: MsgUpdateParamsResponse.toAmino(message)
|
|
1124
|
+
};
|
|
1125
|
+
},
|
|
1126
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
1127
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
1128
|
+
},
|
|
1129
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
1130
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
1131
|
+
},
|
|
1132
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
1133
|
+
return {
|
|
1134
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse",
|
|
1135
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
|
|
1140
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
|
|
1141
|
+
function createBaseMsgCommunityPoolSpend(): MsgCommunityPoolSpend {
|
|
1142
|
+
return {
|
|
1143
|
+
authority: "",
|
|
1144
|
+
recipient: "",
|
|
1145
|
+
amount: []
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
export const MsgCommunityPoolSpend = {
|
|
1149
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
1150
|
+
aminoType: "cosmos-sdk/distr/MsgCommunityPoolSpend",
|
|
1151
|
+
is(o: any): o is MsgCommunityPoolSpend {
|
|
1152
|
+
return o && (o.$typeUrl === MsgCommunityPoolSpend.typeUrl || typeof o.authority === "string" && typeof o.recipient === "string" && Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])));
|
|
1153
|
+
},
|
|
1154
|
+
isAmino(o: any): o is MsgCommunityPoolSpendAmino {
|
|
1155
|
+
return o && (o.$typeUrl === MsgCommunityPoolSpend.typeUrl || typeof o.authority === "string" && typeof o.recipient === "string" && Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])));
|
|
1156
|
+
},
|
|
1157
|
+
encode(message: MsgCommunityPoolSpend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1158
|
+
if (message.authority !== "") {
|
|
1159
|
+
writer.uint32(10).string(message.authority);
|
|
1160
|
+
}
|
|
1161
|
+
if (message.recipient !== "") {
|
|
1162
|
+
writer.uint32(18).string(message.recipient);
|
|
1163
|
+
}
|
|
1164
|
+
for (const v of message.amount) {
|
|
1165
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
1166
|
+
}
|
|
1167
|
+
return writer;
|
|
1168
|
+
},
|
|
1169
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCommunityPoolSpend {
|
|
1170
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1172
|
+
const message = createBaseMsgCommunityPoolSpend();
|
|
1173
|
+
while (reader.pos < end) {
|
|
1174
|
+
const tag = reader.uint32();
|
|
1175
|
+
switch (tag >>> 3) {
|
|
1176
|
+
case 1:
|
|
1177
|
+
message.authority = reader.string();
|
|
1178
|
+
break;
|
|
1179
|
+
case 2:
|
|
1180
|
+
message.recipient = reader.string();
|
|
1181
|
+
break;
|
|
1182
|
+
case 3:
|
|
1183
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
1184
|
+
break;
|
|
1185
|
+
default:
|
|
1186
|
+
reader.skipType(tag & 7);
|
|
1187
|
+
break;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
return message;
|
|
1191
|
+
},
|
|
1192
|
+
fromPartial(object: DeepPartial<MsgCommunityPoolSpend>): MsgCommunityPoolSpend {
|
|
1193
|
+
const message = createBaseMsgCommunityPoolSpend();
|
|
1194
|
+
message.authority = object.authority ?? "";
|
|
1195
|
+
message.recipient = object.recipient ?? "";
|
|
1196
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
1197
|
+
return message;
|
|
1198
|
+
},
|
|
1199
|
+
fromAmino(object: MsgCommunityPoolSpendAmino): MsgCommunityPoolSpend {
|
|
1200
|
+
const message = createBaseMsgCommunityPoolSpend();
|
|
1201
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1202
|
+
message.authority = object.authority;
|
|
1203
|
+
}
|
|
1204
|
+
if (object.recipient !== undefined && object.recipient !== null) {
|
|
1205
|
+
message.recipient = object.recipient;
|
|
1206
|
+
}
|
|
1207
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
1208
|
+
return message;
|
|
1209
|
+
},
|
|
1210
|
+
toAmino(message: MsgCommunityPoolSpend): MsgCommunityPoolSpendAmino {
|
|
1211
|
+
const obj: any = {};
|
|
1212
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1213
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
1214
|
+
if (message.amount) {
|
|
1215
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
1216
|
+
} else {
|
|
1217
|
+
obj.amount = message.amount;
|
|
1218
|
+
}
|
|
1219
|
+
return obj;
|
|
1220
|
+
},
|
|
1221
|
+
fromAminoMsg(object: MsgCommunityPoolSpendAminoMsg): MsgCommunityPoolSpend {
|
|
1222
|
+
return MsgCommunityPoolSpend.fromAmino(object.value);
|
|
1223
|
+
},
|
|
1224
|
+
toAminoMsg(message: MsgCommunityPoolSpend): MsgCommunityPoolSpendAminoMsg {
|
|
1225
|
+
return {
|
|
1226
|
+
type: "cosmos-sdk/distr/MsgCommunityPoolSpend",
|
|
1227
|
+
value: MsgCommunityPoolSpend.toAmino(message)
|
|
1228
|
+
};
|
|
1229
|
+
},
|
|
1230
|
+
fromProtoMsg(message: MsgCommunityPoolSpendProtoMsg): MsgCommunityPoolSpend {
|
|
1231
|
+
return MsgCommunityPoolSpend.decode(message.value);
|
|
1232
|
+
},
|
|
1233
|
+
toProto(message: MsgCommunityPoolSpend): Uint8Array {
|
|
1234
|
+
return MsgCommunityPoolSpend.encode(message).finish();
|
|
1235
|
+
},
|
|
1236
|
+
toProtoMsg(message: MsgCommunityPoolSpend): MsgCommunityPoolSpendProtoMsg {
|
|
1237
|
+
return {
|
|
1238
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
1239
|
+
value: MsgCommunityPoolSpend.encode(message).finish()
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
GlobalDecoderRegistry.register(MsgCommunityPoolSpend.typeUrl, MsgCommunityPoolSpend);
|
|
1244
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgCommunityPoolSpend.aminoType, MsgCommunityPoolSpend.typeUrl);
|
|
1245
|
+
function createBaseMsgCommunityPoolSpendResponse(): MsgCommunityPoolSpendResponse {
|
|
1246
|
+
return {};
|
|
1247
|
+
}
|
|
1248
|
+
export const MsgCommunityPoolSpendResponse = {
|
|
1249
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse",
|
|
1250
|
+
aminoType: "cosmos-sdk/MsgCommunityPoolSpendResponse",
|
|
1251
|
+
is(o: any): o is MsgCommunityPoolSpendResponse {
|
|
1252
|
+
return o && o.$typeUrl === MsgCommunityPoolSpendResponse.typeUrl;
|
|
1253
|
+
},
|
|
1254
|
+
isAmino(o: any): o is MsgCommunityPoolSpendResponseAmino {
|
|
1255
|
+
return o && o.$typeUrl === MsgCommunityPoolSpendResponse.typeUrl;
|
|
1256
|
+
},
|
|
1257
|
+
encode(_: MsgCommunityPoolSpendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1258
|
+
return writer;
|
|
1259
|
+
},
|
|
1260
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCommunityPoolSpendResponse {
|
|
1261
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1262
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1263
|
+
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
1264
|
+
while (reader.pos < end) {
|
|
1265
|
+
const tag = reader.uint32();
|
|
1266
|
+
switch (tag >>> 3) {
|
|
1267
|
+
default:
|
|
1268
|
+
reader.skipType(tag & 7);
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
return message;
|
|
1273
|
+
},
|
|
1274
|
+
fromPartial(_: DeepPartial<MsgCommunityPoolSpendResponse>): MsgCommunityPoolSpendResponse {
|
|
1275
|
+
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
1276
|
+
return message;
|
|
1277
|
+
},
|
|
1278
|
+
fromAmino(_: MsgCommunityPoolSpendResponseAmino): MsgCommunityPoolSpendResponse {
|
|
1279
|
+
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
1280
|
+
return message;
|
|
1281
|
+
},
|
|
1282
|
+
toAmino(_: MsgCommunityPoolSpendResponse): MsgCommunityPoolSpendResponseAmino {
|
|
1283
|
+
const obj: any = {};
|
|
1284
|
+
return obj;
|
|
1285
|
+
},
|
|
1286
|
+
fromAminoMsg(object: MsgCommunityPoolSpendResponseAminoMsg): MsgCommunityPoolSpendResponse {
|
|
1287
|
+
return MsgCommunityPoolSpendResponse.fromAmino(object.value);
|
|
1288
|
+
},
|
|
1289
|
+
toAminoMsg(message: MsgCommunityPoolSpendResponse): MsgCommunityPoolSpendResponseAminoMsg {
|
|
1290
|
+
return {
|
|
1291
|
+
type: "cosmos-sdk/MsgCommunityPoolSpendResponse",
|
|
1292
|
+
value: MsgCommunityPoolSpendResponse.toAmino(message)
|
|
1293
|
+
};
|
|
1294
|
+
},
|
|
1295
|
+
fromProtoMsg(message: MsgCommunityPoolSpendResponseProtoMsg): MsgCommunityPoolSpendResponse {
|
|
1296
|
+
return MsgCommunityPoolSpendResponse.decode(message.value);
|
|
1297
|
+
},
|
|
1298
|
+
toProto(message: MsgCommunityPoolSpendResponse): Uint8Array {
|
|
1299
|
+
return MsgCommunityPoolSpendResponse.encode(message).finish();
|
|
1300
|
+
},
|
|
1301
|
+
toProtoMsg(message: MsgCommunityPoolSpendResponse): MsgCommunityPoolSpendResponseProtoMsg {
|
|
1302
|
+
return {
|
|
1303
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse",
|
|
1304
|
+
value: MsgCommunityPoolSpendResponse.encode(message).finish()
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
};
|
|
1308
|
+
GlobalDecoderRegistry.register(MsgCommunityPoolSpendResponse.typeUrl, MsgCommunityPoolSpendResponse);
|
|
1309
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgCommunityPoolSpendResponse.aminoType, MsgCommunityPoolSpendResponse.typeUrl);
|
|
1310
|
+
function createBaseMsgDepositValidatorRewardsPool(): MsgDepositValidatorRewardsPool {
|
|
1311
|
+
return {
|
|
1312
|
+
depositor: "",
|
|
1313
|
+
validatorAddress: "",
|
|
1314
|
+
amount: []
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
export const MsgDepositValidatorRewardsPool = {
|
|
1318
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
1319
|
+
aminoType: "cosmos-sdk/distr/MsgDepositValRewards",
|
|
1320
|
+
is(o: any): o is MsgDepositValidatorRewardsPool {
|
|
1321
|
+
return o && (o.$typeUrl === MsgDepositValidatorRewardsPool.typeUrl || typeof o.depositor === "string" && typeof o.validatorAddress === "string" && Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])));
|
|
1322
|
+
},
|
|
1323
|
+
isAmino(o: any): o is MsgDepositValidatorRewardsPoolAmino {
|
|
1324
|
+
return o && (o.$typeUrl === MsgDepositValidatorRewardsPool.typeUrl || typeof o.depositor === "string" && typeof o.validator_address === "string" && Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])));
|
|
1325
|
+
},
|
|
1326
|
+
encode(message: MsgDepositValidatorRewardsPool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1327
|
+
if (message.depositor !== "") {
|
|
1328
|
+
writer.uint32(10).string(message.depositor);
|
|
1329
|
+
}
|
|
1330
|
+
if (message.validatorAddress !== "") {
|
|
1331
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
1332
|
+
}
|
|
1333
|
+
for (const v of message.amount) {
|
|
1334
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
1335
|
+
}
|
|
1336
|
+
return writer;
|
|
1337
|
+
},
|
|
1338
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositValidatorRewardsPool {
|
|
1339
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1340
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1341
|
+
const message = createBaseMsgDepositValidatorRewardsPool();
|
|
1342
|
+
while (reader.pos < end) {
|
|
1343
|
+
const tag = reader.uint32();
|
|
1344
|
+
switch (tag >>> 3) {
|
|
1345
|
+
case 1:
|
|
1346
|
+
message.depositor = reader.string();
|
|
1347
|
+
break;
|
|
1348
|
+
case 2:
|
|
1349
|
+
message.validatorAddress = reader.string();
|
|
1350
|
+
break;
|
|
1351
|
+
case 3:
|
|
1352
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
1353
|
+
break;
|
|
1354
|
+
default:
|
|
1355
|
+
reader.skipType(tag & 7);
|
|
1356
|
+
break;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
return message;
|
|
1360
|
+
},
|
|
1361
|
+
fromPartial(object: DeepPartial<MsgDepositValidatorRewardsPool>): MsgDepositValidatorRewardsPool {
|
|
1362
|
+
const message = createBaseMsgDepositValidatorRewardsPool();
|
|
1363
|
+
message.depositor = object.depositor ?? "";
|
|
1364
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
1365
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
1366
|
+
return message;
|
|
1367
|
+
},
|
|
1368
|
+
fromAmino(object: MsgDepositValidatorRewardsPoolAmino): MsgDepositValidatorRewardsPool {
|
|
1369
|
+
const message = createBaseMsgDepositValidatorRewardsPool();
|
|
1370
|
+
if (object.depositor !== undefined && object.depositor !== null) {
|
|
1371
|
+
message.depositor = object.depositor;
|
|
1372
|
+
}
|
|
1373
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1374
|
+
message.validatorAddress = object.validator_address;
|
|
1375
|
+
}
|
|
1376
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
1377
|
+
return message;
|
|
1378
|
+
},
|
|
1379
|
+
toAmino(message: MsgDepositValidatorRewardsPool): MsgDepositValidatorRewardsPoolAmino {
|
|
1380
|
+
const obj: any = {};
|
|
1381
|
+
obj.depositor = message.depositor === "" ? undefined : message.depositor;
|
|
1382
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1383
|
+
if (message.amount) {
|
|
1384
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
1385
|
+
} else {
|
|
1386
|
+
obj.amount = message.amount;
|
|
1387
|
+
}
|
|
1388
|
+
return obj;
|
|
1389
|
+
},
|
|
1390
|
+
fromAminoMsg(object: MsgDepositValidatorRewardsPoolAminoMsg): MsgDepositValidatorRewardsPool {
|
|
1391
|
+
return MsgDepositValidatorRewardsPool.fromAmino(object.value);
|
|
1392
|
+
},
|
|
1393
|
+
toAminoMsg(message: MsgDepositValidatorRewardsPool): MsgDepositValidatorRewardsPoolAminoMsg {
|
|
1394
|
+
return {
|
|
1395
|
+
type: "cosmos-sdk/distr/MsgDepositValRewards",
|
|
1396
|
+
value: MsgDepositValidatorRewardsPool.toAmino(message)
|
|
1397
|
+
};
|
|
1398
|
+
},
|
|
1399
|
+
fromProtoMsg(message: MsgDepositValidatorRewardsPoolProtoMsg): MsgDepositValidatorRewardsPool {
|
|
1400
|
+
return MsgDepositValidatorRewardsPool.decode(message.value);
|
|
1401
|
+
},
|
|
1402
|
+
toProto(message: MsgDepositValidatorRewardsPool): Uint8Array {
|
|
1403
|
+
return MsgDepositValidatorRewardsPool.encode(message).finish();
|
|
1404
|
+
},
|
|
1405
|
+
toProtoMsg(message: MsgDepositValidatorRewardsPool): MsgDepositValidatorRewardsPoolProtoMsg {
|
|
1406
|
+
return {
|
|
1407
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
1408
|
+
value: MsgDepositValidatorRewardsPool.encode(message).finish()
|
|
1409
|
+
};
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
GlobalDecoderRegistry.register(MsgDepositValidatorRewardsPool.typeUrl, MsgDepositValidatorRewardsPool);
|
|
1413
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgDepositValidatorRewardsPool.aminoType, MsgDepositValidatorRewardsPool.typeUrl);
|
|
1414
|
+
function createBaseMsgDepositValidatorRewardsPoolResponse(): MsgDepositValidatorRewardsPoolResponse {
|
|
1415
|
+
return {};
|
|
1416
|
+
}
|
|
1417
|
+
export const MsgDepositValidatorRewardsPoolResponse = {
|
|
1418
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse",
|
|
1419
|
+
aminoType: "cosmos-sdk/MsgDepositValidatorRewardsPoolResponse",
|
|
1420
|
+
is(o: any): o is MsgDepositValidatorRewardsPoolResponse {
|
|
1421
|
+
return o && o.$typeUrl === MsgDepositValidatorRewardsPoolResponse.typeUrl;
|
|
1422
|
+
},
|
|
1423
|
+
isAmino(o: any): o is MsgDepositValidatorRewardsPoolResponseAmino {
|
|
1424
|
+
return o && o.$typeUrl === MsgDepositValidatorRewardsPoolResponse.typeUrl;
|
|
1425
|
+
},
|
|
1426
|
+
encode(_: MsgDepositValidatorRewardsPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1427
|
+
return writer;
|
|
1428
|
+
},
|
|
1429
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositValidatorRewardsPoolResponse {
|
|
1430
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1431
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1432
|
+
const message = createBaseMsgDepositValidatorRewardsPoolResponse();
|
|
1433
|
+
while (reader.pos < end) {
|
|
1434
|
+
const tag = reader.uint32();
|
|
1435
|
+
switch (tag >>> 3) {
|
|
1436
|
+
default:
|
|
1437
|
+
reader.skipType(tag & 7);
|
|
1438
|
+
break;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
return message;
|
|
1442
|
+
},
|
|
1443
|
+
fromPartial(_: DeepPartial<MsgDepositValidatorRewardsPoolResponse>): MsgDepositValidatorRewardsPoolResponse {
|
|
1444
|
+
const message = createBaseMsgDepositValidatorRewardsPoolResponse();
|
|
1445
|
+
return message;
|
|
1446
|
+
},
|
|
1447
|
+
fromAmino(_: MsgDepositValidatorRewardsPoolResponseAmino): MsgDepositValidatorRewardsPoolResponse {
|
|
1448
|
+
const message = createBaseMsgDepositValidatorRewardsPoolResponse();
|
|
1449
|
+
return message;
|
|
1450
|
+
},
|
|
1451
|
+
toAmino(_: MsgDepositValidatorRewardsPoolResponse): MsgDepositValidatorRewardsPoolResponseAmino {
|
|
1452
|
+
const obj: any = {};
|
|
1453
|
+
return obj;
|
|
1454
|
+
},
|
|
1455
|
+
fromAminoMsg(object: MsgDepositValidatorRewardsPoolResponseAminoMsg): MsgDepositValidatorRewardsPoolResponse {
|
|
1456
|
+
return MsgDepositValidatorRewardsPoolResponse.fromAmino(object.value);
|
|
1457
|
+
},
|
|
1458
|
+
toAminoMsg(message: MsgDepositValidatorRewardsPoolResponse): MsgDepositValidatorRewardsPoolResponseAminoMsg {
|
|
1459
|
+
return {
|
|
1460
|
+
type: "cosmos-sdk/MsgDepositValidatorRewardsPoolResponse",
|
|
1461
|
+
value: MsgDepositValidatorRewardsPoolResponse.toAmino(message)
|
|
1462
|
+
};
|
|
1463
|
+
},
|
|
1464
|
+
fromProtoMsg(message: MsgDepositValidatorRewardsPoolResponseProtoMsg): MsgDepositValidatorRewardsPoolResponse {
|
|
1465
|
+
return MsgDepositValidatorRewardsPoolResponse.decode(message.value);
|
|
1466
|
+
},
|
|
1467
|
+
toProto(message: MsgDepositValidatorRewardsPoolResponse): Uint8Array {
|
|
1468
|
+
return MsgDepositValidatorRewardsPoolResponse.encode(message).finish();
|
|
1469
|
+
},
|
|
1470
|
+
toProtoMsg(message: MsgDepositValidatorRewardsPoolResponse): MsgDepositValidatorRewardsPoolResponseProtoMsg {
|
|
1471
|
+
return {
|
|
1472
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse",
|
|
1473
|
+
value: MsgDepositValidatorRewardsPoolResponse.encode(message).finish()
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
};
|
|
1477
|
+
GlobalDecoderRegistry.register(MsgDepositValidatorRewardsPoolResponse.typeUrl, MsgDepositValidatorRewardsPoolResponse);
|
|
1478
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgDepositValidatorRewardsPoolResponse.aminoType, MsgDepositValidatorRewardsPoolResponse.typeUrl);
|