-
Notifications
You must be signed in to change notification settings - Fork 144
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
Add Ledger for Bitcoin and Ordinals #4316
Conversation
deb81d1
to
912e276
Compare
3b0b9e4
to
8e51646
Compare
5c31cd4
to
3215076
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
During the connection process, if I hover the cursor over the top area of the modal, it says "Ledger device in use" for some reason: Screen.Recording.2023-11-17.at.12.22.54.mov |
Let's hide the "Buy" option on the screen when only Bitcoin (not Stacks) is connected, ahead of adding BTC buy support with #3188 @edgarkhanzadian note we'll want to reenable this button for Ledger as part of issue #3188 |
This comment was marked as resolved.
This comment was marked as resolved.
This is the "Why you can't close modal" message, but also not a big fan |
dddea95
to
d86350d
Compare
Can we just hide the modal close option while it's pending? |
Screen.Recording.2023-11-17.at.15.38.49.movAnd also when connected to just Stacks: Screen.Recording.2023-11-17.at.15.40.03.mov |
514e12b
to
6c27b4e
Compare
src/app/features/ledger/flows/jwt-signing/ledger-sign-jwt-container.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/send/ordinal-inscription/hooks/use-generate-ordinal-tx.ts
Outdated
Show resolved
Hide resolved
src/app/pages/send/ordinal-inscription/hooks/use-send-inscription-form.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/send/send-crypto-asset-form/form/btc/use-btc-send-form.tsx
Outdated
Show resolved
Hide resolved
@@ -30,3 +61,181 @@ export function useZeroIndexTaprootAddress(accIndex?: number) { | |||
|
|||
return address; | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split up this file into smaller hook modules?
@@ -227,3 +245,35 @@ export function getTaprootAddress({ index, keychain, network }: GetTaprootAddres | |||
|
|||
return payment.address; | |||
} | |||
|
|||
export function getPsbtTxInputs(psbtTx: btc.Transaction) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have a separate psbt.utils
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this @kyranjamie 👍
I added some questions / suggestions but happy to merge as is
107316e
to
8accdd7
Compare
8accdd7
to
a82b1d7
Compare
Thanks for the feedback @pete-watters @fbwoolf, very helpful to get some fresh eyes on this PR 😅 . I've listed some remaining improvements in a new issue. I think this is good to merge, though might be nice to have some additional QA on the release |
getAddresses
APIsendTransfer
APIReturn bitcoin addresses in Stacks response (Gamma auth issue)Gamma doesn't work with Ledger2023-11-09-000025.mp4