Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Oct 13, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing the thirdweb module by introducing support for zkSync direct deployments in the deployContract function and updating various module configurations and functions to accommodate new parameters and features.

Detailed summary

  • Added support for zkSync direct deployments in deployContract.
  • Updated SequentialTokenIdERC1155 to include startTokenId in its module.
  • Modified event signatures for BatchMetadataUpdate in both BatchMetadataERC721 and BatchMetadataERC1155.
  • Increased test retry count to 3 and max concurrency in vitest.config.ts.
  • Introduced new functions for encoding parameters in SequentialTokenIdERC1155 and BatchMetadataERC721.
  • Added getBatchIndex and getMetadataBatch functions with their respective parameters and encoding methods.
  • Implemented setBaseURI functions for both BatchMetadataERC721 and BatchMetadataERC1155.
  • Enhanced error handling and contract interaction methods across various modules.

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2024

🦋 Changeset detected

Latest commit: cd2c0f3

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

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

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

@vercel
Copy link

vercel bot commented Oct 13, 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 13, 2024 6:33am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 6:33am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 6:33am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 6:33am

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 13, 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.

@joaquim-verges joaquim-verges marked this pull request as ready for review October 13, 2024 00:59
Copy link
Member Author

joaquim-verges commented Oct 13, 2024

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

Join @joaquim-verges and the rest of your teammates on Graphite Graphite

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.07 KB (0%) 842 ms (0%) 3.2 s (+57.23% 🔺) 4 s
thirdweb (cjs) 101.87 KB (0%) 2.1 s (0%) 5.6 s (+8.53% 🔺) 7.6 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 94 ms (-25.07% 🔽) 191 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 79 ms (+142.94% 🔺) 89 ms
thirdweb/react (minimal + tree-shaking) 17.24 KB (0%) 345 ms (0%) 469 ms (+40.33% 🔺) 814 ms

@joaquim-verges joaquim-verges requested a review from jnsdls October 13, 2024 03:49
@joaquim-verges joaquim-verges force-pushed the feat_handle_zksync_direct_deploys_in_deployContract branch from 32b3a5c to ec74e6d Compare October 13, 2024 03:49
@codecov
Copy link

codecov bot commented Oct 13, 2024

Codecov Report

Attention: Patch coverage is 15.38462% with 11 lines in your changes missing coverage. Please review.

Project coverage is 47.72%. Comparing base (f9f5365) to head (cd2c0f3).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...hirdweb/src/contract/deployment/deploy-with-abi.ts 15.38% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5002      +/-   ##
==========================================
- Coverage   47.76%   47.72%   -0.04%     
==========================================
  Files        1058     1059       +1     
  Lines       57290    57323      +33     
  Branches     3943     3941       -2     
==========================================
- Hits        27364    27359       -5     
- Misses      29235    29273      +38     
  Partials      691      691              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from f9f5365
packages 43.52% <15.38%> (-0.05%) ⬇️

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

Files with missing lines Coverage Δ
...rdweb/src/extensions/prebuilts/deploy-published.ts 83.33% <ø> (+4.65%) ⬆️
...hirdweb/src/contract/deployment/deploy-with-abi.ts 76.92% <15.38%> (-10.26%) ⬇️

... and 2 files with indirect coverage changes

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 13, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `thirdweb` library with new features and bug fixes, particularly for zkSync deployments and improvements to various ERC1155 and ERC721 modules.

### Detailed summary
- Added support for zkSync direct deploys in `deployContract`.
- Updated `SequentialTokenIdERC1155` to include `startTokenId` in its module.
- Modified event signatures for `BatchMetadataUpdate` in both ERC721 and ERC1155.
- Increased test retry count and max concurrency in `vitest.config.ts`.
- Introduced new methods for batch metadata handling, including `getBatchIndex` and `getMetadataBatch`.
- Added `setBaseURI` functionality for both `BatchMetadataERC721` and `BatchMetadataERC1155`.
- Created parameter encoding functions for `updateTokenIdERC1155`.
- Enhanced error handling and configuration retrieval methods in modules.

> ✨ 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants