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