canvas-ui icon indicating copy to clipboard operation
canvas-ui copied to clipboard

Add support for storage inspection

Open Robbepop opened this issue 5 years ago • 2 comments
trafficstars

This might be a bit of a bigger task all in all.

The UI currently does not make any use of the contract's storage metadata section. This section describes in detail how the storage of the contract looks like. The information includes concrete keys, offsets, structural patterns and even types of the entities encoded.

Ideally the Canvas UI provides this very detailed information to the user under a new tab "storage" where a user can inspect the entire storage of a selected smart contract decoded and destructured. This should not simply show the raw bytes but also decode the information right away and show it nicely with its respective type definition.

I am not sure what is the best technique and method to display this as cleanly and as organized as possible since the storage of a contract can quickly become very complex. This is a research topics where probably @erler , @kwingram25 and me has to sit together and think about some really good visualization. Please schedule a meeting as soon as work on this starts, @kwingram25 .

Robbepop avatar Oct 20 '20 14:10 Robbepop

@erler any specs for this at the moment? I went through the old one and couldn't find any. Would be best to have on the Call page probably

kwingram25 avatar Dec 01 '20 07:12 kwingram25

You should not implement this at the moment since we are going to change the metadata format for this due to the fact that our current metadata format for storage layout is not powerful enough to express many important use cases.

Robbepop avatar Dec 01 '20 09:12 Robbepop