Skip to content

Comments

Add contract verification CLI with ENS/Basename support#76

Merged
Yaketh (Kushmanmb) merged 5 commits intomasterfrom
copilot/verify-mycontract-on-sepolia
Feb 23, 2026
Merged

Add contract verification CLI with ENS/Basename support#76
Yaketh (Kushmanmb) merged 5 commits intomasterfrom
copilot/verify-mycontract-on-sepolia

Conversation

Copy link

Copilot AI commented Feb 23, 2026

Implements npm run verify command for verifying smart contracts on Etherscan/Basescan APIs. Supports Ethereum mainnet, Sepolia, Base mainnet, and Base Sepolia networks.

Changes

  • Verification script (apps/web/scripts/verify-contract.js)

    • Submits contract source code to Etherscan/Basescan verification API
    • Polls verification status with configurable timeout
    • Recognizes ENS names (e.g., kushmanmb.eth) and Basenames (e.g., yaketh.base.eth)
    • Provides guided manual resolution for ENS/Basenames (automatic resolution requires keccak256)
    • Zero external dependencies (Node.js built-ins only)
  • NPM script (package.json)

    • Added verify command to root package
  • Documentation (CONTRACT_VERIFICATION.md)

    • Usage examples with hex addresses and ENS names
    • Network configuration and API key setup
    • Troubleshooting guide

Usage

# Hex address
npm run verify -- \
  --address 0x1234567890abcdef1234567890abcdef12345678 \
  --source ./contracts/MyContract.sol \
  --name MyContract \
  --compiler v0.8.20+commit.a1b79de6 \
  --network sepolia \
  --optimization 1 \
  --runs 200

# ENS name (provides resolution instructions)
npm run verify -- \
  --address kushmanmb.eth \
  --source ./contracts/MyContract.sol \
  --name MyContract \
  --compiler v0.8.20+commit.a1b79de6 \
  --network mainnet

Requires ETHERSCAN_API_KEY environment variable.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits February 23, 2026 20:03
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Copilot AI changed the title [WIP] Verify MyContract on Sepolia network Add contract verification CLI with ENS/Basename support Feb 23, 2026
Copy link
Member

@Kushmanmb Yaketh (Kushmanmb) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kushmanmb.eth

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bearer found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@Kushmanmb Yaketh (Kushmanmb) marked this pull request as ready for review February 23, 2026 20:24
@Kushmanmb Yaketh (Kushmanmb) merged commit 376110d into master Feb 23, 2026
8 of 13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants