Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 2.22.2 #2

Closed
wants to merge 930 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
930 commits
Select commit Hold shift + click to select a range
c84329e
Add tests for withdrawals when forking different hardforks
fvictorio Feb 13, 2024
06aaa58
Make cancun work correctly during forking
fvictorio Feb 13, 2024
44da532
fix: cache block contexts (#4815)
agostbiro Feb 13, 2024
31ba1ac
fix: isEdr
Wodann Feb 13, 2024
8fe06b2
Merge remote-tracking branch 'origin/edr/main' into edr/refactor/remo…
Wodann Feb 13, 2024
cf22ac8
Merge pull request #4854 from NomicFoundation/better-different-hardfo…
fvictorio Feb 13, 2024
5ba1b45
Merge pull request #4843 from NomicFoundation/add-parentBeaconBlockRo…
fvictorio Feb 13, 2024
6ff0b20
Create nasty-lies-hug.md
fvictorio Feb 13, 2024
731bdff
Update packages/hardhat-core/test/internal/hardhat-network/provider/n…
schaable Feb 13, 2024
45b8290
Merge pull request #4852 from NomicFoundation/test-new-opcodes
schaable Feb 13, 2024
11d6c5a
fix: linter
Wodann Feb 13, 2024
0b0ea12
fix: remove effectiveGasPrice from JSON-RPC for pre-London receipts
Wodann Feb 13, 2024
a3abedc
Reject blob txs with a custom error
fvictorio Feb 13, 2024
842c9bf
fix: avoid blocking worker threads (#4857)
agostbiro Feb 13, 2024
8000aad
Remove enableTransientStorage custom logic & throw an error if pre-ca…
schaable Feb 13, 2024
4250635
Add support for solc 0.8.24 (#4855)
ChristopherDedominici Feb 14, 2024
64f299f
Handle enableTransientStorage in config validation and resolution
fvictorio Feb 14, 2024
b33acd7
Merge pull request #4860 from NomicFoundation/update-config-enableTra…
fvictorio Feb 14, 2024
e34908f
Merge pull request #4856 from NomicFoundation/blob-txs
fvictorio Feb 14, 2024
ebcc283
Merge pull request #4822 from NomicFoundation/cancun
fvictorio Feb 14, 2024
ea39450
Version Packages
github-actions[bot] Feb 14, 2024
267953e
fix: reduce state size cache (#4858)
agostbiro Feb 14, 2024
62708ef
test: port TxPool.ts tests to EDR
Wodann Feb 13, 2024
c97cd1e
test: port TransactionQueue tests
Wodann Feb 14, 2024
620b2d7
refactor: remove unnecessary files
Wodann Feb 14, 2024
8fba3bc
Fix setStorageAt in untouched addresses
fvictorio Feb 15, 2024
b519239
Create new-rocks-report.md
fvictorio Feb 15, 2024
28c47fb
Run network helpers workflow when hardhat-core changes
fvictorio Feb 15, 2024
ece3fa0
Merge branch 'main' into with-args-message
fvictorio Feb 15, 2024
c6d7996
Remove unnecessary export
fvictorio Feb 15, 2024
099d11e
Throw error instead of using assert(false)
fvictorio Feb 15, 2024
962a6be
Remove unnecessary detail in error message
fvictorio Feb 15, 2024
a4205a7
Merge pull request #4766 from RenanSouza2/with-args-message
fvictorio Feb 15, 2024
9decf35
Fix 404 supported chains link
sunsetlover36 Feb 15, 2024
57d2250
Merge pull request #4864 from NomicFoundation/storage-at-untouched-ad…
schaable Feb 15, 2024
29516eb
Changeset
schaable Feb 15, 2024
25b5334
Merge pull request #4867 from sunsetlover36/patch-1
schaable Feb 15, 2024
5f0e42d
Version Packages
github-actions[bot] Feb 15, 2024
99a7745
fix: add type field to call request (#4868)
agostbiro Feb 15, 2024
c9ce5f3
test: port forked blockchain tests
Wodann Feb 14, 2024
53904c7
refactor: remove more obsolete files
Wodann Feb 15, 2024
13d39cb
Merge remote-tracking branch 'origin/edr/main' into edr/refactor/remo…
Wodann Feb 16, 2024
2a280a7
Merge pull request #3853 from jaybuidl/docs-oracles-kleros
schaable Feb 16, 2024
41c0c78
fix: remove deny_unknown_fields from rpc types (#4869)
agostbiro Feb 16, 2024
54a7100
misc: apply review suggestions
Wodann Feb 16, 2024
5de2a1b
refactor: remove the test-debug-trace-transaction script
Wodann Feb 16, 2024
c6a93fc
test: tests for initializing N-API provider
Wodann Feb 16, 2024
1c5fea2
Merge remote-tracking branch 'origin/edr/main' into edr/refactor/remo…
Wodann Feb 16, 2024
985ffac
misc: apply review suggestion
Wodann Feb 16, 2024
29ef56e
Use workspace protocol for all workspace deps
fvictorio Feb 16, 2024
2e7b4e6
fix: add chai-as-promised types
Wodann Feb 16, 2024
b939d8d
Allow workspace protocol in peer deps
fvictorio Feb 16, 2024
4a711a4
Don't remove workspace protocol when comparing dev and peer deps
fvictorio Feb 16, 2024
9b20969
fix: error message capitalization
Wodann Feb 16, 2024
45d60cb
fix: use valid Eth addresses to avoid ECDSA signature errors
Wodann Feb 16, 2024
a630adb
fix: 0x prefix
Wodann Feb 16, 2024
91625a5
fix: i686 windows N-API build
Wodann Feb 16, 2024
6df796d
possible fix: aarch64-unknown-linux-gnu
Wodann Feb 17, 2024
80db395
fix: typo
Wodann Feb 17, 2024
b886b40
Merge pull request #4831 from NomicFoundation/edr/refactor/remove-com…
fvictorio Feb 17, 2024
f8d2342
Remove all ethereumjs deps from hh-core except util
fvictorio Feb 17, 2024
7ec85db
Remove ForkStateManager
fvictorio Feb 17, 2024
54172db
Remove unnecessary functions
fvictorio Feb 17, 2024
6be3ea7
Hardcode max precompile in VMTracer
fvictorio Feb 19, 2024
c6aa6df
Remove VmDebugTracer
fvictorio Feb 19, 2024
f0b91f0
Use simplified types in proxy-vm
fvictorio Feb 19, 2024
3b65643
Update comment
fvictorio Feb 19, 2024
15add28
Move rpcToBlockData and rpcToTxData to test utils
fvictorio Feb 19, 2024
ae6a6b1
Re-add necessary ethereumjs deps
fvictorio Feb 19, 2024
45b81dd
Fix linter
fvictorio Feb 19, 2024
4130bc7
Re-add _common in EDR provider
fvictorio Feb 19, 2024
2c64151
Remove _init usages
fvictorio Feb 19, 2024
042c238
Merge pull request #4881 from NomicFoundation/edr/remove-ethereumjs-d…
fvictorio Feb 19, 2024
cd33a67
Merge branch 'main' into edr/main
fvictorio Feb 19, 2024
08c8455
Merge pull request #4882 from NomicFoundation/edr/its-the-final-merge…
fvictorio Feb 19, 2024
af2e1b3
Remove changesets
fvictorio Feb 19, 2024
93c1476
Create cold-cobras-carry.md
fvictorio Feb 19, 2024
e04b0cb
Merge pull request #4883 from NomicFoundation/edr/main
fvictorio Feb 19, 2024
aaba571
Remove edr/main mentions
fvictorio Feb 19, 2024
6bee060
fix: don't build edr_napi before testing in CI (#4888)
agostbiro Feb 19, 2024
e4b1c07
Upgrade hardhat-viem to support viem@2
schaable Feb 15, 2024
2409659
Align client configuration with viem@2 standards for consistency
schaable Feb 18, 2024
24ea985
Update lockfile
schaable Feb 19, 2024
ff7f540
Merge branch 'main' into remove-edr-main-mentions
agostbiro Feb 19, 2024
b887650
Merge pull request #4885 from NomicFoundation/remove-edr-main-mentions
fvictorio Feb 19, 2024
bdf5520
Fix dependabot config
fvictorio Feb 20, 2024
8a1a2b6
Merge pull request #4875 from NomicFoundation/upgrade-viem-to-v2
fvictorio Feb 20, 2024
51b8cb8
Move EDR under the `@nomicfoundation` org
fvictorio Feb 20, 2024
a5d58a1
feat: add compatibility for community modules using EthereumJS' VM (#…
fvictorio Feb 21, 2024
837bbd2
Temporarily remove EDR changeset
schaable Feb 21, 2024
9026241
Merge pull request #4900 from NomicFoundation/remove-edr-changeset
schaable Feb 21, 2024
be20ca8
Version Packages
github-actions[bot] Feb 21, 2024
23d102c
test: reuse cache for fork mode tests (#4897)
agostbiro Feb 21, 2024
7b28ba9
fix: avoid inserting transactions twice (#4895)
agostbiro Feb 21, 2024
5ffb64b
Update module parameters docs to include bigint example (#4878)
zoeyTM Feb 21, 2024
03e2232
Merge branch 'main' into edr/change-edr-npm-org
fvictorio Feb 21, 2024
6ed9cc7
Merge pull request #4896 from NomicFoundation/edr/change-edr-npm-org
fvictorio Feb 21, 2024
7f1cee7
ci: pin napi-rs docker images (#4905)
agostbiro Feb 21, 2024
5f0db46
Fix publish logic
agostbiro Feb 21, 2024
4ea71ab
Fix missing @ignored rename
fvictorio Feb 21, 2024
278caca
Bump hh-viem dependendy in hh-toolbox-viem
fvictorio Feb 21, 2024
565f116
edr-0.2.0-alpha.2
fvictorio Feb 21, 2024
c08aee9
edr-0.2.0-alpha.2
fvictorio Feb 21, 2024
0085158
edr-0.2.0-alpha.2
fvictorio Feb 21, 2024
1302444
Add workflow_dispatch to release workflow
fvictorio Feb 21, 2024
f6eb936
Add edr/release branch to workflow
fvictorio Feb 21, 2024
4298679
add missing brackets to "after" example
zoeyTM Feb 22, 2024
5aab752
fix: use custom address recovery for fake signature (#4890)
agostbiro Feb 22, 2024
6b6f447
fix: Cancun-related tests (#4889)
fvictorio Feb 23, 2024
68639d2
fix: avoid recovering address from fake transactions (#4911)
Wodann Feb 23, 2024
7c20662
fix: reduce max cached state count (#4932)
agostbiro Feb 26, 2024
4568ec5
chore: fix typos
enjoyooor Feb 25, 2024
5c99253
feat: add optional call override to support smock (#4899)
agostbiro Feb 26, 2024
8ba5bdc
feat: save and replay scenarios (#4928)
agostbiro Feb 26, 2024
bf1e97c
feat: add tool for replaying remote block (#4935)
Wodann Feb 27, 2024
d789f3c
fix: use block builder to replay blocks (#4940)
Wodann Feb 29, 2024
7faa540
Drop support for node v16
fvictorio Mar 1, 2024
837350e
Create clever-lobsters-type.md
fvictorio Mar 1, 2024
3e0cabb
Add tests for json-rpc provider error object
fvictorio Mar 1, 2024
e2acdc5
feat: add max cached states env var (#4945)
agostbiro Mar 1, 2024
3df5d29
Re-add edr changeset
schaable Mar 1, 2024
d991077
Merge pull request #4948 from NomicFoundation/feature/drop-support-fo…
fvictorio Mar 1, 2024
a676a48
Don't include transaction hashes in failed calls or gas estimates
fvictorio Mar 2, 2024
e4247f0
Put data and transactionHash as top-level error fields
fvictorio Mar 2, 2024
e59d054
Make sendRawTx test work on forks
fvictorio Mar 2, 2024
a5f0a7e
Don't run async event handlers if there are no listeners
fvictorio Mar 2, 2024
379d31a
Merge pull request #4954 from NomicFoundation/edr/fix-oom
fvictorio Mar 2, 2024
88c4597
Merge branch 'main' into edr/fix-provider-error-object
fvictorio Mar 3, 2024
5abd444
Use Options's .copied instead of .cloned
fvictorio Mar 4, 2024
8a45de9
Merge pull request #4949 from NomicFoundation/edr/fix-provider-error-…
fvictorio Mar 4, 2024
88b8741
Merge pull request #4902 from NomicFoundation/post-release-cleanup
fvictorio Mar 4, 2024
9b0f366
edr-0.2.0
fvictorio Mar 4, 2024
8871b76
Version Packages
github-actions[bot] Mar 4, 2024
ede6dbf
update polygon zkevm testnet
invocamanman Mar 4, 2024
91d035e
Add changeset
schaable Mar 4, 2024
375f26d
ci: add scenarios (#4952)
agostbiro Mar 5, 2024
8d1b026
Add files entry to package.json
fvictorio Mar 5, 2024
b812384
Add readme
fvictorio Mar 5, 2024
f33ce2b
Merge pull request #4959 from NomicFoundation/edr/readme-and-package-…
fvictorio Mar 5, 2024
c4cddac
Merge pull request #4957 from invocamanman/edit-polygon-zkevm-testnet
schaable Mar 5, 2024
ef367a4
edr-0.2.1
fvictorio Mar 5, 2024
a648dbf
Don't run the release workflow on pull requests
fvictorio Mar 6, 2024
0d8471f
Allow publishing EDR from the edr/release branch
fvictorio Mar 6, 2024
a3e0c06
Run recent mainnet block workflow every 8 hours
fvictorio Mar 6, 2024
992d5b5
Make pre-release workflow work with EDR
fvictorio Mar 6, 2024
a1a4258
Don't check commit for external users
fvictorio Mar 7, 2024
7743102
Run edr release workflow in PRs again
fvictorio Mar 7, 2024
e423f25
Merge pull request #4967 from NomicFoundation/ci-fixes
fvictorio Mar 7, 2024
c7a20c1
docs: add benchmark & profiling book chapters (#4972)
Wodann Mar 7, 2024
ac155d6
build: bump Rust to v1.76 (#4941)
Wodann Mar 7, 2024
2525822
research: add data analysis ipython notebook (#4964)
agostbiro Mar 8, 2024
174d4bb
[Website] Remove the solidity survey banner
alcuadrado Mar 9, 2024
8edfff5
Merge pull request #4981 from NomicFoundation/remove-solidity-survey-…
alcuadrado Mar 9, 2024
8824f42
ci: add JS benchmark runner (#4978)
agostbiro Mar 12, 2024
a2f3e7b
fix: support unknown transaction types as post-EIP 155 transactions
Wodann Mar 8, 2024
256e6ac
fix: support EIP-4844 receipts and unknown receipts
Wodann Mar 8, 2024
e8c6d4f
test: add missing test file
Wodann Mar 8, 2024
b03f616
misc: apply review suggestion
Wodann Mar 12, 2024
5ba18f9
misc: add changeset
Wodann Mar 12, 2024
30002f5
Update angry-cougars-glow.md
fvictorio Mar 12, 2024
c680b17
fix: use remote account when storage is manually modified (#4985)
Wodann Mar 12, 2024
a8e9309
fix: remove empty pending and future transaction lists (#4987)
Wodann Mar 13, 2024
45ed041
fix: issue 326
Wodann Mar 13, 2024
2b82ca4
misc: add changeset
Wodann Mar 13, 2024
78aee61
edr-0.3.0
fvictorio Mar 13, 2024
21ff4c5
feat: add Cancun activation block number
Wodann Mar 13, 2024
3ac838b
misc: add changelog
Wodann Mar 13, 2024
bcce371
feat: set cancun as default hardfork (#4990)
kanej Mar 13, 2024
d342cef
Version Packages
github-actions[bot] Mar 13, 2024
572e3f4
EDR book improvements (#4986)
fvictorio Mar 13, 2024
8c3b196
Add a guide for using the create2 strategy (#4758)
zoeyTM Mar 13, 2024
591b7c5
fix: set content-type and user-agent in RPC client (#4992)
Wodann Mar 14, 2024
0ad3bdb
edr-0.3.1
agostbiro Mar 14, 2024
cfec932
Upgrade the viem toolbox and project creation to viem@2
schaable Feb 15, 2024
e9f2b17
update sample projects to use ignition
zoeyTM Dec 7, 2023
92d140f
refactor: tweaks for ethers support
kanej Dec 15, 2023
add6c42
chore: bump chai version in toolbox
kanej Feb 13, 2024
f6414ed
Update verification guide to use ignition (#4833)
zoeyTM Feb 13, 2024
b66a86d
Update scripts guide (#4853)
zoeyTM Feb 14, 2024
5e06fd5
chore: exclude next dir from linting check
kanej Feb 16, 2024
40a3bfb
chore: tweak the changeset
kanej Feb 16, 2024
99dcf49
fix errors + improve tutorial docs (missing boilerplate step)
ChristopherDedominici Feb 20, 2024
a37fd55
refactor: switch convention for Module file names
kanej Feb 20, 2024
675f70c
test: fix broken viem sample project test
kanej Feb 20, 2024
152f0d9
error fix: re-add RECOMMENDED_SOLC_VERSION in docs
ChristopherDedominici Feb 20, 2024
94083cf
revert using Ignition in test in sample projects
kanej Feb 22, 2024
bf3c6c9
make typescript sample project tests use explicit `hre.ethers`
kanej Feb 22, 2024
4908ba2
add default unlockTime to sample projects
kanej Feb 22, 2024
a85be60
revert scripts change in forking-other-networks
kanej Feb 22, 2024
60299e7
revert scripts change in building plugins
kanej Feb 22, 2024
32eb22c
update the scripts guide intro
kanej Feb 22, 2024
ee78b52
revert scripts removal from hardhat console
kanej Feb 22, 2024
12e5b51
revert removal of script refs in typescript.md
kanej Feb 22, 2024
62bc0cf
revert contract testing guide
kanej Feb 22, 2024
514d95f
revert testing-contracts in tutorial
kanej Feb 22, 2024
9f36501
improve tip on verifying
kanej Feb 23, 2024
875ece6
Add redirect for removed tasks-and-scripts file
kanej Feb 23, 2024
896ec70
test: update viem sample with new viem2 api
kanej Feb 23, 2024
3fc886e
chore: bump the project creation version
kanej Feb 23, 2024
428f423
Update peer dependencies in project-creation.ts
schaable Feb 23, 2024
77e0883
Fix code snippets in Testing contracts guide
schaable Feb 23, 2024
66a4868
bump the version of hardhat-ignition-ethers to the latest
kanej Feb 23, 2024
8e1ae78
Fix code snippets in Verifying your contracts
schaable Feb 23, 2024
4d5e279
Update docs/src/content/hardhat-runner/docs/guides/verifying.md
kanej Feb 26, 2024
8f13a16
chore: update the pnpm lock file
kanej Feb 26, 2024
779c167
docs: clarify module file in deploying guide
kanej Feb 26, 2024
137ee9a
docs: revert the change to project setup
kanej Feb 26, 2024
4da8ba6
update boilerplate docs
ChristopherDedominici Feb 26, 2024
ac43eec
remove ignition-core as peer dep
kanej Feb 27, 2024
90c3f41
Add default tab for new combination
schaable Mar 5, 2024
49f4ffe
chore: bump the version of Ignition in toolboxes
kanej Mar 11, 2024
6694140
chore: loosen typescript peer dep for viem toolbox
kanej Mar 11, 2024
0f0f470
test: fix assert.isDefined issue
kanej Mar 14, 2024
3ee20fc
chore: bump edr version to 0.3.1
kanej Mar 14, 2024
a3ada90
Version Packages
github-actions[bot] Mar 14, 2024
b13f58a
fix: retrieve code for forked accounts when modifying state (#5000)
Wodann Mar 15, 2024
19eeeb9
refactor: clean up set_account_storage_slot (#5001)
Wodann Mar 15, 2024
739553e
edr-0.3.2
Wodann Mar 15, 2024
473d85a
Create env before args are parsed
eternauta1337 Mar 1, 2024
7876104
Create dull-pigs-pay.md
alcuadrado Mar 6, 2024
fa1d2b1
Merge pull request #4951 from theethernaut/parse-before-extendenv
alcuadrado Mar 15, 2024
7164c5d
ci: add performance benchmarks (#4998)
agostbiro Mar 19, 2024
ba129d3
ci: disable snapshot tests in benchmarks (#5008)
agostbiro Mar 20, 2024
ccdc0bb
build: bump revm to 7.1 (#4968)
Wodann Mar 20, 2024
3962e1b
Ignore EDR js benchmarks package in our changeset config
alcuadrado Mar 21, 2024
ef932f4
Merge pull request #5014 from NomicFoundation/changeset-ignore
alcuadrado Mar 21, 2024
0d14cc5
Version Packages
github-actions[bot] Mar 21, 2024
b8531a4
Fix baseFeePerGas tests
fvictorio Mar 25, 2024
3f80e10
Merge pull request #4991 from NomicFoundation/feat/cancun-mainnet-har…
fvictorio Mar 26, 2024
00cca62
chore: fix some comments
suchsoon Mar 14, 2024
7d0f981
fix: use weak references for stored threadsafe functions (#5025)
Wodann Mar 26, 2024
60b2a62
fix: support hex string in `eth_signTypedData_v4` salt (#5033)
agostbiro Mar 27, 2024
f0b1844
edr-0.3.3
agostbiro Mar 27, 2024
88eabce
misc: bump EDR version
agostbiro Mar 27, 2024
23d61d7
Update lockfile
agostbiro Mar 27, 2024
0d07d8d
Add changeset
agostbiro Mar 27, 2024
816b3db
docs: repair doc
jwbda Mar 27, 2024
e0c08a7
ci: enable snapshot testing (#5037)
agostbiro Mar 28, 2024
92693fb
fix: blocks with EIP-4844 transactions (#5042)
Wodann Mar 28, 2024
ae2840e
Merge pull request #5039 from NomicFoundation/agostbiro/bump-edr-version
fvictorio Mar 29, 2024
a1ee337
chore: fix some comments
carehabit Mar 31, 2024
300a9a2
Throw CORRUPTED_LOCKFILE error when requiring EDR fails
fvictorio Apr 2, 2024
6466e3a
Create tame-apples-admire.md
fvictorio Apr 3, 2024
0f77e7c
Add custom rpc method to toggle ledger feedback
schaable Feb 29, 2024
4912563
chore: add changeset
kanej Apr 3, 2024
2893430
Merge pull request #4946 from NomicFoundation/toggle-ledger-output
schaable Apr 3, 2024
65e4c87
Update tame-apples-admire.md
fvictorio Apr 3, 2024
4b53f66
Merge pull request #5056 from NomicFoundation/edr-require-error
fvictorio Apr 3, 2024
454dc3f
Merge pull request #5050 from carehabit/main
schaable Apr 3, 2024
ccf80e0
Merge remote-tracking branch 'upstream/main' into update-to-2.22.2
Misieq01 Apr 4, 2024
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
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .cargo-husky/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
#
# Intended to be in sync with .github/workflows/hardhat-core-ci.yml's
# test-edr-rs

if [ -z "${ALCHEMY_URL}" ] || [ -z "${INFURA_URL}" ]; then
echo WARNING: skipping remote tests because the ALCHEMY_URL and INFURA_URL environment variables are not defined. Local test results may differ from those in CI.
ALL_FEATURES="--features tracing,bench-once,serde,std"
else
ALL_FEATURES=--all-features
fi

# Set -x here to avoid printing secrets
set -xe

# Setting RUSTFLAGS env for clippy makes it not include custom rules
RUSTFLAGS=-Dwarnings cargo check --workspace --all-targets --profile bench ${ALL_FEATURES}
cargo clippy --all --all-targets ${ALL_FEATURES} -- -D warnings
cargo +nightly fmt --all -- --check
cargo test --doc --workspace ${ALL_FEATURES}
cargo test --workspace --all-targets ${ALL_FEATURES}
86 changes: 86 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[alias]
gen-execution-api = "run --bin tools -- gen-execution-api"
replay-block = "run --bin tools -- replay-block"

[target.'cfg(all())']
rustflags = [
"-Wclippy::all",
"-Wclippy::await_holding_lock",
"-Wclippy::bool-to-int-with-if",
"-Wclippy::cast_lossless",
"-Wclippy::char_lit_as_u8",
"-Wclippy::checked_conversions",
"-Wclippy::dbg_macro",
"-Wclippy::debug_assert_with_mut_call",
"-Wclippy::default_trait_access",
"-Wclippy::doc_markdown",
"-Wclippy::empty_enum",
"-Wclippy::enum_glob_use",
"-Wclippy::exit",
"-Wclippy::expl_impl_clone_on_copy",
"-Wclippy::explicit_deref_methods",
"-Wclippy::explicit_into_iter_loop",
"-Wclippy::fallible_impl_from",
"-Wclippy::filter_map_next",
"-Wclippy::flat_map_option",
"-Wclippy::float_cmp_const",
"-Wclippy::fn_params_excessive_bools",
"-Wclippy::from_iter_instead_of_collect",
"-Wclippy::if-not-else",
"-Wclippy::implicit_clone",
"-Wclippy::imprecise_flops",
"-Wclippy::inconsistent_struct_constructor",
"-Wclippy::inefficient_to_string",
"-Wclippy::invalid_upcast_comparisons",
"-Wclippy::items-after-statements",
"-Wclippy::large_digit_groups",
"-Wclippy::large_stack_arrays",
"-Wclippy::large_types_passed_by_value",
"-Wclippy::let_unit_value",
"-Wclippy::linkedlist",
"-Wclippy::lossy_float_literal",
"-Wclippy::macro_use_imports",
"-Wclippy::manual-assert",
"-Wclippy::manual_ok_or",
"-Wclippy::map_err_ignore",
"-Wclippy::map_flatten",
"-Wclippy::map_unwrap_or",
"-Wclippy::match_on_vec_items",
"-Wclippy::match_same_arms",
"-Wclippy::match_wild_err_arm",
"-Wclippy::match_wildcard_for_single_variants",
"-Wclippy::mem_forget",
"-Wclippy::missing_enforced_import_renames",
"-Wclippy::mut_mut",
"-Wclippy::mutex_integer",
"-Wclippy::needless_borrow",
"-Wclippy::needless_continue",
"-Wclippy::needless_for_each",
"-Wclippy::option_option",
"-Wclippy::path_buf_push_overwrite",
"-Wclippy::ptr_as_ptr",
"-Wclippy::rc_mutex",
"-Wclippy::redundant_closure_for_method_calls",
"-Wclippy::ref_option_ref",
"-Wclippy::rest_pat_in_fully_bound_structs",
"-Wclippy::same_functions_in_if_condition",
"-Wclippy::semicolon_if_nothing_returned",
"-Wclippy::single_match_else",
"-Wclippy::string_add_assign",
"-Wclippy::string_add",
"-Wclippy::string_lit_as_bytes",
"-Wclippy::string_to_string",
"-Wclippy::todo",
"-Wclippy::trait_duplication_in_bounds",
"-Wclippy::unimplemented",
"-Wclippy::uninlined_format_args",
"-Wclippy::unnested_or_patterns",
"-Wclippy::unused_self",
"-Wclippy::useless_transmute",
"-Wclippy::verbose_file_reads",
"-Wclippy::wildcard-imports",
"-Wclippy::zero_sized_map_values",
"-Wfuture_incompatible",
"-Wnonstandard_style",
"-Wrust_2018_idioms",
]
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "minor",
"ignore": ["@nomiclabs/common"],
"ignore": ["@nomiclabs/common", "benchmark"],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
Expand Down
5 changes: 5 additions & 0 deletions .changeset/itchy-walls-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/hardhat-ledger": patch
---

Internal restructuing to better support cli UI updates from other Hardhat plugins
5 changes: 5 additions & 0 deletions .changeset/neat-readers-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Upgrade EDR to version to [0.3.3](https://github.com/NomicFoundation/hardhat/blob/f0b18441bc4a482c37026b7d4a56783d5ce0a749/crates/edr_napi/CHANGELOG.md#033)
5 changes: 5 additions & 0 deletions .changeset/stupid-balloons-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/edr": patch
---

Fixed calculation of used blob gas for post-Cancun blocks
5 changes: 5 additions & 0 deletions .changeset/tame-apples-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

A proper error is now thrown when requiring EDR fails
37 changes: 30 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,36 @@
"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"
"version": "18"
}
},
/* 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"
"postAttachCommand": "scripts/setup.sh",
"portsAttributes": {
// The default port of mdbook
"3000": {
"label": "mdbook",
"onAutoForward": "openPreview"
}
},
"containerEnv": {
"ALCHEMY_URL": "${localEnv:ALCHEMY_URL}",
"INFURA_URL": "${localEnv:INFURA_URL}"
},
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"NomicFoundation.hardhat-solidity",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"vadimcn.vscode-lldb"
],
"settings": {
"rust-analyzer.cargo.features": "all",
"rust-analyzer.rustfmt.extraArgs": [
"+nightly"
]
}
}
}
}
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.sol linguist-language=Solidity
# prevent github actions to checkout files with crlf line endings
* -text
* text=auto

*.sol text eol=lf
*.d.ts text eol=lf
8 changes: 7 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@

version: 2
updates:
- package-ecosystem: "pnpm"
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "bump"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/autoassign-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PR autoassignment

on:
pull_request_target:
types: [opened]

jobs:
assign-new-issue:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v6
with:
script: |
const externalPrTriager = "kanej";

// Within the Github API PRs are issue objects
const pr = await github.rest.issues.get({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number
});

const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(pr.data.author_association)

if (isCollaborator) {
return
}

await github.rest.issues.addAssignees({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number,
assignees: [externalPrTriager],
});
47 changes: 47 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: E2E tests

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"

jobs:
run-e2e:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Run E2E tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
# TODO: the e2e tests fail on windows when pnpm is used,
# for what we think is a bug in pnpm. We set this env
# variable to skip that combination until we find a solution.
#
# The failure is caused by `pnpm hardhat init` executing
# `hardhat init` twice on windows, which results in the
# second execution failing because `hardhat init` cannot
# be run on an existing project.
IS_WINDOWS: ${{ matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Run fixture-projects script
run: |
cd e2e
chmod +x run-fixture-projects.sh
./run-fixture-projects.sh
shell: bash
- name: Run test-project-initialization script
run: |
cd e2e
chmod +x test-project-initialization.sh
./test-project-initialization.sh
shell: bash
85 changes: 85 additions & 0 deletions .github/workflows/edr-benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: EDR Benchmark

on:
push:
branches:
- main
paths:
- ".github/workflows/edr-benchmark.yml"
- "rust-toolchain"
- "Cargo.lock"
- "Cargo.toml"
- "crates/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/edr-benchmark.yml"
- "rust-toolchain"
- "Cargo.lock"
- "Cargo.toml"
- "crates/**"
workflow_dispatch:

defaults:
run:
working-directory: crates/tools/js/benchmark

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
js-benchmark:
name: Run JS scenario runner benchmark
environment: github-action-benchmark
runs-on: self-hosted
# Only run for trusted collaborators since third-parties could run malicious code on the self-hosted benchmark runner.
if: github.ref == 'refs/heads/main' || (github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR')
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: 20
cache: pnpm

- name: Install Rust (stable)
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true

- name: Install package
run: pnpm install --frozen-lockfile --prefer-offline

- name: Run benchmark
run: pnpm run -s benchmark

- name: Validate regressions
run: pnpm run -s verify

- name: Generate report for github-action-benchmark
run: pnpm run -s report | tee report.json

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: customSmallerIsBetter
output-file-path: crates/tools/js/benchmark/report.json
gh-repository: github.com/nomic-foundation-automation/edr-benchmark-results
gh-pages-branch: main
benchmark-data-dir-path: bench
github-token: ${{ secrets.BENCHMARK_GITHUB_TOKEN }}
# Only save the data for main branch pushes. For PRs we only compare
auto-push: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
alert-threshold: "110%"
# Only fail on pull requests, don't break CI in main
fail-on-alert: ${{ github.event_name == 'pull_request' }}
# Enable Job Summary for PRs
summary-always: true
max-items-in-chart: 1000
Loading
Loading