-
Notifications
You must be signed in to change notification settings - Fork 360
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
Add ERC721 extension: updateMetadata & updateBatchBaseURI #3347
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: a9ce10f The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 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 |
Your org requires 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. |
CodSpeed Performance ReportMerging #3347 will not alter performanceComparing Summary
|
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3347 +/- ##
==========================================
+ Coverage 62.82% 62.89% +0.07%
==========================================
Files 860 861 +1
Lines 63715 63838 +123
Branches 3449 3464 +15
==========================================
+ Hits 40026 40151 +125
+ Misses 23014 23010 -4
- Partials 675 677 +2
*This pull request uses carry forward flags. Click here to find out more.
|
packages/thirdweb/src/extensions/erc721/drops/write/updateMetadata.test.ts
Show resolved
Hide resolved
packages/thirdweb/src/extensions/erc721/drops/write/updateMetadata.ts
Outdated
Show resolved
Hide resolved
packages/thirdweb/src/extensions/erc721/drops/write/updateMetadata.ts
Outdated
Show resolved
Hide resolved
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.
LGTM
Merge activity
|
<!-- start pr-codex --> ## PR-Codex overview This PR adds an ERC721 extension `updateMetadata` for updating NFT metadata in batches. ### Detailed summary - Added `updateMetadata` function to update NFT metadata - Implemented `getUpdateMetadataParams` to prepare transaction - Added tests for `updateMetadata` function - Introduced `freezeBatchBaseURI` function and related utilities > The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
PR-Codex overview
This PR adds an ERC721 extension
updateMetadata
for updating NFT metadata in a batch.Detailed summary
updateMetadata
function to update NFT metadata in ERC721 extensiongetUpdateMetadataParams
function to prepare update metadata parametersupdateMetadata
function with different scenariosFreezeBatchBaseURIParams
and related functions for freezing batch base URI