Skip to content

Commit 293f784

Browse files
Merge branch 'LedgerHQ:main' into add-manifest-info-in-useAccounts
2 parents 20678c5 + 4356a0a commit 293f784

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+238
-93
lines changed

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
root: true,
3-
// This tells ESLint to load the config from the package `eslint-config-custom`
4-
extends: ["custom"],
3+
// This tells ESLint to load the config from the package `@ledgerhq/eslint-config-custom`
4+
extends: ["@ledgerhq/eslint-config-custom"],
55
};

apps/docs/.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ["custom/next"],
2+
extends: ["@ledgerhq/eslint-config-custom/next"],
33
parserOptions: {
44
project: ["./tsconfig.json"],
55
tsconfigRootDir: __dirname,
@@ -8,4 +8,4 @@ module.exports = {
88
},
99
},
1010
rules: {},
11-
};
11+
};

apps/docs/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# wallet-api-docs
1+
# @ledgerhq/wallet-api-docs
22

33
## 0.3.0
44

apps/docs/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"name": "wallet-api-docs",
2+
"name": "@ledgerhq/wallet-api-docs",
33
"version": "0.3.0",
44
"description": "",
5+
"private": true,
56
"scripts": {
67
"build": "next build",
78
"dev": "next dev",

apps/wallet-api-tools/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ["custom/next"],
2+
extends: ["@ledgerhq/eslint-config-custom/next"],
33
parserOptions: {
44
project: ["./tsconfig.json"],
55
tsconfigRootDir: __dirname,

apps/wallet-api-tools/CHANGELOG.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
# wallet-api-tools
1+
# @ledgerhq/wallet-api-tools
2+
3+
## 0.4.7
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6f98647`](https://github.com/LedgerHQ/wallet-api/commit/6f986478bb04901fa5eb3828a2f3b9c0953d2b1a)]:
8+
- @ledgerhq/wallet-api-core@1.6.2
9+
- @ledgerhq/wallet-api-simulator@1.1.6
10+
11+
## 0.4.6
12+
13+
### Patch Changes
14+
15+
- [#290](https://github.com/LedgerHQ/wallet-api/pull/290) [`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd) Thanks [@Justkant](https://github.com/Justkant)! - chore: scope all packages
16+
17+
- Updated dependencies [[`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd)]:
18+
- @ledgerhq/wallet-api-simulator@1.1.5
19+
- @ledgerhq/wallet-api-core@1.6.1
220

321
## 0.4.5
422

apps/wallet-api-tools/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "wallet-api-tools",
33
"name": "Wallet API Tools",
4-
"url": "https://wallet-api-wallet-api-tools.vercel.app",
4+
"url": "http://localhost:3001",
55
"homepageUrl": "https://developers.ledger.com/",
66
"icon": "",
77
"platform": "all",

apps/wallet-api-tools/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "wallet-api-tools",
3-
"version": "0.4.5",
2+
"name": "@ledgerhq/wallet-api-tools",
3+
"version": "0.4.7",
44
"repository": "git@github.com:LedgerHQ/wallet-api.git",
55
"private": true,
66
"scripts": {
@@ -32,10 +32,10 @@
3232
"zod": "^3.22.2"
3333
},
3434
"devDependencies": {
35+
"@ledgerhq/eslint-config-custom": "workspace:*",
3536
"@types/uuid": "^9.0.3",
3637
"autoprefixer": "^10.4.16",
3738
"eslint": "^8.48.0",
38-
"eslint-config-custom": "workspace:*",
3939
"postcss": "^8.4.31",
4040
"postcss-import": "^15.1.0",
4141
"tailwindcss": "^3.3.3"

examples/client-nextjs/CHANGELOG.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
# client-nextjs
1+
# @ledgerhq/client-nextjs
2+
3+
## 0.1.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @ledgerhq/wallet-api-simulator@1.1.6
9+
- @ledgerhq/wallet-api-client@1.5.2
10+
- @ledgerhq/wallet-api-client-react@1.3.2
11+
12+
## 0.1.4
13+
14+
### Patch Changes
15+
16+
- Updated dependencies [[`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd)]:
17+
- @ledgerhq/wallet-api-client-react@1.3.1
18+
- @ledgerhq/wallet-api-simulator@1.1.5
19+
- @ledgerhq/wallet-api-client@1.5.1
220

321
## 0.1.3
422

examples/client-nextjs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "client-nextjs",
3-
"version": "0.1.3",
2+
"name": "@ledgerhq/client-nextjs",
3+
"version": "0.1.5",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "wallet-api",
2+
"name": "@ledgerhq/wallet-api",
33
"version": "0.0.0",
44
"private": true,
55
"workspaces": [
@@ -30,8 +30,8 @@
3030
"devDependencies": {
3131
"@changesets/changelog-github": "^0.4.8",
3232
"@changesets/cli": "^2.26.2",
33+
"@ledgerhq/eslint-config-custom": "workspace:*",
3334
"eslint": "^8.48.0",
34-
"eslint-config-custom": "workspace:*",
3535
"husky": "^8.0.3",
3636
"lint-staged": "^14.0.1",
3737
"turbo": "^1.10.13"

packages/client-react/CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @ledgerhq/wallet-api-client-react
22

3+
## 1.3.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @ledgerhq/wallet-api-client@1.5.2
9+
10+
## 1.3.1
11+
12+
### Patch Changes
13+
14+
- [#290](https://github.com/LedgerHQ/wallet-api/pull/290) [`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd) Thanks [@Justkant](https://github.com/Justkant)! - chore: scope all packages
15+
16+
- Updated dependencies [[`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd)]:
17+
- @ledgerhq/wallet-api-client@1.5.1
18+
319
## 1.3.0
420

521
### Minor Changes

packages/client-react/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ledgerhq/wallet-api-client-react",
3-
"version": "1.3.0",
3+
"version": "1.3.2",
44
"repository": "git@github.com:LedgerHQ/wallet-api.git",
55
"license": "Apache-2.0",
66
"main": "lib/index.js",
@@ -23,13 +23,13 @@
2323
"@ledgerhq/wallet-api-client": "workspace:*"
2424
},
2525
"devDependencies": {
26+
"@ledgerhq/jest-shared-config": "workspace:*",
2627
"@types/jest": "^29.5.4",
2728
"@types/node": "^20.8.7",
2829
"@types/react": "^18.2.38",
2930
"eslint": "^8.48.0",
3031
"jest": "^29.6.4",
3132
"jest-environment-jsdom": "^29.6.4",
32-
"jest-shared-config": "workspace:*",
3333
"prettier": "^3.0.3",
3434
"react": "^18.2.0",
3535
"ts-jest": "^29.1.1",

packages/client/CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @ledgerhq/wallet-api-client
22

3+
## 1.5.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6f98647`](https://github.com/LedgerHQ/wallet-api/commit/6f986478bb04901fa5eb3828a2f3b9c0953d2b1a)]:
8+
- @ledgerhq/wallet-api-core@1.6.2
9+
10+
## 1.5.1
11+
12+
### Patch Changes
13+
14+
- [#290](https://github.com/LedgerHQ/wallet-api/pull/290) [`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd) Thanks [@Justkant](https://github.com/Justkant)! - chore: scope all packages
15+
16+
- Updated dependencies [[`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd)]:
17+
- @ledgerhq/wallet-api-core@1.6.1
18+
319
## 1.5.0
420

521
### Minor Changes

packages/client/jest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { JestConfigWithTsJest } from "ts-jest";
22

33
const config: JestConfigWithTsJest = {
4-
preset: "jest-shared-config",
4+
preset: "@ledgerhq/jest-shared-config",
55
};
66

77
export default config;

packages/client/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ledgerhq/wallet-api-client",
3-
"version": "1.5.0",
3+
"version": "1.5.2",
44
"repository": "git@github.com:LedgerHQ/wallet-api.git",
55
"license": "Apache-2.0",
66
"main": "lib/index.js",
@@ -25,12 +25,12 @@
2525
"bignumber.js": "^9.1.2"
2626
},
2727
"devDependencies": {
28+
"@ledgerhq/jest-shared-config": "workspace:*",
2829
"@types/jest": "^29.5.4",
2930
"@types/node": "^20.8.7",
3031
"eslint": "^8.48.0",
3132
"jest": "^29.6.4",
3233
"jest-environment-jsdom": "^29.6.4",
33-
"jest-shared-config": "workspace:*",
3434
"prettier": "^3.0.3",
3535
"ts-jest": "^29.1.1",
3636
"ts-node": "^10.9.1",

packages/core/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @ledgerhq/wallet-api-core
22

3+
## 1.6.2
4+
5+
### Patch Changes
6+
7+
- [#289](https://github.com/LedgerHQ/wallet-api/pull/289) [`6f98647`](https://github.com/LedgerHQ/wallet-api/commit/6f986478bb04901fa5eb3828a2f3b9c0953d2b1a) Thanks [@Wozacosta](https://github.com/Wozacosta)! - Allows tokenCurrency field for handlers also accepting an account id
8+
9+
## 1.6.1
10+
11+
### Patch Changes
12+
13+
- [#290](https://github.com/LedgerHQ/wallet-api/pull/290) [`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd) Thanks [@Justkant](https://github.com/Justkant)! - chore: scope all packages
14+
315
## 1.6.0
416

517
### Minor Changes

packages/core/jest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { JestConfigWithTsJest } from "ts-jest";
22

33
const config: JestConfigWithTsJest = {
4-
preset: "jest-shared-config",
4+
preset: "@ledgerhq/jest-shared-config",
55
};
66

77
export default config;

packages/core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ledgerhq/wallet-api-core",
3-
"version": "1.6.0",
3+
"version": "1.6.2",
44
"license": "MIT",
55
"main": "lib/index.js",
66
"module": "lib-es/index.js",
@@ -19,13 +19,13 @@
1919
"test": "jest"
2020
},
2121
"devDependencies": {
22+
"@ledgerhq/jest-shared-config": "workspace:*",
2223
"@types/jest": "^29.5.4",
2324
"@types/node": "^20.8.7",
2425
"@types/uuid": "^9.0.3",
2526
"eslint": "^8.48.0",
2627
"jest": "^29.6.4",
2728
"jest-environment-jsdom": "^29.6.4",
28-
"jest-shared-config": "workspace:*",
2929
"ts-jest": "^29.1.1",
3030
"ts-node": "^10.9.1",
3131
"typescript": "^5.2.2"

packages/core/src/spec/types/AccountReceive.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { z } from "zod";
22

33
const schemaAccountReceiveParams = z.object({
44
accountId: z.string(),
5+
tokenCurrency: z.string().optional(),
56
});
67

78
const schemaAccountReceiveResults = z.object({

packages/core/src/spec/types/TransactionSign.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const schemaTransactionSignParams = z.object({
1010
rawTransaction: schemaRawTransaction,
1111
options: schemaTransactionOptions.optional(),
1212
meta: z.record(z.string(), z.unknown()).optional(),
13+
tokenCurrency: z.string().optional(),
1314
});
1415

1516
const schemaTransactionSignResults = z.object({

packages/core/src/spec/types/TransactionSignAndBroadcast.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const schemaTransactionSignAndBroadcastParams = z.object({
1010
rawTransaction: schemaRawTransaction,
1111
options: schemaTransactionOptions.optional(),
1212
meta: z.record(z.string(), z.unknown()).optional(),
13+
tokenCurrency: z.string().optional(),
1314
});
1415

1516
const schemaTransactionSignAndBroadcastResults = z.object({

packages/eslint-config-custom/CHANGELOG.md

-19
This file was deleted.

packages/eslint-config-custom/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "eslint-config-custom",
2+
"name": "@ledgerhq/eslint-config-custom",
33
"private": true,
4-
"version": "0.3.0",
4+
"version": "0.0.0",
55
"main": "index.js",
66
"license": "MIT",
77
"dependencies": {

packages/jest-shared-config/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "jest-shared-config",
2+
"name": "@ledgerhq/jest-shared-config",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.0.0",
55
"main": "index.js",
66
"license": "MIT",
77
"devDependencies": {

packages/manifest-validator-cli/CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @ledgerhq/wallet-api-manifest-validator-cli
22

3+
## 0.1.28
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6f98647`](https://github.com/LedgerHQ/wallet-api/commit/6f986478bb04901fa5eb3828a2f3b9c0953d2b1a)]:
8+
- @ledgerhq/wallet-api-core@1.6.2
9+
- @ledgerhq/wallet-api-manifest-validator@0.5.14
10+
11+
## 0.1.27
12+
13+
### Patch Changes
14+
15+
- Updated dependencies [[`d183e61`](https://github.com/LedgerHQ/wallet-api/commit/d183e61bd70b72a56d8fe293fcaaac0cd918bbbd)]:
16+
- @ledgerhq/wallet-api-manifest-validator@0.5.13
17+
- @ledgerhq/wallet-api-core@1.6.1
18+
319
## 0.1.26
420

521
### Patch Changes

packages/manifest-validator-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ledgerhq/wallet-api-manifest-validator-cli",
3-
"version": "0.1.26",
3+
"version": "0.1.28",
44
"description": "This package checks if your manifest.json file meets the requirements for Ledger wallet App manifest submission.",
55
"license": "MIT",
66
"files": [

0 commit comments

Comments
 (0)