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
use move_core_types::{
ident_str,
identifier::IdentStr,
move_resource::{MoveResource, MoveStructType},
};
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct FreezingBit {
is_frozen: bool,
}
impl FreezingBit {
pub fn is_frozen(&self) -> bool {
self.is_frozen
}
}
impl MoveStructType for FreezingBit {
const MODULE_NAME: &'static IdentStr = ident_str!("AccountFreezing");
const STRUCT_NAME: &'static IdentStr = ident_str!("FreezingBit");
}
impl MoveResource for FreezingBit {}