@ledgerhq/coin-tester-solana 1.6.2-nightly.20251125074637 → 1.7.0-nightly.20251126023856
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 +49 -9
- package/lib/src/scenarii/solana.d.ts.map +1 -1
- package/lib/src/scenarii/solana.js +8 -7
- package/lib/src/scenarii/solana.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib-es/src/scenarii/solana.d.ts.map +1 -1
- package/lib-es/src/scenarii/solana.js +8 -7
- package/lib-es/src/scenarii/solana.js.map +1 -1
- package/lib-es/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/scenarii/solana.ts +8 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-tester-solana",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-nightly.20251126023856",
|
|
4
4
|
"description": "Ledger Solana Coin Tester",
|
|
5
5
|
"main": "src/scenarii.test.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"bignumber.js": "^9",
|
|
50
50
|
"docker-compose": "^1",
|
|
51
51
|
"msw": "^2",
|
|
52
|
-
"@ledgerhq/coin-framework": "^6.
|
|
53
|
-
"@ledgerhq/coin-tester": "^0.
|
|
54
|
-
"@ledgerhq/coin-solana": "^0.
|
|
55
|
-
"@ledgerhq/cryptoassets": "^13.
|
|
56
|
-
"@ledgerhq/live-env": "^2.21.
|
|
57
|
-
"@ledgerhq/live-signer-solana": "^0.6.
|
|
52
|
+
"@ledgerhq/coin-framework": "^6.10.0-nightly.20251126023856",
|
|
53
|
+
"@ledgerhq/coin-tester": "^0.13.0-nightly.20251126023856",
|
|
54
|
+
"@ledgerhq/coin-solana": "^0.38.0-nightly.20251126023856",
|
|
55
|
+
"@ledgerhq/cryptoassets": "^13.34.0-nightly.20251126023856",
|
|
56
|
+
"@ledgerhq/live-env": "^2.21.1-nightly.20251126023856",
|
|
57
|
+
"@ledgerhq/live-signer-solana": "^0.6.2-nightly.20251126023856",
|
|
58
58
|
"@ledgerhq/types-cryptoassets": "^7.30.0",
|
|
59
|
-
"@ledgerhq/types-live": "^6.
|
|
59
|
+
"@ledgerhq/types-live": "^6.90.0-nightly.20251126023856"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/jest": "^29",
|
package/src/scenarii/solana.ts
CHANGED
|
@@ -434,17 +434,18 @@ export const scenarioSolana: Scenario<SolanaTransaction, SolanaAccount> = {
|
|
|
434
434
|
type: "active",
|
|
435
435
|
},
|
|
436
436
|
token2022Enabled: true,
|
|
437
|
-
queuedInterval: 100,
|
|
438
437
|
legacyOCMSMaxVersion: "1.8.0",
|
|
439
438
|
});
|
|
440
439
|
solanaCoinConfig.setCoinConfig(coinConfig);
|
|
441
|
-
|
|
442
|
-
// enough to work within the context of the coin tester
|
|
443
|
-
const getAPI = (config: Config) => Promise.resolve(getChainAPI(config));
|
|
440
|
+
const chainAPICache = new Map<string, ReturnType<typeof getChainAPI>>();
|
|
444
441
|
const { accountBridge, currencyBridge } = makeBridges({
|
|
445
|
-
getAPI
|
|
446
|
-
|
|
447
|
-
|
|
442
|
+
getAPI: (config: Config) => {
|
|
443
|
+
const endpoint = config.endpoint;
|
|
444
|
+
if (!chainAPICache.has(endpoint)) {
|
|
445
|
+
chainAPICache.set(endpoint, getChainAPI(config));
|
|
446
|
+
}
|
|
447
|
+
return chainAPICache.get(endpoint)!;
|
|
448
|
+
},
|
|
448
449
|
signerContext,
|
|
449
450
|
});
|
|
450
451
|
|