@onekeyfe/hd-core 1.2.0-alpha.1 → 1.2.0-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.
- package/__tests__/protocol-v2.test.ts +106 -111
- package/dist/api/GetPassphraseState.d.ts +4 -4
- package/dist/api/protocol-v2/helpers.d.ts +3 -2
- package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
- package/dist/api/tron/TronSignMessage.d.ts +0 -1
- package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
- package/dist/api/tron/TronSignTransaction.d.ts +0 -1
- package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
- package/dist/constants/index.d.ts +1 -2
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/data-manager/connectSettings.d.ts.map +1 -1
- package/dist/device/Device.d.ts +0 -1
- package/dist/device/Device.d.ts.map +1 -1
- package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -1
- package/dist/deviceProfile/buildDeviceProfile.d.ts.map +1 -1
- package/dist/index.d.ts +10 -12
- package/dist/index.js +474 -493
- package/dist/protocols/protocol-v2/features.d.ts +2 -2
- package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
- package/dist/types/api/getPassphraseState.d.ts +4 -4
- package/dist/types/api/getPassphraseState.d.ts.map +1 -1
- package/dist/types/api/protocolV2.d.ts +3 -3
- package/dist/types/api/protocolV2.d.ts.map +1 -1
- package/dist/types/settings.d.ts +0 -1
- package/dist/types/settings.d.ts.map +1 -1
- package/dist/utils/patch.d.ts +1 -1
- package/dist/utils/patch.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/api/GetPassphraseState.ts +4 -4
- package/src/api/protocol-v2/DeviceReboot.ts +3 -3
- package/src/api/protocol-v2/helpers.ts +26 -1
- package/src/api/tron/TronSignMessage.ts +0 -1
- package/src/api/tron/TronSignTransaction.ts +0 -1
- package/src/constants/index.ts +1 -10
- package/src/core/index.ts +0 -2
- package/src/data/messages/messages-protocol-v2.json +323 -329
- package/src/data-manager/connectSettings.ts +0 -6
- package/src/device/Device.ts +1 -12
- package/src/device/DevicePool.ts +6 -6
- package/src/deviceProfile/buildDeviceFeatures.ts +1 -2
- package/src/deviceProfile/buildDeviceProfile.ts +3 -2
- package/src/protocols/protocol-v2/features.ts +7 -8
- package/src/types/api/getPassphraseState.ts +4 -4
- package/src/types/api/protocolV2.ts +3 -2
- package/src/types/settings.ts +0 -5
package/src/core/index.ts
CHANGED
|
@@ -56,7 +56,6 @@ import TransportManager from '../data-manager/TransportManager';
|
|
|
56
56
|
import DeviceConnector from '../device/DeviceConnector';
|
|
57
57
|
import RequestQueue from './RequestQueue';
|
|
58
58
|
import { getSynchronize } from '../utils/getSynchronize';
|
|
59
|
-
import { setProtocolV2DeviceInfoMock } from '../protocols/protocol-v2/features';
|
|
60
59
|
|
|
61
60
|
import type { ConnectSettings, Features, KnownDevice } from '../types';
|
|
62
61
|
import type { CoreMessage, IFrameCallMessage, UiPromise, UiPromiseResponse } from '../events';
|
|
@@ -1439,7 +1438,6 @@ export const init = async (
|
|
|
1439
1438
|
try {
|
|
1440
1439
|
try {
|
|
1441
1440
|
await DataManager.load(settings);
|
|
1442
|
-
setProtocolV2DeviceInfoMock(settings.protocolV2DeviceInfoMockEnabled ?? false);
|
|
1443
1441
|
initTransport(Transport, plugin);
|
|
1444
1442
|
} catch {
|
|
1445
1443
|
Log.error('DataManager.load error');
|