-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK/Dashboard] fix: ERC1155 single phase claim conditions #6655
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 59be4ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
...src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/useNftDrawerTabs.tsx
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6655 +/- ##
==========================================
+ Coverage 54.97% 55.05% +0.07%
==========================================
Files 889 889
Lines 55768 55858 +90
Branches 3815 3822 +7
==========================================
+ Hits 30661 30751 +90
Misses 25012 25012
Partials 95 95
🚀 New features to boost your workflow:
|
Merge activity
|
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on adding single phase functionality for `erc1155` claim conditions in the `thirdweb` dashboard and related utilities, enhancing the ability to manage claim eligibility and conditions for tokens.
### Detailed summary
- Introduced `isMultiphase` and `isSinglePhase` properties in various components.
- Updated `setClaimPhasesTx` to handle single phase options.
- Modified `getClaimConditions` to support both multi-phase and single-phase claims.
- Enhanced `resetClaimEligibility` to work with single phase drops.
- Updated tests to validate new single phase functionality.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
1ae6c4c to
59be4ea
Compare
PR-Codex overview
This PR introduces single-phase functionality for the
erc1155extension in thethirdwebpackage, enhancing claim conditions and eligibility management. It modifies various components and utility functions to support the new single-phase feature.Detailed summary
isMultiphaseprop to several components for claim conditions.setClaimPhasesTxto acceptisSinglePhaseoption.ResetClaimEligibilityto handle single-phase drops.getActiveClaimConditionto support both multi-phase and single-phase.getClaimConditionsto retrieve conditions for both phases.resetClaimEligibilityto manage eligibility resets in single-phase scenarios.