Setup
Getting Started
Add the Cartridge achievements package arcade_trophy
as a dependency in your Scarb.toml
[dependencies]
starknet = "2.8.4"
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0" }
arcade_trophy = { git = "https://github.com/cartridge-gg/arcade", tag = "v1.0.0" }
[[target.starknet-contract]]
build-external-contracts = [
"dojo::world::world_contract::world",
"arcade_trophy::events::index::e_TrophyCreation",
"arcade_trophy::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]
...
[events]
raw = true
historical = ["<YOUR-NAMESPACE>-TrophyProgression"]