Skip to content

Commit

Permalink
update local rollup and seq tut
Browse files Browse the repository at this point in the history
  • Loading branch information
sambukowski committed Jan 29, 2025
1 parent 45b3e75 commit 58f924e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

:::
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/run-local-rollup-against-remote-sequencer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!--@include: ../../components/_clone-geth.md-->
<!--@include: ../../components/_clone-build-astria-geth.md-->

### Configure the Geth Genesis Information

Expand Down
13 changes: 8 additions & 5 deletions docs/tutorials/run-local-rollup-and-sequencer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<!--@include: ../components/_clone-geth.md-->
<!--@include: ../../components/_clone-build-astria-geth.md-->

Create a new genesis account for your Geth rollup:

Expand Down Expand Up @@ -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
```
Expand Down Expand Up @@ -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 = '<your rollup name>' # update this value
rollup_name = '<your 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
```

:::
Expand Down

0 comments on commit 58f924e

Please sign in to comment.