NomicFoundation / hardhat-ignition

Hardhat Ignition is a declarative deployment system that enables you to deploy your smart contracts without navigating the mechanics of the deployment process.
https://hardhat.org
MIT License
101 stars 20 forks source link

Support for verification with sourcify.dev #736

Open CedarMist opened 4 months ago

CedarMist commented 4 months ago

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

kanej commented 4 months ago

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!

CedarMist commented 2 months ago

@kanej @aefhm see #785