@ledgerhq/hw-app-xrp 6.32.0-next.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 +6 -0
- package/package.json +1 -1
- 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,5 +1,11 @@
|
|
|
1
1
|
# @ledgerhq/hw-app-xrp
|
|
2
2
|
|
|
3
|
+
## 6.32.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
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
|
+
|
|
3
9
|
## 6.32.0-next.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
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
|
});
|