Documentation ¶
Index ¶
- func DeriveBondingCurveAddress(tokenAddress solana.PublicKey) (solana.PublicKey, error)
- func GenePumpfunWallet(timeout time.Duration) (*solana.Wallet, error)
- func GetSwapInstructions(network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, ...) ([]solana.Instruction, error)
- func IsAddLiqByLogs(logs []string) bool
- func IsRemoveLiqByLogs(logs []string) bool
- func ParseAddLiqTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.AddLiqTxDataType, error)
- func ParseAddLiqTxByParsedTx(meta *rpc.ParsedTransactionMeta, parsedTransaction *rpc.ParsedTransaction) (*pumpfun_type.AddLiqTxDataType, error)
- func ParseCreateByLogs(logs []string) *pumpfun_type.CreateDataType
- func ParseCreateTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.CreateTxDataType, error)
- func ParseRemoveLiqTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.RemoveLiqTxDataType, error)
- func ParseRemoveLiqTxByParsedTx(meta *rpc.ParsedTransactionMeta, parsedTransaction *rpc.ParsedTransaction) (*pumpfun_type.RemoveLiqTxDataType, error)
- func ParseSwapByLogs(logs []string) []*pumpfun_type.SwapDataType
- func ParseSwapTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.SwapTxDataType, error)
- func ParseSwapTxByParsedTx(meta *rpc.ParsedTransactionMeta, transaction *rpc.ParsedTransaction) (*pumpfun_type.SwapTxDataType, error)
- type BondingCurveDataType
- type GenerateTokenURIDataType
- type GenerateTokenURIResult
- type TokenMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveBondingCurveAddress ¶ added in v0.7.1
func GenePumpfunWallet ¶ added in v0.8.0
func GetSwapInstructions ¶
func GetSwapInstructions( network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, tokenAddress solana.PublicKey, tokenAmountWithDecimals uint64, isCloseUserAssociatedTokenAddress bool, virtualSolReserveWithDecimals uint64, virtualTokenReserveWithDecimals uint64, slippage uint64, ) ([]solana.Instruction, error)
func IsAddLiqByLogs ¶ added in v0.6.0
func IsRemoveLiqByLogs ¶ added in v0.4.8
func ParseAddLiqTx ¶ added in v0.0.8
func ParseAddLiqTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.AddLiqTxDataType, error)
func ParseAddLiqTxByParsedTx ¶ added in v0.8.7
func ParseAddLiqTxByParsedTx(meta *rpc.ParsedTransactionMeta, parsedTransaction *rpc.ParsedTransaction) (*pumpfun_type.AddLiqTxDataType, error)
func ParseCreateByLogs ¶ added in v0.4.8
func ParseCreateByLogs(logs []string) *pumpfun_type.CreateDataType
func ParseCreateTx ¶
func ParseCreateTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.CreateTxDataType, error)
func ParseRemoveLiqTx ¶
func ParseRemoveLiqTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.RemoveLiqTxDataType, error)
上岸
func ParseRemoveLiqTxByParsedTx ¶ added in v0.8.7
func ParseRemoveLiqTxByParsedTx(meta *rpc.ParsedTransactionMeta, parsedTransaction *rpc.ParsedTransaction) (*pumpfun_type.RemoveLiqTxDataType, error)
func ParseSwapByLogs ¶ added in v0.4.5
func ParseSwapByLogs(logs []string) []*pumpfun_type.SwapDataType
func ParseSwapTx ¶
func ParseSwapTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*pumpfun_type.SwapTxDataType, error)
func ParseSwapTxByParsedTx ¶ added in v0.8.9
func ParseSwapTxByParsedTx(meta *rpc.ParsedTransactionMeta, transaction *rpc.ParsedTransaction) (*pumpfun_type.SwapTxDataType, error)
Types ¶
type BondingCurveDataType ¶
type BondingCurveDataType struct { BondingCurveAddress string VirtualTokenReserveWithDecimals uint64 VirtualSolReserveWithDecimals uint64 RealTokenReserveWithDecimals uint64 RealSolReserveWithDecimals uint64 TokenTotalSupplyWithDecimals uint64 Complete bool }
func GetBondingCurveData ¶
type GenerateTokenURIDataType ¶ added in v0.7.9
type GenerateTokenURIResult ¶ added in v0.7.9
type GenerateTokenURIResult struct { Matedata TokenMetadata `json:"metadata"` MetadataUri string `json:"metadataUri"` }
func GenerateTokenURI ¶ added in v0.7.9
func GenerateTokenURI(data *GenerateTokenURIDataType) (*GenerateTokenURIResult, error)
type TokenMetadata ¶
type TokenMetadata struct { Name string `json:"name"` Symbol string `json:"symbol"` Description string `json:"description"` Image string `json:"image"` ShowName bool `json:"showName"` CreatedOn string `json:"createdOn"` Twitter string `json:"twitter"` Telegram string `json:"telegram"` Website string `json:"website"` }
Click to show internal directories.
Click to hide internal directories.