pub enum DexEvent {
Show 66 variants
PumpFunCreate(PumpFunCreateTokenEvent),
PumpFunTrade(PumpFunTradeEvent),
PumpFunComplete(PumpFunCompleteTokenEvent),
PumpFunMigrate(PumpFunMigrateEvent),
BonkTrade(BonkTradeEvent),
BonkPoolCreate(BonkPoolCreateEvent),
BonkMigrateAmm(BonkMigrateAmmEvent),
PumpSwapBuy(PumpSwapBuyEvent),
PumpSwapSell(PumpSwapSellEvent),
PumpSwapCreatePool(PumpSwapCreatePoolEvent),
PumpSwapPoolCreated(PumpSwapPoolCreated),
PumpSwapTrade(PumpSwapTrade),
PumpSwapLiquidityAdded(PumpSwapLiquidityAdded),
PumpSwapLiquidityRemoved(PumpSwapLiquidityRemoved),
PumpSwapPoolUpdated(PumpSwapPoolUpdated),
PumpSwapFeesClaimed(PumpSwapFeesClaimed),
RaydiumClmmSwap(RaydiumClmmSwapEvent),
RaydiumClmmCreatePool(RaydiumClmmCreatePoolEvent),
RaydiumClmmOpenPosition(RaydiumClmmOpenPositionEvent),
RaydiumClmmOpenPositionWithTokenExtNft(RaydiumClmmOpenPositionWithTokenExtNftEvent),
RaydiumClmmClosePosition(RaydiumClmmClosePositionEvent),
RaydiumClmmIncreaseLiquidity(RaydiumClmmIncreaseLiquidityEvent),
RaydiumClmmDecreaseLiquidity(RaydiumClmmDecreaseLiquidityEvent),
RaydiumClmmCollectFee(RaydiumClmmCollectFeeEvent),
RaydiumCpmmSwap(RaydiumCpmmSwapEvent),
RaydiumCpmmDeposit(RaydiumCpmmDepositEvent),
RaydiumCpmmWithdraw(RaydiumCpmmWithdrawEvent),
RaydiumCpmmInitialize(RaydiumCpmmInitializeEvent),
RaydiumAmmV4Swap(RaydiumAmmV4SwapEvent),
RaydiumAmmV4Deposit(RaydiumAmmV4DepositEvent),
RaydiumAmmV4Initialize2(RaydiumAmmV4Initialize2Event),
RaydiumAmmV4Withdraw(RaydiumAmmV4WithdrawEvent),
RaydiumAmmV4WithdrawPnl(RaydiumAmmV4WithdrawPnlEvent),
OrcaWhirlpoolSwap(OrcaWhirlpoolSwapEvent),
OrcaWhirlpoolLiquidityIncreased(OrcaWhirlpoolLiquidityIncreasedEvent),
OrcaWhirlpoolLiquidityDecreased(OrcaWhirlpoolLiquidityDecreasedEvent),
OrcaWhirlpoolPoolInitialized(OrcaWhirlpoolPoolInitializedEvent),
MeteoraPoolsSwap(MeteoraPoolsSwapEvent),
MeteoraPoolsAddLiquidity(MeteoraPoolsAddLiquidityEvent),
MeteoraPoolsRemoveLiquidity(MeteoraPoolsRemoveLiquidityEvent),
MeteoraPoolsBootstrapLiquidity(MeteoraPoolsBootstrapLiquidityEvent),
MeteoraPoolsPoolCreated(MeteoraPoolsPoolCreatedEvent),
MeteoraPoolsSetPoolFees(MeteoraPoolsSetPoolFeesEvent),
MeteoraDammV2Swap(MeteoraDammV2SwapEvent),
MeteoraDammV2AddLiquidity(MeteoraDammV2AddLiquidityEvent),
MeteoraDammV2RemoveLiquidity(MeteoraDammV2RemoveLiquidityEvent),
MeteoraDammV2InitializePool(MeteoraDammV2InitializePoolEvent),
MeteoraDammV2CreatePosition(MeteoraDammV2CreatePositionEvent),
MeteoraDammV2ClosePosition(MeteoraDammV2ClosePositionEvent),
MeteoraDammV2ClaimPositionFee(MeteoraDammV2ClaimPositionFeeEvent),
MeteoraDammV2InitializeReward(MeteoraDammV2InitializeRewardEvent),
MeteoraDammV2FundReward(MeteoraDammV2FundRewardEvent),
MeteoraDammV2ClaimReward(MeteoraDammV2ClaimRewardEvent),
MeteoraDlmmSwap(MeteoraDlmmSwapEvent),
MeteoraDlmmAddLiquidity(MeteoraDlmmAddLiquidityEvent),
MeteoraDlmmRemoveLiquidity(MeteoraDlmmRemoveLiquidityEvent),
MeteoraDlmmInitializePool(MeteoraDlmmInitializePoolEvent),
MeteoraDlmmInitializeBinArray(MeteoraDlmmInitializeBinArrayEvent),
MeteoraDlmmCreatePosition(MeteoraDlmmCreatePositionEvent),
MeteoraDlmmClosePosition(MeteoraDlmmClosePositionEvent),
MeteoraDlmmClaimFee(MeteoraDlmmClaimFeeEvent),
TokenAccount(TokenAccountEvent),
NonceAccount(NonceAccountEvent),
BlockMeta(BlockMetaEvent),
TokenInfo(TokenInfoEvent),
Error(String),
}
Expand description
统一的 DEX 事件枚举 - 参考 sol-dex-shreds 的做法
Variants§
PumpFunCreate(PumpFunCreateTokenEvent)
PumpFunTrade(PumpFunTradeEvent)
PumpFunComplete(PumpFunCompleteTokenEvent)
PumpFunMigrate(PumpFunMigrateEvent)
BonkTrade(BonkTradeEvent)
BonkPoolCreate(BonkPoolCreateEvent)
BonkMigrateAmm(BonkMigrateAmmEvent)
PumpSwapBuy(PumpSwapBuyEvent)
PumpSwapSell(PumpSwapSellEvent)
PumpSwapCreatePool(PumpSwapCreatePoolEvent)
PumpSwapPoolCreated(PumpSwapPoolCreated)
PumpSwapTrade(PumpSwapTrade)
PumpSwapLiquidityAdded(PumpSwapLiquidityAdded)
PumpSwapLiquidityRemoved(PumpSwapLiquidityRemoved)
PumpSwapPoolUpdated(PumpSwapPoolUpdated)
PumpSwapFeesClaimed(PumpSwapFeesClaimed)
RaydiumClmmSwap(RaydiumClmmSwapEvent)
RaydiumClmmCreatePool(RaydiumClmmCreatePoolEvent)
RaydiumClmmOpenPosition(RaydiumClmmOpenPositionEvent)
RaydiumClmmOpenPositionWithTokenExtNft(RaydiumClmmOpenPositionWithTokenExtNftEvent)
RaydiumClmmClosePosition(RaydiumClmmClosePositionEvent)
RaydiumClmmIncreaseLiquidity(RaydiumClmmIncreaseLiquidityEvent)
RaydiumClmmDecreaseLiquidity(RaydiumClmmDecreaseLiquidityEvent)
RaydiumClmmCollectFee(RaydiumClmmCollectFeeEvent)
RaydiumCpmmSwap(RaydiumCpmmSwapEvent)
RaydiumCpmmDeposit(RaydiumCpmmDepositEvent)
RaydiumCpmmWithdraw(RaydiumCpmmWithdrawEvent)
RaydiumCpmmInitialize(RaydiumCpmmInitializeEvent)
RaydiumAmmV4Swap(RaydiumAmmV4SwapEvent)
RaydiumAmmV4Deposit(RaydiumAmmV4DepositEvent)
RaydiumAmmV4Initialize2(RaydiumAmmV4Initialize2Event)
RaydiumAmmV4Withdraw(RaydiumAmmV4WithdrawEvent)
RaydiumAmmV4WithdrawPnl(RaydiumAmmV4WithdrawPnlEvent)
OrcaWhirlpoolSwap(OrcaWhirlpoolSwapEvent)
OrcaWhirlpoolLiquidityIncreased(OrcaWhirlpoolLiquidityIncreasedEvent)
OrcaWhirlpoolLiquidityDecreased(OrcaWhirlpoolLiquidityDecreasedEvent)
OrcaWhirlpoolPoolInitialized(OrcaWhirlpoolPoolInitializedEvent)
MeteoraPoolsSwap(MeteoraPoolsSwapEvent)
MeteoraPoolsAddLiquidity(MeteoraPoolsAddLiquidityEvent)
MeteoraPoolsRemoveLiquidity(MeteoraPoolsRemoveLiquidityEvent)
MeteoraPoolsBootstrapLiquidity(MeteoraPoolsBootstrapLiquidityEvent)
MeteoraPoolsPoolCreated(MeteoraPoolsPoolCreatedEvent)
MeteoraPoolsSetPoolFees(MeteoraPoolsSetPoolFeesEvent)
MeteoraDammV2Swap(MeteoraDammV2SwapEvent)
MeteoraDammV2AddLiquidity(MeteoraDammV2AddLiquidityEvent)
MeteoraDammV2RemoveLiquidity(MeteoraDammV2RemoveLiquidityEvent)
MeteoraDammV2InitializePool(MeteoraDammV2InitializePoolEvent)
MeteoraDammV2CreatePosition(MeteoraDammV2CreatePositionEvent)
MeteoraDammV2ClosePosition(MeteoraDammV2ClosePositionEvent)
MeteoraDammV2ClaimPositionFee(MeteoraDammV2ClaimPositionFeeEvent)
MeteoraDammV2InitializeReward(MeteoraDammV2InitializeRewardEvent)
MeteoraDammV2FundReward(MeteoraDammV2FundRewardEvent)
MeteoraDammV2ClaimReward(MeteoraDammV2ClaimRewardEvent)
MeteoraDlmmSwap(MeteoraDlmmSwapEvent)
MeteoraDlmmAddLiquidity(MeteoraDlmmAddLiquidityEvent)
MeteoraDlmmRemoveLiquidity(MeteoraDlmmRemoveLiquidityEvent)
MeteoraDlmmInitializePool(MeteoraDlmmInitializePoolEvent)
MeteoraDlmmInitializeBinArray(MeteoraDlmmInitializeBinArrayEvent)
MeteoraDlmmCreatePosition(MeteoraDlmmCreatePositionEvent)
MeteoraDlmmClosePosition(MeteoraDlmmClosePositionEvent)
MeteoraDlmmClaimFee(MeteoraDlmmClaimFeeEvent)
TokenAccount(TokenAccountEvent)
NonceAccount(NonceAccountEvent)
BlockMeta(BlockMetaEvent)
TokenInfo(TokenInfoEvent)
Error(String)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DexEvent
impl<'de> Deserialize<'de> for DexEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DexEvent
impl RefUnwindSafe for DexEvent
impl Send for DexEvent
impl Sync for DexEvent
impl Unpin for DexEvent
impl UnwindSafe for DexEvent
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request