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

chore: foundry update 4af6cfa #445

Merged
merged 485 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
485 commits
Select commit Hold shift + click to select a range
c0aac85
fix: make trace printer work (#7824)
DaniPopes May 1, 2024
5885dbc
Fix `eth_signTransaction` request and response (#7804)
alisinabh May 1, 2024
cafc260
fix: set value before estimating gas (#7829)
mattsse May 1, 2024
451d984
fix(forge): require at least one dependency in `remove` (#7832)
DaniPopes May 2, 2024
97186b5
fix(anvil): `ots_getTransactionError` default return (#7837)
sealer3 May 2, 2024
7a676f8
feat: Anvil Cancun support (#7242)
Evalir May 2, 2024
d495216
fix: avoid panic on missing CREATE2 deployer (#7838)
klkvr May 2, 2024
cc24a3e
feat(anvil): eth_blobBaseFee
yash-atreya May 3, 2024
0dbdaba
Revert "feat(anvil): eth_blobBaseFee"
yash-atreya May 3, 2024
36d9fab
chore(`chisel`): make clippy happy (#7842)
Evalir May 3, 2024
233b0f2
feat(anvil): eth_blobBaseFee (#7840)
yash-atreya May 3, 2024
181dc3c
fix(anvil): include blob hashes in call env (#7839)
yash-atreya May 3, 2024
e159e6e
fix: more gas estimation checks for transfer (#7845)
mattsse May 3, 2024
2e95d2f
chore: make clippy happy (#7847)
mattsse May 3, 2024
3ed4af0
fix(anvil): correctly use `BlobVersionNotSupported` (#7855)
yash-atreya May 3, 2024
fd9ecd8
fix(anvil): set blob fields in genesis (#7853)
yash-atreya May 3, 2024
f21760b
fix: enable eip712 for all signers (#7854)
DaniPopes May 3, 2024
11e7dfd
fix: transfer check (#7856)
jxom May 4, 2024
d65c65f
bump foundry-compilers (#7822)
klkvr May 4, 2024
aa333c6
chore(invariant) - rename TargetAbiSelector (#7850)
grandizzy May 4, 2024
2e9b584
chore(deps): weekly `cargo update` (#7857)
github-actions[bot] May 5, 2024
c08aa68
feat: remove most of ethers (#7861)
DaniPopes May 5, 2024
784e382
chore: remove unused fork ID support (#7863)
DaniPopes May 5, 2024
c486fca
chore(deps): replace `parity-ipc-server` with `interprocess` (#7862)
DaniPopes May 5, 2024
10c0c7a
fix: use B256::try_from for pk (#7871)
mattsse May 6, 2024
2e3c197
chore: bump alloy 17c5650 (#7868)
mattsse May 6, 2024
bc5e78d
chore(invariant) - reuse code to collect push bytes and storage value…
grandizzy May 6, 2024
6ded857
test: fix some flaky tests (#7873)
DaniPopes May 6, 2024
e7f9b75
chore: stop using RuntimeOrHandle (#7860)
DaniPopes May 6, 2024
bfc6549
chore(invariant): remove persist_state config, commit by default (#7819)
grandizzy May 6, 2024
6da2ff4
chore(invariant): remove shrink_sequence config (#7875)
grandizzy May 7, 2024
0ed8726
test(anvil): fix remaining TODOs/ignores, remove compiler dependency …
DaniPopes May 7, 2024
a87faf6
fix(anvil/ots): include selfdestruct target address (#7880)
DaniPopes May 7, 2024
7ce6c9b
feat(cheatcodes): add ens namehash cheatcode (#7882)
meetmangukiya May 7, 2024
874ea8c
chore: bump foundry-compilers (#7883)
mattsse May 7, 2024
58c0c00
fix(anvil): `tx.gas_price()` return val (#7876)
yash-atreya May 7, 2024
936238b
chore: remove `cast bind` (#7887)
DaniPopes May 8, 2024
a4d79ac
chore: deprecate `forge bind --ethers` (#7886)
yash-atreya May 8, 2024
3ef5466
fix(cast): create transactions (#7904)
DaniPopes May 10, 2024
503792a
chore: bump alloy 899fc51 (#7905)
mattsse May 10, 2024
8d72458
chore(deps): weekly `cargo update` (#7910)
github-actions[bot] May 12, 2024
a117fbf
fix: nonce correction logic (#7907)
klkvr May 12, 2024
4aa17bc
feat(cast): support convert hex data to a utf-8 string (#7917)
fenghaojiang May 13, 2024
781acf0
feat(cast): wallet keystore decrypting (#7893)
rplusq May 14, 2024
4267f44
bump compilers (#7926)
klkvr May 14, 2024
39f155d
feat: library deployments though CREATE2 (#7711)
klkvr May 14, 2024
12eaec8
forge(verify): OKLink support (#7915)
bixia May 14, 2024
7469d79
chore(deps): bump chains (#7927)
mattsse May 14, 2024
a470d63
fix: fuzz console log (#7781)
Azleal May 15, 2024
48e5d11
bump alloy f415827
yash-atreya May 16, 2024
20feac7
Revert "bump alloy f415827"
yash-atreya May 16, 2024
467aff3
Revert "fix: fuzz console log (#7781)" (#7935)
grandizzy May 16, 2024
54d8510
chore(deps): weekly `cargo update` (#7946)
github-actions[bot] May 19, 2024
1ddea96
feat(invariant): fuzz with values from events and return values (#7666)
grandizzy May 20, 2024
1b08ae4
fix(fuzz) - consistent snapshot results between runs (#7951)
grandizzy May 20, 2024
c9ae920
feature(invariant) - persist and replay failure (#7899)
grandizzy May 21, 2024
003d088
feat(cast): send 4844 support (#7823)
yash-atreya May 21, 2024
0a5b22f
fix(invariant): panic when decoding logs with None value (#7956)
grandizzy May 21, 2024
28ccb97
chore: update interprocess to fix a todo (#7913)
DaniPopes May 21, 2024
23700c9
feat: support solc 0.8.26 (#7968)
klkvr May 21, 2024
a539f3a
Nit: Fix EIP 1159 typo in comment (#7963)
aureliusbtc May 22, 2024
44d98ea
fix(fuzz): do not exceed configured runs (#7971)
grandizzy May 22, 2024
78aef64
fix: apply `--no-match-test` when invoking compiler (#7941)
klkvr May 22, 2024
3e9385b
feat: smarter verification (#7937)
klkvr May 22, 2024
9c719d9
fix: make clippy happy (#7975)
klkvr May 23, 2024
299902e
chore: bump to latest alloy and revm (#7934)
yash-atreya May 23, 2024
8fd3eb9
chore(fuzz): add unit test for #1168 (#7974)
grandizzy May 23, 2024
10b9baa
feat: Vyper support for forge build (#7953)
klkvr May 23, 2024
f8ad354
feat: add tmp prague config value (#7697)
fgimenez May 23, 2024
f4102c1
chore: remove cancun setting (#7977)
mattsse May 23, 2024
2b5af1b
chore: make aws-kms signer support optional (#7976)
DaniPopes May 23, 2024
30c93a2
fix(config): deprecated key warnings (#7978)
DaniPopes May 23, 2024
b1f4684
chore: hide aws flags when not enabled (#7979)
DaniPopes May 23, 2024
fecac4c
fix: unchecked getCode (#7982)
klkvr May 24, 2024
31c13dc
fix(forge): load state on roll fork for non persisting accounts (#7983)
grandizzy May 24, 2024
a03fed9
chore(deps): bump alloy (#7990)
DaniPopes May 24, 2024
10f1402
fix(debugger): don't panic on pc-ic / sourcemap mismatch (#7991)
DaniPopes May 24, 2024
83e6aec
refactor: clean-up cast send (#7967)
klkvr May 25, 2024
d9e51e4
fix(invariant) - do not panic when evm call fails (#7994)
grandizzy May 25, 2024
ea2eff9
fix(forge): consistently apply `no_storage_caching` config (#7997)
grandizzy May 26, 2024
93a6c3a
Fix missing error code (#7999)
NIC619 May 29, 2024
82e7406
feat(cheatcodes): randomUint (#7960)
yash-atreya May 29, 2024
25b2455
chore(invariant): config defaults, add max test threads config (#7957)
grandizzy May 29, 2024
5494c33
fix(cast): set --block value as fork_block_number while tracing (#8009)
yash-atreya May 29, 2024
7c52ecd
fix(cheatcodes): inspector `call` (#8019)
yash-atreya May 31, 2024
08ef489
feat(foundryup): add a `--jobs` flag while building from source (#8021)
NiloCK May 31, 2024
f479e94
chore: simplify debug traces (#8020)
DaniPopes May 31, 2024
a3071e5
fix(foundryup): nproc does not exist on macos (#8024)
DaniPopes Jun 1, 2024
bdf05a8
perf: prefill fuzz dictionary with 0 (#8027)
DaniPopes Jun 1, 2024
80986a7
refactor(coverage): refactor coverage analysis (#8025)
DaniPopes Jun 1, 2024
8e9fca8
perf: exclude source maps from `ContractData` (#8022)
klkvr Jun 1, 2024
2b95250
feat: Priority fee suggestion (#7984)
dorlneylon Jun 1, 2024
489453c
nit: Minor help style consistency (#8029)
AndreMiras Jun 1, 2024
399a42d
chore(deps): bump foundry-compilers to 0.5.1 (#8030)
DaniPopes Jun 1, 2024
5ac78a9
chore: Arc ContractsByArtifact internally (#8026)
DaniPopes Jun 1, 2024
741377f
chore(deps): weekly `cargo update` (#8033)
github-actions[bot] Jun 2, 2024
fd42368
fix: enable providers in ethers-contract-abigen (#8032)
DaniPopes Jun 2, 2024
0fc3976
feat: better run feedback for scripts (#8023)
klkvr Jun 2, 2024
9eebb37
fix: use timeouts for script transactions (#8037)
klkvr Jun 3, 2024
3b175cb
refactor: deploy all libraries when running tests (#8034)
klkvr Jun 3, 2024
590f566
Fix shadowed branch coverage PC variable (#8040)
alisinabh Jun 3, 2024
fbad377
bump compilers (#8011)
klkvr Jun 3, 2024
8c7e28a
perf(fuzz): store dict values once, track newly inserted indexes (#8043)
grandizzy Jun 4, 2024
4f30c3f
perf(invariant): only compute success when necessary (#8045)
DaniPopes Jun 4, 2024
2466e31
fix(forge) - reset lib deployer balance to initial (#8046)
grandizzy Jun 4, 2024
a4ebf41
perf: manually set code hash when inserting cheatcodes account (#8044)
DaniPopes Jun 4, 2024
23cb7e0
chore(fuzz): some cleanup (#8050)
DaniPopes Jun 4, 2024
cffc812
fix: use revm to calculate gas stipend (#8048)
DaniPopes Jun 4, 2024
99a12d1
perf(cheatcodes): don't recover verify signature after signing (#8051)
DaniPopes Jun 4, 2024
2193a27
fix(forge): ensure contract managing fork is persistent (#8041)
grandizzy Jun 4, 2024
f9cbe69
fix(docker build): update index checksum (#8003)
sambacha Jun 4, 2024
9e95c55
ci: switch macos test runner to use aarch64 (#8055)
DaniPopes Jun 4, 2024
5668e46
ci: release x86_64 darwin binaries with macos-12 runner (#8056)
DaniPopes Jun 4, 2024
ec89c4f
fix: re-enable aws-config default-features (#8058)
DaniPopes Jun 4, 2024
1c6bd32
fix: panic in WalletSigner::from_private_key (#8052)
DaniPopes Jun 4, 2024
fb86e5d
perf(link): keep around the cow for a bit longer (#8059)
DaniPopes Jun 4, 2024
b164c20
chore: add fuzz dictionary stats (#8060)
DaniPopes Jun 5, 2024
487892d
perf(invariant): collect push bytes only once (#8063)
grandizzy Jun 5, 2024
29a4735
chore: remove '=== impl' comments (#8068)
DaniPopes Jun 5, 2024
d5fb750
chore: add and use workspace.lints (#8067)
DaniPopes Jun 5, 2024
11d9c1a
chore: fix rustdoc warnings (#8069)
DaniPopes Jun 5, 2024
66bea83
ci: bump softprops/action-gh-release (#8070)
DaniPopes Jun 5, 2024
00854b6
chore: update alloy and revm (#8057)
teddav Jun 5, 2024
e764c31
perf(fuzz): use ahash for state (#8053)
DaniPopes Jun 6, 2024
7e6ebaf
fix: ensure suggested prio fee is at least 1e9 (#8081)
mattsse Jun 6, 2024
1138860
fix(verify-bytecode): check contract name in cache (#8079)
yash-atreya Jun 6, 2024
0248a62
feat(cheatcode): promptSecretUint (#8082)
DhairyaSethi Jun 6, 2024
729a766
feat: add `skip` key to foundry.toml (#8061)
klkvr Jun 6, 2024
3a024a1
fix: update persistent accounts handling (#8083)
klkvr Jun 6, 2024
ca0f29b
fix(anvil): receipts root calculation (#8085)
klkvr Jun 6, 2024
9c343de
feat: add `[vyper]` config section (#8086)
klkvr Jun 6, 2024
ebfdefb
fix(invariant): prevent new values leaking between runs (#8080)
grandizzy Jun 6, 2024
169f83f
feat(forge): [ALPHA] add soldeer as an optional package manager. (#7161)
mario-eth Jun 6, 2024
31b70cc
feat(cast): alias keccak256 to keccak (#8090)
DaniPopes Jun 6, 2024
a9a3c02
fix(cast): return an error if wallet validation failed (#8089)
DaniPopes Jun 6, 2024
ad2ada4
chore: remove excess underscores from config fields (#8088)
DaniPopes Jun 6, 2024
c5f0ea7
chore: simplify anvil precompile handler (#8087)
DaniPopes Jun 6, 2024
993951a
fix: include Vyper sources when compiling scripts (#8091)
klkvr Jun 6, 2024
08b2d3e
feat(cast): implement ERC-7201 as `cast index-erc7201` (#8092)
DaniPopes Jun 6, 2024
fb4b6f8
chore: simplify PartialEq for ForgeContext (#8101)
DaniPopes Jun 7, 2024
741873c
chore: avoid cloning test results channel (#8103)
DaniPopes Jun 7, 2024
a9c0755
chore: simplify proptest strategies (#8105)
DaniPopes Jun 7, 2024
a09713b
Support GCP KMS Signer (#8096)
moricho Jun 7, 2024
f43d3ce
feat(fuzz) - add test progress (#7914)
grandizzy Jun 7, 2024
c4d18c5
chore: update lockfile
DaniPopes Jun 7, 2024
a169ef7
chore: propagate fmt parser errors (#8109)
DaniPopes Jun 7, 2024
e0785cf
chore: add test for #2851 (#8112)
grandizzy Jun 7, 2024
0b03a58
fix: bypass block gas limit if disabled (#8111)
mattsse Jun 7, 2024
91d68ac
feat: Add block id to cast (#8074)
DoTheBestToGetTheBest Jun 8, 2024
91b1292
fix(invariant): exclude default addresses from senders (#8118)
grandizzy Jun 8, 2024
6179312
chore(deps): weekly `cargo update` (#8120)
github-actions[bot] Jun 9, 2024
db60cb3
Support WalletOpts in `cast wallet derive-private-key` command (#8119)
poma-keeps-building Jun 10, 2024
81896c5
Feat: add solc & evm version to anvil readme (#7945)
DoTheBestToGetTheBest Jun 10, 2024
edcb8ad
feat: add too many warnings error variant (#8125)
mattsse Jun 11, 2024
29e5112
fix(forge): preserve state of persisted accounts on rollFork(tx) / tr…
grandizzy Jun 11, 2024
0636c5d
chore: add roll fork invariant test with handler state (#8130)
grandizzy Jun 11, 2024
1ac4de0
fix(forge): needs a aws-kms feature to allow for continued support of…
rswanson Jun 11, 2024
462b2ac
fix(release): build forge and cast with aws support on release (#8132)
rswanson Jun 11, 2024
bc54593
bump compilers (#8126)
klkvr Jun 12, 2024
481c74b
fix(forge): fix the bug where source code incorrectly overlaps during…
ZhangZhuoSJTU Jun 12, 2024
f816059
fix: remove hardcoded retries (#8141)
mattsse Jun 12, 2024
82f0aaa
chore(deps): Bump alloy 14ed25d (#8128)
moricho Jun 12, 2024
c2b5b50
perf: don't unnecessarily create CheatsConfig (#8143)
DaniPopes Jun 12, 2024
8801156
chore: improve test timings and cleanup (#8144)
DaniPopes Jun 12, 2024
8e9cb1d
chore(evm): clean up executor methods some more (#8104)
DaniPopes Jun 13, 2024
b7dcf46
Allow to specify entropy when generating new mnemonic with cast (#8145)
poma-keeps-building Jun 13, 2024
65bdd31
fix: Soldeer: Fixed the url bug, it should be optional (#8155)
mario-eth Jun 13, 2024
6a85dba
feat: display source name in debugger (#8154)
klkvr Jun 13, 2024
c2e5297
feat(build): add option to build specific dir (#8149)
grandizzy Jun 14, 2024
4240376
migrate(`forge-bind`): to alloy (#7919)
yash-atreya Jun 14, 2024
b002fe8
chore: add known error codes (#8166)
ayenesimo1i Jun 14, 2024
dbfa025
fix: enable cache when `--build-info` is enabled (#8164)
klkvr Jun 14, 2024
a20cef1
fix(forge-bind): alloy deps and file consistency check (#8167)
yash-atreya Jun 14, 2024
46cde38
perf: slightly improve inspector stack (#8169)
DaniPopes Jun 14, 2024
41a6945
feat(invariant): introduce `afterInvariant` function (#8106)
grandizzy Jun 14, 2024
47b2ce2
fix(forge-bind): allow attrs and mod single_file imports (#8171)
yash-atreya Jun 15, 2024
fd87888
chore(deps): weekly `cargo update` (#8172)
github-actions[bot] Jun 16, 2024
76e23be
chore(deps): bump alloy, revm (#8177)
DaniPopes Jun 17, 2024
fd185c8
feat: debug_getRawTransaction RPC endpoint (#8162)
dorlneylon Jun 17, 2024
f6ad1e5
fix(invariant): weight invariant selectors by number of selectors (#8…
grandizzy Jun 17, 2024
f673066
perf: reduce clones in fuzzed_functions (#8178)
DaniPopes Jun 17, 2024
55ac4e4
bump compilers (#8153)
klkvr Jun 17, 2024
35356b0
fix: make `paths` a positional argument (#8158)
klkvr Jun 17, 2024
c8f771a
chore(deps): pin alloy 0.1.1 (#8182)
yash-atreya Jun 18, 2024
9e271d0
perf: new-type TargetedContracts (#8180)
DaniPopes Jun 18, 2024
a131937
feat: cast etherscan-source --flatten (#8159)
klkvr Jun 18, 2024
6f41cd9
fix(anvil): block dumps (#8160)
samlaf Jun 18, 2024
6723834
feat(invariant): add excludeSelectors() filter (#8185)
grandizzy Jun 18, 2024
272a09f
fix(cheatcodes): use `call.bytecode_address` in mockCalls (#8184)
yash-atreya Jun 18, 2024
d744da2
chore: remove rU256 alias (#8188)
mattsse Jun 18, 2024
77cc429
pick a random value for prevrandao for each block (#8187)
paulperegud Jun 18, 2024
4d6c77c
chore: fix patches (#8189)
DaniPopes Jun 18, 2024
91074f1
perf: optimize load_contracts (#8190)
DaniPopes Jun 18, 2024
588a1d7
chore(deps): move more deps to workspace (#8192)
mattsse Jun 18, 2024
4af6cfa
feat(cast): ux upgrade cast block returning block time in readable fo…
JamieShip Jun 19, 2024
10d538e
initial merge
nbaztec Jun 27, 2024
1dace28
Merge branch 'dev' into foundry-update-4af6cfa
nbaztec Jun 27, 2024
dbb26e9
merge dev
nbaztec Jun 27, 2024
192d537
fix: zksolc build [upstream-merge] (#447)
Karrq Jun 28, 2024
08ea220
fix: forge test (#454)
nbaztec Jul 3, 2024
c2f1125
fix: script [upstream merge] (#452)
Karrq Jul 4, 2024
f73b6ed
fix: implement avoid contracts in foundry (#456)
elfedy Jul 4, 2024
d69b73b
fix: batch broadcastable factory deps [upstream merge] (#458)
Karrq Jul 5, 2024
e0f1d0e
Merge branch 'dev' into foundry-update-4af6cfa
nbaztec Jul 9, 2024
ea200ab
fix conflicts
nbaztec Jul 9, 2024
e1bcfc6
Merge branch 'foundry-update-4af6cfa' of github.com:matter-labs/found…
nbaztec Jul 9, 2024
6328ca9
feat: Invariant upstream merge (#467)
Jrigada Jul 10, 2024
1866ebd
fix: contract verification [upstream merge] (#468)
Karrq Jul 10, 2024
233707f
fix: create in upstream merge (#462)
nbaztec Jul 10, 2024
1b1e9b6
fix clippy
nbaztec Jul 10, 2024
34ca842
update rustc version in ci
nbaztec Jul 10, 2024
cf74458
cargo hack fix
nbaztec Jul 10, 2024
7d3952e
fmt
nbaztec Jul 10, 2024
32cce08
remove missing libraries test
nbaztec Jul 10, 2024
bd148f4
update deny license from zksync-era
nbaztec Jul 10, 2024
95fce6f
update deny advisory from zksync-era
nbaztec Jul 10, 2024
3714340
re-add previous licenses
nbaztec Jul 10, 2024
5573484
update era-test-node in ci
nbaztec Jul 10, 2024
847b8af
feat: use default EvmVersion on default Config (#469)
elfedy Jul 11, 2024
bd904be
chore(deps): bump watchexec to 4 (#470)
elfedy Jul 12, 2024
13414ad
chore: specify sources for cargo deny (#471)
elfedy Jul 12, 2024
0092dc0
remove openssl from denied crates - reflect zksync-era
nbaztec Jul 12, 2024
7cc235d
clippy
nbaztec Jul 12, 2024
3c97a7c
fix evm_version in smoke tests, re-add script batching regression
nbaztec Jul 12, 2024
238f330
fix regression in transact
nbaztec Jul 12, 2024
9577c99
fix(script:zk): persist metadata with skipped sim
Karrq Jul 12, 2024
7885d53
disable factory-dep batching by default
nbaztec Jul 15, 2024
18ca4dc
disable factory dep batch script test
nbaztec Jul 15, 2024
73da8ff
Merge branch 'foundry-update-4af6cfa' of github.com:matter-labs/found…
nbaztec Jul 15, 2024
e97a156
cleanup Cargo.toml
nbaztec Jul 17, 2024
2da092b
add CHEATCODE_CONTRACT_HASH to dual compiled contracts
nbaztec Jul 17, 2024
ccc2d4c
refactor test
nbaztec Jul 17, 2024
953e298
add test for cheatcodes after fork
nbaztec Jul 17, 2024
d2cd89f
Merge branch 'foundry-update-4af6cfa' of github.com:matter-labs/found…
nbaztec Jul 17, 2024
5f1b8a9
Merge branch 'dev' into foundry-update-4af6cfa
Karrq Jul 17, 2024
60c5fb3
chore: lints
Karrq Jul 17, 2024
7456b3e
trufflehog ignore
nbaztec Jul 18, 2024
71c44fe
trigger ci
nbaztec Jul 18, 2024
3e79d9b
trufflehog ignore
nbaztec Jul 18, 2024
b23ee71
update gha checkout to v4
nbaztec Jul 18, 2024
0d23b9a
debug
nbaztec Jul 18, 2024
c7eb5c7
update trufflehog action
nbaztec Jul 18, 2024
193afff
revert trufflehog action update, add file to exclude
nbaztec Jul 18, 2024
3956b8f
use globs for trufflehog exclude
nbaztec Jul 18, 2024
17d4697
feat: Blockhash returning expected value (#480)
Jrigada Jul 19, 2024
cde1cfc
update gix-path for cargo deny
nbaztec Jul 19, 2024
04b1c1d
fix: only compile target file on create (#482)
elfedy Jul 19, 2024
c6c6d44
fix: Blockhash of current block should be zero (#483)
Jrigada Jul 22, 2024
3c60428
chore: remove deploy missing libraries mentions (#481)
elfedy Jul 22, 2024
9331884
fix cargo deny openssl dep
nbaztec Jul 22, 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
  •  
  •  
  •  
10 changes: 7 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
* @danipopes @evalir @mattsse

crates/anvil/ @evalir @mattsse
crates/evm/coverage/ @evalir @onbjerg
crates/anvil/ @danipopes @mattsse @evalir
crates/cheatcodes/ @danipopes @mattsse @klkvr @evalir
crates/evm/coverage/ @onbjerg
crates/fmt/ @rkrasiuk
crates/macros/impls/ @danipopes
crates/linking/ @klkvr
crates/macros/ @danipopes
crates/script/ @danipopes @mattsse @klkvr
crates/wallets/ @klkvr
2 changes: 1 addition & 1 deletion .github/scripts/matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
t_linux_x86 = Target("ubuntu-latest", "x86_64-unknown-linux-gnu", "linux-amd64")
# TODO: Figure out how to make this work
# t_linux_arm = Target("ubuntu-latest", "aarch64-unknown-linux-gnu", "linux-aarch64")
t_macos = Target("macos-latest", "x86_64-apple-darwin", "macosx-amd64")
t_macos = Target("macos-latest", "aarch64-apple-darwin", "macosx-aarch64")
t_windows = Target("windows-latest", "x86_64-pc-windows-msvc", "windows-amd64")
targets = [t_linux_x86, t_windows] if is_pr else [t_linux_x86, t_macos, t_windows]

Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/deny.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: deny

on:
push:
branches: [main]
paths: [Cargo.lock, deny.toml]
pull_request:
branches: [main]
paths: [Cargo.lock, deny.toml]
push:
branches: [dev]
paths: [Cargo.lock, deny.toml]
pull_request:
branches: [dev]
paths: [Cargo.lock, deny.toml]

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
cargo-deny:
name: cargo deny check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check all
# Clear out arguments to not pass `--all-features` to `cargo deny`.
# many crates have an `openssl` feature which enables banned dependencies
arguments: ""
cargo-deny:
name: cargo deny check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check all
# Clear out arguments to not pass `--all-features` to `cargo deny`.
# many crates have an `openssl` feature which enables banned dependencies
arguments: ""
80 changes: 39 additions & 41 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# Automatically run `cargo update` periodically
# Runs `cargo update` periodically.

name: dependencies

on:
schedule:
# Run weekly
- cron: "0 0 * * SUN"
workflow_dispatch:
# Needed so we can run it manually
schedule:
# Run weekly
- cron: "0 0 * * SUN"
workflow_dispatch:
# Needed so we can run it manually

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: cargo-update
TITLE: "chore(deps): weekly `cargo update`"
BODY: |
Automation to keep dependencies in `Cargo.lock` current.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: cargo-update
TITLE: "chore(deps): weekly `cargo update`"
BODY: |
Automation to keep dependencies in `Cargo.lock` current.

<details><summary><strong>cargo update log</strong></summary>
<p>
<details><summary><strong>cargo update log</strong></summary>
<p>

```log
$cargo_update_log
```
```log
$cargo_update_log
```

</p>
</details>
</p>
</details>

jobs:
update:
Expand All @@ -37,30 +37,28 @@ jobs:
with:
toolchain: nightly-2023-09-30

- name: cargo update
# Remove first line that always just says "Updating crates.io index"
run:
cargo update --color never 2>&1 | sed '/crates.io index/d' | tee -a
cargo_update.log
- name: cargo update
# Remove first line that always just says "Updating crates.io index"
run: cargo update --color never 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log

- name: craft commit message and PR body
id: msg
run: |
export cargo_update_log="$(cat cargo_update.log)"
- name: craft commit message and PR body
id: msg
run: |
export cargo_update_log="$(cat cargo_update.log)"

echo "commit_message<<EOF" >> $GITHUB_OUTPUT
printf "$TITLE\n\n$cargo_update_log\n" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "commit_message<<EOF" >> $GITHUB_OUTPUT
printf "$TITLE\n\n$cargo_update_log\n" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" | envsubst >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" | envsubst >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: ./Cargo.lock
commit-message: ${{ steps.msg.outputs.commit_message }}
title: ${{ env.TITLE }}
body: ${{ steps.msg.outputs.body }}
branch: ${{ env.BRANCH }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: ./Cargo.lock
commit-message: ${{ steps.msg.outputs.commit_message }}
title: ${{ env.TITLE }}
body: ${{ steps.msg.outputs.body }}
branch: ${{ env.BRANCH }}
2 changes: 1 addition & 1 deletion .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2024-02-06
toolchain: nightly-2024-04-28

- name: Build forge binary
run: cargo build --release --bin forge
Expand Down
158 changes: 79 additions & 79 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: release

on:
push:
tags:
- "v*.*.*"
schedule:
- cron: "0 0 * * *" # Daily at midnight
workflow_dispatch:
push:
tags:
- "v*.*.*"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
IS_NIGHTLY: ${{ github.event_name == 'workflow_dispatch' }}
CARGO_TERM_COLOR: always
IS_NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}

jobs:
prepare:
name: Prepare release
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
tag_name: ${{ steps.release_info.outputs.tag_name }}
release_name: ${{ steps.release_info.outputs.release_name }}
changelog: ${{ steps.build_changelog.outputs.changelog }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Compute release name and tag
id: release_info
run: |
if [[ $IS_NIGHTLY ]]; then
echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
else
echo "tag_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync@${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
fi

# Creates a `nightly-SHA` tag for this specific nightly
# This tag is used for this specific nightly version's release
# which allows users to roll back. It is also used to build
# the changelog.
- name: Create build-specific nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
env:
TAG_NAME: ${{ steps.release_info.outputs.tag_name }}
with:
script: |
const createTag = require('./.github/scripts/create-tag.js')
await createTag({ github, context }, process.env.TAG_NAME)

- name: Build changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: "./.github/changelog.json"
fromTag: ${{ env.IS_NIGHTLY && 'nightly' || '' }}
toTag: ${{ steps.release_info.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
prepare:
name: Prepare release
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
tag_name: ${{ steps.release_info.outputs.tag_name }}
release_name: ${{ steps.release_info.outputs.release_name }}
changelog: ${{ steps.build_changelog.outputs.changelog }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Compute release name and tag
id: release_info
run: |
if [[ $IS_NIGHTLY ]]; then
echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
else
echo "tag_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync@${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
fi

# Creates a `nightly-SHA` tag for this specific nightly
# This tag is used for this specific nightly version's release
# which allows users to roll back. It is also used to build
# the changelog.
- name: Create build-specific nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
env:
TAG_NAME: ${{ steps.release_info.outputs.tag_name }}
with:
script: |
const createTag = require('./.github/scripts/create-tag.js')
await createTag({ github, context }, process.env.TAG_NAME)

- name: Build changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: "./.github/changelog.json"
fromTag: ${{ env.IS_NIGHTLY && 'nightly' || '' }}
toTag: ${{ steps.release_info.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
name: ${{ matrix.target }} (${{ matrix.runner }})
Expand Down Expand Up @@ -220,27 +220,27 @@ jobs:
${{ steps.artifacts.outputs.file_name }}
${{ steps.man.outputs.foundry_man }}

cleanup:
name: Release cleanup
runs-on: ubuntu-latest
timeout-minutes: 30
needs: release
if: always()
steps:
- uses: actions/checkout@v4

# Moves the `nightly` tag to `HEAD`
- name: Move nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
with:
script: |
const moveTag = require('./.github/scripts/move-tag.js')
await moveTag({ github, context }, 'nightly')

- name: Delete old nightlies
uses: actions/github-script@v7
with:
script: |
const prunePrereleases = require('./.github/scripts/prune-prereleases.js')
await prunePrereleases({github, context})
cleanup:
name: Release cleanup
runs-on: ubuntu-latest
timeout-minutes: 30
needs: release
if: always()
steps:
- uses: actions/checkout@v4

# Moves the `nightly` tag to `HEAD`
- name: Move nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
with:
script: |
const moveTag = require('./.github/scripts/move-tag.js')
await moveTag({ github, context }, 'nightly')

- name: Delete old nightlies
uses: actions/github-script@v7
with:
script: |
const prunePrereleases = require('./.github/scripts/prune-prereleases.js')
await prunePrereleases({github, context})
4 changes: 2 additions & 2 deletions .github/workflows/secret_scanner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffleHog OSS
Expand All @@ -14,4 +14,4 @@ jobs:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
extra_args: --debug --only-verified --exclude-globs=zk-tests/src/Cheatcodes.t.sol # TODO: Remove this file once merged
Loading
Loading