defuse_near_utils/
lib.rs

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