-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] ERC721 claimToBatch extension #5124
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 ↗︎
|
|
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. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5124 +/- ##
==========================================
+ Coverage 45.38% 45.45% +0.06%
==========================================
Files 1064 1065 +1
Lines 55054 55122 +68
Branches 3965 3975 +10
==========================================
+ Hits 24986 25054 +68
Misses 29376 29376
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more.
|
c2c6084 to
7c8ec29
Compare
|
|
||
| describe.runIf(process.env.TW_SECRET_KEY)("ERC721: claimTo", () => { | ||
| it("isClaimToSupported should work", async () => { | ||
| const contract = getContract({ |
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 run this test against an existing contract? That way we don't rely on deploy which hits IPFS
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces the `claimToBatch` functionality for the `ERC721` extension, allowing multiple NFT claims in a single transaction. It includes new tests for this feature and optimizes the claim content processing.
### Detailed summary
- Added `claimToBatch` function in `claimToBatch.ts` for batch NFT claims.
- Introduced `ClaimToBatchParams` type for defining batch claim parameters.
- Implemented `optimizeClaimContent` function to combine identical recipient claims.
- Created tests for `claimToBatch` and `optimizeClaimContent` in `claimToBatch.test.ts`.
- Updated `erc721.ts` to export `claimToBatch` and related types.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
7c8ec29 to
e952120
Compare
e952120 to
902675f
Compare
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces the `claimToBatch` functionality for the `ERC721` extension, allowing multiple claims in a single transaction. It includes tests to ensure the optimization of claim content and the correct processing of batch claims.
### Detailed summary
- Added `claimToBatch` function in `claimToBatch.ts` for batch claiming NFTs.
- Introduced `ClaimToBatchParams` type to define batch claim structure.
- Implemented `optimizeClaimContent` function to consolidate identical recipient claims.
- Created tests for `claimToBatch` and `optimizeClaimContent` in `claimToBatch.test.ts`.
- Verified the functionality of `isClaimToSupported` in the test suite.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
902675f to
c32576f
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces the
claimToBatchfunctionality for theERC721extension, allowing multiple claims in a single transaction and optimizing claim content. It includes tests for the new feature and ensures that the claiming process works as intended.Detailed summary
claimToBatchfunction inclaimToBatch.tsfor batching claims.ClaimToBatchParamstype for input parameters.optimizeClaimContentto consolidate identical recipient claims.claimToBatchandoptimizeClaimContentinclaimToBatch.test.ts.