Skip to content

Solidity API

PropsUniswapV4PoolManagerStorage

Defines the storage layout for the core PropsUniswapV4PoolManager token functionality Uses the diamond storage pattern to avoid storage collisions in upgradeable contracts

Layout

solidity
struct Layout {
  struct IPropsUniswapV4PoolManager.UniswapV4Deployment deployment;
  struct PoolKey poolKey;
  address tokenA;
  address tokenB;
  uint24 fee;
  int24 tickSpacing;
}

_getDeployment

solidity
function _getDeployment(uint256 chainId) internal pure returns (struct IPropsUniswapV4PoolManager.UniswapV4Deployment)

STORAGE_SLOT

solidity
bytes32 STORAGE_SLOT

Unique storage slot for PropsUniswapV4PoolManager 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 PropsUniswapV4PoolManagerStorage.Layout l)

Provides access to the storage layout

Return Values

NameTypeDescription
lstruct PropsUniswapV4PoolManagerStorage.LayoutStorage layout struct with proper positioning Uses assembly to position the storage struct at the predetermined slot