Connect wallet component for the frontend template
fadeev opened this issue · 3 comments
What do you think about creating a reusable "Connect wallet" component?
What I'm talking about is pretty much RainbowKit, but for Cosmos. Making an extensible component for something like this may be important because alongside Keplr we have Cosmostation, Leap and other yet to be released wallets.
It will allow users to:
- Get links to install extension-wallets
- Connect to extensions and mobile wallets
- Copy address, see the balance of a selected (probably staking) token
- Change networks (maybe)
Devs to:
- Have a single component that they can just drop into their app to get wallet connection functionality
- Add custom wallets/chains by overriding config
- Customize the look and feel of the modal
- Enjoy the same API that RainbowKit offers (making it easier for devs to transition)
have you seen https://github.com/chainapsis/cosmodal ?
also, @NoahSaso made many changes here https://github.com/NoahSaso/cosmodal and will be soon making PRs.
I think this is a great idea, but wondering since beaker's focus is around cosmwasm, this may be better suited for expanding features in something like cosmodal.
I've also been thinking cosmodal should be split into a yarn workspace with packages so we can start adding more features to it. What do you think?
Then something like beaker could leverage cosmodal and then cosmodal could be more modularized and structured so we can achieve all these goals.
agreed with @pyramation, it's a great idea, but doesn't seem to be beaker's focus. leveraging cosmodal does make sense :)