-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Feature: Adds prepare functions for zksync deploys #5462
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
[SDK] Feature: Adds prepare functions for zksync deploys #5462
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5462 +/- ##
==========================================
- Coverage 45.50% 45.48% -0.02%
==========================================
Files 1071 1070 -1
Lines 55743 55765 +22
Branches 4031 4035 +4
==========================================
Hits 25367 25367
- Misses 29689 29711 +22
Partials 687 687
*This pull request uses carry forward flags. Click here to find out more.
|
| to: create2Signer.address, | ||
| value: valueToSend, | ||
| }), | ||
| return prepareTransaction({ |
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.
this tx should be done before the second one, so ideally we return 2 transactions in an array here? and we execute them one by one
Merge activity
|
This PR starts the work necessary for CNCT-2398. Further work will be needed to determine how to prepare a deployment transaction that generalizes across all deploy types without access to an account.
PR-Codex overview
This PR refactors the contract deployment functions in the
thirdwebpackage to improve clarity and modularity. It introduces new transaction preparation functions and modifies existing ones to streamline the deployment process for both standard and deterministic contracts.Detailed summary
zkDeployContracttoprepareZkDeployContractTransaction.prepareZkDeployContractDeterministicTransactionfor deterministic deployment.zkDeployCreate2Factoryto use the new transaction preparation functions.zkDeployContractin favor of new preparation functions.saltanddeploymentTypeparameters in deployment functions.