beamer-bridge / beamer

Beamer - Bridging rollups with L1 inherited security
https://beamerbridge.com
MIT License
45 stars 21 forks source link

Contract verification on Optimism, Arbitrum and Mainnet #619

Closed istankovic closed 1 year ago

istankovic commented 2 years ago

Create a script to verify contracts on

It can be called by python scripts/verify-contracts.py <artifacts_dir> <rpc_file>

Acceptance criteria

taleldayekh commented 2 years ago

Waiting for https://github.com/eth-brownie/brownie/issues/1591

fredo commented 1 year ago

This should be pulled into the backlog once we are working on the new deployment infrastructure. We need to find a solution though. An alternative approach which turned out to be successful is verification on the explorer directly. According to @compojoom description we need to fold all imports into one file. For the current version such a document can be found here. In any case, this should also be automated upon deployment.

andfletcher commented 1 year ago

I added this issue to the Rework deployment infrastructure Epic

istankovic commented 1 year ago

Now that we have ape, we need to consider using it for contract verification instead of rolling our own solution. At least we should have an idea about the following:

bilbeyt commented 1 year ago

Whenever we need to add a chain we need to create pr for ape-etherscan that will update client.py, config.py and utils.py for the new chain. If the chain plugin is not released by apeworx, we need to create the repo with plugin and transfer the ownership to them. It basically needs to use https://github.com/ApeWorX/project-template as template and like in here https://github.com/ApeWorX/ape-optimism/tree/main/ape_optimism implements ecosystem.py. and init.py

andfletcher commented 1 year ago

needs to be checked again since the artifact structure changed.

andfletcher commented 1 year ago

No tests for this issue.