Versions in this module Expand all Collapse all v0 v0.2.3 Mar 18, 2022 v0.2.2 Mar 18, 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