-
Notifications
You must be signed in to change notification settings - Fork 89
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
tech debt: update ledger dependencies #346
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,23 +42,18 @@ const nativeAdapter = native.NativeAdapter.useKeyring(keyring, { | |
mnemonic, | ||
deviceId: "native-wallet-test", | ||
}); | ||
|
||
const log = debug.default("hdwallet"); | ||
|
||
const trezorAdapter = trezorConnect.TrezorAdapter.useKeyring(keyring, { | ||
debug: false, | ||
manifest: { | ||
email: "[email protected]", | ||
appUrl: "https://shapeshift.com", | ||
}, | ||
}); | ||
|
||
const ledgerAdapter = ledgerWebUSB.WebUSBLedgerAdapter.useKeyring(keyring); | ||
|
||
window["keyring"] = keyring; | ||
|
||
window.localStorage.debug = "*"; | ||
const loggers: { [deviceID: string]: debug.Debugger } = {}; | ||
|
||
let wallet; | ||
window["wallet"] = wallet; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,9 @@ | |
"lerna:publish": "lerna publish --pre-dist-tag alpha from-package", | ||
"postinstall": "patch-package" | ||
}, | ||
"engines": { | ||
"node": "14.x" | ||
}, | ||
Comment on lines
+37
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We removed engine restrictions on purpose several versions ago. If a dependency requires at least node 14, then it's own |
||
"devDependencies": { | ||
"jest": "^26.6.3", | ||
"jest-environment-jsdom": "^25.5.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@shapeshiftoss/hdwallet-core", | ||
"version": "1.16.10", | ||
"version": "1.17.0", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
|
@@ -13,6 +13,9 @@ | |
"clean": "rm -rf dist tsconfig.tsbuildinfo", | ||
"prepublishOnly": "yarn clean && yarn build" | ||
}, | ||
"engines": { | ||
"node": "14.x" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know this is wrong because we use hdwallet in axiom which runs node 12. "engines" will prevent use of any other version of node. If you absolutely want to add "engines" then use ">= 12" or whatever the minimum version of node is that is compatible. |
||
}, | ||
"dependencies": { | ||
"eventemitter2": "^5.0.1", | ||
"lodash": "^4.17.21", | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -58,7 +58,7 @@ export function arrayify(value: string): Uint8Array { | |||||
return new Uint8Array(result); | ||||||
} | ||||||
|
||||||
const HARDENED = 0x80000000; | ||||||
export const HARDENED = 0x80000000; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO this would need a better name for export at this level; also it doesn't need to be exported if if you use
Suggested change
|
||||||
export function bip32ToAddressNList(path: string): number[] { | ||||||
if (!bip32Like(path)) { | ||||||
throw new Error(`Not a bip32 path: '${path}'`); | ||||||
|
This file was deleted.
This file was deleted.
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 don't think this is accurate. You're 100% certain this doesn't run on older versions of node? I'm running node 12.x and it compiles fine for me.