Skip to main content

sla_escrow_api/state/
config.rs

1use super::EscrowAccount;
2use steel::*;
3
4#[repr(C)]
5#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
6pub struct Config {
7    pub closure_delay_seconds: i64, // 8 bytes - Closure delay for all final states
8    pub refund_cooldown_seconds: i64, // 8 bytes - Cooldown for buyer-initiated refunds (0 = disabled)
9    pub delivery_cutoff_seconds: i64, // 8 bytes - Min seconds before expires_at for delivery submission
10    pub updated_at: i64,              // 8 bytes - Last update timestamp
11                                      // Total: 8+8+8+8 = 32 bytes
12}
13
14account!(EscrowAccount, Config);