v4.4.0
版本发布时间: 2021-11-26 05:14:58
OpenZeppelin/openzeppelin-contracts最新发布版本:v5.1.0-rc.0(2024-10-03 22:56:46)
Check out the first OpenZeppelin Community Call where the team discussed everything that is included in this release.
And if you missed it, we recently announced an official bug bounty program for OpenZeppelin Contracts. Check it out!
-
Ownable
: add an internal_transferOwnership(address)
. (#2568) -
AccessControl
: add internal_grantRole(bytes32,address)
and_revokeRole(bytes32,address)
. (#2568) -
AccessControl
: mark_setupRole(bytes32,address)
as deprecated in favor of_grantRole(bytes32,address)
. (#2568) -
AccessControlEnumerable
: hook into_grantRole(bytes32,address)
and_revokeRole(bytes32,address)
. (#2946) -
EIP712
: cacheaddress(this)
to immutable storage to avoid potential issues if a vanilla contract is used in a delegatecall context. (#2852) - Add internal
_setApprovalForAll
toERC721
andERC1155
. (#2834) -
Governor
: shift vote start and end by one block to better match Compound's GovernorBravo and prevent voting at the Governor level if the voting snapshot is not ready. (#2892) -
GovernorCompatibilityBravo
: consider quorum an inclusive rather than exclusive minimum to match Compound's GovernorBravo. (#2974) -
GovernorSettings
: a new governor module that manages voting settings updatable through governance actions. (#2904) -
PaymentSplitter
: now supports ERC20 assets in addition to Ether. (#2858) -
ECDSA
: add a variant oftoEthSignedMessageHash
for arbitrary length message hashing. (#2865) -
MerkleProof
: add aprocessProof
function that returns the rebuilt root hash given a leaf and a proof. (#2841) -
VestingWallet
: new contract that handles the vesting of Ether and ERC20 tokens following a customizable vesting schedule. (#2748) -
Governor
: enable receiving Ether when a Timelock contract is not used. (#2748) -
GovernorTimelockCompound
: fix ability to use Ether stored in the Timelock contract. (#2748)