-
Notifications
You must be signed in to change notification settings - Fork 556
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
feat: allow aux funds for name registration #1065
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🟡 Heimdall Review Status
|
@gareys-cb is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
// To add a new capability, add it to this list | ||
const capabilitiesList = ['atomicBatch', 'paymasterService', 'auxiliaryFunds'] as const; | ||
|
||
type ListedCapabilities = (typeof capabilitiesList)[number]; | ||
|
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.
The main goal of the refactor is to make this hook more easily updatable. Simply adding the capability name to this string[]
is all you need to do to expose the capability through the hook.
Review Error for JFrankfurt @ 2024-10-17 19:53:55 UTC |
* add theme gif * add styled swap component image * add swap component before custom theme * add tutorial for custom themes in OCK
* discount code temp * comments * BE: Proof of concept * mark/increment code as consumed * bad code * bad code * dry it up * remove test code * cleanup and fix * suspense * undo change * refactor: use internal transaction/capacities hooks for registration flow * refetch basename * fix: wrong name being used when reverseRecord is false * prefetch * ssr code instead of search params * add banner & code
* use correct chain * use dynamic chain
e8770ac
to
c05a8df
Compare
What changed? Why?
This PR enables wallets using EIP-5792 with the
auxiliaryFunds
capability to register Base names even when the wallet is unfunded.Currently, the "Register name" button is disabled.
With this change, wallets with the
auxiliaryFunds
capability won't be restricted from buying when they have an insufficient wallet balance.video.mp4
Notes to reviewers
Try it out locally or watch the videos. I've run the tests listed below locally.
How has it been tested?
Test with a wallet without capabilities to see that the button is disabled when wallet is unfunded.
Test with CB Smart Wallet which has capabilities to see that the button is enabled when wallet is unfunded.
Test with any funded wallet to see that it works when wallet is funded.