@ledgerhq/live-cli 24.19.5-nightly.1 → 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 +156 -16
- package/package.json +3 -3
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.
|
|
523475
|
+
version: "24.20.0-nightly.3",
|
|
523476
523476
|
description: "ledger-live CLI version",
|
|
523477
523477
|
repository: {
|
|
523478
523478
|
type: "git",
|
|
@@ -533245,6 +533245,72 @@ var cryptocurrenciesById = {
|
|
|
533245
533245
|
}
|
|
533246
533246
|
]
|
|
533247
533247
|
},
|
|
533248
|
+
berachain: {
|
|
533249
|
+
type: "CryptoCurrency",
|
|
533250
|
+
id: "berachain",
|
|
533251
|
+
coinType: CoinType.ETH,
|
|
533252
|
+
name: "Berachain",
|
|
533253
|
+
managerAppName: "Ethereum",
|
|
533254
|
+
ticker: "BERA",
|
|
533255
|
+
scheme: "berachain",
|
|
533256
|
+
color: "#814625",
|
|
533257
|
+
family: "evm",
|
|
533258
|
+
units: ethereumUnits("BERA", "BERA"),
|
|
533259
|
+
ethereumLikeInfo: {
|
|
533260
|
+
chainId: 80094
|
|
533261
|
+
},
|
|
533262
|
+
explorerViews: [
|
|
533263
|
+
{
|
|
533264
|
+
tx: "https://berascan.com/tx/$hash",
|
|
533265
|
+
address: "https://berascan.com/address/$address",
|
|
533266
|
+
token: "https://berascan.com/token/$contractAddress?a=$address"
|
|
533267
|
+
}
|
|
533268
|
+
]
|
|
533269
|
+
},
|
|
533270
|
+
sei_network_evm: {
|
|
533271
|
+
type: "CryptoCurrency",
|
|
533272
|
+
id: "sei_network_evm",
|
|
533273
|
+
coinType: CoinType.ETH,
|
|
533274
|
+
name: "SEI Network EVM",
|
|
533275
|
+
managerAppName: "Ethereum",
|
|
533276
|
+
ticker: "SEI",
|
|
533277
|
+
scheme: "sei",
|
|
533278
|
+
color: "#89395b",
|
|
533279
|
+
family: "evm",
|
|
533280
|
+
units: ethereumUnits("SEI", "SEI"),
|
|
533281
|
+
ethereumLikeInfo: {
|
|
533282
|
+
chainId: 1329
|
|
533283
|
+
},
|
|
533284
|
+
explorerViews: [
|
|
533285
|
+
{
|
|
533286
|
+
tx: "https://seistream.app/transactions/$hash",
|
|
533287
|
+
address: "https://seistream.app/account/$address",
|
|
533288
|
+
token: "https://seistream.app/tokens/$address"
|
|
533289
|
+
}
|
|
533290
|
+
]
|
|
533291
|
+
},
|
|
533292
|
+
hyperevm: {
|
|
533293
|
+
type: "CryptoCurrency",
|
|
533294
|
+
id: "hyperevm",
|
|
533295
|
+
coinType: CoinType.ETH,
|
|
533296
|
+
name: "HyperEVM",
|
|
533297
|
+
managerAppName: "Ethereum",
|
|
533298
|
+
ticker: "HYPE",
|
|
533299
|
+
scheme: "hyperevm",
|
|
533300
|
+
color: "#97FCE4",
|
|
533301
|
+
family: "evm",
|
|
533302
|
+
units: ethereumUnits("HYPE", "HYPE"),
|
|
533303
|
+
ethereumLikeInfo: {
|
|
533304
|
+
chainId: 999
|
|
533305
|
+
},
|
|
533306
|
+
explorerViews: [
|
|
533307
|
+
{
|
|
533308
|
+
tx: "https://www.hyperscan.com/tx/$hash",
|
|
533309
|
+
address: "https://www.hyperscan.com/address/$address",
|
|
533310
|
+
token: "https://www.hyperscan.com/token/$contractAddress"
|
|
533311
|
+
}
|
|
533312
|
+
]
|
|
533313
|
+
},
|
|
533248
533314
|
polygon_zk_evm: {
|
|
533249
533315
|
type: "CryptoCurrency",
|
|
533250
533316
|
id: "polygon_zk_evm",
|
|
@@ -534431,7 +534497,10 @@ var abandonSeedAddresses = {
|
|
|
534431
534497
|
sonic: EVM_DEAD_ADDRESS,
|
|
534432
534498
|
sonic_blaze: EVM_DEAD_ADDRESS,
|
|
534433
534499
|
mina: "B62qmphduibdMJQjEvnnDizL9kVV4ripuiE9adR2wsqtegJaxHJzCic",
|
|
534434
|
-
babylon: "bbn1vh34djka7ug2gww9njrsmmr7emj3dx3paz5sj4"
|
|
534500
|
+
babylon: "bbn1vh34djka7ug2gww9njrsmmr7emj3dx3paz5sj4",
|
|
534501
|
+
hyperevm: EVM_DEAD_ADDRESS,
|
|
534502
|
+
sei_network_evm: EVM_DEAD_ADDRESS,
|
|
534503
|
+
berachain: EVM_DEAD_ADDRESS
|
|
534435
534504
|
};
|
|
534436
534505
|
var getAbandonSeedAddress = (currencyId) => {
|
|
534437
534506
|
(0, import_invariant.default)(abandonSeedAddresses[currencyId] !== void 0, `No abandonseed available for ${currencyId}`);
|
|
@@ -544906,6 +544975,9 @@ setSupportedCurrencies([
|
|
|
544906
544975
|
"base_sepolia",
|
|
544907
544976
|
"stacks",
|
|
544908
544977
|
"telos_evm",
|
|
544978
|
+
"sei_network_evm",
|
|
544979
|
+
"berachain",
|
|
544980
|
+
"hyperevm",
|
|
544909
544981
|
"coreum",
|
|
544910
544982
|
"injective",
|
|
544911
544983
|
"casper",
|
|
@@ -762923,7 +762995,8 @@ var TokenAccountExtensions = array3(union3([
|
|
|
762923
762995
|
\u0421piGuardExt,
|
|
762924
762996
|
NonTransferableAccountExt,
|
|
762925
762997
|
ConfidentialTransferFeeAmountExt,
|
|
762926
|
-
TransferHookAccountExt
|
|
762998
|
+
TransferHookAccountExt,
|
|
762999
|
+
UnknownExt
|
|
762927
763000
|
]));
|
|
762928
763001
|
var MintExtensionType = enums([
|
|
762929
763002
|
"transferFeeConfig",
|
|
@@ -807310,6 +807383,12 @@ var TRANSACTIONS_LIMIT_PER_QUERY = 50;
|
|
|
807310
807383
|
var TRANSACTIONS_LIMIT = 300;
|
|
807311
807384
|
var BLOCK_HEIGHT = 5;
|
|
807312
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
|
+
};
|
|
807313
807392
|
var fetcher = (url4, options22, retry6 = 3) => {
|
|
807314
807393
|
if (options22) {
|
|
807315
807394
|
options22.headers = {
|
|
@@ -807561,12 +807640,7 @@ var queryTransactions = async (params) => {
|
|
|
807561
807640
|
filter: filter26,
|
|
807562
807641
|
cursor,
|
|
807563
807642
|
order,
|
|
807564
|
-
options:
|
|
807565
|
-
showInput: true,
|
|
807566
|
-
showBalanceChanges: true,
|
|
807567
|
-
showEffects: true
|
|
807568
|
-
// To get transaction status and gas fee details
|
|
807569
|
-
},
|
|
807643
|
+
options: TRANSACTIONS_QUERY_OPTIONS,
|
|
807570
807644
|
limit: TRANSACTIONS_LIMIT_PER_QUERY
|
|
807571
807645
|
});
|
|
807572
807646
|
};
|
|
@@ -809261,7 +809335,7 @@ var getAccount11 = async (address4) => {
|
|
|
809261
809335
|
spendableBalance
|
|
809262
809336
|
};
|
|
809263
809337
|
};
|
|
809264
|
-
var
|
|
809338
|
+
var getBlockInfo3 = async (blockHeight) => {
|
|
809265
809339
|
const data6 = await rosettaGetBlockInfo(blockHeight);
|
|
809266
809340
|
return data6;
|
|
809267
809341
|
};
|
|
@@ -809319,7 +809393,7 @@ var mapRosettaTxnToOperation = async (accountId2, address4, txn) => {
|
|
|
809319
809393
|
const hash12 = txn.transaction.transaction_identifier.hash;
|
|
809320
809394
|
const blockHeight = txn.block_identifier.index;
|
|
809321
809395
|
const blockHash = txn.block_identifier.hash;
|
|
809322
|
-
const date = new Date(txn.timestamp ?? (await
|
|
809396
|
+
const date = new Date(txn.timestamp ?? (await getBlockInfo3(blockHeight)).block.timestamp);
|
|
809323
809397
|
const memo3 = txn.transaction.metadata?.memo || "";
|
|
809324
809398
|
let value5 = new import_bignumber323.default(0);
|
|
809325
809399
|
let fee = new import_bignumber323.default(0);
|
|
@@ -815941,7 +816015,13 @@ function createApi(config4) {
|
|
|
815941
816015
|
lastBlock: lastBlock7,
|
|
815942
816016
|
listOperations: operations,
|
|
815943
816017
|
validateIntent: getTransactionStatus37,
|
|
815944
|
-
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
|
+
}
|
|
815945
816025
|
};
|
|
815946
816026
|
}
|
|
815947
816027
|
async function craft(transactionIntent, customFees) {
|
|
@@ -815951,7 +816031,7 @@ async function craft(transactionIntent, customFees) {
|
|
|
815951
816031
|
const destinationTagValue = memosMap.get("destinationTag");
|
|
815952
816032
|
const destinationTag = typeof destinationTagValue === "string" ? Number(destinationTagValue) : void 0;
|
|
815953
816033
|
const memoStrings = memosMap.get("memos");
|
|
815954
|
-
let memoEntries =
|
|
816034
|
+
let memoEntries = void 0;
|
|
815955
816035
|
if (Array.isArray(memoStrings) && memoStrings.length > 0) {
|
|
815956
816036
|
memoEntries = memoStrings.map((value5) => ({ type: "memo", data: value5 }));
|
|
815957
816037
|
}
|
|
@@ -816136,7 +816216,13 @@ var getNetworkAlpacaApi = (networkFamily) => ({
|
|
|
816136
816216
|
getAccountInfo: buildGetAccountInfo(networkFamily),
|
|
816137
816217
|
listOperations: buildListOperations(networkFamily),
|
|
816138
816218
|
lastBlock: buildLastBlock(networkFamily),
|
|
816139
|
-
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
|
+
}
|
|
816140
816226
|
});
|
|
816141
816227
|
|
|
816142
816228
|
// ../../libs/ledger-live-common/lib-es/bridge/generic-alpaca/alpaca/index.js
|
|
@@ -820454,6 +820540,57 @@ var evmConfig = {
|
|
|
820454
820540
|
showNfts: false
|
|
820455
820541
|
}
|
|
820456
820542
|
},
|
|
820543
|
+
config_currency_sei_network_evm: {
|
|
820544
|
+
type: "object",
|
|
820545
|
+
default: {
|
|
820546
|
+
status: {
|
|
820547
|
+
type: "active"
|
|
820548
|
+
},
|
|
820549
|
+
node: {
|
|
820550
|
+
type: "external",
|
|
820551
|
+
uri: "https://sei-evm-rpc.publicnode.com"
|
|
820552
|
+
},
|
|
820553
|
+
explorer: {
|
|
820554
|
+
type: "etherscan",
|
|
820555
|
+
uri: "https://proxyetherscan.api.live.ledger.com/v2/api/1329"
|
|
820556
|
+
},
|
|
820557
|
+
showNfts: false
|
|
820558
|
+
}
|
|
820559
|
+
},
|
|
820560
|
+
config_currency_berachain: {
|
|
820561
|
+
type: "object",
|
|
820562
|
+
default: {
|
|
820563
|
+
status: {
|
|
820564
|
+
type: "active"
|
|
820565
|
+
},
|
|
820566
|
+
node: {
|
|
820567
|
+
type: "external",
|
|
820568
|
+
uri: "https://rpc.berachain.com"
|
|
820569
|
+
},
|
|
820570
|
+
explorer: {
|
|
820571
|
+
type: "etherscan",
|
|
820572
|
+
uri: "https://proxyetherscan.api.live.ledger.com/v2/api/80094"
|
|
820573
|
+
},
|
|
820574
|
+
showNfts: false
|
|
820575
|
+
}
|
|
820576
|
+
},
|
|
820577
|
+
config_currency_hyperevm: {
|
|
820578
|
+
type: "object",
|
|
820579
|
+
default: {
|
|
820580
|
+
status: {
|
|
820581
|
+
type: "active"
|
|
820582
|
+
},
|
|
820583
|
+
node: {
|
|
820584
|
+
type: "external",
|
|
820585
|
+
uri: "https://rpc.hypurrscan.io"
|
|
820586
|
+
},
|
|
820587
|
+
explorer: {
|
|
820588
|
+
type: "etherscan",
|
|
820589
|
+
uri: "https://proxyetherscan.api.live.ledger.com/v2/api/999"
|
|
820590
|
+
},
|
|
820591
|
+
showNfts: false
|
|
820592
|
+
}
|
|
820593
|
+
},
|
|
820457
820594
|
config_currency_polygon_zk_evm: {
|
|
820458
820595
|
type: "object",
|
|
820459
820596
|
default: {
|
|
@@ -823824,7 +823961,10 @@ var minBalancePerCurrencyId = {
|
|
|
823824
823961
|
linea: 1e-3,
|
|
823825
823962
|
linea_sepolia: 1e-3,
|
|
823826
823963
|
blast: 1e-3,
|
|
823827
|
-
blast_sepolia: 1e-3
|
|
823964
|
+
blast_sepolia: 1e-3,
|
|
823965
|
+
hyperevm: 1e-3,
|
|
823966
|
+
berachain: 1e-3,
|
|
823967
|
+
sei_network_evm: 1e-3
|
|
823828
823968
|
};
|
|
823829
823969
|
var testCoinDestination = (args3) => {
|
|
823830
823970
|
const { sendingAccount } = args3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.20.0-nightly.3",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@types/ws": "8.5.10",
|
|
58
58
|
"ts-node": "10.9.2",
|
|
59
59
|
"tsup": "7.3.0",
|
|
60
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
|
61
|
-
"@ledgerhq/types-live": "^6.
|
|
60
|
+
"@ledgerhq/types-cryptoassets": "^7.24.0-nightly.0",
|
|
61
|
+
"@ledgerhq/types-live": "^6.78.0-nightly.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"directory": "dist"
|