feat(descro): add dispute_raised_at field and DISPUTE_TIMEOUT_SECS constant
This commit is contained in:
@@ -1 +1 @@
|
||||
// reserved for future constants
|
||||
pub const DISPUTE_TIMEOUT_SECS: i64 = 14 * 24 * 60 * 60; // 14 days
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user