@ledgerhq/coin-filecoin 1.13.0-nightly.8 → 1.13.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-filecoin@1.13.0-nightly.7 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-filecoin
2
+ > @ledgerhq/coin-filecoin@1.13.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-filecoin
3
3
  > tsc --outDir lib --module commonjs --moduleResolution node10 && tsc -m ES6 --outDir lib-es
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,83 +1,31 @@
1
1
  # @ledgerhq/coin-filecoin
2
2
 
3
- ## 1.13.0-nightly.8
3
+ ## 1.13.0
4
4
 
5
- ### Patch Changes
6
-
7
- - Updated dependencies [[`c96d73f`](https://github.com/LedgerHQ/ledger-live/commit/c96d73fed0a75a9c208f78d51c34b742703a7dda)]:
8
- - @ledgerhq/coin-framework@6.7.0-nightly.8
9
-
10
- ## 1.13.0-nightly.7
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies [[`b4ceaff`](https://github.com/LedgerHQ/ledger-live/commit/b4ceaff2ecf68d8a14e09801c76ab0b014c45286), [`f392f69`](https://github.com/LedgerHQ/ledger-live/commit/f392f6912f445cc2f7cf4dfcfd030fa3da76f736), [`cbc0648`](https://github.com/LedgerHQ/ledger-live/commit/cbc064885d8e0459e40d327a2e5389204b3ec705)]:
15
- - @ledgerhq/cryptoassets@13.31.0-nightly.7
16
- - @ledgerhq/types-live@6.87.0-nightly.5
17
- - @ledgerhq/live-env@2.19.0-nightly.2
18
- - @ledgerhq/coin-framework@6.7.0-nightly.7
19
- - @ledgerhq/live-network@2.0.20-nightly.3
20
-
21
- ## 1.13.0-nightly.6
22
-
23
- ### Patch Changes
24
-
25
- - Updated dependencies [[`51995e9`](https://github.com/LedgerHQ/ledger-live/commit/51995e96a9e1fafe14c7cbe45ce0b1ec8ebd106b)]:
26
- - @ledgerhq/types-live@6.87.0-nightly.4
27
- - @ledgerhq/coin-framework@6.7.0-nightly.6
28
- - @ledgerhq/cryptoassets@13.31.0-nightly.6
29
-
30
- ## 1.13.0-nightly.5
31
-
32
- ### Patch Changes
33
-
34
- - Updated dependencies [[`cadf2e1`](https://github.com/LedgerHQ/ledger-live/commit/cadf2e1dfb09248d3f77d96f94ae774425dbca75)]:
35
- - @ledgerhq/live-env@2.19.0-nightly.1
36
- - @ledgerhq/coin-framework@6.7.0-nightly.5
37
- - @ledgerhq/cryptoassets@13.31.0-nightly.5
38
- - @ledgerhq/live-network@2.0.20-nightly.2
39
-
40
- ## 1.13.0-nightly.4
41
-
42
- ### Patch Changes
43
-
44
- - Updated dependencies [[`7744980`](https://github.com/LedgerHQ/ledger-live/commit/774498090411f1a6d6c06395dda1fc7cd24adf24), [`759064d`](https://github.com/LedgerHQ/ledger-live/commit/759064d4815c636af2d73ba548a85b4f53e7b491)]:
45
- - @ledgerhq/types-live@6.87.0-nightly.3
46
- - @ledgerhq/errors@6.27.0-nightly.0
47
- - @ledgerhq/coin-framework@6.7.0-nightly.4
48
- - @ledgerhq/cryptoassets@13.31.0-nightly.4
49
- - @ledgerhq/devices@8.6.2-nightly.0
50
- - @ledgerhq/live-network@2.0.20-nightly.1
51
-
52
- ## 1.13.0-nightly.3
53
-
54
- ### Patch Changes
55
-
56
- - Updated dependencies [[`8645f01`](https://github.com/LedgerHQ/ledger-live/commit/8645f016191d29a55f6b0ca6e4b1d1909fd35445)]:
57
- - @ledgerhq/types-live@6.87.0-nightly.2
58
- - @ledgerhq/coin-framework@6.7.0-nightly.3
59
- - @ledgerhq/cryptoassets@13.31.0-nightly.3
5
+ ### Minor Changes
60
6
 
61
- ## 1.13.0-nightly.2
7
+ - [#12015](https://github.com/LedgerHQ/ledger-live/pull/12015) [`03af552`](https://github.com/LedgerHQ/ledger-live/commit/03af552b621e19e31747a65b1870dfe8d3bb005b) Thanks [@Justkant](https://github.com/Justkant)! - feat: new signRawTransaction to support any XRP transaction with wallet-api
62
8
 
63
9
  ### Patch Changes
64
10
 
65
- - Updated dependencies [[`c6a676f`](https://github.com/LedgerHQ/ledger-live/commit/c6a676ff80581ac19b896adf44d54812983b72da), [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6)]:
66
- - @ledgerhq/coin-framework@6.7.0-nightly.2
67
- - @ledgerhq/cryptoassets@13.31.0-nightly.2
11
+ - Updated dependencies [[`ea16f59`](https://github.com/LedgerHQ/ledger-live/commit/ea16f592e85019a1b77287a7f2b975c6fcffc74c), [`b88faa1`](https://github.com/LedgerHQ/ledger-live/commit/b88faa18e2f5cd309b54fc3157a44db606846cc5), [`cfe65ca`](https://github.com/LedgerHQ/ledger-live/commit/cfe65cafa268be4e53197ee163ce78f28ed72592), [`a9aacdb`](https://github.com/LedgerHQ/ledger-live/commit/a9aacdb330700f0a294833f7d77de17f179229b2), [`3979c07`](https://github.com/LedgerHQ/ledger-live/commit/3979c0715e4f54165c89d00ebe1441e064e1a110), [`f1f3845`](https://github.com/LedgerHQ/ledger-live/commit/f1f3845942e4cbce9c585dc65f6170ddbc319f19), [`c6a676f`](https://github.com/LedgerHQ/ledger-live/commit/c6a676ff80581ac19b896adf44d54812983b72da), [`b5fc1bd`](https://github.com/LedgerHQ/ledger-live/commit/b5fc1bd28fff091241905fec5ff8dc8af4c99b79), [`03af552`](https://github.com/LedgerHQ/ledger-live/commit/03af552b621e19e31747a65b1870dfe8d3bb005b), [`89ac0ed`](https://github.com/LedgerHQ/ledger-live/commit/89ac0eddc145dcf5c7cf240aa8be4301372c8f33), [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6), [`8645f01`](https://github.com/LedgerHQ/ledger-live/commit/8645f016191d29a55f6b0ca6e4b1d1909fd35445), [`1d9860c`](https://github.com/LedgerHQ/ledger-live/commit/1d9860cd1688131d391579955b40c6710b667db8), [`d2b12e7`](https://github.com/LedgerHQ/ledger-live/commit/d2b12e70bba9e772d078d1fe4d9c537b8d316a87), [`db25e21`](https://github.com/LedgerHQ/ledger-live/commit/db25e212b87dea426b153c6f1d988cead63c8c46), [`c8dbf40`](https://github.com/LedgerHQ/ledger-live/commit/c8dbf402268359e225a94782420111e786f875fa), [`cab7d97`](https://github.com/LedgerHQ/ledger-live/commit/cab7d9794e7babb8220c6d339fb08e618e3d4202)]:
12
+ - @ledgerhq/cryptoassets@13.31.0
13
+ - @ledgerhq/types-live@6.87.0
14
+ - @ledgerhq/coin-framework@6.7.0
15
+ - @ledgerhq/live-env@2.19.0
16
+ - @ledgerhq/types-cryptoassets@7.29.0
17
+ - @ledgerhq/live-network@2.0.20
68
18
 
69
- ## 1.13.0-nightly.1
19
+ ## 1.13.0-next.1
70
20
 
71
21
  ### Patch Changes
72
22
 
73
- - Updated dependencies [[`ea16f59`](https://github.com/LedgerHQ/ledger-live/commit/ea16f592e85019a1b77287a7f2b975c6fcffc74c), [`a9aacdb`](https://github.com/LedgerHQ/ledger-live/commit/a9aacdb330700f0a294833f7d77de17f179229b2), [`f1f3845`](https://github.com/LedgerHQ/ledger-live/commit/f1f3845942e4cbce9c585dc65f6170ddbc319f19), [`89ac0ed`](https://github.com/LedgerHQ/ledger-live/commit/89ac0eddc145dcf5c7cf240aa8be4301372c8f33), [`db25e21`](https://github.com/LedgerHQ/ledger-live/commit/db25e212b87dea426b153c6f1d988cead63c8c46)]:
74
- - @ledgerhq/cryptoassets@13.31.0-nightly.1
75
- - @ledgerhq/types-live@6.87.0-nightly.1
76
- - @ledgerhq/live-env@2.19.0-nightly.0
77
- - @ledgerhq/coin-framework@6.7.0-nightly.1
78
- - @ledgerhq/live-network@2.0.20-nightly.0
23
+ - Updated dependencies [[`b88faa1`](https://github.com/LedgerHQ/ledger-live/commit/b88faa18e2f5cd309b54fc3157a44db606846cc5)]:
24
+ - @ledgerhq/types-live@6.87.0-next.1
25
+ - @ledgerhq/coin-framework@6.7.0-next.1
26
+ - @ledgerhq/cryptoassets@13.31.0-next.1
79
27
 
80
- ## 1.13.0-nightly.0
28
+ ## 1.13.0-next.0
81
29
 
82
30
  ### Minor Changes
83
31
 
@@ -85,11 +33,13 @@
85
33
 
86
34
  ### Patch Changes
87
35
 
88
- - Updated dependencies [[`cfe65ca`](https://github.com/LedgerHQ/ledger-live/commit/cfe65cafa268be4e53197ee163ce78f28ed72592), [`b5fc1bd`](https://github.com/LedgerHQ/ledger-live/commit/b5fc1bd28fff091241905fec5ff8dc8af4c99b79), [`03af552`](https://github.com/LedgerHQ/ledger-live/commit/03af552b621e19e31747a65b1870dfe8d3bb005b), [`d2b12e7`](https://github.com/LedgerHQ/ledger-live/commit/d2b12e70bba9e772d078d1fe4d9c537b8d316a87), [`cab7d97`](https://github.com/LedgerHQ/ledger-live/commit/cab7d9794e7babb8220c6d339fb08e618e3d4202)]:
89
- - @ledgerhq/cryptoassets@13.31.0-nightly.0
90
- - @ledgerhq/types-live@6.87.0-nightly.0
91
- - @ledgerhq/coin-framework@6.7.0-nightly.0
92
- - @ledgerhq/types-cryptoassets@7.29.0-nightly.0
36
+ - Updated dependencies [[`ea16f59`](https://github.com/LedgerHQ/ledger-live/commit/ea16f592e85019a1b77287a7f2b975c6fcffc74c), [`cfe65ca`](https://github.com/LedgerHQ/ledger-live/commit/cfe65cafa268be4e53197ee163ce78f28ed72592), [`a9aacdb`](https://github.com/LedgerHQ/ledger-live/commit/a9aacdb330700f0a294833f7d77de17f179229b2), [`3979c07`](https://github.com/LedgerHQ/ledger-live/commit/3979c0715e4f54165c89d00ebe1441e064e1a110), [`f1f3845`](https://github.com/LedgerHQ/ledger-live/commit/f1f3845942e4cbce9c585dc65f6170ddbc319f19), [`c6a676f`](https://github.com/LedgerHQ/ledger-live/commit/c6a676ff80581ac19b896adf44d54812983b72da), [`b5fc1bd`](https://github.com/LedgerHQ/ledger-live/commit/b5fc1bd28fff091241905fec5ff8dc8af4c99b79), [`03af552`](https://github.com/LedgerHQ/ledger-live/commit/03af552b621e19e31747a65b1870dfe8d3bb005b), [`89ac0ed`](https://github.com/LedgerHQ/ledger-live/commit/89ac0eddc145dcf5c7cf240aa8be4301372c8f33), [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6), [`8645f01`](https://github.com/LedgerHQ/ledger-live/commit/8645f016191d29a55f6b0ca6e4b1d1909fd35445), [`1d9860c`](https://github.com/LedgerHQ/ledger-live/commit/1d9860cd1688131d391579955b40c6710b667db8), [`d2b12e7`](https://github.com/LedgerHQ/ledger-live/commit/d2b12e70bba9e772d078d1fe4d9c537b8d316a87), [`db25e21`](https://github.com/LedgerHQ/ledger-live/commit/db25e212b87dea426b153c6f1d988cead63c8c46), [`c8dbf40`](https://github.com/LedgerHQ/ledger-live/commit/c8dbf402268359e225a94782420111e786f875fa), [`cab7d97`](https://github.com/LedgerHQ/ledger-live/commit/cab7d9794e7babb8220c6d339fb08e618e3d4202)]:
37
+ - @ledgerhq/cryptoassets@13.31.0-next.0
38
+ - @ledgerhq/types-live@6.87.0-next.0
39
+ - @ledgerhq/coin-framework@6.7.0-next.0
40
+ - @ledgerhq/live-env@2.19.0-next.0
41
+ - @ledgerhq/types-cryptoassets@7.29.0-next.0
42
+ - @ledgerhq/live-network@2.0.20-next.0
93
43
 
94
44
  ## 1.12.2
95
45
 
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.unit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.unit.test.d.ts","sourceRoot":"","sources":["../../src/bridge/utils.unit.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("./utils");
4
+ test("methodToString", () => {
5
+ const str1 = (0, utils_1.methodToString)(0);
6
+ expect(str1).toBe("Transfer");
7
+ const str2 = (0, utils_1.methodToString)(3844450837);
8
+ expect(str2).toBe("InvokeEVM (3844450837)");
9
+ const str3 = (0, utils_1.methodToString)(5649856);
10
+ expect(str3).toBe("Unknown");
11
+ });
12
+ test("isValidHex", () => {
13
+ expect((0, utils_1.isValidHex)("0x0001aaeeff")).toBeTruthy();
14
+ expect((0, utils_1.isValidHex)("0001aaeeff")).toBeTruthy();
15
+ expect((0, utils_1.isValidHex)("0x0001rreeta")).toBeFalsy();
16
+ expect((0, utils_1.isValidHex)("0x0001aaeef")).toBeFalsy();
17
+ });
18
+ test("isValidBase64", () => {
19
+ expect((0, utils_1.isValidBase64)("YXNkYWZhc2Rmc2Rm")).toBeTruthy();
20
+ expect((0, utils_1.isValidBase64)("YXNmZHNhZGZzYWRmYXNkZnNhZGZzYWRmYXNkZnNhZGYyNTEyMzQxMjIzcjZmYXM0MmZhczJkMTNhc2M=")).toBeTruthy();
21
+ expect((0, utils_1.isValidBase64)("asdasd````")).toBeFalsy();
22
+ });
23
+ //# sourceMappingURL=utils.unit.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.unit.test.js","sourceRoot":"","sources":["../../src/bridge/utils.unit.test.ts"],"names":[],"mappings":";;AAAA,mCAAoE;AAEpE,IAAI,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC1B,MAAM,IAAI,GAAG,IAAA,sBAAc,EAAC,CAAC,CAAC,CAAC;IAC/B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9B,MAAM,IAAI,GAAG,IAAA,sBAAc,EAAC,UAAU,CAAC,CAAC;IACxC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAC5C,MAAM,IAAI,GAAG,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE;IACtB,MAAM,CAAC,IAAA,kBAAU,EAAC,cAAc,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAChD,MAAM,CAAC,IAAA,kBAAU,EAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9C,MAAM,CAAC,IAAA,kBAAU,EAAC,cAAc,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,MAAM,CAAC,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE;IACzB,MAAM,CAAC,IAAA,qBAAa,EAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IACvD,MAAM,CACJ,IAAA,qBAAa,EACX,kFAAkF,CACnF,CACF,CAAC,UAAU,EAAE,CAAC;IACf,MAAM,CAAC,IAAA,qBAAa,EAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AAClD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.unit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.unit.test.d.ts","sourceRoot":"","sources":["../../src/bridge/utils.unit.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { isValidBase64, isValidHex, methodToString } from "./utils";
2
+ test("methodToString", () => {
3
+ const str1 = methodToString(0);
4
+ expect(str1).toBe("Transfer");
5
+ const str2 = methodToString(3844450837);
6
+ expect(str2).toBe("InvokeEVM (3844450837)");
7
+ const str3 = methodToString(5649856);
8
+ expect(str3).toBe("Unknown");
9
+ });
10
+ test("isValidHex", () => {
11
+ expect(isValidHex("0x0001aaeeff")).toBeTruthy();
12
+ expect(isValidHex("0001aaeeff")).toBeTruthy();
13
+ expect(isValidHex("0x0001rreeta")).toBeFalsy();
14
+ expect(isValidHex("0x0001aaeef")).toBeFalsy();
15
+ });
16
+ test("isValidBase64", () => {
17
+ expect(isValidBase64("YXNkYWZhc2Rmc2Rm")).toBeTruthy();
18
+ expect(isValidBase64("YXNmZHNhZGZzYWRmYXNkZnNhZGZzYWRmYXNkZnNhZGYyNTEyMzQxMjIzcjZmYXM0MmZhczJkMTNhc2M=")).toBeTruthy();
19
+ expect(isValidBase64("asdasd````")).toBeFalsy();
20
+ });
21
+ //# sourceMappingURL=utils.unit.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.unit.test.js","sourceRoot":"","sources":["../../src/bridge/utils.unit.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEpE,IAAI,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC1B,MAAM,IAAI,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAC/B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9B,MAAM,IAAI,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;IACxC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAC5C,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE;IACtB,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAChD,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9C,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE;IACzB,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IACvD,MAAM,CACJ,aAAa,CACX,kFAAkF,CACnF,CACF,CAAC,UAAU,EAAE,CAAC;IACf,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AAClD,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-filecoin",
3
- "version": "1.13.0-nightly.8",
3
+ "version": "1.13.0",
4
4
  "description": "Ledger Filecoin Coin integration",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -100,15 +100,15 @@
100
100
  "iso-filecoin": "^4.1.0",
101
101
  "lodash": "^4.17.21",
102
102
  "rxjs": "^7.8.1",
103
- "@ledgerhq/coin-framework": "^6.7.0-nightly.8",
104
- "@ledgerhq/cryptoassets": "^13.31.0-nightly.7",
105
- "@ledgerhq/devices": "8.6.2-nightly.0",
106
- "@ledgerhq/errors": "^6.27.0-nightly.0",
107
- "@ledgerhq/live-env": "^2.19.0-nightly.2",
108
- "@ledgerhq/live-network": "^2.0.20-nightly.3",
103
+ "@ledgerhq/coin-framework": "^6.7.0",
104
+ "@ledgerhq/cryptoassets": "^13.31.0",
105
+ "@ledgerhq/devices": "8.6.1",
106
+ "@ledgerhq/errors": "^6.26.0",
107
+ "@ledgerhq/live-env": "^2.19.0",
108
+ "@ledgerhq/live-network": "^2.0.20",
109
109
  "@ledgerhq/logs": "^6.13.0",
110
- "@ledgerhq/types-cryptoassets": "^7.29.0-nightly.0",
111
- "@ledgerhq/types-live": "^6.87.0-nightly.5"
110
+ "@ledgerhq/types-cryptoassets": "^7.29.0",
111
+ "@ledgerhq/types-live": "^6.87.0"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@types/invariant": "^2.2.2",