@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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +14 -10
- package/lib/utils.d.ts +1 -2
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +0 -4
- package/lib/utils.js.map +1 -1
- package/lib-es/utils.d.ts +1 -2
- package/lib-es/utils.d.ts.map +1 -1
- package/lib-es/utils.js +0 -3
- package/lib-es/utils.js.map +1 -1
- package/package.json +4 -4
- package/src/api/types.ts +1 -1
- package/src/utils.ts +1 -5
- package/tsconfig.build.json +1 -5
- package/tsconfig.json +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/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
|
|
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
|
-
###
|
|
9
|
+
### Patch Changes
|
|
10
10
|
|
|
11
|
-
- [
|
|
12
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21
|
+
### Patch Changes
|
|
17
22
|
|
|
18
|
-
- Updated dependencies [[`
|
|
19
|
-
- @ledgerhq/
|
|
20
|
-
- @ledgerhq/
|
|
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,
|
|
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
|
package/lib/utils.d.ts.map
CHANGED
|
@@ -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,
|
|
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;
|
|
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,
|
|
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
|
package/lib-es/utils.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
package/lib-es/utils.js.map
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
63
|
-
"@ledgerhq/live-env": "^2.
|
|
64
|
-
"@ledgerhq/live-currency-format": "^0.7.0
|
|
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;
|
|
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,
|
|
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
|
-
}
|
package/tsconfig.build.json
CHANGED
|
@@ -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",
|