import Long from "long"; import _m0 from "protobufjs/minimal"; import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; import { AccessConfig, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types"; /** * 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 CodID */ codeId: Long; /** 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 CodID */ codeId: Long; } /** CodeInfoResponse contains code meta data from CodeInfo */ export interface CodeInfoResponse { /** id for legacy support */ codeId: Long; 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: Long[]; /** 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; } export declare const QueryContractInfoRequest: { encode(message: QueryContractInfoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoRequest; fromJSON(object: any): QueryContractInfoRequest; toJSON(message: QueryContractInfoRequest): unknown; create, I>>(base?: I): QueryContractInfoRequest; fromPartial, I>>(object: I): QueryContractInfoRequest; }; export declare const QueryContractInfoResponse: { encode(message: QueryContractInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoResponse; fromJSON(object: any): QueryContractInfoResponse; toJSON(message: QueryContractInfoResponse): unknown; create, I>>(base?: I): QueryContractInfoResponse; fromPartial, I>>(object: I): QueryContractInfoResponse; }; export declare const QueryContractHistoryRequest: { encode(message: QueryContractHistoryRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryRequest; fromJSON(object: any): QueryContractHistoryRequest; toJSON(message: QueryContractHistoryRequest): unknown; create, I>>(base?: I): QueryContractHistoryRequest; fromPartial, I>>(object: I): QueryContractHistoryRequest; }; export declare const QueryContractHistoryResponse: { encode(message: QueryContractHistoryResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryResponse; fromJSON(object: any): QueryContractHistoryResponse; toJSON(message: QueryContractHistoryResponse): unknown; create, I>>(base?: I): QueryContractHistoryResponse; fromPartial, I>>(object: I): QueryContractHistoryResponse; }; export declare const QueryContractsByCodeRequest: { encode(message: QueryContractsByCodeRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeRequest; fromJSON(object: any): QueryContractsByCodeRequest; toJSON(message: QueryContractsByCodeRequest): unknown; create, I>>(base?: I): QueryContractsByCodeRequest; fromPartial, I>>(object: I): QueryContractsByCodeRequest; }; export declare const QueryContractsByCodeResponse: { encode(message: QueryContractsByCodeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeResponse; fromJSON(object: any): QueryContractsByCodeResponse; toJSON(message: QueryContractsByCodeResponse): unknown; create, I>>(base?: I): QueryContractsByCodeResponse; fromPartial, I>>(object: I): QueryContractsByCodeResponse; }; export declare const QueryAllContractStateRequest: { encode(message: QueryAllContractStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateRequest; fromJSON(object: any): QueryAllContractStateRequest; toJSON(message: QueryAllContractStateRequest): unknown; create, I>>(base?: I): QueryAllContractStateRequest; fromPartial, I>>(object: I): QueryAllContractStateRequest; }; export declare const QueryAllContractStateResponse: { encode(message: QueryAllContractStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateResponse; fromJSON(object: any): QueryAllContractStateResponse; toJSON(message: QueryAllContractStateResponse): unknown; create, I>>(base?: I): QueryAllContractStateResponse; fromPartial, I>>(object: I): QueryAllContractStateResponse; }; export declare const QueryRawContractStateRequest: { encode(message: QueryRawContractStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateRequest; fromJSON(object: any): QueryRawContractStateRequest; toJSON(message: QueryRawContractStateRequest): unknown; create, I>>(base?: I): QueryRawContractStateRequest; fromPartial, I>>(object: I): QueryRawContractStateRequest; }; export declare const QueryRawContractStateResponse: { encode(message: QueryRawContractStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateResponse; fromJSON(object: any): QueryRawContractStateResponse; toJSON(message: QueryRawContractStateResponse): unknown; create, I>>(base?: I): QueryRawContractStateResponse; fromPartial, I>>(object: I): QueryRawContractStateResponse; }; export declare const QuerySmartContractStateRequest: { encode(message: QuerySmartContractStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateRequest; fromJSON(object: any): QuerySmartContractStateRequest; toJSON(message: QuerySmartContractStateRequest): unknown; create, I>>(base?: I): QuerySmartContractStateRequest; fromPartial, I>>(object: I): QuerySmartContractStateRequest; }; export declare const QuerySmartContractStateResponse: { encode(message: QuerySmartContractStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateResponse; fromJSON(object: any): QuerySmartContractStateResponse; toJSON(message: QuerySmartContractStateResponse): unknown; create, I>>(base?: I): QuerySmartContractStateResponse; fromPartial, I>>(object: I): QuerySmartContractStateResponse; }; export declare const QueryCodeRequest: { encode(message: QueryCodeRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeRequest; fromJSON(object: any): QueryCodeRequest; toJSON(message: QueryCodeRequest): unknown; create, I>>(base?: I): QueryCodeRequest; fromPartial, I>>(object: I): QueryCodeRequest; }; export declare const CodeInfoResponse: { encode(message: CodeInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse; fromJSON(object: any): CodeInfoResponse; toJSON(message: CodeInfoResponse): unknown; create, I>>(base?: I): CodeInfoResponse; fromPartial, I>>(object: I): CodeInfoResponse; }; export declare const QueryCodeResponse: { encode(message: QueryCodeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse; fromJSON(object: any): QueryCodeResponse; toJSON(message: QueryCodeResponse): unknown; create, I>>(base?: I): QueryCodeResponse; fromPartial, I>>(object: I): QueryCodeResponse; }; export declare const QueryCodesRequest: { encode(message: QueryCodesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest; fromJSON(object: any): QueryCodesRequest; toJSON(message: QueryCodesRequest): unknown; create, I>>(base?: I): QueryCodesRequest; fromPartial, I>>(object: I): QueryCodesRequest; }; export declare const QueryCodesResponse: { encode(message: QueryCodesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesResponse; fromJSON(object: any): QueryCodesResponse; toJSON(message: QueryCodesResponse): unknown; create, I>>(base?: I): QueryCodesResponse; fromPartial, I>>(object: I): QueryCodesResponse; }; export declare const QueryPinnedCodesRequest: { encode(message: QueryPinnedCodesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesRequest; fromJSON(object: any): QueryPinnedCodesRequest; toJSON(message: QueryPinnedCodesRequest): unknown; create, I>>(base?: I): QueryPinnedCodesRequest; fromPartial, I>>(object: I): QueryPinnedCodesRequest; }; export declare const QueryPinnedCodesResponse: { encode(message: QueryPinnedCodesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesResponse; fromJSON(object: any): QueryPinnedCodesResponse; toJSON(message: QueryPinnedCodesResponse): unknown; create, I>>(base?: I): QueryPinnedCodesResponse; fromPartial, I>>(object: I): QueryPinnedCodesResponse; }; export declare const QueryParamsRequest: { encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; create, I>>(base?: I): QueryParamsRequest; fromPartial, I>>(_: I): QueryParamsRequest; }; export declare const QueryParamsResponse: { encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; create, I>>(base?: I): QueryParamsResponse; fromPartial, I>>(object: I): QueryParamsResponse; }; export declare const QueryContractsByCreatorRequest: { encode(message: QueryContractsByCreatorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorRequest; fromJSON(object: any): QueryContractsByCreatorRequest; toJSON(message: QueryContractsByCreatorRequest): unknown; create, I>>(base?: I): QueryContractsByCreatorRequest; fromPartial, I>>(object: I): QueryContractsByCreatorRequest; }; export declare const QueryContractsByCreatorResponse: { encode(message: QueryContractsByCreatorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorResponse; fromJSON(object: any): QueryContractsByCreatorResponse; toJSON(message: QueryContractsByCreatorResponse): unknown; create, I>>(base?: I): QueryContractsByCreatorResponse; fromPartial, I>>(object: I): QueryContractsByCreatorResponse; }; /** 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 singe wasm code */ Code(request: QueryCodeRequest): Promise; /** Codes gets the metadata for all stored wasm codes */ Codes(request: QueryCodesRequest): 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; } export declare const QueryServiceName = "cosmwasm.wasm.v1.Query"; export declare class QueryClientImpl implements Query { private readonly rpc; private readonly service; constructor(rpc: Rpc, opts?: { service?: string; }); 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; PinnedCodes(request: QueryPinnedCodesRequest): Promise; Params(request: QueryParamsRequest): Promise; ContractsByCreator(request: QueryContractsByCreatorRequest): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export {}; //# sourceMappingURL=query.d.ts.map