@onekeyfe/hwk-ledger-adapter 1.1.27-alpha.6 → 1.1.27

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 CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _onekeyfe_hwk_adapter_core from '@onekeyfe/hwk-adapter-core';
1
2
  import { IHardwareWallet, IConnector, TransportType, UiResponseEvent, SearchDevicesOptions, DeviceInfo, Response, ChainCapability, EvmGetAddressParams, ICommonCallParams, EvmAddress, EvmSignTxParams, EvmSignedTx, EvmSignMsgParams, EvmSignature, EvmSignTypedDataParams, BtcGetAddressParams, BtcAddress, BtcGetPublicKeyParams, BtcPublicKey, BtcSignTxParams, BtcSignedTx, BtcSignPsbtParams, BtcSignedPsbt, BtcSignMsgParams, BtcSignature, SolGetAddressParams, SolAddress, SolSignTxParams, SolSignedTx, SolSignMsgParams, SolSignature, TronGetAddressParams, TronAddress, TronSignTxParams, TronSignedTx, TronSignMsgParams, TronSignature, HardwareEventMap, DeviceEventListener, ChainForFingerprint, DeviceDescriptor, DeviceChangeEvent, ConnectionType, ConnectorDevice, ConnectorSession, ConnectorCallResult, ConnectorEventType, ConnectorEventMap, Failure, HardwareErrorCode } from '@onekeyfe/hwk-adapter-core';
2
3
  import { DeviceActionState as DeviceActionState$1, DiscoveredDevice, ExecuteDeviceActionReturnType, DeviceManagementKit } from '@ledgerhq/device-management-kit';
3
4
  import { Address, Signature, SignerEth as SignerEth$1, TypedData } from '@ledgerhq/device-signer-kit-ethereum';
@@ -122,11 +123,15 @@ declare class LedgerAdapter implements IHardwareWallet {
122
123
  private static readonly STUCK_APP_RETRY_DELAY_MS;
123
124
  private static readonly MAX_DOCONNECT_CONFIRMS;
124
125
  private _lastCancelReason;
126
+ private static readonly APP_INSTALL_PROGRESS_MIN_DELTA;
127
+ private _installProgressLastEmittedValue;
128
+ private _installProgressLastKey;
125
129
  private static _createDeviceBusyError;
126
130
  connectDevice(connectId: string): Promise<Response<string>>;
127
131
  disconnectDevice(connectId: string): Promise<void>;
128
132
  getDeviceInfo(connectId: string, deviceId: string): Promise<Response<DeviceInfo>>;
129
133
  getSupportedChains(): ChainCapability[];
134
+ allNetworkGetAddress: (connectId: string, _deviceId: string, params: _onekeyfe_hwk_adapter_core.AllNetworkGetAddressParams) => Promise<Response<_onekeyfe_hwk_adapter_core.AllNetworkAddressResponse[]>>;
130
135
  private callChain;
131
136
  evmGetAddress(connectId: string, deviceId: string, params: EvmGetAddressParams, commonParams?: ICommonCallParams): Promise<Response<EvmAddress>>;
132
137
  evmSignTransaction(connectId: string, deviceId: string, params: EvmSignTxParams, commonParams?: ICommonCallParams): Promise<Response<EvmSignedTx>>;
@@ -148,6 +153,7 @@ declare class LedgerAdapter implements IHardwareWallet {
148
153
  tronSignMessage(connectId: string, deviceId: string, params: TronSignMsgParams, commonParams?: ICommonCallParams): Promise<Response<TronSignature>>;
149
154
  installApp(connectId: string, appName: string): Promise<Response<void>>;
150
155
  listInstalledApps(connectId: string): Promise<Response<AppMetadata[]>>;
156
+ listInstalledNames(connectId: string): Promise<Response<string[]>>;
151
157
  listAvailableApps(connectId: string): Promise<Response<AppMetadata[]>>;
152
158
  getLedgerFirmwareVersion(connectId: string): Promise<Response<FirmwareVersion>>;
153
159
  getLedgerDeviceInfo(connectId: string): Promise<Response<LedgerDeviceInfo>>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _onekeyfe_hwk_adapter_core from '@onekeyfe/hwk-adapter-core';
1
2
  import { IHardwareWallet, IConnector, TransportType, UiResponseEvent, SearchDevicesOptions, DeviceInfo, Response, ChainCapability, EvmGetAddressParams, ICommonCallParams, EvmAddress, EvmSignTxParams, EvmSignedTx, EvmSignMsgParams, EvmSignature, EvmSignTypedDataParams, BtcGetAddressParams, BtcAddress, BtcGetPublicKeyParams, BtcPublicKey, BtcSignTxParams, BtcSignedTx, BtcSignPsbtParams, BtcSignedPsbt, BtcSignMsgParams, BtcSignature, SolGetAddressParams, SolAddress, SolSignTxParams, SolSignedTx, SolSignMsgParams, SolSignature, TronGetAddressParams, TronAddress, TronSignTxParams, TronSignedTx, TronSignMsgParams, TronSignature, HardwareEventMap, DeviceEventListener, ChainForFingerprint, DeviceDescriptor, DeviceChangeEvent, ConnectionType, ConnectorDevice, ConnectorSession, ConnectorCallResult, ConnectorEventType, ConnectorEventMap, Failure, HardwareErrorCode } from '@onekeyfe/hwk-adapter-core';
2
3
  import { DeviceActionState as DeviceActionState$1, DiscoveredDevice, ExecuteDeviceActionReturnType, DeviceManagementKit } from '@ledgerhq/device-management-kit';
3
4
  import { Address, Signature, SignerEth as SignerEth$1, TypedData } from '@ledgerhq/device-signer-kit-ethereum';
@@ -122,11 +123,15 @@ declare class LedgerAdapter implements IHardwareWallet {
122
123
  private static readonly STUCK_APP_RETRY_DELAY_MS;
123
124
  private static readonly MAX_DOCONNECT_CONFIRMS;
124
125
  private _lastCancelReason;
126
+ private static readonly APP_INSTALL_PROGRESS_MIN_DELTA;
127
+ private _installProgressLastEmittedValue;
128
+ private _installProgressLastKey;
125
129
  private static _createDeviceBusyError;
126
130
  connectDevice(connectId: string): Promise<Response<string>>;
127
131
  disconnectDevice(connectId: string): Promise<void>;
128
132
  getDeviceInfo(connectId: string, deviceId: string): Promise<Response<DeviceInfo>>;
129
133
  getSupportedChains(): ChainCapability[];
134
+ allNetworkGetAddress: (connectId: string, _deviceId: string, params: _onekeyfe_hwk_adapter_core.AllNetworkGetAddressParams) => Promise<Response<_onekeyfe_hwk_adapter_core.AllNetworkAddressResponse[]>>;
130
135
  private callChain;
131
136
  evmGetAddress(connectId: string, deviceId: string, params: EvmGetAddressParams, commonParams?: ICommonCallParams): Promise<Response<EvmAddress>>;
132
137
  evmSignTransaction(connectId: string, deviceId: string, params: EvmSignTxParams, commonParams?: ICommonCallParams): Promise<Response<EvmSignedTx>>;
@@ -148,6 +153,7 @@ declare class LedgerAdapter implements IHardwareWallet {
148
153
  tronSignMessage(connectId: string, deviceId: string, params: TronSignMsgParams, commonParams?: ICommonCallParams): Promise<Response<TronSignature>>;
149
154
  installApp(connectId: string, appName: string): Promise<Response<void>>;
150
155
  listInstalledApps(connectId: string): Promise<Response<AppMetadata[]>>;
156
+ listInstalledNames(connectId: string): Promise<Response<string[]>>;
151
157
  listAvailableApps(connectId: string): Promise<Response<AppMetadata[]>>;
152
158
  getLedgerFirmwareVersion(connectId: string): Promise<Response<FirmwareVersion>>;
153
159
  getLedgerDeviceInfo(connectId: string): Promise<Response<LedgerDeviceInfo>>;