magic-domain-program 0.3.0

Domain registration program for Ephemeral Rollups
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use borsh::{BorshDeserialize, BorshSerialize};

/// Possible states for ER node to be in
#[derive(Debug, BorshDeserialize, BorshSerialize, Clone, Copy, PartialEq, Eq)]
#[borsh(use_discriminant = true)]
pub enum ErStatus {
    /// node is active and accepting new delegations
    Active = 0,
    /// node is active but not accepting new delegations, only serving existing ones
    Draining = 1,
    /// node has been taken offline, e.g. for maintenance
    Offline = 2,
}