Skip to content

Commit 799b820

Browse files
authored
feat: use foundry-cheatcodes implementations (foundry-rs#6131)
* 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
1 parent 30ae702 commit 799b820

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+6847
-11379
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
**/*.sol linguist-language=Solidity
33

44
crates/abi/src/bindings/*.rs linguist-generated
5+
crates/cheatcodes/assets/*.json linguist-generated
6+
testdata/cheats/Vm.sol linguist-generated

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ jobs:
163163
with:
164164
cache-on-failure: true
165165
- name: forge fmt
166-
run: cargo run --bin forge -- fmt --check testdata/
166+
shell: bash
167+
# We have to ignore at shell level because testdata/ is not a valid Foundry project,
168+
# so running `forge fmt` with `--root testdata` won't actually check anything
169+
run: |
170+
shopt -s extglob
171+
cargo run --bin forge -- fmt --check testdata/**/!(Vm).sol
167172
168173
feature-checks:
169174
name: feature checks

0 commit comments

Comments
 (0)