shapeshift / hdwallet

A library for interacting with hardware wallets from JS/TS.
https://hdwallet.shapeshift.now.sh/
MIT License
208 stars 90 forks source link

feat: implement Ethereum, Polygon and Bitcoin with phantom #677

Closed NeOMakinG closed 2 months ago

NeOMakinG commented 2 months ago

Issue

gomes notes:

neo notes:

First of all, I was thinking that the concept was pretty similar to metamask with snap at some point, so I started from this package.

The EVM part is following the EIP-1193 standard as stated in https://docs.phantom.app/ethereum-and-polygon/getting-started , so the implementation is very similar to any wallets as MetaMask.

Providers

Phantom as multiple providers, this is kinda why I had to store them all in memory, to communicate with the bitcoin part, we need to use the bitcoin provider. We only have a single provider for every EVM supporteds.

BTC TX

Phantom require to build the TX using PSBT, the logic is kinda like Native

vercel[bot] commented 2 months ago

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

Name Status Preview Comments Updated (UTC)
hdwallet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 9:59pm