@ledgerhq/coin-tester-solana 1.6.0-nightly.7 → 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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +37 -78
- package/lib/src/scenarii.test.d.ts +2 -0
- package/lib/src/scenarii.test.d.ts.map +1 -0
- package/lib/src/scenarii.test.js +26 -0
- package/lib/src/scenarii.test.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib-es/src/scenarii.test.d.ts +2 -0
- package/lib-es/src/scenarii.test.d.ts.map +1 -0
- package/lib-es/src/scenarii.test.js +26 -0
- package/lib-es/src/scenarii.test.js.map +1 -0
- package/lib-es/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-tester-solana@1.6.0
|
|
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,80 +1,49 @@
|
|
|
1
1
|
# @ledgerhq/coin-tester-solana
|
|
2
2
|
|
|
3
|
-
## 1.6.0
|
|
3
|
+
## 1.6.0
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
- 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)]:
|
|
8
|
-
- @ledgerhq/cryptoassets@13.31.0-nightly.7
|
|
9
|
-
- @ledgerhq/types-live@6.87.0-nightly.5
|
|
10
|
-
- @ledgerhq/live-env@2.19.0-nightly.2
|
|
11
|
-
- @ledgerhq/coin-framework@6.7.0-nightly.7
|
|
12
|
-
- @ledgerhq/coin-solana@0.35.0-nightly.7
|
|
13
|
-
- @ledgerhq/coin-tester@0.10.2-nightly.0
|
|
14
|
-
- @ledgerhq/live-signer-solana@0.6.0-nightly.7
|
|
15
|
-
|
|
16
|
-
## 1.6.0-nightly.6
|
|
17
|
-
|
|
18
|
-
### Patch Changes
|
|
19
|
-
|
|
20
|
-
- Updated dependencies [[`51995e9`](https://github.com/LedgerHQ/ledger-live/commit/51995e96a9e1fafe14c7cbe45ce0b1ec8ebd106b)]:
|
|
21
|
-
- @ledgerhq/types-live@6.87.0-nightly.4
|
|
22
|
-
- @ledgerhq/coin-framework@6.7.0-nightly.6
|
|
23
|
-
- @ledgerhq/coin-solana@0.35.0-nightly.6
|
|
24
|
-
- @ledgerhq/coin-tester@0.10.2-nightly.0
|
|
25
|
-
- @ledgerhq/cryptoassets@13.31.0-nightly.6
|
|
26
|
-
- @ledgerhq/live-signer-solana@0.6.0-nightly.6
|
|
27
|
-
|
|
28
|
-
## 1.6.0-nightly.5
|
|
5
|
+
### Minor Changes
|
|
29
6
|
|
|
30
|
-
|
|
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.
|
|
31
8
|
|
|
32
|
-
-
|
|
33
|
-
- @ledgerhq/live-env@2.19.0-nightly.1
|
|
34
|
-
- @ledgerhq/coin-framework@6.7.0-nightly.5
|
|
35
|
-
- @ledgerhq/coin-solana@0.35.0-nightly.5
|
|
36
|
-
- @ledgerhq/cryptoassets@13.31.0-nightly.5
|
|
37
|
-
- @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
|
|
38
10
|
|
|
39
|
-
|
|
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.
|
|
40
12
|
|
|
41
|
-
|
|
13
|
+
This includes:
|
|
42
14
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
- @ledgerhq/coin-tester@0.10.2-nightly.0
|
|
48
|
-
- @ledgerhq/cryptoassets@13.31.0-nightly.4
|
|
49
|
-
- @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
|
|
50
19
|
|
|
51
|
-
|
|
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
|
|
52
21
|
|
|
53
22
|
### Patch Changes
|
|
54
23
|
|
|
55
|
-
- Updated dependencies [[`
|
|
56
|
-
- @ledgerhq/
|
|
57
|
-
- @ledgerhq/live
|
|
58
|
-
- @ledgerhq/
|
|
59
|
-
- @ledgerhq/coin-framework@6.7.0
|
|
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
|
|
60
32
|
- @ledgerhq/coin-tester@0.10.1
|
|
61
|
-
- @ledgerhq/cryptoassets@13.31.0-nightly.3
|
|
62
|
-
|
|
63
|
-
## 1.6.0-nightly.2
|
|
64
|
-
|
|
65
|
-
### Minor Changes
|
|
66
33
|
|
|
67
|
-
|
|
34
|
+
## 1.6.0-next.1
|
|
68
35
|
|
|
69
36
|
### Patch Changes
|
|
70
37
|
|
|
71
|
-
- Updated dependencies [[`
|
|
72
|
-
- @ledgerhq/
|
|
73
|
-
- @ledgerhq/
|
|
74
|
-
- @ledgerhq/coin-solana@0.35.0-
|
|
75
|
-
- @ledgerhq/
|
|
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
|
|
76
45
|
|
|
77
|
-
## 1.6.0-
|
|
46
|
+
## 1.6.0-next.0
|
|
78
47
|
|
|
79
48
|
### Minor Changes
|
|
80
49
|
|
|
@@ -91,29 +60,19 @@
|
|
|
91
60
|
- Update all usages to `findTokenByAddressInCurrency` across the codebase
|
|
92
61
|
- Update CryptoAssetsStore interface to remove the deprecated method
|
|
93
62
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
- 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)]:
|
|
97
|
-
- @ledgerhq/cryptoassets@13.31.0-nightly.1
|
|
98
|
-
- @ledgerhq/types-live@6.87.0-nightly.1
|
|
99
|
-
- @ledgerhq/coin-solana@0.35.0-nightly.1
|
|
100
|
-
- @ledgerhq/live-env@2.19.0-nightly.0
|
|
101
|
-
- @ledgerhq/coin-framework@6.7.0-nightly.1
|
|
102
|
-
- @ledgerhq/live-signer-solana@0.5.8-nightly.1
|
|
103
|
-
- @ledgerhq/coin-tester@0.10.1
|
|
104
|
-
|
|
105
|
-
## 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
|
|
106
64
|
|
|
107
65
|
### Patch Changes
|
|
108
66
|
|
|
109
|
-
- 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)]:
|
|
110
|
-
- @ledgerhq/cryptoassets@13.31.0-
|
|
111
|
-
- @ledgerhq/types-live@6.87.0-
|
|
112
|
-
- @ledgerhq/coin-
|
|
113
|
-
- @ledgerhq/coin-
|
|
114
|
-
- @ledgerhq/
|
|
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
|
|
115
75
|
- @ledgerhq/coin-tester@0.10.1
|
|
116
|
-
- @ledgerhq/live-signer-solana@0.5.8-nightly.0
|
|
117
76
|
|
|
118
77
|
## 1.5.3
|
|
119
78
|
|
|
@@ -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"}
|