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
14
15
16
17
use borsh::{BorshDeserialize, BorshSerialize};
use solana_program::pubkey::Pubkey;

use crate::state::{features::FeaturesSet, record::CountryCode, status::ErStatus};

/// Sync instruction data, version 0
#[derive(BorshSerialize, BorshDeserialize)]
pub struct SyncRecordV0 {
    pub identity: Pubkey,
    pub status: Option<ErStatus>,
    pub block_time_ms: Option<u16>,
    pub base_fee: Option<u16>,
    pub features: Option<FeaturesSet>,
    pub load_average: Option<u32>,
    pub country_code: Option<CountryCode>,
    pub addr: Option<String>,
}