-
Notifications
You must be signed in to change notification settings - Fork 57
Minor updates to Wordle #373
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
bdaf40f
Update gm frontend tutorial
yarikbratashchuk 66b24a4
Update gm world tutorial: use bash and which
yarikbratashchuk 813e6c1
Add celestia-da tutorial, network agnostic (#368)
yarikbratashchuk 11ceb7b
Node and yarn versions as constants, custom script to install yarn an…
6bc7c2c
Add brew bin to $PATH
f5a0cdb
Updates to Wordle tutorial:
yarikbratashchuk e737bbc
Merge branch 'main' into yarik/wordle
yarikbratashchuk 41c6922
Fix Next Steps wording
yarikbratashchuk c38b693
Merge branch 'main' into yarik/wordle
jcstein bde6ece
Update tutorials/gm-world-frontend.md
jcstein 21ba813
fix: add backticks
jcstein 1c8841c
Update tutorials/wordle.md
jcstein 6ee3c9f
Apply suggestions from code review
jcstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,6 @@ import constants from '../.vitepress/constants/constants.js' | |
::: | ||
<!-- markdownlint-enable MD033 --> | ||
|
||
::: warning | ||
The script for this tutorial is built for Celestia's | ||
[Arabica devnet](https://docs.celestia.org/nodes/arabica-devnet). | ||
::: | ||
|
||
## 💻 Pre-requisites {#prerequisites} | ||
|
||
Given this tutorial is targeted for developers who are experienced | ||
|
@@ -187,7 +182,7 @@ let's build the Wordle app! | |
|
||
For the Wordle module, we can add dependencies offered by Cosmos-SDK. | ||
|
||
From the Cosmos-SDK docs, a [module](https://docs.ignite.com/v0.25.2/guide/nameservice#cosmos-sdk-modules) | ||
From the Cosmos-SDK docs, a [module](https://docs.cosmos.network/main/glossary#module) | ||
yarikbratashchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
is defined as the following: | ||
|
||
> In a Cosmos SDK blockchain, application-specific logic | ||
|
@@ -224,7 +219,7 @@ This will scaffold the Wordle module to our Wordle Chain project. | |
|
||
Messages allow us to process and submit information to our specific module. | ||
|
||
From the Cosmos-SDK docs, [messages](https://docs.cosmos.network/main/building-modules/messages-and-queries.html#messages) | ||
From the Cosmos-SDK docs, [messages](https://docs.cosmos.network/main/build/building-modules/messages-and-queries) | ||
are: | ||
|
||
> In the Cosmos SDK, messages are objects that are contained | ||
|
@@ -287,7 +282,7 @@ this address submitted. | |
<!-- markdownlint-disable MD013 --> | ||
|
||
Now it’s time to implement the Keeper functions for each | ||
message. From the Cosmos-SDK docs, [Keeper](https://docs.cosmos.network/main/building-modules/keeper.html) | ||
message. From the Cosmos-SDK docs, [Keeper](https://docs.cosmos.network/main/build/building-modules/keeper) | ||
is defined as the following: | ||
|
||
> The main core of a Cosmos SDK module is a piece called the keeper. | ||
|
@@ -550,27 +545,18 @@ compile the blockchain and take it out for a test drive. | |
## ⛓️ Run the wordle chain | ||
<!-- markdownlint-disable MD013 --> | ||
|
||
### 🪶 Run a Celestia light node {#run-celestia-light-node} | ||
|
||
Follow instructions to install and start your Celestia Data Availability | ||
layer Light Node selecting the Arabica Devnet. You can | ||
find instructions to install and run the node [here](https://docs.celestia.org/nodes/light-node). | ||
### 🪶 Run a mock DA node {#run-mock-da-node} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw these |
||
|
||
After you have Go and Ignite CLI installed, and your Celestia Light | ||
Node running on your machine, you're ready to build, test, and launch your own | ||
sovereign rollup. | ||
To set up a mock data availability network node run: | ||
|
||
Be sure you have initialized your node before trying to start it. | ||
Your start command should look similar to: | ||
|
||
<!-- markdownlint-disable MD013 --> | ||
```bash | ||
celestia light start --core.ip validator-1.celestia-arabica-11.com --p2p.network arabica | ||
```bash-vue | ||
curl -sSL https://rollkit.dev/install-mock-da.sh | sh {{constants.mockDALatestTag}} | ||
``` | ||
|
||
After you have Go and Ignite CLI installed, and your Celestia | ||
Light Node running on your machine, you're ready to build, | ||
test, and launch your own sovereign rollup. | ||
This script builds and runs the node, now listening on port `7980`. | ||
|
||
After you have Go and Ignite CLI installed, and your mock data availability node | ||
running on your machine, you're ready to build, test, and launch your own sovereign rollup. | ||
|
||
### 🟢 Building and running wordle chain {#build-and-run-wordle-chain} | ||
|
||
|
@@ -599,9 +585,6 @@ bash init.sh | |
|
||
With that, we have kickstarted our `wordled` network! | ||
|
||
Find | ||
[your account address on an Arabica explorer to see your `PayForBlobs` transactions](https://explorer.modular.cloud/celestia-arabica/addresses/celestia10rdu7l3gzeuxplpnr5vxchvxxflx7ym0q6wt5v). | ||
|
||
In another window, run the following to submit a Wordle: | ||
|
||
<!-- markdownlint-disable MD013 --> | ||
|
@@ -612,7 +595,7 @@ wordled tx wordle submit-wordle giant --from wordle-key --keyring-backend test - | |
|
||
> NOTE: We are submitting a transaction asynchronously to avoid | ||
any timeout errors. With Rollkit as a replacement to CometBFT, we | ||
need to wait for Celestia's Data-Availability network to ensure a block | ||
need to wait for the data availability network to ensure a block | ||
was included from Wordle, before proceeding to the next block. Currently, | ||
in Rollkit, the single aggregator is not moving forward with the next block | ||
production as long as it is trying to submit the current block to the DA network. | ||
|
@@ -760,9 +743,6 @@ extend the code base. | |
|
||
### 🔮 Extending in the future {#extending-in-the-future} | ||
|
||
You can extend the codebase and improve this tutorial by checking | ||
out the repository [here](https://github.com/celestiaorg/wordle). | ||
|
||
There are many ways this codebase can be extended: | ||
|
||
1. You can improve messaging around when you guess the correct word. | ||
|
@@ -776,3 +756,7 @@ There are many ways this codebase can be extended: | |
5. You can create a bot that submits a wordle every day at a specific time. | ||
6. You can create a vue.js front-end with Ignite using example open-source | ||
repositories [here](https://github.com/yyx990803/vue-wordle) and [here](https://github.com/xudafeng/wordle). | ||
|
||
## 🎉 Next steps | ||
|
||
Congratulations! You've built a Wordle app using Cosmos-SDK and Rollkit. Now, explore connecting your rollup to DA networks like Celestia. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.