solana-dex-parser
Version:
Solana Dex Transaction Parser
41 lines (40 loc) • 1.19 kB
TypeScript
import { PoolStatus, RaydiumLCPTradeEvent, TradeDirection } from '../../../types/raydium';
export declare class RaydiumLCPTradeLayout {
poolState: Uint8Array;
totalBaseSell: bigint;
virtualBase: bigint;
virtualQuote: bigint;
realBaseBefore: bigint;
realQuoteBefore: bigint;
realBaseAfter: bigint;
realQuoteAfter: bigint;
amountIn: bigint;
amountOut: bigint;
protocolFee: bigint;
platformFee: bigint;
shareFee: bigint;
tradeDirection: TradeDirection;
poolStatus: PoolStatus;
constructor(fields: {
poolState: Uint8Array;
totalBaseSell: bigint;
virtualBase: bigint;
virtualQuote: bigint;
realBaseBefore: bigint;
realQuoteBefore: bigint;
realBaseAfter: bigint;
realQuoteAfter: bigint;
amountIn: bigint;
amountOut: bigint;
protocolFee: bigint;
platformFee: bigint;
shareFee: bigint;
tradeDirection: TradeDirection;
poolStatus: PoolStatus;
});
static schema: Map<typeof RaydiumLCPTradeLayout, {
kind: string;
fields: (string | number[])[][];
}>;
toObject(): RaydiumLCPTradeEvent;
}