Skip to content

Dojo Contract

Dojo contracts is where you define your game logic into functions, called systems.

To define a Dojo contract, simply add the #[dojo::contract] to a Cairo module:

#[dojo::contract]
mod my_contract {
    // ...
}