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