defuse_near_utils/
lib.rs

1mod event;
2pub use event::{NearSdkLog, REFUND_MEMO, TOTAL_LOG_LENGTH_LIMIT};
3mod gas;
4mod lock;
5mod panic;
6mod panic_on_clone;
7mod prefix;
8mod promise;
9#[cfg(feature = "time")]
10pub mod time;
11
12pub use self::{gas::*, lock::*, panic::*, panic_on_clone::*, prefix::*, promise::*};
13
14#[macro_export]
15macro_rules! method_name {
16    ($ty:ident::$method:ident) => {{
17        // check that method exists
18        const _: *const () = $ty::$method as *const ();
19        stringify!($method)
20    }};
21}