StorageLib
Overview
License: Apache-2.0-or-later
library StorageLibA library for extensions to access proxy pre-assigned storage slots.
Constants info
APPLICATIONS_SLOT (0x6cfa4b91)
bytes32 constant APPLICATIONS_SLOT = 0xdc487a67cca3fd0341a90d1b8834103014d2a61e6a212e57883f8680b8f9c831persistent storage slots, used to read from proxy storage without having to update implementation
DELEGATION_SLOT (0x71a9550b)
bytes32 constant DELEGATION_SLOT = 0x1de728329845ca9693f4e251833e4fd20a461e4f39179bee6e55171aedb6dc19POOL_INIT_SLOT (0x4a3979e3)
bytes32 constant POOL_INIT_SLOT = 0xe48b9bb119adfc3bccddcc581484cc6725fe8d292ebfcec7d67b1f93138d8bd8POOL_TOKENS_SLOT (0x56d208e1)
TOKEN_REGISTRY_SLOT (0xa26ea087)
UNIV4_TOKEN_IDS_SLOT (0xe0668072)
HYPERLIQUID_DATA_SLOT (0xd0331a58)
Functions info
pool
delegation
activeTokensSet
uniV4TokenIdsSlot
activeApplications
hyperliquidData
isOwnedToken
Checks if a token is owned by the pool (base token or active token)
Parameters:
Name
Type
Description
token
address
Token address to check
Return values:
Name
Type
Description
[0]
bool
True if token is base token or in active tokens set
Last updated