hardhat-ignition icon indicating copy to clipboard operation
hardhat-ignition copied to clipboard

Support for verification with sourcify.dev

Open CedarMist opened this issue 1 year ago • 4 comments

Both etherscan & sourcify.dev are supported by the @nomicfoundation/hardhat-verify package, but ignition verify doesn't allow you to select which verifier to use as it defaults to Etherscan

The verifyEtherscanContract function at https://github.com/NomicFoundation/hardhat-ignition/blob/2ece9520446adc495f9ad9c87ef5605e39fb62f5/packages/hardhat-plugin/src/utils/verifyEtherscanContract.ts#L4

Is used by the verify task at: https://github.com/NomicFoundation/hardhat-ignition/blob/2ece9520446adc495f9ad9c87ef5605e39fb62f5/packages/hardhat-plugin/src/index.ts#L532

The sourcify module for hardhat-verify is at: https://github.com/NomicFoundation/hardhat/blob/main/packages/hardhat-verify/src/sourcify.ts

CedarMist avatar Apr 17 '24 18:04 CedarMist

We prioritized Etherscan based on usage, but we should provide this as an option to Ignition verification.

If you are keen on this feature, please give a thumbs up!

kanej avatar Apr 18 '24 08:04 kanej

@kanej @aefhm see #785

CedarMist avatar Jun 19 '24 00:06 CedarMist

@kanej any update how v3 is progressing and this gets supported?

rube-de avatar Sep 23 '24 09:09 rube-de

@kanej any update how v3 is progressing and this gets supported?

It is progressing well. Work on the enhanced build system, including better support for verification is being worked on now. However, we don't have a timeline for a public preview yet.

kanej avatar Sep 23 '24 09:09 kanej