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

[pull] master from foundry-rs:master #141

Open
wants to merge 1,657 commits into
base: master
Choose a base branch
from
Open

Conversation

pull[bot]
Copy link

@pull pull bot commented Apr 16, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

klkvr and others added 27 commits June 17, 2024 19:41
* fix: move paths to BuildArgs

* tests

* dirs -> paths
* chore(deps): pin alloy 0.1.1

* bump revm and apply patch
* implemented latest_block dump/load

* update to dump/load all blocks instead of only latest

* refactored state loading into storage.rs, and added load-dump cycle test

* fix clippy errors for anvil

* remove SerializableHeader and use Header (now serializable)

* clippy happy

---------

Co-authored-by: Matthias Seitz <[email protected]>
* feat(invariant): add excludeSelectors() filter

* Apply suggestions from code review

Co-authored-by: DaniPopes <[email protected]>

* Review changes: shorter err message

---------

Co-authored-by: DaniPopes <[email protected]>
* fix(cheatcodes): handle delegatecalls in vm.mockCalls using `bytecode_address`

* add: repro test

* nit: forge fmt
…rmat. (#8195)

* feat(cast): support readable time for cast block

* fix: remove `time`

* Update crates/common/src/fmt/ui.rs

* fmt

---------

Co-authored-by: fenghaojiang <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
* update to use anvil rpc types

Co-authored-by: moricho <[email protected]>

* remove redundant types

* use Index from Alloy

* update rev

* switch to use alloy-rpc-types-anvil patch

* use Index from `alloy_rpc_types_eth` instead of duplicate implementation in `alloy_rpc_types_anvil`

* use Index from rpc_types

* move namespaced imports of rpc-types-* to rpc-types metacrate

* make sure to enable "eth" namespace because default features are not enabled

---------

Co-authored-by: moricho <[email protected]>
* feat: add daily CI job for `--isolate` feature

* fix tests

* wip

* fix tests

* wip

* wip

* fix

* update group name for nextest
* remove patch, update to `0.1.2`, marking `0.1.*` for flexibility

* revert `0.1.*`, pin to `0.1.2`
* chore: consolidate TestResult logic

* Update crates/forge/src/result.rs

Co-authored-by: DaniPopes <[email protected]>

* Changes after review: pass by value

---------

Co-authored-by: DaniPopes <[email protected]>
* feat: add --no-request-size-limit option to anvil

* chore: flip logic, fmt, improve cli help

* nit

---------

Co-authored-by: DaniPopes <[email protected]>
* chore: fix more clippy

* chore: missing lints.workspace

* docs
zerosnacks and others added 30 commits August 3, 2024 05:58
)

add compiler-version as alias of `use`
…ture (#8561)

* feat(forge): add `eventIdentifiers` to `forge inspect`

* chore: remove quotes from output

* fix: test

* fix: output 32 bytes of the event identifier

* fix: add back `0x` prefix

* chore: modify forge inspect <contract> events instead of implementing a new cmd
fix(coverage): recognize if/else statements without brackets
chore: bump forge-std version used for tests

Co-authored-by: DaniPopes <[email protected]>
* wip

* fix

* fix sign

* fix

---------

Co-authored-by: Matthias Seitz <[email protected]>
* feat(`cast interface`): allow retrieving abi from contract name

* fix: cast tests

* test: add test that fetches weth interface from etherscan

* Revert "fix: cast tests"

This reverts commit c0ec3e9.

* fix: cast tests on macos

---------

Co-authored-by: Matthias Seitz <[email protected]>
* fix(coverage): use first opcode for if block anchor

* Better naming
chore(coverage): remove SinglePathBranch kind, use Branch with first opcode
* add call json flag

* update json param to option

* address comments
* First doc --watch implementation

* refactored doc watch implementation

* Removed static paths

* fix fmt

* Update crates/forge/bin/cmd/watch.rs

Co-authored-by: zerosnacks <[email protected]>

* Update crates/forge/bin/cmd/watch.rs

Co-authored-by: zerosnacks <[email protected]>

* Update crates/forge/bin/cmd/doc/mod.rs

Co-authored-by: zerosnacks <[email protected]>

* Update crates/forge/bin/cmd/watch.rs

Co-authored-by: zerosnacks <[email protected]>

* removed unnecessary clones

* chore: nits

---------

Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
…uring deployment (#8625)

* add Mandala & Karura & Acala

* update alloy-chains

* fix
* eth_getBlockReceipts using BlockID

* fix block receipt

* Update crates/anvil/src/eth/backend/mem/mod.rs

Co-authored-by: zerosnacks <[email protected]>

* Update crates/anvil/src/eth/api.rs

Co-authored-by: zerosnacks <[email protected]>

* code review

---------

Co-authored-by: joaocosta9 <[email protected]>
Co-authored-by: zerosnacks <[email protected]>
* fix(fmt): fix disable line for first / last block lines

* Fix win spacing

* Reuse visit_block in visit_fn

* Fix win failure
fix(cast run): print custom revert

Co-authored-by: Matthias Seitz <[email protected]>
…#8622)

* feat(cheatcodes): add ability to set seed for `vm.randomUint()`

* chore: move `vm.randomAddress` test to its own contract

* feat(cheatcodes): add ability to set seed for `vm.randomAddress()`

* feat: use global seed instead of introducing new cheatcodes

* chore: clean up

* chore: clean up tests

* feat: add `fuzz.seed` as inline parameter in tests

* chore: trim 0x prefix

* chore: nit

* test: update random tests

* fix: inline parsing on fuzz seed

* test: set seed and update random tests

* chore: remove inline config for seed

* chore: clean up

* chore: clean up tests

* test: remove deterministic tests from testdata

* test: implement forgetest to test that forge test with a seed produces deterministic random values

* test: fix tests

* chore: clean up

* test: remove seed

* fix: clippy and forge-fmt

* chore: clean up

* chore: rename test contract

* fix: lint

* chore: move rng to state instead of creating a new one when calling `vm.random*` cheats

* chore: nit

* test: update tests

* fix: clippy

* chore: nit

* chore: clean up

* Update crates/cheatcodes/src/inspector.rs

Co-authored-by: DaniPopes <[email protected]>

* test: only check outputs are the same or different

* chore: clean up

* chore: nits

---------

Co-authored-by: DaniPopes <[email protected]>
* extended JsonResult structure

* removed breakpoints in JsonResult

* chore: nits

---------

Co-authored-by: DaniPopes <[email protected]>
* add auth parsing in RPC config

* add comment explaining auth param

* add missing field in test

* fix formatting

* fix formatting

* fix failing test

* fix failing test

* undo wrong formatting

* remove reminiscent ;

* auth option as enum to be able to resolve env vars

* add test for auth resolving and new field to resolved endpoint

---------

Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
* initial fix

* fix error

* make script tests pass

* Update crates/script/src/runner.rs

Co-authored-by: Matthias Seitz <[email protected]>

* Update crates/script/src/runner.rs

Co-authored-by: Matthias Seitz <[email protected]>

* Update crates/script/src/runner.rs

Co-authored-by: Matthias Seitz <[email protected]>

* change style

---------

Co-authored-by: Matthias Seitz <[email protected]>
fix(fmt): write single param on multiline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet