stellar-interchain-token-service 2.0.0

InterchainTokenService contract, responsible for allowing users/developers to easily create their own token bridge.
Documentation
use stellar_axelar_std::{contracterror, soroban_sdk};

#[contracterror]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[repr(u32)]
pub enum ContractError {
    MigrationNotAllowed = 1,
    NotOwner = 2,
    TrustedChainAlreadySet = 3,
    TrustedChainNotSet = 4,
    InvalidMessageType = 5,
    InvalidPayload = 6,
    UntrustedChain = 7,
    InsufficientMessageLength = 8,
    AbiDecodeFailed = 9,
    InvalidAmount = 10,
    InvalidUtf8 = 11,
    InvalidMinter = 12,
    InvalidDestinationAddress = 13,
    NotHubChain = 14,
    NotHubAddress = 15,
    InvalidTokenAddress = 16,
    InvalidTokenId = 17,
    TokenAlreadyRegistered = 18,
    InvalidFlowLimit = 19,
    FlowLimitExceeded = 20,
    FlowAmountOverflow = 21,
    NotApproved = 22,
    InvalidDestinationChain = 23,
    InvalidData = 24,
    InvalidTokenName = 25,
    InvalidTokenSymbol = 26,
    InvalidTokenDecimals = 27,
    ContractPaused = 28,
    InvalidInitialSupply = 29,
    TokenInvocationError = 30,
    MigrationInProgress = 31,
    InvalidTokenConfig = 32,
    InvalidFlowKey = 33,
    FlowAmountExceededLimit = 34,
    InvalidTokenManagerType = 35,
    InvalidDestinationTokenAddress = 36,
}