@onekeyfe/hd-core 1.1.20-alpha.1 → 1.1.20-alpha.2

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.
@@ -6,7 +6,7 @@ export default class SearchDevices extends BaseMethod {
6
6
  run(): Promise<(import("..").KnownDevice | null)[] | {
7
7
  connectId: string;
8
8
  deviceType: import("..").IDeviceType;
9
- type: import("packages/hd-transport/dist").OneKeyDeviceCommunicationType;
9
+ commType: import("packages/hd-transport/dist").OneKeyDeviceCommType;
10
10
  path: string;
11
11
  session?: string | null | undefined;
12
12
  debugSession?: string | null | undefined;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import EventEmitter$1, { EventEmitter } from 'events';
2
2
  import * as _onekeyfe_hd_transport from '@onekeyfe/hd-transport';
3
- import { OneKeyDeviceCommunicationType, Messages, LowlevelTransportSharedPlugin, Features as Features$1, Success as Success$1, RecoveryDeviceType, SafetyCheckLevel, ResourceType, NextU2FCounter, SetU2FCounter, CipheredKeyValue as CipheredKeyValue$1, UintType, EthereumPublicKey, EthereumMessageSignature, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, SignedPsbt, PrevInput, TxOutputBinType, TxInput, TxOutputType, TxInputType, StarcoinAddress as StarcoinAddress$1, StarcoinPublicKey as StarcoinPublicKey$1, StarcoinMessageSignature, StarcoinSignedTx, NEMAddress as NEMAddress$1, NEMSignedTx, SolanaAddress as SolanaAddress$1, SolanaSignedTx as SolanaSignedTx$1, SolanaOffChainMessageVersion, SolanaOffChainMessageFormat, StellarAddress as StellarAddress$1, StellarSignedTx, TronAddress as TronAddress$1, TronResourceCode, TronSignedTx, TronMessageSignature, ConfluxAddress as ConfluxAddress$1, ConfluxMessageSignature, NearAddress as NearAddress$1, NearSignedTx, AptosAddress as AptosAddress$1, AptosMessageSignature as AptosMessageSignature$1, AptosSignedTx as AptosSignedTx$1, AlgorandAddress, AlgorandSignedTx, CosmosAddress as CosmosAddress$1, CosmosSignedTx as CosmosSignedTx$1, SuiAddress as SuiAddress$1, SuiMessageSignature, CardanoAddressParametersType, CardanoMessageSignature, FilecoinAddress as FilecoinAddress$1, FilecoinSignedTx as FilecoinSignedTx$1, PolkadotAddress as PolkadotAddress$1, PolkadotSignedTx as PolkadotSignedTx$1, KaspaAddress as KaspaAddress$1, NervosAddress as NervosAddress$1, NervosSignedTx as NervosSignedTx$1, DnxAddress as DnxAddress$1, TonWalletVersion, TonWorkChain, TonSignedMessage, TonSignedProof, ScdoAddress as ScdoAddress$1, ScdoSignedMessage, ScdoSignedTx as ScdoSignedTx$1, AlephiumMessageSignature, AlephiumSignedTx as AlephiumSignedTx$1, BenfenAddress as BenfenAddress$1, BenfenMessageSignature, OneKeyDeviceInfo, Transport, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
3
+ import { OneKeyDeviceCommType, Messages, LowlevelTransportSharedPlugin, Features as Features$1, Success as Success$1, RecoveryDeviceType, SafetyCheckLevel, ResourceType, NextU2FCounter, SetU2FCounter, CipheredKeyValue as CipheredKeyValue$1, UintType, EthereumPublicKey, EthereumMessageSignature, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, SignedPsbt, PrevInput, TxOutputBinType, TxInput, TxOutputType, TxInputType, StarcoinAddress as StarcoinAddress$1, StarcoinPublicKey as StarcoinPublicKey$1, StarcoinMessageSignature, StarcoinSignedTx, NEMAddress as NEMAddress$1, NEMSignedTx, SolanaAddress as SolanaAddress$1, SolanaSignedTx as SolanaSignedTx$1, SolanaOffChainMessageVersion, SolanaOffChainMessageFormat, StellarAddress as StellarAddress$1, StellarSignedTx, TronAddress as TronAddress$1, TronResourceCode, TronSignedTx, TronMessageSignature, ConfluxAddress as ConfluxAddress$1, ConfluxMessageSignature, NearAddress as NearAddress$1, NearSignedTx, AptosAddress as AptosAddress$1, AptosMessageSignature as AptosMessageSignature$1, AptosSignedTx as AptosSignedTx$1, AlgorandAddress, AlgorandSignedTx, CosmosAddress as CosmosAddress$1, CosmosSignedTx as CosmosSignedTx$1, SuiAddress as SuiAddress$1, SuiMessageSignature, CardanoAddressParametersType, CardanoMessageSignature, FilecoinAddress as FilecoinAddress$1, FilecoinSignedTx as FilecoinSignedTx$1, PolkadotAddress as PolkadotAddress$1, PolkadotSignedTx as PolkadotSignedTx$1, KaspaAddress as KaspaAddress$1, NervosAddress as NervosAddress$1, NervosSignedTx as NervosSignedTx$1, DnxAddress as DnxAddress$1, TonWalletVersion, TonWorkChain, TonSignedMessage, TonSignedProof, ScdoAddress as ScdoAddress$1, ScdoSignedMessage, ScdoSignedTx as ScdoSignedTx$1, AlephiumMessageSignature, AlephiumSignedTx as AlephiumSignedTx$1, BenfenAddress as BenfenAddress$1, BenfenMessageSignature, OneKeyDeviceInfo, Transport, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
4
4
  export { Messages as PROTO } from '@onekeyfe/hd-transport';
5
5
  import { EDeviceType, EFirmwareType, Deferred } from '@onekeyfe/hd-shared';
6
6
 
@@ -74,7 +74,7 @@ type KnownDevice = {
74
74
  uuid: string;
75
75
  deviceId: string | null;
76
76
  deviceType: IDeviceType | null;
77
- communicationType: OneKeyDeviceCommunicationType | null;
77
+ commType: OneKeyDeviceCommType | null;
78
78
  path: string;
79
79
  label: string;
80
80
  bleName: string | null;
@@ -95,6 +95,7 @@ type SearchDevice = {
95
95
  deviceId: string | null;
96
96
  deviceType: IDeviceType;
97
97
  name: string;
98
+ commType: OneKeyDeviceCommType;
98
99
  };
99
100
  type Device$1 = KnownDevice;
100
101
  type Features = Messages.Features;
package/dist/index.js CHANGED
@@ -27087,7 +27087,7 @@ class Device extends events.exports {
27087
27087
  return {
27088
27088
  connectId: DataManager.isBleConnect(env) ? this.mainId || null : getDeviceUUID(this.features),
27089
27089
  uuid: getDeviceUUID(this.features),
27090
- communicationType: this.originalDescriptor.type,
27090
+ commType: this.originalDescriptor.commType,
27091
27091
  sdkInstanceId: this.sdkInstanceId,
27092
27092
  instanceId: this.instanceId,
27093
27093
  createdAt: this.createdAt,
@@ -1,7 +1,7 @@
1
1
  import { EDeviceType } from '@onekeyfe/hd-shared';
2
2
  import type { IVersionArray } from './settings';
3
3
  import type { PROTO } from '../constants';
4
- import type { OneKeyDeviceCommunicationType } from '@onekeyfe/hd-transport';
4
+ import type { OneKeyDeviceCommType } from '@onekeyfe/hd-transport';
5
5
  export type DeviceStatus = 'available' | 'occupied' | 'used';
6
6
  export declare enum EOneKeyDeviceMode {
7
7
  bootloader = "bootloader",
@@ -18,7 +18,7 @@ export type KnownDevice = {
18
18
  uuid: string;
19
19
  deviceId: string | null;
20
20
  deviceType: IDeviceType | null;
21
- communicationType: OneKeyDeviceCommunicationType | null;
21
+ commType: OneKeyDeviceCommType | null;
22
22
  path: string;
23
23
  label: string;
24
24
  bleName: string | null;
@@ -39,6 +39,7 @@ export type SearchDevice = {
39
39
  deviceId: string | null;
40
40
  deviceType: IDeviceType;
41
41
  name: string;
42
+ commType: OneKeyDeviceCommType;
42
43
  };
43
44
  export type Device = KnownDevice;
44
45
  export type Features = PROTO.Features;
@@ -1 +1 @@
1
- {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/types/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAE7D,oBAAY,iBAAiB;IAC3B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,qBAAqB,GAC7B,eAAe,GACf,YAAY,GACZ,iBAAiB,GACjB,yBAAyB,CAAC;AAE9B,MAA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
2
2
  "name": "@onekeyfe/hd-core",
3
- "version": "1.1.20-alpha.1",
3
+ "version": "1.1.20-alpha.2",
4
4
  "description": "Core processes and APIs for communicating with OneKey hardware devices.",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -25,8 +25,8 @@
25
25
  "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@onekeyfe/hd-shared": "1.1.20-alpha.1",
29
- "@onekeyfe/hd-transport": "1.1.20-alpha.1",
28
+ "@onekeyfe/hd-shared": "1.1.20-alpha.2",
29
+ "@onekeyfe/hd-transport": "1.1.20-alpha.2",
30
30
  "axios": "1.12.2",
31
31
  "bignumber.js": "^9.0.2",
32
32
  "bytebuffer": "^5.0.1",
@@ -44,5 +44,5 @@
44
44
  "@types/w3c-web-usb": "^1.0.10",
45
45
  "@types/web-bluetooth": "^0.0.21"
46
46
  },
47
- "gitHead": "4a835d088a44adaeb6b1088816ece1bc1e8474e2"
47
+ "gitHead": "dbf71f2cde0679e6f0bc84441ff0d0f905b054c0"
48
48
  }
@@ -201,7 +201,7 @@ export class Device extends EventEmitter {
201
201
  connectId: DataManager.isBleConnect(env) ? this.mainId || null : getDeviceUUID(this.features),
202
202
  /** Hardware ID, will not change at any time */
203
203
  uuid: getDeviceUUID(this.features),
204
- communicationType: this.originalDescriptor.type,
204
+ commType: this.originalDescriptor.commType,
205
205
  sdkInstanceId: this.sdkInstanceId,
206
206
  instanceId: this.instanceId,
207
207
  createdAt: this.createdAt,
@@ -2,7 +2,7 @@ import { EDeviceType } from '@onekeyfe/hd-shared';
2
2
 
3
3
  import type { IVersionArray } from './settings';
4
4
  import type { PROTO } from '../constants';
5
- import type { OneKeyDeviceCommunicationType } from '@onekeyfe/hd-transport';
5
+ import type { OneKeyDeviceCommType } from '@onekeyfe/hd-transport';
6
6
 
7
7
  export type DeviceStatus = 'available' | 'occupied' | 'used';
8
8
 
@@ -26,7 +26,7 @@ export type KnownDevice = {
26
26
  uuid: string;
27
27
  deviceId: string | null;
28
28
  deviceType: IDeviceType | null;
29
- communicationType: OneKeyDeviceCommunicationType | null;
29
+ commType: OneKeyDeviceCommType | null;
30
30
  path: string;
31
31
  label: string;
32
32
  bleName: string | null;
@@ -50,6 +50,7 @@ export type SearchDevice = {
50
50
  deviceId: string | null;
51
51
  deviceType: IDeviceType;
52
52
  name: string;
53
+ commType: OneKeyDeviceCommType;
53
54
  };
54
55
 
55
56
  // export type UnknownDevice = {