@ledgerhq/hw-app-xrp 6.31.2 → 6.31.3-nightly.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @ledgerhq/hw-app-xrp
2
2
 
3
+ ## 6.31.3-nightly.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @ledgerhq/hw-transport@6.31.7-nightly.0
9
+
3
10
  ## 6.31.2
4
11
 
5
12
  ### Patch Changes
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: "../" }], "json-summary", "text"],
13
+ coverageReporters: ["json", ["lcov", { projectRoot: "../../../../" }], "json-summary", "text"],
14
14
  reporters: [
15
15
  "default",
16
16
  [
17
17
  "jest-sonar",
18
18
  {
19
- outputName: "hw-app-xrp-sonar-executionTests-report.xml",
19
+ outputName: "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.3-nightly.0",
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.6"
31
+ "@ledgerhq/hw-transport": "^6.31.7-nightly.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/jest": "^29.5.10",
@@ -39,14 +39,13 @@
39
39
  "source-map-support": "^0.5.21",
40
40
  "ts-jest": "^29.1.1",
41
41
  "ts-node": "^10.4.0",
42
- "jest-sonar": "0.2.16",
43
- "@ledgerhq/hw-transport-mocker": "^6.29.6"
42
+ "@ledgerhq/hw-transport-mocker": "^6.29.7-nightly.0"
44
43
  },
45
44
  "gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",
46
45
  "scripts": {
47
46
  "clean": "rimraf lib lib-es",
48
47
  "build": "tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es",
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",
48
+ "coverage": "jest --coverage --passWithNoTests && mv coverage/coverage-final.json coverage/coverage-hw-app-xrp.json",
50
49
  "prewatch": "pnpm build",
51
50
  "watch": "tsc --watch",
52
51
  "watch:es": "tsc --watch -m esnext --moduleResolution bundler --outDir lib-es",
package/tests/Xrp.test.ts CHANGED
@@ -1,7 +1,4 @@
1
- import {
2
- openTransportReplayer,
3
- RecordStore,
4
- } from "@ledgerhq/hw-transport-mocker";
1
+ import { openTransportReplayer, RecordStore } from "@ledgerhq/hw-transport-mocker";
5
2
  import Xrp from "../src/Xrp";
6
3
 
7
4
  test("getAppConfiguration", async () => {
@@ -9,7 +6,7 @@ test("getAppConfiguration", async () => {
9
6
  RecordStore.fromString(`
10
7
  => e006000000
11
8
  <= 000100069000
12
- `)
9
+ `),
13
10
  );
14
11
  const xrp = new Xrp(transport);
15
12
  const result = await xrp.getAppConfiguration();
@@ -21,14 +18,13 @@ test("getPublicKey", async () => {
21
18
  RecordStore.fromString(`
22
19
  => e002004015058000002c80000090800000000000000000000000
23
20
  <= 21031d68bc1a142e6766b2bdfb006ccfe135ef2e0e2e94abb5cf5c9ab6104776fbae227248734d4751456b564e4a6d70475773385855426f54426941416277785a4e3576339000
24
- `)
21
+ `),
25
22
  );
26
23
  const xrp = new Xrp(transport);
27
24
  const result = await xrp.getAddress("44'/144'/0'/0/0");
28
25
  expect(result).toEqual({
29
26
  address: "rHsMGQEkVNJmpGWs8XUBoTBiAAbwxZN5v3",
30
- publicKey:
31
- "031d68bc1a142e6766b2bdfb006ccfe135ef2e0e2e94abb5cf5c9ab6104776fbae",
27
+ publicKey: "031d68bc1a142e6766b2bdfb006ccfe135ef2e0e2e94abb5cf5c9ab6104776fbae",
32
28
  });
33
29
  });
34
30
 
@@ -37,14 +33,14 @@ test("signTransaction", async () => {
37
33
  RecordStore.fromString(`
38
34
  => e004004083058000002c8000009080000000000000000000000012000022800000002400000002614000000001315d3468400000000000000c73210324e5f600b52bb3d9246d49c4ab1722ba7f32b7a3e4f9f2b8a1a28b9118cc36c48114f31b152151b6f42c1d61fe4139d34b424c8647d183142ecfc1831f6e979c6da907e88b1cad602db59e2f
39
35
  <= 3044022041673ea6da17205b9b0d279436b508cd092b686bf5b921ddf4fbf38879e4950402207510cebf32019f5d994102bfe6570bb2f5d0b931902ad6d839c5b4552a492cb99000
40
- `)
36
+ `),
41
37
  );
42
38
  const xrp = new Xrp(transport);
43
39
  const result = await xrp.signTransaction(
44
40
  "44'/144'/0'/0/0",
45
- "12000022800000002400000002614000000001315D3468400000000000000C73210324E5F600B52BB3D9246D49C4AB1722BA7F32B7A3E4F9F2B8A1A28B9118CC36C48114F31B152151B6F42C1D61FE4139D34B424C8647D183142ECFC1831F6E979C6DA907E88B1CAD602DB59E2F"
41
+ "12000022800000002400000002614000000001315D3468400000000000000C73210324E5F600B52BB3D9246D49C4AB1722BA7F32B7A3E4F9F2B8A1A28B9118CC36C48114F31B152151B6F42C1D61FE4139D34B424C8647D183142ECFC1831F6E979C6DA907E88B1CAD602DB59E2F",
46
42
  );
47
43
  expect(result).toEqual(
48
- "3044022041673ea6da17205b9b0d279436b508cd092b686bf5b921ddf4fbf38879e4950402207510cebf32019f5d994102bfe6570bb2f5d0b931902ad6d839c5b4552a492cb9"
44
+ "3044022041673ea6da17205b9b0d279436b508cd092b686bf5b921ddf4fbf38879e4950402207510cebf32019f5d994102bfe6570bb2f5d0b931902ad6d839c5b4552a492cb9",
49
45
  );
50
46
  });