Skip to content

Commit e9b4050

Browse files
authored
Merge branch 'main' into empty-url-config-validation
2 parents acf9cc8 + dd2297d commit e9b4050

File tree

330 files changed

+6671
-3452
lines changed

Some content is hidden

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

330 files changed

+6671
-3452
lines changed

Diff for: .changeset/chatty-mirrors-yell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomicfoundation/hardhat-ledger": patch
3+
---
4+
5+
Pinned version of @ledgerhq/hw-app-eth because the latest version has breaking changes

Diff for: .changeset/chilly-meals-enjoy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Removed the `abort-controller` dependency as it's not longer needed. Thanks @orlandoortegajr!

Diff for: .changeset/five-colts-remain.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomiclabs/hardhat-vyper": patch
3+
---
4+
5+
Added a check to validate that the Brownie code does not contain the directive `#@ if mode == "test":` because we do not support this feature.

Diff for: .changeset/khaki-otters-explain.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Improved the flatten task to handle SPDX licenses and pragma directives more effectively.

Diff for: .changeset/quick-pumas-rest.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Added support for solc 0.8.21

Diff for: .changeset/slimy-dots-prove.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
`console.log` now works in `pure` functions. Thanks @0age for coming up with this technique!

Diff for: .changeset/ten-hairs-attend.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Fixed a bug caused by nodes returning 429 responses without a `Retry-After` header (thanks @kowalski!)

Diff for: .changeset/three-maps-judge.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Added logic to throw an error when the debug_traceTransaction method is called with a tracer parameter that is not supported.

Diff for: .changeset/two-ants-allow.md

-5
This file was deleted.

Diff for: .changeset/warm-taxis-sneeze.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomicfoundation/hardhat-verify": minor
3+
---
4+
5+
Exposed the Etherscan class as a public API for third-party consumers.

Diff for: .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/setup-node@v2
1717
with:
18-
node-version: 14
18+
node-version: 16
1919
- uses: actions/checkout@v2
2020
- name: Delete yarn.lock
2121
run: "rm yarn.lock"

Diff for: .github/workflows/add-label-to-new-issue.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
);
2828
2929
if (statusLabel === undefined) {
30+
console.log("Author association:", issue.data.author_association);
3031
const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(issue.data.author_association)
3132
const label = isCollaborator ? "status:ready" : "status:triaging"
3233

Diff for: .github/workflows/check-changeset-added.yml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
check-if-changeset:
1919
name: Check that PR has a changeset
2020
runs-on: ubuntu-latest
21+
# don't run this check in the changesets PR
22+
if: github.head_ref != 'changeset-release/main'
2123
steps:
2224
- uses: actions/github-script@v6
2325
with:

Diff for: .github/workflows/comment-on-linter-error.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
ref: "refs/pull/${{ github.event.number }}/merge"
2323
- uses: actions/setup-node@v2
2424
with:
25-
node-version: 14
25+
node-version: 16
2626
cache: yarn
2727
- name: Install
2828
run: yarn --frozen-lockfile

Diff for: .github/workflows/compile-with-typescript-v4.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Compile with typescript v4
2+
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
7+
branches:
8+
- "**"
9+
10+
jobs:
11+
compile_with_typescript_v4:
12+
name: Compile with typescript v4
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
19+
- name: Install typescript v4 in all packages
20+
run: |
21+
sed -i 's/"typescript": "~5.0.0"/"typescript": "^4.0.0"/' package.json packages/*/package.json && yarn
22+
- name: Build
23+
run: yarn build

Diff for: .github/workflows/hardhat-chai-matchers-ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ concurrency:
2525

2626
jobs:
2727
test_on_windows:
28-
name: Test hardhat-chai-matchers on Windows with Node 14
28+
name: Test hardhat-chai-matchers on Windows with Node 16
2929
runs-on: windows-latest
3030
steps:
3131
- uses: actions/checkout@v2
3232
- uses: actions/setup-node@v2
3333
with:
34-
node-version: 14
34+
node-version: 16
3535
cache: yarn
3636
- name: Install
3737
run: yarn --frozen-lockfile
@@ -43,15 +43,15 @@ jobs:
4343
run: yarn test:ci
4444

4545
test_on_macos:
46-
name: Test hardhat-chai-matchers on MacOS with Node 14
46+
name: Test hardhat-chai-matchers on MacOS with Node 16
4747
runs-on: macos-latest
4848
# disable until actions/virtual-environments#4896 is fixed
4949
if: ${{ false }}
5050
steps:
5151
- uses: actions/checkout@v2
5252
- uses: actions/setup-node@v2
5353
with:
54-
node-version: 14
54+
node-version: 16
5555
cache: yarn
5656
- name: Install
5757
run: yarn --frozen-lockfile
@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ubuntu-latest
6868
strategy:
6969
matrix:
70-
node: [14, 16, 18.15]
70+
node: [16, 18, 20]
7171
steps:
7272
- uses: actions/checkout@v2
7373
- uses: actions/setup-node@v2

Diff for: .github/workflows/hardhat-core-ci.yml

+29-5
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ concurrency:
2525

2626
jobs:
2727
test_on_windows:
28-
name: Test hardhat-core on Windows with Node 14
28+
name: Test hardhat-core on Windows with Node 16
2929
runs-on: windows-latest
3030
steps:
3131
- uses: actions/checkout@v2
3232
- uses: actions/setup-node@v2
3333
with:
34-
node-version: 14
34+
node-version: 16
3535
cache: yarn
3636
- name: Install
3737
run: yarn --frozen-lockfile
@@ -44,15 +44,15 @@ jobs:
4444
run: yarn test:except-tracing
4545

4646
test_on_macos:
47-
name: Test hardhat-core on MacOS with Node 14
47+
name: Test hardhat-core on MacOS with Node 16
4848
runs-on: macos-latest
4949
# disable until actions/virtual-environments#4896 is fixed
5050
if: ${{ false }}
5151
steps:
5252
- uses: actions/checkout@v2
5353
- uses: actions/setup-node@v2
5454
with:
55-
node-version: 14
55+
node-version: 16
5656
cache: yarn
5757
- name: Install
5858
run: yarn --frozen-lockfile
@@ -69,7 +69,7 @@ jobs:
6969
runs-on: ubuntu-latest
7070
strategy:
7171
matrix:
72-
node: [14, 16, 18.15]
72+
node: [16, 18, 20]
7373
steps:
7474
- uses: actions/checkout@v2
7575
- uses: actions/setup-node@v2
@@ -85,3 +85,27 @@ jobs:
8585
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
8686
FORCE_COLOR: 3
8787
run: yarn test:except-tracing
88+
89+
test_types_node:
90+
name: Test different versions of @types/node
91+
runs-on: ubuntu-latest
92+
strategy:
93+
matrix:
94+
node: [16, 18, 20]
95+
steps:
96+
- uses: actions/checkout@v2
97+
- uses: actions/setup-node@v2
98+
with:
99+
node-version: ${{ matrix.node }}
100+
cache: yarn
101+
- name: Install
102+
run: yarn --frozen-lockfile
103+
- name: Install @types/node
104+
run: yarn add --dev @types/node@${{ matrix.node }}
105+
- name: Build
106+
run: yarn build
107+
- name: Run tests
108+
env:
109+
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
110+
FORCE_COLOR: 3
111+
run: yarn test:except-tracing

Diff for: .github/workflows/hardhat-ethers-ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ concurrency:
2727

2828
jobs:
2929
test_on_windows:
30-
name: Test hardhat-ethers on Windows with Node 14
30+
name: Test hardhat-ethers on Windows with Node 16
3131
runs-on: windows-latest
3232
steps:
3333
- uses: actions/checkout@v2
3434
- uses: actions/setup-node@v2
3535
with:
36-
node-version: 14
36+
node-version: 16
3737
cache: yarn
3838
- name: Install
3939
run: yarn --frozen-lockfile
@@ -43,15 +43,15 @@ jobs:
4343
run: yarn test
4444

4545
test_on_macos:
46-
name: Test hardhat-ethers on MacOS with Node 14
46+
name: Test hardhat-ethers on MacOS with Node 16
4747
runs-on: macos-latest
4848
# disable until actions/virtual-environments#4896 is fixed
4949
if: ${{ false }}
5050
steps:
5151
- uses: actions/checkout@v2
5252
- uses: actions/setup-node@v2
5353
with:
54-
node-version: 14
54+
node-version: 16
5555
cache: yarn
5656
- name: Install
5757
run: yarn --frozen-lockfile
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-latest
6666
strategy:
6767
matrix:
68-
node: [14, 16, 18.15]
68+
node: [16, 18, 20]
6969
steps:
7070
- uses: actions/checkout@v2
7171
- uses: actions/setup-node@v2

Diff for: .github/workflows/hardhat-foundry-ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ concurrency:
2525

2626
jobs:
2727
test_on_windows:
28-
name: Test hardhat-foundry on Windows with Node 14
28+
name: Test hardhat-foundry on Windows with Node 16
2929
runs-on: windows-latest
3030
steps:
3131
- uses: actions/checkout@v2
3232
- uses: actions/setup-node@v2
3333
with:
34-
node-version: 14
34+
node-version: 16
3535
cache: yarn
3636
- name: Install
3737
run: yarn --frozen-lockfile
@@ -43,15 +43,15 @@ jobs:
4343
run: yarn test
4444

4545
test_on_macos:
46-
name: Test hardhat-foundry on MacOS with Node 14
46+
name: Test hardhat-foundry on MacOS with Node 16
4747
runs-on: macos-latest
4848
# disable until actions/virtual-environments#4896 is fixed
4949
if: ${{ false }}
5050
steps:
5151
- uses: actions/checkout@v2
5252
- uses: actions/setup-node@v2
5353
with:
54-
node-version: 14
54+
node-version: 16
5555
cache: yarn
5656
- name: Install
5757
run: yarn --frozen-lockfile
@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ubuntu-latest
6868
strategy:
6969
matrix:
70-
node: [14, 16, 18.15]
70+
node: [16, 18, 20]
7171
steps:
7272
- uses: actions/checkout@v2
7373
- uses: actions/setup-node@v2

Diff for: .github/workflows/hardhat-ledger-ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ concurrency:
2828

2929
jobs:
3030
test_on_windows:
31-
name: Test hardhat-ledger on Windows with Node 14
31+
name: Test hardhat-ledger on Windows with Node 16
3232
runs-on: windows-latest
3333
steps:
3434
- uses: actions/checkout@v2
3535
- uses: actions/setup-node@v2
3636
with:
37-
node-version: 14
37+
node-version: 16
3838
cache: yarn
3939
- name: Install
4040
run: yarn --frozen-lockfile
@@ -44,15 +44,15 @@ jobs:
4444
run: yarn test
4545

4646
test_on_macos:
47-
name: Test hardhat-ledger on MacOS with Node 14
47+
name: Test hardhat-ledger on MacOS with Node 16
4848
runs-on: macos-latest
4949
# disable until actions/virtual-environments#4896 is fixed
5050
if: ${{ false }}
5151
steps:
5252
- uses: actions/checkout@v2
5353
- uses: actions/setup-node@v2
5454
with:
55-
node-version: 14
55+
node-version: 16
5656
cache: yarn
5757
- name: Install
5858
run: yarn --frozen-lockfile
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ubuntu-latest
6767
strategy:
6868
matrix:
69-
node: [14, 16, 18.15]
69+
node: [16, 18, 20]
7070
steps:
7171
- uses: actions/checkout@v2
7272
- uses: actions/setup-node@v2

Diff for: .github/workflows/hardhat-network-forking-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- uses: actions/checkout@v2
4040
- uses: actions/setup-node@v2
4141
with:
42-
node-version: 14
42+
node-version: 16
4343
cache: yarn
4444
- name: Install
4545
run: yarn --frozen-lockfile

0 commit comments

Comments
 (0)