Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
9826 commits
Select commit Hold shift + click to select a range
656c580
Merge pull request #7708 from NomicFoundation/hardfork-default-chain-…
schaable Nov 25, 2025
2bb689f
fix mistaken code commit
zoeyTM Nov 26, 2025
99d6ed0
Merge pull request #7591 from NomicFoundation/hidden-options
zoeyTM Nov 26, 2025
b56cbdb
Version Packages
github-actions[bot] Nov 26, 2025
e0e8824
Create config.yml
Dargon789 Nov 27, 2025
e97d617
Merge branch 'changeset-release/main' into pr/7577
Dargon789 Nov 27, 2025
36cb240
move TASK_COMPILE_SOLIDITY
ChristopherDedominici Apr 22, 2024
921752b
move code into separate package
ChristopherDedominici Apr 23, 2024
b818534
delete build-system from hh-core
ChristopherDedominici Apr 23, 2024
8100807
hh-core tests moved into build-system package (missing 2 tests)
ChristopherDedominici Apr 24, 2024
687c6b3
re-organize files and folders in build-system package
ChristopherDedominici Apr 24, 2024
c9bd71e
update files paths and add TODO to remember missing tests
ChristopherDedominici Apr 24, 2024
a517905
fix smaller formatting issues
ChristopherDedominici Apr 24, 2024
2e01689
modify hh-core compile task and tests to use the new build-system pac…
ChristopherDedominici Apr 24, 2024
423f137
fix linted compiling problems
ChristopherDedominici Apr 25, 2024
02a42a2
apply linter
ChristopherDedominici Apr 25, 2024
62fde1f
add aggregate-error in package.json
ChristopherDedominici Apr 25, 2024
946a649
FLATTEN task tests, hh-core is now passing all tests + smaller adjust…
ChristopherDedominici Apr 26, 2024
a1628d3
refactor: revert core changes
kanej Apr 29, 2024
463278c
chore: esmify the build system
kanej May 1, 2024
ec9facf
refactor: move build-system package under v-next
kanej May 9, 2024
e45df17
add d.ts file for adm-zip dynamic import
kanej May 9, 2024
9f4361a
chore: bump packages in build-system to match utils
kanej May 9, 2024
1ebde43
chore: update package name and refs
kanej May 10, 2024
f019d62
refactor: replace lodash-equals with fast-equals
kanej May 10, 2024
cac3fd6
refactor: replace keccak256 dep with utils version
kanej May 10, 2024
6a80c0e
refactor: indicate node modules in utils imports
kanej May 10, 2024
c1602e8
chore: bump the pnpm version to 9
kanej May 10, 2024
67db269
chore: regenerate pnpm lock file
kanej May 10, 2024
556c4f7
chore: regenerate the docs pnpm file
kanej May 10, 2024
ddd8c1c
chore: add test:github script to package.json
kanej May 10, 2024
1892884
chore: bump pnpm version for all CI
kanej May 10, 2024
b56a03f
chore: include github reportere for build system package
kanej May 10, 2024
3b312f5
refactor: remove duplicate file
kanej May 10, 2024
5081d22
refactor: esmify __filename and hex call
kanej May 10, 2024
4a367c4
chore: update build system lint
kanej May 10, 2024
2c23aab
refactor: lint fixes for build-system
kanej May 10, 2024
35f76c5
refactor: switch the config folder
kanej May 10, 2024
8069bf8
refactor: add an eslint exclusion
kanej May 10, 2024
b69ece6
refactor: revert changes around docs
kanej May 10, 2024
f535a5b
refactor: remove eslint exception
kanej May 13, 2024
b4ee198
remove the 'only' keyword from the tests
ChristopherDedominici May 13, 2024
0f5f82a
replace fsExtra with the hh-utils functions
ChristopherDedominici May 13, 2024
c6cd4f4
throw error when path is a dir and not a file
ChristopherDedominici May 13, 2024
9c065f7
[v-next] writeUtf8File: throw an error when a path is a directory and…
ChristopherDedominici May 13, 2024
2bc6b04
replace fsExtra in artifacts with hh-utils + remove sync functions th…
ChristopherDedominici May 13, 2024
1741d86
replace 'node:fs/promises' with hh-utils and remove unused functions …
ChristopherDedominici May 13, 2024
3ca4143
Revert "chore: bump pnpm version for all CI"
ChristopherDedominici May 14, 2024
31fce9a
Revert "chore: bump the pnpm version to 9"
ChristopherDedominici May 14, 2024
21869fd
Add hardhat-errors package
alcuadrado May 10, 2024
09f6ab7
Port `HardhatError` to v-next
alcuadrado May 10, 2024
830b4ff
Initial commit of `v-next`'s core
alcuadrado May 9, 2024
9b059b3
re-generate pnpm-lock
ChristopherDedominici May 14, 2024
cadb80c
use HardhatError.isHardhatError instead of instanceof
ChristopherDedominici May 14, 2024
bd4ace8
fix failing test: return was deleted by mistake
ChristopherDedominici May 14, 2024
c6f647f
Revert "fix failing test: return was deleted by mistake"
ChristopherDedominici May 14, 2024
440045f
Revert "replace 'node:fs/promises' with hh-utils and remove unused fu…
ChristopherDedominici May 14, 2024
de42326
Revert "replace fsExtra in artifacts with hh-utils + remove sync func…
ChristopherDedominici May 14, 2024
870d823
Revert "replace fsExtra with the hh-utils functions"
ChristopherDedominici May 14, 2024
1456e52
replace 'workspace' with 3.0.0 in package.json
ChristopherDedominici May 14, 2024
d1cd303
remove TODOs used to avoid compilation errors
ChristopherDedominici May 14, 2024
db5eb6f
update pnpm-lock file
ChristopherDedominici May 14, 2024
6ea3db3
Fix main's Lint workflow
alcuadrado May 14, 2024
70499c9
Add examples/ to the madge script
alcuadrado May 12, 2024
23ef924
Add a script to diff the expected and actual package.json#exports
alcuadrado May 12, 2024
3a9941e
Introduce the global parameters and task systems
alcuadrado May 12, 2024
8cb39c3
Refactor the project into multiple packages
alcuadrado May 13, 2024
cdc971b
Fix eslint setup
alcuadrado May 14, 2024
e0bfa77
Bump undici
alcuadrado May 14, 2024
f3f392f
[eslint] Remove rule tha we weren't using
alcuadrado May 14, 2024
d8ce870
[eslint] Stricter order of imports
alcuadrado May 14, 2024
d5a6fd9
Sort imports automatically
alcuadrado May 14, 2024
ef2d741
add eslint-import-resolver-typescript and lint:fix files
ChristopherDedominici May 15, 2024
92a14f7
chore(build-system): change scripts escaping
kanej May 15, 2024
6732507
refactor: make isHardhatError public
kanej May 15, 2024
edd9f92
test: fix config resolution on windows
kanej May 15, 2024
9ff3c66
refactor: use default import for windows zip lib
kanej May 15, 2024
7e65909
chore(build-system): bump the version of indici
kanej May 15, 2024
6440216
chore(build-system): bump undici but with pnpm 8
kanej May 15, 2024
61afcf0
remove "node:fs/promises" (#5217)
ChristopherDedominici May 15, 2024
740f3a4
Add method in hh-utils to read Uint8Array files (#5221)
ChristopherDedominici May 15, 2024
5dc445d
Replace "fs-extra" with hh utils methods (#5223)
ChristopherDedominici May 17, 2024
720af20
chore: update escaping in npm scripts
kanej May 15, 2024
c2dba49
add ERRORS + modify HardhatError + tests
ChristopherDedominici May 16, 2024
8891662
Enable eslint rules to make catching errors safer.
alcuadrado May 17, 2024
2a47c81
Apply the fixes in hardhat-build-system
alcuadrado May 17, 2024
6f5152a
Fix linter errors due to dependencies misconfig
alcuadrado May 17, 2024
15a2ff8
Replace errors in hh-build-system package with the methods exposed in…
ChristopherDedominici May 17, 2024
e785b8a
test: add resolve-plugin-list tests
kanej May 20, 2024
6862f58
improvement(plugins): use a HH error for duplicate id
kanej May 20, 2024
ab6b90e
Fix typo in hh-core
ChristopherDedominici May 22, 2024
083c6ad
Fix typos
schaable May 22, 2024
3d4c4a6
Improve isValidParamNameCasing
schaable May 22, 2024
3c80ac6
Add eslint rule to enforce node:assert/strict
alcuadrado May 23, 2024
b632324
Fix new linter errors
alcuadrado May 23, 2024
49e758b
Disable E2E tests on Windows
alcuadrado May 17, 2024
ca63199
Add config validation for empty forking url
jdg2896 Jul 1, 2023
4d8c623
Create seven-tips-float.md
fvictorio Jul 5, 2023
256389d
Revert config validation for empty network or forking url
jdg2896 Jul 7, 2023
21e5bb5
Add empty string URL validation in HttpProvider
jdg2896 Jul 7, 2023
f70c8e4
adding a function and editing the error message for the issue #4151
Saty248 Jul 28, 2023
e76f203
adding test case for clearsnapshot on hardhat reset and formating the…
Saty248 Aug 5, 2023
25f6dad
Fix docblock
alcuadrado May 17, 2024
d006024
Add changeset
alcuadrado May 17, 2024
b916ded
Bring `hardhat-deploy` to Ignition migration guide to docs (#5211)
zoeyTM May 20, 2024
0a0ca15
Notify through Slack when a review is requested or approved
alcuadrado May 23, 2024
f66035b
Update github action
alcuadrado May 23, 2024
748021b
add and test a singleton hre instance
zoeyTM May 23, 2024
0461569
update strict package in tests
zoeyTM May 24, 2024
42610b8
feat: plugin install validation (#5261)
kanej May 24, 2024
03f5861
v-next/lazy-plugin-loading (#5273)
kanej May 24, 2024
31d7da6
Improve action url validation
schaable May 23, 2024
16ade34
Improve typing of default parameters
schaable May 24, 2024
454e37d
Make order consistent
schaable May 24, 2024
a880e9e
Cleanup
schaable May 24, 2024
5727fe5
Validate default value type
schaable May 24, 2024
c31f40a
Validate that the parameter name is not a reserved name
schaable May 24, 2024
1ab7681
Set false as default value for boolean params
schaable May 24, 2024
e23d7b5
Add tests for task builders
schaable May 24, 2024
fdf58b3
Add tests for utils
schaable May 24, 2024
ce92af4
Use HardhatError for task builders
schaable May 24, 2024
3a6465e
PR fixes
schaable May 27, 2024
aa167c6
search up dir tree for hardhat config
zoeyTM May 27, 2024
b752a88
change errors to HardhatErrors and reset hre singleton in tests
zoeyTM May 28, 2024
0082925
fixed CI
zoeyTM May 28, 2024
055e5da
Upgrade to pnpm 9
alcuadrado May 29, 2024
6e773bd
Fix workspace dependencies in hardhat-build-system
alcuadrado May 29, 2024
6530211
refactor: move plugin tests to internal
kanej May 29, 2024
c6f1eed
Disable compilation errors on unused variables
alcuadrado May 29, 2024
e3e55eb
Make HardhatError type-safe and use {v} instead of %v%
alcuadrado May 28, 2024
d5b8bdf
Update the HardhatError-related tests
alcuadrado May 28, 2024
93a0d5b
Type the descriptors as const
alcuadrado May 28, 2024
8905f42
Update all the error descriptors' templates
alcuadrado May 28, 2024
de151e6
Update new compilation errors
alcuadrado May 28, 2024
ba0dfd5
Update new descriptors after rebasing
alcuadrado May 28, 2024
e44cab3
Handle Arrays and BigInt again after rebasing
alcuadrado May 28, 2024
46c9421
Update v-next/hardhat-errors/test/errors.ts
alcuadrado May 29, 2024
fac057b
Remove unnecessary `void` statements
alcuadrado May 29, 2024
812d7c0
Add tests to make it explicit that {} works
alcuadrado May 29, 2024
4a44688
Add parsing for tasks, subtasks and tasks' parameters (#5282)
ChristopherDedominici May 30, 2024
26ab92b
add tests for UserInterruptionsManagerImplementation
zoeyTM May 29, 2024
a1639c7
fix typo and add assertion message
zoeyTM May 30, 2024
ec7952d
remove test:only script
zoeyTM May 30, 2024
e7b3061
Install a rule that forces eslint comments to have a description
alcuadrado May 30, 2024
971d6dd
Fix new linter errors
alcuadrado May 30, 2024
9c7d625
Forbid type casting
alcuadrado May 30, 2024
3206e99
Fix new linter errors
alcuadrado May 30, 2024
6be3988
Small style improvements
alcuadrado May 30, 2024
45c71fe
Add messages to assert.ok calls
alcuadrado May 30, 2024
fbf4256
Fix typo
alcuadrado May 30, 2024
8dffe2f
Initial commit of the test-reporter
alcuadrado May 28, 2024
6eabc8e
Enable the linter in the integration tests
alcuadrado May 30, 2024
199a134
Cleanup node types fixes
alcuadrado May 30, 2024
8c9b74c
Pre-format failure reasons
alcuadrado May 30, 2024
089cd23
Simplify error context and padding formatting
alcuadrado May 30, 2024
319f1f2
Make all formatting functions return strings
alcuadrado May 30, 2024
3ec764f
Add docs about diagnostics
alcuadrado May 30, 2024
3503931
Add a module with utilities to work with node:test generated errors
alcuadrado May 30, 2024
4ad94fd
Add eslint directive explanation
alcuadrado May 30, 2024
804c2cc
Add docs about the reporter and the code design
alcuadrado May 30, 2024
366df3e
Remove unused dependency
alcuadrado May 30, 2024
a50851a
Fix new linter errors
alcuadrado May 30, 2024
c31493f
Task manager cleanup and error handling
schaable May 28, 2024
8d3caba
Validate non-empty task id
schaable May 28, 2024
c0a41df
Update error descriptor templates
schaable May 30, 2024
9385872
Fix error arg name
schaable May 30, 2024
a183b22
Update v-next/core/src/internal/tasks/task-manager.ts
schaable May 30, 2024
c398e71
Added check for positional parameters in task override
schaable May 30, 2024
bb59648
Fix lint
schaable May 30, 2024
a2970c5
refactor: rename from validation to detection
kanej May 28, 2024
1cf3abc
refactor: expand the error messages in plugin validation
kanej May 30, 2024
f5a6323
Make the build-system work with solcjs
alcuadrado May 31, 2024
a44a13b
Fix error number
alcuadrado May 31, 2024
77b55ce
Ensure that the npm scripts are consistent in v-next
alcuadrado May 17, 2024
68d72f8
Change the node:test reporter and add test:only
alcuadrado May 17, 2024
98d4ca5
Remove `glob` from our dev dependencies
alcuadrado May 17, 2024
3151578
Use our own reporter
alcuadrado May 30, 2024
730570e
Fix tsconfig references
alcuadrado May 31, 2024
f5e00b6
Remove circular dependency between the reporter and -utils
alcuadrado May 31, 2024
0cd9280
Fix core's test:coverage
alcuadrado May 31, 2024
30e22a2
Implement feedback on task, subtask and parameter cli parsing (#5300)
ChristopherDedominici Jun 4, 2024
3440031
Add github actions integration to the reporter
alcuadrado Jun 1, 2024
870fd74
Only use our reporter on the CI
alcuadrado Jun 1, 2024
447c53b
Improve the reporters formatting of assert.equal
alcuadrado Jun 1, 2024
c9d2132
Improve the reporting of test-file execution errors
alcuadrado Jun 1, 2024
f29fc1a
Don't add GH Actions annotations from the reporter's own tests
alcuadrado Jun 1, 2024
ed95f9b
Upgrade tsx to fix its source maps support
alcuadrado Jun 1, 2024
e712a5f
Fix file-url/path incompatibilities
alcuadrado Jun 1, 2024
575c903
Update fixture
alcuadrado Jun 1, 2024
f04fbd2
Fix reporter tests on windows
alcuadrado Jun 1, 2024
8db052d
Add missing parameter to processTaskOverride
schaable May 31, 2024
f5708e9
Add tests to the task manager
schaable May 31, 2024
c307da5
assert.reject must be awaited
schaable May 31, 2024
90411d9
Remove unneeded createHre
schaable Jun 4, 2024
02bb7ce
Remove the FILE parsing logic when parsing cli arguments (#5338)
ChristopherDedominici Jun 5, 2024
06bc10b
Add function in hh-utils to check if process is running in the CI (#5…
ChristopherDedominici Jun 6, 2024
187489c
Implement cli global parameters parsing (#5334)
ChristopherDedominici Jun 6, 2024
ceef117
Improve task types
schaable Jun 5, 2024
6c26298
Use TaskArguments instead of ParsedTaskArguments
schaable Jun 5, 2024
afd1897
Move type import to the top
schaable Jun 6, 2024
0dec2aa
implement and test config variable resolution
zoeyTM Jun 6, 2024
e5fcf68
Run task
schaable Jun 5, 2024
6e2a971
Resolve task actions individually for robustness & efficiency
schaable Jun 6, 2024
e3a804f
Add args
schaable Jun 6, 2024
ec22a6a
Add tests and fix validations
schaable Jun 7, 2024
d7f59d9
Move type import to the top
schaable Jun 7, 2024
158afd9
Improve variable naming
schaable Jun 7, 2024
16b902a
Add parent error to file import
schaable Jun 7, 2024
1bb3ee6
Fixes
schaable Jun 7, 2024
22f618c
Update error descriptors to include the task name
schaable Jun 7, 2024
54ca712
Simplify test logic
schaable Jun 7, 2024
d906436
Use isObject & kebabToCamelCase in v-next
schaable Jun 7, 2024
d862f23
Enable import/no-relative-packages and fix an instance of it
alcuadrado Jun 7, 2024
9d11244
Add example-project
alcuadrado Jun 7, 2024
2bb8a29
Remove example-project from the CI workflow
alcuadrado Jun 7, 2024
d6d3ff0
Remove example-project from the scripts validation
alcuadrado Jun 7, 2024
ddc5bda
Improve the README.md
alcuadrado Jun 7, 2024
157dbfb
Install @types/node
alcuadrado Jun 7, 2024
54ac334
Add empty task builder
schaable Jun 7, 2024
a63861c
Merge remote-tracking branch 'origin/NomicFoundation/hardhat/main'
Dargon789 Nov 27, 2025
67f1569
Merge remote-tracking branch 'origin/v-next'
Dargon789 Nov 27, 2025
7f72a26
Merge branch 'v2-6603' into master-V2-6603
Dargon789 Nov 27, 2025
4df50ab
Create docker-publish.yml
Dargon789 Nov 27, 2025
56400b7
Create google.yml (#1884)
Dargon789 Nov 27, 2025
4c734c0
Create docker-image.yml (#1885)
Dargon789 Nov 27, 2025
671337d
Create docker.yml (#1886)
Dargon789 Nov 27, 2025
5d7db0b
Create nuxtjs.yml (#1887)
Dargon789 Nov 27, 2025
ec92f08
Create dockerfile (#1888)
Dargon789 Nov 27, 2025
b0f1092
Create dependency-review.yml (#1889)
Dargon789 Nov 27, 2025
51eb05a
beige-ladybugs-confess.md
Dargon789 Nov 28, 2025
b13187b
changeset\bright-onions-switch.md
Dargon789 Nov 28, 2025
d9ac143
Merge remote-tracking branch 'origin/nightly-17221'
Dargon789 Nov 28, 2025
c4bb9f6
docs\public\sitemap.xml
Dargon789 Nov 28, 2025
7fa0179
fix: .github\workflows & add counter forge foundry module doc site
Dargon789 Nov 28, 2025
1f22a69
fix :gas fee account sent gas hardhat core
Dargon789 Nov 28, 2025
ce2d590
rare-mugs-drum.md
Dargon789 Nov 29, 2025
a61d178
counter\script\Counter.s.sol
Dargon789 Nov 29, 2025
ba931d4
Create v3-deploy.yml (#1896)
Dargon789 Nov 29, 2025
825a8c9
remapping @nomiclabs/hardhat-web3
Dargon789 Nov 30, 2025
fb9b1f0
Merge remote-tracking branch 'origin/revert-1793-Dargon789-patch-7'
Dargon789 Nov 30, 2025
bef338f
Merge remote-tracking branch 'origin/hardhat/main'
Dargon789 Nov 30, 2025
8d81f78
v2
Dargon789 Nov 30, 2025
65e0057
fix: packages/hardhat-core/package.json to reduce vulnerabilities (#1…
Dargon789 Nov 30, 2025
bd58ad1
"hardhat": patch
Dargon789 Jan 27, 2024
f23b4a0
Added support for Typed objects
Dargon789 Feb 22, 2024
587e587
Merge branch 'hardhat-viem@npm-2.40.3-wagmi(fac1221)' into hardhat-ch…
Dargon789 Nov 30, 2025
58f4627
Merge branch 'master-V2-6603'
Dargon789 Dec 1, 2025
150084a
Update .github/ISSUE_TEMPLATE/other-issue.md
Dargon789 Dec 1, 2025
177b4fc
fix: reback pack "hardhat": patch ai help verified signature. (#1…
Dargon789 Dec 1, 2025
4bff971
Merge branch 'main' into NomicFoundation/hardhat/main
Dargon789 Dec 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .changeset/beige-ladybugs-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Added a notification when a new Hardhat version is available
5 changes: 5 additions & 0 deletions .changeset/bright-onions-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/hardhat-chai-matchers": patch
---

Added support for Typed objects (thanks @RenanSouza2!)
7 changes: 7 additions & 0 deletions .changeset/curvy-cherries-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@nomicfoundation/hardhat-chai-matchers": patch
"hardhat": patch
"@nomicfoundation/hardhat-viem": patch
---

Improved loading performance
5 changes: 5 additions & 0 deletions .changeset/dry-pianos-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Fixed a bug during project initialization when using yarn or pnpm
6 changes: 6 additions & 0 deletions .changeset/modern-fishes-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"hardhat": patch
---

Added a fix to prevent submitting transactions with 0 priority fee (thanks @itsdevbear!)

6 changes: 6 additions & 0 deletions .changeset/twelve-mails-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@nomicfoundation/hardhat-verify": patch
---

Added support for programmatic verification in Sourcify

26 changes: 26 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference

version: 2.1
executors:
my-custom-executor:
docker:
- image: cimg/base:stable
auth:
# ensure you have first added these secrets
# visit app.circleci.com/settings/project/github/Dargon789/foundry/environment-variables
username: $DOCKER_HUB_USER
password: $DOCKER_HUB_PASSWORD
jobs:
web3-defi-game-project-:

executor: my-custom-executor
steps:
- checkout
- run: |
# echo Hello, World!

workflows:
my-custom-workflow:
jobs:
- web3-defi-game-project-
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Hardhat + EDR",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "16" /* Keep in sync with the oldest version of Node.js that Hardhat supports */
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "1.70" /* Keep in sync with rust-toolchain */,
"profile": "default"
}
},
/* libudev-dev is required by hardhat-ledger. pkg-config is required by EDR to use OpenSSL */
"postCreateCommand": "sudo apt update && sudo apt install -y libudev-dev pkg-config"
}
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug** A clear and concise description of what the bug is.

**To Reproduce** Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior** A clear and concise description of what you expected to happen.

**Screenshots** If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context** Add any other context about the problem here.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ""
labels: ""
assignees: ""
---
31 changes: 17 additions & 14 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
---
name: Feature request
description: Suggest a new feature
body:
- type: textarea
id: feature-description
attributes:
label: "Describe the feature"
description: "A description of what you would like us to add to Hardhat and your use case for it"
validations:
required: true
- type: input
id: search-terms
attributes:
label: "Search terms"
description: "Include the search terms you used before opening this issue. This will make it easier for others to find it."
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like** A clear and concise description of what you want to happen.

**Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered.

**Additional context** Add any other context or screenshots about the feature request here.

---
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like** A clear and concise description of what you want to happen.

**Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered.

**Additional context** Add any other context or screenshots about the feature request here.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/other-issue.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
name: Other issue
about: Other kind of issue. Please don't use this to ask questions.
title: ""
labels: ""
assignees: ""
---
24 changes: 14 additions & 10 deletions .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,32 @@ on:
workflow_dispatch:

jobs:
test-without-yarn-lock:
name: Test without yarn.lock
test-without-pnpm-lock-yaml:
name: Test without pnpm-lock.yaml
strategy:
matrix:
system: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.system }}
steps:
- uses: actions/setup-node@v2
with:
node-version: 14
- uses: actions/checkout@v2
- name: Delete yarn.lock
run: "rm yarn.lock"
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Delete pnpm-lock.yaml
run: "rm pnpm-lock.yaml"
- name: Install
run: yarn
run: pnpm install --no-frozen-lockfile
- name: List dependencies
run: yarn list
run: pnpm list -r --depth 2
- name: Run tests
env:
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
FORCE_COLOR: 3
run: yarn test || (echo "===== Retry =====" && yarn test)
run: pnpm test || (echo "===== Retry =====" && pnpm test)
- name: Notify failures
if: failure()
uses: slackapi/slack-github-action@v1.18.0
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
with:
project-url: https://github.com/orgs/NomicFoundation/projects/4
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: area:edr
label-operator: NOT
7 changes: 4 additions & 3 deletions .github/workflows/add-label-to-new-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ jobs:
repo: context.issue.repo,
issue_number: context.issue.number
});
const statusLabel = issue.data.labels.find(({ name }) =>
name.startsWith("status:")
);
if (statusLabel === undefined) {
console.log("Author association:", issue.data.author_association);
const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(issue.data.author_association)
const label = isCollaborator ? "status:ready" : "status:triaging"
await github.rest.issues.addLabels({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number,
labels: ["status:triaging"]
labels: [label]
});
} else {
console.log(`Issue already has a status: ${statusLabel.name}`);
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/autoassign-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Issue autoassignment

on:
issues:
types: [opened]

jobs:
assign-new-issue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v6
with:
script: |
// each user has a chance of (p - (previousP ?? 0)) to be assigned
const potentialAssignees = [
["fvictorio", 0.5],
["schaable", 0.75],
["ChristopherDedominici", 1.0],
];

let assignee;
const r = Math.random();
console.log("r:", r);
for (const [username, p] of potentialAssignees) {
if (r < p) {
assignee = username;
break;
}
}

if (assignee === undefined) {
throw new Error("An assignee should've been set");
}

console.log("assignee:", assignee);

console.log("Fetch issue", context.issue.number);
const issue = await github.rest.issues.get({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number,
});

console.log("Author association:", issue.data.author_association);
const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(
issue.data.author_association
);
console.log("Is collaborator?", isCollaborator);

// we only assign triage issues from external users
if (!isCollaborator) {
await github.rest.issues.addAssignees({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number,
assignees: [assignee],
});
}

Loading