import BigNumber from 'bignumber.js'; import { BaseAsset } from '../../../../api/entities/Asset/Base'; import { FungibleSettlements } from '../../../../api/entities/Asset/Base/Settlements'; import { AssetHolders } from '../../../../api/entities/Asset/Fungible/AssetHolders'; import { Checkpoints } from '../../../../api/entities/Asset/Fungible/Checkpoints'; import { CorporateActions } from '../../../../api/entities/Asset/Fungible/CorporateActions'; import { Issuance } from '../../../../api/entities/Asset/Fungible/Issuance'; import { Offerings } from '../../../../api/entities/Asset/Fungible/Offerings'; import { TransferRestrictions } from '../../../../api/entities/Asset/Fungible/TransferRestrictions'; import { AccountLike, UniqueIdentifiers } from '../../../../api/entities/types'; import { Context } from '../../../../internal'; import { ApproveAllowanceParams, ControllerTransferParams, EventIdentifier, HistoricAgentOperation, HistoricAssetTransaction, ProcedureMethod, RedeemTokensParams, ResultSet } from '../../../../types'; /** * Class used to manage all Fungible Asset functionality */ export declare class FungibleAsset extends BaseAsset { settlements: FungibleSettlements; assetHolders: AssetHolders; issuance: Issuance; transferRestrictions: TransferRestrictions; offerings: Offerings; checkpoints: Checkpoints; corporateActions: CorporateActions; /** * @hidden */ constructor(identifiers: UniqueIdentifiers, context: Context); /** * Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created * * @note uses the middlewareV2 * @note there is a possibility that the data is not ready by the time it is requested. In that case, `null` is returned */ createdAt(): Promise; /** * Redeem (burn) an amount of this Asset's tokens */ redeem: ProcedureMethod; /** * Retrieve the amount of unique investors that hold this Asset */ investorCount(): Promise; /** * Force a transfer from a given Portfolio to the caller’s default Portfolio */ controllerTransfer: ProcedureMethod; /** * Retrieve this Asset's Operation History * * @note Operations are grouped by the agent Identity who performed them * * @note uses the middlewareV2 */ getOperationHistory(): Promise; /** * Retrieve this Asset's transaction History * * @note uses the middlewareV2 */ getTransactionHistory(opts: { size?: BigNumber; start?: BigNumber; }): Promise>; /** * Determine whether this FungibleAsset exists on chain */ exists(): Promise; /** * Approve spender account allowance for transferring this Asset * * @note Replaces any existing allowance for this if an allowance already exists for spender account for this Asset. * Setting `amount` to 0 revokes the allowance. * * On every spend transaction, the spender account's allowance will be decremented by the amount transferred. */ approveAllowance: ProcedureMethod; /** * Retrieve the amount of allowance for a spender account as approved by owner */ getAllowance(args: { owner: AccountLike; spender: AccountLike; }): Promise; } //# sourceMappingURL=index.d.ts.map