@ledgerhq/coin-tester-solana 1.6.0-nightly.8 → 1.6.0

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.6.0-nightly.7 build /home/runner/work/ledger-live/ledger-live/libs/coin-tester-modules/coin-tester-solana
2
+ > @ledgerhq/coin-tester-solana@1.6.0 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,89 +1,49 @@
1
1
  # @ledgerhq/coin-tester-solana
2
2
 
3
- ## 1.6.0-nightly.8
3
+ ## 1.6.0
4
4
 
5
- ### Patch Changes
6
-
7
- - Updated dependencies [[`c96d73f`](https://github.com/LedgerHQ/ledger-live/commit/c96d73fed0a75a9c208f78d51c34b742703a7dda)]:
8
- - @ledgerhq/coin-framework@6.7.0-nightly.8
9
- - @ledgerhq/coin-solana@0.35.0-nightly.8
10
- - @ledgerhq/live-signer-solana@0.6.0-nightly.8
11
-
12
- ## 1.6.0-nightly.7
13
-
14
- ### Patch Changes
15
-
16
- - Updated dependencies [[`b4ceaff`](https://github.com/LedgerHQ/ledger-live/commit/b4ceaff2ecf68d8a14e09801c76ab0b014c45286), [`f392f69`](https://github.com/LedgerHQ/ledger-live/commit/f392f6912f445cc2f7cf4dfcfd030fa3da76f736), [`cbc0648`](https://github.com/LedgerHQ/ledger-live/commit/cbc064885d8e0459e40d327a2e5389204b3ec705)]:
17
- - @ledgerhq/cryptoassets@13.31.0-nightly.7
18
- - @ledgerhq/types-live@6.87.0-nightly.5
19
- - @ledgerhq/live-env@2.19.0-nightly.2
20
- - @ledgerhq/coin-framework@6.7.0-nightly.7
21
- - @ledgerhq/coin-solana@0.35.0-nightly.7
22
- - @ledgerhq/coin-tester@0.10.2-nightly.0
23
- - @ledgerhq/live-signer-solana@0.6.0-nightly.7
24
-
25
- ## 1.6.0-nightly.6
26
-
27
- ### Patch Changes
28
-
29
- - Updated dependencies [[`51995e9`](https://github.com/LedgerHQ/ledger-live/commit/51995e96a9e1fafe14c7cbe45ce0b1ec8ebd106b)]:
30
- - @ledgerhq/types-live@6.87.0-nightly.4
31
- - @ledgerhq/coin-framework@6.7.0-nightly.6
32
- - @ledgerhq/coin-solana@0.35.0-nightly.6
33
- - @ledgerhq/coin-tester@0.10.2-nightly.0
34
- - @ledgerhq/cryptoassets@13.31.0-nightly.6
35
- - @ledgerhq/live-signer-solana@0.6.0-nightly.6
36
-
37
- ## 1.6.0-nightly.5
5
+ ### Minor Changes
38
6
 
39
- ### Patch Changes
7
+ - [#12186](https://github.com/LedgerHQ/ledger-live/pull/12186) [`a9aacdb`](https://github.com/LedgerHQ/ledger-live/commit/a9aacdb330700f0a294833f7d77de17f179229b2) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Remove deprecated `findTokenByTicker` function and related internal state. This function was ambiguous when multiple tokens shared the same ticker across different blockchains. Use `findTokenById` or `findTokenByAddressInCurrency` instead for more precise token lookup.
40
8
 
41
- - Updated dependencies [[`cadf2e1`](https://github.com/LedgerHQ/ledger-live/commit/cadf2e1dfb09248d3f77d96f94ae774425dbca75)]:
42
- - @ledgerhq/live-env@2.19.0-nightly.1
43
- - @ledgerhq/coin-framework@6.7.0-nightly.5
44
- - @ledgerhq/coin-solana@0.35.0-nightly.5
45
- - @ledgerhq/cryptoassets@13.31.0-nightly.5
46
- - @ledgerhq/live-signer-solana@0.6.0-nightly.5
9
+ - [#12185](https://github.com/LedgerHQ/ledger-live/pull/12185) [`89ac0ed`](https://github.com/LedgerHQ/ledger-live/commit/89ac0eddc145dcf5c7cf240aa8be4301372c8f33) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Remove deprecated findTokenByAddress in favor of findTokenByAddressInCurrency
47
10
 
48
- ## 1.6.0-nightly.4
11
+ Removed the deprecated `findTokenByAddress` function which had ambiguous behavior when multiple tokens shared the same contract address across different blockchains. The function has been fully replaced with `findTokenByAddressInCurrency` which requires both the token address and parent currency ID, providing more precise token lookup.
49
12
 
50
- ### Patch Changes
13
+ This includes:
51
14
 
52
- - Updated dependencies [[`7744980`](https://github.com/LedgerHQ/ledger-live/commit/774498090411f1a6d6c06395dda1fc7cd24adf24)]:
53
- - @ledgerhq/types-live@6.87.0-nightly.3
54
- - @ledgerhq/coin-framework@6.7.0-nightly.4
55
- - @ledgerhq/coin-solana@0.35.0-nightly.4
56
- - @ledgerhq/coin-tester@0.10.2-nightly.0
57
- - @ledgerhq/cryptoassets@13.31.0-nightly.4
58
- - @ledgerhq/live-signer-solana@0.6.0-nightly.4
15
+ - Removal of `findTokenByAddress` function from cryptoassets package
16
+ - Removal of `tokensByAddress` state dictionary
17
+ - Update all usages to `findTokenByAddressInCurrency` across the codebase
18
+ - Update CryptoAssetsStore interface to remove the deprecated method
59
19
 
60
- ## 1.6.0-nightly.3
20
+ - [#12196](https://github.com/LedgerHQ/ledger-live/pull/12196) [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Remove deprecated getTokenById and hasTokenId functions
61
21
 
62
22
  ### Patch Changes
63
23
 
64
- - Updated dependencies [[`2a67525`](https://github.com/LedgerHQ/ledger-live/commit/2a67525bfce19b673126ce6dddfca240559b10db), [`8645f01`](https://github.com/LedgerHQ/ledger-live/commit/8645f016191d29a55f6b0ca6e4b1d1909fd35445)]:
65
- - @ledgerhq/coin-solana@0.35.0-nightly.3
66
- - @ledgerhq/live-signer-solana@0.6.0-nightly.3
67
- - @ledgerhq/types-live@6.87.0-nightly.2
68
- - @ledgerhq/coin-framework@6.7.0-nightly.3
24
+ - Updated dependencies [[`ea16f59`](https://github.com/LedgerHQ/ledger-live/commit/ea16f592e85019a1b77287a7f2b975c6fcffc74c), [`b88faa1`](https://github.com/LedgerHQ/ledger-live/commit/b88faa18e2f5cd309b54fc3157a44db606846cc5), [`cfe65ca`](https://github.com/LedgerHQ/ledger-live/commit/cfe65cafa268be4e53197ee163ce78f28ed72592), [`a9aacdb`](https://github.com/LedgerHQ/ledger-live/commit/a9aacdb330700f0a294833f7d77de17f179229b2), [`3979c07`](https://github.com/LedgerHQ/ledger-live/commit/3979c0715e4f54165c89d00ebe1441e064e1a110), [`f1f3845`](https://github.com/LedgerHQ/ledger-live/commit/f1f3845942e4cbce9c585dc65f6170ddbc319f19), [`c6a676f`](https://github.com/LedgerHQ/ledger-live/commit/c6a676ff80581ac19b896adf44d54812983b72da), [`b5fc1bd`](https://github.com/LedgerHQ/ledger-live/commit/b5fc1bd28fff091241905fec5ff8dc8af4c99b79), [`03af552`](https://github.com/LedgerHQ/ledger-live/commit/03af552b621e19e31747a65b1870dfe8d3bb005b), [`89ac0ed`](https://github.com/LedgerHQ/ledger-live/commit/89ac0eddc145dcf5c7cf240aa8be4301372c8f33), [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6), [`8645f01`](https://github.com/LedgerHQ/ledger-live/commit/8645f016191d29a55f6b0ca6e4b1d1909fd35445), [`1d9860c`](https://github.com/LedgerHQ/ledger-live/commit/1d9860cd1688131d391579955b40c6710b667db8), [`d2b12e7`](https://github.com/LedgerHQ/ledger-live/commit/d2b12e70bba9e772d078d1fe4d9c537b8d316a87), [`db25e21`](https://github.com/LedgerHQ/ledger-live/commit/db25e212b87dea426b153c6f1d988cead63c8c46), [`bc6e500`](https://github.com/LedgerHQ/ledger-live/commit/bc6e500bfd0f47bfbee2fdbe65f9a42e02793255), [`c8dbf40`](https://github.com/LedgerHQ/ledger-live/commit/c8dbf402268359e225a94782420111e786f875fa), [`cab7d97`](https://github.com/LedgerHQ/ledger-live/commit/cab7d9794e7babb8220c6d339fb08e618e3d4202)]:
25
+ - @ledgerhq/cryptoassets@13.31.0
26
+ - @ledgerhq/types-live@6.87.0
27
+ - @ledgerhq/coin-solana@0.35.0
28
+ - @ledgerhq/coin-framework@6.7.0
29
+ - @ledgerhq/live-env@2.19.0
30
+ - @ledgerhq/types-cryptoassets@7.29.0
31
+ - @ledgerhq/live-signer-solana@0.5.8
69
32
  - @ledgerhq/coin-tester@0.10.1
70
- - @ledgerhq/cryptoassets@13.31.0-nightly.3
71
-
72
- ## 1.6.0-nightly.2
73
-
74
- ### Minor Changes
75
33
 
76
- - [#12196](https://github.com/LedgerHQ/ledger-live/pull/12196) [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Remove deprecated getTokenById and hasTokenId functions
34
+ ## 1.6.0-next.1
77
35
 
78
36
  ### Patch Changes
79
37
 
80
- - Updated dependencies [[`c6a676f`](https://github.com/LedgerHQ/ledger-live/commit/c6a676ff80581ac19b896adf44d54812983b72da), [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6)]:
81
- - @ledgerhq/coin-framework@6.7.0-nightly.2
82
- - @ledgerhq/cryptoassets@13.31.0-nightly.2
83
- - @ledgerhq/coin-solana@0.35.0-nightly.2
84
- - @ledgerhq/live-signer-solana@0.5.8-nightly.2
38
+ - Updated dependencies [[`b88faa1`](https://github.com/LedgerHQ/ledger-live/commit/b88faa18e2f5cd309b54fc3157a44db606846cc5)]:
39
+ - @ledgerhq/types-live@6.87.0-next.1
40
+ - @ledgerhq/coin-framework@6.7.0-next.1
41
+ - @ledgerhq/coin-solana@0.35.0-next.1
42
+ - @ledgerhq/coin-tester@0.10.1
43
+ - @ledgerhq/cryptoassets@13.31.0-next.1
44
+ - @ledgerhq/live-signer-solana@0.5.8-next.1
85
45
 
86
- ## 1.6.0-nightly.1
46
+ ## 1.6.0-next.0
87
47
 
88
48
  ### Minor Changes
89
49
 
@@ -100,29 +60,19 @@
100
60
  - Update all usages to `findTokenByAddressInCurrency` across the codebase
101
61
  - Update CryptoAssetsStore interface to remove the deprecated method
102
62
 
103
- ### Patch Changes
104
-
105
- - Updated dependencies [[`ea16f59`](https://github.com/LedgerHQ/ledger-live/commit/ea16f592e85019a1b77287a7f2b975c6fcffc74c), [`a9aacdb`](https://github.com/LedgerHQ/ledger-live/commit/a9aacdb330700f0a294833f7d77de17f179229b2), [`f1f3845`](https://github.com/LedgerHQ/ledger-live/commit/f1f3845942e4cbce9c585dc65f6170ddbc319f19), [`89ac0ed`](https://github.com/LedgerHQ/ledger-live/commit/89ac0eddc145dcf5c7cf240aa8be4301372c8f33), [`db25e21`](https://github.com/LedgerHQ/ledger-live/commit/db25e212b87dea426b153c6f1d988cead63c8c46)]:
106
- - @ledgerhq/cryptoassets@13.31.0-nightly.1
107
- - @ledgerhq/types-live@6.87.0-nightly.1
108
- - @ledgerhq/coin-solana@0.35.0-nightly.1
109
- - @ledgerhq/live-env@2.19.0-nightly.0
110
- - @ledgerhq/coin-framework@6.7.0-nightly.1
111
- - @ledgerhq/live-signer-solana@0.5.8-nightly.1
112
- - @ledgerhq/coin-tester@0.10.1
113
-
114
- ## 1.5.4-nightly.0
63
+ - [#12196](https://github.com/LedgerHQ/ledger-live/pull/12196) [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Remove deprecated getTokenById and hasTokenId functions
115
64
 
116
65
  ### Patch Changes
117
66
 
118
- - Updated dependencies [[`cfe65ca`](https://github.com/LedgerHQ/ledger-live/commit/cfe65cafa268be4e53197ee163ce78f28ed72592), [`b5fc1bd`](https://github.com/LedgerHQ/ledger-live/commit/b5fc1bd28fff091241905fec5ff8dc8af4c99b79), [`03af552`](https://github.com/LedgerHQ/ledger-live/commit/03af552b621e19e31747a65b1870dfe8d3bb005b), [`d2b12e7`](https://github.com/LedgerHQ/ledger-live/commit/d2b12e70bba9e772d078d1fe4d9c537b8d316a87), [`bc6e500`](https://github.com/LedgerHQ/ledger-live/commit/bc6e500bfd0f47bfbee2fdbe65f9a42e02793255), [`cab7d97`](https://github.com/LedgerHQ/ledger-live/commit/cab7d9794e7babb8220c6d339fb08e618e3d4202)]:
119
- - @ledgerhq/cryptoassets@13.31.0-nightly.0
120
- - @ledgerhq/types-live@6.87.0-nightly.0
121
- - @ledgerhq/coin-framework@6.7.0-nightly.0
122
- - @ledgerhq/coin-solana@0.35.0-nightly.0
123
- - @ledgerhq/types-cryptoassets@7.29.0-nightly.0
67
+ - Updated dependencies [[`ea16f59`](https://github.com/LedgerHQ/ledger-live/commit/ea16f592e85019a1b77287a7f2b975c6fcffc74c), [`cfe65ca`](https://github.com/LedgerHQ/ledger-live/commit/cfe65cafa268be4e53197ee163ce78f28ed72592), [`a9aacdb`](https://github.com/LedgerHQ/ledger-live/commit/a9aacdb330700f0a294833f7d77de17f179229b2), [`3979c07`](https://github.com/LedgerHQ/ledger-live/commit/3979c0715e4f54165c89d00ebe1441e064e1a110), [`f1f3845`](https://github.com/LedgerHQ/ledger-live/commit/f1f3845942e4cbce9c585dc65f6170ddbc319f19), [`c6a676f`](https://github.com/LedgerHQ/ledger-live/commit/c6a676ff80581ac19b896adf44d54812983b72da), [`b5fc1bd`](https://github.com/LedgerHQ/ledger-live/commit/b5fc1bd28fff091241905fec5ff8dc8af4c99b79), [`03af552`](https://github.com/LedgerHQ/ledger-live/commit/03af552b621e19e31747a65b1870dfe8d3bb005b), [`89ac0ed`](https://github.com/LedgerHQ/ledger-live/commit/89ac0eddc145dcf5c7cf240aa8be4301372c8f33), [`565da80`](https://github.com/LedgerHQ/ledger-live/commit/565da807b1ebbfc830fd0e47b3d8856f88d410a6), [`8645f01`](https://github.com/LedgerHQ/ledger-live/commit/8645f016191d29a55f6b0ca6e4b1d1909fd35445), [`1d9860c`](https://github.com/LedgerHQ/ledger-live/commit/1d9860cd1688131d391579955b40c6710b667db8), [`d2b12e7`](https://github.com/LedgerHQ/ledger-live/commit/d2b12e70bba9e772d078d1fe4d9c537b8d316a87), [`db25e21`](https://github.com/LedgerHQ/ledger-live/commit/db25e212b87dea426b153c6f1d988cead63c8c46), [`bc6e500`](https://github.com/LedgerHQ/ledger-live/commit/bc6e500bfd0f47bfbee2fdbe65f9a42e02793255), [`c8dbf40`](https://github.com/LedgerHQ/ledger-live/commit/c8dbf402268359e225a94782420111e786f875fa), [`cab7d97`](https://github.com/LedgerHQ/ledger-live/commit/cab7d9794e7babb8220c6d339fb08e618e3d4202)]:
68
+ - @ledgerhq/cryptoassets@13.31.0-next.0
69
+ - @ledgerhq/types-live@6.87.0-next.0
70
+ - @ledgerhq/coin-solana@0.35.0-next.0
71
+ - @ledgerhq/coin-framework@6.7.0-next.0
72
+ - @ledgerhq/live-env@2.19.0-next.0
73
+ - @ledgerhq/types-cryptoassets@7.29.0-next.0
74
+ - @ledgerhq/live-signer-solana@0.5.8-next.0
124
75
  - @ledgerhq/coin-tester@0.10.1
125
- - @ledgerhq/live-signer-solana@0.5.8-nightly.0
126
76
 
127
77
  ## 1.5.3
128
78
 
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=scenarii.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scenarii.test.d.ts","sourceRoot":"","sources":["../../src/scenarii.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { executeScenario } from "@ledgerhq/coin-tester/main";
2
+ import { killSpeculos } from "@ledgerhq/coin-tester/signers/speculos";
3
+ import { scenarioSolana } from "./scenarii/solana";
4
+ import { killAgave } from "./agave";
5
+ import { legacyCryptoAssetsStore } from "@ledgerhq/cryptoassets/tokens";
6
+ import { setCryptoAssetsStoreGetter } from "@ledgerhq/coin-solana/cryptoAssetsStore";
7
+ ["exit", "SIGINT", "SIGQUIT", "SIGTERM", "SIGUSR1", "SIGUSR2", "uncaughtException"].map(e => process.on(e, async () => {
8
+ await Promise.all([killSpeculos(), killAgave()]);
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(() => legacyCryptoAssetsStore);
13
+ describe("Solana Deterministic Tester", () => {
14
+ it("scenario Solana", async () => {
15
+ try {
16
+ await executeScenario(scenarioSolana);
17
+ }
18
+ catch (e) {
19
+ if (e !== "done") {
20
+ await Promise.all([killSpeculos(), killAgave()]);
21
+ throw e;
22
+ }
23
+ }
24
+ });
25
+ });
26
+ //# sourceMappingURL=scenarii.test.js.map
@@ -0,0 +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;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,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,mIAAmI;AACnI,sCAAsC;AACtC,0BAA0B,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC;AAE1D,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;QAC/B,IAAI,CAAC;YACH,MAAM,eAAe,CAAC,cAAc,CAAC,CAAC;QACxC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,KAAK,MAAM,EAAE,CAAC;gBACjB,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;gBACjD,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}