@onekeyfe/hwk-ledger-adapter 1.1.27-patch.1 → 1.2.0-alpha.0

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,4 +1,3 @@
1
- import * as _onekeyfe_hwk_adapter_core from '@onekeyfe/hwk-adapter-core';
2
1
  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';
3
2
  import { DeviceActionState as DeviceActionState$1, DiscoveredDevice, ExecuteDeviceActionReturnType, DeviceManagementKit } from '@ledgerhq/device-management-kit';
4
3
  import { Address, Signature, SignerEth as SignerEth$1, TypedData } from '@ledgerhq/device-signer-kit-ethereum';
@@ -123,15 +122,11 @@ declare class LedgerAdapter implements IHardwareWallet {
123
122
  private static readonly STUCK_APP_RETRY_DELAY_MS;
124
123
  private static readonly MAX_DOCONNECT_CONFIRMS;
125
124
  private _lastCancelReason;
126
- private static readonly APP_INSTALL_PROGRESS_MIN_DELTA;
127
- private _installProgressLastEmittedValue;
128
- private _installProgressLastKey;
129
125
  private static _createDeviceBusyError;
130
126
  connectDevice(connectId: string): Promise<Response<string>>;
131
127
  disconnectDevice(connectId: string): Promise<void>;
132
128
  getDeviceInfo(connectId: string, deviceId: string): Promise<Response<DeviceInfo>>;
133
129
  getSupportedChains(): ChainCapability[];
134
- allNetworkGetAddress: (connectId: string, _deviceId: string, params: _onekeyfe_hwk_adapter_core.AllNetworkGetAddressParams) => Promise<Response<_onekeyfe_hwk_adapter_core.AllNetworkAddressResponse[]>>;
135
130
  private callChain;
136
131
  evmGetAddress(connectId: string, deviceId: string, params: EvmGetAddressParams, commonParams?: ICommonCallParams): Promise<Response<EvmAddress>>;
137
132
  evmSignTransaction(connectId: string, deviceId: string, params: EvmSignTxParams, commonParams?: ICommonCallParams): Promise<Response<EvmSignedTx>>;
@@ -153,7 +148,6 @@ declare class LedgerAdapter implements IHardwareWallet {
153
148
  tronSignMessage(connectId: string, deviceId: string, params: TronSignMsgParams, commonParams?: ICommonCallParams): Promise<Response<TronSignature>>;
154
149
  installApp(connectId: string, appName: string): Promise<Response<void>>;
155
150
  listInstalledApps(connectId: string): Promise<Response<AppMetadata[]>>;
156
- listInstalledNames(connectId: string): Promise<Response<string[]>>;
157
151
  listAvailableApps(connectId: string): Promise<Response<AppMetadata[]>>;
158
152
  getLedgerFirmwareVersion(connectId: string): Promise<Response<FirmwareVersion>>;
159
153
  getLedgerDeviceInfo(connectId: string): Promise<Response<LedgerDeviceInfo>>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as _onekeyfe_hwk_adapter_core from '@onekeyfe/hwk-adapter-core';
2
1
  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';
3
2
  import { DeviceActionState as DeviceActionState$1, DiscoveredDevice, ExecuteDeviceActionReturnType, DeviceManagementKit } from '@ledgerhq/device-management-kit';
4
3
  import { Address, Signature, SignerEth as SignerEth$1, TypedData } from '@ledgerhq/device-signer-kit-ethereum';
@@ -123,15 +122,11 @@ declare class LedgerAdapter implements IHardwareWallet {
123
122
  private static readonly STUCK_APP_RETRY_DELAY_MS;
124
123
  private static readonly MAX_DOCONNECT_CONFIRMS;
125
124
  private _lastCancelReason;
126
- private static readonly APP_INSTALL_PROGRESS_MIN_DELTA;
127
- private _installProgressLastEmittedValue;
128
- private _installProgressLastKey;
129
125
  private static _createDeviceBusyError;
130
126
  connectDevice(connectId: string): Promise<Response<string>>;
131
127
  disconnectDevice(connectId: string): Promise<void>;
132
128
  getDeviceInfo(connectId: string, deviceId: string): Promise<Response<DeviceInfo>>;
133
129
  getSupportedChains(): ChainCapability[];
134
- allNetworkGetAddress: (connectId: string, _deviceId: string, params: _onekeyfe_hwk_adapter_core.AllNetworkGetAddressParams) => Promise<Response<_onekeyfe_hwk_adapter_core.AllNetworkAddressResponse[]>>;
135
130
  private callChain;
136
131
  evmGetAddress(connectId: string, deviceId: string, params: EvmGetAddressParams, commonParams?: ICommonCallParams): Promise<Response<EvmAddress>>;
137
132
  evmSignTransaction(connectId: string, deviceId: string, params: EvmSignTxParams, commonParams?: ICommonCallParams): Promise<Response<EvmSignedTx>>;
@@ -153,7 +148,6 @@ declare class LedgerAdapter implements IHardwareWallet {
153
148
  tronSignMessage(connectId: string, deviceId: string, params: TronSignMsgParams, commonParams?: ICommonCallParams): Promise<Response<TronSignature>>;
154
149
  installApp(connectId: string, appName: string): Promise<Response<void>>;
155
150
  listInstalledApps(connectId: string): Promise<Response<AppMetadata[]>>;
156
- listInstalledNames(connectId: string): Promise<Response<string[]>>;
157
151
  listAvailableApps(connectId: string): Promise<Response<AppMetadata[]>>;
158
152
  getLedgerFirmwareVersion(connectId: string): Promise<Response<FirmwareVersion>>;
159
153
  getLedgerDeviceInfo(connectId: string): Promise<Response<LedgerDeviceInfo>>;