feat(descro): add dispute_raised_at field and DISPUTE_TIMEOUT_SECS constant

This commit is contained in:
thesn10
2026-05-19 19:47:21 +02:00
parent dfbad1315f
commit fda1f8c524
3 changed files with 3 additions and 1 deletions

View File

@@ -1 +1 @@
// reserved for future constants
pub const DISPUTE_TIMEOUT_SECS: i64 = 14 * 24 * 60 * 60; // 14 days

View File

@@ -45,5 +45,6 @@ pub fn handler(
escrow.bump = ctx.bumps.escrow_account;
escrow.vault_bump = ctx.bumps.vault;
escrow.escrow_id = escrow_id;
escrow.dispute_raised_at = None;
Ok(())
}

View File

@@ -11,6 +11,7 @@ pub struct EscrowAccount {
pub bump: u8,
pub vault_bump: u8,
pub escrow_id: u64,
pub dispute_raised_at: Option<i64>,
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq, InitSpace, Debug)]