@injectivelabs/wallet-ledger 1.20.5 → 1.20.7

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.
@@ -30,7 +30,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
30
30
  });
31
31
 
32
32
  //#endregion
33
- //#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.29.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
33
+ //#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.36.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
34
34
  const errorClasses = {};
35
35
  const deserializers = {};
36
36
  const addCustomErrorDeserializer = (name, deserializer) => {
@@ -59,7 +59,7 @@ function isObject(value) {
59
59
  }
60
60
 
61
61
  //#endregion
62
- //#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.29.0/node_modules/@ledgerhq/errors/lib-es/index.js
62
+ //#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.36.0/node_modules/@ledgerhq/errors/lib-es/index.js
63
63
  const AccountNameRequiredError = createCustomErrorClass("AccountNameRequired");
64
64
  const AccountNotSupported = createCustomErrorClass("AccountNotSupported");
65
65
  const AccountAwaitingSendPendingOperations = createCustomErrorClass("AccountAwaitingSendPendingOperations");
@@ -95,6 +95,7 @@ const FirmwareNotRecognized = createCustomErrorClass("FirmwareNotRecognized");
95
95
  const HardResetFail = createCustomErrorClass("HardResetFail");
96
96
  const InvalidXRPTag = createCustomErrorClass("InvalidXRPTag");
97
97
  const InvalidAddress = createCustomErrorClass("InvalidAddress");
98
+ const InvalidTransactionError = createCustomErrorClass("InvalidTransactionError");
98
99
  const InvalidNonce = createCustomErrorClass("InvalidNonce");
99
100
  const InvalidAddressBecauseDestinationIsAlsoSource = createCustomErrorClass("InvalidAddressBecauseDestinationIsAlsoSource");
100
101
  const LatestMCUInstalledError = createCustomErrorClass("LatestMCUInstalledError");
@@ -180,6 +181,8 @@ const FeeNotLoaded = createCustomErrorClass("FeeNotLoaded");
180
181
  const FeeNotLoadedSwap = createCustomErrorClass("FeeNotLoadedSwap");
181
182
  const FeeRequired = createCustomErrorClass("FeeRequired");
182
183
  const FeeTooHigh = createCustomErrorClass("FeeTooHigh");
184
+ const ValAddressRequired = createCustomErrorClass("ValAddressRequired");
185
+ const RedelegateDstValAddressRequired = createCustomErrorClass("RedelegateDstValAddressRequired");
183
186
  const PendingOperation = createCustomErrorClass("PendingOperation");
184
187
  const SyncError = createCustomErrorClass("SyncError");
185
188
  const PairingFailed = createCustomErrorClass("PairingFailed");
@@ -191,12 +194,20 @@ const FirmwareOrAppUpdateRequired = createCustomErrorClass("FirmwareOrAppUpdateR
191
194
  const ReplacementTransactionUnderpriced = createCustomErrorClass("ReplacementTransactionUnderpriced");
192
195
  const OpReturnDataSizeLimit = createCustomErrorClass("OpReturnSizeLimit");
193
196
  const DustLimit = createCustomErrorClass("DustLimit");
197
+ const ConcordiumInsufficientFunds = createCustomErrorClass("ConcordiumInsufficientFunds");
198
+ const ConcordiumMemoTooLong = createCustomErrorClass("ConcordiumMemoTooLong");
199
+ const ConcordiumPairingExpiredError = createCustomErrorClass("ConcordiumPairingExpiredError");
200
+ const ConcordiumSessionExpiredError = createCustomErrorClass("ConcordiumSessionExpiredError");
201
+ const ConcordiumTrustedMetadataServiceError = createCustomErrorClass("ConcordiumTrustedMetadataServiceError");
202
+ const ConcordiumAddressVerificationFailedError = createCustomErrorClass("ConcordiumAddressVerificationFailedError");
203
+ const ConcordiumInvalidMaxFeeError = createCustomErrorClass("ConcordiumInvalidMaxFeeError");
194
204
  const LanguageNotFound = createCustomErrorClass("LanguageNotFound");
195
205
  const NoDBPathGiven = createCustomErrorClass("NoDBPathGiven");
196
206
  const DBWrongPassword = createCustomErrorClass("DBWrongPassword");
197
207
  const DBNotReset = createCustomErrorClass("DBNotReset");
198
208
  const SequenceNumberError = createCustomErrorClass("SequenceNumberError");
199
209
  const DisabledTransactionBroadcastError = createCustomErrorClass("DisabledTransactionBroadcastError");
210
+ const InvalidParameterError = createCustomErrorClass("InvalidParameterError");
200
211
  /**
201
212
  * Type of a Transport error used to represent all equivalent errors coming from all possible implementation of Transport
202
213
  */
@@ -227,6 +238,7 @@ const StatusCodes = {
227
238
  ACCESS_CONDITION_NOT_FULFILLED: 38916,
228
239
  ALGORITHM_NOT_SUPPORTED: 38020,
229
240
  CLA_NOT_SUPPORTED: 28160,
241
+ CLA_NOT_SUPPORTED_BOOTLOADER: 28161,
230
242
  CODE_BLOCKED: 38976,
231
243
  CODE_NOT_INITIALIZED: 38914,
232
244
  COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
@@ -275,7 +287,7 @@ const StatusCodes = {
275
287
  INVALID_RESTORE_STATE: 26179,
276
288
  INVALID_CHUNK_LENGTH: 26420,
277
289
  INVALID_BACKUP_HEADER: 26698,
278
- TRUSTCHAIN_WRONG_SEED: 45063
290
+ SW_BAD_STATE: 45063
279
291
  };
280
292
  function getAltStatusMessage(code) {
281
293
  switch (code) {
@@ -286,6 +298,7 @@ function getAltStatusMessage(code) {
286
298
  case 27264: return "Invalid data received";
287
299
  case 27392: return "Invalid parameter received";
288
300
  case 21781: return "Locked device";
301
+ case 45063: return "Unexpected state on the device";
289
302
  }
290
303
  if (28416 <= code && code <= 28671) return "Internal error, please report";
291
304
  }
@@ -1,5 +1,5 @@
1
- import { c as TransportStatusError, f as __commonJSMin, i as TransportError, m as __toESM, r as StatusCodes, s as TransportRaceCondition } from "./lib-es-DrwRIZm6.js";
2
- import { n as LocalTracer, t as require_semver } from "./semver-SXdKWIAb.js";
1
+ import { c as TransportStatusError, f as __commonJSMin, i as TransportError, m as __toESM, r as StatusCodes, s as TransportRaceCondition } from "./lib-es-B0_OnYuj.js";
2
+ import { n as LocalTracer, t as require_semver } from "./semver-DAjTm0lz.js";
3
3
  import { Buffer } from "buffer";
4
4
 
5
5
  //#region ../../../node_modules/.pnpm/events@3.3.0/node_modules/events/events.js
@@ -294,7 +294,7 @@ var require_events = /* @__PURE__ */ __commonJSMin(((exports, module) => {
294
294
  }));
295
295
 
296
296
  //#endregion
297
- //#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport@6.32.0/node_modules/@ledgerhq/hw-transport/lib-es/Transport.js
297
+ //#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport@6.35.4/node_modules/@ledgerhq/hw-transport/lib-es/Transport.js
298
298
  var import_events = /* @__PURE__ */ __toESM(require_events());
299
299
  const DEFAULT_LOG_TYPE = "transport";
300
300
  /**
@@ -607,7 +607,7 @@ var Transport = class {
607
607
  };
608
608
 
609
609
  //#endregion
610
- //#region ../../../node_modules/.pnpm/@ledgerhq+devices@8.10.0/node_modules/@ledgerhq/devices/lib-es/hid-framing.js
610
+ //#region ../../../node_modules/.pnpm/@ledgerhq+devices@8.15.1/node_modules/@ledgerhq/devices/lib-es/hid-framing.js
611
611
  const Tag = 5;
612
612
  function asUInt16BE(value) {
613
613
  const b = Buffer.alloc(2);
@@ -639,7 +639,7 @@ const createHIDframing = (channel, packetSize) => {
639
639
  head.writeUInt8(Tag, 2);
640
640
  head.writeUInt16BE(i, 3);
641
641
  const chunk = data.slice(i * blockSize, (i + 1) * blockSize);
642
- blocks.push(Buffer.concat([head, chunk]));
642
+ blocks.push(new Uint8Array(Buffer.concat([head, chunk])));
643
643
  }
644
644
  return blocks;
645
645
  },
@@ -667,7 +667,7 @@ const createHIDframing = (channel, packetSize) => {
667
667
  var hid_framing_default = createHIDframing;
668
668
 
669
669
  //#endregion
670
- //#region ../../../node_modules/.pnpm/@ledgerhq+devices@8.10.0/node_modules/@ledgerhq/devices/lib-es/index.js
670
+ //#region ../../../node_modules/.pnpm/@ledgerhq+devices@8.15.1/node_modules/@ledgerhq/devices/lib-es/index.js
671
671
  var import_semver = /* @__PURE__ */ __toESM(require_semver());
672
672
  var DeviceModelId;
673
673
  (function(DeviceModelId$1) {
@@ -731,7 +731,7 @@ const devices = {
731
731
  usbOnly: true,
732
732
  memorySize: 1533 * 1024,
733
733
  masks: [856686592],
734
- getBlockSize: (_firmwareVersion) => 32
734
+ getBlockSize: (_firmwareVersion) => 512
735
735
  },
736
736
  [DeviceModelId.apex]: {
737
737
  id: DeviceModelId.apex,
@@ -741,7 +741,7 @@ const devices = {
741
741
  usbOnly: false,
742
742
  memorySize: 1533 * 1024,
743
743
  masks: [859832320],
744
- getBlockSize: (_firmwareVersion) => 32,
744
+ getBlockSize: (_firmwareVersion) => 512,
745
745
  bluetoothSpec: [{
746
746
  serviceUuid: "13d63400-2c97-8004-0000-4c6564676572",
747
747
  notifyUuid: "13d63400-2c97-8004-0001-4c6564676572",
@@ -757,7 +757,7 @@ const devices = {
757
757
  usbOnly: false,
758
758
  memorySize: 1533 * 1024,
759
759
  masks: [857735168],
760
- getBlockSize: (_firmwareVersion) => 32,
760
+ getBlockSize: (_firmwareVersion) => 512,
761
761
  bluetoothSpec: [{
762
762
  serviceUuid: "13d63400-2c97-6004-0000-4c6564676572",
763
763
  notifyUuid: "13d63400-2c97-6004-0001-4c6564676572",
@@ -773,7 +773,7 @@ const devices = {
773
773
  usbOnly: false,
774
774
  memorySize: 1533 * 1024,
775
775
  masks: [858783744],
776
- getBlockSize: (_firmwareVersion) => 32,
776
+ getBlockSize: (_firmwareVersion) => 512,
777
777
  bluetoothSpec: [{
778
778
  serviceUuid: "13d63400-2c97-3004-0000-4c6564676572",
779
779
  notifyUuid: "13d63400-2c97-3004-0001-4c6564676572",
@@ -1,6 +1,6 @@
1
- import { f as __commonJSMin } from "./lib-es-DrwRIZm6.js";
1
+ import { f as __commonJSMin } from "./lib-es-B0_OnYuj.js";
2
2
 
3
- //#region ../../../node_modules/.pnpm/@ledgerhq+logs@6.14.0/node_modules/@ledgerhq/logs/lib-es/index.js
3
+ //#region ../../../node_modules/.pnpm/@ledgerhq+logs@6.17.0/node_modules/@ledgerhq/logs/lib-es/index.js
4
4
  let id = 0;
5
5
  const subscribers = [];
6
6
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-ledger",
3
- "version": "1.20.5",
3
+ "version": "1.20.7",
4
4
  "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,17 +42,18 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@ledgerhq/hw-app-cosmos": "^6.32.9",
46
- "@ledgerhq/hw-app-eth": "^6.47.1",
47
- "@ledgerhq/hw-transport": "^6.31.13",
48
- "@ledgerhq/hw-transport-webhid": "^6.30.9",
49
- "@ledgerhq/hw-transport-webusb": "^6.29.13",
45
+ "@ledgerhq/cryptoassets-evm-signatures": "^13.7.1",
46
+ "@ledgerhq/hw-app-cosmos": "^6.36.4",
47
+ "@ledgerhq/hw-app-eth": "^7.8.6",
48
+ "@ledgerhq/hw-transport": "^6.35.4",
49
+ "@ledgerhq/hw-transport-webhid": "^6.35.4",
50
+ "@ledgerhq/hw-transport-webusb": "^6.34.4",
50
51
  "buffer": "^6.0.3",
51
52
  "viem": "^2.41.2",
52
- "@injectivelabs/ts-types": "1.20.5",
53
- "@injectivelabs/exceptions": "1.20.5",
54
- "@injectivelabs/sdk-ts": "1.20.5",
55
- "@injectivelabs/wallet-base": "1.20.5"
53
+ "@injectivelabs/exceptions": "1.20.7",
54
+ "@injectivelabs/wallet-base": "1.20.7",
55
+ "@injectivelabs/sdk-ts": "1.20.7",
56
+ "@injectivelabs/ts-types": "1.20.7"
56
57
  },
57
58
  "peerDependencies": {
58
59
  "@ethersproject/abi": "^5.7.0",