Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Oct 15, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR introduces a new ERC1155 extension called mintAdditionalSupplyToBatch, enabling the minting of additional supplies for multiple NFTs in a single transaction. It enhances the functionality of the thirdweb library for efficient NFT management.

Detailed summary

  • Added new ERC1155 extension: mintAdditionalSupplyToBatch.
  • Exported mintAdditionalSupplyToBatch and its parameters from erc1155.ts.
  • Refactored mintToBatch.ts for better async handling and error management.
  • Created a test suite for mintAdditionalSupplyToBatch to validate its functionality.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Oct 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 6:42am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 6:42am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 6:42am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 6:42am

@changeset-bot
Copy link

changeset-bot bot commented Oct 15, 2024

🦋 Changeset detected

Latest commit: f8c981c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Minor

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

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 15, 2024

Your org has enabled the Graphite merge queue for merging into main

Add 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.

@kien-ngo kien-ngo marked this pull request as ready for review October 15, 2024 12:39
Copy link
Contributor Author

kien-ngo commented Oct 15, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @kien-ngo and the rest of your teammates on Graphite Graphite

@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.81 KB (0%) 857 ms (0%) 1.2 s (+26.47% 🔺) 2.1 s
thirdweb (cjs) 102.66 KB (0%) 2.1 s (0%) 2.4 s (-9.98% 🔽) 4.5 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 158 ms (+116.84% 🔺) 255 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 50 ms (-29.69% 🔽) 60 ms
thirdweb/react (minimal + tree-shaking) 17.36 KB (0%) 348 ms (0%) 276 ms (+36% 🔺) 623 ms

@codecov
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 94.87179% with 2 lines in your changes missing coverage. Please review.

Project coverage is 45.33%. Comparing base (1628fa2) to head (f8c981c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...irdweb/src/extensions/erc1155/write/mintToBatch.ts 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5036      +/-   ##
==========================================
+ Coverage   45.30%   45.33%   +0.02%     
==========================================
  Files        1059     1060       +1     
  Lines       54754    54773      +19     
  Branches     3958     3954       -4     
==========================================
+ Hits        24809    24832      +23     
+ Misses      29254    29250       -4     
  Partials      691      691              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 1628fa2
packages 40.29% <94.87%> (+0.03%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...sions/erc1155/write/mintAdditionalSupplyToBatch.ts 100.00% <100.00%> (ø)
...irdweb/src/extensions/erc1155/write/mintToBatch.ts 93.10% <85.71%> (+10.24%) ⬆️

jnsdls
jnsdls previously requested changes Oct 17, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 22, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new ERC1155 extension called `mintAdditionalSupplyToBatch`, allowing users to mint additional supplies of NFTs in a single transaction. It also modifies existing minting logic for better handling of asynchronous operations.

### Detailed summary
- Added new extension `mintAdditionalSupplyToBatch` in `mintAdditionalSupplyToBatch.ts`.
- Updated `mintToBatch.ts` for improved async handling and data processing.
- Created tests for `mintAdditionalSupplyToBatch` in `mintAdditionalSupplyToBatch.test.ts`.
- Updated export statements in `erc1155.ts` to include the new function.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants