Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tool to read on-chain storage #793

Closed
montyly opened this issue Feb 24, 2021 · 2 comments
Closed

Add tool to read on-chain storage #793

montyly opened this issue Feb 24, 2021 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@montyly
Copy link
Member

montyly commented Feb 24, 2021

We can rely on the internal storage information and web3.get_storage_at to return the value of a contract onchain

Example of API

  • slither-read-storage [codebase] 0x414141 canonical_variable_name
  • slither-read-storage 0x414141 canonical_variable_name (if the source code is on etherscan)

Potential flags:

  • RPC-related to connect to local node, infrura or other
  • --list-all to dump all the contract variables and their values (aside mapping and maybe array?)
  • --offset / --index for mapping array
@Elyx0
Copy link

Elyx0 commented Feb 10, 2022

Came from https://0xalpharush.github.io/slithering-through-the-dark-forest/ excited to see it!

@jeffchen006
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants