Versions in this module Expand all Collapse all v0 v0.5.0 Mar 17, 2023 v0.4.1 Jan 14, 2023 v0.4.0 Dec 26, 2022 Changes in this version + const INCENTIVE_KEY_ABI + var ErrMultiHopPriceLimit = errors.New("MULTIHOP_PRICE_LIMIT") + var ErrMultihopPriceLimit = errors.New("MULTIHOP_PRICE_LIMIT") + var ErrNonTokenPermit = errors.New("NON_TOKEN_PERMIT") + var ErrTokenInDiff = errors.New("TOKEN_IN_DIFF") + var ErrTokenOutDiff = errors.New("TOKEN_OUT_DIFF") + func CollectRewards(incentiveKeys []*IncentiveKey, options *ClaimOptions) (*utils.MethodParameters, error) + func EncodeClaim(incentiveKey *IncentiveKey, options *ClaimOptions) ([][]byte, error) + func EncodeDeposit(incentiveKeys []*IncentiveKey) ([]byte, error) + func EncodeRouteToPath(route *entities.Route, exactOutput bool) ([]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 SwapCallParameters(trades []*entities.Trade, options *SwapOptions) (*utils.MethodParameters, error) + func WithdrawToken(incentiveKeys []*IncentiveKey, withdrawOptions *FullWithdrawOptions) (*utils.MethodParameters, error) + type ClaimOptions struct + Amount *big.Int + Recipient common.Address + 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 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 QuoteOptions struct + SqrtPriceLimitX96 *big.Int + 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 v0.1.9 Dec 23, 2022 v0.1.8 Dec 22, 2022 v0.1.7 Sep 5, 2022 v0.1.6 Aug 23, 2022 v0.1.5 Jun 6, 2022 v0.1.4 Jun 3, 2022 v0.1.3 Apr 22, 2022 v0.1.2 Apr 13, 2022 v0.1.1 Apr 8, 2022 v0.1.0 Apr 6, 2022 Changes in this version + var ErrCannotBurn = errors.New("cannot burn") + var ErrInvalidOptions = errors.New("invalid options") + var ErrNoWETH = errors.New("no WETH") + 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 CreateCallParameters(pool *entities.Pool) (*utils.MethodParameters, error) + func EncodeAllowedPermit(token *entities.Token, options *AllowedPermitArguments) ([]byte, error) + func EncodeMulticall(calldatas [][]byte) ([]byte, error) + func EncodePermit(token *entities.Token, options *PermitOptions) ([]byte, error) + func EncodeRefundETH() []byte + 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 RemoveCallParameters(position *entities.Position, opts *RemoveLiquidityOptions) (*utils.MethodParameters, error) + func SafeTransferFromParameters(opts *SafeTransferOptions) (*utils.MethodParameters, error) + type AddLiquidityOptions struct + type AllowedPermitArguments struct + Expiry *big.Int + Nonce *big.Int + R string + S string + V uint + type CollectOptions struct + ExpectedCurrencyOwed0 *core.CurrencyAmount + ExpectedCurrencyOwed1 *core.CurrencyAmount + ExpectedTokenOwed0 *core.Token + ExpectedTokenOwed1 *core.Token + 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 + NativeToken *core.Token + SlippageTolerance *core.Percent + Token0Permit *PermitOptions + Token1Permit *PermitOptions + UseNative *core.Currency + type DecreaseLiquidityParams struct + Amount0Min *big.Int + Amount1Min *big.Int + Deadline *big.Int + Liquidity *big.Int + TokenId *big.Int + type FeeOptions struct + Fee *entities.Percent + Recipient common.Address + 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 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 string + S string + V uint + type WrappedABI struct + ABI abi.ABI