You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on github.com and signed with GitHub’s verified signature.
The key has expired.
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.