Skip to content
Lattice

ShieldedPoolStorage

Git Source

ERC-7201 namespaced storage for the ShieldedPool module.

APPEND-ONLY: new fields may only be added at the end to preserve the upgrade-safe layout.

Note:

  • storage-location: erc7201:lattice.storage.ShieldedPool
struct ShieldedPoolStorage {
    /// @dev pool id (1-based) => pool.
    mapping(uint256 poolId => ShieldedPool pool) _pools;
    /// @dev number of pools created.
    uint256 _poolCount;
}

Properties

NameTypeDescription
_poolsmapping(uint256 poolId => ShieldedPool pool)
_poolCountuint256