@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-tester-solana",
3
- "version": "1.6.2-nightly.20251125074637",
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.9.0-nightly.20251125074637",
53
- "@ledgerhq/coin-tester": "^0.12.0-nightly.20251125074637",
54
- "@ledgerhq/coin-solana": "^0.37.0-nightly.20251125074637",
55
- "@ledgerhq/cryptoassets": "^13.33.0-nightly.20251125074637",
56
- "@ledgerhq/live-env": "^2.21.0-nightly.20251125074637",
57
- "@ledgerhq/live-signer-solana": "^0.6.1-nightly.20251125074637",
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.89.0-nightly.20251125074637"
59
+ "@ledgerhq/types-live": "^6.90.0-nightly.20251126023856"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/jest": "^29",
@@ -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
- // Make sure the cache is not used, otherwise data is not refreshed frequently
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
- getQueuedAPI: getAPI,
447
- getQueuedAndCachedAPI: getAPI,
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