Skip to content

Commit

Permalink
Merge branch 'master' into modular-exponentiation-precompile-wrapper-O…
Browse files Browse the repository at this point in the history
  • Loading branch information
mw2000 committed Nov 8, 2023
2 parents 4ba0a29 + 74016c3 commit 988c950
Show file tree
Hide file tree
Showing 487 changed files with 28,261 additions and 29,189 deletions.
5 changes: 0 additions & 5 deletions .changeset/angry-ties-switch.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/big-plums-cover.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/blue-scissors-design.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bright-tomatoes-sing.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chilled-spiders-attack.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-pumas-beg.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/dull-ghosts-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'openzeppelin-solidity': patch
---

`AccessManager`, `AccessManaged`, `GovernorTimelockAccess`: Ensure that calldata shorter than 4 bytes is not padded to 4 bytes.
pr: #4624
5 changes: 0 additions & 5 deletions .changeset/eighty-crabs-listen.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/eleven-planets-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openzeppelin-solidity': patch
---

`TransparentUpgradeableProxy`: Make internal `_proxyAdmin()` getter have `view` visibility.
5 changes: 0 additions & 5 deletions .changeset/flat-bottles-wonder.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/four-adults-knock.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-birds-kiss.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/grumpy-bulldogs-call.md

This file was deleted.

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

Upgradeable Contracts: No longer transpile interfaces, libraries, and stateless contracts.
5 changes: 0 additions & 5 deletions .changeset/grumpy-worms-tease.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/happy-falcons-walk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/heavy-drinks-fail.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hip-beds-provide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-coins-judge.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-plums-approve.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/little-falcons-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lovely-geckos-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mean-walls-watch.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/mighty-donuts-smile.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/purple-squids-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'openzeppelin-solidity': patch
---

`AccessManager`: Use named return parameters in functions that return multiple values.
pr: #4624
5 changes: 0 additions & 5 deletions .changeset/red-dots-fold.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rotten-insects-wash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/serious-books-lie.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/short-eels-enjoy.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/silly-bees-beam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-penguins-attack.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-books-wink.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-hotels-type.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-bags-divide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tasty-tomatoes-turn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-camels-matter.md

This file was deleted.

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

`AccessManager`: Make `schedule` and `execute` more conservative when delay is 0.
5 changes: 0 additions & 5 deletions .changeset/tough-drinks-hammer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/violet-dancers-cough.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-windows-trade.md

This file was deleted.

8 changes: 5 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
steps:
- uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
- uses: actions/cache@v3
id: cache
with:
Expand All @@ -15,5 +15,7 @@ runs:
run: npm ci
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
env:
SKIP_COMPILE: true
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Add problem matchers
run: |
# https://github.com/rhysd/actionlint/blob/3a2f2c7/docs/usage.md#problem-matchers
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ignore-changeset') }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Include history so Changesets finds merge-base
- name: Set up environment
Expand Down
36 changes: 24 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- run: npm run lint
Expand All @@ -31,9 +31,11 @@ jobs:
FORCE_COLOR: 1
GAS: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Compile contracts # TODO: Remove after migrating tests to ethers
run: npm run compile
- name: Run tests and generate gas report
run: npm run test
- name: Check linearisation of the inheritance graph
Expand All @@ -42,6 +44,7 @@ jobs:
run: npm run test:generation
- name: Compare gas costs
uses: ./.github/actions/gas-compare
if: github.base_ref == 'master'
with:
token: ${{ github.token }}

Expand All @@ -50,50 +53,59 @@ jobs:
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Include history so patch conflicts are resolved automatically
- name: Set up environment
uses: ./.github/actions/setup
- name: Copy non-upgradeable contracts as dependency
run: |
mkdir -p lib/openzeppelin-contracts
cp -rnT contracts lib/openzeppelin-contracts/contracts
- name: Transpile to upgradeable
run: bash scripts/upgradeable/transpile.sh
- name: Compile contracts # TODO: Remove after migrating tests to ethers
run: npm run compile
- name: Run tests
run: npm run test
- name: Check linearisation of the inheritance graph
run: npm run test:inheritance
- name: Check storage layout
uses: ./.github/actions/storage-layout
if: github.base_ref == 'master'
continue-on-error: ${{ contains(github.event.pull_request.labels.*.name, 'breaking change') }}
with:
token: ${{ github.token }}

tests-foundry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Set up environment
uses: ./.github/actions/setup
- name: Run tests
run: forge test -vv

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- run: npm run coverage
- name: Compile contracts # TODO: Remove after migrating tests to ethers
run: npm run compile
- name: Run coverage
run: npm run coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

slither:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- run: rm foundry.toml
Expand All @@ -104,7 +116,7 @@ jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run CodeSpell
uses: codespell-project/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- run: bash scripts/git-user-config.sh
Expand Down
Loading

0 comments on commit 988c950

Please sign in to comment.