@ledgerhq/coin-tester-solana 1.4.7 → 1.5.0-nightly.2

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-tester-solana@1.4.7 build /home/runner/work/ledger-live/ledger-live/libs/coin-tester-modules/coin-tester-solana
2
+ > @ledgerhq/coin-tester-solana@1.5.0-nightly.1 build /home/runner/work/ledger-live/ledger-live/libs/coin-tester-modules/coin-tester-solana
3
3
  > tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,28 +1,46 @@
1
1
  # @ledgerhq/coin-tester-solana
2
2
 
3
- ## 1.4.7
3
+ ## 1.5.0-nightly.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`1f1cbeb`](https://github.com/LedgerHQ/ledger-live/commit/1f1cbeb4485fb4b85b76ffe040c632d049f4e0c4), [`80f8f1e`](https://github.com/LedgerHQ/ledger-live/commit/80f8f1eaef8a7bc84ba5441790296dec6cbfa199), [`d41fc9c`](https://github.com/LedgerHQ/ledger-live/commit/d41fc9c458050ef1234c04af9642321c41cecda1), [`67ec10b`](https://github.com/LedgerHQ/ledger-live/commit/67ec10b773b4a6b512a8a6485940fa0abd41c3ef), [`31dceca`](https://github.com/LedgerHQ/ledger-live/commit/31dcecad24abdaa8a77208e82532c47728c11180)]:
8
- - @ledgerhq/cryptoassets@13.26.0
9
- - @ledgerhq/coin-framework@6.2.0
10
- - @ledgerhq/types-live@6.82.0
11
- - @ledgerhq/coin-solana@0.31.1
12
- - @ledgerhq/coin-tester@0.9.1
13
- - @ledgerhq/live-signer-solana@0.5.3
7
+ - Updated dependencies [[`acdc089`](https://github.com/LedgerHQ/ledger-live/commit/acdc089f934461dd2fdfdfd61aa907f1520a5d7b), [`e9fa7aa`](https://github.com/LedgerHQ/ledger-live/commit/e9fa7aa8c8d0414416ec7c12acf30b7623b2eda3), [`516176d`](https://github.com/LedgerHQ/ledger-live/commit/516176d18c7f53961799e92e8804c4a756684266)]:
8
+ - @ledgerhq/coin-framework@6.2.0-nightly.2
9
+ - @ledgerhq/types-live@6.82.0-nightly.2
10
+ - @ledgerhq/coin-solana@0.32.0-nightly.2
11
+ - @ledgerhq/coin-tester@0.9.1-nightly.0
12
+ - @ledgerhq/live-signer-solana@0.5.3-nightly.2
14
13
 
15
- ## 1.4.7-next.0
14
+ ## 1.5.0-nightly.1
15
+
16
+ ### Minor Changes
17
+
18
+ - [#11414](https://github.com/LedgerHQ/ledger-live/pull/11414) [`9fcc4eb`](https://github.com/LedgerHQ/ledger-live/commit/9fcc4eb5cd6e96e772daa154bd87ae374f925ddc) Thanks [@Canestin](https://github.com/Canestin)! - Update Solana createBridge function signature for Lazy CAL
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`212f772`](https://github.com/LedgerHQ/ledger-live/commit/212f772b17dc3db97009ebe62912f8f183c1ef2e), [`9fcc4eb`](https://github.com/LedgerHQ/ledger-live/commit/9fcc4eb5cd6e96e772daa154bd87ae374f925ddc), [`8936f39`](https://github.com/LedgerHQ/ledger-live/commit/8936f390edbe9cbc36ac6590b01562daf5c580e1), [`0356d19`](https://github.com/LedgerHQ/ledger-live/commit/0356d1904dbb5e856970fa7e7ebb206eed7b4c5d)]:
23
+ - @ledgerhq/coin-solana@0.32.0-nightly.1
24
+ - @ledgerhq/coin-framework@6.2.0-nightly.1
25
+ - @ledgerhq/cryptoassets@13.26.0-nightly.1
26
+ - @ledgerhq/types-live@6.82.0-nightly.1
27
+ - @ledgerhq/live-env@2.15.0-nightly.1
28
+ - @ledgerhq/types-cryptoassets@7.26.0-nightly.0
29
+ - @ledgerhq/live-signer-solana@0.5.3-nightly.1
30
+ - @ledgerhq/coin-tester@0.9.1-nightly.0
31
+
32
+ ## 1.4.7-nightly.0
16
33
 
17
34
  ### Patch Changes
18
35
 
19
- - Updated dependencies [[`1f1cbeb`](https://github.com/LedgerHQ/ledger-live/commit/1f1cbeb4485fb4b85b76ffe040c632d049f4e0c4), [`80f8f1e`](https://github.com/LedgerHQ/ledger-live/commit/80f8f1eaef8a7bc84ba5441790296dec6cbfa199), [`d41fc9c`](https://github.com/LedgerHQ/ledger-live/commit/d41fc9c458050ef1234c04af9642321c41cecda1), [`67ec10b`](https://github.com/LedgerHQ/ledger-live/commit/67ec10b773b4a6b512a8a6485940fa0abd41c3ef), [`31dceca`](https://github.com/LedgerHQ/ledger-live/commit/31dcecad24abdaa8a77208e82532c47728c11180)]:
20
- - @ledgerhq/cryptoassets@13.26.0-next.0
21
- - @ledgerhq/coin-framework@6.2.0-next.0
22
- - @ledgerhq/types-live@6.82.0-next.0
23
- - @ledgerhq/coin-solana@0.31.1-next.0
24
- - @ledgerhq/coin-tester@0.9.1-next.0
25
- - @ledgerhq/live-signer-solana@0.5.3-next.0
36
+ - Updated dependencies [[`87617a9`](https://github.com/LedgerHQ/ledger-live/commit/87617a9930be43a6cdbc5cc5711cc24b00309184), [`d6a6a94`](https://github.com/LedgerHQ/ledger-live/commit/d6a6a949d45fdd2f97f15842c808bf6d1058403f)]:
37
+ - @ledgerhq/live-env@2.15.0-nightly.0
38
+ - @ledgerhq/types-live@6.82.0-nightly.0
39
+ - @ledgerhq/coin-framework@6.2.0-nightly.0
40
+ - @ledgerhq/coin-solana@0.31.1-nightly.0
41
+ - @ledgerhq/cryptoassets@13.25.1-nightly.0
42
+ - @ledgerhq/coin-tester@0.9.0
43
+ - @ledgerhq/live-signer-solana@0.5.3-nightly.0
26
44
 
27
45
  ## 1.4.6
28
46
 
@@ -2,9 +2,20 @@ import { executeScenario } from "@ledgerhq/coin-tester/main";
2
2
  import { killSpeculos } from "@ledgerhq/coin-tester/signers/speculos";
3
3
  import { scenarioSolana } from "./scenarii/solana";
4
4
  import { killAgave } from "./agave";
5
+ import * as legacy from "@ledgerhq/cryptoassets/tokens";
6
+ import { setCryptoAssetsStoreGetter } from "@ledgerhq/coin-solana/cryptoAssetsStore";
5
7
  ["exit", "SIGINT", "SIGQUIT", "SIGTERM", "SIGUSR1", "SIGUSR2", "uncaughtException"].map(e => process.on(e, async () => {
6
8
  await Promise.all([killSpeculos(), killAgave()]);
7
9
  }));
10
+ //TODO coin tester should not call external endpoints (avoid the error Failed to fetch Figment APY LedgerAPI5xx: Unhandled request)
11
+ //TODO mock call to CAL when available
12
+ setCryptoAssetsStoreGetter(() => ({
13
+ findTokenByAddress: legacy.findTokenByAddress,
14
+ getTokenById: legacy.getTokenById,
15
+ findTokenById: legacy.findTokenById,
16
+ findTokenByAddressInCurrency: legacy.findTokenByAddressInCurrency,
17
+ findTokenByTicker: legacy.findTokenByTicker,
18
+ }));
8
19
  describe("Solana Deterministic Tester", () => {
9
20
  it("scenario Solana", async () => {
10
21
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"scenarii.test.js","sourceRoot":"","sources":["../../src/scenarii.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAC1F,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACnD,CAAC,CAAC,CACH,CAAC;AAEF,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;QAC/B,IAAI,CAAC;Y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