@ledgerhq/hw-app-xrp 6.31.3-nightly.0 → 6.32.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +9 -4
- package/package.json +3 -3
- package/tests/Xrp.test.ts +11 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/hw-app-xrp@6.
|
|
2
|
+
> @ledgerhq/hw-app-xrp@6.32.0-next.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/hw-app-xrp
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# @ledgerhq/hw-app-xrp
|
|
2
2
|
|
|
3
|
-
## 6.
|
|
3
|
+
## 6.32.0-next.1
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
7
|
+
- [#10551](https://github.com/LedgerHQ/ledger-live/pull/10551) [`99385c9`](https://github.com/LedgerHQ/ledger-live/commit/99385c9a7ecac9328ffa29c039e8c0cf2317c431) Thanks [@Wozacosta](https://github.com/Wozacosta)! - fix: revert generic bridge xrp
|
|
8
|
+
|
|
9
|
+
## 6.32.0-next.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#10217](https://github.com/LedgerHQ/ledger-live/pull/10217) [`e04d215`](https://github.com/LedgerHQ/ledger-live/commit/e04d21576919fa21cb3ab6e1c4e8e50fb6c17eca) Thanks [@Wozacosta](https://github.com/Wozacosta)! - feat: update transactionintent generic types + remove xrp bridge and introduce the generic alpaca bridge in LLC
|
|
9
14
|
|
|
10
15
|
## 6.31.2
|
|
11
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/hw-app-xrp",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.32.0-next.1",
|
|
4
4
|
"description": "Ledger Hardware Wallet Ripple Application API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"bip32-path": "0.4.2",
|
|
31
|
-
"@ledgerhq/hw-transport": "^6.31.
|
|
31
|
+
"@ledgerhq/hw-transport": "^6.31.6"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/jest": "^29.5.10",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"source-map-support": "^0.5.21",
|
|
40
40
|
"ts-jest": "^29.1.1",
|
|
41
41
|
"ts-node": "^10.4.0",
|
|
42
|
-
"@ledgerhq/hw-transport-mocker": "^6.29.
|
|
42
|
+
"@ledgerhq/hw-transport-mocker": "^6.29.6"
|
|
43
43
|
},
|
|
44
44
|
"gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",
|
|
45
45
|
"scripts": {
|
package/tests/Xrp.test.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
openTransportReplayer,
|
|
3
|
+
RecordStore,
|
|
4
|
+
} from "@ledgerhq/hw-transport-mocker";
|
|
2
5
|
import Xrp from "../src/Xrp";
|
|
3
6
|
|
|
4
7
|
test("getAppConfiguration", async () => {
|
|
@@ -6,7 +9,7 @@ test("getAppConfiguration", async () => {
|
|
|
6
9
|
RecordStore.fromString(`
|
|
7
10
|
=> e006000000
|
|
8
11
|
<= 000100069000
|
|
9
|
-
`)
|
|
12
|
+
`)
|
|
10
13
|
);
|
|
11
14
|
const xrp = new Xrp(transport);
|
|
12
15
|
const result = await xrp.getAppConfiguration();
|
|
@@ -18,13 +21,14 @@ test("getPublicKey", async () => {
|
|
|
18
21
|
RecordStore.fromString(`
|
|
19
22
|
=> e002004015058000002c80000090800000000000000000000000
|
|
20
23
|
<= 21031d68bc1a142e6766b2bdfb006ccfe135ef2e0e2e94abb5cf5c9ab6104776fbae227248734d4751456b564e4a6d70475773385855426f54426941416277785a4e3576339000
|
|
21
|
-
`)
|
|
24
|
+
`)
|
|
22
25
|
);
|
|
23
26
|
const xrp = new Xrp(transport);
|
|
24
27
|
const result = await xrp.getAddress("44'/144'/0'/0/0");
|
|
25
28
|
expect(result).toEqual({
|
|
26
29
|
address: "rHsMGQEkVNJmpGWs8XUBoTBiAAbwxZN5v3",
|
|
27
|
-
publicKey:
|
|
30
|
+
publicKey:
|
|
31
|
+
"031d68bc1a142e6766b2bdfb006ccfe135ef2e0e2e94abb5cf5c9ab6104776fbae",
|
|
28
32
|
});
|
|
29
33
|
});
|
|
30
34
|
|
|
@@ -33,14 +37,14 @@ test("signTransaction", async () => {
|
|
|
33
37
|
RecordStore.fromString(`
|
|
34
38
|
=> e004004083058000002c8000009080000000000000000000000012000022800000002400000002614000000001315d3468400000000000000c73210324e5f600b52bb3d9246d49c4ab1722ba7f32b7a3e4f9f2b8a1a28b9118cc36c48114f31b152151b6f42c1d61fe4139d34b424c8647d183142ecfc1831f6e979c6da907e88b1cad602db59e2f
|
|
35
39
|
<= 3044022041673ea6da17205b9b0d279436b508cd092b686bf5b921ddf4fbf38879e4950402207510cebf32019f5d994102bfe6570bb2f5d0b931902ad6d839c5b4552a492cb99000
|
|
36
|
-
`)
|
|
40
|
+
`)
|
|
37
41
|
);
|
|
38
42
|
const xrp = new Xrp(transport);
|
|
39
43
|
const result = await xrp.signTransaction(
|
|
40
44
|
"44'/144'/0'/0/0",
|
|
41
|
-
"12000022800000002400000002614000000001315D3468400000000000000C73210324E5F600B52BB3D9246D49C4AB1722BA7F32B7A3E4F9F2B8A1A28B9118CC36C48114F31B152151B6F42C1D61FE4139D34B424C8647D183142ECFC1831F6E979C6DA907E88B1CAD602DB59E2F"
|
|
45
|
+
"12000022800000002400000002614000000001315D3468400000000000000C73210324E5F600B52BB3D9246D49C4AB1722BA7F32B7A3E4F9F2B8A1A28B9118CC36C48114F31B152151B6F42C1D61FE4139D34B424C8647D183142ECFC1831F6E979C6DA907E88B1CAD602DB59E2F"
|
|
42
46
|
);
|
|
43
47
|
expect(result).toEqual(
|
|
44
|
-
"3044022041673ea6da17205b9b0d279436b508cd092b686bf5b921ddf4fbf38879e4950402207510cebf32019f5d994102bfe6570bb2f5d0b931902ad6d839c5b4552a492cb9"
|
|
48
|
+
"3044022041673ea6da17205b9b0d279436b508cd092b686bf5b921ddf4fbf38879e4950402207510cebf32019f5d994102bfe6570bb2f5d0b931902ad6d839c5b4552a492cb9"
|
|
45
49
|
);
|
|
46
50
|
});
|