pub enum TensorPriceLockError {
Show 44 variants
WrongStateVersion = 6_000,
CurrencyNotYetEnabled = 6_001,
MakerBrokerNotYetEnabled = 6_002,
OptionalRoyaltiesNotYetEnabled = 6_003,
CannotModifyWhitelist = 6_004,
CannotModifyCurrency = 6_005,
CannotModifyOrderType = 6_006,
AprTooLarge = 6_007,
DurationTooLong = 6_008,
ExpiryTooLarge = 6_009,
OrderExpired = 6_010,
BrokerMismatch = 6_011,
PriceMismatch = 6_012,
BalanceMismatch = 6_013,
NftsHeldMismatch = 6_014,
OrderTypeMismatch = 6_015,
NonceMismatch = 6_016,
OrderAlreadyLocked = 6_017,
OrderNotLocked = 6_018,
OrderLockStale = 6_019,
BadMargin = 6_020,
NotEnoughTokens = 6_021,
NoNftsHeld = 6_022,
StillNftsHeld = 6_023,
StillFundsHeld = 6_024,
InvalidSigner = 6_025,
WrongPayer = 6_026,
WrongNftSource = 6_027,
WrongNftDest = 6_028,
WrongPoolType = 6_029,
WrongTaker = 6_030,
PriceTooHigh = 6_031,
PriceTooLow = 6_032,
CollateralNotReturned = 6_033,
CollateralAlreadyReturned = 6_034,
AprTooSmall = 6_035,
DurationMismatch = 6_036,
WrongNftReceipt = 6_037,
InvalidNftReceipt = 6_038,
RequiresNftReceipt = 6_039,
RequiresAssetAccount = 6_040,
BadMintProof = 6_041,
MissingMintProof = 6_042,
BadWhitelist = 6_043,
}
Variants§
WrongStateVersion = 6_000
6000 - wrong state version
CurrencyNotYetEnabled = 6_001
6001 - currency not yet enabled
MakerBrokerNotYetEnabled = 6_002
6002 - maker broker not yet enabled
OptionalRoyaltiesNotYetEnabled = 6_003
6003 - optional royalties not enabled yet
CannotModifyWhitelist = 6_004
6004 - cannot modify whitelist
CannotModifyCurrency = 6_005
6005 - cannot modify currency
CannotModifyOrderType = 6_006
6006 - cannot modify order type
AprTooLarge = 6_007
6007 - apr too large
DurationTooLong = 6_008
6008 - duration too long
ExpiryTooLarge = 6_009
6009 - expiry too large
OrderExpired = 6_010
6010 - order expired before being active
BrokerMismatch = 6_011
6011 - broker mismatch
PriceMismatch = 6_012
6012 - price mismatch
BalanceMismatch = 6_013
6013 - balance does not match price
NftsHeldMismatch = 6_014
6014 - nfts held does not match order type
OrderTypeMismatch = 6_015
6015 - operation does not work for order type
NonceMismatch = 6_016
6016 - nonce mismatch
OrderAlreadyLocked = 6_017
6017 - order already locked
OrderNotLocked = 6_018
6018 - order not locked
OrderLockStale = 6_019
6019 - order no longer locked (stale)
BadMargin = 6_020
6020 - bad margin
NotEnoughTokens = 6_021
6021 - not enough tokens
NoNftsHeld = 6_022
6022 - no nfts held
StillNftsHeld = 6_023
6023 - still have nfts held
StillFundsHeld = 6_024
6024 - still have funds held
InvalidSigner = 6_025
6025 - signer cannot perform this action
WrongPayer = 6_026
6026 - wrong payer for order
WrongNftSource = 6_027
6027 - wrong nft source acc
WrongNftDest = 6_028
6028 - wrong nft dest
WrongPoolType = 6_029
6029 - wrong pool type
WrongTaker = 6_030
6030 - taker does not match order’s
PriceTooHigh = 6_031
6031 - price too high
PriceTooLow = 6_032
6032 - price too low
CollateralNotReturned = 6_033
6033 - collateral not returned to maker
CollateralAlreadyReturned = 6_034
6034 - collateral already returned to maker
AprTooSmall = 6_035
6035 - apr too small
DurationMismatch = 6_036
6036 - duration mismatch
WrongNftReceipt = 6_037
6037 - wrong NFT receipt
InvalidNftReceipt = 6_038
6038 - invalid NFT receipt
RequiresNftReceipt = 6_039
6039 - NFT order requires a receipt account
RequiresAssetAccount = 6_040
6040 - NFT order requires an asset account
BadMintProof = 6_041
6041 - Bad mint proof
MissingMintProof = 6_042
6042 - Missing mint proof account
BadWhitelist = 6_043
6043 - Bad whitelist
Trait Implementations§
Source§impl Clone for TensorPriceLockError
impl Clone for TensorPriceLockError
Source§fn clone(&self) -> TensorPriceLockError
fn clone(&self) -> TensorPriceLockError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TensorPriceLockError
impl Debug for TensorPriceLockError
Source§impl Display for TensorPriceLockError
impl Display for TensorPriceLockError
Source§impl Error for TensorPriceLockError
impl Error for TensorPriceLockError
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 TensorPriceLockError
impl FromPrimitive for TensorPriceLockError
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 TensorPriceLockError
impl PartialEq for TensorPriceLockError
impl Eq for TensorPriceLockError
impl StructuralPartialEq for TensorPriceLockError
Auto Trait Implementations§
impl Freeze for TensorPriceLockError
impl RefUnwindSafe for TensorPriceLockError
impl Send for TensorPriceLockError
impl Sync for TensorPriceLockError
impl Unpin for TensorPriceLockError
impl UnwindSafe for TensorPriceLockError
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