An open API service indexing awesome lists of open source software.

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

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
```