Skip to content

Commit 9b76f84

Browse files
authored
chore: document EIP-7702 cheatcodes and add vm.sh script to automate pulling in Vm.sol reference (#1400)
1 parent fee05b0 commit 9b76f84

File tree

8 files changed

+2518
-452
lines changed

8 files changed

+2518
-452
lines changed

scripts/gen_output.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ source "$SCRIPTS/gen_output/cast.sh"
77
source "$SCRIPTS/gen_output/chisel.sh"
88
source "$SCRIPTS/gen_output/forge.sh"
99
source "$SCRIPTS/gen_output/help.sh"
10+
source "$SCRIPTS/gen_output/vm.sh"
1011

1112
need_cmd git
1213
need_cmd mktemp
@@ -21,3 +22,4 @@ gen_help
2122
gen_cast
2223
gen_chisel
2324
gen_forge
25+
gen_vm

scripts/gen_output/vm.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
set -eo pipefail
3+
4+
gen_vm() {
5+
need_cmd curl
6+
7+
echo "Generating output (vm)..."
8+
mkdir -p "$OUTPUT_DIR/vm"
9+
10+
curl https://raw.githubusercontent.com/foundry-rs/forge-std/refs/heads/master/src/Vm.sol > "$OUTPUT_DIR/vm/Vm.sol"
11+
12+
echo OK.
13+
}
14+
15+
gen_vm

src/SUMMARY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,11 @@
491491
- [`serializeJson`](./cheatcodes/serialize-json.md)
492492
- [`writeJson`](./cheatcodes/write-json.md)
493493
- [`writeToml`](./cheatcodes/write-toml.md)
494+
- [Signing](./cheatcodes/signing.md)
495+
- [`sign`](./cheatcodes/sign.md)
496+
- [`signDelegation`](./cheatcodes/sign-delegation.md)
494497
- [Utilities](./cheatcodes/utilities.md)
495498
- [`addr`](./cheatcodes/addr.md)
496-
- [`sign`](./cheatcodes/sign.md)
497499
- [`skip`](./cheatcodes/skip.md)
498500
- [`label`](./cheatcodes/label.md)
499501
- [`getLabel`](./cheatcodes/get-label.md)

0 commit comments

Comments
 (0)