sui
sui copied to clipboard
Explorer: Render Source Code
we can support adding an optional URL to package metadata and display the URL in the explorer.
Context: https://mysten-labs.slack.com/archives/C02DRAL32GN/p1652820425013529
Chatted with @tnowacki offline:
- we don't want to embed the GitHub URL in the package metadata because URLs can be long and will increase the size of onchain data
- Instead we will store a hash of the compiled module onchain. And then the publisher of the package can visit the Explorer, and upload the source code, where the Explorer backend will re-compile the package and make sure the hashes match.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Duplicate of #1212