-
Notifications
You must be signed in to change notification settings - Fork 159
Add verification of deterministic deployments #145
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
Conversation
| } | ||
|
|
||
| // Helper function to encode constructor arguments based on their types | ||
| function abiEncodeConstructorArguments(args: any[]): string { |
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.
Crafted this function to avoid having to pass the types of arguments for verification.
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.
very nice
| readonly contractToSource = { | ||
| l1TokenBridgeCreatorProxyAdmin: this.PROXY_ADMIN, | ||
| l1TokenBridgeCreatorLogic: | ||
| ProxyAdmin: this.PROXY_ADMIN, |
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.
Changed the keys of this object to use directly the name of the contract instead of custom keys (since these are not used anymore in the calling function)
| } | ||
|
|
||
| // Helper function to encode constructor arguments based on their types | ||
| function abiEncodeConstructorArguments(args: any[]): string { |
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.
very nice
godzillaba
left a comment
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.
LGTM besides the one comment
This PR builds on top of #144 , updating the verification of the deployed contracts, so it's all encapsulated at the end of the deployment process.
All verification functions are part of the ContractVerifier class, which manages queuing verification requests and triggering them all at once.
This PR is a cleaner version of #115