1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use filament_chain::Address;

#[derive(Debug, PartialEq, thiserror::Error)]
pub enum Error {
    #[error("sender unauthorized")]
    SenderUnauthorized,
    #[error("asset '{0}' not supported")]
    AssetNotSupported(String),

    #[error("insufficient funds for account: {0}")]
    InsufficientFunds(Address),

    #[error("asset balance overflow")]
    BalanceOverflow,
    #[error("asset balanced underflow")]
    BalanceUnderflow,
}