PHP WebShell

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

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

/**
 * @typedef {import("long").Long} Long
 * @typedef {import("../client/Client.js").default<*, *>} Client
 */
/**
 * The ID for a crypto-currency token on Hedera.
 */
export default class TokenId {
    /**
     * @param {string} text
     * @returns {TokenId}
     */
    static fromString(text: string): TokenId;
    /**
     * @internal
     * @param {HashgraphProto.proto.ITokenID} id
     * @returns {TokenId}
     */
    static _fromProtobuf(id: HashgraphProto.proto.ITokenID): TokenId;
    /**
     * @param {Uint8Array} bytes
     * @returns {TokenId}
     */
    static fromBytes(bytes: Uint8Array): TokenId;
    /**
     * @param {string} address
     * @returns {TokenId}
     */
    static fromSolidityAddress(address: string): TokenId;
    /**
     * @param {number | Long | import("../EntityIdHelper").IEntityId} props
     * @param {(number | Long)=} realm
     * @param {(number | Long)=} num
     */
    constructor(props: number | Long | import("../EntityIdHelper").IEntityId, realm?: (number | Long) | undefined, num?: (number | Long) | undefined);
    shard: import("long").Long;
    realm: import("long").Long;
    num: import("long").Long;
    /**
     * @type {string | null}
     */
    _checksum: string | null;
    /**
     * @returns {string | null}
     */
    get checksum(): string | null;
    /**
     * @deprecated - Use `validateChecksum` instead
     * @param {Client} client
     */
    validate(client: import("../client/Client.js").default<any, any>): void;
    /**
     * @param {Client} client
     */
    validateChecksum(client: import("../client/Client.js").default<any, any>): void;
    /**
     * @returns {string}
     */
    toSolidityAddress(): string;
    /**
     * @internal
     * @returns {HashgraphProto.proto.ITokenID}
     */
    _toProtobuf(): HashgraphProto.proto.ITokenID;
    /**
     * @returns {string}
     */
    toString(): string;
    /**
     * @param {Client} client
     * @returns {string}
     */
    toStringWithChecksum(client: import("../client/Client.js").default<any, any>): string;
    /**
     * @returns {Uint8Array}
     */
    toBytes(): Uint8Array;
    /**
     * @returns {TokenId}
     */
    clone(): TokenId;
    /**
     * @param {TokenId} other
     * @returns {number}
     */
    compare(other: TokenId): number;
}
export type Long = import("long").Long;
export type Client = import("../client/Client.js").default<any, any>;
import * as HashgraphProto from "@hashgraph/proto";

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


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