Skip to content

feat:add verification of usdc contracts - #99

Draft
TucksonDev wants to merge 2 commits into
developfrom
add-verification-of-usdc-contracts
Draft

feat:add verification of usdc contracts#99
TucksonDev wants to merge 2 commits into
developfrom
add-verification-of-usdc-contracts

Conversation

@TucksonDev

Copy link
Copy Markdown
Contributor

This PR adds 2 scripts to verify the bridged usdc contracts:

  • L1UsdcGateway
  • L2UsdcGateway
  • L2Usdc
  • ProxyAdmins

@cla-bot cla-bot Bot added the cla-signed label Dec 20, 2024
Comment thread hardhat.config.ts
},
},
{
version: '0.6.12',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Needed to verify IFiatTokenProxy

Comment thread package.json
"blockscout:verify": "hardhat run ./scripts/orbitVerifyOnBlockscout.ts",
"deploy:usdc-token-bridge": "hardhat run scripts/usdc-bridge-deployment/deployUsdcBridge.ts",
"verify:usdc-token-bridge": "hardhat run scripts/usdc-bridge-deployment/verifyUsdcBridge.ts",
"verify:l1-usdc-token-bridge": "hardhat run scripts/usdc-bridge-deployment/verifyParentUsdcBridge.ts",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added to verify the contracts on the parent chain although they are likely to be already verified by bytecode match

(await l1UsdcGateway.l2USDC()).toLowerCase() != l2Usdc.toLowerCase() ||
(await l1UsdcGateway.owner()).toLowerCase() != _owner.toLowerCase() ||
(await l1UsdcGateway.counterpartGateway()).toLowerCase() !=
_l2CounterPart.toLowerCase()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In some cases, these addresses don't match because of casing issues

@Armanidashh

Copy link
Copy Markdown
"verify:usdc-token-bridge": "hardhat run scripts/usdc-bridge-deployment/verifyUsdcBridge.ts",
"verify:l1-usdc-token-bridge": "hardhat run scripts/usdc-bridge-deployment/verifyParentUsdcBridge.ts",

@yahgwai
yahgwai changed the base branch from main to develop August 18, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants