stealth-vault 0.1.1

Anchor program interface for Shadow SDK stealth vaults and hashed execution intents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anchor_lang::prelude::*;

#[error_code]
pub enum StealthVaultError {
    #[msg("Signer is not the vault's current ephemeral authority")]
    InvalidEphemeralAuthority,
    #[msg("Signer is not allowed to cancel this intent")]
    UnauthorizedIntentCancellation,
    #[msg("Signer is not allowed to execute this intent")]
    UnauthorizedIntentExecution,
    #[msg("Intent is not pending")]
    IntentNotPending,
}