-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Feature: Export contract deployment utilities #5501
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: Export contract deployment utilities #5501
Conversation
🦋 Changeset detectedLatest commit: ac42c45 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
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 📦
|
.changeset/long-queens-draw.md
Outdated
| }); | ||
|
|
||
| // Get default constructor params | ||
| const params = await getAllDefaultConstructorParamsForImplementation({ |
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.
can we keep this one un-exported? i actually want to get rid of it in favor of what yash is working on
| }); | ||
|
|
||
| // Get or deploy infrastructure | ||
| const infra = await getOrDeployInfraForPublishedContract({ |
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.
maybe we just expose this one for now? instead of getDeployedInfraContract and getDeployedCloneFactory ?
.changeset/long-queens-draw.md
Outdated
| } from "thirdweb"; | ||
|
|
||
| // Get deployed clone factory | ||
| const factory = await getDeployedCloneFactoryContract({ |
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.
nit: remove these from the changeset
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5501 +/- ##
==========================================
- Coverage 44.09% 43.82% -0.28%
==========================================
Files 1074 1075 +1
Lines 55632 55991 +359
Branches 3907 3909 +2
==========================================
+ Hits 24533 24539 +6
- Misses 30416 30769 +353
Partials 683 683
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
CNCT-2441 <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces new utility functions to enhance the management of infrastructure contracts and initialization processes within the `thirdweb` SDK. It also adds detailed documentation for several existing and new functions. ### Detailed summary - Added `getInitializeTransaction` for preparing contract initialization transactions. - Added `getOrDeployInfraForPublishedContract` to manage infrastructure for published contracts. - Documented `getDeployedCloneFactoryContract` with details on its parameters and return values. - Documented `getAllDefaultConstructorParamsForImplementation` for obtaining default constructor parameters. - Documented `getDeployedInfraContract` to retrieve infrastructure contract instances. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
8ffb741 to
600c024
Compare
CNCT-2441 <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces new utility functions and enhances existing ones to improve the management of infrastructure contracts and initialization processes within the `thirdweb` framework. ### Detailed summary - Added `getInitializeTransaction` for preparing contract initialization transactions. - Added `getOrDeployInfraForPublishedContract` to manage infrastructure for published contracts. - Documented various functions with detailed JSDoc comments. - Enhanced `getDeployedCloneFactoryContract` and `getDeployedInfraContract` with clearer descriptions. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
f28e239 to
ac42c45
Compare
|
changelog |
2 similar comments
|
changelog |
|
changelog |
CNCT-2441
PR-Codex overview
This PR introduces new utility functions for managing infrastructure contracts and contract initialization in the
thirdwebSDK, enhancing the deployment process for published contracts.Detailed summary
getInitializeTransactionfor preparing contract initialization transactions.getOrDeployInfraForPublishedContractto retrieve or deploy infrastructure for published contracts.getDeployedCloneFactoryContractto retrieve deployed clone factory instances.getAllDefaultConstructorParamsForImplementationto fetch default constructor parameters for contract deployments.getDeployedInfraContractfunction with detailed parameter descriptions.