pub enum TensorAmmError {
Show 29 variants
WrongWhitelist = 12_000,
WrongPoolType = 12_001,
FeesTooHigh = 12_002,
DeltaTooLarge = 12_003,
ArithmeticError = 12_004,
PriceMismatch = 12_005,
ExistingNfts = 12_006,
FeesNotAllowed = 12_007,
WrongPoolVersion = 12_008,
BadMintProof = 12_009,
WrongCosigner = 12_010,
BadSharedEscrow = 12_011,
PoolOnSharedEscrow = 12_012,
CannotUseSharedEscrow = 12_013,
MaxTakerSellCountExceeded = 12_014,
MaxTakerSellCountTooSmall = 12_015,
StartingPriceTooSmall = 12_016,
PoolInsufficientRent = 12_017,
WrongRentPayer = 12_018,
ExpiryTooLarge = 12_019,
ExpiredPool = 12_020,
PoolNotExpired = 12_021,
InvalidPoolAmount = 12_022,
WrongMakerBroker = 12_023,
WrongOwner = 12_024,
EscrowProgramNotSet = 12_025,
MissingMakerBroker = 12_026,
MissingCosigner = 12_027,
InvalidEdition = 12_028,
}
Variants§
WrongWhitelist = 12_000
12000 - wrong whitelist
WrongPoolType = 12_001
12001 - operation not permitted on this pool type
FeesTooHigh = 12_002
12002 - fees entered above allowed threshold
DeltaTooLarge = 12_003
12003 - delta too large
ArithmeticError = 12_004
12004 - arithmetic error
PriceMismatch = 12_005
12005 - specified price not within current price
ExistingNfts = 12_006
12006 - cannot close pool with nfts in escrow – withdraw all before closing
FeesNotAllowed = 12_007
12007 - fees not allowed for non-trade pools
WrongPoolVersion = 12_008
12008 - wrong pool version provided
BadMintProof = 12_009
12009 - bad mint proof account
WrongCosigner = 12_010
12010 - wrong cosigner
12011 - bad shared escrow account
12012 - expected a non-shared escrow pool to be passed in
12013 - cannot use shared escrow in NFT pools
MaxTakerSellCountExceeded = 12_014
12014 - max taker sell count exceeded, pool cannot buy anymore NFTs
MaxTakerSellCountTooSmall = 12_015
12015 - max taker sell count is too small
StartingPriceTooSmall = 12_016
12016 - starting price can’t be smaller than 1 lamport
PoolInsufficientRent = 12_017
12017 - Pool must keep minimum rent balance
WrongRentPayer = 12_018
12018 - Wrong rent payer
ExpiryTooLarge = 12_019
12019 - Expiry too large
ExpiredPool = 12_020
12020 - Expired Pool
PoolNotExpired = 12_021
12021 - Pool not expired
InvalidPoolAmount = 12_022
12022 - Invalid pool amount
WrongMakerBroker = 12_023
12023 - Wrong maker broker account
WrongOwner = 12_024
12024 - Wrong owner
EscrowProgramNotSet = 12_025
12025 - Escrow program not set
MissingMakerBroker = 12_026
12026 - Missing maker broker account
MissingCosigner = 12_027
12027 - Missing cosigner account
InvalidEdition = 12_028
12028 - Invalid edition
Trait Implementations§
Source§impl Clone for TensorAmmError
impl Clone for TensorAmmError
Source§fn clone(&self) -> TensorAmmError
fn clone(&self) -> TensorAmmError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TensorAmmError
impl Debug for TensorAmmError
Source§impl Display for TensorAmmError
impl Display for TensorAmmError
Source§impl Error for TensorAmmError
impl Error for TensorAmmError
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 TensorAmmError
impl FromPrimitive for TensorAmmError
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 TensorAmmError
impl PartialEq for TensorAmmError
Source§impl PrintProgramError for TensorAmmError
impl PrintProgramError for TensorAmmError
impl Eq for TensorAmmError
impl StructuralPartialEq for TensorAmmError
Auto Trait Implementations§
impl Freeze for TensorAmmError
impl RefUnwindSafe for TensorAmmError
impl Send for TensorAmmError
impl Sync for TensorAmmError
impl Unpin for TensorAmmError
impl UnwindSafe for TensorAmmError
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