https://github.com/rsodre/512karat-gen2
512Katat 2nd Generation
https://github.com/rsodre/512karat-gen2
cairo-lang dojo generative-art on-chain
Last synced: about 1 month ago
JSON representation
512Katat 2nd Generation
- Host: GitHub
- URL: https://github.com/rsodre/512karat-gen2
- Owner: rsodre
- License: cc0-1.0
- Created: 2025-05-31T18:43:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-20T17:43:52.000Z (12 months ago)
- Last Synced: 2025-07-20T19:13:10.173Z (12 months ago)
- Topics: cairo-lang, dojo, generative-art, on-chain
- Language: Cairo
- Homepage: https://karat.collect-code.com/
- Size: 2.19 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 512 KARAT Generation 2
## Generative Art made with Dojo
code + art: **Roger S.** aka **Mataleone** ([@matalecode](https://x.com/matalecode))
## Mainnet Minting
* TBA
## Project structure
* `/dojo`: Dojo contracts (deprecated with Origami)
* `/dojo/scripts`: Scripts to interact with the contracts
* `/draft`: Token experiments (metadata, svg)
* `/scripts`: Scripts for fetching Karat data on-chain
* `/tokens`: Cached KARAT metadata and art
* [p5js](https://editor.p5js.org/rsodre/sketches/LbtLW29da): Art development playground
## Sepolia / Mainnet Deployment
This is a **generic guide** to deploy a Dojo world to Sepolia.
The steps for Mainnet are exactly the same, just replace the chain name and ID when necessary.
### Setup
* You need a [Starknet RPC Provider](https://www.starknet.io/fullnodes-rpc-services/) to deploy contracts on-chain. After you get yours, check if it works and is on the chain you want to deploy (`SN_SEPOLIA` or `SN_MAIN`)
```sh
# install asdf
# https://asdf-vm.com/guide/getting-started.html
brew install asdf
# configure asdf
# https://asdf-vm.com/guide/getting-started.html#_2-configure-asdf
# add this to ~/.zshrc
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
. <(asdf completion bash)
# install Scarb+Dojo plugins
# https://docs.swmansion.com/scarb/download.html#install-via-asdf
# https://book.dojoengine.org/installation#installing-with-asdf
asdf plugin add scarb
asdf plugin add katana https://github.com/dojoengine/asdf-katana.git
asdf plugin add torii https://github.com/dojoengine/asdf-torii.git
asdf plugin add sozo https://github.com/dojoengine/asdf-sozo.git
asdf install scarb 2.13.1
asdf install sozo 1.8.5
asdf install katana 1.7.0
asdf install torii 1.8.7
# enable to your user account (optional)
# asdf set -u scarb 2.13.1
# asdf set -u sozo 1.8.5
# asdf set -u katana 1.7.0
# asdf set -u torii 1.8.7
```
After deployment, we can use some sozo commands to manage the contracts.
```sh
# mint to a specific wallet
scripts/mint_to.sh mainnet 0x04042b3F651F6d6Ff03b929437AdC30257333723970071b05cb0E2270C9dc385
```