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

Adding connector type to fuel wallet SDK #1119

Open
sameoldlab opened this issue Feb 29, 2024 · 1 comment
Open

Adding connector type to fuel wallet SDK #1119

sameoldlab opened this issue Feb 29, 2024 · 1 comment
Labels
waiting-answer Waiting on response of external user

Comments

@sameoldlab
Copy link

Motivation

Currently all the end user wallets for fuel are browser extensions, but a future wallet could connect from mobile or desktop application. This might already be happening on bridging UIs. Knowing the type of wallet would help with displaying updates and components on the frontend.

Usage example

await fuel.selectConnector(connector.name)
fuel.connect()
if(connector.type === 'injected' {
    // show pending UI
} else if (connector.type === 'walletConnect') {
    // show QR code UI
}

Possible implementations

adding a string property to FuelConnector to indicate the type of wallet, i.e. injected, extension, mobile, scannable, sso, etc.
Wallets that connect the same way would have the same type

@LuizAsFight
Copy link
Contributor

@luizstacio what you think on this one ??

@LuizAsFight LuizAsFight added the waiting-answer Waiting on response of external user label Mar 24, 2024
@LuizAsFight LuizAsFight changed the title Adding connector type to fuel wallet SDK Adding connector type to fuel wallet SDK Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-answer Waiting on response of external user
Projects
None yet
Development

No branches or pull requests

2 participants