Skip to content

0xdanielvigo/EVM-storage-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVM STORAGE LAYOUT

In this repo, I explained how storage variables are stored in storage slots, covering all the following Solidity data types:

  • numbers
  • strings
  • addresses
  • booleans
  • bytes
  • contracts
  • enums
  • arrays
  • mappings
  • structs

All the contracts in src have been deployed on ethereum sepolia so that storage tests can be executed on them.

Usage

Build

	forge build

Visualize storage

	cast storage <ADDRESS> --rpc-url <your_rpc_url>

About

A full and comprehensive guide on how storage variables are stored in storage slots.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors