1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{app_id::AppId, MODULE_NAME};

/// Events emitted by the ROFL module.
#[derive(Debug, cbor::Encode, oasis_runtime_sdk_macros::Event)]
#[cbor(untagged)]
pub enum Event {
    #[sdk_event(code = 1)]
    AppCreated { id: AppId },

    #[sdk_event(code = 2)]
    AppUpdated { id: AppId },

    #[sdk_event(code = 3)]
    AppRemoved { id: AppId },
}