From 947db1cd8a6b234b2d72b730d742f8f9611e7ad4 Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 5 Feb 2025 11:49:57 -0700 Subject: [PATCH 01/10] update local rollup and seq to have cli only sections --- .../run-local-rollup-and-sequencer.md | 91 ++++++++++++++++++- 1 file changed, 89 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/run-local-rollup-and-sequencer.md b/docs/tutorials/run-local-rollup-and-sequencer.md index 63d46231..b5f42fab 100644 --- a/docs/tutorials/run-local-rollup-and-sequencer.md +++ b/docs/tutorials/run-local-rollup-and-sequencer.md @@ -6,23 +6,76 @@ Astria stack locally on your machine. ## 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: +### Update Astria-Geth Genesis from the Command Line + +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,7 +126,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. + +### Configure the Sequencer from the Command Line + +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](#update-astria-geth-genesis-from-the-command-line). + +```bash +export ROLLUP_NAME="" +``` + +Update the rollup name for your sequencer instance: + +```bash +astria-go dev set-config rollup-name $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. +::: Open a new terminal window and initialize the cli: @@ -123,6 +208,8 @@ sed -i '' \ ::: +## Start the Sequencer + Use the cli to run a local Astria Sequencer. ```bash From 101d8a34533d2e4117c8bf24080e3a00fcc6a690 Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 5 Feb 2025 14:39:08 -0700 Subject: [PATCH 02/10] update local rollup vs remote seq tutorial --- docs/.vitepress/config.mts | 4 + .../astria-cli/astria-cli-commands.md | 3 + .../developer/astria-go/astria-go-commands.md | 3 + ...n-local-rollup-against-remote-sequencer.md | 125 +++++++++++++++++- .../run-local-rollup-and-sequencer.md | 6 +- 5 files changed, 132 insertions(+), 9 deletions(-) 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/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..dd0cf02e 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] +--- diff --git a/docs/tutorials/run-local-rollup-against-remote-sequencer.md b/docs/tutorials/run-local-rollup-against-remote-sequencer.md index 8308b207..ebb2f9b0 100644 --- a/docs/tutorials/run-local-rollup-against-remote-sequencer.md +++ b/docs/tutorials/run-local-rollup-against-remote-sequencer.md @@ -4,22 +4,87 @@ 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 +## Setup an `astria-geth` Rollup -### Build Geth +### Clone and Build Astria Geth -Requires `Go`, `just`, `make`, and `Foundry`: +`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 +166,57 @@ 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](#update-astria-geth-genesis-from-the-command-line). + +```bash +export ROLLUP_NAME="" +``` + +Update the rollup name for your sequencer instance: + +```bash +astria-go dev set-config rollup-name $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 diff --git a/docs/tutorials/run-local-rollup-and-sequencer.md b/docs/tutorials/run-local-rollup-and-sequencer.md index b5f42fab..dfc3acf3 100644 --- a/docs/tutorials/run-local-rollup-and-sequencer.md +++ b/docs/tutorials/run-local-rollup-and-sequencer.md @@ -26,7 +26,7 @@ Open a new terminal window and clone and build Geth: -### Update Astria-Geth Genesis from the Command Line +### CLI Configuration of the Astria-Geth Genesis Create an account with `cast` and export the address and private key to env vars. @@ -131,7 +131,7 @@ just -f dev/justfile clean-restart With Astria-Geth running, open a new terminal window to configure the local sequencer. -### Configure the Sequencer from the Command Line +### CLI Configuration of the Astria Sequencer Initialize a new instance with the `astria-go` cli: @@ -160,8 +160,6 @@ You can skip this section if you have initialized and updated the sequencer config using the commands in the previous section. ::: -Open a new terminal window and initialize the cli: - ```bash astria-go dev init ``` From 0e2d4bb3de359ae5e8c00e0afcc75452932142d4 Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 5 Feb 2025 14:53:25 -0700 Subject: [PATCH 03/10] update astria go command docs --- .../developer/astria-go/astria-go-commands.md | 124 ++++++++++++++++++ 1 file changed, 124 insertions(+) diff --git a/docs/developer/astria-go/astria-go-commands.md b/docs/developer/astria-go/astria-go-commands.md index dd0cf02e..49c5979e 100644 --- a/docs/developer/astria-go/astria-go-commands.md +++ b/docs/developer/astria-go/astria-go-commands.md @@ -215,6 +215,87 @@ 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 set-config` + +The root command for all config update commands within a development instance. + +### Usage + +```bash +astria-go dev set-config [command] [flags] +``` + +## `dev set-config default-denom` + +Set the default sequencer denom across all config for the instance. + +### Usage + +```bash +astria-go dev set-config default-denom [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` | Select the network to run the services against. Valid networks are: local, dusk, dawn, mainnet (default "dawn") | +| `--default-denom` | string | `ASTRIA_GO_DEFAULT_DENOM` | Set the default sequencer denom across all config for the instance. (default "ntia") | + +## `dev set-config rollup-name` + +Set the rollup name across all config for the instance. + +### Usage + +```bash +astria-go dev set-config rollup-name [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 set-config sequencer-chain-id` + +Set the default sequencer chain id across all config for the instance. + +### Usage + +```bash +astria-go dev set-config sequencer-chain-id [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` | Select the network to run the services against. Valid networks are: local, dusk, dawn, mainnet (default "dawn") | +| `--sequencer-chain-id` | string | `ASTRIA_GO_SEQUENCER_CHAIN_ID` | Set the default sequencer chain id across all config for the instance. (default "sequencer-test-chain-0") | + +## `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. @@ -417,6 +498,49 @@ 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 set-config` + +Update the configuration for the sequencer commands config. + +### Usage + +```bash +astria-go sequencer set-config [command] [flags] +``` + +## `sequencer set-config asset` + +Sets the asset and fee asset in the sequencer command configs. + +### Usage + +```bash +astria-go sequencer set-config asset [denom] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--network` | string | `ASTRIA_GO_NETWORK` | Configure the values to target a specific network. (default "dawn") | + +## `sequencer set-config sequencer-chain-id` + +Sets the sequencer chain id in the sequencer command configs. + +### Usage + +```bash +astria-go sequencer set-config sequencer-chain-id [chain-id] [flags] +``` + +### Flags + +| Flag | Arg Type | Override Env Var | Description | +|---|---|---|---| +| `--network` | string | `ASTRIA_GO_NETWORK` | Configure the values to target a specific network. (default "dawn") | + ## `sequencer setkey` Set private key for an address in system keyring. From f4a553dc355e6253c35be17f31e24d2f87727cdd Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 5 Feb 2025 17:10:25 -0700 Subject: [PATCH 04/10] update base novm tutorial to have cli commands section --- docs/tutorials/novm-messenger-rollup.md | 129 ++++++++++++++++++++++-- 1 file changed, 120 insertions(+), 9 deletions(-) diff --git a/docs/tutorials/novm-messenger-rollup.md b/docs/tutorials/novm-messenger-rollup.md index c4b3fe7f..a936da49 100644 --- a/docs/tutorials/novm-messenger-rollup.md +++ b/docs/tutorials/novm-messenger-rollup.md @@ -26,7 +26,10 @@ 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: @@ -34,12 +37,113 @@ Create a new instance with the cli: astria-go dev init --instance novm ``` -Go to `~/.astria/` and update the `tui-config.toml` to have the following: +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 +``` -This step is optional but will make viewing the running rollup much easier in +The previous step is optional but will make viewing the running rollup much easier in the TUI. -```toml +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 set-config rollup-name astria-chat --instancee 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: + +```bash +astria-go dev init --instance novm +``` + +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. + +```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 From 901474fb39472100dd9f1dbc0aa5e787454074af Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 5 Feb 2025 17:14:20 -0700 Subject: [PATCH 05/10] lint fixes --- docs/developer/astria-go/astria-go-commands.md | 1 - docs/tutorials/novm-messenger-rollup.md | 9 ++++----- .../run-local-rollup-against-remote-sequencer.md | 7 ++++--- docs/tutorials/run-local-rollup-and-sequencer.md | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/developer/astria-go/astria-go-commands.md b/docs/developer/astria-go/astria-go-commands.md index 49c5979e..9b98979b 100644 --- a/docs/developer/astria-go/astria-go-commands.md +++ b/docs/developer/astria-go/astria-go-commands.md @@ -498,7 +498,6 @@ 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 set-config` Update the configuration for the sequencer commands config. diff --git a/docs/tutorials/novm-messenger-rollup.md b/docs/tutorials/novm-messenger-rollup.md index a936da49..4e2e8b5c 100644 --- a/docs/tutorials/novm-messenger-rollup.md +++ b/docs/tutorials/novm-messenger-rollup.md @@ -28,7 +28,6 @@ You will need the following installed to complete the tutorial: ## Configure the `astria-go` CLI for Running the `noVM` Rollup - ### CLI Configuration Create a new instance with the cli: @@ -56,8 +55,8 @@ border_color = 'gray' EOF ``` -The previous step is optional but will make viewing the running rollup much easier in -the TUI. +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: @@ -132,7 +131,6 @@ 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: ```bash @@ -141,7 +139,8 @@ astria-go dev init --instance novm 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. +This step is optional but will make viewing the running rollup much easier in +the TUI. ```bash auto_scroll = true diff --git a/docs/tutorials/run-local-rollup-against-remote-sequencer.md b/docs/tutorials/run-local-rollup-against-remote-sequencer.md index ebb2f9b0..f5e4901e 100644 --- a/docs/tutorials/run-local-rollup-against-remote-sequencer.md +++ b/docs/tutorials/run-local-rollup-against-remote-sequencer.md @@ -179,7 +179,7 @@ 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](#update-astria-geth-genesis-from-the-command-line). +genesis](#cli-configuration-of-astria-geth-genesis). ```bash export ROLLUP_NAME="" @@ -215,7 +215,8 @@ 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. +You can skip this section if you have initialized and updated the local services +config using the commands in the previous section. ::: ```bash @@ -228,7 +229,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 dfc3acf3..e84e0a5a 100644 --- a/docs/tutorials/run-local-rollup-and-sequencer.md +++ b/docs/tutorials/run-local-rollup-and-sequencer.md @@ -141,7 +141,7 @@ 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](#update-astria-geth-genesis-from-the-command-line). +genesis](#cli-configuration-of-the-astria-geth-genesis). ```bash export ROLLUP_NAME="" From d46994c0cd2f4a10210efbfe0b53aad3c70f666a Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 12 Feb 2025 13:15:13 -0700 Subject: [PATCH 06/10] update setconfig commands --- .../developer/astria-go/astria-go-commands.md | 77 +++++++++++++------ 1 file changed, 54 insertions(+), 23 deletions(-) diff --git a/docs/developer/astria-go/astria-go-commands.md b/docs/developer/astria-go/astria-go-commands.md index 9b98979b..50c76447 100644 --- a/docs/developer/astria-go/astria-go-commands.md +++ b/docs/developer/astria-go/astria-go-commands.md @@ -215,24 +215,24 @@ 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 set-config` +## `dev setconfig` The root command for all config update commands within a development instance. ### Usage ```bash -astria-go dev set-config [command] [flags] +astria-go dev setconfig [command] [flags] ``` -## `dev set-config default-denom` +## `dev setconfig feeasset` -Set the default sequencer denom across all config for the instance. +Set the sequencer fee asset across all config for the instance. ### Usage ```bash -astria-go dev set-config default-denom [denom] [flags] +astria-go dev setconfig feeasset [denom] [flags] ``` ### Flags @@ -240,17 +240,32 @@ astria-go dev set-config default-denom [denom] [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") | -| `--default-denom` | string | `ASTRIA_GO_DEFAULT_DENOM` | Set the default sequencer denom across all config for the instance. (default "ntia") | -## `dev set-config rollup-name` +## `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 set-config rollup-name [name] [flags] +astria-go dev setconfig rollupname [name] [flags] ``` ### Flags @@ -261,14 +276,14 @@ astria-go dev set-config rollup-name [name] [flags] | `--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 set-config sequencer-chain-id` +## `dev setconfig sequencerchainid` Set the default sequencer chain id across all config for the instance. ### Usage ```bash -astria-go dev set-config sequencer-chain-id [chain-id] [flags] +astria-go dev setconfig sequencerchainid [chain-id] [flags] ``` ### Flags @@ -276,8 +291,8 @@ astria-go dev set-config sequencer-chain-id [chain-id] [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-chain-id` | string | `ASTRIA_GO_SEQUENCER_CHAIN_ID` | Set the default sequencer chain id across all config for the instance. (default "sequencer-test-chain-0") | +| `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the sequencer chain id is being updated for. (default "local") | +| `--sequencer-chain-id` | string | `ASTRIA_GO_SEQUENCER_CHAIN_ID` | Set the sequencer chain id across all config for the instance. (default "sequencer-test-chain-0") | ## `dev version` @@ -498,47 +513,63 @@ 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 set-config` +## `sequencer setconfig` Update the configuration for the sequencer commands config. ### Usage ```bash -astria-go sequencer set-config [command] [flags] +astria-go sequencer setconfig [command] [flags] ``` -## `sequencer set-config asset` +## `sequencer setconfig feeasset` -Sets the asset and fee asset in the sequencer command configs. +Sets the fee asset in the sequencer command configs. ### Usage ```bash -astria-go sequencer set-config asset [denom] [flags] +astria-go sequencer setconfig feeasset [denom] [flags] ``` ### Flags | Flag | Arg Type | Override Env Var | Description | |---|---|---|---| -| `--network` | string | `ASTRIA_GO_NETWORK` | Configure the values to target a specific network. (default "dawn") | +| `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the sequencer chain id is being updated for. (default "local") | -## `sequencer set-config sequencer-chain-id` +## `sequencer setconfig nativeasset` -Sets the sequencer chain id in the sequencer command configs. +Sets the native asset in the sequencer command configs. ### Usage ```bash -astria-go sequencer set-config sequencer-chain-id [chain-id] [flags] +astria-go sequencer setconfig nativeasset [denom] [flags] ``` ### Flags | Flag | Arg Type | Override Env Var | Description | |---|---|---|---| -| `--network` | string | `ASTRIA_GO_NETWORK` | Configure the values to target a specific network. (default "dawn") | +| `--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` From f03a9eb5ba2ed7c8788b0c53680ffb8f6221a44d Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 12 Feb 2025 13:23:23 -0700 Subject: [PATCH 07/10] update commands in tutorials --- docs/tutorials/novm-messenger-rollup.md | 2 +- docs/tutorials/run-local-rollup-against-remote-sequencer.md | 2 +- docs/tutorials/run-local-rollup-and-sequencer.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/novm-messenger-rollup.md b/docs/tutorials/novm-messenger-rollup.md index 4e2e8b5c..3fcd4a71 100644 --- a/docs/tutorials/novm-messenger-rollup.md +++ b/docs/tutorials/novm-messenger-rollup.md @@ -102,7 +102,7 @@ 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 set-config rollup-name astria-chat --instancee novm +astria-go dev setconfig rollupname astria-chat --instance novm ``` Then update the env vars for Composer to communicate properly with the rollup: diff --git a/docs/tutorials/run-local-rollup-against-remote-sequencer.md b/docs/tutorials/run-local-rollup-against-remote-sequencer.md index f5e4901e..d2a087c1 100644 --- a/docs/tutorials/run-local-rollup-against-remote-sequencer.md +++ b/docs/tutorials/run-local-rollup-against-remote-sequencer.md @@ -188,7 +188,7 @@ export ROLLUP_NAME="" Update the rollup name for your sequencer instance: ```bash -astria-go dev set-config rollup-name $ROLLUP_NAME +astria-go dev setconfig rollupname $ROLLUP_NAME ``` When running against the remote sequencer, you will also need to create a new diff --git a/docs/tutorials/run-local-rollup-and-sequencer.md b/docs/tutorials/run-local-rollup-and-sequencer.md index e84e0a5a..1d7f34aa 100644 --- a/docs/tutorials/run-local-rollup-and-sequencer.md +++ b/docs/tutorials/run-local-rollup-and-sequencer.md @@ -150,7 +150,7 @@ export ROLLUP_NAME="" Update the rollup name for your sequencer instance: ```bash -astria-go dev set-config rollup-name $ROLLUP_NAME +astria-go dev setconfig rollupname $ROLLUP_NAME ``` ### Manually Configure the Sequencer From a9772eec75200564109ab5de89a4a38db5da4c76 Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 12 Feb 2025 13:27:04 -0700 Subject: [PATCH 08/10] add chat ui image to charts tutorial --- docs/tutorials/assets/astria-chat.png | Bin 0 -> 22871 bytes .../deploy-novm-messenger-with-charts.md | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 docs/tutorials/assets/astria-chat.png diff --git a/docs/tutorials/assets/astria-chat.png b/docs/tutorials/assets/astria-chat.png new file mode 100644 index 0000000000000000000000000000000000000000..ec1bed751d1fdefcdc529bf18e98118ba6ac251f GIT binary patch literal 22871 zcmeHvc|4SD`!{2Vw4k!Ipe&WLgvxH(NQ72dM~f)8B~y08+;vw{D#=6)xTl(ERJ8mX{IT8ckiqfYyE)|GnU{m} z!U+yEy9xX(g&%k|hLeK}esi*EF{sJ^a=(k=ntbLOYw637*ul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k%+du}=p+ Qddy+4!+86nt+v1a2NS^ing9R* literal 0 HcmV?d00001 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. From 61f5818a8b3a31d3eaf32ad1bea784d9d8698cfa Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 12 Feb 2025 14:06:35 -0700 Subject: [PATCH 09/10] seq asset command updates --- docs/developer/astria-go/astria-go-commands.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/developer/astria-go/astria-go-commands.md b/docs/developer/astria-go/astria-go-commands.md index 50c76447..8386fc44 100644 --- a/docs/developer/astria-go/astria-go-commands.md +++ b/docs/developer/astria-go/astria-go-commands.md @@ -292,7 +292,6 @@ astria-go dev setconfig sequencerchainid [chain-id] [flags] |---|---|---|---| | `--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") | -| `--sequencer-chain-id` | string | `ASTRIA_GO_SEQUENCER_CHAIN_ID` | Set the sequencer chain id across all config for the instance. (default "sequencer-test-chain-0") | ## `dev version` @@ -539,14 +538,14 @@ astria-go sequencer setconfig feeasset [denom] [flags] |---|---|---|---| | `--network` | string | `ASTRIA_GO_NETWORK` | Specify the network that the sequencer chain id is being updated for. (default "local") | -## `sequencer setconfig nativeasset` +## `sequencer setconfig asset` -Sets the native asset in the sequencer command configs. +Sets the asset in the sequencer command configs. ### Usage ```bash -astria-go sequencer setconfig nativeasset [denom] [flags] +astria-go sequencer setconfig asset [denom] [flags] ``` ### Flags From 0a7ec7c14ab1d6de98b510b8b827360941fe2eb4 Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Wed, 12 Feb 2025 17:53:43 -0700 Subject: [PATCH 10/10] bump go cli version, add setconfig commands to config docs --- docs/components/_astria-go-cli-install.md | 6 +-- docs/config.js | 2 +- docs/developer/astria-go/astria-go-config.md | 51 +++++++++++++++++++ docs/tutorials/novm-messenger-rollup.md | 1 + ...n-local-rollup-against-remote-sequencer.md | 3 ++ .../run-local-rollup-and-sequencer.md | 3 ++ 6 files changed, 62 insertions(+), 4 deletions(-) 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 a01c2021..8e5e7166 100644 --- a/docs/config.js +++ b/docs/config.js @@ -228,6 +228,6 @@ export const siteConfig = { }, cli: { rust: "v0.5.1", - go: "v0.15.0", + go: "v0.16.0", } }; 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/novm-messenger-rollup.md b/docs/tutorials/novm-messenger-rollup.md index 3fcd4a71..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) diff --git a/docs/tutorials/run-local-rollup-against-remote-sequencer.md b/docs/tutorials/run-local-rollup-against-remote-sequencer.md index d2a087c1..c706d77c 100644 --- a/docs/tutorials/run-local-rollup-against-remote-sequencer.md +++ b/docs/tutorials/run-local-rollup-against-remote-sequencer.md @@ -4,6 +4,9 @@ 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. +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 diff --git a/docs/tutorials/run-local-rollup-and-sequencer.md b/docs/tutorials/run-local-rollup-and-sequencer.md index 1d7f34aa..944bc644 100644 --- a/docs/tutorials/run-local-rollup-and-sequencer.md +++ b/docs/tutorials/run-local-rollup-and-sequencer.md @@ -4,6 +4,9 @@ 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