import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; import { NFT, Class } from "./nft"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmos.nft.v1beta1"; /** QueryBalanceRequest is the request type for the Query/Balance RPC method */ export interface QueryBalanceRequest { /** class_id associated with the nft */ classId: string; /** owner is the owner address of the nft */ owner: string; } /** QueryBalanceResponse is the response type for the Query/Balance RPC method */ export interface QueryBalanceResponse { /** amount is the number of all NFTs of a given class owned by the owner */ amount: bigint; } /** QueryOwnerRequest is the request type for the Query/Owner RPC method */ export interface QueryOwnerRequest { /** class_id associated with the nft */ classId: string; /** id is a unique identifier of the NFT */ id: string; } /** QueryOwnerResponse is the response type for the Query/Owner RPC method */ export interface QueryOwnerResponse { /** owner is the owner address of the nft */ owner: string; } /** QuerySupplyRequest is the request type for the Query/Supply RPC method */ export interface QuerySupplyRequest { /** class_id associated with the nft */ classId: string; } /** QuerySupplyResponse is the response type for the Query/Supply RPC method */ export interface QuerySupplyResponse { /** amount is the number of all NFTs from the given class */ amount: bigint; } /** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ export interface QueryNFTsRequest { /** class_id associated with the nft */ classId: string; /** owner is the owner address of the nft */ owner: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ export interface QueryNFTsResponse { /** NFT defines the NFT */ nfts: NFT[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryNFTRequest is the request type for the Query/NFT RPC method */ export interface QueryNFTRequest { /** class_id associated with the nft */ classId: string; /** id is a unique identifier of the NFT */ id: string; } /** QueryNFTResponse is the response type for the Query/NFT RPC method */ export interface QueryNFTResponse { /** owner is the owner address of the nft */ nft?: NFT; } /** QueryClassRequest is the request type for the Query/Class RPC method */ export interface QueryClassRequest { /** class_id associated with the nft */ classId: string; } /** QueryClassResponse is the response type for the Query/Class RPC method */ export interface QueryClassResponse { /** class defines the class of the nft type. */ class?: Class; } /** QueryClassesRequest is the request type for the Query/Classes RPC method */ export interface QueryClassesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryClassesResponse is the response type for the Query/Classes RPC method */ export interface QueryClassesResponse { /** class defines the class of the nft type. */ classes: Class[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } export declare const QueryBalanceRequest: { typeUrl: string; encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): JsonSafe; fromPartial, I>>(object: I): QueryBalanceRequest; }; export declare const QueryBalanceResponse: { typeUrl: string; encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): JsonSafe; fromPartial, I>>(object: I): QueryBalanceResponse; }; export declare const QueryOwnerRequest: { typeUrl: string; encode(message: QueryOwnerRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerRequest; fromJSON(object: any): QueryOwnerRequest; toJSON(message: QueryOwnerRequest): JsonSafe; fromPartial, I>>(object: I): QueryOwnerRequest; }; export declare const QueryOwnerResponse: { typeUrl: string; encode(message: QueryOwnerResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerResponse; fromJSON(object: any): QueryOwnerResponse; toJSON(message: QueryOwnerResponse): JsonSafe; fromPartial, I>>(object: I): QueryOwnerResponse; }; export declare const QuerySupplyRequest: { typeUrl: string; encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; fromJSON(object: any): QuerySupplyRequest; toJSON(message: QuerySupplyRequest): JsonSafe; fromPartial, I>>(object: I): QuerySupplyRequest; }; export declare const QuerySupplyResponse: { typeUrl: string; encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; fromJSON(object: any): QuerySupplyResponse; toJSON(message: QuerySupplyResponse): JsonSafe; fromPartial, I>>(object: I): QuerySupplyResponse; }; export declare const QueryNFTsRequest: { typeUrl: string; encode(message: QueryNFTsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsRequest; fromJSON(object: any): QueryNFTsRequest; toJSON(message: QueryNFTsRequest): JsonSafe; fromPartial, I>>(object: I): QueryNFTsRequest; }; export declare const QueryNFTsResponse: { typeUrl: string; encode(message: QueryNFTsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsResponse; fromJSON(object: any): QueryNFTsResponse; toJSON(message: QueryNFTsResponse): JsonSafe; fromPartial, I>>(object: I): QueryNFTsResponse; }; export declare const QueryNFTRequest: { typeUrl: string; encode(message: QueryNFTRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTRequest; fromJSON(object: any): QueryNFTRequest; toJSON(message: QueryNFTRequest): JsonSafe; fromPartial, I>>(object: I): QueryNFTRequest; }; export declare const QueryNFTResponse: { typeUrl: string; encode(message: QueryNFTResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTResponse; fromJSON(object: any): QueryNFTResponse; toJSON(message: QueryNFTResponse): JsonSafe; fromPartial, I>>(object: I): QueryNFTResponse; }; export declare const QueryClassRequest: { typeUrl: string; encode(message: QueryClassRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest; fromJSON(object: any): QueryClassRequest; toJSON(message: QueryClassRequest): JsonSafe; fromPartial, I>>(object: I): QueryClassRequest; }; export declare const QueryClassResponse: { typeUrl: string; encode(message: QueryClassResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse; fromJSON(object: any): QueryClassResponse; toJSON(message: QueryClassResponse): JsonSafe; fromPartial, I>>(object: I): QueryClassResponse; }; export declare const QueryClassesRequest: { typeUrl: string; encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; fromJSON(object: any): QueryClassesRequest; toJSON(message: QueryClassesRequest): JsonSafe; fromPartial, I>>(object: I): QueryClassesRequest; }; export declare const QueryClassesResponse: { typeUrl: string; encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; fromJSON(object: any): QueryClassesResponse; toJSON(message: QueryClassesResponse): JsonSafe; fromPartial, I>>(object: I): QueryClassesResponse; }; /** Query defines the gRPC querier service. */ export interface Query { /** Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */ Balance(request: QueryBalanceRequest): Promise; /** Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 */ Owner(request: QueryOwnerRequest): Promise; /** Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. */ Supply(request: QuerySupplyRequest): Promise; /** * NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in * ERC721Enumerable */ NFTs(request: QueryNFTsRequest): Promise; /** NFT queries an NFT based on its class and id. */ NFT(request: QueryNFTRequest): Promise; /** Class queries an NFT class based on its id */ Class(request: QueryClassRequest): Promise; /** Classes queries all NFT classes */ Classes(request?: QueryClassesRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); Balance(request: QueryBalanceRequest): Promise; Owner(request: QueryOwnerRequest): Promise; Supply(request: QuerySupplyRequest): Promise; NFTs(request: QueryNFTsRequest): Promise; NFT(request: QueryNFTRequest): Promise; Class(request: QueryClassRequest): Promise; Classes(request?: QueryClassesRequest): Promise; }