Skip to content

Commit

Permalink
Dusk 10/integration (#72)
Browse files Browse the repository at this point in the history
Integration branch for new cli, tutorial, and dusk-10 updates.
  • Loading branch information
sambukowski authored Aug 28, 2024
1 parent a5897b7 commit 99b634a
Show file tree
Hide file tree
Showing 26 changed files with 604 additions and 273 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function sidebar() {
items: [
{text: 'Installation', link: '/developer/references/astria-go/cli-installation.md'},
{text: 'Commands', link: '/developer/references/astria-go/cli-commands.md'},
{text: 'Networks Configuration', link: '/developer/references/astria-go/cli-networks-configuration.md'},
{text: 'CLI Configuration', link: '/developer/references/astria-go/cli-config.md'},
]
}
]
Expand Down
18 changes: 9 additions & 9 deletions docs/astria-evm/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@

| Property | Value |
|-----|-----|
| Network Name | dusk-8 |
| RPC URL | [https://rpc.evm.dusk-8.devnet.astria.org](https://rpc.evm.dusk-8.devnet.astria.org) |
| Network Name | dusk-10 |
| RPC URL | [https://rpc.evm.dusk-10.devnet.astria.org](https://rpc.evm.dusk-10.devnet.astria.org) |
| Chain ID | 912559 |
| Currency Symbol | RIA |
| Currency Symbol | TIA |
| Dora | [https://www.ondora.xyz/network/astria-devnet](https://www.ondora.xyz/network/astria-devnet) |
| Faucet | [https://faucet.evm.dusk-8.devnet.astria.org](https://faucet.evm.dusk-8.devnet.astria.org) |
| Block Scout | [https://explorer.evm.dusk-8.devnet.astria.org/](https://explorer.evm.dusk-8.devnet.astria.org/) |
| EVM Faucet | [https://faucet.evm.dusk-10.devnet.astria.org](https://faucet.evm.dusk-10.devnet.astria.org) |
| Block Scout | [https://explorer.evm.dusk-10.devnet.astria.org/](https://explorer.evm.dusk-10.devnet.astria.org/) |

## Adding to Metamask

Follow Metamask's official documentation to [manually add a custom network.](https://support.metamask.io/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC#h_01G63GGJ83DGDRCS2ZWXM37CV5)

Your settings should be the following:

* Network Name: `dusk-8`
* New RPC URL: `https://rpc.evm.dusk-8.devnet.astria.org`
* Network Name: `dusk-10`
* New RPC URL: `https://rpc.evm.dusk-10.devnet.astria.org`
* Chain ID: `912559`
* Currency symbol: `RIA`
* Currency symbol: `TIA`
* Block Explorer URL: `<empty>`

## Using Cast

Set your `ETH_RPC_URL`:

```bash
export ETH_RPC_URL=https://rpc.evm.dusk-8.devnet.astria.org
export ETH_RPC_URL=https://rpc.evm.dusk-10.devnet.astria.org
```

```bash
Expand Down
26 changes: 22 additions & 4 deletions docs/components/_astria-go-cli-build-from-source.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
This requires `Go` and `just` to be installed on your system.

- Go: <https://go.dev/doc/install>
- just: <https://github.com/casey/just>
::: code-group

```bash
```bash [SSH]
git clone [email protected]:astriaorg/astria-cli-go.git
cd astria-cli-go
just build-cli
Expand All @@ -15,3 +13,23 @@ just run version
mv ./bin/astria-go /usr/local/bin/
astria-go version
```

```bash [HTTPS]
git clone https://github.com/astriaorg/astria-cli-go.git
cd astria-cli-go
just build-cli

# run the cli in the repo directory
just run version

# OR you can move the binary to a location in your PATH if you'd like
mv ./bin/astria-go /usr/local/bin/
astria-go version
```

:::

<!-- <Tabs>
<TabItem value="SSH" label="SSH"> </TabItem>
<TabItem value="HTTPS" label="HTTPS" default> </TabItem>
</Tabs> -->
7 changes: 3 additions & 4 deletions docs/components/_astria-go-cli-install.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@

::: code-group

```bash [ARM Mac]
curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.11.0/astria-go-v0.9.0-darwin-arm64.tar.gz > astria-cli.tar.gz
curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.15.0/astria-go-v0.15.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.11.0/astria-go-v0.9.0-darwin-amd64.tar.gz > astria-cli.tar.gz
curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.15.0/astria-go-v0.15.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.11.0/astria-go-v0.9.0-linux-amd64.tar.gz > astria-cli.tar.gz
curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.15.0/astria-go-v0.15.0-linux-amd64.tar.gz > astria-cli.tar.gz
tar -xvzf astria-cli.tar.gz
mv astria-go /usr/local/bin/
astria-go version
Expand Down
8 changes: 4 additions & 4 deletions docs/components/_astria-rust-cli-install.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
::: code-group

```bash [ARM Mac]
curl -L https://github.com/astriaorg/astria/releases/download/cli-v0.3.1/astria-cli-aarch64-apple-darwin.tar.gz > astria-cli.tar.gz
curl -L https://github.com/astriaorg/astria/releases/download/cli-v0.4.0/astria-cli-aarch64-apple-darwin.tar.gz > astria-cli.tar.gz
tar -xvzf astria-cli.tar.gz
mv astria-cli /usr/local/bin/
```

```bash [X86_64 Mac]
curl -L https://github.com/astriaorg/astria/releases/download/cli-v0.3.1/astria-cli-x86_64-apple-darwin.tar.gz > astria-cli.tar.gz
curl -L https://github.com/astriaorg/astria/releases/download/cli-v0.4.0/astria-cli-x86_64-apple-darwin.tar.gz > astria-cli.tar.gz
tar -xvzf astria-cli.tar.gz
mv astria-cli /usr/local/bin/
```

```bash [x86_64 Linux]
curl -L https://github.com/astriaorg/astria/releases/download/cli-v0.3.1/astria-cli-x86_64-unknown-linux-gnu.tar.gz > astria-cli.tar.gz
curl -L https://github.com/astriaorg/astria/releases/download/cli-v0.4.0/astria-cli-x86_64-unknown-linux-gnu.tar.gz > astria-cli.tar.gz
tar -xvzf astria-cli.tar.gz
mv astria-cli /usr/local/bin/
```

```bash [From Source]
cargo install astria-cli --git=https://github.com/astriaorg/astria --tag=cli-v0.3.1 --locked
cargo install astria-cli --git=https://github.com/astriaorg/astria --tag=cli-v0.4.0 --locked
```

:::
Expand Down
25 changes: 25 additions & 0 deletions docs/components/_clone-geth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

::: code-group

```bash [SSH]
git clone [email protected]:astriaorg/astria-geth.git
cd astria-geth
git checkout local-dev
just build
just clean
```

```bash [HTTPS]
git clone https://github.com/astriaorg/astria-geth.git
cd astria-geth
git checkout local-dev
just build
just clean
```

:::

<!-- <Tabs>
<TabItem value="SSH" label="SSH"> </TabItem>
<TabItem value="HTTPS" label="HTTPS" default> </TabItem>
</Tabs> -->
8 changes: 8 additions & 0 deletions docs/components/_dusk-service-versions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Service Versions:

- [Astria Conductor v0.20.0](https://github.com/astriaorg/astria/releases/tag/conductor-v0.20.0)
- [Astria Composer v0.8.2](https://github.com/astriaorg/astria/releases/tag/composer-v0.8.2)
- [Astria Sequencer-relayer v0.16.1](https://github.com/astriaorg/astria/releases/tag/sequencer-relayer-v0.16.1)
- [Astria Sequencer v0.16.0](https://github.com/astriaorg/astria/releases/tag/sequencer-v0.16.0)
- [Astria-Geth EVM v0.14.0](https://github.com/astriaorg/astria-geth/releases/tag/v0.14.0)
- [CometBFT v0.38.8](https://github.com/cometbft/cometbft/releases/tag/v0.38.8)
22 changes: 22 additions & 0 deletions docs/components/_git-clone-and-build-spamooor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
::: code-group

```bash [SSH]
git clone [email protected]:astriaorg/spamooor.git
cd spamooor/
go build ./cmd/spamooor
./spamooor -h
```

```bash [HTTPS]
git clone https://github.com/astriaorg/spamooor.git
cd spamooor/
go build ./cmd/spamooor
./spamooor -h
```

:::

<!-- <Tabs>
<TabItem value="SSH" label="SSH" default> </TabItem>
<TabItem value="HTTPS" label="HTTPS> </TabItem>
</Tabs> -->
8 changes: 8 additions & 0 deletions docs/components/_remote-dawn-endpoints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
| Name | Endpoint |
|---|---|
| EVM JSON RPC | [https://rpc.evm.dawn-0.testnet.astria.org](https://rpc.evm.dawn-0.testnet.astria.org) |
| EVM Block Explorer | [https://explorer.evm.dawn-0.testnet.astria.org](https://explorer.evm.dawn-0.testnet.astria.org) |
| EVM Faucet | [https://faucet.evm.dawn-0.testnet.astria.org](https://faucet.evm.dawn-0.testnet.astria.org) |
| Sequencer RPC | [https://rpc.sequencer.dawn-0.testnet.astria.org](https://rpc.sequencer.dawn-0.testnet.astria.org) |
| Sequencer gRPC | [https://grpc.sequencer.dawn-0.testnet.astria.org](https://grpc.sequencer.dawn-0.testnet.astria.org) |
| Sequencer Faucet | [https://faucet.sequencer.dawn-0.testnet.astria.org](https://faucet.sequencer.dawn-0.testnet.astria.org) |
11 changes: 11 additions & 0 deletions docs/components/_remote-dusk-endpoints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
| Name | Endpoint |
|---|---|
| EVM JSON RPC | [https://rpc.evm.dusk-10.devnet.astria.org](https://rpc.evm.dusk-10.devnet.astria.org) |
| EVM Block Explorer | [https://explorer.evm.dusk-10.devnet.astria.org](https://explorer.evm.dusk-10.devnet.astria.org) |
| EVM Faucet | [https://faucet.evm.dusk-10.devnet.astria.org](https://faucet.evm.dusk-10.devnet.astria.org) |
| Celestia EVM Rollup Namespace | [000000000000000000000000000000000000f3c2910d77141de9bc7c](https://mocha.celenium.io/namespace/000000000000000000000000000000000000f3c2910d77141de9bc7c?tab=Blobs) |
| Sequencer RPC | [https://rpc.sequencer.dusk-10.devnet.astria.org](https://rpc.sequencer.dusk-10.devnet.astria.org) |
| Sequencer gRPC | [https://grpc.sequencer.dusk-10.devnet.astria.org](https://grpc.sequencer.dusk-10.devnet.astria.org) |
| Sequencer Faucet | [https://faucet.sequencer.dusk-10.devnet.astria.org](https://faucet.sequencer.dusk-10.devnet.astria.org) |
| Celestia Sequencer Namespace | [00000000000000000000000000000000000031a3172717024ab8f1db](https://mocha.celenium.io/namespace/00000000000000000000000000000000000031a3172717024ab8f1db?tab=Blobs) |
| Mocha Posting Account | [celestia1qnyk26e49syzzng8sxzxwqd4mg7y4c9erlcnfm](https://mocha.celenium.io/address/celestia1qnyk26e49syzzng8sxzxwqd4mg7y4c9erlcnfm?tab=transactions) |
8 changes: 0 additions & 8 deletions docs/components/_remote-endpoints.md

This file was deleted.

17 changes: 17 additions & 0 deletions docs/developer/references/astria-go/cli-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ astria-go dev purge all [flags]
|---|---|---|---|
| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") |

### Flags

| Flag | Arg Type | Override Env Var | Description |
|---|---|---|---|
| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") |

## `dev purge binaries`

Delete all downloaded binaries for a given instance. `astria-go dev init` must be run before `astria-go dev run`
Expand All @@ -105,6 +111,17 @@ astria-go dev purge binaries [flags]
|---|---|---|---|
| `--instance` | string | `ASTRIA_GO_INSTANCE` | Choose the target instance. (default "default") |

## `dev purge logs`

Delete all logs for a given instance. This deletes all data in the
`~/.astria/logs` directory. Re-initializing is NOT required after using this command.

### Usage

```bash
astria-go dev purge logs [flags]
```

## `dev reset`

The root command for resetting the local development instance data.
Expand Down
Loading

0 comments on commit 99b634a

Please sign in to comment.