@ledgerhq/coin-tester-evm 1.11.1-nightly.20251204135727 → 1.12.0-nightly.20251205111238
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 +12 -9
- package/lib/src/helpers.d.ts +1 -2
- package/lib/src/helpers.d.ts.map +1 -1
- package/lib/src/helpers.js +1 -11
- package/lib/src/helpers.js.map +1 -1
- package/lib/src/scenarii/blast.d.ts.map +1 -1
- package/lib/src/scenarii/blast.js +2 -12
- package/lib/src/scenarii/blast.js.map +1 -1
- package/lib/src/scenarii/core.js +2 -2
- package/lib/src/scenarii/core.js.map +1 -1
- package/lib/src/scenarii/ethereum.d.ts.map +1 -1
- package/lib/src/scenarii/ethereum.js +9 -89
- package/lib/src/scenarii/ethereum.js.map +1 -1
- package/lib/src/scenarii/polygon.d.ts.map +1 -1
- package/lib/src/scenarii/polygon.js +9 -86
- package/lib/src/scenarii/polygon.js.map +1 -1
- package/lib/src/scenarii/scroll.d.ts.map +1 -1
- package/lib/src/scenarii/scroll.js +1 -11
- package/lib/src/scenarii/scroll.js.map +1 -1
- package/lib/src/scenarii/sonic.d.ts.map +1 -1
- package/lib/src/scenarii/sonic.js +2 -3
- package/lib/src/scenarii/sonic.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib-es/src/helpers.d.ts +1 -2
- package/lib-es/src/helpers.d.ts.map +1 -1
- package/lib-es/src/helpers.js +1 -11
- package/lib-es/src/helpers.js.map +1 -1
- package/lib-es/src/scenarii/blast.d.ts.map +1 -1
- package/lib-es/src/scenarii/blast.js +2 -9
- package/lib-es/src/scenarii/blast.js.map +1 -1
- package/lib-es/src/scenarii/core.js +2 -2
- package/lib-es/src/scenarii/core.js.map +1 -1
- package/lib-es/src/scenarii/ethereum.d.ts.map +1 -1
- package/lib-es/src/scenarii/ethereum.js +9 -89
- package/lib-es/src/scenarii/ethereum.js.map +1 -1
- package/lib-es/src/scenarii/polygon.d.ts.map +1 -1
- package/lib-es/src/scenarii/polygon.js +9 -86
- package/lib-es/src/scenarii/polygon.js.map +1 -1
- package/lib-es/src/scenarii/scroll.d.ts.map +1 -1
- package/lib-es/src/scenarii/scroll.js +2 -9
- package/lib-es/src/scenarii/scroll.js.map +1 -1
- package/lib-es/src/scenarii/sonic.d.ts.map +1 -1
- package/lib-es/src/scenarii/sonic.js +2 -3
- package/lib-es/src/scenarii/sonic.js.map +1 -1
- package/lib-es/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -8
- package/src/helpers.ts +0 -15
- package/src/scenarii/blast.ts +2 -11
- package/src/scenarii/core.ts +2 -2
- package/src/scenarii/ethereum.ts +9 -109
- package/src/scenarii/polygon.ts +9 -101
- package/src/scenarii/scroll.ts +2 -11
- package/src/scenarii/sonic.ts +2 -3
- package/src/scenarii.test.ts +56 -59
package/src/scenarii.test.ts
CHANGED
|
@@ -16,76 +16,73 @@ jest.setTimeout(100_000);
|
|
|
16
16
|
// Note this config runs with NanoX
|
|
17
17
|
// https://github.com/LedgerHQ/ledger-live/blob/develop/libs/coin-tester/docker-compose.yml
|
|
18
18
|
|
|
19
|
-
describe
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
await Promise.all([killSpeculos(), killAnvil()]);
|
|
28
|
-
throw e;
|
|
29
|
-
}
|
|
19
|
+
describe("EVM Deterministic Tester", () => {
|
|
20
|
+
it("scenario Ethereum", async () => {
|
|
21
|
+
try {
|
|
22
|
+
await executeScenario(scenarioEthereum);
|
|
23
|
+
} catch (e) {
|
|
24
|
+
if (e != "done") {
|
|
25
|
+
await Promise.all([killSpeculos(), killAnvil()]);
|
|
26
|
+
throw e;
|
|
30
27
|
}
|
|
31
|
-
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
31
|
+
it("scenario Sonic", async () => {
|
|
32
|
+
try {
|
|
33
|
+
await executeScenario(scenarioSonic);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
if (e != "done") {
|
|
36
|
+
await Promise.all([killSpeculos(), killAnvil()]);
|
|
37
|
+
throw e;
|
|
41
38
|
}
|
|
42
|
-
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
42
|
+
it("scenario Polygon", async () => {
|
|
43
|
+
try {
|
|
44
|
+
await executeScenario(scenarioPolygon);
|
|
45
|
+
} catch (e) {
|
|
46
|
+
if (e != "done") {
|
|
47
|
+
await Promise.all([killSpeculos(), killAnvil()]);
|
|
48
|
+
throw e;
|
|
52
49
|
}
|
|
53
|
-
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
53
|
+
it("scenario Core", async () => {
|
|
54
|
+
try {
|
|
55
|
+
await executeScenario(scenarioCore);
|
|
56
|
+
} catch (e) {
|
|
57
|
+
if (e != "done") {
|
|
58
|
+
await Promise.all([killSpeculos(), killAnvil()]);
|
|
59
|
+
throw e;
|
|
63
60
|
}
|
|
64
|
-
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
64
|
+
it.skip("scenario scroll", async () => {
|
|
65
|
+
try {
|
|
66
|
+
await executeScenario(scenarioScroll);
|
|
67
|
+
} catch (e) {
|
|
68
|
+
if (e != "done") {
|
|
69
|
+
await Promise.all([killSpeculos(), killAnvil()]);
|
|
70
|
+
throw e;
|
|
74
71
|
}
|
|
75
|
-
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
75
|
+
it.skip("scenario blast", async () => {
|
|
76
|
+
try {
|
|
77
|
+
await executeScenario(scenarioBlast);
|
|
78
|
+
} catch (e) {
|
|
79
|
+
if (e != "done") {
|
|
80
|
+
await Promise.all([killSpeculos(), killAnvil()]);
|
|
81
|
+
throw e;
|
|
85
82
|
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
});
|
|
89
86
|
|
|
90
87
|
["exit", "SIGINT", "SIGQUIT", "SIGTERM", "SIGUSR1", "SIGUSR2", "uncaughtException"].map(e =>
|
|
91
88
|
process.on(e, async () => {
|