@injectivelabs/wallet-ledger 1.17.5 → 1.17.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.
- package/dist/cjs/{Cosmos-BHbFJISm.cjs → Cosmos-l-IuZLXL.cjs} +4 -4
- package/dist/cjs/{Eth-C19dmfPK.cjs → Eth-CvWEOFRz.cjs} +542 -12928
- package/dist/cjs/{TransportWebHID-CYtNtsrq.cjs → TransportWebHID-DPqE45rT.cjs} +4 -4
- package/dist/cjs/{TransportWebUSB-BJDSCu1Y.cjs → TransportWebUSB-D3FMGQeX.cjs} +5 -5
- package/dist/cjs/index.cjs +5 -5
- package/dist/cjs/{lib-es-_HPkCZoI.cjs → lib-es-BWIKEHed.cjs} +8 -7
- package/dist/cjs/{lib-es-B_-gr8Oc.cjs → lib-es-DXCnHHEe.cjs} +5 -5
- package/dist/cjs/{semver-BqQFOl2T.cjs → semver-DDHpoi7E.cjs} +92 -92
- package/dist/esm/{Cosmos-Cn09F7ch.js → Cosmos-DN_KoG35.js} +4 -4
- package/dist/esm/Eth-DezsK7L6.js +5469 -0
- package/dist/esm/{TransportWebHID-BHzJV7La.js → TransportWebHID-DVYevMkI.js} +4 -4
- package/dist/esm/{TransportWebUSB-CfDDfqrP.js → TransportWebUSB-YjY3xn9n.js} +5 -5
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lib-es-DZEyST3-.js → lib-es-B3JjM59t.js} +7 -7
- package/dist/esm/{lib-es-BdVxwK9Z.js → lib-es-DrwRIZm6.js} +7 -6
- package/dist/esm/{semver-DQp6anwM.js → semver-SXdKWIAb.js} +92 -92
- package/package.json +5 -5
- package/dist/esm/Eth-CLtoRhLg.js +0 -17855
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as TransportError, n as DisconnectedDeviceDuringOperation, o as TransportOpenUserCancelled, t as DisconnectedDevice } from "./lib-es-
|
|
2
|
-
import { r as log } from "./semver-
|
|
3
|
-
import { i as Transport, n as ledgerUSBVendorId, r as hid_framing_default, t as identifyUSBProductId } from "./lib-es-
|
|
1
|
+
import { i as TransportError, n as DisconnectedDeviceDuringOperation, o as TransportOpenUserCancelled, t as DisconnectedDevice } from "./lib-es-DrwRIZm6.js";
|
|
2
|
+
import { r as log } from "./semver-SXdKWIAb.js";
|
|
3
|
+
import { i as Transport, n as ledgerUSBVendorId, r as hid_framing_default, t as identifyUSBProductId } from "./lib-es-B3JjM59t.js";
|
|
4
4
|
import { Buffer } from "buffer";
|
|
5
5
|
|
|
6
|
-
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport-webhid@6.
|
|
6
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport-webhid@6.31.0/node_modules/@ledgerhq/hw-transport-webhid/lib-es/TransportWebHID.js
|
|
7
7
|
const ledgerDevices = [{ vendorId: ledgerUSBVendorId }];
|
|
8
8
|
const isSupported = () => Promise.resolve(!!(window.navigator && window.navigator.hid));
|
|
9
9
|
const getHID = () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as TransportInterfaceNotAvailable, l as TransportWebUSBGestureRequired, n as DisconnectedDeviceDuringOperation, o as TransportOpenUserCancelled, t as DisconnectedDevice } from "./lib-es-
|
|
2
|
-
import { r as log } from "./semver-
|
|
3
|
-
import { i as Transport, n as ledgerUSBVendorId, r as hid_framing_default, t as identifyUSBProductId } from "./lib-es-
|
|
1
|
+
import { a as TransportInterfaceNotAvailable, l as TransportWebUSBGestureRequired, n as DisconnectedDeviceDuringOperation, o as TransportOpenUserCancelled, t as DisconnectedDevice } from "./lib-es-DrwRIZm6.js";
|
|
2
|
+
import { r as log } from "./semver-SXdKWIAb.js";
|
|
3
|
+
import { i as Transport, n as ledgerUSBVendorId, r as hid_framing_default, t as identifyUSBProductId } from "./lib-es-B3JjM59t.js";
|
|
4
4
|
import { Buffer } from "buffer";
|
|
5
5
|
|
|
6
|
-
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport-webusb@6.
|
|
6
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport-webusb@6.30.0/node_modules/@ledgerhq/hw-transport-webusb/lib-es/webusb.js
|
|
7
7
|
const ledgerDevices = [{ vendorId: ledgerUSBVendorId }];
|
|
8
8
|
async function requestLedgerDevice() {
|
|
9
9
|
return await navigator.usb.requestDevice({ filters: ledgerDevices });
|
|
@@ -19,7 +19,7 @@ async function getFirstLedgerDevice() {
|
|
|
19
19
|
const isSupported = () => Promise.resolve(!!navigator && !!navigator.usb && typeof navigator.usb.getDevices === "function");
|
|
20
20
|
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport-webusb@6.
|
|
22
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport-webusb@6.30.0/node_modules/@ledgerhq/hw-transport-webusb/lib-es/TransportWebUSB.js
|
|
23
23
|
const configurationValue = 1;
|
|
24
24
|
const endpointNumber = 3;
|
|
25
25
|
/**
|
package/dist/esm/index.js
CHANGED
|
@@ -99,19 +99,19 @@ let CosmosType;
|
|
|
99
99
|
let TransportWebUSB;
|
|
100
100
|
let TransportWebHID;
|
|
101
101
|
async function loadEthType() {
|
|
102
|
-
if (!EthType) EthType = (await import("./Eth-
|
|
102
|
+
if (!EthType) EthType = (await import("./Eth-DezsK7L6.js")).default;
|
|
103
103
|
return EthType;
|
|
104
104
|
}
|
|
105
105
|
async function loadCosmosType() {
|
|
106
|
-
if (!CosmosType) CosmosType = (await import("./Cosmos-
|
|
106
|
+
if (!CosmosType) CosmosType = (await import("./Cosmos-DN_KoG35.js")).default;
|
|
107
107
|
return CosmosType;
|
|
108
108
|
}
|
|
109
109
|
async function loadTransportWebUSB() {
|
|
110
|
-
if (!TransportWebUSB) TransportWebUSB = (await import("./TransportWebUSB-
|
|
110
|
+
if (!TransportWebUSB) TransportWebUSB = (await import("./TransportWebUSB-YjY3xn9n.js")).default;
|
|
111
111
|
return TransportWebUSB;
|
|
112
112
|
}
|
|
113
113
|
async function loadTransportWebHIDType() {
|
|
114
|
-
if (!TransportWebHID) TransportWebHID = (await import("./TransportWebHID-
|
|
114
|
+
if (!TransportWebHID) TransportWebHID = (await import("./TransportWebHID-DVYevMkI.js")).default;
|
|
115
115
|
return TransportWebHID;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as TransportStatusError, f as
|
|
2
|
-
import { n as LocalTracer, t as require_semver } from "./semver-
|
|
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";
|
|
3
3
|
import { Buffer } from "buffer";
|
|
4
4
|
|
|
5
5
|
//#region ../../../node_modules/.pnpm/events@3.3.0/node_modules/events/events.js
|
|
6
|
-
var require_events = /* @__PURE__ */
|
|
6
|
+
var require_events = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
7
|
var R = typeof Reflect === "object" ? Reflect : null;
|
|
8
8
|
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply$1(target, receiver, args) {
|
|
9
9
|
return Function.prototype.apply.call(target, receiver, args);
|
|
@@ -291,10 +291,10 @@ var require_events = /* @__PURE__ */ __commonJS({ "../../../node_modules/.pnpm/e
|
|
|
291
291
|
});
|
|
292
292
|
else throw new TypeError("The \"emitter\" argument must be of type EventEmitter. Received type " + typeof emitter);
|
|
293
293
|
}
|
|
294
|
-
})
|
|
294
|
+
}));
|
|
295
295
|
|
|
296
296
|
//#endregion
|
|
297
|
-
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport@6.
|
|
297
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+hw-transport@6.32.0/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.
|
|
610
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+devices@8.10.0/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);
|
|
@@ -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.
|
|
670
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+devices@8.10.0/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) {
|
|
@@ -5,9 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
9
|
var __copyProps = (to, from, except, desc) => {
|
|
12
10
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
11
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -32,7 +30,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
32
30
|
});
|
|
33
31
|
|
|
34
32
|
//#endregion
|
|
35
|
-
//#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.
|
|
33
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.29.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
|
|
36
34
|
const errorClasses = {};
|
|
37
35
|
const deserializers = {};
|
|
38
36
|
const addCustomErrorDeserializer = (name, deserializer) => {
|
|
@@ -61,7 +59,7 @@ function isObject(value) {
|
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
//#endregion
|
|
64
|
-
//#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.
|
|
62
|
+
//#region ../../../node_modules/.pnpm/@ledgerhq+errors@6.29.0/node_modules/@ledgerhq/errors/lib-es/index.js
|
|
65
63
|
const AccountNameRequiredError = createCustomErrorClass("AccountNameRequired");
|
|
66
64
|
const AccountNotSupported = createCustomErrorClass("AccountNotSupported");
|
|
67
65
|
const AccountAwaitingSendPendingOperations = createCustomErrorClass("AccountAwaitingSendPendingOperations");
|
|
@@ -90,6 +88,7 @@ const DeviceExtractOnboardingStateError = createCustomErrorClass("DeviceExtractO
|
|
|
90
88
|
const DeviceOnboardingStatePollingError = createCustomErrorClass("DeviceOnboardingStatePollingError");
|
|
91
89
|
const EnpointConfigError = createCustomErrorClass("EnpointConfig");
|
|
92
90
|
const EthAppPleaseEnableContractData = createCustomErrorClass("EthAppPleaseEnableContractData");
|
|
91
|
+
const SolAppPleaseEnableContractData = createCustomErrorClass("SolAppPleaseEnableContractData");
|
|
93
92
|
const CeloAppPleaseEnableContractData = createCustomErrorClass("CeloAppPleaseEnableContractData");
|
|
94
93
|
const FeeEstimationFailed = createCustomErrorClass("FeeEstimationFailed");
|
|
95
94
|
const FirmwareNotRecognized = createCustomErrorClass("FirmwareNotRecognized");
|
|
@@ -100,6 +99,8 @@ const InvalidNonce = createCustomErrorClass("InvalidNonce");
|
|
|
100
99
|
const InvalidAddressBecauseDestinationIsAlsoSource = createCustomErrorClass("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
101
100
|
const LatestMCUInstalledError = createCustomErrorClass("LatestMCUInstalledError");
|
|
102
101
|
const LatestFirmwareVersionRequired = createCustomErrorClass("LatestFirmwareVersionRequired");
|
|
102
|
+
const UnsupportedFeatureError = createCustomErrorClass("UnsupportedFeatureError");
|
|
103
|
+
const NanoSNotSupported = createCustomErrorClass("NanoSNotSupported");
|
|
103
104
|
const UnknownMCU = createCustomErrorClass("UnknownMCU");
|
|
104
105
|
const LedgerAPIError = createCustomErrorClass("LedgerAPIError");
|
|
105
106
|
const LedgerAPIErrorWithMessage = createCustomErrorClass("LedgerAPIErrorWithMessage");
|
|
@@ -323,4 +324,4 @@ var LockedDeviceError = class LockedDeviceError extends TransportStatusError {
|
|
|
323
324
|
addCustomErrorDeserializer("TransportStatusError", (e) => new TransportStatusError(e.statusCode));
|
|
324
325
|
|
|
325
326
|
//#endregion
|
|
326
|
-
export { TransportInterfaceNotAvailable as a, TransportStatusError as c, createCustomErrorClass as d,
|
|
327
|
+
export { TransportInterfaceNotAvailable as a, TransportStatusError as c, createCustomErrorClass as d, __commonJSMin as f, TransportError as i, TransportWebUSBGestureRequired as l, __toESM as m, DisconnectedDeviceDuringOperation as n, TransportOpenUserCancelled as o, __require as p, StatusCodes as r, TransportRaceCondition as s, DisconnectedDevice as t, UserRefusedOnDevice as u };
|