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
use serde::{Deserialize, Serialize};
use tea_sdk::defs::FreezeTimeSettings;
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
pub struct FreezeRequest {
pub time: FreezeTimeSettings,
pub options: FreezeOptions,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FreezeOptions {
pub custom_txn: bool,
pub persist_cronjob: bool,
pub ticks: bool,
pub tappstore_cronjobs: bool,
pub layer1: bool,
pub adapter: bool,
pub libp2p: bool,
}
impl Default for FreezeOptions {
fn default() -> Self {
Self {
custom_txn: true, layer1: true, tappstore_cronjobs: true, persist_cronjob: false, ticks: false, adapter: false, libp2p: false, }
}
}