Skip to content

Version 1.0.0

Latest
Compare
Choose a tag to compare
@mohamadhammoud mohamadhammoud released this 13 Jun 09:17
· 16 commits to dev since this release
5d90975

Change Log

New Features

  • DLTPermit extension has been included, allowing the approval of a spender through message-based signing followingEIP-2612. It involves calling the permit function with signed parameters.
  • DLTEnumerable extension has been added to track the amounts in both main IDs and sub-IDs, including totalMainIds, totalSubIds, totalMainSupply, totalSubSupply, getSubIds, subIdBalanceOf functions.
  • The new getSubIds function retrieves all sub-IDs associated with a main ID.

Performance Improvements

  • setApprovalForAll(operator, approved): Allows the approval or removal of operator as an operator for the caller. Operators can call transferFrom or safeTransferFrom for any token owned by the caller.
  • safeTransferFrom(sender, recipient, mainId, subId, amount, data): Moves amount tokens from sender to recipient using the allowance mechanism. amount is then deducted from the caller's allowance.
  • approve(spender, mainId, subId, amount): Sets amount as the allowance of spender over the caller's tokens.
  • subBalanceOf(account, mainId, subId): Returns the amount of tokens owned by `account
  • balanceOfBatch(accounts, mainIds, subIds): Returns the balances of multiple accounts for each pair of mainIds and subIds.
  • allowance(owner, spender, mainId, subId): Returns the remaining number of tokens that spender can spend on behalf of owner for a specific mainId and subId.
  • isApprovedForAll(owner, operator): Checks if operator is allowed to manage all of the assets of owner.