@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,1638 @@
|
|
|
1
|
+
import { Description, DescriptionAmino, CommissionRates, CommissionRatesAmino, Params, ParamsAmino } from "./staking";
|
|
2
|
+
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
3
|
+
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
4
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
6
|
+
import { DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers";
|
|
7
|
+
import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing";
|
|
8
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
9
|
+
/** MsgCreateValidator defines a SDK message for creating a new validator. */
|
|
10
|
+
export interface MsgCreateValidator {
|
|
11
|
+
description: Description;
|
|
12
|
+
commission: CommissionRates;
|
|
13
|
+
minSelfDelegation: string;
|
|
14
|
+
/**
|
|
15
|
+
* Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
|
|
16
|
+
* The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
|
|
17
|
+
* only in bech32 notation).
|
|
18
|
+
*/
|
|
19
|
+
/** @deprecated */
|
|
20
|
+
delegatorAddress: string;
|
|
21
|
+
validatorAddress: string;
|
|
22
|
+
pubkey?: Any | undefined;
|
|
23
|
+
value: Coin;
|
|
24
|
+
}
|
|
25
|
+
export interface MsgCreateValidatorProtoMsg {
|
|
26
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator";
|
|
27
|
+
value: Uint8Array;
|
|
28
|
+
}
|
|
29
|
+
export type MsgCreateValidatorEncoded = Omit<MsgCreateValidator, "pubkey"> & {
|
|
30
|
+
pubkey?: AnyProtoMsg | undefined;
|
|
31
|
+
};
|
|
32
|
+
/** MsgCreateValidator defines a SDK message for creating a new validator. */
|
|
33
|
+
export interface MsgCreateValidatorAmino {
|
|
34
|
+
description: DescriptionAmino;
|
|
35
|
+
commission: CommissionRatesAmino;
|
|
36
|
+
min_self_delegation: string;
|
|
37
|
+
/**
|
|
38
|
+
* Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
|
|
39
|
+
* The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
|
|
40
|
+
* only in bech32 notation).
|
|
41
|
+
*/
|
|
42
|
+
/** @deprecated */
|
|
43
|
+
delegator_address: string;
|
|
44
|
+
validator_address: string;
|
|
45
|
+
pubkey?: AnyAmino;
|
|
46
|
+
value: CoinAmino;
|
|
47
|
+
}
|
|
48
|
+
export interface MsgCreateValidatorAminoMsg {
|
|
49
|
+
type: "cosmos-sdk/MsgCreateValidator";
|
|
50
|
+
value: MsgCreateValidatorAmino;
|
|
51
|
+
}
|
|
52
|
+
/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
|
|
53
|
+
export interface MsgCreateValidatorResponse {}
|
|
54
|
+
export interface MsgCreateValidatorResponseProtoMsg {
|
|
55
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse";
|
|
56
|
+
value: Uint8Array;
|
|
57
|
+
}
|
|
58
|
+
/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
|
|
59
|
+
export interface MsgCreateValidatorResponseAmino {}
|
|
60
|
+
export interface MsgCreateValidatorResponseAminoMsg {
|
|
61
|
+
type: "cosmos-sdk/MsgCreateValidatorResponse";
|
|
62
|
+
value: MsgCreateValidatorResponseAmino;
|
|
63
|
+
}
|
|
64
|
+
/** MsgEditValidator defines a SDK message for editing an existing validator. */
|
|
65
|
+
export interface MsgEditValidator {
|
|
66
|
+
description: Description;
|
|
67
|
+
validatorAddress: string;
|
|
68
|
+
/**
|
|
69
|
+
* We pass a reference to the new commission rate and min self delegation as
|
|
70
|
+
* it's not mandatory to update. If not updated, the deserialized rate will be
|
|
71
|
+
* zero with no way to distinguish if an update was intended.
|
|
72
|
+
* REF: #2373
|
|
73
|
+
*/
|
|
74
|
+
commissionRate: string;
|
|
75
|
+
minSelfDelegation: string;
|
|
76
|
+
}
|
|
77
|
+
export interface MsgEditValidatorProtoMsg {
|
|
78
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator";
|
|
79
|
+
value: Uint8Array;
|
|
80
|
+
}
|
|
81
|
+
/** MsgEditValidator defines a SDK message for editing an existing validator. */
|
|
82
|
+
export interface MsgEditValidatorAmino {
|
|
83
|
+
description: DescriptionAmino;
|
|
84
|
+
validator_address: string;
|
|
85
|
+
/**
|
|
86
|
+
* We pass a reference to the new commission rate and min self delegation as
|
|
87
|
+
* it's not mandatory to update. If not updated, the deserialized rate will be
|
|
88
|
+
* zero with no way to distinguish if an update was intended.
|
|
89
|
+
* REF: #2373
|
|
90
|
+
*/
|
|
91
|
+
commission_rate: string;
|
|
92
|
+
min_self_delegation: string;
|
|
93
|
+
}
|
|
94
|
+
export interface MsgEditValidatorAminoMsg {
|
|
95
|
+
type: "cosmos-sdk/MsgEditValidator";
|
|
96
|
+
value: MsgEditValidatorAmino;
|
|
97
|
+
}
|
|
98
|
+
/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
|
|
99
|
+
export interface MsgEditValidatorResponse {}
|
|
100
|
+
export interface MsgEditValidatorResponseProtoMsg {
|
|
101
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse";
|
|
102
|
+
value: Uint8Array;
|
|
103
|
+
}
|
|
104
|
+
/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
|
|
105
|
+
export interface MsgEditValidatorResponseAmino {}
|
|
106
|
+
export interface MsgEditValidatorResponseAminoMsg {
|
|
107
|
+
type: "cosmos-sdk/MsgEditValidatorResponse";
|
|
108
|
+
value: MsgEditValidatorResponseAmino;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* MsgDelegate defines a SDK message for performing a delegation of coins
|
|
112
|
+
* from a delegator to a validator.
|
|
113
|
+
*/
|
|
114
|
+
export interface MsgDelegate {
|
|
115
|
+
delegatorAddress: string;
|
|
116
|
+
validatorAddress: string;
|
|
117
|
+
amount: Coin;
|
|
118
|
+
}
|
|
119
|
+
export interface MsgDelegateProtoMsg {
|
|
120
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate";
|
|
121
|
+
value: Uint8Array;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* MsgDelegate defines a SDK message for performing a delegation of coins
|
|
125
|
+
* from a delegator to a validator.
|
|
126
|
+
*/
|
|
127
|
+
export interface MsgDelegateAmino {
|
|
128
|
+
delegator_address: string;
|
|
129
|
+
validator_address: string;
|
|
130
|
+
amount: CoinAmino;
|
|
131
|
+
}
|
|
132
|
+
export interface MsgDelegateAminoMsg {
|
|
133
|
+
type: "cosmos-sdk/MsgDelegate";
|
|
134
|
+
value: MsgDelegateAmino;
|
|
135
|
+
}
|
|
136
|
+
/** MsgDelegateResponse defines the Msg/Delegate response type. */
|
|
137
|
+
export interface MsgDelegateResponse {}
|
|
138
|
+
export interface MsgDelegateResponseProtoMsg {
|
|
139
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
140
|
+
value: Uint8Array;
|
|
141
|
+
}
|
|
142
|
+
/** MsgDelegateResponse defines the Msg/Delegate response type. */
|
|
143
|
+
export interface MsgDelegateResponseAmino {}
|
|
144
|
+
export interface MsgDelegateResponseAminoMsg {
|
|
145
|
+
type: "cosmos-sdk/MsgDelegateResponse";
|
|
146
|
+
value: MsgDelegateResponseAmino;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* MsgBeginRedelegate defines a SDK message for performing a redelegation
|
|
150
|
+
* of coins from a delegator and source validator to a destination validator.
|
|
151
|
+
*/
|
|
152
|
+
export interface MsgBeginRedelegate {
|
|
153
|
+
delegatorAddress: string;
|
|
154
|
+
validatorSrcAddress: string;
|
|
155
|
+
validatorDstAddress: string;
|
|
156
|
+
amount: Coin;
|
|
157
|
+
}
|
|
158
|
+
export interface MsgBeginRedelegateProtoMsg {
|
|
159
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate";
|
|
160
|
+
value: Uint8Array;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* MsgBeginRedelegate defines a SDK message for performing a redelegation
|
|
164
|
+
* of coins from a delegator and source validator to a destination validator.
|
|
165
|
+
*/
|
|
166
|
+
export interface MsgBeginRedelegateAmino {
|
|
167
|
+
delegator_address: string;
|
|
168
|
+
validator_src_address: string;
|
|
169
|
+
validator_dst_address: string;
|
|
170
|
+
amount: CoinAmino;
|
|
171
|
+
}
|
|
172
|
+
export interface MsgBeginRedelegateAminoMsg {
|
|
173
|
+
type: "cosmos-sdk/MsgBeginRedelegate";
|
|
174
|
+
value: MsgBeginRedelegateAmino;
|
|
175
|
+
}
|
|
176
|
+
/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
|
|
177
|
+
export interface MsgBeginRedelegateResponse {
|
|
178
|
+
completionTime: Date;
|
|
179
|
+
}
|
|
180
|
+
export interface MsgBeginRedelegateResponseProtoMsg {
|
|
181
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse";
|
|
182
|
+
value: Uint8Array;
|
|
183
|
+
}
|
|
184
|
+
/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
|
|
185
|
+
export interface MsgBeginRedelegateResponseAmino {
|
|
186
|
+
completion_time: string;
|
|
187
|
+
}
|
|
188
|
+
export interface MsgBeginRedelegateResponseAminoMsg {
|
|
189
|
+
type: "cosmos-sdk/MsgBeginRedelegateResponse";
|
|
190
|
+
value: MsgBeginRedelegateResponseAmino;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* MsgUndelegate defines a SDK message for performing an undelegation from a
|
|
194
|
+
* delegate and a validator.
|
|
195
|
+
*/
|
|
196
|
+
export interface MsgUndelegate {
|
|
197
|
+
delegatorAddress: string;
|
|
198
|
+
validatorAddress: string;
|
|
199
|
+
amount: Coin;
|
|
200
|
+
}
|
|
201
|
+
export interface MsgUndelegateProtoMsg {
|
|
202
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate";
|
|
203
|
+
value: Uint8Array;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* MsgUndelegate defines a SDK message for performing an undelegation from a
|
|
207
|
+
* delegate and a validator.
|
|
208
|
+
*/
|
|
209
|
+
export interface MsgUndelegateAmino {
|
|
210
|
+
delegator_address: string;
|
|
211
|
+
validator_address: string;
|
|
212
|
+
amount: CoinAmino;
|
|
213
|
+
}
|
|
214
|
+
export interface MsgUndelegateAminoMsg {
|
|
215
|
+
type: "cosmos-sdk/MsgUndelegate";
|
|
216
|
+
value: MsgUndelegateAmino;
|
|
217
|
+
}
|
|
218
|
+
/** MsgUndelegateResponse defines the Msg/Undelegate response type. */
|
|
219
|
+
export interface MsgUndelegateResponse {
|
|
220
|
+
completionTime: Date;
|
|
221
|
+
/**
|
|
222
|
+
* amount returns the amount of undelegated coins
|
|
223
|
+
*
|
|
224
|
+
* Since: cosmos-sdk 0.50
|
|
225
|
+
*/
|
|
226
|
+
amount: Coin;
|
|
227
|
+
}
|
|
228
|
+
export interface MsgUndelegateResponseProtoMsg {
|
|
229
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse";
|
|
230
|
+
value: Uint8Array;
|
|
231
|
+
}
|
|
232
|
+
/** MsgUndelegateResponse defines the Msg/Undelegate response type. */
|
|
233
|
+
export interface MsgUndelegateResponseAmino {
|
|
234
|
+
completion_time: string;
|
|
235
|
+
/**
|
|
236
|
+
* amount returns the amount of undelegated coins
|
|
237
|
+
*
|
|
238
|
+
* Since: cosmos-sdk 0.50
|
|
239
|
+
*/
|
|
240
|
+
amount: CoinAmino;
|
|
241
|
+
}
|
|
242
|
+
export interface MsgUndelegateResponseAminoMsg {
|
|
243
|
+
type: "cosmos-sdk/MsgUndelegateResponse";
|
|
244
|
+
value: MsgUndelegateResponseAmino;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
|
|
248
|
+
*
|
|
249
|
+
* Since: cosmos-sdk 0.46
|
|
250
|
+
*/
|
|
251
|
+
export interface MsgCancelUnbondingDelegation {
|
|
252
|
+
delegatorAddress: string;
|
|
253
|
+
validatorAddress: string;
|
|
254
|
+
/** amount is always less than or equal to unbonding delegation entry balance */
|
|
255
|
+
amount: Coin;
|
|
256
|
+
/** creation_height is the height which the unbonding took place. */
|
|
257
|
+
creationHeight: bigint;
|
|
258
|
+
}
|
|
259
|
+
export interface MsgCancelUnbondingDelegationProtoMsg {
|
|
260
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation";
|
|
261
|
+
value: Uint8Array;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
|
|
265
|
+
*
|
|
266
|
+
* Since: cosmos-sdk 0.46
|
|
267
|
+
*/
|
|
268
|
+
export interface MsgCancelUnbondingDelegationAmino {
|
|
269
|
+
delegator_address: string;
|
|
270
|
+
validator_address: string;
|
|
271
|
+
/** amount is always less than or equal to unbonding delegation entry balance */
|
|
272
|
+
amount: CoinAmino;
|
|
273
|
+
/** creation_height is the height which the unbonding took place. */
|
|
274
|
+
creation_height: string;
|
|
275
|
+
}
|
|
276
|
+
export interface MsgCancelUnbondingDelegationAminoMsg {
|
|
277
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegation";
|
|
278
|
+
value: MsgCancelUnbondingDelegationAmino;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* MsgCancelUnbondingDelegationResponse
|
|
282
|
+
*
|
|
283
|
+
* Since: cosmos-sdk 0.46
|
|
284
|
+
*/
|
|
285
|
+
export interface MsgCancelUnbondingDelegationResponse {}
|
|
286
|
+
export interface MsgCancelUnbondingDelegationResponseProtoMsg {
|
|
287
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse";
|
|
288
|
+
value: Uint8Array;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* MsgCancelUnbondingDelegationResponse
|
|
292
|
+
*
|
|
293
|
+
* Since: cosmos-sdk 0.46
|
|
294
|
+
*/
|
|
295
|
+
export interface MsgCancelUnbondingDelegationResponseAmino {}
|
|
296
|
+
export interface MsgCancelUnbondingDelegationResponseAminoMsg {
|
|
297
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse";
|
|
298
|
+
value: MsgCancelUnbondingDelegationResponseAmino;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
302
|
+
*
|
|
303
|
+
* Since: cosmos-sdk 0.47
|
|
304
|
+
*/
|
|
305
|
+
export interface MsgUpdateParams {
|
|
306
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
307
|
+
authority: string;
|
|
308
|
+
/**
|
|
309
|
+
* params defines the x/staking parameters to update.
|
|
310
|
+
*
|
|
311
|
+
* NOTE: All parameters must be supplied.
|
|
312
|
+
*/
|
|
313
|
+
params: Params;
|
|
314
|
+
}
|
|
315
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
316
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams";
|
|
317
|
+
value: Uint8Array;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
321
|
+
*
|
|
322
|
+
* Since: cosmos-sdk 0.47
|
|
323
|
+
*/
|
|
324
|
+
export interface MsgUpdateParamsAmino {
|
|
325
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
326
|
+
authority: string;
|
|
327
|
+
/**
|
|
328
|
+
* params defines the x/staking parameters to update.
|
|
329
|
+
*
|
|
330
|
+
* NOTE: All parameters must be supplied.
|
|
331
|
+
*/
|
|
332
|
+
params: ParamsAmino;
|
|
333
|
+
}
|
|
334
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
335
|
+
type: "cosmos-sdk/x/staking/MsgUpdateParams";
|
|
336
|
+
value: MsgUpdateParamsAmino;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
340
|
+
* MsgUpdateParams message.
|
|
341
|
+
*
|
|
342
|
+
* Since: cosmos-sdk 0.47
|
|
343
|
+
*/
|
|
344
|
+
export interface MsgUpdateParamsResponse {}
|
|
345
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
346
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse";
|
|
347
|
+
value: Uint8Array;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
351
|
+
* MsgUpdateParams message.
|
|
352
|
+
*
|
|
353
|
+
* Since: cosmos-sdk 0.47
|
|
354
|
+
*/
|
|
355
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
356
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
357
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse";
|
|
358
|
+
value: MsgUpdateParamsResponseAmino;
|
|
359
|
+
}
|
|
360
|
+
function createBaseMsgCreateValidator(): MsgCreateValidator {
|
|
361
|
+
return {
|
|
362
|
+
description: Description.fromPartial({}),
|
|
363
|
+
commission: CommissionRates.fromPartial({}),
|
|
364
|
+
minSelfDelegation: "",
|
|
365
|
+
delegatorAddress: "",
|
|
366
|
+
validatorAddress: "",
|
|
367
|
+
pubkey: undefined,
|
|
368
|
+
value: Coin.fromPartial({})
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
export const MsgCreateValidator = {
|
|
372
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
373
|
+
aminoType: "cosmos-sdk/MsgCreateValidator",
|
|
374
|
+
is(o: any): o is MsgCreateValidator {
|
|
375
|
+
return o && (o.$typeUrl === MsgCreateValidator.typeUrl || Description.is(o.description) && CommissionRates.is(o.commission) && typeof o.minSelfDelegation === "string" && typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string" && Coin.is(o.value));
|
|
376
|
+
},
|
|
377
|
+
isAmino(o: any): o is MsgCreateValidatorAmino {
|
|
378
|
+
return o && (o.$typeUrl === MsgCreateValidator.typeUrl || Description.isAmino(o.description) && CommissionRates.isAmino(o.commission) && typeof o.min_self_delegation === "string" && typeof o.delegator_address === "string" && typeof o.validator_address === "string" && Coin.isAmino(o.value));
|
|
379
|
+
},
|
|
380
|
+
encode(message: MsgCreateValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
381
|
+
if (message.description !== undefined) {
|
|
382
|
+
Description.encode(message.description, writer.uint32(10).fork()).ldelim();
|
|
383
|
+
}
|
|
384
|
+
if (message.commission !== undefined) {
|
|
385
|
+
CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim();
|
|
386
|
+
}
|
|
387
|
+
if (message.minSelfDelegation !== "") {
|
|
388
|
+
writer.uint32(26).string(message.minSelfDelegation);
|
|
389
|
+
}
|
|
390
|
+
if (message.delegatorAddress !== "") {
|
|
391
|
+
writer.uint32(34).string(message.delegatorAddress);
|
|
392
|
+
}
|
|
393
|
+
if (message.validatorAddress !== "") {
|
|
394
|
+
writer.uint32(42).string(message.validatorAddress);
|
|
395
|
+
}
|
|
396
|
+
if (message.pubkey !== undefined) {
|
|
397
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.pubkey), writer.uint32(50).fork()).ldelim();
|
|
398
|
+
}
|
|
399
|
+
if (message.value !== undefined) {
|
|
400
|
+
Coin.encode(message.value, writer.uint32(58).fork()).ldelim();
|
|
401
|
+
}
|
|
402
|
+
return writer;
|
|
403
|
+
},
|
|
404
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator {
|
|
405
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
406
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
407
|
+
const message = createBaseMsgCreateValidator();
|
|
408
|
+
while (reader.pos < end) {
|
|
409
|
+
const tag = reader.uint32();
|
|
410
|
+
switch (tag >>> 3) {
|
|
411
|
+
case 1:
|
|
412
|
+
message.description = Description.decode(reader, reader.uint32());
|
|
413
|
+
break;
|
|
414
|
+
case 2:
|
|
415
|
+
message.commission = CommissionRates.decode(reader, reader.uint32());
|
|
416
|
+
break;
|
|
417
|
+
case 3:
|
|
418
|
+
message.minSelfDelegation = reader.string();
|
|
419
|
+
break;
|
|
420
|
+
case 4:
|
|
421
|
+
message.delegatorAddress = reader.string();
|
|
422
|
+
break;
|
|
423
|
+
case 5:
|
|
424
|
+
message.validatorAddress = reader.string();
|
|
425
|
+
break;
|
|
426
|
+
case 6:
|
|
427
|
+
message.pubkey = GlobalDecoderRegistry.unwrapAny(reader);
|
|
428
|
+
break;
|
|
429
|
+
case 7:
|
|
430
|
+
message.value = Coin.decode(reader, reader.uint32());
|
|
431
|
+
break;
|
|
432
|
+
default:
|
|
433
|
+
reader.skipType(tag & 7);
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
return message;
|
|
438
|
+
},
|
|
439
|
+
fromPartial(object: DeepPartial<MsgCreateValidator>): MsgCreateValidator {
|
|
440
|
+
const message = createBaseMsgCreateValidator();
|
|
441
|
+
message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined;
|
|
442
|
+
message.commission = object.commission !== undefined && object.commission !== null ? CommissionRates.fromPartial(object.commission) : undefined;
|
|
443
|
+
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
444
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
445
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
446
|
+
message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? GlobalDecoderRegistry.fromPartial(object.pubkey) : undefined;
|
|
447
|
+
message.value = object.value !== undefined && object.value !== null ? Coin.fromPartial(object.value) : undefined;
|
|
448
|
+
return message;
|
|
449
|
+
},
|
|
450
|
+
fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator {
|
|
451
|
+
const message = createBaseMsgCreateValidator();
|
|
452
|
+
if (object.description !== undefined && object.description !== null) {
|
|
453
|
+
message.description = Description.fromAmino(object.description);
|
|
454
|
+
}
|
|
455
|
+
if (object.commission !== undefined && object.commission !== null) {
|
|
456
|
+
message.commission = CommissionRates.fromAmino(object.commission);
|
|
457
|
+
}
|
|
458
|
+
if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) {
|
|
459
|
+
message.minSelfDelegation = object.min_self_delegation;
|
|
460
|
+
}
|
|
461
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
462
|
+
message.delegatorAddress = object.delegator_address;
|
|
463
|
+
}
|
|
464
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
465
|
+
message.validatorAddress = object.validator_address;
|
|
466
|
+
}
|
|
467
|
+
if (object.pubkey !== undefined && object.pubkey !== null) {
|
|
468
|
+
message.pubkey = encodePubkey(object.pubkey);
|
|
469
|
+
}
|
|
470
|
+
if (object.value !== undefined && object.value !== null) {
|
|
471
|
+
message.value = Coin.fromAmino(object.value);
|
|
472
|
+
}
|
|
473
|
+
return message;
|
|
474
|
+
},
|
|
475
|
+
toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino {
|
|
476
|
+
const obj: any = {};
|
|
477
|
+
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
478
|
+
obj.commission = message.commission ? CommissionRates.toAmino(message.commission) : CommissionRates.toAmino(CommissionRates.fromPartial({}));
|
|
479
|
+
obj.min_self_delegation = message.minSelfDelegation ?? "";
|
|
480
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
481
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
482
|
+
obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined;
|
|
483
|
+
obj.value = message.value ? Coin.toAmino(message.value) : Coin.toAmino(Coin.fromPartial({}));
|
|
484
|
+
return obj;
|
|
485
|
+
},
|
|
486
|
+
fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator {
|
|
487
|
+
return MsgCreateValidator.fromAmino(object.value);
|
|
488
|
+
},
|
|
489
|
+
toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg {
|
|
490
|
+
return {
|
|
491
|
+
type: "cosmos-sdk/MsgCreateValidator",
|
|
492
|
+
value: MsgCreateValidator.toAmino(message)
|
|
493
|
+
};
|
|
494
|
+
},
|
|
495
|
+
fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator {
|
|
496
|
+
return MsgCreateValidator.decode(message.value);
|
|
497
|
+
},
|
|
498
|
+
toProto(message: MsgCreateValidator): Uint8Array {
|
|
499
|
+
return MsgCreateValidator.encode(message).finish();
|
|
500
|
+
},
|
|
501
|
+
toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg {
|
|
502
|
+
return {
|
|
503
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
504
|
+
value: MsgCreateValidator.encode(message).finish()
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
GlobalDecoderRegistry.register(MsgCreateValidator.typeUrl, MsgCreateValidator);
|
|
509
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgCreateValidator.aminoType, MsgCreateValidator.typeUrl);
|
|
510
|
+
function createBaseMsgCreateValidatorResponse(): MsgCreateValidatorResponse {
|
|
511
|
+
return {};
|
|
512
|
+
}
|
|
513
|
+
export const MsgCreateValidatorResponse = {
|
|
514
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse",
|
|
515
|
+
aminoType: "cosmos-sdk/MsgCreateValidatorResponse",
|
|
516
|
+
is(o: any): o is MsgCreateValidatorResponse {
|
|
517
|
+
return o && o.$typeUrl === MsgCreateValidatorResponse.typeUrl;
|
|
518
|
+
},
|
|
519
|
+
isAmino(o: any): o is MsgCreateValidatorResponseAmino {
|
|
520
|
+
return o && o.$typeUrl === MsgCreateValidatorResponse.typeUrl;
|
|
521
|
+
},
|
|
522
|
+
encode(_: MsgCreateValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
523
|
+
return writer;
|
|
524
|
+
},
|
|
525
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse {
|
|
526
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
527
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
528
|
+
const message = createBaseMsgCreateValidatorResponse();
|
|
529
|
+
while (reader.pos < end) {
|
|
530
|
+
const tag = reader.uint32();
|
|
531
|
+
switch (tag >>> 3) {
|
|
532
|
+
default:
|
|
533
|
+
reader.skipType(tag & 7);
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return message;
|
|
538
|
+
},
|
|
539
|
+
fromPartial(_: DeepPartial<MsgCreateValidatorResponse>): MsgCreateValidatorResponse {
|
|
540
|
+
const message = createBaseMsgCreateValidatorResponse();
|
|
541
|
+
return message;
|
|
542
|
+
},
|
|
543
|
+
fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse {
|
|
544
|
+
const message = createBaseMsgCreateValidatorResponse();
|
|
545
|
+
return message;
|
|
546
|
+
},
|
|
547
|
+
toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino {
|
|
548
|
+
const obj: any = {};
|
|
549
|
+
return obj;
|
|
550
|
+
},
|
|
551
|
+
fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse {
|
|
552
|
+
return MsgCreateValidatorResponse.fromAmino(object.value);
|
|
553
|
+
},
|
|
554
|
+
toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg {
|
|
555
|
+
return {
|
|
556
|
+
type: "cosmos-sdk/MsgCreateValidatorResponse",
|
|
557
|
+
value: MsgCreateValidatorResponse.toAmino(message)
|
|
558
|
+
};
|
|
559
|
+
},
|
|
560
|
+
fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse {
|
|
561
|
+
return MsgCreateValidatorResponse.decode(message.value);
|
|
562
|
+
},
|
|
563
|
+
toProto(message: MsgCreateValidatorResponse): Uint8Array {
|
|
564
|
+
return MsgCreateValidatorResponse.encode(message).finish();
|
|
565
|
+
},
|
|
566
|
+
toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg {
|
|
567
|
+
return {
|
|
568
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse",
|
|
569
|
+
value: MsgCreateValidatorResponse.encode(message).finish()
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
GlobalDecoderRegistry.register(MsgCreateValidatorResponse.typeUrl, MsgCreateValidatorResponse);
|
|
574
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgCreateValidatorResponse.aminoType, MsgCreateValidatorResponse.typeUrl);
|
|
575
|
+
function createBaseMsgEditValidator(): MsgEditValidator {
|
|
576
|
+
return {
|
|
577
|
+
description: Description.fromPartial({}),
|
|
578
|
+
validatorAddress: "",
|
|
579
|
+
commissionRate: "",
|
|
580
|
+
minSelfDelegation: ""
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
export const MsgEditValidator = {
|
|
584
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
585
|
+
aminoType: "cosmos-sdk/MsgEditValidator",
|
|
586
|
+
is(o: any): o is MsgEditValidator {
|
|
587
|
+
return o && (o.$typeUrl === MsgEditValidator.typeUrl || Description.is(o.description) && typeof o.validatorAddress === "string" && typeof o.commissionRate === "string" && typeof o.minSelfDelegation === "string");
|
|
588
|
+
},
|
|
589
|
+
isAmino(o: any): o is MsgEditValidatorAmino {
|
|
590
|
+
return o && (o.$typeUrl === MsgEditValidator.typeUrl || Description.isAmino(o.description) && typeof o.validator_address === "string" && typeof o.commission_rate === "string" && typeof o.min_self_delegation === "string");
|
|
591
|
+
},
|
|
592
|
+
encode(message: MsgEditValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
593
|
+
if (message.description !== undefined) {
|
|
594
|
+
Description.encode(message.description, writer.uint32(10).fork()).ldelim();
|
|
595
|
+
}
|
|
596
|
+
if (message.validatorAddress !== "") {
|
|
597
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
598
|
+
}
|
|
599
|
+
if (message.commissionRate !== "") {
|
|
600
|
+
writer.uint32(26).string(message.commissionRate);
|
|
601
|
+
}
|
|
602
|
+
if (message.minSelfDelegation !== "") {
|
|
603
|
+
writer.uint32(34).string(message.minSelfDelegation);
|
|
604
|
+
}
|
|
605
|
+
return writer;
|
|
606
|
+
},
|
|
607
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator {
|
|
608
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
609
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
610
|
+
const message = createBaseMsgEditValidator();
|
|
611
|
+
while (reader.pos < end) {
|
|
612
|
+
const tag = reader.uint32();
|
|
613
|
+
switch (tag >>> 3) {
|
|
614
|
+
case 1:
|
|
615
|
+
message.description = Description.decode(reader, reader.uint32());
|
|
616
|
+
break;
|
|
617
|
+
case 2:
|
|
618
|
+
message.validatorAddress = reader.string();
|
|
619
|
+
break;
|
|
620
|
+
case 3:
|
|
621
|
+
message.commissionRate = reader.string();
|
|
622
|
+
break;
|
|
623
|
+
case 4:
|
|
624
|
+
message.minSelfDelegation = reader.string();
|
|
625
|
+
break;
|
|
626
|
+
default:
|
|
627
|
+
reader.skipType(tag & 7);
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return message;
|
|
632
|
+
},
|
|
633
|
+
fromPartial(object: DeepPartial<MsgEditValidator>): MsgEditValidator {
|
|
634
|
+
const message = createBaseMsgEditValidator();
|
|
635
|
+
message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined;
|
|
636
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
637
|
+
message.commissionRate = object.commissionRate ?? "";
|
|
638
|
+
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
639
|
+
return message;
|
|
640
|
+
},
|
|
641
|
+
fromAmino(object: MsgEditValidatorAmino): MsgEditValidator {
|
|
642
|
+
const message = createBaseMsgEditValidator();
|
|
643
|
+
if (object.description !== undefined && object.description !== null) {
|
|
644
|
+
message.description = Description.fromAmino(object.description);
|
|
645
|
+
}
|
|
646
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
647
|
+
message.validatorAddress = object.validator_address;
|
|
648
|
+
}
|
|
649
|
+
if (object.commission_rate !== undefined && object.commission_rate !== null) {
|
|
650
|
+
message.commissionRate = object.commission_rate;
|
|
651
|
+
}
|
|
652
|
+
if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) {
|
|
653
|
+
message.minSelfDelegation = object.min_self_delegation;
|
|
654
|
+
}
|
|
655
|
+
return message;
|
|
656
|
+
},
|
|
657
|
+
toAmino(message: MsgEditValidator): MsgEditValidatorAmino {
|
|
658
|
+
const obj: any = {};
|
|
659
|
+
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
660
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
661
|
+
obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate;
|
|
662
|
+
obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation;
|
|
663
|
+
return obj;
|
|
664
|
+
},
|
|
665
|
+
fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator {
|
|
666
|
+
return MsgEditValidator.fromAmino(object.value);
|
|
667
|
+
},
|
|
668
|
+
toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg {
|
|
669
|
+
return {
|
|
670
|
+
type: "cosmos-sdk/MsgEditValidator",
|
|
671
|
+
value: MsgEditValidator.toAmino(message)
|
|
672
|
+
};
|
|
673
|
+
},
|
|
674
|
+
fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator {
|
|
675
|
+
return MsgEditValidator.decode(message.value);
|
|
676
|
+
},
|
|
677
|
+
toProto(message: MsgEditValidator): Uint8Array {
|
|
678
|
+
return MsgEditValidator.encode(message).finish();
|
|
679
|
+
},
|
|
680
|
+
toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg {
|
|
681
|
+
return {
|
|
682
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
683
|
+
value: MsgEditValidator.encode(message).finish()
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
GlobalDecoderRegistry.register(MsgEditValidator.typeUrl, MsgEditValidator);
|
|
688
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgEditValidator.aminoType, MsgEditValidator.typeUrl);
|
|
689
|
+
function createBaseMsgEditValidatorResponse(): MsgEditValidatorResponse {
|
|
690
|
+
return {};
|
|
691
|
+
}
|
|
692
|
+
export const MsgEditValidatorResponse = {
|
|
693
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse",
|
|
694
|
+
aminoType: "cosmos-sdk/MsgEditValidatorResponse",
|
|
695
|
+
is(o: any): o is MsgEditValidatorResponse {
|
|
696
|
+
return o && o.$typeUrl === MsgEditValidatorResponse.typeUrl;
|
|
697
|
+
},
|
|
698
|
+
isAmino(o: any): o is MsgEditValidatorResponseAmino {
|
|
699
|
+
return o && o.$typeUrl === MsgEditValidatorResponse.typeUrl;
|
|
700
|
+
},
|
|
701
|
+
encode(_: MsgEditValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
702
|
+
return writer;
|
|
703
|
+
},
|
|
704
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse {
|
|
705
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
706
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
707
|
+
const message = createBaseMsgEditValidatorResponse();
|
|
708
|
+
while (reader.pos < end) {
|
|
709
|
+
const tag = reader.uint32();
|
|
710
|
+
switch (tag >>> 3) {
|
|
711
|
+
default:
|
|
712
|
+
reader.skipType(tag & 7);
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return message;
|
|
717
|
+
},
|
|
718
|
+
fromPartial(_: DeepPartial<MsgEditValidatorResponse>): MsgEditValidatorResponse {
|
|
719
|
+
const message = createBaseMsgEditValidatorResponse();
|
|
720
|
+
return message;
|
|
721
|
+
},
|
|
722
|
+
fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse {
|
|
723
|
+
const message = createBaseMsgEditValidatorResponse();
|
|
724
|
+
return message;
|
|
725
|
+
},
|
|
726
|
+
toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino {
|
|
727
|
+
const obj: any = {};
|
|
728
|
+
return obj;
|
|
729
|
+
},
|
|
730
|
+
fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse {
|
|
731
|
+
return MsgEditValidatorResponse.fromAmino(object.value);
|
|
732
|
+
},
|
|
733
|
+
toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg {
|
|
734
|
+
return {
|
|
735
|
+
type: "cosmos-sdk/MsgEditValidatorResponse",
|
|
736
|
+
value: MsgEditValidatorResponse.toAmino(message)
|
|
737
|
+
};
|
|
738
|
+
},
|
|
739
|
+
fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse {
|
|
740
|
+
return MsgEditValidatorResponse.decode(message.value);
|
|
741
|
+
},
|
|
742
|
+
toProto(message: MsgEditValidatorResponse): Uint8Array {
|
|
743
|
+
return MsgEditValidatorResponse.encode(message).finish();
|
|
744
|
+
},
|
|
745
|
+
toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg {
|
|
746
|
+
return {
|
|
747
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse",
|
|
748
|
+
value: MsgEditValidatorResponse.encode(message).finish()
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
GlobalDecoderRegistry.register(MsgEditValidatorResponse.typeUrl, MsgEditValidatorResponse);
|
|
753
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgEditValidatorResponse.aminoType, MsgEditValidatorResponse.typeUrl);
|
|
754
|
+
function createBaseMsgDelegate(): MsgDelegate {
|
|
755
|
+
return {
|
|
756
|
+
delegatorAddress: "",
|
|
757
|
+
validatorAddress: "",
|
|
758
|
+
amount: Coin.fromPartial({})
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
export const MsgDelegate = {
|
|
762
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
763
|
+
aminoType: "cosmos-sdk/MsgDelegate",
|
|
764
|
+
is(o: any): o is MsgDelegate {
|
|
765
|
+
return o && (o.$typeUrl === MsgDelegate.typeUrl || typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string" && Coin.is(o.amount));
|
|
766
|
+
},
|
|
767
|
+
isAmino(o: any): o is MsgDelegateAmino {
|
|
768
|
+
return o && (o.$typeUrl === MsgDelegate.typeUrl || typeof o.delegator_address === "string" && typeof o.validator_address === "string" && Coin.isAmino(o.amount));
|
|
769
|
+
},
|
|
770
|
+
encode(message: MsgDelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
771
|
+
if (message.delegatorAddress !== "") {
|
|
772
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
773
|
+
}
|
|
774
|
+
if (message.validatorAddress !== "") {
|
|
775
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
776
|
+
}
|
|
777
|
+
if (message.amount !== undefined) {
|
|
778
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
779
|
+
}
|
|
780
|
+
return writer;
|
|
781
|
+
},
|
|
782
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate {
|
|
783
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
784
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
785
|
+
const message = createBaseMsgDelegate();
|
|
786
|
+
while (reader.pos < end) {
|
|
787
|
+
const tag = reader.uint32();
|
|
788
|
+
switch (tag >>> 3) {
|
|
789
|
+
case 1:
|
|
790
|
+
message.delegatorAddress = reader.string();
|
|
791
|
+
break;
|
|
792
|
+
case 2:
|
|
793
|
+
message.validatorAddress = reader.string();
|
|
794
|
+
break;
|
|
795
|
+
case 3:
|
|
796
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
797
|
+
break;
|
|
798
|
+
default:
|
|
799
|
+
reader.skipType(tag & 7);
|
|
800
|
+
break;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return message;
|
|
804
|
+
},
|
|
805
|
+
fromPartial(object: DeepPartial<MsgDelegate>): MsgDelegate {
|
|
806
|
+
const message = createBaseMsgDelegate();
|
|
807
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
808
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
809
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
810
|
+
return message;
|
|
811
|
+
},
|
|
812
|
+
fromAmino(object: MsgDelegateAmino): MsgDelegate {
|
|
813
|
+
const message = createBaseMsgDelegate();
|
|
814
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
815
|
+
message.delegatorAddress = object.delegator_address;
|
|
816
|
+
}
|
|
817
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
818
|
+
message.validatorAddress = object.validator_address;
|
|
819
|
+
}
|
|
820
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
821
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
822
|
+
}
|
|
823
|
+
return message;
|
|
824
|
+
},
|
|
825
|
+
toAmino(message: MsgDelegate): MsgDelegateAmino {
|
|
826
|
+
const obj: any = {};
|
|
827
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
828
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
829
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
830
|
+
return obj;
|
|
831
|
+
},
|
|
832
|
+
fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate {
|
|
833
|
+
return MsgDelegate.fromAmino(object.value);
|
|
834
|
+
},
|
|
835
|
+
toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg {
|
|
836
|
+
return {
|
|
837
|
+
type: "cosmos-sdk/MsgDelegate",
|
|
838
|
+
value: MsgDelegate.toAmino(message)
|
|
839
|
+
};
|
|
840
|
+
},
|
|
841
|
+
fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate {
|
|
842
|
+
return MsgDelegate.decode(message.value);
|
|
843
|
+
},
|
|
844
|
+
toProto(message: MsgDelegate): Uint8Array {
|
|
845
|
+
return MsgDelegate.encode(message).finish();
|
|
846
|
+
},
|
|
847
|
+
toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg {
|
|
848
|
+
return {
|
|
849
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
850
|
+
value: MsgDelegate.encode(message).finish()
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
GlobalDecoderRegistry.register(MsgDelegate.typeUrl, MsgDelegate);
|
|
855
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgDelegate.aminoType, MsgDelegate.typeUrl);
|
|
856
|
+
function createBaseMsgDelegateResponse(): MsgDelegateResponse {
|
|
857
|
+
return {};
|
|
858
|
+
}
|
|
859
|
+
export const MsgDelegateResponse = {
|
|
860
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse",
|
|
861
|
+
aminoType: "cosmos-sdk/MsgDelegateResponse",
|
|
862
|
+
is(o: any): o is MsgDelegateResponse {
|
|
863
|
+
return o && o.$typeUrl === MsgDelegateResponse.typeUrl;
|
|
864
|
+
},
|
|
865
|
+
isAmino(o: any): o is MsgDelegateResponseAmino {
|
|
866
|
+
return o && o.$typeUrl === MsgDelegateResponse.typeUrl;
|
|
867
|
+
},
|
|
868
|
+
encode(_: MsgDelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
869
|
+
return writer;
|
|
870
|
+
},
|
|
871
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse {
|
|
872
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
873
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
874
|
+
const message = createBaseMsgDelegateResponse();
|
|
875
|
+
while (reader.pos < end) {
|
|
876
|
+
const tag = reader.uint32();
|
|
877
|
+
switch (tag >>> 3) {
|
|
878
|
+
default:
|
|
879
|
+
reader.skipType(tag & 7);
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
return message;
|
|
884
|
+
},
|
|
885
|
+
fromPartial(_: DeepPartial<MsgDelegateResponse>): MsgDelegateResponse {
|
|
886
|
+
const message = createBaseMsgDelegateResponse();
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse {
|
|
890
|
+
const message = createBaseMsgDelegateResponse();
|
|
891
|
+
return message;
|
|
892
|
+
},
|
|
893
|
+
toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino {
|
|
894
|
+
const obj: any = {};
|
|
895
|
+
return obj;
|
|
896
|
+
},
|
|
897
|
+
fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse {
|
|
898
|
+
return MsgDelegateResponse.fromAmino(object.value);
|
|
899
|
+
},
|
|
900
|
+
toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg {
|
|
901
|
+
return {
|
|
902
|
+
type: "cosmos-sdk/MsgDelegateResponse",
|
|
903
|
+
value: MsgDelegateResponse.toAmino(message)
|
|
904
|
+
};
|
|
905
|
+
},
|
|
906
|
+
fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse {
|
|
907
|
+
return MsgDelegateResponse.decode(message.value);
|
|
908
|
+
},
|
|
909
|
+
toProto(message: MsgDelegateResponse): Uint8Array {
|
|
910
|
+
return MsgDelegateResponse.encode(message).finish();
|
|
911
|
+
},
|
|
912
|
+
toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg {
|
|
913
|
+
return {
|
|
914
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse",
|
|
915
|
+
value: MsgDelegateResponse.encode(message).finish()
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
GlobalDecoderRegistry.register(MsgDelegateResponse.typeUrl, MsgDelegateResponse);
|
|
920
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgDelegateResponse.aminoType, MsgDelegateResponse.typeUrl);
|
|
921
|
+
function createBaseMsgBeginRedelegate(): MsgBeginRedelegate {
|
|
922
|
+
return {
|
|
923
|
+
delegatorAddress: "",
|
|
924
|
+
validatorSrcAddress: "",
|
|
925
|
+
validatorDstAddress: "",
|
|
926
|
+
amount: Coin.fromPartial({})
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
export const MsgBeginRedelegate = {
|
|
930
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
931
|
+
aminoType: "cosmos-sdk/MsgBeginRedelegate",
|
|
932
|
+
is(o: any): o is MsgBeginRedelegate {
|
|
933
|
+
return o && (o.$typeUrl === MsgBeginRedelegate.typeUrl || typeof o.delegatorAddress === "string" && typeof o.validatorSrcAddress === "string" && typeof o.validatorDstAddress === "string" && Coin.is(o.amount));
|
|
934
|
+
},
|
|
935
|
+
isAmino(o: any): o is MsgBeginRedelegateAmino {
|
|
936
|
+
return o && (o.$typeUrl === MsgBeginRedelegate.typeUrl || typeof o.delegator_address === "string" && typeof o.validator_src_address === "string" && typeof o.validator_dst_address === "string" && Coin.isAmino(o.amount));
|
|
937
|
+
},
|
|
938
|
+
encode(message: MsgBeginRedelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
939
|
+
if (message.delegatorAddress !== "") {
|
|
940
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
941
|
+
}
|
|
942
|
+
if (message.validatorSrcAddress !== "") {
|
|
943
|
+
writer.uint32(18).string(message.validatorSrcAddress);
|
|
944
|
+
}
|
|
945
|
+
if (message.validatorDstAddress !== "") {
|
|
946
|
+
writer.uint32(26).string(message.validatorDstAddress);
|
|
947
|
+
}
|
|
948
|
+
if (message.amount !== undefined) {
|
|
949
|
+
Coin.encode(message.amount, writer.uint32(34).fork()).ldelim();
|
|
950
|
+
}
|
|
951
|
+
return writer;
|
|
952
|
+
},
|
|
953
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate {
|
|
954
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
955
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
956
|
+
const message = createBaseMsgBeginRedelegate();
|
|
957
|
+
while (reader.pos < end) {
|
|
958
|
+
const tag = reader.uint32();
|
|
959
|
+
switch (tag >>> 3) {
|
|
960
|
+
case 1:
|
|
961
|
+
message.delegatorAddress = reader.string();
|
|
962
|
+
break;
|
|
963
|
+
case 2:
|
|
964
|
+
message.validatorSrcAddress = reader.string();
|
|
965
|
+
break;
|
|
966
|
+
case 3:
|
|
967
|
+
message.validatorDstAddress = reader.string();
|
|
968
|
+
break;
|
|
969
|
+
case 4:
|
|
970
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
971
|
+
break;
|
|
972
|
+
default:
|
|
973
|
+
reader.skipType(tag & 7);
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
return message;
|
|
978
|
+
},
|
|
979
|
+
fromPartial(object: DeepPartial<MsgBeginRedelegate>): MsgBeginRedelegate {
|
|
980
|
+
const message = createBaseMsgBeginRedelegate();
|
|
981
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
982
|
+
message.validatorSrcAddress = object.validatorSrcAddress ?? "";
|
|
983
|
+
message.validatorDstAddress = object.validatorDstAddress ?? "";
|
|
984
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
985
|
+
return message;
|
|
986
|
+
},
|
|
987
|
+
fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate {
|
|
988
|
+
const message = createBaseMsgBeginRedelegate();
|
|
989
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
990
|
+
message.delegatorAddress = object.delegator_address;
|
|
991
|
+
}
|
|
992
|
+
if (object.validator_src_address !== undefined && object.validator_src_address !== null) {
|
|
993
|
+
message.validatorSrcAddress = object.validator_src_address;
|
|
994
|
+
}
|
|
995
|
+
if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) {
|
|
996
|
+
message.validatorDstAddress = object.validator_dst_address;
|
|
997
|
+
}
|
|
998
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
999
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1000
|
+
}
|
|
1001
|
+
return message;
|
|
1002
|
+
},
|
|
1003
|
+
toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino {
|
|
1004
|
+
const obj: any = {};
|
|
1005
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1006
|
+
obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress;
|
|
1007
|
+
obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress;
|
|
1008
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1009
|
+
return obj;
|
|
1010
|
+
},
|
|
1011
|
+
fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate {
|
|
1012
|
+
return MsgBeginRedelegate.fromAmino(object.value);
|
|
1013
|
+
},
|
|
1014
|
+
toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg {
|
|
1015
|
+
return {
|
|
1016
|
+
type: "cosmos-sdk/MsgBeginRedelegate",
|
|
1017
|
+
value: MsgBeginRedelegate.toAmino(message)
|
|
1018
|
+
};
|
|
1019
|
+
},
|
|
1020
|
+
fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate {
|
|
1021
|
+
return MsgBeginRedelegate.decode(message.value);
|
|
1022
|
+
},
|
|
1023
|
+
toProto(message: MsgBeginRedelegate): Uint8Array {
|
|
1024
|
+
return MsgBeginRedelegate.encode(message).finish();
|
|
1025
|
+
},
|
|
1026
|
+
toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg {
|
|
1027
|
+
return {
|
|
1028
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
1029
|
+
value: MsgBeginRedelegate.encode(message).finish()
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
GlobalDecoderRegistry.register(MsgBeginRedelegate.typeUrl, MsgBeginRedelegate);
|
|
1034
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgBeginRedelegate.aminoType, MsgBeginRedelegate.typeUrl);
|
|
1035
|
+
function createBaseMsgBeginRedelegateResponse(): MsgBeginRedelegateResponse {
|
|
1036
|
+
return {
|
|
1037
|
+
completionTime: new Date()
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
export const MsgBeginRedelegateResponse = {
|
|
1041
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse",
|
|
1042
|
+
aminoType: "cosmos-sdk/MsgBeginRedelegateResponse",
|
|
1043
|
+
is(o: any): o is MsgBeginRedelegateResponse {
|
|
1044
|
+
return o && (o.$typeUrl === MsgBeginRedelegateResponse.typeUrl || Timestamp.is(o.completionTime));
|
|
1045
|
+
},
|
|
1046
|
+
isAmino(o: any): o is MsgBeginRedelegateResponseAmino {
|
|
1047
|
+
return o && (o.$typeUrl === MsgBeginRedelegateResponse.typeUrl || Timestamp.isAmino(o.completion_time));
|
|
1048
|
+
},
|
|
1049
|
+
encode(message: MsgBeginRedelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1050
|
+
if (message.completionTime !== undefined) {
|
|
1051
|
+
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
|
|
1052
|
+
}
|
|
1053
|
+
return writer;
|
|
1054
|
+
},
|
|
1055
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse {
|
|
1056
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1057
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1058
|
+
const message = createBaseMsgBeginRedelegateResponse();
|
|
1059
|
+
while (reader.pos < end) {
|
|
1060
|
+
const tag = reader.uint32();
|
|
1061
|
+
switch (tag >>> 3) {
|
|
1062
|
+
case 1:
|
|
1063
|
+
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1064
|
+
break;
|
|
1065
|
+
default:
|
|
1066
|
+
reader.skipType(tag & 7);
|
|
1067
|
+
break;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
return message;
|
|
1071
|
+
},
|
|
1072
|
+
fromPartial(object: DeepPartial<MsgBeginRedelegateResponse>): MsgBeginRedelegateResponse {
|
|
1073
|
+
const message = createBaseMsgBeginRedelegateResponse();
|
|
1074
|
+
message.completionTime = object.completionTime ?? undefined;
|
|
1075
|
+
return message;
|
|
1076
|
+
},
|
|
1077
|
+
fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse {
|
|
1078
|
+
const message = createBaseMsgBeginRedelegateResponse();
|
|
1079
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
1080
|
+
message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time));
|
|
1081
|
+
}
|
|
1082
|
+
return message;
|
|
1083
|
+
},
|
|
1084
|
+
toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino {
|
|
1085
|
+
const obj: any = {};
|
|
1086
|
+
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : new Date();
|
|
1087
|
+
return obj;
|
|
1088
|
+
},
|
|
1089
|
+
fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse {
|
|
1090
|
+
return MsgBeginRedelegateResponse.fromAmino(object.value);
|
|
1091
|
+
},
|
|
1092
|
+
toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg {
|
|
1093
|
+
return {
|
|
1094
|
+
type: "cosmos-sdk/MsgBeginRedelegateResponse",
|
|
1095
|
+
value: MsgBeginRedelegateResponse.toAmino(message)
|
|
1096
|
+
};
|
|
1097
|
+
},
|
|
1098
|
+
fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse {
|
|
1099
|
+
return MsgBeginRedelegateResponse.decode(message.value);
|
|
1100
|
+
},
|
|
1101
|
+
toProto(message: MsgBeginRedelegateResponse): Uint8Array {
|
|
1102
|
+
return MsgBeginRedelegateResponse.encode(message).finish();
|
|
1103
|
+
},
|
|
1104
|
+
toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg {
|
|
1105
|
+
return {
|
|
1106
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse",
|
|
1107
|
+
value: MsgBeginRedelegateResponse.encode(message).finish()
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
GlobalDecoderRegistry.register(MsgBeginRedelegateResponse.typeUrl, MsgBeginRedelegateResponse);
|
|
1112
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgBeginRedelegateResponse.aminoType, MsgBeginRedelegateResponse.typeUrl);
|
|
1113
|
+
function createBaseMsgUndelegate(): MsgUndelegate {
|
|
1114
|
+
return {
|
|
1115
|
+
delegatorAddress: "",
|
|
1116
|
+
validatorAddress: "",
|
|
1117
|
+
amount: Coin.fromPartial({})
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
export const MsgUndelegate = {
|
|
1121
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
1122
|
+
aminoType: "cosmos-sdk/MsgUndelegate",
|
|
1123
|
+
is(o: any): o is MsgUndelegate {
|
|
1124
|
+
return o && (o.$typeUrl === MsgUndelegate.typeUrl || typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string" && Coin.is(o.amount));
|
|
1125
|
+
},
|
|
1126
|
+
isAmino(o: any): o is MsgUndelegateAmino {
|
|
1127
|
+
return o && (o.$typeUrl === MsgUndelegate.typeUrl || typeof o.delegator_address === "string" && typeof o.validator_address === "string" && Coin.isAmino(o.amount));
|
|
1128
|
+
},
|
|
1129
|
+
encode(message: MsgUndelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1130
|
+
if (message.delegatorAddress !== "") {
|
|
1131
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
1132
|
+
}
|
|
1133
|
+
if (message.validatorAddress !== "") {
|
|
1134
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
1135
|
+
}
|
|
1136
|
+
if (message.amount !== undefined) {
|
|
1137
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
1138
|
+
}
|
|
1139
|
+
return writer;
|
|
1140
|
+
},
|
|
1141
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate {
|
|
1142
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1144
|
+
const message = createBaseMsgUndelegate();
|
|
1145
|
+
while (reader.pos < end) {
|
|
1146
|
+
const tag = reader.uint32();
|
|
1147
|
+
switch (tag >>> 3) {
|
|
1148
|
+
case 1:
|
|
1149
|
+
message.delegatorAddress = reader.string();
|
|
1150
|
+
break;
|
|
1151
|
+
case 2:
|
|
1152
|
+
message.validatorAddress = reader.string();
|
|
1153
|
+
break;
|
|
1154
|
+
case 3:
|
|
1155
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1156
|
+
break;
|
|
1157
|
+
default:
|
|
1158
|
+
reader.skipType(tag & 7);
|
|
1159
|
+
break;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
return message;
|
|
1163
|
+
},
|
|
1164
|
+
fromPartial(object: DeepPartial<MsgUndelegate>): MsgUndelegate {
|
|
1165
|
+
const message = createBaseMsgUndelegate();
|
|
1166
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1167
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
1168
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1169
|
+
return message;
|
|
1170
|
+
},
|
|
1171
|
+
fromAmino(object: MsgUndelegateAmino): MsgUndelegate {
|
|
1172
|
+
const message = createBaseMsgUndelegate();
|
|
1173
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1174
|
+
message.delegatorAddress = object.delegator_address;
|
|
1175
|
+
}
|
|
1176
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1177
|
+
message.validatorAddress = object.validator_address;
|
|
1178
|
+
}
|
|
1179
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1180
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1181
|
+
}
|
|
1182
|
+
return message;
|
|
1183
|
+
},
|
|
1184
|
+
toAmino(message: MsgUndelegate): MsgUndelegateAmino {
|
|
1185
|
+
const obj: any = {};
|
|
1186
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1187
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1188
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1189
|
+
return obj;
|
|
1190
|
+
},
|
|
1191
|
+
fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate {
|
|
1192
|
+
return MsgUndelegate.fromAmino(object.value);
|
|
1193
|
+
},
|
|
1194
|
+
toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg {
|
|
1195
|
+
return {
|
|
1196
|
+
type: "cosmos-sdk/MsgUndelegate",
|
|
1197
|
+
value: MsgUndelegate.toAmino(message)
|
|
1198
|
+
};
|
|
1199
|
+
},
|
|
1200
|
+
fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate {
|
|
1201
|
+
return MsgUndelegate.decode(message.value);
|
|
1202
|
+
},
|
|
1203
|
+
toProto(message: MsgUndelegate): Uint8Array {
|
|
1204
|
+
return MsgUndelegate.encode(message).finish();
|
|
1205
|
+
},
|
|
1206
|
+
toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg {
|
|
1207
|
+
return {
|
|
1208
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
1209
|
+
value: MsgUndelegate.encode(message).finish()
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
GlobalDecoderRegistry.register(MsgUndelegate.typeUrl, MsgUndelegate);
|
|
1214
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUndelegate.aminoType, MsgUndelegate.typeUrl);
|
|
1215
|
+
function createBaseMsgUndelegateResponse(): MsgUndelegateResponse {
|
|
1216
|
+
return {
|
|
1217
|
+
completionTime: new Date(),
|
|
1218
|
+
amount: Coin.fromPartial({})
|
|
1219
|
+
};
|
|
1220
|
+
}
|
|
1221
|
+
export const MsgUndelegateResponse = {
|
|
1222
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse",
|
|
1223
|
+
aminoType: "cosmos-sdk/MsgUndelegateResponse",
|
|
1224
|
+
is(o: any): o is MsgUndelegateResponse {
|
|
1225
|
+
return o && (o.$typeUrl === MsgUndelegateResponse.typeUrl || Timestamp.is(o.completionTime) && Coin.is(o.amount));
|
|
1226
|
+
},
|
|
1227
|
+
isAmino(o: any): o is MsgUndelegateResponseAmino {
|
|
1228
|
+
return o && (o.$typeUrl === MsgUndelegateResponse.typeUrl || Timestamp.isAmino(o.completion_time) && Coin.isAmino(o.amount));
|
|
1229
|
+
},
|
|
1230
|
+
encode(message: MsgUndelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1231
|
+
if (message.completionTime !== undefined) {
|
|
1232
|
+
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
|
|
1233
|
+
}
|
|
1234
|
+
if (message.amount !== undefined) {
|
|
1235
|
+
Coin.encode(message.amount, writer.uint32(18).fork()).ldelim();
|
|
1236
|
+
}
|
|
1237
|
+
return writer;
|
|
1238
|
+
},
|
|
1239
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse {
|
|
1240
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1241
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1242
|
+
const message = createBaseMsgUndelegateResponse();
|
|
1243
|
+
while (reader.pos < end) {
|
|
1244
|
+
const tag = reader.uint32();
|
|
1245
|
+
switch (tag >>> 3) {
|
|
1246
|
+
case 1:
|
|
1247
|
+
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1248
|
+
break;
|
|
1249
|
+
case 2:
|
|
1250
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1251
|
+
break;
|
|
1252
|
+
default:
|
|
1253
|
+
reader.skipType(tag & 7);
|
|
1254
|
+
break;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
return message;
|
|
1258
|
+
},
|
|
1259
|
+
fromPartial(object: DeepPartial<MsgUndelegateResponse>): MsgUndelegateResponse {
|
|
1260
|
+
const message = createBaseMsgUndelegateResponse();
|
|
1261
|
+
message.completionTime = object.completionTime ?? undefined;
|
|
1262
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1263
|
+
return message;
|
|
1264
|
+
},
|
|
1265
|
+
fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse {
|
|
1266
|
+
const message = createBaseMsgUndelegateResponse();
|
|
1267
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
1268
|
+
message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time));
|
|
1269
|
+
}
|
|
1270
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1271
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1272
|
+
}
|
|
1273
|
+
return message;
|
|
1274
|
+
},
|
|
1275
|
+
toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino {
|
|
1276
|
+
const obj: any = {};
|
|
1277
|
+
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : new Date();
|
|
1278
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1279
|
+
return obj;
|
|
1280
|
+
},
|
|
1281
|
+
fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse {
|
|
1282
|
+
return MsgUndelegateResponse.fromAmino(object.value);
|
|
1283
|
+
},
|
|
1284
|
+
toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg {
|
|
1285
|
+
return {
|
|
1286
|
+
type: "cosmos-sdk/MsgUndelegateResponse",
|
|
1287
|
+
value: MsgUndelegateResponse.toAmino(message)
|
|
1288
|
+
};
|
|
1289
|
+
},
|
|
1290
|
+
fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse {
|
|
1291
|
+
return MsgUndelegateResponse.decode(message.value);
|
|
1292
|
+
},
|
|
1293
|
+
toProto(message: MsgUndelegateResponse): Uint8Array {
|
|
1294
|
+
return MsgUndelegateResponse.encode(message).finish();
|
|
1295
|
+
},
|
|
1296
|
+
toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg {
|
|
1297
|
+
return {
|
|
1298
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse",
|
|
1299
|
+
value: MsgUndelegateResponse.encode(message).finish()
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
};
|
|
1303
|
+
GlobalDecoderRegistry.register(MsgUndelegateResponse.typeUrl, MsgUndelegateResponse);
|
|
1304
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUndelegateResponse.aminoType, MsgUndelegateResponse.typeUrl);
|
|
1305
|
+
function createBaseMsgCancelUnbondingDelegation(): MsgCancelUnbondingDelegation {
|
|
1306
|
+
return {
|
|
1307
|
+
delegatorAddress: "",
|
|
1308
|
+
validatorAddress: "",
|
|
1309
|
+
amount: Coin.fromPartial({}),
|
|
1310
|
+
creationHeight: BigInt(0)
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
export const MsgCancelUnbondingDelegation = {
|
|
1314
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
1315
|
+
aminoType: "cosmos-sdk/MsgCancelUnbondingDelegation",
|
|
1316
|
+
is(o: any): o is MsgCancelUnbondingDelegation {
|
|
1317
|
+
return o && (o.$typeUrl === MsgCancelUnbondingDelegation.typeUrl || typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string" && Coin.is(o.amount) && typeof o.creationHeight === "bigint");
|
|
1318
|
+
},
|
|
1319
|
+
isAmino(o: any): o is MsgCancelUnbondingDelegationAmino {
|
|
1320
|
+
return o && (o.$typeUrl === MsgCancelUnbondingDelegation.typeUrl || typeof o.delegator_address === "string" && typeof o.validator_address === "string" && Coin.isAmino(o.amount) && typeof o.creation_height === "bigint");
|
|
1321
|
+
},
|
|
1322
|
+
encode(message: MsgCancelUnbondingDelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1323
|
+
if (message.delegatorAddress !== "") {
|
|
1324
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
1325
|
+
}
|
|
1326
|
+
if (message.validatorAddress !== "") {
|
|
1327
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
1328
|
+
}
|
|
1329
|
+
if (message.amount !== undefined) {
|
|
1330
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
1331
|
+
}
|
|
1332
|
+
if (message.creationHeight !== BigInt(0)) {
|
|
1333
|
+
writer.uint32(32).int64(message.creationHeight);
|
|
1334
|
+
}
|
|
1335
|
+
return writer;
|
|
1336
|
+
},
|
|
1337
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation {
|
|
1338
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1339
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1340
|
+
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1341
|
+
while (reader.pos < end) {
|
|
1342
|
+
const tag = reader.uint32();
|
|
1343
|
+
switch (tag >>> 3) {
|
|
1344
|
+
case 1:
|
|
1345
|
+
message.delegatorAddress = reader.string();
|
|
1346
|
+
break;
|
|
1347
|
+
case 2:
|
|
1348
|
+
message.validatorAddress = reader.string();
|
|
1349
|
+
break;
|
|
1350
|
+
case 3:
|
|
1351
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1352
|
+
break;
|
|
1353
|
+
case 4:
|
|
1354
|
+
message.creationHeight = reader.int64();
|
|
1355
|
+
break;
|
|
1356
|
+
default:
|
|
1357
|
+
reader.skipType(tag & 7);
|
|
1358
|
+
break;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
return message;
|
|
1362
|
+
},
|
|
1363
|
+
fromPartial(object: DeepPartial<MsgCancelUnbondingDelegation>): MsgCancelUnbondingDelegation {
|
|
1364
|
+
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1365
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1366
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
1367
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1368
|
+
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0);
|
|
1369
|
+
return message;
|
|
1370
|
+
},
|
|
1371
|
+
fromAmino(object: MsgCancelUnbondingDelegationAmino): MsgCancelUnbondingDelegation {
|
|
1372
|
+
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1373
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1374
|
+
message.delegatorAddress = object.delegator_address;
|
|
1375
|
+
}
|
|
1376
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1377
|
+
message.validatorAddress = object.validator_address;
|
|
1378
|
+
}
|
|
1379
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1380
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1381
|
+
}
|
|
1382
|
+
if (object.creation_height !== undefined && object.creation_height !== null) {
|
|
1383
|
+
message.creationHeight = BigInt(object.creation_height);
|
|
1384
|
+
}
|
|
1385
|
+
return message;
|
|
1386
|
+
},
|
|
1387
|
+
toAmino(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAmino {
|
|
1388
|
+
const obj: any = {};
|
|
1389
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1390
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1391
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1392
|
+
obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight?.toString() : undefined;
|
|
1393
|
+
return obj;
|
|
1394
|
+
},
|
|
1395
|
+
fromAminoMsg(object: MsgCancelUnbondingDelegationAminoMsg): MsgCancelUnbondingDelegation {
|
|
1396
|
+
return MsgCancelUnbondingDelegation.fromAmino(object.value);
|
|
1397
|
+
},
|
|
1398
|
+
toAminoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAminoMsg {
|
|
1399
|
+
return {
|
|
1400
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegation",
|
|
1401
|
+
value: MsgCancelUnbondingDelegation.toAmino(message)
|
|
1402
|
+
};
|
|
1403
|
+
},
|
|
1404
|
+
fromProtoMsg(message: MsgCancelUnbondingDelegationProtoMsg): MsgCancelUnbondingDelegation {
|
|
1405
|
+
return MsgCancelUnbondingDelegation.decode(message.value);
|
|
1406
|
+
},
|
|
1407
|
+
toProto(message: MsgCancelUnbondingDelegation): Uint8Array {
|
|
1408
|
+
return MsgCancelUnbondingDelegation.encode(message).finish();
|
|
1409
|
+
},
|
|
1410
|
+
toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg {
|
|
1411
|
+
return {
|
|
1412
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
1413
|
+
value: MsgCancelUnbondingDelegation.encode(message).finish()
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1417
|
+
GlobalDecoderRegistry.register(MsgCancelUnbondingDelegation.typeUrl, MsgCancelUnbondingDelegation);
|
|
1418
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgCancelUnbondingDelegation.aminoType, MsgCancelUnbondingDelegation.typeUrl);
|
|
1419
|
+
function createBaseMsgCancelUnbondingDelegationResponse(): MsgCancelUnbondingDelegationResponse {
|
|
1420
|
+
return {};
|
|
1421
|
+
}
|
|
1422
|
+
export const MsgCancelUnbondingDelegationResponse = {
|
|
1423
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse",
|
|
1424
|
+
aminoType: "cosmos-sdk/MsgCancelUnbondingDelegationResponse",
|
|
1425
|
+
is(o: any): o is MsgCancelUnbondingDelegationResponse {
|
|
1426
|
+
return o && o.$typeUrl === MsgCancelUnbondingDelegationResponse.typeUrl;
|
|
1427
|
+
},
|
|
1428
|
+
isAmino(o: any): o is MsgCancelUnbondingDelegationResponseAmino {
|
|
1429
|
+
return o && o.$typeUrl === MsgCancelUnbondingDelegationResponse.typeUrl;
|
|
1430
|
+
},
|
|
1431
|
+
encode(_: MsgCancelUnbondingDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1432
|
+
return writer;
|
|
1433
|
+
},
|
|
1434
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse {
|
|
1435
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1436
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1437
|
+
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1438
|
+
while (reader.pos < end) {
|
|
1439
|
+
const tag = reader.uint32();
|
|
1440
|
+
switch (tag >>> 3) {
|
|
1441
|
+
default:
|
|
1442
|
+
reader.skipType(tag & 7);
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
return message;
|
|
1447
|
+
},
|
|
1448
|
+
fromPartial(_: DeepPartial<MsgCancelUnbondingDelegationResponse>): MsgCancelUnbondingDelegationResponse {
|
|
1449
|
+
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1450
|
+
return message;
|
|
1451
|
+
},
|
|
1452
|
+
fromAmino(_: MsgCancelUnbondingDelegationResponseAmino): MsgCancelUnbondingDelegationResponse {
|
|
1453
|
+
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1454
|
+
return message;
|
|
1455
|
+
},
|
|
1456
|
+
toAmino(_: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAmino {
|
|
1457
|
+
const obj: any = {};
|
|
1458
|
+
return obj;
|
|
1459
|
+
},
|
|
1460
|
+
fromAminoMsg(object: MsgCancelUnbondingDelegationResponseAminoMsg): MsgCancelUnbondingDelegationResponse {
|
|
1461
|
+
return MsgCancelUnbondingDelegationResponse.fromAmino(object.value);
|
|
1462
|
+
},
|
|
1463
|
+
toAminoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAminoMsg {
|
|
1464
|
+
return {
|
|
1465
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse",
|
|
1466
|
+
value: MsgCancelUnbondingDelegationResponse.toAmino(message)
|
|
1467
|
+
};
|
|
1468
|
+
},
|
|
1469
|
+
fromProtoMsg(message: MsgCancelUnbondingDelegationResponseProtoMsg): MsgCancelUnbondingDelegationResponse {
|
|
1470
|
+
return MsgCancelUnbondingDelegationResponse.decode(message.value);
|
|
1471
|
+
},
|
|
1472
|
+
toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array {
|
|
1473
|
+
return MsgCancelUnbondingDelegationResponse.encode(message).finish();
|
|
1474
|
+
},
|
|
1475
|
+
toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg {
|
|
1476
|
+
return {
|
|
1477
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse",
|
|
1478
|
+
value: MsgCancelUnbondingDelegationResponse.encode(message).finish()
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
GlobalDecoderRegistry.register(MsgCancelUnbondingDelegationResponse.typeUrl, MsgCancelUnbondingDelegationResponse);
|
|
1483
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgCancelUnbondingDelegationResponse.aminoType, MsgCancelUnbondingDelegationResponse.typeUrl);
|
|
1484
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
1485
|
+
return {
|
|
1486
|
+
authority: "",
|
|
1487
|
+
params: Params.fromPartial({})
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
export const MsgUpdateParams = {
|
|
1491
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
1492
|
+
aminoType: "cosmos-sdk/x/staking/MsgUpdateParams",
|
|
1493
|
+
is(o: any): o is MsgUpdateParams {
|
|
1494
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
|
|
1495
|
+
},
|
|
1496
|
+
isAmino(o: any): o is MsgUpdateParamsAmino {
|
|
1497
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
|
|
1498
|
+
},
|
|
1499
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1500
|
+
if (message.authority !== "") {
|
|
1501
|
+
writer.uint32(10).string(message.authority);
|
|
1502
|
+
}
|
|
1503
|
+
if (message.params !== undefined) {
|
|
1504
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1505
|
+
}
|
|
1506
|
+
return writer;
|
|
1507
|
+
},
|
|
1508
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
1509
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1510
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1511
|
+
const message = createBaseMsgUpdateParams();
|
|
1512
|
+
while (reader.pos < end) {
|
|
1513
|
+
const tag = reader.uint32();
|
|
1514
|
+
switch (tag >>> 3) {
|
|
1515
|
+
case 1:
|
|
1516
|
+
message.authority = reader.string();
|
|
1517
|
+
break;
|
|
1518
|
+
case 2:
|
|
1519
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
1520
|
+
break;
|
|
1521
|
+
default:
|
|
1522
|
+
reader.skipType(tag & 7);
|
|
1523
|
+
break;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
return message;
|
|
1527
|
+
},
|
|
1528
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
|
|
1529
|
+
const message = createBaseMsgUpdateParams();
|
|
1530
|
+
message.authority = object.authority ?? "";
|
|
1531
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1532
|
+
return message;
|
|
1533
|
+
},
|
|
1534
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
1535
|
+
const message = createBaseMsgUpdateParams();
|
|
1536
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1537
|
+
message.authority = object.authority;
|
|
1538
|
+
}
|
|
1539
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1540
|
+
message.params = Params.fromAmino(object.params);
|
|
1541
|
+
}
|
|
1542
|
+
return message;
|
|
1543
|
+
},
|
|
1544
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
1545
|
+
const obj: any = {};
|
|
1546
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1547
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
1548
|
+
return obj;
|
|
1549
|
+
},
|
|
1550
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
1551
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
1552
|
+
},
|
|
1553
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
1554
|
+
return {
|
|
1555
|
+
type: "cosmos-sdk/x/staking/MsgUpdateParams",
|
|
1556
|
+
value: MsgUpdateParams.toAmino(message)
|
|
1557
|
+
};
|
|
1558
|
+
},
|
|
1559
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
1560
|
+
return MsgUpdateParams.decode(message.value);
|
|
1561
|
+
},
|
|
1562
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
1563
|
+
return MsgUpdateParams.encode(message).finish();
|
|
1564
|
+
},
|
|
1565
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
1566
|
+
return {
|
|
1567
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
1568
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1572
|
+
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
1573
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
1574
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1575
|
+
return {};
|
|
1576
|
+
}
|
|
1577
|
+
export const MsgUpdateParamsResponse = {
|
|
1578
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse",
|
|
1579
|
+
aminoType: "cosmos-sdk/MsgUpdateParamsResponse",
|
|
1580
|
+
is(o: any): o is MsgUpdateParamsResponse {
|
|
1581
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1582
|
+
},
|
|
1583
|
+
isAmino(o: any): o is MsgUpdateParamsResponseAmino {
|
|
1584
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1585
|
+
},
|
|
1586
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1587
|
+
return writer;
|
|
1588
|
+
},
|
|
1589
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1590
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1591
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1592
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1593
|
+
while (reader.pos < end) {
|
|
1594
|
+
const tag = reader.uint32();
|
|
1595
|
+
switch (tag >>> 3) {
|
|
1596
|
+
default:
|
|
1597
|
+
reader.skipType(tag & 7);
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
return message;
|
|
1602
|
+
},
|
|
1603
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
1604
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1605
|
+
return message;
|
|
1606
|
+
},
|
|
1607
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
1608
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1609
|
+
return message;
|
|
1610
|
+
},
|
|
1611
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
1612
|
+
const obj: any = {};
|
|
1613
|
+
return obj;
|
|
1614
|
+
},
|
|
1615
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
1616
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
1617
|
+
},
|
|
1618
|
+
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
|
|
1619
|
+
return {
|
|
1620
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse",
|
|
1621
|
+
value: MsgUpdateParamsResponse.toAmino(message)
|
|
1622
|
+
};
|
|
1623
|
+
},
|
|
1624
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
1625
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
1626
|
+
},
|
|
1627
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
1628
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
1629
|
+
},
|
|
1630
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
1631
|
+
return {
|
|
1632
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse",
|
|
1633
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
1634
|
+
};
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
|
|
1638
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
|