Skip to content
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

Closed
wants to merge 12 commits into from
Closed

feat: allow aux funds for name registration #1065

wants to merge 12 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 12, 2024

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.
Screenshot 2024-10-12 at 12 01 04 AM

With this change, wallets with the auxiliaryFunds capability won't be restricted from buying when they have an insufficient wallet balance.
Screenshot 2024-10-12 at 12 01 57 AM

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.

Copy link

vercel bot commented Oct 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
base-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 8:44pm
web-base-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 8:44pm

@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Oct 12, 2024

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 1/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Copy link

vercel bot commented Oct 12, 2024

@gareys-cb is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

Comment on lines 15 to 19
// To add a new capability, add it to this list
const capabilitiesList = ['atomicBatch', 'paymasterService', 'auxiliaryFunds'] as const;

type ListedCapabilities = (typeof capabilitiesList)[number];

Copy link
Author

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.

@cb-heimdall
Copy link
Collaborator

Review Error for JFrankfurt @ 2024-10-17 19:53:55 UTC
User failed mfa authentication, see go/mfa-help

hughescoin and others added 3 commits October 21, 2024 06:40
* 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
@ghost ghost requested a review from kirkas October 21, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants