-
Notifications
You must be signed in to change notification settings - Fork 327
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] Add Pack extensions #4579
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 90b5495 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 |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4579 +/- ##
==========================================
+ Coverage 47.72% 47.87% +0.14%
==========================================
Files 1051 1053 +2
Lines 56718 57092 +374
Branches 3903 3926 +23
==========================================
+ Hits 27070 27332 +262
- Misses 28960 29072 +112
Partials 688 688
*This pull request uses carry forward flags. Click here to find out more.
|
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. |
Merge activity
|
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces new functionalities and enhancements for the `Pack` contract in the `thirdweb` project, including event definitions, deployment options, and methods for managing packs and rewards. ### Detailed summary - Added `initialize` function to `Pack.json`. - Exported new types and functions in `deploy-pack.ts`. - Defined new events and functions in `IPackVRFDirect.json`. - Created tests for deploying `Pack` contracts. - Updated changelog with Pack extensions. - Implemented various methods for managing packs, including `openPack`, `addPackContents`, and `claimRewards`. > The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/pack/createNewPack.test.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts`, `packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts`, `packages/thirdweb/src/extensions/pack/createNewPack.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
652b40a
to
90b5495
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces a new
Pack
extension to thethirdweb
library, enhancing the deployment and management of pack contracts, including events, functions, and test cases for creating and handling packs.Detailed summary
Pack.json
andIPackVRFDirect.json
ABIs.deployPackContract
,PackContractParams
, andDeployPackContractOptions
.Pack
contracts.