462 lines
18 KiB
TypeScript
462 lines
18 KiB
TypeScript
/// <reference types="long" />
|
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
import { ContractInfo, ContractInfoSDKType, ContractCodeHistoryEntry, ContractCodeHistoryEntrySDKType, Model, ModelSDKType, AccessConfig, AccessConfigSDKType, Params, ParamsSDKType } from "./types";
|
|
import * as _m0 from "protobufjs/minimal";
|
|
import { DeepPartial, Long } from "../../../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;
|
|
}
|
|
/**
|
|
* 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;
|
|
instantiatePermission?: AccessConfig;
|
|
}
|
|
/** CodeInfoResponse contains code meta data from CodeInfo */
|
|
export interface CodeInfoResponseSDKType {
|
|
code_id: Long;
|
|
creator: string;
|
|
data_hash: Uint8Array;
|
|
instantiate_permission?: AccessConfigSDKType;
|
|
}
|
|
/** 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;
|
|
}
|
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
export interface QueryParamsRequest {
|
|
}
|
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
export interface QueryParamsRequestSDKType {
|
|
}
|
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
export interface QueryParamsResponse {
|
|
/** params defines the parameters of the module. */
|
|
params?: Params;
|
|
}
|
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
export interface QueryParamsResponseSDKType {
|
|
params?: ParamsSDKType;
|
|
}
|
|
/**
|
|
* 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;
|
|
}
|
|
/**
|
|
* QueryContractsByCreatorRequest is the request type for the
|
|
* Query/ContractsByCreator RPC method.
|
|
*/
|
|
export interface QueryContractsByCreatorRequestSDKType {
|
|
creator_address: string;
|
|
pagination?: PageRequestSDKType;
|
|
}
|
|
/**
|
|
* 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;
|
|
}
|
|
/**
|
|
* QueryContractsByCreatorResponse is the response type for the
|
|
* Query/ContractsByCreator RPC method.
|
|
*/
|
|
export interface QueryContractsByCreatorResponseSDKType {
|
|
contract_addresses: string[];
|
|
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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): 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>): QueryPinnedCodesResponse;
|
|
};
|
|
export declare const QueryParamsRequest: {
|
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
|
};
|
|
export declare const QueryParamsResponse: {
|
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
};
|
|
export declare const QueryContractsByCreatorRequest: {
|
|
encode(message: QueryContractsByCreatorRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorRequest;
|
|
fromPartial(object: DeepPartial<QueryContractsByCreatorRequest>): QueryContractsByCreatorRequest;
|
|
};
|
|
export declare const QueryContractsByCreatorResponse: {
|
|
encode(message: QueryContractsByCreatorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorResponse;
|
|
fromPartial(object: DeepPartial<QueryContractsByCreatorResponse>): QueryContractsByCreatorResponse;
|
|
};
|