import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; import { ContractInfo, ContractCodeHistoryEntry, Model } from "./types"; import * as _m0 from "protobufjs/minimal"; import { DeepPartial, Long } from "@osmonauts/helpers"; /** * 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; contract_info: 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 * pagination defines an optional pagination for the request. */ code_id: Long; 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; 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; } /** * 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 */ 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; } /** QueryCodeRequest is the request type for the Query/Code RPC method */ export interface QueryCodeRequest { /** grpc-gateway_out does not support Go style CodID */ code_id: Long; } /** CodeInfoResponse contains code meta data from CodeInfo */ export interface CodeInfoResponse { code_id: Long; creator: string; data_hash: Uint8Array; } /** QueryCodeResponse is the response type for the Query/Code RPC method */ export interface QueryCodeResponse { code_info: 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 { code_infos: 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 { code_ids: Long[]; /** 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): 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; fromPartial(object: DeepPartial): QueryPinnedCodesResponse; };