pub enum AuctionError {
Show 32 variants
IncorrectOwner,
NotRentExempt,
InvalidBidAccount,
InvalidAuctionAccount,
BalanceTooLow,
InvalidState,
BidTooSmall,
AuctionTransitionInvalid,
DerivedKeyInvalid,
TokenTransferFailed,
TokenMintToFailed,
TokenBurnFailed,
InvalidAuthority,
AuthorityNotSigner,
NumericalOverflowError,
BidderPotTokenAccountOwnerMismatch,
Uninitialized,
MetadataInvalid,
BidderPotDoesNotExist,
BidAlreadyActive,
IncorrectMint,
MustReveal,
InvalidReveal,
BidderPotEmpty,
InvalidTokenProgram,
DelegateShouldBeNone,
CloseAuthorityShouldBeNone,
DataTypeMismatch,
BidMustBeMultipleOfTickSize,
GapBetweenBidsTooSmall,
InvalidGapTickSizePercentage,
BidderPotTokenAccountMustBeNew,
}Expand description
Errors that may be returned by the Auction program.
Variants§
IncorrectOwner
Account does not have correct owner
NotRentExempt
Lamport balance below rent-exempt threshold.
InvalidBidAccount
Bid account provided does not match the derived address.
InvalidAuctionAccount
Auction account specified is invalid.
BalanceTooLow
Balance too low to make bid.
InvalidState
Auction is not currently running.
BidTooSmall
Bid is too small.
AuctionTransitionInvalid
Invalid transition, auction state may only transition: Created -> Started -> Stopped
DerivedKeyInvalid
Failed to derive an account from seeds.
TokenTransferFailed
Token transfer failed
TokenMintToFailed
Token mint to failed
TokenBurnFailed
Token burn failed
InvalidAuthority
Invalid authority
AuthorityNotSigner
Authority not signer
NumericalOverflowError
Numerical overflow
BidderPotTokenAccountOwnerMismatch
Bidder pot token account does not match
Uninitialized
Uninitialized
MetadataInvalid
Metadata account is missing or invalid.
BidderPotDoesNotExist
Bidder pot is missing, and required for SPL trades.
BidAlreadyActive
Existing Bid is already active.
IncorrectMint
Incorrect mint specified, must match auction.
MustReveal
Must reveal price when ending a blinded auction.
InvalidReveal
The revealing hash is invalid.
BidderPotEmpty
The pot for this bid is already empty.
InvalidTokenProgram
This is not a valid token program
DelegateShouldBeNone
Accept payment delegate should be none
CloseAuthorityShouldBeNone
Accept payment close authority should be none
DataTypeMismatch
Data type mismatch
BidMustBeMultipleOfTickSize
Bid must be multiple of tick size
GapBetweenBidsTooSmall
During the gap window, gap between next lowest bid must be of a certain percentage
InvalidGapTickSizePercentage
Gap tick size percentage must be between 0 and 100
BidderPotTokenAccountMustBeNew
Gap tick size percentage must be between 0 and 100
Trait Implementations§
Source§impl Clone for AuctionError
impl Clone for AuctionError
Source§fn clone(&self) -> AuctionError
fn clone(&self) -> AuctionError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuctionError
impl Debug for AuctionError
Source§impl<T> DecodeError<T> for AuctionError
impl<T> DecodeError<T> for AuctionError
fn type_of() -> &'static str
fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
Source§impl Display for AuctionError
impl Display for AuctionError
Source§impl Error for AuctionError
impl Error for AuctionError
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 From<AuctionError> for ProgramError
impl From<AuctionError> for ProgramError
Source§fn from(e: AuctionError) -> Self
fn from(e: AuctionError) -> Self
Source§impl FromPrimitive for AuctionError
impl FromPrimitive for AuctionError
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 AuctionError
impl PartialEq for AuctionError
Source§impl PrintProgramError for AuctionError
impl PrintProgramError for AuctionError
impl Eq for AuctionError
impl StructuralPartialEq for AuctionError
Auto Trait Implementations§
impl Freeze for AuctionError
impl RefUnwindSafe for AuctionError
impl Send for AuctionError
impl Sync for AuctionError
impl Unpin for AuctionError
impl UnwindSafe for AuctionError
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<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