Merged
Conversation
* fix(ens): don't resolve addr if doesn't contain . (#9635)
* fix(ens): don't resolve addr if doesn't contain .
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* fix invalid ens name
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* feat(`verify`): default to sourcify if etherscan key not provided (#9630)
* feat(`verify`): default to sourcify if etherscan key not provided
* clippy
* nit
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
---------
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
* chore(`forge`): rm regex for --debug and --decode-internal (#9572)
* chore(`forge`): rm regex for --debug and --decode-internal
* fix
* fix tests
---------
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
* fix(cheatcode): use storage access address instead account access (#9646)
* fix(cheatcode): use storage access address instead account access
* Update crates/cheatcodes/src/evm.rs
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* Fix fmt
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* Feat: Add `cast chain` support for `ink` & `ink-sepolia` (#9652)
feat: add `cast chain` support for `ink` & `ink-sepolia`
* chore(deps): bump `alloy-chains` (#9653)
* fix: do not remove `snapshots` directory before running the test suite (#9645)
* do not remove snapshots directory before running the test suite, the side effect is that any custom group names or file name changes are not reflected - this is delegated to the end user
* do not remove the `snapshots` directory upon running `forge clean`
* fix(cheatcodes): record state diff only if balance changed (#9658)
* fix(config): disable optimizer by default (#9657)
* fix: disable optimizer by default
* Set default optimizer runs to 200
* fix: incorrect repo link in readme for foundry-compilers (#9660)
fix: incorrect repo link
* feat: add arm64 docker image (#9614)
* feat(docker): build arm64 image
Signed-off-by: jsvisa <delweng@gmail.com>
* wip
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "wip"
This reverts commit a152a4c30b7aa510b95d32d5dc8d8d655e90d7f0.
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "feat(docker): build arm64 image"
This reverts commit 09adcbc0f4129f74831588a7e1665a7064eea2f6.
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(make): add cross docker build
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(make): multi tags
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(github): use cross build
Signed-off-by: jsvisa <delweng@gmail.com>
* add Dockerfile.cross
Signed-off-by: jsvisa <delweng@gmail.com>
* fix(make): don't recreate cross-builder
Signed-off-by: jsvisa <delweng@gmail.com>
* make: add log
Signed-off-by: jsvisa <delweng@gmail.com>
* fix: missing \
Signed-off-by: jsvisa <delweng@gmail.com>
* typo
Signed-off-by: jsvisa <delweng@gmail.com>
* Update docker-publish.yml
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* chore: fix test isolate, different address for caller (#9663)
* fix: set debug none for release profile (#9664)
* chore(deps): weekly `cargo update` (#9668)
Locking 41 packages to latest compatible versions
Updating alloy-chains v0.1.54 -> v0.1.55
Updating async-trait v0.1.84 -> v0.1.85
Updating aws-sdk-sts v1.54.0 -> v1.54.1
Updating bitflags v2.6.0 -> v2.7.0
Updating cc v1.2.7 -> v1.2.8
Updating clap v4.5.23 -> v4.5.26
Updating clap_builder v4.5.23 -> v4.5.26
Updating clap_complete v4.5.40 -> v4.5.42
Updating clap_derive v4.5.18 -> v4.5.24
Updating handlebars v6.2.0 -> v6.3.0
Updating inferno v0.12.0 -> v0.12.1
Updating instability v0.3.6 -> v0.3.7
Adding itertools v0.14.0
Updating linux-raw-sys v0.4.14 -> v0.4.15
Updating nybbles v0.3.3 -> v0.3.4
Updating op-alloy-consensus v0.9.0 -> v0.9.2
Updating op-alloy-rpc-types v0.9.0 -> v0.9.2
Updating phf v0.11.2 -> v0.11.3
Updating phf_codegen v0.11.2 -> v0.11.3
Updating phf_generator v0.11.2 -> v0.11.3
Updating phf_macros v0.11.2 -> v0.11.3
Updating phf_shared v0.11.2 -> v0.11.3
Updating pin-project v1.1.7 -> v1.1.8
Updating pin-project-internal v1.1.7 -> v1.1.8
Updating pin-project-lite v0.2.15 -> v0.2.16
Updating prettyplease v0.2.25 -> v0.2.27
Updating proc-macro2 v1.0.92 -> v1.0.93
Updating revm v19.0.0 -> v19.2.0
Updating rustix v0.38.42 -> v0.38.43
Updating rustls v0.23.20 -> v0.23.21
Updating security-framework v3.1.0 -> v3.2.0
Updating security-framework-sys v2.13.0 -> v2.14.0
Updating serde_json v1.0.134 -> v1.0.135
Adding siphasher v1.0.1
Updating syn v2.0.94 -> v2.0.96
Updating thiserror v2.0.9 -> v2.0.11
Updating thiserror-impl v2.0.9 -> v2.0.11
Updating tokio v1.42.0 -> v1.43.0
Updating tokio-macros v2.4.0 -> v2.5.0
Updating uuid v1.11.0 -> v1.11.1
Updating winnow v0.6.22 -> v0.6.24
note: pass `--verbose` to see 12 unchanged dependencies behind latest
Co-authored-by: mattsse <19890894+mattsse@users.noreply.github.com>
* chore(clippy): use next_back instead of last for DoubleEndedIterator (#9666)
* chore(clippy): use next_back instead of last for DoubleEndedIterator
Signed-off-by: jsvisa <delweng@gmail.com>
* more cases
Signed-off-by: jsvisa <delweng@gmail.com>
* last -> next_back
Signed-off-by: jsvisa <delweng@gmail.com>
* len ==0 => is_empty
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
* fix: error handling with retries when waiting for receipt (#9650)
* fix: error handling with retries when waiting for receipt
* Add RetryError::Continue variant, rework receipts tx check
* chore: use "full" for debug (#9670)
* chore: don't warn in RetryError::Continue (#9671)
* test: increase nextest backoff (#9672)
* fix(`script`): use fork_block_number for init sender nonce (#9669)
* fix(`script`): use fork_block_number for init sender nonce
* test
* feat(foundryup): add foundryup self-update (#9609)
* feat(foundryup):: add self-update
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* renmae to --update
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* download to tmp file first
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* fix(`config`): enable `optimizer` when `optimizer_runs` set in config (#9673)
* fix(`config`): enable optimizer if `optimizer_runs` has been set
* test
* fix(`config`): change optimizer properties to Option
* fix
* nit
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix
* nit
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix: propagate color config to TraceWriter (#9679)
* feat(foundryup): check for running processes (#9680)
* chore: add version number to `foundryup` (#9681)
* add version number, display using --version
* use say instead of echo
* add input box for foundryup version to bug template
* fix(config): normalize optimizer settings (#9689)
* ci: use reusable cargo update workflow (#9690)
* chore(deps): bump svm 0.5.10 (#9700)
* fix(verify): strip profile from contract name (#9699)
* feat(`forge`): `--watch` coverage (#9702)
* feat: filter by profile in `vm.getCode` (#9714)
feat: filter by profile in getCode
* feat(chisel): determine proper path to Vm.sol based on proj remappings (#9703)
* chore(deps): weekly `cargo update` (#9715)
* Fix rewrite of User-Agent header (#9707)
* Fix rewrite of User-Agent header
* add test
* add axym to dev deps
* format
* format
* format
* cleanup
* cleanup
* review fixes
* use localhost address
* refactor: properly handle config load errors (#9713)
* refactor: properly handle config load errors
* fix
* doc
* chore: bump version to 0.3.1 to make it easier to identify non-stable builds (#9718)
* bump version number
* bump lockfile
* fix(invariant): handle simple contract names in metrics table (#9724)
* chore: display warning to user if running `nightly` version (#9683)
* use shared compile time version builder
* add warning message on nightly builds
* display warning on nightly builds
* derive nightly build from tag name
* no need to pass IS_NIGHTLY in, derive from tag name
* update warning message
* fix rustfmt
* fix clippy
* clean up, default to always use `-dev` if not on tag
* provide way for users to mute the warning by setting a FOUNDRY_DISABLE_NIGHTLY_WARNING environment variable
* fix fmt
* add profile to version
* fix clippy
* fix fmt
* remove redundant build_timestamp as it is unused
* unify build scripts, update cheatcodes build script, fix vm.getFoundryVersion() cheatcode
* fix clippy
* build timestamp not needed anymore, move to use single build script in foundry_common and export from there
* clean up
* add timestamp due to users / documentation relying on it
* use verbose message format for cli --version, use SemVer compatible unix timestamp for cheatcode, fix nits
* make IS_NIGHTLY_VERSION conditional
* use semver for cheatcode
* fix test
* fix value
* forge fmt
* nits, update getFoundryVersion cheatcode docs
* fix incorrect version passed to forge cli, add unix timestamp to human readable --version
* add tests, add short version / long version, address feedback
* prefer build_timestamp for short version too
* fixes, add anvil tests for parsing
* add back unix timestamp in full version
* fix semver test
* fix(forge): allow install private deps with https and gh token (#9726)
fix(forge): allow install deps with https and gh token
* fix: release process (#9728)
* fix env variable of tag name location
* make tag name more robust, not just matching on strict "nightly" but containing nightly
* prefer using short version in foundryup to avoid cluttering stdout
* pass in tag name (cast to `nightly` if nightly build) during Docker build process
* requires prepare step
* use with instead of env
* env not available in step
* fix build tag
* add test tag for Docker
* pass down tag_name into Dockerfile.cross
* revert docker specific changes, do that as a follow up to unblock
* avoid whitespace diff
* feat: allow remapping of solidity files (#9604)
* feat(remapping): support remapping of .sol files
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(remapping): add testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* typo
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
* fix(`forge`): disable artifacts for coverage (#9692)
* feat(`forge`): diff artifacts dir for coverage
* nit
* nit
* flip `no_artifacts` to true
* nit
* fix: respect `disable_block_gas_limit` config key (#9732)
fix
* chore: bump compilers (#9735)
* feat(cheatcodes): add ability to ignore (multiple) specific and partial reverts in fuzz and invariant tests (#9179)
* initial pass
add support for multiple reasons, add tests
appease clippy
fix broken tests; fix some assume behavior
remove comment and bad error-surfacing logic
remove redundant param, rename revert.rs, create sol test file
remove unnecessary tests from both test_cmd and AssumeNoRevert.t.sol
use empty vec instead of option<vec>; remove commented test
remove assumeNoPartialRevert; update assumeNoPartialRevert
Simplify test, use snapbox assertion
Redact number of runs
implement assume_no_revert change
* rebase and refactor
* fix tests for overloaded; original failing
* remove erroneous return type
* appease clippy
* allow combining expectRevert with assumeNoRevert
* Apply suggestions from code review
nit
* remove magic string const
* fix error string
* improve invariant selectors weight test
* nit
---------
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
* fix: use custom build profile in --version (#9733)
* feat(script): show the broadcasted transactions when verbose>=4 (#9655)
* feat(script): add --dry-run
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): implement the tx print
Signed-off-by: jsvisa <delweng@gmail.com>
* no newline if no args
Signed-off-by: jsvisa <delweng@gmail.com>
* clippy
Signed-off-by: jsvisa <delweng@gmail.com>
* add --dry-run --broadcast testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* lossy stdout test
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): print txs if --dry-run
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): make dry-run as the default behavior
Signed-off-by: jsvisa <delweng@gmail.com>
* fix
Signed-off-by: jsvisa <delweng@gmail.com>
* use writeln instead of push_str
Signed-off-by: jsvisa <delweng@gmail.com>
* implment UIfmt for TransactionMaybeSigned
Signed-off-by: jsvisa <delweng@gmail.com>
* dryrun: use UIfmt instead
Signed-off-by: jsvisa <delweng@gmail.com>
* dryrun: print contract only if call
Signed-off-by: jsvisa <delweng@gmail.com>
* use [..] to test
Signed-off-by: jsvisa <delweng@gmail.com>
* update testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): --dry-run --resume
Signed-off-by: jsvisa <delweng@gmail.com>
* no long input
Signed-off-by: jsvisa <delweng@gmail.com>
* no double newline
Signed-off-by: jsvisa <delweng@gmail.com>
Revert "no double newline"
This reverts commit 6337995e4735b7cb2965962d6a7cd29addf367f7.
Signed-off-by: jsvisa <delweng@gmail.com>
wip
Signed-off-by: jsvisa <delweng@gmail.com>
* print transaction if -vvvv
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "update testcase"
This reverts commit ed5201c78e61863a32cec46a5b52c8934ab539d7.
Signed-off-by: jsvisa <delweng@gmail.com>
* update test for -vvvv broadcast
Signed-off-by: jsvisa <delweng@gmail.com>
* no dryrun module
Signed-off-by: jsvisa <delweng@gmail.com>
* test
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
* chore: remove redundant `test.sol` (#9736)
remove redundant test.sol, follow up of foundry-rs/foundry#9179
* chore: pass and read tag as `CARGO_TAG_NAME` for cross build (#9738)
* chore: pass and read tag as CARGO_TAG_NAME for cross build
* Nit
* fix(remappings): ignore conflicting remappings (#9521)
* fix(remappings): ignore conflicting remappings
* Fix test, redundant remappings are not allowed anymore
* feat(`forge`): inspect - default to pretty output (#9705)
* fix(`forge`): inspect - mk --pretty default
* print_table helper
* print table method-identifier
* print table errors
* print errors events
* nit
* fix
* rm pretty
* fix
* print abi as table
* fix test
* test
* nit
* clippy
* dedup helpers and tests
* fix
* fix(invariant): lookup fuzz interface abi by name or identifier (#9744)
* feat(foundryup): manage custom built versions (#9746)
* fix(foundryup): set proper version for use call (#9750)
* chore: stop supporting legacy console.sol signatures (#8910)
* feat: stop supporting legacy console.sol signatures
* chore: update console.sol in tests
* Fix test
---------
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
* chore(deps): weekly `cargo update` (#9755)
* fix(cheatcode): expect revert only for calls with greater depth than test (#9537)
* fix(cheatcode): expect revert only for calls with greater depth
* Add config to allow expect revert for internal calls
* Fix default config test
* Update crates/cheatcodes/src/inspector.rs
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
---------
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
* fix(`forge bind`): prefix keyword mod names with `r#` (#9761)
* fix(`forge bind`): prefix keyword mod names with r#
* nit
* is_ok
* feat(`cast source`): support alternative explorers (#9762)
* feat(`cast`): support alternative explorers in `source`
* fix
* fix
* feat: override the eyre display handler globally (#9766)
* feat: override the eyre display handler globally
* chore: install handler in anvil
* msg
* ci: set RUST_BACKTRACE=full (#9767)
* perf(coverage): use u32 for IDs, improve analysis (#9763)
* refactor(debugger): renames, less clones
* perf(coverage): use u32 for IDs, improve analysis
* perf: don't keep source maps around, shrink_to_fit
* chore: clippy
* fmt
* fix(coverage): keep EVM version when normalizing for ir-minimum (#9768)
* chore: update README for `1.0` (#9540)
* start adding new benchmarks and recording
* add benchmarks
* add solady compilation benchmark
* crop demo gif to scale better
* clean up
* fix morpho-blue integration test, skewed because of create2 mining
* add compilation comparison for openzeppelin
* add very basic getting started
* add basic examples for each tool
* clean up
* clean up
* use default MIT and Apache 2.0 licenses for auto-recognition by Github
* apply default format of license, using existing fields
* clean up, point to book as primary source rather than crates
* clean up dev docs
* spell fix
* clean up
* nits
* nits
* revert to previous license version, updated format was not necessary - possibly Github related data issue yesterday
* Apply suggestions from code review
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* note dual support
* fix link to actions
Co-authored-by: Lubov66 <radolevanja@gmail.com>
* link directly to existing references rather than overviews
* add designed benchmarks
* improve size slightly
* use center alignment
* fix spacing
* fix spacing
* update image paths
* remove outdated Foundry docs, users should refer to the book
* remove outdated docs, Foundry book should serve as primary source until we actually focus on Foundry as a library
* move demo.gif, remove unused logo
* fix build
* update table in fmt, restore docs for crate
* try fixing rpc that is down
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Lubov66 <radolevanja@gmail.com>
* chore: remove ahash (#9769)
* chore(deps): breaking bumps (#9773)
* chore: install deps and create foundry user in cross built image (#9775)
* chore: fix isolate tests (#9776)
* fix: correctly set `gas_limit` reported by Anvil (#9774)
fix gas_limit reported by anvil
* fix(docker): revert to use ubuntu:22.04 as base image (#9777)
fix: use ubuntu:22.04
* fix(cheatcode): support new 7702 spec (#9779)
fix(cheatcode): update revm with support for updated 7702
* fix: avoid returning None for library addresses during fuzzing (#9771)
* avoid returning None for library addresses during fuzzing
* cargo fmt
* randomize address if it belongs to a deployed lib
* return early in happy path
* Track foundry-zksync version
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Marquis Shanahan <29431502+9547@users.noreply.github.com>
Co-authored-by: Yash Atreya <44857776+yash-atreya@users.noreply.github.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Cruz Molina <cruz.adam.molina@gmail.com>
Co-authored-by: Drake Evans <31104161+DrakeEvans@users.noreply.github.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mattsse <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: Vladimir <bobahbdb@gmail.com>
Co-authored-by: James <james.wenzel@bridge.xyz>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Lubov66 <radolevanja@gmail.com>
Co-authored-by: Nisheeth Barthwal <nisheeth.barthwal@gmail.com>
* fix(ens): don't resolve addr if doesn't contain . (#9635)
* fix(ens): don't resolve addr if doesn't contain .
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* fix invalid ens name
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* feat(`verify`): default to sourcify if etherscan key not provided (#9630)
* feat(`verify`): default to sourcify if etherscan key not provided
* clippy
* nit
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
---------
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
* chore(`forge`): rm regex for --debug and --decode-internal (#9572)
* chore(`forge`): rm regex for --debug and --decode-internal
* fix
* fix tests
---------
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
* fix(cheatcode): use storage access address instead account access (#9646)
* fix(cheatcode): use storage access address instead account access
* Update crates/cheatcodes/src/evm.rs
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* Fix fmt
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* Feat: Add `cast chain` support for `ink` & `ink-sepolia` (#9652)
feat: add `cast chain` support for `ink` & `ink-sepolia`
* chore(deps): bump `alloy-chains` (#9653)
* fix: do not remove `snapshots` directory before running the test suite (#9645)
* do not remove snapshots directory before running the test suite, the side effect is that any custom group names or file name changes are not reflected - this is delegated to the end user
* do not remove the `snapshots` directory upon running `forge clean`
* fix(cheatcodes): record state diff only if balance changed (#9658)
* fix(config): disable optimizer by default (#9657)
* fix: disable optimizer by default
* Set default optimizer runs to 200
* fix: incorrect repo link in readme for foundry-compilers (#9660)
fix: incorrect repo link
* feat: add arm64 docker image (#9614)
* feat(docker): build arm64 image
Signed-off-by: jsvisa <delweng@gmail.com>
* wip
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "wip"
This reverts commit a152a4c30b7aa510b95d32d5dc8d8d655e90d7f0.
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "feat(docker): build arm64 image"
This reverts commit 09adcbc0f4129f74831588a7e1665a7064eea2f6.
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(make): add cross docker build
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(make): multi tags
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(github): use cross build
Signed-off-by: jsvisa <delweng@gmail.com>
* add Dockerfile.cross
Signed-off-by: jsvisa <delweng@gmail.com>
* fix(make): don't recreate cross-builder
Signed-off-by: jsvisa <delweng@gmail.com>
* make: add log
Signed-off-by: jsvisa <delweng@gmail.com>
* fix: missing \
Signed-off-by: jsvisa <delweng@gmail.com>
* typo
Signed-off-by: jsvisa <delweng@gmail.com>
* Update docker-publish.yml
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* chore: fix test isolate, different address for caller (#9663)
* fix: set debug none for release profile (#9664)
* chore(deps): weekly `cargo update` (#9668)
Locking 41 packages to latest compatible versions
Updating alloy-chains v0.1.54 -> v0.1.55
Updating async-trait v0.1.84 -> v0.1.85
Updating aws-sdk-sts v1.54.0 -> v1.54.1
Updating bitflags v2.6.0 -> v2.7.0
Updating cc v1.2.7 -> v1.2.8
Updating clap v4.5.23 -> v4.5.26
Updating clap_builder v4.5.23 -> v4.5.26
Updating clap_complete v4.5.40 -> v4.5.42
Updating clap_derive v4.5.18 -> v4.5.24
Updating handlebars v6.2.0 -> v6.3.0
Updating inferno v0.12.0 -> v0.12.1
Updating instability v0.3.6 -> v0.3.7
Adding itertools v0.14.0
Updating linux-raw-sys v0.4.14 -> v0.4.15
Updating nybbles v0.3.3 -> v0.3.4
Updating op-alloy-consensus v0.9.0 -> v0.9.2
Updating op-alloy-rpc-types v0.9.0 -> v0.9.2
Updating phf v0.11.2 -> v0.11.3
Updating phf_codegen v0.11.2 -> v0.11.3
Updating phf_generator v0.11.2 -> v0.11.3
Updating phf_macros v0.11.2 -> v0.11.3
Updating phf_shared v0.11.2 -> v0.11.3
Updating pin-project v1.1.7 -> v1.1.8
Updating pin-project-internal v1.1.7 -> v1.1.8
Updating pin-project-lite v0.2.15 -> v0.2.16
Updating prettyplease v0.2.25 -> v0.2.27
Updating proc-macro2 v1.0.92 -> v1.0.93
Updating revm v19.0.0 -> v19.2.0
Updating rustix v0.38.42 -> v0.38.43
Updating rustls v0.23.20 -> v0.23.21
Updating security-framework v3.1.0 -> v3.2.0
Updating security-framework-sys v2.13.0 -> v2.14.0
Updating serde_json v1.0.134 -> v1.0.135
Adding siphasher v1.0.1
Updating syn v2.0.94 -> v2.0.96
Updating thiserror v2.0.9 -> v2.0.11
Updating thiserror-impl v2.0.9 -> v2.0.11
Updating tokio v1.42.0 -> v1.43.0
Updating tokio-macros v2.4.0 -> v2.5.0
Updating uuid v1.11.0 -> v1.11.1
Updating winnow v0.6.22 -> v0.6.24
note: pass `--verbose` to see 12 unchanged dependencies behind latest
Co-authored-by: mattsse <19890894+mattsse@users.noreply.github.com>
* chore(clippy): use next_back instead of last for DoubleEndedIterator (#9666)
* chore(clippy): use next_back instead of last for DoubleEndedIterator
Signed-off-by: jsvisa <delweng@gmail.com>
* more cases
Signed-off-by: jsvisa <delweng@gmail.com>
* last -> next_back
Signed-off-by: jsvisa <delweng@gmail.com>
* len ==0 => is_empty
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
* fix: error handling with retries when waiting for receipt (#9650)
* fix: error handling with retries when waiting for receipt
* Add RetryError::Continue variant, rework receipts tx check
* chore: use "full" for debug (#9670)
* chore: don't warn in RetryError::Continue (#9671)
* test: increase nextest backoff (#9672)
* fix(`script`): use fork_block_number for init sender nonce (#9669)
* fix(`script`): use fork_block_number for init sender nonce
* test
* feat(foundryup): add foundryup self-update (#9609)
* feat(foundryup):: add self-update
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* renmae to --update
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* download to tmp file first
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* fix(`config`): enable `optimizer` when `optimizer_runs` set in config (#9673)
* fix(`config`): enable optimizer if `optimizer_runs` has been set
* test
* fix(`config`): change optimizer properties to Option
* fix
* nit
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix
* nit
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix: propagate color config to TraceWriter (#9679)
* feat(foundryup): check for running processes (#9680)
* chore: add version number to `foundryup` (#9681)
* add version number, display using --version
* use say instead of echo
* add input box for foundryup version to bug template
* fix(config): normalize optimizer settings (#9689)
* ci: use reusable cargo update workflow (#9690)
* chore(deps): bump svm 0.5.10 (#9700)
* fix(verify): strip profile from contract name (#9699)
* feat(`forge`): `--watch` coverage (#9702)
* feat: filter by profile in `vm.getCode` (#9714)
feat: filter by profile in getCode
* feat(chisel): determine proper path to Vm.sol based on proj remappings (#9703)
* chore(deps): weekly `cargo update` (#9715)
* Fix rewrite of User-Agent header (#9707)
* Fix rewrite of User-Agent header
* add test
* add axym to dev deps
* format
* format
* format
* cleanup
* cleanup
* review fixes
* use localhost address
* refactor: properly handle config load errors (#9713)
* refactor: properly handle config load errors
* fix
* doc
* chore: bump version to 0.3.1 to make it easier to identify non-stable builds (#9718)
* bump version number
* bump lockfile
* fix(invariant): handle simple contract names in metrics table (#9724)
* chore: display warning to user if running `nightly` version (#9683)
* use shared compile time version builder
* add warning message on nightly builds
* display warning on nightly builds
* derive nightly build from tag name
* no need to pass IS_NIGHTLY in, derive from tag name
* update warning message
* fix rustfmt
* fix clippy
* clean up, default to always use `-dev` if not on tag
* provide way for users to mute the warning by setting a FOUNDRY_DISABLE_NIGHTLY_WARNING environment variable
* fix fmt
* add profile to version
* fix clippy
* fix fmt
* remove redundant build_timestamp as it is unused
* unify build scripts, update cheatcodes build script, fix vm.getFoundryVersion() cheatcode
* fix clippy
* build timestamp not needed anymore, move to use single build script in foundry_common and export from there
* clean up
* add timestamp due to users / documentation relying on it
* use verbose message format for cli --version, use SemVer compatible unix timestamp for cheatcode, fix nits
* make IS_NIGHTLY_VERSION conditional
* use semver for cheatcode
* fix test
* fix value
* forge fmt
* nits, update getFoundryVersion cheatcode docs
* fix incorrect version passed to forge cli, add unix timestamp to human readable --version
* add tests, add short version / long version, address feedback
* prefer build_timestamp for short version too
* fixes, add anvil tests for parsing
* add back unix timestamp in full version
* fix semver test
* fix(forge): allow install private deps with https and gh token (#9726)
fix(forge): allow install deps with https and gh token
* fix: release process (#9728)
* fix env variable of tag name location
* make tag name more robust, not just matching on strict "nightly" but containing nightly
* prefer using short version in foundryup to avoid cluttering stdout
* pass in tag name (cast to `nightly` if nightly build) during Docker build process
* requires prepare step
* use with instead of env
* env not available in step
* fix build tag
* add test tag for Docker
* pass down tag_name into Dockerfile.cross
* revert docker specific changes, do that as a follow up to unblock
* avoid whitespace diff
* feat: allow remapping of solidity files (#9604)
* feat(remapping): support remapping of .sol files
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(remapping): add testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* typo
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
* fix(`forge`): disable artifacts for coverage (#9692)
* feat(`forge`): diff artifacts dir for coverage
* nit
* nit
* flip `no_artifacts` to true
* nit
* fix: respect `disable_block_gas_limit` config key (#9732)
fix
* chore: bump compilers (#9735)
* feat(cheatcodes): add ability to ignore (multiple) specific and partial reverts in fuzz and invariant tests (#9179)
* initial pass
add support for multiple reasons, add tests
appease clippy
fix broken tests; fix some assume behavior
remove comment and bad error-surfacing logic
remove redundant param, rename revert.rs, create sol test file
remove unnecessary tests from both test_cmd and AssumeNoRevert.t.sol
use empty vec instead of option<vec>; remove commented test
remove assumeNoPartialRevert; update assumeNoPartialRevert
Simplify test, use snapbox assertion
Redact number of runs
implement assume_no_revert change
* rebase and refactor
* fix tests for overloaded; original failing
* remove erroneous return type
* appease clippy
* allow combining expectRevert with assumeNoRevert
* Apply suggestions from code review
nit
* remove magic string const
* fix error string
* improve invariant selectors weight test
* nit
---------
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
* fix: use custom build profile in --version (#9733)
* feat(script): show the broadcasted transactions when verbose>=4 (#9655)
* feat(script): add --dry-run
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): implement the tx print
Signed-off-by: jsvisa <delweng@gmail.com>
* no newline if no args
Signed-off-by: jsvisa <delweng@gmail.com>
* clippy
Signed-off-by: jsvisa <delweng@gmail.com>
* add --dry-run --broadcast testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* lossy stdout test
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): print txs if --dry-run
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): make dry-run as the default behavior
Signed-off-by: jsvisa <delweng@gmail.com>
* fix
Signed-off-by: jsvisa <delweng@gmail.com>
* use writeln instead of push_str
Signed-off-by: jsvisa <delweng@gmail.com>
* implment UIfmt for TransactionMaybeSigned
Signed-off-by: jsvisa <delweng@gmail.com>
* dryrun: use UIfmt instead
Signed-off-by: jsvisa <delweng@gmail.com>
* dryrun: print contract only if call
Signed-off-by: jsvisa <delweng@gmail.com>
* use [..] to test
Signed-off-by: jsvisa <delweng@gmail.com>
* update testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): --dry-run --resume
Signed-off-by: jsvisa <delweng@gmail.com>
* no long input
Signed-off-by: jsvisa <delweng@gmail.com>
* no double newline
Signed-off-by: jsvisa <delweng@gmail.com>
Revert "no double newline"
This reverts commit 6337995e4735b7cb2965962d6a7cd29addf367f7.
Signed-off-by: jsvisa <delweng@gmail.com>
wip
Signed-off-by: jsvisa <delweng@gmail.com>
* print transaction if -vvvv
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "update testcase"
This reverts commit ed5201c78e61863a32cec46a5b52c8934ab539d7.
Signed-off-by: jsvisa <delweng@gmail.com>
* update test for -vvvv broadcast
Signed-off-by: jsvisa <delweng@gmail.com>
* no dryrun module
Signed-off-by: jsvisa <delweng@gmail.com>
* test
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
* chore: remove redundant `test.sol` (#9736)
remove redundant test.sol, follow up of foundry-rs/foundry#9179
* chore: pass and read tag as `CARGO_TAG_NAME` for cross build (#9738)
* chore: pass and read tag as CARGO_TAG_NAME for cross build
* Nit
* fix(remappings): ignore conflicting remappings (#9521)
* fix(remappings): ignore conflicting remappings
* Fix test, redundant remappings are not allowed anymore
* feat(`forge`): inspect - default to pretty output (#9705)
* fix(`forge`): inspect - mk --pretty default
* print_table helper
* print table method-identifier
* print table errors
* print errors events
* nit
* fix
* rm pretty
* fix
* print abi as table
* fix test
* test
* nit
* clippy
* dedup helpers and tests
* fix
* fix(invariant): lookup fuzz interface abi by name or identifier (#9744)
* feat(foundryup): manage custom built versions (#9746)
* fix(foundryup): set proper version for use call (#9750)
* chore: stop supporting legacy console.sol signatures (#8910)
* feat: stop supporting legacy console.sol signatures
* chore: update console.sol in tests
* Fix test
---------
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
* chore(deps): weekly `cargo update` (#9755)
* fix(cheatcode): expect revert only for calls with greater depth than test (#9537)
* fix(cheatcode): expect revert only for calls with greater depth
* Add config to allow expect revert for internal calls
* Fix default config test
* Update crates/cheatcodes/src/inspector.rs
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
---------
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
* fix(`forge bind`): prefix keyword mod names with `r#` (#9761)
* fix(`forge bind`): prefix keyword mod names with r#
* nit
* is_ok
* feat(`cast source`): support alternative explorers (#9762)
* feat(`cast`): support alternative explorers in `source`
* fix
* fix
* feat: override the eyre display handler globally (#9766)
* feat: override the eyre display handler globally
* chore: install handler in anvil
* msg
* ci: set RUST_BACKTRACE=full (#9767)
* perf(coverage): use u32 for IDs, improve analysis (#9763)
* refactor(debugger): renames, less clones
* perf(coverage): use u32 for IDs, improve analysis
* perf: don't keep source maps around, shrink_to_fit
* chore: clippy
* fmt
* fix(coverage): keep EVM version when normalizing for ir-minimum (#9768)
* chore: update README for `1.0` (#9540)
* start adding new benchmarks and recording
* add benchmarks
* add solady compilation benchmark
* crop demo gif to scale better
* clean up
* fix morpho-blue integration test, skewed because of create2 mining
* add compilation comparison for openzeppelin
* add very basic getting started
* add basic examples for each tool
* clean up
* clean up
* use default MIT and Apache 2.0 licenses for auto-recognition by Github
* apply default format of license, using existing fields
* clean up, point to book as primary source rather than crates
* clean up dev docs
* spell fix
* clean up
* nits
* nits
* revert to previous license version, updated format was not necessary - possibly Github related data issue yesterday
* Apply suggestions from code review
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* note dual support
* fix link to actions
Co-authored-by: Lubov66 <radolevanja@gmail.com>
* link directly to existing references rather than overviews
* add designed benchmarks
* improve size slightly
* use center alignment
* fix spacing
* fix spacing
* update image paths
* remove outdated Foundry docs, users should refer to the book
* remove outdated docs, Foundry book should serve as primary source until we actually focus on Foundry as a library
* move demo.gif, remove unused logo
* fix build
* update table in fmt, restore docs for crate
* try fixing rpc that is down
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Lubov66 <radolevanja@gmail.com>
* chore: remove ahash (#9769)
* chore(deps): breaking bumps (#9773)
* chore: install deps and create foundry user in cross built image (#9775)
* chore: fix isolate tests (#9776)
* fix: correctly set `gas_limit` reported by Anvil (#9774)
fix gas_limit reported by anvil
* fix(docker): revert to use ubuntu:22.04 as base image (#9777)
fix: use ubuntu:22.04
* fix(cheatcode): support new 7702 spec (#9779)
fix(cheatcode): update revm with support for updated 7702
* fix: avoid returning None for library addresses during fuzzing (#9771)
* avoid returning None for library addresses during fuzzing
* cargo fmt
* randomize address if it belongs to a deployed lib
* return early in happy path
* Make it build, then make it pretty
* Add note zk about op-alloy-consensus dep
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Marquis Shanahan <29431502+9547@users.noreply.github.com>
Co-authored-by: Yash Atreya <44857776+yash-atreya@users.noreply.github.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Cruz Molina <cruz.adam.molina@gmail.com>
Co-authored-by: Drake Evans <31104161+DrakeEvans@users.noreply.github.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mattsse <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: Vladimir <bobahbdb@gmail.com>
Co-authored-by: James <james.wenzel@bridge.xyz>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Lubov66 <radolevanja@gmail.com>
Co-authored-by: Nisheeth Barthwal <nisheeth.barthwal@gmail.com>
* fix(ens): don't resolve addr if doesn't contain . (#9635)
* fix(ens): don't resolve addr if doesn't contain .
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* fix invalid ens name
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* feat(`verify`): default to sourcify if etherscan key not provided (#9630)
* feat(`verify`): default to sourcify if etherscan key not provided
* clippy
* nit
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
---------
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
* chore(`forge`): rm regex for --debug and --decode-internal (#9572)
* chore(`forge`): rm regex for --debug and --decode-internal
* fix
* fix tests
---------
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
* fix(cheatcode): use storage access address instead account access (#9646)
* fix(cheatcode): use storage access address instead account access
* Update crates/cheatcodes/src/evm.rs
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* Fix fmt
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* Feat: Add `cast chain` support for `ink` & `ink-sepolia` (#9652)
feat: add `cast chain` support for `ink` & `ink-sepolia`
* chore(deps): bump `alloy-chains` (#9653)
* fix: do not remove `snapshots` directory before running the test suite (#9645)
* do not remove snapshots directory before running the test suite, the side effect is that any custom group names or file name changes are not reflected - this is delegated to the end user
* do not remove the `snapshots` directory upon running `forge clean`
* fix(cheatcodes): record state diff only if balance changed (#9658)
* fix(config): disable optimizer by default (#9657)
* fix: disable optimizer by default
* Set default optimizer runs to 200
* fix: incorrect repo link in readme for foundry-compilers (#9660)
fix: incorrect repo link
* feat: add arm64 docker image (#9614)
* feat(docker): build arm64 image
Signed-off-by: jsvisa <delweng@gmail.com>
* wip
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "wip"
This reverts commit a152a4c30b7aa510b95d32d5dc8d8d655e90d7f0.
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "feat(docker): build arm64 image"
This reverts commit 09adcbc0f4129f74831588a7e1665a7064eea2f6.
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(make): add cross docker build
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(make): multi tags
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(github): use cross build
Signed-off-by: jsvisa <delweng@gmail.com>
* add Dockerfile.cross
Signed-off-by: jsvisa <delweng@gmail.com>
* fix(make): don't recreate cross-builder
Signed-off-by: jsvisa <delweng@gmail.com>
* make: add log
Signed-off-by: jsvisa <delweng@gmail.com>
* fix: missing \
Signed-off-by: jsvisa <delweng@gmail.com>
* typo
Signed-off-by: jsvisa <delweng@gmail.com>
* Update docker-publish.yml
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* chore: fix test isolate, different address for caller (#9663)
* fix: set debug none for release profile (#9664)
* chore(deps): weekly `cargo update` (#9668)
Locking 41 packages to latest compatible versions
Updating alloy-chains v0.1.54 -> v0.1.55
Updating async-trait v0.1.84 -> v0.1.85
Updating aws-sdk-sts v1.54.0 -> v1.54.1
Updating bitflags v2.6.0 -> v2.7.0
Updating cc v1.2.7 -> v1.2.8
Updating clap v4.5.23 -> v4.5.26
Updating clap_builder v4.5.23 -> v4.5.26
Updating clap_complete v4.5.40 -> v4.5.42
Updating clap_derive v4.5.18 -> v4.5.24
Updating handlebars v6.2.0 -> v6.3.0
Updating inferno v0.12.0 -> v0.12.1
Updating instability v0.3.6 -> v0.3.7
Adding itertools v0.14.0
Updating linux-raw-sys v0.4.14 -> v0.4.15
Updating nybbles v0.3.3 -> v0.3.4
Updating op-alloy-consensus v0.9.0 -> v0.9.2
Updating op-alloy-rpc-types v0.9.0 -> v0.9.2
Updating phf v0.11.2 -> v0.11.3
Updating phf_codegen v0.11.2 -> v0.11.3
Updating phf_generator v0.11.2 -> v0.11.3
Updating phf_macros v0.11.2 -> v0.11.3
Updating phf_shared v0.11.2 -> v0.11.3
Updating pin-project v1.1.7 -> v1.1.8
Updating pin-project-internal v1.1.7 -> v1.1.8
Updating pin-project-lite v0.2.15 -> v0.2.16
Updating prettyplease v0.2.25 -> v0.2.27
Updating proc-macro2 v1.0.92 -> v1.0.93
Updating revm v19.0.0 -> v19.2.0
Updating rustix v0.38.42 -> v0.38.43
Updating rustls v0.23.20 -> v0.23.21
Updating security-framework v3.1.0 -> v3.2.0
Updating security-framework-sys v2.13.0 -> v2.14.0
Updating serde_json v1.0.134 -> v1.0.135
Adding siphasher v1.0.1
Updating syn v2.0.94 -> v2.0.96
Updating thiserror v2.0.9 -> v2.0.11
Updating thiserror-impl v2.0.9 -> v2.0.11
Updating tokio v1.42.0 -> v1.43.0
Updating tokio-macros v2.4.0 -> v2.5.0
Updating uuid v1.11.0 -> v1.11.1
Updating winnow v0.6.22 -> v0.6.24
note: pass `--verbose` to see 12 unchanged dependencies behind latest
Co-authored-by: mattsse <19890894+mattsse@users.noreply.github.com>
* chore(clippy): use next_back instead of last for DoubleEndedIterator (#9666)
* chore(clippy): use next_back instead of last for DoubleEndedIterator
Signed-off-by: jsvisa <delweng@gmail.com>
* more cases
Signed-off-by: jsvisa <delweng@gmail.com>
* last -> next_back
Signed-off-by: jsvisa <delweng@gmail.com>
* len ==0 => is_empty
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
* fix: error handling with retries when waiting for receipt (#9650)
* fix: error handling with retries when waiting for receipt
* Add RetryError::Continue variant, rework receipts tx check
* chore: use "full" for debug (#9670)
* chore: don't warn in RetryError::Continue (#9671)
* test: increase nextest backoff (#9672)
* fix(`script`): use fork_block_number for init sender nonce (#9669)
* fix(`script`): use fork_block_number for init sender nonce
* test
* feat(foundryup): add foundryup self-update (#9609)
* feat(foundryup):: add self-update
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* renmae to --update
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* download to tmp file first
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
* fix(`config`): enable `optimizer` when `optimizer_runs` set in config (#9673)
* fix(`config`): enable optimizer if `optimizer_runs` has been set
* test
* fix(`config`): change optimizer properties to Option
* fix
* nit
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix
* nit
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix: propagate color config to TraceWriter (#9679)
* feat(foundryup): check for running processes (#9680)
* chore: add version number to `foundryup` (#9681)
* add version number, display using --version
* use say instead of echo
* add input box for foundryup version to bug template
* fix(config): normalize optimizer settings (#9689)
* ci: use reusable cargo update workflow (#9690)
* chore(deps): bump svm 0.5.10 (#9700)
* fix(verify): strip profile from contract name (#9699)
* feat(`forge`): `--watch` coverage (#9702)
* feat: filter by profile in `vm.getCode` (#9714)
feat: filter by profile in getCode
* feat(chisel): determine proper path to Vm.sol based on proj remappings (#9703)
* chore(deps): weekly `cargo update` (#9715)
* Fix rewrite of User-Agent header (#9707)
* Fix rewrite of User-Agent header
* add test
* add axym to dev deps
* format
* format
* format
* cleanup
* cleanup
* review fixes
* use localhost address
* refactor: properly handle config load errors (#9713)
* refactor: properly handle config load errors
* fix
* doc
* chore: bump version to 0.3.1 to make it easier to identify non-stable builds (#9718)
* bump version number
* bump lockfile
* fix(invariant): handle simple contract names in metrics table (#9724)
* chore: display warning to user if running `nightly` version (#9683)
* use shared compile time version builder
* add warning message on nightly builds
* display warning on nightly builds
* derive nightly build from tag name
* no need to pass IS_NIGHTLY in, derive from tag name
* update warning message
* fix rustfmt
* fix clippy
* clean up, default to always use `-dev` if not on tag
* provide way for users to mute the warning by setting a FOUNDRY_DISABLE_NIGHTLY_WARNING environment variable
* fix fmt
* add profile to version
* fix clippy
* fix fmt
* remove redundant build_timestamp as it is unused
* unify build scripts, update cheatcodes build script, fix vm.getFoundryVersion() cheatcode
* fix clippy
* build timestamp not needed anymore, move to use single build script in foundry_common and export from there
* clean up
* add timestamp due to users / documentation relying on it
* use verbose message format for cli --version, use SemVer compatible unix timestamp for cheatcode, fix nits
* make IS_NIGHTLY_VERSION conditional
* use semver for cheatcode
* fix test
* fix value
* forge fmt
* nits, update getFoundryVersion cheatcode docs
* fix incorrect version passed to forge cli, add unix timestamp to human readable --version
* add tests, add short version / long version, address feedback
* prefer build_timestamp for short version too
* fixes, add anvil tests for parsing
* add back unix timestamp in full version
* fix semver test
* fix(forge): allow install private deps with https and gh token (#9726)
fix(forge): allow install deps with https and gh token
* fix: release process (#9728)
* fix env variable of tag name location
* make tag name more robust, not just matching on strict "nightly" but containing nightly
* prefer using short version in foundryup to avoid cluttering stdout
* pass in tag name (cast to `nightly` if nightly build) during Docker build process
* requires prepare step
* use with instead of env
* env not available in step
* fix build tag
* add test tag for Docker
* pass down tag_name into Dockerfile.cross
* revert docker specific changes, do that as a follow up to unblock
* avoid whitespace diff
* feat: allow remapping of solidity files (#9604)
* feat(remapping): support remapping of .sol files
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(remapping): add testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* typo
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
* fix(`forge`): disable artifacts for coverage (#9692)
* feat(`forge`): diff artifacts dir for coverage
* nit
* nit
* flip `no_artifacts` to true
* nit
* fix: respect `disable_block_gas_limit` config key (#9732)
fix
* chore: bump compilers (#9735)
* feat(cheatcodes): add ability to ignore (multiple) specific and partial reverts in fuzz and invariant tests (#9179)
* initial pass
add support for multiple reasons, add tests
appease clippy
fix broken tests; fix some assume behavior
remove comment and bad error-surfacing logic
remove redundant param, rename revert.rs, create sol test file
remove unnecessary tests from both test_cmd and AssumeNoRevert.t.sol
use empty vec instead of option<vec>; remove commented test
remove assumeNoPartialRevert; update assumeNoPartialRevert
Simplify test, use snapbox assertion
Redact number of runs
implement assume_no_revert change
* rebase and refactor
* fix tests for overloaded; original failing
* remove erroneous return type
* appease clippy
* allow combining expectRevert with assumeNoRevert
* Apply suggestions from code review
nit
* remove magic string const
* fix error string
* improve invariant selectors weight test
* nit
---------
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
* fix: use custom build profile in --version (#9733)
* feat(script): show the broadcasted transactions when verbose>=4 (#9655)
* feat(script): add --dry-run
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): implement the tx print
Signed-off-by: jsvisa <delweng@gmail.com>
* no newline if no args
Signed-off-by: jsvisa <delweng@gmail.com>
* clippy
Signed-off-by: jsvisa <delweng@gmail.com>
* add --dry-run --broadcast testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* lossy stdout test
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): print txs if --dry-run
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): make dry-run as the default behavior
Signed-off-by: jsvisa <delweng@gmail.com>
* fix
Signed-off-by: jsvisa <delweng@gmail.com>
* use writeln instead of push_str
Signed-off-by: jsvisa <delweng@gmail.com>
* implment UIfmt for TransactionMaybeSigned
Signed-off-by: jsvisa <delweng@gmail.com>
* dryrun: use UIfmt instead
Signed-off-by: jsvisa <delweng@gmail.com>
* dryrun: print contract only if call
Signed-off-by: jsvisa <delweng@gmail.com>
* use [..] to test
Signed-off-by: jsvisa <delweng@gmail.com>
* update testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* feat(script): --dry-run --resume
Signed-off-by: jsvisa <delweng@gmail.com>
* no long input
Signed-off-by: jsvisa <delweng@gmail.com>
* no double newline
Signed-off-by: jsvisa <delweng@gmail.com>
Revert "no double newline"
This reverts commit 6337995e4735b7cb2965962d6a7cd29addf367f7.
Signed-off-by: jsvisa <delweng@gmail.com>
wip
Signed-off-by: jsvisa <delweng@gmail.com>
* print transaction if -vvvv
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "update testcase"
This reverts commit ed5201c78e61863a32cec46a5b52c8934ab539d7.
Signed-off-by: jsvisa <delweng@gmail.com>
* update test for -vvvv broadcast
Signed-off-by: jsvisa <delweng@gmail.com>
* no dryrun module
Signed-off-by: jsvisa <delweng@gmail.com>
* test
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
* chore: remove redundant `test.sol` (#9736)
remove redundant test.sol, follow up of foundry-rs/foundry#9179
* chore: pass and read tag as `CARGO_TAG_NAME` for cross build (#9738)
* chore: pass and read tag as CARGO_TAG_NAME for cross build
* Nit
* fix(remappings): ignore conflicting remappings (#9521)
* fix(remappings): ignore conflicting remappings
* Fix test, redundant remappings are not allowed anymore
* feat(`forge`): inspect - default to pretty output (#9705)
* fix(`forge`): inspect - mk --pretty default
* print_table helper
* print table method-identifier
* print table errors
* print errors events
* nit
* fix
* rm pretty
* fix
* print abi as table
* fix test
* test
* nit
* clippy
* dedup helpers and tests
* fix
* fix(invariant): lookup fuzz interface abi by name or identifier (#9744)
* feat(foundryup): manage custom built versions (#9746)
* fix(foundryup): set proper version for use call (#9750)
* chore: stop supporting legacy console.sol signatures (#8910)
* feat: stop supporting legacy console.sol signatures
* chore: update console.sol in tests
* Fix test
---------
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
* chore(deps): weekly `cargo update` (#9755)
* fix(cheatcode): expect revert only for calls with greater depth than test (#9537)
* fix(cheatcode): expect revert only for calls with greater depth
* Add config to allow expect revert for internal calls
* Fix default config test
* Update crates/cheatcodes/src/inspector.rs
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
---------
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
* fix(`forge bind`): prefix keyword mod names with `r#` (#9761)
* fix(`forge bind`): prefix keyword mod names with r#
* nit
* is_ok
* feat(`cast source`): support alternative explorers (#9762)
* feat(`cast`): support alternative explorers in `source`
* fix
* fix
* feat: override the eyre display handler globally (#9766)
* feat: override the eyre display handler globally
* chore: install handler in anvil
* msg
* ci: set RUST_BACKTRACE=full (#9767)
* perf(coverage): use u32 for IDs, improve analysis (#9763)
* refactor(debugger): renames, less clones
* perf(coverage): use u32 for IDs, improve analysis
* perf: don't keep source maps around, shrink_to_fit
* chore: clippy
* fmt
* fix(coverage): keep EVM version when normalizing for ir-minimum (#9768)
* chore: update README for `1.0` (#9540)
* start adding new benchmarks and recording
* add benchmarks
* add solady compilation benchmark
* crop demo gif to scale better
* clean up
* fix morpho-blue integration test, skewed because of create2 mining
* add compilation comparison for openzeppelin
* add very basic getting started
* add basic examples for each tool
* clean up
* clean up
* use default MIT and Apache 2.0 licenses for auto-recognition by Github
* apply default format of license, using existing fields
* clean up, point to book as primary source rather than crates
* clean up dev docs
* spell fix
* clean up
* nits
* nits
* revert to previous license version, updated format was not necessary - possibly Github related data issue yesterday
* Apply suggestions from code review
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* note dual support
* fix link to actions
Co-authored-by: Lubov66 <radolevanja@gmail.com>
* link directly to existing references rather than overviews
* add designed benchmarks
* improve size slightly
* use center alignment
* fix spacing
* fix spacing
* update image paths
* remove outdated Foundry docs, users should refer to the book
* remove outdated docs, Foundry book should serve as primary source until we actually focus on Foundry as a library
* move demo.gif, remove unused logo
* fix build
* update table in fmt, restore docs for crate
* try fixing rpc that is down
---------
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Lubov66 <radolevanja@gmail.com>
* chore: remove ahash (#9769)
* chore(deps): breaking bumps (#9773)
* chore: install deps and create foundry user in cross built image (#9775)
* chore: fix isolate tests (#9776)
* fix: correctly set `gas_limit` reported by Anvil (#9774)
fix gas_limit reported by anvil
* fix(docker): revert to use ubuntu:22.04 as base image (#9777)
fix: use ubuntu:22.04
* fix(cheatcode): support new 7702 spec (#9779)
fix(cheatcode): update revm with support for updated 7702
* fix: avoid returning None for library addresses during fuzzing (#9771)
* avoid returning None for library addresses during fuzzing
* cargo fmt
* randomize address if it belongs to a deployed lib
* return early in happy path
* feat: Cache invalidation on zksolc version change (#871)
---------
Co-authored-by: elfedy <federico@moonsonglabs.com>
Co-authored-by: Jrigada <jrigada@frba.utn.edu.ar>
* Make it build, then make it pretty
* Add note zk about op-alloy-consensus dep
* chore(main): release foundry-zksync 0.0.5 (#868)
* chore(main): release foundry-zksync 0.0.5
* chore: update Cargo.lock
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: zksync-era-bot <zksync-era-bot@users.noreply.github.com>
* feat: implement compiler backwards compatibility policy (#843)
---------
Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com>
* fix: trim tag name to obtain version (#885)
* trim tag name to obtain version
* include "v" in semantic versions
* chore(main): release foundry-zksync 0.0.6 (#884)
* chore(main): release foundry-zksync 0.0.6
* chore: update Cargo.lock
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: zksync-era-bot <zksync-era-bot@users.noreply.github.com>
* fix: fix installation script for v0.0.6 (#887)
* chore: fix script download url
* fix: address script issue
* chore: fix file path
* fix: foundry man artifact name (#886)
fix foundry man artifact name
* chore(main): release foundry-zksync 0.0.7 (#888)
* chore(main): release foundry-zksync 0.0.7
* chore: update Cargo.lock
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: zksync-era-bot <zksync-era-bot@users.noreply.github.com>
* chore: fix manpage installation (#889)
chore: fix man script
* chore: update openssl (#894)
* refactor: more dedicated modules for zksync-specific code (#891)
* refactor(cast): move `ZkCast` to dedicated module
* refactor(compile): extract zksync methods
* chore: fmt
* feat(create): move zksync code to dedicated module
* chore: fmt
* chore: clippy
* chore: moar fmt
* Fix tests
* Add zksync configuration in test
* Clippy fix
* Fix erroneous paths in test
* Remove extra space
* Add comments clarifying
* Update crates/forge/tests/cli/config.rs
Co-authored-by: Karrq <francesco@moonsonglabs.com>
* retrieve forge binary
* Add tests for expect revert in zksync
* chore: fix base gas limit test (#9826)
---------
Signed-off-by: 9547 <29431502+9547@users.noreply.github.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Marquis Shanahan <29431502+9547@users.noreply.github.com>
Co-authored-by: Yash Atreya <44857776+yash-atreya@users.noreply.github.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Cruz Molina <cruz.adam.molina@gmail.com>
Co-authored-by: Drake Evans <31104161+DrakeEvans@users.noreply.github.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mattsse <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: Vladimir <bobahbdb@gmail.com>
Co-authored-by: James <james.wenzel@bridge.xyz>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Lubov66 <radolevanja@gmail.com>
Co-authored-by: Nisheeth Barthwal <nisheeth.barthwal@gmail.com>
Co-authored-by: Tincho <MBerguer@users.noreply.github.com>
Co-authored-by: elfedy <federico@moonsonglabs.com>
Co-authored-by: zksync-era-bot <zksync-era-bot@users.noreply.github.com>
Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com>
Co-authored-by: Dustin Brickwood <dustinbrickwood204@gmail.com>
Co-authored-by: Karrq <francesco@moonsonglabs.com>
elfedy
approved these changes
Feb 5, 2025
Karrq
approved these changes
Feb 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What 💻
Evidence 📷
Test passes
Documentation 📚
Please ensure the following before submitting your PR: