@burnt-labs/xion-types 0.0.1-test.1762962136
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/jest.config.js +18 -0
- package/package.json +56 -0
- package/scripts/aminos.ts +29 -0
- package/scripts/codegen.ts +94 -0
- package/scripts/download-protos.ts +248 -0
- package/telescope.config.json +84 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +18 -0
- package/types/abstractaccount/bundle.ts +35 -0
- package/types/abstractaccount/client.ts +48 -0
- package/types/abstractaccount/lcd.ts +130 -0
- package/types/abstractaccount/rpc.query.ts +93 -0
- package/types/abstractaccount/rpc.tx.ts +74 -0
- package/types/abstractaccount/v1/account.ts +250 -0
- package/types/abstractaccount/v1/events.ts +135 -0
- package/types/abstractaccount/v1/genesis.ts +106 -0
- package/types/abstractaccount/v1/params.ts +192 -0
- package/types/abstractaccount/v1/query.lcd.ts +19 -0
- package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
- package/types/abstractaccount/v1/query.ts +160 -0
- package/types/abstractaccount/v1/tx.amino.ts +14 -0
- package/types/abstractaccount/v1/tx.registry.ts +53 -0
- package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
- package/types/abstractaccount/v1/tx.ts +454 -0
- package/types/amino/amino.ts +1 -0
- package/types/amino/bundle.ts +5 -0
- package/types/binary.ts +535 -0
- package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
- package/types/cosmos/app/v1alpha1/config.ts +437 -0
- package/types/cosmos/app/v1alpha1/module.ts +466 -0
- package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
- package/types/cosmos/app/v1alpha1/query.ts +176 -0
- package/types/cosmos/auth/module/v1/module.ts +288 -0
- package/types/cosmos/auth/v1beta1/auth.ts +562 -0
- package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
- package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
- package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/auth/v1beta1/query.ts +2005 -0
- package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/auth/v1beta1/tx.ts +208 -0
- package/types/cosmos/authz/module/v1/module.ts +77 -0
- package/types/cosmos/authz/v1beta1/authz.ts +599 -0
- package/types/cosmos/authz/v1beta1/event.ts +274 -0
- package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
- package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/authz/v1beta1/query.ts +734 -0
- package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
- package/types/cosmos/authz/v1beta1/tx.ts +666 -0
- package/types/cosmos/autocli/v1/options.ts +1317 -0
- package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
- package/types/cosmos/autocli/v1/query.ts +298 -0
- package/types/cosmos/bank/module/v1/module.ts +156 -0
- package/types/cosmos/bank/v1beta1/authz.ts +134 -0
- package/types/cosmos/bank/v1beta1/bank.ts +984 -0
- package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
- package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
- package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
- package/types/cosmos/bank/v1beta1/query.ts +3051 -0
- package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
- package/types/cosmos/bank/v1beta1/tx.ts +845 -0
- package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
- package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
- package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
- package/types/cosmos/base/node/v1beta1/query.ts +467 -0
- package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
- package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
- package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
- package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
- package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
- package/types/cosmos/base/v1beta1/coin.ts +449 -0
- package/types/cosmos/benchmark/module/v1/module.ts +384 -0
- package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
- package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
- package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
- package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/benchmark/v1/tx.ts +224 -0
- package/types/cosmos/bundle.ts +807 -0
- package/types/cosmos/circuit/module/v1/module.ts +100 -0
- package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
- package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
- package/types/cosmos/circuit/v1/query.ts +576 -0
- package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
- package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
- package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/circuit/v1/tx.ts +685 -0
- package/types/cosmos/circuit/v1/types.ts +419 -0
- package/types/cosmos/client.ts +100 -0
- package/types/cosmos/consensus/module/v1/module.ts +100 -0
- package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
- package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/consensus/v1/query.ts +182 -0
- package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
- package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
- package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/consensus/v1/tx.ts +257 -0
- package/types/cosmos/counter/module/v1/module.ts +100 -0
- package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/counter/v1/query.ts +171 -0
- package/types/cosmos/counter/v1/tx.amino.ts +9 -0
- package/types/cosmos/counter/v1/tx.registry.ts +35 -0
- package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/counter/v1/tx.ts +217 -0
- package/types/cosmos/crisis/module/v1/module.ts +119 -0
- package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
- package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
- package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
- package/types/cosmos/crypto/ed25519/keys.ts +214 -0
- package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
- package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
- package/types/cosmos/crypto/multisig/keys.ts +124 -0
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
- package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
- package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
- package/types/cosmos/distribution/module/v1/module.ts +115 -0
- package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
- package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
- package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
- package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
- package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
- package/types/cosmos/epochs/module/v1/module.ts +77 -0
- package/types/cosmos/epochs/v1beta1/events.ts +205 -0
- package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
- package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
- package/types/cosmos/epochs/v1beta1/query.ts +390 -0
- package/types/cosmos/evidence/module/v1/module.ts +77 -0
- package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
- package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
- package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
- package/types/cosmos/evidence/v1beta1/query.ts +458 -0
- package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
- package/types/cosmos/feegrant/module/v1/module.ts +77 -0
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
- package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
- package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
- package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
- package/types/cosmos/genutil/module/v1/module.ts +77 -0
- package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
- package/types/cosmos/gov/module/v1/module.ts +123 -0
- package/types/cosmos/gov/v1/genesis.ts +288 -0
- package/types/cosmos/gov/v1/gov.ts +1889 -0
- package/types/cosmos/gov/v1/query.lcd.ts +95 -0
- package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
- package/types/cosmos/gov/v1/query.ts +2026 -0
- package/types/cosmos/gov/v1/tx.amino.ts +39 -0
- package/types/cosmos/gov/v1/tx.registry.ts +143 -0
- package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
- package/types/cosmos/gov/v1/tx.ts +1911 -0
- package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
- package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
- package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
- package/types/cosmos/gov/v1beta1/query.ts +1813 -0
- package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
- package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
- package/types/cosmos/group/module/v1/module.ts +128 -0
- package/types/cosmos/group/v1/events.ts +1195 -0
- package/types/cosmos/group/v1/genesis.ts +256 -0
- package/types/cosmos/group/v1/query.lcd.ts +158 -0
- package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
- package/types/cosmos/group/v1/query.ts +3108 -0
- package/types/cosmos/group/v1/tx.amino.ts +74 -0
- package/types/cosmos/group/v1/tx.registry.ts +269 -0
- package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
- package/types/cosmos/group/v1/tx.ts +3353 -0
- package/types/cosmos/group/v1/types.ts +2248 -0
- package/types/cosmos/ics23/v1/proofs.ts +2167 -0
- package/types/cosmos/lcd.ts +125 -0
- package/types/cosmos/mint/module/v1/module.ts +115 -0
- package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
- package/types/cosmos/mint/v1beta1/mint.ts +313 -0
- package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/mint/v1beta1/query.ts +544 -0
- package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/mint/v1beta1/tx.ts +208 -0
- package/types/cosmos/msg/textual/v1/textual.ts +1 -0
- package/types/cosmos/msg/v1/msg.ts +1 -0
- package/types/cosmos/nft/module/v1/module.ts +77 -0
- package/types/cosmos/nft/v1beta1/event.ts +429 -0
- package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
- package/types/cosmos/nft/v1beta1/nft.ts +389 -0
- package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
- package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/types/cosmos/nft/v1beta1/query.ts +1513 -0
- package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/nft/v1beta1/tx.ts +232 -0
- package/types/cosmos/params/module/v1/module.ts +77 -0
- package/types/cosmos/params/v1beta1/params.ts +262 -0
- package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
- package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
- package/types/cosmos/params/v1beta1/query.ts +521 -0
- package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
- package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
- package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
- package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
- package/types/cosmos/protocolpool/v1/query.ts +761 -0
- package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
- package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
- package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
- package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
- package/types/cosmos/protocolpool/v1/types.ts +268 -0
- package/types/cosmos/query/v1/query.ts +1 -0
- package/types/cosmos/reflection/v1/reflection.ts +178 -0
- package/types/cosmos/rpc.query.ts +90 -0
- package/types/cosmos/rpc.tx.ts +71 -0
- package/types/cosmos/slashing/module/v1/module.ts +100 -0
- package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
- package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
- package/types/cosmos/slashing/v1beta1/query.ts +606 -0
- package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
- package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
- package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
- package/types/cosmos/staking/module/v1/module.ts +165 -0
- package/types/cosmos/staking/v1beta1/authz.ts +321 -0
- package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
- package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
- package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
- package/types/cosmos/staking/v1beta1/query.ts +3187 -0
- package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
- package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
- package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
- package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
- package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
- package/types/cosmos/store/v1beta1/listening.ts +296 -0
- package/types/cosmos/tx/config/v1/config.ts +127 -0
- package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
- package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
- package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
- package/types/cosmos/tx/v1beta1/service.ts +2319 -0
- package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
- package/types/cosmos/upgrade/module/v1/module.ts +100 -0
- package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
- package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
- package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
- package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
- package/types/cosmos/vesting/module/v1/module.ts +77 -0
- package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
- package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
- package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
- package/types/cosmos_proto/bundle.ts +5 -0
- package/types/cosmos_proto/cosmos.ts +355 -0
- package/types/cosmwasm/bundle.ts +39 -0
- package/types/cosmwasm/client.ts +48 -0
- package/types/cosmwasm/lcd.ts +132 -0
- package/types/cosmwasm/rpc.query.ts +95 -0
- package/types/cosmwasm/rpc.tx.ts +76 -0
- package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
- package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
- package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
- package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
- package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
- package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
- package/types/cosmwasm/wasm/v1/query.ts +3339 -0
- package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
- package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
- package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
- package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
- package/types/cosmwasm/wasm/v1/types.ts +1193 -0
- package/types/gogoproto/bundle.ts +5 -0
- package/types/gogoproto/gogo.ts +1 -0
- package/types/google/api/annotations.ts +1 -0
- package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
- package/types/google/api/apikeys/v2/resources.ts +1268 -0
- package/types/google/api/auth.ts +1175 -0
- package/types/google/api/backend.ts +691 -0
- package/types/google/api/billing.ts +333 -0
- package/types/google/api/client.ts +3100 -0
- package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
- package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
- package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
- package/types/google/api/config_change.ts +385 -0
- package/types/google/api/consumer.ts +362 -0
- package/types/google/api/context.ts +418 -0
- package/types/google/api/control.ts +141 -0
- package/types/google/api/distribution.ts +1253 -0
- package/types/google/api/documentation.ts +738 -0
- package/types/google/api/endpoint.ts +245 -0
- package/types/google/api/error_reason.ts +816 -0
- package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
- package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
- package/types/google/api/expr/v1alpha1/eval.ts +675 -0
- package/types/google/api/expr/v1alpha1/explain.ts +257 -0
- package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
- package/types/google/api/expr/v1alpha1/value.ts +771 -0
- package/types/google/api/expr/v1beta1/decl.ts +563 -0
- package/types/google/api/expr/v1beta1/eval.ts +758 -0
- package/types/google/api/expr/v1beta1/expr.ts +1750 -0
- package/types/google/api/expr/v1beta1/source.ts +446 -0
- package/types/google/api/expr/v1beta1/value.ts +771 -0
- package/types/google/api/field_behavior.ts +136 -0
- package/types/google/api/field_info.ts +319 -0
- package/types/google/api/http.ts +1362 -0
- package/types/google/api/httpbody.ts +270 -0
- package/types/google/api/label.ts +174 -0
- package/types/google/api/launch_stage.ts +112 -0
- package/types/google/api/log.ts +201 -0
- package/types/google/api/logging.ts +355 -0
- package/types/google/api/metric.ts +1174 -0
- package/types/google/api/monitored_resource.ts +841 -0
- package/types/google/api/monitoring.ts +430 -0
- package/types/google/api/policy.ts +314 -0
- package/types/google/api/quota.ts +1040 -0
- package/types/google/api/resource.ts +769 -0
- package/types/google/api/routing.ts +1405 -0
- package/types/google/api/service.ts +790 -0
- package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
- package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
- package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
- package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
- package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
- package/types/google/api/servicecontrol/v1/operation.ts +544 -0
- package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
- package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
- package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
- package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
- package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
- package/types/google/api/serviceusage/v1/resources.ts +629 -0
- package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
- package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
- package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
- package/types/google/api/source_info.ts +97 -0
- package/types/google/api/system_parameter.ts +461 -0
- package/types/google/api/usage.ts +404 -0
- package/types/google/api/visibility.ts +328 -0
- package/types/google/bundle.ts +115 -0
- package/types/google/logging/type/log_severity.ts +104 -0
- package/types/google/longrunning/operations.ts +1153 -0
- package/types/google/protobuf/any.ts +424 -0
- package/types/google/protobuf/api.ts +942 -0
- package/types/google/protobuf/descriptor.ts +7801 -0
- package/types/google/protobuf/duration.ts +284 -0
- package/types/google/protobuf/empty.ts +93 -0
- package/types/google/protobuf/field_mask.ts +694 -0
- package/types/google/protobuf/source_context.ts +105 -0
- package/types/google/protobuf/struct.ts +584 -0
- package/types/google/protobuf/timestamp.ts +373 -0
- package/types/google/protobuf/type.ts +1279 -0
- package/types/google/protobuf/wrappers.ts +1002 -0
- package/types/google/rpc/code.ts +286 -0
- package/types/google/rpc/context/attribute_context.ts +2517 -0
- package/types/google/rpc/context/audit_context.ts +188 -0
- package/types/google/rpc/error_details.ts +2467 -0
- package/types/google/rpc/http.ts +424 -0
- package/types/google/rpc/status.ts +173 -0
- package/types/helpers.ts +259 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
- package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
- package/types/ibc/applications/transfer/v1/authz.ts +297 -0
- package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
- package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
- package/types/ibc/applications/transfer/v1/packet.ts +186 -0
- package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
- package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
- package/types/ibc/applications/transfer/v1/query.ts +1233 -0
- package/types/ibc/applications/transfer/v1/token.ts +347 -0
- package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
- package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/transfer/v1/tx.ts +579 -0
- package/types/ibc/bundle.ts +265 -0
- package/types/ibc/client.ts +72 -0
- package/types/ibc/core/channel/v1/channel.ts +1455 -0
- package/types/ibc/core/channel/v1/genesis.ts +351 -0
- package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
- package/types/ibc/core/channel/v1/query.ts +3943 -0
- package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
- package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
- package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
- package/types/ibc/core/channel/v1/tx.ts +2558 -0
- package/types/ibc/core/channel/v2/genesis.ts +433 -0
- package/types/ibc/core/channel/v2/packet.ts +640 -0
- package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
- package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
- package/types/ibc/core/channel/v2/query.ts +2075 -0
- package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
- package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
- package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
- package/types/ibc/core/channel/v2/tx.ts +1003 -0
- package/types/ibc/core/client/v1/client.ts +636 -0
- package/types/ibc/core/client/v1/genesis.ts +448 -0
- package/types/ibc/core/client/v1/query.lcd.ts +102 -0
- package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
- package/types/ibc/core/client/v1/query.ts +2588 -0
- package/types/ibc/core/client/v1/tx.amino.ts +44 -0
- package/types/ibc/core/client/v1/tx.registry.ts +161 -0
- package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
- package/types/ibc/core/client/v1/tx.ts +1796 -0
- package/types/ibc/core/client/v2/config.ts +115 -0
- package/types/ibc/core/client/v2/counterparty.ts +122 -0
- package/types/ibc/core/client/v2/genesis.ts +220 -0
- package/types/ibc/core/client/v2/query.lcd.ts +25 -0
- package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
- package/types/ibc/core/client/v2/query.ts +402 -0
- package/types/ibc/core/client/v2/tx.amino.ts +14 -0
- package/types/ibc/core/client/v2/tx.registry.ts +53 -0
- package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
- package/types/ibc/core/client/v2/tx.ts +453 -0
- package/types/ibc/core/commitment/v1/commitment.ts +321 -0
- package/types/ibc/core/commitment/v2/commitment.ts +193 -0
- package/types/ibc/core/connection/v1/connection.ts +1056 -0
- package/types/ibc/core/connection/v1/genesis.ts +150 -0
- package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
- package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
- package/types/ibc/core/connection/v1/query.ts +1472 -0
- package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
- package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
- package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
- package/types/ibc/core/connection/v1/tx.ts +1456 -0
- package/types/ibc/core/types/v1/genesis.ts +191 -0
- package/types/ibc/lcd.ts +176 -0
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
- package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
- package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
- package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
- package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
- package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
- package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
- package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
- package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
- package/types/ibc/rpc.query.ts +123 -0
- package/types/ibc/rpc.tx.ts +104 -0
- package/types/index.ts +25 -0
- package/types/tendermint/abci/types.ts +6565 -0
- package/types/tendermint/bundle.ts +33 -0
- package/types/tendermint/crypto/keys.ts +106 -0
- package/types/tendermint/crypto/proof.ts +576 -0
- package/types/tendermint/p2p/types.ts +523 -0
- package/types/tendermint/types/block.ts +134 -0
- package/types/tendermint/types/evidence.ts +491 -0
- package/types/tendermint/types/params.ts +839 -0
- package/types/tendermint/types/types.ts +2266 -0
- package/types/tendermint/types/validator.ts +399 -0
- package/types/tendermint/version/types.ts +228 -0
- package/types/utf8.ts +149 -0
- package/types/varint.ts +489 -0
- package/types/xion/bundle.ts +117 -0
- package/types/xion/client.ts +57 -0
- package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
- package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
- package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
- package/types/xion/feeabs/v1beta1/params.ts +189 -0
- package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
- package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
- package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
- package/types/xion/feeabs/v1beta1/query.ts +732 -0
- package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
- package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
- package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
- package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
- package/types/xion/globalfee/v1/genesis.ts +249 -0
- package/types/xion/globalfee/v1/query.lcd.ts +19 -0
- package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
- package/types/xion/globalfee/v1/query.ts +178 -0
- package/types/xion/jwk/v1/audience.ts +224 -0
- package/types/xion/jwk/v1/genesis.ts +117 -0
- package/types/xion/jwk/v1/params.ts +113 -0
- package/types/xion/jwk/v1/query.lcd.ts +52 -0
- package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
- package/types/xion/jwk/v1/query.ts +1697 -0
- package/types/xion/jwk/v1/tx.amino.ts +29 -0
- package/types/xion/jwk/v1/tx.registry.ts +107 -0
- package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
- package/types/xion/jwk/v1/tx.ts +1040 -0
- package/types/xion/lcd.ts +147 -0
- package/types/xion/mint/v1/event.ts +216 -0
- package/types/xion/mint/v1/genesis.ts +114 -0
- package/types/xion/mint/v1/mint.ts +307 -0
- package/types/xion/mint/v1/query.lcd.ts +31 -0
- package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
- package/types/xion/mint/v1/query.ts +508 -0
- package/types/xion/mint/v1/tx.amino.ts +9 -0
- package/types/xion/mint/v1/tx.registry.ts +35 -0
- package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
- package/types/xion/mint/v1/tx.ts +222 -0
- package/types/xion/rpc.query.ts +105 -0
- package/types/xion/rpc.tx.ts +83 -0
- package/types/xion/v1/feegrant.ts +457 -0
- package/types/xion/v1/genesis.ts +116 -0
- package/types/xion/v1/query.rpc.Query.ts +64 -0
- package/types/xion/v1/query.ts +862 -0
- package/types/xion/v1/tx.amino.ts +24 -0
- package/types/xion/v1/tx.registry.ts +89 -0
- package/types/xion/v1/tx.rpc.msg.ts +57 -0
- package/types/xion/v1/tx.ts +793 -0
|
@@ -0,0 +1,4403 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { AccessConfig, AccessConfigAmino, AccessConfigSDKType, Params, ParamsAmino, ParamsSDKType } from "./types";
|
|
3
|
+
import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
import { fromBase64, toBase64, toUtf8, fromUtf8 } from "@cosmjs/encoding";
|
|
6
|
+
import { bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
7
|
+
/** MsgStoreCode submit Wasm code to the system */
|
|
8
|
+
export interface MsgStoreCode {
|
|
9
|
+
/** Sender is the actor that signed the messages */
|
|
10
|
+
sender: string;
|
|
11
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
12
|
+
wasmByteCode: Uint8Array;
|
|
13
|
+
/**
|
|
14
|
+
* InstantiatePermission access control to apply on contract creation,
|
|
15
|
+
* optional
|
|
16
|
+
*/
|
|
17
|
+
instantiatePermission?: AccessConfig;
|
|
18
|
+
}
|
|
19
|
+
export interface MsgStoreCodeProtoMsg {
|
|
20
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode";
|
|
21
|
+
value: Uint8Array;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* MsgStoreCode submit Wasm code to the system
|
|
25
|
+
* @name MsgStoreCodeAmino
|
|
26
|
+
* @package cosmwasm.wasm.v1
|
|
27
|
+
* @see proto type: cosmwasm.wasm.v1.MsgStoreCode
|
|
28
|
+
*/
|
|
29
|
+
export interface MsgStoreCodeAmino {
|
|
30
|
+
/**
|
|
31
|
+
* Sender is the actor that signed the messages
|
|
32
|
+
*/
|
|
33
|
+
sender?: string;
|
|
34
|
+
/**
|
|
35
|
+
* WASMByteCode can be raw or gzip compressed
|
|
36
|
+
*/
|
|
37
|
+
wasm_byte_code?: string;
|
|
38
|
+
/**
|
|
39
|
+
* InstantiatePermission access control to apply on contract creation,
|
|
40
|
+
* optional
|
|
41
|
+
*/
|
|
42
|
+
instantiate_permission?: AccessConfigAmino;
|
|
43
|
+
}
|
|
44
|
+
export interface MsgStoreCodeAminoMsg {
|
|
45
|
+
type: "wasm/MsgStoreCode";
|
|
46
|
+
value: MsgStoreCodeAmino;
|
|
47
|
+
}
|
|
48
|
+
/** MsgStoreCode submit Wasm code to the system */
|
|
49
|
+
export interface MsgStoreCodeSDKType {
|
|
50
|
+
sender: string;
|
|
51
|
+
wasm_byte_code: Uint8Array;
|
|
52
|
+
instantiate_permission?: AccessConfigSDKType;
|
|
53
|
+
}
|
|
54
|
+
/** MsgStoreCodeResponse returns store result data. */
|
|
55
|
+
export interface MsgStoreCodeResponse {
|
|
56
|
+
/** CodeID is the reference to the stored WASM code */
|
|
57
|
+
codeId: bigint;
|
|
58
|
+
/** Checksum is the sha256 hash of the stored code */
|
|
59
|
+
checksum: Uint8Array;
|
|
60
|
+
}
|
|
61
|
+
export interface MsgStoreCodeResponseProtoMsg {
|
|
62
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse";
|
|
63
|
+
value: Uint8Array;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* MsgStoreCodeResponse returns store result data.
|
|
67
|
+
* @name MsgStoreCodeResponseAmino
|
|
68
|
+
* @package cosmwasm.wasm.v1
|
|
69
|
+
* @see proto type: cosmwasm.wasm.v1.MsgStoreCodeResponse
|
|
70
|
+
*/
|
|
71
|
+
export interface MsgStoreCodeResponseAmino {
|
|
72
|
+
/**
|
|
73
|
+
* CodeID is the reference to the stored WASM code
|
|
74
|
+
*/
|
|
75
|
+
code_id?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Checksum is the sha256 hash of the stored code
|
|
78
|
+
*/
|
|
79
|
+
checksum?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface MsgStoreCodeResponseAminoMsg {
|
|
82
|
+
type: "wasm/MsgStoreCodeResponse";
|
|
83
|
+
value: MsgStoreCodeResponseAmino;
|
|
84
|
+
}
|
|
85
|
+
/** MsgStoreCodeResponse returns store result data. */
|
|
86
|
+
export interface MsgStoreCodeResponseSDKType {
|
|
87
|
+
code_id: bigint;
|
|
88
|
+
checksum: Uint8Array;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* MsgInstantiateContract create a new smart contract instance for the given
|
|
92
|
+
* code id.
|
|
93
|
+
*/
|
|
94
|
+
export interface MsgInstantiateContract {
|
|
95
|
+
/** Sender is the that actor that signed the messages */
|
|
96
|
+
sender: string;
|
|
97
|
+
/** Admin is an optional address that can execute migrations */
|
|
98
|
+
admin: string;
|
|
99
|
+
/** CodeID is the reference to the stored WASM code */
|
|
100
|
+
codeId: bigint;
|
|
101
|
+
/** Label is optional metadata to be stored with a contract instance. */
|
|
102
|
+
label: string;
|
|
103
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
104
|
+
msg: Uint8Array;
|
|
105
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
106
|
+
funds: Coin[];
|
|
107
|
+
}
|
|
108
|
+
export interface MsgInstantiateContractProtoMsg {
|
|
109
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract";
|
|
110
|
+
value: Uint8Array;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* MsgInstantiateContract create a new smart contract instance for the given
|
|
114
|
+
* code id.
|
|
115
|
+
* @name MsgInstantiateContractAmino
|
|
116
|
+
* @package cosmwasm.wasm.v1
|
|
117
|
+
* @see proto type: cosmwasm.wasm.v1.MsgInstantiateContract
|
|
118
|
+
*/
|
|
119
|
+
export interface MsgInstantiateContractAmino {
|
|
120
|
+
/**
|
|
121
|
+
* Sender is the that actor that signed the messages
|
|
122
|
+
*/
|
|
123
|
+
sender?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Admin is an optional address that can execute migrations
|
|
126
|
+
*/
|
|
127
|
+
admin?: string;
|
|
128
|
+
/**
|
|
129
|
+
* CodeID is the reference to the stored WASM code
|
|
130
|
+
*/
|
|
131
|
+
code_id?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Label is optional metadata to be stored with a contract instance.
|
|
134
|
+
*/
|
|
135
|
+
label?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Msg json encoded message to be passed to the contract on instantiation
|
|
138
|
+
*/
|
|
139
|
+
msg?: any;
|
|
140
|
+
/**
|
|
141
|
+
* Funds coins that are transferred to the contract on instantiation
|
|
142
|
+
*/
|
|
143
|
+
funds: CoinAmino[];
|
|
144
|
+
}
|
|
145
|
+
export interface MsgInstantiateContractAminoMsg {
|
|
146
|
+
type: "wasm/MsgInstantiateContract";
|
|
147
|
+
value: MsgInstantiateContractAmino;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* MsgInstantiateContract create a new smart contract instance for the given
|
|
151
|
+
* code id.
|
|
152
|
+
*/
|
|
153
|
+
export interface MsgInstantiateContractSDKType {
|
|
154
|
+
sender: string;
|
|
155
|
+
admin: string;
|
|
156
|
+
code_id: bigint;
|
|
157
|
+
label: string;
|
|
158
|
+
msg: Uint8Array;
|
|
159
|
+
funds: CoinSDKType[];
|
|
160
|
+
}
|
|
161
|
+
/** MsgInstantiateContractResponse return instantiation result data */
|
|
162
|
+
export interface MsgInstantiateContractResponse {
|
|
163
|
+
/** Address is the bech32 address of the new contract instance. */
|
|
164
|
+
address: string;
|
|
165
|
+
/** Data contains bytes to returned from the contract */
|
|
166
|
+
data: Uint8Array;
|
|
167
|
+
}
|
|
168
|
+
export interface MsgInstantiateContractResponseProtoMsg {
|
|
169
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse";
|
|
170
|
+
value: Uint8Array;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* MsgInstantiateContractResponse return instantiation result data
|
|
174
|
+
* @name MsgInstantiateContractResponseAmino
|
|
175
|
+
* @package cosmwasm.wasm.v1
|
|
176
|
+
* @see proto type: cosmwasm.wasm.v1.MsgInstantiateContractResponse
|
|
177
|
+
*/
|
|
178
|
+
export interface MsgInstantiateContractResponseAmino {
|
|
179
|
+
/**
|
|
180
|
+
* Address is the bech32 address of the new contract instance.
|
|
181
|
+
*/
|
|
182
|
+
address?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Data contains bytes to returned from the contract
|
|
185
|
+
*/
|
|
186
|
+
data?: string;
|
|
187
|
+
}
|
|
188
|
+
export interface MsgInstantiateContractResponseAminoMsg {
|
|
189
|
+
type: "wasm/MsgInstantiateContractResponse";
|
|
190
|
+
value: MsgInstantiateContractResponseAmino;
|
|
191
|
+
}
|
|
192
|
+
/** MsgInstantiateContractResponse return instantiation result data */
|
|
193
|
+
export interface MsgInstantiateContractResponseSDKType {
|
|
194
|
+
address: string;
|
|
195
|
+
data: Uint8Array;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* MsgInstantiateContract2 create a new smart contract instance for the given
|
|
199
|
+
* code id with a predictable address.
|
|
200
|
+
*/
|
|
201
|
+
export interface MsgInstantiateContract2 {
|
|
202
|
+
/** Sender is the that actor that signed the messages */
|
|
203
|
+
sender: string;
|
|
204
|
+
/** Admin is an optional address that can execute migrations */
|
|
205
|
+
admin: string;
|
|
206
|
+
/** CodeID is the reference to the stored WASM code */
|
|
207
|
+
codeId: bigint;
|
|
208
|
+
/** Label is optional metadata to be stored with a contract instance. */
|
|
209
|
+
label: string;
|
|
210
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
211
|
+
msg: Uint8Array;
|
|
212
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
213
|
+
funds: Coin[];
|
|
214
|
+
/** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
|
|
215
|
+
salt: Uint8Array;
|
|
216
|
+
/**
|
|
217
|
+
* FixMsg include the msg value into the hash for the predictable address.
|
|
218
|
+
* Default is false
|
|
219
|
+
*/
|
|
220
|
+
fixMsg: boolean;
|
|
221
|
+
}
|
|
222
|
+
export interface MsgInstantiateContract2ProtoMsg {
|
|
223
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2";
|
|
224
|
+
value: Uint8Array;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* MsgInstantiateContract2 create a new smart contract instance for the given
|
|
228
|
+
* code id with a predictable address.
|
|
229
|
+
* @name MsgInstantiateContract2Amino
|
|
230
|
+
* @package cosmwasm.wasm.v1
|
|
231
|
+
* @see proto type: cosmwasm.wasm.v1.MsgInstantiateContract2
|
|
232
|
+
*/
|
|
233
|
+
export interface MsgInstantiateContract2Amino {
|
|
234
|
+
/**
|
|
235
|
+
* Sender is the that actor that signed the messages
|
|
236
|
+
*/
|
|
237
|
+
sender?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Admin is an optional address that can execute migrations
|
|
240
|
+
*/
|
|
241
|
+
admin?: string;
|
|
242
|
+
/**
|
|
243
|
+
* CodeID is the reference to the stored WASM code
|
|
244
|
+
*/
|
|
245
|
+
code_id?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Label is optional metadata to be stored with a contract instance.
|
|
248
|
+
*/
|
|
249
|
+
label?: string;
|
|
250
|
+
/**
|
|
251
|
+
* Msg json encoded message to be passed to the contract on instantiation
|
|
252
|
+
*/
|
|
253
|
+
msg?: any;
|
|
254
|
+
/**
|
|
255
|
+
* Funds coins that are transferred to the contract on instantiation
|
|
256
|
+
*/
|
|
257
|
+
funds: CoinAmino[];
|
|
258
|
+
/**
|
|
259
|
+
* Salt is an arbitrary value provided by the sender. Size can be 1 to 64.
|
|
260
|
+
*/
|
|
261
|
+
salt?: string;
|
|
262
|
+
/**
|
|
263
|
+
* FixMsg include the msg value into the hash for the predictable address.
|
|
264
|
+
* Default is false
|
|
265
|
+
*/
|
|
266
|
+
fix_msg?: boolean;
|
|
267
|
+
}
|
|
268
|
+
export interface MsgInstantiateContract2AminoMsg {
|
|
269
|
+
type: "wasm/MsgInstantiateContract2";
|
|
270
|
+
value: MsgInstantiateContract2Amino;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* MsgInstantiateContract2 create a new smart contract instance for the given
|
|
274
|
+
* code id with a predictable address.
|
|
275
|
+
*/
|
|
276
|
+
export interface MsgInstantiateContract2SDKType {
|
|
277
|
+
sender: string;
|
|
278
|
+
admin: string;
|
|
279
|
+
code_id: bigint;
|
|
280
|
+
label: string;
|
|
281
|
+
msg: Uint8Array;
|
|
282
|
+
funds: CoinSDKType[];
|
|
283
|
+
salt: Uint8Array;
|
|
284
|
+
fix_msg: boolean;
|
|
285
|
+
}
|
|
286
|
+
/** MsgInstantiateContract2Response return instantiation result data */
|
|
287
|
+
export interface MsgInstantiateContract2Response {
|
|
288
|
+
/** Address is the bech32 address of the new contract instance. */
|
|
289
|
+
address: string;
|
|
290
|
+
/** Data contains bytes to returned from the contract */
|
|
291
|
+
data: Uint8Array;
|
|
292
|
+
}
|
|
293
|
+
export interface MsgInstantiateContract2ResponseProtoMsg {
|
|
294
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response";
|
|
295
|
+
value: Uint8Array;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* MsgInstantiateContract2Response return instantiation result data
|
|
299
|
+
* @name MsgInstantiateContract2ResponseAmino
|
|
300
|
+
* @package cosmwasm.wasm.v1
|
|
301
|
+
* @see proto type: cosmwasm.wasm.v1.MsgInstantiateContract2Response
|
|
302
|
+
*/
|
|
303
|
+
export interface MsgInstantiateContract2ResponseAmino {
|
|
304
|
+
/**
|
|
305
|
+
* Address is the bech32 address of the new contract instance.
|
|
306
|
+
*/
|
|
307
|
+
address?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Data contains bytes to returned from the contract
|
|
310
|
+
*/
|
|
311
|
+
data?: string;
|
|
312
|
+
}
|
|
313
|
+
export interface MsgInstantiateContract2ResponseAminoMsg {
|
|
314
|
+
type: "wasm/MsgInstantiateContract2Response";
|
|
315
|
+
value: MsgInstantiateContract2ResponseAmino;
|
|
316
|
+
}
|
|
317
|
+
/** MsgInstantiateContract2Response return instantiation result data */
|
|
318
|
+
export interface MsgInstantiateContract2ResponseSDKType {
|
|
319
|
+
address: string;
|
|
320
|
+
data: Uint8Array;
|
|
321
|
+
}
|
|
322
|
+
/** MsgExecuteContract submits the given message data to a smart contract */
|
|
323
|
+
export interface MsgExecuteContract {
|
|
324
|
+
/** Sender is the that actor that signed the messages */
|
|
325
|
+
sender: string;
|
|
326
|
+
/** Contract is the address of the smart contract */
|
|
327
|
+
contract: string;
|
|
328
|
+
/** Msg json encoded message to be passed to the contract */
|
|
329
|
+
msg: Uint8Array;
|
|
330
|
+
/** Funds coins that are transferred to the contract on execution */
|
|
331
|
+
funds: Coin[];
|
|
332
|
+
}
|
|
333
|
+
export interface MsgExecuteContractProtoMsg {
|
|
334
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract";
|
|
335
|
+
value: Uint8Array;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* MsgExecuteContract submits the given message data to a smart contract
|
|
339
|
+
* @name MsgExecuteContractAmino
|
|
340
|
+
* @package cosmwasm.wasm.v1
|
|
341
|
+
* @see proto type: cosmwasm.wasm.v1.MsgExecuteContract
|
|
342
|
+
*/
|
|
343
|
+
export interface MsgExecuteContractAmino {
|
|
344
|
+
/**
|
|
345
|
+
* Sender is the that actor that signed the messages
|
|
346
|
+
*/
|
|
347
|
+
sender?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Contract is the address of the smart contract
|
|
350
|
+
*/
|
|
351
|
+
contract?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Msg json encoded message to be passed to the contract
|
|
354
|
+
*/
|
|
355
|
+
msg?: any;
|
|
356
|
+
/**
|
|
357
|
+
* Funds coins that are transferred to the contract on execution
|
|
358
|
+
*/
|
|
359
|
+
funds: CoinAmino[];
|
|
360
|
+
}
|
|
361
|
+
export interface MsgExecuteContractAminoMsg {
|
|
362
|
+
type: "wasm/MsgExecuteContract";
|
|
363
|
+
value: MsgExecuteContractAmino;
|
|
364
|
+
}
|
|
365
|
+
/** MsgExecuteContract submits the given message data to a smart contract */
|
|
366
|
+
export interface MsgExecuteContractSDKType {
|
|
367
|
+
sender: string;
|
|
368
|
+
contract: string;
|
|
369
|
+
msg: Uint8Array;
|
|
370
|
+
funds: CoinSDKType[];
|
|
371
|
+
}
|
|
372
|
+
/** MsgExecuteContractResponse returns execution result data. */
|
|
373
|
+
export interface MsgExecuteContractResponse {
|
|
374
|
+
/** Data contains bytes to returned from the contract */
|
|
375
|
+
data: Uint8Array;
|
|
376
|
+
}
|
|
377
|
+
export interface MsgExecuteContractResponseProtoMsg {
|
|
378
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse";
|
|
379
|
+
value: Uint8Array;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* MsgExecuteContractResponse returns execution result data.
|
|
383
|
+
* @name MsgExecuteContractResponseAmino
|
|
384
|
+
* @package cosmwasm.wasm.v1
|
|
385
|
+
* @see proto type: cosmwasm.wasm.v1.MsgExecuteContractResponse
|
|
386
|
+
*/
|
|
387
|
+
export interface MsgExecuteContractResponseAmino {
|
|
388
|
+
/**
|
|
389
|
+
* Data contains bytes to returned from the contract
|
|
390
|
+
*/
|
|
391
|
+
data?: string;
|
|
392
|
+
}
|
|
393
|
+
export interface MsgExecuteContractResponseAminoMsg {
|
|
394
|
+
type: "wasm/MsgExecuteContractResponse";
|
|
395
|
+
value: MsgExecuteContractResponseAmino;
|
|
396
|
+
}
|
|
397
|
+
/** MsgExecuteContractResponse returns execution result data. */
|
|
398
|
+
export interface MsgExecuteContractResponseSDKType {
|
|
399
|
+
data: Uint8Array;
|
|
400
|
+
}
|
|
401
|
+
/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */
|
|
402
|
+
export interface MsgMigrateContract {
|
|
403
|
+
/** Sender is the that actor that signed the messages */
|
|
404
|
+
sender: string;
|
|
405
|
+
/** Contract is the address of the smart contract */
|
|
406
|
+
contract: string;
|
|
407
|
+
/** CodeID references the new WASM code */
|
|
408
|
+
codeId: bigint;
|
|
409
|
+
/** Msg json encoded message to be passed to the contract on migration */
|
|
410
|
+
msg: Uint8Array;
|
|
411
|
+
}
|
|
412
|
+
export interface MsgMigrateContractProtoMsg {
|
|
413
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract";
|
|
414
|
+
value: Uint8Array;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* MsgMigrateContract runs a code upgrade/ downgrade for a smart contract
|
|
418
|
+
* @name MsgMigrateContractAmino
|
|
419
|
+
* @package cosmwasm.wasm.v1
|
|
420
|
+
* @see proto type: cosmwasm.wasm.v1.MsgMigrateContract
|
|
421
|
+
*/
|
|
422
|
+
export interface MsgMigrateContractAmino {
|
|
423
|
+
/**
|
|
424
|
+
* Sender is the that actor that signed the messages
|
|
425
|
+
*/
|
|
426
|
+
sender?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Contract is the address of the smart contract
|
|
429
|
+
*/
|
|
430
|
+
contract?: string;
|
|
431
|
+
/**
|
|
432
|
+
* CodeID references the new WASM code
|
|
433
|
+
*/
|
|
434
|
+
code_id?: string;
|
|
435
|
+
/**
|
|
436
|
+
* Msg json encoded message to be passed to the contract on migration
|
|
437
|
+
*/
|
|
438
|
+
msg?: any;
|
|
439
|
+
}
|
|
440
|
+
export interface MsgMigrateContractAminoMsg {
|
|
441
|
+
type: "wasm/MsgMigrateContract";
|
|
442
|
+
value: MsgMigrateContractAmino;
|
|
443
|
+
}
|
|
444
|
+
/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */
|
|
445
|
+
export interface MsgMigrateContractSDKType {
|
|
446
|
+
sender: string;
|
|
447
|
+
contract: string;
|
|
448
|
+
code_id: bigint;
|
|
449
|
+
msg: Uint8Array;
|
|
450
|
+
}
|
|
451
|
+
/** MsgMigrateContractResponse returns contract migration result data. */
|
|
452
|
+
export interface MsgMigrateContractResponse {
|
|
453
|
+
/**
|
|
454
|
+
* Data contains same raw bytes returned as data from the wasm contract.
|
|
455
|
+
* (May be empty)
|
|
456
|
+
*/
|
|
457
|
+
data: Uint8Array;
|
|
458
|
+
}
|
|
459
|
+
export interface MsgMigrateContractResponseProtoMsg {
|
|
460
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse";
|
|
461
|
+
value: Uint8Array;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* MsgMigrateContractResponse returns contract migration result data.
|
|
465
|
+
* @name MsgMigrateContractResponseAmino
|
|
466
|
+
* @package cosmwasm.wasm.v1
|
|
467
|
+
* @see proto type: cosmwasm.wasm.v1.MsgMigrateContractResponse
|
|
468
|
+
*/
|
|
469
|
+
export interface MsgMigrateContractResponseAmino {
|
|
470
|
+
/**
|
|
471
|
+
* Data contains same raw bytes returned as data from the wasm contract.
|
|
472
|
+
* (May be empty)
|
|
473
|
+
*/
|
|
474
|
+
data?: string;
|
|
475
|
+
}
|
|
476
|
+
export interface MsgMigrateContractResponseAminoMsg {
|
|
477
|
+
type: "wasm/MsgMigrateContractResponse";
|
|
478
|
+
value: MsgMigrateContractResponseAmino;
|
|
479
|
+
}
|
|
480
|
+
/** MsgMigrateContractResponse returns contract migration result data. */
|
|
481
|
+
export interface MsgMigrateContractResponseSDKType {
|
|
482
|
+
data: Uint8Array;
|
|
483
|
+
}
|
|
484
|
+
/** MsgUpdateAdmin sets a new admin for a smart contract */
|
|
485
|
+
export interface MsgUpdateAdmin {
|
|
486
|
+
/** Sender is the that actor that signed the messages */
|
|
487
|
+
sender: string;
|
|
488
|
+
/** NewAdmin address to be set */
|
|
489
|
+
newAdmin: string;
|
|
490
|
+
/** Contract is the address of the smart contract */
|
|
491
|
+
contract: string;
|
|
492
|
+
}
|
|
493
|
+
export interface MsgUpdateAdminProtoMsg {
|
|
494
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin";
|
|
495
|
+
value: Uint8Array;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* MsgUpdateAdmin sets a new admin for a smart contract
|
|
499
|
+
* @name MsgUpdateAdminAmino
|
|
500
|
+
* @package cosmwasm.wasm.v1
|
|
501
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateAdmin
|
|
502
|
+
*/
|
|
503
|
+
export interface MsgUpdateAdminAmino {
|
|
504
|
+
/**
|
|
505
|
+
* Sender is the that actor that signed the messages
|
|
506
|
+
*/
|
|
507
|
+
sender?: string;
|
|
508
|
+
/**
|
|
509
|
+
* NewAdmin address to be set
|
|
510
|
+
*/
|
|
511
|
+
new_admin?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Contract is the address of the smart contract
|
|
514
|
+
*/
|
|
515
|
+
contract?: string;
|
|
516
|
+
}
|
|
517
|
+
export interface MsgUpdateAdminAminoMsg {
|
|
518
|
+
type: "wasm/MsgUpdateAdmin";
|
|
519
|
+
value: MsgUpdateAdminAmino;
|
|
520
|
+
}
|
|
521
|
+
/** MsgUpdateAdmin sets a new admin for a smart contract */
|
|
522
|
+
export interface MsgUpdateAdminSDKType {
|
|
523
|
+
sender: string;
|
|
524
|
+
new_admin: string;
|
|
525
|
+
contract: string;
|
|
526
|
+
}
|
|
527
|
+
/** MsgUpdateAdminResponse returns empty data */
|
|
528
|
+
export interface MsgUpdateAdminResponse {}
|
|
529
|
+
export interface MsgUpdateAdminResponseProtoMsg {
|
|
530
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse";
|
|
531
|
+
value: Uint8Array;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* MsgUpdateAdminResponse returns empty data
|
|
535
|
+
* @name MsgUpdateAdminResponseAmino
|
|
536
|
+
* @package cosmwasm.wasm.v1
|
|
537
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateAdminResponse
|
|
538
|
+
*/
|
|
539
|
+
export interface MsgUpdateAdminResponseAmino {}
|
|
540
|
+
export interface MsgUpdateAdminResponseAminoMsg {
|
|
541
|
+
type: "wasm/MsgUpdateAdminResponse";
|
|
542
|
+
value: MsgUpdateAdminResponseAmino;
|
|
543
|
+
}
|
|
544
|
+
/** MsgUpdateAdminResponse returns empty data */
|
|
545
|
+
export interface MsgUpdateAdminResponseSDKType {}
|
|
546
|
+
/** MsgClearAdmin removes any admin stored for a smart contract */
|
|
547
|
+
export interface MsgClearAdmin {
|
|
548
|
+
/** Sender is the actor that signed the messages */
|
|
549
|
+
sender: string;
|
|
550
|
+
/** Contract is the address of the smart contract */
|
|
551
|
+
contract: string;
|
|
552
|
+
}
|
|
553
|
+
export interface MsgClearAdminProtoMsg {
|
|
554
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin";
|
|
555
|
+
value: Uint8Array;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* MsgClearAdmin removes any admin stored for a smart contract
|
|
559
|
+
* @name MsgClearAdminAmino
|
|
560
|
+
* @package cosmwasm.wasm.v1
|
|
561
|
+
* @see proto type: cosmwasm.wasm.v1.MsgClearAdmin
|
|
562
|
+
*/
|
|
563
|
+
export interface MsgClearAdminAmino {
|
|
564
|
+
/**
|
|
565
|
+
* Sender is the actor that signed the messages
|
|
566
|
+
*/
|
|
567
|
+
sender?: string;
|
|
568
|
+
/**
|
|
569
|
+
* Contract is the address of the smart contract
|
|
570
|
+
*/
|
|
571
|
+
contract?: string;
|
|
572
|
+
}
|
|
573
|
+
export interface MsgClearAdminAminoMsg {
|
|
574
|
+
type: "wasm/MsgClearAdmin";
|
|
575
|
+
value: MsgClearAdminAmino;
|
|
576
|
+
}
|
|
577
|
+
/** MsgClearAdmin removes any admin stored for a smart contract */
|
|
578
|
+
export interface MsgClearAdminSDKType {
|
|
579
|
+
sender: string;
|
|
580
|
+
contract: string;
|
|
581
|
+
}
|
|
582
|
+
/** MsgClearAdminResponse returns empty data */
|
|
583
|
+
export interface MsgClearAdminResponse {}
|
|
584
|
+
export interface MsgClearAdminResponseProtoMsg {
|
|
585
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse";
|
|
586
|
+
value: Uint8Array;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* MsgClearAdminResponse returns empty data
|
|
590
|
+
* @name MsgClearAdminResponseAmino
|
|
591
|
+
* @package cosmwasm.wasm.v1
|
|
592
|
+
* @see proto type: cosmwasm.wasm.v1.MsgClearAdminResponse
|
|
593
|
+
*/
|
|
594
|
+
export interface MsgClearAdminResponseAmino {}
|
|
595
|
+
export interface MsgClearAdminResponseAminoMsg {
|
|
596
|
+
type: "wasm/MsgClearAdminResponse";
|
|
597
|
+
value: MsgClearAdminResponseAmino;
|
|
598
|
+
}
|
|
599
|
+
/** MsgClearAdminResponse returns empty data */
|
|
600
|
+
export interface MsgClearAdminResponseSDKType {}
|
|
601
|
+
/** MsgUpdateInstantiateConfig updates instantiate config for a smart contract */
|
|
602
|
+
export interface MsgUpdateInstantiateConfig {
|
|
603
|
+
/** Sender is the that actor that signed the messages */
|
|
604
|
+
sender: string;
|
|
605
|
+
/** CodeID references the stored WASM code */
|
|
606
|
+
codeId: bigint;
|
|
607
|
+
/** NewInstantiatePermission is the new access control */
|
|
608
|
+
newInstantiatePermission?: AccessConfig;
|
|
609
|
+
}
|
|
610
|
+
export interface MsgUpdateInstantiateConfigProtoMsg {
|
|
611
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig";
|
|
612
|
+
value: Uint8Array;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* MsgUpdateInstantiateConfig updates instantiate config for a smart contract
|
|
616
|
+
* @name MsgUpdateInstantiateConfigAmino
|
|
617
|
+
* @package cosmwasm.wasm.v1
|
|
618
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateInstantiateConfig
|
|
619
|
+
*/
|
|
620
|
+
export interface MsgUpdateInstantiateConfigAmino {
|
|
621
|
+
/**
|
|
622
|
+
* Sender is the that actor that signed the messages
|
|
623
|
+
*/
|
|
624
|
+
sender?: string;
|
|
625
|
+
/**
|
|
626
|
+
* CodeID references the stored WASM code
|
|
627
|
+
*/
|
|
628
|
+
code_id?: string;
|
|
629
|
+
/**
|
|
630
|
+
* NewInstantiatePermission is the new access control
|
|
631
|
+
*/
|
|
632
|
+
new_instantiate_permission?: AccessConfigAmino;
|
|
633
|
+
}
|
|
634
|
+
export interface MsgUpdateInstantiateConfigAminoMsg {
|
|
635
|
+
type: "wasm/MsgUpdateInstantiateConfig";
|
|
636
|
+
value: MsgUpdateInstantiateConfigAmino;
|
|
637
|
+
}
|
|
638
|
+
/** MsgUpdateInstantiateConfig updates instantiate config for a smart contract */
|
|
639
|
+
export interface MsgUpdateInstantiateConfigSDKType {
|
|
640
|
+
sender: string;
|
|
641
|
+
code_id: bigint;
|
|
642
|
+
new_instantiate_permission?: AccessConfigSDKType;
|
|
643
|
+
}
|
|
644
|
+
/** MsgUpdateInstantiateConfigResponse returns empty data */
|
|
645
|
+
export interface MsgUpdateInstantiateConfigResponse {}
|
|
646
|
+
export interface MsgUpdateInstantiateConfigResponseProtoMsg {
|
|
647
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse";
|
|
648
|
+
value: Uint8Array;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* MsgUpdateInstantiateConfigResponse returns empty data
|
|
652
|
+
* @name MsgUpdateInstantiateConfigResponseAmino
|
|
653
|
+
* @package cosmwasm.wasm.v1
|
|
654
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse
|
|
655
|
+
*/
|
|
656
|
+
export interface MsgUpdateInstantiateConfigResponseAmino {}
|
|
657
|
+
export interface MsgUpdateInstantiateConfigResponseAminoMsg {
|
|
658
|
+
type: "wasm/MsgUpdateInstantiateConfigResponse";
|
|
659
|
+
value: MsgUpdateInstantiateConfigResponseAmino;
|
|
660
|
+
}
|
|
661
|
+
/** MsgUpdateInstantiateConfigResponse returns empty data */
|
|
662
|
+
export interface MsgUpdateInstantiateConfigResponseSDKType {}
|
|
663
|
+
/**
|
|
664
|
+
* MsgUpdateParams is the MsgUpdateParams request type.
|
|
665
|
+
*
|
|
666
|
+
* Since: 0.40
|
|
667
|
+
*/
|
|
668
|
+
export interface MsgUpdateParams {
|
|
669
|
+
/** Authority is the address of the governance account. */
|
|
670
|
+
authority: string;
|
|
671
|
+
/**
|
|
672
|
+
* params defines the x/wasm parameters to update.
|
|
673
|
+
*
|
|
674
|
+
* NOTE: All parameters must be supplied.
|
|
675
|
+
*/
|
|
676
|
+
params: Params;
|
|
677
|
+
}
|
|
678
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
679
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams";
|
|
680
|
+
value: Uint8Array;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* MsgUpdateParams is the MsgUpdateParams request type.
|
|
684
|
+
*
|
|
685
|
+
* Since: 0.40
|
|
686
|
+
* @name MsgUpdateParamsAmino
|
|
687
|
+
* @package cosmwasm.wasm.v1
|
|
688
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateParams
|
|
689
|
+
*/
|
|
690
|
+
export interface MsgUpdateParamsAmino {
|
|
691
|
+
/**
|
|
692
|
+
* Authority is the address of the governance account.
|
|
693
|
+
*/
|
|
694
|
+
authority?: string;
|
|
695
|
+
/**
|
|
696
|
+
* params defines the x/wasm parameters to update.
|
|
697
|
+
*
|
|
698
|
+
* NOTE: All parameters must be supplied.
|
|
699
|
+
*/
|
|
700
|
+
params: ParamsAmino;
|
|
701
|
+
}
|
|
702
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
703
|
+
type: "wasm/MsgUpdateParams";
|
|
704
|
+
value: MsgUpdateParamsAmino;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* MsgUpdateParams is the MsgUpdateParams request type.
|
|
708
|
+
*
|
|
709
|
+
* Since: 0.40
|
|
710
|
+
*/
|
|
711
|
+
export interface MsgUpdateParamsSDKType {
|
|
712
|
+
authority: string;
|
|
713
|
+
params: ParamsSDKType;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
717
|
+
* MsgUpdateParams message.
|
|
718
|
+
*
|
|
719
|
+
* Since: 0.40
|
|
720
|
+
*/
|
|
721
|
+
export interface MsgUpdateParamsResponse {}
|
|
722
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
723
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse";
|
|
724
|
+
value: Uint8Array;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
728
|
+
* MsgUpdateParams message.
|
|
729
|
+
*
|
|
730
|
+
* Since: 0.40
|
|
731
|
+
* @name MsgUpdateParamsResponseAmino
|
|
732
|
+
* @package cosmwasm.wasm.v1
|
|
733
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateParamsResponse
|
|
734
|
+
*/
|
|
735
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
736
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
737
|
+
type: "wasm/MsgUpdateParamsResponse";
|
|
738
|
+
value: MsgUpdateParamsResponseAmino;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
742
|
+
* MsgUpdateParams message.
|
|
743
|
+
*
|
|
744
|
+
* Since: 0.40
|
|
745
|
+
*/
|
|
746
|
+
export interface MsgUpdateParamsResponseSDKType {}
|
|
747
|
+
/**
|
|
748
|
+
* MsgSudoContract is the MsgSudoContract request type.
|
|
749
|
+
*
|
|
750
|
+
* Since: 0.40
|
|
751
|
+
*/
|
|
752
|
+
export interface MsgSudoContract {
|
|
753
|
+
/** Authority is the address of the governance account. */
|
|
754
|
+
authority: string;
|
|
755
|
+
/** Contract is the address of the smart contract */
|
|
756
|
+
contract: string;
|
|
757
|
+
/** Msg json encoded message to be passed to the contract as sudo */
|
|
758
|
+
msg: Uint8Array;
|
|
759
|
+
}
|
|
760
|
+
export interface MsgSudoContractProtoMsg {
|
|
761
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract";
|
|
762
|
+
value: Uint8Array;
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* MsgSudoContract is the MsgSudoContract request type.
|
|
766
|
+
*
|
|
767
|
+
* Since: 0.40
|
|
768
|
+
* @name MsgSudoContractAmino
|
|
769
|
+
* @package cosmwasm.wasm.v1
|
|
770
|
+
* @see proto type: cosmwasm.wasm.v1.MsgSudoContract
|
|
771
|
+
*/
|
|
772
|
+
export interface MsgSudoContractAmino {
|
|
773
|
+
/**
|
|
774
|
+
* Authority is the address of the governance account.
|
|
775
|
+
*/
|
|
776
|
+
authority?: string;
|
|
777
|
+
/**
|
|
778
|
+
* Contract is the address of the smart contract
|
|
779
|
+
*/
|
|
780
|
+
contract?: string;
|
|
781
|
+
/**
|
|
782
|
+
* Msg json encoded message to be passed to the contract as sudo
|
|
783
|
+
*/
|
|
784
|
+
msg?: any;
|
|
785
|
+
}
|
|
786
|
+
export interface MsgSudoContractAminoMsg {
|
|
787
|
+
type: "wasm/MsgSudoContract";
|
|
788
|
+
value: MsgSudoContractAmino;
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* MsgSudoContract is the MsgSudoContract request type.
|
|
792
|
+
*
|
|
793
|
+
* Since: 0.40
|
|
794
|
+
*/
|
|
795
|
+
export interface MsgSudoContractSDKType {
|
|
796
|
+
authority: string;
|
|
797
|
+
contract: string;
|
|
798
|
+
msg: Uint8Array;
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* MsgSudoContractResponse defines the response structure for executing a
|
|
802
|
+
* MsgSudoContract message.
|
|
803
|
+
*
|
|
804
|
+
* Since: 0.40
|
|
805
|
+
*/
|
|
806
|
+
export interface MsgSudoContractResponse {
|
|
807
|
+
/** Data contains bytes to returned from the contract */
|
|
808
|
+
data: Uint8Array;
|
|
809
|
+
}
|
|
810
|
+
export interface MsgSudoContractResponseProtoMsg {
|
|
811
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse";
|
|
812
|
+
value: Uint8Array;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* MsgSudoContractResponse defines the response structure for executing a
|
|
816
|
+
* MsgSudoContract message.
|
|
817
|
+
*
|
|
818
|
+
* Since: 0.40
|
|
819
|
+
* @name MsgSudoContractResponseAmino
|
|
820
|
+
* @package cosmwasm.wasm.v1
|
|
821
|
+
* @see proto type: cosmwasm.wasm.v1.MsgSudoContractResponse
|
|
822
|
+
*/
|
|
823
|
+
export interface MsgSudoContractResponseAmino {
|
|
824
|
+
/**
|
|
825
|
+
* Data contains bytes to returned from the contract
|
|
826
|
+
*/
|
|
827
|
+
data?: string;
|
|
828
|
+
}
|
|
829
|
+
export interface MsgSudoContractResponseAminoMsg {
|
|
830
|
+
type: "wasm/MsgSudoContractResponse";
|
|
831
|
+
value: MsgSudoContractResponseAmino;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* MsgSudoContractResponse defines the response structure for executing a
|
|
835
|
+
* MsgSudoContract message.
|
|
836
|
+
*
|
|
837
|
+
* Since: 0.40
|
|
838
|
+
*/
|
|
839
|
+
export interface MsgSudoContractResponseSDKType {
|
|
840
|
+
data: Uint8Array;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* MsgPinCodes is the MsgPinCodes request type.
|
|
844
|
+
*
|
|
845
|
+
* Since: 0.40
|
|
846
|
+
*/
|
|
847
|
+
export interface MsgPinCodes {
|
|
848
|
+
/** Authority is the address of the governance account. */
|
|
849
|
+
authority: string;
|
|
850
|
+
/** CodeIDs references the new WASM codes */
|
|
851
|
+
codeIds: bigint[];
|
|
852
|
+
}
|
|
853
|
+
export interface MsgPinCodesProtoMsg {
|
|
854
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes";
|
|
855
|
+
value: Uint8Array;
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* MsgPinCodes is the MsgPinCodes request type.
|
|
859
|
+
*
|
|
860
|
+
* Since: 0.40
|
|
861
|
+
* @name MsgPinCodesAmino
|
|
862
|
+
* @package cosmwasm.wasm.v1
|
|
863
|
+
* @see proto type: cosmwasm.wasm.v1.MsgPinCodes
|
|
864
|
+
*/
|
|
865
|
+
export interface MsgPinCodesAmino {
|
|
866
|
+
/**
|
|
867
|
+
* Authority is the address of the governance account.
|
|
868
|
+
*/
|
|
869
|
+
authority?: string;
|
|
870
|
+
/**
|
|
871
|
+
* CodeIDs references the new WASM codes
|
|
872
|
+
*/
|
|
873
|
+
code_ids?: string[];
|
|
874
|
+
}
|
|
875
|
+
export interface MsgPinCodesAminoMsg {
|
|
876
|
+
type: "wasm/MsgPinCodes";
|
|
877
|
+
value: MsgPinCodesAmino;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* MsgPinCodes is the MsgPinCodes request type.
|
|
881
|
+
*
|
|
882
|
+
* Since: 0.40
|
|
883
|
+
*/
|
|
884
|
+
export interface MsgPinCodesSDKType {
|
|
885
|
+
authority: string;
|
|
886
|
+
code_ids: bigint[];
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* MsgPinCodesResponse defines the response structure for executing a
|
|
890
|
+
* MsgPinCodes message.
|
|
891
|
+
*
|
|
892
|
+
* Since: 0.40
|
|
893
|
+
*/
|
|
894
|
+
export interface MsgPinCodesResponse {}
|
|
895
|
+
export interface MsgPinCodesResponseProtoMsg {
|
|
896
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse";
|
|
897
|
+
value: Uint8Array;
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* MsgPinCodesResponse defines the response structure for executing a
|
|
901
|
+
* MsgPinCodes message.
|
|
902
|
+
*
|
|
903
|
+
* Since: 0.40
|
|
904
|
+
* @name MsgPinCodesResponseAmino
|
|
905
|
+
* @package cosmwasm.wasm.v1
|
|
906
|
+
* @see proto type: cosmwasm.wasm.v1.MsgPinCodesResponse
|
|
907
|
+
*/
|
|
908
|
+
export interface MsgPinCodesResponseAmino {}
|
|
909
|
+
export interface MsgPinCodesResponseAminoMsg {
|
|
910
|
+
type: "wasm/MsgPinCodesResponse";
|
|
911
|
+
value: MsgPinCodesResponseAmino;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* MsgPinCodesResponse defines the response structure for executing a
|
|
915
|
+
* MsgPinCodes message.
|
|
916
|
+
*
|
|
917
|
+
* Since: 0.40
|
|
918
|
+
*/
|
|
919
|
+
export interface MsgPinCodesResponseSDKType {}
|
|
920
|
+
/**
|
|
921
|
+
* MsgUnpinCodes is the MsgUnpinCodes request type.
|
|
922
|
+
*
|
|
923
|
+
* Since: 0.40
|
|
924
|
+
*/
|
|
925
|
+
export interface MsgUnpinCodes {
|
|
926
|
+
/** Authority is the address of the governance account. */
|
|
927
|
+
authority: string;
|
|
928
|
+
/** CodeIDs references the WASM codes */
|
|
929
|
+
codeIds: bigint[];
|
|
930
|
+
}
|
|
931
|
+
export interface MsgUnpinCodesProtoMsg {
|
|
932
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes";
|
|
933
|
+
value: Uint8Array;
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* MsgUnpinCodes is the MsgUnpinCodes request type.
|
|
937
|
+
*
|
|
938
|
+
* Since: 0.40
|
|
939
|
+
* @name MsgUnpinCodesAmino
|
|
940
|
+
* @package cosmwasm.wasm.v1
|
|
941
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUnpinCodes
|
|
942
|
+
*/
|
|
943
|
+
export interface MsgUnpinCodesAmino {
|
|
944
|
+
/**
|
|
945
|
+
* Authority is the address of the governance account.
|
|
946
|
+
*/
|
|
947
|
+
authority?: string;
|
|
948
|
+
/**
|
|
949
|
+
* CodeIDs references the WASM codes
|
|
950
|
+
*/
|
|
951
|
+
code_ids?: string[];
|
|
952
|
+
}
|
|
953
|
+
export interface MsgUnpinCodesAminoMsg {
|
|
954
|
+
type: "wasm/MsgUnpinCodes";
|
|
955
|
+
value: MsgUnpinCodesAmino;
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* MsgUnpinCodes is the MsgUnpinCodes request type.
|
|
959
|
+
*
|
|
960
|
+
* Since: 0.40
|
|
961
|
+
*/
|
|
962
|
+
export interface MsgUnpinCodesSDKType {
|
|
963
|
+
authority: string;
|
|
964
|
+
code_ids: bigint[];
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* MsgUnpinCodesResponse defines the response structure for executing a
|
|
968
|
+
* MsgUnpinCodes message.
|
|
969
|
+
*
|
|
970
|
+
* Since: 0.40
|
|
971
|
+
*/
|
|
972
|
+
export interface MsgUnpinCodesResponse {}
|
|
973
|
+
export interface MsgUnpinCodesResponseProtoMsg {
|
|
974
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse";
|
|
975
|
+
value: Uint8Array;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* MsgUnpinCodesResponse defines the response structure for executing a
|
|
979
|
+
* MsgUnpinCodes message.
|
|
980
|
+
*
|
|
981
|
+
* Since: 0.40
|
|
982
|
+
* @name MsgUnpinCodesResponseAmino
|
|
983
|
+
* @package cosmwasm.wasm.v1
|
|
984
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUnpinCodesResponse
|
|
985
|
+
*/
|
|
986
|
+
export interface MsgUnpinCodesResponseAmino {}
|
|
987
|
+
export interface MsgUnpinCodesResponseAminoMsg {
|
|
988
|
+
type: "wasm/MsgUnpinCodesResponse";
|
|
989
|
+
value: MsgUnpinCodesResponseAmino;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* MsgUnpinCodesResponse defines the response structure for executing a
|
|
993
|
+
* MsgUnpinCodes message.
|
|
994
|
+
*
|
|
995
|
+
* Since: 0.40
|
|
996
|
+
*/
|
|
997
|
+
export interface MsgUnpinCodesResponseSDKType {}
|
|
998
|
+
/**
|
|
999
|
+
* MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract
|
|
1000
|
+
* request type.
|
|
1001
|
+
*
|
|
1002
|
+
* Since: 0.40
|
|
1003
|
+
*/
|
|
1004
|
+
export interface MsgStoreAndInstantiateContract {
|
|
1005
|
+
/** Authority is the address of the governance account. */
|
|
1006
|
+
authority: string;
|
|
1007
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
1008
|
+
wasmByteCode: Uint8Array;
|
|
1009
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
|
1010
|
+
instantiatePermission?: AccessConfig;
|
|
1011
|
+
/**
|
|
1012
|
+
* UnpinCode code on upload, optional. As default the uploaded contract is
|
|
1013
|
+
* pinned to cache.
|
|
1014
|
+
*/
|
|
1015
|
+
unpinCode: boolean;
|
|
1016
|
+
/** Admin is an optional address that can execute migrations */
|
|
1017
|
+
admin: string;
|
|
1018
|
+
/** Label is optional metadata to be stored with a contract instance. */
|
|
1019
|
+
label: string;
|
|
1020
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
1021
|
+
msg: Uint8Array;
|
|
1022
|
+
/**
|
|
1023
|
+
* Funds coins that are transferred from the authority account to the contract
|
|
1024
|
+
* on instantiation
|
|
1025
|
+
*/
|
|
1026
|
+
funds: Coin[];
|
|
1027
|
+
/** Source is the URL where the code is hosted */
|
|
1028
|
+
source: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* Builder is the docker image used to build the code deterministically, used
|
|
1031
|
+
* for smart contract verification
|
|
1032
|
+
*/
|
|
1033
|
+
builder: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
1036
|
+
* contract verification
|
|
1037
|
+
*/
|
|
1038
|
+
codeHash: Uint8Array;
|
|
1039
|
+
}
|
|
1040
|
+
export interface MsgStoreAndInstantiateContractProtoMsg {
|
|
1041
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract";
|
|
1042
|
+
value: Uint8Array;
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract
|
|
1046
|
+
* request type.
|
|
1047
|
+
*
|
|
1048
|
+
* Since: 0.40
|
|
1049
|
+
* @name MsgStoreAndInstantiateContractAmino
|
|
1050
|
+
* @package cosmwasm.wasm.v1
|
|
1051
|
+
* @see proto type: cosmwasm.wasm.v1.MsgStoreAndInstantiateContract
|
|
1052
|
+
*/
|
|
1053
|
+
export interface MsgStoreAndInstantiateContractAmino {
|
|
1054
|
+
/**
|
|
1055
|
+
* Authority is the address of the governance account.
|
|
1056
|
+
*/
|
|
1057
|
+
authority?: string;
|
|
1058
|
+
/**
|
|
1059
|
+
* WASMByteCode can be raw or gzip compressed
|
|
1060
|
+
*/
|
|
1061
|
+
wasm_byte_code?: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* InstantiatePermission to apply on contract creation, optional
|
|
1064
|
+
*/
|
|
1065
|
+
instantiate_permission?: AccessConfigAmino;
|
|
1066
|
+
/**
|
|
1067
|
+
* UnpinCode code on upload, optional. As default the uploaded contract is
|
|
1068
|
+
* pinned to cache.
|
|
1069
|
+
*/
|
|
1070
|
+
unpin_code?: boolean;
|
|
1071
|
+
/**
|
|
1072
|
+
* Admin is an optional address that can execute migrations
|
|
1073
|
+
*/
|
|
1074
|
+
admin?: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* Label is optional metadata to be stored with a contract instance.
|
|
1077
|
+
*/
|
|
1078
|
+
label?: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* Msg json encoded message to be passed to the contract on instantiation
|
|
1081
|
+
*/
|
|
1082
|
+
msg?: any;
|
|
1083
|
+
/**
|
|
1084
|
+
* Funds coins that are transferred from the authority account to the contract
|
|
1085
|
+
* on instantiation
|
|
1086
|
+
*/
|
|
1087
|
+
funds: CoinAmino[];
|
|
1088
|
+
/**
|
|
1089
|
+
* Source is the URL where the code is hosted
|
|
1090
|
+
*/
|
|
1091
|
+
source?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* Builder is the docker image used to build the code deterministically, used
|
|
1094
|
+
* for smart contract verification
|
|
1095
|
+
*/
|
|
1096
|
+
builder?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
1099
|
+
* contract verification
|
|
1100
|
+
*/
|
|
1101
|
+
code_hash?: string;
|
|
1102
|
+
}
|
|
1103
|
+
export interface MsgStoreAndInstantiateContractAminoMsg {
|
|
1104
|
+
type: "wasm/MsgStoreAndInstantiateContract";
|
|
1105
|
+
value: MsgStoreAndInstantiateContractAmino;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract
|
|
1109
|
+
* request type.
|
|
1110
|
+
*
|
|
1111
|
+
* Since: 0.40
|
|
1112
|
+
*/
|
|
1113
|
+
export interface MsgStoreAndInstantiateContractSDKType {
|
|
1114
|
+
authority: string;
|
|
1115
|
+
wasm_byte_code: Uint8Array;
|
|
1116
|
+
instantiate_permission?: AccessConfigSDKType;
|
|
1117
|
+
unpin_code: boolean;
|
|
1118
|
+
admin: string;
|
|
1119
|
+
label: string;
|
|
1120
|
+
msg: Uint8Array;
|
|
1121
|
+
funds: CoinSDKType[];
|
|
1122
|
+
source: string;
|
|
1123
|
+
builder: string;
|
|
1124
|
+
code_hash: Uint8Array;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* MsgStoreAndInstantiateContractResponse defines the response structure
|
|
1128
|
+
* for executing a MsgStoreAndInstantiateContract message.
|
|
1129
|
+
*
|
|
1130
|
+
* Since: 0.40
|
|
1131
|
+
*/
|
|
1132
|
+
export interface MsgStoreAndInstantiateContractResponse {
|
|
1133
|
+
/** Address is the bech32 address of the new contract instance. */
|
|
1134
|
+
address: string;
|
|
1135
|
+
/** Data contains bytes to returned from the contract */
|
|
1136
|
+
data: Uint8Array;
|
|
1137
|
+
}
|
|
1138
|
+
export interface MsgStoreAndInstantiateContractResponseProtoMsg {
|
|
1139
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse";
|
|
1140
|
+
value: Uint8Array;
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* MsgStoreAndInstantiateContractResponse defines the response structure
|
|
1144
|
+
* for executing a MsgStoreAndInstantiateContract message.
|
|
1145
|
+
*
|
|
1146
|
+
* Since: 0.40
|
|
1147
|
+
* @name MsgStoreAndInstantiateContractResponseAmino
|
|
1148
|
+
* @package cosmwasm.wasm.v1
|
|
1149
|
+
* @see proto type: cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse
|
|
1150
|
+
*/
|
|
1151
|
+
export interface MsgStoreAndInstantiateContractResponseAmino {
|
|
1152
|
+
/**
|
|
1153
|
+
* Address is the bech32 address of the new contract instance.
|
|
1154
|
+
*/
|
|
1155
|
+
address?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* Data contains bytes to returned from the contract
|
|
1158
|
+
*/
|
|
1159
|
+
data?: string;
|
|
1160
|
+
}
|
|
1161
|
+
export interface MsgStoreAndInstantiateContractResponseAminoMsg {
|
|
1162
|
+
type: "wasm/MsgStoreAndInstantiateContractResponse";
|
|
1163
|
+
value: MsgStoreAndInstantiateContractResponseAmino;
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* MsgStoreAndInstantiateContractResponse defines the response structure
|
|
1167
|
+
* for executing a MsgStoreAndInstantiateContract message.
|
|
1168
|
+
*
|
|
1169
|
+
* Since: 0.40
|
|
1170
|
+
*/
|
|
1171
|
+
export interface MsgStoreAndInstantiateContractResponseSDKType {
|
|
1172
|
+
address: string;
|
|
1173
|
+
data: Uint8Array;
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* MsgAddCodeUploadParamsAddresses is the
|
|
1177
|
+
* MsgAddCodeUploadParamsAddresses request type.
|
|
1178
|
+
*/
|
|
1179
|
+
export interface MsgAddCodeUploadParamsAddresses {
|
|
1180
|
+
/** Authority is the address of the governance account. */
|
|
1181
|
+
authority: string;
|
|
1182
|
+
addresses: string[];
|
|
1183
|
+
}
|
|
1184
|
+
export interface MsgAddCodeUploadParamsAddressesProtoMsg {
|
|
1185
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses";
|
|
1186
|
+
value: Uint8Array;
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* MsgAddCodeUploadParamsAddresses is the
|
|
1190
|
+
* MsgAddCodeUploadParamsAddresses request type.
|
|
1191
|
+
* @name MsgAddCodeUploadParamsAddressesAmino
|
|
1192
|
+
* @package cosmwasm.wasm.v1
|
|
1193
|
+
* @see proto type: cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses
|
|
1194
|
+
*/
|
|
1195
|
+
export interface MsgAddCodeUploadParamsAddressesAmino {
|
|
1196
|
+
/**
|
|
1197
|
+
* Authority is the address of the governance account.
|
|
1198
|
+
*/
|
|
1199
|
+
authority?: string;
|
|
1200
|
+
addresses?: string[];
|
|
1201
|
+
}
|
|
1202
|
+
export interface MsgAddCodeUploadParamsAddressesAminoMsg {
|
|
1203
|
+
type: "wasm/MsgAddCodeUploadParamsAddresses";
|
|
1204
|
+
value: MsgAddCodeUploadParamsAddressesAmino;
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* MsgAddCodeUploadParamsAddresses is the
|
|
1208
|
+
* MsgAddCodeUploadParamsAddresses request type.
|
|
1209
|
+
*/
|
|
1210
|
+
export interface MsgAddCodeUploadParamsAddressesSDKType {
|
|
1211
|
+
authority: string;
|
|
1212
|
+
addresses: string[];
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* MsgAddCodeUploadParamsAddressesResponse defines the response
|
|
1216
|
+
* structure for executing a MsgAddCodeUploadParamsAddresses message.
|
|
1217
|
+
*/
|
|
1218
|
+
export interface MsgAddCodeUploadParamsAddressesResponse {}
|
|
1219
|
+
export interface MsgAddCodeUploadParamsAddressesResponseProtoMsg {
|
|
1220
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse";
|
|
1221
|
+
value: Uint8Array;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* MsgAddCodeUploadParamsAddressesResponse defines the response
|
|
1225
|
+
* structure for executing a MsgAddCodeUploadParamsAddresses message.
|
|
1226
|
+
* @name MsgAddCodeUploadParamsAddressesResponseAmino
|
|
1227
|
+
* @package cosmwasm.wasm.v1
|
|
1228
|
+
* @see proto type: cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse
|
|
1229
|
+
*/
|
|
1230
|
+
export interface MsgAddCodeUploadParamsAddressesResponseAmino {}
|
|
1231
|
+
export interface MsgAddCodeUploadParamsAddressesResponseAminoMsg {
|
|
1232
|
+
type: "wasm/MsgAddCodeUploadParamsAddressesResponse";
|
|
1233
|
+
value: MsgAddCodeUploadParamsAddressesResponseAmino;
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* MsgAddCodeUploadParamsAddressesResponse defines the response
|
|
1237
|
+
* structure for executing a MsgAddCodeUploadParamsAddresses message.
|
|
1238
|
+
*/
|
|
1239
|
+
export interface MsgAddCodeUploadParamsAddressesResponseSDKType {}
|
|
1240
|
+
/**
|
|
1241
|
+
* MsgRemoveCodeUploadParamsAddresses is the
|
|
1242
|
+
* MsgRemoveCodeUploadParamsAddresses request type.
|
|
1243
|
+
*/
|
|
1244
|
+
export interface MsgRemoveCodeUploadParamsAddresses {
|
|
1245
|
+
/** Authority is the address of the governance account. */
|
|
1246
|
+
authority: string;
|
|
1247
|
+
addresses: string[];
|
|
1248
|
+
}
|
|
1249
|
+
export interface MsgRemoveCodeUploadParamsAddressesProtoMsg {
|
|
1250
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses";
|
|
1251
|
+
value: Uint8Array;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* MsgRemoveCodeUploadParamsAddresses is the
|
|
1255
|
+
* MsgRemoveCodeUploadParamsAddresses request type.
|
|
1256
|
+
* @name MsgRemoveCodeUploadParamsAddressesAmino
|
|
1257
|
+
* @package cosmwasm.wasm.v1
|
|
1258
|
+
* @see proto type: cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses
|
|
1259
|
+
*/
|
|
1260
|
+
export interface MsgRemoveCodeUploadParamsAddressesAmino {
|
|
1261
|
+
/**
|
|
1262
|
+
* Authority is the address of the governance account.
|
|
1263
|
+
*/
|
|
1264
|
+
authority?: string;
|
|
1265
|
+
addresses?: string[];
|
|
1266
|
+
}
|
|
1267
|
+
export interface MsgRemoveCodeUploadParamsAddressesAminoMsg {
|
|
1268
|
+
type: "wasm/MsgRemoveCodeUploadParamsAddresses";
|
|
1269
|
+
value: MsgRemoveCodeUploadParamsAddressesAmino;
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* MsgRemoveCodeUploadParamsAddresses is the
|
|
1273
|
+
* MsgRemoveCodeUploadParamsAddresses request type.
|
|
1274
|
+
*/
|
|
1275
|
+
export interface MsgRemoveCodeUploadParamsAddressesSDKType {
|
|
1276
|
+
authority: string;
|
|
1277
|
+
addresses: string[];
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* MsgRemoveCodeUploadParamsAddressesResponse defines the response
|
|
1281
|
+
* structure for executing a MsgRemoveCodeUploadParamsAddresses message.
|
|
1282
|
+
*/
|
|
1283
|
+
export interface MsgRemoveCodeUploadParamsAddressesResponse {}
|
|
1284
|
+
export interface MsgRemoveCodeUploadParamsAddressesResponseProtoMsg {
|
|
1285
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse";
|
|
1286
|
+
value: Uint8Array;
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* MsgRemoveCodeUploadParamsAddressesResponse defines the response
|
|
1290
|
+
* structure for executing a MsgRemoveCodeUploadParamsAddresses message.
|
|
1291
|
+
* @name MsgRemoveCodeUploadParamsAddressesResponseAmino
|
|
1292
|
+
* @package cosmwasm.wasm.v1
|
|
1293
|
+
* @see proto type: cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse
|
|
1294
|
+
*/
|
|
1295
|
+
export interface MsgRemoveCodeUploadParamsAddressesResponseAmino {}
|
|
1296
|
+
export interface MsgRemoveCodeUploadParamsAddressesResponseAminoMsg {
|
|
1297
|
+
type: "wasm/MsgRemoveCodeUploadParamsAddressesResponse";
|
|
1298
|
+
value: MsgRemoveCodeUploadParamsAddressesResponseAmino;
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* MsgRemoveCodeUploadParamsAddressesResponse defines the response
|
|
1302
|
+
* structure for executing a MsgRemoveCodeUploadParamsAddresses message.
|
|
1303
|
+
*/
|
|
1304
|
+
export interface MsgRemoveCodeUploadParamsAddressesResponseSDKType {}
|
|
1305
|
+
/**
|
|
1306
|
+
* MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract
|
|
1307
|
+
* request type.
|
|
1308
|
+
*
|
|
1309
|
+
* Since: 0.42
|
|
1310
|
+
*/
|
|
1311
|
+
export interface MsgStoreAndMigrateContract {
|
|
1312
|
+
/** Authority is the address of the governance account. */
|
|
1313
|
+
authority: string;
|
|
1314
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
1315
|
+
wasmByteCode: Uint8Array;
|
|
1316
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
|
1317
|
+
instantiatePermission?: AccessConfig;
|
|
1318
|
+
/** Contract is the address of the smart contract */
|
|
1319
|
+
contract: string;
|
|
1320
|
+
/** Msg json encoded message to be passed to the contract on migration */
|
|
1321
|
+
msg: Uint8Array;
|
|
1322
|
+
}
|
|
1323
|
+
export interface MsgStoreAndMigrateContractProtoMsg {
|
|
1324
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract";
|
|
1325
|
+
value: Uint8Array;
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract
|
|
1329
|
+
* request type.
|
|
1330
|
+
*
|
|
1331
|
+
* Since: 0.42
|
|
1332
|
+
* @name MsgStoreAndMigrateContractAmino
|
|
1333
|
+
* @package cosmwasm.wasm.v1
|
|
1334
|
+
* @see proto type: cosmwasm.wasm.v1.MsgStoreAndMigrateContract
|
|
1335
|
+
*/
|
|
1336
|
+
export interface MsgStoreAndMigrateContractAmino {
|
|
1337
|
+
/**
|
|
1338
|
+
* Authority is the address of the governance account.
|
|
1339
|
+
*/
|
|
1340
|
+
authority?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* WASMByteCode can be raw or gzip compressed
|
|
1343
|
+
*/
|
|
1344
|
+
wasm_byte_code?: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* InstantiatePermission to apply on contract creation, optional
|
|
1347
|
+
*/
|
|
1348
|
+
instantiate_permission?: AccessConfigAmino;
|
|
1349
|
+
/**
|
|
1350
|
+
* Contract is the address of the smart contract
|
|
1351
|
+
*/
|
|
1352
|
+
contract?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* Msg json encoded message to be passed to the contract on migration
|
|
1355
|
+
*/
|
|
1356
|
+
msg?: any;
|
|
1357
|
+
}
|
|
1358
|
+
export interface MsgStoreAndMigrateContractAminoMsg {
|
|
1359
|
+
type: "wasm/MsgStoreAndMigrateContract";
|
|
1360
|
+
value: MsgStoreAndMigrateContractAmino;
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract
|
|
1364
|
+
* request type.
|
|
1365
|
+
*
|
|
1366
|
+
* Since: 0.42
|
|
1367
|
+
*/
|
|
1368
|
+
export interface MsgStoreAndMigrateContractSDKType {
|
|
1369
|
+
authority: string;
|
|
1370
|
+
wasm_byte_code: Uint8Array;
|
|
1371
|
+
instantiate_permission?: AccessConfigSDKType;
|
|
1372
|
+
contract: string;
|
|
1373
|
+
msg: Uint8Array;
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* MsgStoreAndMigrateContractResponse defines the response structure
|
|
1377
|
+
* for executing a MsgStoreAndMigrateContract message.
|
|
1378
|
+
*
|
|
1379
|
+
* Since: 0.42
|
|
1380
|
+
*/
|
|
1381
|
+
export interface MsgStoreAndMigrateContractResponse {
|
|
1382
|
+
/** CodeID is the reference to the stored WASM code */
|
|
1383
|
+
codeId: bigint;
|
|
1384
|
+
/** Checksum is the sha256 hash of the stored code */
|
|
1385
|
+
checksum: Uint8Array;
|
|
1386
|
+
/** Data contains bytes to returned from the contract */
|
|
1387
|
+
data: Uint8Array;
|
|
1388
|
+
}
|
|
1389
|
+
export interface MsgStoreAndMigrateContractResponseProtoMsg {
|
|
1390
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse";
|
|
1391
|
+
value: Uint8Array;
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* MsgStoreAndMigrateContractResponse defines the response structure
|
|
1395
|
+
* for executing a MsgStoreAndMigrateContract message.
|
|
1396
|
+
*
|
|
1397
|
+
* Since: 0.42
|
|
1398
|
+
* @name MsgStoreAndMigrateContractResponseAmino
|
|
1399
|
+
* @package cosmwasm.wasm.v1
|
|
1400
|
+
* @see proto type: cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse
|
|
1401
|
+
*/
|
|
1402
|
+
export interface MsgStoreAndMigrateContractResponseAmino {
|
|
1403
|
+
/**
|
|
1404
|
+
* CodeID is the reference to the stored WASM code
|
|
1405
|
+
*/
|
|
1406
|
+
code_id?: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* Checksum is the sha256 hash of the stored code
|
|
1409
|
+
*/
|
|
1410
|
+
checksum?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Data contains bytes to returned from the contract
|
|
1413
|
+
*/
|
|
1414
|
+
data?: string;
|
|
1415
|
+
}
|
|
1416
|
+
export interface MsgStoreAndMigrateContractResponseAminoMsg {
|
|
1417
|
+
type: "wasm/MsgStoreAndMigrateContractResponse";
|
|
1418
|
+
value: MsgStoreAndMigrateContractResponseAmino;
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* MsgStoreAndMigrateContractResponse defines the response structure
|
|
1422
|
+
* for executing a MsgStoreAndMigrateContract message.
|
|
1423
|
+
*
|
|
1424
|
+
* Since: 0.42
|
|
1425
|
+
*/
|
|
1426
|
+
export interface MsgStoreAndMigrateContractResponseSDKType {
|
|
1427
|
+
code_id: bigint;
|
|
1428
|
+
checksum: Uint8Array;
|
|
1429
|
+
data: Uint8Array;
|
|
1430
|
+
}
|
|
1431
|
+
/** MsgUpdateContractLabel sets a new label for a smart contract */
|
|
1432
|
+
export interface MsgUpdateContractLabel {
|
|
1433
|
+
/** Sender is the that actor that signed the messages */
|
|
1434
|
+
sender: string;
|
|
1435
|
+
/** NewLabel string to be set */
|
|
1436
|
+
newLabel: string;
|
|
1437
|
+
/** Contract is the address of the smart contract */
|
|
1438
|
+
contract: string;
|
|
1439
|
+
}
|
|
1440
|
+
export interface MsgUpdateContractLabelProtoMsg {
|
|
1441
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel";
|
|
1442
|
+
value: Uint8Array;
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* MsgUpdateContractLabel sets a new label for a smart contract
|
|
1446
|
+
* @name MsgUpdateContractLabelAmino
|
|
1447
|
+
* @package cosmwasm.wasm.v1
|
|
1448
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateContractLabel
|
|
1449
|
+
*/
|
|
1450
|
+
export interface MsgUpdateContractLabelAmino {
|
|
1451
|
+
/**
|
|
1452
|
+
* Sender is the that actor that signed the messages
|
|
1453
|
+
*/
|
|
1454
|
+
sender?: string;
|
|
1455
|
+
/**
|
|
1456
|
+
* NewLabel string to be set
|
|
1457
|
+
*/
|
|
1458
|
+
new_label?: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* Contract is the address of the smart contract
|
|
1461
|
+
*/
|
|
1462
|
+
contract?: string;
|
|
1463
|
+
}
|
|
1464
|
+
export interface MsgUpdateContractLabelAminoMsg {
|
|
1465
|
+
type: "wasm/MsgUpdateContractLabel";
|
|
1466
|
+
value: MsgUpdateContractLabelAmino;
|
|
1467
|
+
}
|
|
1468
|
+
/** MsgUpdateContractLabel sets a new label for a smart contract */
|
|
1469
|
+
export interface MsgUpdateContractLabelSDKType {
|
|
1470
|
+
sender: string;
|
|
1471
|
+
new_label: string;
|
|
1472
|
+
contract: string;
|
|
1473
|
+
}
|
|
1474
|
+
/** MsgUpdateContractLabelResponse returns empty data */
|
|
1475
|
+
export interface MsgUpdateContractLabelResponse {}
|
|
1476
|
+
export interface MsgUpdateContractLabelResponseProtoMsg {
|
|
1477
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse";
|
|
1478
|
+
value: Uint8Array;
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* MsgUpdateContractLabelResponse returns empty data
|
|
1482
|
+
* @name MsgUpdateContractLabelResponseAmino
|
|
1483
|
+
* @package cosmwasm.wasm.v1
|
|
1484
|
+
* @see proto type: cosmwasm.wasm.v1.MsgUpdateContractLabelResponse
|
|
1485
|
+
*/
|
|
1486
|
+
export interface MsgUpdateContractLabelResponseAmino {}
|
|
1487
|
+
export interface MsgUpdateContractLabelResponseAminoMsg {
|
|
1488
|
+
type: "wasm/MsgUpdateContractLabelResponse";
|
|
1489
|
+
value: MsgUpdateContractLabelResponseAmino;
|
|
1490
|
+
}
|
|
1491
|
+
/** MsgUpdateContractLabelResponse returns empty data */
|
|
1492
|
+
export interface MsgUpdateContractLabelResponseSDKType {}
|
|
1493
|
+
function createBaseMsgStoreCode(): MsgStoreCode {
|
|
1494
|
+
return {
|
|
1495
|
+
sender: "",
|
|
1496
|
+
wasmByteCode: new Uint8Array(),
|
|
1497
|
+
instantiatePermission: undefined
|
|
1498
|
+
};
|
|
1499
|
+
}
|
|
1500
|
+
export const MsgStoreCode = {
|
|
1501
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode",
|
|
1502
|
+
encode(message: MsgStoreCode, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1503
|
+
if (message.sender !== "") {
|
|
1504
|
+
writer.uint32(10).string(message.sender);
|
|
1505
|
+
}
|
|
1506
|
+
if (message.wasmByteCode.length !== 0) {
|
|
1507
|
+
writer.uint32(18).bytes(message.wasmByteCode);
|
|
1508
|
+
}
|
|
1509
|
+
if (message.instantiatePermission !== undefined) {
|
|
1510
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(42).fork()).ldelim();
|
|
1511
|
+
}
|
|
1512
|
+
return writer;
|
|
1513
|
+
},
|
|
1514
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCode {
|
|
1515
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1516
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1517
|
+
const message = createBaseMsgStoreCode();
|
|
1518
|
+
while (reader.pos < end) {
|
|
1519
|
+
const tag = reader.uint32();
|
|
1520
|
+
switch (tag >>> 3) {
|
|
1521
|
+
case 1:
|
|
1522
|
+
message.sender = reader.string();
|
|
1523
|
+
break;
|
|
1524
|
+
case 2:
|
|
1525
|
+
message.wasmByteCode = reader.bytes();
|
|
1526
|
+
break;
|
|
1527
|
+
case 5:
|
|
1528
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
1529
|
+
break;
|
|
1530
|
+
default:
|
|
1531
|
+
reader.skipType(tag & 7);
|
|
1532
|
+
break;
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
return message;
|
|
1536
|
+
},
|
|
1537
|
+
fromPartial(object: Partial<MsgStoreCode>): MsgStoreCode {
|
|
1538
|
+
const message = createBaseMsgStoreCode();
|
|
1539
|
+
message.sender = object.sender ?? "";
|
|
1540
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
|
1541
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
|
1542
|
+
return message;
|
|
1543
|
+
},
|
|
1544
|
+
fromAmino(object: MsgStoreCodeAmino): MsgStoreCode {
|
|
1545
|
+
const message = createBaseMsgStoreCode();
|
|
1546
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
1547
|
+
message.sender = object.sender;
|
|
1548
|
+
}
|
|
1549
|
+
if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
|
|
1550
|
+
message.wasmByteCode = fromBase64(object.wasm_byte_code);
|
|
1551
|
+
}
|
|
1552
|
+
if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
|
|
1553
|
+
message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
|
|
1554
|
+
}
|
|
1555
|
+
return message;
|
|
1556
|
+
},
|
|
1557
|
+
toAmino(message: MsgStoreCode): MsgStoreCodeAmino {
|
|
1558
|
+
const obj: any = {};
|
|
1559
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1560
|
+
obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
|
|
1561
|
+
obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
|
|
1562
|
+
return obj;
|
|
1563
|
+
},
|
|
1564
|
+
fromAminoMsg(object: MsgStoreCodeAminoMsg): MsgStoreCode {
|
|
1565
|
+
return MsgStoreCode.fromAmino(object.value);
|
|
1566
|
+
},
|
|
1567
|
+
toAminoMsg(message: MsgStoreCode): MsgStoreCodeAminoMsg {
|
|
1568
|
+
return {
|
|
1569
|
+
type: "wasm/MsgStoreCode",
|
|
1570
|
+
value: MsgStoreCode.toAmino(message)
|
|
1571
|
+
};
|
|
1572
|
+
},
|
|
1573
|
+
fromProtoMsg(message: MsgStoreCodeProtoMsg): MsgStoreCode {
|
|
1574
|
+
return MsgStoreCode.decode(message.value);
|
|
1575
|
+
},
|
|
1576
|
+
toProto(message: MsgStoreCode): Uint8Array {
|
|
1577
|
+
return MsgStoreCode.encode(message).finish();
|
|
1578
|
+
},
|
|
1579
|
+
toProtoMsg(message: MsgStoreCode): MsgStoreCodeProtoMsg {
|
|
1580
|
+
return {
|
|
1581
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode",
|
|
1582
|
+
value: MsgStoreCode.encode(message).finish()
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
function createBaseMsgStoreCodeResponse(): MsgStoreCodeResponse {
|
|
1587
|
+
return {
|
|
1588
|
+
codeId: BigInt(0),
|
|
1589
|
+
checksum: new Uint8Array()
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
export const MsgStoreCodeResponse = {
|
|
1593
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse",
|
|
1594
|
+
encode(message: MsgStoreCodeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1595
|
+
if (message.codeId !== BigInt(0)) {
|
|
1596
|
+
writer.uint32(8).uint64(message.codeId);
|
|
1597
|
+
}
|
|
1598
|
+
if (message.checksum.length !== 0) {
|
|
1599
|
+
writer.uint32(18).bytes(message.checksum);
|
|
1600
|
+
}
|
|
1601
|
+
return writer;
|
|
1602
|
+
},
|
|
1603
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCodeResponse {
|
|
1604
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1605
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1606
|
+
const message = createBaseMsgStoreCodeResponse();
|
|
1607
|
+
while (reader.pos < end) {
|
|
1608
|
+
const tag = reader.uint32();
|
|
1609
|
+
switch (tag >>> 3) {
|
|
1610
|
+
case 1:
|
|
1611
|
+
message.codeId = reader.uint64();
|
|
1612
|
+
break;
|
|
1613
|
+
case 2:
|
|
1614
|
+
message.checksum = reader.bytes();
|
|
1615
|
+
break;
|
|
1616
|
+
default:
|
|
1617
|
+
reader.skipType(tag & 7);
|
|
1618
|
+
break;
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
return message;
|
|
1622
|
+
},
|
|
1623
|
+
fromPartial(object: Partial<MsgStoreCodeResponse>): MsgStoreCodeResponse {
|
|
1624
|
+
const message = createBaseMsgStoreCodeResponse();
|
|
1625
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
1626
|
+
message.checksum = object.checksum ?? new Uint8Array();
|
|
1627
|
+
return message;
|
|
1628
|
+
},
|
|
1629
|
+
fromAmino(object: MsgStoreCodeResponseAmino): MsgStoreCodeResponse {
|
|
1630
|
+
const message = createBaseMsgStoreCodeResponse();
|
|
1631
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
1632
|
+
message.codeId = BigInt(object.code_id);
|
|
1633
|
+
}
|
|
1634
|
+
if (object.checksum !== undefined && object.checksum !== null) {
|
|
1635
|
+
message.checksum = bytesFromBase64(object.checksum);
|
|
1636
|
+
}
|
|
1637
|
+
return message;
|
|
1638
|
+
},
|
|
1639
|
+
toAmino(message: MsgStoreCodeResponse): MsgStoreCodeResponseAmino {
|
|
1640
|
+
const obj: any = {};
|
|
1641
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
1642
|
+
obj.checksum = message.checksum ? base64FromBytes(message.checksum) : undefined;
|
|
1643
|
+
return obj;
|
|
1644
|
+
},
|
|
1645
|
+
fromAminoMsg(object: MsgStoreCodeResponseAminoMsg): MsgStoreCodeResponse {
|
|
1646
|
+
return MsgStoreCodeResponse.fromAmino(object.value);
|
|
1647
|
+
},
|
|
1648
|
+
toAminoMsg(message: MsgStoreCodeResponse): MsgStoreCodeResponseAminoMsg {
|
|
1649
|
+
return {
|
|
1650
|
+
type: "wasm/MsgStoreCodeResponse",
|
|
1651
|
+
value: MsgStoreCodeResponse.toAmino(message)
|
|
1652
|
+
};
|
|
1653
|
+
},
|
|
1654
|
+
fromProtoMsg(message: MsgStoreCodeResponseProtoMsg): MsgStoreCodeResponse {
|
|
1655
|
+
return MsgStoreCodeResponse.decode(message.value);
|
|
1656
|
+
},
|
|
1657
|
+
toProto(message: MsgStoreCodeResponse): Uint8Array {
|
|
1658
|
+
return MsgStoreCodeResponse.encode(message).finish();
|
|
1659
|
+
},
|
|
1660
|
+
toProtoMsg(message: MsgStoreCodeResponse): MsgStoreCodeResponseProtoMsg {
|
|
1661
|
+
return {
|
|
1662
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse",
|
|
1663
|
+
value: MsgStoreCodeResponse.encode(message).finish()
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
};
|
|
1667
|
+
function createBaseMsgInstantiateContract(): MsgInstantiateContract {
|
|
1668
|
+
return {
|
|
1669
|
+
sender: "",
|
|
1670
|
+
admin: "",
|
|
1671
|
+
codeId: BigInt(0),
|
|
1672
|
+
label: "",
|
|
1673
|
+
msg: new Uint8Array(),
|
|
1674
|
+
funds: []
|
|
1675
|
+
};
|
|
1676
|
+
}
|
|
1677
|
+
export const MsgInstantiateContract = {
|
|
1678
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract",
|
|
1679
|
+
encode(message: MsgInstantiateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1680
|
+
if (message.sender !== "") {
|
|
1681
|
+
writer.uint32(10).string(message.sender);
|
|
1682
|
+
}
|
|
1683
|
+
if (message.admin !== "") {
|
|
1684
|
+
writer.uint32(18).string(message.admin);
|
|
1685
|
+
}
|
|
1686
|
+
if (message.codeId !== BigInt(0)) {
|
|
1687
|
+
writer.uint32(24).uint64(message.codeId);
|
|
1688
|
+
}
|
|
1689
|
+
if (message.label !== "") {
|
|
1690
|
+
writer.uint32(34).string(message.label);
|
|
1691
|
+
}
|
|
1692
|
+
if (message.msg.length !== 0) {
|
|
1693
|
+
writer.uint32(42).bytes(message.msg);
|
|
1694
|
+
}
|
|
1695
|
+
for (const v of message.funds) {
|
|
1696
|
+
Coin.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1697
|
+
}
|
|
1698
|
+
return writer;
|
|
1699
|
+
},
|
|
1700
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContract {
|
|
1701
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1702
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1703
|
+
const message = createBaseMsgInstantiateContract();
|
|
1704
|
+
while (reader.pos < end) {
|
|
1705
|
+
const tag = reader.uint32();
|
|
1706
|
+
switch (tag >>> 3) {
|
|
1707
|
+
case 1:
|
|
1708
|
+
message.sender = reader.string();
|
|
1709
|
+
break;
|
|
1710
|
+
case 2:
|
|
1711
|
+
message.admin = reader.string();
|
|
1712
|
+
break;
|
|
1713
|
+
case 3:
|
|
1714
|
+
message.codeId = reader.uint64();
|
|
1715
|
+
break;
|
|
1716
|
+
case 4:
|
|
1717
|
+
message.label = reader.string();
|
|
1718
|
+
break;
|
|
1719
|
+
case 5:
|
|
1720
|
+
message.msg = reader.bytes();
|
|
1721
|
+
break;
|
|
1722
|
+
case 6:
|
|
1723
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
1724
|
+
break;
|
|
1725
|
+
default:
|
|
1726
|
+
reader.skipType(tag & 7);
|
|
1727
|
+
break;
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
return message;
|
|
1731
|
+
},
|
|
1732
|
+
fromPartial(object: Partial<MsgInstantiateContract>): MsgInstantiateContract {
|
|
1733
|
+
const message = createBaseMsgInstantiateContract();
|
|
1734
|
+
message.sender = object.sender ?? "";
|
|
1735
|
+
message.admin = object.admin ?? "";
|
|
1736
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
1737
|
+
message.label = object.label ?? "";
|
|
1738
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
1739
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
1740
|
+
return message;
|
|
1741
|
+
},
|
|
1742
|
+
fromAmino(object: MsgInstantiateContractAmino): MsgInstantiateContract {
|
|
1743
|
+
const message = createBaseMsgInstantiateContract();
|
|
1744
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
1745
|
+
message.sender = object.sender;
|
|
1746
|
+
}
|
|
1747
|
+
if (object.admin !== undefined && object.admin !== null) {
|
|
1748
|
+
message.admin = object.admin;
|
|
1749
|
+
}
|
|
1750
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
1751
|
+
message.codeId = BigInt(object.code_id);
|
|
1752
|
+
}
|
|
1753
|
+
if (object.label !== undefined && object.label !== null) {
|
|
1754
|
+
message.label = object.label;
|
|
1755
|
+
}
|
|
1756
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
1757
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
1758
|
+
}
|
|
1759
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
1760
|
+
return message;
|
|
1761
|
+
},
|
|
1762
|
+
toAmino(message: MsgInstantiateContract): MsgInstantiateContractAmino {
|
|
1763
|
+
const obj: any = {};
|
|
1764
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1765
|
+
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
1766
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
1767
|
+
obj.label = message.label === "" ? undefined : message.label;
|
|
1768
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
1769
|
+
if (message.funds) {
|
|
1770
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
1771
|
+
} else {
|
|
1772
|
+
obj.funds = message.funds;
|
|
1773
|
+
}
|
|
1774
|
+
return obj;
|
|
1775
|
+
},
|
|
1776
|
+
fromAminoMsg(object: MsgInstantiateContractAminoMsg): MsgInstantiateContract {
|
|
1777
|
+
return MsgInstantiateContract.fromAmino(object.value);
|
|
1778
|
+
},
|
|
1779
|
+
toAminoMsg(message: MsgInstantiateContract): MsgInstantiateContractAminoMsg {
|
|
1780
|
+
return {
|
|
1781
|
+
type: "wasm/MsgInstantiateContract",
|
|
1782
|
+
value: MsgInstantiateContract.toAmino(message)
|
|
1783
|
+
};
|
|
1784
|
+
},
|
|
1785
|
+
fromProtoMsg(message: MsgInstantiateContractProtoMsg): MsgInstantiateContract {
|
|
1786
|
+
return MsgInstantiateContract.decode(message.value);
|
|
1787
|
+
},
|
|
1788
|
+
toProto(message: MsgInstantiateContract): Uint8Array {
|
|
1789
|
+
return MsgInstantiateContract.encode(message).finish();
|
|
1790
|
+
},
|
|
1791
|
+
toProtoMsg(message: MsgInstantiateContract): MsgInstantiateContractProtoMsg {
|
|
1792
|
+
return {
|
|
1793
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract",
|
|
1794
|
+
value: MsgInstantiateContract.encode(message).finish()
|
|
1795
|
+
};
|
|
1796
|
+
}
|
|
1797
|
+
};
|
|
1798
|
+
function createBaseMsgInstantiateContractResponse(): MsgInstantiateContractResponse {
|
|
1799
|
+
return {
|
|
1800
|
+
address: "",
|
|
1801
|
+
data: new Uint8Array()
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
export const MsgInstantiateContractResponse = {
|
|
1805
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse",
|
|
1806
|
+
encode(message: MsgInstantiateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1807
|
+
if (message.address !== "") {
|
|
1808
|
+
writer.uint32(10).string(message.address);
|
|
1809
|
+
}
|
|
1810
|
+
if (message.data.length !== 0) {
|
|
1811
|
+
writer.uint32(18).bytes(message.data);
|
|
1812
|
+
}
|
|
1813
|
+
return writer;
|
|
1814
|
+
},
|
|
1815
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContractResponse {
|
|
1816
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1817
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1818
|
+
const message = createBaseMsgInstantiateContractResponse();
|
|
1819
|
+
while (reader.pos < end) {
|
|
1820
|
+
const tag = reader.uint32();
|
|
1821
|
+
switch (tag >>> 3) {
|
|
1822
|
+
case 1:
|
|
1823
|
+
message.address = reader.string();
|
|
1824
|
+
break;
|
|
1825
|
+
case 2:
|
|
1826
|
+
message.data = reader.bytes();
|
|
1827
|
+
break;
|
|
1828
|
+
default:
|
|
1829
|
+
reader.skipType(tag & 7);
|
|
1830
|
+
break;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
return message;
|
|
1834
|
+
},
|
|
1835
|
+
fromPartial(object: Partial<MsgInstantiateContractResponse>): MsgInstantiateContractResponse {
|
|
1836
|
+
const message = createBaseMsgInstantiateContractResponse();
|
|
1837
|
+
message.address = object.address ?? "";
|
|
1838
|
+
message.data = object.data ?? new Uint8Array();
|
|
1839
|
+
return message;
|
|
1840
|
+
},
|
|
1841
|
+
fromAmino(object: MsgInstantiateContractResponseAmino): MsgInstantiateContractResponse {
|
|
1842
|
+
const message = createBaseMsgInstantiateContractResponse();
|
|
1843
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1844
|
+
message.address = object.address;
|
|
1845
|
+
}
|
|
1846
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1847
|
+
message.data = bytesFromBase64(object.data);
|
|
1848
|
+
}
|
|
1849
|
+
return message;
|
|
1850
|
+
},
|
|
1851
|
+
toAmino(message: MsgInstantiateContractResponse): MsgInstantiateContractResponseAmino {
|
|
1852
|
+
const obj: any = {};
|
|
1853
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1854
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
1855
|
+
return obj;
|
|
1856
|
+
},
|
|
1857
|
+
fromAminoMsg(object: MsgInstantiateContractResponseAminoMsg): MsgInstantiateContractResponse {
|
|
1858
|
+
return MsgInstantiateContractResponse.fromAmino(object.value);
|
|
1859
|
+
},
|
|
1860
|
+
toAminoMsg(message: MsgInstantiateContractResponse): MsgInstantiateContractResponseAminoMsg {
|
|
1861
|
+
return {
|
|
1862
|
+
type: "wasm/MsgInstantiateContractResponse",
|
|
1863
|
+
value: MsgInstantiateContractResponse.toAmino(message)
|
|
1864
|
+
};
|
|
1865
|
+
},
|
|
1866
|
+
fromProtoMsg(message: MsgInstantiateContractResponseProtoMsg): MsgInstantiateContractResponse {
|
|
1867
|
+
return MsgInstantiateContractResponse.decode(message.value);
|
|
1868
|
+
},
|
|
1869
|
+
toProto(message: MsgInstantiateContractResponse): Uint8Array {
|
|
1870
|
+
return MsgInstantiateContractResponse.encode(message).finish();
|
|
1871
|
+
},
|
|
1872
|
+
toProtoMsg(message: MsgInstantiateContractResponse): MsgInstantiateContractResponseProtoMsg {
|
|
1873
|
+
return {
|
|
1874
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse",
|
|
1875
|
+
value: MsgInstantiateContractResponse.encode(message).finish()
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
};
|
|
1879
|
+
function createBaseMsgInstantiateContract2(): MsgInstantiateContract2 {
|
|
1880
|
+
return {
|
|
1881
|
+
sender: "",
|
|
1882
|
+
admin: "",
|
|
1883
|
+
codeId: BigInt(0),
|
|
1884
|
+
label: "",
|
|
1885
|
+
msg: new Uint8Array(),
|
|
1886
|
+
funds: [],
|
|
1887
|
+
salt: new Uint8Array(),
|
|
1888
|
+
fixMsg: false
|
|
1889
|
+
};
|
|
1890
|
+
}
|
|
1891
|
+
export const MsgInstantiateContract2 = {
|
|
1892
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2",
|
|
1893
|
+
encode(message: MsgInstantiateContract2, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1894
|
+
if (message.sender !== "") {
|
|
1895
|
+
writer.uint32(10).string(message.sender);
|
|
1896
|
+
}
|
|
1897
|
+
if (message.admin !== "") {
|
|
1898
|
+
writer.uint32(18).string(message.admin);
|
|
1899
|
+
}
|
|
1900
|
+
if (message.codeId !== BigInt(0)) {
|
|
1901
|
+
writer.uint32(24).uint64(message.codeId);
|
|
1902
|
+
}
|
|
1903
|
+
if (message.label !== "") {
|
|
1904
|
+
writer.uint32(34).string(message.label);
|
|
1905
|
+
}
|
|
1906
|
+
if (message.msg.length !== 0) {
|
|
1907
|
+
writer.uint32(42).bytes(message.msg);
|
|
1908
|
+
}
|
|
1909
|
+
for (const v of message.funds) {
|
|
1910
|
+
Coin.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1911
|
+
}
|
|
1912
|
+
if (message.salt.length !== 0) {
|
|
1913
|
+
writer.uint32(58).bytes(message.salt);
|
|
1914
|
+
}
|
|
1915
|
+
if (message.fixMsg === true) {
|
|
1916
|
+
writer.uint32(64).bool(message.fixMsg);
|
|
1917
|
+
}
|
|
1918
|
+
return writer;
|
|
1919
|
+
},
|
|
1920
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContract2 {
|
|
1921
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1922
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1923
|
+
const message = createBaseMsgInstantiateContract2();
|
|
1924
|
+
while (reader.pos < end) {
|
|
1925
|
+
const tag = reader.uint32();
|
|
1926
|
+
switch (tag >>> 3) {
|
|
1927
|
+
case 1:
|
|
1928
|
+
message.sender = reader.string();
|
|
1929
|
+
break;
|
|
1930
|
+
case 2:
|
|
1931
|
+
message.admin = reader.string();
|
|
1932
|
+
break;
|
|
1933
|
+
case 3:
|
|
1934
|
+
message.codeId = reader.uint64();
|
|
1935
|
+
break;
|
|
1936
|
+
case 4:
|
|
1937
|
+
message.label = reader.string();
|
|
1938
|
+
break;
|
|
1939
|
+
case 5:
|
|
1940
|
+
message.msg = reader.bytes();
|
|
1941
|
+
break;
|
|
1942
|
+
case 6:
|
|
1943
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
1944
|
+
break;
|
|
1945
|
+
case 7:
|
|
1946
|
+
message.salt = reader.bytes();
|
|
1947
|
+
break;
|
|
1948
|
+
case 8:
|
|
1949
|
+
message.fixMsg = reader.bool();
|
|
1950
|
+
break;
|
|
1951
|
+
default:
|
|
1952
|
+
reader.skipType(tag & 7);
|
|
1953
|
+
break;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
return message;
|
|
1957
|
+
},
|
|
1958
|
+
fromPartial(object: Partial<MsgInstantiateContract2>): MsgInstantiateContract2 {
|
|
1959
|
+
const message = createBaseMsgInstantiateContract2();
|
|
1960
|
+
message.sender = object.sender ?? "";
|
|
1961
|
+
message.admin = object.admin ?? "";
|
|
1962
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
1963
|
+
message.label = object.label ?? "";
|
|
1964
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
1965
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
1966
|
+
message.salt = object.salt ?? new Uint8Array();
|
|
1967
|
+
message.fixMsg = object.fixMsg ?? false;
|
|
1968
|
+
return message;
|
|
1969
|
+
},
|
|
1970
|
+
fromAmino(object: MsgInstantiateContract2Amino): MsgInstantiateContract2 {
|
|
1971
|
+
const message = createBaseMsgInstantiateContract2();
|
|
1972
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
1973
|
+
message.sender = object.sender;
|
|
1974
|
+
}
|
|
1975
|
+
if (object.admin !== undefined && object.admin !== null) {
|
|
1976
|
+
message.admin = object.admin;
|
|
1977
|
+
}
|
|
1978
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
1979
|
+
message.codeId = BigInt(object.code_id);
|
|
1980
|
+
}
|
|
1981
|
+
if (object.label !== undefined && object.label !== null) {
|
|
1982
|
+
message.label = object.label;
|
|
1983
|
+
}
|
|
1984
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
1985
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
1986
|
+
}
|
|
1987
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
1988
|
+
if (object.salt !== undefined && object.salt !== null) {
|
|
1989
|
+
message.salt = bytesFromBase64(object.salt);
|
|
1990
|
+
}
|
|
1991
|
+
if (object.fix_msg !== undefined && object.fix_msg !== null) {
|
|
1992
|
+
message.fixMsg = object.fix_msg;
|
|
1993
|
+
}
|
|
1994
|
+
return message;
|
|
1995
|
+
},
|
|
1996
|
+
toAmino(message: MsgInstantiateContract2): MsgInstantiateContract2Amino {
|
|
1997
|
+
const obj: any = {};
|
|
1998
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1999
|
+
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
2000
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
2001
|
+
obj.label = message.label === "" ? undefined : message.label;
|
|
2002
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
2003
|
+
if (message.funds) {
|
|
2004
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
2005
|
+
} else {
|
|
2006
|
+
obj.funds = message.funds;
|
|
2007
|
+
}
|
|
2008
|
+
obj.salt = message.salt ? base64FromBytes(message.salt) : undefined;
|
|
2009
|
+
obj.fix_msg = message.fixMsg === false ? undefined : message.fixMsg;
|
|
2010
|
+
return obj;
|
|
2011
|
+
},
|
|
2012
|
+
fromAminoMsg(object: MsgInstantiateContract2AminoMsg): MsgInstantiateContract2 {
|
|
2013
|
+
return MsgInstantiateContract2.fromAmino(object.value);
|
|
2014
|
+
},
|
|
2015
|
+
toAminoMsg(message: MsgInstantiateContract2): MsgInstantiateContract2AminoMsg {
|
|
2016
|
+
return {
|
|
2017
|
+
type: "wasm/MsgInstantiateContract2",
|
|
2018
|
+
value: MsgInstantiateContract2.toAmino(message)
|
|
2019
|
+
};
|
|
2020
|
+
},
|
|
2021
|
+
fromProtoMsg(message: MsgInstantiateContract2ProtoMsg): MsgInstantiateContract2 {
|
|
2022
|
+
return MsgInstantiateContract2.decode(message.value);
|
|
2023
|
+
},
|
|
2024
|
+
toProto(message: MsgInstantiateContract2): Uint8Array {
|
|
2025
|
+
return MsgInstantiateContract2.encode(message).finish();
|
|
2026
|
+
},
|
|
2027
|
+
toProtoMsg(message: MsgInstantiateContract2): MsgInstantiateContract2ProtoMsg {
|
|
2028
|
+
return {
|
|
2029
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2",
|
|
2030
|
+
value: MsgInstantiateContract2.encode(message).finish()
|
|
2031
|
+
};
|
|
2032
|
+
}
|
|
2033
|
+
};
|
|
2034
|
+
function createBaseMsgInstantiateContract2Response(): MsgInstantiateContract2Response {
|
|
2035
|
+
return {
|
|
2036
|
+
address: "",
|
|
2037
|
+
data: new Uint8Array()
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
export const MsgInstantiateContract2Response = {
|
|
2041
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response",
|
|
2042
|
+
encode(message: MsgInstantiateContract2Response, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2043
|
+
if (message.address !== "") {
|
|
2044
|
+
writer.uint32(10).string(message.address);
|
|
2045
|
+
}
|
|
2046
|
+
if (message.data.length !== 0) {
|
|
2047
|
+
writer.uint32(18).bytes(message.data);
|
|
2048
|
+
}
|
|
2049
|
+
return writer;
|
|
2050
|
+
},
|
|
2051
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContract2Response {
|
|
2052
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2053
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2054
|
+
const message = createBaseMsgInstantiateContract2Response();
|
|
2055
|
+
while (reader.pos < end) {
|
|
2056
|
+
const tag = reader.uint32();
|
|
2057
|
+
switch (tag >>> 3) {
|
|
2058
|
+
case 1:
|
|
2059
|
+
message.address = reader.string();
|
|
2060
|
+
break;
|
|
2061
|
+
case 2:
|
|
2062
|
+
message.data = reader.bytes();
|
|
2063
|
+
break;
|
|
2064
|
+
default:
|
|
2065
|
+
reader.skipType(tag & 7);
|
|
2066
|
+
break;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
return message;
|
|
2070
|
+
},
|
|
2071
|
+
fromPartial(object: Partial<MsgInstantiateContract2Response>): MsgInstantiateContract2Response {
|
|
2072
|
+
const message = createBaseMsgInstantiateContract2Response();
|
|
2073
|
+
message.address = object.address ?? "";
|
|
2074
|
+
message.data = object.data ?? new Uint8Array();
|
|
2075
|
+
return message;
|
|
2076
|
+
},
|
|
2077
|
+
fromAmino(object: MsgInstantiateContract2ResponseAmino): MsgInstantiateContract2Response {
|
|
2078
|
+
const message = createBaseMsgInstantiateContract2Response();
|
|
2079
|
+
if (object.address !== undefined && object.address !== null) {
|
|
2080
|
+
message.address = object.address;
|
|
2081
|
+
}
|
|
2082
|
+
if (object.data !== undefined && object.data !== null) {
|
|
2083
|
+
message.data = bytesFromBase64(object.data);
|
|
2084
|
+
}
|
|
2085
|
+
return message;
|
|
2086
|
+
},
|
|
2087
|
+
toAmino(message: MsgInstantiateContract2Response): MsgInstantiateContract2ResponseAmino {
|
|
2088
|
+
const obj: any = {};
|
|
2089
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
2090
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
2091
|
+
return obj;
|
|
2092
|
+
},
|
|
2093
|
+
fromAminoMsg(object: MsgInstantiateContract2ResponseAminoMsg): MsgInstantiateContract2Response {
|
|
2094
|
+
return MsgInstantiateContract2Response.fromAmino(object.value);
|
|
2095
|
+
},
|
|
2096
|
+
toAminoMsg(message: MsgInstantiateContract2Response): MsgInstantiateContract2ResponseAminoMsg {
|
|
2097
|
+
return {
|
|
2098
|
+
type: "wasm/MsgInstantiateContract2Response",
|
|
2099
|
+
value: MsgInstantiateContract2Response.toAmino(message)
|
|
2100
|
+
};
|
|
2101
|
+
},
|
|
2102
|
+
fromProtoMsg(message: MsgInstantiateContract2ResponseProtoMsg): MsgInstantiateContract2Response {
|
|
2103
|
+
return MsgInstantiateContract2Response.decode(message.value);
|
|
2104
|
+
},
|
|
2105
|
+
toProto(message: MsgInstantiateContract2Response): Uint8Array {
|
|
2106
|
+
return MsgInstantiateContract2Response.encode(message).finish();
|
|
2107
|
+
},
|
|
2108
|
+
toProtoMsg(message: MsgInstantiateContract2Response): MsgInstantiateContract2ResponseProtoMsg {
|
|
2109
|
+
return {
|
|
2110
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response",
|
|
2111
|
+
value: MsgInstantiateContract2Response.encode(message).finish()
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2114
|
+
};
|
|
2115
|
+
function createBaseMsgExecuteContract(): MsgExecuteContract {
|
|
2116
|
+
return {
|
|
2117
|
+
sender: "",
|
|
2118
|
+
contract: "",
|
|
2119
|
+
msg: new Uint8Array(),
|
|
2120
|
+
funds: []
|
|
2121
|
+
};
|
|
2122
|
+
}
|
|
2123
|
+
export const MsgExecuteContract = {
|
|
2124
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
2125
|
+
encode(message: MsgExecuteContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2126
|
+
if (message.sender !== "") {
|
|
2127
|
+
writer.uint32(10).string(message.sender);
|
|
2128
|
+
}
|
|
2129
|
+
if (message.contract !== "") {
|
|
2130
|
+
writer.uint32(18).string(message.contract);
|
|
2131
|
+
}
|
|
2132
|
+
if (message.msg.length !== 0) {
|
|
2133
|
+
writer.uint32(26).bytes(message.msg);
|
|
2134
|
+
}
|
|
2135
|
+
for (const v of message.funds) {
|
|
2136
|
+
Coin.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
2137
|
+
}
|
|
2138
|
+
return writer;
|
|
2139
|
+
},
|
|
2140
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgExecuteContract {
|
|
2141
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2142
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2143
|
+
const message = createBaseMsgExecuteContract();
|
|
2144
|
+
while (reader.pos < end) {
|
|
2145
|
+
const tag = reader.uint32();
|
|
2146
|
+
switch (tag >>> 3) {
|
|
2147
|
+
case 1:
|
|
2148
|
+
message.sender = reader.string();
|
|
2149
|
+
break;
|
|
2150
|
+
case 2:
|
|
2151
|
+
message.contract = reader.string();
|
|
2152
|
+
break;
|
|
2153
|
+
case 3:
|
|
2154
|
+
message.msg = reader.bytes();
|
|
2155
|
+
break;
|
|
2156
|
+
case 5:
|
|
2157
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
2158
|
+
break;
|
|
2159
|
+
default:
|
|
2160
|
+
reader.skipType(tag & 7);
|
|
2161
|
+
break;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
return message;
|
|
2165
|
+
},
|
|
2166
|
+
fromPartial(object: Partial<MsgExecuteContract>): MsgExecuteContract {
|
|
2167
|
+
const message = createBaseMsgExecuteContract();
|
|
2168
|
+
message.sender = object.sender ?? "";
|
|
2169
|
+
message.contract = object.contract ?? "";
|
|
2170
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
2171
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
2172
|
+
return message;
|
|
2173
|
+
},
|
|
2174
|
+
fromAmino(object: MsgExecuteContractAmino): MsgExecuteContract {
|
|
2175
|
+
const message = createBaseMsgExecuteContract();
|
|
2176
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
2177
|
+
message.sender = object.sender;
|
|
2178
|
+
}
|
|
2179
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
2180
|
+
message.contract = object.contract;
|
|
2181
|
+
}
|
|
2182
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
2183
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
2184
|
+
}
|
|
2185
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
2186
|
+
return message;
|
|
2187
|
+
},
|
|
2188
|
+
toAmino(message: MsgExecuteContract): MsgExecuteContractAmino {
|
|
2189
|
+
const obj: any = {};
|
|
2190
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
2191
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
2192
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
2193
|
+
if (message.funds) {
|
|
2194
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
2195
|
+
} else {
|
|
2196
|
+
obj.funds = message.funds;
|
|
2197
|
+
}
|
|
2198
|
+
return obj;
|
|
2199
|
+
},
|
|
2200
|
+
fromAminoMsg(object: MsgExecuteContractAminoMsg): MsgExecuteContract {
|
|
2201
|
+
return MsgExecuteContract.fromAmino(object.value);
|
|
2202
|
+
},
|
|
2203
|
+
toAminoMsg(message: MsgExecuteContract): MsgExecuteContractAminoMsg {
|
|
2204
|
+
return {
|
|
2205
|
+
type: "wasm/MsgExecuteContract",
|
|
2206
|
+
value: MsgExecuteContract.toAmino(message)
|
|
2207
|
+
};
|
|
2208
|
+
},
|
|
2209
|
+
fromProtoMsg(message: MsgExecuteContractProtoMsg): MsgExecuteContract {
|
|
2210
|
+
return MsgExecuteContract.decode(message.value);
|
|
2211
|
+
},
|
|
2212
|
+
toProto(message: MsgExecuteContract): Uint8Array {
|
|
2213
|
+
return MsgExecuteContract.encode(message).finish();
|
|
2214
|
+
},
|
|
2215
|
+
toProtoMsg(message: MsgExecuteContract): MsgExecuteContractProtoMsg {
|
|
2216
|
+
return {
|
|
2217
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
2218
|
+
value: MsgExecuteContract.encode(message).finish()
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
};
|
|
2222
|
+
function createBaseMsgExecuteContractResponse(): MsgExecuteContractResponse {
|
|
2223
|
+
return {
|
|
2224
|
+
data: new Uint8Array()
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
export const MsgExecuteContractResponse = {
|
|
2228
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse",
|
|
2229
|
+
encode(message: MsgExecuteContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2230
|
+
if (message.data.length !== 0) {
|
|
2231
|
+
writer.uint32(10).bytes(message.data);
|
|
2232
|
+
}
|
|
2233
|
+
return writer;
|
|
2234
|
+
},
|
|
2235
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgExecuteContractResponse {
|
|
2236
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2237
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2238
|
+
const message = createBaseMsgExecuteContractResponse();
|
|
2239
|
+
while (reader.pos < end) {
|
|
2240
|
+
const tag = reader.uint32();
|
|
2241
|
+
switch (tag >>> 3) {
|
|
2242
|
+
case 1:
|
|
2243
|
+
message.data = reader.bytes();
|
|
2244
|
+
break;
|
|
2245
|
+
default:
|
|
2246
|
+
reader.skipType(tag & 7);
|
|
2247
|
+
break;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
return message;
|
|
2251
|
+
},
|
|
2252
|
+
fromPartial(object: Partial<MsgExecuteContractResponse>): MsgExecuteContractResponse {
|
|
2253
|
+
const message = createBaseMsgExecuteContractResponse();
|
|
2254
|
+
message.data = object.data ?? new Uint8Array();
|
|
2255
|
+
return message;
|
|
2256
|
+
},
|
|
2257
|
+
fromAmino(object: MsgExecuteContractResponseAmino): MsgExecuteContractResponse {
|
|
2258
|
+
const message = createBaseMsgExecuteContractResponse();
|
|
2259
|
+
if (object.data !== undefined && object.data !== null) {
|
|
2260
|
+
message.data = bytesFromBase64(object.data);
|
|
2261
|
+
}
|
|
2262
|
+
return message;
|
|
2263
|
+
},
|
|
2264
|
+
toAmino(message: MsgExecuteContractResponse): MsgExecuteContractResponseAmino {
|
|
2265
|
+
const obj: any = {};
|
|
2266
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
2267
|
+
return obj;
|
|
2268
|
+
},
|
|
2269
|
+
fromAminoMsg(object: MsgExecuteContractResponseAminoMsg): MsgExecuteContractResponse {
|
|
2270
|
+
return MsgExecuteContractResponse.fromAmino(object.value);
|
|
2271
|
+
},
|
|
2272
|
+
toAminoMsg(message: MsgExecuteContractResponse): MsgExecuteContractResponseAminoMsg {
|
|
2273
|
+
return {
|
|
2274
|
+
type: "wasm/MsgExecuteContractResponse",
|
|
2275
|
+
value: MsgExecuteContractResponse.toAmino(message)
|
|
2276
|
+
};
|
|
2277
|
+
},
|
|
2278
|
+
fromProtoMsg(message: MsgExecuteContractResponseProtoMsg): MsgExecuteContractResponse {
|
|
2279
|
+
return MsgExecuteContractResponse.decode(message.value);
|
|
2280
|
+
},
|
|
2281
|
+
toProto(message: MsgExecuteContractResponse): Uint8Array {
|
|
2282
|
+
return MsgExecuteContractResponse.encode(message).finish();
|
|
2283
|
+
},
|
|
2284
|
+
toProtoMsg(message: MsgExecuteContractResponse): MsgExecuteContractResponseProtoMsg {
|
|
2285
|
+
return {
|
|
2286
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse",
|
|
2287
|
+
value: MsgExecuteContractResponse.encode(message).finish()
|
|
2288
|
+
};
|
|
2289
|
+
}
|
|
2290
|
+
};
|
|
2291
|
+
function createBaseMsgMigrateContract(): MsgMigrateContract {
|
|
2292
|
+
return {
|
|
2293
|
+
sender: "",
|
|
2294
|
+
contract: "",
|
|
2295
|
+
codeId: BigInt(0),
|
|
2296
|
+
msg: new Uint8Array()
|
|
2297
|
+
};
|
|
2298
|
+
}
|
|
2299
|
+
export const MsgMigrateContract = {
|
|
2300
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract",
|
|
2301
|
+
encode(message: MsgMigrateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2302
|
+
if (message.sender !== "") {
|
|
2303
|
+
writer.uint32(10).string(message.sender);
|
|
2304
|
+
}
|
|
2305
|
+
if (message.contract !== "") {
|
|
2306
|
+
writer.uint32(18).string(message.contract);
|
|
2307
|
+
}
|
|
2308
|
+
if (message.codeId !== BigInt(0)) {
|
|
2309
|
+
writer.uint32(24).uint64(message.codeId);
|
|
2310
|
+
}
|
|
2311
|
+
if (message.msg.length !== 0) {
|
|
2312
|
+
writer.uint32(34).bytes(message.msg);
|
|
2313
|
+
}
|
|
2314
|
+
return writer;
|
|
2315
|
+
},
|
|
2316
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContract {
|
|
2317
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2318
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2319
|
+
const message = createBaseMsgMigrateContract();
|
|
2320
|
+
while (reader.pos < end) {
|
|
2321
|
+
const tag = reader.uint32();
|
|
2322
|
+
switch (tag >>> 3) {
|
|
2323
|
+
case 1:
|
|
2324
|
+
message.sender = reader.string();
|
|
2325
|
+
break;
|
|
2326
|
+
case 2:
|
|
2327
|
+
message.contract = reader.string();
|
|
2328
|
+
break;
|
|
2329
|
+
case 3:
|
|
2330
|
+
message.codeId = reader.uint64();
|
|
2331
|
+
break;
|
|
2332
|
+
case 4:
|
|
2333
|
+
message.msg = reader.bytes();
|
|
2334
|
+
break;
|
|
2335
|
+
default:
|
|
2336
|
+
reader.skipType(tag & 7);
|
|
2337
|
+
break;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
return message;
|
|
2341
|
+
},
|
|
2342
|
+
fromPartial(object: Partial<MsgMigrateContract>): MsgMigrateContract {
|
|
2343
|
+
const message = createBaseMsgMigrateContract();
|
|
2344
|
+
message.sender = object.sender ?? "";
|
|
2345
|
+
message.contract = object.contract ?? "";
|
|
2346
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
2347
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
2348
|
+
return message;
|
|
2349
|
+
},
|
|
2350
|
+
fromAmino(object: MsgMigrateContractAmino): MsgMigrateContract {
|
|
2351
|
+
const message = createBaseMsgMigrateContract();
|
|
2352
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
2353
|
+
message.sender = object.sender;
|
|
2354
|
+
}
|
|
2355
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
2356
|
+
message.contract = object.contract;
|
|
2357
|
+
}
|
|
2358
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
2359
|
+
message.codeId = BigInt(object.code_id);
|
|
2360
|
+
}
|
|
2361
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
2362
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
2363
|
+
}
|
|
2364
|
+
return message;
|
|
2365
|
+
},
|
|
2366
|
+
toAmino(message: MsgMigrateContract): MsgMigrateContractAmino {
|
|
2367
|
+
const obj: any = {};
|
|
2368
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
2369
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
2370
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
2371
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
2372
|
+
return obj;
|
|
2373
|
+
},
|
|
2374
|
+
fromAminoMsg(object: MsgMigrateContractAminoMsg): MsgMigrateContract {
|
|
2375
|
+
return MsgMigrateContract.fromAmino(object.value);
|
|
2376
|
+
},
|
|
2377
|
+
toAminoMsg(message: MsgMigrateContract): MsgMigrateContractAminoMsg {
|
|
2378
|
+
return {
|
|
2379
|
+
type: "wasm/MsgMigrateContract",
|
|
2380
|
+
value: MsgMigrateContract.toAmino(message)
|
|
2381
|
+
};
|
|
2382
|
+
},
|
|
2383
|
+
fromProtoMsg(message: MsgMigrateContractProtoMsg): MsgMigrateContract {
|
|
2384
|
+
return MsgMigrateContract.decode(message.value);
|
|
2385
|
+
},
|
|
2386
|
+
toProto(message: MsgMigrateContract): Uint8Array {
|
|
2387
|
+
return MsgMigrateContract.encode(message).finish();
|
|
2388
|
+
},
|
|
2389
|
+
toProtoMsg(message: MsgMigrateContract): MsgMigrateContractProtoMsg {
|
|
2390
|
+
return {
|
|
2391
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract",
|
|
2392
|
+
value: MsgMigrateContract.encode(message).finish()
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
};
|
|
2396
|
+
function createBaseMsgMigrateContractResponse(): MsgMigrateContractResponse {
|
|
2397
|
+
return {
|
|
2398
|
+
data: new Uint8Array()
|
|
2399
|
+
};
|
|
2400
|
+
}
|
|
2401
|
+
export const MsgMigrateContractResponse = {
|
|
2402
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse",
|
|
2403
|
+
encode(message: MsgMigrateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2404
|
+
if (message.data.length !== 0) {
|
|
2405
|
+
writer.uint32(10).bytes(message.data);
|
|
2406
|
+
}
|
|
2407
|
+
return writer;
|
|
2408
|
+
},
|
|
2409
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContractResponse {
|
|
2410
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2411
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2412
|
+
const message = createBaseMsgMigrateContractResponse();
|
|
2413
|
+
while (reader.pos < end) {
|
|
2414
|
+
const tag = reader.uint32();
|
|
2415
|
+
switch (tag >>> 3) {
|
|
2416
|
+
case 1:
|
|
2417
|
+
message.data = reader.bytes();
|
|
2418
|
+
break;
|
|
2419
|
+
default:
|
|
2420
|
+
reader.skipType(tag & 7);
|
|
2421
|
+
break;
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
return message;
|
|
2425
|
+
},
|
|
2426
|
+
fromPartial(object: Partial<MsgMigrateContractResponse>): MsgMigrateContractResponse {
|
|
2427
|
+
const message = createBaseMsgMigrateContractResponse();
|
|
2428
|
+
message.data = object.data ?? new Uint8Array();
|
|
2429
|
+
return message;
|
|
2430
|
+
},
|
|
2431
|
+
fromAmino(object: MsgMigrateContractResponseAmino): MsgMigrateContractResponse {
|
|
2432
|
+
const message = createBaseMsgMigrateContractResponse();
|
|
2433
|
+
if (object.data !== undefined && object.data !== null) {
|
|
2434
|
+
message.data = bytesFromBase64(object.data);
|
|
2435
|
+
}
|
|
2436
|
+
return message;
|
|
2437
|
+
},
|
|
2438
|
+
toAmino(message: MsgMigrateContractResponse): MsgMigrateContractResponseAmino {
|
|
2439
|
+
const obj: any = {};
|
|
2440
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
2441
|
+
return obj;
|
|
2442
|
+
},
|
|
2443
|
+
fromAminoMsg(object: MsgMigrateContractResponseAminoMsg): MsgMigrateContractResponse {
|
|
2444
|
+
return MsgMigrateContractResponse.fromAmino(object.value);
|
|
2445
|
+
},
|
|
2446
|
+
toAminoMsg(message: MsgMigrateContractResponse): MsgMigrateContractResponseAminoMsg {
|
|
2447
|
+
return {
|
|
2448
|
+
type: "wasm/MsgMigrateContractResponse",
|
|
2449
|
+
value: MsgMigrateContractResponse.toAmino(message)
|
|
2450
|
+
};
|
|
2451
|
+
},
|
|
2452
|
+
fromProtoMsg(message: MsgMigrateContractResponseProtoMsg): MsgMigrateContractResponse {
|
|
2453
|
+
return MsgMigrateContractResponse.decode(message.value);
|
|
2454
|
+
},
|
|
2455
|
+
toProto(message: MsgMigrateContractResponse): Uint8Array {
|
|
2456
|
+
return MsgMigrateContractResponse.encode(message).finish();
|
|
2457
|
+
},
|
|
2458
|
+
toProtoMsg(message: MsgMigrateContractResponse): MsgMigrateContractResponseProtoMsg {
|
|
2459
|
+
return {
|
|
2460
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse",
|
|
2461
|
+
value: MsgMigrateContractResponse.encode(message).finish()
|
|
2462
|
+
};
|
|
2463
|
+
}
|
|
2464
|
+
};
|
|
2465
|
+
function createBaseMsgUpdateAdmin(): MsgUpdateAdmin {
|
|
2466
|
+
return {
|
|
2467
|
+
sender: "",
|
|
2468
|
+
newAdmin: "",
|
|
2469
|
+
contract: ""
|
|
2470
|
+
};
|
|
2471
|
+
}
|
|
2472
|
+
export const MsgUpdateAdmin = {
|
|
2473
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin",
|
|
2474
|
+
encode(message: MsgUpdateAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2475
|
+
if (message.sender !== "") {
|
|
2476
|
+
writer.uint32(10).string(message.sender);
|
|
2477
|
+
}
|
|
2478
|
+
if (message.newAdmin !== "") {
|
|
2479
|
+
writer.uint32(18).string(message.newAdmin);
|
|
2480
|
+
}
|
|
2481
|
+
if (message.contract !== "") {
|
|
2482
|
+
writer.uint32(26).string(message.contract);
|
|
2483
|
+
}
|
|
2484
|
+
return writer;
|
|
2485
|
+
},
|
|
2486
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateAdmin {
|
|
2487
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2488
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2489
|
+
const message = createBaseMsgUpdateAdmin();
|
|
2490
|
+
while (reader.pos < end) {
|
|
2491
|
+
const tag = reader.uint32();
|
|
2492
|
+
switch (tag >>> 3) {
|
|
2493
|
+
case 1:
|
|
2494
|
+
message.sender = reader.string();
|
|
2495
|
+
break;
|
|
2496
|
+
case 2:
|
|
2497
|
+
message.newAdmin = reader.string();
|
|
2498
|
+
break;
|
|
2499
|
+
case 3:
|
|
2500
|
+
message.contract = reader.string();
|
|
2501
|
+
break;
|
|
2502
|
+
default:
|
|
2503
|
+
reader.skipType(tag & 7);
|
|
2504
|
+
break;
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
return message;
|
|
2508
|
+
},
|
|
2509
|
+
fromPartial(object: Partial<MsgUpdateAdmin>): MsgUpdateAdmin {
|
|
2510
|
+
const message = createBaseMsgUpdateAdmin();
|
|
2511
|
+
message.sender = object.sender ?? "";
|
|
2512
|
+
message.newAdmin = object.newAdmin ?? "";
|
|
2513
|
+
message.contract = object.contract ?? "";
|
|
2514
|
+
return message;
|
|
2515
|
+
},
|
|
2516
|
+
fromAmino(object: MsgUpdateAdminAmino): MsgUpdateAdmin {
|
|
2517
|
+
const message = createBaseMsgUpdateAdmin();
|
|
2518
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
2519
|
+
message.sender = object.sender;
|
|
2520
|
+
}
|
|
2521
|
+
if (object.new_admin !== undefined && object.new_admin !== null) {
|
|
2522
|
+
message.newAdmin = object.new_admin;
|
|
2523
|
+
}
|
|
2524
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
2525
|
+
message.contract = object.contract;
|
|
2526
|
+
}
|
|
2527
|
+
return message;
|
|
2528
|
+
},
|
|
2529
|
+
toAmino(message: MsgUpdateAdmin): MsgUpdateAdminAmino {
|
|
2530
|
+
const obj: any = {};
|
|
2531
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
2532
|
+
obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
|
|
2533
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
2534
|
+
return obj;
|
|
2535
|
+
},
|
|
2536
|
+
fromAminoMsg(object: MsgUpdateAdminAminoMsg): MsgUpdateAdmin {
|
|
2537
|
+
return MsgUpdateAdmin.fromAmino(object.value);
|
|
2538
|
+
},
|
|
2539
|
+
toAminoMsg(message: MsgUpdateAdmin): MsgUpdateAdminAminoMsg {
|
|
2540
|
+
return {
|
|
2541
|
+
type: "wasm/MsgUpdateAdmin",
|
|
2542
|
+
value: MsgUpdateAdmin.toAmino(message)
|
|
2543
|
+
};
|
|
2544
|
+
},
|
|
2545
|
+
fromProtoMsg(message: MsgUpdateAdminProtoMsg): MsgUpdateAdmin {
|
|
2546
|
+
return MsgUpdateAdmin.decode(message.value);
|
|
2547
|
+
},
|
|
2548
|
+
toProto(message: MsgUpdateAdmin): Uint8Array {
|
|
2549
|
+
return MsgUpdateAdmin.encode(message).finish();
|
|
2550
|
+
},
|
|
2551
|
+
toProtoMsg(message: MsgUpdateAdmin): MsgUpdateAdminProtoMsg {
|
|
2552
|
+
return {
|
|
2553
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin",
|
|
2554
|
+
value: MsgUpdateAdmin.encode(message).finish()
|
|
2555
|
+
};
|
|
2556
|
+
}
|
|
2557
|
+
};
|
|
2558
|
+
function createBaseMsgUpdateAdminResponse(): MsgUpdateAdminResponse {
|
|
2559
|
+
return {};
|
|
2560
|
+
}
|
|
2561
|
+
export const MsgUpdateAdminResponse = {
|
|
2562
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse",
|
|
2563
|
+
encode(_: MsgUpdateAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2564
|
+
return writer;
|
|
2565
|
+
},
|
|
2566
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateAdminResponse {
|
|
2567
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2568
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2569
|
+
const message = createBaseMsgUpdateAdminResponse();
|
|
2570
|
+
while (reader.pos < end) {
|
|
2571
|
+
const tag = reader.uint32();
|
|
2572
|
+
switch (tag >>> 3) {
|
|
2573
|
+
default:
|
|
2574
|
+
reader.skipType(tag & 7);
|
|
2575
|
+
break;
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
return message;
|
|
2579
|
+
},
|
|
2580
|
+
fromPartial(_: Partial<MsgUpdateAdminResponse>): MsgUpdateAdminResponse {
|
|
2581
|
+
const message = createBaseMsgUpdateAdminResponse();
|
|
2582
|
+
return message;
|
|
2583
|
+
},
|
|
2584
|
+
fromAmino(_: MsgUpdateAdminResponseAmino): MsgUpdateAdminResponse {
|
|
2585
|
+
const message = createBaseMsgUpdateAdminResponse();
|
|
2586
|
+
return message;
|
|
2587
|
+
},
|
|
2588
|
+
toAmino(_: MsgUpdateAdminResponse): MsgUpdateAdminResponseAmino {
|
|
2589
|
+
const obj: any = {};
|
|
2590
|
+
return obj;
|
|
2591
|
+
},
|
|
2592
|
+
fromAminoMsg(object: MsgUpdateAdminResponseAminoMsg): MsgUpdateAdminResponse {
|
|
2593
|
+
return MsgUpdateAdminResponse.fromAmino(object.value);
|
|
2594
|
+
},
|
|
2595
|
+
toAminoMsg(message: MsgUpdateAdminResponse): MsgUpdateAdminResponseAminoMsg {
|
|
2596
|
+
return {
|
|
2597
|
+
type: "wasm/MsgUpdateAdminResponse",
|
|
2598
|
+
value: MsgUpdateAdminResponse.toAmino(message)
|
|
2599
|
+
};
|
|
2600
|
+
},
|
|
2601
|
+
fromProtoMsg(message: MsgUpdateAdminResponseProtoMsg): MsgUpdateAdminResponse {
|
|
2602
|
+
return MsgUpdateAdminResponse.decode(message.value);
|
|
2603
|
+
},
|
|
2604
|
+
toProto(message: MsgUpdateAdminResponse): Uint8Array {
|
|
2605
|
+
return MsgUpdateAdminResponse.encode(message).finish();
|
|
2606
|
+
},
|
|
2607
|
+
toProtoMsg(message: MsgUpdateAdminResponse): MsgUpdateAdminResponseProtoMsg {
|
|
2608
|
+
return {
|
|
2609
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse",
|
|
2610
|
+
value: MsgUpdateAdminResponse.encode(message).finish()
|
|
2611
|
+
};
|
|
2612
|
+
}
|
|
2613
|
+
};
|
|
2614
|
+
function createBaseMsgClearAdmin(): MsgClearAdmin {
|
|
2615
|
+
return {
|
|
2616
|
+
sender: "",
|
|
2617
|
+
contract: ""
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
export const MsgClearAdmin = {
|
|
2621
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin",
|
|
2622
|
+
encode(message: MsgClearAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2623
|
+
if (message.sender !== "") {
|
|
2624
|
+
writer.uint32(10).string(message.sender);
|
|
2625
|
+
}
|
|
2626
|
+
if (message.contract !== "") {
|
|
2627
|
+
writer.uint32(26).string(message.contract);
|
|
2628
|
+
}
|
|
2629
|
+
return writer;
|
|
2630
|
+
},
|
|
2631
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgClearAdmin {
|
|
2632
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2633
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2634
|
+
const message = createBaseMsgClearAdmin();
|
|
2635
|
+
while (reader.pos < end) {
|
|
2636
|
+
const tag = reader.uint32();
|
|
2637
|
+
switch (tag >>> 3) {
|
|
2638
|
+
case 1:
|
|
2639
|
+
message.sender = reader.string();
|
|
2640
|
+
break;
|
|
2641
|
+
case 3:
|
|
2642
|
+
message.contract = reader.string();
|
|
2643
|
+
break;
|
|
2644
|
+
default:
|
|
2645
|
+
reader.skipType(tag & 7);
|
|
2646
|
+
break;
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
return message;
|
|
2650
|
+
},
|
|
2651
|
+
fromPartial(object: Partial<MsgClearAdmin>): MsgClearAdmin {
|
|
2652
|
+
const message = createBaseMsgClearAdmin();
|
|
2653
|
+
message.sender = object.sender ?? "";
|
|
2654
|
+
message.contract = object.contract ?? "";
|
|
2655
|
+
return message;
|
|
2656
|
+
},
|
|
2657
|
+
fromAmino(object: MsgClearAdminAmino): MsgClearAdmin {
|
|
2658
|
+
const message = createBaseMsgClearAdmin();
|
|
2659
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
2660
|
+
message.sender = object.sender;
|
|
2661
|
+
}
|
|
2662
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
2663
|
+
message.contract = object.contract;
|
|
2664
|
+
}
|
|
2665
|
+
return message;
|
|
2666
|
+
},
|
|
2667
|
+
toAmino(message: MsgClearAdmin): MsgClearAdminAmino {
|
|
2668
|
+
const obj: any = {};
|
|
2669
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
2670
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
2671
|
+
return obj;
|
|
2672
|
+
},
|
|
2673
|
+
fromAminoMsg(object: MsgClearAdminAminoMsg): MsgClearAdmin {
|
|
2674
|
+
return MsgClearAdmin.fromAmino(object.value);
|
|
2675
|
+
},
|
|
2676
|
+
toAminoMsg(message: MsgClearAdmin): MsgClearAdminAminoMsg {
|
|
2677
|
+
return {
|
|
2678
|
+
type: "wasm/MsgClearAdmin",
|
|
2679
|
+
value: MsgClearAdmin.toAmino(message)
|
|
2680
|
+
};
|
|
2681
|
+
},
|
|
2682
|
+
fromProtoMsg(message: MsgClearAdminProtoMsg): MsgClearAdmin {
|
|
2683
|
+
return MsgClearAdmin.decode(message.value);
|
|
2684
|
+
},
|
|
2685
|
+
toProto(message: MsgClearAdmin): Uint8Array {
|
|
2686
|
+
return MsgClearAdmin.encode(message).finish();
|
|
2687
|
+
},
|
|
2688
|
+
toProtoMsg(message: MsgClearAdmin): MsgClearAdminProtoMsg {
|
|
2689
|
+
return {
|
|
2690
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin",
|
|
2691
|
+
value: MsgClearAdmin.encode(message).finish()
|
|
2692
|
+
};
|
|
2693
|
+
}
|
|
2694
|
+
};
|
|
2695
|
+
function createBaseMsgClearAdminResponse(): MsgClearAdminResponse {
|
|
2696
|
+
return {};
|
|
2697
|
+
}
|
|
2698
|
+
export const MsgClearAdminResponse = {
|
|
2699
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse",
|
|
2700
|
+
encode(_: MsgClearAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2701
|
+
return writer;
|
|
2702
|
+
},
|
|
2703
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgClearAdminResponse {
|
|
2704
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2705
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2706
|
+
const message = createBaseMsgClearAdminResponse();
|
|
2707
|
+
while (reader.pos < end) {
|
|
2708
|
+
const tag = reader.uint32();
|
|
2709
|
+
switch (tag >>> 3) {
|
|
2710
|
+
default:
|
|
2711
|
+
reader.skipType(tag & 7);
|
|
2712
|
+
break;
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
return message;
|
|
2716
|
+
},
|
|
2717
|
+
fromPartial(_: Partial<MsgClearAdminResponse>): MsgClearAdminResponse {
|
|
2718
|
+
const message = createBaseMsgClearAdminResponse();
|
|
2719
|
+
return message;
|
|
2720
|
+
},
|
|
2721
|
+
fromAmino(_: MsgClearAdminResponseAmino): MsgClearAdminResponse {
|
|
2722
|
+
const message = createBaseMsgClearAdminResponse();
|
|
2723
|
+
return message;
|
|
2724
|
+
},
|
|
2725
|
+
toAmino(_: MsgClearAdminResponse): MsgClearAdminResponseAmino {
|
|
2726
|
+
const obj: any = {};
|
|
2727
|
+
return obj;
|
|
2728
|
+
},
|
|
2729
|
+
fromAminoMsg(object: MsgClearAdminResponseAminoMsg): MsgClearAdminResponse {
|
|
2730
|
+
return MsgClearAdminResponse.fromAmino(object.value);
|
|
2731
|
+
},
|
|
2732
|
+
toAminoMsg(message: MsgClearAdminResponse): MsgClearAdminResponseAminoMsg {
|
|
2733
|
+
return {
|
|
2734
|
+
type: "wasm/MsgClearAdminResponse",
|
|
2735
|
+
value: MsgClearAdminResponse.toAmino(message)
|
|
2736
|
+
};
|
|
2737
|
+
},
|
|
2738
|
+
fromProtoMsg(message: MsgClearAdminResponseProtoMsg): MsgClearAdminResponse {
|
|
2739
|
+
return MsgClearAdminResponse.decode(message.value);
|
|
2740
|
+
},
|
|
2741
|
+
toProto(message: MsgClearAdminResponse): Uint8Array {
|
|
2742
|
+
return MsgClearAdminResponse.encode(message).finish();
|
|
2743
|
+
},
|
|
2744
|
+
toProtoMsg(message: MsgClearAdminResponse): MsgClearAdminResponseProtoMsg {
|
|
2745
|
+
return {
|
|
2746
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse",
|
|
2747
|
+
value: MsgClearAdminResponse.encode(message).finish()
|
|
2748
|
+
};
|
|
2749
|
+
}
|
|
2750
|
+
};
|
|
2751
|
+
function createBaseMsgUpdateInstantiateConfig(): MsgUpdateInstantiateConfig {
|
|
2752
|
+
return {
|
|
2753
|
+
sender: "",
|
|
2754
|
+
codeId: BigInt(0),
|
|
2755
|
+
newInstantiatePermission: undefined
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
2758
|
+
export const MsgUpdateInstantiateConfig = {
|
|
2759
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
|
|
2760
|
+
encode(message: MsgUpdateInstantiateConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2761
|
+
if (message.sender !== "") {
|
|
2762
|
+
writer.uint32(10).string(message.sender);
|
|
2763
|
+
}
|
|
2764
|
+
if (message.codeId !== BigInt(0)) {
|
|
2765
|
+
writer.uint32(16).uint64(message.codeId);
|
|
2766
|
+
}
|
|
2767
|
+
if (message.newInstantiatePermission !== undefined) {
|
|
2768
|
+
AccessConfig.encode(message.newInstantiatePermission, writer.uint32(26).fork()).ldelim();
|
|
2769
|
+
}
|
|
2770
|
+
return writer;
|
|
2771
|
+
},
|
|
2772
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateInstantiateConfig {
|
|
2773
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2774
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2775
|
+
const message = createBaseMsgUpdateInstantiateConfig();
|
|
2776
|
+
while (reader.pos < end) {
|
|
2777
|
+
const tag = reader.uint32();
|
|
2778
|
+
switch (tag >>> 3) {
|
|
2779
|
+
case 1:
|
|
2780
|
+
message.sender = reader.string();
|
|
2781
|
+
break;
|
|
2782
|
+
case 2:
|
|
2783
|
+
message.codeId = reader.uint64();
|
|
2784
|
+
break;
|
|
2785
|
+
case 3:
|
|
2786
|
+
message.newInstantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
2787
|
+
break;
|
|
2788
|
+
default:
|
|
2789
|
+
reader.skipType(tag & 7);
|
|
2790
|
+
break;
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
return message;
|
|
2794
|
+
},
|
|
2795
|
+
fromPartial(object: Partial<MsgUpdateInstantiateConfig>): MsgUpdateInstantiateConfig {
|
|
2796
|
+
const message = createBaseMsgUpdateInstantiateConfig();
|
|
2797
|
+
message.sender = object.sender ?? "";
|
|
2798
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
2799
|
+
message.newInstantiatePermission = object.newInstantiatePermission !== undefined && object.newInstantiatePermission !== null ? AccessConfig.fromPartial(object.newInstantiatePermission) : undefined;
|
|
2800
|
+
return message;
|
|
2801
|
+
},
|
|
2802
|
+
fromAmino(object: MsgUpdateInstantiateConfigAmino): MsgUpdateInstantiateConfig {
|
|
2803
|
+
const message = createBaseMsgUpdateInstantiateConfig();
|
|
2804
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
2805
|
+
message.sender = object.sender;
|
|
2806
|
+
}
|
|
2807
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
2808
|
+
message.codeId = BigInt(object.code_id);
|
|
2809
|
+
}
|
|
2810
|
+
if (object.new_instantiate_permission !== undefined && object.new_instantiate_permission !== null) {
|
|
2811
|
+
message.newInstantiatePermission = AccessConfig.fromAmino(object.new_instantiate_permission);
|
|
2812
|
+
}
|
|
2813
|
+
return message;
|
|
2814
|
+
},
|
|
2815
|
+
toAmino(message: MsgUpdateInstantiateConfig): MsgUpdateInstantiateConfigAmino {
|
|
2816
|
+
const obj: any = {};
|
|
2817
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
2818
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
2819
|
+
obj.new_instantiate_permission = message.newInstantiatePermission ? AccessConfig.toAmino(message.newInstantiatePermission) : undefined;
|
|
2820
|
+
return obj;
|
|
2821
|
+
},
|
|
2822
|
+
fromAminoMsg(object: MsgUpdateInstantiateConfigAminoMsg): MsgUpdateInstantiateConfig {
|
|
2823
|
+
return MsgUpdateInstantiateConfig.fromAmino(object.value);
|
|
2824
|
+
},
|
|
2825
|
+
toAminoMsg(message: MsgUpdateInstantiateConfig): MsgUpdateInstantiateConfigAminoMsg {
|
|
2826
|
+
return {
|
|
2827
|
+
type: "wasm/MsgUpdateInstantiateConfig",
|
|
2828
|
+
value: MsgUpdateInstantiateConfig.toAmino(message)
|
|
2829
|
+
};
|
|
2830
|
+
},
|
|
2831
|
+
fromProtoMsg(message: MsgUpdateInstantiateConfigProtoMsg): MsgUpdateInstantiateConfig {
|
|
2832
|
+
return MsgUpdateInstantiateConfig.decode(message.value);
|
|
2833
|
+
},
|
|
2834
|
+
toProto(message: MsgUpdateInstantiateConfig): Uint8Array {
|
|
2835
|
+
return MsgUpdateInstantiateConfig.encode(message).finish();
|
|
2836
|
+
},
|
|
2837
|
+
toProtoMsg(message: MsgUpdateInstantiateConfig): MsgUpdateInstantiateConfigProtoMsg {
|
|
2838
|
+
return {
|
|
2839
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
|
|
2840
|
+
value: MsgUpdateInstantiateConfig.encode(message).finish()
|
|
2841
|
+
};
|
|
2842
|
+
}
|
|
2843
|
+
};
|
|
2844
|
+
function createBaseMsgUpdateInstantiateConfigResponse(): MsgUpdateInstantiateConfigResponse {
|
|
2845
|
+
return {};
|
|
2846
|
+
}
|
|
2847
|
+
export const MsgUpdateInstantiateConfigResponse = {
|
|
2848
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse",
|
|
2849
|
+
encode(_: MsgUpdateInstantiateConfigResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2850
|
+
return writer;
|
|
2851
|
+
},
|
|
2852
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateInstantiateConfigResponse {
|
|
2853
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2854
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2855
|
+
const message = createBaseMsgUpdateInstantiateConfigResponse();
|
|
2856
|
+
while (reader.pos < end) {
|
|
2857
|
+
const tag = reader.uint32();
|
|
2858
|
+
switch (tag >>> 3) {
|
|
2859
|
+
default:
|
|
2860
|
+
reader.skipType(tag & 7);
|
|
2861
|
+
break;
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
return message;
|
|
2865
|
+
},
|
|
2866
|
+
fromPartial(_: Partial<MsgUpdateInstantiateConfigResponse>): MsgUpdateInstantiateConfigResponse {
|
|
2867
|
+
const message = createBaseMsgUpdateInstantiateConfigResponse();
|
|
2868
|
+
return message;
|
|
2869
|
+
},
|
|
2870
|
+
fromAmino(_: MsgUpdateInstantiateConfigResponseAmino): MsgUpdateInstantiateConfigResponse {
|
|
2871
|
+
const message = createBaseMsgUpdateInstantiateConfigResponse();
|
|
2872
|
+
return message;
|
|
2873
|
+
},
|
|
2874
|
+
toAmino(_: MsgUpdateInstantiateConfigResponse): MsgUpdateInstantiateConfigResponseAmino {
|
|
2875
|
+
const obj: any = {};
|
|
2876
|
+
return obj;
|
|
2877
|
+
},
|
|
2878
|
+
fromAminoMsg(object: MsgUpdateInstantiateConfigResponseAminoMsg): MsgUpdateInstantiateConfigResponse {
|
|
2879
|
+
return MsgUpdateInstantiateConfigResponse.fromAmino(object.value);
|
|
2880
|
+
},
|
|
2881
|
+
toAminoMsg(message: MsgUpdateInstantiateConfigResponse): MsgUpdateInstantiateConfigResponseAminoMsg {
|
|
2882
|
+
return {
|
|
2883
|
+
type: "wasm/MsgUpdateInstantiateConfigResponse",
|
|
2884
|
+
value: MsgUpdateInstantiateConfigResponse.toAmino(message)
|
|
2885
|
+
};
|
|
2886
|
+
},
|
|
2887
|
+
fromProtoMsg(message: MsgUpdateInstantiateConfigResponseProtoMsg): MsgUpdateInstantiateConfigResponse {
|
|
2888
|
+
return MsgUpdateInstantiateConfigResponse.decode(message.value);
|
|
2889
|
+
},
|
|
2890
|
+
toProto(message: MsgUpdateInstantiateConfigResponse): Uint8Array {
|
|
2891
|
+
return MsgUpdateInstantiateConfigResponse.encode(message).finish();
|
|
2892
|
+
},
|
|
2893
|
+
toProtoMsg(message: MsgUpdateInstantiateConfigResponse): MsgUpdateInstantiateConfigResponseProtoMsg {
|
|
2894
|
+
return {
|
|
2895
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse",
|
|
2896
|
+
value: MsgUpdateInstantiateConfigResponse.encode(message).finish()
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
};
|
|
2900
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
2901
|
+
return {
|
|
2902
|
+
authority: "",
|
|
2903
|
+
params: Params.fromPartial({})
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
export const MsgUpdateParams = {
|
|
2907
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams",
|
|
2908
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2909
|
+
if (message.authority !== "") {
|
|
2910
|
+
writer.uint32(10).string(message.authority);
|
|
2911
|
+
}
|
|
2912
|
+
if (message.params !== undefined) {
|
|
2913
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
2914
|
+
}
|
|
2915
|
+
return writer;
|
|
2916
|
+
},
|
|
2917
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
2918
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2919
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2920
|
+
const message = createBaseMsgUpdateParams();
|
|
2921
|
+
while (reader.pos < end) {
|
|
2922
|
+
const tag = reader.uint32();
|
|
2923
|
+
switch (tag >>> 3) {
|
|
2924
|
+
case 1:
|
|
2925
|
+
message.authority = reader.string();
|
|
2926
|
+
break;
|
|
2927
|
+
case 2:
|
|
2928
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
2929
|
+
break;
|
|
2930
|
+
default:
|
|
2931
|
+
reader.skipType(tag & 7);
|
|
2932
|
+
break;
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
return message;
|
|
2936
|
+
},
|
|
2937
|
+
fromPartial(object: Partial<MsgUpdateParams>): MsgUpdateParams {
|
|
2938
|
+
const message = createBaseMsgUpdateParams();
|
|
2939
|
+
message.authority = object.authority ?? "";
|
|
2940
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
2941
|
+
return message;
|
|
2942
|
+
},
|
|
2943
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
2944
|
+
const message = createBaseMsgUpdateParams();
|
|
2945
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
2946
|
+
message.authority = object.authority;
|
|
2947
|
+
}
|
|
2948
|
+
if (object.params !== undefined && object.params !== null) {
|
|
2949
|
+
message.params = Params.fromAmino(object.params);
|
|
2950
|
+
}
|
|
2951
|
+
return message;
|
|
2952
|
+
},
|
|
2953
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
2954
|
+
const obj: any = {};
|
|
2955
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
2956
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
2957
|
+
return obj;
|
|
2958
|
+
},
|
|
2959
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
2960
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
2961
|
+
},
|
|
2962
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
2963
|
+
return {
|
|
2964
|
+
type: "wasm/MsgUpdateParams",
|
|
2965
|
+
value: MsgUpdateParams.toAmino(message)
|
|
2966
|
+
};
|
|
2967
|
+
},
|
|
2968
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
2969
|
+
return MsgUpdateParams.decode(message.value);
|
|
2970
|
+
},
|
|
2971
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
2972
|
+
return MsgUpdateParams.encode(message).finish();
|
|
2973
|
+
},
|
|
2974
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
2975
|
+
return {
|
|
2976
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams",
|
|
2977
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
2978
|
+
};
|
|
2979
|
+
}
|
|
2980
|
+
};
|
|
2981
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
2982
|
+
return {};
|
|
2983
|
+
}
|
|
2984
|
+
export const MsgUpdateParamsResponse = {
|
|
2985
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse",
|
|
2986
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2987
|
+
return writer;
|
|
2988
|
+
},
|
|
2989
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
2990
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2991
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2992
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
2993
|
+
while (reader.pos < end) {
|
|
2994
|
+
const tag = reader.uint32();
|
|
2995
|
+
switch (tag >>> 3) {
|
|
2996
|
+
default:
|
|
2997
|
+
reader.skipType(tag & 7);
|
|
2998
|
+
break;
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
return message;
|
|
3002
|
+
},
|
|
3003
|
+
fromPartial(_: Partial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
3004
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
3005
|
+
return message;
|
|
3006
|
+
},
|
|
3007
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
3008
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
3009
|
+
return message;
|
|
3010
|
+
},
|
|
3011
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
3012
|
+
const obj: any = {};
|
|
3013
|
+
return obj;
|
|
3014
|
+
},
|
|
3015
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
3016
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
3017
|
+
},
|
|
3018
|
+
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
|
|
3019
|
+
return {
|
|
3020
|
+
type: "wasm/MsgUpdateParamsResponse",
|
|
3021
|
+
value: MsgUpdateParamsResponse.toAmino(message)
|
|
3022
|
+
};
|
|
3023
|
+
},
|
|
3024
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
3025
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
3026
|
+
},
|
|
3027
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
3028
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
3029
|
+
},
|
|
3030
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
3031
|
+
return {
|
|
3032
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse",
|
|
3033
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
3034
|
+
};
|
|
3035
|
+
}
|
|
3036
|
+
};
|
|
3037
|
+
function createBaseMsgSudoContract(): MsgSudoContract {
|
|
3038
|
+
return {
|
|
3039
|
+
authority: "",
|
|
3040
|
+
contract: "",
|
|
3041
|
+
msg: new Uint8Array()
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
export const MsgSudoContract = {
|
|
3045
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract",
|
|
3046
|
+
encode(message: MsgSudoContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3047
|
+
if (message.authority !== "") {
|
|
3048
|
+
writer.uint32(10).string(message.authority);
|
|
3049
|
+
}
|
|
3050
|
+
if (message.contract !== "") {
|
|
3051
|
+
writer.uint32(18).string(message.contract);
|
|
3052
|
+
}
|
|
3053
|
+
if (message.msg.length !== 0) {
|
|
3054
|
+
writer.uint32(26).bytes(message.msg);
|
|
3055
|
+
}
|
|
3056
|
+
return writer;
|
|
3057
|
+
},
|
|
3058
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSudoContract {
|
|
3059
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3060
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3061
|
+
const message = createBaseMsgSudoContract();
|
|
3062
|
+
while (reader.pos < end) {
|
|
3063
|
+
const tag = reader.uint32();
|
|
3064
|
+
switch (tag >>> 3) {
|
|
3065
|
+
case 1:
|
|
3066
|
+
message.authority = reader.string();
|
|
3067
|
+
break;
|
|
3068
|
+
case 2:
|
|
3069
|
+
message.contract = reader.string();
|
|
3070
|
+
break;
|
|
3071
|
+
case 3:
|
|
3072
|
+
message.msg = reader.bytes();
|
|
3073
|
+
break;
|
|
3074
|
+
default:
|
|
3075
|
+
reader.skipType(tag & 7);
|
|
3076
|
+
break;
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
return message;
|
|
3080
|
+
},
|
|
3081
|
+
fromPartial(object: Partial<MsgSudoContract>): MsgSudoContract {
|
|
3082
|
+
const message = createBaseMsgSudoContract();
|
|
3083
|
+
message.authority = object.authority ?? "";
|
|
3084
|
+
message.contract = object.contract ?? "";
|
|
3085
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
3086
|
+
return message;
|
|
3087
|
+
},
|
|
3088
|
+
fromAmino(object: MsgSudoContractAmino): MsgSudoContract {
|
|
3089
|
+
const message = createBaseMsgSudoContract();
|
|
3090
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3091
|
+
message.authority = object.authority;
|
|
3092
|
+
}
|
|
3093
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
3094
|
+
message.contract = object.contract;
|
|
3095
|
+
}
|
|
3096
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3097
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
3098
|
+
}
|
|
3099
|
+
return message;
|
|
3100
|
+
},
|
|
3101
|
+
toAmino(message: MsgSudoContract): MsgSudoContractAmino {
|
|
3102
|
+
const obj: any = {};
|
|
3103
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3104
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
3105
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
3106
|
+
return obj;
|
|
3107
|
+
},
|
|
3108
|
+
fromAminoMsg(object: MsgSudoContractAminoMsg): MsgSudoContract {
|
|
3109
|
+
return MsgSudoContract.fromAmino(object.value);
|
|
3110
|
+
},
|
|
3111
|
+
toAminoMsg(message: MsgSudoContract): MsgSudoContractAminoMsg {
|
|
3112
|
+
return {
|
|
3113
|
+
type: "wasm/MsgSudoContract",
|
|
3114
|
+
value: MsgSudoContract.toAmino(message)
|
|
3115
|
+
};
|
|
3116
|
+
},
|
|
3117
|
+
fromProtoMsg(message: MsgSudoContractProtoMsg): MsgSudoContract {
|
|
3118
|
+
return MsgSudoContract.decode(message.value);
|
|
3119
|
+
},
|
|
3120
|
+
toProto(message: MsgSudoContract): Uint8Array {
|
|
3121
|
+
return MsgSudoContract.encode(message).finish();
|
|
3122
|
+
},
|
|
3123
|
+
toProtoMsg(message: MsgSudoContract): MsgSudoContractProtoMsg {
|
|
3124
|
+
return {
|
|
3125
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract",
|
|
3126
|
+
value: MsgSudoContract.encode(message).finish()
|
|
3127
|
+
};
|
|
3128
|
+
}
|
|
3129
|
+
};
|
|
3130
|
+
function createBaseMsgSudoContractResponse(): MsgSudoContractResponse {
|
|
3131
|
+
return {
|
|
3132
|
+
data: new Uint8Array()
|
|
3133
|
+
};
|
|
3134
|
+
}
|
|
3135
|
+
export const MsgSudoContractResponse = {
|
|
3136
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse",
|
|
3137
|
+
encode(message: MsgSudoContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3138
|
+
if (message.data.length !== 0) {
|
|
3139
|
+
writer.uint32(10).bytes(message.data);
|
|
3140
|
+
}
|
|
3141
|
+
return writer;
|
|
3142
|
+
},
|
|
3143
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSudoContractResponse {
|
|
3144
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3145
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3146
|
+
const message = createBaseMsgSudoContractResponse();
|
|
3147
|
+
while (reader.pos < end) {
|
|
3148
|
+
const tag = reader.uint32();
|
|
3149
|
+
switch (tag >>> 3) {
|
|
3150
|
+
case 1:
|
|
3151
|
+
message.data = reader.bytes();
|
|
3152
|
+
break;
|
|
3153
|
+
default:
|
|
3154
|
+
reader.skipType(tag & 7);
|
|
3155
|
+
break;
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
return message;
|
|
3159
|
+
},
|
|
3160
|
+
fromPartial(object: Partial<MsgSudoContractResponse>): MsgSudoContractResponse {
|
|
3161
|
+
const message = createBaseMsgSudoContractResponse();
|
|
3162
|
+
message.data = object.data ?? new Uint8Array();
|
|
3163
|
+
return message;
|
|
3164
|
+
},
|
|
3165
|
+
fromAmino(object: MsgSudoContractResponseAmino): MsgSudoContractResponse {
|
|
3166
|
+
const message = createBaseMsgSudoContractResponse();
|
|
3167
|
+
if (object.data !== undefined && object.data !== null) {
|
|
3168
|
+
message.data = bytesFromBase64(object.data);
|
|
3169
|
+
}
|
|
3170
|
+
return message;
|
|
3171
|
+
},
|
|
3172
|
+
toAmino(message: MsgSudoContractResponse): MsgSudoContractResponseAmino {
|
|
3173
|
+
const obj: any = {};
|
|
3174
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
3175
|
+
return obj;
|
|
3176
|
+
},
|
|
3177
|
+
fromAminoMsg(object: MsgSudoContractResponseAminoMsg): MsgSudoContractResponse {
|
|
3178
|
+
return MsgSudoContractResponse.fromAmino(object.value);
|
|
3179
|
+
},
|
|
3180
|
+
toAminoMsg(message: MsgSudoContractResponse): MsgSudoContractResponseAminoMsg {
|
|
3181
|
+
return {
|
|
3182
|
+
type: "wasm/MsgSudoContractResponse",
|
|
3183
|
+
value: MsgSudoContractResponse.toAmino(message)
|
|
3184
|
+
};
|
|
3185
|
+
},
|
|
3186
|
+
fromProtoMsg(message: MsgSudoContractResponseProtoMsg): MsgSudoContractResponse {
|
|
3187
|
+
return MsgSudoContractResponse.decode(message.value);
|
|
3188
|
+
},
|
|
3189
|
+
toProto(message: MsgSudoContractResponse): Uint8Array {
|
|
3190
|
+
return MsgSudoContractResponse.encode(message).finish();
|
|
3191
|
+
},
|
|
3192
|
+
toProtoMsg(message: MsgSudoContractResponse): MsgSudoContractResponseProtoMsg {
|
|
3193
|
+
return {
|
|
3194
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse",
|
|
3195
|
+
value: MsgSudoContractResponse.encode(message).finish()
|
|
3196
|
+
};
|
|
3197
|
+
}
|
|
3198
|
+
};
|
|
3199
|
+
function createBaseMsgPinCodes(): MsgPinCodes {
|
|
3200
|
+
return {
|
|
3201
|
+
authority: "",
|
|
3202
|
+
codeIds: []
|
|
3203
|
+
};
|
|
3204
|
+
}
|
|
3205
|
+
export const MsgPinCodes = {
|
|
3206
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes",
|
|
3207
|
+
encode(message: MsgPinCodes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3208
|
+
if (message.authority !== "") {
|
|
3209
|
+
writer.uint32(10).string(message.authority);
|
|
3210
|
+
}
|
|
3211
|
+
writer.uint32(18).fork();
|
|
3212
|
+
for (const v of message.codeIds) {
|
|
3213
|
+
writer.uint64(v);
|
|
3214
|
+
}
|
|
3215
|
+
writer.ldelim();
|
|
3216
|
+
return writer;
|
|
3217
|
+
},
|
|
3218
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgPinCodes {
|
|
3219
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3221
|
+
const message = createBaseMsgPinCodes();
|
|
3222
|
+
while (reader.pos < end) {
|
|
3223
|
+
const tag = reader.uint32();
|
|
3224
|
+
switch (tag >>> 3) {
|
|
3225
|
+
case 1:
|
|
3226
|
+
message.authority = reader.string();
|
|
3227
|
+
break;
|
|
3228
|
+
case 2:
|
|
3229
|
+
if ((tag & 7) === 2) {
|
|
3230
|
+
const end2 = reader.uint32() + reader.pos;
|
|
3231
|
+
while (reader.pos < end2) {
|
|
3232
|
+
message.codeIds.push(reader.uint64());
|
|
3233
|
+
}
|
|
3234
|
+
} else {
|
|
3235
|
+
message.codeIds.push(reader.uint64());
|
|
3236
|
+
}
|
|
3237
|
+
break;
|
|
3238
|
+
default:
|
|
3239
|
+
reader.skipType(tag & 7);
|
|
3240
|
+
break;
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
return message;
|
|
3244
|
+
},
|
|
3245
|
+
fromPartial(object: Partial<MsgPinCodes>): MsgPinCodes {
|
|
3246
|
+
const message = createBaseMsgPinCodes();
|
|
3247
|
+
message.authority = object.authority ?? "";
|
|
3248
|
+
message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
|
|
3249
|
+
return message;
|
|
3250
|
+
},
|
|
3251
|
+
fromAmino(object: MsgPinCodesAmino): MsgPinCodes {
|
|
3252
|
+
const message = createBaseMsgPinCodes();
|
|
3253
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3254
|
+
message.authority = object.authority;
|
|
3255
|
+
}
|
|
3256
|
+
message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
|
|
3257
|
+
return message;
|
|
3258
|
+
},
|
|
3259
|
+
toAmino(message: MsgPinCodes): MsgPinCodesAmino {
|
|
3260
|
+
const obj: any = {};
|
|
3261
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3262
|
+
if (message.codeIds) {
|
|
3263
|
+
obj.code_ids = message.codeIds.map(e => e.toString());
|
|
3264
|
+
} else {
|
|
3265
|
+
obj.code_ids = message.codeIds;
|
|
3266
|
+
}
|
|
3267
|
+
return obj;
|
|
3268
|
+
},
|
|
3269
|
+
fromAminoMsg(object: MsgPinCodesAminoMsg): MsgPinCodes {
|
|
3270
|
+
return MsgPinCodes.fromAmino(object.value);
|
|
3271
|
+
},
|
|
3272
|
+
toAminoMsg(message: MsgPinCodes): MsgPinCodesAminoMsg {
|
|
3273
|
+
return {
|
|
3274
|
+
type: "wasm/MsgPinCodes",
|
|
3275
|
+
value: MsgPinCodes.toAmino(message)
|
|
3276
|
+
};
|
|
3277
|
+
},
|
|
3278
|
+
fromProtoMsg(message: MsgPinCodesProtoMsg): MsgPinCodes {
|
|
3279
|
+
return MsgPinCodes.decode(message.value);
|
|
3280
|
+
},
|
|
3281
|
+
toProto(message: MsgPinCodes): Uint8Array {
|
|
3282
|
+
return MsgPinCodes.encode(message).finish();
|
|
3283
|
+
},
|
|
3284
|
+
toProtoMsg(message: MsgPinCodes): MsgPinCodesProtoMsg {
|
|
3285
|
+
return {
|
|
3286
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes",
|
|
3287
|
+
value: MsgPinCodes.encode(message).finish()
|
|
3288
|
+
};
|
|
3289
|
+
}
|
|
3290
|
+
};
|
|
3291
|
+
function createBaseMsgPinCodesResponse(): MsgPinCodesResponse {
|
|
3292
|
+
return {};
|
|
3293
|
+
}
|
|
3294
|
+
export const MsgPinCodesResponse = {
|
|
3295
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse",
|
|
3296
|
+
encode(_: MsgPinCodesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3297
|
+
return writer;
|
|
3298
|
+
},
|
|
3299
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgPinCodesResponse {
|
|
3300
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3301
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3302
|
+
const message = createBaseMsgPinCodesResponse();
|
|
3303
|
+
while (reader.pos < end) {
|
|
3304
|
+
const tag = reader.uint32();
|
|
3305
|
+
switch (tag >>> 3) {
|
|
3306
|
+
default:
|
|
3307
|
+
reader.skipType(tag & 7);
|
|
3308
|
+
break;
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3311
|
+
return message;
|
|
3312
|
+
},
|
|
3313
|
+
fromPartial(_: Partial<MsgPinCodesResponse>): MsgPinCodesResponse {
|
|
3314
|
+
const message = createBaseMsgPinCodesResponse();
|
|
3315
|
+
return message;
|
|
3316
|
+
},
|
|
3317
|
+
fromAmino(_: MsgPinCodesResponseAmino): MsgPinCodesResponse {
|
|
3318
|
+
const message = createBaseMsgPinCodesResponse();
|
|
3319
|
+
return message;
|
|
3320
|
+
},
|
|
3321
|
+
toAmino(_: MsgPinCodesResponse): MsgPinCodesResponseAmino {
|
|
3322
|
+
const obj: any = {};
|
|
3323
|
+
return obj;
|
|
3324
|
+
},
|
|
3325
|
+
fromAminoMsg(object: MsgPinCodesResponseAminoMsg): MsgPinCodesResponse {
|
|
3326
|
+
return MsgPinCodesResponse.fromAmino(object.value);
|
|
3327
|
+
},
|
|
3328
|
+
toAminoMsg(message: MsgPinCodesResponse): MsgPinCodesResponseAminoMsg {
|
|
3329
|
+
return {
|
|
3330
|
+
type: "wasm/MsgPinCodesResponse",
|
|
3331
|
+
value: MsgPinCodesResponse.toAmino(message)
|
|
3332
|
+
};
|
|
3333
|
+
},
|
|
3334
|
+
fromProtoMsg(message: MsgPinCodesResponseProtoMsg): MsgPinCodesResponse {
|
|
3335
|
+
return MsgPinCodesResponse.decode(message.value);
|
|
3336
|
+
},
|
|
3337
|
+
toProto(message: MsgPinCodesResponse): Uint8Array {
|
|
3338
|
+
return MsgPinCodesResponse.encode(message).finish();
|
|
3339
|
+
},
|
|
3340
|
+
toProtoMsg(message: MsgPinCodesResponse): MsgPinCodesResponseProtoMsg {
|
|
3341
|
+
return {
|
|
3342
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse",
|
|
3343
|
+
value: MsgPinCodesResponse.encode(message).finish()
|
|
3344
|
+
};
|
|
3345
|
+
}
|
|
3346
|
+
};
|
|
3347
|
+
function createBaseMsgUnpinCodes(): MsgUnpinCodes {
|
|
3348
|
+
return {
|
|
3349
|
+
authority: "",
|
|
3350
|
+
codeIds: []
|
|
3351
|
+
};
|
|
3352
|
+
}
|
|
3353
|
+
export const MsgUnpinCodes = {
|
|
3354
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes",
|
|
3355
|
+
encode(message: MsgUnpinCodes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3356
|
+
if (message.authority !== "") {
|
|
3357
|
+
writer.uint32(10).string(message.authority);
|
|
3358
|
+
}
|
|
3359
|
+
writer.uint32(18).fork();
|
|
3360
|
+
for (const v of message.codeIds) {
|
|
3361
|
+
writer.uint64(v);
|
|
3362
|
+
}
|
|
3363
|
+
writer.ldelim();
|
|
3364
|
+
return writer;
|
|
3365
|
+
},
|
|
3366
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnpinCodes {
|
|
3367
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3368
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3369
|
+
const message = createBaseMsgUnpinCodes();
|
|
3370
|
+
while (reader.pos < end) {
|
|
3371
|
+
const tag = reader.uint32();
|
|
3372
|
+
switch (tag >>> 3) {
|
|
3373
|
+
case 1:
|
|
3374
|
+
message.authority = reader.string();
|
|
3375
|
+
break;
|
|
3376
|
+
case 2:
|
|
3377
|
+
if ((tag & 7) === 2) {
|
|
3378
|
+
const end2 = reader.uint32() + reader.pos;
|
|
3379
|
+
while (reader.pos < end2) {
|
|
3380
|
+
message.codeIds.push(reader.uint64());
|
|
3381
|
+
}
|
|
3382
|
+
} else {
|
|
3383
|
+
message.codeIds.push(reader.uint64());
|
|
3384
|
+
}
|
|
3385
|
+
break;
|
|
3386
|
+
default:
|
|
3387
|
+
reader.skipType(tag & 7);
|
|
3388
|
+
break;
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
return message;
|
|
3392
|
+
},
|
|
3393
|
+
fromPartial(object: Partial<MsgUnpinCodes>): MsgUnpinCodes {
|
|
3394
|
+
const message = createBaseMsgUnpinCodes();
|
|
3395
|
+
message.authority = object.authority ?? "";
|
|
3396
|
+
message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
|
|
3397
|
+
return message;
|
|
3398
|
+
},
|
|
3399
|
+
fromAmino(object: MsgUnpinCodesAmino): MsgUnpinCodes {
|
|
3400
|
+
const message = createBaseMsgUnpinCodes();
|
|
3401
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3402
|
+
message.authority = object.authority;
|
|
3403
|
+
}
|
|
3404
|
+
message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
|
|
3405
|
+
return message;
|
|
3406
|
+
},
|
|
3407
|
+
toAmino(message: MsgUnpinCodes): MsgUnpinCodesAmino {
|
|
3408
|
+
const obj: any = {};
|
|
3409
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3410
|
+
if (message.codeIds) {
|
|
3411
|
+
obj.code_ids = message.codeIds.map(e => e.toString());
|
|
3412
|
+
} else {
|
|
3413
|
+
obj.code_ids = message.codeIds;
|
|
3414
|
+
}
|
|
3415
|
+
return obj;
|
|
3416
|
+
},
|
|
3417
|
+
fromAminoMsg(object: MsgUnpinCodesAminoMsg): MsgUnpinCodes {
|
|
3418
|
+
return MsgUnpinCodes.fromAmino(object.value);
|
|
3419
|
+
},
|
|
3420
|
+
toAminoMsg(message: MsgUnpinCodes): MsgUnpinCodesAminoMsg {
|
|
3421
|
+
return {
|
|
3422
|
+
type: "wasm/MsgUnpinCodes",
|
|
3423
|
+
value: MsgUnpinCodes.toAmino(message)
|
|
3424
|
+
};
|
|
3425
|
+
},
|
|
3426
|
+
fromProtoMsg(message: MsgUnpinCodesProtoMsg): MsgUnpinCodes {
|
|
3427
|
+
return MsgUnpinCodes.decode(message.value);
|
|
3428
|
+
},
|
|
3429
|
+
toProto(message: MsgUnpinCodes): Uint8Array {
|
|
3430
|
+
return MsgUnpinCodes.encode(message).finish();
|
|
3431
|
+
},
|
|
3432
|
+
toProtoMsg(message: MsgUnpinCodes): MsgUnpinCodesProtoMsg {
|
|
3433
|
+
return {
|
|
3434
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes",
|
|
3435
|
+
value: MsgUnpinCodes.encode(message).finish()
|
|
3436
|
+
};
|
|
3437
|
+
}
|
|
3438
|
+
};
|
|
3439
|
+
function createBaseMsgUnpinCodesResponse(): MsgUnpinCodesResponse {
|
|
3440
|
+
return {};
|
|
3441
|
+
}
|
|
3442
|
+
export const MsgUnpinCodesResponse = {
|
|
3443
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse",
|
|
3444
|
+
encode(_: MsgUnpinCodesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3445
|
+
return writer;
|
|
3446
|
+
},
|
|
3447
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnpinCodesResponse {
|
|
3448
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3449
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3450
|
+
const message = createBaseMsgUnpinCodesResponse();
|
|
3451
|
+
while (reader.pos < end) {
|
|
3452
|
+
const tag = reader.uint32();
|
|
3453
|
+
switch (tag >>> 3) {
|
|
3454
|
+
default:
|
|
3455
|
+
reader.skipType(tag & 7);
|
|
3456
|
+
break;
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
return message;
|
|
3460
|
+
},
|
|
3461
|
+
fromPartial(_: Partial<MsgUnpinCodesResponse>): MsgUnpinCodesResponse {
|
|
3462
|
+
const message = createBaseMsgUnpinCodesResponse();
|
|
3463
|
+
return message;
|
|
3464
|
+
},
|
|
3465
|
+
fromAmino(_: MsgUnpinCodesResponseAmino): MsgUnpinCodesResponse {
|
|
3466
|
+
const message = createBaseMsgUnpinCodesResponse();
|
|
3467
|
+
return message;
|
|
3468
|
+
},
|
|
3469
|
+
toAmino(_: MsgUnpinCodesResponse): MsgUnpinCodesResponseAmino {
|
|
3470
|
+
const obj: any = {};
|
|
3471
|
+
return obj;
|
|
3472
|
+
},
|
|
3473
|
+
fromAminoMsg(object: MsgUnpinCodesResponseAminoMsg): MsgUnpinCodesResponse {
|
|
3474
|
+
return MsgUnpinCodesResponse.fromAmino(object.value);
|
|
3475
|
+
},
|
|
3476
|
+
toAminoMsg(message: MsgUnpinCodesResponse): MsgUnpinCodesResponseAminoMsg {
|
|
3477
|
+
return {
|
|
3478
|
+
type: "wasm/MsgUnpinCodesResponse",
|
|
3479
|
+
value: MsgUnpinCodesResponse.toAmino(message)
|
|
3480
|
+
};
|
|
3481
|
+
},
|
|
3482
|
+
fromProtoMsg(message: MsgUnpinCodesResponseProtoMsg): MsgUnpinCodesResponse {
|
|
3483
|
+
return MsgUnpinCodesResponse.decode(message.value);
|
|
3484
|
+
},
|
|
3485
|
+
toProto(message: MsgUnpinCodesResponse): Uint8Array {
|
|
3486
|
+
return MsgUnpinCodesResponse.encode(message).finish();
|
|
3487
|
+
},
|
|
3488
|
+
toProtoMsg(message: MsgUnpinCodesResponse): MsgUnpinCodesResponseProtoMsg {
|
|
3489
|
+
return {
|
|
3490
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse",
|
|
3491
|
+
value: MsgUnpinCodesResponse.encode(message).finish()
|
|
3492
|
+
};
|
|
3493
|
+
}
|
|
3494
|
+
};
|
|
3495
|
+
function createBaseMsgStoreAndInstantiateContract(): MsgStoreAndInstantiateContract {
|
|
3496
|
+
return {
|
|
3497
|
+
authority: "",
|
|
3498
|
+
wasmByteCode: new Uint8Array(),
|
|
3499
|
+
instantiatePermission: undefined,
|
|
3500
|
+
unpinCode: false,
|
|
3501
|
+
admin: "",
|
|
3502
|
+
label: "",
|
|
3503
|
+
msg: new Uint8Array(),
|
|
3504
|
+
funds: [],
|
|
3505
|
+
source: "",
|
|
3506
|
+
builder: "",
|
|
3507
|
+
codeHash: new Uint8Array()
|
|
3508
|
+
};
|
|
3509
|
+
}
|
|
3510
|
+
export const MsgStoreAndInstantiateContract = {
|
|
3511
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
|
|
3512
|
+
encode(message: MsgStoreAndInstantiateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3513
|
+
if (message.authority !== "") {
|
|
3514
|
+
writer.uint32(10).string(message.authority);
|
|
3515
|
+
}
|
|
3516
|
+
if (message.wasmByteCode.length !== 0) {
|
|
3517
|
+
writer.uint32(26).bytes(message.wasmByteCode);
|
|
3518
|
+
}
|
|
3519
|
+
if (message.instantiatePermission !== undefined) {
|
|
3520
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(34).fork()).ldelim();
|
|
3521
|
+
}
|
|
3522
|
+
if (message.unpinCode === true) {
|
|
3523
|
+
writer.uint32(40).bool(message.unpinCode);
|
|
3524
|
+
}
|
|
3525
|
+
if (message.admin !== "") {
|
|
3526
|
+
writer.uint32(50).string(message.admin);
|
|
3527
|
+
}
|
|
3528
|
+
if (message.label !== "") {
|
|
3529
|
+
writer.uint32(58).string(message.label);
|
|
3530
|
+
}
|
|
3531
|
+
if (message.msg.length !== 0) {
|
|
3532
|
+
writer.uint32(66).bytes(message.msg);
|
|
3533
|
+
}
|
|
3534
|
+
for (const v of message.funds) {
|
|
3535
|
+
Coin.encode(v!, writer.uint32(74).fork()).ldelim();
|
|
3536
|
+
}
|
|
3537
|
+
if (message.source !== "") {
|
|
3538
|
+
writer.uint32(82).string(message.source);
|
|
3539
|
+
}
|
|
3540
|
+
if (message.builder !== "") {
|
|
3541
|
+
writer.uint32(90).string(message.builder);
|
|
3542
|
+
}
|
|
3543
|
+
if (message.codeHash.length !== 0) {
|
|
3544
|
+
writer.uint32(98).bytes(message.codeHash);
|
|
3545
|
+
}
|
|
3546
|
+
return writer;
|
|
3547
|
+
},
|
|
3548
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndInstantiateContract {
|
|
3549
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3550
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3551
|
+
const message = createBaseMsgStoreAndInstantiateContract();
|
|
3552
|
+
while (reader.pos < end) {
|
|
3553
|
+
const tag = reader.uint32();
|
|
3554
|
+
switch (tag >>> 3) {
|
|
3555
|
+
case 1:
|
|
3556
|
+
message.authority = reader.string();
|
|
3557
|
+
break;
|
|
3558
|
+
case 3:
|
|
3559
|
+
message.wasmByteCode = reader.bytes();
|
|
3560
|
+
break;
|
|
3561
|
+
case 4:
|
|
3562
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
3563
|
+
break;
|
|
3564
|
+
case 5:
|
|
3565
|
+
message.unpinCode = reader.bool();
|
|
3566
|
+
break;
|
|
3567
|
+
case 6:
|
|
3568
|
+
message.admin = reader.string();
|
|
3569
|
+
break;
|
|
3570
|
+
case 7:
|
|
3571
|
+
message.label = reader.string();
|
|
3572
|
+
break;
|
|
3573
|
+
case 8:
|
|
3574
|
+
message.msg = reader.bytes();
|
|
3575
|
+
break;
|
|
3576
|
+
case 9:
|
|
3577
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
3578
|
+
break;
|
|
3579
|
+
case 10:
|
|
3580
|
+
message.source = reader.string();
|
|
3581
|
+
break;
|
|
3582
|
+
case 11:
|
|
3583
|
+
message.builder = reader.string();
|
|
3584
|
+
break;
|
|
3585
|
+
case 12:
|
|
3586
|
+
message.codeHash = reader.bytes();
|
|
3587
|
+
break;
|
|
3588
|
+
default:
|
|
3589
|
+
reader.skipType(tag & 7);
|
|
3590
|
+
break;
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
return message;
|
|
3594
|
+
},
|
|
3595
|
+
fromPartial(object: Partial<MsgStoreAndInstantiateContract>): MsgStoreAndInstantiateContract {
|
|
3596
|
+
const message = createBaseMsgStoreAndInstantiateContract();
|
|
3597
|
+
message.authority = object.authority ?? "";
|
|
3598
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
|
3599
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
|
3600
|
+
message.unpinCode = object.unpinCode ?? false;
|
|
3601
|
+
message.admin = object.admin ?? "";
|
|
3602
|
+
message.label = object.label ?? "";
|
|
3603
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
3604
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
|
3605
|
+
message.source = object.source ?? "";
|
|
3606
|
+
message.builder = object.builder ?? "";
|
|
3607
|
+
message.codeHash = object.codeHash ?? new Uint8Array();
|
|
3608
|
+
return message;
|
|
3609
|
+
},
|
|
3610
|
+
fromAmino(object: MsgStoreAndInstantiateContractAmino): MsgStoreAndInstantiateContract {
|
|
3611
|
+
const message = createBaseMsgStoreAndInstantiateContract();
|
|
3612
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3613
|
+
message.authority = object.authority;
|
|
3614
|
+
}
|
|
3615
|
+
if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
|
|
3616
|
+
message.wasmByteCode = fromBase64(object.wasm_byte_code);
|
|
3617
|
+
}
|
|
3618
|
+
if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
|
|
3619
|
+
message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
|
|
3620
|
+
}
|
|
3621
|
+
if (object.unpin_code !== undefined && object.unpin_code !== null) {
|
|
3622
|
+
message.unpinCode = object.unpin_code;
|
|
3623
|
+
}
|
|
3624
|
+
if (object.admin !== undefined && object.admin !== null) {
|
|
3625
|
+
message.admin = object.admin;
|
|
3626
|
+
}
|
|
3627
|
+
if (object.label !== undefined && object.label !== null) {
|
|
3628
|
+
message.label = object.label;
|
|
3629
|
+
}
|
|
3630
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3631
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
3632
|
+
}
|
|
3633
|
+
message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
|
|
3634
|
+
if (object.source !== undefined && object.source !== null) {
|
|
3635
|
+
message.source = object.source;
|
|
3636
|
+
}
|
|
3637
|
+
if (object.builder !== undefined && object.builder !== null) {
|
|
3638
|
+
message.builder = object.builder;
|
|
3639
|
+
}
|
|
3640
|
+
if (object.code_hash !== undefined && object.code_hash !== null) {
|
|
3641
|
+
message.codeHash = bytesFromBase64(object.code_hash);
|
|
3642
|
+
}
|
|
3643
|
+
return message;
|
|
3644
|
+
},
|
|
3645
|
+
toAmino(message: MsgStoreAndInstantiateContract): MsgStoreAndInstantiateContractAmino {
|
|
3646
|
+
const obj: any = {};
|
|
3647
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3648
|
+
obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
|
|
3649
|
+
obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
|
|
3650
|
+
obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode;
|
|
3651
|
+
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
3652
|
+
obj.label = message.label === "" ? undefined : message.label;
|
|
3653
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
3654
|
+
if (message.funds) {
|
|
3655
|
+
obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
|
|
3656
|
+
} else {
|
|
3657
|
+
obj.funds = message.funds;
|
|
3658
|
+
}
|
|
3659
|
+
obj.source = message.source === "" ? undefined : message.source;
|
|
3660
|
+
obj.builder = message.builder === "" ? undefined : message.builder;
|
|
3661
|
+
obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
|
|
3662
|
+
return obj;
|
|
3663
|
+
},
|
|
3664
|
+
fromAminoMsg(object: MsgStoreAndInstantiateContractAminoMsg): MsgStoreAndInstantiateContract {
|
|
3665
|
+
return MsgStoreAndInstantiateContract.fromAmino(object.value);
|
|
3666
|
+
},
|
|
3667
|
+
toAminoMsg(message: MsgStoreAndInstantiateContract): MsgStoreAndInstantiateContractAminoMsg {
|
|
3668
|
+
return {
|
|
3669
|
+
type: "wasm/MsgStoreAndInstantiateContract",
|
|
3670
|
+
value: MsgStoreAndInstantiateContract.toAmino(message)
|
|
3671
|
+
};
|
|
3672
|
+
},
|
|
3673
|
+
fromProtoMsg(message: MsgStoreAndInstantiateContractProtoMsg): MsgStoreAndInstantiateContract {
|
|
3674
|
+
return MsgStoreAndInstantiateContract.decode(message.value);
|
|
3675
|
+
},
|
|
3676
|
+
toProto(message: MsgStoreAndInstantiateContract): Uint8Array {
|
|
3677
|
+
return MsgStoreAndInstantiateContract.encode(message).finish();
|
|
3678
|
+
},
|
|
3679
|
+
toProtoMsg(message: MsgStoreAndInstantiateContract): MsgStoreAndInstantiateContractProtoMsg {
|
|
3680
|
+
return {
|
|
3681
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
|
|
3682
|
+
value: MsgStoreAndInstantiateContract.encode(message).finish()
|
|
3683
|
+
};
|
|
3684
|
+
}
|
|
3685
|
+
};
|
|
3686
|
+
function createBaseMsgStoreAndInstantiateContractResponse(): MsgStoreAndInstantiateContractResponse {
|
|
3687
|
+
return {
|
|
3688
|
+
address: "",
|
|
3689
|
+
data: new Uint8Array()
|
|
3690
|
+
};
|
|
3691
|
+
}
|
|
3692
|
+
export const MsgStoreAndInstantiateContractResponse = {
|
|
3693
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse",
|
|
3694
|
+
encode(message: MsgStoreAndInstantiateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3695
|
+
if (message.address !== "") {
|
|
3696
|
+
writer.uint32(10).string(message.address);
|
|
3697
|
+
}
|
|
3698
|
+
if (message.data.length !== 0) {
|
|
3699
|
+
writer.uint32(18).bytes(message.data);
|
|
3700
|
+
}
|
|
3701
|
+
return writer;
|
|
3702
|
+
},
|
|
3703
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndInstantiateContractResponse {
|
|
3704
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3705
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3706
|
+
const message = createBaseMsgStoreAndInstantiateContractResponse();
|
|
3707
|
+
while (reader.pos < end) {
|
|
3708
|
+
const tag = reader.uint32();
|
|
3709
|
+
switch (tag >>> 3) {
|
|
3710
|
+
case 1:
|
|
3711
|
+
message.address = reader.string();
|
|
3712
|
+
break;
|
|
3713
|
+
case 2:
|
|
3714
|
+
message.data = reader.bytes();
|
|
3715
|
+
break;
|
|
3716
|
+
default:
|
|
3717
|
+
reader.skipType(tag & 7);
|
|
3718
|
+
break;
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
return message;
|
|
3722
|
+
},
|
|
3723
|
+
fromPartial(object: Partial<MsgStoreAndInstantiateContractResponse>): MsgStoreAndInstantiateContractResponse {
|
|
3724
|
+
const message = createBaseMsgStoreAndInstantiateContractResponse();
|
|
3725
|
+
message.address = object.address ?? "";
|
|
3726
|
+
message.data = object.data ?? new Uint8Array();
|
|
3727
|
+
return message;
|
|
3728
|
+
},
|
|
3729
|
+
fromAmino(object: MsgStoreAndInstantiateContractResponseAmino): MsgStoreAndInstantiateContractResponse {
|
|
3730
|
+
const message = createBaseMsgStoreAndInstantiateContractResponse();
|
|
3731
|
+
if (object.address !== undefined && object.address !== null) {
|
|
3732
|
+
message.address = object.address;
|
|
3733
|
+
}
|
|
3734
|
+
if (object.data !== undefined && object.data !== null) {
|
|
3735
|
+
message.data = bytesFromBase64(object.data);
|
|
3736
|
+
}
|
|
3737
|
+
return message;
|
|
3738
|
+
},
|
|
3739
|
+
toAmino(message: MsgStoreAndInstantiateContractResponse): MsgStoreAndInstantiateContractResponseAmino {
|
|
3740
|
+
const obj: any = {};
|
|
3741
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
3742
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
3743
|
+
return obj;
|
|
3744
|
+
},
|
|
3745
|
+
fromAminoMsg(object: MsgStoreAndInstantiateContractResponseAminoMsg): MsgStoreAndInstantiateContractResponse {
|
|
3746
|
+
return MsgStoreAndInstantiateContractResponse.fromAmino(object.value);
|
|
3747
|
+
},
|
|
3748
|
+
toAminoMsg(message: MsgStoreAndInstantiateContractResponse): MsgStoreAndInstantiateContractResponseAminoMsg {
|
|
3749
|
+
return {
|
|
3750
|
+
type: "wasm/MsgStoreAndInstantiateContractResponse",
|
|
3751
|
+
value: MsgStoreAndInstantiateContractResponse.toAmino(message)
|
|
3752
|
+
};
|
|
3753
|
+
},
|
|
3754
|
+
fromProtoMsg(message: MsgStoreAndInstantiateContractResponseProtoMsg): MsgStoreAndInstantiateContractResponse {
|
|
3755
|
+
return MsgStoreAndInstantiateContractResponse.decode(message.value);
|
|
3756
|
+
},
|
|
3757
|
+
toProto(message: MsgStoreAndInstantiateContractResponse): Uint8Array {
|
|
3758
|
+
return MsgStoreAndInstantiateContractResponse.encode(message).finish();
|
|
3759
|
+
},
|
|
3760
|
+
toProtoMsg(message: MsgStoreAndInstantiateContractResponse): MsgStoreAndInstantiateContractResponseProtoMsg {
|
|
3761
|
+
return {
|
|
3762
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse",
|
|
3763
|
+
value: MsgStoreAndInstantiateContractResponse.encode(message).finish()
|
|
3764
|
+
};
|
|
3765
|
+
}
|
|
3766
|
+
};
|
|
3767
|
+
function createBaseMsgAddCodeUploadParamsAddresses(): MsgAddCodeUploadParamsAddresses {
|
|
3768
|
+
return {
|
|
3769
|
+
authority: "",
|
|
3770
|
+
addresses: []
|
|
3771
|
+
};
|
|
3772
|
+
}
|
|
3773
|
+
export const MsgAddCodeUploadParamsAddresses = {
|
|
3774
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses",
|
|
3775
|
+
encode(message: MsgAddCodeUploadParamsAddresses, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3776
|
+
if (message.authority !== "") {
|
|
3777
|
+
writer.uint32(10).string(message.authority);
|
|
3778
|
+
}
|
|
3779
|
+
for (const v of message.addresses) {
|
|
3780
|
+
writer.uint32(18).string(v!);
|
|
3781
|
+
}
|
|
3782
|
+
return writer;
|
|
3783
|
+
},
|
|
3784
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCodeUploadParamsAddresses {
|
|
3785
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3786
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3787
|
+
const message = createBaseMsgAddCodeUploadParamsAddresses();
|
|
3788
|
+
while (reader.pos < end) {
|
|
3789
|
+
const tag = reader.uint32();
|
|
3790
|
+
switch (tag >>> 3) {
|
|
3791
|
+
case 1:
|
|
3792
|
+
message.authority = reader.string();
|
|
3793
|
+
break;
|
|
3794
|
+
case 2:
|
|
3795
|
+
message.addresses.push(reader.string());
|
|
3796
|
+
break;
|
|
3797
|
+
default:
|
|
3798
|
+
reader.skipType(tag & 7);
|
|
3799
|
+
break;
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
return message;
|
|
3803
|
+
},
|
|
3804
|
+
fromPartial(object: Partial<MsgAddCodeUploadParamsAddresses>): MsgAddCodeUploadParamsAddresses {
|
|
3805
|
+
const message = createBaseMsgAddCodeUploadParamsAddresses();
|
|
3806
|
+
message.authority = object.authority ?? "";
|
|
3807
|
+
message.addresses = object.addresses?.map(e => e) || [];
|
|
3808
|
+
return message;
|
|
3809
|
+
},
|
|
3810
|
+
fromAmino(object: MsgAddCodeUploadParamsAddressesAmino): MsgAddCodeUploadParamsAddresses {
|
|
3811
|
+
const message = createBaseMsgAddCodeUploadParamsAddresses();
|
|
3812
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3813
|
+
message.authority = object.authority;
|
|
3814
|
+
}
|
|
3815
|
+
message.addresses = object.addresses?.map(e => e) || [];
|
|
3816
|
+
return message;
|
|
3817
|
+
},
|
|
3818
|
+
toAmino(message: MsgAddCodeUploadParamsAddresses): MsgAddCodeUploadParamsAddressesAmino {
|
|
3819
|
+
const obj: any = {};
|
|
3820
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3821
|
+
if (message.addresses) {
|
|
3822
|
+
obj.addresses = message.addresses.map(e => e);
|
|
3823
|
+
} else {
|
|
3824
|
+
obj.addresses = message.addresses;
|
|
3825
|
+
}
|
|
3826
|
+
return obj;
|
|
3827
|
+
},
|
|
3828
|
+
fromAminoMsg(object: MsgAddCodeUploadParamsAddressesAminoMsg): MsgAddCodeUploadParamsAddresses {
|
|
3829
|
+
return MsgAddCodeUploadParamsAddresses.fromAmino(object.value);
|
|
3830
|
+
},
|
|
3831
|
+
toAminoMsg(message: MsgAddCodeUploadParamsAddresses): MsgAddCodeUploadParamsAddressesAminoMsg {
|
|
3832
|
+
return {
|
|
3833
|
+
type: "wasm/MsgAddCodeUploadParamsAddresses",
|
|
3834
|
+
value: MsgAddCodeUploadParamsAddresses.toAmino(message)
|
|
3835
|
+
};
|
|
3836
|
+
},
|
|
3837
|
+
fromProtoMsg(message: MsgAddCodeUploadParamsAddressesProtoMsg): MsgAddCodeUploadParamsAddresses {
|
|
3838
|
+
return MsgAddCodeUploadParamsAddresses.decode(message.value);
|
|
3839
|
+
},
|
|
3840
|
+
toProto(message: MsgAddCodeUploadParamsAddresses): Uint8Array {
|
|
3841
|
+
return MsgAddCodeUploadParamsAddresses.encode(message).finish();
|
|
3842
|
+
},
|
|
3843
|
+
toProtoMsg(message: MsgAddCodeUploadParamsAddresses): MsgAddCodeUploadParamsAddressesProtoMsg {
|
|
3844
|
+
return {
|
|
3845
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses",
|
|
3846
|
+
value: MsgAddCodeUploadParamsAddresses.encode(message).finish()
|
|
3847
|
+
};
|
|
3848
|
+
}
|
|
3849
|
+
};
|
|
3850
|
+
function createBaseMsgAddCodeUploadParamsAddressesResponse(): MsgAddCodeUploadParamsAddressesResponse {
|
|
3851
|
+
return {};
|
|
3852
|
+
}
|
|
3853
|
+
export const MsgAddCodeUploadParamsAddressesResponse = {
|
|
3854
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse",
|
|
3855
|
+
encode(_: MsgAddCodeUploadParamsAddressesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3856
|
+
return writer;
|
|
3857
|
+
},
|
|
3858
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCodeUploadParamsAddressesResponse {
|
|
3859
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3860
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3861
|
+
const message = createBaseMsgAddCodeUploadParamsAddressesResponse();
|
|
3862
|
+
while (reader.pos < end) {
|
|
3863
|
+
const tag = reader.uint32();
|
|
3864
|
+
switch (tag >>> 3) {
|
|
3865
|
+
default:
|
|
3866
|
+
reader.skipType(tag & 7);
|
|
3867
|
+
break;
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
return message;
|
|
3871
|
+
},
|
|
3872
|
+
fromPartial(_: Partial<MsgAddCodeUploadParamsAddressesResponse>): MsgAddCodeUploadParamsAddressesResponse {
|
|
3873
|
+
const message = createBaseMsgAddCodeUploadParamsAddressesResponse();
|
|
3874
|
+
return message;
|
|
3875
|
+
},
|
|
3876
|
+
fromAmino(_: MsgAddCodeUploadParamsAddressesResponseAmino): MsgAddCodeUploadParamsAddressesResponse {
|
|
3877
|
+
const message = createBaseMsgAddCodeUploadParamsAddressesResponse();
|
|
3878
|
+
return message;
|
|
3879
|
+
},
|
|
3880
|
+
toAmino(_: MsgAddCodeUploadParamsAddressesResponse): MsgAddCodeUploadParamsAddressesResponseAmino {
|
|
3881
|
+
const obj: any = {};
|
|
3882
|
+
return obj;
|
|
3883
|
+
},
|
|
3884
|
+
fromAminoMsg(object: MsgAddCodeUploadParamsAddressesResponseAminoMsg): MsgAddCodeUploadParamsAddressesResponse {
|
|
3885
|
+
return MsgAddCodeUploadParamsAddressesResponse.fromAmino(object.value);
|
|
3886
|
+
},
|
|
3887
|
+
toAminoMsg(message: MsgAddCodeUploadParamsAddressesResponse): MsgAddCodeUploadParamsAddressesResponseAminoMsg {
|
|
3888
|
+
return {
|
|
3889
|
+
type: "wasm/MsgAddCodeUploadParamsAddressesResponse",
|
|
3890
|
+
value: MsgAddCodeUploadParamsAddressesResponse.toAmino(message)
|
|
3891
|
+
};
|
|
3892
|
+
},
|
|
3893
|
+
fromProtoMsg(message: MsgAddCodeUploadParamsAddressesResponseProtoMsg): MsgAddCodeUploadParamsAddressesResponse {
|
|
3894
|
+
return MsgAddCodeUploadParamsAddressesResponse.decode(message.value);
|
|
3895
|
+
},
|
|
3896
|
+
toProto(message: MsgAddCodeUploadParamsAddressesResponse): Uint8Array {
|
|
3897
|
+
return MsgAddCodeUploadParamsAddressesResponse.encode(message).finish();
|
|
3898
|
+
},
|
|
3899
|
+
toProtoMsg(message: MsgAddCodeUploadParamsAddressesResponse): MsgAddCodeUploadParamsAddressesResponseProtoMsg {
|
|
3900
|
+
return {
|
|
3901
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse",
|
|
3902
|
+
value: MsgAddCodeUploadParamsAddressesResponse.encode(message).finish()
|
|
3903
|
+
};
|
|
3904
|
+
}
|
|
3905
|
+
};
|
|
3906
|
+
function createBaseMsgRemoveCodeUploadParamsAddresses(): MsgRemoveCodeUploadParamsAddresses {
|
|
3907
|
+
return {
|
|
3908
|
+
authority: "",
|
|
3909
|
+
addresses: []
|
|
3910
|
+
};
|
|
3911
|
+
}
|
|
3912
|
+
export const MsgRemoveCodeUploadParamsAddresses = {
|
|
3913
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses",
|
|
3914
|
+
encode(message: MsgRemoveCodeUploadParamsAddresses, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3915
|
+
if (message.authority !== "") {
|
|
3916
|
+
writer.uint32(10).string(message.authority);
|
|
3917
|
+
}
|
|
3918
|
+
for (const v of message.addresses) {
|
|
3919
|
+
writer.uint32(18).string(v!);
|
|
3920
|
+
}
|
|
3921
|
+
return writer;
|
|
3922
|
+
},
|
|
3923
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveCodeUploadParamsAddresses {
|
|
3924
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3925
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3926
|
+
const message = createBaseMsgRemoveCodeUploadParamsAddresses();
|
|
3927
|
+
while (reader.pos < end) {
|
|
3928
|
+
const tag = reader.uint32();
|
|
3929
|
+
switch (tag >>> 3) {
|
|
3930
|
+
case 1:
|
|
3931
|
+
message.authority = reader.string();
|
|
3932
|
+
break;
|
|
3933
|
+
case 2:
|
|
3934
|
+
message.addresses.push(reader.string());
|
|
3935
|
+
break;
|
|
3936
|
+
default:
|
|
3937
|
+
reader.skipType(tag & 7);
|
|
3938
|
+
break;
|
|
3939
|
+
}
|
|
3940
|
+
}
|
|
3941
|
+
return message;
|
|
3942
|
+
},
|
|
3943
|
+
fromPartial(object: Partial<MsgRemoveCodeUploadParamsAddresses>): MsgRemoveCodeUploadParamsAddresses {
|
|
3944
|
+
const message = createBaseMsgRemoveCodeUploadParamsAddresses();
|
|
3945
|
+
message.authority = object.authority ?? "";
|
|
3946
|
+
message.addresses = object.addresses?.map(e => e) || [];
|
|
3947
|
+
return message;
|
|
3948
|
+
},
|
|
3949
|
+
fromAmino(object: MsgRemoveCodeUploadParamsAddressesAmino): MsgRemoveCodeUploadParamsAddresses {
|
|
3950
|
+
const message = createBaseMsgRemoveCodeUploadParamsAddresses();
|
|
3951
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3952
|
+
message.authority = object.authority;
|
|
3953
|
+
}
|
|
3954
|
+
message.addresses = object.addresses?.map(e => e) || [];
|
|
3955
|
+
return message;
|
|
3956
|
+
},
|
|
3957
|
+
toAmino(message: MsgRemoveCodeUploadParamsAddresses): MsgRemoveCodeUploadParamsAddressesAmino {
|
|
3958
|
+
const obj: any = {};
|
|
3959
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3960
|
+
if (message.addresses) {
|
|
3961
|
+
obj.addresses = message.addresses.map(e => e);
|
|
3962
|
+
} else {
|
|
3963
|
+
obj.addresses = message.addresses;
|
|
3964
|
+
}
|
|
3965
|
+
return obj;
|
|
3966
|
+
},
|
|
3967
|
+
fromAminoMsg(object: MsgRemoveCodeUploadParamsAddressesAminoMsg): MsgRemoveCodeUploadParamsAddresses {
|
|
3968
|
+
return MsgRemoveCodeUploadParamsAddresses.fromAmino(object.value);
|
|
3969
|
+
},
|
|
3970
|
+
toAminoMsg(message: MsgRemoveCodeUploadParamsAddresses): MsgRemoveCodeUploadParamsAddressesAminoMsg {
|
|
3971
|
+
return {
|
|
3972
|
+
type: "wasm/MsgRemoveCodeUploadParamsAddresses",
|
|
3973
|
+
value: MsgRemoveCodeUploadParamsAddresses.toAmino(message)
|
|
3974
|
+
};
|
|
3975
|
+
},
|
|
3976
|
+
fromProtoMsg(message: MsgRemoveCodeUploadParamsAddressesProtoMsg): MsgRemoveCodeUploadParamsAddresses {
|
|
3977
|
+
return MsgRemoveCodeUploadParamsAddresses.decode(message.value);
|
|
3978
|
+
},
|
|
3979
|
+
toProto(message: MsgRemoveCodeUploadParamsAddresses): Uint8Array {
|
|
3980
|
+
return MsgRemoveCodeUploadParamsAddresses.encode(message).finish();
|
|
3981
|
+
},
|
|
3982
|
+
toProtoMsg(message: MsgRemoveCodeUploadParamsAddresses): MsgRemoveCodeUploadParamsAddressesProtoMsg {
|
|
3983
|
+
return {
|
|
3984
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses",
|
|
3985
|
+
value: MsgRemoveCodeUploadParamsAddresses.encode(message).finish()
|
|
3986
|
+
};
|
|
3987
|
+
}
|
|
3988
|
+
};
|
|
3989
|
+
function createBaseMsgRemoveCodeUploadParamsAddressesResponse(): MsgRemoveCodeUploadParamsAddressesResponse {
|
|
3990
|
+
return {};
|
|
3991
|
+
}
|
|
3992
|
+
export const MsgRemoveCodeUploadParamsAddressesResponse = {
|
|
3993
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse",
|
|
3994
|
+
encode(_: MsgRemoveCodeUploadParamsAddressesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
3995
|
+
return writer;
|
|
3996
|
+
},
|
|
3997
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveCodeUploadParamsAddressesResponse {
|
|
3998
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3999
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4000
|
+
const message = createBaseMsgRemoveCodeUploadParamsAddressesResponse();
|
|
4001
|
+
while (reader.pos < end) {
|
|
4002
|
+
const tag = reader.uint32();
|
|
4003
|
+
switch (tag >>> 3) {
|
|
4004
|
+
default:
|
|
4005
|
+
reader.skipType(tag & 7);
|
|
4006
|
+
break;
|
|
4007
|
+
}
|
|
4008
|
+
}
|
|
4009
|
+
return message;
|
|
4010
|
+
},
|
|
4011
|
+
fromPartial(_: Partial<MsgRemoveCodeUploadParamsAddressesResponse>): MsgRemoveCodeUploadParamsAddressesResponse {
|
|
4012
|
+
const message = createBaseMsgRemoveCodeUploadParamsAddressesResponse();
|
|
4013
|
+
return message;
|
|
4014
|
+
},
|
|
4015
|
+
fromAmino(_: MsgRemoveCodeUploadParamsAddressesResponseAmino): MsgRemoveCodeUploadParamsAddressesResponse {
|
|
4016
|
+
const message = createBaseMsgRemoveCodeUploadParamsAddressesResponse();
|
|
4017
|
+
return message;
|
|
4018
|
+
},
|
|
4019
|
+
toAmino(_: MsgRemoveCodeUploadParamsAddressesResponse): MsgRemoveCodeUploadParamsAddressesResponseAmino {
|
|
4020
|
+
const obj: any = {};
|
|
4021
|
+
return obj;
|
|
4022
|
+
},
|
|
4023
|
+
fromAminoMsg(object: MsgRemoveCodeUploadParamsAddressesResponseAminoMsg): MsgRemoveCodeUploadParamsAddressesResponse {
|
|
4024
|
+
return MsgRemoveCodeUploadParamsAddressesResponse.fromAmino(object.value);
|
|
4025
|
+
},
|
|
4026
|
+
toAminoMsg(message: MsgRemoveCodeUploadParamsAddressesResponse): MsgRemoveCodeUploadParamsAddressesResponseAminoMsg {
|
|
4027
|
+
return {
|
|
4028
|
+
type: "wasm/MsgRemoveCodeUploadParamsAddressesResponse",
|
|
4029
|
+
value: MsgRemoveCodeUploadParamsAddressesResponse.toAmino(message)
|
|
4030
|
+
};
|
|
4031
|
+
},
|
|
4032
|
+
fromProtoMsg(message: MsgRemoveCodeUploadParamsAddressesResponseProtoMsg): MsgRemoveCodeUploadParamsAddressesResponse {
|
|
4033
|
+
return MsgRemoveCodeUploadParamsAddressesResponse.decode(message.value);
|
|
4034
|
+
},
|
|
4035
|
+
toProto(message: MsgRemoveCodeUploadParamsAddressesResponse): Uint8Array {
|
|
4036
|
+
return MsgRemoveCodeUploadParamsAddressesResponse.encode(message).finish();
|
|
4037
|
+
},
|
|
4038
|
+
toProtoMsg(message: MsgRemoveCodeUploadParamsAddressesResponse): MsgRemoveCodeUploadParamsAddressesResponseProtoMsg {
|
|
4039
|
+
return {
|
|
4040
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse",
|
|
4041
|
+
value: MsgRemoveCodeUploadParamsAddressesResponse.encode(message).finish()
|
|
4042
|
+
};
|
|
4043
|
+
}
|
|
4044
|
+
};
|
|
4045
|
+
function createBaseMsgStoreAndMigrateContract(): MsgStoreAndMigrateContract {
|
|
4046
|
+
return {
|
|
4047
|
+
authority: "",
|
|
4048
|
+
wasmByteCode: new Uint8Array(),
|
|
4049
|
+
instantiatePermission: undefined,
|
|
4050
|
+
contract: "",
|
|
4051
|
+
msg: new Uint8Array()
|
|
4052
|
+
};
|
|
4053
|
+
}
|
|
4054
|
+
export const MsgStoreAndMigrateContract = {
|
|
4055
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract",
|
|
4056
|
+
encode(message: MsgStoreAndMigrateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
4057
|
+
if (message.authority !== "") {
|
|
4058
|
+
writer.uint32(10).string(message.authority);
|
|
4059
|
+
}
|
|
4060
|
+
if (message.wasmByteCode.length !== 0) {
|
|
4061
|
+
writer.uint32(18).bytes(message.wasmByteCode);
|
|
4062
|
+
}
|
|
4063
|
+
if (message.instantiatePermission !== undefined) {
|
|
4064
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(26).fork()).ldelim();
|
|
4065
|
+
}
|
|
4066
|
+
if (message.contract !== "") {
|
|
4067
|
+
writer.uint32(34).string(message.contract);
|
|
4068
|
+
}
|
|
4069
|
+
if (message.msg.length !== 0) {
|
|
4070
|
+
writer.uint32(42).bytes(message.msg);
|
|
4071
|
+
}
|
|
4072
|
+
return writer;
|
|
4073
|
+
},
|
|
4074
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndMigrateContract {
|
|
4075
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4076
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4077
|
+
const message = createBaseMsgStoreAndMigrateContract();
|
|
4078
|
+
while (reader.pos < end) {
|
|
4079
|
+
const tag = reader.uint32();
|
|
4080
|
+
switch (tag >>> 3) {
|
|
4081
|
+
case 1:
|
|
4082
|
+
message.authority = reader.string();
|
|
4083
|
+
break;
|
|
4084
|
+
case 2:
|
|
4085
|
+
message.wasmByteCode = reader.bytes();
|
|
4086
|
+
break;
|
|
4087
|
+
case 3:
|
|
4088
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
4089
|
+
break;
|
|
4090
|
+
case 4:
|
|
4091
|
+
message.contract = reader.string();
|
|
4092
|
+
break;
|
|
4093
|
+
case 5:
|
|
4094
|
+
message.msg = reader.bytes();
|
|
4095
|
+
break;
|
|
4096
|
+
default:
|
|
4097
|
+
reader.skipType(tag & 7);
|
|
4098
|
+
break;
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
return message;
|
|
4102
|
+
},
|
|
4103
|
+
fromPartial(object: Partial<MsgStoreAndMigrateContract>): MsgStoreAndMigrateContract {
|
|
4104
|
+
const message = createBaseMsgStoreAndMigrateContract();
|
|
4105
|
+
message.authority = object.authority ?? "";
|
|
4106
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
|
4107
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
|
4108
|
+
message.contract = object.contract ?? "";
|
|
4109
|
+
message.msg = object.msg ?? new Uint8Array();
|
|
4110
|
+
return message;
|
|
4111
|
+
},
|
|
4112
|
+
fromAmino(object: MsgStoreAndMigrateContractAmino): MsgStoreAndMigrateContract {
|
|
4113
|
+
const message = createBaseMsgStoreAndMigrateContract();
|
|
4114
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
4115
|
+
message.authority = object.authority;
|
|
4116
|
+
}
|
|
4117
|
+
if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
|
|
4118
|
+
message.wasmByteCode = fromBase64(object.wasm_byte_code);
|
|
4119
|
+
}
|
|
4120
|
+
if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
|
|
4121
|
+
message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
|
|
4122
|
+
}
|
|
4123
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
4124
|
+
message.contract = object.contract;
|
|
4125
|
+
}
|
|
4126
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
4127
|
+
message.msg = toUtf8(JSON.stringify(object.msg));
|
|
4128
|
+
}
|
|
4129
|
+
return message;
|
|
4130
|
+
},
|
|
4131
|
+
toAmino(message: MsgStoreAndMigrateContract): MsgStoreAndMigrateContractAmino {
|
|
4132
|
+
const obj: any = {};
|
|
4133
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
4134
|
+
obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
|
|
4135
|
+
obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
|
|
4136
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
4137
|
+
obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
|
|
4138
|
+
return obj;
|
|
4139
|
+
},
|
|
4140
|
+
fromAminoMsg(object: MsgStoreAndMigrateContractAminoMsg): MsgStoreAndMigrateContract {
|
|
4141
|
+
return MsgStoreAndMigrateContract.fromAmino(object.value);
|
|
4142
|
+
},
|
|
4143
|
+
toAminoMsg(message: MsgStoreAndMigrateContract): MsgStoreAndMigrateContractAminoMsg {
|
|
4144
|
+
return {
|
|
4145
|
+
type: "wasm/MsgStoreAndMigrateContract",
|
|
4146
|
+
value: MsgStoreAndMigrateContract.toAmino(message)
|
|
4147
|
+
};
|
|
4148
|
+
},
|
|
4149
|
+
fromProtoMsg(message: MsgStoreAndMigrateContractProtoMsg): MsgStoreAndMigrateContract {
|
|
4150
|
+
return MsgStoreAndMigrateContract.decode(message.value);
|
|
4151
|
+
},
|
|
4152
|
+
toProto(message: MsgStoreAndMigrateContract): Uint8Array {
|
|
4153
|
+
return MsgStoreAndMigrateContract.encode(message).finish();
|
|
4154
|
+
},
|
|
4155
|
+
toProtoMsg(message: MsgStoreAndMigrateContract): MsgStoreAndMigrateContractProtoMsg {
|
|
4156
|
+
return {
|
|
4157
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract",
|
|
4158
|
+
value: MsgStoreAndMigrateContract.encode(message).finish()
|
|
4159
|
+
};
|
|
4160
|
+
}
|
|
4161
|
+
};
|
|
4162
|
+
function createBaseMsgStoreAndMigrateContractResponse(): MsgStoreAndMigrateContractResponse {
|
|
4163
|
+
return {
|
|
4164
|
+
codeId: BigInt(0),
|
|
4165
|
+
checksum: new Uint8Array(),
|
|
4166
|
+
data: new Uint8Array()
|
|
4167
|
+
};
|
|
4168
|
+
}
|
|
4169
|
+
export const MsgStoreAndMigrateContractResponse = {
|
|
4170
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse",
|
|
4171
|
+
encode(message: MsgStoreAndMigrateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
4172
|
+
if (message.codeId !== BigInt(0)) {
|
|
4173
|
+
writer.uint32(8).uint64(message.codeId);
|
|
4174
|
+
}
|
|
4175
|
+
if (message.checksum.length !== 0) {
|
|
4176
|
+
writer.uint32(18).bytes(message.checksum);
|
|
4177
|
+
}
|
|
4178
|
+
if (message.data.length !== 0) {
|
|
4179
|
+
writer.uint32(26).bytes(message.data);
|
|
4180
|
+
}
|
|
4181
|
+
return writer;
|
|
4182
|
+
},
|
|
4183
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndMigrateContractResponse {
|
|
4184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4185
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4186
|
+
const message = createBaseMsgStoreAndMigrateContractResponse();
|
|
4187
|
+
while (reader.pos < end) {
|
|
4188
|
+
const tag = reader.uint32();
|
|
4189
|
+
switch (tag >>> 3) {
|
|
4190
|
+
case 1:
|
|
4191
|
+
message.codeId = reader.uint64();
|
|
4192
|
+
break;
|
|
4193
|
+
case 2:
|
|
4194
|
+
message.checksum = reader.bytes();
|
|
4195
|
+
break;
|
|
4196
|
+
case 3:
|
|
4197
|
+
message.data = reader.bytes();
|
|
4198
|
+
break;
|
|
4199
|
+
default:
|
|
4200
|
+
reader.skipType(tag & 7);
|
|
4201
|
+
break;
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4204
|
+
return message;
|
|
4205
|
+
},
|
|
4206
|
+
fromPartial(object: Partial<MsgStoreAndMigrateContractResponse>): MsgStoreAndMigrateContractResponse {
|
|
4207
|
+
const message = createBaseMsgStoreAndMigrateContractResponse();
|
|
4208
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
|
|
4209
|
+
message.checksum = object.checksum ?? new Uint8Array();
|
|
4210
|
+
message.data = object.data ?? new Uint8Array();
|
|
4211
|
+
return message;
|
|
4212
|
+
},
|
|
4213
|
+
fromAmino(object: MsgStoreAndMigrateContractResponseAmino): MsgStoreAndMigrateContractResponse {
|
|
4214
|
+
const message = createBaseMsgStoreAndMigrateContractResponse();
|
|
4215
|
+
if (object.code_id !== undefined && object.code_id !== null) {
|
|
4216
|
+
message.codeId = BigInt(object.code_id);
|
|
4217
|
+
}
|
|
4218
|
+
if (object.checksum !== undefined && object.checksum !== null) {
|
|
4219
|
+
message.checksum = bytesFromBase64(object.checksum);
|
|
4220
|
+
}
|
|
4221
|
+
if (object.data !== undefined && object.data !== null) {
|
|
4222
|
+
message.data = bytesFromBase64(object.data);
|
|
4223
|
+
}
|
|
4224
|
+
return message;
|
|
4225
|
+
},
|
|
4226
|
+
toAmino(message: MsgStoreAndMigrateContractResponse): MsgStoreAndMigrateContractResponseAmino {
|
|
4227
|
+
const obj: any = {};
|
|
4228
|
+
obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
|
|
4229
|
+
obj.checksum = message.checksum ? base64FromBytes(message.checksum) : undefined;
|
|
4230
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
4231
|
+
return obj;
|
|
4232
|
+
},
|
|
4233
|
+
fromAminoMsg(object: MsgStoreAndMigrateContractResponseAminoMsg): MsgStoreAndMigrateContractResponse {
|
|
4234
|
+
return MsgStoreAndMigrateContractResponse.fromAmino(object.value);
|
|
4235
|
+
},
|
|
4236
|
+
toAminoMsg(message: MsgStoreAndMigrateContractResponse): MsgStoreAndMigrateContractResponseAminoMsg {
|
|
4237
|
+
return {
|
|
4238
|
+
type: "wasm/MsgStoreAndMigrateContractResponse",
|
|
4239
|
+
value: MsgStoreAndMigrateContractResponse.toAmino(message)
|
|
4240
|
+
};
|
|
4241
|
+
},
|
|
4242
|
+
fromProtoMsg(message: MsgStoreAndMigrateContractResponseProtoMsg): MsgStoreAndMigrateContractResponse {
|
|
4243
|
+
return MsgStoreAndMigrateContractResponse.decode(message.value);
|
|
4244
|
+
},
|
|
4245
|
+
toProto(message: MsgStoreAndMigrateContractResponse): Uint8Array {
|
|
4246
|
+
return MsgStoreAndMigrateContractResponse.encode(message).finish();
|
|
4247
|
+
},
|
|
4248
|
+
toProtoMsg(message: MsgStoreAndMigrateContractResponse): MsgStoreAndMigrateContractResponseProtoMsg {
|
|
4249
|
+
return {
|
|
4250
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse",
|
|
4251
|
+
value: MsgStoreAndMigrateContractResponse.encode(message).finish()
|
|
4252
|
+
};
|
|
4253
|
+
}
|
|
4254
|
+
};
|
|
4255
|
+
function createBaseMsgUpdateContractLabel(): MsgUpdateContractLabel {
|
|
4256
|
+
return {
|
|
4257
|
+
sender: "",
|
|
4258
|
+
newLabel: "",
|
|
4259
|
+
contract: ""
|
|
4260
|
+
};
|
|
4261
|
+
}
|
|
4262
|
+
export const MsgUpdateContractLabel = {
|
|
4263
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel",
|
|
4264
|
+
encode(message: MsgUpdateContractLabel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
4265
|
+
if (message.sender !== "") {
|
|
4266
|
+
writer.uint32(10).string(message.sender);
|
|
4267
|
+
}
|
|
4268
|
+
if (message.newLabel !== "") {
|
|
4269
|
+
writer.uint32(18).string(message.newLabel);
|
|
4270
|
+
}
|
|
4271
|
+
if (message.contract !== "") {
|
|
4272
|
+
writer.uint32(26).string(message.contract);
|
|
4273
|
+
}
|
|
4274
|
+
return writer;
|
|
4275
|
+
},
|
|
4276
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateContractLabel {
|
|
4277
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4278
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4279
|
+
const message = createBaseMsgUpdateContractLabel();
|
|
4280
|
+
while (reader.pos < end) {
|
|
4281
|
+
const tag = reader.uint32();
|
|
4282
|
+
switch (tag >>> 3) {
|
|
4283
|
+
case 1:
|
|
4284
|
+
message.sender = reader.string();
|
|
4285
|
+
break;
|
|
4286
|
+
case 2:
|
|
4287
|
+
message.newLabel = reader.string();
|
|
4288
|
+
break;
|
|
4289
|
+
case 3:
|
|
4290
|
+
message.contract = reader.string();
|
|
4291
|
+
break;
|
|
4292
|
+
default:
|
|
4293
|
+
reader.skipType(tag & 7);
|
|
4294
|
+
break;
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
return message;
|
|
4298
|
+
},
|
|
4299
|
+
fromPartial(object: Partial<MsgUpdateContractLabel>): MsgUpdateContractLabel {
|
|
4300
|
+
const message = createBaseMsgUpdateContractLabel();
|
|
4301
|
+
message.sender = object.sender ?? "";
|
|
4302
|
+
message.newLabel = object.newLabel ?? "";
|
|
4303
|
+
message.contract = object.contract ?? "";
|
|
4304
|
+
return message;
|
|
4305
|
+
},
|
|
4306
|
+
fromAmino(object: MsgUpdateContractLabelAmino): MsgUpdateContractLabel {
|
|
4307
|
+
const message = createBaseMsgUpdateContractLabel();
|
|
4308
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
4309
|
+
message.sender = object.sender;
|
|
4310
|
+
}
|
|
4311
|
+
if (object.new_label !== undefined && object.new_label !== null) {
|
|
4312
|
+
message.newLabel = object.new_label;
|
|
4313
|
+
}
|
|
4314
|
+
if (object.contract !== undefined && object.contract !== null) {
|
|
4315
|
+
message.contract = object.contract;
|
|
4316
|
+
}
|
|
4317
|
+
return message;
|
|
4318
|
+
},
|
|
4319
|
+
toAmino(message: MsgUpdateContractLabel): MsgUpdateContractLabelAmino {
|
|
4320
|
+
const obj: any = {};
|
|
4321
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
4322
|
+
obj.new_label = message.newLabel === "" ? undefined : message.newLabel;
|
|
4323
|
+
obj.contract = message.contract === "" ? undefined : message.contract;
|
|
4324
|
+
return obj;
|
|
4325
|
+
},
|
|
4326
|
+
fromAminoMsg(object: MsgUpdateContractLabelAminoMsg): MsgUpdateContractLabel {
|
|
4327
|
+
return MsgUpdateContractLabel.fromAmino(object.value);
|
|
4328
|
+
},
|
|
4329
|
+
toAminoMsg(message: MsgUpdateContractLabel): MsgUpdateContractLabelAminoMsg {
|
|
4330
|
+
return {
|
|
4331
|
+
type: "wasm/MsgUpdateContractLabel",
|
|
4332
|
+
value: MsgUpdateContractLabel.toAmino(message)
|
|
4333
|
+
};
|
|
4334
|
+
},
|
|
4335
|
+
fromProtoMsg(message: MsgUpdateContractLabelProtoMsg): MsgUpdateContractLabel {
|
|
4336
|
+
return MsgUpdateContractLabel.decode(message.value);
|
|
4337
|
+
},
|
|
4338
|
+
toProto(message: MsgUpdateContractLabel): Uint8Array {
|
|
4339
|
+
return MsgUpdateContractLabel.encode(message).finish();
|
|
4340
|
+
},
|
|
4341
|
+
toProtoMsg(message: MsgUpdateContractLabel): MsgUpdateContractLabelProtoMsg {
|
|
4342
|
+
return {
|
|
4343
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel",
|
|
4344
|
+
value: MsgUpdateContractLabel.encode(message).finish()
|
|
4345
|
+
};
|
|
4346
|
+
}
|
|
4347
|
+
};
|
|
4348
|
+
function createBaseMsgUpdateContractLabelResponse(): MsgUpdateContractLabelResponse {
|
|
4349
|
+
return {};
|
|
4350
|
+
}
|
|
4351
|
+
export const MsgUpdateContractLabelResponse = {
|
|
4352
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse",
|
|
4353
|
+
encode(_: MsgUpdateContractLabelResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
4354
|
+
return writer;
|
|
4355
|
+
},
|
|
4356
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateContractLabelResponse {
|
|
4357
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4358
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4359
|
+
const message = createBaseMsgUpdateContractLabelResponse();
|
|
4360
|
+
while (reader.pos < end) {
|
|
4361
|
+
const tag = reader.uint32();
|
|
4362
|
+
switch (tag >>> 3) {
|
|
4363
|
+
default:
|
|
4364
|
+
reader.skipType(tag & 7);
|
|
4365
|
+
break;
|
|
4366
|
+
}
|
|
4367
|
+
}
|
|
4368
|
+
return message;
|
|
4369
|
+
},
|
|
4370
|
+
fromPartial(_: Partial<MsgUpdateContractLabelResponse>): MsgUpdateContractLabelResponse {
|
|
4371
|
+
const message = createBaseMsgUpdateContractLabelResponse();
|
|
4372
|
+
return message;
|
|
4373
|
+
},
|
|
4374
|
+
fromAmino(_: MsgUpdateContractLabelResponseAmino): MsgUpdateContractLabelResponse {
|
|
4375
|
+
const message = createBaseMsgUpdateContractLabelResponse();
|
|
4376
|
+
return message;
|
|
4377
|
+
},
|
|
4378
|
+
toAmino(_: MsgUpdateContractLabelResponse): MsgUpdateContractLabelResponseAmino {
|
|
4379
|
+
const obj: any = {};
|
|
4380
|
+
return obj;
|
|
4381
|
+
},
|
|
4382
|
+
fromAminoMsg(object: MsgUpdateContractLabelResponseAminoMsg): MsgUpdateContractLabelResponse {
|
|
4383
|
+
return MsgUpdateContractLabelResponse.fromAmino(object.value);
|
|
4384
|
+
},
|
|
4385
|
+
toAminoMsg(message: MsgUpdateContractLabelResponse): MsgUpdateContractLabelResponseAminoMsg {
|
|
4386
|
+
return {
|
|
4387
|
+
type: "wasm/MsgUpdateContractLabelResponse",
|
|
4388
|
+
value: MsgUpdateContractLabelResponse.toAmino(message)
|
|
4389
|
+
};
|
|
4390
|
+
},
|
|
4391
|
+
fromProtoMsg(message: MsgUpdateContractLabelResponseProtoMsg): MsgUpdateContractLabelResponse {
|
|
4392
|
+
return MsgUpdateContractLabelResponse.decode(message.value);
|
|
4393
|
+
},
|
|
4394
|
+
toProto(message: MsgUpdateContractLabelResponse): Uint8Array {
|
|
4395
|
+
return MsgUpdateContractLabelResponse.encode(message).finish();
|
|
4396
|
+
},
|
|
4397
|
+
toProtoMsg(message: MsgUpdateContractLabelResponse): MsgUpdateContractLabelResponseProtoMsg {
|
|
4398
|
+
return {
|
|
4399
|
+
typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse",
|
|
4400
|
+
value: MsgUpdateContractLabelResponse.encode(message).finish()
|
|
4401
|
+
};
|
|
4402
|
+
}
|
|
4403
|
+
};
|