Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use constants for tags and versions #366

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .vitepress/constants/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const constants = Object.freeze({
golangVersion: "1.22.2",

rollkitLatestTag: "v0.13.2",
rollkitLatestSha: "d6c34e8",
rollkitCosmosSDKVersion: "v0.50.5-rollkit-v0.13.1-no-fraud-proofs",

mockDALatestTag: "v0.1.0",

igniteVersionTag: "v28.3.0",
});
export default constants;
12 changes: 7 additions & 5 deletions tutorials/gm-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ No prior understanding of the build process is required, just that it utilizes t
<!-- markdownlint-disable MD033 -->
<script setup>
import Callout from '../.vitepress/components/callout.vue'
import constants from '../.vitepress/constants/constants.js'
</script>

:::tip
Expand All @@ -32,20 +33,21 @@ Rollkit uses the [Go programming language](https://go.dev/dl/). Here's how to in

- **Linux or macOS**: Run the provided script:

```bash
curl -sSL https://rollkit.dev/install-go.sh | sh -s 1.22.2
```bash-vue
curl -sSL https://rollkit.dev/install-go.sh | sh -s {{constants.golangVersion}}
```

- **Windows**: Download and execute the [installer](https://go.dev/dl/go1.22.2.windows-amd64.msi).
- **Windows**: Download and execute the <a :href="`https://go.dev/dl/go${constants.golangVersion}.windows-amd64.msi`">installer</a>.


## 🌐 Running a Local DA Network {#running-local-da}

Learn to run a local DA network, designed for educational purposes, on your machine.

To set up a mock DA network node:

```bash
curl -sSL https://rollkit.dev/install-mock-da.sh | sh v0.1.0
```bash-vue
curl -sSL https://rollkit.dev/install-mock-da.sh | sh {{constants.mockDALatestTag}}
```

This script builds and runs the node, now listening on port `7980`.
Expand Down
8 changes: 6 additions & 2 deletions tutorials/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
description: Quickly start a rollup node using the Rollkit CLI.
---

<script setup>
import constants from '../.vitepress/constants/constants.js'
</script>

# Quick start guide

Welcome to Rollkit, a sovereign rollup framework! The easiest way to launch your sovereign rollup node is by using the Rollkit CLI.
Expand All @@ -10,8 +14,8 @@ Welcome to Rollkit, a sovereign rollup framework! The easiest way to launch your

To install Rollkit, run the following command in your terminal:

```bash
curl -sSL https://rollkit.dev/install.sh | sh -s v0.13.2
```bash-vue
curl -sSL https://rollkit.dev/install.sh | sh -s {{constants.rollkitLatestTag}}
```

Verify the installation by checking the Rollkit version:
Expand Down
11 changes: 5 additions & 6 deletions tutorials/wordle.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ to extend this codebase.
<!-- markdownlint-disable MD033 -->
<script setup>
import Callout from '../.vitepress/components/callout.vue'
import constants from '../.vitepress/constants/constants.js'
</script>

:::tip
Expand All @@ -35,8 +36,6 @@ in Ignite to understand all the different components in Cosmos-SDK before
proceeding with this tutorial.

* [GM world](/tutorials/gm-world)
* [Nameservice Tutorial](https://docs.ignite.com/v0.25.2/guide/nameservice)
* [Scavenger Hunt](https://docs.ignite.com/v0.25.2/guide/scavenge)

You do not have to do those guides in order to follow this Wordle tutorial,
but doing so helps you understand the architecture of Cosmos-SDK better.
Expand Down Expand Up @@ -89,8 +88,8 @@ You can read more about Ignite [here](https://docs.ignite.com).

To install Ignite, you can run this command in your terminal:

```bash
curl https://get.ignite.com/cli@v28.3.0! | bash
```bash-vue
curl https://get.ignite.com/cli@{{constants.igniteVersionTag}}! | bash
sudo mv ignite /usr/local/bin/
```

Expand Down Expand Up @@ -175,8 +174,8 @@ Rollkit on our codebase.

Run the following command inside the `wordle` directory.

```bash
go mod edit -replace github.com/cosmos/cosmos-sdk=github.com/rollkit/cosmos-sdk@v0.50.5-rollkit-v0.13.1-no-fraud-proofs
```bash-vue
go mod edit -replace github.com/cosmos/cosmos-sdk=github.com/rollkit/cosmos-sdk@{{constants.rollkitCosmosSDKVersion}}
go mod tidy
go mod download
```
Expand Down
Loading