Skip to content

Commit

Permalink
added configurable info for dawn, dusk, and flame
Browse files Browse the repository at this point in the history
  • Loading branch information
sambukowski committed Oct 16, 2024
1 parent 9532013 commit d7a6740
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 106 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function sidebar() {
text: 'Flame',
collapsed: true,
items: [
{ text: 'Flame EVM', link: '/flame/flame.md' },
{ text: 'Flame - Testnet', link: '/flame/flame-testnet.md' },
]
},
{
Expand Down
12 changes: 0 additions & 12 deletions docs/components/_dusk-service-versions.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/components/_remote-dusk-endpoints.md

This file was deleted.

71 changes: 64 additions & 7 deletions docs/config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
export const siteConfig = {
urls: {
homepage: 'https://example.com',
docs: 'https://docs.example.com',
// Add more URLs as needed
flame: {
info: {
network_name: "dawn-0",
chain_id: "16604737732183",
// for rpc url set in the dawn/dusk sections below
// for explorer url set in the dawn/dusk sections below
native_asset: "transfer/channel-3/utia",
currency_symbol: "TIA",
},
bridging: {
sequencer_flame_bridge_address: "astria1yxzlr2um0c9mt6ym8q4f0jdk8ea4r7es4cgkw5",
ibc_mocha_to_dawn: "channel-129",
ibc_dawn_to_mocha: "channel-3",
},
},
dawn: {
num: 0,
Expand All @@ -15,11 +25,58 @@ export const siteConfig = {
celenium_signer_link: "https://mocha-4.celenium.io/address/celestia182t89y2esh02a6eyqvthn7l478c6aa80st70vn?tab=transactions",
celestia_namespace: "00000000000000000000000000000000000059dfee4267024677d4d4",
celenium_namespace_link: "https://mocha.celenium.io/namespace/00000000000000000000000000000000000059dfee4267024677d4d4?tab=Blobs",
// TODO add service version info
// services
conductor_version: "v0.20.0",
conductor_release: "https://github.com/astriaorg/astria/releases/tag/conductor-v0.20.0",
conductor_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-conductor",
composer_version: "v0.8.2",
composer_release: "https://github.com/astriaorg/astria/releases/tag/composer-v0.8.2",
composer_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-composer",
sequencer_relayer_version: "v0.16.1",
sequencer_relayer_release: "https://github.com/astriaorg/astria/releases/tag/sequencer-relayer-v0.16.1",
sequencer_relayer_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer-relayer",
sequencer_version: "v0.16.0",
sequencer_release: "https://github.com/astriaorg/astria/releases/tag/sequencer-v0.16.0",
sequencer_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer",
flame_version: "v0.14.0",
flame_release: "https://github.com/astriaorg/astria-geth/releases/tag/v0.14.0",
flame_repo: "https://github.com/astriaorg/astria-geth",
cometbft_version: "v0.38.8",
cometbft_release: "https://github.com/cometbft/cometbft/releases/tag/v0.38.8",
cometbft_repo: "https://github.com/cometbft/cometbft",
},
dusk: {
// Dusk-specific configuration
rpc: "https://rpc.flame.dusk-0.astria.org",
num: 10,
flame_rpc: "https://rpc.evm.dusk-10.devnet.astria.org",
flame_explorer: "https://explorer.evm.dusk-10.devnet.astria.org",
flame_faucet: "https://faucet.evm.dusk-10.devnet.astria.org",
sequencer_rpc: "https://rpc.sequencer.dusk-10.devnet.astria.org",
sequencer_grpc: "https://grpc.sequencer.dusk-10.devnet.astria.org",
sequencer_faucet: "https://faucet.sequencer.dusk-10.devnet.astria.org",
sequencer_explorer: "https://dusk.astrotrek.io/",
celestia_signer_address: "celestia1qnyk26e49syzzng8sxzxwqd4mg7y4c9erlcnfm",
celenium_signer_link: "https://mocha.celenium.io/address/celestia1qnyk26e49syzzng8sxzxwqd4mg7y4c9erlcnfm?tab=transactions",
celestia_namespace: "00000000000000000000000000000000000031a3172717024ab8f1db",
celenium_namespace_link: "https://mocha.celenium.io/namespace/00000000000000000000000000000000000031a3172717024ab8f1db?tab=Blobs",
// services
conductor_version: "v0.20.0",
conductor_release: "https://github.com/astriaorg/astria/releases/tag/conductor-v0.20.0",
conductor_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-conductor",
composer_version: "v0.8.2",
composer_release: "https://github.com/astriaorg/astria/releases/tag/composer-v0.8.2",
composer_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-composer",
sequencer_relayer_version: "v0.16.1",
sequencer_relayer_release: "https://github.com/astriaorg/astria/releases/tag/sequencer-relayer-v0.16.1",
sequencer_relayer_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer-relayer",
sequencer_version: "v0.16.0",
sequencer_release: "https://github.com/astriaorg/astria/releases/tag/sequencer-v0.16.0",
sequencer_repo: "https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer",
flame_version: "v0.14.0",
flame_release: "https://github.com/astriaorg/astria-geth/releases/tag/v0.14.0",
flame_repo: "https://github.com/astriaorg/astria-geth",
cometbft_version: "v0.38.8",
cometbft_release: "https://github.com/cometbft/cometbft/releases/tag/v0.38.8",
cometbft_repo: "https://github.com/cometbft/cometbft",
},
local: {
// Local-specific configuration
Expand Down
68 changes: 68 additions & 0 deletions docs/flame/flame-testnet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!-- markdownlint-disable MD041 MD033 -->

<script setup>
import { siteConfig } from '../config.js'

const config = siteConfig
</script>

# Flame EVM

Flame is the EVM for Celestia Native DeFi.

## EVM Information

| Property | Value |
|-----|-----|
| Network Name | `{{config.flame.info.network_name}}` |
| Chain ID | `{{config.flame.info.chain_id}}` |
| RPC URL | <a :href="config.dawn.flame_rpc" target="_blank" rel="noopener noreferrer">{{config.dawn.flame_rpc}}</a> |
| Flame EVM Block Explorer | <a :href="config.dawn.flame_explorer" target="_blank" rel="noopener noreferrer">{{config.dawn.flame_explorer}}</a> |
| Native sequencer Asset | `{{config.flame.info.native_asset}}` |
| Currency Symbol | `{{config.flame.info.currency_symbol}}` |

## Bridging

| Property | Value |
|-----|-----|
| Sequencer <-> Flame Bridge Account | `{{config.flame.bridging.sequencer_flame_bridge_address}}` |
| IBC Channel: mocha-4 -> dawn-0 | `{{config.flame.bridging.ibc_mocha_to_dawn}}` |
| IBC Channel: dawn-0 -> mocha-4 | `{{config.flame.bridging.ibc_dawn_to_mocha}}` |

## 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:

| Property | Value |
| --- | --- |
| Network Name | `{{config.flame.info.network_name}}` |
| New RPC URL | <a :href="config.dawn.flame_rpc" target="_blank" rel="noopener noreferrer">{{config.dawn.flame_rpc}}</a> |
| Chain ID | `{{config.flame.info.chain_id}}` |
| Currency symbol | `{{config.flame.info.currency_symbol}}` |
| Block Explorer | <a :href="config.dawn.flame_explorer" target="_blank" rel="noopener noreferrer">{{config.dawn.flame_explorer}}</a> |

## Using Cast

Set your `ETH_RPC_URL`:

```bash
export ETH_RPC_URL=https://rpc.flame.dawn-0.astria.org
```

```bash
export REC_ADDR=<SOME_ADDRESS>
```

```bash
cast balance $REC_ADDR
```

```bash
cast send $REC_ADDR --value 10000000000000000000 --private-key <PRIVATE-KEY>
```

```bash
cast balance $REC_ADDR
```
60 changes: 0 additions & 60 deletions docs/flame/flame.md

This file was deleted.

37 changes: 34 additions & 3 deletions docs/networks/devnet.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
<!-- markdownlint-disable MD041 MD033 -->

<script setup>
import { siteConfig } from '../config.js'

const dusk = siteConfig.dusk
</script>

# Astria Dusk Devnet

## Dusk-10 Endpoints and Service Versions
## Dusk-{{dusk.num}} Endpoints

| Name | Endpoint |
|---|---|
| Sequencer Faucet | [https://faucet.sequencer.dusk-10.devnet.astria.org](https://faucet.sequencer.dusk-10.devnet.astria.org) |
| Sequencer Block Explorer | [https://dusk.astrotrek.io/](https://dusk.astrotrek.io/) |
| Celestia Signer Account | [celestia1qnyk26e49syzzng8sxzxwqd4mg7y4c9erlcnfm](https://mocha.celenium.io/address/celestia1qnyk26e49syzzng8sxzxwqd4mg7y4c9erlcnfm?tab=transactions) |
| Celestia Sequencer Namespace | [00000000000000000000000000000000000031a3172717024ab8f1db](https://mocha.celenium.io/namespace/00000000000000000000000000000000000031a3172717024ab8f1db?tab=Blobs) |
| Flame RPC | <a :href="dusk.flame_rpc" target="_blank" rel="noopener noreferrer">{{dusk.flame_rpc}}</a> |
| Flame Block Explorer | <a :href="dusk.flame_explorer" target="_blank" rel="noopener noreferrer">{{dusk.flame_explorer}}</a> |
| Flame Faucet | <a :href="dusk.flame_faucet" target="_blank" rel="noopener noreferrer">{{dusk.flame_faucet}}</a> |
| Sequencer RPC | <a :href="dusk.sequencer_rpc" target="_blank" rel="noopener noreferrer">{{dusk.sequencer_rpc}}</a> |
| Sequencer gRPC | <a :href="dusk.sequencer_grpc" target="_blank" rel="noopener noreferrer">{{dusk.sequencer_grpc}}</a> |
| Sequencer Faucet | <a :href="dusk.sequencer_faucet" target="_blank" rel="noopener noreferrer">{{dusk.sequencer_faucet}}</a> |
| Sequencer Block Explorer | <a :href="dusk.sequencer_explorer" target="_blank" rel="noopener noreferrer">{{dusk.sequencer_explorer}}</a> |
| Celestia Signer Address | <a :href="dusk.celenium_signer_link" target="_blank" rel="noopener noreferrer">{{dusk.celestia_signer_address}}</a> |
| Celestia Dusk-{{dusk.num}} Namespace | <a :href="dusk.celenium_namespace_link" target="_blank" rel="noopener noreferrer">{{dusk.celestia_namespace}}</a> |

<!--@include: ../components/_remote-dusk-endpoints.md-->
## Dusk-{{dusk.num}} Service Versions

<!--@include: ../components/_dusk-service-versions.md-->
| Service Name | Version | Source |
|---|---|---|
| Astria Conductor | <a :href="dusk.conductor_release" target="_blank" rel="noopener noreferrer">{{dusk.conductor_version}}</a> | <a :href="dusk.conductor_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Astria Composer | <a :href="dusk.composer_release" target="_blank" rel="noopener noreferrer">{{dusk.composer_version}}</a> | <a :href="dusk.composer_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Astria Sequencer-relayer | <a :href="dusk.sequencer_relayer_release" target="_blank" rel="noopener noreferrer">{{dusk.sequencer_relayer_version}}</a> | <a :href="dusk.sequencer_relayer_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Astria Sequencer | <a :href="dusk.sequencer_release" target="_blank" rel="noopener noreferrer">{{dusk.sequencer_version}}</a> | <a :href="dusk.sequencer_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Flame | <a :href="dusk.flame_release" target="_blank" rel="noopener noreferrer">{{dusk.flame_version}}</a> | <a :href="dusk.flame_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| CometBFT | <a :href="dusk.cometbft_release" target="_blank" rel="noopener noreferrer">{{dusk.cometbft_version}}</a> | <a :href="dusk.cometbft_repo" target="_blank" rel="noopener noreferrer">repo</a> |
18 changes: 8 additions & 10 deletions docs/networks/testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const dawn = siteConfig.dawn

| Name | Endpoint |
|---|---|
| Flame EVM JSON RPC | <a :href="dawn.flame_rpc" target="_blank" rel="noopener noreferrer">{{dawn.flame_rpc }}</a> |
| Flame EVM Block Explorer | <a :href="dawn.flame_explorer" target="_blank" rel="noopener noreferrer">{{dawn.flame_explorer }}</a> |
| Flame RPC | <a :href="dawn.flame_rpc" target="_blank" rel="noopener noreferrer">{{dawn.flame_rpc}}</a> |
| Flame Block Explorer | <a :href="dawn.flame_explorer" target="_blank" rel="noopener noreferrer">{{dawn.flame_explorer}}</a> |
| Sequencer RPC | <a :href="dawn.sequencer_rpc" target="_blank" rel="noopener noreferrer">{{dawn.sequencer_rpc}}</a> |
| Sequencer gRPC | <a :href="dawn.sequencer_grpc" target="_blank" rel="noopener noreferrer">{{dawn.sequencer_grpc}}</a> |
| Sequencer Block Explorer | <a :href="dawn.sequencer_explorer" target="_blank" rel="noopener noreferrer">{{dawn.sequencer_explorer}}</a> |
Expand All @@ -24,11 +24,9 @@ const dawn = siteConfig.dawn

| Service Name | Version | Source |
|---|---|---|
| Astria Conductor | [v0.20.0](https://github.com/astriaorg/astria/releases/tag/conductor-v0.20.0) | [repo](https://github.com/astriaorg/astria/tree/main/crates/astria-conductor) |
| Astria Composer | [v0.8.2](https://github.com/astriaorg/astria/releases/tag/composer-v0.8.2) | [repo](https://github.com/astriaorg/astria/tree/main/crates/astria-composer) |
| Astria Sequencer-relayer | [v0.16.a](https://github.com/astriaorg/astria/releases/tag/sequencer-relayer-v0.16.1) | [repo](https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer-relayer) |
| Astria Sequencer | [v0.16.0](https://github.com/astriaorg/astria/releases/tag/sequencer-v0.16.0) | [repo](https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer) |
| Astria-Geth EVM | [v0.14.0](https://github.com/astriaorg/astria-geth/releases/tag/v0.14.0) | [repo](https://github.com/astriaorg/astria-geth) |
| CometBFT | [v0.38.8](https://github.com/cometbft/cometbft/releases/tag/v0.38.8) | [repo](https://github.com/cometbft/cometbft) |

Testing some stuff with a link <a :href="dawn.rpc">{{dawn.rpc }}</a>.
| Astria Conductor | <a :href="dawn.conductor_release" target="_blank" rel="noopener noreferrer">{{dawn.conductor_version}}</a> | <a :href="dawn.conductor_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Astria Composer | <a :href="dawn.composer_release" target="_blank" rel="noopener noreferrer">{{dawn.composer_version}}</a> | <a :href="dawn.composer_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Astria Sequencer-relayer | <a :href="dawn.sequencer_relayer_release" target="_blank" rel="noopener noreferrer">{{dawn.sequencer_relayer_version}}</a> | <a :href="dawn.sequencer_relayer_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Astria Sequencer | <a :href="dawn.sequencer_release" target="_blank" rel="noopener noreferrer">{{dawn.sequencer_version}}</a> | <a :href="dawn.sequencer_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| Flame | <a :href="dawn.flame_release" target="_blank" rel="noopener noreferrer">{{dawn.flame_version}}</a> | <a :href="dawn.flame_repo" target="_blank" rel="noopener noreferrer">repo</a> |
| CometBFT | <a :href="dawn.cometbft_release" target="_blank" rel="noopener noreferrer">{{dawn.cometbft_version}}</a> | <a :href="dawn.cometbft_repo" target="_blank" rel="noopener noreferrer">repo</a> |

0 comments on commit d7a6740

Please sign in to comment.