Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify the deployed contracts #91

Open
sirpy opened this issue Mar 19, 2024 · 7 comments
Open

Verify the deployed contracts #91

sirpy opened this issue Mar 19, 2024 · 7 comments

Comments

@sirpy
Copy link

sirpy commented Mar 19, 2024

only the factory seems to be verified, please verify others also

@leekt
Copy link
Collaborator

leekt commented Mar 27, 2024

Which network you need us to verify? Verification is quite fragemented and we are working on a CI for the next batch of version update to make sure all codes are deployed & verified for all networks, but we need to do this manually for current version. But I can prioritize the network you need me to verify.
I assume "all" will be the ideal case but it is really hard for us to make it verified for all networks we support.

@sirpy
Copy link
Author

sirpy commented Mar 31, 2024

Celo. (celoscan)
Also verifying on sourcify.dev

@freeatnet
Copy link

@leekt it'd be awesome to have the v3.1 contracts verified on Optimism, Base, and BSC.

@poolpitako
Copy link

I am adding myself to the request

In mainnet:
https://etherscan.io/address/0xd703aae79538628d27099b8c4f621be4ccd142d5 should be verified.

Also, the 3.1 deployment in Gnosis-chain.

<3

@leekt
Copy link
Collaborator

leekt commented Jul 7, 2024

Guide to verify the contract

(example here is for verifying the factory staker on ethereum mainnet)

install foundry

curl -L https://foundry.paradigm.xyz | bash

clone contract from sepolia

(This is example command for cloning FactoryStaker(aka meta factory) from sepolia)

forge clone 0xd703aae79538628d27099b8c4f621be4ccd142d5 FactoryStaker --chain 11155111

run forge verify-contract

this requires you to know the constructor args, so copy and paste the following commands and replace etherscan api key and chain name that matches your demands

MetaFactory

forge verify-contract 0xd703aae79538628d27099b8c4f621be4ccd142d5 src/factory/FactoryStaker.sol:FactoryStaker --constructor-args 0000000000000000000000009775137314fe595c943712b0b336327dfa80ae8a --watch --chain <CHAIN_NAME> --etherscan-api-key <ETHERSCAN_API_KEY>  

ECDSAValidator

forge verify-contract 0x845ADb2C711129d4f3966735eD98a9F09fC4cE57 src/validator/ECDSAValidator.sol:ECDSAValidator --watch --chain <CHAIN_NAME> --etherscan-api-key <ETHERSCAN_API_KEY>  

Kernel

forge verify-contract 0xBAC849bB641841b44E965fB01A4Bf5F074f84b4D src/Kernel.sol:Kernel --constructor-args 0000000000000000000000000000000071727de22e5e9d8baf0edac6f37da032 --watch --chain <CHAIN_NAME> --etherscan-api-key <ETHERSCAN_API_KEY>  

KernelFactory

For KernelFactory, you need to match the foundry.toml to Kernel's foundry.toml since sepolia refuses to update the compiler setting for "Similar Contracts"

forge verify-contract 0xaac5D4240AF87249B3f71BC8E4A2cae074A3E419 src/factory/KernelFactory.sol:KernelFactory --constructor-args 000000000000000000000000bac849bb641841b44e965fb01a4bf5f074f84b4d --watch --chain <CHAIN_NAME> --etherscan-api-key <ETHERSCAN_API_KEY>  

@leekt
Copy link
Collaborator

leekt commented Jul 7, 2024

@poolpitako

I am adding myself to the request

In mainnet:
https://etherscan.io/address/0xd703aae79538628d27099b8c4f621be4ccd142d5 should be verified.

Also, the 3.1 deployment in Gnosis-chain.

this is done now

@leekt
Copy link
Collaborator

leekt commented Jul 7, 2024

@freeatnet
verified on optimism/base/binance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants