-
Notifications
You must be signed in to change notification settings - Fork 156
feat:add verification of usdc contracts #99
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
base: main
Are you sure you want to change the base?
Conversation
}, | ||
}, | ||
{ | ||
version: '0.6.12', |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
|
This PR adds 2 scripts to verify the bridged usdc contracts: