helpverify

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

README

helpverify

A set of tools to help verify Omni contracts on EVM explorers.

Usage

(Commands run from foundry root)

Get the creation tx hash

go run ./script/helpverify get-creation-tx-hash \
  --etherscan-api-key <key> \ # OR --arbscan-api-key <key> \
  <chain-name> \
  <contract-address>

With the tx hash, parse the creation tx. Note, this only works for transparent proxies deployed via Create3. This will print out the construct args and implmention address.

go run ./script/helpverify parse-proxy-create3-tx \
  <chain-name> \
  <tx-hash>

Then, use the constructor args to verify the proxy contract.

forge verify-contract
    --verifier-url <url> \ # see static.go for verifier urls
    --chain-id <foundry-chain-id> \ # optimism-sepolia, arbitrum-sepolia, etc
    --num-of-optimizations 200 \
    --compiler-version 0.8.24 \
    <proxy-address> \
    TransparentUpgradeableProxy

Verify the implementation contract by manually encoding constructor args, if there are any.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL