Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Apr 1, 2025


PR-Codex overview

This PR focuses on enhancing the Bridge functionality by adding action fields to transaction responses and improving the handling of bridge statuses, including new tests and type definitions.

Detailed summary

  • Added action field to transaction types in Quote.ts.
  • Updated status function in Status.ts to handle optional chainId.
  • Introduced new test for successful status handling in Status.test.ts.
  • Modified transaction structures to include id, client, and chain in Buy.ts and Sell.ts.
  • Updated documentation to clarify handling of approval transactions.

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

@gregfromstl gregfromstl requested review from a team as code owners April 1, 2025 19:33
@linear
Copy link

linear bot commented Apr 1, 2025

@vercel
Copy link

vercel bot commented Apr 1, 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 Apr 1, 2025 8:22pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2025 8:22pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2025 8:22pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2025 8:22pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2025 8:22pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 1, 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 github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Apr 1, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.55 KB (-0.13% 🔽) 952 ms (-0.13% 🔽) 135 ms (+92.91% 🔺) 1.1 s
thirdweb (cjs) 127.72 KB (+0.07% 🔺) 2.6 s (+0.07% 🔺) 206 ms (+44.11% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 5.62 KB (0%) 113 ms (0%) 118 ms (+1281.12% 🔺) 230 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 36 ms (+2163.95% 🔺) 46 ms
thirdweb/react (minimal + tree-shaking) 19.35 KB (0%) 388 ms (0%) 94 ms (+563.62% 🔺) 481 ms

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Signed-off-by: greg <[email protected]>
@changeset-bot
Copy link

changeset-bot bot commented Apr 1, 2025

🦋 Changeset detected

Latest commit: 1d3136b

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

gregfromstl and others added 3 commits April 1, 2025 12:39
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Signed-off-by: greg <[email protected]>
@codecov
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.93%. Comparing base (9cf1376) to head (1d3136b).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6613   +/-   ##
=======================================
  Coverage   54.92%   54.93%           
=======================================
  Files         885      885           
  Lines       55577    55584    +7     
  Branches     3795     3796    +1     
=======================================
+ Hits        30526    30533    +7     
  Misses      24956    24956           
  Partials       95       95           
Flag Coverage Δ
packages 54.93% <100.00%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
packages/thirdweb/src/bridge/Buy.ts 96.66% <100.00%> (+0.11%) ⬆️
packages/thirdweb/src/bridge/Sell.ts 96.66% <100.00%> (+0.11%) ⬆️
packages/thirdweb/src/bridge/Status.ts 44.89% <100.00%> (+1.14%) ⬆️
🚀 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.

`);
});

it("should handle successfull status with chain", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo in the test description - "successfull" should be "successful".

Suggested change
it("should handle successfull status with chain", async () => {
it("should handle successful status with chain", async () => {

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

@joaquim-verges joaquim-verges merged commit 5788cbd into main Apr 2, 2025
32 checks passed
@joaquim-verges joaquim-verges deleted the greg/tool-3900-add-transaction-actions-to-the-sdk branch April 2, 2025 07:08
@joaquim-verges joaquim-verges mentioned this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants