@ledgerhq/coin-internet_computer 2.0.0-nightly.20261031020332 → 2.0.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 +38 -56
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ledgerhq/coin-internet_computer
|
|
2
2
|
|
|
3
|
-
## 2.0.0
|
|
3
|
+
## 2.0.0
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
### Minor Changes
|
|
12
12
|
|
|
13
|
+
- [#23760](https://github.com/LedgerHQ/ledger-live/pull/23760) [`5049882`](https://github.com/LedgerHQ/ledger-live/commit/5049882121946e88e75f75536a6b206ea2e38e9f) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Reject an ICP recipient whose length or checksum is wrong, instead of accepting any hex string
|
|
14
|
+
|
|
15
|
+
- [#23782](https://github.com/LedgerHQ/ledger-live/pull/23782) [`4493b36`](https://github.com/LedgerHQ/ledger-live/commit/4493b361834b7e0cec1e90fd543a53188648ad1e) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Decode a candid reply held in a view at a nonzero offset, which was read from the start of its underlying buffer.
|
|
16
|
+
|
|
13
17
|
- [#23759](https://github.com/LedgerHQ/ledger-live/pull/23759) [`f048349`](https://github.com/LedgerHQ/ledger-live/commit/f048349f45a007200c4416b56c1b4f15194481be) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Add the ICP read logic for the CoinModuleApi: blocks (archived ones included), balance and paginated history
|
|
14
18
|
|
|
15
19
|
- [#23781](https://github.com/LedgerHQ/ledger-live/pull/23781) [`5039dc5`](https://github.com/LedgerHQ/ledger-live/commit/5039dc56c41865e705de7eca774a0fd9df8d01cc) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Expose the CoinModuleApi for native ICP through `createApi` on the `./api` entry point, which keeps exporting the network client.
|
|
@@ -20,19 +24,49 @@
|
|
|
20
24
|
|
|
21
25
|
- [#23964](https://github.com/LedgerHQ/ledger-live/pull/23964) [`bee4751`](https://github.com/LedgerHQ/ledger-live/commit/bee47518fe1af95de18b32620e9db2d181cc0169) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Craft, combine and broadcast neuron stake transfers through the CoinModuleApi, checking the stake account before signing and claiming the neuron once the transfer settles; export `refreshNeuronStake` to retry a failed claim.
|
|
22
26
|
|
|
27
|
+
- [#23762](https://github.com/LedgerHQ/ledger-live/pull/23762) [`d274455`](https://github.com/LedgerHQ/ledger-live/commit/d27445594da9f804cae72abe911624a58d2ee587) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Replace the constant-false transfer check in ICP history mapping with the intended guard
|
|
28
|
+
|
|
29
|
+
- [#23846](https://github.com/LedgerHQ/ledger-live/pull/23846) [`29ae68a`](https://github.com/LedgerHQ/ledger-live/commit/29ae68a1ad2429a224106f355f35d1190c0f7359) Thanks [@gre-ledger](https://github.com/gre-ledger)! - fix: ship lib and lib-es in the npm tarballs again, which pnpm 11 dropped
|
|
30
|
+
|
|
23
31
|
### Patch Changes
|
|
24
32
|
|
|
33
|
+
- Updated dependencies [[`8c888c4`](https://github.com/LedgerHQ/ledger-live/commit/8c888c4cfd699dc24b8e0522818feaac98698eb1), [`29ae68a`](https://github.com/LedgerHQ/ledger-live/commit/29ae68a1ad2429a224106f355f35d1190c0f7359), [`9c7d59d`](https://github.com/LedgerHQ/ledger-live/commit/9c7d59d0ffcc72ba746bc20e9ff744db9730503b)]:
|
|
34
|
+
- @ledgerhq/ledger-wallet-framework@3.9.0
|
|
35
|
+
- @ledgerhq/types-live@6.129.0
|
|
36
|
+
|
|
37
|
+
## 2.0.0-next.0
|
|
38
|
+
|
|
39
|
+
### Major Changes
|
|
40
|
+
|
|
41
|
+
- [#23629](https://github.com/LedgerHQ/ledger-live/pull/23629) [`48a4694`](https://github.com/LedgerHQ/ledger-live/commit/48a4694811129461a0992a571970138e2b42302a) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Replace the deprecated @dfinity/\* packages with @icp-sdk/core and derive account identifiers locally; signed payloads are unchanged.
|
|
42
|
+
|
|
43
|
+
Breaking: binary values use `Uint8Array` instead of `ArrayBuffer`: `UnsignedTransaction.arg`, the result of `pubkeyToDer`, the replies of `readReplyFromCanister`, and the input of `decodeManageNeuronReply` and `decodeListNeuronsReply`. `Principal` and the agent types come from `@icp-sdk/core`.
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
25
47
|
- [#23760](https://github.com/LedgerHQ/ledger-live/pull/23760) [`5049882`](https://github.com/LedgerHQ/ledger-live/commit/5049882121946e88e75f75536a6b206ea2e38e9f) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Reject an ICP recipient whose length or checksum is wrong, instead of accepting any hex string
|
|
26
48
|
|
|
27
49
|
- [#23782](https://github.com/LedgerHQ/ledger-live/pull/23782) [`4493b36`](https://github.com/LedgerHQ/ledger-live/commit/4493b361834b7e0cec1e90fd543a53188648ad1e) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Decode a candid reply held in a view at a nonzero offset, which was read from the start of its underlying buffer.
|
|
28
50
|
|
|
51
|
+
- [#23759](https://github.com/LedgerHQ/ledger-live/pull/23759) [`f048349`](https://github.com/LedgerHQ/ledger-live/commit/f048349f45a007200c4416b56c1b4f15194481be) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Add the ICP read logic for the CoinModuleApi: blocks (archived ones included), balance and paginated history
|
|
52
|
+
|
|
53
|
+
- [#23781](https://github.com/LedgerHQ/ledger-live/pull/23781) [`5039dc5`](https://github.com/LedgerHQ/ledger-live/commit/5039dc56c41865e705de7eca774a0fd9df8d01cc) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Expose the CoinModuleApi for native ICP through `createApi` on the `./api` entry point, which keeps exporting the network client.
|
|
54
|
+
|
|
55
|
+
- [#23878](https://github.com/LedgerHQ/ledger-live/pull/23878) [`145efd9`](https://github.com/LedgerHQ/ledger-live/commit/145efd90c1b8deb7fd1d40c7c15bdc5d8183c02c) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Craft, combine and broadcast every neuron command through the CoinModuleApi, with the checks that need no neuron state.
|
|
56
|
+
|
|
57
|
+
- [#23860](https://github.com/LedgerHQ/ledger-live/pull/23860) [`96aabc0`](https://github.com/LedgerHQ/ledger-live/commit/96aabc0b90a7e6996747c36adc3b2eb5df9ce41d) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Craft, combine and broadcast the start-dissolving and increase-dissolve-delay neuron commands through the CoinModuleApi.
|
|
58
|
+
|
|
59
|
+
- [#23964](https://github.com/LedgerHQ/ledger-live/pull/23964) [`bee4751`](https://github.com/LedgerHQ/ledger-live/commit/bee47518fe1af95de18b32620e9db2d181cc0169) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Craft, combine and broadcast neuron stake transfers through the CoinModuleApi, checking the stake account before signing and claiming the neuron once the transfer settles; export `refreshNeuronStake` to retry a failed claim.
|
|
60
|
+
|
|
29
61
|
- [#23762](https://github.com/LedgerHQ/ledger-live/pull/23762) [`d274455`](https://github.com/LedgerHQ/ledger-live/commit/d27445594da9f804cae72abe911624a58d2ee587) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Replace the constant-false transfer check in ICP history mapping with the intended guard
|
|
30
62
|
|
|
31
63
|
- [#23846](https://github.com/LedgerHQ/ledger-live/pull/23846) [`29ae68a`](https://github.com/LedgerHQ/ledger-live/commit/29ae68a1ad2429a224106f355f35d1190c0f7359) Thanks [@gre-ledger](https://github.com/gre-ledger)! - fix: ship lib and lib-es in the npm tarballs again, which pnpm 11 dropped
|
|
32
64
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [[`8c888c4`](https://github.com/LedgerHQ/ledger-live/commit/8c888c4cfd699dc24b8e0522818feaac98698eb1), [`29ae68a`](https://github.com/LedgerHQ/ledger-live/commit/29ae68a1ad2429a224106f355f35d1190c0f7359), [`9c7d59d`](https://github.com/LedgerHQ/ledger-live/commit/9c7d59d0ffcc72ba746bc20e9ff744db9730503b)]:
|
|
68
|
+
- @ledgerhq/ledger-wallet-framework@3.9.0-next.0
|
|
69
|
+
- @ledgerhq/types-live@6.129.0-next.0
|
|
36
70
|
|
|
37
71
|
## 1.32.2
|
|
38
72
|
|
|
@@ -245,56 +279,4 @@
|
|
|
245
279
|
- @ledgerhq/ledger-wallet-framework@3.0.0-next.0
|
|
246
280
|
- @ledgerhq/types-live@6.120.0-next.0
|
|
247
281
|
|
|
248
|
-
## 1.29.0
|
|
249
|
-
|
|
250
|
-
### Minor Changes
|
|
251
|
-
|
|
252
|
-
- [#20278](https://github.com/LedgerHQ/ledger-live/pull/20278) [`3d24a89`](https://github.com/LedgerHQ/ledger-live/commit/3d24a898d59de55364ec29de29eaecb7ca14425d) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Drop the `@ledgerhq/errors` dependency, completing the errors sunset (LIVE-32915).
|
|
253
|
-
|
|
254
|
-
The `@ledgerhq/errors` package is removed from the monorepo: no workspace source imported it anymore, every error class it held now lives in the package that owns it (`@ledgerhq/ledger-wallet-framework/errors` for the ones shared across coin modules). `createCustomErrorClass` and the `serializeError` / `deserializeError` stack are gone with it — define errors as native classes and branch on `error.name`.
|
|
255
|
-
|
|
256
|
-
`@ledgerhq/errors@6.37.0` stays on npm for external consumers, but is no longer published from this repo.
|
|
257
|
-
|
|
258
|
-
- [#20280](https://github.com/LedgerHQ/ledger-live/pull/20280) [`9fcbe39`](https://github.com/LedgerHQ/ledger-live/commit/9fcbe39689ff122568ffb031a30dc3805ebb6add) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Stop depending on `@ledgerhq/errors` (LIVE-32915).
|
|
259
|
-
|
|
260
|
-
No workspace package declares it anymore, and none may again: `enforce-boundaries` now fails CI on any manifest that does. The classes it held live in the package that owns them, with `@ledgerhq/ledger-wallet-framework/errors` as the shared home below the coin layer.
|
|
261
|
-
|
|
262
|
-
The package itself stays in the repo so it keeps being published for external consumers, and is bridged to the external coin packages that still peer-depend on it via `pnpm.packageExtensions` using `workspace:*` (which reuses the single in-repo copy, so the dependency graph keeps exactly the physical copies it had before). [LedgerHQ/coin-modules#752](https://github.com/LedgerHQ/coin-modules/pull/752) removes that peerDependency upstream; once it is released the bridge can be dropped, but the package still needs publishing.
|
|
263
|
-
|
|
264
|
-
- [#20207](https://github.com/LedgerHQ/ledger-live/pull/20207) [`aee0e64`](https://github.com/LedgerHQ/ledger-live/commit/aee0e64b491aafc1ca8fea16b1ef124cb183770b) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Add Internet Computer (ICP) neuron staking to the coin module: create and top up neurons, start/stop dissolving, disburse, set/increase dissolve delay, follow, split, spawn, stake maturity, and add/remove hot keys, plus neuron listing. Governance operations are routed through the NNS governance canister via the device's update-call signing, alongside the existing ledger transfer path, and account synchronization now carries neuron data. Adds the `STAKE_NEURON` and `TOP_UP_NEURON` operation types, with matching icons and labels in the desktop and mobile operation history. (LIVE-28469)
|
|
265
|
-
|
|
266
|
-
- [#20527](https://github.com/LedgerHQ/ledger-live/pull/20527) [`28046d3`](https://github.com/LedgerHQ/ledger-live/commit/28046d31707d0290b56522c14b51623860b7a3f8) Thanks [@amaslakov](https://github.com/amaslakov)! - Add Internet Computer neuron staking hooks and narrow the ICP bridge account types
|
|
267
|
-
|
|
268
|
-
### Patch Changes
|
|
269
|
-
|
|
270
|
-
- Updated dependencies [[`aee0e64`](https://github.com/LedgerHQ/ledger-live/commit/aee0e64b491aafc1ca8fea16b1ef124cb183770b), [`1e9db75`](https://github.com/LedgerHQ/ledger-live/commit/1e9db750a4882f9db7f95278e33c00262487b37b), [`647804e`](https://github.com/LedgerHQ/ledger-live/commit/647804ee755d54776e6b8cd96328bee89fb035e4), [`53c3431`](https://github.com/LedgerHQ/ledger-live/commit/53c3431e01b3139ef689cb589bab0adee4ed6152)]:
|
|
271
|
-
- @ledgerhq/types-live@6.119.0
|
|
272
|
-
- @ledgerhq/ledger-wallet-framework@2.8.0
|
|
273
|
-
|
|
274
|
-
## 1.29.0-next.0
|
|
275
|
-
|
|
276
|
-
### Minor Changes
|
|
277
|
-
|
|
278
|
-
- [#20278](https://github.com/LedgerHQ/ledger-live/pull/20278) [`3d24a89`](https://github.com/LedgerHQ/ledger-live/commit/3d24a898d59de55364ec29de29eaecb7ca14425d) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Drop the `@ledgerhq/errors` dependency, completing the errors sunset (LIVE-32915).
|
|
279
|
-
|
|
280
|
-
The `@ledgerhq/errors` package is removed from the monorepo: no workspace source imported it anymore, every error class it held now lives in the package that owns it (`@ledgerhq/ledger-wallet-framework/errors` for the ones shared across coin modules). `createCustomErrorClass` and the `serializeError` / `deserializeError` stack are gone with it — define errors as native classes and branch on `error.name`.
|
|
281
|
-
|
|
282
|
-
`@ledgerhq/errors@6.37.0` stays on npm for external consumers, but is no longer published from this repo.
|
|
283
|
-
|
|
284
|
-
- [#20280](https://github.com/LedgerHQ/ledger-live/pull/20280) [`9fcbe39`](https://github.com/LedgerHQ/ledger-live/commit/9fcbe39689ff122568ffb031a30dc3805ebb6add) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Stop depending on `@ledgerhq/errors` (LIVE-32915).
|
|
285
|
-
|
|
286
|
-
No workspace package declares it anymore, and none may again: `enforce-boundaries` now fails CI on any manifest that does. The classes it held live in the package that owns them, with `@ledgerhq/ledger-wallet-framework/errors` as the shared home below the coin layer.
|
|
287
|
-
|
|
288
|
-
The package itself stays in the repo so it keeps being published for external consumers, and is bridged to the external coin packages that still peer-depend on it via `pnpm.packageExtensions` using `workspace:*` (which reuses the single in-repo copy, so the dependency graph keeps exactly the physical copies it had before). [LedgerHQ/coin-modules#752](https://github.com/LedgerHQ/coin-modules/pull/752) removes that peerDependency upstream; once it is released the bridge can be dropped, but the package still needs publishing.
|
|
289
|
-
|
|
290
|
-
- [#20207](https://github.com/LedgerHQ/ledger-live/pull/20207) [`aee0e64`](https://github.com/LedgerHQ/ledger-live/commit/aee0e64b491aafc1ca8fea16b1ef124cb183770b) Thanks [@lysyi3m](https://github.com/lysyi3m)! - Add Internet Computer (ICP) neuron staking to the coin module: create and top up neurons, start/stop dissolving, disburse, set/increase dissolve delay, follow, split, spawn, stake maturity, and add/remove hot keys, plus neuron listing. Governance operations are routed through the NNS governance canister via the device's update-call signing, alongside the existing ledger transfer path, and account synchronization now carries neuron data. Adds the `STAKE_NEURON` and `TOP_UP_NEURON` operation types, with matching icons and labels in the desktop and mobile operation history. (LIVE-28469)
|
|
291
|
-
|
|
292
|
-
- [#20527](https://github.com/LedgerHQ/ledger-live/pull/20527) [`28046d3`](https://github.com/LedgerHQ/ledger-live/commit/28046d31707d0290b56522c14b51623860b7a3f8) Thanks [@amaslakov](https://github.com/amaslakov)! - Add Internet Computer neuron staking hooks and narrow the ICP bridge account types
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- Updated dependencies [[`aee0e64`](https://github.com/LedgerHQ/ledger-live/commit/aee0e64b491aafc1ca8fea16b1ef124cb183770b), [`1e9db75`](https://github.com/LedgerHQ/ledger-live/commit/1e9db750a4882f9db7f95278e33c00262487b37b), [`647804e`](https://github.com/LedgerHQ/ledger-live/commit/647804ee755d54776e6b8cd96328bee89fb035e4), [`53c3431`](https://github.com/LedgerHQ/ledger-live/commit/53c3431e01b3139ef689cb589bab0adee4ed6152)]:
|
|
297
|
-
- @ledgerhq/types-live@6.119.0-next.0
|
|
298
|
-
- @ledgerhq/ledger-wallet-framework@2.8.0-next.0
|
|
299
|
-
|
|
300
282
|
<!-- changelog-pruned: older entries were removed to keep this file small. Full history is in `git log -p CHANGELOG.md` and in the GitHub release for each version. -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-internet_computer",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Ledger Internet Computer integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"license": "Apache-2.0",
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@icp-sdk/core": "6.1.1",
|
|
96
|
-
"@ledgerhq/coin-module-framework": "
|
|
97
|
-
"@ledgerhq/ledger-wallet-framework": "^3.9.0
|
|
96
|
+
"@ledgerhq/coin-module-framework": "10.0.0",
|
|
97
|
+
"@ledgerhq/ledger-wallet-framework": "^3.9.0",
|
|
98
98
|
"@ledgerhq/logs": "6.19.0",
|
|
99
|
-
"@ledgerhq/types-live": "^6.
|
|
99
|
+
"@ledgerhq/types-live": "^6.129.0",
|
|
100
100
|
"@noble/hashes": "1.8.0",
|
|
101
101
|
"bignumber.js": "^9.1.2",
|
|
102
102
|
"cbor": "10.0.11",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@ledgerhq/test-quarantine": "0.1.0",
|
|
109
|
-
"@ledgerhq/wallet-framework-test-setup": "^0.1.15
|
|
110
|
-
"@support/jest": "0.
|
|
109
|
+
"@ledgerhq/wallet-framework-test-setup": "^0.1.15",
|
|
110
|
+
"@support/jest": "0.2.0",
|
|
111
111
|
"@swc/core": "1.15.11",
|
|
112
112
|
"@swc/jest": "0.2.39",
|
|
113
113
|
"@types/invariant": "^2.2.2",
|