Skip to content

v0.2.0-rc.0

Pre-release
Pre-release

Choose a tag to compare

@bidzyyys bidzyyys released this 22 May 15:12
· 87 commits to main since this release
5ed33dd

Summary

Added

  • Contracts now support constructors. #639
  • Add Pedersen hash with Starknet parameters. #644
  • Add shift left, right operators to Uint. #644
  • Erc721Wrapper extension to support token wrapping. #461
  • Add callable interface for ERC-721. #461
  • Add missing functions to callable ERC-20 interface. #461
  • All events now derive Debug. #614
  • Erc20Wrapper extension to support token wrapping. #498
  • Erc20 events derive Debug. #498
  • Implement MethodError for all contracts' errors. #594
  • Implement IErc165 for all base contracts for standard interface detection. #603
  • Expose interface ID for Erc20Wrapper, Erc4626 and Erc20FlashMint. #603
  • Short Weierstrass elliptic curves primitives. #589

Changed

  • Optimize Stylus SDK imports. #598
  • Updated the recommended way to inherit errors. #602

Changed (Breaking)

  • Bump Stylus SDK to v0.9.0. #639
  • Convert associated const INTERFACE_ID into an associated fn interface_id() on all traits. #639
  • IErc165::supports_interface now accepts &self as first parameter. #639
  • Removed Erc165 struct. #639
  • Contracts now use the new Stylus SDK inheritance model. #639
  • Moved Erc20 callable interface to /erc20/interface.rs module and renamed it to Erc20Interface. #461
  • Bump cargo-stylus to v0.5.11. #617
  • Bump Stylus SDK to v0.8.4. #624
  • Remove ownable_two_step::Error wrapper in Ownable2Step, and emit ownable::Error directly. #594
  • Poseidon babybear and goldilocks (64-bit) instances now have 256-bit security (capacity 4). #613
  • BitIteratorBE (bit iteration) trait at openzeppelin_crypto now accepts self by value. #589
  • Feature std was removed from libraries. #662

Fixed

  • The #[interface_id] attribute now correctly copies supertraits. #651
  • IErc721Metadata::interface_id() now has the correct value.

Full Changes List

Full Changelog: v0.2.0-alpha.4...v0.2.0-rc.0