> For the complete documentation index, see [llms.txt](https://ret2basic.gitbook.io/ctfnote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ret2basic.gitbook.io/ctfnote/web3-security-research/evm/official-solidity-docs.md).

# Official Solidity Docs

Three things to read:

* [Layout of State Variables in Storage](https://docs.soliditylang.org/en/latest/internals/layout_in_storage.html)
* [Layout in Memory](https://docs.soliditylang.org/en/latest/internals/layout_in_memory.html)
* [Layout of Calldata](https://docs.soliditylang.org/en/latest/internals/layout_in_calldata.html)

We have worked through it in the "Ethereum and Solidity Deep Dive" section:

{% embed url="<https://www.ctfnote.com/evm-auditing/ethereum-and-solidity-deep-dive>" %}
Ethereum and Solidity Deep Dive
{% endembed %}
