Skip to content
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

feat: ledger thorchain support #643

Merged
merged 117 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from 110 commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
86b9f39
feat: ledger BCH Cash address format
gomesalexandre Sep 29, 2023
e2cdde7
chore(release): publish 1.52.2
gomesalexandre Oct 9, 2023
a81ccf2
feat: add missing scriptTypes in sandbox
gomesalexandre Oct 4, 2023
17d94ac
fix: ledger sandbox xpubs
gomesalexandre Oct 4, 2023
dff23ed
feat: improve commentary
gomesalexandre Oct 4, 2023
ab88217
feat: cleanup
gomesalexandre Oct 4, 2023
a16243f
chore(release): publish 1.52.3
gomesalexandre Oct 9, 2023
8cfdfa3
feat: ledger thorchain support
gomesalexandre Oct 9, 2023
3054236
feat: bumpy
gomesalexandre Oct 9, 2023
93a7826
feat: this
gomesalexandre Oct 9, 2023
7cbf5a3
feat: bump
gomesalexandre Oct 9, 2023
6aea4fd
feat: bump
gomesalexandre Oct 9, 2023
3aed88c
fix: derp
gomesalexandre Oct 9, 2023
c1430a1
feat: bump
gomesalexandre Oct 9, 2023
d0f1f79
feat: thor bip32 path array buffer
gomesalexandre Oct 9, 2023
7cb9bd6
feat: boimp
gomesalexandre Oct 9, 2023
c6b03df
feat: look mom thor address
gomesalexandre Oct 9, 2023
1ca288a
feat: boimp
gomesalexandre Oct 10, 2023
cad570b
feat: prototype sign method
gomesalexandre Oct 10, 2023
a775be7
feat: boimp
gomesalexandre Oct 10, 2023
6c39f52
fix: derp
gomesalexandre Oct 10, 2023
6376691
chore(release): publish 1.52.3-thorchain.9
gomesalexandre Oct 10, 2023
459f768
fix: ThorchainSignedTx compliant ish
gomesalexandre Oct 10, 2023
fb8c5ee
feat: boimp boimp
gomesalexandre Oct 10, 2023
04f139f
fix: toString base64
gomesalexandre Oct 10, 2023
ae133cd
feat: boimp boimp
gomesalexandre Oct 10, 2023
8d30176
feat: bump yarn.lock
gomesalexandre Oct 11, 2023
7d6e0be
sign tx fix (hopefully)
kaladinlight Oct 11, 2023
8d8b654
feat: regen yarn.lock
gomesalexandre Oct 11, 2023
0d72dc0
feat: boimp
gomesalexandre Oct 11, 2023
d5fd490
feat: bring back hardcoded path
gomesalexandre Oct 11, 2023
9ec1233
feat: boimp
gomesalexandre Oct 11, 2023
abaad81
feat: sign method hardcode path too
gomesalexandre Oct 11, 2023
4deac1a
feat: boimp
gomesalexandre Oct 11, 2023
d35c1ce
feat: don't fromBase64
gomesalexandre Oct 11, 2023
a036291
handle addressNList
kaladinlight Oct 11, 2023
8367242
feat: bump
gomesalexandre Oct 12, 2023
11d902f
handle addressNList
kaladinlight Oct 11, 2023
7a8e161
Merge branch 'feat_ledger_thorchain' of github.com:shapeshift/hdwalle…
kaladinlight Oct 12, 2023
a7faff5
bump
kaladinlight Oct 12, 2023
2370153
feat: add missing scriptTypes in sandbox
gomesalexandre Oct 4, 2023
da505f1
fix: ledger sandbox xpubs
gomesalexandre Oct 4, 2023
9542696
feat: improve commentary
gomesalexandre Oct 4, 2023
d3d89fc
feat: ledger BCH Cash address format
gomesalexandre Sep 29, 2023
d407ded
feat: cleanup
gomesalexandre Oct 4, 2023
15bfadf
chore(release): publish 1.52.3
gomesalexandre Oct 9, 2023
a5f1ecd
feat: pass null resolution to ledger eth.signTransaction
gomesalexandre Oct 11, 2023
3f74948
feat: bump
gomesalexandre Oct 11, 2023
b9a07c6
feat: reboimp
gomesalexandre Oct 11, 2023
6794e40
fix: ethSignMessage strip 0x prefix
gomesalexandre Oct 12, 2023
0ec6904
feat: boimp
gomesalexandre Oct 12, 2023
30553d9
feat: boimp
gomesalexandre Oct 12, 2023
fc26ce4
feat: ledger thorchain support
gomesalexandre Oct 9, 2023
ffc5ba3
feat: bumpy
gomesalexandre Oct 9, 2023
0564b2c
feat: this
gomesalexandre Oct 9, 2023
306a122
fix: derp
gomesalexandre Oct 9, 2023
dd831ef
feat: bump
gomesalexandre Oct 9, 2023
e691e82
feat: thor bip32 path array buffer
gomesalexandre Oct 9, 2023
1336abb
feat: boimp
gomesalexandre Oct 9, 2023
510d3ae
feat: look mom thor address
gomesalexandre Oct 9, 2023
fca27b5
feat: boimp
gomesalexandre Oct 10, 2023
7d2f377
feat: prototype sign method
gomesalexandre Oct 10, 2023
7abe35c
feat: boimp
gomesalexandre Oct 10, 2023
cca0358
fix: derp
gomesalexandre Oct 10, 2023
b1e0c49
chore(release): publish 1.52.3-thorchain.9
gomesalexandre Oct 10, 2023
646ce36
fix: ThorchainSignedTx compliant ish
gomesalexandre Oct 10, 2023
cd5a81c
feat: boimp boimp
gomesalexandre Oct 10, 2023
24e6498
fix: toString base64
gomesalexandre Oct 10, 2023
0e549ce
feat: boimp boimp
gomesalexandre Oct 10, 2023
49ec395
feat: bump yarn.lock
gomesalexandre Oct 11, 2023
a973a9c
sign tx fix (hopefully)
kaladinlight Oct 11, 2023
6754b14
handle addressNList
kaladinlight Oct 11, 2023
d5f06be
feat: regen yarn.lock
gomesalexandre Oct 11, 2023
23c8cde
feat: boimp
gomesalexandre Oct 11, 2023
879dcf9
feat: bring back hardcoded path
gomesalexandre Oct 11, 2023
c47c0a0
feat: boimp
gomesalexandre Oct 11, 2023
a56300f
feat: sign method hardcode path too
gomesalexandre Oct 11, 2023
c8fbeea
feat: boimp
gomesalexandre Oct 11, 2023
4724ae1
feat: bump
gomesalexandre Oct 12, 2023
bd49de6
bump
kaladinlight Oct 12, 2023
710569c
fix: merge
gomesalexandre Oct 16, 2023
ae79b88
regen yarn lock and fix fees param
kaladinlight Oct 18, 2023
56ec365
Merge branch 'feat_ledger_thorchain' of github.com:shapeshift/hdwalle…
kaladinlight Oct 18, 2023
f91b84b
feat: boimp
gomesalexandre Oct 18, 2023
257aa68
chore(release): publish 1.52.3
gomesalexandre Oct 18, 2023
40206fc
Merge branch 'feat_bch_receiveAddr' into feat_utxo_app
gomesalexandre Oct 18, 2023
86e58b0
feat: pass null resolution to ledger eth.signTransaction
gomesalexandre Oct 11, 2023
ca460c0
feat: bump
gomesalexandre Oct 11, 2023
f065028
feat: reboimp
gomesalexandre Oct 11, 2023
ac22bde
fix: ethSignMessage strip 0x prefix
gomesalexandre Oct 12, 2023
c2f972e
feat: boimp
gomesalexandre Oct 12, 2023
bca6886
feat: boimp
gomesalexandre Oct 12, 2023
bb504f9
Merge branch 'feat_ledger_improvements' into feat_ledger_thorchain
gomesalexandre Oct 18, 2023
d62d448
feat: add missing scriptTypes in sandbox
gomesalexandre Oct 4, 2023
8271f65
fix: ledger sandbox xpubs
gomesalexandre Oct 4, 2023
855bdc1
feat: improve commentary
gomesalexandre Oct 4, 2023
777cd36
feat: cleanup
gomesalexandre Oct 4, 2023
eaeaed1
feat: pass null resolution to ledger eth.signTransaction
gomesalexandre Oct 11, 2023
6f4e76d
feat: bump
gomesalexandre Oct 11, 2023
68d6d6d
feat: reboimp
gomesalexandre Oct 11, 2023
cb93b88
fix: ethSignMessage strip 0x prefix
gomesalexandre Oct 12, 2023
098f7d1
feat: boimp
gomesalexandre Oct 12, 2023
84e08af
feat: boimp
gomesalexandre Oct 12, 2023
9305d28
chore(release): publish 1.52.4
gomesalexandre Oct 18, 2023
5ac6982
Merge branch 'feat_utxo_app' into feat_ledger_improvements
gomesalexandre Oct 18, 2023
cb09aba
chore(release): publish 1.52.5
gomesalexandre Oct 18, 2023
565cbab
Merge branch 'feat_ledger_improvements' into feat_ledger_thorchain
gomesalexandre Oct 18, 2023
b825919
chore(release): publish 1.52.6
gomesalexandre Oct 18, 2023
1bb9a62
Merge branch 'master' into feat_ledger_thorchain
kaladinlight Oct 18, 2023
6da33ae
cleanup
kaladinlight Oct 18, 2023
bb48842
add ripemd types
kaladinlight Oct 18, 2023
d5fedc0
Revert "chore(release): publish 1.52.6"
gomesalexandre Oct 18, 2023
f37e481
chore(release): publish 1.52.7
gomesalexandre Oct 18, 2023
278995a
extend, implement, type, and fix integration tests
kaladinlight Oct 18, 2023
78a7581
Merge branch 'feat_ledger_thorchain' of github.com:shapeshift/hdwalle…
kaladinlight Oct 18, 2023
3ad7857
Merge branch 'master' into feat_ledger_thorchain
kaladinlight Oct 18, 2023
fbf8a6a
pretty
kaladinlight Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions examples/sandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-sandbox",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"private": true,
"browserslist": "> 0.5%, last 2 versions, not dead",
Expand All @@ -10,21 +10,21 @@
"clean": "rm -rf dist node_modules public .parcel-cache"
},
"dependencies": {
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey-tcp": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey-webusb": "1.52.5",
"@shapeshiftoss/hdwallet-keplr": "1.52.5",
"@shapeshiftoss/hdwallet-ledger": "1.52.5",
"@shapeshiftoss/hdwallet-ledger-webhid": "1.52.5",
"@shapeshiftoss/hdwallet-ledger-webusb": "1.52.5",
"@shapeshiftoss/hdwallet-metamask": "1.52.5",
"@shapeshiftoss/hdwallet-native": "1.52.5",
"@shapeshiftoss/hdwallet-portis": "1.52.5",
"@shapeshiftoss/hdwallet-tallyho": "1.52.5",
"@shapeshiftoss/hdwallet-trezor": "1.52.5",
"@shapeshiftoss/hdwallet-trezor-connect": "1.52.5",
"@shapeshiftoss/hdwallet-walletconnect": "1.52.5",
"@shapeshiftoss/hdwallet-xdefi": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey-tcp": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey-webusb": "1.52.6",
"@shapeshiftoss/hdwallet-keplr": "1.52.6",
"@shapeshiftoss/hdwallet-ledger": "1.52.6",
"@shapeshiftoss/hdwallet-ledger-webhid": "1.52.6",
"@shapeshiftoss/hdwallet-ledger-webusb": "1.52.6",
"@shapeshiftoss/hdwallet-metamask": "1.52.6",
"@shapeshiftoss/hdwallet-native": "1.52.6",
"@shapeshiftoss/hdwallet-portis": "1.52.6",
"@shapeshiftoss/hdwallet-tallyho": "1.52.6",
"@shapeshiftoss/hdwallet-trezor": "1.52.6",
"@shapeshiftoss/hdwallet-trezor-connect": "1.52.6",
"@shapeshiftoss/hdwallet-walletconnect": "1.52.6",
"@shapeshiftoss/hdwallet-xdefi": "1.52.6",
"bip32": "^2.0.4",
"jquery": "^3.4.1",
"json": "^9.0.6",
Expand Down
20 changes: 10 additions & 10 deletions integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/integration",
"version": "1.52.5",
"version": "1.52.6",
"main": "index.js",
"license": "MIT",
"private": true,
Expand All @@ -10,15 +10,15 @@
"dev": "lerna run test --scope integration --parallel --include-filtered-dependencies"
},
"dependencies": {
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey-nodewebusb": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey-tcp": "1.52.5",
"@shapeshiftoss/hdwallet-ledger": "1.52.5",
"@shapeshiftoss/hdwallet-native": "1.52.5",
"@shapeshiftoss/hdwallet-portis": "1.52.5",
"@shapeshiftoss/hdwallet-trezor": "1.52.5",
"@shapeshiftoss/hdwallet-xdefi": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey-nodewebusb": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey-tcp": "1.52.6",
"@shapeshiftoss/hdwallet-ledger": "1.52.6",
"@shapeshiftoss/hdwallet-native": "1.52.6",
"@shapeshiftoss/hdwallet-portis": "1.52.6",
"@shapeshiftoss/hdwallet-trezor": "1.52.6",
"@shapeshiftoss/hdwallet-xdefi": "1.52.6",
"fast-json-stable-stringify": "^2.1.0",
"msw": "^0.27.1",
"whatwg-fetch": "^3.6.2"
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "5.2.0",
"version": "1.52.5",
"version": "1.52.6",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
4 changes: 2 additions & 2 deletions packages/hdwallet-coinbase/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-coinbase",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -15,7 +15,7 @@
},
"dependencies": {
"@coinbase/wallet-sdk": "^3.6.6",
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"eth-rpc-errors": "^4.0.3",
"lodash": "^4.17.21"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/hdwallet-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-core",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/hdwallet-keepkey-chromeusb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keepkey-chromeusb",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -14,7 +14,7 @@
"prepublishOnly": "yarn clean && yarn build"
},
"dependencies": {
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey": "1.52.5"
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey": "1.52.6"
}
}
4 changes: 2 additions & 2 deletions packages/hdwallet-keepkey-electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keepkey-electron",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -14,7 +14,7 @@
"prepublishOnly": "yarn clean && yarn build"
},
"dependencies": {
"@shapeshiftoss/hdwallet-keepkey": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey": "1.52.6",
"uuid": "^8.3.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/hdwallet-keepkey-nodehid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keepkey-nodehid",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -14,7 +14,7 @@
"prepublishOnly": "yarn clean && yarn build"
},
"dependencies": {
"@shapeshiftoss/hdwallet-keepkey": "1.52.5"
"@shapeshiftoss/hdwallet-keepkey": "1.52.6"
},
"peerDependencies": {
"node-hid": "^2.1.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/hdwallet-keepkey-nodewebusb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keepkey-nodewebusb",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -14,8 +14,8 @@
"prepublishOnly": "yarn clean && yarn build"
},
"dependencies": {
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey": "1.52.5"
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey": "1.52.6"
},
"peerDependencies": {
"usb": "^2.3.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/hdwallet-keepkey-tcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keepkey-tcp",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -14,8 +14,8 @@
"prepublishOnly": "yarn clean && yarn build"
},
"dependencies": {
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey": "1.52.6",
"axios": "^0.21.1"
}
}
6 changes: 3 additions & 3 deletions packages/hdwallet-keepkey-webusb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keepkey-webusb",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -14,8 +14,8 @@
"prepublishOnly": "yarn clean && yarn build"
},
"dependencies": {
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-keepkey": "1.52.5"
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-keepkey": "1.52.6"
},
"devDependencies": {
"@types/w3c-web-usb": "^1.0.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/hdwallet-keepkey/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keepkey",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -19,7 +19,7 @@
"@ethereumjs/tx": "^3.3.0",
"@keepkey/device-protocol": "^7.12.2",
"@shapeshiftoss/bitcoinjs-lib": "5.2.0-shapeshift.2",
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/proto-tx-builder": "^0.8.0",
"bignumber.js": "^9.0.1",
"bnb-javascript-sdk-nobroadcast": "^2.16.14",
Expand Down
4 changes: 2 additions & 2 deletions packages/hdwallet-keplr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-keplr",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -15,7 +15,7 @@
},
"dependencies": {
"@shapeshiftoss/caip": "8.15.0",
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/proto-tx-builder": "^0.8.0",
"@shapeshiftoss/types": "3.1.3",
"base64-js": "^1.5.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/hdwallet-ledger-webhid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-ledger-webhid",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -19,8 +19,8 @@
"@ledgerhq/hw-transport": "^6.7.0",
"@ledgerhq/hw-transport-webhid": "^6.7.0",
"@ledgerhq/live-common": "^21.8.2",
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-ledger": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-ledger": "1.52.6",
"@types/w3c-web-hid": "^1.0.2"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/hdwallet-ledger-webusb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-ledger-webusb",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -20,8 +20,8 @@
"@ledgerhq/hw-transport-webusb": "^6.7.0",
"@ledgerhq/live-common": "^21.8.2",
"@ledgerhq/logs": "^6.10.1",
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-ledger": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"@shapeshiftoss/hdwallet-ledger": "1.52.6",
"@types/w3c-web-usb": "^1.0.4",
"p-queue": "^7.4.1"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/hdwallet-ledger-webusb/src/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export async function translateCoinAndMethod<T extends LedgerTransportCoinType,
method: U
): Promise<LedgerTransportMethod<T, U>> {
switch (coin) {
case "Rune": {
const thor = new ledger.THORChainApp(transport);
const methodInstance = thor[method as LedgerTransportMethodName<"Rune">].bind(thor);
return methodInstance as LedgerTransportMethod<T, U>;
}
case "Btc": {
const btc = new Btc({ transport });
const methodInstance = btc[method as LedgerTransportMethodName<"Btc">].bind(btc);
Expand Down
4 changes: 2 additions & 2 deletions packages/hdwallet-ledger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/hdwallet-ledger",
"version": "1.52.5",
"version": "1.52.6",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -18,7 +18,7 @@
"@ethereumjs/common": "^2.4.0",
"@ethereumjs/tx": "^3.3.0",
"@shapeshiftoss/bitcoinjs-lib": "5.2.0-shapeshift.2",
"@shapeshiftoss/hdwallet-core": "1.52.5",
"@shapeshiftoss/hdwallet-core": "1.52.6",
"base64-js": "^1.5.1",
"bchaddrjs": "^0.4.4",
"bitcoinjs-message": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/hdwallet-ledger/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from "./bitcoin";
export * from "./ethereum";
export * from "./thorchain";
export * from "./ledger";
export * from "./transport";
export * from "./utils";
10 changes: 10 additions & 0 deletions packages/hdwallet-ledger/src/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import _ from "lodash";

import * as btc from "./bitcoin";
import * as eth from "./ethereum";
import * as thorchain from "./thorchain";
import { LedgerTransport } from "./transport";
import { coinToLedgerAppName, handleError } from "./utils";

Expand Down Expand Up @@ -302,6 +303,8 @@ export class LedgerHDWallet implements core.HDWallet, core.BTCWallet, core.ETHWa
readonly _supportsPolygon = true;
readonly _supportsGnosis = true;
readonly _supportsArbitrum = true;
readonly _supportsThorchainInfo = true;
readonly _supportsThorchain = true;

_isLedger = true;

Expand Down Expand Up @@ -509,6 +512,13 @@ export class LedgerHDWallet implements core.HDWallet, core.BTCWallet, core.ETHWa
await this.validateCurrentApp(msg.coin);
return btc.btcGetAddress(this.transport, msg);
}
public thorchainGetAddress(msg: core.ThorchainGetAddress): Promise<string> {
return thorchain.thorchainGetAddress(this.transport, msg);
}

public thorchainSignTx(msg: core.ThorchainSignTx): Promise<core.ThorchainSignedTx> {
return thorchain.thorchainSignTx(this.transport, msg);
}

public async btcSignTx(msg: core.BTCSignTxLedger): Promise<core.BTCSignedTx> {
await this.validateCurrentApp(msg.coin);
Expand Down
Loading
Loading