@ledgerhq/coin-framework 1.0.0 → 2.0.0-next.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 +11 -0
- package/lib/api/types.d.ts +1 -2
- package/lib/api/types.d.ts.map +1 -1
- package/lib/bridge/jsHelpers.d.ts +1 -0
- package/lib/bridge/jsHelpers.d.ts.map +1 -1
- package/lib-es/api/types.d.ts +1 -2
- package/lib-es/api/types.d.ts.map +1 -1
- package/lib-es/bridge/jsHelpers.d.ts +1 -0
- package/lib-es/bridge/jsHelpers.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/api/types.ts +2 -7
- package/src/currencies/__snapshots__/formatCurrencyUnit.test.ts.snap +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ledgerhq/coin-framework
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#9076](https://github.com/LedgerHQ/ledger-live/pull/9076) [`58c1a9c`](https://github.com/LedgerHQ/ledger-live/commit/58c1a9c68b2ce2ebef9dbd7af00ae09efd7a29dc) Thanks [@jprudent](https://github.com/jprudent)! - Evolve transaction type to allow arbitrary crafting properties
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`ff40e9a`](https://github.com/LedgerHQ/ledger-live/commit/ff40e9a00d325e5b46cb069936ba2a5781c601b5)]:
|
|
12
|
+
- @ledgerhq/cryptoassets@13.11.0-next.0
|
|
13
|
+
|
|
3
14
|
## 1.0.0
|
|
4
15
|
|
|
5
16
|
### Major Changes
|
package/lib/api/types.d.ts
CHANGED
package/lib/api/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,MAAM,M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M;mBACD,MAAM;WACd,MAAM;yBAsBlB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,iBAAiB,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAGzF;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEvE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASlD"}
|
package/lib-es/api/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,yBAAyB,EAAE,MAAM,CAAC;IAElC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AA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,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChE,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,SAAS,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;CAC7F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsHelpers.d.ts","sourceRoot":"","sources":["../../src/bridge/jsHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsHelpers.d.ts","sourceRoot":"","sources":["../../src/bridge/jsHelpers.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,UAAU,EAAkB,MAAM,MAAM,CAAC;AAqBlD,OAA0B,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,QAAQ,EAER,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,sBAAsB,CAAC;AAG9B,KAAK,aAAa,GAAG,CAAC,EACpB,KAAK,EACL,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB,Q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C,KAAK,CAAC;qBACtB,OAAO;MACtB,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CA2EhC,CAAC;AAmCP,eAAO,MAAM,gBAAgB;qBAMR,gBAAgB,CAAC,CAAC;yBACd,oBAAoB;kBAC3B,YAAY;MACxB,cAAc,CAAC,cAAc,CAiN7B,CAAC;AAEP,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EAClE,YAAY,EAAE,YAAY,EAC1B,EACE,sBAAsB,GACvB,GAAE;IACD,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,GAAG,CAAC;CACzC,aAGK,CAAC;aAMC,OAAO;cACN,MAAM;mBACD,MAAM;WACd,MAAM;yBAsBlB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,iBAAiB,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAGzF;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEvE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASlD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-framework",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-next.0",
|
|
4
4
|
"description": "Ledger framework for Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"lodash": "^4.17.21",
|
|
92
92
|
"prando": "^6.0.1",
|
|
93
93
|
"rxjs": "^7.8.1",
|
|
94
|
-
"@ledgerhq/cryptoassets": "^13.
|
|
94
|
+
"@ledgerhq/cryptoassets": "^13.11.0-next.0",
|
|
95
95
|
"@ledgerhq/devices": "8.4.4",
|
|
96
96
|
"@ledgerhq/errors": "^6.19.1",
|
|
97
97
|
"@ledgerhq/live-env": "^2.5.0",
|
|
98
98
|
"@ledgerhq/live-network": "^2.0.4",
|
|
99
99
|
"@ledgerhq/logs": "^6.12.0",
|
|
100
|
-
"@ledgerhq/types-
|
|
101
|
-
"@ledgerhq/types-
|
|
100
|
+
"@ledgerhq/types-live": "^6.59.0",
|
|
101
|
+
"@ledgerhq/types-cryptoassets": "^7.19.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/invariant": "^2.2.2",
|
package/src/api/types.ts
CHANGED
|
@@ -24,14 +24,9 @@ export type Transaction = {
|
|
|
24
24
|
recipient: string;
|
|
25
25
|
amount: bigint;
|
|
26
26
|
fee: bigint;
|
|
27
|
-
|
|
28
|
-
};
|
|
27
|
+
} & Record<string, unknown>; // Field containing dedicated value for each blockchain
|
|
29
28
|
|
|
30
|
-
// TODO
|
|
31
|
-
// and add a `token: string` field to the pagination if we really need to support pagination
|
|
32
|
-
// (which is not the case for now)
|
|
33
|
-
// for now start is used as a minHeight from which we want to fetch ALL operations
|
|
34
|
-
// limit is unused for now
|
|
29
|
+
// TODO add a `token: string` field to the pagination if we really need to support pagination (which is not the case for now)
|
|
35
30
|
// see design document at https://ledgerhq.atlassian.net/wiki/spaces/BE/pages/5446205788/coin-modules+lama-adapter+APIs+refinements
|
|
36
31
|
export type Pagination = { minHeight: number };
|
|
37
32
|
export type Api = {
|
|
@@ -300,7 +300,7 @@ exports[`formatCurrencyUnit with custom options with locale de-DE should correct
|
|
|
300
300
|
|
|
301
301
|
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Thundercore unit (TT) 1`] = `"0,012345678900000000- -TT"`;
|
|
302
302
|
|
|
303
|
-
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
303
|
+
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format TomoChain unit (TOMO) 1`] = `"0,012345678900000000- -TOMO"`;
|
|
304
304
|
|
|
305
305
|
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Tron unit (TRX) 1`] = `"12.345.678.900,000000- -TRX"`;
|
|
306
306
|
|
|
@@ -640,7 +640,7 @@ exports[`formatCurrencyUnit with custom options with locale en-US should correct
|
|
|
640
640
|
|
|
641
641
|
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Thundercore unit (TT) 1`] = `"0.012345678900000000- -TT"`;
|
|
642
642
|
|
|
643
|
-
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
643
|
+
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format TomoChain unit (TOMO) 1`] = `"0.012345678900000000- -TOMO"`;
|
|
644
644
|
|
|
645
645
|
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Tron unit (TRX) 1`] = `"12,345,678,900.000000- -TRX"`;
|
|
646
646
|
|
|
@@ -980,7 +980,7 @@ exports[`formatCurrencyUnit with custom options with locale es-ES should correct
|
|
|
980
980
|
|
|
981
981
|
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Thundercore unit (TT) 1`] = `"0,012345678900000000- -TT"`;
|
|
982
982
|
|
|
983
|
-
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
983
|
+
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format TomoChain unit (TOMO) 1`] = `"0,012345678900000000- -TOMO"`;
|
|
984
984
|
|
|
985
985
|
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Tron unit (TRX) 1`] = `"12.345.678.900,000000- -TRX"`;
|
|
986
986
|
|
|
@@ -1320,7 +1320,7 @@ exports[`formatCurrencyUnit with custom options with locale fr-FR should correct
|
|
|
1320
1320
|
|
|
1321
1321
|
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Thundercore unit (TT) 1`] = `"0,012345678900000000- -TT"`;
|
|
1322
1322
|
|
|
1323
|
-
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
1323
|
+
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format TomoChain unit (TOMO) 1`] = `"0,012345678900000000- -TOMO"`;
|
|
1324
1324
|
|
|
1325
1325
|
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Tron unit (TRX) 1`] = `"12 345 678 900,000000- -TRX"`;
|
|
1326
1326
|
|
|
@@ -1660,7 +1660,7 @@ exports[`formatCurrencyUnit with custom options with locale ja-JP should correct
|
|
|
1660
1660
|
|
|
1661
1661
|
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Thundercore unit (TT) 1`] = `"0.012345678900000000- -TT"`;
|
|
1662
1662
|
|
|
1663
|
-
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
1663
|
+
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format TomoChain unit (TOMO) 1`] = `"0.012345678900000000- -TOMO"`;
|
|
1664
1664
|
|
|
1665
1665
|
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Tron unit (TRX) 1`] = `"12,345,678,900.000000- -TRX"`;
|
|
1666
1666
|
|
|
@@ -2000,7 +2000,7 @@ exports[`formatCurrencyUnit with custom options with locale ko-KR should correct
|
|
|
2000
2000
|
|
|
2001
2001
|
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Thundercore unit (TT) 1`] = `"0.012345678900000000- -TT"`;
|
|
2002
2002
|
|
|
2003
|
-
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
2003
|
+
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format TomoChain unit (TOMO) 1`] = `"0.012345678900000000- -TOMO"`;
|
|
2004
2004
|
|
|
2005
2005
|
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Tron unit (TRX) 1`] = `"12,345,678,900.000000- -TRX"`;
|
|
2006
2006
|
|
|
@@ -2340,7 +2340,7 @@ exports[`formatCurrencyUnit with custom options with locale pt-BR should correct
|
|
|
2340
2340
|
|
|
2341
2341
|
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Thundercore unit (TT) 1`] = `"0,012345678900000000- -TT"`;
|
|
2342
2342
|
|
|
2343
|
-
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
2343
|
+
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format TomoChain unit (TOMO) 1`] = `"0,012345678900000000- -TOMO"`;
|
|
2344
2344
|
|
|
2345
2345
|
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Tron unit (TRX) 1`] = `"12.345.678.900,000000- -TRX"`;
|
|
2346
2346
|
|
|
@@ -2680,7 +2680,7 @@ exports[`formatCurrencyUnit with custom options with locale ru-RU should correct
|
|
|
2680
2680
|
|
|
2681
2681
|
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Thundercore unit (TT) 1`] = `"0,012345678900000000- -TT"`;
|
|
2682
2682
|
|
|
2683
|
-
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
2683
|
+
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format TomoChain unit (TOMO) 1`] = `"0,012345678900000000- -TOMO"`;
|
|
2684
2684
|
|
|
2685
2685
|
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Tron unit (TRX) 1`] = `"12 345 678 900,000000- -TRX"`;
|
|
2686
2686
|
|
|
@@ -3020,7 +3020,7 @@ exports[`formatCurrencyUnit with custom options with locale tr-TR should correct
|
|
|
3020
3020
|
|
|
3021
3021
|
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Thundercore unit (TT) 1`] = `"0,012345678900000000- -TT"`;
|
|
3022
3022
|
|
|
3023
|
-
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
3023
|
+
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format TomoChain unit (TOMO) 1`] = `"0,012345678900000000- -TOMO"`;
|
|
3024
3024
|
|
|
3025
3025
|
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Tron unit (TRX) 1`] = `"12.345.678.900,000000- -TRX"`;
|
|
3026
3026
|
|
|
@@ -3360,7 +3360,7 @@ exports[`formatCurrencyUnit with custom options with locale zh-CN should correct
|
|
|
3360
3360
|
|
|
3361
3361
|
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Thundercore unit (TT) 1`] = `"0.012345678900000000- -TT"`;
|
|
3362
3362
|
|
|
3363
|
-
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
3363
|
+
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format TomoChain unit (TOMO) 1`] = `"0.012345678900000000- -TOMO"`;
|
|
3364
3364
|
|
|
3365
3365
|
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Tron unit (TRX) 1`] = `"12,345,678,900.000000- -TRX"`;
|
|
3366
3366
|
|
|
@@ -3700,7 +3700,7 @@ exports[`formatCurrencyUnit with default options should correctly format Tezos u
|
|
|
3700
3700
|
|
|
3701
3701
|
exports[`formatCurrencyUnit with default options should correctly format Thundercore unit (TT) 1`] = `"0.0123456"`;
|
|
3702
3702
|
|
|
3703
|
-
exports[`formatCurrencyUnit with default options should correctly format TomoChain unit (TOMO) 1`] = `"
|
|
3703
|
+
exports[`formatCurrencyUnit with default options should correctly format TomoChain unit (TOMO) 1`] = `"0.0123456"`;
|
|
3704
3704
|
|
|
3705
3705
|
exports[`formatCurrencyUnit with default options should correctly format Tron unit (TRX) 1`] = `"12,345,678,900"`;
|
|
3706
3706
|
|