-
Notifications
You must be signed in to change notification settings - Fork 544
[SDK] Feature: preferred chan id pay embed #7296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 6592394 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis change introduces support for specifying the onramp blockchain network and token address within the fiat-to-crypto purchase flow of the "thirdweb" component. Optional parameters for Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI (FiatScreenContent)
participant useBuyWithFiatQuote
participant getBuyWithFiatQuote
participant prepareOnramp
User->>UI (FiatScreenContent): Initiate fiat-to-crypto purchase
UI (FiatScreenContent)->>useBuyWithFiatQuote: Pass buyWithFiatOptions (including onrampChainId, onrampTokenAddress)
useBuyWithFiatQuote->>getBuyWithFiatQuote: Request quote with onrampChainId, onrampTokenAddress
getBuyWithFiatQuote->>prepareOnramp: Prepare onramp with specified chainId and tokenAddress
prepareOnramp-->>getBuyWithFiatQuote: Return prepared onramp data
getBuyWithFiatQuote-->>useBuyWithFiatQuote: Return quote
useBuyWithFiatQuote-->>UI (FiatScreenContent): Display quote to user
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (5)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #7296 +/- ##
==========================================
- Coverage 55.58% 55.57% -0.01%
==========================================
Files 909 909
Lines 58670 58673 +3
Branches 4158 4158
==========================================
Hits 32609 32609
- Misses 25954 25957 +3
Partials 107 107
🚀 New features to boost your workflow:
|
PR-Codex overview
This PR introduces enhancements to the
buyWithFiat
functionality by allowing the specification of the onramp chain and token address, improving flexibility in payment options.Detailed summary
onrampChainId
andonrampTokenAddress
properties toConnectButtonProps
.FiatScreenContent
to utilizeonrampChainId
andonrampTokenAddress
frombuyWithFiatOptions
.getQuote
function to acceptonrampChainId
andonrampTokenAddress
parameters.Summary by CodeRabbit