Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Mar 19, 2025


PR-Codex overview

This PR focuses on enhancing the deployment and management of dynamic contracts within the thirdweb framework. It introduces new functionalities for handling extensions and improves transaction counts for dynamic contracts.

Detailed summary

  • Refactored return statements for improved readability in bootstrap.ts.
  • Updated custom-contract.tsx to use DEFAULT_FEE_BPS_NEW.
  • Added a test case for counting transactions for dynamic contracts in get-required-transactions.test.ts.
  • Implemented logic for deploying extensions in deploy-published.ts.
  • Enhanced the deployContractfromDeployMetadata function to include defaultExtensions.
  • Added tests for deploying dynamic contracts with extensions in deploy-dynamic.test.ts.
  • Introduced a new function for handling transactions related to dynamic contracts in get-required-transactions.ts.
  • Created a utility function to generate extension functions from ABI in get-required-transactions.ts.
  • Modified deploy-marketplace.ts to handle dynamic extensions and their functions.

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

@kumaryash90 kumaryash90 requested review from a team as code owners March 19, 2025 17:17
@changeset-bot
Copy link

changeset-bot bot commented Mar 19, 2025

⚠️ No Changeset found

Latest commit: 88c213b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Mar 19, 2025

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 Mar 24, 2025 5:29pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 5:29pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 5:29pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 5:29pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 5:29pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 19, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.56 KB (0%) 952 ms (0%) 145 ms (+140.39% 🔺) 1.1 s
thirdweb (cjs) 127.31 KB (0%) 2.6 s (0%) 210 ms (+28.54% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 69 ms (+1115.69% 🔺) 181 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 17 ms (+718.01% 🔺) 27 ms
thirdweb/react (minimal + tree-shaking) 19.34 KB (0%) 387 ms (0%) 91 ms (+843.41% 🔺) 477 ms

@codecov
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

Attention: Patch coverage is 95.89744% with 8 lines in your changes missing coverage. Please review.

Project coverage is 55.01%. Comparing base (d9091bd) to head (88c213b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../extensions/prebuilts/get-required-transactions.ts 92.45% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6497      +/-   ##
==========================================
+ Coverage   54.92%   55.01%   +0.08%     
==========================================
  Files         881      881              
  Lines       55179    55304     +125     
  Branches     3768     3785      +17     
==========================================
+ Hits        30309    30424     +115     
- Misses      24775    24785      +10     
  Partials       95       95              
Flag Coverage Δ
packages 55.01% <95.89%> (+0.08%) ⬆️
Files with missing lines Coverage Δ
...hirdweb/src/contract/deployment/utils/bootstrap.ts 97.14% <100.00%> (+0.04%) ⬆️
...web/src/extensions/prebuilts/deploy-marketplace.ts 89.55% <100.00%> (-0.45%) ⬇️
...rdweb/src/extensions/prebuilts/deploy-published.ts 86.79% <100.00%> (+1.03%) ⬆️
.../extensions/prebuilts/get-required-transactions.ts 73.91% <92.45%> (+10.18%) ⬆️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member Author

kumaryash90 commented Mar 24, 2025

Merge activity

  • Mar 24, 1:20 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 24, 1:20 PM EDT: A user added this pull request to the Graphite merge queue.
  • Mar 24, 1:29 PM EDT: A user merged this pull request with the Graphite merge queue.

<!--

## 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 enhancing the deployment and transaction management of dynamic contracts within the `thirdweb` framework, adding support for extensions and improving the handling of contract metadata.

### Detailed summary
- Improved return formatting in `bootstrap.ts`.
- Updated `platformFeeBps` handling in `custom-contract.tsx`.
- Added tests for dynamic contract transactions in `get-required-transactions.test.ts`.
- Enhanced logic for deploying extensions in `deploy-published.ts`.
- Introduced new functions for managing dynamic contract extensions in `get-required-transactions.ts`.
- Updated `deploy-marketplace.ts` to include dynamic extensions in marketplace contracts.

> ✨ 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 SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants