From d4405b26cde0cb95ef676517b9f7420aff591517 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 6 Mar 2025 04:15:32 +0000 Subject: [PATCH 1/7] stack/dev-net: set the kurtosis enclave name op-devnet Signed-off-by: jsvisa --- pages/stack/dev-net.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/stack/dev-net.mdx b/pages/stack/dev-net.mdx index f2d2f9a36..9a04359f9 100644 --- a/pages/stack/dev-net.mdx +++ b/pages/stack/dev-net.mdx @@ -75,7 +75,7 @@ ethereum_package: Now that you've configured your network, you can start it up using the Kurtosis CLI. Run the command below: ```bash -kurtosis run github.com/ethpandaops/optimism-package --args-file https://raw.githubusercontent.com/ethpandaops/optimism-package/main/network_params.yaml +kurtosis run github.com/ethpandaops/optimism-package --args-file https://raw.githubusercontent.com/ethpandaops/optimism-package/main/network_params.yaml --enclave op-devnet ``` This command will start up your network and deploy the OP Stack based on the ethpandaops configuration. The command will @@ -84,9 +84,9 @@ the one below: ``` INFO[2025-02-25T02:10:37Z] ===================================================== -INFO[2025-02-25T02:10:37Z] || Created enclave: proud-crater || +INFO[2025-02-25T02:10:37Z] || Created enclave: op-devnet || INFO[2025-02-25T02:10:37Z] ===================================================== -Name: proud-crater +Name: op-devnet UUID: eb959a72177b Status: RUNNING Creation Time: Tue, 25 Feb 2025 02:07:56 UTC From bc16d9885825c6d84aaa6236aa14dc4a6d6f5ff8 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 6 Mar 2025 04:18:40 +0000 Subject: [PATCH 2/7] stack/devnet: into multi lines Signed-off-by: jsvisa --- pages/stack/dev-net.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/stack/dev-net.mdx b/pages/stack/dev-net.mdx index 9a04359f9..460c4ead1 100644 --- a/pages/stack/dev-net.mdx +++ b/pages/stack/dev-net.mdx @@ -75,7 +75,9 @@ ethereum_package: Now that you've configured your network, you can start it up using the Kurtosis CLI. Run the command below: ```bash -kurtosis run github.com/ethpandaops/optimism-package --args-file https://raw.githubusercontent.com/ethpandaops/optimism-package/main/network_params.yaml --enclave op-devnet +kurtosis run github.com/ethpandaops/optimism-package \ + --args-file https://raw.githubusercontent.com/ethpandaops/optimism-package/main/network_params.yaml \ + --enclave op-devnet ``` This command will start up your network and deploy the OP Stack based on the ethpandaops configuration. The command will From 90cdd2172694a80e6ec40753eca29fb38a76b97c Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 6 Mar 2025 04:21:29 +0000 Subject: [PATCH 3/7] stack/dev-net: change the cast command to meet 1.0-stable Signed-off-by: jsvisa --- pages/stack/dev-net.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/stack/dev-net.mdx b/pages/stack/dev-net.mdx index 460c4ead1..a580dee83 100644 --- a/pages/stack/dev-net.mdx +++ b/pages/stack/dev-net.mdx @@ -175,8 +175,8 @@ generated by that mnemonic. To move ETH onto your L2, run the following command. Make sure to replace the values in angle brackets with real values: ```bash -cast send --mnemonic 'test test test test test test test test test test test junk' --mnemonic-path "m/44'/60'/0'/0/0" \ - --to "" --amount "eth" --rpc-url "http://127.0.0.1:" +cast send "" --mnemonic 'test test test test test test test test test test test junk' --mnemonic-derivation-path "m/44'/60'/0'/0/0" \ + --value "ether" --rpc-url "http://127.0.0.1:" ``` Wait \~30 seconds, then check your balance on L2 by running the following command: From 6d8ffc0826c43bffc3dc970221ec94150be3b398 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 6 Mar 2025 04:22:41 +0000 Subject: [PATCH 4/7] stack/dev-net: cast v1.0.0-stable Signed-off-by: jsvisa --- pages/stack/dev-net.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/stack/dev-net.mdx b/pages/stack/dev-net.mdx index a580dee83..c53dcf6b9 100644 --- a/pages/stack/dev-net.mdx +++ b/pages/stack/dev-net.mdx @@ -36,6 +36,7 @@ anyone to modify or deploy the stack in any configuration you want. | ------------------------------------------------- | -------- | --------------------- | | [docker](https://docs.docker.com/engine/install/) | `^27` | `docker --version` | | [kurtosis](https://docs.kurtosis.com/install/) | `^1.3.0` | `kurtosis version` | +| [cast](https://book.getfoundry.sh/cast/) | `^1.0.0` | `cast --version` | ### Notes on Specific Dependencies From 809cf1b4b6993897e489495eda3cacedb115fa1d Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 6 Mar 2025 04:52:50 +0000 Subject: [PATCH 5/7] stack/dev-net: use private key instead Signed-off-by: jsvisa --- pages/stack/dev-net.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/stack/dev-net.mdx b/pages/stack/dev-net.mdx index c53dcf6b9..f94a2ef3c 100644 --- a/pages/stack/dev-net.mdx +++ b/pages/stack/dev-net.mdx @@ -168,15 +168,16 @@ of the execution client services identified by `op-el`. ### Depositing funds onto your network -Your network was configured to pre-fund development addresses using the `test test test test test test test test test test test junk` -mnemonic. To get ETH onto your L2, you import one of the private keys from that mnemonic into your favorite wallet or use +Your network was configured to pre-fund development addresses, you can find the full list of available pre-fund accounts from +[here](https://github.com/ethpandaops/ethereum-package/blob/main/src/prelaunch_data_generator/genesis_constants/genesis_constants.star). +To get ETH onto your L2, you import one of the private keys from that mnemonic into your favorite wallet or use a CLI tool like `cast`. For the purposes of this tutorial, we'll use `cast` and assume you want to use the first address generated by that mnemonic. To move ETH onto your L2, run the following command. Make sure to replace the values in angle brackets with real values: ```bash -cast send "" --mnemonic 'test test test test test test test test test test test junk' --mnemonic-derivation-path "m/44'/60'/0'/0/0" \ +cast send "" --private-key bcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31 \ --value "ether" --rpc-url "http://127.0.0.1:" ``` From f49422c7ece47c15151c8e12b847b4de2d8dec45 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 6 Mar 2025 04:56:45 +0000 Subject: [PATCH 6/7] stack/devnet: add output of send value Signed-off-by: jsvisa --- pages/stack/dev-net.mdx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pages/stack/dev-net.mdx b/pages/stack/dev-net.mdx index f94a2ef3c..60bdccdd8 100644 --- a/pages/stack/dev-net.mdx +++ b/pages/stack/dev-net.mdx @@ -181,6 +181,31 @@ cast send "" --private-key bcdf20249abf0ed6d944c0288fad --value "ether" --rpc-url "http://127.0.0.1:" ``` +The output should looks like below: + + +``` +blockHash 0xf6c18d85ba89b4b1e6060ddf744d8d9084dbb3720e2a2a854627a1b1b7a294ba +blockNumber 388 +contractAddress +cumulativeGasUsed 21000 +effectiveGasPrice 1000000007 +from 0x8943545177806ED17B9F23F0a21ee5948eCaa776 +gasUsed 21000 +logs [] +logsBloom 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +root +status 1 (success) +transactionHash 0x268f98f883efe9c8f9ecc7542a9c8af51869118cfce06e775683f5b4aec2681d +transactionIndex 0 +type 2 +blobGasPrice +blobGasUsed +authorizationList +to 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 +``` + + Wait \~30 seconds, then check your balance on L2 by running the following command: ```bash From 5257da2ac8434ef5e4d407f400ada0e98c7c0059 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 6 Mar 2025 06:50:15 +0000 Subject: [PATCH 7/7] stack/devnet: replace the enclave name and more review comments Signed-off-by: jsvisa --- pages/stack/dev-net.mdx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pages/stack/dev-net.mdx b/pages/stack/dev-net.mdx index 60bdccdd8..5e5132a0d 100644 --- a/pages/stack/dev-net.mdx +++ b/pages/stack/dev-net.mdx @@ -162,17 +162,15 @@ At this point your chain is up and running. Let's move on to the next section to ## Interact with your network You now have a fully functioning OP Stack Rollup. You can connect your wallet to this chain the same way you'd connect -your wallet to any other EVM chain. You can find your node's RPC URL by running `kurtosis enclave inspect `. -Your enclave name is outputted at the end of the `kurtosis run` command above. The RPC url is the `rpc` port name in any -of the execution client services identified by `op-el`. +your wallet to any other EVM chain. You can find your node's RPC URL by running `kurtosis enclave inspect op-devnet`. +The RPC url is the `rpc` port name in any of the execution client services identified by `op-el`. ### Depositing funds onto your network Your network was configured to pre-fund development addresses, you can find the full list of available pre-fund accounts from [here](https://github.com/ethpandaops/ethereum-package/blob/main/src/prelaunch_data_generator/genesis_constants/genesis_constants.star). -To get ETH onto your L2, you import one of the private keys from that mnemonic into your favorite wallet or use -a CLI tool like `cast`. For the purposes of this tutorial, we'll use `cast` and assume you want to use the first address -generated by that mnemonic. +To get ETH onto your L2, you import one of the private keys from that list into your favorite wallet or use a CLI tool like `cast`. +For the purposes of this tutorial, we'll use `cast` and assume you want to use the first address [0x8943545177806ED17B9F23F0a21ee5948eCaa776](https://github.com/ethpandaops/ethereum-package/blob/v4.0.0/src/prelaunch_data_generator/genesis_constants/genesis_constants.star#L10-L14). To move ETH onto your L2, run the following command. Make sure to replace the values in angle brackets with real values: @@ -193,7 +191,7 @@ effectiveGasPrice 1000000007 from 0x8943545177806ED17B9F23F0a21ee5948eCaa776 gasUsed 21000 logs [] -logsBloom 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +logsBloom 0x000000000000000000000000000000000... # truncated root status 1 (success) transactionHash 0x268f98f883efe9c8f9ecc7542a9c8af51869118cfce06e775683f5b4aec2681d @@ -202,7 +200,7 @@ type 2 blobGasPrice blobGasUsed authorizationList -to 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 +to ``` @@ -210,7 +208,7 @@ Wait \~30 seconds, then check your balance on L2 by running the following comman ```bash export ETH_RPC_URL="http://127.0.0.1:" -export ADDRESS="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" +export ADDRESS="0x8943545177806ED17B9F23F0a21ee5948eCaa776" cast balance "$ADDRESS" ```