@ledgerhq/coin-tester-evm 1.12.0-nightly.20251225024217 → 1.12.0-nightly.20251227023924
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 -9
- package/lib/src/scenarii/blast.d.ts.map +1 -1
- package/lib/src/scenarii/blast.js +21 -1
- package/lib/src/scenarii/blast.js.map +1 -1
- package/lib/src/scenarii/scroll.d.ts.map +1 -1
- package/lib/src/scenarii/scroll.js +22 -2
- package/lib/src/scenarii/scroll.js.map +1 -1
- package/lib/src/tokenFixtures.js +1 -1
- package/lib/src/tokenFixtures.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib-es/src/scenarii/blast.d.ts.map +1 -1
- package/lib-es/src/scenarii/blast.js +21 -1
- package/lib-es/src/scenarii/blast.js.map +1 -1
- package/lib-es/src/scenarii/scroll.d.ts.map +1 -1
- package/lib-es/src/scenarii/scroll.js +22 -2
- package/lib-es/src/scenarii/scroll.js.map +1 -1
- package/lib-es/src/tokenFixtures.js +1 -1
- package/lib-es/src/tokenFixtures.js.map +1 -1
- package/lib-es/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/scenarii/blast.ts +21 -1
- package/src/scenarii/scroll.ts +22 -2
- package/src/scenarii.test.ts +2 -2
- package/src/tokenFixtures.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-tester-evm",
|
|
3
|
-
"version": "1.12.0-nightly.
|
|
3
|
+
"version": "1.12.0-nightly.20251227023924",
|
|
4
4
|
"description": "Ledger EVM Coin Tester",
|
|
5
5
|
"main": "src/scenarii.test.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"dotenv": "^16.4.5",
|
|
53
53
|
"ethers": "6.15.0",
|
|
54
54
|
"msw": "^2.2.1",
|
|
55
|
-
"@ledgerhq/coin-evm": "^2.37.0-nightly.
|
|
56
|
-
"@ledgerhq/coin-framework": "^6.11.0-nightly.
|
|
57
|
-
"@ledgerhq/coin-tester": "^0.14.0-nightly.
|
|
58
|
-
"@ledgerhq/cryptoassets": "^13.35.0-nightly.
|
|
59
|
-
"@ledgerhq/live-common": "^34.55.0-nightly.
|
|
60
|
-
"@ledgerhq/live-config": "^3.3.0-nightly.
|
|
61
|
-
"@ledgerhq/types-cryptoassets": "^7.31.0-nightly.
|
|
62
|
-
"@ledgerhq/types-live": "^6.91.0-nightly.
|
|
55
|
+
"@ledgerhq/coin-evm": "^2.37.0-nightly.20251227023924",
|
|
56
|
+
"@ledgerhq/coin-framework": "^6.11.0-nightly.20251227023924",
|
|
57
|
+
"@ledgerhq/coin-tester": "^0.14.0-nightly.20251227023924",
|
|
58
|
+
"@ledgerhq/cryptoassets": "^13.35.0-nightly.20251227023924",
|
|
59
|
+
"@ledgerhq/live-common": "^34.55.0-nightly.20251227023924",
|
|
60
|
+
"@ledgerhq/live-config": "^3.3.0-nightly.20251227023924",
|
|
61
|
+
"@ledgerhq/types-cryptoassets": "^7.31.0-nightly.20251227023924",
|
|
62
|
+
"@ledgerhq/types-live": "^6.91.0-nightly.20251227023924"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@swc/core": "1.4.11",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"ts-jest": "^29.1.2",
|
|
73
73
|
"ts-node": "^10.9.2",
|
|
74
74
|
"typescript": "^5.3.3",
|
|
75
|
-
"@ledgerhq/hw-transport": "6.31.15-nightly.
|
|
75
|
+
"@ledgerhq/hw-transport": "6.31.15-nightly.20251227023924"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"clean": "rimraf lib lib-es",
|
package/src/scenarii/blast.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Transaction as EvmTransaction } from "@ledgerhq/coin-evm/types/transact
|
|
|
9
9
|
import { makeAccount } from "../fixtures";
|
|
10
10
|
import { blast, callMyDealer, getBridges, VITALIK } from "../helpers";
|
|
11
11
|
import { killAnvil, spawnAnvil } from "../anvil";
|
|
12
|
+
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
|
12
13
|
import { MIM_ON_BLAST } from "../tokenFixtures";
|
|
13
14
|
import { buildSigner } from "../signer";
|
|
14
15
|
|
|
@@ -76,11 +77,30 @@ export const scenarioBlast: Scenario<EvmTransaction, Account> = {
|
|
|
76
77
|
},
|
|
77
78
|
explorer: {
|
|
78
79
|
type: "etherscan",
|
|
79
|
-
uri: "https://api.
|
|
80
|
+
uri: "https://proxyetherscan.api.live.ledger.com/v2/api/81457",
|
|
80
81
|
},
|
|
81
82
|
showNfts: true,
|
|
82
83
|
},
|
|
83
84
|
}));
|
|
85
|
+
LiveConfig.setConfig({
|
|
86
|
+
config_currency_blast: {
|
|
87
|
+
type: "object",
|
|
88
|
+
default: {
|
|
89
|
+
status: {
|
|
90
|
+
type: "active",
|
|
91
|
+
},
|
|
92
|
+
node: {
|
|
93
|
+
type: "external",
|
|
94
|
+
uri: "http://127.0.0.1:8545",
|
|
95
|
+
},
|
|
96
|
+
explorer: {
|
|
97
|
+
type: "etherscan",
|
|
98
|
+
uri: "https://proxyetherscan.api.live.ledger.com/v2/api/81457",
|
|
99
|
+
},
|
|
100
|
+
showNfts: true,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
});
|
|
84
104
|
initMswHandlers(getCoinConfig(blast).info);
|
|
85
105
|
|
|
86
106
|
const { currencyBridge, accountBridge, getAddress } = await getBridges("blast", signer);
|
package/src/scenarii/scroll.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Transaction as EvmTransaction } from "@ledgerhq/coin-evm/types/transact
|
|
|
9
9
|
import { makeAccount } from "../fixtures";
|
|
10
10
|
import { callMyDealer, getBridges, scroll, VITALIK } from "../helpers";
|
|
11
11
|
import { killAnvil, spawnAnvil } from "../anvil";
|
|
12
|
+
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
|
12
13
|
import { USDC_ON_SCROLL } from "../tokenFixtures";
|
|
13
14
|
import { buildSigner } from "../signer";
|
|
14
15
|
|
|
@@ -79,12 +80,31 @@ export const scenarioScroll: Scenario<EvmTransaction, Account> = {
|
|
|
79
80
|
uri: "http://127.0.0.1:8545",
|
|
80
81
|
},
|
|
81
82
|
explorer: {
|
|
82
|
-
type: "
|
|
83
|
-
uri: "https://
|
|
83
|
+
type: "blockscout",
|
|
84
|
+
uri: "https://scroll.blockscout.com/api",
|
|
84
85
|
},
|
|
85
86
|
showNfts: true,
|
|
86
87
|
},
|
|
87
88
|
}));
|
|
89
|
+
LiveConfig.setConfig({
|
|
90
|
+
config_currency_scroll: {
|
|
91
|
+
type: "object",
|
|
92
|
+
default: {
|
|
93
|
+
status: {
|
|
94
|
+
type: "active",
|
|
95
|
+
},
|
|
96
|
+
node: {
|
|
97
|
+
type: "external",
|
|
98
|
+
uri: "http://127.0.0.1:8545",
|
|
99
|
+
},
|
|
100
|
+
explorer: {
|
|
101
|
+
type: "blockscout",
|
|
102
|
+
uri: "https://scroll.blockscout.com/api",
|
|
103
|
+
},
|
|
104
|
+
showNfts: true,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
});
|
|
88
108
|
initMswHandlers(getCoinConfig(scroll).info);
|
|
89
109
|
|
|
90
110
|
const { currencyBridge, accountBridge, getAddress } = await getBridges("scroll", signer);
|
package/src/scenarii.test.ts
CHANGED
|
@@ -60,7 +60,7 @@ describe("EVM Deterministic Tester", () => {
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
it
|
|
63
|
+
it("scenario scroll", async () => {
|
|
64
64
|
try {
|
|
65
65
|
await executeScenario(scenarioScroll);
|
|
66
66
|
} catch (e) {
|
|
@@ -71,7 +71,7 @@ describe("EVM Deterministic Tester", () => {
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
it
|
|
74
|
+
it("scenario blast", async () => {
|
|
75
75
|
try {
|
|
76
76
|
await executeScenario(scenarioBlast);
|
|
77
77
|
} catch (e) {
|
package/src/tokenFixtures.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { TokenCurrency } from "@ledgerhq/types-cryptoassets";
|
|
|
5
5
|
|
|
6
6
|
const ethereum = getCryptoCurrencyById("ethereum");
|
|
7
7
|
const polygon = getCryptoCurrencyById("polygon");
|
|
8
|
-
const scroll = getCryptoCurrencyById("
|
|
8
|
+
const scroll = getCryptoCurrencyById("scroll");
|
|
9
9
|
const blast = getCryptoCurrencyById("blast");
|
|
10
10
|
const sonic = getCryptoCurrencyById("sonic");
|
|
11
11
|
const core = getCryptoCurrencyById("core");
|