UNPKG

@hashgraph/sdk

Version:
91 lines (90 loc) 3.81 kB
/** * @namespace proto * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse * @typedef {import("@hashgraph/proto").proto.ITokenUnfreezeAccountTransactionBody} HieroProto.proto.ITokenUnfreezeAccountTransactionBody * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID */ /** * @typedef {import("../channel/Channel.js").default} Channel * @typedef {import("../client/Client.js").default<*, *>} Client * @typedef {import("../transaction/TransactionId.js").default} TransactionId */ /** * Unfreeze a new Hedera™ crypto-currency token. */ export default class TokenUnfreezeTransaction extends Transaction { /** * @internal * @param {HieroProto.proto.ITransaction[]} transactions * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions * @param {TransactionId[]} transactionIds * @param {AccountId[]} nodeIds * @param {HieroProto.proto.ITransactionBody[]} bodies * @returns {TokenUnfreezeTransaction} */ static _fromProtobuf(transactions: HieroProto.proto.ITransaction[], signedTransactions: HieroProto.proto.ISignedTransaction[], transactionIds: TransactionId[], nodeIds: AccountId[], bodies: HieroProto.proto.ITransactionBody[]): TokenUnfreezeTransaction; /** * @param {object} [props] * @param {TokenId | string} [props.tokenId] * @param {AccountId | string} [props.accountId] */ constructor(props?: { tokenId?: string | TokenId | undefined; accountId?: string | AccountId | undefined; }); /** * @private * @type {?TokenId} */ private _tokenId; /** * @private * @type {?AccountId} */ private _accountId; /** * @returns {?TokenId} */ get tokenId(): TokenId | null; /** * @param {TokenId | string} tokenId * @returns {this} */ setTokenId(tokenId: TokenId | string): this; /** * @returns {?AccountId} */ get accountId(): AccountId | null; /** * @param {AccountId | string} accountId * @returns {this} */ setAccountId(accountId: AccountId | string): this; /** * @override * @protected * @returns {HieroProto.proto.ITokenUnfreezeAccountTransactionBody} */ protected override _makeTransactionData(): HieroProto.proto.ITokenUnfreezeAccountTransactionBody; } export namespace HieroProto { namespace proto { type ITransaction = import("@hashgraph/proto").proto.ITransaction; type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction; type TransactionBody = import("@hashgraph/proto").proto.TransactionBody; type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody; type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse; type ITokenUnfreezeAccountTransactionBody = import("@hashgraph/proto").proto.ITokenUnfreezeAccountTransactionBody; type ITokenID = import("@hashgraph/proto").proto.ITokenID; } } export type Channel = import("../channel/Channel.js").default; export type Client = import("../client/Client.js").default<any, any>; export type TransactionId = import("../transaction/TransactionId.js").default; import Transaction from "../transaction/Transaction.js"; import TokenId from "./TokenId.js"; import AccountId from "../account/AccountId.js";