ScopeLift / cove-backend

Simple, reliable, open-source contract verification built for an L2 centric Ethereum ecosystem
http://covecontracts.com/
23 stars 1 forks source link

Feature request: Huff Contracts verification #19

Open PraneshASP opened 1 year ago

PraneshASP commented 1 year ago

Currently there's no way to verify Huff contracts, as Etherscan and other explorers doesn't support Huff language yet. It would be very useful for the Huff community if Cove provides this functionality.

I'm happy to jump in and try to implement it, if its desirable to have this feature.

mds1 commented 1 year ago

A PR for this would be awesome! Definitely down to support more frameworks, and it would be cool to support huff as I don't think it's supported anywhere else.

I'm happy to provide any guidance if you need any help. The scope of work here is roughly:

However, just note that verification results are not persisted anywhere, so users will need to visit the cove frontend anytime they want to verify. A lightweight way to do this might be to add a feature to the frontend pre-filling the form with query parameters, so you can directly link a user to a pre-filled form they can verify with.

mds1 commented 1 year ago

Split up frameworks.rs into a frameworks folder so each framework can live in it's own file, e.g. foundry.rs. This is a good initial PR.

Just completed this one in https://github.com/ScopeLift/cove-backend/pull/21

PraneshASP commented 1 year ago

Awesome! I'll start working on the next PR. I'm not 100% sure if I could make this work, but it would be great if I could, as there are no options to verify huff atm. Will create a draft PR once I have some reviewable code as it would be easier to review smaller chunks and also it helps me to make sure that I steer towards the right direction / catch mistakes early (as I'm still a rust noob). Thanks for accepting this feature request! :))

mds1 commented 1 year ago

Sounds great, looking forward to it!