203 lines
8.4 KiB
TypeScript
203 lines
8.4 KiB
TypeScript
/// <reference types="long" />
|
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
|
import { NFT, NFTSDKType, Class, ClassSDKType } from "./nft";
|
|
import * as _m0 from "protobufjs/minimal";
|
|
import { DeepPartial, Long } from "../../../helpers";
|
|
/** QueryBalanceRequest is the request type for the Query/Balance RPC method */
|
|
export interface QueryBalanceRequest {
|
|
classId: string;
|
|
owner: string;
|
|
}
|
|
/** QueryBalanceRequest is the request type for the Query/Balance RPC method */
|
|
export interface QueryBalanceRequestSDKType {
|
|
class_id: string;
|
|
owner: string;
|
|
}
|
|
/** QueryBalanceResponse is the response type for the Query/Balance RPC method */
|
|
export interface QueryBalanceResponse {
|
|
amount: Long;
|
|
}
|
|
/** QueryBalanceResponse is the response type for the Query/Balance RPC method */
|
|
export interface QueryBalanceResponseSDKType {
|
|
amount: Long;
|
|
}
|
|
/** QueryOwnerRequest is the request type for the Query/Owner RPC method */
|
|
export interface QueryOwnerRequest {
|
|
classId: string;
|
|
id: string;
|
|
}
|
|
/** QueryOwnerRequest is the request type for the Query/Owner RPC method */
|
|
export interface QueryOwnerRequestSDKType {
|
|
class_id: string;
|
|
id: string;
|
|
}
|
|
/** QueryOwnerResponse is the response type for the Query/Owner RPC method */
|
|
export interface QueryOwnerResponse {
|
|
owner: string;
|
|
}
|
|
/** QueryOwnerResponse is the response type for the Query/Owner RPC method */
|
|
export interface QueryOwnerResponseSDKType {
|
|
owner: string;
|
|
}
|
|
/** QuerySupplyRequest is the request type for the Query/Supply RPC method */
|
|
export interface QuerySupplyRequest {
|
|
classId: string;
|
|
}
|
|
/** QuerySupplyRequest is the request type for the Query/Supply RPC method */
|
|
export interface QuerySupplyRequestSDKType {
|
|
class_id: string;
|
|
}
|
|
/** QuerySupplyResponse is the response type for the Query/Supply RPC method */
|
|
export interface QuerySupplyResponse {
|
|
amount: Long;
|
|
}
|
|
/** QuerySupplyResponse is the response type for the Query/Supply RPC method */
|
|
export interface QuerySupplyResponseSDKType {
|
|
amount: Long;
|
|
}
|
|
/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */
|
|
export interface QueryNFTsRequest {
|
|
classId: string;
|
|
owner: string;
|
|
pagination?: PageRequest;
|
|
}
|
|
/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */
|
|
export interface QueryNFTsRequestSDKType {
|
|
class_id: string;
|
|
owner: string;
|
|
pagination?: PageRequestSDKType;
|
|
}
|
|
/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */
|
|
export interface QueryNFTsResponse {
|
|
nfts: NFT[];
|
|
pagination?: PageResponse;
|
|
}
|
|
/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */
|
|
export interface QueryNFTsResponseSDKType {
|
|
nfts: NFTSDKType[];
|
|
pagination?: PageResponseSDKType;
|
|
}
|
|
/** QueryNFTRequest is the request type for the Query/NFT RPC method */
|
|
export interface QueryNFTRequest {
|
|
classId: string;
|
|
id: string;
|
|
}
|
|
/** QueryNFTRequest is the request type for the Query/NFT RPC method */
|
|
export interface QueryNFTRequestSDKType {
|
|
class_id: string;
|
|
id: string;
|
|
}
|
|
/** QueryNFTResponse is the response type for the Query/NFT RPC method */
|
|
export interface QueryNFTResponse {
|
|
nft?: NFT;
|
|
}
|
|
/** QueryNFTResponse is the response type for the Query/NFT RPC method */
|
|
export interface QueryNFTResponseSDKType {
|
|
nft?: NFTSDKType;
|
|
}
|
|
/** QueryClassRequest is the request type for the Query/Class RPC method */
|
|
export interface QueryClassRequest {
|
|
classId: string;
|
|
}
|
|
/** QueryClassRequest is the request type for the Query/Class RPC method */
|
|
export interface QueryClassRequestSDKType {
|
|
class_id: string;
|
|
}
|
|
/** QueryClassResponse is the response type for the Query/Class RPC method */
|
|
export interface QueryClassResponse {
|
|
class?: Class;
|
|
}
|
|
/** QueryClassResponse is the response type for the Query/Class RPC method */
|
|
export interface QueryClassResponseSDKType {
|
|
class?: ClassSDKType;
|
|
}
|
|
/** QueryClassesRequest is the request type for the Query/Classes RPC method */
|
|
export interface QueryClassesRequest {
|
|
/** pagination defines an optional pagination for the request. */
|
|
pagination?: PageRequest;
|
|
}
|
|
/** QueryClassesRequest is the request type for the Query/Classes RPC method */
|
|
export interface QueryClassesRequestSDKType {
|
|
pagination?: PageRequestSDKType;
|
|
}
|
|
/** QueryClassesResponse is the response type for the Query/Classes RPC method */
|
|
export interface QueryClassesResponse {
|
|
classes: Class[];
|
|
pagination?: PageResponse;
|
|
}
|
|
/** QueryClassesResponse is the response type for the Query/Classes RPC method */
|
|
export interface QueryClassesResponseSDKType {
|
|
classes: ClassSDKType[];
|
|
pagination?: PageResponseSDKType;
|
|
}
|
|
export declare const QueryBalanceRequest: {
|
|
encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest;
|
|
fromPartial(object: DeepPartial<QueryBalanceRequest>): QueryBalanceRequest;
|
|
};
|
|
export declare const QueryBalanceResponse: {
|
|
encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse;
|
|
fromPartial(object: DeepPartial<QueryBalanceResponse>): QueryBalanceResponse;
|
|
};
|
|
export declare const QueryOwnerRequest: {
|
|
encode(message: QueryOwnerRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerRequest;
|
|
fromPartial(object: DeepPartial<QueryOwnerRequest>): QueryOwnerRequest;
|
|
};
|
|
export declare const QueryOwnerResponse: {
|
|
encode(message: QueryOwnerResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerResponse;
|
|
fromPartial(object: DeepPartial<QueryOwnerResponse>): QueryOwnerResponse;
|
|
};
|
|
export declare const QuerySupplyRequest: {
|
|
encode(message: QuerySupplyRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyRequest;
|
|
fromPartial(object: DeepPartial<QuerySupplyRequest>): QuerySupplyRequest;
|
|
};
|
|
export declare const QuerySupplyResponse: {
|
|
encode(message: QuerySupplyResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyResponse;
|
|
fromPartial(object: DeepPartial<QuerySupplyResponse>): QuerySupplyResponse;
|
|
};
|
|
export declare const QueryNFTsRequest: {
|
|
encode(message: QueryNFTsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsRequest;
|
|
fromPartial(object: DeepPartial<QueryNFTsRequest>): QueryNFTsRequest;
|
|
};
|
|
export declare const QueryNFTsResponse: {
|
|
encode(message: QueryNFTsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsResponse;
|
|
fromPartial(object: DeepPartial<QueryNFTsResponse>): QueryNFTsResponse;
|
|
};
|
|
export declare const QueryNFTRequest: {
|
|
encode(message: QueryNFTRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTRequest;
|
|
fromPartial(object: DeepPartial<QueryNFTRequest>): QueryNFTRequest;
|
|
};
|
|
export declare const QueryNFTResponse: {
|
|
encode(message: QueryNFTResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTResponse;
|
|
fromPartial(object: DeepPartial<QueryNFTResponse>): QueryNFTResponse;
|
|
};
|
|
export declare const QueryClassRequest: {
|
|
encode(message: QueryClassRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassRequest;
|
|
fromPartial(object: DeepPartial<QueryClassRequest>): QueryClassRequest;
|
|
};
|
|
export declare const QueryClassResponse: {
|
|
encode(message: QueryClassResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassResponse;
|
|
fromPartial(object: DeepPartial<QueryClassResponse>): QueryClassResponse;
|
|
};
|
|
export declare const QueryClassesRequest: {
|
|
encode(message: QueryClassesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesRequest;
|
|
fromPartial(object: DeepPartial<QueryClassesRequest>): QueryClassesRequest;
|
|
};
|
|
export declare const QueryClassesResponse: {
|
|
encode(message: QueryClassesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesResponse;
|
|
fromPartial(object: DeepPartial<QueryClassesResponse>): QueryClassesResponse;
|
|
};
|