UNPKG

@hashgraph/sdk

Version:
150 lines (149 loc) 5.59 kB
/** * @namespace proto * @typedef {import("@hashgraph/proto").proto.IQuery} HieroProto.proto.IQuery * @typedef {import("@hashgraph/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader * @typedef {import("@hashgraph/proto").proto.IResponse} HieroProto.proto.IResponse * @typedef {import("@hashgraph/proto").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo * @typedef {import("@hashgraph/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader * @typedef {import("@hashgraph/proto").proto.ITokenGetNftInfoQuery} HieroProto.proto.ITokenGetNftInfoQuery * @typedef {import("@hashgraph/proto").proto.ITokenGetNftInfosQuery} HieroProto.proto.ITokenGetNftInfosQuery * @typedef {import("@hashgraph/proto").proto.ITokenGetAccountNftInfosQuery} HieroProto.proto.ITokenGetAccountNftInfosQuery * @typedef {import("@hashgraph/proto").proto.ITokenGetNftInfoResponse} HieroProto.proto.ITokenGetNftInfoResponse * @typedef {import("@hashgraph/proto").proto.ITokenGetNftInfosResponse} HieroProto.proto.ITokenGetNftInfosResponse * @typedef {import("@hashgraph/proto").proto.ITokenGetAccountNftInfosResponse} HieroProto.proto.ITokenGetAccountNftInfosResponse */ /** * @typedef {import("../channel/Channel.js").default} Channel */ /** * @augments {Query<TokenNftInfo[]>} */ export default class TokenNftInfoQuery extends Query<TokenNftInfo[]> { /** * @internal * @param {HieroProto.proto.IQuery} query * @returns {TokenNftInfoQuery} */ static _fromProtobuf(query: HieroProto.proto.IQuery): TokenNftInfoQuery; /** * @param {object} properties * @param {NftId | string} [properties.nftId] * @param {AccountId | string} [properties.accountId] * @param {TokenId | string} [properties.tokenId] * @param {Long | number} [properties.start] * @param {Long | number} [properties.end] */ constructor(properties?: { nftId?: string | NftId | undefined; accountId?: string | AccountId | undefined; tokenId?: string | TokenId | undefined; start?: number | Long | undefined; end?: number | Long | undefined; }); /** * @private * @type {?NftId} */ private _nftId; /** * @private * @type {?AccountId} */ private _accountId; /** * @private * @type {?TokenId} */ private _tokenId; /** * @private * @type {?Long} */ private _start; /** * @private * @type {?Long} */ private _end; /** * @returns {?NftId} */ get nftId(): NftId | null; /** * Set the token ID for which the info is being requested. * * @param {NftId | string} nftId * @returns {TokenNftInfoQuery} */ setNftId(nftId: NftId | string): TokenNftInfoQuery; /** * @deprecated with no replacement * @returns {?AccountId} */ get accountId(): AccountId | null; /** * @deprecated with no replacement * Set the token ID for which the info is being requested. * @param {AccountId | string} accountId * @returns {TokenNftInfoQuery} */ setAccountId(accountId: AccountId | string): TokenNftInfoQuery; /** * @deprecated with no replacement * @returns {?TokenId} */ get tokenId(): TokenId | null; /** * @deprecated with no replacement * Set the token ID for which the info is being requested. * @param {TokenId | string} tokenId * @returns {TokenNftInfoQuery} */ setTokenId(tokenId: TokenId | string): TokenNftInfoQuery; /** * @deprecated with no replacement * @returns {?Long} */ get start(): Long | null; /** * @deprecated with no replacement * Set the token ID for which the info is being requested. * @param {Long | number} start * @returns {TokenNftInfoQuery} */ setStart(start: Long | number): TokenNftInfoQuery; /** * @deprecated with no replacement * @returns {?Long} */ get end(): Long | null; /** * @deprecated with no replacement * Set the token ID for which the info is being requested. * @param {Long | number} end * @returns {TokenNftInfoQuery} */ setEnd(end: Long | number): TokenNftInfoQuery; } export namespace HieroProto { namespace proto { type IQuery = import("@hashgraph/proto").proto.IQuery; type IQueryHeader = import("@hashgraph/proto").proto.IQueryHeader; type IResponse = import("@hashgraph/proto").proto.IResponse; type ITokenNftInfo = import("@hashgraph/proto").proto.ITokenNftInfo; type IResponseHeader = import("@hashgraph/proto").proto.IResponseHeader; type ITokenGetNftInfoQuery = import("@hashgraph/proto").proto.ITokenGetNftInfoQuery; type ITokenGetNftInfosQuery = import("@hashgraph/proto").proto.ITokenGetNftInfosQuery; type ITokenGetAccountNftInfosQuery = import("@hashgraph/proto").proto.ITokenGetAccountNftInfosQuery; type ITokenGetNftInfoResponse = import("@hashgraph/proto").proto.ITokenGetNftInfoResponse; type ITokenGetNftInfosResponse = import("@hashgraph/proto").proto.ITokenGetNftInfosResponse; type ITokenGetAccountNftInfosResponse = import("@hashgraph/proto").proto.ITokenGetAccountNftInfosResponse; } } export type Channel = import("../channel/Channel.js").default; import TokenNftInfo from "./TokenNftInfo.js"; import Query from "../query/Query.js"; import NftId from "./NftId.js"; import AccountId from "../account/AccountId.js"; import TokenId from "../token/TokenId.js"; import Long from "long";