PHP WebShell

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

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

/**
 * @namespace proto
 * @typedef {import("@hashgraph/proto").proto.ITokenAssociation} HashgraphProto.proto.ITokenAssociation
 */
export default class TokenAssociation {
    /**
     * @internal
     * @abstract
     * @param {HashgraphProto.proto.ITokenAssociation} association
     * @returns {TokenAssociation}
     */
    static _fromProtobuf(association: HashgraphProto.proto.ITokenAssociation): TokenAssociation;
    /**
     * @param {object} props
     * @param {AccountId | string} [props.accountId]
     * @param {TokenId | string} [props.tokenId]
     */
    constructor(props?: {
        accountId?: string | AccountId | undefined;
        tokenId?: string | TokenId | undefined;
    });
    /**
     * @type {?AccountId}
     */
    _accountId: AccountId | null;
    /**
     * @type {?TokenId}
     */
    _tokenId: TokenId | null;
    _defaultMaxTransactionFee: Hbar;
    /**
     * @returns {?AccountId}
     */
    get accountId(): AccountId | null;
    /**
     * @param {AccountId | string} accountId
     * @returns {this}
     */
    setAccountId(accountId: AccountId | string): this;
    /**
     * @returns {?TokenId}
     */
    get tokenId(): TokenId | null;
    /**
     * @param {TokenId | string} tokenId
     * @returns {this}
     */
    setTokenId(tokenId: TokenId | string): this;
    /**
     * @internal
     * @abstract
     * @returns {HashgraphProto.proto.ITokenAssociation}
     */
    _toProtobuf(): HashgraphProto.proto.ITokenAssociation;
}
export namespace HashgraphProto {
    namespace proto {
        type ITokenAssociation = import("@hashgraph/proto").proto.ITokenAssociation;
    }
}
import AccountId from "../account/AccountId.js";
import TokenId from "../token/TokenId.js";
import Hbar from "../Hbar.js";

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


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