pub enum StablebondError {
Show 99 variants
AdminConfigMismatch,
AdminIsNotSigner,
DelegateIsNotSigner,
UserIsNotSigner,
InvalidDelegateAddress,
InvalidDelegateOwner,
InvalidDelegate,
DelegateNotInitialized,
DelegateAlreadyInitialized,
ConfigAlreadyInitialized,
PaymentAlreadyInitialized,
PayoutAlreadyInitialized,
InvalidConfig,
InvalidConfigAddress,
InvalidConfigOwner,
MintIsNotSigner,
BondNotInitialized,
InvalidBondOwner,
IssuanceAlreadyInitialized,
InvalidIssuance,
InvalidToken2022Program,
InvalidTokenProgram,
InvalidSystemProgram,
InvalidInterestRate,
InvalidMintForBond,
InvalidPriceFeedOwner,
IssuanceNotInitialized,
ConfigNotInitialized,
PaymentNotInitialized,
PayoutNotInitialized,
InvalidPaymentAddress,
InvalidPayoutAddress,
InvalidPayoutOwner,
InvalidPaymentOwner,
InvalidIssuanceOwner,
InvalidMintOwner,
InvalidIssuanceStatus,
InvalidBondMint,
InvalidBondTokenAccountOwner,
InvalidPaymentMint,
InvalidPaymentTokenAccountOwner,
InvalidPaymentTokenAccount,
InvalidAmount,
OracleNotConfigured,
InvalidOracleAccount,
UnsupportedOracle,
StaleOracle,
MathOverflow,
UnableToGetClock,
NotEnoughLiquidity,
IssuancePastCutoffTime,
IssuanceNotStarted,
InvalidNftIssuanceVaultOwner,
InvalidNftIssuanceVault,
FailedToCreateNftCollection,
NoRedemptionsRequested,
InvalidPriceFeedAccount,
PaymentFeedNotInitialized,
InvalidPaymentFeed,
InvalidAccount,
IssuanceNotReadyToStart,
InvalidAdminAccount,
InvalidConfigAccount,
InvalidDelegateAccount,
InvalidBondAccount,
InvalidIssuanceAccount,
InvalidPaymentAccount,
InvalidPayoutAccount,
InvalidArgument,
InvalidPrice,
InvalidPaymentFeedOwner,
InvalidPaymentFeedAccount,
PurchaseOrderNotInitialized,
InvalidUserNftTokenAccountOwner,
InvalidPurchaseOrderStatus,
InvalidPurchaseOrder,
InvalidPurchaseOrderAccountOwner,
IssuanceNotMatured,
InvalidUserPaymentTokenAccountOwner,
InvalidNftCollection,
CurrentIssuanceNotOver,
AccountIsNotWriteable,
ConfidenceIntervalExceeded,
InvalidConfidenceInterval,
PastIssuanceCutoffTime,
InvalidKycAccount,
KycNotInitialized,
SellLiquidityAlreadyInitialized,
InsufficientLiquidity,
InvalidOfframpAccount,
OfframpNotInitialized,
InvalidOnrampAccount,
OnrampNotInitialized,
InvalidSequenceAccount,
SequenceNotInitialized,
InvalidOfframpStatus,
MultisigRequired,
FailedToCreateMintInstruction,
BondMultisigMetaNotInitialized,
}Variants§
AdminConfigMismatch
6000 (0x1770) - Admin does not match admin in config
AdminIsNotSigner
6001 (0x1771) - Admin is not signer
DelegateIsNotSigner
6002 (0x1772) - Delegate is not signer
UserIsNotSigner
6003 (0x1773) - User is not signer
InvalidDelegateAddress
6004 (0x1774) - Invalid Delegate Address
InvalidDelegateOwner
6005 (0x1775) - Invalid Delegate Owner
InvalidDelegate
6006 (0x1776) - Invalid Delegate
DelegateNotInitialized
6007 (0x1777) - Delegate not initialized
DelegateAlreadyInitialized
6008 (0x1778) - Delegate already initialized
ConfigAlreadyInitialized
6009 (0x1779) - Config already initialized
PaymentAlreadyInitialized
6010 (0x177A) - Payment already initialized
PayoutAlreadyInitialized
6011 (0x177B) - Payout already initialized
InvalidConfig
6012 (0x177C) - Invalid Config
InvalidConfigAddress
6013 (0x177D) - Invalid Config Address
InvalidConfigOwner
6014 (0x177E) - Invalid Config Owner
MintIsNotSigner
6015 (0x177F) - Mint is not signer
BondNotInitialized
6016 (0x1780) - Bond not initialized
InvalidBondOwner
6017 (0x1781) - Invalid Bond Owner
IssuanceAlreadyInitialized
6018 (0x1782) - Issuance already initialized
InvalidIssuance
6019 (0x1783) - Invalid Issuance
InvalidToken2022Program
6020 (0x1784) - Invalid Token 2022 Program
InvalidTokenProgram
6021 (0x1785) - Invalid Token Program
InvalidSystemProgram
6022 (0x1786) - Invalid System Program
InvalidInterestRate
6023 (0x1787) - Invalid interest rate
InvalidMintForBond
6024 (0x1788) - Invalid mint for bond
InvalidPriceFeedOwner
6025 (0x1789) - Invalid price feed owner
IssuanceNotInitialized
6026 (0x178A) - Issuance not initialized
ConfigNotInitialized
6027 (0x178B) - Config not initialized
PaymentNotInitialized
6028 (0x178C) - Payment not initialized
PayoutNotInitialized
6029 (0x178D) - Payout not initialized
InvalidPaymentAddress
6030 (0x178E) - Invalid Payment Address
InvalidPayoutAddress
6031 (0x178F) - Invalid Payout Address
InvalidPayoutOwner
6032 (0x1790) - Invalid Payout Owner
InvalidPaymentOwner
6033 (0x1791) - Invalid Payment Owner
InvalidIssuanceOwner
6034 (0x1792) - Invalid Issuance Owner
InvalidMintOwner
6035 (0x1793) - Invalid Mint Owner
InvalidIssuanceStatus
6036 (0x1794) - Invalid Issuance Status
InvalidBondMint
6037 (0x1795) - Invalid Bond Mint
InvalidBondTokenAccountOwner
6038 (0x1796) - Invalid Bond Token Account Owner
InvalidPaymentMint
6039 (0x1797) - Invalid Payment Mint
InvalidPaymentTokenAccountOwner
6040 (0x1798) - Invalid Payment Token Account Owner
InvalidPaymentTokenAccount
6041 (0x1799) - Invalid Payment Token Account
InvalidAmount
6042 (0x179A) - Invalid Amount
OracleNotConfigured
6043 (0x179B) - Oracle Not Configured
InvalidOracleAccount
6044 (0x179C) - Invalid Oracle
UnsupportedOracle
6045 (0x179D) - Unsupported Oracle
StaleOracle
6046 (0x179E) - Stale Oracle
MathOverflow
6047 (0x179F) - Math Overflow
UnableToGetClock
6048 (0x17A0) - Unable To Get Clock
NotEnoughLiquidity
6049 (0x17A1) - Not Enough Liquidity
IssuancePastCutoffTime
6050 (0x17A2) - IssuancePastCutoffTime
IssuanceNotStarted
6051 (0x17A3) - Issuance Not Started
InvalidNftIssuanceVaultOwner
6052 (0x17A4) - Invalid NFT Issuance Vault Owner
InvalidNftIssuanceVault
6053 (0x17A5) - Invalid NFT Issuance Vault
FailedToCreateNftCollection
6054 (0x17A6) - Failed To Create Nft Collection
NoRedemptionsRequested
6055 (0x17A7) - No Redemptions Requested
InvalidPriceFeedAccount
6056 (0x17A8) - Invalide Price Feed Account
PaymentFeedNotInitialized
6057 (0x17A9) - PaymentFeed Not Initialized
InvalidPaymentFeed
6058 (0x17AA) - Invalid Payment Feed
InvalidAccount
6059 (0x17AB) - Invalid Account
IssuanceNotReadyToStart
6060 (0x17AC) - Issuance Not Ready To Start
InvalidAdminAccount
6061 (0x17AD) - Invalid Admin Account
InvalidConfigAccount
6062 (0x17AE) - Invalid Config Account
InvalidDelegateAccount
6063 (0x17AF) - Invalid Delegate Account
InvalidBondAccount
6064 (0x17B0) - Invalid Bond Account
InvalidIssuanceAccount
6065 (0x17B1) - Invalid Issuance Account
InvalidPaymentAccount
6066 (0x17B2) - Invalid Payment Account
InvalidPayoutAccount
6067 (0x17B3) - Invalid Payout Account
InvalidArgument
6068 (0x17B4) - Invalid Argument
InvalidPrice
6069 (0x17B5) - Invalid Price
InvalidPaymentFeedOwner
6070 (0x17B6) - Invalid Payment Feed Owner
InvalidPaymentFeedAccount
6071 (0x17B7) - Invalid Payment Feed Account
PurchaseOrderNotInitialized
6072 (0x17B8) - Purchase Order Not Initialized
InvalidUserNftTokenAccountOwner
6073 (0x17B9) - Invalid User NFT Token Account Owner
InvalidPurchaseOrderStatus
6074 (0x17BA) - Invalid Purchase Order Status
InvalidPurchaseOrder
6075 (0x17BB) - Invalid Purchase Order
InvalidPurchaseOrderAccountOwner
6076 (0x17BC) - Invalid Purchase Order Account Owner
IssuanceNotMatured
6077 (0x17BD) - Issuance Not Matured
InvalidUserPaymentTokenAccountOwner
6078 (0x17BE) - Invalid User Payment Token Account Owner
InvalidNftCollection
6079 (0x17BF) - Invalid Nft Collection
CurrentIssuanceNotOver
6080 (0x17C0) - Current Issuance Not Over
AccountIsNotWriteable
6081 (0x17C1) - Account Is Not Writeable
ConfidenceIntervalExceeded
6082 (0x17C2) - Price feed exceeded provided confidence interval
InvalidConfidenceInterval
6083 (0x17C3) - Price feed has invalid confidence interval
PastIssuanceCutoffTime
6084 (0x17C4) - Past Issuance Cutoff Time
InvalidKycAccount
6085 (0x17C5) - Invalid Kyc Account
KycNotInitialized
6086 (0x17C6) - Kyc Not Initialized
SellLiquidityAlreadyInitialized
6087 (0x17C7) - Sell Liquidity Already Initialized
InsufficientLiquidity
6088 (0x17C8) - Insufficient Liquidity
InvalidOfframpAccount
6089 (0x17C9) - Invalid Offramp Account
OfframpNotInitialized
6090 (0x17CA) - Offramp Not Initialized
InvalidOnrampAccount
6091 (0x17CB) - Invalid Onramp Account
OnrampNotInitialized
6092 (0x17CC) - Onramp Not Initialized
InvalidSequenceAccount
6093 (0x17CD) - Invalid Sequence Account
SequenceNotInitialized
6094 (0x17CE) - Sequence Not Initialized
InvalidOfframpStatus
6095 (0x17CF) - Invalid Offramp Status
MultisigRequired
6096 (0x17D0) - Multisig Required
FailedToCreateMintInstruction
6097 (0x17D1) - Failed to create mint instruction
BondMultisigMetaNotInitialized
6098 (0x17D2) - Bond Multisig Meta Not Initialized
Trait Implementations§
Source§impl Clone for StablebondError
impl Clone for StablebondError
Source§fn clone(&self) -> StablebondError
fn clone(&self) -> StablebondError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StablebondError
impl Debug for StablebondError
Source§impl Display for StablebondError
impl Display for StablebondError
Source§impl Error for StablebondError
impl Error for StablebondError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl FromPrimitive for StablebondError
impl FromPrimitive for StablebondError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for StablebondError
impl PartialEq for StablebondError
Source§impl PrintProgramError for StablebondError
impl PrintProgramError for StablebondError
impl Eq for StablebondError
impl StructuralPartialEq for StablebondError
Auto Trait Implementations§
impl Freeze for StablebondError
impl RefUnwindSafe for StablebondError
impl Send for StablebondError
impl Sync for StablebondError
impl Unpin for StablebondError
impl UnwindSafe for StablebondError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more