-
Notifications
You must be signed in to change notification settings - Fork 327
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
[WIP] Project intergalactic - Fiat flow #4714
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd 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. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4714 +/- ##
==========================================
- Coverage 50.62% 50.57% -0.05%
==========================================
Files 1025 1024 -1
Lines 54562 54629 +67
Branches 3893 3891 -2
==========================================
+ Hits 27623 27630 +7
- Misses 26306 26366 +60
Partials 633 633
*This pull request uses carry forward flags. Click here to find out more.
|
buyWithFiat: { | ||
preferredProvider: "STRIPE", | ||
}, | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove before merging
@@ -34,7 +34,7 @@ type DomainOverrides = { | |||
export const DEFAULT_RPC_URL = "rpc.thirdweb.com"; | |||
const DEFAULT_SOCIAL_URL = "social.thirdweb.com"; | |||
const DEFAULT_IN_APP_WALLET_URL = "embedded-wallet.thirdweb.com"; | |||
const DEFAULT_PAY_URL = "pay.thirdweb.com"; | |||
const DEFAULT_PAY_URL = "pay.thirdweb-dev.com"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change back
const account = useActiveAccount(); | ||
const switchChain = useSwitchActiveWalletChain(); | ||
|
||
const deploySmartWallet = async ({ chain }: { chain: Chain }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be better organized
sponsorGas: true, | ||
}); | ||
|
||
const smartAccount = await smartWalletHandle.connect({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, this creates a smart wallet that is deterministic to the account, but not per intent. How can I send in an intentId as the string to be deterministic by?
@@ -31,7 +31,7 @@ type DomainOverrides = { | |||
bundler?: string; | |||
}; | |||
|
|||
export const DEFAULT_RPC_URL = "rpc.thirdweb.com"; | |||
export const DEFAULT_RPC_URL = "rpc.thirdweb-dev.com"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change back
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces enhancements to the
buyWithFiat
functionality, allowing for the deployment of a smart wallet and improving the handling of onramp transactions. It updates payment options, RPC URLs, and integrates new hooks for better user experience.Detailed summary
payOptions
forbuyWithFiat
withpreferredProvider
.DEFAULT_RPC_URL
fromrpc.thirdweb.com
torpc.thirdweb-dev.com
.FiatDetailsScreen
withintentId
.isSingleStepExecutionEnabled
ingetQuote.ts
.onRampLinkOverride
inFiatFlow.tsx
.FiatSteps
to include smart wallet deployment logic.useDeploySmartWallet
hook for wallet deployment.FiatScreenContent
.