Skip to content

Commit

Permalink
feat: implement same components for Mainnet and Mocha as Arabica (#1453)
Browse files Browse the repository at this point in the history
* feat: implement same components for Mainnet and Mocha as Arabica

* docs: suggestions fro mcoderabbit
  • Loading branch information
jcstein authored Mar 11, 2024
1 parent b32c2da commit 9753a0d
Show file tree
Hide file tree
Showing 8 changed files with 225 additions and 113 deletions.
59 changes: 59 additions & 0 deletions .vitepress/components/MainnetBetaDetails.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<template>
<table>
<tr>
<th>Detail</th>
<th>Value</th>
</tr>
<tr>
<td>Chain ID</td>
<td><code>{{ constants.mainnetChainId }}</code></td>
</tr>
<tr>
<td>Genesis hash</td>
<td><code>6BE39EFD10BA412A9DB5288488303F5DD32CF386707A5BEF33617F4C43301872</code></td>
</tr>
<tr>
<td>Genesis file</td>
<td>
<a
:href="`https://github.com/celestiaorg/networks/blob/master/${constants.mainnetChainId}/genesis.json`"
target="_blank"
rel="noopener noreferrer"
>
https://github.com/celestiaorg/networks/blob/master/{{constants.mainnetChainId}}/genesis.json
</a>
</td>
</tr>
<tr>
<td>Peers file</td>
<td>
<a
:href="`https://github.com/celestiaorg/networks/blob/master/${constants.mainnetChainId}/peers.txt`"
target="_blank"
rel="noopener noreferrer"
>
https://github.com/celestiaorg/networks/blob/master/{{constants.mainnetChainId}}/peers.txt
</a>
</td>
</tr>
<tr>
<td>Validators</td>
<td>
100
</td>
</tr>
</table>
</template>

<script>
import constants from "/.vitepress/constants/constants.js";
export default {
name: 'MainnetBetaDetails',
data() {
return {
constants
};
}
}
</script>
76 changes: 32 additions & 44 deletions .vitepress/components/MainnetVersionTags.vue
Original file line number Diff line number Diff line change
@@ -1,59 +1,47 @@
<template>
<ul>
<li>
Celestia chain ID -
<a
:href="`https://github.com/celestiaorg/networks/tree/master/${constants.mainnetChainId}`"
target="_blank"
rel="noopener noreferrer"
>
{{ constants.mainnetChainId }}
</a>
</li>
<li>
celestia-node -
<a
:href="`https://github.com/celestiaorg/celestia-node/releases/tag/${mainnetVersions['node-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mainnetVersions['node-latest-tag'] }}
</a>
</li>
<li>
celestia-app -
<a
:href="`https://github.com/celestiaorg/celestia-app/releases/tag/${mainnetVersions['app-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mainnetVersions['app-latest-tag'] }}
</a>
</li>
<li>
Rollkit -
<a
:href="`https://github.com/rollkit/rollkit/releases/tag/${constants.mainnetRollkitVersion}`"
target="_blank"
rel="noopener noreferrer"
>
{{ constants.mainnetRollkitVersion }}
</a>
</li>
</ul>
<table>
<tr>
<th>Software</th>
<th>Version</th>
</tr>
<tr>
<td>celestia-node</td>
<td>
<a
:href="`https://github.com/celestiaorg/celestia-node/releases/tag/${mainnetVersions['node-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mainnetVersions['node-latest-tag'] }}
</a>
</td>
</tr>
<tr>
<td>celestia-app</td>
<td>
<a
:href="`https://github.com/celestiaorg/celestia-app/releases/tag/${mainnetVersions['app-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mainnetVersions['app-latest-tag'] }}
</a>
</td>
</tr>
</table>
</template>

<script>
import mainnetVersions from "/.vitepress/constants/mainnet_versions.js";
import constants from "/.vitepress/constants/constants.js";
export default {
name: 'mainnetVersionTags',
name: 'MainnetVersionTags',
data() {
return {
mainnetVersions,
constants
};
}
}
</script>
</script>
59 changes: 59 additions & 0 deletions .vitepress/components/MochaTestnetDetails.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<template>
<table>
<tr>
<th>Detail</th>
<th>Value</th>
</tr>
<tr>
<td>Chain ID</td>
<td><code>{{ constants.mochaChainId }}</code></td>
</tr>
<tr>
<td>Genesis hash</td>
<td><code>B93BBE20A0FBFDF955811B6420F8433904664D45DB4BF51022BE4200C1A1680D</code></td>
</tr>
<tr>
<td>Genesis file</td>
<td>
<a
:href="`https://github.com/celestiaorg/networks/blob/master/${constants.mochaChainId}/genesis.json`"
target="_blank"
rel="noopener noreferrer"
>
https://github.com/celestiaorg/networks/blob/master/{{constants.mochaChainId}}/genesis.json
</a>
</td>
</tr>
<tr>
<td>Peers file</td>
<td>
<a
:href="`https://github.com/celestiaorg/networks/blob/master/${constants.mochaChainId}/peers.txt`"
target="_blank"
rel="noopener noreferrer"
>
https://github.com/celestiaorg/networks/blob/master/{{constants.mochaChainId}}/peers.txt
</a>
</td>
</tr>
<tr>
<td>Validators</td>
<td>
100
</td>
</tr>
</table>
</template>

<script>
import constants from "/.vitepress/constants/constants.js";
export default {
name: 'MochaTestnetDetails',
data() {
return {
constants
};
}
}
</script>
74 changes: 31 additions & 43 deletions .vitepress/components/MochaVersionTags.vue
Original file line number Diff line number Diff line change
@@ -1,46 +1,34 @@
<template>
<ul>
<li>
Celestia chain ID -
<a
:href="`https://github.com/celestiaorg/networks/tree/master/${constants.mochaChainId}`"
target="_blank"
rel="noopener noreferrer"
>
{{ constants.mochaChainId }}
</a>
</li>
<li>
celestia-node -
<a
:href="`https://github.com/celestiaorg/celestia-node/releases/tag/${mochaVersions['node-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mochaVersions['node-latest-tag'] }}
</a>
</li>
<li>
celestia-app -
<a
:href="`https://github.com/celestiaorg/celestia-app/releases/tag/${mochaVersions['app-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mochaVersions['app-latest-tag'] }}
</a>
</li>
<li>
Rollkit -
<a
:href="`https://github.com/rollkit/rollkit/releases/tag/${constants.mochaRollkitVersion}`"
target="_blank"
rel="noopener noreferrer"
>
{{ constants.mochaRollkitVersion }}
</a>
</li>
</ul>
<table>
<tr>
<th>Software</th>
<th>Version</th>
</tr>
<tr>
<td>celestia-node</td>
<td>
<a
:href="`https://github.com/celestiaorg/celestia-node/releases/tag/${mochaVersions['node-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mochaVersions['node-latest-tag'] }}
</a>
</td>
</tr>
<tr>
<td>celestia-app</td>
<td>
<a
:href="`https://github.com/celestiaorg/celestia-app/releases/tag/${mochaVersions['app-latest-tag']}`"
target="_blank"
rel="noopener noreferrer"
>
{{ mochaVersions['app-latest-tag'] }}
</a>
</td>
</tr>
</table>
</template>

<script>
Expand All @@ -56,4 +44,4 @@ export default {
};
}
}
</script>
</script>
2 changes: 1 addition & 1 deletion .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ function sidebarHome() {
},
{
text: "Networks",
link: "/nodes/participate",
collapsed: true,
items: [
{ text: "Networks overview", link: "/nodes/participate"},
{ text: "Mainnet Beta", link: "/nodes/mainnet" },
{ text: "Mocha testnet", link: "/nodes/mocha-testnet" },
{ text: "Arabica devnet", link: "/nodes/arabica-devnet" },
Expand Down
15 changes: 10 additions & 5 deletions nodes/mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<script setup>
import MainnetVersionTags from '../.vitepress/components/MainnetVersionTags.vue'
import MainnetBetaDetails from '../.vitepress/components/MainnetBetaDetails.vue'
</script>

![Mainnet Beta](/img/Mainnet-Beta.png)
Expand All @@ -29,6 +30,10 @@ like data availability sampling, it's crucial to remember that Mainnet
Beta remains experimental at this stage. While the network is live and
functional, users may encounter occasional instability or reduced performance.

## Network details

<MainnetBetaDetails/>

## Software version numbers

<MainnetVersionTags/>
Expand Down Expand Up @@ -72,7 +77,7 @@ blob size. It depends on several factors:
and a versioned constant.
- The maximum bytes in a block, which is determined by a governance parameter
and a hard-coded constant in CometBFT.
- The amount of shares occupied by the PFB transaction share.
- The number of shares occupied by the PFB transaction share.

These factors can cause the maximum total blob size that can be included in one
block to vary.
Expand All @@ -86,7 +91,7 @@ node’s guide will link to the relevant network in order to show you how
to connect to them. Learn about the different endpoint types
[in the Cosmos SDK documentation](https://docs.cosmos.network/v0.50/learn/advanced/grpc_rest).

Here is a list of options of the type of nodes you can run in order
Here is a list of options of the types of nodes you can run in order
to participate in Mainnet Beta:

### Consensus nodes
Expand Down Expand Up @@ -188,14 +193,14 @@ node.
:::tip

```bash
celestia <da_type> start core.ip <url> –core.rpc.port <port> \
celestia <da_type> start --core.ip <url> –core.rpc.port <port> \
–core.grpc.port <port>
```

:::

:::tip Bridge nodes
Not all of the RPC endpoints do not guarantee the full block history.
Not all RPC endpoints guarantee the full block history.
Find [an archive endpoint on the community dashboard](https://celestia-tools.brightlystake.com/)
or run your own consensus full node with no pruning for
your bridge node.
Expand All @@ -220,7 +225,7 @@ RPCs for DA nodes to initialise or start your celestia-node to Mainnet Beta with
- RPC: port 26657

DA full and light nodes might have troubles connecting to the networks, so you
can checkout this
can check out this
[Grafana dashboard](https://celestia.grafana.net/public-dashboards/a10eff0043bb4bf0839004e2746e2bc6)
to see health/uptime status of DA bootstrappers (now `celestia` network only).

Expand Down
11 changes: 7 additions & 4 deletions nodes/mocha-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@ on each respective page. Whenever you are asked to select the type of network
you want to connect to in those guides, select `Mocha` to refer
to the correct instructions on this page on how to connect to Mocha.

## Software version numbers

<!-- markdownlint-disable MD033 -->
<script setup>
import MochaVersionTags from '../.vitepress/components/MochaVersionTags.vue'
import MochaTestnetDetails from '../.vitepress/components/MochaTestnetDetails.vue'
</script>

<MochaVersionTags/>
## Network details

<MochaTestnetDetails/>

Below is a list of RPC endpoints you can use to connect to Mocha testnet:
## Software version numbers

<MochaVersionTags/>

## RPC for DA bridge, full, and light nodes

Expand Down
Loading

0 comments on commit 9753a0d

Please sign in to comment.