Skip to content

Commit

Permalink
updated to use cli install
Browse files Browse the repository at this point in the history
  • Loading branch information
sambukowski committed Oct 17, 2023
1 parent 2a8eb66 commit 1c9e6e7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,10 @@ For ease of use we recommend you set this to an key which you have access to
Clone the [Astria repo](https://github.com/astriaorg/astria/tree/main) and build
a new config using the `astria-cli`.

<!-- TODO: update this once the cli in merged -->
```bash
git clone git@github.com:astriaorg/astria.git
cd astria/crates/astria-cli
cargo build --release
# return to the root dir of the `astria` repo
cd ../..
cd astria
just install-cli
```

## Using the `astria-cli`
Expand Down Expand Up @@ -121,7 +118,7 @@ export ROLLUP_SEQUENCER_RPC=https://rpc.sequencer.dusk-1.devnet.astria.org
Then just run the config create command:

```sh
./target/release/astria-cli rollup config create
astria-cli rollup config create
```

You can then run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Back in the __Astria repo__, run the cli to create the address and key
information for a new sequencer account.

```bash
./target/release/astria-cli sequencer account create
astria-cli sequencer account create
```

The address, public and private keys will be different from those below. Save
Expand All @@ -67,7 +67,7 @@ export SEQUENCER_PRIV_KEY=<SEQUENCER_ACCOUNT_PRIV_KEY>
Then deploy the configuration with:

```bash
./target/release/astria-cli rollup deployment create \
astria-cli rollup deployment create \
--config $ROLLUP_CONF_FILE \
--faucet-private-key $ROLLUP_FAUCET_PRIV_KEY \
--sequencer-private-key $SEQUENCER_PRIV_KEY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,12 @@ For ease of use we recommend you set this to an key which you have access to

Pull the [Astria repo](https://github.com/astriaorg/astria).

Build the `astria-cli`

```bash
git clone git@github.com:astriaorg/astria.git
cd astria
```

Build `astria-cli` binary.

```bash
cd crates/astria-cli
cargo build --release
# return to top level astria dir
cd ../..
just install-cli
```

## Using the `astria-cli`
Expand Down Expand Up @@ -195,7 +189,7 @@ export ROLLUP_SEQUENCER_RPC=https://rpc.sequencer.dusk-1.devnet.astria.org
Then just run the config create command:

```sh
./target/release/astria-cli rollup config create
astria-cli rollup config create
```

You can then run:
Expand Down Expand Up @@ -234,7 +228,7 @@ export ROLLUP_CONF_FILE=<YOUR_ROLLUP_NAME>-rollup-conf.yaml
## Create new sequencer account

```bash
./target/release/astria-cli sequencer account create
astria-cli sequencer account create
```

```bash
Expand Down Expand Up @@ -267,7 +261,7 @@ export ROLLUP_CHART_PATH="/your_path_to/dev-cluster/charts/rollup"
Use the `astria-cli` to deploy the node.

```bash
./target/release/astria-cli rollup deployment create \
astria-cli rollup deployment create \
--config $ROLLUP_CONF_FILE \
--faucet-private-key $ROLLUP_FAUCET_PRIV_KEY \
--sequencer-private-key $SEQUENCER_PRIV_KEY
Expand All @@ -279,7 +273,7 @@ If there was an error during deployment, you can delete your deployment and try
again with the following:

```bash
./target/release/astria-cli rollup deployment delete --config $ROLLUP_CONF_PATH
astria-cli rollup deployment delete --config $ROLLUP_CONF_PATH
```

## Default to `astria-dev-cluster` namespace
Expand Down

0 comments on commit 1c9e6e7

Please sign in to comment.