CLOBStorage
struct CLOBStorage {
    MarketData marketData;
    Book book;
    AccountStorage accounts;
}

getCLOBStorage

getCLOBStorage
function getCLOBStorage() internal pure returns (CLOBStorage storage ds)

Retrieves the storage location for CLOBStorage, which is determined by a custom storage slot, defined using a unique hash. This ensures that the CLOB data is stored in a specific, isolated location within the contract’s storage.

init

init
function init(
    CLOBStorage storage ds,
    MarketConfig memory marketConfig,
    TokenConfig memory tokenConfig,
    address factory,
    uint256 takerFeeBps
) internal

Initializes the CLOB storage with the provided market and token configurations, factory address, and taker fee basis points. It sets up the order book, market data, and fee data for the CLOB.