Skip to content

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
},
},
{
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

"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

@Armanidashh
Copy link

"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",

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.

2 participants