Documentation ¶
Index ¶
- func GetSwapInstructions(userAddress solana.PublicKey, swapType SwapType, tokenAddress solana.PublicKey, ...) ([]solana.Instruction, error)
- type BondingCurveDataType
- type CreateTxDataType
- type ParseTxResult
- type RemoveLiqTxDataType
- type SwapDataType
- type SwapTxDataType
- type SwapType
- type TokenMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BondingCurveDataType ¶
type BondingCurveDataType struct { BondingCurveAddress string VirtualTokenReserves string VirtualSolReserves string RealTokenReserves string RealSolReserves string TokenTotalSupply string Complete bool }
func GetBondingCurveData ¶
type CreateTxDataType ¶
type CreateTxDataType struct { TxId string Name string Symbol string URI string UserAddress solana.PublicKey BondingCurveAddress solana.PublicKey TokenAddress solana.PublicKey FeeInfo *util.FeeInfo }
func ParseCreateTx ¶
func ParseCreateTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*CreateTxDataType, error)
type ParseTxResult ¶
type ParseTxResult struct { SwapTxData *SwapTxDataType CreateTxData *CreateTxDataType RemoveLiqTxData *RemoveLiqTxDataType }
func ParseTx ¶
func ParseTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*ParseTxResult, error)
type RemoveLiqTxDataType ¶
type RemoveLiqTxDataType struct { TxId string BondingCurveAddress solana.PublicKey TokenAddress solana.PublicKey FeeInfo *util.FeeInfo }
func ParseRemoveLiqTx ¶
func ParseRemoveLiqTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*RemoveLiqTxDataType, error)
上岸
type SwapDataType ¶
type SwapTxDataType ¶
type SwapTxDataType struct { Swaps []*SwapDataType FeeInfo *util.FeeInfo TxId string }
func ParseSwapTx ¶
func ParseSwapTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*SwapTxDataType, 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.