@ledgerhq/hw-app-xrp 6.31.2-nightly.0 → 6.31.2
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 +17 -2
- package/jest.config.ts +2 -2
- package/package.json +5 -4
- 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.31.
|
|
2
|
+
> @ledgerhq/hw-app-xrp@6.31.2 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,10 +1,25 @@
|
|
|
1
1
|
# @ledgerhq/hw-app-xrp
|
|
2
2
|
|
|
3
|
-
## 6.31.2
|
|
3
|
+
## 6.31.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @ledgerhq/hw-transport@6.31.6
|
|
9
|
+
|
|
10
|
+
## 6.31.2-next.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @ledgerhq/hw-transport@6.31.6-next.1
|
|
16
|
+
|
|
17
|
+
## 6.31.2-next.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies []:
|
|
22
|
+
- @ledgerhq/hw-transport@6.31.6-next.0
|
|
8
23
|
|
|
9
24
|
## 6.31.1
|
|
10
25
|
|
package/jest.config.ts
CHANGED
|
@@ -10,13 +10,13 @@ export default {
|
|
|
10
10
|
"!src/**/__tests__/**",
|
|
11
11
|
"!tests/**",
|
|
12
12
|
],
|
|
13
|
-
coverageReporters: ["json", ["lcov", { projectRoot: "
|
|
13
|
+
coverageReporters: ["json", ["lcov", { projectRoot: "../" }], "json-summary", "text"],
|
|
14
14
|
reporters: [
|
|
15
15
|
"default",
|
|
16
16
|
[
|
|
17
17
|
"jest-sonar",
|
|
18
18
|
{
|
|
19
|
-
outputName: "sonar-executionTests-report.xml",
|
|
19
|
+
outputName: "hw-app-xrp-sonar-executionTests-report.xml",
|
|
20
20
|
reportedFilePath: "absolute",
|
|
21
21
|
},
|
|
22
22
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/hw-app-xrp",
|
|
3
|
-
"version": "6.31.2
|
|
3
|
+
"version": "6.31.2",
|
|
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,13 +39,14 @@
|
|
|
39
39
|
"source-map-support": "^0.5.21",
|
|
40
40
|
"ts-jest": "^29.1.1",
|
|
41
41
|
"ts-node": "^10.4.0",
|
|
42
|
-
"
|
|
42
|
+
"jest-sonar": "0.2.16",
|
|
43
|
+
"@ledgerhq/hw-transport-mocker": "^6.29.6"
|
|
43
44
|
},
|
|
44
45
|
"gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",
|
|
45
46
|
"scripts": {
|
|
46
47
|
"clean": "rimraf lib lib-es",
|
|
47
48
|
"build": "tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es",
|
|
48
|
-
"coverage": "jest --coverage --passWithNoTests && mv coverage/coverage-final.json coverage/coverage-hw-app-xrp.json",
|
|
49
|
+
"coverage": "jest --coverage --passWithNoTests && mv coverage/coverage-final.json coverage/coverage-hw-app-xrp.json && mv coverage/lcov.info coverage/hw-app-xrp-lcov.info",
|
|
49
50
|
"prewatch": "pnpm build",
|
|
50
51
|
"watch": "tsc --watch",
|
|
51
52
|
"watch:es": "tsc --watch -m esnext --moduleResolution bundler --outDir lib-es",
|
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
|
});
|