Skip to content

Commit f634aab

Browse files
authored
Merge branch 'master' into modular-exponentiation-precompile-wrapper-#1985
2 parents 98f7994 + abcf9dd commit f634aab

File tree

243 files changed

+12553
-13564
lines changed

Some content is hidden

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

243 files changed

+12553
-13564
lines changed

.changeset/angry-dodos-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': minor
3+
---
4+
5+
`Math`: Optimized gas cost of `ceilDiv` by using `unchecked`.

.changeset/dull-ghosts-sip.md

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

.changeset/grumpy-poets-rush.md

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

.changeset/purple-squids-attend.md

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

.changeset/thirty-drinks-happen.md

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

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
4+
## 5.0.1 (2023-12-07)
5+
6+
- `ERC2771Context` and `Context`: Introduce a `_contextPrefixLength()` getter, used to trim extra information appended to `msg.data`.
7+
- `Multicall`: Make aware of non-canonical context (i.e. `msg.sender` is not `_msgSender()`), allowing compatibility with `ERC2771Context`.
8+
39
## 5.0.0 (2023-10-05)
410

511
### Additions Summary

FUNDING.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"drips": {
3+
"ethereum": {
4+
"ownedBy": "0xAeb37910f93486C85A1F8F994b67E8187554d664"
5+
}
6+
}
7+
}

GUIDELINES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ In addition to the official Solidity Style Guide we have a number of other conve
115115
}
116116
```
117117

118-
Some standards (e.g. ERC20) use present tense, and in those cases the
118+
Some standards (e.g. ERC-20) use present tense, and in those cases the
119119
standard specification is used.
120120

121121
* Interface names should have a capital I prefix.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
:mage: **Not sure how to get started?** Check out [Contracts Wizard](https://wizard.openzeppelin.com/) — an interactive smart contract generator.
1616

17-
:building_construction: **Want to scale your decentralized application?** Check out [OpenZeppelin Defender](https://openzeppelin.com/defender) — a secure platform for automating and monitoring your operations.
17+
:building_construction: **Want to scale your decentralized application?** Check out [OpenZeppelin Defender](https://openzeppelin.com/defender) — a mission-critical developer security platform to code, audit, deploy, monitor, and operate with confidence.
1818

1919
> [!IMPORTANT]
2020
> OpenZeppelin Contracts uses semantic versioning to communicate backwards compatibility of its API and storage layout. For upgradeable contracts, the storage layout of different major versions should be assumed incompatible, for example, it is unsafe to upgrade from 4.9.3 to 5.0.0. Learn more at [Backwards Compatibility](https://docs.openzeppelin.com/contracts/backwards-compatibility).

SECURITY.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Security vulnerabilities should be disclosed to the project maintainers through
88

99
Responsible disclosure of security vulnerabilities is rewarded through a bug bounty program on [Immunefi].
1010

11-
There is a bonus reward for issues introduced in release candidates that are reported before making it into a stable release.
11+
There is a bonus reward for issues introduced in release candidates that are reported before making it into a stable release. Learn more about release candidates at [`RELEASING.md`](./RELEASING.md).
1212

1313
## Security Patches
1414

@@ -30,13 +30,14 @@ Only critical severity bug fixes will be backported to past major releases.
3030

3131
| Version | Critical security fixes | Other security fixes |
3232
| ------- | ----------------------- | -------------------- |
33-
| 4.x | :white_check_mark: | :white_check_mark: |
33+
| 5.x | :white_check_mark: | :white_check_mark: |
34+
| 4.9 | :white_check_mark: | :x: |
3435
| 3.4 | :white_check_mark: | :x: |
35-
| 2.5 | :white_check_mark: | :x: |
36+
| 2.5 | :x: | :x: |
3637
| < 2.0 | :x: | :x: |
3738

3839
Note as well that the Solidity language itself only guarantees security updates for the latest release.
3940

4041
## Legal
4142

42-
Smart contracts are a nascent technology and carry a high level of technical risk and uncertainty. OpenZeppelin Contracts is made available under the MIT License, which disclaims all warranties in relation to the project and which limits the liability of those that contribute and maintain the project, including OpenZeppelin. Your use of the project is also governed by the terms found at www.openzeppelin.com/tos (the "Terms"). As set out in the Terms, you are solely responsible for any use of OpenZeppelin Contracts and you assume all risks associated with any such use. This Security Policy in no way evidences or represents an on-going duty by any contributor, including OpenZeppelin, to correct any flaws or alert you to all or any of the potential risks of utilizing the project.
43+
Smart contracts are a nascent technology and carry a high level of technical risk and uncertainty. OpenZeppelin Contracts is made available under the MIT License, which disclaims all warranties in relation to the project and which limits the liability of those that contribute and maintain the project, including OpenZeppelin. Your use of the project is also governed by the terms found at www.openzeppelin.com/tos (the "Terms"). As set out in the Terms, you are solely responsible for any use of OpenZeppelin Contracts and you assume all risks associated with any such use. This Security Policy in no way evidences or represents an on-going duty by any contributor, including OpenZeppelin, to correct any flaws or alert you to all or any of the potential risks of utilizing the project.

0 commit comments

Comments
 (0)