Skip to content

Commit

Permalink
feat: use foundry-cheatcodes implementations (#6131)
Browse files Browse the repository at this point in the history
* feat: use `foundry-cheatcodes` in `foundry-evm`

* fix: deps

* docs: retire `foundry-abi`

* chore: refactor profiles

* docs: obsolete -> deprecated

* fix: fs tests

* fix: repro 5808

* fix: implement `rpc` and `eth_getLogs`

* fix: int test

* chore: reorder EthGetLogs struct fields

* chore: update JSON

* docs: update dev docs and cheatcodes README

* chore: rename magic bytes constants

* fix: Error ABI encoding

* fix: ABI-encode Error as `CheatCodeError(string)`

* chore: remove bad re-export

* test: update script panic message

* fix: broadcast origin and caller

* test: update some test messages

* test: add more debug

* test: don't run commands twice...

* chore: clippy

* fix: tracing-subscriber features

* fix: re-disable color

* fixes

* chore: clippy

* fix: error encoding

* feat: auto generate solidity interface

* opts

* ci: fix forge-fmt

* feat: re-implement `cool`

* fix: FfiResult exit_code->exitCode

* chore: update

* fix: scripting expects

* fix: rename test output methods

* test: update expect msgs

* chore: update broadcast staticcall error message

* chore: only expand `#[vm]` macro in `cfg(test)`

* test: update precompile error msg

* test: update env tests

* fix: expectCall value gt 0

* fix: fs error messages

* fix: rm huff abi test

* fix: forge fmt

* fix: JSON coerce error msg

* fix: JSON non-object error message

* chore: random stuff

* tmp: comment out sleep fuzz test

* chore: mark generated files in .gitattributes

* chore: uncapitalize an error msg

* fix: use BTreeMap for serialized JSONs

* chore: better tracing

* fix: properly serialize JSON arrays

* fix: missing rpc url error message

* fix: mock calls

* chore: clippy

* fix: update broadcast sender nonce, not CREATE2 deployer

* chore: use trace! for verbose cheatcode logs

* feat: extend schema to include other items

* feat: generate Vm from expanded interface

* chore: clippy

* fix: use forge-std pr

* fix: use forge-std master
  • Loading branch information
DaniPopes committed Oct 31, 2023
1 parent 30ae702 commit 799b820
Show file tree
Hide file tree
Showing 97 changed files with 6,847 additions and 11,379 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
**/*.sol linguist-language=Solidity

crates/abi/src/bindings/*.rs linguist-generated
crates/cheatcodes/assets/*.json linguist-generated
testdata/cheats/Vm.sol linguist-generated
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ jobs:
with:
cache-on-failure: true
- name: forge fmt
run: cargo run --bin forge -- fmt --check testdata/
shell: bash
# We have to ignore at shell level because testdata/ is not a valid Foundry project,
# so running `forge fmt` with `--root testdata` won't actually check anything
run: |
shopt -s extglob
cargo run --bin forge -- fmt --check testdata/**/!(Vm).sol
feature-checks:
name: feature checks
Expand Down
Loading

0 comments on commit 799b820

Please sign in to comment.