a tool to get readable state diffs and enumerate complete contract storage
🚧 status: proof of concept 🚧
storage-layout storage <contract>
print all slots and valuesstorage-layout layout <txhash>
print a decoded state difftrace_replayTransaction
in stateDiff
mode. this is not strictly necessary since you can get all SSTORE
from vmTrace
.SHA3
calls which hash two words and write down key
and slot
.slot
value for mapping could be among preimages, we record a path we traversed to construct nested keys.how to dump the complete contract storage and print it in a readable way.
this tool can already dump the entire storage using parity_listStorageKeys
, but to decode it we need to collect all preimages.
for this we can find all calls to the address using trace_filter
and then vmTrace
all transactions and record all preimages.
slither-read-storage
can do more advanced forward storage reading
sol2uml
can draw storage layout diagrams