@onekeyfe/hwk-keystone-adapter 1.2.3-alpha.3 → 1.2.3-alpha.8
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/index.d.mts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +406 -277
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +207 -76
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -304,6 +304,7 @@ interface ImportFromQrOptions {
|
|
|
304
304
|
*/
|
|
305
305
|
declare class KeystoneAdapter implements IHardwareWallet {
|
|
306
306
|
readonly vendor: "keystone";
|
|
307
|
+
readonly cancelCapability: "stops-waiting";
|
|
307
308
|
private readonly urEngine;
|
|
308
309
|
private readonly emitter;
|
|
309
310
|
private readonly _operationRoutes;
|
|
@@ -480,6 +481,22 @@ declare class KeystoneAdapter implements IHardwareWallet {
|
|
|
480
481
|
* and pass through unchanged.
|
|
481
482
|
*/
|
|
482
483
|
private _ensureWalletKnown;
|
|
484
|
+
/**
|
|
485
|
+
* The operation the running device job belongs to, so a UI request raised
|
|
486
|
+
* mid-call can name it. A call pinned to an operation queues under its id
|
|
487
|
+
* (`keystoneQueueKey`); a call without one queues under the wallet id or the
|
|
488
|
+
* wallet connectId, and the live operation routed to that connection is still
|
|
489
|
+
* the owner. Only a cold start comes back undefined.
|
|
490
|
+
*/
|
|
491
|
+
private _activeOperationId;
|
|
492
|
+
/** Routes are keyed by connectId; a job key may be the bare wallet id. */
|
|
493
|
+
private _operationRouteForIdentifier;
|
|
494
|
+
/**
|
|
495
|
+
* A QR prompt has no transport to interrupt, so an aborted job would sit here
|
|
496
|
+
* until the QR timeout. Releasing the registry slot on abort is what lets a
|
|
497
|
+
* cancel reach the wait at all.
|
|
498
|
+
*/
|
|
499
|
+
private _awaitQrResponse;
|
|
483
500
|
private _requestQrDisplayAndAwaitResponse;
|
|
484
501
|
private _requestQrScanAndAwaitResponse;
|
|
485
502
|
private _callUsbConnector;
|
package/dist/index.d.ts
CHANGED
|
@@ -304,6 +304,7 @@ interface ImportFromQrOptions {
|
|
|
304
304
|
*/
|
|
305
305
|
declare class KeystoneAdapter implements IHardwareWallet {
|
|
306
306
|
readonly vendor: "keystone";
|
|
307
|
+
readonly cancelCapability: "stops-waiting";
|
|
307
308
|
private readonly urEngine;
|
|
308
309
|
private readonly emitter;
|
|
309
310
|
private readonly _operationRoutes;
|
|
@@ -480,6 +481,22 @@ declare class KeystoneAdapter implements IHardwareWallet {
|
|
|
480
481
|
* and pass through unchanged.
|
|
481
482
|
*/
|
|
482
483
|
private _ensureWalletKnown;
|
|
484
|
+
/**
|
|
485
|
+
* The operation the running device job belongs to, so a UI request raised
|
|
486
|
+
* mid-call can name it. A call pinned to an operation queues under its id
|
|
487
|
+
* (`keystoneQueueKey`); a call without one queues under the wallet id or the
|
|
488
|
+
* wallet connectId, and the live operation routed to that connection is still
|
|
489
|
+
* the owner. Only a cold start comes back undefined.
|
|
490
|
+
*/
|
|
491
|
+
private _activeOperationId;
|
|
492
|
+
/** Routes are keyed by connectId; a job key may be the bare wallet id. */
|
|
493
|
+
private _operationRouteForIdentifier;
|
|
494
|
+
/**
|
|
495
|
+
* A QR prompt has no transport to interrupt, so an aborted job would sit here
|
|
496
|
+
* until the QR timeout. Releasing the registry slot on abort is what lets a
|
|
497
|
+
* cancel reach the wait at all.
|
|
498
|
+
*/
|
|
499
|
+
private _awaitQrResponse;
|
|
483
500
|
private _requestQrDisplayAndAwaitResponse;
|
|
484
501
|
private _requestQrScanAndAwaitResponse;
|
|
485
502
|
private _callUsbConnector;
|