Documentation
¶
Index ¶
- func GetSwapInstructions(network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, ...) ([]solana.Instruction, error)
- func ParseAddLiqTxByParsedTx(network rpc.Cluster, meta *rpc.ParsedTransactionMeta, ...) (*raydium_amm_type.AddLiqTxDataType, error)
- func ParseSwapTxByParsedTx(network rpc.Cluster, meta *rpc.ParsedTransactionMeta, ...) (*type_.SwapTxDataType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwapInstructions ¶
func GetSwapInstructions( network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, tokenAddress solana.PublicKey, tokenAmountWithDecimals uint64, raydiumSwapKeys raydium_amm_type.SwapKeys, isClose bool, solReserveWithDecimals uint64, tokenReserveWithDecimals uint64, slippage uint64, ) ([]solana.Instruction, error)
func ParseAddLiqTxByParsedTx ¶ added in v0.9.9
func ParseAddLiqTxByParsedTx( network rpc.Cluster, meta *rpc.ParsedTransactionMeta, parsedTransaction *rpc.ParsedTransaction, ) (*raydium_amm_type.AddLiqTxDataType, error)
func ParseSwapTxByParsedTx ¶
func ParseSwapTxByParsedTx( network rpc.Cluster, meta *rpc.ParsedTransactionMeta, transaction *rpc.ParsedTransaction, ) (*type_.SwapTxDataType, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.