-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add cardano summit token #137
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
2 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| FROM --platform=linux/amd64 ubuntu:20.04 AS build | ||
|
|
||
| ARG GODOT_VERSION="4.4" | ||
| ARG GODOT_VERSION="4.5.1" | ||
|
|
||
| USER root | ||
|
|
||
|
|
||
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
28 changes: 27 additions & 1 deletion
28
frontend/src/components/how-to-play/create-ship/Description.mdx
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 |
|---|---|---|
| @@ -1,6 +1,32 @@ | ||
| import Layout from "../mdx/Layout"; | ||
| export default ({ children }) => <Layout>{children}</Layout>; | ||
|
|
||
| Creates a `ShipState` UTxO locking min ada and a `ShipToken` (minted in this tx), specifying in the datum the initial `pos_x` and `pos_y` coordinates of the ship, and setting `fuel` to an initial amount. Also adds to the `AsteriaUTxO` value the `SHIP_MINT_FEE` paid by the user. | ||
| #### This is the first step in order to play the game. | ||
|
|
||
| This transaction creates a `ShipState` UTxO locking min ada, a `ShipToken` (minted in this tx) and an `INITIAL_FUEL` amount of fuel tokens (minted in this tx), specifying in the datum the initial `pos_x` and `pos_y` coordinates of the ship, the ship and pilot token names and the `last_move_latest_time` as the upper bound of the transaction's validity range (posix time). Also adds to the `AsteriaUTxO` value the `SHIP_MINT_LOVELACE_FEE` paid by the user. | ||
|
|
||
| #### Rules to take into account: | ||
|
|
||
| - the ship number has to be exactly +1 of the last ship minted | ||
| - the tip slot must be recent because it's used during validation of the tx | ||
| - the start position has to be at a certain distance ([manhattan distance](https://en.wikipedia.org/wiki/Taxicab_geometry)) of coordinates (0,0). For the mainnet challenge the minimum distance is `50`. | ||
|
|
||
| #### You can query the next available ship and pilot token names using the following curl: | ||
|
|
||
| ``` | ||
| curl --location 'https://8000-ethereal-audience-bb83g6.us1.demeter.run/graphql' \ | ||
| --header 'Content-Type: application/json' \ | ||
| --data '{"query":"query { nextShipTokenName(spacetimePolicyId: \"0291ae7aebaf064b785542093c2b13169effb34462301e68d4b44f43\", spacetimeAddress: \"addr1wypfrtn6awhsvjmc24pqj0ptzvtfalang33rq8ng6j6y7scnlkytx\") { shipName pilotName } }","variables":{}}' | ||
| ``` | ||
|
|
||
| #### You can query the tip of the chain using the following curl: | ||
|
|
||
| ``` | ||
| curl --location 'https://8000-ethereal-audience-bb83g6.us1.demeter.run/graphql' \ | ||
| --header 'Content-Type: application/json' \ | ||
| --data '{"query":"query { lastSlot { slot } }","variables":{}}' | ||
| ``` | ||
|
|
||
| #### Diagram | ||
|
|
||
|  | ||
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
16 changes: 16 additions & 0 deletions
16
frontend/src/components/how-to-play/gather-fuel/Description.mdx
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import Layout from "../mdx/Layout"; | ||
| export default ({ children }) => <Layout>{children}</Layout>; | ||
|
|
||
| #### With this transaction you can gather fuel from the fuel pellets for your ship. | ||
|
|
||
| Updates the amount of fuel tokens in both `ShipState` and `PelletState` UTxOs, adding the `amount` (specified in the redeemer) from the first and subtracting it from the latter. Also allows the ship owner to get any amount of the prize tokens held in the pellet. | ||
|
|
||
| #### Rules to take into account: | ||
|
|
||
| - the ship number has to be the one controlled by the pilot token in your wallet. | ||
| - the ship has to be in the same position than the pellet | ||
| - the ship can't have more than 5 fuel units | ||
|
|
||
| #### Diagram | ||
|
|
||
|  |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix outdated datum field name.
The Create Ship flow now sets the datum field to
last_move_timestamp, but the doc still refers tolast_move_latest_time. This mismatch will trip anyone copying the guidance into the updated tx template—please update the wording to match the current field name.🧰 Tools
🪛 LanguageTool
[style] ~8-~8: ‘take into account’ might be wordy. Consider a shorter alternative.
Context: ...E_FEE` paid by the user. #### Rules to take into account: - the ship number has to be exactly +...
(EN_WORDINESS_PREMIUM_TAKE_INTO_ACCOUNT)
🤖 Prompt for AI Agents