#[repr(C)]pub struct Config {
pub discriminator: u64,
pub admin: [u8; 32],
pub mint: [u8; 32],
pub current_round: u64,
pub round_start_ts: i64,
pub min_difficulty: u64,
pub base_weight: u64,
pub round_seconds: u64,
pub config_bump: u64,
pub treasury_bump: u64,
}Expand description
Globalna konfiguracja programu (PDA “config”, singleton).
Fields§
§discriminator: u64§admin: [u8; 32]Admin (update_config). Docelowo multisig/timelock.
mint: [u8; 32]Mint tokena (mint authority = PDA “treasury”).
current_round: u64Indeks bieżącej (otwartej) rundy.
round_start_ts: i64Timestamp startu bieżącej rundy.
min_difficulty: u64Minimalna trudność hasha (wiodące bity zerowe).
base_weight: u64Waga bazowa free tier w natywnych jednostkach tokena (~$1; docelowo aktualizowana z EMA ceny poola).
round_seconds: u64Długość rundy w sekundach (kadencja submitów; budżet rundy skaluje się pro-rata, więc emisja/min jest stała).
config_bump: u64Bump PDA config.
treasury_bump: u64Bump PDA treasury.
Implementations§
Trait Implementations§
impl Copy for Config
impl Pod for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.