Skip to main content

PumpError

Enum PumpError 

Source
#[repr(u32)]
pub enum PumpError {
Show 71 variants NotAuthorized = 6_000, AlreadyInitialized = 6_001, TooMuchSolRequired = 6_002, TooLittleSolReceived = 6_003, MintDoesNotMatchBondingCurve = 6_004, BondingCurveComplete = 6_005, BondingCurveNotComplete = 6_006, NotInitialized = 6_007, WithdrawTooFrequent = 6_008, NewSizeShouldBeGreaterThanCurrentSize = 6_009, AccountTypeNotSupported = 6_010, InitialRealTokenReservesShouldBeLessThanTokenTotalSupply = 6_011, InitialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves = 6_012, FeeBasisPointsGreaterThanMaximum = 6_013, AllZerosWithdrawAuthority = 6_014, PoolMigrationFeeShouldBeLessThanFinalRealSolReserves = 6_015, PoolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees = 6_016, DisabledWithdraw = 6_017, DisabledMigrate = 6_018, InvalidCreator = 6_019, BuyZeroAmount = 6_020, NotEnoughTokensToBuy = 6_021, SellZeroAmount = 6_022, NotEnoughTokensToSell = 6_023, Overflow = 6_024, Truncation = 6_025, DivisionByZero = 6_026, NotEnoughRemainingAccounts = 6_027, AllFeeRecipientsShouldBeNonZero = 6_028, UnsortedNotUniqueFeeRecipients = 6_029, CreatorShouldNotBeZero = 6_030, StartTimeInThePast = 6_031, EndTimeInThePast = 6_032, EndTimeBeforeStartTime = 6_033, TimeRangeTooLarge = 6_034, EndTimeBeforeCurrentDay = 6_035, SupplyUpdateForFinishedRange = 6_036, DayIndexAfterEndIndex = 6_037, DayInActiveRange = 6_038, InvalidIncentiveMint = 6_039, BuyNotEnoughSolToCoverRent = 6_040, BuyNotEnoughSolToCoverFees = 6_041, BuySlippageBelowMinTokensOut = 6_042, NameTooLong = 6_043, SymbolTooLong = 6_044, UriTooLong = 6_045, CreateV2Disabled = 6_046, CpitializeMayhemFailed = 6_047, MayhemModeDisabled = 6_048, CreatorMigratedToSharingConfig = 6_049, UnableToDistributeCreatorVaultMigratedToSharingConfig = 6_050, SharingConfigNotActive = 6_051, UnableToDistributeCreatorFeesToExecutableRecipient = 6_052, BondingCurveAndSharingConfigCreatorMismatch = 6_053, ShareholdersAndRemainingAccountsMismatch = 6_054, InvalidShareBps = 6_055, CashbackNotEnabled = 6_056, BuybackFeeRecipientNotAuthorized = 6_057, AllBuybackFeeRecipientsShouldBeNonZero = 6_058, NotUniqueBuybackFeeRecipients = 6_059, BuybackBasisPointsOutOfRange = 6_060, WrongBuybackFeeRecipientsCount = 6_061, BuybackFeeRecipientMissing = 6_062, UnsupportedQuoteMint = 6_063, InvalidQuoteTokenProgram = 6_064, InvalidAssociatedQuoteBondingCurve = 6_065, QuoteMintWhitelistFull = 6_066, QuoteMintAlreadyWhitelisted = 6_067, QuoteMintNotWhitelisted = 6_068, QuoteMintNotEligibleForWhitelist = 6_069, UnableToDistributeCreatorFeesToUninitializedAccount = 6_070,
}

Variants§

§

NotAuthorized = 6_000

§

AlreadyInitialized = 6_001

§

TooMuchSolRequired = 6_002

§

TooLittleSolReceived = 6_003

§

MintDoesNotMatchBondingCurve = 6_004

§

BondingCurveComplete = 6_005

§

BondingCurveNotComplete = 6_006

§

NotInitialized = 6_007

§

WithdrawTooFrequent = 6_008

§

NewSizeShouldBeGreaterThanCurrentSize = 6_009

§

AccountTypeNotSupported = 6_010

§

InitialRealTokenReservesShouldBeLessThanTokenTotalSupply = 6_011

§

InitialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves = 6_012

§

FeeBasisPointsGreaterThanMaximum = 6_013

§

AllZerosWithdrawAuthority = 6_014

§

PoolMigrationFeeShouldBeLessThanFinalRealSolReserves = 6_015

§

PoolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees = 6_016

§

DisabledWithdraw = 6_017

§

DisabledMigrate = 6_018

§

InvalidCreator = 6_019

§

BuyZeroAmount = 6_020

§

NotEnoughTokensToBuy = 6_021

§

SellZeroAmount = 6_022

§

NotEnoughTokensToSell = 6_023

§

Overflow = 6_024

§

Truncation = 6_025

§

DivisionByZero = 6_026

§

NotEnoughRemainingAccounts = 6_027

§

AllFeeRecipientsShouldBeNonZero = 6_028

§

UnsortedNotUniqueFeeRecipients = 6_029

§

CreatorShouldNotBeZero = 6_030

§

StartTimeInThePast = 6_031

§

EndTimeInThePast = 6_032

§

EndTimeBeforeStartTime = 6_033

§

TimeRangeTooLarge = 6_034

§

EndTimeBeforeCurrentDay = 6_035

§

SupplyUpdateForFinishedRange = 6_036

§

DayIndexAfterEndIndex = 6_037

§

DayInActiveRange = 6_038

§

InvalidIncentiveMint = 6_039

§

BuyNotEnoughSolToCoverRent = 6_040

§

BuyNotEnoughSolToCoverFees = 6_041

§

BuySlippageBelowMinTokensOut = 6_042

§

NameTooLong = 6_043

§

SymbolTooLong = 6_044

§

UriTooLong = 6_045

§

CreateV2Disabled = 6_046

§

CpitializeMayhemFailed = 6_047

§

MayhemModeDisabled = 6_048

§

CreatorMigratedToSharingConfig = 6_049

§

UnableToDistributeCreatorVaultMigratedToSharingConfig = 6_050

§

SharingConfigNotActive = 6_051

§

UnableToDistributeCreatorFeesToExecutableRecipient = 6_052

§

BondingCurveAndSharingConfigCreatorMismatch = 6_053

§

ShareholdersAndRemainingAccountsMismatch = 6_054

§

InvalidShareBps = 6_055

§

CashbackNotEnabled = 6_056

§

BuybackFeeRecipientNotAuthorized = 6_057

§

AllBuybackFeeRecipientsShouldBeNonZero = 6_058

§

NotUniqueBuybackFeeRecipients = 6_059

§

BuybackBasisPointsOutOfRange = 6_060

§

WrongBuybackFeeRecipientsCount = 6_061

§

BuybackFeeRecipientMissing = 6_062

§

UnsupportedQuoteMint = 6_063

§

InvalidQuoteTokenProgram = 6_064

§

InvalidAssociatedQuoteBondingCurve = 6_065

§

QuoteMintWhitelistFull = 6_066

§

QuoteMintAlreadyWhitelisted = 6_067

§

QuoteMintNotWhitelisted = 6_068

§

QuoteMintNotEligibleForWhitelist = 6_069

§

UnableToDistributeCreatorFeesToUninitializedAccount = 6_070

Implementations§

Source§

impl PumpError

Source

pub fn name(&self) -> String

Gets the name of this [#enum_name].

Trait Implementations§

Source§

impl Clone for PumpError

Source§

fn clone(&self) -> PumpError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PumpError

Source§

impl Debug for PumpError

Source§

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

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

impl Display for PumpError

Source§

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

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

impl From<PumpError> for u32

Source§

fn from(e: PumpError) -> u32

Converts to this type from the input type.
Source§

impl From<PumpError> for Error

Source§

fn from(error_code: PumpError) -> Error

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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