-
Notifications
You must be signed in to change notification settings - Fork 121
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
multi: Add ledger ui. #3874
multi: Add ledger ui. #3874
Conversation
7693520
to
01b175c
Compare
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.
found some minors
...nents/views/GetStartedPage/PreCreateWallet/CreateLedgerWalletForm/CreateLedgerWalletForm.jsx
Outdated
Show resolved
Hide resolved
|
||
const LedgerLoaderBarContainer = ({ loaderBar }) => { | ||
const { ledgerDevice, deviceLabel } = useLedgerLoaderBarContainer(); | ||
return ledgerDevice ? ( |
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.
return ledgerDevice ? ( | |
return ledgerDevice && ( |
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.
changed
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.
Is it right to change this? Looks like it does the other thing if no label.
if (isLedger && !ledgerDevice) { | ||
ledgerAlertNoConnectedDevice(); | ||
return; | ||
} |
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.
if (isLedger && !ledgerDevice) { | |
ledgerAlertNoConnectedDevice(); | |
return; | |
} | |
if (isLedger && !ledgerDevice) { | |
return ledgerAlertNoConnectedDevice(); | |
} |
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.
Changed but does this return value do anything?
if (isLedger) { | ||
ledgerEnable(); | ||
} else { | ||
ledgerDisable(); | ||
} |
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.
if (isLedger) { | |
ledgerEnable(); | |
} else { | |
ledgerDisable(); | |
} | |
if (isLedger) { | |
return ledgerEnable(); | |
} | |
return ledgerDisable(); |
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.
Is the return value used for something?
also, seems like this doesn't include create/restore ledger wallet pages ? 🤔 |
01b175c
to
f16eb1c
Compare
Maybe missed those. will add Working well now. The transport was real finnicky to make work... One weird thing I have seen when sending a transaction is one time the fee showed up as |
e00d9bc
to
317fa79
Compare
const walletName = selectors.getWalletName(getState()); | ||
|
||
if (walletName) { | ||
const config = wallet.getWalletCfg( | ||
selectors.isTestNet(getState()), | ||
walletName | ||
); | ||
config.set(cfgConstants.TREZOR, true); | ||
} | ||
|
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.
Alright to just set this when the wallet is created? If it trezor/ledger it will always be so. There's no reason to set it over and over.
I guess app/**/*.{js,jsx,css,json} doesn't expand deep enough for me. |
a56a1ff
to
a02e434
Compare
a02e434
to
95d0210
Compare
Not sure what this new test error is about... The package "@ledgerhq/devices/hid-framing" isn't registered with npm. Maybe I need to use a lower version of the transport after all... |
downgrading the version LedgerHQ/ledger-live#763 |
9b245e1
to
7327df4
Compare
7327df4
to
c3bcb79
Compare
c3bcb79
to
4624b6d
Compare
Fixed bug where ledger would not show up if no wallets yet exist https://github.com/decred/decrediton/compare/c3bcb794f847c99e91001c324050d4610be4c716..4624b6d273804153ad410e9aed5f081d9038557c |
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.
Absolutely. @matheusd is this maybe what you are hitting? Working on errors here now. |
4624b6d
to
f35831e
Compare
Having trouble making this work. Any tips? edit: Working now... I made and am importing from decred/pi-ui#480 |
f35831e
to
ee14239
Compare
Showing an error for the incorrect networks now and pulling in my repo for the svg, that will change https://github.com/decred/decrediton/compare/f35831e7156bec176eb11ec93cb3232075c465a5..ee142398f37f27ffd0d6d391fcf6c9995540f929 |
cd28163
to
9f8be31
Compare
Using a newer svg. Not sure if all these changes to yarn.lock were necessary. https://github.com/decred/decrediton/compare/cd28163e854ee3762135ce1bb437c6bdf38b118a..9f8be316eb90cc719ce5de97de1ab86becb83416 |
9f8be31
to
93ea374
Compare
Reverted the yarn.lock changes... https://github.com/decred/decrediton/compare/9f8be316eb90cc719ce5de97de1ab86becb83416..93ea374036e4a596407e9efbb4110ff0e159265b |
93ea374
to
c20a696
Compare
Copy trezor elements and apply to ledger where possible.
c20a696
to
36a2091
Compare
Last change just changes the import to decred's pi-ui repo https://github.com/decred/decrediton/compare/c20a69634e2e5b0235161592023841926e286826..36a2091f8bbc14c0ed1ef0b14c54acfb45cc1344 |
depends on #3869
part of #3865
Note to reviewers. This currently only works on testnet with the ledger decred testnet app. This is different from the normal mainnet app. You must download it from ledger live after turning on "experimental" features there. The ledger must also be unlocked and that app open.