odra-modules 2.7.1

Collection of reusable Odra modules.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Security module events implementation.
use odra::prelude::*;

/// Informs the contract has been stopped by `account`.

#[odra::event]
pub struct Paused {
    /// The account that stopped the contract.
    pub account: Address
}

/// Informs the contract has been unstopped by `account`.
#[odra::event]
pub struct Unpaused {
    /// The account that unstopped the contract.
    pub account: Address
}