juno-network 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/codegen/JunoSwap.client.js +1 -1
- package/main/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/bundle.js +8 -8
- package/main/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/rpc.query.js +8 -8
- package/main/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
- package/main/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +8 -8
- package/main/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/cosmwasm/bundle.js +1 -1
- package/main/codegen/cosmwasm/rpc.query.js +9 -9
- package/main/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/google/protobuf/descriptor.js +18 -18
- package/main/codegen/helpers.js +29 -18
- package/main/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
- package/main/codegen/ibc/bundle.js +4 -4
- package/main/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/ibc/rpc.query.js +12 -12
- package/main/codegen/juno/bundle.js +1 -1
- package/main/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/main/codegen/juno/rpc.query.js +9 -9
- package/module/codegen/JunoSwap.client.js +1 -1
- package/module/codegen/contracts.js +1 -1
- package/module/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/bundle.js +8 -8
- package/module/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/rpc.query.js +8 -8
- package/module/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
- package/module/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +2 -2
- package/module/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/cosmwasm/bundle.js +1 -1
- package/module/codegen/cosmwasm/rpc.query.js +9 -9
- package/module/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/google/protobuf/descriptor.js +18 -18
- package/module/codegen/helpers.js +18 -10
- package/module/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
- package/module/codegen/ibc/bundle.js +4 -4
- package/module/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/ibc/rpc.query.js +12 -12
- package/module/codegen/index.js +1 -1
- package/module/codegen/juno/bundle.js +1 -1
- package/module/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
- package/module/codegen/juno/rpc.query.js +9 -9
- package/package.json +3 -3
- package/src/codegen/JunoSwap.client.ts +1 -1
- package/src/codegen/JunoSwap.types.ts +1 -1
- package/src/codegen/contracts.ts +1 -1
- package/src/codegen/cosmos/authz/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/bank/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/bundle.ts +8 -8
- package/src/codegen/cosmos/distribution/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/gov/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/gov/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/rpc.query.ts +8 -8
- package/src/codegen/cosmos/staking/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +4 -4
- package/src/codegen/cosmos/tx/v1beta1/{service.rpc.svc.ts → service.rpc.Service.ts} +2 -2
- package/src/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/cosmwasm/bundle.ts +1 -1
- package/src/codegen/cosmwasm/rpc.query.ts +9 -9
- package/src/codegen/cosmwasm/wasm/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/google/protobuf/descriptor.ts +18 -18
- package/src/codegen/helpers.ts +24 -16
- package/src/codegen/ibc/applications/transfer/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +1 -1
- package/src/codegen/ibc/bundle.ts +4 -4
- package/src/codegen/ibc/core/channel/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/core/client/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/core/connection/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/ibc/rpc.query.ts +12 -12
- package/src/codegen/index.ts +1 -1
- package/src/codegen/juno/bundle.ts +1 -1
- package/src/codegen/juno/mint/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
- package/src/codegen/juno/rpc.query.ts +9 -9
- package/types/codegen/JunoSwap.client.d.ts +122 -0
- package/types/codegen/JunoSwap.types.d.ts +142 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.Query.d.ts +32 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.Query.d.ts +57 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +6233 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.Query.d.ts +51 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.Query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.Query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.Query.d.ts +80 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts +36 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts +43 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +1109 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.Query.d.ts +48 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/bundle.d.ts +1413 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +3781 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.Query.d.ts +88 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts +50 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.Query.d.ts +41 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +226 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.Query.d.ts +24 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +2065 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
@@ -0,0 +1,411 @@
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
|
2
|
+
import { ContractInfo, ContractInfoSDKType, ContractCodeHistoryEntry, ContractCodeHistoryEntrySDKType, Model, ModelSDKType } from "./types";
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
4
|
+
import { DeepPartial, Long } from "../../../helpers";
|
5
|
+
/**
|
6
|
+
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
|
7
|
+
* method
|
8
|
+
*/
|
9
|
+
export interface QueryContractInfoRequest {
|
10
|
+
/** address is the address of the contract to query */
|
11
|
+
address: string;
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
|
15
|
+
* method
|
16
|
+
*/
|
17
|
+
export interface QueryContractInfoRequestSDKType {
|
18
|
+
/** address is the address of the contract to query */
|
19
|
+
address: string;
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* QueryContractInfoResponse is the response type for the Query/ContractInfo RPC
|
23
|
+
* method
|
24
|
+
*/
|
25
|
+
export interface QueryContractInfoResponse {
|
26
|
+
/** address is the address of the contract */
|
27
|
+
address: string;
|
28
|
+
contractInfo?: ContractInfo;
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* QueryContractInfoResponse is the response type for the Query/ContractInfo RPC
|
32
|
+
* method
|
33
|
+
*/
|
34
|
+
export interface QueryContractInfoResponseSDKType {
|
35
|
+
/** address is the address of the contract */
|
36
|
+
address: string;
|
37
|
+
contract_info?: ContractInfoSDKType;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* QueryContractHistoryRequest is the request type for the Query/ContractHistory
|
41
|
+
* RPC method
|
42
|
+
*/
|
43
|
+
export interface QueryContractHistoryRequest {
|
44
|
+
/** address is the address of the contract to query */
|
45
|
+
address: string;
|
46
|
+
/** pagination defines an optional pagination for the request. */
|
47
|
+
pagination?: PageRequest;
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* QueryContractHistoryRequest is the request type for the Query/ContractHistory
|
51
|
+
* RPC method
|
52
|
+
*/
|
53
|
+
export interface QueryContractHistoryRequestSDKType {
|
54
|
+
/** address is the address of the contract to query */
|
55
|
+
address: string;
|
56
|
+
/** pagination defines an optional pagination for the request. */
|
57
|
+
pagination?: PageRequestSDKType;
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* QueryContractHistoryResponse is the response type for the
|
61
|
+
* Query/ContractHistory RPC method
|
62
|
+
*/
|
63
|
+
export interface QueryContractHistoryResponse {
|
64
|
+
entries: ContractCodeHistoryEntry[];
|
65
|
+
/** pagination defines the pagination in the response. */
|
66
|
+
pagination?: PageResponse;
|
67
|
+
}
|
68
|
+
/**
|
69
|
+
* QueryContractHistoryResponse is the response type for the
|
70
|
+
* Query/ContractHistory RPC method
|
71
|
+
*/
|
72
|
+
export interface QueryContractHistoryResponseSDKType {
|
73
|
+
entries: ContractCodeHistoryEntrySDKType[];
|
74
|
+
/** pagination defines the pagination in the response. */
|
75
|
+
pagination?: PageResponseSDKType;
|
76
|
+
}
|
77
|
+
/**
|
78
|
+
* QueryContractsByCodeRequest is the request type for the Query/ContractsByCode
|
79
|
+
* RPC method
|
80
|
+
*/
|
81
|
+
export interface QueryContractsByCodeRequest {
|
82
|
+
/**
|
83
|
+
* grpc-gateway_out does not support Go style CodID
|
84
|
+
* pagination defines an optional pagination for the request.
|
85
|
+
*/
|
86
|
+
codeId: Long;
|
87
|
+
pagination?: PageRequest;
|
88
|
+
}
|
89
|
+
/**
|
90
|
+
* QueryContractsByCodeRequest is the request type for the Query/ContractsByCode
|
91
|
+
* RPC method
|
92
|
+
*/
|
93
|
+
export interface QueryContractsByCodeRequestSDKType {
|
94
|
+
/**
|
95
|
+
* grpc-gateway_out does not support Go style CodID
|
96
|
+
* pagination defines an optional pagination for the request.
|
97
|
+
*/
|
98
|
+
code_id: Long;
|
99
|
+
pagination?: PageRequestSDKType;
|
100
|
+
}
|
101
|
+
/**
|
102
|
+
* QueryContractsByCodeResponse is the response type for the
|
103
|
+
* Query/ContractsByCode RPC method
|
104
|
+
*/
|
105
|
+
export interface QueryContractsByCodeResponse {
|
106
|
+
/** contracts are a set of contract addresses */
|
107
|
+
contracts: string[];
|
108
|
+
/** pagination defines the pagination in the response. */
|
109
|
+
pagination?: PageResponse;
|
110
|
+
}
|
111
|
+
/**
|
112
|
+
* QueryContractsByCodeResponse is the response type for the
|
113
|
+
* Query/ContractsByCode RPC method
|
114
|
+
*/
|
115
|
+
export interface QueryContractsByCodeResponseSDKType {
|
116
|
+
/** contracts are a set of contract addresses */
|
117
|
+
contracts: string[];
|
118
|
+
/** pagination defines the pagination in the response. */
|
119
|
+
pagination?: PageResponseSDKType;
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* QueryAllContractStateRequest is the request type for the
|
123
|
+
* Query/AllContractState RPC method
|
124
|
+
*/
|
125
|
+
export interface QueryAllContractStateRequest {
|
126
|
+
/** address is the address of the contract */
|
127
|
+
address: string;
|
128
|
+
/** pagination defines an optional pagination for the request. */
|
129
|
+
pagination?: PageRequest;
|
130
|
+
}
|
131
|
+
/**
|
132
|
+
* QueryAllContractStateRequest is the request type for the
|
133
|
+
* Query/AllContractState RPC method
|
134
|
+
*/
|
135
|
+
export interface QueryAllContractStateRequestSDKType {
|
136
|
+
/** address is the address of the contract */
|
137
|
+
address: string;
|
138
|
+
/** pagination defines an optional pagination for the request. */
|
139
|
+
pagination?: PageRequestSDKType;
|
140
|
+
}
|
141
|
+
/**
|
142
|
+
* QueryAllContractStateResponse is the response type for the
|
143
|
+
* Query/AllContractState RPC method
|
144
|
+
*/
|
145
|
+
export interface QueryAllContractStateResponse {
|
146
|
+
models: Model[];
|
147
|
+
/** pagination defines the pagination in the response. */
|
148
|
+
pagination?: PageResponse;
|
149
|
+
}
|
150
|
+
/**
|
151
|
+
* QueryAllContractStateResponse is the response type for the
|
152
|
+
* Query/AllContractState RPC method
|
153
|
+
*/
|
154
|
+
export interface QueryAllContractStateResponseSDKType {
|
155
|
+
models: ModelSDKType[];
|
156
|
+
/** pagination defines the pagination in the response. */
|
157
|
+
pagination?: PageResponseSDKType;
|
158
|
+
}
|
159
|
+
/**
|
160
|
+
* QueryRawContractStateRequest is the request type for the
|
161
|
+
* Query/RawContractState RPC method
|
162
|
+
*/
|
163
|
+
export interface QueryRawContractStateRequest {
|
164
|
+
/** address is the address of the contract */
|
165
|
+
address: string;
|
166
|
+
queryData: Uint8Array;
|
167
|
+
}
|
168
|
+
/**
|
169
|
+
* QueryRawContractStateRequest is the request type for the
|
170
|
+
* Query/RawContractState RPC method
|
171
|
+
*/
|
172
|
+
export interface QueryRawContractStateRequestSDKType {
|
173
|
+
/** address is the address of the contract */
|
174
|
+
address: string;
|
175
|
+
query_data: Uint8Array;
|
176
|
+
}
|
177
|
+
/**
|
178
|
+
* QueryRawContractStateResponse is the response type for the
|
179
|
+
* Query/RawContractState RPC method
|
180
|
+
*/
|
181
|
+
export interface QueryRawContractStateResponse {
|
182
|
+
/** Data contains the raw store data */
|
183
|
+
data: Uint8Array;
|
184
|
+
}
|
185
|
+
/**
|
186
|
+
* QueryRawContractStateResponse is the response type for the
|
187
|
+
* Query/RawContractState RPC method
|
188
|
+
*/
|
189
|
+
export interface QueryRawContractStateResponseSDKType {
|
190
|
+
/** Data contains the raw store data */
|
191
|
+
data: Uint8Array;
|
192
|
+
}
|
193
|
+
/**
|
194
|
+
* QuerySmartContractStateRequest is the request type for the
|
195
|
+
* Query/SmartContractState RPC method
|
196
|
+
*/
|
197
|
+
export interface QuerySmartContractStateRequest {
|
198
|
+
/** address is the address of the contract */
|
199
|
+
address: string;
|
200
|
+
/** QueryData contains the query data passed to the contract */
|
201
|
+
queryData: Uint8Array;
|
202
|
+
}
|
203
|
+
/**
|
204
|
+
* QuerySmartContractStateRequest is the request type for the
|
205
|
+
* Query/SmartContractState RPC method
|
206
|
+
*/
|
207
|
+
export interface QuerySmartContractStateRequestSDKType {
|
208
|
+
/** address is the address of the contract */
|
209
|
+
address: string;
|
210
|
+
/** QueryData contains the query data passed to the contract */
|
211
|
+
query_data: Uint8Array;
|
212
|
+
}
|
213
|
+
/**
|
214
|
+
* QuerySmartContractStateResponse is the response type for the
|
215
|
+
* Query/SmartContractState RPC method
|
216
|
+
*/
|
217
|
+
export interface QuerySmartContractStateResponse {
|
218
|
+
/** Data contains the json data returned from the smart contract */
|
219
|
+
data: Uint8Array;
|
220
|
+
}
|
221
|
+
/**
|
222
|
+
* QuerySmartContractStateResponse is the response type for the
|
223
|
+
* Query/SmartContractState RPC method
|
224
|
+
*/
|
225
|
+
export interface QuerySmartContractStateResponseSDKType {
|
226
|
+
/** Data contains the json data returned from the smart contract */
|
227
|
+
data: Uint8Array;
|
228
|
+
}
|
229
|
+
/** QueryCodeRequest is the request type for the Query/Code RPC method */
|
230
|
+
export interface QueryCodeRequest {
|
231
|
+
/** grpc-gateway_out does not support Go style CodID */
|
232
|
+
codeId: Long;
|
233
|
+
}
|
234
|
+
/** QueryCodeRequest is the request type for the Query/Code RPC method */
|
235
|
+
export interface QueryCodeRequestSDKType {
|
236
|
+
/** grpc-gateway_out does not support Go style CodID */
|
237
|
+
code_id: Long;
|
238
|
+
}
|
239
|
+
/** CodeInfoResponse contains code meta data from CodeInfo */
|
240
|
+
export interface CodeInfoResponse {
|
241
|
+
codeId: Long;
|
242
|
+
creator: string;
|
243
|
+
dataHash: Uint8Array;
|
244
|
+
}
|
245
|
+
/** CodeInfoResponse contains code meta data from CodeInfo */
|
246
|
+
export interface CodeInfoResponseSDKType {
|
247
|
+
code_id: Long;
|
248
|
+
creator: string;
|
249
|
+
data_hash: Uint8Array;
|
250
|
+
}
|
251
|
+
/** QueryCodeResponse is the response type for the Query/Code RPC method */
|
252
|
+
export interface QueryCodeResponse {
|
253
|
+
codeInfo?: CodeInfoResponse;
|
254
|
+
data: Uint8Array;
|
255
|
+
}
|
256
|
+
/** QueryCodeResponse is the response type for the Query/Code RPC method */
|
257
|
+
export interface QueryCodeResponseSDKType {
|
258
|
+
code_info?: CodeInfoResponseSDKType;
|
259
|
+
data: Uint8Array;
|
260
|
+
}
|
261
|
+
/** QueryCodesRequest is the request type for the Query/Codes RPC method */
|
262
|
+
export interface QueryCodesRequest {
|
263
|
+
/** pagination defines an optional pagination for the request. */
|
264
|
+
pagination?: PageRequest;
|
265
|
+
}
|
266
|
+
/** QueryCodesRequest is the request type for the Query/Codes RPC method */
|
267
|
+
export interface QueryCodesRequestSDKType {
|
268
|
+
/** pagination defines an optional pagination for the request. */
|
269
|
+
pagination?: PageRequestSDKType;
|
270
|
+
}
|
271
|
+
/** QueryCodesResponse is the response type for the Query/Codes RPC method */
|
272
|
+
export interface QueryCodesResponse {
|
273
|
+
codeInfos: CodeInfoResponse[];
|
274
|
+
/** pagination defines the pagination in the response. */
|
275
|
+
pagination?: PageResponse;
|
276
|
+
}
|
277
|
+
/** QueryCodesResponse is the response type for the Query/Codes RPC method */
|
278
|
+
export interface QueryCodesResponseSDKType {
|
279
|
+
code_infos: CodeInfoResponseSDKType[];
|
280
|
+
/** pagination defines the pagination in the response. */
|
281
|
+
pagination?: PageResponseSDKType;
|
282
|
+
}
|
283
|
+
/**
|
284
|
+
* QueryPinnedCodesRequest is the request type for the Query/PinnedCodes
|
285
|
+
* RPC method
|
286
|
+
*/
|
287
|
+
export interface QueryPinnedCodesRequest {
|
288
|
+
/** pagination defines an optional pagination for the request. */
|
289
|
+
pagination?: PageRequest;
|
290
|
+
}
|
291
|
+
/**
|
292
|
+
* QueryPinnedCodesRequest is the request type for the Query/PinnedCodes
|
293
|
+
* RPC method
|
294
|
+
*/
|
295
|
+
export interface QueryPinnedCodesRequestSDKType {
|
296
|
+
/** pagination defines an optional pagination for the request. */
|
297
|
+
pagination?: PageRequestSDKType;
|
298
|
+
}
|
299
|
+
/**
|
300
|
+
* QueryPinnedCodesResponse is the response type for the
|
301
|
+
* Query/PinnedCodes RPC method
|
302
|
+
*/
|
303
|
+
export interface QueryPinnedCodesResponse {
|
304
|
+
codeIds: Long[];
|
305
|
+
/** pagination defines the pagination in the response. */
|
306
|
+
pagination?: PageResponse;
|
307
|
+
}
|
308
|
+
/**
|
309
|
+
* QueryPinnedCodesResponse is the response type for the
|
310
|
+
* Query/PinnedCodes RPC method
|
311
|
+
*/
|
312
|
+
export interface QueryPinnedCodesResponseSDKType {
|
313
|
+
code_ids: Long[];
|
314
|
+
/** pagination defines the pagination in the response. */
|
315
|
+
pagination?: PageResponseSDKType;
|
316
|
+
}
|
317
|
+
export declare const QueryContractInfoRequest: {
|
318
|
+
encode(message: QueryContractInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
319
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoRequest;
|
320
|
+
fromPartial(object: DeepPartial<QueryContractInfoRequest>): QueryContractInfoRequest;
|
321
|
+
};
|
322
|
+
export declare const QueryContractInfoResponse: {
|
323
|
+
encode(message: QueryContractInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
324
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoResponse;
|
325
|
+
fromPartial(object: DeepPartial<QueryContractInfoResponse>): QueryContractInfoResponse;
|
326
|
+
};
|
327
|
+
export declare const QueryContractHistoryRequest: {
|
328
|
+
encode(message: QueryContractHistoryRequest, writer?: _m0.Writer): _m0.Writer;
|
329
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryRequest;
|
330
|
+
fromPartial(object: DeepPartial<QueryContractHistoryRequest>): QueryContractHistoryRequest;
|
331
|
+
};
|
332
|
+
export declare const QueryContractHistoryResponse: {
|
333
|
+
encode(message: QueryContractHistoryResponse, writer?: _m0.Writer): _m0.Writer;
|
334
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryResponse;
|
335
|
+
fromPartial(object: DeepPartial<QueryContractHistoryResponse>): QueryContractHistoryResponse;
|
336
|
+
};
|
337
|
+
export declare const QueryContractsByCodeRequest: {
|
338
|
+
encode(message: QueryContractsByCodeRequest, writer?: _m0.Writer): _m0.Writer;
|
339
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeRequest;
|
340
|
+
fromPartial(object: DeepPartial<QueryContractsByCodeRequest>): QueryContractsByCodeRequest;
|
341
|
+
};
|
342
|
+
export declare const QueryContractsByCodeResponse: {
|
343
|
+
encode(message: QueryContractsByCodeResponse, writer?: _m0.Writer): _m0.Writer;
|
344
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeResponse;
|
345
|
+
fromPartial(object: DeepPartial<QueryContractsByCodeResponse>): QueryContractsByCodeResponse;
|
346
|
+
};
|
347
|
+
export declare const QueryAllContractStateRequest: {
|
348
|
+
encode(message: QueryAllContractStateRequest, writer?: _m0.Writer): _m0.Writer;
|
349
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateRequest;
|
350
|
+
fromPartial(object: DeepPartial<QueryAllContractStateRequest>): QueryAllContractStateRequest;
|
351
|
+
};
|
352
|
+
export declare const QueryAllContractStateResponse: {
|
353
|
+
encode(message: QueryAllContractStateResponse, writer?: _m0.Writer): _m0.Writer;
|
354
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateResponse;
|
355
|
+
fromPartial(object: DeepPartial<QueryAllContractStateResponse>): QueryAllContractStateResponse;
|
356
|
+
};
|
357
|
+
export declare const QueryRawContractStateRequest: {
|
358
|
+
encode(message: QueryRawContractStateRequest, writer?: _m0.Writer): _m0.Writer;
|
359
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateRequest;
|
360
|
+
fromPartial(object: DeepPartial<QueryRawContractStateRequest>): QueryRawContractStateRequest;
|
361
|
+
};
|
362
|
+
export declare const QueryRawContractStateResponse: {
|
363
|
+
encode(message: QueryRawContractStateResponse, writer?: _m0.Writer): _m0.Writer;
|
364
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateResponse;
|
365
|
+
fromPartial(object: DeepPartial<QueryRawContractStateResponse>): QueryRawContractStateResponse;
|
366
|
+
};
|
367
|
+
export declare const QuerySmartContractStateRequest: {
|
368
|
+
encode(message: QuerySmartContractStateRequest, writer?: _m0.Writer): _m0.Writer;
|
369
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateRequest;
|
370
|
+
fromPartial(object: DeepPartial<QuerySmartContractStateRequest>): QuerySmartContractStateRequest;
|
371
|
+
};
|
372
|
+
export declare const QuerySmartContractStateResponse: {
|
373
|
+
encode(message: QuerySmartContractStateResponse, writer?: _m0.Writer): _m0.Writer;
|
374
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateResponse;
|
375
|
+
fromPartial(object: DeepPartial<QuerySmartContractStateResponse>): QuerySmartContractStateResponse;
|
376
|
+
};
|
377
|
+
export declare const QueryCodeRequest: {
|
378
|
+
encode(message: QueryCodeRequest, writer?: _m0.Writer): _m0.Writer;
|
379
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeRequest;
|
380
|
+
fromPartial(object: DeepPartial<QueryCodeRequest>): QueryCodeRequest;
|
381
|
+
};
|
382
|
+
export declare const CodeInfoResponse: {
|
383
|
+
encode(message: CodeInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
384
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse;
|
385
|
+
fromPartial(object: DeepPartial<CodeInfoResponse>): CodeInfoResponse;
|
386
|
+
};
|
387
|
+
export declare const QueryCodeResponse: {
|
388
|
+
encode(message: QueryCodeResponse, writer?: _m0.Writer): _m0.Writer;
|
389
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse;
|
390
|
+
fromPartial(object: DeepPartial<QueryCodeResponse>): QueryCodeResponse;
|
391
|
+
};
|
392
|
+
export declare const QueryCodesRequest: {
|
393
|
+
encode(message: QueryCodesRequest, writer?: _m0.Writer): _m0.Writer;
|
394
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest;
|
395
|
+
fromPartial(object: DeepPartial<QueryCodesRequest>): QueryCodesRequest;
|
396
|
+
};
|
397
|
+
export declare const QueryCodesResponse: {
|
398
|
+
encode(message: QueryCodesResponse, writer?: _m0.Writer): _m0.Writer;
|
399
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesResponse;
|
400
|
+
fromPartial(object: DeepPartial<QueryCodesResponse>): QueryCodesResponse;
|
401
|
+
};
|
402
|
+
export declare const QueryPinnedCodesRequest: {
|
403
|
+
encode(message: QueryPinnedCodesRequest, writer?: _m0.Writer): _m0.Writer;
|
404
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesRequest;
|
405
|
+
fromPartial(object: DeepPartial<QueryPinnedCodesRequest>): QueryPinnedCodesRequest;
|
406
|
+
};
|
407
|
+
export declare const QueryPinnedCodesResponse: {
|
408
|
+
encode(message: QueryPinnedCodesResponse, writer?: _m0.Writer): _m0.Writer;
|
409
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesResponse;
|
410
|
+
fromPartial(object: DeepPartial<QueryPinnedCodesResponse>): QueryPinnedCodesResponse;
|
411
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
2
|
+
import { QueryContractInfoRequest, QueryContractInfoResponseSDKType, QueryContractHistoryRequest, QueryContractHistoryResponseSDKType, QueryContractsByCodeRequest, QueryContractsByCodeResponseSDKType, QueryAllContractStateRequest, QueryAllContractStateResponseSDKType, QueryRawContractStateRequest, QueryRawContractStateResponseSDKType, QuerySmartContractStateRequest, QuerySmartContractStateResponseSDKType, QueryCodeRequest, QueryCodeResponseSDKType, QueryCodesRequest, QueryCodesResponseSDKType, QueryPinnedCodesRequest, QueryPinnedCodesResponseSDKType } from "./query";
|
3
|
+
export declare class LCDQueryClient {
|
4
|
+
req: LCDClient;
|
5
|
+
constructor({ requestClient }: {
|
6
|
+
requestClient: LCDClient;
|
7
|
+
});
|
8
|
+
contractInfo(params: QueryContractInfoRequest): Promise<QueryContractInfoResponseSDKType>;
|
9
|
+
contractHistory(params: QueryContractHistoryRequest): Promise<QueryContractHistoryResponseSDKType>;
|
10
|
+
contractsByCode(params: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponseSDKType>;
|
11
|
+
allContractState(params: QueryAllContractStateRequest): Promise<QueryAllContractStateResponseSDKType>;
|
12
|
+
rawContractState(params: QueryRawContractStateRequest): Promise<QueryRawContractStateResponseSDKType>;
|
13
|
+
smartContractState(params: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponseSDKType>;
|
14
|
+
code(params: QueryCodeRequest): Promise<QueryCodeResponseSDKType>;
|
15
|
+
codes(params?: QueryCodesRequest): Promise<QueryCodesResponseSDKType>;
|
16
|
+
pinnedCodes(params?: QueryPinnedCodesRequest): Promise<QueryPinnedCodesResponseSDKType>;
|
17
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
3
|
+
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse } from "./query";
|
4
|
+
/** Query provides defines the gRPC querier service */
|
5
|
+
export interface Query {
|
6
|
+
/** ContractInfo gets the contract meta data */
|
7
|
+
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
|
8
|
+
/** ContractHistory gets the contract code history */
|
9
|
+
contractHistory(request: QueryContractHistoryRequest): Promise<QueryContractHistoryResponse>;
|
10
|
+
/** ContractsByCode lists all smart contracts for a code id */
|
11
|
+
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
|
12
|
+
/** AllContractState gets all raw store data for a single contract */
|
13
|
+
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
|
14
|
+
/** RawContractState gets single key from the raw store data of a contract */
|
15
|
+
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
16
|
+
/** SmartContractState get smart query result from the contract */
|
17
|
+
smartContractState(request: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponse>;
|
18
|
+
/** Code gets the binary code and metadata for a singe wasm code */
|
19
|
+
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
20
|
+
/** Codes gets the metadata for all stored wasm codes */
|
21
|
+
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
22
|
+
/** PinnedCodes gets the pinned code ids */
|
23
|
+
pinnedCodes(request?: QueryPinnedCodesRequest): Promise<QueryPinnedCodesResponse>;
|
24
|
+
}
|
25
|
+
export declare class QueryClientImpl implements Query {
|
26
|
+
private readonly rpc;
|
27
|
+
constructor(rpc: Rpc);
|
28
|
+
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
|
29
|
+
contractHistory(request: QueryContractHistoryRequest): Promise<QueryContractHistoryResponse>;
|
30
|
+
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
|
31
|
+
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
|
32
|
+
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
33
|
+
smartContractState(request: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponse>;
|
34
|
+
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
35
|
+
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
36
|
+
pinnedCodes(request?: QueryPinnedCodesRequest): Promise<QueryPinnedCodesResponse>;
|
37
|
+
}
|
38
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
39
|
+
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
|
40
|
+
contractHistory(request: QueryContractHistoryRequest): Promise<QueryContractHistoryResponse>;
|
41
|
+
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
|
42
|
+
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
|
43
|
+
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
44
|
+
smartContractState(request: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponse>;
|
45
|
+
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
46
|
+
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
47
|
+
pinnedCodes(request?: QueryPinnedCodesRequest): Promise<QueryPinnedCodesResponse>;
|
48
|
+
};
|
@@ -0,0 +1,95 @@
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
2
|
+
import { MsgStoreCode, MsgInstantiateContract, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin } from "./tx";
|
3
|
+
export interface AminoMsgStoreCode extends AminoMsg {
|
4
|
+
type: "wasm/MsgStoreCode";
|
5
|
+
value: {
|
6
|
+
sender: string;
|
7
|
+
wasm_byte_code: string;
|
8
|
+
instantiate_permission: {
|
9
|
+
permission: number;
|
10
|
+
address: string;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
}
|
14
|
+
export interface AminoMsgInstantiateContract extends AminoMsg {
|
15
|
+
type: "wasm/MsgInstantiateContract";
|
16
|
+
value: {
|
17
|
+
sender: string;
|
18
|
+
admin: string;
|
19
|
+
code_id: string;
|
20
|
+
label: string;
|
21
|
+
msg: Uint8Array;
|
22
|
+
funds: {
|
23
|
+
denom: string;
|
24
|
+
amount: string;
|
25
|
+
}[];
|
26
|
+
};
|
27
|
+
}
|
28
|
+
export interface AminoMsgExecuteContract extends AminoMsg {
|
29
|
+
type: "wasm/MsgExecuteContract";
|
30
|
+
value: {
|
31
|
+
sender: string;
|
32
|
+
contract: string;
|
33
|
+
msg: Uint8Array;
|
34
|
+
funds: {
|
35
|
+
denom: string;
|
36
|
+
amount: string;
|
37
|
+
}[];
|
38
|
+
};
|
39
|
+
}
|
40
|
+
export interface AminoMsgMigrateContract extends AminoMsg {
|
41
|
+
type: "wasm/MsgMigrateContract";
|
42
|
+
value: {
|
43
|
+
sender: string;
|
44
|
+
contract: string;
|
45
|
+
code_id: string;
|
46
|
+
msg: Uint8Array;
|
47
|
+
};
|
48
|
+
}
|
49
|
+
export interface AminoMsgUpdateAdmin extends AminoMsg {
|
50
|
+
type: "wasm/MsgUpdateAdmin";
|
51
|
+
value: {
|
52
|
+
sender: string;
|
53
|
+
new_admin: string;
|
54
|
+
contract: string;
|
55
|
+
};
|
56
|
+
}
|
57
|
+
export interface AminoMsgClearAdmin extends AminoMsg {
|
58
|
+
type: "wasm/MsgClearAdmin";
|
59
|
+
value: {
|
60
|
+
sender: string;
|
61
|
+
contract: string;
|
62
|
+
};
|
63
|
+
}
|
64
|
+
export declare const AminoConverter: {
|
65
|
+
"/cosmwasm.wasm.v1.MsgStoreCode": {
|
66
|
+
aminoType: string;
|
67
|
+
toAmino: ({ sender, wasmByteCode, instantiatePermission }: MsgStoreCode) => AminoMsgStoreCode["value"];
|
68
|
+
fromAmino: ({ sender, wasm_byte_code, instantiate_permission }: AminoMsgStoreCode["value"]) => MsgStoreCode;
|
69
|
+
};
|
70
|
+
"/cosmwasm.wasm.v1.MsgInstantiateContract": {
|
71
|
+
aminoType: string;
|
72
|
+
toAmino: ({ sender, admin, codeId, label, msg, funds }: MsgInstantiateContract) => AminoMsgInstantiateContract["value"];
|
73
|
+
fromAmino: ({ sender, admin, code_id, label, msg, funds }: AminoMsgInstantiateContract["value"]) => MsgInstantiateContract;
|
74
|
+
};
|
75
|
+
"/cosmwasm.wasm.v1.MsgExecuteContract": {
|
76
|
+
aminoType: string;
|
77
|
+
toAmino: ({ sender, contract, msg, funds }: MsgExecuteContract) => AminoMsgExecuteContract["value"];
|
78
|
+
fromAmino: ({ sender, contract, msg, funds }: AminoMsgExecuteContract["value"]) => MsgExecuteContract;
|
79
|
+
};
|
80
|
+
"/cosmwasm.wasm.v1.MsgMigrateContract": {
|
81
|
+
aminoType: string;
|
82
|
+
toAmino: ({ sender, contract, codeId, msg }: MsgMigrateContract) => AminoMsgMigrateContract["value"];
|
83
|
+
fromAmino: ({ sender, contract, code_id, msg }: AminoMsgMigrateContract["value"]) => MsgMigrateContract;
|
84
|
+
};
|
85
|
+
"/cosmwasm.wasm.v1.MsgUpdateAdmin": {
|
86
|
+
aminoType: string;
|
87
|
+
toAmino: ({ sender, newAdmin, contract }: MsgUpdateAdmin) => AminoMsgUpdateAdmin["value"];
|
88
|
+
fromAmino: ({ sender, new_admin, contract }: AminoMsgUpdateAdmin["value"]) => MsgUpdateAdmin;
|
89
|
+
};
|
90
|
+
"/cosmwasm.wasm.v1.MsgClearAdmin": {
|
91
|
+
aminoType: string;
|
92
|
+
toAmino: ({ sender, contract }: MsgClearAdmin) => AminoMsgClearAdmin["value"];
|
93
|
+
fromAmino: ({ sender, contract }: AminoMsgClearAdmin["value"]) => MsgClearAdmin;
|
94
|
+
};
|
95
|
+
};
|