ape
ape copied to clipboard
General: Add support for smart contract verification to ExplorerAPI
Overview
When you deploy a smart contract to a public network, you often want to verify that contract's source code through one (or more) blockchain explorer(s) source code verification API (if it exists).
Specification
Add a kwarg verify=None to AccountAPI.deploy(ContractType, ..., verify=True) that will publish the corresponding smart contract code to any loaded ExplorerAPI plugin
Also prototype a way to verify source code "after the fact", maybe via ContractInstance or ReceiptAPI of the deployment txn.
Dependencies
Have to be able to link back to the Source(s) (or just use the package manifest directly) from a ContractType of the deployed contract.
there is also an issue for this found in ape-etherscan: https://github.com/ApeWorX/ape-etherscan/issues/22
Now, they are linked :)
dependency #792 to get compiler values to pull data required for verification dependency #530 to get deployed contract to pull data required for verification dependency https://github.com/ApeWorX/ape/issues/793 to get meta information required for contract verification
related: https://github.com/ApeWorX/ape/issues/794
@NotPeopling2day I believe this is the information you were requesting above 👍
dependency for vyper: https://github.com/ApeWorX/ape/issues/850
status: blocked by https://github.com/ApeWorX/ape/issues/948 and https://github.com/ApeWorX/ape/issues/530