dojo_types/
event.rs

1use starknet::core::types::Felt;
2
3/// The event emitted when a World is spawned.
4#[derive(Clone, Debug)]
5pub struct WorldSpawned {
6    pub address: Felt,
7    pub caller: Felt,
8}
9
10/// The event emitted when a model is registered to a World.
11#[derive(Clone, Debug)]
12pub struct ModelRegistered {
13    pub name: String,
14    pub class_hash: Felt,
15}
16
17/// The event emitted when a model value of an entity is set.
18#[derive(Clone, Debug)]
19pub struct StoreSetRecord {
20    pub table_id: Felt,
21    pub keys: Vec<Felt>,
22    pub offset: u8,
23    pub value: Vec<Felt>,
24}
25
26/// The event emitted when a model is deleted from an entity.
27#[derive(Clone, Debug)]
28pub struct StoreDelRecord {
29    pub table_id: Felt,
30    pub keys: Vec<Felt>,
31}