Documentation ¶
Index ¶
- func BuildCallDataPancake(paths []common.Address, srcQty *big.Int, expectedOut *big.Int, isNative bool) (string, error)
- func BuildCallDataUniswap(paths []common.Address, recipient common.Address, fees []int64, ...) (string, error)
- func BuildCurveCallData(srcQty *big.Int, expectOutputAmount *big.Int, i *big.Int, j *big.Int, ...) (string, error)
- func BuildOpenSeaCalldata(nftDetal *popensea.NFTDetail, recipient string) (string, error)
- func CurveQuote(evmClient *ethclient.Client, srcQty *big.Int, i *big.Int, j *big.Int, ...) (*big.Int, error)
- func DecodeOpenSeaCalldata()
- func PancakeQuote(tokenIn, tokenOut, amount, chainId, tokenInSymbol, tokenOutSymbol string, ...) ([]byte, error)
- func UniswapQuote(tokenIn, tokenOut, amount, chainId string, exactIn bool, endpoint string) ([]byte, error)
- type CurveDecodeData
- type PancakeDecodeData
- type UniswapDecodeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCallDataPancake ¶
func BuildCallDataUniswap ¶
func BuildCurveCallData ¶
func BuildOpenSeaCalldata ¶
func CurveQuote ¶
func DecodeOpenSeaCalldata ¶
func DecodeOpenSeaCalldata()
func PancakeQuote ¶
Types ¶
type CurveDecodeData ¶
type CurveDecodeData struct { Amount *big.Int `json:"amount"` MinAmount *big.Int `json:"minAmount"` I *big.Int `json:"i"` J *big.Int `json:"j"` CurvePool common.Address `json:"curvePool"` }
func DecodeCurveCalldata ¶
func DecodeCurveCalldata(inputHex string) (*CurveDecodeData, error)
type PancakeDecodeData ¶
type PancakeDecodeData struct { AmountOutMin *big.Int `json:"amountOutMin"` Deadline *big.Int `json:"deadline"` Path []common.Address `json:"path"` SrcQty *big.Int `json:"srcQty"` }
func DecodePancakeCalldata ¶
func DecodePancakeCalldata(inputHex string) (*PancakeDecodeData, error)
type UniswapDecodeData ¶
type UniswapDecodeData struct { TokenIn common.Address `json:"tokenIn"` TokenOut common.Address `json:"tokenOut"` Fee *big.Int `json:"fee"` Recipient common.Address `json:"recipient"` AmountIn *big.Int `json:"amountIn"` AmountOutMinimum *big.Int `json:"amountOutMinimum"` SqrtPriceLimitX96 *big.Int `json:"sqrtPriceLimitX96"` Path []byte `json:"path"` }
func DecodeUniswapCalldata ¶
func DecodeUniswapCalldata(inputHex string) (*UniswapDecodeData, error)
Click to show internal directories.
Click to hide internal directories.