|
1 | 1 | pub mod state { |
2 | 2 | use crate::types::core::DomainName; |
3 | 3 | use crate::types::monitoring::{CyclesBalance, FundingFailure}; |
| 4 | + use candid::CandidType; |
4 | 5 | use candid::Principal; |
5 | | - use candid::{CandidType, Nat}; |
6 | | - use ic_cdk::management_canister::CanisterStatusType; |
7 | 6 | use serde::{Deserialize, Serialize}; |
8 | 7 | use std::cmp::Ordering; |
9 | 8 | use std::collections::HashMap; |
@@ -52,26 +51,6 @@ pub mod state { |
52 | 51 | Submit, |
53 | 52 | } |
54 | 53 |
|
55 | | - #[derive(CandidType, Serialize, Deserialize, Clone)] |
56 | | - pub struct SegmentCanisterStatus { |
57 | | - pub status: CanisterStatusType, |
58 | | - pub settings: SegmentCanisterSettings, |
59 | | - pub module_hash: Option<Vec<u8>>, |
60 | | - pub memory_size: Nat, |
61 | | - pub cycles: Nat, |
62 | | - pub idle_cycles_burned_per_day: Nat, |
63 | | - } |
64 | | - |
65 | | - // Prevent breaking changes in DefiniteCanisterSettings which we do not use |
66 | | - #[deprecated] |
67 | | - #[derive(CandidType, Serialize, Deserialize, Clone)] |
68 | | - pub struct SegmentCanisterSettings { |
69 | | - pub controllers: Vec<Principal>, |
70 | | - pub compute_allocation: Nat, |
71 | | - pub memory_allocation: Nat, |
72 | | - pub freezing_threshold: Nat, |
73 | | - } |
74 | | - |
75 | 54 | #[derive(CandidType, Serialize, Deserialize, Copy, Clone, Debug, PartialEq, Eq, Hash)] |
76 | 55 | pub enum SegmentKind { |
77 | 56 | Satellite, |
|
0 commit comments