> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gains.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# DiamondUtils

*Diamond standard internal library to access storage*

## \_getSlot

```solidity theme={null}
function _getSlot() internal pure returns (uint256)
```

*Returns storage slot for diamond data (facets, selectors, etc.)*

## \_getStorage

```solidity theme={null}
function _getStorage() internal pure returns (struct IDiamondStorage.DiamondStorage s)
```

*Returns storage pointer for storage struct in diamond contract, at defined slot*
