Skip to main content

5 docs tagged with "storage"

View All Tags

Declaring Storage

On this page, you will learn how to define storage in your smart contract.

Storage

How are storage slots derived for public and private state

Storage slots

From the description of storage slots in the Concepts you will get an idea around the logic of storage slots. In this section we will go into more detail and walk through an entire example of how storage slots are computed for private state to improve our storage slot intuition. Recall, that storage slots in the private domain is just a logical construct, and are not "actually" used for lookups, but rather just as a value to constrain against.