diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 5a1715a8..bacedd8e 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -33,6 +33,10 @@ export default defineConfig({ text: "Edit this page on GitHub", }, + outline: { + level: [1, 3], + }, + logo: { src: '/astria-logo-mini.svg', width: 24, height: 24 }, // https://vitepress.dev/reference/default-theme-config diff --git a/docs/components/_astria-go-cli-install.md b/docs/components/_astria-go-cli-install.md index 2f6aa409..42f9d8b3 100644 --- a/docs/components/_astria-go-cli-install.md +++ b/docs/components/_astria-go-cli-install.md @@ -3,21 +3,21 @@ ::: code-group ```bash [ARM Mac] -curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.15.2/astria-go-v0.15.2-darwin-arm64.tar.gz > astria-cli.tar.gz +curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.16.0/astria-go-v0.16.0-darwin-arm64.tar.gz > astria-cli.tar.gz tar -xvzf astria-cli.tar.gz mv astria-go /usr/local/bin/ astria-go version ``` ```bash [X86_64 Mac] -curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.15.2/astria-go-v0.15.2-darwin-amd64.tar.gz > astria-cli.tar.gz +curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.16.0/astria-go-v0.16.0-darwin-amd64.tar.gz > astria-cli.tar.gz tar -xvzf astria-cli.tar.gz mv astria-go /usr/local/bin/ astria-go version ``` ```bash [x86_64 Linux] -curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.15.2/astria-go-v0.15.2-linux-amd64.tar.gz > astria-cli.tar.gz +curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.16.0/astria-go-v0.16.0-linux-amd64.tar.gz > astria-cli.tar.gz tar -xvzf astria-cli.tar.gz mv astria-go /usr/local/bin/ astria-go version diff --git a/docs/config.js b/docs/config.js index ddee9be6..a32b0063 100644 --- a/docs/config.js +++ b/docs/config.js @@ -231,6 +231,6 @@ export const siteConfig = { }, cli: { rust: "v0.5.1", - go: "v0.15.0", + go: "v0.16.0", } }; diff --git a/docs/developer/astria-cli/astria-cli-commands.md b/docs/developer/astria-cli/astria-cli-commands.md index dcb87fb4..96403e45 100644 --- a/docs/developer/astria-cli/astria-cli-commands.md +++ b/docs/developer/astria-cli/astria-cli-commands.md @@ -1,3 +1,6 @@ +--- +outline: [1,2] +--- diff --git a/docs/developer/astria-go/astria-go-commands.md b/docs/developer/astria-go/astria-go-commands.md index ba92aac1..8386fc44 100644 --- a/docs/developer/astria-go/astria-go-commands.md +++ b/docs/developer/astria-go/astria-go-commands.md @@ -1,3 +1,6 @@ +--- +outline: [1,2] +--- @@ -212,6 +215,101 @@ astria-go dev run --network dusk [flags] | `--sequencer-path` | string | `ASTRIA_GO_SEQUENCER_PATH` | Provide an override path to a specific sequencer binary. | | `--service-log-level` | string | `ASTRIA_GO_SERVICE_LOG_LEVEL` | Set the log level for services (debug, info, error) (default "info") | +## `dev setconfig` + +The root command for all config update commands within a development instance. + +### Usage + +```bash +astria-go dev setconfig [command] [flags] +``` + +## `dev setconfig feeasset` + +Set the sequencer fee asset across all config for the instance. + +### Usage + +```bash +astria-go dev setconfig feeasset [denom] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") | + +## `dev setconfig nativeasset` + +Set the netive asset for the sequencer across all config for the instance. + +### Usage + +```bash +astria-go dev setconfig nativeasset [denom] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") | +| `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the native asset is being updated for. (default "local") | + +## `dev setconfig rollupname` + +Set the rollup name across all config for the instance. + +### Usage + +```bash +astria-go dev setconfig rollupname [name] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") | +| `--network` | string | `ASTRIA_GO_NETWORK` | Select the network to run the services against. Valid networks are: local, dusk, dawn, mainnet (default "dawn") | +| `--rollup-port` | string | `ASTRIA_GO_ROLLUP_PORT` | Select the localhost port that the rollup will be running on. (default "8546") | + +## `dev setconfig sequencerchainid` + +Set the default sequencer chain id across all config for the instance. + +### Usage + +```bash +astria-go dev setconfig sequencerchainid [chain-id] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") | +| `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the sequencer chain id is being updated for. (default "local") | + +## `dev version` + +Print the version of the services used by the CLI. + +### Usage + +```bash +astria-go dev version [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") | +| `--network` | string | `ASTRIA_GO_NETWORK` | Select the network to run the services against. Valid networks are: local, dusk, dawn, mainnet (default "dawn") | + ## `sequencer` The root command for all sequencer commands. @@ -414,6 +512,64 @@ astria-go sequencer nonce [address] [flags] | `--network` | string | `ASTRIA_GO_NETWORK` | Configure the values to target a specific network. (default "dawn") | | `-u`, `--sequencer-url` | string | `ASTRIA_GO_SEQUENCER_URL` | The URL of the sequencer. | +## `sequencer setconfig` + +Update the configuration for the sequencer commands config. + +### Usage + +```bash +astria-go sequencer setconfig [command] [flags] +``` + +## `sequencer setconfig feeasset` + +Sets the fee asset in the sequencer command configs. + +### Usage + +```bash +astria-go sequencer setconfig feeasset [denom] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the sequencer chain id is being updated for. (default "local") | + +## `sequencer setconfig asset` + +Sets the asset in the sequencer command configs. + +### Usage + +```bash +astria-go sequencer setconfig asset [denom] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the sequencer chain id is being updated for. (default "local") | + +## `sequencer setconfig sequencerchainid` + +Update the configuration for the sequencer commands config. + +### Usage + +```bash +astria-go sequencer setconfig sequencerchainid [chain-id] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the sequencer chain id is being updated for. (default "local") | + ## `sequencer setkey` Set private key for an address in system keyring. diff --git a/docs/developer/astria-go/astria-go-config.md b/docs/developer/astria-go/astria-go-config.md index 16b4581a..9dfea765 100644 --- a/docs/developer/astria-go/astria-go-config.md +++ b/docs/developer/astria-go/astria-go-config.md @@ -74,6 +74,21 @@ Use the new config with: astria-go sequencer nonce --network new_network ``` +### Sequencer Networks `setconfig` Commands + +The cli also has commands for updating the most common configuration settings: + +```bash +# Update the asset the sequencer commands will default to +astria-go sequencer setconfig asset + +# Update the fee asset the sequencer commands will default to +astria-go sequencer setconfig feeasset + +# Update the sequencer chain id the sequencer commands will default to +astria-go sequencer setconfig sequencerchainid +``` + ## Devrunner Networks Config The devrunner networks config provides simplified and powerful options for @@ -314,6 +329,24 @@ astria-go dev init \ ``` +### Network `setconfig` Commands + +The cli also has commands for updating the most common configuration settings: + +```bash +# Update the fee asset used by the local sequencer network +astria-go dev setconfig feeasset + +# Update the native asset used by the local sequencer network +astria-go dev setconfig nativeasset + +# Update the rollup name used by the local Conductor and Composer services +astria-go dev setconfig rollupname + +# Update the sequencer chain id used by the local sequencer network +astria-go dev setconfig sequencerchainid +``` + ## Service Config The full configuration for all Astria services can be found in the @@ -354,3 +387,21 @@ LOWER_SNAKE_CASE_VAR_NAME=value > NOTE: The `network-config.toml` overrides the default values in the > `base-config.toml`. + +### Services `setconfig` Commands + +The cli also has commands for updating the most common configuration settings: + +```bash +# Update the fee asset used by the local sequencer network +astria-go dev setconfig feeasset + +# Update the native asset used by the local sequencer network +astria-go dev setconfig nativeasset + +# Update the rollup name used by the local Conductor and Composer services +astria-go dev setconfig rollupname + +# Update the sequencer chain id used by the local sequencer network +astria-go dev setconfig sequencerchainid +``` diff --git a/docs/tutorials/assets/astria-chat.png b/docs/tutorials/assets/astria-chat.png new file mode 100644 index 00000000..ec1bed75 Binary files /dev/null and b/docs/tutorials/assets/astria-chat.png differ diff --git a/docs/tutorials/deploy-novm-messenger-with-charts.md b/docs/tutorials/deploy-novm-messenger-with-charts.md index 95792287..0067151b 100644 --- a/docs/tutorials/deploy-novm-messenger-with-charts.md +++ b/docs/tutorials/deploy-novm-messenger-with-charts.md @@ -31,6 +31,8 @@ Then open [http://chat.astria-chat.localdev.me/](http://chat.astria-chat.localdev.me/) in your browser to use the UI and send messages. +![Astria Chat noVM Frontend](./assets/astria-chat.png) + ::: info The deployment should take less than 5 minutes, but this will depend on the speed of your machine and/or download times for images. diff --git a/docs/tutorials/novm-messenger-rollup.md b/docs/tutorials/novm-messenger-rollup.md index c4b3fe7f..a896cc7b 100644 --- a/docs/tutorials/novm-messenger-rollup.md +++ b/docs/tutorials/novm-messenger-rollup.md @@ -17,6 +17,7 @@ View the code for the [`noVM-messenger` here](https://github.com/astriaorg/noVM- You will need the following installed to complete the tutorial: +- [`astria-go` cli](../developer/astria-go/astria-go-installation.md#install-the-astria-go-cli) - [Cargo and Rust](https://www.rust-lang.org/tools/install) - [`astria-go` cli](https://docs.astria.org/developer/astria-go/astria-go-installation) @@ -26,7 +27,110 @@ You will need the following installed to complete the tutorial: -## Configure the `astria-go` cli +## Configure the `astria-go` CLI for Running the `noVM` Rollup + +### CLI Configuration + +Create a new instance with the cli: + +```bash +astria-go dev init --instance novm +``` + +Update the `tui-config.toml` using the following command: + +```bash +cat << 'EOF' > ~/.astria/tui-config.toml +auto_scroll = true +wrap_lines = false +borderless = false +override_instance_name = 'novm' +cometbft_starts_minimized = false +conductor_starts_minimized = false +composer_starts_minimized = false +sequencer_starts_minimized = true +generic_starts_minimized = false +generic_start_position = 'after' +highlight_color = 'blue' +border_color = 'gray' +EOF +``` + +The previous step is optional but will make viewing the running rollup much +easier in the TUI. + +Make sure you are in the `noVM-messenger` repo directory and then run the +following to add the noVM rollup binary as a new service of the `astria-go` TUI: + +```bash +ROLLUP_PATH="$(pwd)/target/debug/chat-rollup" +cat << EOF >> ~/.astria/novm/networks-config.toml +[networks.local.services.rollup] +name = 'rollup' +version = 'v0.1.0' +download_url = '' +local_path = '${ROLLUP_PATH}' +args = [] +EOF +``` + +Still in the `noVM-messenger` directory, use the following to copy the default +rollup genesis file in the instance config: + +```bash +cp ./crates/chat-rollup/example.genesis.json ~/.astria/novm/config/rollup_genesis.json +``` + +Add the environment variables required for running the `noVM` rollup to the +`base-config.toml` for the instance: + +```bash +cat << EOF >> ~/.astria/novm/config/base-config.toml +metrics_http_listener_addr = 'http://127.0.0.1:50053' +log = 'debug' +composer_addr = 'http://127.0.0.1:50052' +db_filepath = '~/.astria/novm/data/rollup_data' +genesis_filepath = '~/.astria/novm/config/rollup_genesis.json' +execution_grpc_addr = '0.0.0.0:50051' +force_stdout = 'true' +pretty_print = 'true' +no_otel = 'true' +no_metrics = 'true' +EOF +``` + +Update the rollup name in the rest of the `novm` instance config to +match the rollup name in your `rollup_genesis.json` file: + +```bash +astria-go dev setconfig rollupname astria-chat --instance novm +``` + +Then update the env vars for Composer to communicate properly with the rollup: + +On MacOS: + +```bash +sed -i '' "s|.*astria_composer_grpc_addr.*|astria_composer_grpc_addr = '127.0.0.1:50052'|" ~/.astria/novm/config/base-config.toml +sed -i '' "s|.*astria_composer_rollups.*|astria_composer_rollups = ''|" ~/.astria/novm/config/base-config.toml +``` + +On Linux: + +```bash +sed "s|.*astria_composer_grpc_addr.*|astria_composer_grpc_addr = '127.0.0.1:50052'|" ~/.astria/novm/config/base-config.toml +sed "s|.*astria_composer_rollups.*|astria_composer_rollups = ''|" ~/.astria/novm/config/base-config.toml +``` + +The instance is now configured for running a local Astria Sequencer Network and +the `noVM` rollup. + +### Manual Configuration + +::: tip +You can skip this section if you have configured your `astria-go` `novm` +instance using the steps above. +::: Create a new instance with the cli: @@ -39,7 +143,7 @@ Go to `~/.astria/` and update the `tui-config.toml` to have the following: This step is optional but will make viewing the running rollup much easier in the TUI. -```toml +```bash auto_scroll = true wrap_lines = false borderless = false @@ -55,14 +159,21 @@ border_color = 'gray' ``` Navigate to `~/.astria/novm/networks-config.toml`. Scroll through the -file to find the following heading: +file to find the `[networks.local]` heading. Update the `rollup_name` to be +`astria-chat`. Afterwards, that section should look like the following: ```toml -[networks.local.services] +[networks.local] +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 = 'astria-chat' +default_denom = 'ntia' ``` -Continue scrolling through that section until you pass the last service heading -within the local services: +Continue scrolling through the `[networks.local]` items in the toml until you +pass the last service heading within the local services. That section should +look like the following: ```toml [networks.local.services.sequencer] @@ -155,7 +266,7 @@ generic submissions to the Composer: astria_composer_rollups = '' ``` -## Run the rollup +## Run the rollup and sequencer ```bash astria-go dev run --instance novm --network local diff --git a/docs/tutorials/run-local-rollup-against-remote-sequencer.md b/docs/tutorials/run-local-rollup-against-remote-sequencer.md index 8308b207..c706d77c 100644 --- a/docs/tutorials/run-local-rollup-against-remote-sequencer.md +++ b/docs/tutorials/run-local-rollup-against-remote-sequencer.md @@ -4,22 +4,90 @@ This guide will walk you through running a local Geth rollup against a remote As sequencer, using the `astria-go` cli to run the required components of the Astria stack locally on your machine. -## Setup a Geth Rollup +Install the [`astria-go` +cli](../developer/astria-go/astria-go-installation.md#install-the-astria-go-cli). -### Build Geth +## Setup an `astria-geth` Rollup -Requires `Go`, `just`, `make`, and `Foundry`: +### Clone and Build Astria Geth + +`astria-geth` is a fork of `go-ethereum` modified to work with +the Astria sequencing layer. + +View the source code +[here](https://github.com/astriaorg/astria-geth). + +Requires `Go`, `just`, `make`, `Foundry`, and `jq`: - [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) +- [jq](https://jqlang.org/download/) Open a new terminal window and clone and build Geth. -### Configure the Geth Genesis Information +### CLI Configuration of Astria-Geth Genesis + +Create an account with `cast` and export the address and private key to env +vars. + +```bash +eval $(cast w new --json | jq -r '@sh "export ADDRESS=\(.[:1][].address) PRIV_KEY=\(.[:1][].private_key)"') +``` + +You will use the private key for your new account to send [test +transactions](./test-transactions.md) later on as the same env var. + +Set a rollup name, chain id, and starting balance: + +```bash +export CHAIN_ID= +export ROLLUP_NAME="" +export STARTING_BALANCE=300000000000000000000 +``` + +Get the current block height of the Astria sequencer to properly configure that +rollup: + +```bash +export BLOCK_HEIGHT=$(astria-go sequencer blockheight --network dawn --json | jq -r '.blockheight') +``` + +Once all env vars are set you can print their values for confirmation: + +```bash +echo $ADDRESS +echo $PRIV_KEY +echo $CHAIN_ID +echo $ROLLUP_NAME +echo $STARTING_BALANCE +echo $BLOCK_HEIGHT +``` + +Update the genesis file: + +```bash +jq --arg chain_id "$CHAIN_ID" \ + --arg rollup_name "$ROLLUP_NAME" \ + --arg address "$ADDRESS" \ + --arg starting_balance "$STARTING_BALANCE" \ + --arg initial_seq_height "$BLOCK_HEIGHT" \ + '.config.chainId = ($chain_id|tonumber) | + .config.astriaRollupName = $rollup_name | + .config.astriaSequencerInitialHeight = $initial_seq_height | + .alloc = {($address): { "balance": $starting_balance }}' \ + ./dev/geth-genesis-local.json > temp.json && mv temp.json ./dev/geth-genesis-local.json +``` + +### Manually Configure the Geth Genesis Information + +::: tip +You can skip this section if you have updated the genesis file using the +commands in the previous section. +::: Once you have built the Geth node, you will need to update some additional genesis information to work with the remote sequencer. @@ -101,7 +169,58 @@ just -f dev/justfile clean-restart ## Configure the Local Astria Services -Open a new terminal window and initialize the cli: +With Astria-Geth running, open a new terminal window to configure the local +services. Specifically, the Astria Conductor and Composer. + +### CLI Configuration of the Local Services + +Initialize a new instance with the `astria-go` cli. + +```bash +astria-go dev init +``` + +Export the rollup name. This *must* be the same as the rollup name you used +when [configuring the Astria-Geth +genesis](#cli-configuration-of-astria-geth-genesis). + +```bash +export ROLLUP_NAME="" +``` + +Update the rollup name for your sequencer instance: + +```bash +astria-go dev setconfig rollupname $ROLLUP_NAME +``` + +When running against the remote sequencer, you will also need to create a new +sequencer account to fund the Composer so that it can act as a gas station for +your rollup. The following commands will create a new sequencer account and +update the `composer_dev_priv_key` file in your `default` instance for use with +the Composer. + +```bash +eval $(astria-go sequencer createaccount --insecure --json | jq -r '@sh "export COMPOSER_DEV_ADDRESS=\(.address) COMPOSER_DEV_PRIV_KEY=\(.private_key)"') +echo "$COMPOSER_DEV_PRIV_KEY" > ~/.astria/default/config/composer_dev_priv_key +echo "\nFund this address with the sequencer faucet: $COMPOSER_DEV_ADDRESS\n" +``` + +:::warning +If you skip updating the priv key the Astria services will still start correctly +but your Composer will not be able to submit transactions to the sequencer. +::: + +You can then use the [Sequencer +Faucet](https://faucet.sequencer.dawn-1.astria.org/) to fund the account +you just created using the account address. + +### Manually Configure the Local Services + +::: tip +You can skip this section if you have initialized and updated the local services +config using the commands in the previous section. +::: ```bash astria-go dev init @@ -113,7 +232,7 @@ you should find a `default` directory. Open the `~/.astria/default/networks-config.toml` file and update the `rollup_name` variable in the `[local]` sections using the same `"astriaRollupName"` you used when [setting up your astria-geth -rollup](#setup-a-geth-rollup). +rollup](#setup-an-astria-geth-rollup). ```toml{5} [networks.local] diff --git a/docs/tutorials/run-local-rollup-and-sequencer.md b/docs/tutorials/run-local-rollup-and-sequencer.md index 63d46231..944bc644 100644 --- a/docs/tutorials/run-local-rollup-and-sequencer.md +++ b/docs/tutorials/run-local-rollup-and-sequencer.md @@ -4,25 +4,81 @@ This guide will walk you through running a local Geth rollup against the Astria sequencer, using the `astria-go` cli to run the required components of the Astria stack locally on your machine. +Install the [`astria-go` +cli](../developer/astria-go/astria-go-installation.md#install-the-astria-go-cli). + ## Setup an `astria-geth` Rollup +### Clone and Build Astria Geth + `astria-geth` is a fork of `go-ethereum` modified to work with the Astria sequencing layer. View the source code [here](https://github.com/astriaorg/astria-geth). -Requires `Go`, `just`, `make`, and `Foundry`: +Requires `Go`, `just`, `make`, `Foundry`, and `jq`: - [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) +- [jq](https://jqlang.org/download/) Open a new terminal window and clone and build Geth: +### CLI Configuration of the Astria-Geth Genesis + +Create an account with `cast` and export the address and private key to env +vars. + +```bash +eval $(cast w new --json | jq -r '@sh "export ADDRESS=\(.[:1][].address) PRIV_KEY=\(.[:1][].private_key)"') +``` + +You will use the private key for your new account to send [test +transactions](./test-transactions.md) later on as the same env var. + +Set a rollup name, chain id, and starting balance: + +```bash +export CHAIN_ID= +export ROLLUP_NAME="" +export STARTING_BALANCE=300000000000000000000 +``` + +Once all env vars are set you can print their values for confirmation: + +```bash +echo $ADDRESS +echo $PRIV_KEY +echo $CHAIN_ID +echo $ROLLUP_NAME +echo $STARTING_BALANCE +``` + +Update the genesis file: + +```bash +jq --arg chain_id "$CHAIN_ID" \ + --arg rollup_name "$ROLLUP_NAME" \ + --arg address "$ADDRESS" \ + --arg starting_balance "$STARTING_BALANCE" \ + '.config.chainId = ($chain_id|tonumber) | + .config.astriaRollupName = $rollup_name | + .alloc = {($address): { "balance": $starting_balance }}' \ + ./dev/geth-genesis-local.json > temp.json && mv temp.json ./dev/geth-genesis-local.json +``` + +### Manually Update Astria-Geth Genesis + +::: tip +You can skip this section if you have updated the genesis file using the +commands in the previous section. +::: + Create a new genesis account for your Geth rollup: ```bash @@ -73,9 +129,39 @@ use: just -f dev/justfile clean-restart ``` -## Configure and Start the Local Astria Sequencer +## Configure the Local Astria Sequencer + +With Astria-Geth running, open a new terminal window to configure the local +sequencer. + +### CLI Configuration of the Astria Sequencer + +Initialize a new instance with the `astria-go` cli: + +```bash +astria-go dev init +``` + +Export the rollup name. This *must* be the same as the rollup name you used +when [configuring the Astria-Geth +genesis](#cli-configuration-of-the-astria-geth-genesis). -Open a new terminal window and initialize the cli: +```bash +export ROLLUP_NAME="" +``` + +Update the rollup name for your sequencer instance: + +```bash +astria-go dev setconfig rollupname $ROLLUP_NAME +``` + +### Manually Configure the Sequencer + +::: tip +You can skip this section if you have initialized and updated the sequencer +config using the commands in the previous section. +::: ```bash astria-go dev init @@ -123,6 +209,8 @@ sed -i '' \ ::: +## Start the Sequencer + Use the cli to run a local Astria Sequencer. ```bash