@ledgerhq/live-cli 24.26.0-nightly.6 → 24.26.0-nightly.7
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 +29 -6
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -519672,7 +519672,7 @@ var require_package7 = __commonJS({
|
|
|
519672
519672
|
module2.exports = {
|
|
519673
519673
|
name: "@ledgerhq/live-common",
|
|
519674
519674
|
description: "Common ground for the Ledger Live apps",
|
|
519675
|
-
version: "34.51.0-nightly.
|
|
519675
|
+
version: "34.51.0-nightly.7",
|
|
519676
519676
|
repository: {
|
|
519677
519677
|
type: "git",
|
|
519678
519678
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -520009,7 +520009,7 @@ var require_package8 = __commonJS({
|
|
|
520009
520009
|
"package.json"(exports2, module2) {
|
|
520010
520010
|
module2.exports = {
|
|
520011
520011
|
name: "@ledgerhq/live-cli",
|
|
520012
|
-
version: "24.26.0-nightly.
|
|
520012
|
+
version: "24.26.0-nightly.7",
|
|
520013
520013
|
description: "ledger-live CLI version",
|
|
520014
520014
|
repository: {
|
|
520015
520015
|
type: "git",
|
|
@@ -524948,6 +524948,11 @@ var envDefinitions = {
|
|
|
524948
524948
|
parser: stringParser,
|
|
524949
524949
|
desc: "switch the app into a DETOX mode for test purpose. Avoid falsy values."
|
|
524950
524950
|
},
|
|
524951
|
+
E2E_NANO_APP_VERSION_PATH: {
|
|
524952
|
+
def: "",
|
|
524953
|
+
parser: stringParser,
|
|
524954
|
+
desc: "Path for e2e nanoApp version artifacts (LLD and LLM)"
|
|
524955
|
+
},
|
|
524951
524956
|
EIP1559_MINIMUM_FEES_GATE: {
|
|
524952
524957
|
def: true,
|
|
524953
524958
|
parser: boolParser,
|
|
@@ -525222,6 +525227,11 @@ var envDefinitions = {
|
|
|
525222
525227
|
parser: stringParser,
|
|
525223
525228
|
desc: "Device model id for speculos"
|
|
525224
525229
|
},
|
|
525230
|
+
SPECULOS_FIRMWARE_VERSION: {
|
|
525231
|
+
def: "",
|
|
525232
|
+
parser: stringParser,
|
|
525233
|
+
desc: "Firmware version for speculos"
|
|
525234
|
+
},
|
|
525225
525235
|
SPECULOS_PID_OFFSET: {
|
|
525226
525236
|
def: 0,
|
|
525227
525237
|
parser: intParser,
|
|
@@ -525345,12 +525355,12 @@ var envDefinitions = {
|
|
|
525345
525355
|
desc: "Trustchain API Prod"
|
|
525346
525356
|
},
|
|
525347
525357
|
DADA_API_STAGING: {
|
|
525348
|
-
def: "https://dada.api.ledger-test.com/v1
|
|
525358
|
+
def: "https://dada.api.ledger-test.com/v1",
|
|
525349
525359
|
parser: stringParser,
|
|
525350
525360
|
desc: "Dynamic Assets Data Aggregator API Staging"
|
|
525351
525361
|
},
|
|
525352
525362
|
DADA_API_PROD: {
|
|
525353
|
-
def: "https://dada.api.ledger.com/v1
|
|
525363
|
+
def: "https://dada.api.ledger.com/v1",
|
|
525354
525364
|
parser: stringParser,
|
|
525355
525365
|
desc: "Dynamic Assets Data Aggregator API Prod"
|
|
525356
525366
|
},
|
|
@@ -590330,6 +590340,17 @@ var isCantonCoinPreapproved = async (currency24, partyId) => {
|
|
|
590330
590340
|
const isPreapproved = !isExpired && isReceiver;
|
|
590331
590341
|
return isPreapproved;
|
|
590332
590342
|
};
|
|
590343
|
+
var createOnboardedAccount = (account3, partyId, currency24) => ({
|
|
590344
|
+
...account3,
|
|
590345
|
+
xpub: partyId,
|
|
590346
|
+
id: encodeAccountId({
|
|
590347
|
+
type: "js",
|
|
590348
|
+
version: "2",
|
|
590349
|
+
currencyId: currency24.id,
|
|
590350
|
+
xpubOrAddress: partyId,
|
|
590351
|
+
derivationMode: account3.derivationMode
|
|
590352
|
+
})
|
|
590353
|
+
});
|
|
590333
590354
|
var buildOnboardAccount = (signerContext4) => (currency24, deviceId, account3) => new import_rxjs17.Observable((o41) => {
|
|
590334
590355
|
async function main2() {
|
|
590335
590356
|
o41.next({ status: OnboardStatus.INIT });
|
|
@@ -590342,7 +590363,8 @@ var buildOnboardAccount = (signerContext4) => (currency24, deviceId, account3) =
|
|
|
590342
590363
|
o41.next({ status: OnboardStatus.PREPARE });
|
|
590343
590364
|
let { partyId } = await isAccountOnboarded(currency24, publicKey3);
|
|
590344
590365
|
if (partyId) {
|
|
590345
|
-
|
|
590366
|
+
const onboardedAccount2 = createOnboardedAccount(account3, partyId, currency24);
|
|
590367
|
+
o41.next({ partyId, account: onboardedAccount2 });
|
|
590346
590368
|
return;
|
|
590347
590369
|
}
|
|
590348
590370
|
const preparedTransaction = await prepareOnboarding(currency24, publicKey3);
|
|
@@ -590351,7 +590373,8 @@ var buildOnboardAccount = (signerContext4) => (currency24, deviceId, account3) =
|
|
|
590351
590373
|
const signature4 = await signerContext4(deviceId, (signer2) => signer2.signTransaction(account3.freshAddressPath, preparedTransaction.transactions.combined_hash));
|
|
590352
590374
|
o41.next({ status: OnboardStatus.SUBMIT });
|
|
590353
590375
|
await submitOnboarding(currency24, publicKey3, preparedTransaction, signature4);
|
|
590354
|
-
|
|
590376
|
+
const onboardedAccount = createOnboardedAccount(account3, partyId, currency24);
|
|
590377
|
+
o41.next({ partyId, account: onboardedAccount });
|
|
590355
590378
|
}
|
|
590356
590379
|
main2().then(() => o41.complete(), (error) => {
|
|
590357
590380
|
log2("[canton:onboard] onboardAccount failed:", error);
|