@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,2432 @@
|
|
|
1
|
+
import { AccessConfig, AccessConfigAmino } from "./types";
|
|
2
|
+
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
5
|
+
import { fromBase64, toBase64, toUtf8, fromUtf8 } from "@cosmjs/encoding";
|
|
6
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
7
|
+
/**
|
|
8
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
9
|
+
* an explicit StoreCodeProposal. To submit WASM code to the system,
|
|
10
|
+
* a simple MsgStoreCode can be invoked from the x/gov module via
|
|
11
|
+
* a v1 governance proposal.
|
|
12
|
+
*/
|
|
13
|
+
/** @deprecated */
|
|
14
|
+
export interface StoreCodeProposal {
|
|
15
|
+
/** Title is a short summary */
|
|
16
|
+
title: string;
|
|
17
|
+
/** Description is a human readable text */
|
|
18
|
+
description: string;
|
|
19
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
20
|
+
runAs: string;
|
|
21
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
22
|
+
wasmByteCode: Uint8Array;
|
|
23
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
|
24
|
+
instantiatePermission?: AccessConfig;
|
|
25
|
+
/** UnpinCode code on upload, optional */
|
|
26
|
+
unpinCode: boolean;
|
|
27
|
+
/** Source is the URL where the code is hosted */
|
|
28
|
+
source: string;
|
|
29
|
+
/**
|
|
30
|
+
* Builder is the docker image used to build the code deterministically, used
|
|
31
|
+
* for smart contract verification
|
|
32
|
+
*/
|
|
33
|
+
builder: string;
|
|
34
|
+
/**
|
|
35
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
36
|
+
* contract verification
|
|
37
|
+
*/
|
|
38
|
+
codeHash: Uint8Array;
|
|
39
|
+
}
|
|
40
|
+
export interface StoreCodeProposalProtoMsg {
|
|
41
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal";
|
|
42
|
+
value: Uint8Array;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
46
|
+
* an explicit StoreCodeProposal. To submit WASM code to the system,
|
|
47
|
+
* a simple MsgStoreCode can be invoked from the x/gov module via
|
|
48
|
+
* a v1 governance proposal.
|
|
49
|
+
*/
|
|
50
|
+
/** @deprecated */
|
|
51
|
+
export interface StoreCodeProposalAmino {
|
|
52
|
+
/** Title is a short summary */
|
|
53
|
+
title: string;
|
|
54
|
+
/** Description is a human readable text */
|
|
55
|
+
description: string;
|
|
56
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
57
|
+
run_as: string;
|
|
58
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
59
|
+
wasm_byte_code: string;
|
|
60
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
|
61
|
+
instantiate_permission?: AccessConfigAmino;
|
|
62
|
+
/** UnpinCode code on upload, optional */
|
|
63
|
+
unpin_code: boolean;
|
|
64
|
+
/** Source is the URL where the code is hosted */
|
|
65
|
+
source: string;
|
|
66
|
+
/**
|
|
67
|
+
* Builder is the docker image used to build the code deterministically, used
|
|
68
|
+
* for smart contract verification
|
|
69
|
+
*/
|
|
70
|
+
builder: string;
|
|
71
|
+
/**
|
|
72
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
73
|
+
* contract verification
|
|
74
|
+
*/
|
|
75
|
+
code_hash: string;
|
|
76
|
+
}
|
|
77
|
+
export interface StoreCodeProposalAminoMsg {
|
|
78
|
+
type: "wasm/StoreCodeProposal";
|
|
79
|
+
value: StoreCodeProposalAmino;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
83
|
+
* an explicit InstantiateContractProposal. To instantiate a contract,
|
|
84
|
+
* a simple MsgInstantiateContract can be invoked from the x/gov module via
|
|
85
|
+
* a v1 governance proposal.
|
|
86
|
+
*/
|
|
87
|
+
/** @deprecated */
|
|
88
|
+
export interface InstantiateContractProposal {
|
|
89
|
+
/** Title is a short summary */
|
|
90
|
+
title: string;
|
|
91
|
+
/** Description is a human readable text */
|
|
92
|
+
description: string;
|
|
93
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
94
|
+
runAs: string;
|
|
95
|
+
/** Admin is an optional address that can execute migrations */
|
|
96
|
+
admin: string;
|
|
97
|
+
/** CodeID is the reference to the stored WASM code */
|
|
98
|
+
codeId: bigint;
|
|
99
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
|
100
|
+
label: string;
|
|
101
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
102
|
+
msg: Uint8Array;
|
|
103
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
104
|
+
funds: Coin[];
|
|
105
|
+
}
|
|
106
|
+
export interface InstantiateContractProposalProtoMsg {
|
|
107
|
+
typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal";
|
|
108
|
+
value: Uint8Array;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
112
|
+
* an explicit InstantiateContractProposal. To instantiate a contract,
|
|
113
|
+
* a simple MsgInstantiateContract can be invoked from the x/gov module via
|
|
114
|
+
* a v1 governance proposal.
|
|
115
|
+
*/
|
|
116
|
+
/** @deprecated */
|
|
117
|
+
export interface InstantiateContractProposalAmino {
|
|
118
|
+
/** Title is a short summary */
|
|
119
|
+
title: string;
|
|
120
|
+
/** Description is a human readable text */
|
|
121
|
+
description: string;
|
|
122
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
123
|
+
run_as: string;
|
|
124
|
+
/** Admin is an optional address that can execute migrations */
|
|
125
|
+
admin: string;
|
|
126
|
+
/** CodeID is the reference to the stored WASM code */
|
|
127
|
+
code_id: string;
|
|
128
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
|
129
|
+
label: string;
|
|
130
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
131
|
+
msg: any;
|
|
132
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
133
|
+
funds: CoinAmino[];
|
|
134
|
+
}
|
|
135
|
+
export interface InstantiateContractProposalAminoMsg {
|
|
136
|
+
type: "wasm/InstantiateContractProposal";
|
|
137
|
+
value: InstantiateContractProposalAmino;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
141
|
+
* an explicit InstantiateContract2Proposal. To instantiate contract 2,
|
|
142
|
+
* a simple MsgInstantiateContract2 can be invoked from the x/gov module via
|
|
143
|
+
* a v1 governance proposal.
|
|
144
|
+
*/
|
|
145
|
+
/** @deprecated */
|
|
146
|
+
export interface InstantiateContract2Proposal {
|
|
147
|
+
/** Title is a short summary */
|
|
148
|
+
title: string;
|
|
149
|
+
/** Description is a human readable text */
|
|
150
|
+
description: string;
|
|
151
|
+
/** RunAs is the address that is passed to the contract's enviroment as sender */
|
|
152
|
+
runAs: string;
|
|
153
|
+
/** Admin is an optional address that can execute migrations */
|
|
154
|
+
admin: string;
|
|
155
|
+
/** CodeID is the reference to the stored WASM code */
|
|
156
|
+
codeId: bigint;
|
|
157
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
|
158
|
+
label: string;
|
|
159
|
+
/** Msg json encode message to be passed to the contract on instantiation */
|
|
160
|
+
msg: Uint8Array;
|
|
161
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
162
|
+
funds: Coin[];
|
|
163
|
+
/** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
|
|
164
|
+
salt: Uint8Array;
|
|
165
|
+
/**
|
|
166
|
+
* FixMsg include the msg value into the hash for the predictable address.
|
|
167
|
+
* Default is false
|
|
168
|
+
*/
|
|
169
|
+
fixMsg: boolean;
|
|
170
|
+
}
|
|
171
|
+
export interface InstantiateContract2ProposalProtoMsg {
|
|
172
|
+
typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal";
|
|
173
|
+
value: Uint8Array;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
177
|
+
* an explicit InstantiateContract2Proposal. To instantiate contract 2,
|
|
178
|
+
* a simple MsgInstantiateContract2 can be invoked from the x/gov module via
|
|
179
|
+
* a v1 governance proposal.
|
|
180
|
+
*/
|
|
181
|
+
/** @deprecated */
|
|
182
|
+
export interface InstantiateContract2ProposalAmino {
|
|
183
|
+
/** Title is a short summary */
|
|
184
|
+
title: string;
|
|
185
|
+
/** Description is a human readable text */
|
|
186
|
+
description: string;
|
|
187
|
+
/** RunAs is the address that is passed to the contract's enviroment as sender */
|
|
188
|
+
run_as: string;
|
|
189
|
+
/** Admin is an optional address that can execute migrations */
|
|
190
|
+
admin: string;
|
|
191
|
+
/** CodeID is the reference to the stored WASM code */
|
|
192
|
+
code_id: string;
|
|
193
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
|
194
|
+
label: string;
|
|
195
|
+
/** Msg json encode message to be passed to the contract on instantiation */
|
|
196
|
+
msg: any;
|
|
197
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
198
|
+
funds: CoinAmino[];
|
|
199
|
+
/** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
|
|
200
|
+
salt: string;
|
|
201
|
+
/**
|
|
202
|
+
* FixMsg include the msg value into the hash for the predictable address.
|
|
203
|
+
* Default is false
|
|
204
|
+
*/
|
|
205
|
+
fix_msg: boolean;
|
|
206
|
+
}
|
|
207
|
+
export interface InstantiateContract2ProposalAminoMsg {
|
|
208
|
+
type: "wasm/InstantiateContract2Proposal";
|
|
209
|
+
value: InstantiateContract2ProposalAmino;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
213
|
+
* an explicit MigrateContractProposal. To migrate a contract,
|
|
214
|
+
* a simple MsgMigrateContract can be invoked from the x/gov module via
|
|
215
|
+
* a v1 governance proposal.
|
|
216
|
+
*/
|
|
217
|
+
/** @deprecated */
|
|
218
|
+
export interface MigrateContractProposal {
|
|
219
|
+
/** Title is a short summary */
|
|
220
|
+
title: string;
|
|
221
|
+
/** Description is a human readable text */
|
|
222
|
+
description: string;
|
|
223
|
+
/** Contract is the address of the smart contract */
|
|
224
|
+
contract: string;
|
|
225
|
+
/** CodeID references the new WASM code */
|
|
226
|
+
codeId: bigint;
|
|
227
|
+
/** Msg json encoded message to be passed to the contract on migration */
|
|
228
|
+
msg: Uint8Array;
|
|
229
|
+
}
|
|
230
|
+
export interface MigrateContractProposalProtoMsg {
|
|
231
|
+
typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal";
|
|
232
|
+
value: Uint8Array;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
236
|
+
* an explicit MigrateContractProposal. To migrate a contract,
|
|
237
|
+
* a simple MsgMigrateContract can be invoked from the x/gov module via
|
|
238
|
+
* a v1 governance proposal.
|
|
239
|
+
*/
|
|
240
|
+
/** @deprecated */
|
|
241
|
+
export interface MigrateContractProposalAmino {
|
|
242
|
+
/** Title is a short summary */
|
|
243
|
+
title: string;
|
|
244
|
+
/** Description is a human readable text */
|
|
245
|
+
description: string;
|
|
246
|
+
/** Contract is the address of the smart contract */
|
|
247
|
+
contract: string;
|
|
248
|
+
/** CodeID references the new WASM code */
|
|
249
|
+
code_id: string;
|
|
250
|
+
/** Msg json encoded message to be passed to the contract on migration */
|
|
251
|
+
msg: any;
|
|
252
|
+
}
|
|
253
|
+
export interface MigrateContractProposalAminoMsg {
|
|
254
|
+
type: "wasm/MigrateContractProposal";
|
|
255
|
+
value: MigrateContractProposalAmino;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
259
|
+
* an explicit SudoContractProposal. To call sudo on a contract,
|
|
260
|
+
* a simple MsgSudoContract can be invoked from the x/gov module via
|
|
261
|
+
* a v1 governance proposal.
|
|
262
|
+
*/
|
|
263
|
+
/** @deprecated */
|
|
264
|
+
export interface SudoContractProposal {
|
|
265
|
+
/** Title is a short summary */
|
|
266
|
+
title: string;
|
|
267
|
+
/** Description is a human readable text */
|
|
268
|
+
description: string;
|
|
269
|
+
/** Contract is the address of the smart contract */
|
|
270
|
+
contract: string;
|
|
271
|
+
/** Msg json encoded message to be passed to the contract as sudo */
|
|
272
|
+
msg: Uint8Array;
|
|
273
|
+
}
|
|
274
|
+
export interface SudoContractProposalProtoMsg {
|
|
275
|
+
typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal";
|
|
276
|
+
value: Uint8Array;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
280
|
+
* an explicit SudoContractProposal. To call sudo on a contract,
|
|
281
|
+
* a simple MsgSudoContract can be invoked from the x/gov module via
|
|
282
|
+
* a v1 governance proposal.
|
|
283
|
+
*/
|
|
284
|
+
/** @deprecated */
|
|
285
|
+
export interface SudoContractProposalAmino {
|
|
286
|
+
/** Title is a short summary */
|
|
287
|
+
title: string;
|
|
288
|
+
/** Description is a human readable text */
|
|
289
|
+
description: string;
|
|
290
|
+
/** Contract is the address of the smart contract */
|
|
291
|
+
contract: string;
|
|
292
|
+
/** Msg json encoded message to be passed to the contract as sudo */
|
|
293
|
+
msg: any;
|
|
294
|
+
}
|
|
295
|
+
export interface SudoContractProposalAminoMsg {
|
|
296
|
+
type: "wasm/SudoContractProposal";
|
|
297
|
+
value: SudoContractProposalAmino;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
301
|
+
* an explicit ExecuteContractProposal. To call execute on a contract,
|
|
302
|
+
* a simple MsgExecuteContract can be invoked from the x/gov module via
|
|
303
|
+
* a v1 governance proposal.
|
|
304
|
+
*/
|
|
305
|
+
/** @deprecated */
|
|
306
|
+
export interface ExecuteContractProposal {
|
|
307
|
+
/** Title is a short summary */
|
|
308
|
+
title: string;
|
|
309
|
+
/** Description is a human readable text */
|
|
310
|
+
description: string;
|
|
311
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
312
|
+
runAs: string;
|
|
313
|
+
/** Contract is the address of the smart contract */
|
|
314
|
+
contract: string;
|
|
315
|
+
/** Msg json encoded message to be passed to the contract as execute */
|
|
316
|
+
msg: Uint8Array;
|
|
317
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
318
|
+
funds: Coin[];
|
|
319
|
+
}
|
|
320
|
+
export interface ExecuteContractProposalProtoMsg {
|
|
321
|
+
typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal";
|
|
322
|
+
value: Uint8Array;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
326
|
+
* an explicit ExecuteContractProposal. To call execute on a contract,
|
|
327
|
+
* a simple MsgExecuteContract can be invoked from the x/gov module via
|
|
328
|
+
* a v1 governance proposal.
|
|
329
|
+
*/
|
|
330
|
+
/** @deprecated */
|
|
331
|
+
export interface ExecuteContractProposalAmino {
|
|
332
|
+
/** Title is a short summary */
|
|
333
|
+
title: string;
|
|
334
|
+
/** Description is a human readable text */
|
|
335
|
+
description: string;
|
|
336
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
337
|
+
run_as: string;
|
|
338
|
+
/** Contract is the address of the smart contract */
|
|
339
|
+
contract: string;
|
|
340
|
+
/** Msg json encoded message to be passed to the contract as execute */
|
|
341
|
+
msg: any;
|
|
342
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
343
|
+
funds: CoinAmino[];
|
|
344
|
+
}
|
|
345
|
+
export interface ExecuteContractProposalAminoMsg {
|
|
346
|
+
type: "wasm/ExecuteContractProposal";
|
|
347
|
+
value: ExecuteContractProposalAmino;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
351
|
+
* an explicit UpdateAdminProposal. To set an admin for a contract,
|
|
352
|
+
* a simple MsgUpdateAdmin can be invoked from the x/gov module via
|
|
353
|
+
* a v1 governance proposal.
|
|
354
|
+
*/
|
|
355
|
+
/** @deprecated */
|
|
356
|
+
export interface UpdateAdminProposal {
|
|
357
|
+
/** Title is a short summary */
|
|
358
|
+
title: string;
|
|
359
|
+
/** Description is a human readable text */
|
|
360
|
+
description: string;
|
|
361
|
+
/** NewAdmin address to be set */
|
|
362
|
+
newAdmin: string;
|
|
363
|
+
/** Contract is the address of the smart contract */
|
|
364
|
+
contract: string;
|
|
365
|
+
}
|
|
366
|
+
export interface UpdateAdminProposalProtoMsg {
|
|
367
|
+
typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal";
|
|
368
|
+
value: Uint8Array;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
372
|
+
* an explicit UpdateAdminProposal. To set an admin for a contract,
|
|
373
|
+
* a simple MsgUpdateAdmin can be invoked from the x/gov module via
|
|
374
|
+
* a v1 governance proposal.
|
|
375
|
+
*/
|
|
376
|
+
/** @deprecated */
|
|
377
|
+
export interface UpdateAdminProposalAmino {
|
|
378
|
+
/** Title is a short summary */
|
|
379
|
+
title: string;
|
|
380
|
+
/** Description is a human readable text */
|
|
381
|
+
description: string;
|
|
382
|
+
/** NewAdmin address to be set */
|
|
383
|
+
new_admin: string;
|
|
384
|
+
/** Contract is the address of the smart contract */
|
|
385
|
+
contract: string;
|
|
386
|
+
}
|
|
387
|
+
export interface UpdateAdminProposalAminoMsg {
|
|
388
|
+
type: "wasm/UpdateAdminProposal";
|
|
389
|
+
value: UpdateAdminProposalAmino;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
393
|
+
* an explicit ClearAdminProposal. To clear the admin of a contract,
|
|
394
|
+
* a simple MsgClearAdmin can be invoked from the x/gov module via
|
|
395
|
+
* a v1 governance proposal.
|
|
396
|
+
*/
|
|
397
|
+
/** @deprecated */
|
|
398
|
+
export interface ClearAdminProposal {
|
|
399
|
+
/** Title is a short summary */
|
|
400
|
+
title: string;
|
|
401
|
+
/** Description is a human readable text */
|
|
402
|
+
description: string;
|
|
403
|
+
/** Contract is the address of the smart contract */
|
|
404
|
+
contract: string;
|
|
405
|
+
}
|
|
406
|
+
export interface ClearAdminProposalProtoMsg {
|
|
407
|
+
typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal";
|
|
408
|
+
value: Uint8Array;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
412
|
+
* an explicit ClearAdminProposal. To clear the admin of a contract,
|
|
413
|
+
* a simple MsgClearAdmin can be invoked from the x/gov module via
|
|
414
|
+
* a v1 governance proposal.
|
|
415
|
+
*/
|
|
416
|
+
/** @deprecated */
|
|
417
|
+
export interface ClearAdminProposalAmino {
|
|
418
|
+
/** Title is a short summary */
|
|
419
|
+
title: string;
|
|
420
|
+
/** Description is a human readable text */
|
|
421
|
+
description: string;
|
|
422
|
+
/** Contract is the address of the smart contract */
|
|
423
|
+
contract: string;
|
|
424
|
+
}
|
|
425
|
+
export interface ClearAdminProposalAminoMsg {
|
|
426
|
+
type: "wasm/ClearAdminProposal";
|
|
427
|
+
value: ClearAdminProposalAmino;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
431
|
+
* an explicit PinCodesProposal. To pin a set of code ids in the wasmvm
|
|
432
|
+
* cache, a simple MsgPinCodes can be invoked from the x/gov module via
|
|
433
|
+
* a v1 governance proposal.
|
|
434
|
+
*/
|
|
435
|
+
/** @deprecated */
|
|
436
|
+
export interface PinCodesProposal {
|
|
437
|
+
/** Title is a short summary */
|
|
438
|
+
title: string;
|
|
439
|
+
/** Description is a human readable text */
|
|
440
|
+
description: string;
|
|
441
|
+
/** CodeIDs references the new WASM codes */
|
|
442
|
+
codeIds: bigint[];
|
|
443
|
+
}
|
|
444
|
+
export interface PinCodesProposalProtoMsg {
|
|
445
|
+
typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal";
|
|
446
|
+
value: Uint8Array;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
450
|
+
* an explicit PinCodesProposal. To pin a set of code ids in the wasmvm
|
|
451
|
+
* cache, a simple MsgPinCodes can be invoked from the x/gov module via
|
|
452
|
+
* a v1 governance proposal.
|
|
453
|
+
*/
|
|
454
|
+
/** @deprecated */
|
|
455
|
+
export interface PinCodesProposalAmino {
|
|
456
|
+
/** Title is a short summary */
|
|
457
|
+
title: string;
|
|
458
|
+
/** Description is a human readable text */
|
|
459
|
+
description: string;
|
|
460
|
+
/** CodeIDs references the new WASM codes */
|
|
461
|
+
code_ids: string[];
|
|
462
|
+
}
|
|
463
|
+
export interface PinCodesProposalAminoMsg {
|
|
464
|
+
type: "wasm/PinCodesProposal";
|
|
465
|
+
value: PinCodesProposalAmino;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
469
|
+
* an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm
|
|
470
|
+
* cache, a simple MsgUnpinCodes can be invoked from the x/gov module via
|
|
471
|
+
* a v1 governance proposal.
|
|
472
|
+
*/
|
|
473
|
+
/** @deprecated */
|
|
474
|
+
export interface UnpinCodesProposal {
|
|
475
|
+
/** Title is a short summary */
|
|
476
|
+
title: string;
|
|
477
|
+
/** Description is a human readable text */
|
|
478
|
+
description: string;
|
|
479
|
+
/** CodeIDs references the WASM codes */
|
|
480
|
+
codeIds: bigint[];
|
|
481
|
+
}
|
|
482
|
+
export interface UnpinCodesProposalProtoMsg {
|
|
483
|
+
typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal";
|
|
484
|
+
value: Uint8Array;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
488
|
+
* an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm
|
|
489
|
+
* cache, a simple MsgUnpinCodes can be invoked from the x/gov module via
|
|
490
|
+
* a v1 governance proposal.
|
|
491
|
+
*/
|
|
492
|
+
/** @deprecated */
|
|
493
|
+
export interface UnpinCodesProposalAmino {
|
|
494
|
+
/** Title is a short summary */
|
|
495
|
+
title: string;
|
|
496
|
+
/** Description is a human readable text */
|
|
497
|
+
description: string;
|
|
498
|
+
/** CodeIDs references the WASM codes */
|
|
499
|
+
code_ids: string[];
|
|
500
|
+
}
|
|
501
|
+
export interface UnpinCodesProposalAminoMsg {
|
|
502
|
+
type: "wasm/UnpinCodesProposal";
|
|
503
|
+
value: UnpinCodesProposalAmino;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* AccessConfigUpdate contains the code id and the access config to be
|
|
507
|
+
* applied.
|
|
508
|
+
*/
|
|
509
|
+
export interface AccessConfigUpdate {
|
|
510
|
+
/** CodeID is the reference to the stored WASM code to be updated */
|
|
511
|
+
codeId: bigint;
|
|
512
|
+
/** InstantiatePermission to apply to the set of code ids */
|
|
513
|
+
instantiatePermission: AccessConfig;
|
|
514
|
+
}
|
|
515
|
+
export interface AccessConfigUpdateProtoMsg {
|
|
516
|
+
typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate";
|
|
517
|
+
value: Uint8Array;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* AccessConfigUpdate contains the code id and the access config to be
|
|
521
|
+
* applied.
|
|
522
|
+
*/
|
|
523
|
+
export interface AccessConfigUpdateAmino {
|
|
524
|
+
/** CodeID is the reference to the stored WASM code to be updated */
|
|
525
|
+
code_id: string;
|
|
526
|
+
/** InstantiatePermission to apply to the set of code ids */
|
|
527
|
+
instantiate_permission: AccessConfigAmino;
|
|
528
|
+
}
|
|
529
|
+
export interface AccessConfigUpdateAminoMsg {
|
|
530
|
+
type: "wasm/AccessConfigUpdate";
|
|
531
|
+
value: AccessConfigUpdateAmino;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
535
|
+
* an explicit UpdateInstantiateConfigProposal. To update instantiate config
|
|
536
|
+
* to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from
|
|
537
|
+
* the x/gov module via a v1 governance proposal.
|
|
538
|
+
*/
|
|
539
|
+
/** @deprecated */
|
|
540
|
+
export interface UpdateInstantiateConfigProposal {
|
|
541
|
+
/** Title is a short summary */
|
|
542
|
+
title: string;
|
|
543
|
+
/** Description is a human readable text */
|
|
544
|
+
description: string;
|
|
545
|
+
/**
|
|
546
|
+
* AccessConfigUpdate contains the list of code ids and the access config
|
|
547
|
+
* to be applied.
|
|
548
|
+
*/
|
|
549
|
+
accessConfigUpdates: AccessConfigUpdate[];
|
|
550
|
+
}
|
|
551
|
+
export interface UpdateInstantiateConfigProposalProtoMsg {
|
|
552
|
+
typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal";
|
|
553
|
+
value: Uint8Array;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
557
|
+
* an explicit UpdateInstantiateConfigProposal. To update instantiate config
|
|
558
|
+
* to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from
|
|
559
|
+
* the x/gov module via a v1 governance proposal.
|
|
560
|
+
*/
|
|
561
|
+
/** @deprecated */
|
|
562
|
+
export interface UpdateInstantiateConfigProposalAmino {
|
|
563
|
+
/** Title is a short summary */
|
|
564
|
+
title: string;
|
|
565
|
+
/** Description is a human readable text */
|
|
566
|
+
description: string;
|
|
567
|
+
/**
|
|
568
|
+
* AccessConfigUpdate contains the list of code ids and the access config
|
|
569
|
+
* to be applied.
|
|
570
|
+
*/
|
|
571
|
+
access_config_updates: AccessConfigUpdateAmino[];
|
|
572
|
+
}
|
|
573
|
+
export interface UpdateInstantiateConfigProposalAminoMsg {
|
|
574
|
+
type: "wasm/UpdateInstantiateConfigProposal";
|
|
575
|
+
value: UpdateInstantiateConfigProposalAmino;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
579
|
+
* an explicit StoreAndInstantiateContractProposal. To store and instantiate
|
|
580
|
+
* the contract, a simple MsgStoreAndInstantiateContract can be invoked from
|
|
581
|
+
* the x/gov module via a v1 governance proposal.
|
|
582
|
+
*/
|
|
583
|
+
/** @deprecated */
|
|
584
|
+
export interface StoreAndInstantiateContractProposal {
|
|
585
|
+
/** Title is a short summary */
|
|
586
|
+
title: string;
|
|
587
|
+
/** Description is a human readable text */
|
|
588
|
+
description: string;
|
|
589
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
590
|
+
runAs: string;
|
|
591
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
592
|
+
wasmByteCode: Uint8Array;
|
|
593
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
|
594
|
+
instantiatePermission?: AccessConfig;
|
|
595
|
+
/** UnpinCode code on upload, optional */
|
|
596
|
+
unpinCode: boolean;
|
|
597
|
+
/** Admin is an optional address that can execute migrations */
|
|
598
|
+
admin: string;
|
|
599
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
|
600
|
+
label: string;
|
|
601
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
602
|
+
msg: Uint8Array;
|
|
603
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
604
|
+
funds: Coin[];
|
|
605
|
+
/** Source is the URL where the code is hosted */
|
|
606
|
+
source: string;
|
|
607
|
+
/**
|
|
608
|
+
* Builder is the docker image used to build the code deterministically, used
|
|
609
|
+
* for smart contract verification
|
|
610
|
+
*/
|
|
611
|
+
builder: string;
|
|
612
|
+
/**
|
|
613
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
614
|
+
* contract verification
|
|
615
|
+
*/
|
|
616
|
+
codeHash: Uint8Array;
|
|
617
|
+
}
|
|
618
|
+
export interface StoreAndInstantiateContractProposalProtoMsg {
|
|
619
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal";
|
|
620
|
+
value: Uint8Array;
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
|
|
624
|
+
* an explicit StoreAndInstantiateContractProposal. To store and instantiate
|
|
625
|
+
* the contract, a simple MsgStoreAndInstantiateContract can be invoked from
|
|
626
|
+
* the x/gov module via a v1 governance proposal.
|
|
627
|
+
*/
|
|
628
|
+
/** @deprecated */
|
|
629
|
+
export interface StoreAndInstantiateContractProposalAmino {
|
|
630
|
+
/** Title is a short summary */
|
|
631
|
+
title: string;
|
|
632
|
+
/** Description is a human readable text */
|
|
633
|
+
description: string;
|
|
634
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
635
|
+
run_as: string;
|
|
636
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
637
|
+
wasm_byte_code: string;
|
|
638
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
|
639
|
+
instantiate_permission?: AccessConfigAmino;
|
|
640
|
+
/** UnpinCode code on upload, optional */
|
|
641
|
+
unpin_code: boolean;
|
|
642
|
+
/** Admin is an optional address that can execute migrations */
|
|
643
|
+
admin: string;
|
|
644
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
|
645
|
+
label: string;
|
|
646
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
647
|
+
msg: any;
|
|
648
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
649
|
+
funds: CoinAmino[];
|
|
650
|
+
/** Source is the URL where the code is hosted */
|
|
651
|
+
source: string;
|
|
652
|
+
/**
|
|
653
|
+
* Builder is the docker image used to build the code deterministically, used
|
|
654
|
+
* for smart contract verification
|
|
655
|
+
*/
|
|
656
|
+
builder: string;
|
|
657
|
+
/**
|
|
658
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
659
|
+
* contract verification
|
|
660
|
+
*/
|
|
661
|
+
code_hash: string;
|
|
662
|
+
}
|
|
663
|
+
export interface StoreAndInstantiateContractProposalAminoMsg {
|
|
664
|
+
type: "wasm/StoreAndInstantiateContractProposal";
|
|
665
|
+
value: StoreAndInstantiateContractProposalAmino;
|
|
666
|
+
}
|
|
667
|
+
function createBaseStoreCodeProposal(): StoreCodeProposal {
|
|
668
|
+
return {
|
|
669
|
+
title: "",
|
|
670
|
+
description: "",
|
|
671
|
+
runAs: "",
|
|
672
|
+
wasmByteCode: new Uint8Array(),
|
|
673
|
+
instantiatePermission: undefined,
|
|
674
|
+
unpinCode: false,
|
|
675
|
+
source: "",
|
|
676
|
+
builder: "",
|
|
677
|
+
codeHash: new Uint8Array()
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
export const StoreCodeProposal = {
|
|
681
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal",
|
|
682
|
+
aminoType: "wasm/StoreCodeProposal",
|
|
683
|
+
is(o: any): o is StoreCodeProposal {
|
|
684
|
+
return o && (o.$typeUrl === StoreCodeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.runAs === "string" && (o.wasmByteCode instanceof Uint8Array || typeof o.wasmByteCode === "string") && typeof o.unpinCode === "boolean" && typeof o.source === "string" && typeof o.builder === "string" && (o.codeHash instanceof Uint8Array || typeof o.codeHash === "string"));
|
|
685
|
+
},
|
|
686
|
+
isAmino(o: any): o is StoreCodeProposalAmino {
|
|
687
|
+
return o && (o.$typeUrl === StoreCodeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.run_as === "string" && (o.wasm_byte_code instanceof Uint8Array || typeof o.wasm_byte_code === "string") && typeof o.unpin_code === "boolean" && typeof o.source === "string" && typeof o.builder === "string" && (o.code_hash instanceof Uint8Array || typeof o.code_hash === "string"));
|
|
688
|
+
},
|
|
689
|
+
encode(message: StoreCodeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
690
|
+
if (message.title !== "") {
|
|
691
|
+
writer.uint32(10).string(message.title);
|
|
692
|
+
}
|
|
693
|
+
if (message.description !== "") {
|
|
694
|
+
writer.uint32(18).string(message.description);
|
|
695
|
+
}
|
|
696
|
+
if (message.runAs !== "") {
|
|
697
|
+
writer.uint32(26).string(message.runAs);
|
|
698
|
+
}
|
|
699
|
+
if (message.wasmByteCode.length !== 0) {
|
|
700
|
+
writer.uint32(34).bytes(message.wasmByteCode);
|
|
701
|
+
}
|
|
702
|
+
if (message.instantiatePermission !== undefined) {
|
|
703
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(58).fork()).ldelim();
|
|
704
|
+
}
|
|
705
|
+
if (message.unpinCode === true) {
|
|
706
|
+
writer.uint32(64).bool(message.unpinCode);
|
|
707
|
+
}
|
|
708
|
+
if (message.source !== "") {
|
|
709
|
+
writer.uint32(74).string(message.source);
|
|
710
|
+
}
|
|
711
|
+
if (message.builder !== "") {
|
|
712
|
+
writer.uint32(82).string(message.builder);
|
|
713
|
+
}
|
|
714
|
+
if (message.codeHash.length !== 0) {
|
|
715
|
+
writer.uint32(90).bytes(message.codeHash);
|
|
716
|
+
}
|
|
717
|
+
return writer;
|
|
718
|
+
},
|
|
719
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StoreCodeProposal {
|
|
720
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
721
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
722
|
+
const message = createBaseStoreCodeProposal();
|
|
723
|
+
while (reader.pos < end) {
|
|
724
|
+
const tag = reader.uint32();
|
|
725
|
+
switch (tag >>> 3) {
|
|
726
|
+
case 1:
|
|
727
|
+
message.title = reader.string();
|
|
728
|
+
break;
|
|
729
|
+
case 2:
|
|
730
|
+
message.description = reader.string();
|
|
731
|
+
break;
|
|
732
|
+
case 3:
|
|
733
|
+
message.runAs = reader.string();
|
|
734
|
+
break;
|
|
735
|
+
case 4:
|
|
736
|
+
message.wasmByteCode = reader.bytes();
|
|
737
|
+
break;
|
|
738
|
+
case 7:
|
|
739
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
740
|
+
break;
|
|
741
|
+
case 8:
|
|
742
|
+
message.unpinCode = reader.bool();
|
|
743
|
+
break;
|
|
744
|
+
case 9:
|
|
745
|
+
message.source = reader.string();
|
|
746
|
+
break;
|
|
747
|
+
case 10:
|
|
748
|
+
message.builder = reader.string();
|
|
749
|
+
break;
|
|
750
|
+
case 11:
|
|
751
|
+
message.codeHash = reader.bytes();
|
|
752
|
+
break;
|
|
753
|
+
default:
|
|
754
|
+
reader.skipType(tag & 7);
|
|
755
|
+
break;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
return message;
|
|
759
|
+
},
|
|
760
|
+
fromPartial(object: DeepPartial<StoreCodeProposal>): StoreCodeProposal {
|
|
761
|
+
const message = createBaseStoreCodeProposal();
|
|
762
|
+
message.title = object.title ?? "";
|
|
763
|
+
message.description = object.description ?? "";
|
|
764
|
+
message.runAs = object.runAs ?? "";
|
|
765
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
|
766
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
|
767
|
+
message.unpinCode = object.unpinCode ?? false;
|
|
768
|
+
message.source = object.source ?? "";
|
|
769
|
+
message.builder = object.builder ?? "";
|
|
770
|
+
message.codeHash = object.codeHash ?? new Uint8Array();
|
|
771
|
+
return message;
|
|
772
|
+
},
|
|
773
|
+
fromAmino(object: StoreCodeProposalAmino): StoreCodeProposal {
|
|
774
|
+
const message = createBaseStoreCodeProposal();
|
|
775
|
+
if (object.title !== undefined && object.title !== null) {
|
|
776
|
+
message.title = object.title;
|
|
777
|
+
}
|
|
778
|
+
if (object.description !== undefined && object.description !== null) {
|
|
779
|
+
message.description = object.description;
|
|
780
|
+
}
|
|
781
|
+
if (object.run_as !== undefined && object.run_as !== null) {
|
|
782
|
+
message.runAs = object.run_as;
|
|
783
|
+
}
|
|
784
|
+
if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
|
|
785
|
+
message.wasmByteCode = fromBase64(object.wasm_byte_code);
|
|
786
|
+
}
|
|
787
|
+
if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
|
|
788
|
+
message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
|
|
789
|
+
}
|
|
790
|
+
if (object.unpin_code !== undefined && object.unpin_code !== null) {
|
|
791
|
+
message.unpinCode = object.unpin_code;
|
|
792
|
+
}
|
|
793
|
+
if (object.source !== undefined && object.source !== null) {
|
|
794
|
+
message.source = object.source;
|
|
795
|
+
}
|
|
796
|
+
if (object.builder !== undefined && object.builder !== null) {
|
|
797
|
+
message.builder = object.builder;
|
|
798
|
+
}
|
|
799
|
+
if (object.code_hash !== undefined && object.code_hash !== null) {
|
|
800
|
+
message.codeHash = bytesFromBase64(object.code_hash);
|
|
801
|
+
}
|
|
802
|
+
return message;
|
|
803
|
+
},
|
|
804
|
+
toAmino(message: StoreCodeProposal): StoreCodeProposalAmino {
|
|
805
|
+
const obj: any = {};
|
|
806
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
807
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
808
|
+
obj.run_as = message.runAs === "" ? undefined : message.runAs;
|
|
809
|
+
obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
|
|
810
|
+
obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
|
|
811
|
+
obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode;
|
|
812
|
+
obj.source = message.source === "" ? undefined : message.source;
|
|
813
|
+
obj.builder = message.builder === "" ? undefined : message.builder;
|
|
814
|
+
obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
|
|
815
|
+
return obj;
|
|
816
|
+
},
|
|
817
|
+
fromAminoMsg(object: StoreCodeProposalAminoMsg): StoreCodeProposal {
|
|
818
|
+
return StoreCodeProposal.fromAmino(object.value);
|
|
819
|
+
},
|
|
820
|
+
toAminoMsg(message: StoreCodeProposal): StoreCodeProposalAminoMsg {
|
|
821
|
+
return {
|
|
822
|
+
type: "wasm/StoreCodeProposal",
|
|
823
|
+
value: StoreCodeProposal.toAmino(message)
|
|
824
|
+
};
|
|
825
|
+
},
|
|
826
|
+
fromProtoMsg(message: StoreCodeProposalProtoMsg): StoreCodeProposal {
|
|
827
|
+
return StoreCodeProposal.decode(message.value);
|
|
828
|
+
},
|
|
829
|
+
toProto(message: StoreCodeProposal): Uint8Array {
|
|
830
|
+
return StoreCodeProposal.encode(message).finish();
|
|
831
|
+
},
|
|
832
|
+
toProtoMsg(message: StoreCodeProposal): StoreCodeProposalProtoMsg {
|
|
833
|
+
return {
|
|
834
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal",
|
|
835
|
+
value: StoreCodeProposal.encode(message).finish()
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
GlobalDecoderRegistry.register(StoreCodeProposal.typeUrl, StoreCodeProposal);
|
|
840
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(StoreCodeProposal.aminoType, StoreCodeProposal.typeUrl);
|
|
841
|
+
function createBaseInstantiateContractProposal(): InstantiateContractProposal {
|
|
842
|
+
return {
|
|
843
|
+
title: "",
|
|
844
|
+
description: "",
|
|
845
|
+
runAs: "",
|
|
846
|
+
admin: "",
|
|
847
|
+
codeId: BigInt(0),
|
|
848
|
+
label: "",
|
|
849
|
+
msg: new Uint8Array(),
|
|
850
|
+
funds: []
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
export const InstantiateContractProposal = {
|
|
854
|
+
typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal",
|
|
855
|
+
aminoType: "wasm/InstantiateContractProposal",
|
|
856
|
+
is(o: any): o is InstantiateContractProposal {
|
|
857
|
+
return o && (o.$typeUrl === InstantiateContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.runAs === "string" && typeof o.admin === "string" && typeof o.codeId === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])));
|
|
858
|
+
},
|
|
859
|
+
isAmino(o: any): o is InstantiateContractProposalAmino {
|
|
860
|
+
return o && (o.$typeUrl === InstantiateContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.run_as === "string" && typeof o.admin === "string" && typeof o.code_id === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])));
|
|
861
|
+
},
|
|
862
|
+
encode(message: InstantiateContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
863
|
+
if (message.title !== "") {
|
|
864
|
+
writer.uint32(10).string(message.title);
|
|
865
|
+
}
|
|
866
|
+
if (message.description !== "") {
|
|
867
|
+
writer.uint32(18).string(message.description);
|
|
868
|
+
}
|
|
869
|
+
if (message.runAs !== "") {
|
|
870
|
+
writer.uint32(26).string(message.runAs);
|
|
871
|
+
}
|
|
872
|
+
if (message.admin !== "") {
|
|
873
|
+
writer.uint32(34).string(message.admin);
|
|
874
|
+
}
|
|
875
|
+
if (message.codeId !== BigInt(0)) {
|
|
876
|
+
writer.uint32(40).uint64(message.codeId);
|
|
877
|
+
}
|
|
878
|
+
if (message.label !== "") {
|
|
879
|
+
writer.uint32(50).string(message.label);
|
|
880
|
+
}
|
|
881
|
+
if (message.msg.length !== 0) {
|
|
882
|
+
writer.uint32(58).bytes(message.msg);
|
|
883
|
+
}
|
|
884
|
+
for (const v of message.funds) {
|
|
885
|
+
Coin.encode(v!, writer.uint32(66).fork()).ldelim();
|
|
886
|
+
}
|
|
887
|
+
return writer;
|
|
888
|
+
},
|
|
889
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InstantiateContractProposal {
|
|
890
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
891
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
892
|
+
const message = createBaseInstantiateContractProposal();
|
|
893
|
+
while (reader.pos < end) {
|
|
894
|
+
const tag = reader.uint32();
|
|
895
|
+
switch (tag >>> 3) {
|
|
896
|
+
case 1:
|
|
897
|
+
message.title = reader.string();
|
|
898
|
+
break;
|
|
899
|
+
case 2:
|
|
900
|
+
message.description = reader.string();
|
|
901
|
+
break;
|
|
902
|
+
case 3:
|
|
903
|
+
message.runAs = reader.string();
|
|
904
|
+
break;
|
|
905
|
+
case 4:
|
|
906
|
+
message.admin = reader.string();
|
|
907
|
+
break;
|
|
908
|
+
case 5:
|
|
909
|
+
message.codeId = reader.uint64();
|
|
910
|
+
break;
|
|
911
|
+
case 6:
|
|
912
|
+
message.label = reader.string();
|
|
913
|
+
break;
|
|
914
|
+
case 7:
|
|
915
|
+
message.msg = reader.bytes();
|
|
916
|
+
break;
|
|
917
|
+
case 8:
|
|
918
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
919
|
+
break;
|
|
920
|
+
default:
|
|
921
|
+
reader.skipType(tag & 7);
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
return message;
|
|
926
|
+
},
|
|
927
|
+
fromPartial(object: DeepPartial<InstantiateContractProposal>): InstantiateContractProposal {
|
|
928
|
+
const message = createBaseInstantiateContractProposal();
|
|
929
|
+
message.title = object.title ?? "";
|
|
930
|
+
message.description = object.description ?? "";
|
|
931
|
+
message.runAs = object.runAs ?? "";
|
|
932
|
+
message.admin = object.admin ?? "";
|
|
933
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
934
|
+
message.label = object.label ?? "";
|
|
935
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
936
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
937
|
+
return message;
|
|
938
|
+
},
|
|
939
|
+
fromAmino(object: InstantiateContractProposalAmino): InstantiateContractProposal {
|
|
940
|
+
const message = createBaseInstantiateContractProposal();
|
|
941
|
+
if (object.title !== undefined && object.title !== null) {
|
|
942
|
+
message.title = object.title;
|
|
943
|
+
}
|
|
944
|
+
if (object.description !== undefined && object.description !== null) {
|
|
945
|
+
message.description = object.description;
|
|
946
|
+
}
|
|
947
|
+
if (object.run_as !== undefined && object.run_as !== null) {
|
|
948
|
+
message.runAs = object.run_as;
|
|
949
|
+
}
|
|
950
|
+
if (object.admin !== undefined && object.admin !== null) {
|
|
951
|
+
message.admin = object.admin;
|
|
952
|
+
}
|
|
953
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
954
|
+
message.codeId = BigInt(object.code_id);
|
|
955
|
+
}
|
|
956
|
+
if (object.label !== undefined && object.label !== null) {
|
|
957
|
+
message.label = object.label;
|
|
958
|
+
}
|
|
959
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
960
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
961
|
+
}
|
|
962
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
963
|
+
return message;
|
|
964
|
+
},
|
|
965
|
+
toAmino(message: InstantiateContractProposal): InstantiateContractProposalAmino {
|
|
966
|
+
const obj: any = {};
|
|
967
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
968
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
969
|
+
obj.run_as = message.runAs === "" ? undefined : message.runAs;
|
|
970
|
+
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
971
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
972
|
+
obj.label = message.label === "" ? undefined : message.label;
|
|
973
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
974
|
+
if (message.funds) {
|
|
975
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
976
|
+
} else {
|
|
977
|
+
obj.funds = message.funds;
|
|
978
|
+
}
|
|
979
|
+
return obj;
|
|
980
|
+
},
|
|
981
|
+
fromAminoMsg(object: InstantiateContractProposalAminoMsg): InstantiateContractProposal {
|
|
982
|
+
return InstantiateContractProposal.fromAmino(object.value);
|
|
983
|
+
},
|
|
984
|
+
toAminoMsg(message: InstantiateContractProposal): InstantiateContractProposalAminoMsg {
|
|
985
|
+
return {
|
|
986
|
+
type: "wasm/InstantiateContractProposal",
|
|
987
|
+
value: InstantiateContractProposal.toAmino(message)
|
|
988
|
+
};
|
|
989
|
+
},
|
|
990
|
+
fromProtoMsg(message: InstantiateContractProposalProtoMsg): InstantiateContractProposal {
|
|
991
|
+
return InstantiateContractProposal.decode(message.value);
|
|
992
|
+
},
|
|
993
|
+
toProto(message: InstantiateContractProposal): Uint8Array {
|
|
994
|
+
return InstantiateContractProposal.encode(message).finish();
|
|
995
|
+
},
|
|
996
|
+
toProtoMsg(message: InstantiateContractProposal): InstantiateContractProposalProtoMsg {
|
|
997
|
+
return {
|
|
998
|
+
typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal",
|
|
999
|
+
value: InstantiateContractProposal.encode(message).finish()
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
GlobalDecoderRegistry.register(InstantiateContractProposal.typeUrl, InstantiateContractProposal);
|
|
1004
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(InstantiateContractProposal.aminoType, InstantiateContractProposal.typeUrl);
|
|
1005
|
+
function createBaseInstantiateContract2Proposal(): InstantiateContract2Proposal {
|
|
1006
|
+
return {
|
|
1007
|
+
title: "",
|
|
1008
|
+
description: "",
|
|
1009
|
+
runAs: "",
|
|
1010
|
+
admin: "",
|
|
1011
|
+
codeId: BigInt(0),
|
|
1012
|
+
label: "",
|
|
1013
|
+
msg: new Uint8Array(),
|
|
1014
|
+
funds: [],
|
|
1015
|
+
salt: new Uint8Array(),
|
|
1016
|
+
fixMsg: false
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
export const InstantiateContract2Proposal = {
|
|
1020
|
+
typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal",
|
|
1021
|
+
aminoType: "wasm/InstantiateContract2Proposal",
|
|
1022
|
+
is(o: any): o is InstantiateContract2Proposal {
|
|
1023
|
+
return o && (o.$typeUrl === InstantiateContract2Proposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.runAs === "string" && typeof o.admin === "string" && typeof o.codeId === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])) && (o.salt instanceof Uint8Array || typeof o.salt === "string") && typeof o.fixMsg === "boolean");
|
|
1024
|
+
},
|
|
1025
|
+
isAmino(o: any): o is InstantiateContract2ProposalAmino {
|
|
1026
|
+
return o && (o.$typeUrl === InstantiateContract2Proposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.run_as === "string" && typeof o.admin === "string" && typeof o.code_id === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])) && (o.salt instanceof Uint8Array || typeof o.salt === "string") && typeof o.fix_msg === "boolean");
|
|
1027
|
+
},
|
|
1028
|
+
encode(message: InstantiateContract2Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1029
|
+
if (message.title !== "") {
|
|
1030
|
+
writer.uint32(10).string(message.title);
|
|
1031
|
+
}
|
|
1032
|
+
if (message.description !== "") {
|
|
1033
|
+
writer.uint32(18).string(message.description);
|
|
1034
|
+
}
|
|
1035
|
+
if (message.runAs !== "") {
|
|
1036
|
+
writer.uint32(26).string(message.runAs);
|
|
1037
|
+
}
|
|
1038
|
+
if (message.admin !== "") {
|
|
1039
|
+
writer.uint32(34).string(message.admin);
|
|
1040
|
+
}
|
|
1041
|
+
if (message.codeId !== BigInt(0)) {
|
|
1042
|
+
writer.uint32(40).uint64(message.codeId);
|
|
1043
|
+
}
|
|
1044
|
+
if (message.label !== "") {
|
|
1045
|
+
writer.uint32(50).string(message.label);
|
|
1046
|
+
}
|
|
1047
|
+
if (message.msg.length !== 0) {
|
|
1048
|
+
writer.uint32(58).bytes(message.msg);
|
|
1049
|
+
}
|
|
1050
|
+
for (const v of message.funds) {
|
|
1051
|
+
Coin.encode(v!, writer.uint32(66).fork()).ldelim();
|
|
1052
|
+
}
|
|
1053
|
+
if (message.salt.length !== 0) {
|
|
1054
|
+
writer.uint32(74).bytes(message.salt);
|
|
1055
|
+
}
|
|
1056
|
+
if (message.fixMsg === true) {
|
|
1057
|
+
writer.uint32(80).bool(message.fixMsg);
|
|
1058
|
+
}
|
|
1059
|
+
return writer;
|
|
1060
|
+
},
|
|
1061
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InstantiateContract2Proposal {
|
|
1062
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1063
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1064
|
+
const message = createBaseInstantiateContract2Proposal();
|
|
1065
|
+
while (reader.pos < end) {
|
|
1066
|
+
const tag = reader.uint32();
|
|
1067
|
+
switch (tag >>> 3) {
|
|
1068
|
+
case 1:
|
|
1069
|
+
message.title = reader.string();
|
|
1070
|
+
break;
|
|
1071
|
+
case 2:
|
|
1072
|
+
message.description = reader.string();
|
|
1073
|
+
break;
|
|
1074
|
+
case 3:
|
|
1075
|
+
message.runAs = reader.string();
|
|
1076
|
+
break;
|
|
1077
|
+
case 4:
|
|
1078
|
+
message.admin = reader.string();
|
|
1079
|
+
break;
|
|
1080
|
+
case 5:
|
|
1081
|
+
message.codeId = reader.uint64();
|
|
1082
|
+
break;
|
|
1083
|
+
case 6:
|
|
1084
|
+
message.label = reader.string();
|
|
1085
|
+
break;
|
|
1086
|
+
case 7:
|
|
1087
|
+
message.msg = reader.bytes();
|
|
1088
|
+
break;
|
|
1089
|
+
case 8:
|
|
1090
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
1091
|
+
break;
|
|
1092
|
+
case 9:
|
|
1093
|
+
message.salt = reader.bytes();
|
|
1094
|
+
break;
|
|
1095
|
+
case 10:
|
|
1096
|
+
message.fixMsg = reader.bool();
|
|
1097
|
+
break;
|
|
1098
|
+
default:
|
|
1099
|
+
reader.skipType(tag & 7);
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
return message;
|
|
1104
|
+
},
|
|
1105
|
+
fromPartial(object: DeepPartial<InstantiateContract2Proposal>): InstantiateContract2Proposal {
|
|
1106
|
+
const message = createBaseInstantiateContract2Proposal();
|
|
1107
|
+
message.title = object.title ?? "";
|
|
1108
|
+
message.description = object.description ?? "";
|
|
1109
|
+
message.runAs = object.runAs ?? "";
|
|
1110
|
+
message.admin = object.admin ?? "";
|
|
1111
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
1112
|
+
message.label = object.label ?? "";
|
|
1113
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
1114
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
1115
|
+
message.salt = object.salt ?? new Uint8Array();
|
|
1116
|
+
message.fixMsg = object.fixMsg ?? false;
|
|
1117
|
+
return message;
|
|
1118
|
+
},
|
|
1119
|
+
fromAmino(object: InstantiateContract2ProposalAmino): InstantiateContract2Proposal {
|
|
1120
|
+
const message = createBaseInstantiateContract2Proposal();
|
|
1121
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1122
|
+
message.title = object.title;
|
|
1123
|
+
}
|
|
1124
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1125
|
+
message.description = object.description;
|
|
1126
|
+
}
|
|
1127
|
+
if (object.run_as !== undefined && object.run_as !== null) {
|
|
1128
|
+
message.runAs = object.run_as;
|
|
1129
|
+
}
|
|
1130
|
+
if (object.admin !== undefined && object.admin !== null) {
|
|
1131
|
+
message.admin = object.admin;
|
|
1132
|
+
}
|
|
1133
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
1134
|
+
message.codeId = BigInt(object.code_id);
|
|
1135
|
+
}
|
|
1136
|
+
if (object.label !== undefined && object.label !== null) {
|
|
1137
|
+
message.label = object.label;
|
|
1138
|
+
}
|
|
1139
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
1140
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
1141
|
+
}
|
|
1142
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
1143
|
+
if (object.salt !== undefined && object.salt !== null) {
|
|
1144
|
+
message.salt = bytesFromBase64(object.salt);
|
|
1145
|
+
}
|
|
1146
|
+
if (object.fix_msg !== undefined && object.fix_msg !== null) {
|
|
1147
|
+
message.fixMsg = object.fix_msg;
|
|
1148
|
+
}
|
|
1149
|
+
return message;
|
|
1150
|
+
},
|
|
1151
|
+
toAmino(message: InstantiateContract2Proposal): InstantiateContract2ProposalAmino {
|
|
1152
|
+
const obj: any = {};
|
|
1153
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1154
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1155
|
+
obj.run_as = message.runAs === "" ? undefined : message.runAs;
|
|
1156
|
+
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
1157
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
1158
|
+
obj.label = message.label === "" ? undefined : message.label;
|
|
1159
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
1160
|
+
if (message.funds) {
|
|
1161
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
1162
|
+
} else {
|
|
1163
|
+
obj.funds = message.funds;
|
|
1164
|
+
}
|
|
1165
|
+
obj.salt = message.salt ? base64FromBytes(message.salt) : undefined;
|
|
1166
|
+
obj.fix_msg = message.fixMsg === false ? undefined : message.fixMsg;
|
|
1167
|
+
return obj;
|
|
1168
|
+
},
|
|
1169
|
+
fromAminoMsg(object: InstantiateContract2ProposalAminoMsg): InstantiateContract2Proposal {
|
|
1170
|
+
return InstantiateContract2Proposal.fromAmino(object.value);
|
|
1171
|
+
},
|
|
1172
|
+
toAminoMsg(message: InstantiateContract2Proposal): InstantiateContract2ProposalAminoMsg {
|
|
1173
|
+
return {
|
|
1174
|
+
type: "wasm/InstantiateContract2Proposal",
|
|
1175
|
+
value: InstantiateContract2Proposal.toAmino(message)
|
|
1176
|
+
};
|
|
1177
|
+
},
|
|
1178
|
+
fromProtoMsg(message: InstantiateContract2ProposalProtoMsg): InstantiateContract2Proposal {
|
|
1179
|
+
return InstantiateContract2Proposal.decode(message.value);
|
|
1180
|
+
},
|
|
1181
|
+
toProto(message: InstantiateContract2Proposal): Uint8Array {
|
|
1182
|
+
return InstantiateContract2Proposal.encode(message).finish();
|
|
1183
|
+
},
|
|
1184
|
+
toProtoMsg(message: InstantiateContract2Proposal): InstantiateContract2ProposalProtoMsg {
|
|
1185
|
+
return {
|
|
1186
|
+
typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal",
|
|
1187
|
+
value: InstantiateContract2Proposal.encode(message).finish()
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
GlobalDecoderRegistry.register(InstantiateContract2Proposal.typeUrl, InstantiateContract2Proposal);
|
|
1192
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(InstantiateContract2Proposal.aminoType, InstantiateContract2Proposal.typeUrl);
|
|
1193
|
+
function createBaseMigrateContractProposal(): MigrateContractProposal {
|
|
1194
|
+
return {
|
|
1195
|
+
title: "",
|
|
1196
|
+
description: "",
|
|
1197
|
+
contract: "",
|
|
1198
|
+
codeId: BigInt(0),
|
|
1199
|
+
msg: new Uint8Array()
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
export const MigrateContractProposal = {
|
|
1203
|
+
typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal",
|
|
1204
|
+
aminoType: "wasm/MigrateContractProposal",
|
|
1205
|
+
is(o: any): o is MigrateContractProposal {
|
|
1206
|
+
return o && (o.$typeUrl === MigrateContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.contract === "string" && typeof o.codeId === "bigint" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
|
|
1207
|
+
},
|
|
1208
|
+
isAmino(o: any): o is MigrateContractProposalAmino {
|
|
1209
|
+
return o && (o.$typeUrl === MigrateContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.contract === "string" && typeof o.code_id === "bigint" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
|
|
1210
|
+
},
|
|
1211
|
+
encode(message: MigrateContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1212
|
+
if (message.title !== "") {
|
|
1213
|
+
writer.uint32(10).string(message.title);
|
|
1214
|
+
}
|
|
1215
|
+
if (message.description !== "") {
|
|
1216
|
+
writer.uint32(18).string(message.description);
|
|
1217
|
+
}
|
|
1218
|
+
if (message.contract !== "") {
|
|
1219
|
+
writer.uint32(34).string(message.contract);
|
|
1220
|
+
}
|
|
1221
|
+
if (message.codeId !== BigInt(0)) {
|
|
1222
|
+
writer.uint32(40).uint64(message.codeId);
|
|
1223
|
+
}
|
|
1224
|
+
if (message.msg.length !== 0) {
|
|
1225
|
+
writer.uint32(50).bytes(message.msg);
|
|
1226
|
+
}
|
|
1227
|
+
return writer;
|
|
1228
|
+
},
|
|
1229
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MigrateContractProposal {
|
|
1230
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1231
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1232
|
+
const message = createBaseMigrateContractProposal();
|
|
1233
|
+
while (reader.pos < end) {
|
|
1234
|
+
const tag = reader.uint32();
|
|
1235
|
+
switch (tag >>> 3) {
|
|
1236
|
+
case 1:
|
|
1237
|
+
message.title = reader.string();
|
|
1238
|
+
break;
|
|
1239
|
+
case 2:
|
|
1240
|
+
message.description = reader.string();
|
|
1241
|
+
break;
|
|
1242
|
+
case 4:
|
|
1243
|
+
message.contract = reader.string();
|
|
1244
|
+
break;
|
|
1245
|
+
case 5:
|
|
1246
|
+
message.codeId = reader.uint64();
|
|
1247
|
+
break;
|
|
1248
|
+
case 6:
|
|
1249
|
+
message.msg = reader.bytes();
|
|
1250
|
+
break;
|
|
1251
|
+
default:
|
|
1252
|
+
reader.skipType(tag & 7);
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
return message;
|
|
1257
|
+
},
|
|
1258
|
+
fromPartial(object: DeepPartial<MigrateContractProposal>): MigrateContractProposal {
|
|
1259
|
+
const message = createBaseMigrateContractProposal();
|
|
1260
|
+
message.title = object.title ?? "";
|
|
1261
|
+
message.description = object.description ?? "";
|
|
1262
|
+
message.contract = object.contract ?? "";
|
|
1263
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
1264
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
1265
|
+
return message;
|
|
1266
|
+
},
|
|
1267
|
+
fromAmino(object: MigrateContractProposalAmino): MigrateContractProposal {
|
|
1268
|
+
const message = createBaseMigrateContractProposal();
|
|
1269
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1270
|
+
message.title = object.title;
|
|
1271
|
+
}
|
|
1272
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1273
|
+
message.description = object.description;
|
|
1274
|
+
}
|
|
1275
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
1276
|
+
message.contract = object.contract;
|
|
1277
|
+
}
|
|
1278
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
1279
|
+
message.codeId = BigInt(object.code_id);
|
|
1280
|
+
}
|
|
1281
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
1282
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
1283
|
+
}
|
|
1284
|
+
return message;
|
|
1285
|
+
},
|
|
1286
|
+
toAmino(message: MigrateContractProposal): MigrateContractProposalAmino {
|
|
1287
|
+
const obj: any = {};
|
|
1288
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1289
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1290
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
1291
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
1292
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
1293
|
+
return obj;
|
|
1294
|
+
},
|
|
1295
|
+
fromAminoMsg(object: MigrateContractProposalAminoMsg): MigrateContractProposal {
|
|
1296
|
+
return MigrateContractProposal.fromAmino(object.value);
|
|
1297
|
+
},
|
|
1298
|
+
toAminoMsg(message: MigrateContractProposal): MigrateContractProposalAminoMsg {
|
|
1299
|
+
return {
|
|
1300
|
+
type: "wasm/MigrateContractProposal",
|
|
1301
|
+
value: MigrateContractProposal.toAmino(message)
|
|
1302
|
+
};
|
|
1303
|
+
},
|
|
1304
|
+
fromProtoMsg(message: MigrateContractProposalProtoMsg): MigrateContractProposal {
|
|
1305
|
+
return MigrateContractProposal.decode(message.value);
|
|
1306
|
+
},
|
|
1307
|
+
toProto(message: MigrateContractProposal): Uint8Array {
|
|
1308
|
+
return MigrateContractProposal.encode(message).finish();
|
|
1309
|
+
},
|
|
1310
|
+
toProtoMsg(message: MigrateContractProposal): MigrateContractProposalProtoMsg {
|
|
1311
|
+
return {
|
|
1312
|
+
typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal",
|
|
1313
|
+
value: MigrateContractProposal.encode(message).finish()
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
GlobalDecoderRegistry.register(MigrateContractProposal.typeUrl, MigrateContractProposal);
|
|
1318
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MigrateContractProposal.aminoType, MigrateContractProposal.typeUrl);
|
|
1319
|
+
function createBaseSudoContractProposal(): SudoContractProposal {
|
|
1320
|
+
return {
|
|
1321
|
+
title: "",
|
|
1322
|
+
description: "",
|
|
1323
|
+
contract: "",
|
|
1324
|
+
msg: new Uint8Array()
|
|
1325
|
+
};
|
|
1326
|
+
}
|
|
1327
|
+
export const SudoContractProposal = {
|
|
1328
|
+
typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal",
|
|
1329
|
+
aminoType: "wasm/SudoContractProposal",
|
|
1330
|
+
is(o: any): o is SudoContractProposal {
|
|
1331
|
+
return o && (o.$typeUrl === SudoContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
|
|
1332
|
+
},
|
|
1333
|
+
isAmino(o: any): o is SudoContractProposalAmino {
|
|
1334
|
+
return o && (o.$typeUrl === SudoContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
|
|
1335
|
+
},
|
|
1336
|
+
encode(message: SudoContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1337
|
+
if (message.title !== "") {
|
|
1338
|
+
writer.uint32(10).string(message.title);
|
|
1339
|
+
}
|
|
1340
|
+
if (message.description !== "") {
|
|
1341
|
+
writer.uint32(18).string(message.description);
|
|
1342
|
+
}
|
|
1343
|
+
if (message.contract !== "") {
|
|
1344
|
+
writer.uint32(26).string(message.contract);
|
|
1345
|
+
}
|
|
1346
|
+
if (message.msg.length !== 0) {
|
|
1347
|
+
writer.uint32(34).bytes(message.msg);
|
|
1348
|
+
}
|
|
1349
|
+
return writer;
|
|
1350
|
+
},
|
|
1351
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SudoContractProposal {
|
|
1352
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1353
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1354
|
+
const message = createBaseSudoContractProposal();
|
|
1355
|
+
while (reader.pos < end) {
|
|
1356
|
+
const tag = reader.uint32();
|
|
1357
|
+
switch (tag >>> 3) {
|
|
1358
|
+
case 1:
|
|
1359
|
+
message.title = reader.string();
|
|
1360
|
+
break;
|
|
1361
|
+
case 2:
|
|
1362
|
+
message.description = reader.string();
|
|
1363
|
+
break;
|
|
1364
|
+
case 3:
|
|
1365
|
+
message.contract = reader.string();
|
|
1366
|
+
break;
|
|
1367
|
+
case 4:
|
|
1368
|
+
message.msg = reader.bytes();
|
|
1369
|
+
break;
|
|
1370
|
+
default:
|
|
1371
|
+
reader.skipType(tag & 7);
|
|
1372
|
+
break;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
return message;
|
|
1376
|
+
},
|
|
1377
|
+
fromPartial(object: DeepPartial<SudoContractProposal>): SudoContractProposal {
|
|
1378
|
+
const message = createBaseSudoContractProposal();
|
|
1379
|
+
message.title = object.title ?? "";
|
|
1380
|
+
message.description = object.description ?? "";
|
|
1381
|
+
message.contract = object.contract ?? "";
|
|
1382
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
1383
|
+
return message;
|
|
1384
|
+
},
|
|
1385
|
+
fromAmino(object: SudoContractProposalAmino): SudoContractProposal {
|
|
1386
|
+
const message = createBaseSudoContractProposal();
|
|
1387
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1388
|
+
message.title = object.title;
|
|
1389
|
+
}
|
|
1390
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1391
|
+
message.description = object.description;
|
|
1392
|
+
}
|
|
1393
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
1394
|
+
message.contract = object.contract;
|
|
1395
|
+
}
|
|
1396
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
1397
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
1398
|
+
}
|
|
1399
|
+
return message;
|
|
1400
|
+
},
|
|
1401
|
+
toAmino(message: SudoContractProposal): SudoContractProposalAmino {
|
|
1402
|
+
const obj: any = {};
|
|
1403
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1404
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1405
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
1406
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
1407
|
+
return obj;
|
|
1408
|
+
},
|
|
1409
|
+
fromAminoMsg(object: SudoContractProposalAminoMsg): SudoContractProposal {
|
|
1410
|
+
return SudoContractProposal.fromAmino(object.value);
|
|
1411
|
+
},
|
|
1412
|
+
toAminoMsg(message: SudoContractProposal): SudoContractProposalAminoMsg {
|
|
1413
|
+
return {
|
|
1414
|
+
type: "wasm/SudoContractProposal",
|
|
1415
|
+
value: SudoContractProposal.toAmino(message)
|
|
1416
|
+
};
|
|
1417
|
+
},
|
|
1418
|
+
fromProtoMsg(message: SudoContractProposalProtoMsg): SudoContractProposal {
|
|
1419
|
+
return SudoContractProposal.decode(message.value);
|
|
1420
|
+
},
|
|
1421
|
+
toProto(message: SudoContractProposal): Uint8Array {
|
|
1422
|
+
return SudoContractProposal.encode(message).finish();
|
|
1423
|
+
},
|
|
1424
|
+
toProtoMsg(message: SudoContractProposal): SudoContractProposalProtoMsg {
|
|
1425
|
+
return {
|
|
1426
|
+
typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal",
|
|
1427
|
+
value: SudoContractProposal.encode(message).finish()
|
|
1428
|
+
};
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1431
|
+
GlobalDecoderRegistry.register(SudoContractProposal.typeUrl, SudoContractProposal);
|
|
1432
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SudoContractProposal.aminoType, SudoContractProposal.typeUrl);
|
|
1433
|
+
function createBaseExecuteContractProposal(): ExecuteContractProposal {
|
|
1434
|
+
return {
|
|
1435
|
+
title: "",
|
|
1436
|
+
description: "",
|
|
1437
|
+
runAs: "",
|
|
1438
|
+
contract: "",
|
|
1439
|
+
msg: new Uint8Array(),
|
|
1440
|
+
funds: []
|
|
1441
|
+
};
|
|
1442
|
+
}
|
|
1443
|
+
export const ExecuteContractProposal = {
|
|
1444
|
+
typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal",
|
|
1445
|
+
aminoType: "wasm/ExecuteContractProposal",
|
|
1446
|
+
is(o: any): o is ExecuteContractProposal {
|
|
1447
|
+
return o && (o.$typeUrl === ExecuteContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.runAs === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])));
|
|
1448
|
+
},
|
|
1449
|
+
isAmino(o: any): o is ExecuteContractProposalAmino {
|
|
1450
|
+
return o && (o.$typeUrl === ExecuteContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.run_as === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])));
|
|
1451
|
+
},
|
|
1452
|
+
encode(message: ExecuteContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1453
|
+
if (message.title !== "") {
|
|
1454
|
+
writer.uint32(10).string(message.title);
|
|
1455
|
+
}
|
|
1456
|
+
if (message.description !== "") {
|
|
1457
|
+
writer.uint32(18).string(message.description);
|
|
1458
|
+
}
|
|
1459
|
+
if (message.runAs !== "") {
|
|
1460
|
+
writer.uint32(26).string(message.runAs);
|
|
1461
|
+
}
|
|
1462
|
+
if (message.contract !== "") {
|
|
1463
|
+
writer.uint32(34).string(message.contract);
|
|
1464
|
+
}
|
|
1465
|
+
if (message.msg.length !== 0) {
|
|
1466
|
+
writer.uint32(42).bytes(message.msg);
|
|
1467
|
+
}
|
|
1468
|
+
for (const v of message.funds) {
|
|
1469
|
+
Coin.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1470
|
+
}
|
|
1471
|
+
return writer;
|
|
1472
|
+
},
|
|
1473
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ExecuteContractProposal {
|
|
1474
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1475
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1476
|
+
const message = createBaseExecuteContractProposal();
|
|
1477
|
+
while (reader.pos < end) {
|
|
1478
|
+
const tag = reader.uint32();
|
|
1479
|
+
switch (tag >>> 3) {
|
|
1480
|
+
case 1:
|
|
1481
|
+
message.title = reader.string();
|
|
1482
|
+
break;
|
|
1483
|
+
case 2:
|
|
1484
|
+
message.description = reader.string();
|
|
1485
|
+
break;
|
|
1486
|
+
case 3:
|
|
1487
|
+
message.runAs = reader.string();
|
|
1488
|
+
break;
|
|
1489
|
+
case 4:
|
|
1490
|
+
message.contract = reader.string();
|
|
1491
|
+
break;
|
|
1492
|
+
case 5:
|
|
1493
|
+
message.msg = reader.bytes();
|
|
1494
|
+
break;
|
|
1495
|
+
case 6:
|
|
1496
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
1497
|
+
break;
|
|
1498
|
+
default:
|
|
1499
|
+
reader.skipType(tag & 7);
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
return message;
|
|
1504
|
+
},
|
|
1505
|
+
fromPartial(object: DeepPartial<ExecuteContractProposal>): ExecuteContractProposal {
|
|
1506
|
+
const message = createBaseExecuteContractProposal();
|
|
1507
|
+
message.title = object.title ?? "";
|
|
1508
|
+
message.description = object.description ?? "";
|
|
1509
|
+
message.runAs = object.runAs ?? "";
|
|
1510
|
+
message.contract = object.contract ?? "";
|
|
1511
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
1512
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
1513
|
+
return message;
|
|
1514
|
+
},
|
|
1515
|
+
fromAmino(object: ExecuteContractProposalAmino): ExecuteContractProposal {
|
|
1516
|
+
const message = createBaseExecuteContractProposal();
|
|
1517
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1518
|
+
message.title = object.title;
|
|
1519
|
+
}
|
|
1520
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1521
|
+
message.description = object.description;
|
|
1522
|
+
}
|
|
1523
|
+
if (object.run_as !== undefined && object.run_as !== null) {
|
|
1524
|
+
message.runAs = object.run_as;
|
|
1525
|
+
}
|
|
1526
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
1527
|
+
message.contract = object.contract;
|
|
1528
|
+
}
|
|
1529
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
1530
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
1531
|
+
}
|
|
1532
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
1533
|
+
return message;
|
|
1534
|
+
},
|
|
1535
|
+
toAmino(message: ExecuteContractProposal): ExecuteContractProposalAmino {
|
|
1536
|
+
const obj: any = {};
|
|
1537
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1538
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1539
|
+
obj.run_as = message.runAs === "" ? undefined : message.runAs;
|
|
1540
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
1541
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
1542
|
+
if (message.funds) {
|
|
1543
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
1544
|
+
} else {
|
|
1545
|
+
obj.funds = message.funds;
|
|
1546
|
+
}
|
|
1547
|
+
return obj;
|
|
1548
|
+
},
|
|
1549
|
+
fromAminoMsg(object: ExecuteContractProposalAminoMsg): ExecuteContractProposal {
|
|
1550
|
+
return ExecuteContractProposal.fromAmino(object.value);
|
|
1551
|
+
},
|
|
1552
|
+
toAminoMsg(message: ExecuteContractProposal): ExecuteContractProposalAminoMsg {
|
|
1553
|
+
return {
|
|
1554
|
+
type: "wasm/ExecuteContractProposal",
|
|
1555
|
+
value: ExecuteContractProposal.toAmino(message)
|
|
1556
|
+
};
|
|
1557
|
+
},
|
|
1558
|
+
fromProtoMsg(message: ExecuteContractProposalProtoMsg): ExecuteContractProposal {
|
|
1559
|
+
return ExecuteContractProposal.decode(message.value);
|
|
1560
|
+
},
|
|
1561
|
+
toProto(message: ExecuteContractProposal): Uint8Array {
|
|
1562
|
+
return ExecuteContractProposal.encode(message).finish();
|
|
1563
|
+
},
|
|
1564
|
+
toProtoMsg(message: ExecuteContractProposal): ExecuteContractProposalProtoMsg {
|
|
1565
|
+
return {
|
|
1566
|
+
typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal",
|
|
1567
|
+
value: ExecuteContractProposal.encode(message).finish()
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
GlobalDecoderRegistry.register(ExecuteContractProposal.typeUrl, ExecuteContractProposal);
|
|
1572
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ExecuteContractProposal.aminoType, ExecuteContractProposal.typeUrl);
|
|
1573
|
+
function createBaseUpdateAdminProposal(): UpdateAdminProposal {
|
|
1574
|
+
return {
|
|
1575
|
+
title: "",
|
|
1576
|
+
description: "",
|
|
1577
|
+
newAdmin: "",
|
|
1578
|
+
contract: ""
|
|
1579
|
+
};
|
|
1580
|
+
}
|
|
1581
|
+
export const UpdateAdminProposal = {
|
|
1582
|
+
typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal",
|
|
1583
|
+
aminoType: "wasm/UpdateAdminProposal",
|
|
1584
|
+
is(o: any): o is UpdateAdminProposal {
|
|
1585
|
+
return o && (o.$typeUrl === UpdateAdminProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.newAdmin === "string" && typeof o.contract === "string");
|
|
1586
|
+
},
|
|
1587
|
+
isAmino(o: any): o is UpdateAdminProposalAmino {
|
|
1588
|
+
return o && (o.$typeUrl === UpdateAdminProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.new_admin === "string" && typeof o.contract === "string");
|
|
1589
|
+
},
|
|
1590
|
+
encode(message: UpdateAdminProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1591
|
+
if (message.title !== "") {
|
|
1592
|
+
writer.uint32(10).string(message.title);
|
|
1593
|
+
}
|
|
1594
|
+
if (message.description !== "") {
|
|
1595
|
+
writer.uint32(18).string(message.description);
|
|
1596
|
+
}
|
|
1597
|
+
if (message.newAdmin !== "") {
|
|
1598
|
+
writer.uint32(26).string(message.newAdmin);
|
|
1599
|
+
}
|
|
1600
|
+
if (message.contract !== "") {
|
|
1601
|
+
writer.uint32(34).string(message.contract);
|
|
1602
|
+
}
|
|
1603
|
+
return writer;
|
|
1604
|
+
},
|
|
1605
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpdateAdminProposal {
|
|
1606
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1607
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1608
|
+
const message = createBaseUpdateAdminProposal();
|
|
1609
|
+
while (reader.pos < end) {
|
|
1610
|
+
const tag = reader.uint32();
|
|
1611
|
+
switch (tag >>> 3) {
|
|
1612
|
+
case 1:
|
|
1613
|
+
message.title = reader.string();
|
|
1614
|
+
break;
|
|
1615
|
+
case 2:
|
|
1616
|
+
message.description = reader.string();
|
|
1617
|
+
break;
|
|
1618
|
+
case 3:
|
|
1619
|
+
message.newAdmin = reader.string();
|
|
1620
|
+
break;
|
|
1621
|
+
case 4:
|
|
1622
|
+
message.contract = reader.string();
|
|
1623
|
+
break;
|
|
1624
|
+
default:
|
|
1625
|
+
reader.skipType(tag & 7);
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
return message;
|
|
1630
|
+
},
|
|
1631
|
+
fromPartial(object: DeepPartial<UpdateAdminProposal>): UpdateAdminProposal {
|
|
1632
|
+
const message = createBaseUpdateAdminProposal();
|
|
1633
|
+
message.title = object.title ?? "";
|
|
1634
|
+
message.description = object.description ?? "";
|
|
1635
|
+
message.newAdmin = object.newAdmin ?? "";
|
|
1636
|
+
message.contract = object.contract ?? "";
|
|
1637
|
+
return message;
|
|
1638
|
+
},
|
|
1639
|
+
fromAmino(object: UpdateAdminProposalAmino): UpdateAdminProposal {
|
|
1640
|
+
const message = createBaseUpdateAdminProposal();
|
|
1641
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1642
|
+
message.title = object.title;
|
|
1643
|
+
}
|
|
1644
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1645
|
+
message.description = object.description;
|
|
1646
|
+
}
|
|
1647
|
+
if (object.new_admin !== undefined && object.new_admin !== null) {
|
|
1648
|
+
message.newAdmin = object.new_admin;
|
|
1649
|
+
}
|
|
1650
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
1651
|
+
message.contract = object.contract;
|
|
1652
|
+
}
|
|
1653
|
+
return message;
|
|
1654
|
+
},
|
|
1655
|
+
toAmino(message: UpdateAdminProposal): UpdateAdminProposalAmino {
|
|
1656
|
+
const obj: any = {};
|
|
1657
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1658
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1659
|
+
obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
|
|
1660
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
1661
|
+
return obj;
|
|
1662
|
+
},
|
|
1663
|
+
fromAminoMsg(object: UpdateAdminProposalAminoMsg): UpdateAdminProposal {
|
|
1664
|
+
return UpdateAdminProposal.fromAmino(object.value);
|
|
1665
|
+
},
|
|
1666
|
+
toAminoMsg(message: UpdateAdminProposal): UpdateAdminProposalAminoMsg {
|
|
1667
|
+
return {
|
|
1668
|
+
type: "wasm/UpdateAdminProposal",
|
|
1669
|
+
value: UpdateAdminProposal.toAmino(message)
|
|
1670
|
+
};
|
|
1671
|
+
},
|
|
1672
|
+
fromProtoMsg(message: UpdateAdminProposalProtoMsg): UpdateAdminProposal {
|
|
1673
|
+
return UpdateAdminProposal.decode(message.value);
|
|
1674
|
+
},
|
|
1675
|
+
toProto(message: UpdateAdminProposal): Uint8Array {
|
|
1676
|
+
return UpdateAdminProposal.encode(message).finish();
|
|
1677
|
+
},
|
|
1678
|
+
toProtoMsg(message: UpdateAdminProposal): UpdateAdminProposalProtoMsg {
|
|
1679
|
+
return {
|
|
1680
|
+
typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal",
|
|
1681
|
+
value: UpdateAdminProposal.encode(message).finish()
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1685
|
+
GlobalDecoderRegistry.register(UpdateAdminProposal.typeUrl, UpdateAdminProposal);
|
|
1686
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(UpdateAdminProposal.aminoType, UpdateAdminProposal.typeUrl);
|
|
1687
|
+
function createBaseClearAdminProposal(): ClearAdminProposal {
|
|
1688
|
+
return {
|
|
1689
|
+
title: "",
|
|
1690
|
+
description: "",
|
|
1691
|
+
contract: ""
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
export const ClearAdminProposal = {
|
|
1695
|
+
typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal",
|
|
1696
|
+
aminoType: "wasm/ClearAdminProposal",
|
|
1697
|
+
is(o: any): o is ClearAdminProposal {
|
|
1698
|
+
return o && (o.$typeUrl === ClearAdminProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.contract === "string");
|
|
1699
|
+
},
|
|
1700
|
+
isAmino(o: any): o is ClearAdminProposalAmino {
|
|
1701
|
+
return o && (o.$typeUrl === ClearAdminProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.contract === "string");
|
|
1702
|
+
},
|
|
1703
|
+
encode(message: ClearAdminProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1704
|
+
if (message.title !== "") {
|
|
1705
|
+
writer.uint32(10).string(message.title);
|
|
1706
|
+
}
|
|
1707
|
+
if (message.description !== "") {
|
|
1708
|
+
writer.uint32(18).string(message.description);
|
|
1709
|
+
}
|
|
1710
|
+
if (message.contract !== "") {
|
|
1711
|
+
writer.uint32(26).string(message.contract);
|
|
1712
|
+
}
|
|
1713
|
+
return writer;
|
|
1714
|
+
},
|
|
1715
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ClearAdminProposal {
|
|
1716
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1717
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1718
|
+
const message = createBaseClearAdminProposal();
|
|
1719
|
+
while (reader.pos < end) {
|
|
1720
|
+
const tag = reader.uint32();
|
|
1721
|
+
switch (tag >>> 3) {
|
|
1722
|
+
case 1:
|
|
1723
|
+
message.title = reader.string();
|
|
1724
|
+
break;
|
|
1725
|
+
case 2:
|
|
1726
|
+
message.description = reader.string();
|
|
1727
|
+
break;
|
|
1728
|
+
case 3:
|
|
1729
|
+
message.contract = reader.string();
|
|
1730
|
+
break;
|
|
1731
|
+
default:
|
|
1732
|
+
reader.skipType(tag & 7);
|
|
1733
|
+
break;
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
return message;
|
|
1737
|
+
},
|
|
1738
|
+
fromPartial(object: DeepPartial<ClearAdminProposal>): ClearAdminProposal {
|
|
1739
|
+
const message = createBaseClearAdminProposal();
|
|
1740
|
+
message.title = object.title ?? "";
|
|
1741
|
+
message.description = object.description ?? "";
|
|
1742
|
+
message.contract = object.contract ?? "";
|
|
1743
|
+
return message;
|
|
1744
|
+
},
|
|
1745
|
+
fromAmino(object: ClearAdminProposalAmino): ClearAdminProposal {
|
|
1746
|
+
const message = createBaseClearAdminProposal();
|
|
1747
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1748
|
+
message.title = object.title;
|
|
1749
|
+
}
|
|
1750
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1751
|
+
message.description = object.description;
|
|
1752
|
+
}
|
|
1753
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
1754
|
+
message.contract = object.contract;
|
|
1755
|
+
}
|
|
1756
|
+
return message;
|
|
1757
|
+
},
|
|
1758
|
+
toAmino(message: ClearAdminProposal): ClearAdminProposalAmino {
|
|
1759
|
+
const obj: any = {};
|
|
1760
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1761
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1762
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
1763
|
+
return obj;
|
|
1764
|
+
},
|
|
1765
|
+
fromAminoMsg(object: ClearAdminProposalAminoMsg): ClearAdminProposal {
|
|
1766
|
+
return ClearAdminProposal.fromAmino(object.value);
|
|
1767
|
+
},
|
|
1768
|
+
toAminoMsg(message: ClearAdminProposal): ClearAdminProposalAminoMsg {
|
|
1769
|
+
return {
|
|
1770
|
+
type: "wasm/ClearAdminProposal",
|
|
1771
|
+
value: ClearAdminProposal.toAmino(message)
|
|
1772
|
+
};
|
|
1773
|
+
},
|
|
1774
|
+
fromProtoMsg(message: ClearAdminProposalProtoMsg): ClearAdminProposal {
|
|
1775
|
+
return ClearAdminProposal.decode(message.value);
|
|
1776
|
+
},
|
|
1777
|
+
toProto(message: ClearAdminProposal): Uint8Array {
|
|
1778
|
+
return ClearAdminProposal.encode(message).finish();
|
|
1779
|
+
},
|
|
1780
|
+
toProtoMsg(message: ClearAdminProposal): ClearAdminProposalProtoMsg {
|
|
1781
|
+
return {
|
|
1782
|
+
typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal",
|
|
1783
|
+
value: ClearAdminProposal.encode(message).finish()
|
|
1784
|
+
};
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1787
|
+
GlobalDecoderRegistry.register(ClearAdminProposal.typeUrl, ClearAdminProposal);
|
|
1788
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ClearAdminProposal.aminoType, ClearAdminProposal.typeUrl);
|
|
1789
|
+
function createBasePinCodesProposal(): PinCodesProposal {
|
|
1790
|
+
return {
|
|
1791
|
+
title: "",
|
|
1792
|
+
description: "",
|
|
1793
|
+
codeIds: []
|
|
1794
|
+
};
|
|
1795
|
+
}
|
|
1796
|
+
export const PinCodesProposal = {
|
|
1797
|
+
typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal",
|
|
1798
|
+
aminoType: "wasm/PinCodesProposal",
|
|
1799
|
+
is(o: any): o is PinCodesProposal {
|
|
1800
|
+
return o && (o.$typeUrl === PinCodesProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.codeIds) && (!o.codeIds.length || typeof o.codeIds[0] === "bigint"));
|
|
1801
|
+
},
|
|
1802
|
+
isAmino(o: any): o is PinCodesProposalAmino {
|
|
1803
|
+
return o && (o.$typeUrl === PinCodesProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.code_ids) && (!o.code_ids.length || typeof o.code_ids[0] === "bigint"));
|
|
1804
|
+
},
|
|
1805
|
+
encode(message: PinCodesProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1806
|
+
if (message.title !== "") {
|
|
1807
|
+
writer.uint32(10).string(message.title);
|
|
1808
|
+
}
|
|
1809
|
+
if (message.description !== "") {
|
|
1810
|
+
writer.uint32(18).string(message.description);
|
|
1811
|
+
}
|
|
1812
|
+
writer.uint32(26).fork();
|
|
1813
|
+
for (const v of message.codeIds) {
|
|
1814
|
+
writer.uint64(v);
|
|
1815
|
+
}
|
|
1816
|
+
writer.ldelim();
|
|
1817
|
+
return writer;
|
|
1818
|
+
},
|
|
1819
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PinCodesProposal {
|
|
1820
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1821
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1822
|
+
const message = createBasePinCodesProposal();
|
|
1823
|
+
while (reader.pos < end) {
|
|
1824
|
+
const tag = reader.uint32();
|
|
1825
|
+
switch (tag >>> 3) {
|
|
1826
|
+
case 1:
|
|
1827
|
+
message.title = reader.string();
|
|
1828
|
+
break;
|
|
1829
|
+
case 2:
|
|
1830
|
+
message.description = reader.string();
|
|
1831
|
+
break;
|
|
1832
|
+
case 3:
|
|
1833
|
+
if ((tag & 7) === 2) {
|
|
1834
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1835
|
+
while (reader.pos < end2) {
|
|
1836
|
+
message.codeIds.push(reader.uint64());
|
|
1837
|
+
}
|
|
1838
|
+
} else {
|
|
1839
|
+
message.codeIds.push(reader.uint64());
|
|
1840
|
+
}
|
|
1841
|
+
break;
|
|
1842
|
+
default:
|
|
1843
|
+
reader.skipType(tag & 7);
|
|
1844
|
+
break;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
return message;
|
|
1848
|
+
},
|
|
1849
|
+
fromPartial(object: DeepPartial<PinCodesProposal>): PinCodesProposal {
|
|
1850
|
+
const message = createBasePinCodesProposal();
|
|
1851
|
+
message.title = object.title ?? "";
|
|
1852
|
+
message.description = object.description ?? "";
|
|
1853
|
+
message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
|
|
1854
|
+
return message;
|
|
1855
|
+
},
|
|
1856
|
+
fromAmino(object: PinCodesProposalAmino): PinCodesProposal {
|
|
1857
|
+
const message = createBasePinCodesProposal();
|
|
1858
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1859
|
+
message.title = object.title;
|
|
1860
|
+
}
|
|
1861
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1862
|
+
message.description = object.description;
|
|
1863
|
+
}
|
|
1864
|
+
message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
|
|
1865
|
+
return message;
|
|
1866
|
+
},
|
|
1867
|
+
toAmino(message: PinCodesProposal): PinCodesProposalAmino {
|
|
1868
|
+
const obj: any = {};
|
|
1869
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1870
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1871
|
+
if (message.codeIds) {
|
|
1872
|
+
obj.code_ids = message.codeIds.map(e => e.toString());
|
|
1873
|
+
} else {
|
|
1874
|
+
obj.code_ids = message.codeIds;
|
|
1875
|
+
}
|
|
1876
|
+
return obj;
|
|
1877
|
+
},
|
|
1878
|
+
fromAminoMsg(object: PinCodesProposalAminoMsg): PinCodesProposal {
|
|
1879
|
+
return PinCodesProposal.fromAmino(object.value);
|
|
1880
|
+
},
|
|
1881
|
+
toAminoMsg(message: PinCodesProposal): PinCodesProposalAminoMsg {
|
|
1882
|
+
return {
|
|
1883
|
+
type: "wasm/PinCodesProposal",
|
|
1884
|
+
value: PinCodesProposal.toAmino(message)
|
|
1885
|
+
};
|
|
1886
|
+
},
|
|
1887
|
+
fromProtoMsg(message: PinCodesProposalProtoMsg): PinCodesProposal {
|
|
1888
|
+
return PinCodesProposal.decode(message.value);
|
|
1889
|
+
},
|
|
1890
|
+
toProto(message: PinCodesProposal): Uint8Array {
|
|
1891
|
+
return PinCodesProposal.encode(message).finish();
|
|
1892
|
+
},
|
|
1893
|
+
toProtoMsg(message: PinCodesProposal): PinCodesProposalProtoMsg {
|
|
1894
|
+
return {
|
|
1895
|
+
typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal",
|
|
1896
|
+
value: PinCodesProposal.encode(message).finish()
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
};
|
|
1900
|
+
GlobalDecoderRegistry.register(PinCodesProposal.typeUrl, PinCodesProposal);
|
|
1901
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(PinCodesProposal.aminoType, PinCodesProposal.typeUrl);
|
|
1902
|
+
function createBaseUnpinCodesProposal(): UnpinCodesProposal {
|
|
1903
|
+
return {
|
|
1904
|
+
title: "",
|
|
1905
|
+
description: "",
|
|
1906
|
+
codeIds: []
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
export const UnpinCodesProposal = {
|
|
1910
|
+
typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal",
|
|
1911
|
+
aminoType: "wasm/UnpinCodesProposal",
|
|
1912
|
+
is(o: any): o is UnpinCodesProposal {
|
|
1913
|
+
return o && (o.$typeUrl === UnpinCodesProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.codeIds) && (!o.codeIds.length || typeof o.codeIds[0] === "bigint"));
|
|
1914
|
+
},
|
|
1915
|
+
isAmino(o: any): o is UnpinCodesProposalAmino {
|
|
1916
|
+
return o && (o.$typeUrl === UnpinCodesProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.code_ids) && (!o.code_ids.length || typeof o.code_ids[0] === "bigint"));
|
|
1917
|
+
},
|
|
1918
|
+
encode(message: UnpinCodesProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1919
|
+
if (message.title !== "") {
|
|
1920
|
+
writer.uint32(10).string(message.title);
|
|
1921
|
+
}
|
|
1922
|
+
if (message.description !== "") {
|
|
1923
|
+
writer.uint32(18).string(message.description);
|
|
1924
|
+
}
|
|
1925
|
+
writer.uint32(26).fork();
|
|
1926
|
+
for (const v of message.codeIds) {
|
|
1927
|
+
writer.uint64(v);
|
|
1928
|
+
}
|
|
1929
|
+
writer.ldelim();
|
|
1930
|
+
return writer;
|
|
1931
|
+
},
|
|
1932
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UnpinCodesProposal {
|
|
1933
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1934
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1935
|
+
const message = createBaseUnpinCodesProposal();
|
|
1936
|
+
while (reader.pos < end) {
|
|
1937
|
+
const tag = reader.uint32();
|
|
1938
|
+
switch (tag >>> 3) {
|
|
1939
|
+
case 1:
|
|
1940
|
+
message.title = reader.string();
|
|
1941
|
+
break;
|
|
1942
|
+
case 2:
|
|
1943
|
+
message.description = reader.string();
|
|
1944
|
+
break;
|
|
1945
|
+
case 3:
|
|
1946
|
+
if ((tag & 7) === 2) {
|
|
1947
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1948
|
+
while (reader.pos < end2) {
|
|
1949
|
+
message.codeIds.push(reader.uint64());
|
|
1950
|
+
}
|
|
1951
|
+
} else {
|
|
1952
|
+
message.codeIds.push(reader.uint64());
|
|
1953
|
+
}
|
|
1954
|
+
break;
|
|
1955
|
+
default:
|
|
1956
|
+
reader.skipType(tag & 7);
|
|
1957
|
+
break;
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
return message;
|
|
1961
|
+
},
|
|
1962
|
+
fromPartial(object: DeepPartial<UnpinCodesProposal>): UnpinCodesProposal {
|
|
1963
|
+
const message = createBaseUnpinCodesProposal();
|
|
1964
|
+
message.title = object.title ?? "";
|
|
1965
|
+
message.description = object.description ?? "";
|
|
1966
|
+
message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
|
|
1967
|
+
return message;
|
|
1968
|
+
},
|
|
1969
|
+
fromAmino(object: UnpinCodesProposalAmino): UnpinCodesProposal {
|
|
1970
|
+
const message = createBaseUnpinCodesProposal();
|
|
1971
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1972
|
+
message.title = object.title;
|
|
1973
|
+
}
|
|
1974
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1975
|
+
message.description = object.description;
|
|
1976
|
+
}
|
|
1977
|
+
message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
|
|
1978
|
+
return message;
|
|
1979
|
+
},
|
|
1980
|
+
toAmino(message: UnpinCodesProposal): UnpinCodesProposalAmino {
|
|
1981
|
+
const obj: any = {};
|
|
1982
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1983
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1984
|
+
if (message.codeIds) {
|
|
1985
|
+
obj.code_ids = message.codeIds.map(e => e.toString());
|
|
1986
|
+
} else {
|
|
1987
|
+
obj.code_ids = message.codeIds;
|
|
1988
|
+
}
|
|
1989
|
+
return obj;
|
|
1990
|
+
},
|
|
1991
|
+
fromAminoMsg(object: UnpinCodesProposalAminoMsg): UnpinCodesProposal {
|
|
1992
|
+
return UnpinCodesProposal.fromAmino(object.value);
|
|
1993
|
+
},
|
|
1994
|
+
toAminoMsg(message: UnpinCodesProposal): UnpinCodesProposalAminoMsg {
|
|
1995
|
+
return {
|
|
1996
|
+
type: "wasm/UnpinCodesProposal",
|
|
1997
|
+
value: UnpinCodesProposal.toAmino(message)
|
|
1998
|
+
};
|
|
1999
|
+
},
|
|
2000
|
+
fromProtoMsg(message: UnpinCodesProposalProtoMsg): UnpinCodesProposal {
|
|
2001
|
+
return UnpinCodesProposal.decode(message.value);
|
|
2002
|
+
},
|
|
2003
|
+
toProto(message: UnpinCodesProposal): Uint8Array {
|
|
2004
|
+
return UnpinCodesProposal.encode(message).finish();
|
|
2005
|
+
},
|
|
2006
|
+
toProtoMsg(message: UnpinCodesProposal): UnpinCodesProposalProtoMsg {
|
|
2007
|
+
return {
|
|
2008
|
+
typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal",
|
|
2009
|
+
value: UnpinCodesProposal.encode(message).finish()
|
|
2010
|
+
};
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
GlobalDecoderRegistry.register(UnpinCodesProposal.typeUrl, UnpinCodesProposal);
|
|
2014
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(UnpinCodesProposal.aminoType, UnpinCodesProposal.typeUrl);
|
|
2015
|
+
function createBaseAccessConfigUpdate(): AccessConfigUpdate {
|
|
2016
|
+
return {
|
|
2017
|
+
codeId: BigInt(0),
|
|
2018
|
+
instantiatePermission: AccessConfig.fromPartial({})
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
2021
|
+
export const AccessConfigUpdate = {
|
|
2022
|
+
typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate",
|
|
2023
|
+
aminoType: "wasm/AccessConfigUpdate",
|
|
2024
|
+
is(o: any): o is AccessConfigUpdate {
|
|
2025
|
+
return o && (o.$typeUrl === AccessConfigUpdate.typeUrl || typeof o.codeId === "bigint" && AccessConfig.is(o.instantiatePermission));
|
|
2026
|
+
},
|
|
2027
|
+
isAmino(o: any): o is AccessConfigUpdateAmino {
|
|
2028
|
+
return o && (o.$typeUrl === AccessConfigUpdate.typeUrl || typeof o.code_id === "bigint" && AccessConfig.isAmino(o.instantiate_permission));
|
|
2029
|
+
},
|
|
2030
|
+
encode(message: AccessConfigUpdate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2031
|
+
if (message.codeId !== BigInt(0)) {
|
|
2032
|
+
writer.uint32(8).uint64(message.codeId);
|
|
2033
|
+
}
|
|
2034
|
+
if (message.instantiatePermission !== undefined) {
|
|
2035
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(18).fork()).ldelim();
|
|
2036
|
+
}
|
|
2037
|
+
return writer;
|
|
2038
|
+
},
|
|
2039
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AccessConfigUpdate {
|
|
2040
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2041
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2042
|
+
const message = createBaseAccessConfigUpdate();
|
|
2043
|
+
while (reader.pos < end) {
|
|
2044
|
+
const tag = reader.uint32();
|
|
2045
|
+
switch (tag >>> 3) {
|
|
2046
|
+
case 1:
|
|
2047
|
+
message.codeId = reader.uint64();
|
|
2048
|
+
break;
|
|
2049
|
+
case 2:
|
|
2050
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
2051
|
+
break;
|
|
2052
|
+
default:
|
|
2053
|
+
reader.skipType(tag & 7);
|
|
2054
|
+
break;
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
return message;
|
|
2058
|
+
},
|
|
2059
|
+
fromPartial(object: DeepPartial<AccessConfigUpdate>): AccessConfigUpdate {
|
|
2060
|
+
const message = createBaseAccessConfigUpdate();
|
|
2061
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
2062
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
|
2063
|
+
return message;
|
|
2064
|
+
},
|
|
2065
|
+
fromAmino(object: AccessConfigUpdateAmino): AccessConfigUpdate {
|
|
2066
|
+
const message = createBaseAccessConfigUpdate();
|
|
2067
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
2068
|
+
message.codeId = BigInt(object.code_id);
|
|
2069
|
+
}
|
|
2070
|
+
if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
|
|
2071
|
+
message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
|
|
2072
|
+
}
|
|
2073
|
+
return message;
|
|
2074
|
+
},
|
|
2075
|
+
toAmino(message: AccessConfigUpdate): AccessConfigUpdateAmino {
|
|
2076
|
+
const obj: any = {};
|
|
2077
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
2078
|
+
obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : AccessConfig.toAmino(AccessConfig.fromPartial({}));
|
|
2079
|
+
return obj;
|
|
2080
|
+
},
|
|
2081
|
+
fromAminoMsg(object: AccessConfigUpdateAminoMsg): AccessConfigUpdate {
|
|
2082
|
+
return AccessConfigUpdate.fromAmino(object.value);
|
|
2083
|
+
},
|
|
2084
|
+
toAminoMsg(message: AccessConfigUpdate): AccessConfigUpdateAminoMsg {
|
|
2085
|
+
return {
|
|
2086
|
+
type: "wasm/AccessConfigUpdate",
|
|
2087
|
+
value: AccessConfigUpdate.toAmino(message)
|
|
2088
|
+
};
|
|
2089
|
+
},
|
|
2090
|
+
fromProtoMsg(message: AccessConfigUpdateProtoMsg): AccessConfigUpdate {
|
|
2091
|
+
return AccessConfigUpdate.decode(message.value);
|
|
2092
|
+
},
|
|
2093
|
+
toProto(message: AccessConfigUpdate): Uint8Array {
|
|
2094
|
+
return AccessConfigUpdate.encode(message).finish();
|
|
2095
|
+
},
|
|
2096
|
+
toProtoMsg(message: AccessConfigUpdate): AccessConfigUpdateProtoMsg {
|
|
2097
|
+
return {
|
|
2098
|
+
typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate",
|
|
2099
|
+
value: AccessConfigUpdate.encode(message).finish()
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
2102
|
+
};
|
|
2103
|
+
GlobalDecoderRegistry.register(AccessConfigUpdate.typeUrl, AccessConfigUpdate);
|
|
2104
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AccessConfigUpdate.aminoType, AccessConfigUpdate.typeUrl);
|
|
2105
|
+
function createBaseUpdateInstantiateConfigProposal(): UpdateInstantiateConfigProposal {
|
|
2106
|
+
return {
|
|
2107
|
+
title: "",
|
|
2108
|
+
description: "",
|
|
2109
|
+
accessConfigUpdates: []
|
|
2110
|
+
};
|
|
2111
|
+
}
|
|
2112
|
+
export const UpdateInstantiateConfigProposal = {
|
|
2113
|
+
typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",
|
|
2114
|
+
aminoType: "wasm/UpdateInstantiateConfigProposal",
|
|
2115
|
+
is(o: any): o is UpdateInstantiateConfigProposal {
|
|
2116
|
+
return o && (o.$typeUrl === UpdateInstantiateConfigProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.accessConfigUpdates) && (!o.accessConfigUpdates.length || AccessConfigUpdate.is(o.accessConfigUpdates[0])));
|
|
2117
|
+
},
|
|
2118
|
+
isAmino(o: any): o is UpdateInstantiateConfigProposalAmino {
|
|
2119
|
+
return o && (o.$typeUrl === UpdateInstantiateConfigProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.access_config_updates) && (!o.access_config_updates.length || AccessConfigUpdate.isAmino(o.access_config_updates[0])));
|
|
2120
|
+
},
|
|
2121
|
+
encode(message: UpdateInstantiateConfigProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2122
|
+
if (message.title !== "") {
|
|
2123
|
+
writer.uint32(10).string(message.title);
|
|
2124
|
+
}
|
|
2125
|
+
if (message.description !== "") {
|
|
2126
|
+
writer.uint32(18).string(message.description);
|
|
2127
|
+
}
|
|
2128
|
+
for (const v of message.accessConfigUpdates) {
|
|
2129
|
+
AccessConfigUpdate.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
2130
|
+
}
|
|
2131
|
+
return writer;
|
|
2132
|
+
},
|
|
2133
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpdateInstantiateConfigProposal {
|
|
2134
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2136
|
+
const message = createBaseUpdateInstantiateConfigProposal();
|
|
2137
|
+
while (reader.pos < end) {
|
|
2138
|
+
const tag = reader.uint32();
|
|
2139
|
+
switch (tag >>> 3) {
|
|
2140
|
+
case 1:
|
|
2141
|
+
message.title = reader.string();
|
|
2142
|
+
break;
|
|
2143
|
+
case 2:
|
|
2144
|
+
message.description = reader.string();
|
|
2145
|
+
break;
|
|
2146
|
+
case 3:
|
|
2147
|
+
message.accessConfigUpdates.push(AccessConfigUpdate.decode(reader, reader.uint32()));
|
|
2148
|
+
break;
|
|
2149
|
+
default:
|
|
2150
|
+
reader.skipType(tag & 7);
|
|
2151
|
+
break;
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
return message;
|
|
2155
|
+
},
|
|
2156
|
+
fromPartial(object: DeepPartial<UpdateInstantiateConfigProposal>): UpdateInstantiateConfigProposal {
|
|
2157
|
+
const message = createBaseUpdateInstantiateConfigProposal();
|
|
2158
|
+
message.title = object.title ?? "";
|
|
2159
|
+
message.description = object.description ?? "";
|
|
2160
|
+
message.accessConfigUpdates = object.accessConfigUpdates?.map(e => AccessConfigUpdate.fromPartial(e)) || [];
|
|
2161
|
+
return message;
|
|
2162
|
+
},
|
|
2163
|
+
fromAmino(object: UpdateInstantiateConfigProposalAmino): UpdateInstantiateConfigProposal {
|
|
2164
|
+
const message = createBaseUpdateInstantiateConfigProposal();
|
|
2165
|
+
if (object.title !== undefined && object.title !== null) {
|
|
2166
|
+
message.title = object.title;
|
|
2167
|
+
}
|
|
2168
|
+
if (object.description !== undefined && object.description !== null) {
|
|
2169
|
+
message.description = object.description;
|
|
2170
|
+
}
|
|
2171
|
+
message.accessConfigUpdates = object.access_config_updates?.map(e => AccessConfigUpdate.fromAmino(e)) || [];
|
|
2172
|
+
return message;
|
|
2173
|
+
},
|
|
2174
|
+
toAmino(message: UpdateInstantiateConfigProposal): UpdateInstantiateConfigProposalAmino {
|
|
2175
|
+
const obj: any = {};
|
|
2176
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
2177
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
2178
|
+
if (message.accessConfigUpdates) {
|
|
2179
|
+
obj.access_config_updates = message.accessConfigUpdates.map(e => e ? AccessConfigUpdate.toAmino(e) : undefined);
|
|
2180
|
+
} else {
|
|
2181
|
+
obj.access_config_updates = message.accessConfigUpdates;
|
|
2182
|
+
}
|
|
2183
|
+
return obj;
|
|
2184
|
+
},
|
|
2185
|
+
fromAminoMsg(object: UpdateInstantiateConfigProposalAminoMsg): UpdateInstantiateConfigProposal {
|
|
2186
|
+
return UpdateInstantiateConfigProposal.fromAmino(object.value);
|
|
2187
|
+
},
|
|
2188
|
+
toAminoMsg(message: UpdateInstantiateConfigProposal): UpdateInstantiateConfigProposalAminoMsg {
|
|
2189
|
+
return {
|
|
2190
|
+
type: "wasm/UpdateInstantiateConfigProposal",
|
|
2191
|
+
value: UpdateInstantiateConfigProposal.toAmino(message)
|
|
2192
|
+
};
|
|
2193
|
+
},
|
|
2194
|
+
fromProtoMsg(message: UpdateInstantiateConfigProposalProtoMsg): UpdateInstantiateConfigProposal {
|
|
2195
|
+
return UpdateInstantiateConfigProposal.decode(message.value);
|
|
2196
|
+
},
|
|
2197
|
+
toProto(message: UpdateInstantiateConfigProposal): Uint8Array {
|
|
2198
|
+
return UpdateInstantiateConfigProposal.encode(message).finish();
|
|
2199
|
+
},
|
|
2200
|
+
toProtoMsg(message: UpdateInstantiateConfigProposal): UpdateInstantiateConfigProposalProtoMsg {
|
|
2201
|
+
return {
|
|
2202
|
+
typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",
|
|
2203
|
+
value: UpdateInstantiateConfigProposal.encode(message).finish()
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
2206
|
+
};
|
|
2207
|
+
GlobalDecoderRegistry.register(UpdateInstantiateConfigProposal.typeUrl, UpdateInstantiateConfigProposal);
|
|
2208
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(UpdateInstantiateConfigProposal.aminoType, UpdateInstantiateConfigProposal.typeUrl);
|
|
2209
|
+
function createBaseStoreAndInstantiateContractProposal(): StoreAndInstantiateContractProposal {
|
|
2210
|
+
return {
|
|
2211
|
+
title: "",
|
|
2212
|
+
description: "",
|
|
2213
|
+
runAs: "",
|
|
2214
|
+
wasmByteCode: new Uint8Array(),
|
|
2215
|
+
instantiatePermission: undefined,
|
|
2216
|
+
unpinCode: false,
|
|
2217
|
+
admin: "",
|
|
2218
|
+
label: "",
|
|
2219
|
+
msg: new Uint8Array(),
|
|
2220
|
+
funds: [],
|
|
2221
|
+
source: "",
|
|
2222
|
+
builder: "",
|
|
2223
|
+
codeHash: new Uint8Array()
|
|
2224
|
+
};
|
|
2225
|
+
}
|
|
2226
|
+
export const StoreAndInstantiateContractProposal = {
|
|
2227
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal",
|
|
2228
|
+
aminoType: "wasm/StoreAndInstantiateContractProposal",
|
|
2229
|
+
is(o: any): o is StoreAndInstantiateContractProposal {
|
|
2230
|
+
return o && (o.$typeUrl === StoreAndInstantiateContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.runAs === "string" && (o.wasmByteCode instanceof Uint8Array || typeof o.wasmByteCode === "string") && typeof o.unpinCode === "boolean" && typeof o.admin === "string" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])) && typeof o.source === "string" && typeof o.builder === "string" && (o.codeHash instanceof Uint8Array || typeof o.codeHash === "string"));
|
|
2231
|
+
},
|
|
2232
|
+
isAmino(o: any): o is StoreAndInstantiateContractProposalAmino {
|
|
2233
|
+
return o && (o.$typeUrl === StoreAndInstantiateContractProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.run_as === "string" && (o.wasm_byte_code instanceof Uint8Array || typeof o.wasm_byte_code === "string") && typeof o.unpin_code === "boolean" && typeof o.admin === "string" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])) && typeof o.source === "string" && typeof o.builder === "string" && (o.code_hash instanceof Uint8Array || typeof o.code_hash === "string"));
|
|
2234
|
+
},
|
|
2235
|
+
encode(message: StoreAndInstantiateContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2236
|
+
if (message.title !== "") {
|
|
2237
|
+
writer.uint32(10).string(message.title);
|
|
2238
|
+
}
|
|
2239
|
+
if (message.description !== "") {
|
|
2240
|
+
writer.uint32(18).string(message.description);
|
|
2241
|
+
}
|
|
2242
|
+
if (message.runAs !== "") {
|
|
2243
|
+
writer.uint32(26).string(message.runAs);
|
|
2244
|
+
}
|
|
2245
|
+
if (message.wasmByteCode.length !== 0) {
|
|
2246
|
+
writer.uint32(34).bytes(message.wasmByteCode);
|
|
2247
|
+
}
|
|
2248
|
+
if (message.instantiatePermission !== undefined) {
|
|
2249
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(42).fork()).ldelim();
|
|
2250
|
+
}
|
|
2251
|
+
if (message.unpinCode === true) {
|
|
2252
|
+
writer.uint32(48).bool(message.unpinCode);
|
|
2253
|
+
}
|
|
2254
|
+
if (message.admin !== "") {
|
|
2255
|
+
writer.uint32(58).string(message.admin);
|
|
2256
|
+
}
|
|
2257
|
+
if (message.label !== "") {
|
|
2258
|
+
writer.uint32(66).string(message.label);
|
|
2259
|
+
}
|
|
2260
|
+
if (message.msg.length !== 0) {
|
|
2261
|
+
writer.uint32(74).bytes(message.msg);
|
|
2262
|
+
}
|
|
2263
|
+
for (const v of message.funds) {
|
|
2264
|
+
Coin.encode(v!, writer.uint32(82).fork()).ldelim();
|
|
2265
|
+
}
|
|
2266
|
+
if (message.source !== "") {
|
|
2267
|
+
writer.uint32(90).string(message.source);
|
|
2268
|
+
}
|
|
2269
|
+
if (message.builder !== "") {
|
|
2270
|
+
writer.uint32(98).string(message.builder);
|
|
2271
|
+
}
|
|
2272
|
+
if (message.codeHash.length !== 0) {
|
|
2273
|
+
writer.uint32(106).bytes(message.codeHash);
|
|
2274
|
+
}
|
|
2275
|
+
return writer;
|
|
2276
|
+
},
|
|
2277
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StoreAndInstantiateContractProposal {
|
|
2278
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2279
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2280
|
+
const message = createBaseStoreAndInstantiateContractProposal();
|
|
2281
|
+
while (reader.pos < end) {
|
|
2282
|
+
const tag = reader.uint32();
|
|
2283
|
+
switch (tag >>> 3) {
|
|
2284
|
+
case 1:
|
|
2285
|
+
message.title = reader.string();
|
|
2286
|
+
break;
|
|
2287
|
+
case 2:
|
|
2288
|
+
message.description = reader.string();
|
|
2289
|
+
break;
|
|
2290
|
+
case 3:
|
|
2291
|
+
message.runAs = reader.string();
|
|
2292
|
+
break;
|
|
2293
|
+
case 4:
|
|
2294
|
+
message.wasmByteCode = reader.bytes();
|
|
2295
|
+
break;
|
|
2296
|
+
case 5:
|
|
2297
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
2298
|
+
break;
|
|
2299
|
+
case 6:
|
|
2300
|
+
message.unpinCode = reader.bool();
|
|
2301
|
+
break;
|
|
2302
|
+
case 7:
|
|
2303
|
+
message.admin = reader.string();
|
|
2304
|
+
break;
|
|
2305
|
+
case 8:
|
|
2306
|
+
message.label = reader.string();
|
|
2307
|
+
break;
|
|
2308
|
+
case 9:
|
|
2309
|
+
message.msg = reader.bytes();
|
|
2310
|
+
break;
|
|
2311
|
+
case 10:
|
|
2312
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
2313
|
+
break;
|
|
2314
|
+
case 11:
|
|
2315
|
+
message.source = reader.string();
|
|
2316
|
+
break;
|
|
2317
|
+
case 12:
|
|
2318
|
+
message.builder = reader.string();
|
|
2319
|
+
break;
|
|
2320
|
+
case 13:
|
|
2321
|
+
message.codeHash = reader.bytes();
|
|
2322
|
+
break;
|
|
2323
|
+
default:
|
|
2324
|
+
reader.skipType(tag & 7);
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
return message;
|
|
2329
|
+
},
|
|
2330
|
+
fromPartial(object: DeepPartial<StoreAndInstantiateContractProposal>): StoreAndInstantiateContractProposal {
|
|
2331
|
+
const message = createBaseStoreAndInstantiateContractProposal();
|
|
2332
|
+
message.title = object.title ?? "";
|
|
2333
|
+
message.description = object.description ?? "";
|
|
2334
|
+
message.runAs = object.runAs ?? "";
|
|
2335
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
|
2336
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
|
2337
|
+
message.unpinCode = object.unpinCode ?? false;
|
|
2338
|
+
message.admin = object.admin ?? "";
|
|
2339
|
+
message.label = object.label ?? "";
|
|
2340
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
2341
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
2342
|
+
message.source = object.source ?? "";
|
|
2343
|
+
message.builder = object.builder ?? "";
|
|
2344
|
+
message.codeHash = object.codeHash ?? new Uint8Array();
|
|
2345
|
+
return message;
|
|
2346
|
+
},
|
|
2347
|
+
fromAmino(object: StoreAndInstantiateContractProposalAmino): StoreAndInstantiateContractProposal {
|
|
2348
|
+
const message = createBaseStoreAndInstantiateContractProposal();
|
|
2349
|
+
if (object.title !== undefined && object.title !== null) {
|
|
2350
|
+
message.title = object.title;
|
|
2351
|
+
}
|
|
2352
|
+
if (object.description !== undefined && object.description !== null) {
|
|
2353
|
+
message.description = object.description;
|
|
2354
|
+
}
|
|
2355
|
+
if (object.run_as !== undefined && object.run_as !== null) {
|
|
2356
|
+
message.runAs = object.run_as;
|
|
2357
|
+
}
|
|
2358
|
+
if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
|
|
2359
|
+
message.wasmByteCode = fromBase64(object.wasm_byte_code);
|
|
2360
|
+
}
|
|
2361
|
+
if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
|
|
2362
|
+
message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
|
|
2363
|
+
}
|
|
2364
|
+
if (object.unpin_code !== undefined && object.unpin_code !== null) {
|
|
2365
|
+
message.unpinCode = object.unpin_code;
|
|
2366
|
+
}
|
|
2367
|
+
if (object.admin !== undefined && object.admin !== null) {
|
|
2368
|
+
message.admin = object.admin;
|
|
2369
|
+
}
|
|
2370
|
+
if (object.label !== undefined && object.label !== null) {
|
|
2371
|
+
message.label = object.label;
|
|
2372
|
+
}
|
|
2373
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
2374
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
2375
|
+
}
|
|
2376
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
2377
|
+
if (object.source !== undefined && object.source !== null) {
|
|
2378
|
+
message.source = object.source;
|
|
2379
|
+
}
|
|
2380
|
+
if (object.builder !== undefined && object.builder !== null) {
|
|
2381
|
+
message.builder = object.builder;
|
|
2382
|
+
}
|
|
2383
|
+
if (object.code_hash !== undefined && object.code_hash !== null) {
|
|
2384
|
+
message.codeHash = bytesFromBase64(object.code_hash);
|
|
2385
|
+
}
|
|
2386
|
+
return message;
|
|
2387
|
+
},
|
|
2388
|
+
toAmino(message: StoreAndInstantiateContractProposal): StoreAndInstantiateContractProposalAmino {
|
|
2389
|
+
const obj: any = {};
|
|
2390
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
2391
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
2392
|
+
obj.run_as = message.runAs === "" ? undefined : message.runAs;
|
|
2393
|
+
obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
|
|
2394
|
+
obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
|
|
2395
|
+
obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode;
|
|
2396
|
+
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
2397
|
+
obj.label = message.label === "" ? undefined : message.label;
|
|
2398
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
2399
|
+
if (message.funds) {
|
|
2400
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
2401
|
+
} else {
|
|
2402
|
+
obj.funds = message.funds;
|
|
2403
|
+
}
|
|
2404
|
+
obj.source = message.source === "" ? undefined : message.source;
|
|
2405
|
+
obj.builder = message.builder === "" ? undefined : message.builder;
|
|
2406
|
+
obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
|
|
2407
|
+
return obj;
|
|
2408
|
+
},
|
|
2409
|
+
fromAminoMsg(object: StoreAndInstantiateContractProposalAminoMsg): StoreAndInstantiateContractProposal {
|
|
2410
|
+
return StoreAndInstantiateContractProposal.fromAmino(object.value);
|
|
2411
|
+
},
|
|
2412
|
+
toAminoMsg(message: StoreAndInstantiateContractProposal): StoreAndInstantiateContractProposalAminoMsg {
|
|
2413
|
+
return {
|
|
2414
|
+
type: "wasm/StoreAndInstantiateContractProposal",
|
|
2415
|
+
value: StoreAndInstantiateContractProposal.toAmino(message)
|
|
2416
|
+
};
|
|
2417
|
+
},
|
|
2418
|
+
fromProtoMsg(message: StoreAndInstantiateContractProposalProtoMsg): StoreAndInstantiateContractProposal {
|
|
2419
|
+
return StoreAndInstantiateContractProposal.decode(message.value);
|
|
2420
|
+
},
|
|
2421
|
+
toProto(message: StoreAndInstantiateContractProposal): Uint8Array {
|
|
2422
|
+
return StoreAndInstantiateContractProposal.encode(message).finish();
|
|
2423
|
+
},
|
|
2424
|
+
toProtoMsg(message: StoreAndInstantiateContractProposal): StoreAndInstantiateContractProposalProtoMsg {
|
|
2425
|
+
return {
|
|
2426
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal",
|
|
2427
|
+
value: StoreAndInstantiateContractProposal.encode(message).finish()
|
|
2428
|
+
};
|
|
2429
|
+
}
|
|
2430
|
+
};
|
|
2431
|
+
GlobalDecoderRegistry.register(StoreAndInstantiateContractProposal.typeUrl, StoreAndInstantiateContractProposal);
|
|
2432
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(StoreAndInstantiateContractProposal.aminoType, StoreAndInstantiateContractProposal.typeUrl);
|