From 832034c66802434144da0fa2499870467d69855f Mon Sep 17 00:00:00 2001 From: Maxim Andreev Date: Sat, 20 Jan 2024 15:32:00 +0300 Subject: [PATCH] Update autogenerated docs (#1093) * fix(scripts/gen_output.sh): add 'npm install' for foundry-template * update autogenerated docs with ./scripts/gen_output.sh --- scripts/gen_output/forge.sh | 5 +++- src/SUMMARY.md | 2 ++ src/output/cast/cast-call | 2 +- src/output/cheatcodes/forge-test-cheatcodes | 2 +- .../forge-test-cheatcodes-expectrevert | 2 +- .../cheatcodes/forge-test-cheatcodes-tracing | 2 +- src/output/cheatcodes/forge-test-simple | 4 ++-- src/output/deps/forge-install | 2 +- src/output/deps/forge-remappings | 2 +- src/output/forge_tree/forge-tree | 2 +- src/output/forge_tree/forge-tree-no-dedupe | 4 ++-- src/output/foundry-template/forge-build | 4 ++-- src/output/foundry-template/forge-install | 2 +- src/output/foundry-template/forge-test | 2 +- src/output/fuzz_testing/forge-test-fail-fuzz | 6 ++--- src/output/fuzz_testing/forge-test-no-fuzz | 4 ++-- .../fuzz_testing/forge-test-success-fuzz | 6 ++--- src/output/hello_foundry/forge-build | 4 ++-- src/output/hello_foundry/forge-init | 6 ++--- src/output/hello_foundry/forge-test | 4 ++-- src/output/hello_foundry/tree-with-files | 3 ++- src/output/nft_tutorial/forge-test | 24 +++++++++---------- .../forge-test-match-contract-and-test | 4 ++-- src/output/test_filters/forge-test-match-path | 2 +- src/reference/cli/SUMMARY.md | 2 ++ src/reference/cli/anvil.md | 9 ++++--- src/reference/cli/cast.md | 1 + src/reference/cli/cast/access-list.md | 6 ++--- src/reference/cli/cast/admin.md | 6 ++--- src/reference/cli/cast/age.md | 6 ++--- src/reference/cli/cast/balance.md | 6 ++--- src/reference/cli/cast/base-fee.md | 6 ++--- src/reference/cli/cast/block-number.md | 6 ++--- src/reference/cli/cast/block.md | 6 ++--- src/reference/cli/cast/call.md | 6 ++--- src/reference/cli/cast/chain-id.md | 6 ++--- src/reference/cli/cast/chain.md | 6 ++--- src/reference/cli/cast/client.md | 6 ++--- src/reference/cli/cast/code.md | 6 ++--- src/reference/cli/cast/codesize.md | 6 ++--- src/reference/cli/cast/compute-address.md | 6 ++--- src/reference/cli/cast/estimate.md | 6 ++--- src/reference/cli/cast/find-block.md | 6 ++--- src/reference/cli/cast/gas-price.md | 6 ++--- src/reference/cli/cast/implementation.md | 6 ++--- src/reference/cli/cast/logs.md | 6 ++--- src/reference/cli/cast/lookup-address.md | 6 ++--- src/reference/cli/cast/nonce.md | 6 ++--- src/reference/cli/cast/proof.md | 6 ++--- src/reference/cli/cast/publish.md | 6 ++--- src/reference/cli/cast/receipt.md | 6 ++--- src/reference/cli/cast/resolve-name.md | 6 ++--- src/reference/cli/cast/rpc.md | 6 ++--- src/reference/cli/cast/run.md | 6 ++--- src/reference/cli/cast/selectors.md | 15 ++++++++++++ src/reference/cli/cast/send.md | 6 ++--- src/reference/cli/cast/storage.md | 6 ++--- src/reference/cli/cast/tx.md | 6 ++--- src/reference/cli/cast/wallet.md | 19 ++++++++------- .../cli/cast/wallet/derive-private-key.md | 15 ++++++++++++ src/reference/cli/cast/wallet/sign.md | 4 ++-- src/reference/cli/chisel.md | 5 ++++ src/reference/cli/forge.md | 2 +- src/reference/cli/forge/build.md | 4 ++-- src/reference/cli/forge/config.md | 4 ++-- src/reference/cli/forge/coverage.md | 2 +- src/reference/cli/forge/create.md | 6 ++--- src/reference/cli/forge/script.md | 4 ++-- src/reference/cli/forge/snapshot.md | 4 ++-- src/reference/cli/forge/test.md | 4 ++-- src/reference/cli/forge/verify-contract.md | 5 ++++ 71 files changed, 217 insertions(+), 168 deletions(-) create mode 100644 src/reference/cli/cast/selectors.md create mode 100644 src/reference/cli/cast/wallet/derive-private-key.md diff --git a/scripts/gen_output/forge.sh b/scripts/gen_output/forge.sh index 94fbded45..a6e2d562c 100644 --- a/scripts/gen_output/forge.sh +++ b/scripts/gen_output/forge.sh @@ -4,6 +4,8 @@ set -eo pipefail gen_forge() { need_cmd git need_cmd forge + need_cmd tree + need_cmd npm echo "Generating output (forge)..." @@ -23,6 +25,7 @@ gen_forge() { in_temp foundry-template git clone https://github.com/PaulRBerg/foundry-template cd foundry-template + npm install run_command "$OUTPUT_DIR/foundry-template/forge-install" \ forge install run_command "$OUTPUT_DIR/foundry-template/forge-build" \ @@ -57,7 +60,7 @@ gen_forge() { run_command "$OUTPUT_DIR/cheatcodes/forge-test-cheatcodes-tracing" \ forge test -vvvv --match-test testFail_IncrementAsNotOwner --match-path test/OwnerUpOnly.t.sol - + run_command "$OUTPUT_DIR/cheatcodes/forge-test-cheatcodes-expectrevert" \ forge test --match-test "test_IncrementAsOwner|test_IncrementAsNotOwner" --match-path test/OwnerUpOnly.t.sol diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 4575df66c..0a9acb8d3 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -176,6 +176,7 @@ - [`cast resolve-name`](./reference/cli/cast/resolve-name.md) - [`cast rpc`](./reference/cli/cast/rpc.md) - [`cast run`](./reference/cli/cast/run.md) + - [`cast selectors`](./reference/cli/cast/selectors.md) - [`cast send`](./reference/cli/cast/send.md) - [`cast send --create`](./reference/cli/cast/send/--create.md) - [`cast shl`](./reference/cli/cast/shl.md) @@ -207,6 +208,7 @@ - [`cast wallet verify`](./reference/cli/cast/wallet/verify.md) - [`cast wallet import`](./reference/cli/cast/wallet/import.md) - [`cast wallet list`](./reference/cli/cast/wallet/list.md) + - [`cast wallet derive-private-key`](./reference/cli/cast/wallet/derive-private-key.md) - [`anvil`](./reference/cli/anvil.md) - [`anvil completions`](./reference/cli/anvil/completions.md) - [`anvil generate-fig-spec`](./reference/cli/anvil/generate-fig-spec.md) diff --git a/src/output/cast/cast-call b/src/output/cast/cast-call index 0e70a4bae..4e0878938 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 -3661149686895302267334347892 [3.661e27] +3687858787626171424333349502 [3.687e27] // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/cheatcodes/forge-test-cheatcodes b/src/output/cheatcodes/forge-test-cheatcodes index 95e2861c2..ca569f194 100644 --- a/src/output/cheatcodes/forge-test-cheatcodes +++ b/src/output/cheatcodes/forge-test-cheatcodes @@ -8,7 +8,7 @@ No files changed, compilation skipped Running 2 tests for test/OwnerUpOnly.t.sol:OwnerUpOnlyTest [PASS] testFail_IncrementAsNotOwner() (gas: 8391) [PASS] test_IncrementAsOwner() (gas: 29205) -Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 557.18µs +Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 3.74ms Ran 1 test suites: 2 tests passed, 0 failed, 0 skipped (2 total tests) // ANCHOR_END: output diff --git a/src/output/cheatcodes/forge-test-cheatcodes-expectrevert b/src/output/cheatcodes/forge-test-cheatcodes-expectrevert index a875e518a..832d913dc 100644 --- a/src/output/cheatcodes/forge-test-cheatcodes-expectrevert +++ b/src/output/cheatcodes/forge-test-cheatcodes-expectrevert @@ -7,7 +7,7 @@ No files changed, compilation skipped Running 1 test for test/OwnerUpOnly.t.sol:OwnerUpOnlyTest [PASS] test_IncrementAsOwner() (gas: 29205) -Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 593.45µs +Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.11ms Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output diff --git a/src/output/cheatcodes/forge-test-cheatcodes-tracing b/src/output/cheatcodes/forge-test-cheatcodes-tracing index de6f2fc6e..dbca84cea 100644 --- a/src/output/cheatcodes/forge-test-cheatcodes-tracing +++ b/src/output/cheatcodes/forge-test-cheatcodes-tracing @@ -15,7 +15,7 @@ Traces: │ └─ ← Unauthorized() └─ ← Unauthorized() -Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 494.95µs +Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 4.68ms Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output diff --git a/src/output/cheatcodes/forge-test-simple b/src/output/cheatcodes/forge-test-simple index d69d950bf..d2dc55e68 100644 --- a/src/output/cheatcodes/forge-test-simple +++ b/src/output/cheatcodes/forge-test-simple @@ -4,12 +4,12 @@ $ forge test --match-test test_IncrementAsOwner // ANCHOR_END: command // ANCHOR: output Compiling 7 files with 0.8.10 -Solc 0.8.10 finished in 1.14s +Solc 0.8.10 finished in 1.91s Compiler run successful! Running 1 test for test/OwnerUpOnly.t.sol:OwnerUpOnlyTest [PASS] test_IncrementAsOwner() (gas: 29205) -Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 513.04µs +Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 2.93ms Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output diff --git a/src/output/deps/forge-install b/src/output/deps/forge-install index 88174f85e..e0b48b4f6 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.RuUcta5ik5/deps/lib/solmate (url: Some("https://github.com/transmissions11/solmate"), tag: None) +Installing solmate in /tmp/tmp.RARskz40S1/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/deps/forge-remappings b/src/output/deps/forge-remappings index 33ac40f25..fe940e54c 100644 --- a/src/output/deps/forge-remappings +++ b/src/output/deps/forge-remappings @@ -3,7 +3,7 @@ $ forge remappings // ANCHOR_END: command // ANCHOR: output -ds-test/=lib/solmate/lib/ds-test/src/ +ds-test/=lib/forge-std/lib/ds-test/src/ forge-std/=lib/forge-std/src/ solmate/=lib/solmate/src/ weird-erc20/=lib/weird-erc20/src/ diff --git a/src/output/forge_tree/forge-tree b/src/output/forge_tree/forge-tree index 8ac3d93f3..49e755d56 100644 --- a/src/output/forge_tree/forge-tree +++ b/src/output/forge_tree/forge-tree @@ -33,7 +33,7 @@ test/OpenZeppelinNft.t.sol 0.8.10 │ │ ├── lib/forge-std/src/Vm.sol >=0.6.0 │ │ ├── lib/forge-std/src/console.sol >=0.4.22 <0.9.0 │ │ └── lib/forge-std/src/console2.sol >=0.4.22 <0.9.0 -│ └── lib/solmate/lib/ds-test/src/test.sol >=0.4.23 +│ └── lib/forge-std/lib/ds-test/src/test.sol >=0.5.0 ├── src/OpenZeppelinNft.sol 0.8.10 (*) └── lib/openzeppelin-contracts/contracts/token/ERC721/IERC721Receiver.sol ^0.8.0 test/SolmateNft.sol 0.8.10 diff --git a/src/output/forge_tree/forge-tree-no-dedupe b/src/output/forge_tree/forge-tree-no-dedupe index e447faaed..b4e908431 100644 --- a/src/output/forge_tree/forge-tree-no-dedupe +++ b/src/output/forge_tree/forge-tree-no-dedupe @@ -40,7 +40,7 @@ test/OpenZeppelinNft.t.sol 0.8.10 │ │ ├── lib/forge-std/src/Vm.sol >=0.6.0 │ │ ├── lib/forge-std/src/console.sol >=0.4.22 <0.9.0 │ │ └── lib/forge-std/src/console2.sol >=0.4.22 <0.9.0 -│ └── lib/solmate/lib/ds-test/src/test.sol >=0.4.23 +│ └── lib/forge-std/lib/ds-test/src/test.sol >=0.5.0 ├── src/OpenZeppelinNft.sol 0.8.10 │ ├── lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol ^0.8.0 │ │ ├── lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol ^0.8.0 @@ -69,7 +69,7 @@ test/SolmateNft.sol 0.8.10 │ │ ├── lib/forge-std/src/Vm.sol >=0.6.0 │ │ ├── lib/forge-std/src/console.sol >=0.4.22 <0.9.0 │ │ └── lib/forge-std/src/console2.sol >=0.4.22 <0.9.0 -│ └── lib/solmate/lib/ds-test/src/test.sol >=0.4.23 +│ └── lib/forge-std/lib/ds-test/src/test.sol >=0.5.0 └── src/SolmateNft.sol 0.8.10 ├── lib/solmate/src/tokens/ERC721.sol >=0.8.0 ├── lib/openzeppelin-contracts/contracts/utils/Strings.sol ^0.8.0 diff --git a/src/output/foundry-template/forge-build b/src/output/foundry-template/forge-build index c8a1ae1b6..5fc85ae24 100644 --- a/src/output/foundry-template/forge-build +++ b/src/output/foundry-template/forge-build @@ -3,8 +3,8 @@ $ forge build // ANCHOR_END: command // ANCHOR: output -Compiling 21 files with 0.8.21 -Solc 0.8.21 finished in 2.49s +Compiling 23 files with 0.8.23 +Solc 0.8.23 finished in 4.36s Compiler run successful! // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/foundry-template/forge-install b/src/output/foundry-template/forge-install index 493587451..aa861b619 100644 --- a/src/output/foundry-template/forge-install +++ b/src/output/foundry-template/forge-install @@ -3,6 +3,6 @@ $ forge install // ANCHOR_END: command // ANCHOR: output -Updating dependencies in /tmp/tmp.D9KQiNypsa/foundry-template/lib + // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/foundry-template/forge-test b/src/output/foundry-template/forge-test index 0a8a17b0f..7532b6695 100644 --- a/src/output/foundry-template/forge-test +++ b/src/output/foundry-template/forge-test @@ -9,7 +9,7 @@ Running 3 tests for test/Foo.t.sol:FooTest [PASS] testFork_Example() (gas: 3759) [PASS] testFuzz_Example(uint256) (runs: 1000, μ: 8402, ~: 8402) [PASS] test_Example() (gas: 8676) -Test result: ok. 3 passed; 0 failed; 0 skipped; finished in 49.60ms +Test result: ok. 3 passed; 0 failed; 0 skipped; finished in 385.71ms Ran 1 test suites: 3 tests passed, 0 failed, 0 skipped (3 total tests) // ANCHOR_END: output diff --git a/src/output/fuzz_testing/forge-test-fail-fuzz b/src/output/fuzz_testing/forge-test-fail-fuzz index da208711d..22c9838b4 100644 --- a/src/output/fuzz_testing/forge-test-fail-fuzz +++ b/src/output/fuzz_testing/forge-test-fail-fuzz @@ -4,12 +4,12 @@ $ forge test --allow-failure // ANCHOR_END: command // ANCHOR: output Compiling 1 files with 0.8.10 -Solc 0.8.10 finished in 406.80ms +Solc 0.8.10 finished in 618.05ms Compiler run successful! Running 1 test for test/Safe.t.sol:SafeTest -[FAIL. Reason: EvmError: Revert; counterexample: calldata=0x29facca70000000000000000000000000000000000000001000000000000000000000000 args=[79228162514264337593543950336 [7.922e28]]] testFuzz_Withdraw(uint256) (runs: 53, μ: 19509, ~: 19509) -Test result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 4.63ms +[FAIL. Reason: EvmError: Revert; counterexample: calldata=0x29facca70000000000000000000000000000000000000001000000000000000000000000 args=[79228162514264337593543950336 [7.922e28]]] testFuzz_Withdraw(uint256) (runs: 7, μ: 19509, ~: 19509) +Test result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 73.74ms Ran 1 test suites: 0 tests passed, 1 failed, 0 skipped (1 total tests) // ANCHOR_END: output diff --git a/src/output/fuzz_testing/forge-test-no-fuzz b/src/output/fuzz_testing/forge-test-no-fuzz index 8dd5e6dc3..5d5c7cb7b 100644 --- a/src/output/fuzz_testing/forge-test-no-fuzz +++ b/src/output/fuzz_testing/forge-test-no-fuzz @@ -4,12 +4,12 @@ $ forge test // ANCHOR_END: command // ANCHOR: output Compiling 6 files with 0.8.10 -Solc 0.8.10 finished in 940.45ms +Solc 0.8.10 finished in 1.45s Compiler run successful! Running 1 test for test/Safe.t.sol:SafeTest [PASS] test_Withdraw() (gas: 19441) -Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 529.95µs +Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.97ms Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output diff --git a/src/output/fuzz_testing/forge-test-success-fuzz b/src/output/fuzz_testing/forge-test-success-fuzz index 0cb127383..6b9b29719 100644 --- a/src/output/fuzz_testing/forge-test-success-fuzz +++ b/src/output/fuzz_testing/forge-test-success-fuzz @@ -4,12 +4,12 @@ $ forge test // ANCHOR_END: command // ANCHOR: output Compiling 1 files with 0.8.10 -Solc 0.8.10 finished in 409.38ms +Solc 0.8.10 finished in 580.07ms Compiler run successful! Running 1 test for test/Safe.t.sol:SafeTest -[PASS] testFuzz_Withdraw(uint96) (runs: 256, μ: 19046, ~: 19675) -Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 10.06ms +[PASS] testFuzz_Withdraw(uint96) (runs: 256, μ: 19360, ~: 19675) +Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 164.46ms Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output diff --git a/src/output/hello_foundry/forge-build b/src/output/hello_foundry/forge-build index 9778e571d..26e5ba9e6 100644 --- a/src/output/hello_foundry/forge-build +++ b/src/output/hello_foundry/forge-build @@ -3,8 +3,8 @@ $ forge build // ANCHOR_END: command // ANCHOR: output -Compiling 24 files with 0.8.22 -Solc 0.8.22 finished in 2.83s +Compiling 24 files with 0.8.23 +Solc 0.8.23 finished in 4.10s 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 8c174c346..54cdef5ba 100644 --- a/src/output/hello_foundry/forge-init +++ b/src/output/hello_foundry/forge-init @@ -3,9 +3,9 @@ $ forge init hello_foundry // ANCHOR_END: command // ANCHOR: output -Initializing /tmp/tmp.TGx5vzEka3/hello_foundry... -Installing forge-std in /tmp/tmp.TGx5vzEka3/hello_foundry/lib/forge-std (url: Some("https://github.com/foundry-rs/forge-std"), tag: None) - Installed forge-std v1.7.3 +Initializing /tmp/tmp.mOoAWPMsGx/hello_foundry... +Installing forge-std in /tmp/tmp.mOoAWPMsGx/hello_foundry/lib/forge-std (url: Some("https://github.com/foundry-rs/forge-std"), tag: None) + Installed forge-std v1.7.6 Initialized forge project // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/hello_foundry/forge-test b/src/output/hello_foundry/forge-test index 23f9e0db8..7de581006 100644 --- a/src/output/hello_foundry/forge-test +++ b/src/output/hello_foundry/forge-test @@ -6,9 +6,9 @@ $ forge test No files changed, compilation skipped Running 2 tests for test/Counter.t.sol:CounterTest -[PASS] testFuzz_SetNumber(uint256) (runs: 256, μ: 27242, ~: 28409) +[PASS] testFuzz_SetNumber(uint256) (runs: 256, μ: 27553, ~: 28409) [PASS] test_Increment() (gas: 28379) -Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 9.54ms +Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 96.80ms Ran 1 test suites: 2 tests passed, 0 failed, 0 skipped (2 total tests) // ANCHOR_END: output diff --git a/src/output/hello_foundry/tree-with-files b/src/output/hello_foundry/tree-with-files index fd5176d59..80f813c80 100644 --- a/src/output/hello_foundry/tree-with-files +++ b/src/output/hello_foundry/tree-with-files @@ -13,6 +13,7 @@ $ tree . -L 3 -I output │   ├── LICENSE-MIT │   ├── package.json │   ├── README.md +│   ├── scripts │   ├── src │   └── test ├── README.md @@ -23,6 +24,6 @@ $ tree . -L 3 -I output └── test └── Counter.t.sol -9 directories, 10 files +10 directories, 10 files // ANCHOR_END: output // ANCHOR_END: all diff --git a/src/output/nft_tutorial/forge-test b/src/output/nft_tutorial/forge-test index 309e62d11..d11d81f7a 100644 --- a/src/output/nft_tutorial/forge-test +++ b/src/output/nft_tutorial/forge-test @@ -5,17 +5,6 @@ $ forge test // ANCHOR: output No files changed, compilation skipped -Running 8 tests for test/SolmateNft.sol:SolmateNftTests -[PASS] testBalanceIncremented() (gas: 217400) -[PASS] testFailMaxSupplyReached() (gas: 134524) -[PASS] testFailMintToZeroAddress() (gas: 34521) -[PASS] testFailNoMintPricePaid() (gas: 5568) -[PASS] testFailUnSafeContractReceiver() (gas: 3524) -[PASS] testMintPricePaid() (gas: 81321) -[PASS] testNewMintOwnerRegistered() (gas: 190741) -[PASS] testSafeContractReceiver() (gas: 272636) -Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 1.30ms - Running 8 tests for test/OpenZeppelinNft.t.sol:OpenZeppelinNftTests [PASS] testBalanceIncremented() (gas: 217829) [PASS] testFailMaxSupplyReached() (gas: 134524) @@ -25,7 +14,18 @@ Running 8 tests for test/OpenZeppelinNft.t.sol:OpenZeppelinNftTests [PASS] testMintPricePaid() (gas: 81554) [PASS] testNewMintOwnerRegistered() (gas: 190956) [PASS] testSafeContractReceiver() (gas: 273132) -Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 1.34ms +Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 7.91ms + +Running 8 tests for test/SolmateNft.sol:SolmateNftTests +[PASS] testBalanceIncremented() (gas: 217400) +[PASS] testFailMaxSupplyReached() (gas: 134524) +[PASS] testFailMintToZeroAddress() (gas: 34521) +[PASS] testFailNoMintPricePaid() (gas: 5568) +[PASS] testFailUnSafeContractReceiver() (gas: 3524) +[PASS] testMintPricePaid() (gas: 81321) +[PASS] testNewMintOwnerRegistered() (gas: 190741) +[PASS] testSafeContractReceiver() (gas: 272636) +Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 7.19ms Ran 2 test suites: 16 tests passed, 0 failed, 0 skipped (16 total tests) // ANCHOR_END: output 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 5890f79f6..d5b425a6e 100644 --- a/src/output/test_filters/forge-test-match-contract-and-test +++ b/src/output/test_filters/forge-test-match-contract-and-test @@ -4,13 +4,13 @@ $ forge test --match-contract ComplicatedContractTest --match-test test_Deposit // ANCHOR_END: command // ANCHOR: output Compiling 7 files with 0.8.10 -Solc 0.8.10 finished in 1.14s +Solc 0.8.10 finished in 1.71s Compiler run successful! Running 2 tests for test/ComplicatedContract.t.sol:ComplicatedContractTest [PASS] test_DepositERC20() (gas: 102281) [PASS] test_DepositETH() (gas: 61458) -Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 865.64µs +Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 7.37ms Ran 1 test suites: 2 tests passed, 0 failed, 0 skipped (2 total tests) // ANCHOR_END: output diff --git a/src/output/test_filters/forge-test-match-path b/src/output/test_filters/forge-test-match-path index 8ce51daba..534be38e2 100644 --- a/src/output/test_filters/forge-test-match-path +++ b/src/output/test_filters/forge-test-match-path @@ -7,7 +7,7 @@ No files changed, compilation skipped Running 1 test for test/ContractB.t.sol:ContractBTest [PASS] testExample() (gas: 257) -Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 397.29µs +Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 2.63ms Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests) // ANCHOR_END: output diff --git a/src/reference/cli/SUMMARY.md b/src/reference/cli/SUMMARY.md index 5252779fe..e36e55f83 100644 --- a/src/reference/cli/SUMMARY.md +++ b/src/reference/cli/SUMMARY.md @@ -97,6 +97,7 @@ - [`cast resolve-name`](./cast/resolve-name.md) - [`cast rpc`](./cast/rpc.md) - [`cast run`](./cast/run.md) + - [`cast selectors`](./cast/selectors.md) - [`cast send`](./cast/send.md) - [`cast send --create`](./cast/send/--create.md) - [`cast shl`](./cast/shl.md) @@ -128,6 +129,7 @@ - [`cast wallet verify`](./cast/wallet/verify.md) - [`cast wallet import`](./cast/wallet/import.md) - [`cast wallet list`](./cast/wallet/list.md) + - [`cast wallet derive-private-key`](./cast/wallet/derive-private-key.md) - [`anvil`](./anvil.md) - [`anvil completions`](./anvil/completions.md) diff --git a/src/reference/cli/anvil.md b/src/reference/cli/anvil.md index 16eed7dd0..26cec5e02 100644 --- a/src/reference/cli/anvil.md +++ b/src/reference/cli/anvil.md @@ -36,7 +36,7 @@ Options: [default: m/44'/60'/0'/0/] --dump-state - Dump the state of chain on exit to the given file. + Dump the state and block environment of chain on exit to the given file. If the value is a directory, the state will be written to `/state.json`. @@ -63,8 +63,7 @@ Options: BIP39 mnemonic phrase used for generating accounts. Cannot be used if `mnemonic_random` or `mnemonic_seed` are used --mnemonic-random [] - Automatically generates a BIP39 mnemonic phrase, and derives accounts from it. Cannot be used with other `mnemonic` options You can specify the number of words you want in the mnemonic. [default: - 12] + Automatically generates a BIP39 mnemonic phrase, and derives accounts from it. Cannot be used with other `mnemonic` options You can specify the number of words you want in the mnemonic. [default: 12] --mnemonic-seed-unsafe Generates a BIP39 mnemonic phrase from a given seed Cannot be used with other `mnemonic` options @@ -90,7 +89,7 @@ Options: Don't keep full chain history. If a number argument is specified, at most this number of states is kept in memory -s, --state-interval - Interval in seconds at which the status is to be dumped to disk. + Interval in seconds at which the state and block environment is to be dumped to disk. See --state and --dump-state @@ -100,7 +99,7 @@ Options: --state This is an alias for both --load-state and --dump-state. - It initializes the chain with the state stored at the file, if it exists, and dumps the chain's state on exit. + It initializes the chain with the state and block environment stored at the file, if it exists, and dumps the chain's state on exit. --timestamp The timestamp of the genesis block diff --git a/src/reference/cli/cast.md b/src/reference/cli/cast.md index 772d8fac2..97ca4c732 100644 --- a/src/reference/cli/cast.md +++ b/src/reference/cli/cast.md @@ -68,6 +68,7 @@ Commands: resolve-name Perform an ENS lookup [aliases: rn] rpc Perform a raw JSON-RPC request [aliases: rp] run Runs a published transaction in a local environment and prints the trace [aliases: r] + selectors Extracts function selectors and arguments from bytecode [aliases: sel] send Sign and publish a transaction [aliases: s] shl Perform a left shifting operation shr Perform a right shifting operation diff --git a/src/reference/cli/cast/access-list.md b/src/reference/cli/cast/access-list.md index d1cdba424..932cbf085 100644 --- a/src/reference/cli/cast/access-list.md +++ b/src/reference/cli/cast/access-list.md @@ -68,15 +68,15 @@ Ethereum options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/admin.md b/src/reference/cli/cast/admin.md index ebe37723c..c1f3f7274 100644 --- a/src/reference/cli/cast/admin.md +++ b/src/reference/cli/cast/admin.md @@ -22,15 +22,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/age.md b/src/reference/cli/cast/age.md index e886b2460..3511b2c03 100644 --- a/src/reference/cli/cast/age.md +++ b/src/reference/cli/cast/age.md @@ -19,15 +19,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/balance.md b/src/reference/cli/cast/balance.md index 573430bc9..d250c848a 100644 --- a/src/reference/cli/cast/balance.md +++ b/src/reference/cli/cast/balance.md @@ -25,15 +25,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/base-fee.md b/src/reference/cli/cast/base-fee.md index 923b813c6..b9ce2e9dd 100644 --- a/src/reference/cli/cast/base-fee.md +++ b/src/reference/cli/cast/base-fee.md @@ -19,15 +19,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/block-number.md b/src/reference/cli/cast/block-number.md index ce3ade5fc..e25e437bb 100644 --- a/src/reference/cli/cast/block-number.md +++ b/src/reference/cli/cast/block-number.md @@ -13,15 +13,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/block.md b/src/reference/cli/cast/block.md index a25830974..be6bd9abe 100644 --- a/src/reference/cli/cast/block.md +++ b/src/reference/cli/cast/block.md @@ -25,15 +25,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/call.md b/src/reference/cli/cast/call.md index 3c49fd7fe..9ddbfd5d0 100644 --- a/src/reference/cli/cast/call.md +++ b/src/reference/cli/cast/call.md @@ -91,15 +91,15 @@ Ethereum options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/chain-id.md b/src/reference/cli/cast/chain-id.md index 04d9ed8bc..be015b99f 100644 --- a/src/reference/cli/cast/chain-id.md +++ b/src/reference/cli/cast/chain-id.md @@ -13,15 +13,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/chain.md b/src/reference/cli/cast/chain.md index 873560f2d..651f23eda 100644 --- a/src/reference/cli/cast/chain.md +++ b/src/reference/cli/cast/chain.md @@ -13,15 +13,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/client.md b/src/reference/cli/cast/client.md index 57d968c5f..9d1cbfd5e 100644 --- a/src/reference/cli/cast/client.md +++ b/src/reference/cli/cast/client.md @@ -13,15 +13,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/code.md b/src/reference/cli/cast/code.md index 35d3fe1d1..a25da4830 100644 --- a/src/reference/cli/cast/code.md +++ b/src/reference/cli/cast/code.md @@ -25,15 +25,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/codesize.md b/src/reference/cli/cast/codesize.md index 399b94ede..e51d06e26 100644 --- a/src/reference/cli/cast/codesize.md +++ b/src/reference/cli/cast/codesize.md @@ -22,15 +22,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/compute-address.md b/src/reference/cli/cast/compute-address.md index fa132b78d..c1143726e 100644 --- a/src/reference/cli/cast/compute-address.md +++ b/src/reference/cli/cast/compute-address.md @@ -20,15 +20,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/estimate.md b/src/reference/cli/cast/estimate.md index 1f255adda..ee466b02c 100644 --- a/src/reference/cli/cast/estimate.md +++ b/src/reference/cli/cast/estimate.md @@ -40,15 +40,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/find-block.md b/src/reference/cli/cast/find-block.md index 67361fbc8..92a0eea97 100644 --- a/src/reference/cli/cast/find-block.md +++ b/src/reference/cli/cast/find-block.md @@ -17,15 +17,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/gas-price.md b/src/reference/cli/cast/gas-price.md index 9c6088986..ea3fd8d60 100644 --- a/src/reference/cli/cast/gas-price.md +++ b/src/reference/cli/cast/gas-price.md @@ -13,15 +13,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/implementation.md b/src/reference/cli/cast/implementation.md index 77b91a527..4e0518b07 100644 --- a/src/reference/cli/cast/implementation.md +++ b/src/reference/cli/cast/implementation.md @@ -22,15 +22,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/logs.md b/src/reference/cli/cast/logs.md index 5d9b82d97..b15ff0718 100644 --- a/src/reference/cli/cast/logs.md +++ b/src/reference/cli/cast/logs.md @@ -44,15 +44,15 @@ Ethereum options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/lookup-address.md b/src/reference/cli/cast/lookup-address.md index 045275fb2..a00c7ea59 100644 --- a/src/reference/cli/cast/lookup-address.md +++ b/src/reference/cli/cast/lookup-address.md @@ -20,15 +20,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/nonce.md b/src/reference/cli/cast/nonce.md index 7d8acc608..00e2c8c42 100644 --- a/src/reference/cli/cast/nonce.md +++ b/src/reference/cli/cast/nonce.md @@ -22,15 +22,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/proof.md b/src/reference/cli/cast/proof.md index b06eb52d0..75b248716 100644 --- a/src/reference/cli/cast/proof.md +++ b/src/reference/cli/cast/proof.md @@ -25,15 +25,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/publish.md b/src/reference/cli/cast/publish.md index 2ae5384bb..2a2ba2fe7 100644 --- a/src/reference/cli/cast/publish.md +++ b/src/reference/cli/cast/publish.md @@ -22,15 +22,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/receipt.md b/src/reference/cli/cast/receipt.md index 75ca8a625..0fba9f13f 100644 --- a/src/reference/cli/cast/receipt.md +++ b/src/reference/cli/cast/receipt.md @@ -30,15 +30,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/resolve-name.md b/src/reference/cli/cast/resolve-name.md index 391efb865..8d74f713e 100644 --- a/src/reference/cli/cast/resolve-name.md +++ b/src/reference/cli/cast/resolve-name.md @@ -20,15 +20,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/rpc.md b/src/reference/cli/cast/rpc.md index bb739e73e..91ef3f6a4 100644 --- a/src/reference/cli/cast/rpc.md +++ b/src/reference/cli/cast/rpc.md @@ -31,15 +31,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/run.md b/src/reference/cli/cast/run.md index 418eb3d8d..ef5446945 100644 --- a/src/reference/cli/cast/run.md +++ b/src/reference/cli/cast/run.md @@ -36,15 +36,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/selectors.md b/src/reference/cli/cast/selectors.md new file mode 100644 index 000000000..533971c29 --- /dev/null +++ b/src/reference/cli/cast/selectors.md @@ -0,0 +1,15 @@ +# cast selectors + +Extracts function selectors and arguments from bytecode + +```bash +$ cast selectors --help +Usage: cast selectors [OPTIONS] + +Arguments: + The hex encoded bytecode + +Options: + -r, --resolve Resolve the function signatures for the extracted selectors using https://openchain.xyz + -h, --help Print help +``` \ No newline at end of file diff --git a/src/reference/cli/cast/send.md b/src/reference/cli/cast/send.md index b9aa581a9..6353bd3f5 100644 --- a/src/reference/cli/cast/send.md +++ b/src/reference/cli/cast/send.md @@ -82,15 +82,15 @@ Ethereum options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/storage.md b/src/reference/cli/cast/storage.md index 097439c22..6a668f3cc 100644 --- a/src/reference/cli/cast/storage.md +++ b/src/reference/cli/cast/storage.md @@ -25,15 +25,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/tx.md b/src/reference/cli/cast/tx.md index aafa18c6a..06b3391a7 100644 --- a/src/reference/cli/cast/tx.md +++ b/src/reference/cli/cast/tx.md @@ -23,15 +23,15 @@ Options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/cast/wallet.md b/src/reference/cli/cast/wallet.md index 6bc9a29c4..7828bb9f4 100644 --- a/src/reference/cli/cast/wallet.md +++ b/src/reference/cli/cast/wallet.md @@ -7,15 +7,16 @@ $ cast wallet --help Usage: cast wallet Commands: - new Create a new random keypair [aliases: n] - new-mnemonic Generates a random BIP39 mnemonic phrase [aliases: nm] - vanity Generate a vanity address [aliases: va] - address Convert a private key to an address [aliases: a, addr] - sign Sign a message or typed data [aliases: s] - verify Verify the signature of a message [aliases: v] - import Import a private key into an encrypted keystore [aliases: i] - list List all the accounts in the keystore default directory [aliases: ls] - help Print this message or the help of the given subcommand(s) + new Create a new random keypair [aliases: n] + new-mnemonic Generates a random BIP39 mnemonic phrase [aliases: nm] + vanity Generate a vanity address [aliases: va] + address Convert a private key to an address [aliases: a, addr] + sign Sign a message or typed data [aliases: s] + verify Verify the signature of a message [aliases: v] + import Import a private key into an encrypted keystore [aliases: i] + list List all the accounts in the keystore default directory [aliases: ls] + derive-private-key Derives private key from mnemonic [aliases: --derive-private-key] + help Print this message or the help of the given subcommand(s) Options: -h, --help Print help diff --git a/src/reference/cli/cast/wallet/derive-private-key.md b/src/reference/cli/cast/wallet/derive-private-key.md new file mode 100644 index 000000000..b8509e8de --- /dev/null +++ b/src/reference/cli/cast/wallet/derive-private-key.md @@ -0,0 +1,15 @@ +# cast wallet derive-private-key + +Derives private key from mnemonic + +```bash +$ cast wallet derive-private-key --help +Usage: cast wallet derive-private-key [MNEMONIC_INDEX] + +Arguments: + + [MNEMONIC_INDEX] + +Options: + -h, --help Print help +``` \ No newline at end of file diff --git a/src/reference/cli/cast/wallet/sign.md b/src/reference/cli/cast/wallet/sign.md index 8b1074e84..f799b7db5 100644 --- a/src/reference/cli/cast/wallet/sign.md +++ b/src/reference/cli/cast/wallet/sign.md @@ -12,8 +12,8 @@ Arguments: Messages starting with 0x are expected to be hex encoded, which get decoded before being signed. The message will be prefixed with the Ethereum Signed Message header and hashed before signing. - Typed data can be provided as a json string or a file name. Use --data flag to denote the message is a string of typed data. Use --data --from-file to denote the message is a file name containing - typed data. The data will be combined and hashed using the EIP712 specification before signing. The data should be formatted as JSON. + Typed data can be provided as a json string or a file name. Use --data flag to denote the message is a string of typed data. Use --data --from-file to denote the message is a file name containing typed data. The data will be + combined and hashed using the EIP712 specification before signing. The data should be formatted as JSON. Options: --data diff --git a/src/reference/cli/chisel.md b/src/reference/cli/chisel.md index 1de5bf686..69399927a 100644 --- a/src/reference/cli/chisel.md +++ b/src/reference/cli/chisel.md @@ -26,6 +26,11 @@ REPL options: These files will be evaluated before the top-level of the REPL, therefore functioning as a prelude + --no-vm + Disable the default `Vm` import. + + The import is disabled by default if the Solc version is less than 0.6.2. + Cache options: --force Clear the cache and artifacts folder and recompile diff --git a/src/reference/cli/forge.md b/src/reference/cli/forge.md index fa68682ec..0543e62b9 100644 --- a/src/reference/cli/forge.md +++ b/src/reference/cli/forge.md @@ -1,6 +1,6 @@ # forge -Build, test, fuzz, debug and deploy Solidity contracts. +Build, test, fuzz, debug and deploy Solidity contracts ```bash $ forge --help diff --git a/src/reference/cli/forge/build.md b/src/reference/cli/forge/build.md index 33956727e..d6431e151 100644 --- a/src/reference/cli/forge/build.md +++ b/src/reference/cli/forge/build.md @@ -144,8 +144,8 @@ Watch options: --watch-delay File update debounce delay. - During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and - a command is already running, the outcome of the action will be to do nothing. + During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and a command is already running, + the outcome of the action will be to do nothing. Defaults to 50ms. Parses as decimal seconds by default, but using an integer with the `ms` suffix may be more convenient. diff --git a/src/reference/cli/forge/config.md b/src/reference/cli/forge/config.md index 479ee81cc..247e4a913 100644 --- a/src/reference/cli/forge/config.md +++ b/src/reference/cli/forge/config.md @@ -153,8 +153,8 @@ Watch options: --watch-delay File update debounce delay. - During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and - a command is already running, the outcome of the action will be to do nothing. + During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and a command is already running, + the outcome of the action will be to do nothing. Defaults to 50ms. Parses as decimal seconds by default, but using an integer with the `ms` suffix may be more convenient. diff --git a/src/reference/cli/forge/coverage.md b/src/reference/cli/forge/coverage.md index 942a32896..6c521b5e3 100644 --- a/src/reference/cli/forge/coverage.md +++ b/src/reference/cli/forge/coverage.md @@ -13,7 +13,7 @@ Options: This flag can be used multiple times. [default: summary] - [possible values: summary, lcov, debug] + [possible values: summary, lcov, debug, bytecode] --ir-minimum Enable viaIR with minimum optimization diff --git a/src/reference/cli/forge/create.md b/src/reference/cli/forge/create.md index 1cc81067e..4774a9e81 100644 --- a/src/reference/cli/forge/create.md +++ b/src/reference/cli/forge/create.md @@ -177,15 +177,15 @@ Ethereum options: [env: ETH_RPC_URL=] --flashbots - Use the Flashbots RPC URL (https://rpc.flashbots.net) + Use the Flashbots RPC URL with fast mode (https://rpc.flashbots.net/fast). This shares the transaction privately with all registered builders. https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions --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"]' + cast rpc --jwt-secret engine_forkchoiceUpdatedV2 '["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", + "0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' [env: ETH_RPC_JWT_SECRET=] diff --git a/src/reference/cli/forge/script.md b/src/reference/cli/forge/script.md index ed2fd0c8f..b73760393 100644 --- a/src/reference/cli/forge/script.md +++ b/src/reference/cli/forge/script.md @@ -226,8 +226,8 @@ Watch options: --watch-delay File update debounce delay. - During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and - a command is already running, the outcome of the action will be to do nothing. + During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and a command is already running, + the outcome of the action will be to do nothing. Defaults to 50ms. Parses as decimal seconds by default, but using an integer with the `ms` suffix may be more convenient. diff --git a/src/reference/cli/forge/snapshot.md b/src/reference/cli/forge/snapshot.md index bf4d1969f..e57287f45 100644 --- a/src/reference/cli/forge/snapshot.md +++ b/src/reference/cli/forge/snapshot.md @@ -348,8 +348,8 @@ Watch options: --watch-delay File update debounce delay. - During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and - a command is already running, the outcome of the action will be to do nothing. + During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and a command is already running, + the outcome of the action will be to do nothing. Defaults to 50ms. Parses as decimal seconds by default, but using an integer with the `ms` suffix may be more convenient. diff --git a/src/reference/cli/forge/test.md b/src/reference/cli/forge/test.md index e630ef05f..6704eb381 100644 --- a/src/reference/cli/forge/test.md +++ b/src/reference/cli/forge/test.md @@ -328,8 +328,8 @@ Watch options: --watch-delay File update debounce delay. - During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and - a command is already running, the outcome of the action will be to do nothing. + During the delay, incoming change events are accumulated and only once the delay has passed, is an action taken. Note that this does not mean a command will be started: if --no-restart is given and a command is already running, + the outcome of the action will be to do nothing. Defaults to 50ms. Parses as decimal seconds by default, but using an integer with the `ms` suffix may be more convenient. diff --git a/src/reference/cli/forge/verify-contract.md b/src/reference/cli/forge/verify-contract.md index 96a992c89..593dd0edc 100644 --- a/src/reference/cli/forge/verify-contract.md +++ b/src/reference/cli/forge/verify-contract.md @@ -16,6 +16,8 @@ Arguments: Options: --constructor-args The ABI-encoded constructor arguments + + [aliases: encoded-constructor-args] --constructor-args-path The path to a file containing the constructor arguments @@ -70,6 +72,9 @@ Options: [default: 5] + --via-ir + Use the Yul intermediate representation compilation pipeline + -h, --help Print help (see a summary with '-h')