From 58f924ee64922addd2f038d173b1988a48ff0c90 Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 29 Jan 2025 10:45:56 -0700 Subject: [PATCH] update local rollup and seq tut --- .../{_clone-geth.md => _clone-build-astria-geth.md} | 10 ++-------- .../run-local-rollup-against-remote-sequencer.md | 4 ++-- docs/tutorials/run-local-rollup-and-sequencer.md | 13 ++++++++----- 3 files changed, 12 insertions(+), 15 deletions(-) rename docs/components/{_clone-geth.md => _clone-build-astria-geth.md} (61%) diff --git a/docs/components/_clone-geth.md b/docs/components/_clone-build-astria-geth.md similarity index 61% rename from docs/components/_clone-geth.md rename to docs/components/_clone-build-astria-geth.md index e9b87840..ab83c88f 100644 --- a/docs/components/_clone-geth.md +++ b/docs/components/_clone-build-astria-geth.md @@ -6,20 +6,14 @@ git clone git@github.com:astriaorg/astria-geth.git cd astria-geth just -f dev/justfile build - -# You can move the binary to a location in your PATH if you'd like -mv ./build/bin/astria-geth /usr/local/bin/ -astria-geth version +./build/bin/geth version ``` ```bash [HTTPS] git clone https://github.com/astriaorg/astria-cli-go.git cd astria-geth just -f dev/justfile build - -# You can move the binary to a location in your PATH if you'd like -mv ./build/bin/astria-geth /usr/local/bin/ -astria-geth version +./build/bin/geth version ``` ::: diff --git a/docs/tutorials/run-local-rollup-against-remote-sequencer.md b/docs/tutorials/run-local-rollup-against-remote-sequencer.md index c4b7de90..acac91d9 100644 --- a/docs/tutorials/run-local-rollup-against-remote-sequencer.md +++ b/docs/tutorials/run-local-rollup-against-remote-sequencer.md @@ -10,13 +10,13 @@ Astria stack locally on your machine. Requires `Go`, `just`, and `Foundry`: -- [Go](https://go.dev/doc/install) +- [Go](https://go.dev/doc/install) - specifically Go 1.21 - [just](https://github.com/casey/just) - [Foundry](https://book.getfoundry.sh/getting-started/installation) Open a new terminal window and clone and build Geth. - + ### Configure the Geth Genesis Information diff --git a/docs/tutorials/run-local-rollup-and-sequencer.md b/docs/tutorials/run-local-rollup-and-sequencer.md index 41364764..a24c758c 100644 --- a/docs/tutorials/run-local-rollup-and-sequencer.md +++ b/docs/tutorials/run-local-rollup-and-sequencer.md @@ -14,14 +14,14 @@ View the source code Requires `Go`, `just`, `make`, and `Foundry`: -- [Go](https://go.dev/doc/install) +- [Go](https://go.dev/doc/install) - specifically Go 1.21 - [just](https://github.com/casey/just) - [make](https://www.gnu.org/software/make/) - [Foundry](https://book.getfoundry.sh/getting-started/installation) Open a new terminal window and clone and build Geth: - + Create a new genesis account for your Geth rollup: @@ -55,7 +55,6 @@ transactions](./test-transactions.md) later on. In your Geth terminal window, run the following to initialize and run the Geth rollup: ```bash -# in astria-geth dir just -f dev/justfile init just -f dev/justfile run ``` @@ -95,15 +94,19 @@ Open the `~/.astria/default/networks-config.toml` file and update the sequencer_chain_id = 'sequencer-test-chain-0' sequencer_grpc = 'http://127.0.0.1:8080' sequencer_rpc = 'http://127.0.0.1:26657' -rollup_name = '' # update this value +rollup_name = '' default_denom = 'ntia' ``` ::: tip +You can perform the above steps using the following commands. `NEW_NAME` should +match the `"astriaRollupName"` in your `dev/geth-genesis-local.json`: + ```shell export NEW_NAME="my-new-chain" -sed -i '' '/\[networks\.local\]/,/^$/{ s/rollup_name = .*/rollup_name = '\'''$NEW_NAME''\''/; }' ~/.astria/default/networks-config.toml +cd ~/.astria/default/ +sed -i '' '/\[networks\.local\]/,/^$/ s/rollup_name = .*/rollup_name = "'"$NEW_NAME"'"/' ~/.astria/default/networks-config.toml ``` :::