dappHero
dappHero copied to clipboard
Bump @openzeppelin/contracts from 2.4.0 to 4.7.2
Bumps @openzeppelin/contracts from 2.4.0 to 4.7.2.
Release notes
Sourced from @openzeppelin/contracts's releases.
v4.7.2
:warning: This is a patch for three issues, including a high severity issue in
GovernorVotesQuorumFraction. For more information visit the security advisories (1, 2, 3).
GovernorVotesQuorumFraction: Fixed quorum updates so they do not affect past proposals that failed due to lack of quorum. (#3561)ERC165Checker: Added protection against large returndata. (#3587)LibArbitrumL2,CrossChainEnabledArbitrumL2: Fixed detection of cross-chain calls for EOAs. Previously, calls from EOAs would be classified as cross-chain calls. (#3578)v4.7.1
:warning: This is a patch for a medium severity issue affecting
SignatureCheckerand a high severity issue affectingERC165Checker. For more information visit the security advisories (1, 2).
SignatureChecker: Fix an issue that causesisValidSignatureNowto revert when the target contract returns ill-encoded data. (#3552)ERC165Checker: Fix an issue that causessupportsInterfaceto revert when the target contract returns ill-encoded data. (#3552)v4.7.0
TimelockController: Migrate_callto_executeand allow inheritance and overriding similar toGovernor. (#3317)CrossChainEnabledPolygonChild: replace therequirestatement with the custom errorNotCrossChainCall. (#3380)ERC20FlashMint: Add customizable flash fee receiver. (#3327)ERC4626: add an extension ofERC20that implements the ERC4626 Tokenized Vault Standard. (#3171)SafeERC20: addsafePermitas mitigation against phantom permit functions. (#3280)Math: add amulDivfunction that can round the result either up or down. (#3171)Math: Add asqrtfunction to compute square roots of integers, rounding either up or down. (#3242)Strings: add a new overloaded functiontoHexStringthat converts anaddresswith fixed length of 20 bytes to its not checksummed ASCIIstringhexadecimal representation. (#3403)EnumerableMap: add newUintToUintMapmap type. (#3338)EnumerableMap: add newBytes32ToUintMapmap type. (#3416)SafeCast: add support for many more types, using procedural code generation. (#3245)MerkleProof: addmultiProofVerifyto prove multiple values are part of a Merkle tree. (#3276)MerkleProof: add calldata versions of the functions to avoid copying input arrays to memory and save gas. (#3200)ERC721,ERC1155: simplified revert reasons. (#3254, (#3438))ERC721: removed redundant require statement. (#3434)PaymentSplitter: addreleasablegetters. (#3350)Initializable: refactored implementation of modifiers for easier understanding. (#3450)Proxies: remove runtime check of ERC1967 storage slots. (#3455)Breaking changes
Initializable: functions decorated with the modifierreinitializer(1)may no longer invoke each other.v4.7.0-rc.0
This prerelease is now available for open review! Let us know your feedback and if you find any security issues.
We have a bug bounty with rewards of up to USD $25,000 and a special POAP for submitting a valid issue.
See the announcement for more details.
v4.6.0
crosschain: Add a new set of contracts for cross-chain applications.CrossChainEnabledis a base contract with instantiations for several chains and bridges, andAccessControlCrossChainis an extension of access control that allows cross-chain operation. (#3183)AccessControl: add a virtual_checkRole(bytes32)function that can be overridden to alter theonlyRolemodifier behavior. (#3137)EnumerableMap: add newAddressToUintMapmap type. (#3150)EnumerableMap: add newBytes32ToBytes32Mapmap type. (#3192)ERC20FlashMint: support infinite allowance when paying back a flash loan. (#3226)
... (truncated)
Changelog
Sourced from @openzeppelin/contracts's changelog.
4.7.2
LibArbitrumL2,CrossChainEnabledArbitrumL2: Fixed detection of cross-chain calls for EOAs. Previously, calls from EOAs would be classified as cross-chain calls. (#3578)GovernorVotesQuorumFraction: Fixed quorum updates so they do not affect past proposals that failed due to lack of quorum. (#3561)ERC165Checker: Added protection against large returndata. (#3587)4.7.1
SignatureChecker: Fix an issue that causesisValidSignatureNowto revert when the target contract returns ill-encoded data. (#3552)ERC165Checker: Fix an issue that causessupportsInterfaceto revert when the target contract returns ill-encoded data. (#3552)4.7.0 (2022-06-29)
TimelockController: Migrate_callto_executeand allow inheritance and overriding similar toGovernor. (#3317)CrossChainEnabledPolygonChild: replace therequirestatement with the custom errorNotCrossChainCall. (#3380)ERC20FlashMint: Add customizable flash fee receiver. (#3327)ERC4626: add an extension ofERC20that implements the ERC4626 Tokenized Vault Standard. (#3171)SafeERC20: addsafePermitas mitigation against phantom permit functions. (#3280)Math: add amulDivfunction that can round the result either up or down. (#3171)Math: Add asqrtfunction to compute square roots of integers, rounding either up or down. (#3242)Strings: add a new overloaded functiontoHexStringthat converts anaddresswith fixed length of 20 bytes to its not checksummed ASCIIstringhexadecimal representation. (#3403)EnumerableMap: add newUintToUintMapmap type. (#3338)EnumerableMap: add newBytes32ToUintMapmap type. (#3416)SafeCast: add support for many more types, using procedural code generation. (#3245)MerkleProof: addmultiProofVerifyto prove multiple values are part of a Merkle tree. (#3276)MerkleProof: add calldata versions of the functions to avoid copying input arrays to memory and save gas. (#3200)ERC721,ERC1155: simplified revert reasons. (#3254, (#3438))ERC721: removed redundant require statement. (#3434)PaymentSplitter: addreleasablegetters. (#3350)Initializable: refactored implementation of modifiers for easier understanding. (#3450)Proxies: remove runtime check of ERC1967 storage slots. (#3455)Breaking changes
Initializable: functions decorated with the modifierreinitializer(1)may no longer invoke each other.4.6.0 (2022-04-26)
crosschain: Add a new set of contracts for cross-chain applications.CrossChainEnabledis a base contract with instantiations for several chains and bridges, andAccessControlCrossChainis an extension of access control that allows cross-chain operation. (#3183)AccessControl: add a virtual_checkRole(bytes32)function that can be overridden to alter theonlyRolemodifier behavior. (#3137)EnumerableMap: add newAddressToUintMapmap type. (#3150)EnumerableMap: add newBytes32ToBytes32Mapmap type. (#3192)ERC20FlashMint: support infinite allowance when paying back a flash loan. (#3226)ERC20Wrapper: thedecimals()function now tries to fetch the value from the underlying token instance. If that calls revert, then the default value is used. (#3259)draft-ERC20Permit: replaceimmutablewithconstantfor_PERMIT_TYPEHASHsince thekeccak256of string literals is treated specially and the hash is evaluated at compile time. (#3196)ERC1155: Add a_afterTokenTransferhook for improved extensibility. (#3166)ERC1155URIStorage: add a new extension that implements a_setURIbehavior similar to ERC721's_setTokenURI. (#3210)DoubleEndedQueue: a new data structure that supports efficient push and pop to both front and back, useful for FIFO and LIFO queues. (#3153)Governor: improved security ofonlyGovernancemodifier when using an external executor contract (e.g. a timelock) that can operate without necessarily going through the governance protocol. (#3147)Governor: Add a way to parameterize votes. This can be used to implement voting systems such as fractionalized voting, ERC721 based voting, or any number of other systems. Theparamsargument added to_countVotemethod, and included in the newly added_getVotesmethod, can be used by counting and voting modules respectively for such purposes. (#3043)
... (truncated)
Commits
64e48204.7.2b66fe16Update changelog8fb5f57Avoid returnbomb in ERC165Checker (#3587)67b2572Keep track of historical quorum values (#3561)4337192Fix arbitrum L1 to L2 crosschain call detection (#3578)41c7b25Fix error in documentation and typo (#3567)e15862fRemove test for feature not in 4.73b8b4ba4.7.1212de08Fix issues caused by abi.decode reverting (#3552)8c49ad74.7.0- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.