which exposes information about positions on chain.
PositionInfo is a custom type wrapped around a uint256 that holds:
200bits (25 bytes) for the truncated poolId. Used to look up the pool key in the second mapping
tickUpper
tickLower
whether or not the position has a subscriber
This change is meant to allow for better interface standardization around ERC7211s and to make unchain integrations easier. (For example, position descriptor can now read information about the position).
This introduces two new mappings:
mapping(uint256 tokenId => PositionInfo) positionInfo
andmapping(bytes25 poolId => PoolKey) poolKeys
which exposes information about positions on chain.
PositionInfo
is a custom type wrapped around a uint256 that holds:This change is meant to allow for better interface standardization around ERC7211s and to make unchain integrations easier. (For example, position descriptor can now read information about the position).