zerodevapp / kernel

https://docs.zerodev.app/
MIT License
177 stars 62 forks source link

Verify the deployed contracts #91

Open sirpy opened 6 months ago

sirpy commented 6 months ago

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

leekt commented 6 months ago

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 commented 6 months ago

Celo. (celoscan) Also verifying on sourcify.dev

freeatnet commented 3 months ago

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

poolpitako commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

@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 commented 3 months ago

@freeatnet verified on optimism/base/binance