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
Parameter | Type |
---|---|
position | Position |
options | AddLiquidityOptions |
Returns
collectCallParameters()
static
collectCallParameters(position
,options
):MethodParameters
Defined in: PositionManager.ts:387
Produces the calldata for collecting fees from a position
Parameters
Parameter | Type | Description |
---|---|---|
position | Position | The position to collect fees from |
options | CollectOptions | Additional information necessary for generating the calldata |
Returns
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
Parameter | Type |
---|---|
poolKey | PoolKey |
sqrtPriceX96 | BigintIsh |
Returns
encodeERC721Permit()
static
encodeERC721Permit(spender
,tokenId
,deadline
,nonce
,signature
):string
Defined in: PositionManager.ts:435
Parameters
Parameter | Type |
---|---|
spender | string |
tokenId | BigintIsh |
deadline | BigintIsh |
nonce | BigintIsh |
signature | string |
Returns
string
encodeModifyLiquidities()
static
encodeModifyLiquidities(unlockData
,deadline
):string
Defined in: PositionManager.ts:421
Parameters
Parameter | Type |
---|---|
unlockData | string |
deadline | BigintIsh |
Returns
string
encodePermitBatch()
static
encodePermitBatch(owner
,permitBatch
,signature
):string
Defined in: PositionManager.ts:426
Parameters
Parameter | Type |
---|---|
owner | string |
permitBatch | AllowanceTransferPermitBatch |
signature | string |
Returns
string
getPermitData()
static
getPermitData(permit
,positionManagerAddress
,chainId
):NFTPermitData
Defined in: PositionManager.ts:452
Parameters
Parameter | Type |
---|---|
permit | NFTPermitValues |
positionManagerAddress | string |
chainId | number |
Returns
removeCallParameters()
static
removeCallParameters(position
,options
):MethodParameters
Defined in: PositionManager.ts:314
Produces the calldata for completely or partially exiting a position
Parameters
Parameter | Type | Description |
---|---|---|
position | Position | The position to exit |
options | RemoveLiquidityOptions | Additional information necessary for generating the calldata |
Returns
The call parameters