> For the complete documentation index, see [llms.txt](https://docs.phase.cash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phase.cash/proxies/diamonds.md).

# Diamonds

Diamonds follow the [EIP-2535](https://eips.ethereum.org/EIPS/eip-2535) spec. A lot of the Diamond code is taken from Mudgen's [diamond-3-hardhat](https://github.com/mudgen/diamond-3-hardhat) repo, though some code style and clarity modifications have been made. We appreciate Mudgen providing a base to build our diamonds on. Even though the Phase source code is licensed under BSL-1.1, we are giving full access to reproduce, copy and fork the diamond code inside the folder linked below.\
\
All of the facets created for diamonds can be found [here](https://github.com/0xPhase/contracts/tree/master/diamond):

* Access Control
* Clock
* Clone
* ERC20
* Loupe (required for the spec)
* Multicall
* Ownable
