@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,881 @@
|
|
|
1
|
+
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
2
|
+
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
3
|
+
import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, TextProposal, TextProposalProtoMsg } from "./gov";
|
|
4
|
+
import { ClientUpdateProposal, ClientUpdateProposalProtoMsg, UpgradeProposal, UpgradeProposalProtoMsg } from "../../../ibc/core/client/v1/client";
|
|
5
|
+
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";
|
|
6
|
+
import { SoftwareUpgradeProposal, SoftwareUpgradeProposalProtoMsg, CancelSoftwareUpgradeProposal, CancelSoftwareUpgradeProposalProtoMsg } from "../../upgrade/v1beta1/upgrade";
|
|
7
|
+
import { ParameterChangeProposal, ParameterChangeProposalProtoMsg } from "../../params/v1beta1/params";
|
|
8
|
+
import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg } from "../../distribution/v1beta1/distribution";
|
|
9
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
10
|
+
import { DeepPartial, isSet } from "../../../helpers";
|
|
11
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
12
|
+
/**
|
|
13
|
+
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
|
14
|
+
* proposal Content.
|
|
15
|
+
*/
|
|
16
|
+
export interface MsgSubmitProposal {
|
|
17
|
+
/** content is the proposal's content. */
|
|
18
|
+
content?: ClientUpdateProposal | UpgradeProposal | StoreCodeProposal | InstantiateContractProposal | InstantiateContract2Proposal | MigrateContractProposal | SudoContractProposal | ExecuteContractProposal | UpdateAdminProposal | ClearAdminProposal | PinCodesProposal | UnpinCodesProposal | UpdateInstantiateConfigProposal | StoreAndInstantiateContractProposal | SoftwareUpgradeProposal | CancelSoftwareUpgradeProposal | ParameterChangeProposal | TextProposal | CommunityPoolSpendProposal | CommunityPoolSpendProposalWithDeposit | Any | undefined;
|
|
19
|
+
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
20
|
+
initialDeposit: Coin[];
|
|
21
|
+
/** proposer is the account address of the proposer. */
|
|
22
|
+
proposer: string;
|
|
23
|
+
}
|
|
24
|
+
export interface MsgSubmitProposalProtoMsg {
|
|
25
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal";
|
|
26
|
+
value: Uint8Array;
|
|
27
|
+
}
|
|
28
|
+
export type MsgSubmitProposalEncoded = Omit<MsgSubmitProposal, "content"> & {
|
|
29
|
+
/** 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;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
|
33
|
+
* proposal Content.
|
|
34
|
+
*/
|
|
35
|
+
export interface MsgSubmitProposalAmino {
|
|
36
|
+
/** content is the proposal's content. */
|
|
37
|
+
content?: AnyAmino;
|
|
38
|
+
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
39
|
+
initial_deposit: CoinAmino[];
|
|
40
|
+
/** proposer is the account address of the proposer. */
|
|
41
|
+
proposer: string;
|
|
42
|
+
}
|
|
43
|
+
export interface MsgSubmitProposalAminoMsg {
|
|
44
|
+
type: "cosmos-sdk/MsgSubmitProposal";
|
|
45
|
+
value: MsgSubmitProposalAmino;
|
|
46
|
+
}
|
|
47
|
+
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
48
|
+
export interface MsgSubmitProposalResponse {
|
|
49
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
50
|
+
proposalId: bigint;
|
|
51
|
+
}
|
|
52
|
+
export interface MsgSubmitProposalResponseProtoMsg {
|
|
53
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse";
|
|
54
|
+
value: Uint8Array;
|
|
55
|
+
}
|
|
56
|
+
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
57
|
+
export interface MsgSubmitProposalResponseAmino {
|
|
58
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
59
|
+
proposal_id: string;
|
|
60
|
+
}
|
|
61
|
+
export interface MsgSubmitProposalResponseAminoMsg {
|
|
62
|
+
type: "cosmos-sdk/MsgSubmitProposalResponse";
|
|
63
|
+
value: MsgSubmitProposalResponseAmino;
|
|
64
|
+
}
|
|
65
|
+
/** MsgVote defines a message to cast a vote. */
|
|
66
|
+
export interface MsgVote {
|
|
67
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
68
|
+
proposalId: bigint;
|
|
69
|
+
/** voter is the voter address for the proposal. */
|
|
70
|
+
voter: string;
|
|
71
|
+
/** option defines the vote option. */
|
|
72
|
+
option: VoteOption;
|
|
73
|
+
}
|
|
74
|
+
export interface MsgVoteProtoMsg {
|
|
75
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote";
|
|
76
|
+
value: Uint8Array;
|
|
77
|
+
}
|
|
78
|
+
/** MsgVote defines a message to cast a vote. */
|
|
79
|
+
export interface MsgVoteAmino {
|
|
80
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
81
|
+
proposal_id: string;
|
|
82
|
+
/** voter is the voter address for the proposal. */
|
|
83
|
+
voter: string;
|
|
84
|
+
/** option defines the vote option. */
|
|
85
|
+
option: VoteOption;
|
|
86
|
+
}
|
|
87
|
+
export interface MsgVoteAminoMsg {
|
|
88
|
+
type: "cosmos-sdk/MsgVote";
|
|
89
|
+
value: MsgVoteAmino;
|
|
90
|
+
}
|
|
91
|
+
/** MsgVoteResponse defines the Msg/Vote response type. */
|
|
92
|
+
export interface MsgVoteResponse {}
|
|
93
|
+
export interface MsgVoteResponseProtoMsg {
|
|
94
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse";
|
|
95
|
+
value: Uint8Array;
|
|
96
|
+
}
|
|
97
|
+
/** MsgVoteResponse defines the Msg/Vote response type. */
|
|
98
|
+
export interface MsgVoteResponseAmino {}
|
|
99
|
+
export interface MsgVoteResponseAminoMsg {
|
|
100
|
+
type: "cosmos-sdk/MsgVoteResponse";
|
|
101
|
+
value: MsgVoteResponseAmino;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* MsgVoteWeighted defines a message to cast a vote.
|
|
105
|
+
*
|
|
106
|
+
* Since: cosmos-sdk 0.43
|
|
107
|
+
*/
|
|
108
|
+
export interface MsgVoteWeighted {
|
|
109
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
110
|
+
proposalId: bigint;
|
|
111
|
+
/** voter is the voter address for the proposal. */
|
|
112
|
+
voter: string;
|
|
113
|
+
/** options defines the weighted vote options. */
|
|
114
|
+
options: WeightedVoteOption[];
|
|
115
|
+
}
|
|
116
|
+
export interface MsgVoteWeightedProtoMsg {
|
|
117
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted";
|
|
118
|
+
value: Uint8Array;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* MsgVoteWeighted defines a message to cast a vote.
|
|
122
|
+
*
|
|
123
|
+
* Since: cosmos-sdk 0.43
|
|
124
|
+
*/
|
|
125
|
+
export interface MsgVoteWeightedAmino {
|
|
126
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
127
|
+
proposal_id: string;
|
|
128
|
+
/** voter is the voter address for the proposal. */
|
|
129
|
+
voter: string;
|
|
130
|
+
/** options defines the weighted vote options. */
|
|
131
|
+
options: WeightedVoteOptionAmino[];
|
|
132
|
+
}
|
|
133
|
+
export interface MsgVoteWeightedAminoMsg {
|
|
134
|
+
type: "cosmos-sdk/MsgVoteWeighted";
|
|
135
|
+
value: MsgVoteWeightedAmino;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
|
139
|
+
*
|
|
140
|
+
* Since: cosmos-sdk 0.43
|
|
141
|
+
*/
|
|
142
|
+
export interface MsgVoteWeightedResponse {}
|
|
143
|
+
export interface MsgVoteWeightedResponseProtoMsg {
|
|
144
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse";
|
|
145
|
+
value: Uint8Array;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
|
149
|
+
*
|
|
150
|
+
* Since: cosmos-sdk 0.43
|
|
151
|
+
*/
|
|
152
|
+
export interface MsgVoteWeightedResponseAmino {}
|
|
153
|
+
export interface MsgVoteWeightedResponseAminoMsg {
|
|
154
|
+
type: "cosmos-sdk/MsgVoteWeightedResponse";
|
|
155
|
+
value: MsgVoteWeightedResponseAmino;
|
|
156
|
+
}
|
|
157
|
+
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
158
|
+
export interface MsgDeposit {
|
|
159
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
160
|
+
proposalId: bigint;
|
|
161
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
162
|
+
depositor: string;
|
|
163
|
+
/** amount to be deposited by depositor. */
|
|
164
|
+
amount: Coin[];
|
|
165
|
+
}
|
|
166
|
+
export interface MsgDepositProtoMsg {
|
|
167
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit";
|
|
168
|
+
value: Uint8Array;
|
|
169
|
+
}
|
|
170
|
+
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
171
|
+
export interface MsgDepositAmino {
|
|
172
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
173
|
+
proposal_id: string;
|
|
174
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
175
|
+
depositor: string;
|
|
176
|
+
/** amount to be deposited by depositor. */
|
|
177
|
+
amount: CoinAmino[];
|
|
178
|
+
}
|
|
179
|
+
export interface MsgDepositAminoMsg {
|
|
180
|
+
type: "cosmos-sdk/MsgDeposit";
|
|
181
|
+
value: MsgDepositAmino;
|
|
182
|
+
}
|
|
183
|
+
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
|
184
|
+
export interface MsgDepositResponse {}
|
|
185
|
+
export interface MsgDepositResponseProtoMsg {
|
|
186
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse";
|
|
187
|
+
value: Uint8Array;
|
|
188
|
+
}
|
|
189
|
+
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
|
190
|
+
export interface MsgDepositResponseAmino {}
|
|
191
|
+
export interface MsgDepositResponseAminoMsg {
|
|
192
|
+
type: "cosmos-sdk/MsgDepositResponse";
|
|
193
|
+
value: MsgDepositResponseAmino;
|
|
194
|
+
}
|
|
195
|
+
function createBaseMsgSubmitProposal(): MsgSubmitProposal {
|
|
196
|
+
return {
|
|
197
|
+
content: undefined,
|
|
198
|
+
initialDeposit: [],
|
|
199
|
+
proposer: ""
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export const MsgSubmitProposal = {
|
|
203
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
204
|
+
aminoType: "cosmos-sdk/MsgSubmitProposal",
|
|
205
|
+
is(o: any): o is MsgSubmitProposal {
|
|
206
|
+
return o && (o.$typeUrl === MsgSubmitProposal.typeUrl || Array.isArray(o.initialDeposit) && (!o.initialDeposit.length || Coin.is(o.initialDeposit[0])) && typeof o.proposer === "string");
|
|
207
|
+
},
|
|
208
|
+
isAmino(o: any): o is MsgSubmitProposalAmino {
|
|
209
|
+
return o && (o.$typeUrl === MsgSubmitProposal.typeUrl || Array.isArray(o.initial_deposit) && (!o.initial_deposit.length || Coin.isAmino(o.initial_deposit[0])) && typeof o.proposer === "string");
|
|
210
|
+
},
|
|
211
|
+
encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
212
|
+
if (message.content !== undefined) {
|
|
213
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.content), writer.uint32(10).fork()).ldelim();
|
|
214
|
+
}
|
|
215
|
+
for (const v of message.initialDeposit) {
|
|
216
|
+
Coin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
217
|
+
}
|
|
218
|
+
if (message.proposer !== "") {
|
|
219
|
+
writer.uint32(26).string(message.proposer);
|
|
220
|
+
}
|
|
221
|
+
return writer;
|
|
222
|
+
},
|
|
223
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal {
|
|
224
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
225
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
226
|
+
const message = createBaseMsgSubmitProposal();
|
|
227
|
+
while (reader.pos < end) {
|
|
228
|
+
const tag = reader.uint32();
|
|
229
|
+
switch (tag >>> 3) {
|
|
230
|
+
case 1:
|
|
231
|
+
message.content = GlobalDecoderRegistry.unwrapAny(reader);
|
|
232
|
+
break;
|
|
233
|
+
case 2:
|
|
234
|
+
message.initialDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
235
|
+
break;
|
|
236
|
+
case 3:
|
|
237
|
+
message.proposer = reader.string();
|
|
238
|
+
break;
|
|
239
|
+
default:
|
|
240
|
+
reader.skipType(tag & 7);
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return message;
|
|
245
|
+
},
|
|
246
|
+
fromPartial(object: DeepPartial<MsgSubmitProposal>): MsgSubmitProposal {
|
|
247
|
+
const message = createBaseMsgSubmitProposal();
|
|
248
|
+
message.content = object.content !== undefined && object.content !== null ? GlobalDecoderRegistry.fromPartial(object.content) : undefined;
|
|
249
|
+
message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || [];
|
|
250
|
+
message.proposer = object.proposer ?? "";
|
|
251
|
+
return message;
|
|
252
|
+
},
|
|
253
|
+
fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal {
|
|
254
|
+
const message = createBaseMsgSubmitProposal();
|
|
255
|
+
if (object.content !== undefined && object.content !== null) {
|
|
256
|
+
message.content = GlobalDecoderRegistry.fromAminoMsg(object.content);
|
|
257
|
+
}
|
|
258
|
+
message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || [];
|
|
259
|
+
if (object.proposer !== undefined && object.proposer !== null) {
|
|
260
|
+
message.proposer = object.proposer;
|
|
261
|
+
}
|
|
262
|
+
return message;
|
|
263
|
+
},
|
|
264
|
+
toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino {
|
|
265
|
+
const obj: any = {};
|
|
266
|
+
obj.content = message.content ? GlobalDecoderRegistry.toAminoMsg(message.content) : undefined;
|
|
267
|
+
if (message.initialDeposit) {
|
|
268
|
+
obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined);
|
|
269
|
+
} else {
|
|
270
|
+
obj.initial_deposit = message.initialDeposit;
|
|
271
|
+
}
|
|
272
|
+
obj.proposer = message.proposer === "" ? undefined : message.proposer;
|
|
273
|
+
return obj;
|
|
274
|
+
},
|
|
275
|
+
fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal {
|
|
276
|
+
return MsgSubmitProposal.fromAmino(object.value);
|
|
277
|
+
},
|
|
278
|
+
toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg {
|
|
279
|
+
return {
|
|
280
|
+
type: "cosmos-sdk/MsgSubmitProposal",
|
|
281
|
+
value: MsgSubmitProposal.toAmino(message)
|
|
282
|
+
};
|
|
283
|
+
},
|
|
284
|
+
fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal {
|
|
285
|
+
return MsgSubmitProposal.decode(message.value);
|
|
286
|
+
},
|
|
287
|
+
toProto(message: MsgSubmitProposal): Uint8Array {
|
|
288
|
+
return MsgSubmitProposal.encode(message).finish();
|
|
289
|
+
},
|
|
290
|
+
toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg {
|
|
291
|
+
return {
|
|
292
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
293
|
+
value: MsgSubmitProposal.encode(message).finish()
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
GlobalDecoderRegistry.register(MsgSubmitProposal.typeUrl, MsgSubmitProposal);
|
|
298
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgSubmitProposal.aminoType, MsgSubmitProposal.typeUrl);
|
|
299
|
+
function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse {
|
|
300
|
+
return {
|
|
301
|
+
proposalId: BigInt(0)
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
export const MsgSubmitProposalResponse = {
|
|
305
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse",
|
|
306
|
+
aminoType: "cosmos-sdk/MsgSubmitProposalResponse",
|
|
307
|
+
is(o: any): o is MsgSubmitProposalResponse {
|
|
308
|
+
return o && (o.$typeUrl === MsgSubmitProposalResponse.typeUrl || typeof o.proposalId === "bigint");
|
|
309
|
+
},
|
|
310
|
+
isAmino(o: any): o is MsgSubmitProposalResponseAmino {
|
|
311
|
+
return o && (o.$typeUrl === MsgSubmitProposalResponse.typeUrl || typeof o.proposal_id === "bigint");
|
|
312
|
+
},
|
|
313
|
+
encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
314
|
+
if (message.proposalId !== BigInt(0)) {
|
|
315
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
316
|
+
}
|
|
317
|
+
return writer;
|
|
318
|
+
},
|
|
319
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse {
|
|
320
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
321
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
322
|
+
const message = createBaseMsgSubmitProposalResponse();
|
|
323
|
+
while (reader.pos < end) {
|
|
324
|
+
const tag = reader.uint32();
|
|
325
|
+
switch (tag >>> 3) {
|
|
326
|
+
case 1:
|
|
327
|
+
message.proposalId = reader.uint64();
|
|
328
|
+
break;
|
|
329
|
+
default:
|
|
330
|
+
reader.skipType(tag & 7);
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return message;
|
|
335
|
+
},
|
|
336
|
+
fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse {
|
|
337
|
+
const message = createBaseMsgSubmitProposalResponse();
|
|
338
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
339
|
+
return message;
|
|
340
|
+
},
|
|
341
|
+
fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse {
|
|
342
|
+
const message = createBaseMsgSubmitProposalResponse();
|
|
343
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
344
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
345
|
+
}
|
|
346
|
+
return message;
|
|
347
|
+
},
|
|
348
|
+
toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino {
|
|
349
|
+
const obj: any = {};
|
|
350
|
+
obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
|
|
351
|
+
return obj;
|
|
352
|
+
},
|
|
353
|
+
fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse {
|
|
354
|
+
return MsgSubmitProposalResponse.fromAmino(object.value);
|
|
355
|
+
},
|
|
356
|
+
toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg {
|
|
357
|
+
return {
|
|
358
|
+
type: "cosmos-sdk/MsgSubmitProposalResponse",
|
|
359
|
+
value: MsgSubmitProposalResponse.toAmino(message)
|
|
360
|
+
};
|
|
361
|
+
},
|
|
362
|
+
fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse {
|
|
363
|
+
return MsgSubmitProposalResponse.decode(message.value);
|
|
364
|
+
},
|
|
365
|
+
toProto(message: MsgSubmitProposalResponse): Uint8Array {
|
|
366
|
+
return MsgSubmitProposalResponse.encode(message).finish();
|
|
367
|
+
},
|
|
368
|
+
toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg {
|
|
369
|
+
return {
|
|
370
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse",
|
|
371
|
+
value: MsgSubmitProposalResponse.encode(message).finish()
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
GlobalDecoderRegistry.register(MsgSubmitProposalResponse.typeUrl, MsgSubmitProposalResponse);
|
|
376
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgSubmitProposalResponse.aminoType, MsgSubmitProposalResponse.typeUrl);
|
|
377
|
+
function createBaseMsgVote(): MsgVote {
|
|
378
|
+
return {
|
|
379
|
+
proposalId: BigInt(0),
|
|
380
|
+
voter: "",
|
|
381
|
+
option: 0
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
export const MsgVote = {
|
|
385
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
386
|
+
aminoType: "cosmos-sdk/MsgVote",
|
|
387
|
+
is(o: any): o is MsgVote {
|
|
388
|
+
return o && (o.$typeUrl === MsgVote.typeUrl || typeof o.proposalId === "bigint" && typeof o.voter === "string" && isSet(o.option));
|
|
389
|
+
},
|
|
390
|
+
isAmino(o: any): o is MsgVoteAmino {
|
|
391
|
+
return o && (o.$typeUrl === MsgVote.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string" && isSet(o.option));
|
|
392
|
+
},
|
|
393
|
+
encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
394
|
+
if (message.proposalId !== BigInt(0)) {
|
|
395
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
396
|
+
}
|
|
397
|
+
if (message.voter !== "") {
|
|
398
|
+
writer.uint32(18).string(message.voter);
|
|
399
|
+
}
|
|
400
|
+
if (message.option !== 0) {
|
|
401
|
+
writer.uint32(24).int32(message.option);
|
|
402
|
+
}
|
|
403
|
+
return writer;
|
|
404
|
+
},
|
|
405
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgVote {
|
|
406
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
407
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
408
|
+
const message = createBaseMsgVote();
|
|
409
|
+
while (reader.pos < end) {
|
|
410
|
+
const tag = reader.uint32();
|
|
411
|
+
switch (tag >>> 3) {
|
|
412
|
+
case 1:
|
|
413
|
+
message.proposalId = reader.uint64();
|
|
414
|
+
break;
|
|
415
|
+
case 2:
|
|
416
|
+
message.voter = reader.string();
|
|
417
|
+
break;
|
|
418
|
+
case 3:
|
|
419
|
+
message.option = reader.int32() as any;
|
|
420
|
+
break;
|
|
421
|
+
default:
|
|
422
|
+
reader.skipType(tag & 7);
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return message;
|
|
427
|
+
},
|
|
428
|
+
fromPartial(object: DeepPartial<MsgVote>): MsgVote {
|
|
429
|
+
const message = createBaseMsgVote();
|
|
430
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
431
|
+
message.voter = object.voter ?? "";
|
|
432
|
+
message.option = object.option ?? 0;
|
|
433
|
+
return message;
|
|
434
|
+
},
|
|
435
|
+
fromAmino(object: MsgVoteAmino): MsgVote {
|
|
436
|
+
const message = createBaseMsgVote();
|
|
437
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
438
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
439
|
+
}
|
|
440
|
+
if (object.voter !== undefined && object.voter !== null) {
|
|
441
|
+
message.voter = object.voter;
|
|
442
|
+
}
|
|
443
|
+
if (object.option !== undefined && object.option !== null) {
|
|
444
|
+
message.option = object.option;
|
|
445
|
+
}
|
|
446
|
+
return message;
|
|
447
|
+
},
|
|
448
|
+
toAmino(message: MsgVote): MsgVoteAmino {
|
|
449
|
+
const obj: any = {};
|
|
450
|
+
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
451
|
+
obj.voter = message.voter === "" ? undefined : message.voter;
|
|
452
|
+
obj.option = message.option === 0 ? undefined : message.option;
|
|
453
|
+
return obj;
|
|
454
|
+
},
|
|
455
|
+
fromAminoMsg(object: MsgVoteAminoMsg): MsgVote {
|
|
456
|
+
return MsgVote.fromAmino(object.value);
|
|
457
|
+
},
|
|
458
|
+
toAminoMsg(message: MsgVote): MsgVoteAminoMsg {
|
|
459
|
+
return {
|
|
460
|
+
type: "cosmos-sdk/MsgVote",
|
|
461
|
+
value: MsgVote.toAmino(message)
|
|
462
|
+
};
|
|
463
|
+
},
|
|
464
|
+
fromProtoMsg(message: MsgVoteProtoMsg): MsgVote {
|
|
465
|
+
return MsgVote.decode(message.value);
|
|
466
|
+
},
|
|
467
|
+
toProto(message: MsgVote): Uint8Array {
|
|
468
|
+
return MsgVote.encode(message).finish();
|
|
469
|
+
},
|
|
470
|
+
toProtoMsg(message: MsgVote): MsgVoteProtoMsg {
|
|
471
|
+
return {
|
|
472
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
473
|
+
value: MsgVote.encode(message).finish()
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
GlobalDecoderRegistry.register(MsgVote.typeUrl, MsgVote);
|
|
478
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgVote.aminoType, MsgVote.typeUrl);
|
|
479
|
+
function createBaseMsgVoteResponse(): MsgVoteResponse {
|
|
480
|
+
return {};
|
|
481
|
+
}
|
|
482
|
+
export const MsgVoteResponse = {
|
|
483
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse",
|
|
484
|
+
aminoType: "cosmos-sdk/MsgVoteResponse",
|
|
485
|
+
is(o: any): o is MsgVoteResponse {
|
|
486
|
+
return o && o.$typeUrl === MsgVoteResponse.typeUrl;
|
|
487
|
+
},
|
|
488
|
+
isAmino(o: any): o is MsgVoteResponseAmino {
|
|
489
|
+
return o && o.$typeUrl === MsgVoteResponse.typeUrl;
|
|
490
|
+
},
|
|
491
|
+
encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
492
|
+
return writer;
|
|
493
|
+
},
|
|
494
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse {
|
|
495
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
496
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
497
|
+
const message = createBaseMsgVoteResponse();
|
|
498
|
+
while (reader.pos < end) {
|
|
499
|
+
const tag = reader.uint32();
|
|
500
|
+
switch (tag >>> 3) {
|
|
501
|
+
default:
|
|
502
|
+
reader.skipType(tag & 7);
|
|
503
|
+
break;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
return message;
|
|
507
|
+
},
|
|
508
|
+
fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse {
|
|
509
|
+
const message = createBaseMsgVoteResponse();
|
|
510
|
+
return message;
|
|
511
|
+
},
|
|
512
|
+
fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse {
|
|
513
|
+
const message = createBaseMsgVoteResponse();
|
|
514
|
+
return message;
|
|
515
|
+
},
|
|
516
|
+
toAmino(_: MsgVoteResponse): MsgVoteResponseAmino {
|
|
517
|
+
const obj: any = {};
|
|
518
|
+
return obj;
|
|
519
|
+
},
|
|
520
|
+
fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse {
|
|
521
|
+
return MsgVoteResponse.fromAmino(object.value);
|
|
522
|
+
},
|
|
523
|
+
toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg {
|
|
524
|
+
return {
|
|
525
|
+
type: "cosmos-sdk/MsgVoteResponse",
|
|
526
|
+
value: MsgVoteResponse.toAmino(message)
|
|
527
|
+
};
|
|
528
|
+
},
|
|
529
|
+
fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse {
|
|
530
|
+
return MsgVoteResponse.decode(message.value);
|
|
531
|
+
},
|
|
532
|
+
toProto(message: MsgVoteResponse): Uint8Array {
|
|
533
|
+
return MsgVoteResponse.encode(message).finish();
|
|
534
|
+
},
|
|
535
|
+
toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg {
|
|
536
|
+
return {
|
|
537
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse",
|
|
538
|
+
value: MsgVoteResponse.encode(message).finish()
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
GlobalDecoderRegistry.register(MsgVoteResponse.typeUrl, MsgVoteResponse);
|
|
543
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgVoteResponse.aminoType, MsgVoteResponse.typeUrl);
|
|
544
|
+
function createBaseMsgVoteWeighted(): MsgVoteWeighted {
|
|
545
|
+
return {
|
|
546
|
+
proposalId: BigInt(0),
|
|
547
|
+
voter: "",
|
|
548
|
+
options: []
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
export const MsgVoteWeighted = {
|
|
552
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
553
|
+
aminoType: "cosmos-sdk/MsgVoteWeighted",
|
|
554
|
+
is(o: any): o is MsgVoteWeighted {
|
|
555
|
+
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])));
|
|
556
|
+
},
|
|
557
|
+
isAmino(o: any): o is MsgVoteWeightedAmino {
|
|
558
|
+
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])));
|
|
559
|
+
},
|
|
560
|
+
encode(message: MsgVoteWeighted, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
561
|
+
if (message.proposalId !== BigInt(0)) {
|
|
562
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
563
|
+
}
|
|
564
|
+
if (message.voter !== "") {
|
|
565
|
+
writer.uint32(18).string(message.voter);
|
|
566
|
+
}
|
|
567
|
+
for (const v of message.options) {
|
|
568
|
+
WeightedVoteOption.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
569
|
+
}
|
|
570
|
+
return writer;
|
|
571
|
+
},
|
|
572
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted {
|
|
573
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
574
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
575
|
+
const message = createBaseMsgVoteWeighted();
|
|
576
|
+
while (reader.pos < end) {
|
|
577
|
+
const tag = reader.uint32();
|
|
578
|
+
switch (tag >>> 3) {
|
|
579
|
+
case 1:
|
|
580
|
+
message.proposalId = reader.uint64();
|
|
581
|
+
break;
|
|
582
|
+
case 2:
|
|
583
|
+
message.voter = reader.string();
|
|
584
|
+
break;
|
|
585
|
+
case 3:
|
|
586
|
+
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
|
587
|
+
break;
|
|
588
|
+
default:
|
|
589
|
+
reader.skipType(tag & 7);
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
return message;
|
|
594
|
+
},
|
|
595
|
+
fromPartial(object: DeepPartial<MsgVoteWeighted>): MsgVoteWeighted {
|
|
596
|
+
const message = createBaseMsgVoteWeighted();
|
|
597
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
598
|
+
message.voter = object.voter ?? "";
|
|
599
|
+
message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || [];
|
|
600
|
+
return message;
|
|
601
|
+
},
|
|
602
|
+
fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted {
|
|
603
|
+
const message = createBaseMsgVoteWeighted();
|
|
604
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
605
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
606
|
+
}
|
|
607
|
+
if (object.voter !== undefined && object.voter !== null) {
|
|
608
|
+
message.voter = object.voter;
|
|
609
|
+
}
|
|
610
|
+
message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || [];
|
|
611
|
+
return message;
|
|
612
|
+
},
|
|
613
|
+
toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino {
|
|
614
|
+
const obj: any = {};
|
|
615
|
+
obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
|
|
616
|
+
obj.voter = message.voter === "" ? undefined : message.voter;
|
|
617
|
+
if (message.options) {
|
|
618
|
+
obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined);
|
|
619
|
+
} else {
|
|
620
|
+
obj.options = message.options;
|
|
621
|
+
}
|
|
622
|
+
return obj;
|
|
623
|
+
},
|
|
624
|
+
fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted {
|
|
625
|
+
return MsgVoteWeighted.fromAmino(object.value);
|
|
626
|
+
},
|
|
627
|
+
toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg {
|
|
628
|
+
return {
|
|
629
|
+
type: "cosmos-sdk/MsgVoteWeighted",
|
|
630
|
+
value: MsgVoteWeighted.toAmino(message)
|
|
631
|
+
};
|
|
632
|
+
},
|
|
633
|
+
fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted {
|
|
634
|
+
return MsgVoteWeighted.decode(message.value);
|
|
635
|
+
},
|
|
636
|
+
toProto(message: MsgVoteWeighted): Uint8Array {
|
|
637
|
+
return MsgVoteWeighted.encode(message).finish();
|
|
638
|
+
},
|
|
639
|
+
toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg {
|
|
640
|
+
return {
|
|
641
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
642
|
+
value: MsgVoteWeighted.encode(message).finish()
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
GlobalDecoderRegistry.register(MsgVoteWeighted.typeUrl, MsgVoteWeighted);
|
|
647
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgVoteWeighted.aminoType, MsgVoteWeighted.typeUrl);
|
|
648
|
+
function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse {
|
|
649
|
+
return {};
|
|
650
|
+
}
|
|
651
|
+
export const MsgVoteWeightedResponse = {
|
|
652
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse",
|
|
653
|
+
aminoType: "cosmos-sdk/MsgVoteWeightedResponse",
|
|
654
|
+
is(o: any): o is MsgVoteWeightedResponse {
|
|
655
|
+
return o && o.$typeUrl === MsgVoteWeightedResponse.typeUrl;
|
|
656
|
+
},
|
|
657
|
+
isAmino(o: any): o is MsgVoteWeightedResponseAmino {
|
|
658
|
+
return o && o.$typeUrl === MsgVoteWeightedResponse.typeUrl;
|
|
659
|
+
},
|
|
660
|
+
encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
661
|
+
return writer;
|
|
662
|
+
},
|
|
663
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse {
|
|
664
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
665
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
666
|
+
const message = createBaseMsgVoteWeightedResponse();
|
|
667
|
+
while (reader.pos < end) {
|
|
668
|
+
const tag = reader.uint32();
|
|
669
|
+
switch (tag >>> 3) {
|
|
670
|
+
default:
|
|
671
|
+
reader.skipType(tag & 7);
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
return message;
|
|
676
|
+
},
|
|
677
|
+
fromPartial(_: DeepPartial<MsgVoteWeightedResponse>): MsgVoteWeightedResponse {
|
|
678
|
+
const message = createBaseMsgVoteWeightedResponse();
|
|
679
|
+
return message;
|
|
680
|
+
},
|
|
681
|
+
fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse {
|
|
682
|
+
const message = createBaseMsgVoteWeightedResponse();
|
|
683
|
+
return message;
|
|
684
|
+
},
|
|
685
|
+
toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino {
|
|
686
|
+
const obj: any = {};
|
|
687
|
+
return obj;
|
|
688
|
+
},
|
|
689
|
+
fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse {
|
|
690
|
+
return MsgVoteWeightedResponse.fromAmino(object.value);
|
|
691
|
+
},
|
|
692
|
+
toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg {
|
|
693
|
+
return {
|
|
694
|
+
type: "cosmos-sdk/MsgVoteWeightedResponse",
|
|
695
|
+
value: MsgVoteWeightedResponse.toAmino(message)
|
|
696
|
+
};
|
|
697
|
+
},
|
|
698
|
+
fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse {
|
|
699
|
+
return MsgVoteWeightedResponse.decode(message.value);
|
|
700
|
+
},
|
|
701
|
+
toProto(message: MsgVoteWeightedResponse): Uint8Array {
|
|
702
|
+
return MsgVoteWeightedResponse.encode(message).finish();
|
|
703
|
+
},
|
|
704
|
+
toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg {
|
|
705
|
+
return {
|
|
706
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse",
|
|
707
|
+
value: MsgVoteWeightedResponse.encode(message).finish()
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
GlobalDecoderRegistry.register(MsgVoteWeightedResponse.typeUrl, MsgVoteWeightedResponse);
|
|
712
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgVoteWeightedResponse.aminoType, MsgVoteWeightedResponse.typeUrl);
|
|
713
|
+
function createBaseMsgDeposit(): MsgDeposit {
|
|
714
|
+
return {
|
|
715
|
+
proposalId: BigInt(0),
|
|
716
|
+
depositor: "",
|
|
717
|
+
amount: []
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
export const MsgDeposit = {
|
|
721
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
722
|
+
aminoType: "cosmos-sdk/MsgDeposit",
|
|
723
|
+
is(o: any): o is MsgDeposit {
|
|
724
|
+
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])));
|
|
725
|
+
},
|
|
726
|
+
isAmino(o: any): o is MsgDepositAmino {
|
|
727
|
+
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])));
|
|
728
|
+
},
|
|
729
|
+
encode(message: MsgDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
730
|
+
if (message.proposalId !== BigInt(0)) {
|
|
731
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
732
|
+
}
|
|
733
|
+
if (message.depositor !== "") {
|
|
734
|
+
writer.uint32(18).string(message.depositor);
|
|
735
|
+
}
|
|
736
|
+
for (const v of message.amount) {
|
|
737
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
738
|
+
}
|
|
739
|
+
return writer;
|
|
740
|
+
},
|
|
741
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit {
|
|
742
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
743
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
744
|
+
const message = createBaseMsgDeposit();
|
|
745
|
+
while (reader.pos < end) {
|
|
746
|
+
const tag = reader.uint32();
|
|
747
|
+
switch (tag >>> 3) {
|
|
748
|
+
case 1:
|
|
749
|
+
message.proposalId = reader.uint64();
|
|
750
|
+
break;
|
|
751
|
+
case 2:
|
|
752
|
+
message.depositor = reader.string();
|
|
753
|
+
break;
|
|
754
|
+
case 3:
|
|
755
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
756
|
+
break;
|
|
757
|
+
default:
|
|
758
|
+
reader.skipType(tag & 7);
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return message;
|
|
763
|
+
},
|
|
764
|
+
fromPartial(object: DeepPartial<MsgDeposit>): MsgDeposit {
|
|
765
|
+
const message = createBaseMsgDeposit();
|
|
766
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
767
|
+
message.depositor = object.depositor ?? "";
|
|
768
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
769
|
+
return message;
|
|
770
|
+
},
|
|
771
|
+
fromAmino(object: MsgDepositAmino): MsgDeposit {
|
|
772
|
+
const message = createBaseMsgDeposit();
|
|
773
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
774
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
775
|
+
}
|
|
776
|
+
if (object.depositor !== undefined && object.depositor !== null) {
|
|
777
|
+
message.depositor = object.depositor;
|
|
778
|
+
}
|
|
779
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
780
|
+
return message;
|
|
781
|
+
},
|
|
782
|
+
toAmino(message: MsgDeposit): MsgDepositAmino {
|
|
783
|
+
const obj: any = {};
|
|
784
|
+
obj.proposal_id = message.proposalId ? message.proposalId?.toString() : "0";
|
|
785
|
+
obj.depositor = message.depositor === "" ? undefined : message.depositor;
|
|
786
|
+
if (message.amount) {
|
|
787
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
788
|
+
} else {
|
|
789
|
+
obj.amount = message.amount;
|
|
790
|
+
}
|
|
791
|
+
return obj;
|
|
792
|
+
},
|
|
793
|
+
fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit {
|
|
794
|
+
return MsgDeposit.fromAmino(object.value);
|
|
795
|
+
},
|
|
796
|
+
toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg {
|
|
797
|
+
return {
|
|
798
|
+
type: "cosmos-sdk/MsgDeposit",
|
|
799
|
+
value: MsgDeposit.toAmino(message)
|
|
800
|
+
};
|
|
801
|
+
},
|
|
802
|
+
fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit {
|
|
803
|
+
return MsgDeposit.decode(message.value);
|
|
804
|
+
},
|
|
805
|
+
toProto(message: MsgDeposit): Uint8Array {
|
|
806
|
+
return MsgDeposit.encode(message).finish();
|
|
807
|
+
},
|
|
808
|
+
toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg {
|
|
809
|
+
return {
|
|
810
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
811
|
+
value: MsgDeposit.encode(message).finish()
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
GlobalDecoderRegistry.register(MsgDeposit.typeUrl, MsgDeposit);
|
|
816
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgDeposit.aminoType, MsgDeposit.typeUrl);
|
|
817
|
+
function createBaseMsgDepositResponse(): MsgDepositResponse {
|
|
818
|
+
return {};
|
|
819
|
+
}
|
|
820
|
+
export const MsgDepositResponse = {
|
|
821
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse",
|
|
822
|
+
aminoType: "cosmos-sdk/MsgDepositResponse",
|
|
823
|
+
is(o: any): o is MsgDepositResponse {
|
|
824
|
+
return o && o.$typeUrl === MsgDepositResponse.typeUrl;
|
|
825
|
+
},
|
|
826
|
+
isAmino(o: any): o is MsgDepositResponseAmino {
|
|
827
|
+
return o && o.$typeUrl === MsgDepositResponse.typeUrl;
|
|
828
|
+
},
|
|
829
|
+
encode(_: MsgDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
830
|
+
return writer;
|
|
831
|
+
},
|
|
832
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse {
|
|
833
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
834
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
835
|
+
const message = createBaseMsgDepositResponse();
|
|
836
|
+
while (reader.pos < end) {
|
|
837
|
+
const tag = reader.uint32();
|
|
838
|
+
switch (tag >>> 3) {
|
|
839
|
+
default:
|
|
840
|
+
reader.skipType(tag & 7);
|
|
841
|
+
break;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
return message;
|
|
845
|
+
},
|
|
846
|
+
fromPartial(_: DeepPartial<MsgDepositResponse>): MsgDepositResponse {
|
|
847
|
+
const message = createBaseMsgDepositResponse();
|
|
848
|
+
return message;
|
|
849
|
+
},
|
|
850
|
+
fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse {
|
|
851
|
+
const message = createBaseMsgDepositResponse();
|
|
852
|
+
return message;
|
|
853
|
+
},
|
|
854
|
+
toAmino(_: MsgDepositResponse): MsgDepositResponseAmino {
|
|
855
|
+
const obj: any = {};
|
|
856
|
+
return obj;
|
|
857
|
+
},
|
|
858
|
+
fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse {
|
|
859
|
+
return MsgDepositResponse.fromAmino(object.value);
|
|
860
|
+
},
|
|
861
|
+
toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg {
|
|
862
|
+
return {
|
|
863
|
+
type: "cosmos-sdk/MsgDepositResponse",
|
|
864
|
+
value: MsgDepositResponse.toAmino(message)
|
|
865
|
+
};
|
|
866
|
+
},
|
|
867
|
+
fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse {
|
|
868
|
+
return MsgDepositResponse.decode(message.value);
|
|
869
|
+
},
|
|
870
|
+
toProto(message: MsgDepositResponse): Uint8Array {
|
|
871
|
+
return MsgDepositResponse.encode(message).finish();
|
|
872
|
+
},
|
|
873
|
+
toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg {
|
|
874
|
+
return {
|
|
875
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse",
|
|
876
|
+
value: MsgDepositResponse.encode(message).finish()
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
GlobalDecoderRegistry.register(MsgDepositResponse.typeUrl, MsgDepositResponse);
|
|
881
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgDepositResponse.aminoType, MsgDepositResponse.typeUrl);
|