escrow-api 0.2.0

Signer-Payer Payment Escrow Program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::EscrowAccount;
use steel::*;

#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Config {
    pub appeal_window_seconds: i64, // 8 bytes - Appeal window duration
    pub closure_delay_seconds: i64, // 8 bytes - Closure delay for all final states
    pub updated_at: i64,            // 8 bytes - Last update timestamp
    pub max_appeals: u8,            // 1 byte - Maximum appeals allowed
    // Total: 8+8+8+1 = 25 bytes, need 7 bytes padding for 32-byte alignment
    pub _padding: [u8; 7], // 7 bytes padding
}

account!(EscrowAccount, Config);