import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; import { ContractInfo, ContractInfoSDKType, ContractCodeHistoryEntry, ContractCodeHistoryEntrySDKType, Model, ModelSDKType } from "./types"; import { Long, DeepPartial } from "../../../helpers"; import * as _m0 from "protobufjs/minimal"; /** * 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; } /** * QueryContractInfoRequest is the request type for the Query/ContractInfo RPC * method */ export interface QueryContractInfoRequestSDKType { 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; } /** * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC * method */ export interface QueryContractInfoResponseSDKType { address: string; contract_info?: ContractInfoSDKType; } /** * 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; } /** * QueryContractHistoryRequest is the request type for the Query/ContractHistory * RPC method */ export interface QueryContractHistoryRequestSDKType { address: string; pagination?: PageRequestSDKType; } /** * 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; } /** * QueryContractHistoryResponse is the response type for the * Query/ContractHistory RPC method */ export interface QueryContractHistoryResponseSDKType { entries: ContractCodeHistoryEntrySDKType[]; pagination?: PageResponseSDKType; } /** * QueryContractsByCodeRequest is the request type for the Query/ContractsByCode * RPC method */ export interface QueryContractsByCodeRequest { /** * grpc-gateway_out does not support Go style CodID * pagination defines an optional pagination for the request. */ codeId: Long; pagination?: PageRequest; } /** * QueryContractsByCodeRequest is the request type for the Query/ContractsByCode * RPC method */ export interface QueryContractsByCodeRequestSDKType { code_id: Long; pagination?: PageRequestSDKType; } /** * 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; } /** * QueryContractsByCodeResponse is the response type for the * Query/ContractsByCode RPC method */ export interface QueryContractsByCodeResponseSDKType { contracts: string[]; pagination?: PageResponseSDKType; } /** * 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; } /** * QueryAllContractStateRequest is the request type for the * Query/AllContractState RPC method */ export interface QueryAllContractStateRequestSDKType { address: string; pagination?: PageRequestSDKType; } /** * 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; } /** * QueryAllContractStateResponse is the response type for the * Query/AllContractState RPC method */ export interface QueryAllContractStateResponseSDKType { models: ModelSDKType[]; pagination?: PageResponseSDKType; } /** * 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; } /** * QueryRawContractStateRequest is the request type for the * Query/RawContractState RPC method */ export interface QueryRawContractStateRequestSDKType { address: string; query_data: Uint8Array; } /** * QueryRawContractStateResponse is the response type for the * Query/RawContractState RPC method */ export interface QueryRawContractStateResponse { /** Data contains the raw store data */ data: Uint8Array; } /** * QueryRawContractStateResponse is the response type for the * Query/RawContractState RPC method */ export interface QueryRawContractStateResponseSDKType { 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; } /** * QuerySmartContractStateRequest is the request type for the * Query/SmartContractState RPC method */ export interface QuerySmartContractStateRequestSDKType { address: string; query_data: 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; } /** * QuerySmartContractStateResponse is the response type for the * Query/SmartContractState RPC method */ export interface QuerySmartContractStateResponseSDKType { 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; } /** QueryCodeRequest is the request type for the Query/Code RPC method */ export interface QueryCodeRequestSDKType { code_id: Long; } /** CodeInfoResponse contains code meta data from CodeInfo */ export interface CodeInfoResponse { codeId: Long; creator: string; dataHash: Uint8Array; } /** CodeInfoResponse contains code meta data from CodeInfo */ export interface CodeInfoResponseSDKType { code_id: Long; creator: string; data_hash: Uint8Array; } /** QueryCodeResponse is the response type for the Query/Code RPC method */ export interface QueryCodeResponse { codeInfo?: CodeInfoResponse; data: Uint8Array; } /** QueryCodeResponse is the response type for the Query/Code RPC method */ export interface QueryCodeResponseSDKType { code_info?: CodeInfoResponseSDKType; 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; } /** QueryCodesRequest is the request type for the Query/Codes RPC method */ export interface QueryCodesRequestSDKType { pagination?: PageRequestSDKType; } /** 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; } /** QueryCodesResponse is the response type for the Query/Codes RPC method */ export interface QueryCodesResponseSDKType { code_infos: CodeInfoResponseSDKType[]; pagination?: PageResponseSDKType; } /** * QueryPinnedCodesRequest is the request type for the Query/PinnedCodes * RPC method */ export interface QueryPinnedCodesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryPinnedCodesRequest is the request type for the Query/PinnedCodes * RPC method */ export interface QueryPinnedCodesRequestSDKType { pagination?: PageRequestSDKType; } /** * 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; } /** * QueryPinnedCodesResponse is the response type for the * Query/PinnedCodes RPC method */ export interface QueryPinnedCodesResponseSDKType { code_ids: Long[]; pagination?: PageResponseSDKType; } export declare const QueryContractInfoRequest: { encode(message: QueryContractInfoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoRequest; fromPartial(object: DeepPartial): QueryContractInfoRequest; }; export declare const QueryContractInfoResponse: { encode(message: QueryContractInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoResponse; fromPartial(object: DeepPartial): QueryContractInfoResponse; }; export declare const QueryContractHistoryRequest: { encode(message: QueryContractHistoryRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryRequest; fromPartial(object: DeepPartial): QueryContractHistoryRequest; }; export declare const QueryContractHistoryResponse: { encode(message: QueryContractHistoryResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryResponse; fromPartial(object: DeepPartial): QueryContractHistoryResponse; }; export declare const QueryContractsByCodeRequest: { encode(message: QueryContractsByCodeRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeRequest; fromPartial(object: DeepPartial): QueryContractsByCodeRequest; }; export declare const QueryContractsByCodeResponse: { encode(message: QueryContractsByCodeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeResponse; fromPartial(object: DeepPartial): QueryContractsByCodeResponse; }; export declare const QueryAllContractStateRequest: { encode(message: QueryAllContractStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateRequest; fromPartial(object: DeepPartial): QueryAllContractStateRequest; }; export declare const QueryAllContractStateResponse: { encode(message: QueryAllContractStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateResponse; fromPartial(object: DeepPartial): QueryAllContractStateResponse; }; export declare const QueryRawContractStateRequest: { encode(message: QueryRawContractStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateRequest; fromPartial(object: DeepPartial): QueryRawContractStateRequest; }; export declare const QueryRawContractStateResponse: { encode(message: QueryRawContractStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateResponse; fromPartial(object: DeepPartial): QueryRawContractStateResponse; }; export declare const QuerySmartContractStateRequest: { encode(message: QuerySmartContractStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateRequest; fromPartial(object: DeepPartial): QuerySmartContractStateRequest; }; export declare const QuerySmartContractStateResponse: { encode(message: QuerySmartContractStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateResponse; fromPartial(object: DeepPartial): QuerySmartContractStateResponse; }; export declare const QueryCodeRequest: { encode(message: QueryCodeRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeRequest; fromPartial(object: DeepPartial): QueryCodeRequest; }; export declare const CodeInfoResponse: { encode(message: CodeInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse; fromPartial(object: DeepPartial): CodeInfoResponse; }; export declare const QueryCodeResponse: { encode(message: QueryCodeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse; fromPartial(object: DeepPartial): QueryCodeResponse; }; export declare const QueryCodesRequest: { encode(message: QueryCodesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest; fromPartial(object: DeepPartial): QueryCodesRequest; }; export declare const QueryCodesResponse: { encode(message: QueryCodesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesResponse; fromPartial(object: DeepPartial): QueryCodesResponse; }; export declare const QueryPinnedCodesRequest: { encode(message: QueryPinnedCodesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesRequest; fromPartial(object: DeepPartial): QueryPinnedCodesRequest; }; export declare const QueryPinnedCodesResponse: { encode(message: QueryPinnedCodesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesResponse; fromPartial(object: DeepPartial): QueryPinnedCodesResponse; };