@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,1231 @@
|
|
|
1
|
+
import { AccessConfig, AccessConfigAmino } from "./types";
|
|
2
|
+
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
3
|
+
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
6
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
7
|
+
import { toUtf8, fromUtf8 } from "@cosmjs/encoding";
|
|
8
|
+
/**
|
|
9
|
+
* StoreCodeAuthorization defines authorization for wasm code upload.
|
|
10
|
+
* Since: wasmd 0.42
|
|
11
|
+
*/
|
|
12
|
+
export interface StoreCodeAuthorization {
|
|
13
|
+
/** Grants for code upload */
|
|
14
|
+
grants: CodeGrant[];
|
|
15
|
+
}
|
|
16
|
+
export interface StoreCodeAuthorizationProtoMsg {
|
|
17
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* StoreCodeAuthorization defines authorization for wasm code upload.
|
|
22
|
+
* Since: wasmd 0.42
|
|
23
|
+
*/
|
|
24
|
+
export interface StoreCodeAuthorizationAmino {
|
|
25
|
+
/** Grants for code upload */
|
|
26
|
+
grants: CodeGrantAmino[];
|
|
27
|
+
}
|
|
28
|
+
export interface StoreCodeAuthorizationAminoMsg {
|
|
29
|
+
type: "wasm/StoreCodeAuthorization";
|
|
30
|
+
value: StoreCodeAuthorizationAmino;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* ContractExecutionAuthorization defines authorization for wasm execute.
|
|
34
|
+
* Since: wasmd 0.30
|
|
35
|
+
*/
|
|
36
|
+
export interface ContractExecutionAuthorization {
|
|
37
|
+
/** Grants for contract executions */
|
|
38
|
+
grants: ContractGrant[];
|
|
39
|
+
}
|
|
40
|
+
export interface ContractExecutionAuthorizationProtoMsg {
|
|
41
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization";
|
|
42
|
+
value: Uint8Array;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* ContractExecutionAuthorization defines authorization for wasm execute.
|
|
46
|
+
* Since: wasmd 0.30
|
|
47
|
+
*/
|
|
48
|
+
export interface ContractExecutionAuthorizationAmino {
|
|
49
|
+
/** Grants for contract executions */
|
|
50
|
+
grants: ContractGrantAmino[];
|
|
51
|
+
}
|
|
52
|
+
export interface ContractExecutionAuthorizationAminoMsg {
|
|
53
|
+
type: "wasm/ContractExecutionAuthorization";
|
|
54
|
+
value: ContractExecutionAuthorizationAmino;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* ContractMigrationAuthorization defines authorization for wasm contract
|
|
58
|
+
* migration. Since: wasmd 0.30
|
|
59
|
+
*/
|
|
60
|
+
export interface ContractMigrationAuthorization {
|
|
61
|
+
/** Grants for contract migrations */
|
|
62
|
+
grants: ContractGrant[];
|
|
63
|
+
}
|
|
64
|
+
export interface ContractMigrationAuthorizationProtoMsg {
|
|
65
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization";
|
|
66
|
+
value: Uint8Array;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* ContractMigrationAuthorization defines authorization for wasm contract
|
|
70
|
+
* migration. Since: wasmd 0.30
|
|
71
|
+
*/
|
|
72
|
+
export interface ContractMigrationAuthorizationAmino {
|
|
73
|
+
/** Grants for contract migrations */
|
|
74
|
+
grants: ContractGrantAmino[];
|
|
75
|
+
}
|
|
76
|
+
export interface ContractMigrationAuthorizationAminoMsg {
|
|
77
|
+
type: "wasm/ContractMigrationAuthorization";
|
|
78
|
+
value: ContractMigrationAuthorizationAmino;
|
|
79
|
+
}
|
|
80
|
+
/** CodeGrant a granted permission for a single code */
|
|
81
|
+
export interface CodeGrant {
|
|
82
|
+
/**
|
|
83
|
+
* CodeHash is the unique identifier created by wasmvm
|
|
84
|
+
* Wildcard "*" is used to specify any kind of grant.
|
|
85
|
+
*/
|
|
86
|
+
codeHash: Uint8Array;
|
|
87
|
+
/**
|
|
88
|
+
* InstantiatePermission is the superset access control to apply
|
|
89
|
+
* on contract creation.
|
|
90
|
+
* Optional
|
|
91
|
+
*/
|
|
92
|
+
instantiatePermission?: AccessConfig;
|
|
93
|
+
}
|
|
94
|
+
export interface CodeGrantProtoMsg {
|
|
95
|
+
typeUrl: "/cosmwasm.wasm.v1.CodeGrant";
|
|
96
|
+
value: Uint8Array;
|
|
97
|
+
}
|
|
98
|
+
/** CodeGrant a granted permission for a single code */
|
|
99
|
+
export interface CodeGrantAmino {
|
|
100
|
+
/**
|
|
101
|
+
* CodeHash is the unique identifier created by wasmvm
|
|
102
|
+
* Wildcard "*" is used to specify any kind of grant.
|
|
103
|
+
*/
|
|
104
|
+
code_hash: string;
|
|
105
|
+
/**
|
|
106
|
+
* InstantiatePermission is the superset access control to apply
|
|
107
|
+
* on contract creation.
|
|
108
|
+
* Optional
|
|
109
|
+
*/
|
|
110
|
+
instantiate_permission?: AccessConfigAmino;
|
|
111
|
+
}
|
|
112
|
+
export interface CodeGrantAminoMsg {
|
|
113
|
+
type: "wasm/CodeGrant";
|
|
114
|
+
value: CodeGrantAmino;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* ContractGrant a granted permission for a single contract
|
|
118
|
+
* Since: wasmd 0.30
|
|
119
|
+
*/
|
|
120
|
+
export interface ContractGrant {
|
|
121
|
+
/** Contract is the bech32 address of the smart contract */
|
|
122
|
+
contract: string;
|
|
123
|
+
/**
|
|
124
|
+
* Limit defines execution limits that are enforced and updated when the grant
|
|
125
|
+
* is applied. When the limit lapsed the grant is removed.
|
|
126
|
+
*/
|
|
127
|
+
limit?: MaxCallsLimit | MaxFundsLimit | CombinedLimit | Any | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Filter define more fine-grained control on the message payload passed
|
|
130
|
+
* to the contract in the operation. When no filter applies on execution, the
|
|
131
|
+
* operation is prohibited.
|
|
132
|
+
*/
|
|
133
|
+
filter?: AllowAllMessagesFilter | AcceptedMessageKeysFilter | AcceptedMessagesFilter | Any | undefined;
|
|
134
|
+
}
|
|
135
|
+
export interface ContractGrantProtoMsg {
|
|
136
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractGrant";
|
|
137
|
+
value: Uint8Array;
|
|
138
|
+
}
|
|
139
|
+
export type ContractGrantEncoded = Omit<ContractGrant, "limit" | "filter"> & {
|
|
140
|
+
/**
|
|
141
|
+
* Limit defines execution limits that are enforced and updated when the grant
|
|
142
|
+
* is applied. When the limit lapsed the grant is removed.
|
|
143
|
+
*/
|
|
144
|
+
limit?: MaxCallsLimitProtoMsg | MaxFundsLimitProtoMsg | CombinedLimitProtoMsg | AnyProtoMsg | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Filter define more fine-grained control on the message payload passed
|
|
147
|
+
* to the contract in the operation. When no filter applies on execution, the
|
|
148
|
+
* operation is prohibited.
|
|
149
|
+
*/
|
|
150
|
+
filter?: AllowAllMessagesFilterProtoMsg | AcceptedMessageKeysFilterProtoMsg | AcceptedMessagesFilterProtoMsg | AnyProtoMsg | undefined;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* ContractGrant a granted permission for a single contract
|
|
154
|
+
* Since: wasmd 0.30
|
|
155
|
+
*/
|
|
156
|
+
export interface ContractGrantAmino {
|
|
157
|
+
/** Contract is the bech32 address of the smart contract */
|
|
158
|
+
contract: string;
|
|
159
|
+
/**
|
|
160
|
+
* Limit defines execution limits that are enforced and updated when the grant
|
|
161
|
+
* is applied. When the limit lapsed the grant is removed.
|
|
162
|
+
*/
|
|
163
|
+
limit?: AnyAmino;
|
|
164
|
+
/**
|
|
165
|
+
* Filter define more fine-grained control on the message payload passed
|
|
166
|
+
* to the contract in the operation. When no filter applies on execution, the
|
|
167
|
+
* operation is prohibited.
|
|
168
|
+
*/
|
|
169
|
+
filter?: AnyAmino;
|
|
170
|
+
}
|
|
171
|
+
export interface ContractGrantAminoMsg {
|
|
172
|
+
type: "wasm/ContractGrant";
|
|
173
|
+
value: ContractGrantAmino;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* MaxCallsLimit limited number of calls to the contract. No funds transferable.
|
|
177
|
+
* Since: wasmd 0.30
|
|
178
|
+
*/
|
|
179
|
+
export interface MaxCallsLimit {
|
|
180
|
+
/** Remaining number that is decremented on each execution */
|
|
181
|
+
remaining: bigint;
|
|
182
|
+
}
|
|
183
|
+
export interface MaxCallsLimitProtoMsg {
|
|
184
|
+
typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit";
|
|
185
|
+
value: Uint8Array;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* MaxCallsLimit limited number of calls to the contract. No funds transferable.
|
|
189
|
+
* Since: wasmd 0.30
|
|
190
|
+
*/
|
|
191
|
+
export interface MaxCallsLimitAmino {
|
|
192
|
+
/** Remaining number that is decremented on each execution */
|
|
193
|
+
remaining: string;
|
|
194
|
+
}
|
|
195
|
+
export interface MaxCallsLimitAminoMsg {
|
|
196
|
+
type: "wasm/MaxCallsLimit";
|
|
197
|
+
value: MaxCallsLimitAmino;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* MaxFundsLimit defines the maximal amounts that can be sent to the contract.
|
|
201
|
+
* Since: wasmd 0.30
|
|
202
|
+
*/
|
|
203
|
+
export interface MaxFundsLimit {
|
|
204
|
+
/** Amounts is the maximal amount of tokens transferable to the contract. */
|
|
205
|
+
amounts: Coin[];
|
|
206
|
+
}
|
|
207
|
+
export interface MaxFundsLimitProtoMsg {
|
|
208
|
+
typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit";
|
|
209
|
+
value: Uint8Array;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* MaxFundsLimit defines the maximal amounts that can be sent to the contract.
|
|
213
|
+
* Since: wasmd 0.30
|
|
214
|
+
*/
|
|
215
|
+
export interface MaxFundsLimitAmino {
|
|
216
|
+
/** Amounts is the maximal amount of tokens transferable to the contract. */
|
|
217
|
+
amounts: CoinAmino[];
|
|
218
|
+
}
|
|
219
|
+
export interface MaxFundsLimitAminoMsg {
|
|
220
|
+
type: "wasm/MaxFundsLimit";
|
|
221
|
+
value: MaxFundsLimitAmino;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* CombinedLimit defines the maximal amounts that can be sent to a contract and
|
|
225
|
+
* the maximal number of calls executable. Both need to remain >0 to be valid.
|
|
226
|
+
* Since: wasmd 0.30
|
|
227
|
+
*/
|
|
228
|
+
export interface CombinedLimit {
|
|
229
|
+
/** Remaining number that is decremented on each execution */
|
|
230
|
+
callsRemaining: bigint;
|
|
231
|
+
/** Amounts is the maximal amount of tokens transferable to the contract. */
|
|
232
|
+
amounts: Coin[];
|
|
233
|
+
}
|
|
234
|
+
export interface CombinedLimitProtoMsg {
|
|
235
|
+
typeUrl: "/cosmwasm.wasm.v1.CombinedLimit";
|
|
236
|
+
value: Uint8Array;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* CombinedLimit defines the maximal amounts that can be sent to a contract and
|
|
240
|
+
* the maximal number of calls executable. Both need to remain >0 to be valid.
|
|
241
|
+
* Since: wasmd 0.30
|
|
242
|
+
*/
|
|
243
|
+
export interface CombinedLimitAmino {
|
|
244
|
+
/** Remaining number that is decremented on each execution */
|
|
245
|
+
calls_remaining: string;
|
|
246
|
+
/** Amounts is the maximal amount of tokens transferable to the contract. */
|
|
247
|
+
amounts: CoinAmino[];
|
|
248
|
+
}
|
|
249
|
+
export interface CombinedLimitAminoMsg {
|
|
250
|
+
type: "wasm/CombinedLimit";
|
|
251
|
+
value: CombinedLimitAmino;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* AllowAllMessagesFilter is a wildcard to allow any type of contract payload
|
|
255
|
+
* message.
|
|
256
|
+
* Since: wasmd 0.30
|
|
257
|
+
*/
|
|
258
|
+
export interface AllowAllMessagesFilter {}
|
|
259
|
+
export interface AllowAllMessagesFilterProtoMsg {
|
|
260
|
+
typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter";
|
|
261
|
+
value: Uint8Array;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* AllowAllMessagesFilter is a wildcard to allow any type of contract payload
|
|
265
|
+
* message.
|
|
266
|
+
* Since: wasmd 0.30
|
|
267
|
+
*/
|
|
268
|
+
export interface AllowAllMessagesFilterAmino {}
|
|
269
|
+
export interface AllowAllMessagesFilterAminoMsg {
|
|
270
|
+
type: "wasm/AllowAllMessagesFilter";
|
|
271
|
+
value: AllowAllMessagesFilterAmino;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* AcceptedMessageKeysFilter accept only the specific contract message keys in
|
|
275
|
+
* the json object to be executed.
|
|
276
|
+
* Since: wasmd 0.30
|
|
277
|
+
*/
|
|
278
|
+
export interface AcceptedMessageKeysFilter {
|
|
279
|
+
/** Messages is the list of unique keys */
|
|
280
|
+
keys: string[];
|
|
281
|
+
}
|
|
282
|
+
export interface AcceptedMessageKeysFilterProtoMsg {
|
|
283
|
+
typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter";
|
|
284
|
+
value: Uint8Array;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* AcceptedMessageKeysFilter accept only the specific contract message keys in
|
|
288
|
+
* the json object to be executed.
|
|
289
|
+
* Since: wasmd 0.30
|
|
290
|
+
*/
|
|
291
|
+
export interface AcceptedMessageKeysFilterAmino {
|
|
292
|
+
/** Messages is the list of unique keys */
|
|
293
|
+
keys: string[];
|
|
294
|
+
}
|
|
295
|
+
export interface AcceptedMessageKeysFilterAminoMsg {
|
|
296
|
+
type: "wasm/AcceptedMessageKeysFilter";
|
|
297
|
+
value: AcceptedMessageKeysFilterAmino;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* AcceptedMessagesFilter accept only the specific raw contract messages to be
|
|
301
|
+
* executed.
|
|
302
|
+
* Since: wasmd 0.30
|
|
303
|
+
*/
|
|
304
|
+
export interface AcceptedMessagesFilter {
|
|
305
|
+
/** Messages is the list of raw contract messages */
|
|
306
|
+
messages: Uint8Array[];
|
|
307
|
+
}
|
|
308
|
+
export interface AcceptedMessagesFilterProtoMsg {
|
|
309
|
+
typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter";
|
|
310
|
+
value: Uint8Array;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* AcceptedMessagesFilter accept only the specific raw contract messages to be
|
|
314
|
+
* executed.
|
|
315
|
+
* Since: wasmd 0.30
|
|
316
|
+
*/
|
|
317
|
+
export interface AcceptedMessagesFilterAmino {
|
|
318
|
+
/** Messages is the list of raw contract messages */
|
|
319
|
+
messages: any[];
|
|
320
|
+
}
|
|
321
|
+
export interface AcceptedMessagesFilterAminoMsg {
|
|
322
|
+
type: "wasm/AcceptedMessagesFilter";
|
|
323
|
+
value: AcceptedMessagesFilterAmino;
|
|
324
|
+
}
|
|
325
|
+
function createBaseStoreCodeAuthorization(): StoreCodeAuthorization {
|
|
326
|
+
return {
|
|
327
|
+
grants: []
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
export const StoreCodeAuthorization = {
|
|
331
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization",
|
|
332
|
+
aminoType: "wasm/StoreCodeAuthorization",
|
|
333
|
+
is(o: any): o is StoreCodeAuthorization {
|
|
334
|
+
return o && (o.$typeUrl === StoreCodeAuthorization.typeUrl || Array.isArray(o.grants) && (!o.grants.length || CodeGrant.is(o.grants[0])));
|
|
335
|
+
},
|
|
336
|
+
isAmino(o: any): o is StoreCodeAuthorizationAmino {
|
|
337
|
+
return o && (o.$typeUrl === StoreCodeAuthorization.typeUrl || Array.isArray(o.grants) && (!o.grants.length || CodeGrant.isAmino(o.grants[0])));
|
|
338
|
+
},
|
|
339
|
+
encode(message: StoreCodeAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
340
|
+
for (const v of message.grants) {
|
|
341
|
+
CodeGrant.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
342
|
+
}
|
|
343
|
+
return writer;
|
|
344
|
+
},
|
|
345
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StoreCodeAuthorization {
|
|
346
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
347
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
348
|
+
const message = createBaseStoreCodeAuthorization();
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
const tag = reader.uint32();
|
|
351
|
+
switch (tag >>> 3) {
|
|
352
|
+
case 1:
|
|
353
|
+
message.grants.push(CodeGrant.decode(reader, reader.uint32()));
|
|
354
|
+
break;
|
|
355
|
+
default:
|
|
356
|
+
reader.skipType(tag & 7);
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return message;
|
|
361
|
+
},
|
|
362
|
+
fromPartial(object: DeepPartial<StoreCodeAuthorization>): StoreCodeAuthorization {
|
|
363
|
+
const message = createBaseStoreCodeAuthorization();
|
|
364
|
+
message.grants = object.grants?.map(e => CodeGrant.fromPartial(e)) || [];
|
|
365
|
+
return message;
|
|
366
|
+
},
|
|
367
|
+
fromAmino(object: StoreCodeAuthorizationAmino): StoreCodeAuthorization {
|
|
368
|
+
const message = createBaseStoreCodeAuthorization();
|
|
369
|
+
message.grants = object.grants?.map(e => CodeGrant.fromAmino(e)) || [];
|
|
370
|
+
return message;
|
|
371
|
+
},
|
|
372
|
+
toAmino(message: StoreCodeAuthorization): StoreCodeAuthorizationAmino {
|
|
373
|
+
const obj: any = {};
|
|
374
|
+
if (message.grants) {
|
|
375
|
+
obj.grants = message.grants.map(e => e ? CodeGrant.toAmino(e) : undefined);
|
|
376
|
+
} else {
|
|
377
|
+
obj.grants = message.grants;
|
|
378
|
+
}
|
|
379
|
+
return obj;
|
|
380
|
+
},
|
|
381
|
+
fromAminoMsg(object: StoreCodeAuthorizationAminoMsg): StoreCodeAuthorization {
|
|
382
|
+
return StoreCodeAuthorization.fromAmino(object.value);
|
|
383
|
+
},
|
|
384
|
+
toAminoMsg(message: StoreCodeAuthorization): StoreCodeAuthorizationAminoMsg {
|
|
385
|
+
return {
|
|
386
|
+
type: "wasm/StoreCodeAuthorization",
|
|
387
|
+
value: StoreCodeAuthorization.toAmino(message)
|
|
388
|
+
};
|
|
389
|
+
},
|
|
390
|
+
fromProtoMsg(message: StoreCodeAuthorizationProtoMsg): StoreCodeAuthorization {
|
|
391
|
+
return StoreCodeAuthorization.decode(message.value);
|
|
392
|
+
},
|
|
393
|
+
toProto(message: StoreCodeAuthorization): Uint8Array {
|
|
394
|
+
return StoreCodeAuthorization.encode(message).finish();
|
|
395
|
+
},
|
|
396
|
+
toProtoMsg(message: StoreCodeAuthorization): StoreCodeAuthorizationProtoMsg {
|
|
397
|
+
return {
|
|
398
|
+
typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization",
|
|
399
|
+
value: StoreCodeAuthorization.encode(message).finish()
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
GlobalDecoderRegistry.register(StoreCodeAuthorization.typeUrl, StoreCodeAuthorization);
|
|
404
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(StoreCodeAuthorization.aminoType, StoreCodeAuthorization.typeUrl);
|
|
405
|
+
function createBaseContractExecutionAuthorization(): ContractExecutionAuthorization {
|
|
406
|
+
return {
|
|
407
|
+
grants: []
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
export const ContractExecutionAuthorization = {
|
|
411
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization",
|
|
412
|
+
aminoType: "wasm/ContractExecutionAuthorization",
|
|
413
|
+
is(o: any): o is ContractExecutionAuthorization {
|
|
414
|
+
return o && (o.$typeUrl === ContractExecutionAuthorization.typeUrl || Array.isArray(o.grants) && (!o.grants.length || ContractGrant.is(o.grants[0])));
|
|
415
|
+
},
|
|
416
|
+
isAmino(o: any): o is ContractExecutionAuthorizationAmino {
|
|
417
|
+
return o && (o.$typeUrl === ContractExecutionAuthorization.typeUrl || Array.isArray(o.grants) && (!o.grants.length || ContractGrant.isAmino(o.grants[0])));
|
|
418
|
+
},
|
|
419
|
+
encode(message: ContractExecutionAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
420
|
+
for (const v of message.grants) {
|
|
421
|
+
ContractGrant.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
422
|
+
}
|
|
423
|
+
return writer;
|
|
424
|
+
},
|
|
425
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ContractExecutionAuthorization {
|
|
426
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
427
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
428
|
+
const message = createBaseContractExecutionAuthorization();
|
|
429
|
+
while (reader.pos < end) {
|
|
430
|
+
const tag = reader.uint32();
|
|
431
|
+
switch (tag >>> 3) {
|
|
432
|
+
case 1:
|
|
433
|
+
message.grants.push(ContractGrant.decode(reader, reader.uint32()));
|
|
434
|
+
break;
|
|
435
|
+
default:
|
|
436
|
+
reader.skipType(tag & 7);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return message;
|
|
441
|
+
},
|
|
442
|
+
fromPartial(object: DeepPartial<ContractExecutionAuthorization>): ContractExecutionAuthorization {
|
|
443
|
+
const message = createBaseContractExecutionAuthorization();
|
|
444
|
+
message.grants = object.grants?.map(e => ContractGrant.fromPartial(e)) || [];
|
|
445
|
+
return message;
|
|
446
|
+
},
|
|
447
|
+
fromAmino(object: ContractExecutionAuthorizationAmino): ContractExecutionAuthorization {
|
|
448
|
+
const message = createBaseContractExecutionAuthorization();
|
|
449
|
+
message.grants = object.grants?.map(e => ContractGrant.fromAmino(e)) || [];
|
|
450
|
+
return message;
|
|
451
|
+
},
|
|
452
|
+
toAmino(message: ContractExecutionAuthorization): ContractExecutionAuthorizationAmino {
|
|
453
|
+
const obj: any = {};
|
|
454
|
+
if (message.grants) {
|
|
455
|
+
obj.grants = message.grants.map(e => e ? ContractGrant.toAmino(e) : undefined);
|
|
456
|
+
} else {
|
|
457
|
+
obj.grants = message.grants;
|
|
458
|
+
}
|
|
459
|
+
return obj;
|
|
460
|
+
},
|
|
461
|
+
fromAminoMsg(object: ContractExecutionAuthorizationAminoMsg): ContractExecutionAuthorization {
|
|
462
|
+
return ContractExecutionAuthorization.fromAmino(object.value);
|
|
463
|
+
},
|
|
464
|
+
toAminoMsg(message: ContractExecutionAuthorization): ContractExecutionAuthorizationAminoMsg {
|
|
465
|
+
return {
|
|
466
|
+
type: "wasm/ContractExecutionAuthorization",
|
|
467
|
+
value: ContractExecutionAuthorization.toAmino(message)
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
fromProtoMsg(message: ContractExecutionAuthorizationProtoMsg): ContractExecutionAuthorization {
|
|
471
|
+
return ContractExecutionAuthorization.decode(message.value);
|
|
472
|
+
},
|
|
473
|
+
toProto(message: ContractExecutionAuthorization): Uint8Array {
|
|
474
|
+
return ContractExecutionAuthorization.encode(message).finish();
|
|
475
|
+
},
|
|
476
|
+
toProtoMsg(message: ContractExecutionAuthorization): ContractExecutionAuthorizationProtoMsg {
|
|
477
|
+
return {
|
|
478
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization",
|
|
479
|
+
value: ContractExecutionAuthorization.encode(message).finish()
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
GlobalDecoderRegistry.register(ContractExecutionAuthorization.typeUrl, ContractExecutionAuthorization);
|
|
484
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ContractExecutionAuthorization.aminoType, ContractExecutionAuthorization.typeUrl);
|
|
485
|
+
function createBaseContractMigrationAuthorization(): ContractMigrationAuthorization {
|
|
486
|
+
return {
|
|
487
|
+
grants: []
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
export const ContractMigrationAuthorization = {
|
|
491
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization",
|
|
492
|
+
aminoType: "wasm/ContractMigrationAuthorization",
|
|
493
|
+
is(o: any): o is ContractMigrationAuthorization {
|
|
494
|
+
return o && (o.$typeUrl === ContractMigrationAuthorization.typeUrl || Array.isArray(o.grants) && (!o.grants.length || ContractGrant.is(o.grants[0])));
|
|
495
|
+
},
|
|
496
|
+
isAmino(o: any): o is ContractMigrationAuthorizationAmino {
|
|
497
|
+
return o && (o.$typeUrl === ContractMigrationAuthorization.typeUrl || Array.isArray(o.grants) && (!o.grants.length || ContractGrant.isAmino(o.grants[0])));
|
|
498
|
+
},
|
|
499
|
+
encode(message: ContractMigrationAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
500
|
+
for (const v of message.grants) {
|
|
501
|
+
ContractGrant.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
502
|
+
}
|
|
503
|
+
return writer;
|
|
504
|
+
},
|
|
505
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ContractMigrationAuthorization {
|
|
506
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
507
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
508
|
+
const message = createBaseContractMigrationAuthorization();
|
|
509
|
+
while (reader.pos < end) {
|
|
510
|
+
const tag = reader.uint32();
|
|
511
|
+
switch (tag >>> 3) {
|
|
512
|
+
case 1:
|
|
513
|
+
message.grants.push(ContractGrant.decode(reader, reader.uint32()));
|
|
514
|
+
break;
|
|
515
|
+
default:
|
|
516
|
+
reader.skipType(tag & 7);
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
return message;
|
|
521
|
+
},
|
|
522
|
+
fromPartial(object: DeepPartial<ContractMigrationAuthorization>): ContractMigrationAuthorization {
|
|
523
|
+
const message = createBaseContractMigrationAuthorization();
|
|
524
|
+
message.grants = object.grants?.map(e => ContractGrant.fromPartial(e)) || [];
|
|
525
|
+
return message;
|
|
526
|
+
},
|
|
527
|
+
fromAmino(object: ContractMigrationAuthorizationAmino): ContractMigrationAuthorization {
|
|
528
|
+
const message = createBaseContractMigrationAuthorization();
|
|
529
|
+
message.grants = object.grants?.map(e => ContractGrant.fromAmino(e)) || [];
|
|
530
|
+
return message;
|
|
531
|
+
},
|
|
532
|
+
toAmino(message: ContractMigrationAuthorization): ContractMigrationAuthorizationAmino {
|
|
533
|
+
const obj: any = {};
|
|
534
|
+
if (message.grants) {
|
|
535
|
+
obj.grants = message.grants.map(e => e ? ContractGrant.toAmino(e) : undefined);
|
|
536
|
+
} else {
|
|
537
|
+
obj.grants = message.grants;
|
|
538
|
+
}
|
|
539
|
+
return obj;
|
|
540
|
+
},
|
|
541
|
+
fromAminoMsg(object: ContractMigrationAuthorizationAminoMsg): ContractMigrationAuthorization {
|
|
542
|
+
return ContractMigrationAuthorization.fromAmino(object.value);
|
|
543
|
+
},
|
|
544
|
+
toAminoMsg(message: ContractMigrationAuthorization): ContractMigrationAuthorizationAminoMsg {
|
|
545
|
+
return {
|
|
546
|
+
type: "wasm/ContractMigrationAuthorization",
|
|
547
|
+
value: ContractMigrationAuthorization.toAmino(message)
|
|
548
|
+
};
|
|
549
|
+
},
|
|
550
|
+
fromProtoMsg(message: ContractMigrationAuthorizationProtoMsg): ContractMigrationAuthorization {
|
|
551
|
+
return ContractMigrationAuthorization.decode(message.value);
|
|
552
|
+
},
|
|
553
|
+
toProto(message: ContractMigrationAuthorization): Uint8Array {
|
|
554
|
+
return ContractMigrationAuthorization.encode(message).finish();
|
|
555
|
+
},
|
|
556
|
+
toProtoMsg(message: ContractMigrationAuthorization): ContractMigrationAuthorizationProtoMsg {
|
|
557
|
+
return {
|
|
558
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization",
|
|
559
|
+
value: ContractMigrationAuthorization.encode(message).finish()
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
GlobalDecoderRegistry.register(ContractMigrationAuthorization.typeUrl, ContractMigrationAuthorization);
|
|
564
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ContractMigrationAuthorization.aminoType, ContractMigrationAuthorization.typeUrl);
|
|
565
|
+
function createBaseCodeGrant(): CodeGrant {
|
|
566
|
+
return {
|
|
567
|
+
codeHash: new Uint8Array(),
|
|
568
|
+
instantiatePermission: undefined
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
export const CodeGrant = {
|
|
572
|
+
typeUrl: "/cosmwasm.wasm.v1.CodeGrant",
|
|
573
|
+
aminoType: "wasm/CodeGrant",
|
|
574
|
+
is(o: any): o is CodeGrant {
|
|
575
|
+
return o && (o.$typeUrl === CodeGrant.typeUrl || o.codeHash instanceof Uint8Array || typeof o.codeHash === "string");
|
|
576
|
+
},
|
|
577
|
+
isAmino(o: any): o is CodeGrantAmino {
|
|
578
|
+
return o && (o.$typeUrl === CodeGrant.typeUrl || o.code_hash instanceof Uint8Array || typeof o.code_hash === "string");
|
|
579
|
+
},
|
|
580
|
+
encode(message: CodeGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
581
|
+
if (message.codeHash.length !== 0) {
|
|
582
|
+
writer.uint32(10).bytes(message.codeHash);
|
|
583
|
+
}
|
|
584
|
+
if (message.instantiatePermission !== undefined) {
|
|
585
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(18).fork()).ldelim();
|
|
586
|
+
}
|
|
587
|
+
return writer;
|
|
588
|
+
},
|
|
589
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CodeGrant {
|
|
590
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
591
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
592
|
+
const message = createBaseCodeGrant();
|
|
593
|
+
while (reader.pos < end) {
|
|
594
|
+
const tag = reader.uint32();
|
|
595
|
+
switch (tag >>> 3) {
|
|
596
|
+
case 1:
|
|
597
|
+
message.codeHash = reader.bytes();
|
|
598
|
+
break;
|
|
599
|
+
case 2:
|
|
600
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
601
|
+
break;
|
|
602
|
+
default:
|
|
603
|
+
reader.skipType(tag & 7);
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return message;
|
|
608
|
+
},
|
|
609
|
+
fromPartial(object: DeepPartial<CodeGrant>): CodeGrant {
|
|
610
|
+
const message = createBaseCodeGrant();
|
|
611
|
+
message.codeHash = object.codeHash ?? new Uint8Array();
|
|
612
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
|
613
|
+
return message;
|
|
614
|
+
},
|
|
615
|
+
fromAmino(object: CodeGrantAmino): CodeGrant {
|
|
616
|
+
const message = createBaseCodeGrant();
|
|
617
|
+
if (object.code_hash !== undefined && object.code_hash !== null) {
|
|
618
|
+
message.codeHash = bytesFromBase64(object.code_hash);
|
|
619
|
+
}
|
|
620
|
+
if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
|
|
621
|
+
message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
|
|
622
|
+
}
|
|
623
|
+
return message;
|
|
624
|
+
},
|
|
625
|
+
toAmino(message: CodeGrant): CodeGrantAmino {
|
|
626
|
+
const obj: any = {};
|
|
627
|
+
obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
|
|
628
|
+
obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
|
|
629
|
+
return obj;
|
|
630
|
+
},
|
|
631
|
+
fromAminoMsg(object: CodeGrantAminoMsg): CodeGrant {
|
|
632
|
+
return CodeGrant.fromAmino(object.value);
|
|
633
|
+
},
|
|
634
|
+
toAminoMsg(message: CodeGrant): CodeGrantAminoMsg {
|
|
635
|
+
return {
|
|
636
|
+
type: "wasm/CodeGrant",
|
|
637
|
+
value: CodeGrant.toAmino(message)
|
|
638
|
+
};
|
|
639
|
+
},
|
|
640
|
+
fromProtoMsg(message: CodeGrantProtoMsg): CodeGrant {
|
|
641
|
+
return CodeGrant.decode(message.value);
|
|
642
|
+
},
|
|
643
|
+
toProto(message: CodeGrant): Uint8Array {
|
|
644
|
+
return CodeGrant.encode(message).finish();
|
|
645
|
+
},
|
|
646
|
+
toProtoMsg(message: CodeGrant): CodeGrantProtoMsg {
|
|
647
|
+
return {
|
|
648
|
+
typeUrl: "/cosmwasm.wasm.v1.CodeGrant",
|
|
649
|
+
value: CodeGrant.encode(message).finish()
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
GlobalDecoderRegistry.register(CodeGrant.typeUrl, CodeGrant);
|
|
654
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(CodeGrant.aminoType, CodeGrant.typeUrl);
|
|
655
|
+
function createBaseContractGrant(): ContractGrant {
|
|
656
|
+
return {
|
|
657
|
+
contract: "",
|
|
658
|
+
limit: undefined,
|
|
659
|
+
filter: undefined
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
export const ContractGrant = {
|
|
663
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractGrant",
|
|
664
|
+
aminoType: "wasm/ContractGrant",
|
|
665
|
+
is(o: any): o is ContractGrant {
|
|
666
|
+
return o && (o.$typeUrl === ContractGrant.typeUrl || typeof o.contract === "string");
|
|
667
|
+
},
|
|
668
|
+
isAmino(o: any): o is ContractGrantAmino {
|
|
669
|
+
return o && (o.$typeUrl === ContractGrant.typeUrl || typeof o.contract === "string");
|
|
670
|
+
},
|
|
671
|
+
encode(message: ContractGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
672
|
+
if (message.contract !== "") {
|
|
673
|
+
writer.uint32(10).string(message.contract);
|
|
674
|
+
}
|
|
675
|
+
if (message.limit !== undefined) {
|
|
676
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.limit), writer.uint32(18).fork()).ldelim();
|
|
677
|
+
}
|
|
678
|
+
if (message.filter !== undefined) {
|
|
679
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.filter), writer.uint32(26).fork()).ldelim();
|
|
680
|
+
}
|
|
681
|
+
return writer;
|
|
682
|
+
},
|
|
683
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ContractGrant {
|
|
684
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
685
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
686
|
+
const message = createBaseContractGrant();
|
|
687
|
+
while (reader.pos < end) {
|
|
688
|
+
const tag = reader.uint32();
|
|
689
|
+
switch (tag >>> 3) {
|
|
690
|
+
case 1:
|
|
691
|
+
message.contract = reader.string();
|
|
692
|
+
break;
|
|
693
|
+
case 2:
|
|
694
|
+
message.limit = GlobalDecoderRegistry.unwrapAny(reader);
|
|
695
|
+
break;
|
|
696
|
+
case 3:
|
|
697
|
+
message.filter = GlobalDecoderRegistry.unwrapAny(reader);
|
|
698
|
+
break;
|
|
699
|
+
default:
|
|
700
|
+
reader.skipType(tag & 7);
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return message;
|
|
705
|
+
},
|
|
706
|
+
fromPartial(object: DeepPartial<ContractGrant>): ContractGrant {
|
|
707
|
+
const message = createBaseContractGrant();
|
|
708
|
+
message.contract = object.contract ?? "";
|
|
709
|
+
message.limit = object.limit !== undefined && object.limit !== null ? GlobalDecoderRegistry.fromPartial(object.limit) : undefined;
|
|
710
|
+
message.filter = object.filter !== undefined && object.filter !== null ? GlobalDecoderRegistry.fromPartial(object.filter) : undefined;
|
|
711
|
+
return message;
|
|
712
|
+
},
|
|
713
|
+
fromAmino(object: ContractGrantAmino): ContractGrant {
|
|
714
|
+
const message = createBaseContractGrant();
|
|
715
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
716
|
+
message.contract = object.contract;
|
|
717
|
+
}
|
|
718
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
719
|
+
message.limit = GlobalDecoderRegistry.fromAminoMsg(object.limit);
|
|
720
|
+
}
|
|
721
|
+
if (object.filter !== undefined && object.filter !== null) {
|
|
722
|
+
message.filter = GlobalDecoderRegistry.fromAminoMsg(object.filter);
|
|
723
|
+
}
|
|
724
|
+
return message;
|
|
725
|
+
},
|
|
726
|
+
toAmino(message: ContractGrant): ContractGrantAmino {
|
|
727
|
+
const obj: any = {};
|
|
728
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
729
|
+
obj.limit = message.limit ? GlobalDecoderRegistry.toAminoMsg(message.limit) : undefined;
|
|
730
|
+
obj.filter = message.filter ? GlobalDecoderRegistry.toAminoMsg(message.filter) : undefined;
|
|
731
|
+
return obj;
|
|
732
|
+
},
|
|
733
|
+
fromAminoMsg(object: ContractGrantAminoMsg): ContractGrant {
|
|
734
|
+
return ContractGrant.fromAmino(object.value);
|
|
735
|
+
},
|
|
736
|
+
toAminoMsg(message: ContractGrant): ContractGrantAminoMsg {
|
|
737
|
+
return {
|
|
738
|
+
type: "wasm/ContractGrant",
|
|
739
|
+
value: ContractGrant.toAmino(message)
|
|
740
|
+
};
|
|
741
|
+
},
|
|
742
|
+
fromProtoMsg(message: ContractGrantProtoMsg): ContractGrant {
|
|
743
|
+
return ContractGrant.decode(message.value);
|
|
744
|
+
},
|
|
745
|
+
toProto(message: ContractGrant): Uint8Array {
|
|
746
|
+
return ContractGrant.encode(message).finish();
|
|
747
|
+
},
|
|
748
|
+
toProtoMsg(message: ContractGrant): ContractGrantProtoMsg {
|
|
749
|
+
return {
|
|
750
|
+
typeUrl: "/cosmwasm.wasm.v1.ContractGrant",
|
|
751
|
+
value: ContractGrant.encode(message).finish()
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
GlobalDecoderRegistry.register(ContractGrant.typeUrl, ContractGrant);
|
|
756
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ContractGrant.aminoType, ContractGrant.typeUrl);
|
|
757
|
+
function createBaseMaxCallsLimit(): MaxCallsLimit {
|
|
758
|
+
return {
|
|
759
|
+
remaining: BigInt(0)
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
export const MaxCallsLimit = {
|
|
763
|
+
typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit",
|
|
764
|
+
aminoType: "wasm/MaxCallsLimit",
|
|
765
|
+
is(o: any): o is MaxCallsLimit {
|
|
766
|
+
return o && (o.$typeUrl === MaxCallsLimit.typeUrl || typeof o.remaining === "bigint");
|
|
767
|
+
},
|
|
768
|
+
isAmino(o: any): o is MaxCallsLimitAmino {
|
|
769
|
+
return o && (o.$typeUrl === MaxCallsLimit.typeUrl || typeof o.remaining === "bigint");
|
|
770
|
+
},
|
|
771
|
+
encode(message: MaxCallsLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
772
|
+
if (message.remaining !== BigInt(0)) {
|
|
773
|
+
writer.uint32(8).uint64(message.remaining);
|
|
774
|
+
}
|
|
775
|
+
return writer;
|
|
776
|
+
},
|
|
777
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MaxCallsLimit {
|
|
778
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
779
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
780
|
+
const message = createBaseMaxCallsLimit();
|
|
781
|
+
while (reader.pos < end) {
|
|
782
|
+
const tag = reader.uint32();
|
|
783
|
+
switch (tag >>> 3) {
|
|
784
|
+
case 1:
|
|
785
|
+
message.remaining = reader.uint64();
|
|
786
|
+
break;
|
|
787
|
+
default:
|
|
788
|
+
reader.skipType(tag & 7);
|
|
789
|
+
break;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return message;
|
|
793
|
+
},
|
|
794
|
+
fromPartial(object: DeepPartial<MaxCallsLimit>): MaxCallsLimit {
|
|
795
|
+
const message = createBaseMaxCallsLimit();
|
|
796
|
+
message.remaining = object.remaining !== undefined && object.remaining !== null ? BigInt(object.remaining.toString()) : BigInt(0);
|
|
797
|
+
return message;
|
|
798
|
+
},
|
|
799
|
+
fromAmino(object: MaxCallsLimitAmino): MaxCallsLimit {
|
|
800
|
+
const message = createBaseMaxCallsLimit();
|
|
801
|
+
if (object.remaining !== undefined && object.remaining !== null) {
|
|
802
|
+
message.remaining = BigInt(object.remaining);
|
|
803
|
+
}
|
|
804
|
+
return message;
|
|
805
|
+
},
|
|
806
|
+
toAmino(message: MaxCallsLimit): MaxCallsLimitAmino {
|
|
807
|
+
const obj: any = {};
|
|
808
|
+
obj.remaining = message.remaining !== BigInt(0) ? message.remaining?.toString() : undefined;
|
|
809
|
+
return obj;
|
|
810
|
+
},
|
|
811
|
+
fromAminoMsg(object: MaxCallsLimitAminoMsg): MaxCallsLimit {
|
|
812
|
+
return MaxCallsLimit.fromAmino(object.value);
|
|
813
|
+
},
|
|
814
|
+
toAminoMsg(message: MaxCallsLimit): MaxCallsLimitAminoMsg {
|
|
815
|
+
return {
|
|
816
|
+
type: "wasm/MaxCallsLimit",
|
|
817
|
+
value: MaxCallsLimit.toAmino(message)
|
|
818
|
+
};
|
|
819
|
+
},
|
|
820
|
+
fromProtoMsg(message: MaxCallsLimitProtoMsg): MaxCallsLimit {
|
|
821
|
+
return MaxCallsLimit.decode(message.value);
|
|
822
|
+
},
|
|
823
|
+
toProto(message: MaxCallsLimit): Uint8Array {
|
|
824
|
+
return MaxCallsLimit.encode(message).finish();
|
|
825
|
+
},
|
|
826
|
+
toProtoMsg(message: MaxCallsLimit): MaxCallsLimitProtoMsg {
|
|
827
|
+
return {
|
|
828
|
+
typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit",
|
|
829
|
+
value: MaxCallsLimit.encode(message).finish()
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
GlobalDecoderRegistry.register(MaxCallsLimit.typeUrl, MaxCallsLimit);
|
|
834
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MaxCallsLimit.aminoType, MaxCallsLimit.typeUrl);
|
|
835
|
+
function createBaseMaxFundsLimit(): MaxFundsLimit {
|
|
836
|
+
return {
|
|
837
|
+
amounts: []
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
export const MaxFundsLimit = {
|
|
841
|
+
typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit",
|
|
842
|
+
aminoType: "wasm/MaxFundsLimit",
|
|
843
|
+
is(o: any): o is MaxFundsLimit {
|
|
844
|
+
return o && (o.$typeUrl === MaxFundsLimit.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.is(o.amounts[0])));
|
|
845
|
+
},
|
|
846
|
+
isAmino(o: any): o is MaxFundsLimitAmino {
|
|
847
|
+
return o && (o.$typeUrl === MaxFundsLimit.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.isAmino(o.amounts[0])));
|
|
848
|
+
},
|
|
849
|
+
encode(message: MaxFundsLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
850
|
+
for (const v of message.amounts) {
|
|
851
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
852
|
+
}
|
|
853
|
+
return writer;
|
|
854
|
+
},
|
|
855
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MaxFundsLimit {
|
|
856
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
857
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
858
|
+
const message = createBaseMaxFundsLimit();
|
|
859
|
+
while (reader.pos < end) {
|
|
860
|
+
const tag = reader.uint32();
|
|
861
|
+
switch (tag >>> 3) {
|
|
862
|
+
case 1:
|
|
863
|
+
message.amounts.push(Coin.decode(reader, reader.uint32()));
|
|
864
|
+
break;
|
|
865
|
+
default:
|
|
866
|
+
reader.skipType(tag & 7);
|
|
867
|
+
break;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
return message;
|
|
871
|
+
},
|
|
872
|
+
fromPartial(object: DeepPartial<MaxFundsLimit>): MaxFundsLimit {
|
|
873
|
+
const message = createBaseMaxFundsLimit();
|
|
874
|
+
message.amounts = object.amounts?.map(e => Coin.fromPartial(e)) || [];
|
|
875
|
+
return message;
|
|
876
|
+
},
|
|
877
|
+
fromAmino(object: MaxFundsLimitAmino): MaxFundsLimit {
|
|
878
|
+
const message = createBaseMaxFundsLimit();
|
|
879
|
+
message.amounts = object.amounts?.map(e => Coin.fromAmino(e)) || [];
|
|
880
|
+
return message;
|
|
881
|
+
},
|
|
882
|
+
toAmino(message: MaxFundsLimit): MaxFundsLimitAmino {
|
|
883
|
+
const obj: any = {};
|
|
884
|
+
if (message.amounts) {
|
|
885
|
+
obj.amounts = message.amounts.map(e => e ? Coin.toAmino(e) : undefined);
|
|
886
|
+
} else {
|
|
887
|
+
obj.amounts = message.amounts;
|
|
888
|
+
}
|
|
889
|
+
return obj;
|
|
890
|
+
},
|
|
891
|
+
fromAminoMsg(object: MaxFundsLimitAminoMsg): MaxFundsLimit {
|
|
892
|
+
return MaxFundsLimit.fromAmino(object.value);
|
|
893
|
+
},
|
|
894
|
+
toAminoMsg(message: MaxFundsLimit): MaxFundsLimitAminoMsg {
|
|
895
|
+
return {
|
|
896
|
+
type: "wasm/MaxFundsLimit",
|
|
897
|
+
value: MaxFundsLimit.toAmino(message)
|
|
898
|
+
};
|
|
899
|
+
},
|
|
900
|
+
fromProtoMsg(message: MaxFundsLimitProtoMsg): MaxFundsLimit {
|
|
901
|
+
return MaxFundsLimit.decode(message.value);
|
|
902
|
+
},
|
|
903
|
+
toProto(message: MaxFundsLimit): Uint8Array {
|
|
904
|
+
return MaxFundsLimit.encode(message).finish();
|
|
905
|
+
},
|
|
906
|
+
toProtoMsg(message: MaxFundsLimit): MaxFundsLimitProtoMsg {
|
|
907
|
+
return {
|
|
908
|
+
typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit",
|
|
909
|
+
value: MaxFundsLimit.encode(message).finish()
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
GlobalDecoderRegistry.register(MaxFundsLimit.typeUrl, MaxFundsLimit);
|
|
914
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MaxFundsLimit.aminoType, MaxFundsLimit.typeUrl);
|
|
915
|
+
function createBaseCombinedLimit(): CombinedLimit {
|
|
916
|
+
return {
|
|
917
|
+
callsRemaining: BigInt(0),
|
|
918
|
+
amounts: []
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
export const CombinedLimit = {
|
|
922
|
+
typeUrl: "/cosmwasm.wasm.v1.CombinedLimit",
|
|
923
|
+
aminoType: "wasm/CombinedLimit",
|
|
924
|
+
is(o: any): o is CombinedLimit {
|
|
925
|
+
return o && (o.$typeUrl === CombinedLimit.typeUrl || typeof o.callsRemaining === "bigint" && Array.isArray(o.amounts) && (!o.amounts.length || Coin.is(o.amounts[0])));
|
|
926
|
+
},
|
|
927
|
+
isAmino(o: any): o is CombinedLimitAmino {
|
|
928
|
+
return o && (o.$typeUrl === CombinedLimit.typeUrl || typeof o.calls_remaining === "bigint" && Array.isArray(o.amounts) && (!o.amounts.length || Coin.isAmino(o.amounts[0])));
|
|
929
|
+
},
|
|
930
|
+
encode(message: CombinedLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
931
|
+
if (message.callsRemaining !== BigInt(0)) {
|
|
932
|
+
writer.uint32(8).uint64(message.callsRemaining);
|
|
933
|
+
}
|
|
934
|
+
for (const v of message.amounts) {
|
|
935
|
+
Coin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
936
|
+
}
|
|
937
|
+
return writer;
|
|
938
|
+
},
|
|
939
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CombinedLimit {
|
|
940
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
941
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
942
|
+
const message = createBaseCombinedLimit();
|
|
943
|
+
while (reader.pos < end) {
|
|
944
|
+
const tag = reader.uint32();
|
|
945
|
+
switch (tag >>> 3) {
|
|
946
|
+
case 1:
|
|
947
|
+
message.callsRemaining = reader.uint64();
|
|
948
|
+
break;
|
|
949
|
+
case 2:
|
|
950
|
+
message.amounts.push(Coin.decode(reader, reader.uint32()));
|
|
951
|
+
break;
|
|
952
|
+
default:
|
|
953
|
+
reader.skipType(tag & 7);
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return message;
|
|
958
|
+
},
|
|
959
|
+
fromPartial(object: DeepPartial<CombinedLimit>): CombinedLimit {
|
|
960
|
+
const message = createBaseCombinedLimit();
|
|
961
|
+
message.callsRemaining = object.callsRemaining !== undefined && object.callsRemaining !== null ? BigInt(object.callsRemaining.toString()) : BigInt(0);
|
|
962
|
+
message.amounts = object.amounts?.map(e => Coin.fromPartial(e)) || [];
|
|
963
|
+
return message;
|
|
964
|
+
},
|
|
965
|
+
fromAmino(object: CombinedLimitAmino): CombinedLimit {
|
|
966
|
+
const message = createBaseCombinedLimit();
|
|
967
|
+
if (object.calls_remaining !== undefined && object.calls_remaining !== null) {
|
|
968
|
+
message.callsRemaining = BigInt(object.calls_remaining);
|
|
969
|
+
}
|
|
970
|
+
message.amounts = object.amounts?.map(e => Coin.fromAmino(e)) || [];
|
|
971
|
+
return message;
|
|
972
|
+
},
|
|
973
|
+
toAmino(message: CombinedLimit): CombinedLimitAmino {
|
|
974
|
+
const obj: any = {};
|
|
975
|
+
obj.calls_remaining = message.callsRemaining !== BigInt(0) ? message.callsRemaining?.toString() : undefined;
|
|
976
|
+
if (message.amounts) {
|
|
977
|
+
obj.amounts = message.amounts.map(e => e ? Coin.toAmino(e) : undefined);
|
|
978
|
+
} else {
|
|
979
|
+
obj.amounts = message.amounts;
|
|
980
|
+
}
|
|
981
|
+
return obj;
|
|
982
|
+
},
|
|
983
|
+
fromAminoMsg(object: CombinedLimitAminoMsg): CombinedLimit {
|
|
984
|
+
return CombinedLimit.fromAmino(object.value);
|
|
985
|
+
},
|
|
986
|
+
toAminoMsg(message: CombinedLimit): CombinedLimitAminoMsg {
|
|
987
|
+
return {
|
|
988
|
+
type: "wasm/CombinedLimit",
|
|
989
|
+
value: CombinedLimit.toAmino(message)
|
|
990
|
+
};
|
|
991
|
+
},
|
|
992
|
+
fromProtoMsg(message: CombinedLimitProtoMsg): CombinedLimit {
|
|
993
|
+
return CombinedLimit.decode(message.value);
|
|
994
|
+
},
|
|
995
|
+
toProto(message: CombinedLimit): Uint8Array {
|
|
996
|
+
return CombinedLimit.encode(message).finish();
|
|
997
|
+
},
|
|
998
|
+
toProtoMsg(message: CombinedLimit): CombinedLimitProtoMsg {
|
|
999
|
+
return {
|
|
1000
|
+
typeUrl: "/cosmwasm.wasm.v1.CombinedLimit",
|
|
1001
|
+
value: CombinedLimit.encode(message).finish()
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
GlobalDecoderRegistry.register(CombinedLimit.typeUrl, CombinedLimit);
|
|
1006
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(CombinedLimit.aminoType, CombinedLimit.typeUrl);
|
|
1007
|
+
function createBaseAllowAllMessagesFilter(): AllowAllMessagesFilter {
|
|
1008
|
+
return {};
|
|
1009
|
+
}
|
|
1010
|
+
export const AllowAllMessagesFilter = {
|
|
1011
|
+
typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter",
|
|
1012
|
+
aminoType: "wasm/AllowAllMessagesFilter",
|
|
1013
|
+
is(o: any): o is AllowAllMessagesFilter {
|
|
1014
|
+
return o && o.$typeUrl === AllowAllMessagesFilter.typeUrl;
|
|
1015
|
+
},
|
|
1016
|
+
isAmino(o: any): o is AllowAllMessagesFilterAmino {
|
|
1017
|
+
return o && o.$typeUrl === AllowAllMessagesFilter.typeUrl;
|
|
1018
|
+
},
|
|
1019
|
+
encode(_: AllowAllMessagesFilter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1020
|
+
return writer;
|
|
1021
|
+
},
|
|
1022
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AllowAllMessagesFilter {
|
|
1023
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1024
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1025
|
+
const message = createBaseAllowAllMessagesFilter();
|
|
1026
|
+
while (reader.pos < end) {
|
|
1027
|
+
const tag = reader.uint32();
|
|
1028
|
+
switch (tag >>> 3) {
|
|
1029
|
+
default:
|
|
1030
|
+
reader.skipType(tag & 7);
|
|
1031
|
+
break;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
return message;
|
|
1035
|
+
},
|
|
1036
|
+
fromPartial(_: DeepPartial<AllowAllMessagesFilter>): AllowAllMessagesFilter {
|
|
1037
|
+
const message = createBaseAllowAllMessagesFilter();
|
|
1038
|
+
return message;
|
|
1039
|
+
},
|
|
1040
|
+
fromAmino(_: AllowAllMessagesFilterAmino): AllowAllMessagesFilter {
|
|
1041
|
+
const message = createBaseAllowAllMessagesFilter();
|
|
1042
|
+
return message;
|
|
1043
|
+
},
|
|
1044
|
+
toAmino(_: AllowAllMessagesFilter): AllowAllMessagesFilterAmino {
|
|
1045
|
+
const obj: any = {};
|
|
1046
|
+
return obj;
|
|
1047
|
+
},
|
|
1048
|
+
fromAminoMsg(object: AllowAllMessagesFilterAminoMsg): AllowAllMessagesFilter {
|
|
1049
|
+
return AllowAllMessagesFilter.fromAmino(object.value);
|
|
1050
|
+
},
|
|
1051
|
+
toAminoMsg(message: AllowAllMessagesFilter): AllowAllMessagesFilterAminoMsg {
|
|
1052
|
+
return {
|
|
1053
|
+
type: "wasm/AllowAllMessagesFilter",
|
|
1054
|
+
value: AllowAllMessagesFilter.toAmino(message)
|
|
1055
|
+
};
|
|
1056
|
+
},
|
|
1057
|
+
fromProtoMsg(message: AllowAllMessagesFilterProtoMsg): AllowAllMessagesFilter {
|
|
1058
|
+
return AllowAllMessagesFilter.decode(message.value);
|
|
1059
|
+
},
|
|
1060
|
+
toProto(message: AllowAllMessagesFilter): Uint8Array {
|
|
1061
|
+
return AllowAllMessagesFilter.encode(message).finish();
|
|
1062
|
+
},
|
|
1063
|
+
toProtoMsg(message: AllowAllMessagesFilter): AllowAllMessagesFilterProtoMsg {
|
|
1064
|
+
return {
|
|
1065
|
+
typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter",
|
|
1066
|
+
value: AllowAllMessagesFilter.encode(message).finish()
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
};
|
|
1070
|
+
GlobalDecoderRegistry.register(AllowAllMessagesFilter.typeUrl, AllowAllMessagesFilter);
|
|
1071
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AllowAllMessagesFilter.aminoType, AllowAllMessagesFilter.typeUrl);
|
|
1072
|
+
function createBaseAcceptedMessageKeysFilter(): AcceptedMessageKeysFilter {
|
|
1073
|
+
return {
|
|
1074
|
+
keys: []
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
export const AcceptedMessageKeysFilter = {
|
|
1078
|
+
typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter",
|
|
1079
|
+
aminoType: "wasm/AcceptedMessageKeysFilter",
|
|
1080
|
+
is(o: any): o is AcceptedMessageKeysFilter {
|
|
1081
|
+
return o && (o.$typeUrl === AcceptedMessageKeysFilter.typeUrl || Array.isArray(o.keys) && (!o.keys.length || typeof o.keys[0] === "string"));
|
|
1082
|
+
},
|
|
1083
|
+
isAmino(o: any): o is AcceptedMessageKeysFilterAmino {
|
|
1084
|
+
return o && (o.$typeUrl === AcceptedMessageKeysFilter.typeUrl || Array.isArray(o.keys) && (!o.keys.length || typeof o.keys[0] === "string"));
|
|
1085
|
+
},
|
|
1086
|
+
encode(message: AcceptedMessageKeysFilter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1087
|
+
for (const v of message.keys) {
|
|
1088
|
+
writer.uint32(10).string(v!);
|
|
1089
|
+
}
|
|
1090
|
+
return writer;
|
|
1091
|
+
},
|
|
1092
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AcceptedMessageKeysFilter {
|
|
1093
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1094
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1095
|
+
const message = createBaseAcceptedMessageKeysFilter();
|
|
1096
|
+
while (reader.pos < end) {
|
|
1097
|
+
const tag = reader.uint32();
|
|
1098
|
+
switch (tag >>> 3) {
|
|
1099
|
+
case 1:
|
|
1100
|
+
message.keys.push(reader.string());
|
|
1101
|
+
break;
|
|
1102
|
+
default:
|
|
1103
|
+
reader.skipType(tag & 7);
|
|
1104
|
+
break;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
return message;
|
|
1108
|
+
},
|
|
1109
|
+
fromPartial(object: DeepPartial<AcceptedMessageKeysFilter>): AcceptedMessageKeysFilter {
|
|
1110
|
+
const message = createBaseAcceptedMessageKeysFilter();
|
|
1111
|
+
message.keys = object.keys?.map(e => e) || [];
|
|
1112
|
+
return message;
|
|
1113
|
+
},
|
|
1114
|
+
fromAmino(object: AcceptedMessageKeysFilterAmino): AcceptedMessageKeysFilter {
|
|
1115
|
+
const message = createBaseAcceptedMessageKeysFilter();
|
|
1116
|
+
message.keys = object.keys?.map(e => e) || [];
|
|
1117
|
+
return message;
|
|
1118
|
+
},
|
|
1119
|
+
toAmino(message: AcceptedMessageKeysFilter): AcceptedMessageKeysFilterAmino {
|
|
1120
|
+
const obj: any = {};
|
|
1121
|
+
if (message.keys) {
|
|
1122
|
+
obj.keys = message.keys.map(e => e);
|
|
1123
|
+
} else {
|
|
1124
|
+
obj.keys = message.keys;
|
|
1125
|
+
}
|
|
1126
|
+
return obj;
|
|
1127
|
+
},
|
|
1128
|
+
fromAminoMsg(object: AcceptedMessageKeysFilterAminoMsg): AcceptedMessageKeysFilter {
|
|
1129
|
+
return AcceptedMessageKeysFilter.fromAmino(object.value);
|
|
1130
|
+
},
|
|
1131
|
+
toAminoMsg(message: AcceptedMessageKeysFilter): AcceptedMessageKeysFilterAminoMsg {
|
|
1132
|
+
return {
|
|
1133
|
+
type: "wasm/AcceptedMessageKeysFilter",
|
|
1134
|
+
value: AcceptedMessageKeysFilter.toAmino(message)
|
|
1135
|
+
};
|
|
1136
|
+
},
|
|
1137
|
+
fromProtoMsg(message: AcceptedMessageKeysFilterProtoMsg): AcceptedMessageKeysFilter {
|
|
1138
|
+
return AcceptedMessageKeysFilter.decode(message.value);
|
|
1139
|
+
},
|
|
1140
|
+
toProto(message: AcceptedMessageKeysFilter): Uint8Array {
|
|
1141
|
+
return AcceptedMessageKeysFilter.encode(message).finish();
|
|
1142
|
+
},
|
|
1143
|
+
toProtoMsg(message: AcceptedMessageKeysFilter): AcceptedMessageKeysFilterProtoMsg {
|
|
1144
|
+
return {
|
|
1145
|
+
typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter",
|
|
1146
|
+
value: AcceptedMessageKeysFilter.encode(message).finish()
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
GlobalDecoderRegistry.register(AcceptedMessageKeysFilter.typeUrl, AcceptedMessageKeysFilter);
|
|
1151
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AcceptedMessageKeysFilter.aminoType, AcceptedMessageKeysFilter.typeUrl);
|
|
1152
|
+
function createBaseAcceptedMessagesFilter(): AcceptedMessagesFilter {
|
|
1153
|
+
return {
|
|
1154
|
+
messages: []
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
export const AcceptedMessagesFilter = {
|
|
1158
|
+
typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter",
|
|
1159
|
+
aminoType: "wasm/AcceptedMessagesFilter",
|
|
1160
|
+
is(o: any): o is AcceptedMessagesFilter {
|
|
1161
|
+
return o && (o.$typeUrl === AcceptedMessagesFilter.typeUrl || Array.isArray(o.messages) && (!o.messages.length || o.messages[0] instanceof Uint8Array || typeof o.messages[0] === "string"));
|
|
1162
|
+
},
|
|
1163
|
+
isAmino(o: any): o is AcceptedMessagesFilterAmino {
|
|
1164
|
+
return o && (o.$typeUrl === AcceptedMessagesFilter.typeUrl || Array.isArray(o.messages) && (!o.messages.length || o.messages[0] instanceof Uint8Array || typeof o.messages[0] === "string"));
|
|
1165
|
+
},
|
|
1166
|
+
encode(message: AcceptedMessagesFilter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1167
|
+
for (const v of message.messages) {
|
|
1168
|
+
writer.uint32(10).bytes(v!);
|
|
1169
|
+
}
|
|
1170
|
+
return writer;
|
|
1171
|
+
},
|
|
1172
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AcceptedMessagesFilter {
|
|
1173
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1174
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1175
|
+
const message = createBaseAcceptedMessagesFilter();
|
|
1176
|
+
while (reader.pos < end) {
|
|
1177
|
+
const tag = reader.uint32();
|
|
1178
|
+
switch (tag >>> 3) {
|
|
1179
|
+
case 1:
|
|
1180
|
+
message.messages.push(reader.bytes());
|
|
1181
|
+
break;
|
|
1182
|
+
default:
|
|
1183
|
+
reader.skipType(tag & 7);
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
return message;
|
|
1188
|
+
},
|
|
1189
|
+
fromPartial(object: DeepPartial<AcceptedMessagesFilter>): AcceptedMessagesFilter {
|
|
1190
|
+
const message = createBaseAcceptedMessagesFilter();
|
|
1191
|
+
message.messages = object.messages?.map(e => e) || [];
|
|
1192
|
+
return message;
|
|
1193
|
+
},
|
|
1194
|
+
fromAmino(object: AcceptedMessagesFilterAmino): AcceptedMessagesFilter {
|
|
1195
|
+
const message = createBaseAcceptedMessagesFilter();
|
|
1196
|
+
message.messages = object.messages?.map(e => toUtf8(JSON.stringify(e))) || [];
|
|
1197
|
+
return message;
|
|
1198
|
+
},
|
|
1199
|
+
toAmino(message: AcceptedMessagesFilter): AcceptedMessagesFilterAmino {
|
|
1200
|
+
const obj: any = {};
|
|
1201
|
+
if (message.messages) {
|
|
1202
|
+
obj.messages = message.messages.map(e => JSON.parse(fromUtf8(e)));
|
|
1203
|
+
} else {
|
|
1204
|
+
obj.messages = message.messages;
|
|
1205
|
+
}
|
|
1206
|
+
return obj;
|
|
1207
|
+
},
|
|
1208
|
+
fromAminoMsg(object: AcceptedMessagesFilterAminoMsg): AcceptedMessagesFilter {
|
|
1209
|
+
return AcceptedMessagesFilter.fromAmino(object.value);
|
|
1210
|
+
},
|
|
1211
|
+
toAminoMsg(message: AcceptedMessagesFilter): AcceptedMessagesFilterAminoMsg {
|
|
1212
|
+
return {
|
|
1213
|
+
type: "wasm/AcceptedMessagesFilter",
|
|
1214
|
+
value: AcceptedMessagesFilter.toAmino(message)
|
|
1215
|
+
};
|
|
1216
|
+
},
|
|
1217
|
+
fromProtoMsg(message: AcceptedMessagesFilterProtoMsg): AcceptedMessagesFilter {
|
|
1218
|
+
return AcceptedMessagesFilter.decode(message.value);
|
|
1219
|
+
},
|
|
1220
|
+
toProto(message: AcceptedMessagesFilter): Uint8Array {
|
|
1221
|
+
return AcceptedMessagesFilter.encode(message).finish();
|
|
1222
|
+
},
|
|
1223
|
+
toProtoMsg(message: AcceptedMessagesFilter): AcceptedMessagesFilterProtoMsg {
|
|
1224
|
+
return {
|
|
1225
|
+
typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter",
|
|
1226
|
+
value: AcceptedMessagesFilter.encode(message).finish()
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
GlobalDecoderRegistry.register(AcceptedMessagesFilter.typeUrl, AcceptedMessagesFilter);
|
|
1231
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AcceptedMessagesFilter.aminoType, AcceptedMessagesFilter.typeUrl);
|