Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

metacontract/erc7201

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Important

The cast index-erc7201 feature has been integrated into Foundry. Please make use of this feature.

ERC-7201 Storage Location Calculator

This utility repository provides tools for calculating storage locations according to the ERC-7201 standard for Ethereum smart contracts.

This ERC is proposed to enable developers to efficiently manage storage conflict risks during upgrades and other changes by calculating storage slots themselves, rather than relying on the compiler to determine them.

The utility facilitates easy and accurate storage location calculations, streamlining the development process for Ethereum blockchain applications.

How to use:

  1. Open your terminal.

  2. Navigate to the directory where the calc-storage-location.sh script is located.

  3. Run the script by entering the following command, replacing with the seed name for your storage location:

    sh calc-storage-location.sh <name>

    For example, if your seed name is "example.main", you would enter:

    sh calc-storage-location.sh example.main

The script will calculate and output the corresponding storage location, which you can then use in your smart contract development to explicitly define storage slots, helping to manage storage conflict risks efficiently.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages