@ledgerhq/live-cli 24.26.0-nightly.10 → 24.26.0-nightly.11
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 +18 -11
- package/package.json +3 -3
package/lib/cli.js
CHANGED
|
@@ -515377,7 +515377,7 @@ var require_package7 = __commonJS({
|
|
|
515377
515377
|
module2.exports = {
|
|
515378
515378
|
name: "@ledgerhq/live-common",
|
|
515379
515379
|
description: "Common ground for the Ledger Live apps",
|
|
515380
|
-
version: "34.51.0-nightly.
|
|
515380
|
+
version: "34.51.0-nightly.11",
|
|
515381
515381
|
repository: {
|
|
515382
515382
|
type: "git",
|
|
515383
515383
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -515711,7 +515711,7 @@ var require_package8 = __commonJS({
|
|
|
515711
515711
|
"package.json"(exports2, module2) {
|
|
515712
515712
|
module2.exports = {
|
|
515713
515713
|
name: "@ledgerhq/live-cli",
|
|
515714
|
-
version: "24.26.0-nightly.
|
|
515714
|
+
version: "24.26.0-nightly.11",
|
|
515715
515715
|
description: "ledger-live CLI version",
|
|
515716
515716
|
repository: {
|
|
515717
515717
|
type: "git",
|
|
@@ -613542,7 +613542,8 @@ var getTransaction = async (currency24, hash9) => {
|
|
|
613542
613542
|
nonce: ledgerTransaction.nonce_value,
|
|
613543
613543
|
gasPrice: ledgerTransaction.gas_price,
|
|
613544
613544
|
gasUsed: ledgerTransaction.gas_used,
|
|
613545
|
-
value: ledgerTransaction.value
|
|
613545
|
+
value: ledgerTransaction.value,
|
|
613546
|
+
status: ledgerTransaction.status
|
|
613546
613547
|
};
|
|
613547
613548
|
};
|
|
613548
613549
|
var getCoinBalance = async (currency24, address3) => {
|
|
@@ -614126,6 +614127,7 @@ var getTransaction2 = (currency24, txHash) => withApi(currency24, async (api7) =
|
|
|
614126
614127
|
nonce: tx.nonce,
|
|
614127
614128
|
gasUsed: receipt.gasUsed.toString(),
|
|
614128
614129
|
gasPrice: receipt.gasPrice.toString(),
|
|
614130
|
+
status: receipt.status,
|
|
614129
614131
|
value: tx.value.toString()
|
|
614130
614132
|
};
|
|
614131
614133
|
});
|
|
@@ -818005,17 +818007,22 @@ function toBlockOperation(transaction, change2) {
|
|
|
818005
818007
|
return [];
|
|
818006
818008
|
const address3 = change2.owner.AddressOwner;
|
|
818007
818009
|
const operationType = getOperationType9(address3, transaction);
|
|
818010
|
+
function transferOp(peer) {
|
|
818011
|
+
const op = {
|
|
818012
|
+
type: "transfer",
|
|
818013
|
+
address: address3,
|
|
818014
|
+
asset: toSuiAsset(change2.coinType),
|
|
818015
|
+
amount: BigInt(change2.amount)
|
|
818016
|
+
};
|
|
818017
|
+
if (peer)
|
|
818018
|
+
op.peer = peer;
|
|
818019
|
+
return op;
|
|
818020
|
+
}
|
|
818008
818021
|
switch (operationType) {
|
|
818009
818022
|
case "IN":
|
|
818023
|
+
return [transferOp(getOperationSenders2(transaction.transaction?.data).at(0))];
|
|
818010
818024
|
case "OUT":
|
|
818011
|
-
return [
|
|
818012
|
-
{
|
|
818013
|
-
type: "transfer",
|
|
818014
|
-
address: change2.owner.AddressOwner,
|
|
818015
|
-
asset: toSuiAsset(change2.coinType),
|
|
818016
|
-
amount: BigInt(change2.amount)
|
|
818017
|
-
}
|
|
818018
|
-
];
|
|
818025
|
+
return [transferOp(getOperationRecipients2(transaction.transaction?.data).at(0))];
|
|
818019
818026
|
case "DELEGATE":
|
|
818020
818027
|
case "UNDELEGATE":
|
|
818021
818028
|
return [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "24.26.0-nightly.
|
|
3
|
+
"version": "24.26.0-nightly.11",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"ts-node": "10.9.2",
|
|
59
59
|
"tsup": "7.3.0",
|
|
60
60
|
"yaml": "2.8.1",
|
|
61
|
-
"@ledgerhq/types-
|
|
62
|
-
"@ledgerhq/types-
|
|
61
|
+
"@ledgerhq/types-live": "^6.87.0-nightly.5",
|
|
62
|
+
"@ledgerhq/types-cryptoassets": "^7.29.0-nightly.0"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"directory": "dist"
|