/** * @namespace proto * @typedef {import("@hashgraph/proto").proto.ITokenTransferList} HashgraphProto.proto.ITokenTransferList * @typedef {import("@hashgraph/proto").proto.IAccountAmount} HashgraphProto.proto.IAccountAmount * @typedef {import("@hashgraph/proto").proto.IAccountID} HashgraphProto.proto.IAccountID * @typedef {import("@hashgraph/proto").proto.ITokenID} HashgraphProto.proto.ITokenID */ /** * @typedef {import("bignumber.js").default} BigNumber */ /** * An account, and the amount that it sends or receives during a cryptocurrency tokentransfer. */ export default class TokenTransfer { /** * @internal * @param {HashgraphProto.proto.ITokenTransferList[]} tokenTransfers * @returns {TokenTransfer[]} */ static _fromProtobuf(tokenTransfers: HashgraphProto.proto.ITokenTransferList[]): TokenTransfer[]; /** * @internal * @param {object} props * @param {TokenId | string} props.tokenId * @param {AccountId | string} props.accountId * @param {number | null} props.expectedDecimals * @param {Long | number} props.amount * @param {boolean} props.isApproved */ constructor(props: { tokenId: TokenId | string; accountId: AccountId | string; expectedDecimals: number | null; amount: Long | number; isApproved: boolean; }); /** * The Token ID that sends or receives cryptocurrency. * * @readonly */ readonly tokenId: TokenId; /** * The Account ID that sends or receives cryptocurrency. * * @readonly */ readonly accountId: AccountId; expectedDecimals: number | null; amount: Long.Long; isApproved: boolean; /** * @internal * @returns {HashgraphProto.proto.IAccountAmount} */ _toProtobuf(): HashgraphProto.proto.IAccountAmount; } export namespace HashgraphProto { namespace proto { type ITokenTransferList = import("@hashgraph/proto").proto.ITokenTransferList; type IAccountAmount = import("@hashgraph/proto").proto.IAccountAmount; type IAccountID = import("@hashgraph/proto").proto.IAccountID; type ITokenID = import("@hashgraph/proto").proto.ITokenID; } } export type BigNumber = import("bignumber.js").default; import TokenId from "./TokenId.js"; import AccountId from "../account/AccountId.js"; import Long from "long";