@ledgerhq/wallet-api-simulator 0.6.2 → 0.6.3

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.
@@ -1 +1 @@
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,gBAuC7B,CAAC"}
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,gBAwC7B,CAAC"}
@@ -21,6 +21,7 @@ exports.standardProfile = {
21
21
  "transaction.sign",
22
22
  "message.sign",
23
23
  "account.receive",
24
+ "wallet.capabilities",
24
25
  ],
25
26
  },
26
27
  accounts: allAccounts,
package/lib/test-run.js CHANGED
@@ -8,7 +8,11 @@ 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({ currencyIds: ["ethereum"] });
11
+ await client.listAccounts();
12
+ await client.listCurrencies();
13
+ await client.requestAccount();
14
+ const capabilities = await client.capabilities();
15
+ console.log(capabilities);
12
16
  /* transport.send(
13
17
  JSON.stringify({
14
18
  id: "49f2b5e9-9e77-495c-8add-8542127b4a50",
@@ -1 +1 @@
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,gBAuC7B,CAAC"}
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,gBAwC7B,CAAC"}
@@ -15,6 +15,7 @@ export const standardProfile = {
15
15
  "transaction.sign",
16
16
  "message.sign",
17
17
  "account.receive",
18
+ "wallet.capabilities",
18
19
  ],
19
20
  },
20
21
  accounts: allAccounts,
@@ -6,7 +6,11 @@ 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({ currencyIds: ["ethereum"] });
9
+ await client.listAccounts();
10
+ await client.listCurrencies();
11
+ await client.requestAccount();
12
+ const capabilities = await client.capabilities();
13
+ console.log(capabilities);
10
14
  /* transport.send(
11
15
  JSON.stringify({
12
16
  id: "49f2b5e9-9e77-495c-8add-8542127b4a50",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/wallet-api-simulator",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-es/index.js",
@@ -17,17 +17,17 @@
17
17
  "eslint": "^8.26.0",
18
18
  "jest": "^29.1.2",
19
19
  "jest-environment-jsdom": "^29.2.2",
20
- "jest-shared-config": "0.1.0",
21
20
  "ts-jest": "^29.0.3",
22
21
  "ts-node": "^10.9.1",
23
- "typescript": "^4.8.4"
22
+ "typescript": "^4.8.4",
23
+ "jest-shared-config": "0.1.0"
24
24
  },
25
25
  "dependencies": {
26
- "@ledgerhq/wallet-api-client": "0.7.1",
27
- "@ledgerhq/wallet-api-core": "0.7.0",
28
- "@ledgerhq/wallet-api-server": "0.7.1",
29
26
  "rxjs": "^7.5.7",
30
- "ws": "^8.10.0"
27
+ "ws": "^8.10.0",
28
+ "@ledgerhq/wallet-api-client": "0.8.0",
29
+ "@ledgerhq/wallet-api-core": "0.8.0",
30
+ "@ledgerhq/wallet-api-server": "0.8.0"
31
31
  },
32
32
  "scripts": {
33
33
  "format:check": "prettier --check \"src\"",