import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; import { ContractInfo, ContractCodeHistoryEntry, Model, AccessConfig, Params } from "./types"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmwasm.wasm.v1"; /** * QueryContractInfoRequest is the request type for the Query/ContractInfo RPC * method */ export interface QueryContractInfoRequest { /** address is the address of the contract to query */ address: string; } /** * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC * method */ export interface QueryContractInfoResponse { /** address is the address of the contract */ address: string; contractInfo: ContractInfo; } /** * QueryContractHistoryRequest is the request type for the Query/ContractHistory * RPC method */ export interface QueryContractHistoryRequest { /** address is the address of the contract to query */ address: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryContractHistoryResponse is the response type for the * Query/ContractHistory RPC method */ export interface QueryContractHistoryResponse { entries: ContractCodeHistoryEntry[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryContractsByCodeRequest is the request type for the Query/ContractsByCode * RPC method */ export interface QueryContractsByCodeRequest { /** grpc-gateway_out does not support Go style CodeID */ codeId: bigint; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryContractsByCodeResponse is the response type for the * Query/ContractsByCode RPC method */ export interface QueryContractsByCodeResponse { /** contracts are a set of contract addresses */ contracts: string[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryAllContractStateRequest is the request type for the * Query/AllContractState RPC method */ export interface QueryAllContractStateRequest { /** address is the address of the contract */ address: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryAllContractStateResponse is the response type for the * Query/AllContractState RPC method */ export interface QueryAllContractStateResponse { models: Model[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryRawContractStateRequest is the request type for the * Query/RawContractState RPC method */ export interface QueryRawContractStateRequest { /** address is the address of the contract */ address: string; queryData: Uint8Array; } /** * QueryRawContractStateResponse is the response type for the * Query/RawContractState RPC method */ export interface QueryRawContractStateResponse { /** Data contains the raw store data */ data: Uint8Array; } /** * QuerySmartContractStateRequest is the request type for the * Query/SmartContractState RPC method */ export interface QuerySmartContractStateRequest { /** address is the address of the contract */ address: string; /** QueryData contains the query data passed to the contract */ queryData: Uint8Array; } /** * QuerySmartContractStateResponse is the response type for the * Query/SmartContractState RPC method */ export interface QuerySmartContractStateResponse { /** Data contains the json data returned from the smart contract */ data: Uint8Array; } /** QueryCodeRequest is the request type for the Query/Code RPC method */ export interface QueryCodeRequest { /** grpc-gateway_out does not support Go style CodeID */ codeId: bigint; } /** QueryCodeInfoRequest is the request type for the Query/CodeInfo RPC method */ export interface QueryCodeInfoRequest { /** grpc-gateway_out does not support Go style CodeID */ codeId: bigint; } /** QueryCodeInfoResponse is the response type for the Query/CodeInfo RPC method */ export interface QueryCodeInfoResponse { codeId: bigint; creator: string; checksum: Uint8Array; instantiatePermission: AccessConfig; } /** CodeInfoResponse contains code meta data from CodeInfo */ export interface CodeInfoResponse { codeId: bigint; creator: string; dataHash: Uint8Array; instantiatePermission: AccessConfig; } /** QueryCodeResponse is the response type for the Query/Code RPC method */ export interface QueryCodeResponse { codeInfo?: CodeInfoResponse; data: Uint8Array; } /** QueryCodesRequest is the request type for the Query/Codes RPC method */ export interface QueryCodesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryCodesResponse is the response type for the Query/Codes RPC method */ export interface QueryCodesResponse { codeInfos: CodeInfoResponse[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryPinnedCodesRequest is the request type for the Query/PinnedCodes * RPC method */ export interface QueryPinnedCodesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryPinnedCodesResponse is the response type for the * Query/PinnedCodes RPC method */ export interface QueryPinnedCodesResponse { codeIds: bigint[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } /** * QueryContractsByCreatorRequest is the request type for the * Query/ContractsByCreator RPC method. */ export interface QueryContractsByCreatorRequest { /** CreatorAddress is the address of contract creator */ creatorAddress: string; /** Pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryContractsByCreatorResponse is the response type for the * Query/ContractsByCreator RPC method. */ export interface QueryContractsByCreatorResponse { /** ContractAddresses result set */ contractAddresses: string[]; /** Pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryWasmLimitsConfigRequest is the request type for the * Query/WasmLimitsConfig RPC method. */ export interface QueryWasmLimitsConfigRequest { } /** * QueryWasmLimitsConfigResponse is the response type for the * Query/WasmLimitsConfig RPC method. It contains the JSON encoded limits for * static validation of Wasm files. */ export interface QueryWasmLimitsConfigResponse { config: string; } /** * QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC * method. */ export interface QueryBuildAddressRequest { /** CodeHash is the hash of the code */ codeHash: string; /** CreatorAddress is the address of the contract instantiator */ creatorAddress: string; /** Salt is a hex encoded salt */ salt: string; /** * InitArgs are optional json encoded init args to be used in contract address * building if provided */ initArgs: Uint8Array; } /** * QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC * method. */ export interface QueryBuildAddressResponse { /** Address is the contract address */ address: string; } export declare const QueryContractInfoRequest: { typeUrl: string; encode(message: QueryContractInfoRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractInfoRequest; fromJSON(object: any): QueryContractInfoRequest; toJSON(message: QueryContractInfoRequest): JsonSafe; fromPartial, I>>(object: I): QueryContractInfoRequest; }; export declare const QueryContractInfoResponse: { typeUrl: string; encode(message: QueryContractInfoResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractInfoResponse; fromJSON(object: any): QueryContractInfoResponse; toJSON(message: QueryContractInfoResponse): JsonSafe; fromPartial, I>>(object: I): QueryContractInfoResponse; }; export declare const QueryContractHistoryRequest: { typeUrl: string; encode(message: QueryContractHistoryRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractHistoryRequest; fromJSON(object: any): QueryContractHistoryRequest; toJSON(message: QueryContractHistoryRequest): JsonSafe; fromPartial, I>>(object: I): QueryContractHistoryRequest; }; export declare const QueryContractHistoryResponse: { typeUrl: string; encode(message: QueryContractHistoryResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractHistoryResponse; fromJSON(object: any): QueryContractHistoryResponse; toJSON(message: QueryContractHistoryResponse): JsonSafe; fromPartial, I>>(object: I): QueryContractHistoryResponse; }; export declare const QueryContractsByCodeRequest: { typeUrl: string; encode(message: QueryContractsByCodeRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractsByCodeRequest; fromJSON(object: any): QueryContractsByCodeRequest; toJSON(message: QueryContractsByCodeRequest): JsonSafe; fromPartial, I>>(object: I): QueryContractsByCodeRequest; }; export declare const QueryContractsByCodeResponse: { typeUrl: string; encode(message: QueryContractsByCodeResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractsByCodeResponse; fromJSON(object: any): QueryContractsByCodeResponse; toJSON(message: QueryContractsByCodeResponse): JsonSafe; fromPartial, I>>(object: I): QueryContractsByCodeResponse; }; export declare const QueryAllContractStateRequest: { typeUrl: string; encode(message: QueryAllContractStateRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllContractStateRequest; fromJSON(object: any): QueryAllContractStateRequest; toJSON(message: QueryAllContractStateRequest): JsonSafe; fromPartial, I>>(object: I): QueryAllContractStateRequest; }; export declare const QueryAllContractStateResponse: { typeUrl: string; encode(message: QueryAllContractStateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllContractStateResponse; fromJSON(object: any): QueryAllContractStateResponse; toJSON(message: QueryAllContractStateResponse): JsonSafe; fromPartial, I>>(object: I): QueryAllContractStateResponse; }; export declare const QueryRawContractStateRequest: { typeUrl: string; encode(message: QueryRawContractStateRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryRawContractStateRequest; fromJSON(object: any): QueryRawContractStateRequest; toJSON(message: QueryRawContractStateRequest): JsonSafe; fromPartial, I>>(object: I): QueryRawContractStateRequest; }; export declare const QueryRawContractStateResponse: { typeUrl: string; encode(message: QueryRawContractStateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryRawContractStateResponse; fromJSON(object: any): QueryRawContractStateResponse; toJSON(message: QueryRawContractStateResponse): JsonSafe; fromPartial, I>>(object: I): QueryRawContractStateResponse; }; export declare const QuerySmartContractStateRequest: { typeUrl: string; encode(message: QuerySmartContractStateRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySmartContractStateRequest; fromJSON(object: any): QuerySmartContractStateRequest; toJSON(message: QuerySmartContractStateRequest): JsonSafe; fromPartial, I>>(object: I): QuerySmartContractStateRequest; }; export declare const QuerySmartContractStateResponse: { typeUrl: string; encode(message: QuerySmartContractStateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySmartContractStateResponse; fromJSON(object: any): QuerySmartContractStateResponse; toJSON(message: QuerySmartContractStateResponse): JsonSafe; fromPartial, I>>(object: I): QuerySmartContractStateResponse; }; export declare const QueryCodeRequest: { typeUrl: string; encode(message: QueryCodeRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCodeRequest; fromJSON(object: any): QueryCodeRequest; toJSON(message: QueryCodeRequest): JsonSafe; fromPartial, I>>(object: I): QueryCodeRequest; }; export declare const QueryCodeInfoRequest: { typeUrl: string; encode(message: QueryCodeInfoRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCodeInfoRequest; fromJSON(object: any): QueryCodeInfoRequest; toJSON(message: QueryCodeInfoRequest): JsonSafe; fromPartial, I>>(object: I): QueryCodeInfoRequest; }; export declare const QueryCodeInfoResponse: { typeUrl: string; encode(message: QueryCodeInfoResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCodeInfoResponse; fromJSON(object: any): QueryCodeInfoResponse; toJSON(message: QueryCodeInfoResponse): JsonSafe; fromPartial, I>>(object: I): QueryCodeInfoResponse; }; export declare const CodeInfoResponse: { typeUrl: string; encode(message: CodeInfoResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): CodeInfoResponse; fromJSON(object: any): CodeInfoResponse; toJSON(message: CodeInfoResponse): JsonSafe; fromPartial, I>>(object: I): CodeInfoResponse; }; export declare const QueryCodeResponse: { typeUrl: string; encode(message: QueryCodeResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCodeResponse; fromJSON(object: any): QueryCodeResponse; toJSON(message: QueryCodeResponse): JsonSafe; fromPartial, I>>(object: I): QueryCodeResponse; }; export declare const QueryCodesRequest: { typeUrl: string; encode(message: QueryCodesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCodesRequest; fromJSON(object: any): QueryCodesRequest; toJSON(message: QueryCodesRequest): JsonSafe; fromPartial, I>>(object: I): QueryCodesRequest; }; export declare const QueryCodesResponse: { typeUrl: string; encode(message: QueryCodesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCodesResponse; fromJSON(object: any): QueryCodesResponse; toJSON(message: QueryCodesResponse): JsonSafe; fromPartial, I>>(object: I): QueryCodesResponse; }; export declare const QueryPinnedCodesRequest: { typeUrl: string; encode(message: QueryPinnedCodesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryPinnedCodesRequest; fromJSON(object: any): QueryPinnedCodesRequest; toJSON(message: QueryPinnedCodesRequest): JsonSafe; fromPartial, I>>(object: I): QueryPinnedCodesRequest; }; export declare const QueryPinnedCodesResponse: { typeUrl: string; encode(message: QueryPinnedCodesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryPinnedCodesResponse; fromJSON(object: any): QueryPinnedCodesResponse; toJSON(message: QueryPinnedCodesResponse): JsonSafe; fromPartial, I>>(object: I): QueryPinnedCodesResponse; }; export declare const QueryParamsRequest: { typeUrl: string; encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): JsonSafe; fromPartial, I>>(_: I): QueryParamsRequest; }; export declare const QueryParamsResponse: { typeUrl: string; encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): JsonSafe; fromPartial, I>>(object: I): QueryParamsResponse; }; export declare const QueryContractsByCreatorRequest: { typeUrl: string; encode(message: QueryContractsByCreatorRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractsByCreatorRequest; fromJSON(object: any): QueryContractsByCreatorRequest; toJSON(message: QueryContractsByCreatorRequest): JsonSafe; fromPartial, I>>(object: I): QueryContractsByCreatorRequest; }; export declare const QueryContractsByCreatorResponse: { typeUrl: string; encode(message: QueryContractsByCreatorResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryContractsByCreatorResponse; fromJSON(object: any): QueryContractsByCreatorResponse; toJSON(message: QueryContractsByCreatorResponse): JsonSafe; fromPartial, I>>(object: I): QueryContractsByCreatorResponse; }; export declare const QueryWasmLimitsConfigRequest: { typeUrl: string; encode(_: QueryWasmLimitsConfigRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryWasmLimitsConfigRequest; fromJSON(_: any): QueryWasmLimitsConfigRequest; toJSON(_: QueryWasmLimitsConfigRequest): JsonSafe; fromPartial, I>>(_: I): QueryWasmLimitsConfigRequest; }; export declare const QueryWasmLimitsConfigResponse: { typeUrl: string; encode(message: QueryWasmLimitsConfigResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryWasmLimitsConfigResponse; fromJSON(object: any): QueryWasmLimitsConfigResponse; toJSON(message: QueryWasmLimitsConfigResponse): JsonSafe; fromPartial, I>>(object: I): QueryWasmLimitsConfigResponse; }; export declare const QueryBuildAddressRequest: { typeUrl: string; encode(message: QueryBuildAddressRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryBuildAddressRequest; fromJSON(object: any): QueryBuildAddressRequest; toJSON(message: QueryBuildAddressRequest): JsonSafe; fromPartial, I>>(object: I): QueryBuildAddressRequest; }; export declare const QueryBuildAddressResponse: { typeUrl: string; encode(message: QueryBuildAddressResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryBuildAddressResponse; fromJSON(object: any): QueryBuildAddressResponse; toJSON(message: QueryBuildAddressResponse): JsonSafe; fromPartial, I>>(object: I): QueryBuildAddressResponse; }; /** Query provides defines the gRPC querier service */ export interface Query { /** ContractInfo gets the contract meta data */ ContractInfo(request: QueryContractInfoRequest): Promise; /** ContractHistory gets the contract code history */ ContractHistory(request: QueryContractHistoryRequest): Promise; /** ContractsByCode lists all smart contracts for a code id */ ContractsByCode(request: QueryContractsByCodeRequest): Promise; /** AllContractState gets all raw store data for a single contract */ AllContractState(request: QueryAllContractStateRequest): Promise; /** RawContractState gets single key from the raw store data of a contract */ RawContractState(request: QueryRawContractStateRequest): Promise; /** SmartContractState get smart query result from the contract */ SmartContractState(request: QuerySmartContractStateRequest): Promise; /** Code gets the binary code and metadata for a single wasm code */ Code(request: QueryCodeRequest): Promise; /** Codes gets the metadata for all stored wasm codes */ Codes(request?: QueryCodesRequest): Promise; /** CodeInfo gets the metadata for a single wasm code */ CodeInfo(request: QueryCodeInfoRequest): Promise; /** PinnedCodes gets the pinned code ids */ PinnedCodes(request?: QueryPinnedCodesRequest): Promise; /** Params gets the module params */ Params(request?: QueryParamsRequest): Promise; /** ContractsByCreator gets the contracts by creator */ ContractsByCreator(request: QueryContractsByCreatorRequest): Promise; /** * WasmLimitsConfig gets the configured limits for static validation of Wasm * files, encoded in JSON. */ WasmLimitsConfig(request?: QueryWasmLimitsConfigRequest): Promise; /** BuildAddress builds a contract address */ BuildAddress(request: QueryBuildAddressRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); ContractInfo(request: QueryContractInfoRequest): Promise; ContractHistory(request: QueryContractHistoryRequest): Promise; ContractsByCode(request: QueryContractsByCodeRequest): Promise; AllContractState(request: QueryAllContractStateRequest): Promise; RawContractState(request: QueryRawContractStateRequest): Promise; SmartContractState(request: QuerySmartContractStateRequest): Promise; Code(request: QueryCodeRequest): Promise; Codes(request?: QueryCodesRequest): Promise; CodeInfo(request: QueryCodeInfoRequest): Promise; PinnedCodes(request?: QueryPinnedCodesRequest): Promise; Params(request?: QueryParamsRequest): Promise; ContractsByCreator(request: QueryContractsByCreatorRequest): Promise; WasmLimitsConfig(request?: QueryWasmLimitsConfigRequest): Promise; BuildAddress(request: QueryBuildAddressRequest): Promise; }