@ledgerhq/live-cli 24.21.3-nightly.2 → 24.21.3-nightly.3
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/lib/cli.js +24 -6
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -527196,7 +527196,7 @@ var require_package7 = __commonJS({
|
|
|
527196
527196
|
module2.exports = {
|
|
527197
527197
|
name: "@ledgerhq/live-common",
|
|
527198
527198
|
description: "Common ground for the Ledger Live apps",
|
|
527199
|
-
version: "34.47.0-nightly.
|
|
527199
|
+
version: "34.47.0-nightly.3",
|
|
527200
527200
|
repository: {
|
|
527201
527201
|
type: "git",
|
|
527202
527202
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -527942,7 +527942,7 @@ var require_package8 = __commonJS({
|
|
|
527942
527942
|
"package.json"(exports2, module2) {
|
|
527943
527943
|
module2.exports = {
|
|
527944
527944
|
name: "@ledgerhq/live-cli",
|
|
527945
|
-
version: "24.21.3-nightly.
|
|
527945
|
+
version: "24.21.3-nightly.3",
|
|
527946
527946
|
description: "ledger-live CLI version",
|
|
527947
527947
|
repository: {
|
|
527948
527948
|
type: "git",
|
|
@@ -765759,6 +765759,10 @@ async function getValidators4(cluster) {
|
|
|
765759
765759
|
}
|
|
765760
765760
|
|
|
765761
765761
|
// ../../libs/coin-modules/coin-solana/lib-es/preload.js
|
|
765762
|
+
var shouldSkipTokenLoading2 = false;
|
|
765763
|
+
function setShouldSkipTokenLoading2(skip2) {
|
|
765764
|
+
shouldSkipTokenLoading2 = skip2;
|
|
765765
|
+
}
|
|
765762
765766
|
var PRELOAD_MAX_AGE6 = 15 * 60 * 1e3;
|
|
765763
765767
|
var fetchSPLTokens = async (currency24) => {
|
|
765764
765768
|
const latestCALHash = getCALHash2(currency24);
|
|
@@ -765775,14 +765779,18 @@ var fetchSPLTokens = async (currency24) => {
|
|
|
765775
765779
|
]);
|
|
765776
765780
|
setCALHash2(currency24, hash10 || "");
|
|
765777
765781
|
log2("solana/preload", "preload " + splTokens.length + " tokens");
|
|
765778
|
-
|
|
765782
|
+
if (!shouldSkipTokenLoading2) {
|
|
765783
|
+
addTokens(splTokens.map(convertSplTokens));
|
|
765784
|
+
}
|
|
765779
765785
|
return splTokens;
|
|
765780
765786
|
} catch (e36) {
|
|
765781
765787
|
if (e36 instanceof AxiosError2 && e36.response?.status === 304) {
|
|
765782
765788
|
log2("solana/preload", `loading existing fallback tokens for solana with hash ${latestCALHash || spl_hash_default}`);
|
|
765783
765789
|
if (!latestCALHash) {
|
|
765784
765790
|
setCALHash2(currency24, spl_hash_default);
|
|
765785
|
-
|
|
765791
|
+
if (!shouldSkipTokenLoading2) {
|
|
765792
|
+
addTokens(spl_default2.map(convertSplTokens));
|
|
765793
|
+
}
|
|
765786
765794
|
return spl_default2;
|
|
765787
765795
|
}
|
|
765788
765796
|
return null;
|
|
@@ -765834,12 +765842,16 @@ function hydrate8(data6, currency24) {
|
|
|
765834
765842
|
}
|
|
765835
765843
|
function hydrateV1(data6, currency24) {
|
|
765836
765844
|
if (Array.isArray(data6.splTokens)) {
|
|
765837
|
-
|
|
765845
|
+
if (!shouldSkipTokenLoading2) {
|
|
765846
|
+
addTokens(data6.splTokens.map(convertSplTokens));
|
|
765847
|
+
}
|
|
765838
765848
|
log2("solana/preload", `hydrate ${data6.splTokens.length} tokens`);
|
|
765839
765849
|
setSolanaPreloadData(data6, currency24);
|
|
765840
765850
|
return;
|
|
765841
765851
|
}
|
|
765842
|
-
|
|
765852
|
+
if (!shouldSkipTokenLoading2) {
|
|
765853
|
+
addTokens(spl_default2.map(convertSplTokens));
|
|
765854
|
+
}
|
|
765843
765855
|
log2("solana/preload", `hydrate fallback ${spl_default2.length} embedded tokens`);
|
|
765844
765856
|
setSolanaPreloadData(data6, currency24);
|
|
765845
765857
|
}
|
|
@@ -769087,6 +769099,12 @@ var createSigner17 = (transport) => new LegacySignerSolana(transport);
|
|
|
769087
769099
|
var getCurrencyConfig8 = () => {
|
|
769088
769100
|
return getCurrencyConfiguration(getCryptoCurrencyById("solana"));
|
|
769089
769101
|
};
|
|
769102
|
+
try {
|
|
769103
|
+
const isCALLazyLoadingEnabled = LiveConfig.getValueByKey("feature_cal_lazy_loading");
|
|
769104
|
+
setShouldSkipTokenLoading2(Boolean(isCALLazyLoadingEnabled));
|
|
769105
|
+
} catch (error) {
|
|
769106
|
+
setShouldSkipTokenLoading2(false);
|
|
769107
|
+
}
|
|
769090
769108
|
var bridge18 = createBridges17(executeWithSigner(createSigner17), getCurrencyConfig8, getCryptoAssetsStore3);
|
|
769091
769109
|
var messageSigner6 = {
|
|
769092
769110
|
signMessage: createMessageSigner(createSigner17, signMessage7)
|