1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#![doc = include_str!("../README.md")]
#[derive(Clone, Debug)]
pub enum DefaultStorageKey {
ApprovalManager,
Nep141,
Owner,
Pause,
Rbac,
}
impl IntoStorageKey for DefaultStorageKey {
fn into_storage_key(self) -> Vec<u8> {
match self {
DefaultStorageKey::ApprovalManager => b"~am".to_vec(),
DefaultStorageKey::Nep141 => b"~$141".to_vec(),
DefaultStorageKey::Owner => b"~o".to_vec(),
DefaultStorageKey::Pause => b"~p".to_vec(),
DefaultStorageKey::Rbac => b"~r".to_vec(),
}
}
}
pub mod standard;
pub mod approval;
pub mod migrate;
pub mod owner;
pub mod pause;
pub mod rbac;
pub mod slot;
pub mod upgrade;
pub mod utils;
pub use near_contract_tools_macros::*;
use near_sdk::IntoStorageKey;