This repository holds the Dojo smart contracts of ByteBeasts-Tamagotchi.
Ensure the following dependencies are installed:
- Dojo:
v1.2.1 - Scarb:
v2.9.2
To compile the smart contracts:
sozo buildTo execute the test suite:
sozo testMake sure this is running before proceeding:
# Start Katana with disabled fees and open origins
katana --dev --dev.no-fee# Build the example
sozo build
# Migrate the example (deploy the world locally)
sozo migrate
# Start Torii
# Replace <WORLD_ADDRESS> with the deployed world address from the previous step
torii --world <WA> --http.cors_origins "*"Before deploying, set your Sepolia environment variables:
export STARKNET_RPC_URL="https://api.cartridge.gg/x/starknet/sepolia"
export DEPLOYER_ACCOUNT_ADDRESS="<your_deployer_account_address_here>"
export DEPLOYER_PRIVATE_KEY="<your_deployer_private_key_here>"
⚠️ Make sure your deployer account is funded before proceeding.
To deploy a new world instance, edit the dojo_sepolia.toml file and increment the seed value:
seed = "tamagotchi1" # Change to "tamagotchi2", "tamagotchi3", etc. for a new worldIf you want to continue using the same world, leave the seed as-is.
Run the following command to deploy:
scarb run sepoliaOnce the deployment finishes, you'll receive a world address — save this, as it will be required for interactions and indexing.
Run:
sozo build --typescript-
Install Slot If you haven't already, install Slot: 👉 https://dojoengine.org/toolchain/slot
-
Authenticate with Slot
slot auth login
-
Create a New Torii Instance
slot d create <name> torii \ --sql.historical "tamagotchi-TrophyProgression" \ --config "./torii-config.toml" \ --version v1.5.1
✅ Verify the deployment:
slot d describe <name> torii
-
Or Update an Existing Torii Instance
Point your existing indexer to the new world address:
slot d update <name> torii --config "./torii-config.toml"
