Appearance
Solidity API
BondingStorage
Defines the storage layout for the core BondingPair token functionality Uses the diamond storage pattern to avoid storage collisions in upgradeable contracts
K
solidity
uint256 KLayout
solidity
struct Layout {
struct IBondingPool.Pool pool;
address asset0;
address asset1;
}STORAGE_SLOT
solidity
bytes32 STORAGE_SLOTUnique storage slot for BondingPair 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 BondingStorage.Layout l)Provides access to the storage layout
Return Values
| Name | Type | Description |
|---|---|---|
| l | struct BondingStorage.Layout | Storage layout struct with proper positioning Uses assembly to position the storage struct at the predetermined slot |