-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/amegakure-starknet/starkane
- Loading branch information
Showing
29 changed files
with
355 additions
and
370 deletions.
There are no files selected for viewing
This file contains 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,8 @@ | ||
katana: | ||
katana --disable-fee --invoke-max-steps 4294967295 | ||
|
||
setup: | ||
@./scripts/setup.sh | ||
|
||
torii: | ||
torii --world $(word 2,$(MAKECMDGOALS)) |
This file contains 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,47 +1,29 @@ | ||
<p align="center"> | ||
<img alt="Dojo logo" width="650" src="https://github.com/amegakure-starknet/starkane/assets/58611754/5b8bf89e-8e4c-4316-a58c-b1e853092248"> | ||
</p> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset=".github/mark-dark.svg"> | ||
<img alt="Dojo logo" align="right" width="120" src=".github/mark-light.svg"> | ||
</picture> | ||
|
||
<a href="https://twitter.com/dojostarknet"> | ||
<img src="https://img.shields.io/twitter/follow/dojostarknet?style=social"/> | ||
</a> | ||
<a href="https://github.com/dojoengine/dojo"> | ||
<img src="https://img.shields.io/github/stars/dojoengine/dojo?style=social"/> | ||
</a> | ||
# Starkane | ||
|
||
[![discord](https://img.shields.io/badge/join-dojo-green?logo=discord&logoColor=white)](https://discord.gg/PwDa2mKhR4) | ||
[![Telegram Chat][tg-badge]][tg-url] | ||
## Configurar ambiente local | ||
|
||
[tg-badge]: https://img.shields.io/endpoint?color=neon&logo=telegram&label=chat&style=flat-square&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Fdojoengine | ||
[tg-url]: https://t.me/dojoengine | ||
Terminal 1 | ||
|
||
# Dojo Starter: Official Guide | ||
```bash | ||
make katana | ||
``` | ||
|
||
The official Dojo Starter guide, the quickest and most streamlined way to get your Dojo Autonomous World up and running. This guide will assist you with the initial setup, from cloning the repository to deploying your world. | ||
Terminal 2 | ||
|
||
Read the full tutorial [here](https://book.dojoengine.org/cairo/hello-dojo.html) | ||
```bash | ||
make setup | ||
``` | ||
|
||
--- | ||
Copiamos el World Address y lo pasamos como parametro | ||
|
||
## Contribution | ||
```bash | ||
make torii <WORLD_ADDRESS> | ||
``` | ||
|
||
This starter project is a constant work in progress and contributions are greatly appreciated! | ||
[Playground de graphql](http://localhost:8080/graphql) | ||
|
||
1. **Report a Bug** | ||
|
||
- If you think you have encountered a bug, and we should know about it, feel free to report it [here](https://github.com/dojoengine/dojo-starter/issues) and we will take care of it. | ||
|
||
2. **Request a Feature** | ||
|
||
- You can also request for a feature [here](https://github.com/dojoengine/dojo-starter/issues), and if it's viable, it will be picked for development. | ||
|
||
3. **Create a Pull Request** | ||
- It can't get better then this, your pull request will be appreciated by the community. | ||
|
||
For any other questions, feel free to reach out to us [here](https://dojoengine.org/contact). | ||
|
||
Happy coding! | ||
### Ya esta el ambiente configurado! |
This file contains 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 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 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,49 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo "sozo build && sozo migrate" | ||
output=$(sozo build && sozo migrate) | ||
|
||
contract_addresses=$(echo "$output" | awk '/Contract address/ {print $NF}') | ||
world_address=$(echo "$output" | awk '/Successfully migrated World at address/ {print $NF}') | ||
|
||
action_system=$(echo "$contract_addresses" | awk 'NR==3') | ||
character_system=$(echo "$contract_addresses" | awk 'NR==4') | ||
map_system=$(echo "$contract_addresses" | awk 'NR==5') | ||
match_system=$(echo "$contract_addresses" | awk 'NR==6') | ||
move_system=$(echo "$contract_addresses" | awk 'NR==7') | ||
ranking_system=$(echo "$contract_addresses" | awk 'NR==8') | ||
skill_system=$(echo "$contract_addresses" | awk 'NR==9') | ||
stadistics_system=$(echo "$contract_addresses" | awk 'NR==10') | ||
turn_system=$(echo "$contract_addresses" | awk 'NR==11') | ||
|
||
echo -e "\nSystems: " | ||
echo "action_system: $action_system" | ||
echo "character_system: $character_system" | ||
echo "map_system: $map_system" | ||
echo "match_system: $match_system" | ||
echo "move_system: $move_system" | ||
echo "ranking_system: $ranking_system" | ||
echo "skill_system: $skill_system" | ||
echo "stadistics_system: $stadistics_system" | ||
echo "turn_system: $turn_system" | ||
echo -e "\n🎉 World Address: $world_address" | ||
|
||
echo -e "\n Setup ..." | ||
|
||
# [Create] | ||
sozo execute ${character_system} init | ||
|
||
sozo execute ${skill_system} init | ||
|
||
sozo execute ${map_system} init | ||
|
||
# TODO: es para pruebas | ||
sozo execute ${character_system} mint -c 3,1,1 | ||
|
||
sozo execute ${character_system} mint -c 3,2,1 | ||
|
||
sozo execute ${match_system} init -c 2,1,3,2,3 | ||
|
||
echo -e "\n✅ Setup finish!" |
This file contains 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 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 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 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.