@ledgerhq/coin-internet_computer 3.0.0 → 3.0.1-nightly.20261107020317

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @ledgerhq/coin-internet_computer
2
2
 
3
+ ## 3.0.1-nightly.20261107020317
4
+
5
+ ### Patch Changes
6
+
7
+ - [#24373](https://github.com/LedgerHQ/ledger-live/pull/24373) [`6ab5a87`](https://github.com/LedgerHQ/ledger-live/commit/6ab5a87d796726b2fc38b34862209abf82521f72) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - Export the default coin configs from each coin package and wrap them in `ledger-live-common` (ADR-063). `coin-celo` and `coin-cosmos` replace their `celoConfig` and `cosmosConfig` exports, which wrapped the defaults in `ConfigInfo`, with plain typed `celoDefaults` and `cosmosDefaults`; their `features` now use the `status` key instead of `type`, Desmos gets the active status it was missing, and Gonka defaults to a minimum gas price of 1 ngonka
8
+
9
+ - Updated dependencies [[`d701bc7`](https://github.com/LedgerHQ/ledger-live/commit/d701bc7564f9f479e0cc867ef76ec40b73f5c49c), [`d36ed0a`](https://github.com/LedgerHQ/ledger-live/commit/d36ed0a5b624f1842e2ad3a857d502621dfb5fb9), [`e051c84`](https://github.com/LedgerHQ/ledger-live/commit/e051c84a8486b78327ea49500c38b6e2138bbc21), [`3a0d8aa`](https://github.com/LedgerHQ/ledger-live/commit/3a0d8aa1d4904fa0ccc53528ec092bc32a63dcd4), [`0d83181`](https://github.com/LedgerHQ/ledger-live/commit/0d83181e9a96f55811f2ce5532527739bdb7e62a), [`e186896`](https://github.com/LedgerHQ/ledger-live/commit/e186896213df32feb1e6a80e38f45cf189655866), [`d3f59ae`](https://github.com/LedgerHQ/ledger-live/commit/d3f59ae3fc6b9d9240bd81df9f93c1223cb64ddb)]:
10
+ - @ledgerhq/ledger-wallet-framework@3.10.1-nightly.20261107020317
11
+ - @ledgerhq/types-live@6.131.0-nightly.20261107020317
12
+
3
13
  ## 3.0.0
4
14
 
5
15
  ### Major Changes
package/lib/config.d.ts CHANGED
@@ -11,4 +11,21 @@ export type IcpContext = Context<IcpCurrencyConfig>;
11
11
  * Trailing slashes are dropped, because broadcasts append `/api/...` to it as a string.
12
12
  */
13
13
  export declare const nodeUrl: (config?: IcpCurrencyConfig) => string;
14
+ export declare const internet_computerDefaults: {
15
+ internet_computer: {
16
+ status: {
17
+ type: "active";
18
+ features: {
19
+ id: "blockchain_txs";
20
+ status: "active";
21
+ }[];
22
+ };
23
+ name: string;
24
+ unit: {
25
+ name: string;
26
+ code: string;
27
+ magnitude: number;
28
+ };
29
+ };
30
+ };
14
31
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAGtF,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE5E,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,OAAO,YAAa,iBAAiB,KAAG,MAIpD,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAGtF,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE5E,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,OAAO,YAAa,iBAAiB,KAAG,MAIpD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;YAO1B,IAAI;YAAS,IAAI;YAAS,SAAS;;;CAEF,CAAC"}
package/lib/config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nodeUrl = void 0;
3
+ exports.internet_computerDefaults = exports.nodeUrl = void 0;
4
4
  const consts_1 = require("./consts");
5
5
  /**
6
6
  * The node to reach: `node.url` from the config, or mainnet when the config or field is absent.
@@ -13,4 +13,14 @@ const nodeUrl = (config) => {
13
13
  return url;
14
14
  };
15
15
  exports.nodeUrl = nodeUrl;
16
+ exports.internet_computerDefaults = {
17
+ internet_computer: {
18
+ status: {
19
+ type: "active",
20
+ features: [{ id: "blockchain_txs", status: "active" }],
21
+ },
22
+ name: "Internet Computer",
23
+ unit: { name: "ICP", code: "ICP", magnitude: 8 },
24
+ },
25
+ };
16
26
  //# sourceMappingURL=config.js.map
package/lib/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AACA,qCAA2C;AAO3C;;;GAGG;AACI,MAAM,OAAO,GAAG,CAAC,MAA0B,EAAU,EAAE;IAC5D,IAAI,GAAG,GAAG,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,wBAAe,CAAC;IAC/C,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAJW,QAAA,OAAO,GAAP,OAAO,CAIlB"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AACA,qCAA2C;AAO3C;;;GAGG;AACI,MAAM,OAAO,GAAG,CAAC,MAA0B,EAAU,EAAE;IAC5D,IAAI,GAAG,GAAG,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,wBAAe,CAAC;IAC/C,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAJW,QAAA,OAAO,GAAP,OAAO,CAIlB;AAEW,QAAA,yBAAyB,GAAG;IACvC,iBAAiB,EAAE;QACjB,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;SACvD;QACD,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;KACjD;CAC0C,CAAC"}
@@ -11,4 +11,21 @@ export type IcpContext = Context<IcpCurrencyConfig>;
11
11
  * Trailing slashes are dropped, because broadcasts append `/api/...` to it as a string.
12
12
  */
13
13
  export declare const nodeUrl: (config?: IcpCurrencyConfig) => string;
14
+ export declare const internet_computerDefaults: {
15
+ internet_computer: {
16
+ status: {
17
+ type: "active";
18
+ features: {
19
+ id: "blockchain_txs";
20
+ status: "active";
21
+ }[];
22
+ };
23
+ name: string;
24
+ unit: {
25
+ name: string;
26
+ code: string;
27
+ magnitude: number;
28
+ };
29
+ };
30
+ };
14
31
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAGtF,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE5E,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,OAAO,YAAa,iBAAiB,KAAG,MAIpD,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAGtF,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE5E,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,OAAO,YAAa,iBAAiB,KAAG,MAIpD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;YAO1B,IAAI;YAAS,IAAI;YAAS,SAAS;;;CAEF,CAAC"}
package/lib-es/config.js CHANGED
@@ -9,4 +9,14 @@ export const nodeUrl = (config) => {
9
9
  url = url.slice(0, -1);
10
10
  return url;
11
11
  };
12
+ export const internet_computerDefaults = {
13
+ internet_computer: {
14
+ status: {
15
+ type: "active",
16
+ features: [{ id: "blockchain_txs", status: "active" }],
17
+ },
18
+ name: "Internet Computer",
19
+ unit: { name: "ICP", code: "ICP", magnitude: 8 },
20
+ },
21
+ };
12
22
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAO3C;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAA0B,EAAU,EAAE;IAC5D,IAAI,GAAG,GAAG,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,eAAe,CAAC;IAC/C,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAO3C;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAA0B,EAAU,EAAE;IAC5D,IAAI,GAAG,GAAG,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,eAAe,CAAC;IAC/C,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE;QACjB,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;SACvD;QACD,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;KACjD;CAC0C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-internet_computer",
3
- "version": "3.0.0",
3
+ "version": "3.0.1-nightly.20261107020317",
4
4
  "description": "Ledger Internet Computer integration",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -94,9 +94,9 @@
94
94
  "dependencies": {
95
95
  "@icp-sdk/core": "6.1.1",
96
96
  "@ledgerhq/coin-module-framework": "11.0.1",
97
- "@ledgerhq/ledger-wallet-framework": "^3.10.0",
98
- "@ledgerhq/logs": "6.19.0",
99
- "@ledgerhq/types-live": "^6.130.0",
97
+ "@ledgerhq/ledger-wallet-framework": "^3.10.1-nightly.20261107020317",
98
+ "@ledgerhq/logs": "6.20.0",
99
+ "@ledgerhq/types-live": "^6.131.0-nightly.20261107020317",
100
100
  "@noble/hashes": "1.8.0",
101
101
  "bignumber.js": "^9.1.2",
102
102
  "cbor": "10.0.11",
@@ -106,20 +106,22 @@
106
106
  },
107
107
  "devDependencies": {
108
108
  "@ledgerhq/test-quarantine": "0.1.0",
109
- "@ledgerhq/wallet-framework-test-setup": "^0.1.16",
109
+ "@ledgerhq/wallet-framework-test-setup": "^0.1.17-nightly.20261107020317",
110
110
  "@support/jest": "0.2.0",
111
111
  "@swc/core": "1.15.11",
112
112
  "@swc/jest": "0.2.39",
113
- "@types/invariant": "^2.2.2",
113
+ "@types/invariant": "2.2.37",
114
114
  "@types/jest": "30.0.0",
115
115
  "@types/lodash": "^4.17.21",
116
116
  "@types/node": "24.12.0",
117
- "@types/semver": "7.7.1",
117
+ "@typescript/native": "npm:typescript@^7.0.2",
118
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
118
119
  "axios": "1.20.0",
119
120
  "jest": "30.5.0",
120
121
  "msw": "^2.7.3",
121
- "oxfmt": "0.67.0",
122
- "oxlint": "1.82.0"
122
+ "oxfmt": "0.75.0",
123
+ "oxlint": "1.90.0",
124
+ "rimraf": "4.4.1"
123
125
  },
124
126
  "files": [
125
127
  "lib",
package/src/config.ts CHANGED
@@ -15,3 +15,14 @@ export const nodeUrl = (config?: IcpCurrencyConfig): string => {
15
15
  while (url.endsWith("/")) url = url.slice(0, -1);
16
16
  return url;
17
17
  };
18
+
19
+ export const internet_computerDefaults = {
20
+ internet_computer: {
21
+ status: {
22
+ type: "active",
23
+ features: [{ id: "blockchain_txs", status: "active" }],
24
+ },
25
+ name: "Internet Computer",
26
+ unit: { name: "ICP", code: "ICP", magnitude: 8 },
27
+ },
28
+ } satisfies Record<string, IcpCurrencyConfig>;