stellar-interchain-token 2.0.1

InterchainToken contract, responsible for implementing an interchain token that is compatible with SEP-41.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use stellar_axelar_std::{contracterror, soroban_sdk};

#[contracterror]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[repr(u32)]
pub enum ContractError {
    MigrationNotAllowed = 1,
    NotMinter = 2,
    InvalidAmount = 3,
    InvalidExpirationLedger = 4,
    InsufficientAllowance = 5,
    InsufficientBalance = 6,
    MigrationInProgress = 7,
    MinterAlreadyExists = 8,
}