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

feat:add verification of usdc contracts #99

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TucksonDev
Copy link
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
@@ -35,6 +35,15 @@ const config = {
},
},
},
{
version: '0.6.12',
Copy link
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

@@ -30,6 +30,8 @@
"test:creation-code": "hardhat test test-e2e/creationCodeTest.ts",
"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
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
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

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.

1 participant