Appearance
Solidity API
PropsUniswapHookStorage
Defines the storage layout for the core PropsUniswapHook hook functionality Uses the diamond storage pattern to avoid storage collisions in upgradeable contracts
Layout
solidity
struct Layout {
contract IPoolManager poolManager;
contract UniversalRouter universalRouter;
contract IPermit2 permit2;
struct IPropsUniswapHook.HookPermissions hookPermissions;
contract IV4Quoter quoter;
uint24 fee;
}STORAGE_SLOT
solidity
bytes32 STORAGE_SLOTUnique storage slot for PropsUniswapHook storage Generated using the contract's full path to ensure uniqueness Used in diamond storage pattern to prevent storage collision with other facets
layout
solidity
function layout() internal pure returns (struct PropsUniswapHookStorage.Layout l)Provides access to the storage layout
Return Values
| Name | Type | Description |
|---|---|---|
| l | struct PropsUniswapHookStorage.Layout | Storage layout struct with proper positioning Uses assembly to position the storage struct at the predetermined slot |