Skip to content

Commit 48eb525

Browse files
[DDW-1179] Update LedgerJs to version 6.0.0-rc2
1 parent b5eecb1 commit 48eb525

File tree

5 files changed

+39
-45
lines changed

5 files changed

+39
-45
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
### Chores
1111

12+
- Updated `@cardano-foundation/ledgerjs-hw-app-cardano` package to version `6.0.0` ([PR 3092](https://github.com/input-output-hk/daedalus/pull/3092))
1213
- Updated new Catalyst API URL ([PR 3087](https://github.com/input-output-hk/daedalus/pull/3087))
1314
- Fixed Storybook state for General stories ([PR 3064](https://github.com/input-output-hk/daedalus/pull/3064))
1415

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
"yarn-lockfile": "1.1.1"
202202
},
203203
"dependencies": {
204-
"@cardano-foundation/ledgerjs-hw-app-cardano": "5.1.0",
204+
"@cardano-foundation/ledgerjs-hw-app-cardano": "https://github.com/vacuumlabs/ledgerjs-cardano-shelley/releases/download/v6.0.0-rc2/cardano-foundation-ledgerjs-hw-app-cardano-v6.0.0-rc2.tgz",
205205
"@iohk-jormungandr/wallet-js": "0.5.0-pre7",
206206
"@ledgerhq/hw-transport-node-hid": "6.27.1",
207207
"@trezor/connect": "9.0.2",

source/renderer/app/stores/HardwareWalletsStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ export default class HardwareWalletsStore extends Store {
26392639
txAuxiliaryData = cborizeTxAuxiliaryVotingData(
26402640
unsignedTxAuxiliaryData,
26412641
signedTransaction.auxiliaryDataSupplement
2642-
.catalystRegistrationSignatureHex
2642+
.governanceVotingRegistrationSignatureHex
26432643
);
26442644
}
26452645

source/renderer/app/utils/shelleyLedger.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
AddressType,
55
TxAuxiliaryDataType, // CHECK THIS
66
StakeCredentialParamsType,
7+
GovernanceVotingRegistrationFormat,
78
} from '@cardano-foundation/ledgerjs-hw-app-cardano';
89
import { encode } from 'borc';
910
import blakejs from 'blakejs';
@@ -472,14 +473,18 @@ export const prepareLedgerAuxiliaryData = (
472473

473474
if (type === CATALYST_VOTING_REGISTRATION_TYPE) {
474475
return {
475-
type: TxAuxiliaryDataType.CATALYST_REGISTRATION,
476+
type: TxAuxiliaryDataType.GOVERNANCE_VOTING_REGISTRATION,
476477
params: {
478+
format: GovernanceVotingRegistrationFormat.CIP_15,
477479
votingPublicKeyHex: votingPubKey,
478480
stakingPath: rewardDestinationAddress.stakingPath,
479481
rewardsDestination: {
480-
type: AddressType.REWARD_KEY,
482+
type: TxOutputDestinationType.DEVICE_OWNED,
481483
params: {
482-
stakingPath: rewardDestinationAddress.stakingPath,
484+
type: AddressType.REWARD_KEY,
485+
params: {
486+
stakingPath: rewardDestinationAddress.stakingPath,
487+
},
483488
},
484489
},
485490
nonce: `${txAuxiliaryData.nonce}`,

yarn.lock

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -992,11 +992,11 @@
992992
version "0.2.3"
993993
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
994994

995-
"@cardano-foundation/ledgerjs-hw-app-cardano@5.1.0":
996-
version "5.1.0"
997-
resolved "https://registry.yarnpkg.com/@cardano-foundation/ledgerjs-hw-app-cardano/-/ledgerjs-hw-app-cardano-5.1.0.tgz#69b94f7c5055bdb19aa719ff277fa5f683d11067"
995+
"@cardano-foundation/ledgerjs-hw-app-cardano@https://github.com/vacuumlabs/ledgerjs-cardano-shelley/releases/download/v6.0.0-rc2/cardano-foundation-ledgerjs-hw-app-cardano-v6.0.0-rc2.tgz":
996+
version "6.0.0-rc2"
997+
resolved "https://github.com/vacuumlabs/ledgerjs-cardano-shelley/releases/download/v6.0.0-rc2/cardano-foundation-ledgerjs-hw-app-cardano-v6.0.0-rc2.tgz#cf55c536563e3ad6c076f6bb3953d0159280c715"
998998
dependencies:
999-
"@ledgerhq/hw-transport" "^5.12.0"
999+
"@ledgerhq/hw-transport" "^6.27.8"
10001000
"@types/ledgerhq__hw-transport" "^4.21.3"
10011001
base-x "^3.0.5"
10021002
bech32 "^1.1.4"
@@ -1436,15 +1436,6 @@
14361436
"@jridgewell/resolve-uri" "^3.0.3"
14371437
"@jridgewell/sourcemap-codec" "^1.4.10"
14381438

1439-
"@ledgerhq/devices@^5.26.0":
1440-
version "5.51.1"
1441-
resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-5.51.1.tgz#d741a4a5d8f17c2f9d282fd27147e6fe1999edb7"
1442-
dependencies:
1443-
"@ledgerhq/errors" "^5.50.0"
1444-
"@ledgerhq/logs" "^5.50.0"
1445-
rxjs "6"
1446-
semver "^7.3.5"
1447-
14481439
"@ledgerhq/devices@^6.27.1":
14491440
version "6.27.1"
14501441
resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-6.27.1.tgz#3b13ab1d1ba8201e9e74a08f390560483978c962"
@@ -1454,18 +1445,23 @@
14541445
rxjs "6"
14551446
semver "^7.3.5"
14561447

1457-
"@ledgerhq/errors@^5.26.0":
1458-
version "5.26.0"
1459-
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-5.26.0.tgz#a2d3da356e8053817b6517a94eff876ca1d0c972"
1460-
1461-
"@ledgerhq/errors@^5.50.0":
1462-
version "5.50.0"
1463-
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-5.50.0.tgz#e3a6834cb8c19346efca214c1af84ed28e69dad9"
1448+
"@ledgerhq/devices@^7.0.5":
1449+
version "7.0.5"
1450+
resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-7.0.5.tgz#2b3f69b84d4bccb2c4b1d34e534444da862f4880"
1451+
dependencies:
1452+
"@ledgerhq/errors" "^6.12.1"
1453+
"@ledgerhq/logs" "^6.10.1"
1454+
rxjs "6"
1455+
semver "^7.3.5"
14641456

14651457
"@ledgerhq/errors@^6.10.0":
14661458
version "6.10.0"
14671459
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.10.0.tgz#dda9127b65f653fbb2f74a55e8f0e550d69de6e4"
14681460

1461+
"@ledgerhq/errors@^6.12.1":
1462+
version "6.12.1"
1463+
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.12.1.tgz#99ad10bd528942bdfde0ef3d4d0dce658f6f4405"
1464+
14691465
"@ledgerhq/hw-transport-node-hid-noevents@^6.27.1":
14701466
version "6.27.1"
14711467
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-6.27.1.tgz#f5bb720402978ed7ecf679d3cd8d07d466e0bca7"
@@ -1489,14 +1485,6 @@
14891485
node-hid "2.1.1"
14901486
usb "^1.7.0"
14911487

1492-
"@ledgerhq/hw-transport@^5.12.0":
1493-
version "5.26.0"
1494-
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-5.26.0.tgz#bfedc3d48400ad2fe48278d9444344b72aa9d0fe"
1495-
dependencies:
1496-
"@ledgerhq/devices" "^5.26.0"
1497-
"@ledgerhq/errors" "^5.26.0"
1498-
events "^3.2.0"
1499-
15001488
"@ledgerhq/hw-transport@^6.27.1":
15011489
version "6.27.1"
15021490
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.27.1.tgz#88072278f69c279cb6569352acd4ae2fec33ace3"
@@ -1505,14 +1493,22 @@
15051493
"@ledgerhq/errors" "^6.10.0"
15061494
events "^3.3.0"
15071495

1508-
"@ledgerhq/logs@^5.50.0":
1509-
version "5.50.0"
1510-
resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-5.50.0.tgz#29c6419e8379d496ab6d0426eadf3c4d100cd186"
1496+
"@ledgerhq/hw-transport@^6.27.8":
1497+
version "6.27.8"
1498+
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.27.8.tgz#57ece7e2b726216df698767de6828478fbe461e1"
1499+
dependencies:
1500+
"@ledgerhq/devices" "^7.0.5"
1501+
"@ledgerhq/errors" "^6.12.1"
1502+
events "^3.3.0"
15111503

15121504
"@ledgerhq/logs@^6.10.0":
15131505
version "6.10.0"
15141506
resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-6.10.0.tgz#c012c1ecc1a0e53d50e6af381618dca5268461c1"
15151507

1508+
"@ledgerhq/logs@^6.10.1":
1509+
version "6.10.1"
1510+
resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-6.10.1.tgz#5bd16082261d7364eabb511c788f00937dac588d"
1511+
15161512
"@leichtgewicht/ip-codec@^2.0.1":
15171513
version "2.0.3"
15181514
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.3.tgz#0300943770e04231041a51bd39f0439b5c7ab4f0"
@@ -4855,11 +4851,7 @@ [email protected]:
48554851
version "1.1.0"
48564852
resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5"
48574853

4858-
blakejs@^1.1.0:
4859-
version "1.2.1"
4860-
resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814"
4861-
4862-
blakejs@^1.2.1:
4854+
blakejs@^1.1.0, blakejs@^1.2.1:
48634855
version "1.2.1"
48644856
resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814"
48654857

@@ -5402,10 +5394,6 @@ [email protected]:
54025394
dependencies:
54035395
big-integer "1.6.36"
54045396

5405-
5406-
version "7.0.6"
5407-
resolved "https://registry.yarnpkg.com/cbor-web/-/cbor-web-7.0.6.tgz#6e23a0c58db4c38e485e395de511b9e2f628961c"
5408-
54095397
54105398
version "5.0.2"
54115399
resolved "https://registry.yarnpkg.com/cbor/-/cbor-5.0.2.tgz#aa8c3820280ebb9f3a45b2a4c66ac344294443de"

0 commit comments

Comments
 (0)