@ledgerhq/coin-framework 2.1.0 → 2.1.1-next.1
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 +18 -0
- package/lib/api/types.d.ts +4 -1
- package/lib/api/types.d.ts.map +1 -1
- package/lib-es/api/types.d.ts +4 -1
- package/lib-es/api/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/api/types.ts +10 -1
- package/src/currencies/__snapshots__/formatCurrencyUnit.test.ts.snap +44 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-framework@2.1.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-framework
|
|
2
|
+
> @ledgerhq/coin-framework@2.1.1-next.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-framework
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ledgerhq/coin-framework
|
|
2
2
|
|
|
3
|
+
## 2.1.1-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`0a59343`](https://github.com/LedgerHQ/ledger-live/commit/0a59343b591dab4e886c21cb47f7339231997331), [`ede6db0`](https://github.com/LedgerHQ/ledger-live/commit/ede6db0b94193cc9072aeb87e90f4098f0434af0), [`1461449`](https://github.com/LedgerHQ/ledger-live/commit/146144941c13e60182da8d79592f706d12a6f00e), [`bdfa413`](https://github.com/LedgerHQ/ledger-live/commit/bdfa4139fcbceabfd05a57e69b05e9ccf10efbe1)]:
|
|
8
|
+
- @ledgerhq/types-cryptoassets@7.20.0-next.1
|
|
9
|
+
- @ledgerhq/cryptoassets@13.13.0-next.2
|
|
10
|
+
- @ledgerhq/types-live@6.61.0-next.1
|
|
11
|
+
- @ledgerhq/live-env@2.6.0-next.2
|
|
12
|
+
- @ledgerhq/live-network@2.0.5-next.2
|
|
13
|
+
|
|
14
|
+
## 2.1.1-next.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`e4d9a5c`](https://github.com/LedgerHQ/ledger-live/commit/e4d9a5ce6c3e8f2b3829f8f5772e7ba712a4a50c)]:
|
|
19
|
+
- @ledgerhq/types-live@6.61.0-next.0
|
|
20
|
+
|
|
3
21
|
## 2.1.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/lib/api/types.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export type Transaction = {
|
|
|
22
22
|
amount: bigint;
|
|
23
23
|
fee: bigint;
|
|
24
24
|
} & Record<string, unknown>;
|
|
25
|
+
export type Asset = {
|
|
26
|
+
native: bigint;
|
|
27
|
+
};
|
|
25
28
|
export type Pagination = {
|
|
26
29
|
minHeight: number;
|
|
27
30
|
};
|
|
@@ -30,7 +33,7 @@ export type Api = {
|
|
|
30
33
|
combine: (tx: string, signature: string, pubkey?: string) => string;
|
|
31
34
|
craftTransaction: (address: string, transaction: Transaction, pubkey?: string) => Promise<string>;
|
|
32
35
|
estimateFees: (addr: string, amount: bigint) => Promise<bigint>;
|
|
33
|
-
getBalance: (address: string) => Promise<bigint>;
|
|
36
|
+
getBalance: (address: string) => Promise<Asset | bigint>;
|
|
34
37
|
lastBlock: () => Promise<BlockInfo>;
|
|
35
38
|
listOperations: (address: string, pagination: Pagination) => Promise<[Operation[], string]>;
|
|
36
39
|
};
|
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,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,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
|
|
23
23
|
fee: bigint;
|
|
24
24
|
} & Record<string, unknown>;
|
|
25
|
+
export type Asset = {
|
|
26
|
+
native: bigint;
|
|
27
|
+
};
|
|
25
28
|
export type Pagination = {
|
|
26
29
|
minHeight: number;
|
|
27
30
|
};
|
|
@@ -30,7 +33,7 @@ export type Api = {
|
|
|
30
33
|
combine: (tx: string, signature: string, pubkey?: string) => string;
|
|
31
34
|
craftTransaction: (address: string, transaction: Transaction, pubkey?: string) => Promise<string>;
|
|
32
35
|
estimateFees: (addr: string, amount: bigint) => Promise<bigint>;
|
|
33
|
-
getBalance: (address: string) => Promise<bigint>;
|
|
36
|
+
getBalance: (address: string) => Promise<Asset | bigint>;
|
|
34
37
|
lastBlock: () => Promise<BlockInfo>;
|
|
35
38
|
listOperations: (address: string, pagination: Pagination) => Promise<[Operation[], string]>;
|
|
36
39
|
};
|
|
@@ -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,IAA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AC,MAAM,CAAC,CAAC;IAC3C,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACpE,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAClG,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChE,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC;IACzD,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-framework",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1-next.1",
|
|
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.13.0-next.2",
|
|
95
95
|
"@ledgerhq/devices": "8.4.4",
|
|
96
96
|
"@ledgerhq/errors": "^6.19.1",
|
|
97
|
-
"@ledgerhq/live-env": "^2.
|
|
98
|
-
"@ledgerhq/live-network": "^2.0.
|
|
97
|
+
"@ledgerhq/live-env": "^2.6.0-next.2",
|
|
98
|
+
"@ledgerhq/live-network": "^2.0.5-next.2",
|
|
99
99
|
"@ledgerhq/logs": "^6.12.0",
|
|
100
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
|
101
|
-
"@ledgerhq/types-live": "^6.
|
|
100
|
+
"@ledgerhq/types-cryptoassets": "^7.20.0-next.1",
|
|
101
|
+
"@ledgerhq/types-live": "^6.61.0-next.1"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/invariant": "^2.2.2",
|
package/src/api/types.ts
CHANGED
|
@@ -27,6 +27,15 @@ export type Transaction = {
|
|
|
27
27
|
} & Record<string, unknown>; // Field containing dedicated value for each blockchain
|
|
28
28
|
|
|
29
29
|
// TODO add a `token: string` field to the pagination if we really need to support pagination (which is not the case for now)
|
|
30
|
+
export type Asset = {
|
|
31
|
+
native: bigint;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// TODO rename start to minHeight
|
|
35
|
+
// and add a `token: string` field to the pagination if we really need to support pagination
|
|
36
|
+
// (which is not the case for now)
|
|
37
|
+
// for now start is used as a minHeight from which we want to fetch ALL operations
|
|
38
|
+
// limit is unused for now
|
|
30
39
|
// see design document at https://ledgerhq.atlassian.net/wiki/spaces/BE/pages/5446205788/coin-modules+lama-adapter+APIs+refinements
|
|
31
40
|
export type Pagination = { minHeight: number };
|
|
32
41
|
export type Api = {
|
|
@@ -34,7 +43,7 @@ export type Api = {
|
|
|
34
43
|
combine: (tx: string, signature: string, pubkey?: string) => string;
|
|
35
44
|
craftTransaction: (address: string, transaction: Transaction, pubkey?: string) => Promise<string>;
|
|
36
45
|
estimateFees: (addr: string, amount: bigint) => Promise<bigint>;
|
|
37
|
-
getBalance: (address: string) => Promise<bigint>;
|
|
46
|
+
getBalance: (address: string) => Promise<Asset | bigint>;
|
|
38
47
|
lastBlock: () => Promise<BlockInfo>;
|
|
39
48
|
listOperations: (address: string, pagination: Pagination) => Promise<[Operation[], string]>;
|
|
40
49
|
};
|
|
@@ -278,6 +278,10 @@ exports[`formatCurrencyUnit with custom options with locale de-DE should correct
|
|
|
278
278
|
|
|
279
279
|
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Songbird unit (SGB) 1`] = `"0,012345678900000000- -SGB"`;
|
|
280
280
|
|
|
281
|
+
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Sonic Blaze unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
282
|
+
|
|
283
|
+
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Sonic unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
284
|
+
|
|
281
285
|
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Stacks unit (STX) 1`] = `"12.345.678.900,000000- -STX"`;
|
|
282
286
|
|
|
283
287
|
exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Stakenet unit (xsn) 1`] = `"123.456.789,00000000- -XSN"`;
|
|
@@ -618,6 +622,10 @@ exports[`formatCurrencyUnit with custom options with locale en-US should correct
|
|
|
618
622
|
|
|
619
623
|
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Songbird unit (SGB) 1`] = `"0.012345678900000000- -SGB"`;
|
|
620
624
|
|
|
625
|
+
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Sonic Blaze unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
626
|
+
|
|
627
|
+
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Sonic unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
628
|
+
|
|
621
629
|
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Stacks unit (STX) 1`] = `"12,345,678,900.000000- -STX"`;
|
|
622
630
|
|
|
623
631
|
exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Stakenet unit (xsn) 1`] = `"123,456,789.00000000- -XSN"`;
|
|
@@ -958,6 +966,10 @@ exports[`formatCurrencyUnit with custom options with locale es-ES should correct
|
|
|
958
966
|
|
|
959
967
|
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Songbird unit (SGB) 1`] = `"0,012345678900000000- -SGB"`;
|
|
960
968
|
|
|
969
|
+
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Sonic Blaze unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
970
|
+
|
|
971
|
+
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Sonic unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
972
|
+
|
|
961
973
|
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Stacks unit (STX) 1`] = `"12.345.678.900,000000- -STX"`;
|
|
962
974
|
|
|
963
975
|
exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Stakenet unit (xsn) 1`] = `"123.456.789,00000000- -XSN"`;
|
|
@@ -1298,6 +1310,10 @@ exports[`formatCurrencyUnit with custom options with locale fr-FR should correct
|
|
|
1298
1310
|
|
|
1299
1311
|
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Songbird unit (SGB) 1`] = `"0,012345678900000000- -SGB"`;
|
|
1300
1312
|
|
|
1313
|
+
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Sonic Blaze unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
1314
|
+
|
|
1315
|
+
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Sonic unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
1316
|
+
|
|
1301
1317
|
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Stacks unit (STX) 1`] = `"12 345 678 900,000000- -STX"`;
|
|
1302
1318
|
|
|
1303
1319
|
exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Stakenet unit (xsn) 1`] = `"123 456 789,00000000- -XSN"`;
|
|
@@ -1638,6 +1654,10 @@ exports[`formatCurrencyUnit with custom options with locale ja-JP should correct
|
|
|
1638
1654
|
|
|
1639
1655
|
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Songbird unit (SGB) 1`] = `"0.012345678900000000- -SGB"`;
|
|
1640
1656
|
|
|
1657
|
+
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Sonic Blaze unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
1658
|
+
|
|
1659
|
+
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Sonic unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
1660
|
+
|
|
1641
1661
|
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Stacks unit (STX) 1`] = `"12,345,678,900.000000- -STX"`;
|
|
1642
1662
|
|
|
1643
1663
|
exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Stakenet unit (xsn) 1`] = `"123,456,789.00000000- -XSN"`;
|
|
@@ -1978,6 +1998,10 @@ exports[`formatCurrencyUnit with custom options with locale ko-KR should correct
|
|
|
1978
1998
|
|
|
1979
1999
|
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Songbird unit (SGB) 1`] = `"0.012345678900000000- -SGB"`;
|
|
1980
2000
|
|
|
2001
|
+
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Sonic Blaze unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
2002
|
+
|
|
2003
|
+
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Sonic unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
2004
|
+
|
|
1981
2005
|
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Stacks unit (STX) 1`] = `"12,345,678,900.000000- -STX"`;
|
|
1982
2006
|
|
|
1983
2007
|
exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Stakenet unit (xsn) 1`] = `"123,456,789.00000000- -XSN"`;
|
|
@@ -2318,6 +2342,10 @@ exports[`formatCurrencyUnit with custom options with locale pt-BR should correct
|
|
|
2318
2342
|
|
|
2319
2343
|
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Songbird unit (SGB) 1`] = `"0,012345678900000000- -SGB"`;
|
|
2320
2344
|
|
|
2345
|
+
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Sonic Blaze unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
2346
|
+
|
|
2347
|
+
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Sonic unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
2348
|
+
|
|
2321
2349
|
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Stacks unit (STX) 1`] = `"12.345.678.900,000000- -STX"`;
|
|
2322
2350
|
|
|
2323
2351
|
exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Stakenet unit (xsn) 1`] = `"123.456.789,00000000- -XSN"`;
|
|
@@ -2658,6 +2686,10 @@ exports[`formatCurrencyUnit with custom options with locale ru-RU should correct
|
|
|
2658
2686
|
|
|
2659
2687
|
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Songbird unit (SGB) 1`] = `"0,012345678900000000- -SGB"`;
|
|
2660
2688
|
|
|
2689
|
+
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Sonic Blaze unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
2690
|
+
|
|
2691
|
+
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Sonic unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
2692
|
+
|
|
2661
2693
|
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Stacks unit (STX) 1`] = `"12 345 678 900,000000- -STX"`;
|
|
2662
2694
|
|
|
2663
2695
|
exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Stakenet unit (xsn) 1`] = `"123 456 789,00000000- -XSN"`;
|
|
@@ -2998,6 +3030,10 @@ exports[`formatCurrencyUnit with custom options with locale tr-TR should correct
|
|
|
2998
3030
|
|
|
2999
3031
|
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Songbird unit (SGB) 1`] = `"0,012345678900000000- -SGB"`;
|
|
3000
3032
|
|
|
3033
|
+
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Sonic Blaze unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
3034
|
+
|
|
3035
|
+
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Sonic unit (S) 1`] = `"0,012345678900000000- -S"`;
|
|
3036
|
+
|
|
3001
3037
|
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Stacks unit (STX) 1`] = `"12.345.678.900,000000- -STX"`;
|
|
3002
3038
|
|
|
3003
3039
|
exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Stakenet unit (xsn) 1`] = `"123.456.789,00000000- -XSN"`;
|
|
@@ -3338,6 +3374,10 @@ exports[`formatCurrencyUnit with custom options with locale zh-CN should correct
|
|
|
3338
3374
|
|
|
3339
3375
|
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Songbird unit (SGB) 1`] = `"0.012345678900000000- -SGB"`;
|
|
3340
3376
|
|
|
3377
|
+
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Sonic Blaze unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
3378
|
+
|
|
3379
|
+
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Sonic unit (S) 1`] = `"0.012345678900000000- -S"`;
|
|
3380
|
+
|
|
3341
3381
|
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Stacks unit (STX) 1`] = `"12,345,678,900.000000- -STX"`;
|
|
3342
3382
|
|
|
3343
3383
|
exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Stakenet unit (xsn) 1`] = `"123,456,789.00000000- -XSN"`;
|
|
@@ -3678,6 +3718,10 @@ exports[`formatCurrencyUnit with default options should correctly format Solana
|
|
|
3678
3718
|
|
|
3679
3719
|
exports[`formatCurrencyUnit with default options should correctly format Songbird unit (SGB) 1`] = `"0.0123456"`;
|
|
3680
3720
|
|
|
3721
|
+
exports[`formatCurrencyUnit with default options should correctly format Sonic Blaze unit (S) 1`] = `"0.0123456"`;
|
|
3722
|
+
|
|
3723
|
+
exports[`formatCurrencyUnit with default options should correctly format Sonic unit (S) 1`] = `"0.0123456"`;
|
|
3724
|
+
|
|
3681
3725
|
exports[`formatCurrencyUnit with default options should correctly format Stacks unit (STX) 1`] = `"12,345,678,900"`;
|
|
3682
3726
|
|
|
3683
3727
|
exports[`formatCurrencyUnit with default options should correctly format Stakenet unit (xsn) 1`] = `"123,456,789"`;
|