StablebondError

Enum StablebondError 

Source
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

Source§

fn clone(&self) -> StablebondError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StablebondError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for StablebondError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for StablebondError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl FromPrimitive for StablebondError

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl PartialEq for StablebondError

Source§

fn eq(&self, other: &StablebondError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PrintProgramError for StablebondError

Source§

fn print<E>(&self)

Source§

impl Eq for StablebondError

Source§

impl StructuralPartialEq for StablebondError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AbiExample for T

Source§

default fn example() -> T

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V