diff --git a/.changeset/calm-months-live.md b/.changeset/calm-months-live.md
index 9cf9e7d6a..07cd31d49 100644
--- a/.changeset/calm-months-live.md
+++ b/.changeset/calm-months-live.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/keyring-btc": minor
+"@ledgerhq/device-signer-kit-btc": minor
---
Implement MerkleTree and MerkleMap services
diff --git a/.changeset/clever-badgers-pull.md b/.changeset/clever-badgers-pull.md
index 6949ba72d..f2ee79b41 100644
--- a/.changeset/clever-badgers-pull.md
+++ b/.changeset/clever-badgers-pull.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/device-sdk-sample": minor
+"@ledgerhq/device-management-kit-sample": minor
---
Add GetAddress Solana Signer use case
diff --git a/.changeset/config.json b/.changeset/config.json
index c720bb119..0e5190d19 100644
--- a/.changeset/config.json
+++ b/.changeset/config.json
@@ -12,5 +12,5 @@
"access": "public",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
- "ignore": ["@ledgerhq/keyring-btc"]
+ "ignore": ["@ledgerhq/device-signer-kit-btc"]
}
diff --git a/.changeset/cool-dancers-join.md b/.changeset/cool-dancers-join.md
index 0b3916fb5..5388f72c4 100644
--- a/.changeset/cool-dancers-join.md
+++ b/.changeset/cool-dancers-join.md
@@ -5,7 +5,7 @@
"@ledgerhq/device-signer-kit-ethereum": patch
"@ledgerhq/tsconfig-dsdk": patch
"@ledgerhq/prettier-config-dsdk": patch
-"@ledgerhq/device-sdk-transport-mock": patch
+"@ledgerhq/device-transport-kit-mock-client": patch
"@ledgerhq/eslint-config-dsdk": patch
"@ledgerhq/device-sdk-trusted-apps": patch
"@ledgerhq/jest-config-dsdk": patch
diff --git a/.changeset/cuddly-ducks-confess.md b/.changeset/cuddly-ducks-confess.md
new file mode 100644
index 000000000..f40ee1687
--- /dev/null
+++ b/.changeset/cuddly-ducks-confess.md
@@ -0,0 +1,7 @@
+---
+"@ledgerhq/device-signer-kit-solana": patch
+"@ledgerhq/device-signer-kit-ethereum": patch
+"@ledgerhq/device-management-kit-sample": patch
+---
+
+Rename keyring to signer
diff --git a/.changeset/cuddly-impalas-sing.md b/.changeset/cuddly-impalas-sing.md
index 9bbf2168c..26244e39b 100644
--- a/.changeset/cuddly-impalas-sing.md
+++ b/.changeset/cuddly-impalas-sing.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/keyring-btc": minor
+"@ledgerhq/device-signer-kit-btc": minor
---
Implement GetExtendedPublicKeyCommand
diff --git a/.changeset/lemon-suits-notice.md b/.changeset/lemon-suits-notice.md
new file mode 100644
index 000000000..4b4b73bd2
--- /dev/null
+++ b/.changeset/lemon-suits-notice.md
@@ -0,0 +1,10 @@
+---
+"@ledgerhq/device-management-kit-flipper-plugin-client": patch
+"@ledgerhq/device-signer-kit-solana": patch
+"@ledgerhq/device-signer-kit-ethereum": patch
+"@ledgerhq/device-transport-kit-mock-client": patch
+"@ledgerhq/device-management-kit": patch
+"@ledgerhq/device-management-kit-sample": patch
+---
+
+Rename SDK to DMK
diff --git a/.changeset/lucky-keys-explode.md b/.changeset/lucky-keys-explode.md
index fb482bd0c..92b949c54 100644
--- a/.changeset/lucky-keys-explode.md
+++ b/.changeset/lucky-keys-explode.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/keyring-btc": minor
+"@ledgerhq/device-signer-kit-btc": minor
---
Implement GetMasterFingerprintCommand
diff --git a/.changeset/mighty-vans-kiss.md b/.changeset/mighty-vans-kiss.md
index c2d61c6ef..de801c9ec 100644
--- a/.changeset/mighty-vans-kiss.md
+++ b/.changeset/mighty-vans-kiss.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/keyring-btc": patch
+"@ledgerhq/device-signer-kit-btc": patch
---
Implement wallet policy service
diff --git a/.changeset/nine-tools-bow.md b/.changeset/nine-tools-bow.md
index 710b90992..6cb5fdcc5 100644
--- a/.changeset/nine-tools-bow.md
+++ b/.changeset/nine-tools-bow.md
@@ -1,7 +1,7 @@
---
"@ledgerhq/device-management-kit-flipper-plugin-client": patch
"@ledgerhq/device-management-kit": patch
-"@ledgerhq/device-sdk-sample": patch
+"@ledgerhq/device-management-kit-sample": patch
---
Implement basic Flipper client for the Ledger Device Management Kit
diff --git a/.changeset/perfect-deers-sneeze.md b/.changeset/perfect-deers-sneeze.md
index ca93afdab..7cb606bab 100644
--- a/.changeset/perfect-deers-sneeze.md
+++ b/.changeset/perfect-deers-sneeze.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/keyring-btc": patch
+"@ledgerhq/device-signer-kit-btc": patch
---
Rename packages
diff --git a/.changeset/smart-games-brush.md b/.changeset/smart-games-brush.md
index c3b1bf193..02c9a0e33 100644
--- a/.changeset/smart-games-brush.md
+++ b/.changeset/smart-games-brush.md
@@ -1,7 +1,7 @@
---
-"@ledgerhq/device-sdk-transport-mock": patch
+"@ledgerhq/device-transport-kit-mock-client": patch
"@ledgerhq/device-management-kit": patch
-"@ledgerhq/device-sdk-sample": patch
+"@ledgerhq/device-management-kit-sample": patch
---
Add mockserver integration with transport
diff --git a/.changeset/tall-hairs-cheer.md b/.changeset/tall-hairs-cheer.md
index 09c7c7cb3..d9f6dbaf7 100644
--- a/.changeset/tall-hairs-cheer.md
+++ b/.changeset/tall-hairs-cheer.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/keyring-btc": minor
+"@ledgerhq/device-signer-kit-btc": minor
---
-Create keyring-btc package
+Create device-signer-kit-btc package
diff --git a/.changeset/tasty-falcons-doubt.md b/.changeset/tasty-falcons-doubt.md
index 2ddec3996..36ab5d44e 100644
--- a/.changeset/tasty-falcons-doubt.md
+++ b/.changeset/tasty-falcons-doubt.md
@@ -3,7 +3,7 @@
"@ledgerhq/signer-utils": patch
"@ledgerhq/device-signer-kit-ethereum": patch
"@ledgerhq/device-management-kit": patch
-"@ledgerhq/device-sdk-sample": patch
+"@ledgerhq/device-management-kit-sample": patch
---
Use type keyword when importing type
diff --git a/.changeset/tiny-hornets-grin.md b/.changeset/tiny-hornets-grin.md
index 1ac59c72a..fc5bc0b38 100644
--- a/.changeset/tiny-hornets-grin.md
+++ b/.changeset/tiny-hornets-grin.md
@@ -1,6 +1,6 @@
---
"@ledgerhq/device-management-kit": patch
-"@ledgerhq/device-sdk-sample": patch
+"@ledgerhq/device-management-kit-sample": patch
---
Add unlock timeout input in open app device action
diff --git a/.changeset/tiny-otters-draw.md b/.changeset/tiny-otters-draw.md
index 99f2f920e..06299e3f7 100644
--- a/.changeset/tiny-otters-draw.md
+++ b/.changeset/tiny-otters-draw.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/device-sdk-sample": minor
+"@ledgerhq/device-management-kit-sample": minor
---
Add keyring eth provider
diff --git a/.changeset/twelve-snakes-agree.md b/.changeset/twelve-snakes-agree.md
index 06a1cefc3..cc4c2308a 100644
--- a/.changeset/twelve-snakes-agree.md
+++ b/.changeset/twelve-snakes-agree.md
@@ -1,6 +1,6 @@
---
"@ledgerhq/device-management-kit": patch
-"@ledgerhq/device-sdk-sample": patch
+"@ledgerhq/device-management-kit-sample": patch
---
New use case listenToKnownDevices
diff --git a/.changeset/weak-ads-chew.md b/.changeset/weak-ads-chew.md
index d41b3070f..0a4e2d756 100644
--- a/.changeset/weak-ads-chew.md
+++ b/.changeset/weak-ads-chew.md
@@ -1,5 +1,5 @@
---
-"@ledgerhq/keyring-btc": patch
+"@ledgerhq/device-signer-kit-btc": patch
---
Implement PSBT parser and mapper services
diff --git a/README.md b/README.md
index 852bb2905..152bd5c12 100644
--- a/README.md
+++ b/README.md
@@ -4,9 +4,6 @@
-
@@ -29,6 +26,10 @@
+
+
+
+
@@ -61,7 +62,7 @@ The Device Management Kit features an interface for applications to handle any L
```mermaid
flowchart LR;
- application(Application) <--API--> DSDK(DeviceSDK) <--USB/BLE--> device(Device);
+ application(Application) <--API--> LDMK(LedgerDeviceManagementKit) <--USB/BLE--> device(Device);
```
The Device Management Kit is available in 3 different environments (web, Android & iOS).
@@ -72,7 +73,7 @@ This repository is dedicated to **web environment** and is written in TypeScript
### Repository
-The Device Management Kit is structured as a monorepository whose prupose is to centralise all the TypeScript code related to the SDK in one place.
+The Device Management Kit is structured as a monorepository whose prupose is to centralise all the TypeScript code related to the Device Management Kit in one place.
This project uses [turbo monorepo](https://turbo.build/repo/docs) to build and release different packages on NPM registry and a sample demo application on Vercel.
@@ -80,16 +81,16 @@ This project uses [turbo monorepo](https://turbo.build/repo/docs) to build and r
A brief description of this project packages:
-| Name | Path | Description |
-| --------------------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
-| @ledgerhq/device-sdk-sample | apps/sample | React Next web app used to test & demonstrate the Web Device Management Kit |
-| @ledgerhq/eslint-config-dsdk | packages/config/eslint | internal package which contains eslint shared config. Used by `extends: ["@ledgerhq/dsdk"]` in `.eslintrc`. |
-| @ledgerhq/jest-config-dsdk | packages/config/jest | internal package which contains jest shared config. Used by `preset: "@ledgerhq/jest-config-dsdk"` in `jest.config.ts` |
-| @ledgerhq/tsconfig-dsdk | packages/config/typescript | internal package which contains typescript shared config. Used by `"extends": "@ledgerhq/tsconfig-dsdk/tsconfig.sdk"` in `tsconfig.json` |
-| @ledgerhq/device-management-kit | packages/core | external package that contains the core of the Web SDK |
-| @ledgerhq/device-sdk-signer | packages/signer | external package that contains device coin application dedicated handlers |
-| @ledgerhq/device-sdk-trusted-apps | packages/trusted-apps | external package that contains device trusted application dedicated handlers |
-| @ledgerhq/device-sdk-ui | packages/ui | external package |
+| Name | Path | Description |
+|----------------------------------------|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
+| @ledgerhq/device-management-kit-sample | apps/sample | React Next web app used to test & demonstrate the Web Device Management Kit |
+| @ledgerhq/eslint-config-dsdk | packages/config/eslint | internal package which contains eslint shared config. Used by `extends: ["@ledgerhq/dsdk"]` in `.eslintrc`. |
+| @ledgerhq/jest-config-dsdk | packages/config/jest | internal package which contains jest shared config. Used by `preset: "@ledgerhq/jest-config-dsdk"` in `jest.config.ts` |
+| @ledgerhq/tsconfig-dsdk | packages/config/typescript | internal package which contains typescript shared config. Used by `"extends": "@ledgerhq/tsconfig-dsdk/tsconfig.sdk"` in `tsconfig.json` |
+| @ledgerhq/device-management-kit | packages/device-management-kit | external package that contains the core of the Web Device Management Kit |
+| @ledgerhq/device-signer-kit-ethereum | packages/signer/signer-eth | external package that contains device ethereum coin application dedicated handlers |
+| @ledgerhq/device-signer-kit-solana | packages/signer/signer-solana | external package that contains device solana coin application dedicated handlers |
+| @ledgerhq/device-management-kit-flipper-plugin-client | packages/flipper-plugin-client | external package that contains [flipper](https://github.com/facebook/flipper) logger for Device Management Kit |
# Getting started
@@ -182,7 +183,7 @@ Each package is built using the following command (at the root of the monorepo).
Device Management Kit main module.
```bash
-pnpm core build
+pnpm dmk build
```
### Signer
@@ -258,7 +259,7 @@ Finally, we should add a script in the correct `package.json` as a shortcut to t
eg:
```
-pnpm core module:create
+pnpm dmk module:create
```
Under the hood, the script looks like this:
diff --git a/apps/sample/next.config.js b/apps/sample/next.config.js
index f1d5bb18e..8a4688eca 100644
--- a/apps/sample/next.config.js
+++ b/apps/sample/next.config.js
@@ -23,7 +23,7 @@ const sentryWebpackPluginOptions = {
silent: true,
org: "ledger",
- project: "device-sdk-sample",
+ project: "device-management-kit-sample",
// Additional Sentry options
widenClientFileUpload: true, // Upload a larger set of source maps for prettier stack traces (increases build time)
diff --git a/apps/sample/package.json b/apps/sample/package.json
index 288d2ac2e..c7a7344c3 100644
--- a/apps/sample/package.json
+++ b/apps/sample/package.json
@@ -1,5 +1,5 @@
{
- "name": "@ledgerhq/device-sdk-sample",
+ "name": "@ledgerhq/device-management-kit-sample",
"version": "0.1.3",
"private": true,
"scripts": {
@@ -20,7 +20,7 @@
"@ledgerhq/device-management-kit-flipper-plugin-client": "workspace:*",
"@ledgerhq/device-signer-kit-ethereum": "workspace:*",
"@ledgerhq/device-signer-kit-solana": "workspace:*",
- "@ledgerhq/device-sdk-transport-mock": "workspace:*",
+ "@ledgerhq/device-transport-kit-mock-client": "workspace:*",
"@ledgerhq/react-ui": "^0.16.2",
"@sentry/nextjs": "^8.32.0",
"@playwright/test": "^1.47.0",
diff --git a/apps/sample/playwright/cases/eth_get-address_happy-paths.spec.ts b/apps/sample/playwright/cases/eth_get-address_happy-paths.spec.ts
index 837944c39..06644b21c 100644
--- a/apps/sample/playwright/cases/eth_get-address_happy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_get-address_happy-paths.spec.ts
@@ -40,7 +40,7 @@ test.describe("ETH Signer: get address, happy paths", () => {
});
await test.step("When execute ETH: get address", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
@@ -75,7 +75,7 @@ test.describe("ETH Signer: get address, happy paths", () => {
});
await test.step("When execute ETH: get address with checkOnDevice on", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
@@ -125,7 +125,7 @@ test.describe("ETH Signer: get address, happy paths", () => {
});
await test.step("Then execute ETH: get address", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
diff --git a/apps/sample/playwright/cases/eth_get-address_unhappy-paths.spec.ts b/apps/sample/playwright/cases/eth_get-address_unhappy-paths.spec.ts
index 6176089fb..35789636d 100644
--- a/apps/sample/playwright/cases/eth_get-address_unhappy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_get-address_unhappy-paths.spec.ts
@@ -36,7 +36,7 @@ test.describe("ETH Signer: get address, unhappy paths", () => {
});
await test.step("Then execute ETH: get address with malformed derivation paths", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
const malformedDerivationPaths = [
diff --git a/apps/sample/playwright/cases/eth_sign-message_happy-paths.spec.ts b/apps/sample/playwright/cases/eth_sign-message_happy-paths.spec.ts
index 7991f6e5a..33b8c3b98 100644
--- a/apps/sample/playwright/cases/eth_sign-message_happy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_sign-message_happy-paths.spec.ts
@@ -37,7 +37,7 @@ test.describe("ETH Signer: sign message, happy paths", () => {
});
await test.step("When execute ETH: sign message", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
await whenExecuteDeviceAction(page, "Sign message", [
@@ -75,7 +75,7 @@ test.describe("ETH Signer: sign message, happy paths", () => {
});
await test.step("When execute ETH: sign message", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
@@ -137,7 +137,7 @@ test.describe("ETH Signer: sign message, happy paths", () => {
});
await test.step("When execute ETH: sign message", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
diff --git a/apps/sample/playwright/cases/eth_sign-message_unhappy-paths.spec.ts b/apps/sample/playwright/cases/eth_sign-message_unhappy-paths.spec.ts
index d07afc052..edf77039f 100644
--- a/apps/sample/playwright/cases/eth_sign-message_unhappy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_sign-message_unhappy-paths.spec.ts
@@ -37,7 +37,7 @@ test.describe("ETH Signer: sign message, unhappy paths", () => {
});
await test.step("When execute ETH: sign message with malformed derivation paths", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
const malformedDerivationPaths = [
diff --git a/apps/sample/playwright/cases/eth_sign-transaction_happy-paths.spec.ts b/apps/sample/playwright/cases/eth_sign-transaction_happy-paths.spec.ts
index 4769463f5..b15fbabfd 100644
--- a/apps/sample/playwright/cases/eth_sign-transaction_happy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_sign-transaction_happy-paths.spec.ts
@@ -40,7 +40,7 @@ test.describe("ETH Signer: sign transaction, happy paths", () => {
});
await test.step("When execute ETH: sign transaction", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
@@ -79,7 +79,7 @@ test.describe("ETH Signer: sign transaction, happy paths", () => {
});
await test.step("When execute ETH: sign transaction", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
diff --git a/apps/sample/playwright/cases/eth_sign-transaction_unhappy-paths.spec.ts b/apps/sample/playwright/cases/eth_sign-transaction_unhappy-paths.spec.ts
index 4ab5e6b47..35b79dd58 100644
--- a/apps/sample/playwright/cases/eth_sign-transaction_unhappy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_sign-transaction_unhappy-paths.spec.ts
@@ -37,7 +37,7 @@ test.describe("ETH Signer: sign transaction, unhappy paths", () => {
});
await test.step("When execute ETH: sign transaction with malformed derivation paths", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
const malformedDerivationPaths = [
diff --git a/apps/sample/playwright/cases/eth_sign-typed-message-happy-paths.spec.ts b/apps/sample/playwright/cases/eth_sign-typed-message-happy-paths.spec.ts
index 624e210ae..233231a19 100644
--- a/apps/sample/playwright/cases/eth_sign-typed-message-happy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_sign-typed-message-happy-paths.spec.ts
@@ -37,7 +37,7 @@ test.describe("ETH Signer: sign EIP712 message, happy paths", () => {
});
await test.step("When execute ETH: sign EIP712 message", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
await whenExecuteDeviceAction(page, "Sign typed message", [
@@ -76,7 +76,7 @@ test.describe("ETH Signer: sign EIP712 message, happy paths", () => {
});
await test.step("When execute ETH: sign EIP712 message", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
await whenExecuteDeviceAction(page, "Sign typed message", [
@@ -139,7 +139,7 @@ test.describe("ETH Signer: sign EIP712 message, happy paths", () => {
});
await test.step("When execute ETH: sign EIP712 message", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
diff --git a/apps/sample/playwright/cases/eth_sign-typed-message-unhappy-paths.spec.ts b/apps/sample/playwright/cases/eth_sign-typed-message-unhappy-paths.spec.ts
index 4cf56a50d..81ea18096 100644
--- a/apps/sample/playwright/cases/eth_sign-typed-message-unhappy-paths.spec.ts
+++ b/apps/sample/playwright/cases/eth_sign-typed-message-unhappy-paths.spec.ts
@@ -37,7 +37,7 @@ test.describe("ETH Signer: sign EIP712 message, unhappy paths", () => {
});
await test.step("When execute ETH: sign typed message with malformed derivation paths", async () => {
- await whenNavigateTo(page, "/keyring");
+ await whenNavigateTo(page, "/signer");
await whenClicking(page, "CTA_command-Ethereum");
diff --git a/apps/sample/src/app/client-layout.tsx b/apps/sample/src/app/client-layout.tsx
index c6b2e351f..d3fff05f8 100644
--- a/apps/sample/src/app/client-layout.tsx
+++ b/apps/sample/src/app/client-layout.tsx
@@ -15,10 +15,10 @@ import styled, { type DefaultTheme } from "styled-components";
import { Header } from "@/components/Header";
import { Sidebar } from "@/components/Sidebar";
-import { SdkProvider } from "@/providers/DeviceSdkProvider";
+import { DmkProvider } from "@/providers/DeviceManagementKitProvider";
import { DeviceSessionsProvider } from "@/providers/DeviceSessionsProvider";
-import { KeyringEthProvider } from "@/providers/KeyringEthProvider";
-import { SdkConfigProvider } from "@/providers/SdkConfig";
+import { DmkConfigProvider } from "@/providers/DmkConfig";
+import { SignerEthProvider } from "@/providers/SignerEthProvider";
import { GlobalStyle } from "@/styles/globalstyles";
const Root = styled(Flex)`
@@ -38,10 +38,10 @@ const PageContainer = styled(Flex)`
const ClientRootLayout: React.FC = ({ children }) => {
return (
-
-
+
+
-
+
@@ -54,10 +54,10 @@ const ClientRootLayout: React.FC = ({ children }) => {
-
+
-
-
+
+
);
};
diff --git a/apps/sample/src/app/keyring/ethereum/page.tsx b/apps/sample/src/app/keyring/ethereum/page.tsx
index 26cb849dd..c297848d3 100644
--- a/apps/sample/src/app/keyring/ethereum/page.tsx
+++ b/apps/sample/src/app/keyring/ethereum/page.tsx
@@ -1,11 +1,11 @@
"use client";
import React from "react";
-import { KeyringEthView } from "@/components/KeyringEthView";
import { SessionIdWrapper } from "@/components/SessionIdWrapper";
+import { SignerEthView } from "@/components/SignerEthView";
-const Keyring: React.FC = () => {
- return ;
+const Signer: React.FC = () => {
+ return ;
};
-export default Keyring;
+export default Signer;
diff --git a/apps/sample/src/app/keyring/page.tsx b/apps/sample/src/app/keyring/page.tsx
index 134e7bf48..5231d75af 100644
--- a/apps/sample/src/app/keyring/page.tsx
+++ b/apps/sample/src/app/keyring/page.tsx
@@ -1,10 +1,10 @@
"use client";
import React from "react";
-import { KeyringView } from "@/components/KeyringView";
+import { SignerView } from "@/components/SignerView";
-const Keyring: React.FC = () => {
- return ;
+const Signer: React.FC = () => {
+ return ;
};
-export default Keyring;
+export default Signer;
diff --git a/apps/sample/src/components/ApduView/index.tsx b/apps/sample/src/components/ApduView/index.tsx
index 81d1c4085..11d409736 100644
--- a/apps/sample/src/components/ApduView/index.tsx
+++ b/apps/sample/src/components/ApduView/index.tsx
@@ -4,7 +4,7 @@ import { Button, Divider, Flex, Grid, Input, Text } from "@ledgerhq/react-ui";
import styled, { type DefaultTheme } from "styled-components";
import { useApduForm } from "@/hooks/useApduForm";
-import { useSdk } from "@/providers/DeviceSdkProvider";
+import { useDmk } from "@/providers/DeviceManagementKitProvider";
import { useDeviceSessionsContext } from "@/providers/DeviceSessionsProvider";
const Root = styled(Flex).attrs({ mx: 15, mt: 10, mb: 5 })`
@@ -69,7 +69,7 @@ export const ApduView: React.FC = () => {
useApduForm();
const [loading, setLoading] = useState(false);
const [apduResponse, setApduResponse] = useState();
- const sdk = useSdk();
+ const dmk = useDmk();
const {
state: { selectedId: selectedSessionId },
} = useDeviceSessionsContext();
@@ -78,7 +78,7 @@ export const ApduView: React.FC = () => {
setLoading(true);
let rawApduResponse;
try {
- rawApduResponse = await sdk.sendApdu({
+ rawApduResponse = await dmk.sendApdu({
sessionId: selectedSessionId ?? "",
apdu: getRawApdu(values),
});
@@ -89,7 +89,7 @@ export const ApduView: React.FC = () => {
setLoading(false);
}
},
- [getRawApdu, sdk, selectedSessionId],
+ [getRawApdu, dmk, selectedSessionId],
);
return (
diff --git a/apps/sample/src/components/AvailableDevices/index.tsx b/apps/sample/src/components/AvailableDevices/index.tsx
index bf883e075..02fbb759f 100644
--- a/apps/sample/src/components/AvailableDevices/index.tsx
+++ b/apps/sample/src/components/AvailableDevices/index.tsx
@@ -5,7 +5,7 @@ import styled from "styled-components";
import { AvailableDevice } from "@/components/Device";
import { useAvailableDevices } from "@/hooks/useAvailableDevices";
-import { useSdk } from "@/providers/DeviceSdkProvider";
+import { useDmk } from "@/providers/DeviceManagementKitProvider";
import { useDeviceSessionsContext } from "@/providers/DeviceSessionsProvider";
const Title = styled(Text)<{ disabled: boolean }>`
@@ -66,19 +66,19 @@ const KnownDevice: React.FC = (
device,
) => {
const { deviceModel, connected } = device;
- const sdk = useSdk();
+ const dmk = useDmk();
const { dispatch } = useDeviceSessionsContext();
const connectToDevice = useCallback(() => {
- sdk.connect({ device }).then((sessionId) => {
+ dmk.connect({ device }).then((sessionId) => {
dispatch({
type: "add_session",
payload: {
sessionId,
- connectedDevice: sdk.getConnectedDevice({ sessionId }),
+ connectedDevice: dmk.getConnectedDevice({ sessionId }),
},
});
});
- }, [sdk, device, dispatch]);
+ }, [dmk, device, dispatch]);
return (
diff --git a/apps/sample/src/components/CalView/CalCheckDappDrawer.tsx b/apps/sample/src/components/CalView/CalCheckDappDrawer.tsx
index d8a9ac635..cd75a04bd 100644
--- a/apps/sample/src/components/CalView/CalCheckDappDrawer.tsx
+++ b/apps/sample/src/components/CalView/CalCheckDappDrawer.tsx
@@ -13,7 +13,7 @@ import {
type ValueSelector,
} from "@/components/CommandsView/CommandForm";
import { type FieldType } from "@/hooks/useForm";
-import { useCalConfig } from "@/providers/KeyringEthProvider";
+import { useCalConfig } from "@/providers/SignerEthProvider";
import { CalAvailabilityResponseComponent } from "./CalAvailabilityResponse";
import {
diff --git a/apps/sample/src/components/CalView/CalSettingsDrawer.tsx b/apps/sample/src/components/CalView/CalSettingsDrawer.tsx
index eb3f20f0c..0f7f31682 100644
--- a/apps/sample/src/components/CalView/CalSettingsDrawer.tsx
+++ b/apps/sample/src/components/CalView/CalSettingsDrawer.tsx
@@ -8,7 +8,7 @@ import {
type ValueSelector,
} from "@/components/CommandsView/CommandForm";
import { type FieldType } from "@/hooks/useForm";
-import { useCalConfig } from "@/providers/KeyringEthProvider";
+import { useCalConfig } from "@/providers/SignerEthProvider";
type CalSettingsDrawerProps = {
onClose: () => void;
diff --git a/apps/sample/src/components/CalView/index.tsx b/apps/sample/src/components/CalView/index.tsx
index 4bc119e5b..6875670f1 100644
--- a/apps/sample/src/components/CalView/index.tsx
+++ b/apps/sample/src/components/CalView/index.tsx
@@ -48,7 +48,7 @@ export const CalView = () => {
>
{entries.map(({ title, description, onClick }) => (
= ({
sessionId: selectedSessionId,
}) => {
- const sdk = useSdk();
+ const dmk = useDmk();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const commands: CommandProps[] = useMemo(
@@ -38,7 +38,7 @@ export const CommandsView: React.FC<{ sessionId: string }> = ({
description: "List all apps on the device",
sendCommand: ({ isContinue }) => {
const command = new ListAppsCommand({ isContinue });
- return sdk.sendCommand({
+ return dmk.sendCommand({
sessionId: selectedSessionId,
command,
});
@@ -54,7 +54,7 @@ export const CommandsView: React.FC<{ sessionId: string }> = ({
description: "Launch an app on the device",
sendCommand: ({ appName }) => {
const command = new OpenAppCommand({ appName });
- return sdk.sendCommand({
+ return dmk.sendCommand({
sessionId: selectedSessionId,
command,
});
@@ -67,7 +67,7 @@ export const CommandsView: React.FC<{ sessionId: string }> = ({
description: "Close the currently open app",
sendCommand: () => {
const command = new CloseAppCommand();
- return sdk.sendCommand({
+ return dmk.sendCommand({
sessionId: selectedSessionId,
command,
});
@@ -79,7 +79,7 @@ export const CommandsView: React.FC<{ sessionId: string }> = ({
description: "Get the currently open app and its version",
sendCommand: () => {
const command = new GetAppAndVersionCommand();
- return sdk.sendCommand({
+ return dmk.sendCommand({
sessionId: selectedSessionId,
command,
});
@@ -91,7 +91,7 @@ export const CommandsView: React.FC<{ sessionId: string }> = ({
description: "Get the OS version of the device",
sendCommand: () => {
const command = new GetOsVersionCommand();
- return sdk.sendCommand({
+ return dmk.sendCommand({
sessionId: selectedSessionId,
command,
});
@@ -103,7 +103,7 @@ export const CommandsView: React.FC<{ sessionId: string }> = ({
description: "Get the battery status of the device",
sendCommand: ({ statusType }) => {
const command = new GetBatteryStatusCommand({ statusType });
- return sdk.sendCommand({
+ return dmk.sendCommand({
sessionId: selectedSessionId,
command,
});
@@ -116,7 +116,7 @@ export const CommandsView: React.FC<{ sessionId: string }> = ({
},
} satisfies CommandProps,
],
- [selectedSessionId, sdk],
+ [selectedSessionId, dmk],
);
return (
diff --git a/apps/sample/src/components/DeviceActionsView/AllDeviceActions.tsx b/apps/sample/src/components/DeviceActionsView/AllDeviceActions.tsx
index bdd69f6c0..dea6ed349 100644
--- a/apps/sample/src/components/DeviceActionsView/AllDeviceActions.tsx
+++ b/apps/sample/src/components/DeviceActionsView/AllDeviceActions.tsx
@@ -28,7 +28,7 @@ import {
OpenAppDeviceAction,
} from "@ledgerhq/device-management-kit";
-import { useSdk } from "@/providers/DeviceSdkProvider";
+import { useDmk } from "@/providers/DeviceManagementKitProvider";
import { DeviceActionsList, UNLOCK_TIMEOUT } from "./DeviceActionsList";
import { type DeviceActionProps } from "./DeviceActionTester";
@@ -36,9 +36,9 @@ import { type DeviceActionProps } from "./DeviceActionTester";
export const AllDeviceActions: React.FC<{ sessionId: string }> = ({
sessionId,
}) => {
- const sdk = useSdk();
+ const dmk = useDmk();
- const deviceModelId = sdk.getConnectedDevice({
+ const deviceModelId = dmk.getConnectedDevice({
sessionId,
}).modelId;
@@ -54,7 +54,7 @@ export const AllDeviceActions: React.FC<{ sessionId: string }> = ({
input: { appName, unlockTimeout },
inspect,
});
- return sdk.executeDeviceAction({
+ return dmk.executeDeviceAction({
sessionId,
deviceAction,
});
@@ -76,7 +76,7 @@ export const AllDeviceActions: React.FC<{ sessionId: string }> = ({
input: { unlockTimeout },
inspect,
});
- return sdk.executeDeviceAction({
+ return dmk.executeDeviceAction({
sessionId,
deviceAction,
});
@@ -97,7 +97,7 @@ export const AllDeviceActions: React.FC<{ sessionId: string }> = ({
input: { unlockTimeout },
inspect,
});
- return sdk.executeDeviceAction({
+ return dmk.executeDeviceAction({
sessionId,
deviceAction,
});
@@ -118,7 +118,7 @@ export const AllDeviceActions: React.FC<{ sessionId: string }> = ({
input: { unlockTimeout },
inspect,
});
- return sdk.executeDeviceAction({
+ return dmk.executeDeviceAction({
sessionId,
deviceAction,
});
@@ -140,7 +140,7 @@ export const AllDeviceActions: React.FC<{ sessionId: string }> = ({
input: { unlockTimeout },
inspect,
});
- return sdk.executeDeviceAction({
+ return dmk.executeDeviceAction({
sessionId,
deviceAction,
});
@@ -154,7 +154,7 @@ export const AllDeviceActions: React.FC<{ sessionId: string }> = ({
ListAppsWithMetadataDAIntermediateValue
>,
],
- [deviceModelId, sdk, sessionId],
+ [deviceModelId, dmk, sessionId],
);
return (
diff --git a/apps/sample/src/components/DeviceActionsView/DeviceActionTester.tsx b/apps/sample/src/components/DeviceActionsView/DeviceActionTester.tsx
index ed9e2310d..ea78a83d7 100644
--- a/apps/sample/src/components/DeviceActionsView/DeviceActionTester.tsx
+++ b/apps/sample/src/components/DeviceActionsView/DeviceActionTester.tsx
@@ -2,8 +2,8 @@ import React from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import type {
DeviceActionIntermediateValue,
+ DmkError,
ExecuteDeviceActionReturnType,
- SdkError,
} from "@ledgerhq/device-management-kit";
import { type DeviceModelId } from "@ledgerhq/device-management-kit";
import {
@@ -35,7 +35,7 @@ import { DeviceActionUI } from "./DeviceActionUI";
export type DeviceActionProps<
Output,
Input extends Record | void,
- Error extends SdkError,
+ Error extends DmkError,
IntermediateValue extends DeviceActionIntermediateValue,
> = {
title: string;
@@ -85,7 +85,7 @@ const BoxHeader: React.FC<{ children: string; hint: string }> = ({
export function DeviceActionTester<
Output,
Input extends Record,
- Error extends SdkError,
+ Error extends DmkError,
IntermediateValue extends DeviceActionIntermediateValue,
>(props: DeviceActionProps