This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Storage Layout Visualiser

Developer Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategoryDeveloper Tools
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

Works out which variables share a 32-byte slot and which force a new one, then compares the result against the best possible packing for the same types — the gap is wasted storage, fixable purely by reordering declarations, at roughly 20,000 gas per slot at deploy. Reads any variable from a live contract too, extracting its bytes from the packed word correctly: Solidity packs right to left, so a variable at offset N sits N bytes from the right end, not the left. You supply the declarations in source order, since deployed bytecode does not carry variable names. The comparison against optimal packing shows what reordering would save, at roughly twenty thousand gas per slot at deploy time and a cheaper write on every later update.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.