@onekeyfe/hwk-adapter-core 1.2.11-alpha.3 → 1.2.11-alpha.5
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/{chunk-Z574MVAT.mjs → chunk-5AIX6YY5.mjs} +2 -2
- package/dist/{chunk-UFNTICCX.js → chunk-EJIHCWWH.js} +9 -2
- package/dist/chunk-EJIHCWWH.js.map +1 -0
- package/dist/{chunk-P7RDL34T.js → chunk-MVP46CIZ.js} +3 -3
- package/dist/{chunk-P7RDL34T.js.map → chunk-MVP46CIZ.js.map} +1 -1
- package/dist/{chunk-V2OHL2JS.mjs → chunk-VKP46GTC.mjs} +8 -1
- package/dist/chunk-VKP46GTC.mjs.map +1 -0
- package/dist/{errors-DednD9bG.d.mts → errors-Cl6Q5lqG.d.mts} +10 -8
- package/dist/{errors-DednD9bG.d.ts → errors-Cl6Q5lqG.d.ts} +10 -8
- package/dist/errors.d.mts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +2 -2
- package/dist/errors.mjs +1 -1
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +78 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -3
- package/dist/index.mjs.map +1 -1
- package/dist/ui-events.js +3 -3
- package/dist/ui-events.mjs +2 -2
- package/package.json +2 -2
- package/dist/chunk-UFNTICCX.js.map +0 -1
- package/dist/chunk-V2OHL2JS.mjs.map +0 -1
- /package/dist/{chunk-Z574MVAT.mjs.map → chunk-5AIX6YY5.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var _chunkYLCHSNXOjs = require('./chunk-YLCHSNXO.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkMVP46CIZjs = require('./chunk-MVP46CIZ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,7 +19,8 @@ var _chunkP7RDL34Tjs = require('./chunk-P7RDL34T.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
var _chunkEJIHCWWHjs = require('./chunk-EJIHCWWH.js');
|
|
23
24
|
|
|
24
25
|
// src/types/response.ts
|
|
25
26
|
function success(payload) {
|
|
@@ -32,7 +33,7 @@ function failure(code, error, params, origin, recovery) {
|
|
|
32
33
|
error,
|
|
33
34
|
code,
|
|
34
35
|
...origin !== void 0 ? { origin } : {},
|
|
35
|
-
recovery: _nullishCoalesce(recovery, () => (
|
|
36
|
+
recovery: _nullishCoalesce(recovery, () => ( _chunkEJIHCWWHjs.defaultRecoveryForCode.call(void 0, code))),
|
|
36
37
|
...params ? { params } : {}
|
|
37
38
|
}
|
|
38
39
|
};
|
|
@@ -314,13 +315,13 @@ var OperationRegistry = class {
|
|
|
314
315
|
if (!active) {
|
|
315
316
|
const ended = this._ended.get(operationId);
|
|
316
317
|
if (ended) {
|
|
317
|
-
throw
|
|
318
|
+
throw _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
318
319
|
code: 10113 /* OperationEnded */,
|
|
319
320
|
message: `Hardware operation has ended (${ended.reason})`,
|
|
320
321
|
params: { operationId, reason: ended.reason }
|
|
321
322
|
});
|
|
322
323
|
}
|
|
323
|
-
throw
|
|
324
|
+
throw _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
324
325
|
code: 10112 /* OperationNotFound */,
|
|
325
326
|
message: "Hardware operation was not found",
|
|
326
327
|
params: { operationId }
|
|
@@ -580,13 +581,13 @@ function isDeviceUnavailableError(error) {
|
|
|
580
581
|
return false;
|
|
581
582
|
}
|
|
582
583
|
function combinedDeviceNotFoundError(message) {
|
|
583
|
-
return
|
|
584
|
+
return _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
584
585
|
code: 10100 /* DeviceNotFound */,
|
|
585
586
|
message
|
|
586
587
|
});
|
|
587
588
|
}
|
|
588
589
|
function combinedSessionNotFoundError(message) {
|
|
589
|
-
return
|
|
590
|
+
return _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
590
591
|
code: 10101 /* DeviceDisconnected */,
|
|
591
592
|
message
|
|
592
593
|
});
|
|
@@ -673,7 +674,9 @@ function createCombinedConnector(connectors) {
|
|
|
673
674
|
});
|
|
674
675
|
perConnector.sort((a, b) => a.index - b.index);
|
|
675
676
|
for (const [id, owner] of deviceOwner) {
|
|
676
|
-
if (onTransport(owner, options.transportType))
|
|
677
|
+
if (owner.connectionType !== "ble" && onTransport(owner, options.transportType)) {
|
|
678
|
+
deviceOwner.delete(id);
|
|
679
|
+
}
|
|
677
680
|
}
|
|
678
681
|
const merged = [];
|
|
679
682
|
perConnector.forEach(({ index, devices }) => {
|
|
@@ -720,7 +723,7 @@ function createCombinedConnector(connectors) {
|
|
|
720
723
|
}
|
|
721
724
|
}
|
|
722
725
|
const message = lastError instanceof Error ? lastError.message : `Combined connector: device not found: ${deviceId}`;
|
|
723
|
-
throw
|
|
726
|
+
throw _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
724
727
|
code: 10100 /* DeviceNotFound */,
|
|
725
728
|
message
|
|
726
729
|
});
|
|
@@ -846,15 +849,55 @@ var TypedEventEmitter = class {
|
|
|
846
849
|
}
|
|
847
850
|
};
|
|
848
851
|
|
|
852
|
+
// src/types/electronBle.ts
|
|
853
|
+
var isSerializedError = (value) => typeof value === "object" && value !== null && !(value instanceof Error) && typeof value.message === "string";
|
|
854
|
+
var restoreHostError = ({ message, code, params }) => _chunkEJIHCWWHjs.isHardwareErrorCode.call(void 0, code) ? _chunkEJIHCWWHjs.createHwkError.call(void 0, { code, message, ...params ? { params } : {} }) : new Error(message);
|
|
855
|
+
function rehydrateElectronBleErrors(bridge) {
|
|
856
|
+
const wrapped = Object.create(bridge);
|
|
857
|
+
const invoke = (method, args) => {
|
|
858
|
+
const result = method.apply(bridge, args);
|
|
859
|
+
if (typeof _optionalChain([result, 'optionalAccess', _32 => _32.then]) !== "function") return result;
|
|
860
|
+
return Promise.resolve(result).catch((error) => {
|
|
861
|
+
throw isSerializedError(error) ? restoreHostError(error) : error;
|
|
862
|
+
});
|
|
863
|
+
};
|
|
864
|
+
const descriptors = /* @__PURE__ */ new Map();
|
|
865
|
+
for (let source = bridge; source && source !== Object.prototype; source = Object.getPrototypeOf(source)) {
|
|
866
|
+
for (const key of Reflect.ownKeys(source)) {
|
|
867
|
+
const descriptor = Object.getOwnPropertyDescriptor(source, key);
|
|
868
|
+
if (key !== "constructor" && descriptor && !descriptors.has(key))
|
|
869
|
+
descriptors.set(key, descriptor);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
for (const [key, descriptor] of descriptors) {
|
|
873
|
+
if (typeof descriptor.value === "function") {
|
|
874
|
+
Object.defineProperty(wrapped, key, {
|
|
875
|
+
value: (...args) => invoke(bridge[key], args)
|
|
876
|
+
});
|
|
877
|
+
} else if (descriptor.get || descriptor.set) {
|
|
878
|
+
Object.defineProperty(wrapped, key, {
|
|
879
|
+
get: descriptor.get ? () => {
|
|
880
|
+
const value = Reflect.get(bridge, key, bridge);
|
|
881
|
+
return typeof value === "function" ? (...args) => invoke(value, args) : value;
|
|
882
|
+
} : void 0,
|
|
883
|
+
set: descriptor.set ? (value) => {
|
|
884
|
+
Reflect.set(bridge, key, value, bridge);
|
|
885
|
+
} : void 0
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
return wrapped;
|
|
890
|
+
}
|
|
891
|
+
|
|
849
892
|
// src/utils/requestSaveDeviceBinding.ts
|
|
850
893
|
function emitDeviceBindingStatus(emitter, selectionRequestId, status) {
|
|
851
|
-
emitter.emit(
|
|
852
|
-
type:
|
|
894
|
+
emitter.emit(_chunkMVP46CIZjs.UI_REQUEST.DEVICE_BINDING_STATUS, {
|
|
895
|
+
type: _chunkMVP46CIZjs.UI_REQUEST.DEVICE_BINDING_STATUS,
|
|
853
896
|
payload: { selectionRequestId, status }
|
|
854
897
|
});
|
|
855
898
|
}
|
|
856
899
|
async function requestSaveDeviceBinding(emitter, registry, binding, signal) {
|
|
857
|
-
const type =
|
|
900
|
+
const type = _chunkMVP46CIZjs.UI_REQUEST.REQUEST_SAVE_DEVICE_BINDING;
|
|
858
901
|
const emitStatus = (status) => emitDeviceBindingStatus(emitter, binding.selectionRequestId, status);
|
|
859
902
|
const declined = (reason) => {
|
|
860
903
|
emitStatus("failed");
|
|
@@ -863,29 +906,29 @@ async function requestSaveDeviceBinding(emitter, registry, binding, signal) {
|
|
|
863
906
|
if (!emitter.listenerCount(type)) {
|
|
864
907
|
return declined("skipped");
|
|
865
908
|
}
|
|
866
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
909
|
+
if (_optionalChain([signal, 'optionalAccess', _33 => _33.aborted])) throw signal.reason;
|
|
867
910
|
const requestId = registry.createRequestId();
|
|
868
911
|
const pending = registry.wait(type, { requestId, operationId: binding.operationId });
|
|
869
912
|
void pending.catch(() => void 0);
|
|
870
913
|
const cancel = () => registry.cancel(type, requestId);
|
|
871
|
-
_optionalChain([signal, 'optionalAccess',
|
|
914
|
+
_optionalChain([signal, 'optionalAccess', _34 => _34.addEventListener, 'call', _35 => _35("abort", cancel, { once: true })]);
|
|
872
915
|
try {
|
|
873
916
|
emitter.emit(type, { type, payload: { ...binding, requestId } });
|
|
874
917
|
const response = await pending;
|
|
875
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
876
|
-
if (_optionalChain([response, 'optionalAccess',
|
|
877
|
-
return declined(_nullishCoalesce(_optionalChain([response, 'optionalAccess',
|
|
918
|
+
if (_optionalChain([signal, 'optionalAccess', _36 => _36.aborted])) throw signal.reason;
|
|
919
|
+
if (_optionalChain([response, 'optionalAccess', _37 => _37.saved]) !== true) {
|
|
920
|
+
return declined(_nullishCoalesce(_optionalChain([response, 'optionalAccess', _38 => _38.reason]), () => ( "skipped")));
|
|
878
921
|
}
|
|
879
922
|
emitStatus("saved");
|
|
880
923
|
return { saved: true };
|
|
881
924
|
} catch (error) {
|
|
882
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
925
|
+
if (_optionalChain([signal, 'optionalAccess', _39 => _39.aborted])) {
|
|
883
926
|
emitStatus("cancelled");
|
|
884
927
|
throw error;
|
|
885
928
|
}
|
|
886
929
|
return declined("skipped");
|
|
887
930
|
} finally {
|
|
888
|
-
_optionalChain([signal, 'optionalAccess',
|
|
931
|
+
_optionalChain([signal, 'optionalAccess', _40 => _40.removeEventListener, 'call', _41 => _41("abort", cancel)]);
|
|
889
932
|
registry.cancel(type, requestId);
|
|
890
933
|
}
|
|
891
934
|
}
|
|
@@ -900,10 +943,10 @@ async function requestBleDeviceSelection({
|
|
|
900
943
|
allowUsbFallback = false,
|
|
901
944
|
pollIntervalMs = 1500
|
|
902
945
|
}) {
|
|
903
|
-
const type =
|
|
946
|
+
const type = _chunkMVP46CIZjs.UI_REQUEST.REQUEST_SELECT_DEVICE;
|
|
904
947
|
if (signal.aborted) throw signal.reason;
|
|
905
948
|
if (!emitter.listenerCount(type)) {
|
|
906
|
-
throw
|
|
949
|
+
throw _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
907
950
|
code: 10100 /* DeviceNotFound */,
|
|
908
951
|
message: "Select a Bluetooth device before continuing"
|
|
909
952
|
});
|
|
@@ -918,7 +961,7 @@ async function requestBleDeviceSelection({
|
|
|
918
961
|
const stop = () => {
|
|
919
962
|
stopped = true;
|
|
920
963
|
if (timer !== void 0) clearTimeout(timer);
|
|
921
|
-
_optionalChain([wake, 'optionalCall',
|
|
964
|
+
_optionalChain([wake, 'optionalCall', _42 => _42()]);
|
|
922
965
|
};
|
|
923
966
|
const waitForNextScan = () => new Promise((resolve) => {
|
|
924
967
|
wake = resolve;
|
|
@@ -948,7 +991,7 @@ async function requestBleDeviceSelection({
|
|
|
948
991
|
while (!stopped) {
|
|
949
992
|
const snapshot = await rescan();
|
|
950
993
|
if (stopped || signal.aborted) return;
|
|
951
|
-
const usbFallback = allowUsbFallback ? _optionalChain([snapshot, 'optionalAccess',
|
|
994
|
+
const usbFallback = allowUsbFallback ? _optionalChain([snapshot, 'optionalAccess', _43 => _43.find, 'call', _44 => _44((device2) => device2.connectionType === "usb")]) : void 0;
|
|
952
995
|
if (usbFallback) return usbFallback;
|
|
953
996
|
if (snapshot) {
|
|
954
997
|
devices = snapshot;
|
|
@@ -966,7 +1009,7 @@ async function requestBleDeviceSelection({
|
|
|
966
1009
|
await polling;
|
|
967
1010
|
if (signal.aborted) throw signal.reason;
|
|
968
1011
|
if (!device) {
|
|
969
|
-
throw
|
|
1012
|
+
throw _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
970
1013
|
code: 10100 /* DeviceNotFound */,
|
|
971
1014
|
message: "Selected Bluetooth device is no longer available"
|
|
972
1015
|
});
|
|
@@ -980,7 +1023,7 @@ async function requestBleDeviceSelection({
|
|
|
980
1023
|
stop();
|
|
981
1024
|
signal.removeEventListener("abort", cancel);
|
|
982
1025
|
registry.cancel(type, requestId);
|
|
983
|
-
await _optionalChain([polling, 'optionalAccess',
|
|
1026
|
+
await _optionalChain([polling, 'optionalAccess', _45 => _45.catch, 'call', _46 => _46(() => void 0)]);
|
|
984
1027
|
}
|
|
985
1028
|
}
|
|
986
1029
|
|
|
@@ -1020,7 +1063,7 @@ var MAX_CBOR_DEPTH = 64;
|
|
|
1020
1063
|
var DEFAULT_MAX_CBOR_BYTES = 8 * 1024 * 1024;
|
|
1021
1064
|
var ARGUMENT_BYTES = [1, 2, 4, 8];
|
|
1022
1065
|
function malformed(reason) {
|
|
1023
|
-
return
|
|
1066
|
+
return _chunkEJIHCWWHjs.createHwkError.call(void 0, {
|
|
1024
1067
|
code: 10002 /* InvalidParams */,
|
|
1025
1068
|
message: `Malformed CBOR payload: ${reason}`
|
|
1026
1069
|
});
|
|
@@ -1485,7 +1528,7 @@ var TREZOR_BLE_SERVICE_UUID = "8c000001-a59b-4d58-a9ad-073df69fa1b1";
|
|
|
1485
1528
|
var LEDGER_USB_VENDOR_ID = 11415;
|
|
1486
1529
|
var KEYSTONE_USB_VENDOR_ID = 4617;
|
|
1487
1530
|
var KEYSTONE_USB_PRODUCT_ID = 12289;
|
|
1488
|
-
var lower = (value) => _nullishCoalesce(_optionalChain([value, 'optionalAccess',
|
|
1531
|
+
var lower = (value) => _nullishCoalesce(_optionalChain([value, 'optionalAccess', _47 => _47.trim, 'call', _48 => _48(), 'access', _49 => _49.toLowerCase, 'call', _50 => _50()]), () => ( ""));
|
|
1489
1532
|
var hasServiceUuid = (input, uuid) => {
|
|
1490
1533
|
const expected = uuid.toLowerCase();
|
|
1491
1534
|
const values = [
|
|
@@ -1528,7 +1571,7 @@ async function batchCall(params, callFn, onProgress) {
|
|
|
1528
1571
|
return result;
|
|
1529
1572
|
}
|
|
1530
1573
|
results.push(result.payload);
|
|
1531
|
-
_optionalChain([onProgress, 'optionalCall',
|
|
1574
|
+
_optionalChain([onProgress, 'optionalCall', _51 => _51({ index: i, total: params.length })]);
|
|
1532
1575
|
}
|
|
1533
1576
|
return { success: true, payload: results };
|
|
1534
1577
|
}
|
|
@@ -1589,7 +1632,7 @@ function getHardwareMethodMetadata(method) {
|
|
|
1589
1632
|
}
|
|
1590
1633
|
var SAFE_NON_CHAIN_METHODS = /* @__PURE__ */ new Set(["getFeatures", "authenticateDevice"]);
|
|
1591
1634
|
function canReplayHardwareMethodAfterTransportFailure(method) {
|
|
1592
|
-
return _optionalChain([getHardwareMethodMetadata, 'call',
|
|
1635
|
+
return _optionalChain([getHardwareMethodMetadata, 'call', _52 => _52(method), 'optionalAccess', _53 => _53.replayAfterTransportFailure]) === "safe" || SAFE_NON_CHAIN_METHODS.has(method);
|
|
1593
1636
|
}
|
|
1594
1637
|
function isAllNetworkMethodName(method) {
|
|
1595
1638
|
return ALL_NETWORK_METHOD_SET.has(method);
|
|
@@ -1618,7 +1661,7 @@ async function runAllNetworkGetAddress({
|
|
|
1618
1661
|
continue;
|
|
1619
1662
|
}
|
|
1620
1663
|
const method = item.methodName;
|
|
1621
|
-
const unsupportedNetwork = _optionalChain([buildUnsupportedNetworkResponse, 'optionalCall',
|
|
1664
|
+
const unsupportedNetwork = _optionalChain([buildUnsupportedNetworkResponse, 'optionalCall', _54 => _54(item, method)]);
|
|
1622
1665
|
if (unsupportedNetwork) {
|
|
1623
1666
|
responses.push(unsupportedNetwork);
|
|
1624
1667
|
continue;
|
|
@@ -1678,8 +1721,8 @@ function isConnectionLost(code) {
|
|
|
1678
1721
|
}
|
|
1679
1722
|
function buildAllNetworkCancelledFailure(signal) {
|
|
1680
1723
|
const reason = signal.reason;
|
|
1681
|
-
const code = typeof _optionalChain([reason, 'optionalAccess',
|
|
1682
|
-
const message = typeof _optionalChain([reason, 'optionalAccess',
|
|
1724
|
+
const code = typeof _optionalChain([reason, 'optionalAccess', _55 => _55.code]) === "number" ? reason.code : 10005 /* UserAborted */;
|
|
1725
|
+
const message = typeof _optionalChain([reason, 'optionalAccess', _56 => _56.message]) === "string" ? reason.message : "";
|
|
1683
1726
|
return failure(code, message || "All-network get-address cancelled");
|
|
1684
1727
|
}
|
|
1685
1728
|
function buildUnsupportedMethodResponse(item) {
|
|
@@ -1782,5 +1825,7 @@ var DEVICE_CONNECT_RETRY_DELAY_MS = 1e3;
|
|
|
1782
1825
|
|
|
1783
1826
|
|
|
1784
1827
|
|
|
1785
|
-
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
exports.ALL_NETWORK_METHOD_NAMES = ALL_NETWORK_METHOD_NAMES; exports.CHAIN_FINGERPRINT_PATHS = CHAIN_FINGERPRINT_PATHS; exports.DEVICE = DEVICE; exports.DEVICE_CONNECT_RETRY_DELAY_MS = DEVICE_CONNECT_RETRY_DELAY_MS; exports.DEVICE_EVENT = DEVICE_EVENT; exports.DeviceJobQueue = DeviceJobQueue; exports.EConnectorInteraction = EConnectorInteraction; exports.HARDWARE_METHOD_CATALOG = HARDWARE_METHOD_CATALOG; exports.HARDWARE_RUNTIME_ID_PREFIX = HARDWARE_RUNTIME_ID_PREFIX; exports.HardwareErrorCode = _chunkEJIHCWWHjs.HardwareErrorCode; exports.MISSING_BIP32_MASTER_FINGERPRINT = MISSING_BIP32_MASTER_FINGERPRINT; exports.OPERATION_DEFAULT_TTL_MS = OPERATION_DEFAULT_TTL_MS; exports.ORPHAN_ELIGIBLE_ERROR_CODES = _chunkEJIHCWWHjs.ORPHAN_ELIGIBLE_ERROR_CODES; exports.OperationRegistry = OperationRegistry; exports.SDK = SDK; exports.TypedEventEmitter = TypedEventEmitter; exports.UI_EVENT = _chunkMVP46CIZjs.UI_EVENT; exports.UI_REQUEST = _chunkMVP46CIZjs.UI_REQUEST; exports.UI_REQUEST_CANCELLED_TAG = _chunkMVP46CIZjs.UI_REQUEST_CANCELLED_TAG; exports.UI_REQUEST_DEFAULT_TIMEOUT_MS = _chunkMVP46CIZjs.UI_REQUEST_DEFAULT_TIMEOUT_MS; exports.UI_REQUEST_PREEMPTED_TAG = _chunkMVP46CIZjs.UI_REQUEST_PREEMPTED_TAG; exports.UI_REQUEST_TIMEOUT_TAG = _chunkMVP46CIZjs.UI_REQUEST_TIMEOUT_TAG; exports.UI_RESPONSE = _chunkMVP46CIZjs.UI_RESPONSE; exports.UiRequestRegistry = _chunkMVP46CIZjs.UiRequestRegistry; exports.assertBoundedCbor = assertBoundedCbor; exports.batchCall = batchCall; exports.boundedCborFromHex = boundedCborFromHex; exports.buildAllNetworkCancelledFailure = buildAllNetworkCancelledFailure; exports.buildUnsupportedMethodResponse = buildUnsupportedMethodResponse; exports.bytesToHex = bytesToHex3; exports.canReplayHardwareMethodAfterTransportFailure = canReplayHardwareMethodAfterTransportFailure; exports.compareSemver = compareSemver; exports.createBridgedConnector = createBridgedConnector; exports.createCombinedConnector = createCombinedConnector; exports.createHardwareLinkId = createHardwareLinkId; exports.createHardwareOperationId = createHardwareOperationId; exports.createHardwareSearchTargetId = createHardwareSearchTargetId; exports.createHwkError = _chunkEJIHCWWHjs.createHwkError; exports.defaultOriginForCode = _chunkEJIHCWWHjs.defaultOriginForCode; exports.defaultRecoveryForCode = _chunkEJIHCWWHjs.defaultRecoveryForCode; exports.deriveDeviceFingerprint = deriveDeviceFingerprint; exports.detectHardwareVendorFromDescriptor = detectHardwareVendorFromDescriptor; exports.emitDeviceBindingStatus = emitDeviceBindingStatus; exports.enrichErrorMessage = _chunkYLCHSNXOjs.enrichErrorMessage; exports.ensure0x = ensure0x; exports.failure = failure; exports.getAllNetworkMethodChain = getAllNetworkMethodChain; exports.getHardwareMethodMetadata = getHardwareMethodMetadata; exports.hasHardwareRuntimeIdPrefix = hasHardwareRuntimeIdPrefix; exports.hexToBytes = hexToBytes; exports.isAllNetworkMethodName = isAllNetworkMethodName; exports.isConnectionLost = isConnectionLost; exports.isHardwareErrorCode = _chunkEJIHCWWHjs.isHardwareErrorCode; exports.isHardwareOperationId = isHardwareOperationId; exports.isHwkRecoveryHint = _chunkEJIHCWWHjs.isHwkRecoveryHint; exports.isKnownNonTargetHardwareVendor = isKnownNonTargetHardwareVendor; exports.isUserRefusal = isUserRefusal; exports.isWalletSafetyFailure = isWalletSafetyFailure; exports.operationMayHaveCompletedParams = _chunkEJIHCWWHjs.operationMayHaveCompletedParams; exports.padHex64 = padHex64; exports.parseBip32MasterFingerprint = parseBip32MasterFingerprint; exports.parseHardwareRuntimeId = parseHardwareRuntimeId; exports.parseWalletMasterFingerprint = parseWalletMasterFingerprint; exports.pickConnectionContext = pickConnectionContext; exports.prepareSolanaOffchainMessageV1 = prepareSolanaOffchainMessageV1; exports.rehydrateConnectorError = rehydrateConnectorError; exports.rehydrateElectronBleErrors = rehydrateElectronBleErrors; exports.requestBleDeviceSelection = requestBleDeviceSelection; exports.requestSaveDeviceBinding = requestSaveDeviceBinding; exports.resolveHardwareOperationTarget = resolveHardwareOperationTarget; exports.resolveSearchTargetReusePolicy = resolveSearchTargetReusePolicy; exports.runAllNetworkGetAddress = runAllNetworkGetAddress; exports.serializeConnectorError = serializeConnectorError; exports.stripHex = stripHex; exports.success = success; exports.summarizeForLog = summarizeForLog; exports.toPhysicalDeviceSearchTarget = toPhysicalDeviceSearchTarget;
|
|
1786
1831
|
//# sourceMappingURL=index.js.map
|