Skip to content

Commit

Permalink
Merge branch 'next-v5.0' into refator/remove/TokenTimelock
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed May 25, 2023
2 parents eb15818 + 238d17c commit d4622f4
Show file tree
Hide file tree
Showing 134 changed files with 284 additions and 457 deletions.
7 changes: 0 additions & 7 deletions .changeset/beige-buses-drop.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/clever-pumas-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openzeppelin-solidity': major
---

`Ownable`: Add an `initialOwner` parameter to the constructor, making the ownership initialization explicit.
7 changes: 0 additions & 7 deletions .changeset/curvy-shrimps-enjoy.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/curvy-suns-sort.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/early-oranges-raise.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/famous-rules-burn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/five-ducks-develop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/five-poets-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/flat-deers-end.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/four-bats-sniff.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/funny-rockets-compete.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/gold-chicken-clean.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/happy-socks-travel.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/healthy-squids-stare.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/lemon-dogs-kiss.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/little-kiwis-ring.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-wolves-promise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lovely-dragons-appear.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/modern-games-exist.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/new-ways-own.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ninety-hornets-kick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/perfect-insects-listen.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/pretty-hornets-play.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/proud-comics-deliver.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/short-roses-judge.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-dancers-type.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-knives-hug.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/small-cars-appear.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/small-terms-sleep.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/smooth-books-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openzeppelin-solidity': major
---

`ERC1155`: Remove check for address zero in `balanceOf`.
5 changes: 0 additions & 5 deletions .changeset/strong-bulldogs-buy.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/tame-ladybugs-sit.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/tender-needles-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-dragons-report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thirty-swans-exercise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/violet-frogs-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-masks-obey.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/yellow-swans-cover.md

This file was deleted.

38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,44 @@ function supportsInterface(bytes4 interfaceId) public view virtual override retu
}
```

## 4.9.0 (2023-05-23)

- `ReentrancyGuard`: Add a `_reentrancyGuardEntered` function to expose the guard status. ([#3714](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3714))
- `ERC721Wrapper`: add a new extension of the `ERC721` token which wraps an underlying token. Deposit and withdraw guarantee that the ownership of each token is backed by a corresponding underlying token with the same identifier. ([#3863](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3863))
- `EnumerableMap`: add a `keys()` function that returns an array containing all the keys. ([#3920](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3920))
- `Governor`: add a public `cancel(uint256)` function. ([#3983](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3983))
- `Governor`: Enable timestamp operation for blockchains without a stable block time. This is achieved by connecting a Governor's internal clock to match a voting token's EIP-6372 interface. ([#3934](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3934))
- `Strings`: add `equal` method. ([#3774](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3774))
- `IERC5313`: Add an interface for EIP-5313 that is now final. ([#4013](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4013))
- `IERC4906`: Add an interface for ERC-4906 that is now Final. ([#4012](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4012))
- `StorageSlot`: Add support for `string` and `bytes`. ([#4008](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4008))
- `Votes`, `ERC20Votes`, `ERC721Votes`: support timestamp checkpointing using EIP-6372. ([#3934](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3934))
- `ERC4626`: Add mitigation to the inflation attack through virtual shares and assets. ([#3979](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3979))
- `Strings`: add `toString` method for signed integers. ([#3773](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3773))
- `ERC20Wrapper`: Make the `underlying` variable private and add a public accessor. ([#4029](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4029))
- `EIP712`: add EIP-5267 support for better domain discovery. ([#3969](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3969))
- `AccessControlDefaultAdminRules`: Add an extension of `AccessControl` with additional security rules for the `DEFAULT_ADMIN_ROLE`. ([#4009](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4009))
- `SignatureChecker`: Add `isValidERC1271SignatureNow` for checking a signature directly against a smart contract using ERC-1271. ([#3932](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3932))
- `SafeERC20`: Add a `forceApprove` function to improve compatibility with tokens behaving like USDT. ([#4067](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4067))
- `ERC1967Upgrade`: removed contract-wide `oz-upgrades-unsafe-allow delegatecall` annotation, replaced by granular annotation in `UUPSUpgradeable`. ([#3971](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3971))
- `ERC20Wrapper`: self wrapping and deposit by the wrapper itself are now explicitly forbidden. ([#4100](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4100))
- `ECDSA`: optimize bytes32 computation by using assembly instead of `abi.encodePacked`. ([#3853](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3853))
- `ERC721URIStorage`: Emit ERC-4906 `MetadataUpdate` in `_setTokenURI`. ([#4012](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4012))
- `ShortStrings`: Added a library for handling short strings in a gas efficient way, with fallback to storage for longer strings. ([#4023](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4023))
- `SignatureChecker`: Allow return data length greater than 32 from EIP-1271 signers. ([#4038](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4038))
- `UUPSUpgradeable`: added granular `oz-upgrades-unsafe-allow-reachable` annotation to improve upgrade safety checks on latest version of the Upgrades Plugins (starting with `@openzeppelin/upgrades-core@1.21.0`). ([#3971](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3971))
- `Initializable`: optimize `_disableInitializers` by using `!=` instead of `<`. ([#3787](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3787))
- `Ownable2Step`: make `acceptOwnership` public virtual to enable usecases that require overriding it. ([#3960](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3960))
- `UUPSUpgradeable.sol`: Change visibility to the functions `upgradeTo ` and `upgradeToAndCall ` from `external` to `public`. ([#3959](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3959))
- `TimelockController`: Add the `CallSalt` event to emit on operation schedule. ([#4001](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4001))
- Reformatted codebase with latest version of Prettier Solidity. ([#3898](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3898))
- `Math`: optimize `log256` rounding check. ([#3745](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3745))
- `ERC20Votes`: optimize by using unchecked arithmetic. ([#3748](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3748))
- `Multicall`: annotate `multicall` function as upgrade safe to not raise a flag for its delegatecall. ([#3961](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3961))
- `ERC20Pausable`, `ERC721Pausable`, `ERC1155Pausable`: Add note regarding missing public pausing functionality ([#4007](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4007))
- `ECDSA`: Add a function `toDataWithIntendedValidatorHash` that encodes data with version 0x00 following EIP-191. ([#4063](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4063))
- `MerkleProof`: optimize by using unchecked arithmetic. ([#3745](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3745))

### Breaking changes

- `EIP712`: Addition of ERC5267 support requires support for user defined value types, which was released in Solidity version 0.8.8. This requires a pragma change from `^0.8.0` to `^0.8.8`.
Expand Down
Loading

0 comments on commit d4622f4

Please sign in to comment.