Skip to content

Commit 8d59c3c

Browse files
committed
primitives - supermarket - remove old V4 structs
1 parent 2098311 commit 8d59c3c

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

primitives/src/supermarket.rs

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,3 @@
1-
use crate::{BalancesMap, Channel};
2-
3-
#[derive(Debug, Clone, PartialEq)]
4-
pub struct Campaign {
5-
pub channel: Channel,
6-
pub status: Status,
7-
pub balances: BalancesMap,
8-
}
9-
10-
impl Campaign {
11-
pub fn new(channel: Channel, status: Status, balances: BalancesMap) -> Self {
12-
Self {
13-
channel,
14-
status,
15-
balances,
16-
}
17-
}
18-
}
19-
20-
#[derive(Debug, Eq, PartialEq, Clone)]
21-
pub enum Status {
22-
// Active and Ready
23-
Active,
24-
Pending,
25-
Initializing,
26-
Waiting,
27-
Finalized(Finalized),
28-
Unsound {
29-
disconnected: bool,
30-
offline: bool,
31-
rejected_state: bool,
32-
unhealthy: bool,
33-
},
34-
}
35-
36-
#[derive(Debug, PartialEq, Eq, Clone)]
37-
pub enum Finalized {
38-
Expired,
39-
Exhausted,
40-
Withdraw,
41-
}
42-
431
pub mod units_for_slot {
442
pub mod response {
453

0 commit comments

Comments
 (0)