Skip to content

v1.1.3

Latest

Choose a tag to compare

@starknetdev starknetdev released this 06 Apr 17:29
· 4 commits to main since this release

Changes

  • Remove global token enumeration from EnumerableComponent (#91)
    • Removed total_supply(), token_by_index(), Enumerable_all_tokens, Enumerable_all_tokens_len
    • Replaced OZ IERC721Enumerable with custom IEnumerableOwner interface (only token_of_owner_by_index)
    • New SRC5 interface ID: IENUMERABLE_OWNER_ID
    • Saves 2 storage writes per mint

Breaking changes

  • Contracts using EnumerableComponent no longer expose total_supply() or token_by_index()
  • SRC5 interface ID changes from IERC721_ENUMERABLE_ID to IENUMERABLE_OWNER_ID
  • Consumers should switch from IERC721EnumerableDispatcher to IEnumerableOwnerDispatcher