@ledgerhq/live-cli 24.20.0-nightly.2 → 24.20.0-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 +26 -13
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -516671,7 +516671,7 @@ var require_package8 = __commonJS({
|
|
|
516671
516671
|
module2.exports = {
|
|
516672
516672
|
name: "@ledgerhq/live-common",
|
|
516673
516673
|
description: "Common ground for the Ledger Live apps",
|
|
516674
|
-
version: "34.42.0-nightly.
|
|
516674
|
+
version: "34.42.0-nightly.3",
|
|
516675
516675
|
repository: {
|
|
516676
516676
|
type: "git",
|
|
516677
516677
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -523472,7 +523472,7 @@ var require_package9 = __commonJS({
|
|
|
523472
523472
|
"package.json"(exports2, module2) {
|
|
523473
523473
|
module2.exports = {
|
|
523474
523474
|
name: "@ledgerhq/live-cli",
|
|
523475
|
-
version: "24.20.0-nightly.
|
|
523475
|
+
version: "24.20.0-nightly.3",
|
|
523476
523476
|
description: "ledger-live CLI version",
|
|
523477
523477
|
repository: {
|
|
523478
523478
|
type: "git",
|
|
@@ -807383,6 +807383,12 @@ var TRANSACTIONS_LIMIT_PER_QUERY = 50;
|
|
|
807383
807383
|
var TRANSACTIONS_LIMIT = 300;
|
|
807384
807384
|
var BLOCK_HEIGHT = 5;
|
|
807385
807385
|
var DEFAULT_COIN_TYPE = "0x2::sui::SUI";
|
|
807386
|
+
var TRANSACTIONS_QUERY_OPTIONS = {
|
|
807387
|
+
showInput: true,
|
|
807388
|
+
showBalanceChanges: true,
|
|
807389
|
+
showEffects: true
|
|
807390
|
+
// To get transaction status and gas fee details
|
|
807391
|
+
};
|
|
807386
807392
|
var fetcher = (url4, options22, retry6 = 3) => {
|
|
807387
807393
|
if (options22) {
|
|
807388
807394
|
options22.headers = {
|
|
@@ -807634,12 +807640,7 @@ var queryTransactions = async (params) => {
|
|
|
807634
807640
|
filter: filter26,
|
|
807635
807641
|
cursor,
|
|
807636
807642
|
order,
|
|
807637
|
-
options:
|
|
807638
|
-
showInput: true,
|
|
807639
|
-
showBalanceChanges: true,
|
|
807640
|
-
showEffects: true
|
|
807641
|
-
// To get transaction status and gas fee details
|
|
807642
|
-
},
|
|
807643
|
+
options: TRANSACTIONS_QUERY_OPTIONS,
|
|
807643
807644
|
limit: TRANSACTIONS_LIMIT_PER_QUERY
|
|
807644
807645
|
});
|
|
807645
807646
|
};
|
|
@@ -809334,7 +809335,7 @@ var getAccount11 = async (address4) => {
|
|
|
809334
809335
|
spendableBalance
|
|
809335
809336
|
};
|
|
809336
809337
|
};
|
|
809337
|
-
var
|
|
809338
|
+
var getBlockInfo3 = async (blockHeight) => {
|
|
809338
809339
|
const data6 = await rosettaGetBlockInfo(blockHeight);
|
|
809339
809340
|
return data6;
|
|
809340
809341
|
};
|
|
@@ -809392,7 +809393,7 @@ var mapRosettaTxnToOperation = async (accountId2, address4, txn) => {
|
|
|
809392
809393
|
const hash12 = txn.transaction.transaction_identifier.hash;
|
|
809393
809394
|
const blockHeight = txn.block_identifier.index;
|
|
809394
809395
|
const blockHash = txn.block_identifier.hash;
|
|
809395
|
-
const date = new Date(txn.timestamp ?? (await
|
|
809396
|
+
const date = new Date(txn.timestamp ?? (await getBlockInfo3(blockHeight)).block.timestamp);
|
|
809396
809397
|
const memo3 = txn.transaction.metadata?.memo || "";
|
|
809397
809398
|
let value5 = new import_bignumber323.default(0);
|
|
809398
809399
|
let fee = new import_bignumber323.default(0);
|
|
@@ -816014,7 +816015,13 @@ function createApi(config4) {
|
|
|
816014
816015
|
lastBlock: lastBlock7,
|
|
816015
816016
|
listOperations: operations,
|
|
816016
816017
|
validateIntent: getTransactionStatus37,
|
|
816017
|
-
getAccountInfo: getAccountInfo2
|
|
816018
|
+
getAccountInfo: getAccountInfo2,
|
|
816019
|
+
getBlock(_height) {
|
|
816020
|
+
throw new Error("getBlock is not supported");
|
|
816021
|
+
},
|
|
816022
|
+
getBlockInfo(_height) {
|
|
816023
|
+
throw new Error("getBlockInfo is not supported");
|
|
816024
|
+
}
|
|
816018
816025
|
};
|
|
816019
816026
|
}
|
|
816020
816027
|
async function craft(transactionIntent, customFees) {
|
|
@@ -816024,7 +816031,7 @@ async function craft(transactionIntent, customFees) {
|
|
|
816024
816031
|
const destinationTagValue = memosMap.get("destinationTag");
|
|
816025
816032
|
const destinationTag = typeof destinationTagValue === "string" ? Number(destinationTagValue) : void 0;
|
|
816026
816033
|
const memoStrings = memosMap.get("memos");
|
|
816027
|
-
let memoEntries =
|
|
816034
|
+
let memoEntries = void 0;
|
|
816028
816035
|
if (Array.isArray(memoStrings) && memoStrings.length > 0) {
|
|
816029
816036
|
memoEntries = memoStrings.map((value5) => ({ type: "memo", data: value5 }));
|
|
816030
816037
|
}
|
|
@@ -816209,7 +816216,13 @@ var getNetworkAlpacaApi = (networkFamily) => ({
|
|
|
816209
816216
|
getAccountInfo: buildGetAccountInfo(networkFamily),
|
|
816210
816217
|
listOperations: buildListOperations(networkFamily),
|
|
816211
816218
|
lastBlock: buildLastBlock(networkFamily),
|
|
816212
|
-
craftTransaction: buildCraftTransaction(networkFamily)
|
|
816219
|
+
craftTransaction: buildCraftTransaction(networkFamily),
|
|
816220
|
+
getBlock(_height) {
|
|
816221
|
+
throw new Error("getBlock is not supported");
|
|
816222
|
+
},
|
|
816223
|
+
getBlockInfo(_height) {
|
|
816224
|
+
throw new Error("getBlockInfo is not supported");
|
|
816225
|
+
}
|
|
816213
816226
|
});
|
|
816214
816227
|
|
|
816215
816228
|
// ../../libs/ledger-live-common/lib-es/bridge/generic-alpaca/alpaca/index.js
|