@ledgerhq/coin-framework 7.0.0-nightly.20260325070518 → 7.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @ledgerhq/coin-framework@6.20.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-framework
2
+ > @ledgerhq/coin-framework@7.0.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-framework
3
3
  > tsc --project tsconfig.build.json && tsc --project tsconfig.build.json -m esnext --moduleResolution bundler --outDir lib-es
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,24 +1,28 @@
1
1
  # @ledgerhq/coin-framework
2
2
 
3
- ## 7.0.0-nightly.20260325070518
3
+ ## 7.0.0
4
4
 
5
5
  ### Major Changes
6
6
 
7
7
  - [#15291](https://github.com/LedgerHQ/ledger-live/pull/15291) [`a221ae8`](https://github.com/LedgerHQ/ledger-live/commit/a221ae85b846c6d5dc6efb55ed873942d7720b05) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - feat: add `ledger-wallet-framework`
8
8
 
9
- ### Minor Changes
9
+ ### Patch Changes
10
10
 
11
- - [#15541](https://github.com/LedgerHQ/ledger-live/pull/15541) [`4af828d`](https://github.com/LedgerHQ/ledger-live/commit/4af828d0790bb3568dd095f89dd9f239f7565e84) Thanks [@cted-ledger](https://github.com/cted-ledger)! - coin-solana: Implement getStakes into alpaca api
12
- coin-framework: Add helper method isStakingTransactionIntent
11
+ - Updated dependencies [[`6dac7f9`](https://github.com/LedgerHQ/ledger-live/commit/6dac7f974c28dcae409c110a60061996490c5088), [`8ce1cb7`](https://github.com/LedgerHQ/ledger-live/commit/8ce1cb755b3e68c8688f9e828596d3c2605ef3cb), [`01c81b1`](https://github.com/LedgerHQ/ledger-live/commit/01c81b112ab326eff436f0f3279a1225c073f897)]:
12
+ - @ledgerhq/errors@6.32.0
13
+ - @ledgerhq/live-currency-format@0.7.0
13
14
 
14
- ### Patch Changes
15
+ ## 7.0.0-next.0
16
+
17
+ ### Major Changes
18
+
19
+ - [#15291](https://github.com/LedgerHQ/ledger-live/pull/15291) [`a221ae8`](https://github.com/LedgerHQ/ledger-live/commit/a221ae85b846c6d5dc6efb55ed873942d7720b05) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - feat: add `ledger-wallet-framework`
15
20
 
16
- - [#13358](https://github.com/LedgerHQ/ledger-live/pull/13358) [`41d172e`](https://github.com/LedgerHQ/ledger-live/commit/41d172e74bc074995b7290c4bb6d129276a484ff) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Add type comment assetOwner
21
+ ### Patch Changes
17
22
 
18
- - Updated dependencies [[`d0559d8`](https://github.com/LedgerHQ/ledger-live/commit/d0559d84e119c844d92dc82c7648d0d9dc6c6e20), [`6dac7f9`](https://github.com/LedgerHQ/ledger-live/commit/6dac7f974c28dcae409c110a60061996490c5088), [`8ce1cb7`](https://github.com/LedgerHQ/ledger-live/commit/8ce1cb755b3e68c8688f9e828596d3c2605ef3cb), [`01c81b1`](https://github.com/LedgerHQ/ledger-live/commit/01c81b112ab326eff436f0f3279a1225c073f897)]:
19
- - @ledgerhq/live-env@2.31.0-nightly.20260325070518
20
- - @ledgerhq/errors@6.32.0-nightly.20260325070518
21
- - @ledgerhq/live-currency-format@0.7.0-nightly.20260325070518
23
+ - Updated dependencies [[`6dac7f9`](https://github.com/LedgerHQ/ledger-live/commit/6dac7f974c28dcae409c110a60061996490c5088), [`8ce1cb7`](https://github.com/LedgerHQ/ledger-live/commit/8ce1cb755b3e68c8688f9e828596d3c2605ef3cb), [`01c81b1`](https://github.com/LedgerHQ/ledger-live/commit/01c81b112ab326eff436f0f3279a1225c073f897)]:
24
+ - @ledgerhq/errors@6.32.0-next.0
25
+ - @ledgerhq/live-currency-format@0.7.0-next.0
22
26
 
23
27
  ## 6.20.0
24
28
 
package/lib/utils.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import BigNumber from "bignumber.js";
2
- import { SendTransactionIntent, StakingTransactionIntent, TransactionIntent } from "./api";
2
+ import { SendTransactionIntent, TransactionIntent } from "./api";
3
3
  export declare function fromBigNumberToBigInt<T>(bigNumber: BigNumber | undefined, defaultValue?: T): bigint | T;
4
4
  export declare function isSendTransactionIntent(tx: TransactionIntent): tx is SendTransactionIntent;
5
- export declare function isStakingTransactionIntent(tx: TransactionIntent): tx is StakingTransactionIntent;
6
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE3F,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,YAAY,CAAC,EAAE,CAAC,GACf,MAAM,GAAG,CAAC,CAKZ;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,iBAAiB,GAAG,EAAE,IAAI,qBAAqB,CAE1F;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,iBAAiB,GAAG,EAAE,IAAI,wBAAwB,CAEhG"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjE,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,YAAY,CAAC,EAAE,CAAC,GACf,MAAM,GAAG,CAAC,CAKZ;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,iBAAiB,GAAG,EAAE,IAAI,qBAAqB,CAE1F"}
package/lib/utils.js CHANGED
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fromBigNumberToBigInt = fromBigNumberToBigInt;
4
4
  exports.isSendTransactionIntent = isSendTransactionIntent;
5
- exports.isStakingTransactionIntent = isStakingTransactionIntent;
6
5
  function fromBigNumberToBigInt(bigNumber, defaultValue) {
7
6
  if (bigNumber != null) {
8
7
  return BigInt(bigNumber.toFixed());
@@ -12,7 +11,4 @@ function fromBigNumberToBigInt(bigNumber, defaultValue) {
12
11
  function isSendTransactionIntent(tx) {
13
12
  return tx.intentType === "transaction";
14
13
  }
15
- function isStakingTransactionIntent(tx) {
16
- return tx.intentType === "staking";
17
- }
18
14
  //# sourceMappingURL=utils.js.map
package/lib/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAGA,sDAQC;AAED,0DAEC;AAED,gEAEC;AAhBD,SAAgB,qBAAqB,CACnC,SAAgC,EAChC,YAAgB;IAEhB,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,YAAiB,CAAC;AAC3B,CAAC;AAED,SAAgB,uBAAuB,CAAC,EAAqB;IAC3D,OAAO,EAAE,CAAC,UAAU,KAAK,aAAa,CAAC;AACzC,CAAC;AAED,SAAgB,0BAA0B,CAAC,EAAqB;IAC9D,OAAO,EAAE,CAAC,UAAU,KAAK,SAAS,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAGA,sDAQC;AAED,0DAEC;AAZD,SAAgB,qBAAqB,CACnC,SAAgC,EAChC,YAAgB;IAEhB,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,YAAiB,CAAC;AAC3B,CAAC;AAED,SAAgB,uBAAuB,CAAC,EAAqB;IAC3D,OAAO,EAAE,CAAC,UAAU,KAAK,aAAa,CAAC;AACzC,CAAC"}
package/lib-es/utils.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import BigNumber from "bignumber.js";
2
- import { SendTransactionIntent, StakingTransactionIntent, TransactionIntent } from "./api";
2
+ import { SendTransactionIntent, TransactionIntent } from "./api";
3
3
  export declare function fromBigNumberToBigInt<T>(bigNumber: BigNumber | undefined, defaultValue?: T): bigint | T;
4
4
  export declare function isSendTransactionIntent(tx: TransactionIntent): tx is SendTransactionIntent;
5
- export declare function isStakingTransactionIntent(tx: TransactionIntent): tx is StakingTransactionIntent;
6
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE3F,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,YAAY,CAAC,EAAE,CAAC,GACf,MAAM,GAAG,CAAC,CAKZ;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,iBAAiB,GAAG,EAAE,IAAI,qBAAqB,CAE1F;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,iBAAiB,GAAG,EAAE,IAAI,wBAAwB,CAEhG"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjE,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,YAAY,CAAC,EAAE,CAAC,GACf,MAAM,GAAG,CAAC,CAKZ;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,iBAAiB,GAAG,EAAE,IAAI,qBAAqB,CAE1F"}
package/lib-es/utils.js CHANGED
@@ -7,7 +7,4 @@ export function fromBigNumberToBigInt(bigNumber, defaultValue) {
7
7
  export function isSendTransactionIntent(tx) {
8
8
  return tx.intentType === "transaction";
9
9
  }
10
- export function isStakingTransactionIntent(tx) {
11
- return tx.intentType === "staking";
12
- }
13
10
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,qBAAqB,CACnC,SAAgC,EAChC,YAAgB;IAEhB,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,YAAiB,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,EAAqB;IAC3D,OAAO,EAAE,CAAC,UAAU,KAAK,aAAa,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EAAqB;IAC9D,OAAO,EAAE,CAAC,UAAU,KAAK,SAAS,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,qBAAqB,CACnC,SAAgC,EAChC,YAAgB;IAEhB,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,YAAiB,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,EAAqB;IAC3D,OAAO,EAAE,CAAC,UAAU,KAAK,aAAa,CAAC;AACzC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-framework",
3
- "version": "7.0.0-nightly.20260325070518",
3
+ "version": "7.0.0",
4
4
  "description": "Ledger framework for Coin integration",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -59,9 +59,9 @@
59
59
  "dependencies": {
60
60
  "bignumber.js": "^9.1.2",
61
61
  "expect": "30.2.0",
62
- "@ledgerhq/errors": "^6.32.0-nightly.20260325070518",
63
- "@ledgerhq/live-env": "^2.31.0-nightly.20260325070518",
64
- "@ledgerhq/live-currency-format": "^0.7.0-nightly.20260325070518",
62
+ "@ledgerhq/errors": "^6.32.0",
63
+ "@ledgerhq/live-env": "^2.30.0",
64
+ "@ledgerhq/live-currency-format": "^0.7.0",
65
65
  "@ledgerhq/types-cryptoassets": "^7.35.0"
66
66
  },
67
67
  "devDependencies": {
package/src/api/types.ts CHANGED
@@ -46,7 +46,7 @@ export type AssetInfo =
46
46
  | {
47
47
  type: string; // token, coin, fungible_asset, trc10, trc20, erc20, erc721, erc1155, etc.
48
48
  assetReference?: string; // contract address (trc20), tokenId (trc10),, etc
49
- assetOwner?: string; // Address of the asset contract deployer/creator
49
+ assetOwner?: string;
50
50
  name?: string; // e.g., token name, or asset name
51
51
  unit?: Unit;
52
52
  };
package/src/utils.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import BigNumber from "bignumber.js";
2
- import { SendTransactionIntent, StakingTransactionIntent, TransactionIntent } from "./api";
2
+ import { SendTransactionIntent, TransactionIntent } from "./api";
3
3
 
4
4
  export function fromBigNumberToBigInt<T>(
5
5
  bigNumber: BigNumber | undefined,
@@ -14,7 +14,3 @@ export function fromBigNumberToBigInt<T>(
14
14
  export function isSendTransactionIntent(tx: TransactionIntent): tx is SendTransactionIntent {
15
15
  return tx.intentType === "transaction";
16
16
  }
17
-
18
- export function isStakingTransactionIntent(tx: TransactionIntent): tx is StakingTransactionIntent {
19
- return tx.intentType === "staking";
20
- }
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
- "customConditions": [],
5
- "types": [
6
- "node"
7
- ]
4
+ "customConditions": []
8
5
  },
9
6
  "exclude": [
10
7
  "**/*.test.ts",
@@ -13,7 +10,6 @@
13
10
  "**/*.spec.tsx",
14
11
  "**/__tests__/**/*",
15
12
  "**/tests/**/*",
16
- "**/__mocks__/**/*",
17
13
  "**/*.test.js",
18
14
  "**/*.test.jsx",
19
15
  "**/*.spec.js",
package/tsconfig.json CHANGED
@@ -7,7 +7,6 @@
7
7
  "lib": ["es2020", "dom"],
8
8
  "types": ["node", "jest"],
9
9
  "outDir": "lib",
10
- "rootDir": "src",
11
10
  "exactOptionalPropertyTypes": true,
12
11
  "typeRoots": ["./types", "./node_modules/@types"]
13
12
  },