@ledgerhq/live-cli 24.18.8-nightly.0 → 24.18.8-nightly.1
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 +6 -4
- package/package.json +3 -3
package/lib/cli.js
CHANGED
|
@@ -523353,7 +523353,7 @@ var require_package8 = __commonJS({
|
|
|
523353
523353
|
module2.exports = {
|
|
523354
523354
|
name: "@ledgerhq/live-common",
|
|
523355
523355
|
description: "Common ground for the Ledger Live apps",
|
|
523356
|
-
version: "34.38.0-nightly.
|
|
523356
|
+
version: "34.38.0-nightly.1",
|
|
523357
523357
|
repository: {
|
|
523358
523358
|
type: "git",
|
|
523359
523359
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -530154,7 +530154,7 @@ var require_package9 = __commonJS({
|
|
|
530154
530154
|
"package.json"(exports2, module2) {
|
|
530155
530155
|
module2.exports = {
|
|
530156
530156
|
name: "@ledgerhq/live-cli",
|
|
530157
|
-
version: "24.18.8-nightly.
|
|
530157
|
+
version: "24.18.8-nightly.1",
|
|
530158
530158
|
description: "ledger-live CLI version",
|
|
530159
530159
|
repository: {
|
|
530160
530160
|
type: "git",
|
|
@@ -602626,7 +602626,7 @@ var cosmosConfig = {
|
|
|
602626
602626
|
config_currency_osmo: {
|
|
602627
602627
|
type: "object",
|
|
602628
602628
|
default: {
|
|
602629
|
-
lcd: "https://
|
|
602629
|
+
lcd: "https://osmo.coin.ledger.com",
|
|
602630
602630
|
minGasPrice: 0.025,
|
|
602631
602631
|
ledgerValidator: "osmovaloper17cp6fxccqxrpj4zc00w2c7u6y0umc2jajsyc5t",
|
|
602632
602632
|
status: {
|
|
@@ -799677,6 +799677,7 @@ var getTonEstimatedFees = async (account3, needsInit, tx) => {
|
|
|
799677
799677
|
if (pubKey.length !== 64)
|
|
799678
799678
|
throw Error("[ton] pubKey can't be found");
|
|
799679
799679
|
let body;
|
|
799680
|
+
let isJetton = false;
|
|
799680
799681
|
if (tx.payload) {
|
|
799681
799682
|
switch (tx.payload.type) {
|
|
799682
799683
|
case "comment":
|
|
@@ -799684,6 +799685,7 @@ var getTonEstimatedFees = async (account3, needsInit, tx) => {
|
|
|
799684
799685
|
break;
|
|
799685
799686
|
case "jetton-transfer":
|
|
799686
799687
|
body = buildTokenTransferBody(tx.payload);
|
|
799688
|
+
isJetton = true;
|
|
799687
799689
|
break;
|
|
799688
799690
|
}
|
|
799689
799691
|
}
|
|
@@ -799705,7 +799707,7 @@ var getTonEstimatedFees = async (account3, needsInit, tx) => {
|
|
|
799705
799707
|
const initCode = needsInit ? contract.init.code.toBoc().toString("base64") : void 0;
|
|
799706
799708
|
const initData = needsInit ? contract.init.data.toBoc().toString("base64") : void 0;
|
|
799707
799709
|
const fee = await estimateFee(account3.freshAddress, transfer2.toBoc().toString("base64"), initCode, initData);
|
|
799708
|
-
return (0, import_bignumber272.default)(fee.fwd_fee + fee.gas_fee + fee.in_fwd_fee + fee.storage_fee);
|
|
799710
|
+
return isJetton ? (0, import_bignumber272.default)((0, import_ton2.toNano)(TOKEN_TRANSFER_MAX_FEE).toString()) : (0, import_bignumber272.default)(fee.fwd_fee + fee.gas_fee + fee.in_fwd_fee + fee.storage_fee);
|
|
799709
799711
|
};
|
|
799710
799712
|
var getLedgerTonPath = (path4) => {
|
|
799711
799713
|
const numPath = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "24.18.8-nightly.
|
|
3
|
+
"version": "24.18.8-nightly.1",
|
|
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-
|
|
61
|
-
"@ledgerhq/types-
|
|
60
|
+
"@ledgerhq/types-live": "^6.74.0-nightly.0",
|
|
61
|
+
"@ledgerhq/types-cryptoassets": "^7.23.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"directory": "dist"
|