github OpenZeppelin/cairo-contracts v4.0.0-alpha.0

pre-release9 hours ago

Summary

Added

  • openzeppelin_utils
    • Added lower_lookup support to checkpoint utilities (#1630)
    • Added BitMap struct and associated helpers to openzeppelin_utils::structs::bitmap (#1630)
  • ERC721ConsecutiveComponent extension (#1630)
  • ERC-6909 standard implementation and extensions (#1594)
    • Introduced ERC6909Component and extension components: ERC6909ContentURIComponent, ERC6909MetadataComponent, and ERC6909TokenSupplyComponent.
    • Added standard interfaces: IERC6909, IERC6909Metadata, IERC6909TokenSupply, and IERC6909ContentUri.
    • Added the ERC6909ABI trait, covering the full ERC-6909 token functionality, including all supported extensions.
  • Integration of ERC-6909 components into the with_components macro (#1594)
  • IERC1155Supply interface and ERC1155SupplyComponent extension for total supply tracking (#1632)
  • IERC721Wrapper interface to openzeppelin_interfaces::token::erc721 (#1625)
  • ERC721WrapperComponent providing ERC721 wrapping and unwrapping functionality (#1625)
  • IERC20Wrapper interface to openzeppelin_interfaces::token::erc20 for ERC20 wrappers (#1617)
  • ERC20WrapperComponent providing ERC20 wrapping and unwrapping functionality (#1617)

Changed

  • Bump scarb to v2.15.1 (#1631)

Changed (Breaking)

  • Added ERC721TokenOwnerTrait hook as a dependency to ERC721Component implementations (#1630)
    • Included ERC721OwnerOfDefaultImpl to support the default use case

Full Changes List

New Contributors

Full Changelog: v3.0.0...v4.0.0-alpha.0

Don't miss a new cairo-contracts release

NewReleases is sending notifications on new releases.