Skip to main content

V4PositionManager

@uniswap/v4-sdk / V4PositionManager

Defined in: PositionManager.ts:206

Properties

INTERFACE

static INTERFACE: Interface

Defined in: PositionManager.ts:207

Methods

addCallParameters()

static addCallParameters(position, options): MethodParameters

Defined in: PositionManager.ts:224

Parameters

ParameterType
positionPosition
optionsAddLiquidityOptions

Returns

MethodParameters


collectCallParameters()

static collectCallParameters(position, options): MethodParameters

Defined in: PositionManager.ts:387

Produces the calldata for collecting fees from a position

Parameters

ParameterTypeDescription
positionPositionThe position to collect fees from
optionsCollectOptionsAdditional information necessary for generating the calldata

Returns

MethodParameters

The call parameters


createCallParameters()

static createCallParameters(poolKey, sqrtPriceX96): MethodParameters

Defined in: PositionManager.ts:217

Public methods to encode method parameters for different actions on the PositionManager contract

Parameters

ParameterType
poolKeyPoolKey
sqrtPriceX96BigintIsh

Returns

MethodParameters


encodeERC721Permit()

static encodeERC721Permit(spender, tokenId, deadline, nonce, signature): string

Defined in: PositionManager.ts:435

Parameters

ParameterType
spenderstring
tokenIdBigintIsh
deadlineBigintIsh
nonceBigintIsh
signaturestring

Returns

string


encodeModifyLiquidities()

static encodeModifyLiquidities(unlockData, deadline): string

Defined in: PositionManager.ts:421

Parameters

ParameterType
unlockDatastring
deadlineBigintIsh

Returns

string


encodePermitBatch()

static encodePermitBatch(owner, permitBatch, signature): string

Defined in: PositionManager.ts:426

Parameters

ParameterType
ownerstring
permitBatchAllowanceTransferPermitBatch
signaturestring

Returns

string


getPermitData()

static getPermitData(permit, positionManagerAddress, chainId): NFTPermitData

Defined in: PositionManager.ts:452

Parameters

ParameterType
permitNFTPermitValues
positionManagerAddressstring
chainIdnumber

Returns

NFTPermitData


removeCallParameters()

static removeCallParameters(position, options): MethodParameters

Defined in: PositionManager.ts:314

Produces the calldata for completely or partially exiting a position

Parameters

ParameterTypeDescription
positionPositionThe position to exit
optionsRemoveLiquidityOptionsAdditional information necessary for generating the calldata

Returns

MethodParameters

The call parameters