// ---
// tags: cw-cyber, rust
// crystal-type: source
// crystal-domain: cyber
// ---
use cw_serde;
use ;
use ;
/// Sliding window entry: one accepted proof.
/// Ring-buffer sliding window over the last N proofs.
/// PID controller state for adaptive alpha/beta tuning.
/// A single time-bucketed fee accumulator.
/// Rolling fee history: fixed-size ring of time buckets.
/// Contract configuration.
/// Global statistics.
/// Per-miner statistics.
// Storage keys
pub const CONFIG: = new;
pub const STATS: = new;
pub const SLIDING_WINDOW: = new;
pub const PID_STATE: = new;
pub const FEE_HISTORY: = new;
/// Miner statistics by address.
pub const MINER_STATS: = new;
/// Used proof hashes to prevent replay. Value is the proof timestamp for pruning.
pub const USED_PROOF_HASHES: = new;
/// Cursor for amortized proof hash pruning (last key scanned).
pub const PROOF_PRUNE_CURSOR: = new;
cw-cyber/contracts/litium-mine/src/state.rs
ฯ 0.0%