-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Allow Truffle to publish source+metadata information to Sourcify #1118
Comments
Thank you for raising this issue! It has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you would like to keep this issue open, please respond with information about the current state of this problem. |
There has been no new activity on this issue since it was marked as stale 7 days ago, so it is being automatically closed. If you'd like help with this or a different problem, please open a new issue. Thanks! |
Would be really great to have this... |
Thanks for your response! This issue is no longer considered stale and someone from the Truffle team will try to respond as soon as they can. |
You're right, @chriseth :) |
Just cause @Stale's gonna come in here soon and tell us this is stale. It's not. We should still do this. |
Thank you for raising this issue! It has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you would like to keep this issue open, please respond with information about the current state of this problem. |
Oh, I just discussed with again with @eggplantzzz - didn't even remember we already had this issue here :) |
Thanks for your response! This issue is no longer considered stale and someone from the Truffle team will try to respond as soon as they can. |
stalebot!!!! |
+1 |
PRs welcome on this! |
It sounds like bullet point one is satisfied by #1856. Point two and three sound like they'd be better suited for a Truffle plugin to be honest. The example plugin for |
In my opinion, the best action would be to publish the metadata on ipfs, so it can be picked up by the sourcify monitor or whoever wants to. Then we could have instant source verification without any action required on the deployer's part. |
I believe the next step for this would be to integrate this workflow into Truffle's upcoming Thanks for continuing to champion this effort, @chriseth 🙇 |
solc
terminates all bytecode output with a CBOR-encoded hash of the metadata, intended for use in contract verification (ref: documentation). Provided a commonly-used repository containing public contract metadata, wallet software should be able to perform contract verification natively, without relying on (or in addition to) centralized services such as Etherscan.Truffle should likely:
solc
's native metadata format as an artifact of compilationpublish
command, to publish these metadata files to the specified repository.With this in place, wallet software can start downloading these metadata files from a given repository and perform contract verification at transaction-time.
Probably lots of unknowns here to investigate, such as IPFS support (since
solc
currently only outputs the Swarm hash).This comes out of a discussion with @chriseth. cc @danfinlay.
The text was updated successfully, but these errors were encountered: