sui icon indicating copy to clipboard operation
sui copied to clipboard

Explorer: Render Source Code

Open 666lcz opened this issue 2 years ago • 2 comments

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

666lcz avatar May 23 '22 06:05 666lcz

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.

666lcz avatar Jun 14 '22 15:06 666lcz

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.

github-actions[bot] avatar Sep 04 '22 02:09 github-actions[bot]

Duplicate of #1212

Jordan-Mysten avatar Oct 21 '22 02:10 Jordan-Mysten