Skip to content

Commit 804ec79

Browse files
authored
Merge branch 'master' into refactor/ERC20/remove-increasse-decreasse-allowance
2 parents dfe1a7d + 36bf1e4 commit 804ec79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1114
-1108
lines changed

.changeset/green-pumpkins-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': major
3+
---
4+
5+
`SafeERC20`: Removed `safePermit` in favor of documentation-only `permit` recommendations.

.changeset/wet-bears-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': major
3+
---
4+
5+
Upgradeable contracts now use namespaced storage (EIP-7201).

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ runs:
55
steps:
66
- uses: actions/setup-node@v3
77
with:
8-
node-version: 14.x
8+
node-version: 16.x
99
- uses: actions/cache@v3
1010
id: cache
1111
with:

certora/diff/token_ERC721_ERC721.sol.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.

certora/harnesses/AccessControlDefaultAdminRulesHarness.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// SPDX-License-Identifier: MIT
2-
32
pragma solidity ^0.8.20;
43

5-
import "../patched/access/AccessControlDefaultAdminRules.sol";
4+
import {AccessControlDefaultAdminRules} from "../patched/access/extensions/AccessControlDefaultAdminRules.sol";
65

76
contract AccessControlDefaultAdminRulesHarness is AccessControlDefaultAdminRules {
87
uint48 private _delayIncreaseWait;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: MIT
2-
32
pragma solidity ^0.8.20;
43

5-
import "../patched/access/AccessControl.sol";
4+
import {AccessControl} from "../patched/access/AccessControl.sol";
65

76
contract AccessControlHarness is AccessControl {}

certora/harnesses/DoubleEndedQueueHarness.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// SPDX-License-Identifier: MIT
2-
32
pragma solidity ^0.8.20;
43

5-
import "../patched/utils/structs/DoubleEndedQueue.sol";
4+
import {DoubleEndedQueue} from "../patched/utils/structs/DoubleEndedQueue.sol";
65

76
contract DoubleEndedQueueHarness {
87
using DoubleEndedQueue for DoubleEndedQueue.Bytes32Deque;

certora/harnesses/ERC20PermitHarness.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// SPDX-License-Identifier: MIT
2-
32
pragma solidity ^0.8.20;
43

5-
import "../patched/token/ERC20/extensions/ERC20Permit.sol";
4+
import {ERC20Permit, ERC20} from "../patched/token/ERC20/extensions/ERC20Permit.sol";
65

76
contract ERC20PermitHarness is ERC20Permit {
87
constructor(string memory name, string memory symbol) ERC20(name, symbol) ERC20Permit(name) {}

certora/harnesses/ERC20WrapperHarness.sol

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
pragma solidity ^0.8.20;
44

5-
import "../patched/token/ERC20/extensions/ERC20Wrapper.sol";
5+
import {ERC20Permit} from "../patched/token/ERC20/extensions/ERC20Permit.sol";
6+
import {ERC20Wrapper, IERC20, ERC20} from "../patched/token/ERC20/extensions/ERC20Wrapper.sol";
67

7-
contract ERC20WrapperHarness is ERC20Wrapper {
8-
constructor(IERC20 _underlying, string memory _name, string memory _symbol) ERC20(_name, _symbol) ERC20Wrapper(_underlying) {}
8+
contract ERC20WrapperHarness is ERC20Permit, ERC20Wrapper {
9+
constructor(
10+
IERC20 _underlying,
11+
string memory _name,
12+
string memory _symbol
13+
) ERC20(_name, _symbol) ERC20Permit(_name) ERC20Wrapper(_underlying) {}
914

1015
function underlyingTotalSupply() public view returns (uint256) {
1116
return underlying().totalSupply();
@@ -22,4 +27,8 @@ contract ERC20WrapperHarness is ERC20Wrapper {
2227
function recover(address account) public returns (uint256) {
2328
return _recover(account);
2429
}
30+
31+
function decimals() public view override(ERC20Wrapper, ERC20) returns (uint8) {
32+
return super.decimals();
33+
}
2534
}

certora/harnesses/ERC3156FlashBorrowerHarness.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
import "../patched/interfaces/IERC3156FlashBorrower.sol";
3+
import {IERC3156FlashBorrower} from "../patched/interfaces/IERC3156FlashBorrower.sol";
44

55
pragma solidity ^0.8.20;
66

0 commit comments

Comments
 (0)