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

Adds stellar-wallet-kit and refactors to use it #18

Merged
merged 4 commits into from
Jun 21, 2023

Conversation

aristidesstaffieri
Copy link
Contributor

@aristidesstaffieri aristidesstaffieri commented Jun 14, 2023

This adds stellar-wallets-kit and refactors connecting/signing in order to use it.

This accomplishes support for more wallets and ecosystem integration into our examples.

Changes -
Uses stellar-wallets-kit to add support for x-bull and albedo.
Refactors to use SWK connections.

UX Changes -
Adds back the network selector since we can no longer detect network details, only allows Futurenet right now.

@stellar-jenkins
Copy link

@piyalbasu
Copy link
Contributor

Nice - thanks for doing this. I think we can live with those blocking issues in exchange for getting more robust wallet support.

It's a slightly worse UX but is still functional in that the wallet will notify the user of a network mismatch. Also, the lack of futurenet support in other wallets is a bummer, but we'll be going to Testnet pretty soon, so I think it's okay if the experience doesn't work on some wallets for the time being

@aristidesstaffieri
Copy link
Contributor Author

I think one side effect of this change would be that we now need the user to provide or select the network. For right now, we can assume Futurenet but will soon need to support Testnet also. It was nice to be able to implicitly support whatever network the user is on by getting it from Freighter but seems like no other wallets have apis for that.

@aristidesstaffieri aristidesstaffieri changed the title [WIP] [SPIKE] adds stellar-wallet-kit and refactors to use it [WIP] adds stellar-wallet-kit and refactors to use it Jun 16, 2023
@stellar-jenkins
Copy link

@aristidesstaffieri aristidesstaffieri force-pushed the spike/stellar-wallet-kit branch from 42593b3 to 0fc4c7a Compare June 21, 2023 15:04
@aristidesstaffieri aristidesstaffieri changed the title [WIP] adds stellar-wallet-kit and refactors to use it Adds stellar-wallet-kit and refactors to use it Jun 21, 2023
@stellar-jenkins
Copy link

@@ -14,6 +14,7 @@ module.exports = {
},
],
rules: {
"react-hooks/exhaustive-deps": "error",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look like we need to update @stellar/eslint-config to be able to print the react hooks suggestions. Added this in the meantime.

@stellar-jenkins
Copy link

@@ -73,7 +73,7 @@
"eslint-plugin-jsx-a11y": "6.x",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "2.x",
"eslint-plugin-react-hooks": "^5.0.0-canary-d1c8cdae3-20230619",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aristidesstaffieri aristidesstaffieri marked this pull request as ready for review June 21, 2023 15:31
@stellar-jenkins
Copy link

Something went wrong with PR preview build please check

@aristidesstaffieri aristidesstaffieri force-pushed the spike/stellar-wallet-kit branch from a82ef49 to 5a07bc9 Compare June 21, 2023 15:34
@stellar-jenkins
Copy link

@aristidesstaffieri aristidesstaffieri merged commit 0ec7621 into main Jun 21, 2023
@aristidesstaffieri aristidesstaffieri deleted the spike/stellar-wallet-kit branch June 21, 2023 16:50
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.

3 participants