-
Notifications
You must be signed in to change notification settings - Fork 102
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 Trezor hardware wallet #538
Conversation
quietbits
commented
Jul 7, 2021
Preview is available here: |
/** | ||
* Transforms StellarSdk.Transaction to TrezorConnect.StellarTransaction | ||
*/ | ||
export const transformTransaction = (path, 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.
I think it would be helpful to call this trezorTransformTransaction
so when you call this in transactionSigner
it's clear that this is specifically for Trezor
return "createPassiveOffer"; | ||
case "manageSellOffer": | ||
// case 'manageBuyOffer': | ||
return "manageOffer"; |
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.
out of scope for this PR, but we should implement an enum here during the Lab refactor
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 could refactor this but it might be better to keep it as close to the original created by Trezor as possible. Just in case there are updates. Aside from added types and some minor adjustments, it's pretty close to the original.
Preview is available here: |
Preview is available here: |
@quietbits Testing pass SUCCESS. Ready to merge. |