Versions in this module Expand all Collapse all v1 v1.0.1 Feb 20, 2024 v1.0.0 Feb 20, 2024 v0 v0.0.9 Feb 20, 2024 v0.0.8 Feb 20, 2024 v0.0.7 Feb 20, 2024 v0.0.6 Feb 15, 2024 v0.0.5 Feb 15, 2024 v0.0.4 Feb 15, 2024 v0.0.3 Feb 15, 2024 v0.0.2 Feb 14, 2024 v0.0.1 Feb 14, 2024 Changes in this version + const INCENTIVE_KEY_ABI + var ErrCannotBurn = errors.New("cannot burn") + var ErrInvalidOptions = errors.New("invalid options") + var ErrMultiHopPriceLimit = errors.New("MULTIHOP_PRICE_LIMIT") + var ErrMultihopPriceLimit = errors.New("MULTIHOP_PRICE_LIMIT") + var ErrNoWETH = errors.New("no WETH") + var ErrNonTokenPermit = errors.New("NON_TOKEN_PERMIT") + var ErrTokenInDiff = errors.New("TOKEN_IN_DIFF") + var ErrTokenOutDiff = errors.New("TOKEN_OUT_DIFF") + var ErrZeroLiquidity = errors.New("zero liquidity") + var MaxUint128 = new(big.Int).Sub(new(big.Int).Exp(big.NewInt(2), big.NewInt(128), nil), big.NewInt(1)) + func AddCallParameters(position *entities.Position, opts *AddLiquidityOptions) (*utils.MethodParameters, error) + func CollectCallParameters(opts *CollectOptions) (*utils.MethodParameters, error) + func CollectRewards(incentiveKeys []*IncentiveKey, options *ClaimOptions) (*utils.MethodParameters, error) + func CreateCallParameters(pool *entities.Pool) (*utils.MethodParameters, error) + func EncodeAllowedPermit(token *entities.Token, options *AllowedPermitArguments) ([]byte, error) + func EncodeClaim(incentiveKey *IncentiveKey, options *ClaimOptions) ([][]byte, error) + func EncodeDeposit(incentiveKeys []*IncentiveKey) ([]byte, error) + func EncodeMulticall(calldatas [][]byte) ([]byte, error) + func EncodePermit(token *entities.Token, options *PermitOptions) ([]byte, error) + func EncodeRefundETH() []byte + func EncodeRouteToPath(route *entities.Route, exactOutput bool) ([]byte, error) + func EncodeStandardPermit(token *entities.Token, options *StandardPermitArguments) ([]byte, error) + func EncodeSweepToken(token *entities.Token, amountMinimum *big.Int, recipient common.Address, ...) ([]byte, error) + func EncodeUnwrapWETH9(amountMinimum *big.Int, recipient common.Address, feeOptions *FeeOptions) ([]byte, error) + func GetABI(abi []byte) abi.ABI + func PutUint24(i uint64) []byte + func QuoteCallParameters(route *entities.Route, amount *core.CurrencyAmount, tradeType core.TradeType, ...) (*utils.MethodParameters, error) + func RemoveCallParameters(position *entities.Position, opts *RemoveLiquidityOptions) (*utils.MethodParameters, error) + func SafeTransferFromParameters(opts *SafeTransferOptions) (*utils.MethodParameters, error) + func SwapCallParameters(trades []*entities.Trade, options *SwapOptions) (*utils.MethodParameters, error) + func WithdrawToken(incentiveKeys []*IncentiveKey, withdrawOptions *FullWithdrawOptions) (*utils.MethodParameters, error) + type AddLiquidityOptions struct + type AllowedPermitArguments struct + Expiry *big.Int + Nonce *big.Int + R [32]byte + S [32]byte + V uint8 + type ClaimOptions struct + Amount *big.Int + Recipient common.Address + TokenID *big.Int + type CollectOptions struct + ExpectedCurrencyOwed0 *core.CurrencyAmount + ExpectedCurrencyOwed1 *core.CurrencyAmount + ExpectedTokenOwed0 core.Currency + ExpectedTokenOwed1 core.Currency + Recipient common.Address + TokenID *big.Int + type CollectParams struct + Amount0Max *big.Int + Amount1Max *big.Int + Recipient common.Address + TokenId *big.Int + type CommonAddLiquidityOptions struct + Deadline *big.Int + SlippageTolerance *core.Percent + Token0Permit *PermitOptions + Token1Permit *PermitOptions + UseNative *core.Ether + type DecreaseLiquidityParams struct + Amount0Min *big.Int + Amount1Min *big.Int + Deadline *big.Int + Liquidity *big.Int + TokenId *big.Int + type ExactInputParams struct + AmountIn *big.Int + AmountOutMinimum *big.Int + Deadline *big.Int + Path []byte + Recipient common.Address + type ExactInputSingleParams struct + AmountIn *big.Int + AmountOutMinimum *big.Int + Deadline *big.Int + Fee *big.Int + Recipient common.Address + SqrtPriceLimitX96 *big.Int + TokenIn common.Address + TokenOut common.Address + type ExactOutputParams struct + AmountInMaximum *big.Int + AmountOut *big.Int + Deadline *big.Int + Path []byte + Recipient common.Address + type ExactOutputSingleParams struct + AmountInMaximum *big.Int + AmountOut *big.Int + Deadline *big.Int + Fee *big.Int + Recipient common.Address + SqrtPriceLimitX96 *big.Int + TokenIn common.Address + TokenOut common.Address + type FeeOptions struct + Fee *entities.Percent + Recipient common.Address + type FullWithdrawOptions struct + type IncentiveKey struct + EndTime *big.Int + Pool *entities.Pool + Refundee common.Address + RewardToken *core.Token + StartTime *big.Int + type IncentiveKeyParams struct + EndTime *big.Int + Pool common.Address + Refundee common.Address + RewardToken common.Address + StartTime *big.Int + type IncreaseLiquidityParams struct + Amount0Desired *big.Int + Amount0Min *big.Int + Amount1Desired *big.Int + Amount1Min *big.Int + Deadline *big.Int + TokenId *big.Int + type IncreaseOptions struct + type IncreaseSpecificOptions struct + TokenID *big.Int + type MintOptions struct + type MintParams struct + Amount0Desired *big.Int + Amount0Min *big.Int + Amount1Desired *big.Int + Amount1Min *big.Int + Deadline *big.Int + Fee *big.Int + Recipient common.Address + TickLower *big.Int + TickUpper *big.Int + Token0 common.Address + Token1 common.Address + type MintSpecificOptions struct + CreatePool bool + Recipient common.Address + type NFTPermitOptions struct + Deadline *big.Int + R string + S string + Spender string + V uint + type PermitOptions struct + type QuoteOptions struct + SqrtPriceLimitX96 *big.Int + type RemoveLiquidityOptions struct + BurnToken bool + CollectOptions *CollectOptions + Deadline *big.Int + LiquidityPercentage *core.Percent + Permit *NFTPermitOptions + SlippageTolerance *core.Percent + TokenID *big.Int + type SafeTransferOptions struct + Data []byte + Recipient common.Address + Sender common.Address + TokenID *big.Int + type StandardPermitArguments struct + Amount *big.Int + Deadline *big.Int + R [32]byte + S [32]byte + V uint8 + type SwapOptions struct + Deadline *big.Int + Fee *FeeOptions + InputTokenPermit *PermitOptions + Recipient common.Address + SlippageTolerance *core.Percent + SqrtPriceLimitX96 *big.Int + type WithdrawOptions struct + Data []byte + Owner common.Address + type WrappedABI struct + ABI abi.ABI