PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-hbar/node_modules/@hashgraph/sdk/lib/token

Просмотр файла: TokenNftInfo.d.ts

/**
 * @namespace proto
 * @typedef {import("@hashgraph/proto").proto.TokenFreezeStatus} HashgraphProto.proto.TokenFreezeStatus
 * @typedef {import("@hashgraph/proto").proto.TokenKycStatus} HashgraphProto.proto.TokenKycStatus
 * @typedef {import("@hashgraph/proto").proto.TokenPauseStatus} HashgraphProto.proto.TokenPauseStatus
 * @typedef {import("@hashgraph/proto").proto.ITokenNftInfo} HashgraphProto.proto.ITokenNftInfo
 * @typedef {import("@hashgraph/proto").proto.INftID} HashgraphProto.proto.INftID
 * @typedef {import("@hashgraph/proto").proto.ITimestamp} HashgraphProto.proto.ITimestamp
 * @typedef {import("@hashgraph/proto").proto.ITokenID} HashgraphProto.proto.ITokenID
 * @typedef {import("@hashgraph/proto").proto.IAccountID} HashgraphProto.proto.IAccountID
 * @typedef {import("@hashgraph/proto").proto.IKey} HashgraphProto.proto.IKey
 * @typedef {import("@hashgraph/proto").proto.IDuration} HashgraphProto.proto.IDuration
 */
export default class TokenNftInfo {
    /**
     * @internal
     * @param {HashgraphProto.proto.ITokenNftInfo} info
     * @returns {TokenNftInfo}
     */
    static _fromProtobuf(info: HashgraphProto.proto.ITokenNftInfo): TokenNftInfo;
    /**
     * @private
     * @param {object} props
     * @param {NftId} props.nftId
     * @param {AccountId} props.accountId
     * @param {Timestamp} props.creationTime
     * @param {Uint8Array | null} props.metadata
     * @param {LedgerId|null} props.ledgerId
     * @param {AccountId|null} props.spenderId
     */
    private constructor();
    /**
     * ID of the nft instance
     *
     * @readonly
     */
    readonly nftId: NftId;
    /**
     * @readonly
     */
    readonly accountId: AccountId;
    /**
     * @readonly
     */
    readonly creationTime: Timestamp;
    /**
     * @readonly
     */
    readonly metadata: Uint8Array | null;
    ledgerId: LedgerId | null;
    spenderId: AccountId | null;
    /**
     * @returns {HashgraphProto.proto.ITokenNftInfo}
     */
    _toProtobuf(): HashgraphProto.proto.ITokenNftInfo;
    /**
     * @typedef {object} TokenNftInfoJson
     * @property {string} nftId
     * @property {string} accountId
     * @property {string} creationTime
     * @property {string | null} metadata
     * @property {string | null} ledgerId
     * @property {string | null} spenderId
     * @returns {TokenNftInfoJson}
     */
    toJson(): {
        nftId: string;
        accountId: string;
        creationTime: string;
        metadata: string | null;
        ledgerId: string | null;
        spenderId: string | null;
    };
    /**
     * @returns {string}
     */
    toString(): string;
}
export namespace HashgraphProto {
    namespace proto {
        type TokenFreezeStatus = import("@hashgraph/proto").proto.TokenFreezeStatus;
        type TokenKycStatus = import("@hashgraph/proto").proto.TokenKycStatus;
        type TokenPauseStatus = import("@hashgraph/proto").proto.TokenPauseStatus;
        type ITokenNftInfo = import("@hashgraph/proto").proto.ITokenNftInfo;
        type INftID = import("@hashgraph/proto").proto.INftID;
        type ITimestamp = import("@hashgraph/proto").proto.ITimestamp;
        type ITokenID = import("@hashgraph/proto").proto.ITokenID;
        type IAccountID = import("@hashgraph/proto").proto.IAccountID;
        type IKey = import("@hashgraph/proto").proto.IKey;
        type IDuration = import("@hashgraph/proto").proto.IDuration;
    }
}
import NftId from "./NftId.js";
import AccountId from "../account/AccountId.js";
import Timestamp from "../Timestamp.js";
import LedgerId from "../LedgerId.js";

Выполнить команду


Для локальной разработки. Не используйте в интернете!