github OpenZeppelin/cairo-contracts v0.20.0

12 days ago

Summary

Added

  • SRC9 (Outside Execution) integration to account presets (#1201)
  • SNIP12HashSpanImpl to openzeppelin_utils::cryptography::snip12 (#1180)
  • GovernorComponent with the following extensions: (#1180)
    • GovernorCoreExecutionComponent
    • GovernorCountingSimpleComponent
    • GovernorSettingsComponent
    • GovernorTimelockExecutionComponent
    • GovernorVotesQuorumFractionComponent
    • GovernorVotesComponent
  • is_tx_version_valid utility function to openzeppelin_account::utils (#1224)

Changed

  • Remove mut from data param in compute_hash_on_elements (#1206)
  • Remove mut from calls param in __execute__ function of Account and EthAccount components (#1224)
  • Remove mut from calls param in __validate__ function of Account and EthAccount components (#1224)

Changed (Breaking)

  • Bump snforge_std to v0.34.0 (#1239)
  • Bump scarb to v2.9.1 (#1239)
  • The initializer in OwnableComponent now checks that owner is not the zero address (#1221)
  • Add verifying_contract member to the Delegation struct used in Votes delegate_by_sig (#1214)
    use crate::votes::VotesComponent::VotingUnitsTrait;
  • VotingUnitsTrait moved from openzeppelin_governance::votes::votes to openzeppelin_governance::votes::VotesComponent (#1214)
  • VestingComponent release function won't emit an event or attempt to transfer when the amount is zero (#1209)
  • Bump snforge_std to v0.33.0 (#1203)

Fixed

  • Scarb manifest dependencies (#1249):
    • Move openzeppelin_utils from dev dep to dep in governance manifest
    • Remove openzeppelin_utils as dep in access package
    • Change openzeppelin_account to crate in src9.cairo

Full Changes List

New Contributors

Full Changelog: v0.19.0...v0.20.0

Don't miss a new cairo-contracts release

NewReleases is sending notifications on new releases.