keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

Hardware wallets #184

Closed liamzebedee closed 4 years ago

liamzebedee commented 4 years ago

Work in this branch implements support for Ledger and Trezor for use as Ethereum wallets, and in a future PR that is not far far away, Bitcoin wallets too. It uses web3-react, a well-written library for Ethereum interactions in React, which supports various types of wallets (eg. WalletConnect).

This PR implements "connect a wallet" functionality, with UX inspired from the Uniswap dApp. Some screenshots are attached below to illustrate. Ignore the terrible design until [WIP] is removed.

Depends-On: #195

Epic: #177

Image assets

Logos were taken from:

liamzebedee commented 4 years ago

Example of Uniswap's distinction between Web3 connection and wallet connection.

Screen Shot 2020-02-18 at 3 52 57 pm Screen Shot 2020-02-18 at 11 33 30 pm

Another example of the "Connect Wallet" dialog, which this is modelled on.

Screen Shot 2020-02-18 at 4 15 45 pm
liamzebedee commented 4 years ago

Github doesn't support webm/mp4, so here's a brief video on Flowdock of the brutalist functional UI.

liz-shinn commented 4 years ago

Nice! Thanks for linking me to this. I had looked into the "connect wallet" dialog when doing initial research on the token dash. I've attached some screenshots below of other approaches I've seen.

From Basechain: Image 2020-03-18 at 3 51 31 PM

From IoTex: Image 2020-03-18 at 3 52 28 PM

From Staked: Image 2020-03-18 at 3 53 04 PM

Shadowfiend commented 4 years ago

The LOC on this change scared the bespitters out of me (before I realized there was a huge SVG here, that is).

Can we actually split this out to:

? Or would that be too much of a pain? It would be helpful for me to maintain context and keep review turnaround times short, even if each PR is built on the other (as long as the base branch is set to keep the diff to just what that PR is adding).

liamzebedee commented 4 years ago

@Shadowfiend If that helps us ship faster, then of course. Thanks for explaining why this would help too, that's something I find really useful.

Shadowfiend commented 4 years ago

Now that I see this updated diff, feels fine as is. Will try and do a full pass today.