From cafde780e32a0a34187ae128e3c760b4ef269958 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 15 Sep 2024 21:29:31 +0200 Subject: [PATCH] update command output (#1293) Co-authored-by: mattsse --- src/SUMMARY.md | 2 + src/output/cast/cast-call | 2 +- src/output/cheatcodes/forge-test-cheatcodes | 4 +- .../forge-test-cheatcodes-expectrevert | 4 +- .../cheatcodes/forge-test-cheatcodes-tracing | 4 +- src/output/cheatcodes/forge-test-simple | 4 +- src/output/deps/forge-install | 2 +- src/output/foundry-template/forge-build | 2 +- src/output/foundry-template/forge-test | 4 +- src/output/fuzz_testing/forge-test-fail-fuzz | 8 +-- src/output/fuzz_testing/forge-test-no-fuzz | 6 +-- .../fuzz_testing/forge-test-success-fuzz | 8 +-- src/output/hello_foundry/forge-build | 2 +- src/output/hello_foundry/forge-init | 4 +- src/output/hello_foundry/forge-test | 6 +-- src/output/nft_tutorial/forge-test | 6 +-- .../forge-test-match-contract-and-test | 4 +- src/output/test_filters/forge-test-match-path | 4 +- src/reference/cli/SUMMARY.md | 2 + src/reference/cli/cast.md | 2 + src/reference/cli/cast/codehash.md | 49 +++++++++++++++++++ src/reference/cli/cast/storage-root.md | 49 +++++++++++++++++++ src/reference/cli/forge/coverage.md | 9 ++++ src/reference/cli/forge/snapshot.md | 9 ++++ src/reference/cli/forge/test.md | 9 ++++ 25 files changed, 168 insertions(+), 37 deletions(-) create mode 100644 src/reference/cli/cast/codehash.md create mode 100644 src/reference/cli/cast/storage-root.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 64dc61512..7d78e634a 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -153,6 +153,7 @@ - [`cast chain-id`](./reference/cli/cast/chain-id.md) - [`cast client`](./reference/cli/cast/client.md) - [`cast code`](./reference/cli/cast/code.md) + - [`cast codehash`](./reference/cli/cast/codehash.md) - [`cast codesize`](./reference/cli/cast/codesize.md) - [`cast completions`](./reference/cli/cast/completions.md) - [`cast compute-address`](./reference/cli/cast/compute-address.md) @@ -206,6 +207,7 @@ - [`cast sig`](./reference/cli/cast/sig.md) - [`cast sig-event`](./reference/cli/cast/sig-event.md) - [`cast storage`](./reference/cli/cast/storage.md) + - [`cast storage-root`](./reference/cli/cast/storage-root.md) - [`cast to-ascii`](./reference/cli/cast/to-ascii.md) - [`cast to-base`](./reference/cli/cast/to-base.md) - [`cast to-bytes32`](./reference/cli/cast/to-bytes32.md) diff --git a/src/output/cast/cast-call b/src/output/cast/cast-call index 4fc52169e..11cb3adb6 100644 --- a/src/output/cast/cast-call +++ b/src/output/cast/cast-call @@ -3,6 +3,6 @@ $ cast call 0x6b175474e89094c44da98b954eedeac495271d0f "totalSupply()(uint256)" --rpc-url https://eth-mainnet.alchemyapi.io/v2/Lc7oIGYeL_QvInzI0Wiu_pOZZDEKBrdf // ANCHOR_END: command // ANCHOR: output -3170495913189442034513939468 [3.17e27] +3174399289401489504386774821 [3.174e27] // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/cheatcodes/forge-test-cheatcodes b/src/output/cheatcodes/forge-test-cheatcodes index 8cad28017..41e792272 100644 --- a/src/output/cheatcodes/forge-test-cheatcodes +++ b/src/output/cheatcodes/forge-test-cheatcodes @@ -8,8 +8,8 @@ No files changed, compilation skipped Ran 2 tests for test/OwnerUpOnly.t.sol:OwnerUpOnlyTest [PASS] testFail_IncrementAsNotOwner() (gas: 8314) [PASS] test_IncrementAsOwner() (gas: 29161) -Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 619.81µs (226.79µs CPU time) +Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 664.58µs (394.64µs CPU time) -Ran 1 test suite in 5.79ms (619.81µs CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests) +Ran 1 test suite in 5.56ms (664.58µs CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/cheatcodes/forge-test-cheatcodes-expectrevert b/src/output/cheatcodes/forge-test-cheatcodes-expectrevert index 4efc61dfa..7c2d23798 100644 --- a/src/output/cheatcodes/forge-test-cheatcodes-expectrevert +++ b/src/output/cheatcodes/forge-test-cheatcodes-expectrevert @@ -7,8 +7,8 @@ No files changed, compilation skipped Ran 1 test for test/OwnerUpOnly.t.sol:OwnerUpOnlyTest [PASS] test_IncrementAsOwner() (gas: 29161) -Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 444.03µs (66.11µs CPU time) +Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 432.83µs (73.34µs CPU time) -Ran 1 test suite in 5.19ms (444.03µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) +Ran 1 test suite in 5.24ms (432.83µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/cheatcodes/forge-test-cheatcodes-tracing b/src/output/cheatcodes/forge-test-cheatcodes-tracing index cfd86fbb7..a43086be4 100644 --- a/src/output/cheatcodes/forge-test-cheatcodes-tracing +++ b/src/output/cheatcodes/forge-test-cheatcodes-tracing @@ -15,8 +15,8 @@ Traces: │ └─ ← [Revert] Unauthorized() └─ ← [Revert] Unauthorized() -Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 433.26µs (77.13µs CPU time) +Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 472.94µs (85.28µs CPU time) -Ran 1 test suite in 5.40ms (433.26µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) +Ran 1 test suite in 6.85ms (472.94µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/cheatcodes/forge-test-simple b/src/output/cheatcodes/forge-test-simple index f2a974e8b..21e560c1a 100644 --- a/src/output/cheatcodes/forge-test-simple +++ b/src/output/cheatcodes/forge-test-simple @@ -9,8 +9,8 @@ Compiler run successful! Ran 1 test for test/OwnerUpOnly.t.sol:OwnerUpOnlyTest [PASS] test_IncrementAsOwner() (gas: 29161) -Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 496.37µs (62.73µs CPU time) +Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 502.64µs (76.22µs CPU time) -Ran 1 test suite in 5.11ms (496.37µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) +Ran 1 test suite in 5.39ms (502.64µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/deps/forge-install b/src/output/deps/forge-install index 8211defce..ac9fa0ad4 100644 --- a/src/output/deps/forge-install +++ b/src/output/deps/forge-install @@ -3,7 +3,7 @@ $ forge install transmissions11/solmate // ANCHOR_END: command // ANCHOR: output -Installing solmate in /tmp/tmp.loajw50FRG/deps/lib/solmate (url: Some("https://github.com/transmissions11/solmate"), tag: None) +Installing solmate in /tmp/tmp.ujUfkrt2cm/deps/lib/solmate (url: Some("https://github.com/transmissions11/solmate"), tag: None) Installed solmate // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/foundry-template/forge-build b/src/output/foundry-template/forge-build index 5a6b51dd8..546d405dd 100644 --- a/src/output/foundry-template/forge-build +++ b/src/output/foundry-template/forge-build @@ -4,7 +4,7 @@ $ forge build // ANCHOR_END: command // ANCHOR: output Compiling 28 files with Solc 0.8.25 -Solc 0.8.25 finished in 1.32s +Solc 0.8.25 finished in 1.35s Compiler run successful! // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/foundry-template/forge-test b/src/output/foundry-template/forge-test index 408402442..f404e58f5 100644 --- a/src/output/foundry-template/forge-test +++ b/src/output/foundry-template/forge-test @@ -9,8 +9,8 @@ Ran 3 tests for test/Foo.t.sol:FooTest [PASS] testFork_Example() (gas: 3779) [PASS] testFuzz_Example(uint256) (runs: 1000, μ: 9111, ~: 9111) [PASS] test_Example() (gas: 11861) -Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 19.04ms (18.79ms CPU time) +Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 21.39ms (21.15ms CPU time) -Ran 1 test suite in 20.35ms (19.04ms CPU time): 3 tests passed, 0 failed, 0 skipped (3 total tests) +Ran 1 test suite in 22.80ms (21.39ms CPU time): 3 tests passed, 0 failed, 0 skipped (3 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/fuzz_testing/forge-test-fail-fuzz b/src/output/fuzz_testing/forge-test-fail-fuzz index 232706bc7..648ca9fc1 100644 --- a/src/output/fuzz_testing/forge-test-fail-fuzz +++ b/src/output/fuzz_testing/forge-test-fail-fuzz @@ -4,13 +4,13 @@ $ forge test --allow-failure // ANCHOR_END: command // ANCHOR: output Compiling 1 files with Solc 0.8.10 -Solc 0.8.10 finished in 1.08s +Solc 0.8.10 finished in 1.11s Compiler run successful! Ran 1 test for test/Safe.t.sol:SafeTest -[FAIL. Reason: EvmError: Revert; counterexample: calldata=0x29facca7000000000000000000000066f6bb1b3be1fe6c5d5788edaf7460ed010d6a3127 args=[150481751349135664552475923271531884613343831011623 [1.504e50]]] testFuzz_Withdraw(uint256) (runs: 0, μ: 0, ~: 0) -Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 746.34µs (360.02µs CPU time) +[FAIL: EvmError: Revert; counterexample: calldata=0x29facca7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd args=[115792089237316195423570985008687907853269984665640564039457584007913129639933 [1.157e77]]] testFuzz_Withdraw(uint256) (runs: 0, μ: 0, ~: 0) +Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 813.07µs (371.85µs CPU time) -Ran 1 test suite in 5.68ms (746.34µs CPU time): 0 tests passed, 1 failed, 0 skipped (1 total tests) +Ran 1 test suite in 5.55ms (813.07µs CPU time): 0 tests passed, 1 failed, 0 skipped (1 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/fuzz_testing/forge-test-no-fuzz b/src/output/fuzz_testing/forge-test-no-fuzz index 9744ddc96..4321af131 100644 --- a/src/output/fuzz_testing/forge-test-no-fuzz +++ b/src/output/fuzz_testing/forge-test-no-fuzz @@ -4,13 +4,13 @@ $ forge test // ANCHOR_END: command // ANCHOR: output Compiling 24 files with Solc 0.8.10 -Solc 0.8.10 finished in 1.13s +Solc 0.8.10 finished in 1.12s Compiler run successful! Ran 1 test for test/Safe.t.sol:SafeTest [PASS] test_Withdraw() (gas: 19463) -Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 439.62µs (83.21µs CPU time) +Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 450.98µs (64.92µs CPU time) -Ran 1 test suite in 7.59ms (439.62µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) +Ran 1 test suite in 5.26ms (450.98µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/fuzz_testing/forge-test-success-fuzz b/src/output/fuzz_testing/forge-test-success-fuzz index 50217d50c..735846e61 100644 --- a/src/output/fuzz_testing/forge-test-success-fuzz +++ b/src/output/fuzz_testing/forge-test-success-fuzz @@ -4,13 +4,13 @@ $ forge test // ANCHOR_END: command // ANCHOR: output Compiling 1 files with Solc 0.8.10 -Solc 0.8.10 finished in 1.09s +Solc 0.8.10 finished in 1.08s Compiler run successful! Ran 1 test for test/Safe.t.sol:SafeTest -[PASS] testFuzz_Withdraw(uint96) (runs: 257, μ: 19474, ~: 19631) -Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 4.74ms (4.36ms CPU time) +[PASS] testFuzz_Withdraw(uint96) (runs: 257, μ: 19318, ~: 19631) +Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 5.00ms (4.63ms CPU time) -Ran 1 test suite in 6.08ms (4.74ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) +Ran 1 test suite in 6.25ms (5.00ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/hello_foundry/forge-build b/src/output/hello_foundry/forge-build index 8f934dec9..d53d96e61 100644 --- a/src/output/hello_foundry/forge-build +++ b/src/output/hello_foundry/forge-build @@ -4,7 +4,7 @@ $ forge build // ANCHOR_END: command // ANCHOR: output Compiling 27 files with Solc 0.8.19 -Solc 0.8.19 finished in 1.08s +Solc 0.8.19 finished in 1.13s Compiler run successful! // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/hello_foundry/forge-init b/src/output/hello_foundry/forge-init index cc012a41c..5e37254f4 100644 --- a/src/output/hello_foundry/forge-init +++ b/src/output/hello_foundry/forge-init @@ -3,8 +3,8 @@ $ forge init hello_foundry // ANCHOR_END: command // ANCHOR: output -Initializing /tmp/tmp.irCHfCx3Yj/hello_foundry... -Installing forge-std in /tmp/tmp.irCHfCx3Yj/hello_foundry/lib/forge-std (url: Some("https://github.com/foundry-rs/forge-std"), tag: None) +Initializing /tmp/tmp.4sHKCeqDkn/hello_foundry... +Installing forge-std in /tmp/tmp.4sHKCeqDkn/hello_foundry/lib/forge-std (url: Some("https://github.com/foundry-rs/forge-std"), tag: None) Installed forge-std v1.9.2 Initialized forge project // ANCHOR_END: output diff --git a/src/output/hello_foundry/forge-test b/src/output/hello_foundry/forge-test index 7cc9b9830..bd9e417e5 100644 --- a/src/output/hello_foundry/forge-test +++ b/src/output/hello_foundry/forge-test @@ -6,10 +6,10 @@ $ forge test No files changed, compilation skipped Ran 2 tests for test/Counter.t.sol:CounterTest -[PASS] testFuzz_SetNumber(uint256) (runs: 256, μ: 31132, ~: 31288) +[PASS] testFuzz_SetNumber(uint256) (runs: 256, μ: 31288, ~: 31288) [PASS] test_Increment() (gas: 31303) -Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 8.17ms (7.80ms CPU time) +Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 5.74ms (5.33ms CPU time) -Ran 1 test suite in 9.37ms (8.17ms CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests) +Ran 1 test suite in 6.65ms (5.74ms CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/nft_tutorial/forge-test b/src/output/nft_tutorial/forge-test index 565864982..0f1ba6e7b 100644 --- a/src/output/nft_tutorial/forge-test +++ b/src/output/nft_tutorial/forge-test @@ -14,7 +14,7 @@ Ran 8 tests for test/OpenZeppelinNft.t.sol:OpenZeppelinNftTests [PASS] testMintPricePaid() (gas: 81554) [PASS] testNewMintOwnerRegistered() (gas: 190956) [PASS] testSafeContractReceiver() (gas: 273132) -Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 1.66ms (1.22ms CPU time) +Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 1.68ms (1.29ms CPU time) Ran 8 tests for test/SolmateNft.sol:SolmateNftTests [PASS] testBalanceIncremented() (gas: 217400) @@ -25,8 +25,8 @@ Ran 8 tests for test/SolmateNft.sol:SolmateNftTests [PASS] testMintPricePaid() (gas: 81321) [PASS] testNewMintOwnerRegistered() (gas: 190741) [PASS] testSafeContractReceiver() (gas: 272636) -Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 1.68ms (2.04ms CPU time) +Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 1.68ms (1.45ms CPU time) -Ran 2 test suites in 5.39ms (3.35ms CPU time): 16 tests passed, 0 failed, 0 skipped (16 total tests) +Ran 2 test suites in 5.79ms (3.37ms CPU time): 16 tests passed, 0 failed, 0 skipped (16 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/test_filters/forge-test-match-contract-and-test b/src/output/test_filters/forge-test-match-contract-and-test index dbe3c905b..dac9f0883 100644 --- a/src/output/test_filters/forge-test-match-contract-and-test +++ b/src/output/test_filters/forge-test-match-contract-and-test @@ -10,8 +10,8 @@ Compiler run successful! Ran 2 tests for test/ComplicatedContract.t.sol:ComplicatedContractTest [PASS] test_DepositERC20() (gas: 102193) [PASS] test_DepositETH() (gas: 61414) -Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 1.35ms (1.69ms CPU time) +Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 1.56ms (1.33ms CPU time) -Ran 1 test suite in 5.28ms (1.35ms CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests) +Ran 1 test suite in 5.53ms (1.56ms CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/test_filters/forge-test-match-path b/src/output/test_filters/forge-test-match-path index 6924f4144..0d34a57a7 100644 --- a/src/output/test_filters/forge-test-match-path +++ b/src/output/test_filters/forge-test-match-path @@ -9,8 +9,8 @@ Compiler run successful! Ran 1 test for test/ContractB.t.sol:ContractBTest [PASS] testExample() (gas: 257) -Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 463.79µs (78.60µs CPU time) +Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 385.29µs (56.10µs CPU time) -Ran 1 test suite in 5.11ms (463.79µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) +Ran 1 test suite in 5.12ms (385.29µs CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/reference/cli/SUMMARY.md b/src/reference/cli/SUMMARY.md index 05437c22f..e66031b0a 100644 --- a/src/reference/cli/SUMMARY.md +++ b/src/reference/cli/SUMMARY.md @@ -69,6 +69,7 @@ - [`cast chain-id`](./cast/chain-id.md) - [`cast client`](./cast/client.md) - [`cast code`](./cast/code.md) + - [`cast codehash`](./cast/codehash.md) - [`cast codesize`](./cast/codesize.md) - [`cast completions`](./cast/completions.md) - [`cast compute-address`](./cast/compute-address.md) @@ -122,6 +123,7 @@ - [`cast sig`](./cast/sig.md) - [`cast sig-event`](./cast/sig-event.md) - [`cast storage`](./cast/storage.md) + - [`cast storage-root`](./cast/storage-root.md) - [`cast to-ascii`](./cast/to-ascii.md) - [`cast to-base`](./cast/to-base.md) - [`cast to-bytes32`](./cast/to-bytes32.md) diff --git a/src/reference/cli/cast.md b/src/reference/cli/cast.md index 1c2057692..37e3a5767 100644 --- a/src/reference/cli/cast.md +++ b/src/reference/cli/cast.md @@ -31,6 +31,7 @@ Commands: chain-id Get the Ethereum chain ID [aliases: ci, cid] client Get the current client version [aliases: cl] code Get the runtime bytecode of a contract [aliases: co] + codehash Get the codehash for an account codesize Get the runtime bytecode size of a contract [aliases: cs] completions Generate shell completions script [aliases: com] compute-address Compute the contract address from a given nonce and deployer address @@ -91,6 +92,7 @@ Commands: sig Get the selector for a function [aliases: si] sig-event Generate event signatures from event string [aliases: se] storage Get the raw value of a contract's storage slot [aliases: st] + storage-root Get the storage root for an account [aliases: sr] to-ascii Convert hex data to an ASCII string [aliases: --to-ascii, tas, 2as] to-base Converts a number of one base to another [aliases: --to-base, --to-radix, to-radix, tr, 2r] diff --git a/src/reference/cli/cast/codehash.md b/src/reference/cli/cast/codehash.md new file mode 100644 index 000000000..658a0f3c3 --- /dev/null +++ b/src/reference/cli/cast/codehash.md @@ -0,0 +1,49 @@ +# cast codehash + +Get the codehash for an account + +```bash +$ cast codehash --help +Usage: cast codehash [OPTIONS] [SLOTS]... + +Arguments: + + The address to get the codehash for + + [SLOTS]... + The storage slot numbers (hex or decimal) + +Options: + -B, --block + The block height to query at. + + Can also be the tags earliest, finalized, safe, latest, or pending. + + -r, --rpc-url + The RPC endpoint + + [env: ETH_RPC_URL=] + + --flashbots + Use the Flashbots RPC URL with fast mode (). + + This shares the transaction privately with all registered builders. + + See: + + --jwt-secret + JWT Secret for the RPC endpoint. + + The JWT secret will be used to create a JWT for a RPC. For example, the following can be + used to simulate a CL `engine_forkchoiceUpdated` call: + + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 + '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' + + [env: ETH_RPC_JWT_SECRET=] + + -h, --help + Print help (see a summary with '-h') +``` \ No newline at end of file diff --git a/src/reference/cli/cast/storage-root.md b/src/reference/cli/cast/storage-root.md new file mode 100644 index 000000000..fbf53cb64 --- /dev/null +++ b/src/reference/cli/cast/storage-root.md @@ -0,0 +1,49 @@ +# cast storage-root + +Get the storage root for an account + +```bash +$ cast storage-root --help +Usage: cast storage-root [OPTIONS] [SLOTS]... + +Arguments: + + The address to get the storage root for + + [SLOTS]... + The storage slot numbers (hex or decimal) + +Options: + -B, --block + The block height to query at. + + Can also be the tags earliest, finalized, safe, latest, or pending. + + -r, --rpc-url + The RPC endpoint + + [env: ETH_RPC_URL=] + + --flashbots + Use the Flashbots RPC URL with fast mode (). + + This shares the transaction privately with all registered builders. + + See: + + --jwt-secret + JWT Secret for the RPC endpoint. + + The JWT secret will be used to create a JWT for a RPC. For example, the following can be + used to simulate a CL `engine_forkchoiceUpdated` call: + + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 + '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' + + [env: ETH_RPC_JWT_SECRET=] + + -h, --help + Print help (see a summary with '-h') +``` \ No newline at end of file diff --git a/src/reference/cli/forge/coverage.md b/src/reference/cli/forge/coverage.md index feb3773d3..17cd1c390 100644 --- a/src/reference/cli/forge/coverage.md +++ b/src/reference/cli/forge/coverage.md @@ -49,6 +49,12 @@ Test options: For more fine-grained control of which fuzz case is run, see forge run. + --flamegraph + Generate a flamegraph for a single test. Implies `--decode-internal` + + --flamechart + Generate a flamechart for a single test. Implies `--decode-internal` + --decode-internal [] Whether to identify internal functions in traces. @@ -104,6 +110,9 @@ Display options: --json Output test results in JSON format + --junit + Output test results as JUnit XML report + -l, --list List tests instead of running them diff --git a/src/reference/cli/forge/snapshot.md b/src/reference/cli/forge/snapshot.md index 909895846..709f087b6 100644 --- a/src/reference/cli/forge/snapshot.md +++ b/src/reference/cli/forge/snapshot.md @@ -47,6 +47,12 @@ Test options: For more fine-grained control of which fuzz case is run, see forge run. + --flamegraph + Generate a flamegraph for a single test. Implies `--decode-internal` + + --flamechart + Generate a flamechart for a single test. Implies `--decode-internal` + --decode-internal [] Whether to identify internal functions in traces. @@ -102,6 +108,9 @@ Display options: --json Output test results in JSON format + --junit + Output test results as JUnit XML report + -l, --list List tests instead of running them diff --git a/src/reference/cli/forge/test.md b/src/reference/cli/forge/test.md index 322233edd..d5c38929b 100644 --- a/src/reference/cli/forge/test.md +++ b/src/reference/cli/forge/test.md @@ -27,6 +27,12 @@ Test options: For more fine-grained control of which fuzz case is run, see forge run. + --flamegraph + Generate a flamegraph for a single test. Implies `--decode-internal` + + --flamechart + Generate a flamechart for a single test. Implies `--decode-internal` + --decode-internal [] Whether to identify internal functions in traces. @@ -82,6 +88,9 @@ Display options: --json Output test results in JSON format + --junit + Output test results as JUnit XML report + -l, --list List tests instead of running them