stellar_interchain_token/error.rs
1use stellar_axelar_std::{contracterror, soroban_sdk};
2
3#[contracterror]
4#[derive(Copy, Clone, Debug, Eq, PartialEq)]
5#[repr(u32)]
6pub enum ContractError {
7 MigrationNotAllowed = 1,
8 NotMinter = 2,
9 InvalidAmount = 3,
10 InvalidExpirationLedger = 4,
11 InsufficientAllowance = 5,
12 InsufficientBalance = 6,
13 MigrationInProgress = 7,
14 MinterAlreadyExists = 8,
15}