Skip to content

Setup

Getting Started

Add the Cartridge package achievement as a dependency in your Scarb.toml

[dependencies]
starknet = "2.8.4"
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.5.1" }
achievement = { git = "https://github.com/cartridge-gg/arcade", tag = "v1.5.1" } 
 
[[target.starknet-contract]]
build-external-contracts = [
    "dojo::world::world_contract::world",
    "achievement::events::index::e_TrophyCreation", 
    "achievement::events::index::e_TrophyProgression", 
]

Torii configuration

The progression events require to be managed as historical events by Torii.

It means that every single events will remain available in the torii database and accessible in the event_messages_historical table.

rpc = <YOUR-RPC-URL>
world_address = <YOUR-WORLD-ADDRESS>
 
[indexing]
...
 
[sql] 
historical = ["<YOUR-NAMESPACE>-TrophyProgression"] 

Gallery