@ledgerhq/live-cli 24.17.1-nightly.2 → 24.17.1-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.
Files changed (2) hide show
  1. package/lib/cli.js +13 -9
  2. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -528250,7 +528250,7 @@ var require_package8 = __commonJS({
528250
528250
  module2.exports = {
528251
528251
  name: "@ledgerhq/live-common",
528252
528252
  description: "Common ground for the Ledger Live apps",
528253
- version: "34.31.0-nightly.2",
528253
+ version: "34.31.0-nightly.3",
528254
528254
  repository: {
528255
528255
  type: "git",
528256
528256
  url: "https://github.com/LedgerHQ/ledger-live.git"
@@ -535051,7 +535051,7 @@ var require_package9 = __commonJS({
535051
535051
  "package.json"(exports2, module2) {
535052
535052
  module2.exports = {
535053
535053
  name: "@ledgerhq/live-cli",
535054
- version: "24.17.1-nightly.2",
535054
+ version: "24.17.1-nightly.3",
535055
535055
  description: "ledger-live CLI version",
535056
535056
  repository: {
535057
535057
  type: "git",
@@ -715087,7 +715087,8 @@ var getOperationType6 = (pallet, palletMethod) => {
715087
715087
  };
715088
715088
  var getExtra = (type5, extrinsic) => {
715089
715089
  const extra = {
715090
- palletMethod: `${extrinsic.section}.${extrinsic.method}`
715090
+ palletMethod: `${extrinsic.section}.${extrinsic.method}`,
715091
+ index: extrinsic.index
715091
715092
  };
715092
715093
  switch (type5) {
715093
715094
  case "IN":
@@ -756950,7 +756951,8 @@ var MODE_TO_PALLET_METHOD = {
756950
756951
  };
756951
756952
  var getExtra2 = (type5, account3, transaction) => {
756952
756953
  const extra = {
756953
- palletMethod: MODE_TO_PALLET_METHOD[transaction.mode]
756954
+ palletMethod: MODE_TO_PALLET_METHOD[transaction.mode],
756955
+ index: 0
756954
756956
  };
756955
756957
  if (transaction.mode == "send" && transaction.useAllAmount) {
756956
756958
  extra.palletMethod = MODE_TO_PALLET_METHOD["sendMax"];
@@ -778910,7 +778912,8 @@ async function formatOperation(rawOperation, accountId2, addr) {
778910
778912
  blockHash,
778911
778913
  extra: {
778912
778914
  ledgerOpType: type5,
778913
- blockTime: new Date(blockTime)
778915
+ blockTime: new Date(blockTime),
778916
+ index: rawOperation.id
778914
778917
  }
778915
778918
  };
778916
778919
  if (rawOperation.paging_token) {
@@ -779606,7 +779609,8 @@ async function buildOptimisticOperation15(account3, transaction) {
779606
779609
  transactionSequenceNumber: transactionSequenceNumber?.plus(1).toNumber(),
779607
779610
  extra: {
779608
779611
  ledgerOpType: type5,
779609
- blockTime: /* @__PURE__ */ new Date()
779612
+ blockTime: /* @__PURE__ */ new Date(),
779613
+ index: "0"
779610
779614
  }
779611
779615
  };
779612
779616
  const { subAccountId } = transaction;
@@ -805449,8 +805453,8 @@ var convertToCoreOperation = (address4) => (operation) => {
805449
805453
  signingPubKey: SigningPubKey
805450
805454
  };
805451
805455
  let op = {
805456
+ id: hash12,
805452
805457
  asset: { type: "native" },
805453
- operationIndex: 0,
805454
805458
  tx: {
805455
805459
  hash: hash12,
805456
805460
  fees: fee,
@@ -814557,11 +814561,11 @@ var buildSignOperation24 = (signerContext3) => ({ account: account3, deviceId, t
814557
814561
  transaction
814558
814562
  })
814559
814563
  };
814564
+ const publicKeyResult = await signerContext3(deviceId, (signer) => signer.getPublicKey(account3.freshAddressPath));
814565
+ const publicKey3 = new Ed25519PublicKey3(publicKeyResult.publicKey);
814560
814566
  const { unsigned: unsigned2 } = await buildTransaction10(account3, transactionToSign);
814561
814567
  const signData = messageWithIntent("TransactionData", unsigned2);
814562
814568
  const { signature: signature3 } = await signerContext3(deviceId, (signer) => signer.signTransaction(account3.freshAddressPath, signData));
814563
- const publicKeyResult = await signerContext3(deviceId, (signer) => signer.getPublicKey(account3.freshAddressPath));
814564
- const publicKey3 = new Ed25519PublicKey3(publicKeyResult.publicKey);
814565
814569
  const serializedSignature = toSerializedSignature({
814566
814570
  signature: signature3,
814567
814571
  signatureScheme: "ED25519",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-cli",
3
- "version": "24.17.1-nightly.2",
3
+ "version": "24.17.1-nightly.3",
4
4
  "description": "ledger-live CLI version",
5
5
  "repository": {
6
6
  "type": "git",