Skip to content

Commit 242640f

Browse files
authored
Merge pull request #3267 from nervosnetwork/bump-hw-sdk
2 parents c3288c0 + d6598da commit 242640f

File tree

6 files changed

+19
-49
lines changed

6 files changed

+19
-49
lines changed

packages/neuron-wallet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@ckb-lumos/helpers": "0.23.0",
4848
"@ckb-lumos/rpc": "0.23.0",
4949
"@ckb-lumos/lumos": "0.23.0",
50+
"@magickbase/hw-app-ckb": "0.2.0-alpha.0",
5051
"@iarna/toml": "2.2.5",
5152
"@ledgerhq/hw-transport-node-hid": "6.27.22",
5253
"@spore-sdk/core": "0.1.0",
@@ -59,7 +60,6 @@
5960
"electron-updater": "6.3.0",
6061
"electron-window-state": "5.0.3",
6162
"elliptic": "6.6.0",
62-
"hw-app-ckb": "0.1.2",
6363
"i18next": "21.10.0",
6464
"leveldown": "6.1.1",
6565
"levelup": "4.4.0",

packages/neuron-wallet/src/services/hardware/ledger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { DeviceInfo, ExtendedPublicKey } from './common'
22
import { Hardware } from './hardware'
33
import HID from '@ledgerhq/hw-transport-node-hid'
4-
import LedgerCKB from 'hw-app-ckb'
4+
import LedgerCKB from '@magickbase/hw-app-ckb'
55
import type { DescriptorEvent, Subscription, Observer } from '@ledgerhq/hw-transport'
66
import type Transport from '@ledgerhq/hw-transport'
77
import { Observable, timer } from 'rxjs'

packages/neuron-wallet/src/types/ledger.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Until there's a @types/hw-app-ckb
22
// import type Transport from '@ledgerhq/hw-transport'
33
declare module '@ledgerhq/hw-transport-node-ble'
4-
declare module 'hw-app-ckb' {
4+
declare module '@magickbase/hw-app-ckb' {
55
export interface WalletPublicKey {
66
publicKey: string
77
lockArg: string

packages/neuron-wallet/tests/services/hardware/ledger.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Ledger from '../../../src/services/hardware/ledger'
22

33
const getWalletExtendedPublicKeyMock = jest.fn()
44

5-
jest.mock('hw-app-ckb', () => {
5+
jest.mock('@magickbase/hw-app-ckb', () => {
66
return function () {
77
return {
88
getWalletExtendedPublicKey: getWalletExtendedPublicKeyMock,

packages/neuron-wallet/tests/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ jest.mock('@ledgerhq/hw-transport-node-hid', () => {
112112
return LedgerHID
113113
})
114114

115-
jest.mock('hw-app-ckb', () => {
115+
jest.mock('@magickbase/hw-app-ckb', () => {
116116
return LedgerCkbApp
117117
})

yarn.lock

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,6 +3414,16 @@
34143414
yargs "17.7.2"
34153415
yargs-parser "21.1.1"
34163416

3417+
"@magickbase/hw-app-ckb@0.2.0-alpha.0":
3418+
version "0.2.0-alpha.0"
3419+
resolved "https://registry.yarnpkg.com/@magickbase/hw-app-ckb/-/hw-app-ckb-0.2.0-alpha.0.tgz#903dea98bc349e32f39015fdebb95f8fe3436ab5"
3420+
integrity sha512-qphkM7WNQ1bLTvUS6VsJXaqyUg+kDzw+A2PAeCaQ0f3LhYqeTkg7keIGgPCUro7UTijatUxgkD903xq6VIuDlA==
3421+
dependencies:
3422+
"@ledgerhq/hw-transport" "^5.9.0"
3423+
bech32 "2.0.0"
3424+
bip32-path "0.4.2"
3425+
blake2b-wasm "2.1.0"
3426+
34173427
"@malept/cross-spawn-promise@^1.1.0":
34183428
version "1.1.1"
34193429
resolved "https://registry.yarnpkg.com/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz#504af200af6b98e198bce768bc1730c6936ae01d"
@@ -7600,12 +7610,7 @@ batch@0.6.1:
76007610
resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16"
76017611
integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==
76027612

7603-
bech32@1.1.4:
7604-
version "1.1.4"
7605-
resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9"
7606-
integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==
7607-
7608-
bech32@^2.0.0:
7613+
bech32@2.0.0, bech32@^2.0.0:
76097614
version "2.0.0"
76107615
resolved "https://registry.yarnpkg.com/bech32/-/bech32-2.0.0.tgz#078d3686535075c8c79709f054b1b226a133b355"
76117616
integrity sha512-LcknSilhIGatDAsY1ak2I8VtGaHNhgMSYVxFrGLXv+xLHytaKZKcaUJJUE7qmBr7h33o5YQwP55pMI0xmkpJwg==
@@ -12267,16 +12272,6 @@ husky@8.0.3:
1226712272
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
1226812273
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==
1226912274

12270-
hw-app-ckb@0.1.2:
12271-
version "0.1.2"
12272-
resolved "https://registry.yarnpkg.com/hw-app-ckb/-/hw-app-ckb-0.1.2.tgz#ca5b69ebcd4009af5cf0002c09e61962721d7e74"
12273-
integrity sha512-ruzlfQpo/jeByaPCNNlzGlZdfhFTeTwIWfAJDZaBjspvWLOzSi1L1gV/NsjRS+B03rI4gR5HAnQJiblrnf4d7A==
12274-
dependencies:
12275-
"@ledgerhq/hw-transport" "^5.9.0"
12276-
bech32 "1.1.4"
12277-
bip32-path "0.4.2"
12278-
blake2b-wasm "2.1.0"
12279-
1228012275
i18next@21.10.0:
1228112276
version "21.10.0"
1228212277
resolved "https://registry.yarnpkg.com/i18next/-/i18next-21.10.0.tgz#85429af55fdca4858345d0e16b584ec29520197d"
@@ -18974,16 +18969,7 @@ string-natural-compare@^3.0.1:
1897418969
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
1897518970
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
1897618971

18977-
"string-width-cjs@npm:string-width@^4.2.0":
18978-
version "4.2.3"
18979-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
18980-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
18981-
dependencies:
18982-
emoji-regex "^8.0.0"
18983-
is-fullwidth-code-point "^3.0.0"
18984-
strip-ansi "^6.0.1"
18985-
18986-
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
18972+
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1898718973
version "4.2.3"
1898818974
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1898918975
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -19101,14 +19087,7 @@ stringify-object@^3.3.0:
1910119087
is-obj "^1.0.1"
1910219088
is-regexp "^1.0.0"
1910319089

19104-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
19105-
version "6.0.1"
19106-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
19107-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
19108-
dependencies:
19109-
ansi-regex "^5.0.1"
19110-
19111-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
19090+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1911219091
version "6.0.1"
1911319092
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1911419093
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -20858,16 +20837,7 @@ workbox-window@6.6.1:
2085820837
"@types/trusted-types" "^2.0.2"
2085920838
workbox-core "6.6.1"
2086020839

20861-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
20862-
version "7.0.0"
20863-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
20864-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
20865-
dependencies:
20866-
ansi-styles "^4.0.0"
20867-
string-width "^4.1.0"
20868-
strip-ansi "^6.0.0"
20869-
20870-
wrap-ansi@^7.0.0:
20840+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
2087120841
version "7.0.0"
2087220842
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
2087320843
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)