Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Mar 5, 2025


PR-Codex overview

This PR focuses on enhancing the wallet functionality within the thirdweb package, including new features for transaction handling and integration improvements, particularly around the onPurchaseSuccess event and ecosystem wallet management.

Detailed summary

  • Added waitForDeployment option in bundler.ts.
  • Emitted onPurchaseSuccess for wallet-to-wallet transfers.
  • Increased timeout and set retry to 0 in wallet integration tests.
  • Updated tokenId from 1n to 2n in transaction-button.tsx.
  • Renamed getEcosystem to getEcosystemWallet in ecosystem.tsx.
  • Enhanced TransferConfirmationScreen to propagate onPurchaseSuccess and handle transaction metadata.

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

@vercel
Copy link

vercel bot commented Mar 5, 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 5, 2025 10:10am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 10:10am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 10:10am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 10:10am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 10:10am

@github-actions github-actions bot added Playground Changes involving the Playground codebase. packages SDK Involves changes to the thirdweb SDK labels Mar 5, 2025
@joaquim-verges joaquim-verges changed the title [SDK] feat: Add transfer success callback and ecosystem partner ID [SDK] feat: Add transfer success callback Mar 5, 2025
Copy link
Member Author


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.

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.76 KB (0%) 936 ms (0%) 283 ms (+379.99% 🔺) 1.3 s
thirdweb (cjs) 127.15 KB (0%) 2.6 s (0%) 262 ms (+48.52% 🔺) 2.9 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 93 ms (+1337.57% 🔺) 205 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 32 ms (+1551.56% 🔺) 42 ms
thirdweb/react (minimal + tree-shaking) 19.34 KB (0%) 387 ms (0%) 249 ms (+1950.53% 🔺) 635 ms

@joaquim-verges joaquim-verges force-pushed the _SDK_feat_Add_transfer_success_callback_and_ecosystem_partner_ID branch from 67b3cf6 to d28bb8a Compare March 5, 2025 10:02
@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2025

🦋 Changeset detected

Latest commit: d28bb8a

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

This PR includes changesets to release 2 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter 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

@codecov
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

Attention: Patch coverage is 7.40741% with 100 lines in your changes missing coverage. Please review.

Project coverage is 54.61%. Comparing base (24063af) to head (d28bb8a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...et/screens/Buy/swap/TransferConfirmationScreen.tsx 0.99% 100 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6415      +/-   ##
==========================================
- Coverage   54.72%   54.61%   -0.12%     
==========================================
  Files         874      874              
  Lines       54621    54723     +102     
  Branches     3722     3711      -11     
==========================================
- Hits        29894    29888       -6     
- Misses      24633    24740     +107     
- Partials       94       95       +1     
Flag Coverage Δ
packages 54.61% <7.40%> (-0.12%) ⬇️
Files with missing lines Coverage Δ
packages/thirdweb/src/wallets/smart/lib/bundler.ts 71.61% <100.00%> (+0.12%) ⬆️
packages/thirdweb/src/wallets/smart/lib/userop.ts 73.33% <100.00%> (-1.20%) ⬇️
...et/screens/Buy/swap/TransferConfirmationScreen.tsx 7.94% <0.99%> (-2.76%) ⬇️

... and 2 files with indirect coverage changes

@joaquim-verges joaquim-verges merged commit fb446bd into main Mar 5, 2025
24 of 33 checks passed
@joaquim-verges joaquim-verges deleted the _SDK_feat_Add_transfer_success_callback_and_ecosystem_partner_ID branch March 5, 2025 10:09
@joaquim-verges joaquim-verges mentioned this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages Playground Changes involving the Playground codebase. SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants