@ledgerhq/wallet-api-simulator 0.9.0 → 0.10.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.
Files changed (77) hide show
  1. package/lib/package.json +42 -0
  2. package/lib/{helpers.d.ts → src/helpers.d.ts} +0 -0
  3. package/lib/src/helpers.d.ts.map +1 -0
  4. package/lib/{helpers.js → src/helpers.js} +0 -0
  5. package/lib/{index.d.ts → src/index.d.ts} +0 -0
  6. package/lib/src/index.d.ts.map +1 -0
  7. package/lib/{index.js → src/index.js} +0 -0
  8. package/lib/{profiles → src/profiles}/device/index.d.ts +0 -0
  9. package/lib/src/profiles/device/index.d.ts.map +1 -0
  10. package/lib/{profiles → src/profiles}/device/index.js +0 -0
  11. package/lib/{profiles → src/profiles}/index.d.ts +0 -0
  12. package/lib/src/profiles/index.d.ts.map +1 -0
  13. package/lib/{profiles → src/profiles}/index.js +0 -0
  14. package/lib/{profiles → src/profiles}/standard/accounts.json +0 -0
  15. package/lib/{profiles → src/profiles}/standard/currencies.json +0 -0
  16. package/lib/{profiles → src/profiles}/standard/index.d.ts +0 -0
  17. package/lib/src/profiles/standard/index.d.ts.map +1 -0
  18. package/lib/{profiles → src/profiles}/standard/index.js +31 -0
  19. package/lib/{test-run.d.ts → src/test-run.d.ts} +0 -0
  20. package/lib/{test-run.d.ts.map → src/test-run.d.ts.map} +1 -1
  21. package/lib/{test-run.js → src/test-run.js} +6 -5
  22. package/lib/{transport.d.ts → src/transport.d.ts} +0 -0
  23. package/lib/src/transport.d.ts.map +1 -0
  24. package/lib/{transport.js → src/transport.js} +1 -1
  25. package/lib/{types.d.ts → src/types.d.ts} +2 -1
  26. package/lib/src/types.d.ts.map +1 -0
  27. package/lib/{types.js → src/types.js} +0 -0
  28. package/lib/{ws.d.ts → src/ws.d.ts} +0 -0
  29. package/lib/src/ws.d.ts.map +1 -0
  30. package/lib/{ws.js → src/ws.js} +0 -0
  31. package/lib-es/package.json +42 -0
  32. package/lib-es/{helpers.d.ts → src/helpers.d.ts} +0 -0
  33. package/lib-es/src/helpers.d.ts.map +1 -0
  34. package/lib-es/{helpers.js → src/helpers.js} +0 -0
  35. package/lib-es/{index.d.ts → src/index.d.ts} +0 -0
  36. package/lib-es/src/index.d.ts.map +1 -0
  37. package/lib-es/{index.js → src/index.js} +0 -0
  38. package/lib-es/{profiles → src/profiles}/device/index.d.ts +0 -0
  39. package/lib-es/src/profiles/device/index.d.ts.map +1 -0
  40. package/lib-es/{profiles → src/profiles}/device/index.js +0 -0
  41. package/lib-es/{profiles → src/profiles}/index.d.ts +0 -0
  42. package/lib-es/src/profiles/index.d.ts.map +1 -0
  43. package/lib-es/{profiles → src/profiles}/index.js +0 -0
  44. package/lib-es/{profiles → src/profiles}/standard/accounts.json +0 -0
  45. package/lib-es/{profiles → src/profiles}/standard/currencies.json +0 -0
  46. package/lib-es/{profiles → src/profiles}/standard/index.d.ts +0 -0
  47. package/lib-es/src/profiles/standard/index.d.ts.map +1 -0
  48. package/lib-es/{profiles → src/profiles}/standard/index.js +31 -0
  49. package/lib-es/{test-run.d.ts → src/test-run.d.ts} +0 -0
  50. package/lib-es/{test-run.d.ts.map → src/test-run.d.ts.map} +1 -1
  51. package/lib-es/{test-run.js → src/test-run.js} +6 -5
  52. package/lib-es/{transport.d.ts → src/transport.d.ts} +0 -0
  53. package/lib-es/src/transport.d.ts.map +1 -0
  54. package/lib-es/{transport.js → src/transport.js} +1 -1
  55. package/lib-es/{types.d.ts → src/types.d.ts} +2 -1
  56. package/lib-es/src/types.d.ts.map +1 -0
  57. package/lib-es/{types.js → src/types.js} +0 -0
  58. package/lib-es/{ws.d.ts → src/ws.d.ts} +0 -0
  59. package/lib-es/src/ws.d.ts.map +1 -0
  60. package/lib-es/{ws.js → src/ws.js} +0 -0
  61. package/package.json +4 -4
  62. package/lib/helpers.d.ts.map +0 -1
  63. package/lib/index.d.ts.map +0 -1
  64. package/lib/profiles/device/index.d.ts.map +0 -1
  65. package/lib/profiles/index.d.ts.map +0 -1
  66. package/lib/profiles/standard/index.d.ts.map +0 -1
  67. package/lib/transport.d.ts.map +0 -1
  68. package/lib/types.d.ts.map +0 -1
  69. package/lib/ws.d.ts.map +0 -1
  70. package/lib-es/helpers.d.ts.map +0 -1
  71. package/lib-es/index.d.ts.map +0 -1
  72. package/lib-es/profiles/device/index.d.ts.map +0 -1
  73. package/lib-es/profiles/index.d.ts.map +0 -1
  74. package/lib-es/profiles/standard/index.d.ts.map +0 -1
  75. package/lib-es/transport.d.ts.map +0 -1
  76. package/lib-es/types.d.ts.map +0 -1
  77. package/lib-es/ws.d.ts.map +0 -1
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@ledgerhq/wallet-api-simulator",
3
+ "version": "0.10.0",
4
+ "license": "MIT",
5
+ "main": "lib/index.js",
6
+ "module": "lib-es/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "/lib",
10
+ "/lib-es"
11
+ ],
12
+ "scripts": {
13
+ "format:check": "prettier --check \"src\"",
14
+ "format:fix": "prettier --write \"src\"",
15
+ "lint": "eslint --cache --ext .ts \"src\"",
16
+ "lint:fix": "eslint --cache --fix --ext .ts \"src\"",
17
+ "dev": "tsc -p prod.tsconfig.json --watch",
18
+ "build": "rm -rf lib/* lib-es/* && tsc -p prod.tsconfig.json && tsc -p prod-esm.tsconfig.json",
19
+ "test": "jest"
20
+ },
21
+ "devDependencies": {
22
+ "@tsconfig/node18-strictest": "^1.0.0",
23
+ "@types/jest": "^29.2.1",
24
+ "@types/node": "^18.11.8",
25
+ "@types/ws": "^8.5.3",
26
+ "eslint": "^8.26.0",
27
+ "jest": "^29.1.2",
28
+ "jest-environment-jsdom": "^29.2.2",
29
+ "jest-shared-config": "workspace:*",
30
+ "ts-jest": "^29.0.3",
31
+ "ts-node": "^10.9.1",
32
+ "typescript": "^4.8.4"
33
+ },
34
+ "dependencies": {
35
+ "@ledgerhq/hw-transport-http": "^6.27.7",
36
+ "@ledgerhq/wallet-api-client": "workspace:*",
37
+ "@ledgerhq/wallet-api-core": "workspace:*",
38
+ "@ledgerhq/wallet-api-server": "workspace:*",
39
+ "rxjs": "^7.8.0",
40
+ "ws": "^8.10.0"
41
+ }
42
+ }
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,YAAY,CAC1B,cAAc,EAAE,eAAe,EAC/B,OAAO,EAAE,gBAAgB,QAe1B"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/profiles/device/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AASpD,eAAO,MAAM,aAAa,EAAE,gBA8C3B,CAAC"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/profiles/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/profiles/standard/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAWpD,eAAO,MAAM,eAAe,EAAE,gBA8E7B,CAAC"}
@@ -6,11 +6,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.standardProfile = void 0;
7
7
  const wallet_api_core_1 = require("@ledgerhq/wallet-api-core");
8
8
  const rxjs_1 = require("rxjs");
9
+ const package_json_1 = __importDefault(require("../../../package.json"));
9
10
  const accounts_json_1 = __importDefault(require("./accounts.json"));
10
11
  const currencies_json_1 = __importDefault(require("./currencies.json"));
11
12
  const allCurrencies = currencies_json_1.default;
12
13
  const allAccounts = accounts_json_1.default.map(wallet_api_core_1.deserializeAccount);
14
+ const storage = {};
13
15
  exports.standardProfile = {
16
+ config: {
17
+ appId: "standard-simulator",
18
+ userId: "standard-profile-user",
19
+ tracking: false,
20
+ wallet: {
21
+ name: "wallet-api-simulator",
22
+ version: package_json_1.default.version,
23
+ },
24
+ },
14
25
  permissions: {
15
26
  currencyIds: ["ethereum", "bitcoin"],
16
27
  methodIds: [
@@ -22,6 +33,10 @@ exports.standardProfile = {
22
33
  "message.sign",
23
34
  "account.receive",
24
35
  "wallet.capabilities",
36
+ "storage.set",
37
+ "storage.get",
38
+ "wallet.userId",
39
+ "wallet.info",
25
40
  "bitcoin.getXPub",
26
41
  ],
27
42
  },
@@ -47,6 +62,22 @@ exports.standardProfile = {
47
62
  "account.receive": () => {
48
63
  return "eth address";
49
64
  },
65
+ "storage.set": ({ value, key, storeId }) => {
66
+ if (!storage[storeId]) {
67
+ storage[storeId] = {};
68
+ }
69
+ const store = storage[storeId];
70
+ if (store) {
71
+ store[key] = value;
72
+ }
73
+ },
74
+ "storage.get": ({ key, storeId }) => {
75
+ const store = storage[storeId];
76
+ if (!store) {
77
+ return undefined;
78
+ }
79
+ return store[key];
80
+ },
50
81
  "bitcoin.getXPub": () => {
51
82
  return "xpub";
52
83
  },
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../src/test-run.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../../src/test-run.ts"],"names":[],"mappings":""}
@@ -8,11 +8,12 @@ async function main() {
8
8
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
9
  const transport = (0, transport_1.getSimulatorTransport)(profiles_1.profiles.STANDARD);
10
10
  const client = new WalletAPIClient_1.WalletAPIClient(transport);
11
- await client.listAccounts();
12
- await client.listCurrencies();
13
- await client.requestAccount();
14
- const capabilities = await client.capabilities();
15
- console.log(capabilities);
11
+ const userId = await client.wallet.userId();
12
+ const info = await client.wallet.info();
13
+ console.log({
14
+ userId,
15
+ info,
16
+ });
16
17
  /* transport.send(
17
18
  JSON.stringify({
18
19
  id: "49f2b5e9-9e77-495c-8add-8542127b4a50",
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,CA4B1E"}
@@ -23,7 +23,7 @@ function getSimulatorTransport(profile) {
23
23
  }
24
24
  },
25
25
  };
26
- const serverInstance = new wallet_api_server_1.WalletAPIServer(serverTransport);
26
+ const serverInstance = new wallet_api_server_1.WalletAPIServer(serverTransport, profile.config);
27
27
  (0, helpers_1.applyProfile)(serverInstance, profile);
28
28
  return clientTransport;
29
29
  }
@@ -1,6 +1,7 @@
1
1
  import type { Account, Currency, Permission } from "@ledgerhq/wallet-api-core";
2
- import type { WalletHandlers } from "@ledgerhq/wallet-api-server";
2
+ import type { ServerConfig, WalletHandlers } from "@ledgerhq/wallet-api-server";
3
3
  export declare type SimulatorProfile = {
4
+ config: ServerConfig;
4
5
  permissions: Permission;
5
6
  accounts: Account[];
6
7
  currencies: Currency[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEhF,oBAAY,gBAAgB,GAAG;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAClC,CAAC"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/ws.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@ledgerhq/wallet-api-simulator",
3
+ "version": "0.10.0",
4
+ "license": "MIT",
5
+ "main": "lib/index.js",
6
+ "module": "lib-es/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "/lib",
10
+ "/lib-es"
11
+ ],
12
+ "scripts": {
13
+ "format:check": "prettier --check \"src\"",
14
+ "format:fix": "prettier --write \"src\"",
15
+ "lint": "eslint --cache --ext .ts \"src\"",
16
+ "lint:fix": "eslint --cache --fix --ext .ts \"src\"",
17
+ "dev": "tsc -p prod.tsconfig.json --watch",
18
+ "build": "rm -rf lib/* lib-es/* && tsc -p prod.tsconfig.json && tsc -p prod-esm.tsconfig.json",
19
+ "test": "jest"
20
+ },
21
+ "devDependencies": {
22
+ "@tsconfig/node18-strictest": "^1.0.0",
23
+ "@types/jest": "^29.2.1",
24
+ "@types/node": "^18.11.8",
25
+ "@types/ws": "^8.5.3",
26
+ "eslint": "^8.26.0",
27
+ "jest": "^29.1.2",
28
+ "jest-environment-jsdom": "^29.2.2",
29
+ "jest-shared-config": "workspace:*",
30
+ "ts-jest": "^29.0.3",
31
+ "ts-node": "^10.9.1",
32
+ "typescript": "^4.8.4"
33
+ },
34
+ "dependencies": {
35
+ "@ledgerhq/hw-transport-http": "^6.27.7",
36
+ "@ledgerhq/wallet-api-client": "workspace:*",
37
+ "@ledgerhq/wallet-api-core": "workspace:*",
38
+ "@ledgerhq/wallet-api-server": "workspace:*",
39
+ "rxjs": "^7.8.0",
40
+ "ws": "^8.10.0"
41
+ }
42
+ }
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,YAAY,CAC1B,cAAc,EAAE,eAAe,EAC/B,OAAO,EAAE,gBAAgB,QAe1B"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/profiles/device/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AASpD,eAAO,MAAM,aAAa,EAAE,gBA8C3B,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/profiles/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/profiles/standard/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAWpD,eAAO,MAAM,eAAe,EAAE,gBA8E7B,CAAC"}
@@ -1,10 +1,21 @@
1
1
  import { deserializeAccount, } from "@ledgerhq/wallet-api-core";
2
2
  import { firstValueFrom } from "rxjs";
3
+ import packageJson from "../../../package.json";
3
4
  import rawAccounts from "./accounts.json";
4
5
  import rawCurrencies from "./currencies.json";
5
6
  const allCurrencies = rawCurrencies;
6
7
  const allAccounts = rawAccounts.map(deserializeAccount);
8
+ const storage = {};
7
9
  export const standardProfile = {
10
+ config: {
11
+ appId: "standard-simulator",
12
+ userId: "standard-profile-user",
13
+ tracking: false,
14
+ wallet: {
15
+ name: "wallet-api-simulator",
16
+ version: packageJson.version,
17
+ },
18
+ },
8
19
  permissions: {
9
20
  currencyIds: ["ethereum", "bitcoin"],
10
21
  methodIds: [
@@ -16,6 +27,10 @@ export const standardProfile = {
16
27
  "message.sign",
17
28
  "account.receive",
18
29
  "wallet.capabilities",
30
+ "storage.set",
31
+ "storage.get",
32
+ "wallet.userId",
33
+ "wallet.info",
19
34
  "bitcoin.getXPub",
20
35
  ],
21
36
  },
@@ -41,6 +56,22 @@ export const standardProfile = {
41
56
  "account.receive": () => {
42
57
  return "eth address";
43
58
  },
59
+ "storage.set": ({ value, key, storeId }) => {
60
+ if (!storage[storeId]) {
61
+ storage[storeId] = {};
62
+ }
63
+ const store = storage[storeId];
64
+ if (store) {
65
+ store[key] = value;
66
+ }
67
+ },
68
+ "storage.get": ({ key, storeId }) => {
69
+ const store = storage[storeId];
70
+ if (!store) {
71
+ return undefined;
72
+ }
73
+ return store[key];
74
+ },
44
75
  "bitcoin.getXPub": () => {
45
76
  return "xpub";
46
77
  },
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../src/test-run.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../../src/test-run.ts"],"names":[],"mappings":""}
@@ -6,11 +6,12 @@ async function main() {
6
6
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
7
  const transport = getSimulatorTransport(profiles.STANDARD);
8
8
  const client = new WalletAPIClient(transport);
9
- await client.listAccounts();
10
- await client.listCurrencies();
11
- await client.requestAccount();
12
- const capabilities = await client.capabilities();
13
- console.log(capabilities);
9
+ const userId = await client.wallet.userId();
10
+ const info = await client.wallet.info();
11
+ console.log({
12
+ userId,
13
+ info,
14
+ });
14
15
  /* transport.send(
15
16
  JSON.stringify({
16
17
  id: "49f2b5e9-9e77-495c-8add-8542127b4a50",
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,CA4B1E"}
@@ -20,7 +20,7 @@ export function getSimulatorTransport(profile) {
20
20
  }
21
21
  },
22
22
  };
23
- const serverInstance = new WalletAPIServer(serverTransport);
23
+ const serverInstance = new WalletAPIServer(serverTransport, profile.config);
24
24
  applyProfile(serverInstance, profile);
25
25
  return clientTransport;
26
26
  }
@@ -1,6 +1,7 @@
1
1
  import type { Account, Currency, Permission } from "@ledgerhq/wallet-api-core";
2
- import type { WalletHandlers } from "@ledgerhq/wallet-api-server";
2
+ import type { ServerConfig, WalletHandlers } from "@ledgerhq/wallet-api-server";
3
3
  export declare type SimulatorProfile = {
4
+ config: ServerConfig;
4
5
  permissions: Permission;
5
6
  accounts: Account[];
6
7
  currencies: Currency[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEhF,oBAAY,gBAAgB,GAAG;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAClC,CAAC"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/ws.ts"],"names":[],"mappings":""}
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/wallet-api-simulator",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-es/index.js",
@@ -26,9 +26,9 @@
26
26
  "@ledgerhq/hw-transport-http": "^6.27.7",
27
27
  "rxjs": "^7.8.0",
28
28
  "ws": "^8.10.0",
29
- "@ledgerhq/wallet-api-client": "0.11.0",
30
- "@ledgerhq/wallet-api-core": "0.10.0",
31
- "@ledgerhq/wallet-api-server": "0.10.0"
29
+ "@ledgerhq/wallet-api-client": "0.12.0",
30
+ "@ledgerhq/wallet-api-core": "0.12.0",
31
+ "@ledgerhq/wallet-api-server": "0.11.0"
32
32
  },
33
33
  "scripts": {
34
34
  "format:check": "prettier --check \"src\"",
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,YAAY,CAC1B,cAAc,EAAE,eAAe,EAC/B,OAAO,EAAE,gBAAgB,QAe1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/profiles/device/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AASpD,eAAO,MAAM,aAAa,EAAE,gBA8C3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profiles/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/profiles/standard/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AASpD,eAAO,MAAM,eAAe,EAAE,gBA6C7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,CA2B1E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,oBAAY,gBAAgB,GAAG;IAC7B,WAAW,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAClC,CAAC"}
package/lib/ws.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,YAAY,CAC1B,cAAc,EAAE,eAAe,EAC/B,OAAO,EAAE,gBAAgB,QAe1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/profiles/device/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AASpD,eAAO,MAAM,aAAa,EAAE,gBA8C3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profiles/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/profiles/standard/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AASpD,eAAO,MAAM,eAAe,EAAE,gBA6C7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,CA2B1E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,oBAAY,gBAAgB,GAAG;IAC7B,WAAW,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAClC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":""}