IAUniswapRouter
Overview
License: Apache 2.0
interface IAUniswapRouterEvents info
UniV4PositionAdded
event UniV4PositionAdded(uint256 indexed tokenId)Emitted when a Uniswap V4 liquidity position token ID is tracked by the pool.
Parameters:
tokenId
uint256
The ERC-721 token ID of the newly minted V4 position.
UniV4PositionRemoved
event UniV4PositionRemoved(uint256 indexed tokenId)Emitted when a tracked Uniswap V4 liquidity position token ID is removed.
Parameters:
tokenId
uint256
The ERC-721 token ID of the burned V4 position.
Errors info
RecipientNotSmartPoolOrRouter
Thrown when a command recipient is neither the pool nor the router.
TransactionDeadlinePassed
Thrown when executing commands with an expired deadline.
PositionOwner
Thrown when the pool is not the position owner.
UniV4PositionsLimitExceeded
Thrown when the pool reached maximum number of liquidity positions.
LiquidityMintHookError
Thrown when a pool hook can access liquidity deltas.
InsufficientNativeBalance
Thrown when the pool does not hold enough balance.
PositionDoesNotExist
Thrown when the calldata contains both mint and increase for the same tokenId.
InvalidCommandType
Thrown when a universal router command is not supported.
Parameters:
commandType
uint256
The unsupported command byte.
UnsupportedAction
Thrown when a v4 swap action inside a V4_SWAP command is not supported.
Parameters:
action
uint256
The unsupported action byte.
Functions info
execute (0x3593564c)
Executes encoded commands along with provided inputs. Reverts if deadline has expired.
Parameters:
commands
bytes
A set of concatenated commands, each 1 byte in length.
inputs
bytes[]
An array of byte strings containing abi encoded inputs for each command.
deadline
uint256
The deadline by which the transaction must be executed.
execute (0x24856bc3)
Executes encoded commands along with provided inputs.
Only mint call has access to state, will revert with direct calls unless recipient is explicitly set to this.
Parameters:
commands
bytes
A set of concatenated commands, each 1 byte in length.
inputs
bytes[]
An array of byte strings containing abi encoded inputs for each command.
modifyLiquidities (0xdd46508f)
Executes a Uniswap V4 Posm liquidity transaction.
Parameters:
unlockData
bytes
Encoded calldata containing actions to be executed.
deadline
uint256
Deadline of the transaction.
Last updated