Skip to main content

V4Planner

@uniswap/v4-sdk / V4Planner

Defined in: utils/v4Planner.ts:167

Extended by

Constructors

new V4Planner()

new V4Planner(): V4Planner

Defined in: utils/v4Planner.ts:171

Returns

V4Planner

Properties

actions

actions: string

Defined in: utils/v4Planner.ts:168


params

params: string[]

Defined in: utils/v4Planner.ts:169

Methods

addAction()

addAction(type, parameters): V4Planner

Defined in: utils/v4Planner.ts:176

Parameters

ParameterType
typeActions
parametersany[]

Returns

V4Planner


addSettle()

addSettle(currency, payerIsUser, amount?): V4Planner

Defined in: utils/v4Planner.ts:213

Parameters

ParameterType
currencyCurrency
payerIsUserboolean
amount?BigNumber

Returns

V4Planner


addTake()

addTake(currency, recipient, amount?): V4Planner

Defined in: utils/v4Planner.ts:218

Parameters

ParameterType
currencyCurrency
recipientstring
amount?BigNumber

Returns

V4Planner


addTrade()

addTrade(trade, slippageTolerance?): V4Planner

Defined in: utils/v4Planner.ts:183

Parameters

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

Returns

V4Planner


finalize()

finalize(): string

Defined in: utils/v4Planner.ts:224

Returns

string