Skip to main content

V4PositionPlanner

@uniswap/v4-sdk / V4PositionPlanner

Defined in: utils/v4PositionPlanner.ts:8

Extends

Constructors

new V4PositionPlanner()

new V4PositionPlanner(): V4PositionPlanner

Defined in: utils/v4Planner.ts:171

Returns

V4PositionPlanner

Inherited from

V4Planner.constructor

Properties

actions

actions: string

Defined in: utils/v4Planner.ts:168

Inherited from

V4Planner.actions


params

params: string[]

Defined in: utils/v4Planner.ts:169

Inherited from

V4Planner.params

Methods

addAction()

addAction(type, parameters): V4Planner

Defined in: utils/v4Planner.ts:176

Parameters

ParameterType
typeActions
parametersany[]

Returns

V4Planner

Inherited from

V4Planner.addAction


addBurn()

addBurn(tokenId, amount0Min, amount1Min, hookData): void

Defined in: utils/v4PositionPlanner.ts:58

Parameters

ParameterTypeDefault value
tokenIdBigintIshundefined
amount0MinBigintIshundefined
amount1MinBigintIshundefined
hookDatastringEMPTY_BYTES

Returns

void


addDecrease()

addDecrease(tokenId, liquidity, amount0Min, amount1Min, hookData): void

Defined in: utils/v4PositionPlanner.ts:46

Parameters

ParameterTypeDefault value
tokenIdBigintIshundefined
liquidityBigintIshundefined
amount0MinBigintIshundefined
amount1MinBigintIshundefined
hookDatastringEMPTY_BYTES

Returns

void


addIncrease()

addIncrease(tokenId, liquidity, amount0Max, amount1Max, hookData): void

Defined in: utils/v4PositionPlanner.ts:34

Parameters

ParameterTypeDefault value
tokenIdBigintIshundefined
liquidityBigintIshundefined
amount0MaxBigintIshundefined
amount1MaxBigintIshundefined
hookDatastringEMPTY_BYTES

Returns

void


addMint()

addMint(pool, tickLower, tickUpper, liquidity, amount0Max, amount1Max, owner, hookData): void

Defined in: utils/v4PositionPlanner.ts:10

Parameters

ParameterTypeDefault value
poolPoolundefined
tickLowernumberundefined
tickUppernumberundefined
liquidityBigintIshundefined
amount0MaxBigintIshundefined
amount1MaxBigintIshundefined
ownerstringundefined
hookDatastringEMPTY_BYTES

Returns

void


addSettle()

addSettle(currency, payerIsUser, amount?): V4Planner

Defined in: utils/v4Planner.ts:213

Parameters

ParameterType
currencyCurrency
payerIsUserboolean
amount?BigNumber

Returns

V4Planner

Inherited from

V4Planner.addSettle


addSettlePair()

addSettlePair(currency0, currency1): void

Defined in: utils/v4PositionPlanner.ts:64

Parameters

ParameterType
currency0Currency
currency1Currency

Returns

void


addSweep()

addSweep(currency, to): void

Defined in: utils/v4PositionPlanner.ts:76

Parameters

ParameterType
currencyCurrency
tostring

Returns

void


addTake()

addTake(currency, recipient, amount?): V4Planner

Defined in: utils/v4Planner.ts:218

Parameters

ParameterType
currencyCurrency
recipientstring
amount?BigNumber

Returns

V4Planner

Inherited from

V4Planner.addTake


addTakePair()

addTakePair(currency0, currency1, recipient): void

Defined in: utils/v4PositionPlanner.ts:70

Parameters

ParameterType
currency0Currency
currency1Currency
recipientstring

Returns

void


addTrade()

addTrade(trade, slippageTolerance?): V4Planner

Defined in: utils/v4Planner.ts:183

Parameters

ParameterType
tradeTrade<Currency, Currency, TradeType>
slippageTolerance?Percent

Returns

V4Planner

Inherited from

V4Planner.addTrade


finalize()

finalize(): string

Defined in: utils/v4Planner.ts:224

Returns

string

Inherited from

V4Planner.finalize