stealth_vault/state.rs
1use anchor_lang::prelude::*;
2
3#[account]
4#[derive(InitSpace)]
5pub struct Vault {
6 pub owner: Pubkey,
7 pub ephemeral_authority: Pubkey,
8 pub bump: u8,
9}
10
11#[account]
12#[derive(InitSpace)]
13pub struct ExecutionIntent {
14 pub vault: Pubkey,
15 pub ephemeral_authority: Pubkey,
16 pub executor: Pubkey,
17 pub nonce: u64,
18 pub payload_hash: [u8; 32],
19 pub status: u8,
20 pub created_at: i64,
21 pub cancelled_at: i64,
22 pub executed_at: i64,
23 pub bump: u8,
24}