@onekeyfe/hd-core 0.2.15 → 0.2.17
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/api/FirmwareUpdateV2.d.ts +2 -1
- package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
- package/dist/api/cardano/helper/cardanoInputs.d.ts.map +1 -1
- package/dist/api/device/DeviceRebootToBoardloader.d.ts +15 -0
- package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -0
- package/dist/api/filecoin/FilecoinGetAddress.d.ts +17 -0
- package/dist/api/filecoin/FilecoinGetAddress.d.ts.map +1 -0
- package/dist/api/filecoin/FilecoinSignTransaction.d.ts +19 -0
- package/dist/api/filecoin/FilecoinSignTransaction.d.ts.map +1 -0
- package/dist/api/firmware/getBinary.d.ts.map +1 -1
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/data-manager/DataManager.d.ts +2 -1
- package/dist/data-manager/DataManager.d.ts.map +1 -1
- package/dist/index.d.ts +41 -4
- package/dist/index.js +472 -277
- package/dist/inject.d.ts.map +1 -1
- package/dist/types/api/cardano.d.ts.map +1 -1
- package/dist/types/api/deviceRebootToBoardloader.d.ts +5 -0
- package/dist/types/api/deviceRebootToBoardloader.d.ts.map +1 -0
- package/dist/types/api/export.d.ts +2 -0
- package/dist/types/api/export.d.ts.map +1 -1
- package/dist/types/api/filecoinGetAddress.d.ts +14 -0
- package/dist/types/api/filecoinGetAddress.d.ts.map +1 -0
- package/dist/types/api/filecoinSignTransaction.d.ts +14 -0
- package/dist/types/api/filecoinSignTransaction.d.ts.map +1 -0
- package/dist/types/api/firmwareUpdate.d.ts +7 -0
- package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +8 -2
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/settings.d.ts +1 -0
- 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/FirmwareUpdateV2.ts +25 -2
- package/src/api/device/DeviceRebootToBoardloader.ts +28 -0
- package/src/api/filecoin/FilecoinGetAddress.ts +71 -0
- package/src/api/filecoin/FilecoinSignTransaction.ts +54 -0
- package/src/api/firmware/getBinary.ts +12 -2
- package/src/api/index.ts +4 -0
- package/src/data/messages/messages.json +463 -419
- package/src/data-manager/DataManager.ts +17 -5
- package/src/inject.ts +7 -0
- package/src/types/api/cardano.ts +0 -1
- package/src/types/api/deviceRebootToBoardloader.ts +6 -0
- package/src/types/api/export.ts +3 -0
- package/src/types/api/filecoinGetAddress.ts +23 -0
- package/src/types/api/filecoinSignTransaction.ts +23 -0
- package/src/types/api/firmwareUpdate.ts +12 -0
- package/src/types/api/index.ts +13 -2
- package/src/types/settings.ts +1 -0
package/dist/inject.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject.d.ts","sourceRoot":"","sources":["../src/inject.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,MAAM,+DAOhB,SAAS,KAAG,
|
|
1
|
+
{"version":3,"file":"inject.d.ts","sourceRoot":"","sources":["../src/inject.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EA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,EAAE,qBAAqB,EAAE,CAAC;IAC1C,yBAAyB,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACxC,cAAc,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,CAAC,oCAAoC,CAAC;IACjD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,sBAAsB,EAAE,CAAC;IACpC,uBAAuB,CAAC,EAAE,8BAA8B,CAAC;CAC1D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Success, RebootToBoardloader } from '@onekeyfe/hd-transport';
|
|
2
|
+
import type { Response } from '../params';
|
|
3
|
+
export declare type RebootToBoardloaderParams = RebootToBoardloader;
|
|
4
|
+
export declare function deviceRebootToBoardloader(connectId: string): Response<Success>;
|
|
5
|
+
//# sourceMappingURL=deviceRebootToBoardloader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceRebootToBoardloader.d.ts","sourceRoot":"","sources":["../../../src/types/api/deviceRebootToBoardloader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,oBAAY,yBAAyB,GAAG,mBAAmB,CAAC;AAE5D,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -54,4 +54,6 @@ export type { SuiPublicKey, SuiGetPublicKeyParams } from './suiGetPublicKey';
|
|
|
54
54
|
export type { SuiSignedTx, SuiSignTransactionParams } from './suiSignTransaction';
|
|
55
55
|
export type { CardanoGetAddressMethodParams, CardanoAddress, CardanoGetAddressParams, } from './cardanoGetAddress';
|
|
56
56
|
export type { CardanoSignTransaction, CardanoSignedTxData } from './cardano';
|
|
57
|
+
export type { FilecoinAddress, FilecoinGetAddressParams } from './filecoinGetAddress';
|
|
58
|
+
export type { FilecoinSignTransactionParams, FilecoinSignedTx } from './filecoinSignTransaction';
|
|
57
59
|
//# sourceMappingURL=export.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/types/api/export.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACvE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAEjF,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,YA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,CAAC;AAEvE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,YAAY,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnF,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACxF,YAAY,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAExF,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,YAAY,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAErF,YAAY,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAChF,YAAY,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACtF,YAAY,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3F,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACvE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,YAAY,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAElF,YAAY,EACV,6BAA6B,EAC7B,cAAc,EACd,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE7E,YAAY,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACtF,YAAY,EAAE,6BAA6B,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FilecoinAddress as HardwareFilecoinAddress } from '@onekeyfe/hd-transport';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
|
+
export declare type FilecoinAddress = {
|
|
4
|
+
path: string;
|
|
5
|
+
} & HardwareFilecoinAddress;
|
|
6
|
+
export declare type FilecoinGetAddressParams = {
|
|
7
|
+
path: string | number[];
|
|
8
|
+
showOnOneKey?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function filecoinGetAddress(connectId: string, deviceId: string, params: CommonParams & FilecoinGetAddressParams): Response<FilecoinAddress>;
|
|
11
|
+
export declare function filecoinGetAddress(connectId: string, deviceId: string, params: CommonParams & {
|
|
12
|
+
bundle?: FilecoinGetAddressParams[];
|
|
13
|
+
}): Response<Array<FilecoinAddress>>;
|
|
14
|
+
//# sourceMappingURL=filecoinGetAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filecoinGetAddress.d.ts","sourceRoot":"","sources":["../../../src/types/api/filecoinGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,uBAAuB,CAAC;AAE5B,oBAAY,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,wBAAwB,GAC9C,QAAQ,CAAC,eAAe,CAAC,CAAC;AAE7B,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG;IAAE,MAAM,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAAE,GAC7D,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FilecoinSignedTx as HardwareFilecoinSignedTx } from '@onekeyfe/hd-transport';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
|
+
export declare type FilecoinSignedTx = {
|
|
4
|
+
path: string;
|
|
5
|
+
} & HardwareFilecoinSignedTx;
|
|
6
|
+
export declare type FilecoinSignTransactionParams = {
|
|
7
|
+
path: string | number[];
|
|
8
|
+
rawTx?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function filecoinSignTransaction(connectId: string, deviceId: string, params: CommonParams & FilecoinSignTransactionParams): Response<FilecoinSignedTx>;
|
|
11
|
+
export declare function filecoinSignTransaction(connectId: string, deviceId: string, params: CommonParams & {
|
|
12
|
+
bundle?: FilecoinSignTransactionParams[];
|
|
13
|
+
}): Response<Array<FilecoinSignedTx>>;
|
|
14
|
+
//# sourceMappingURL=filecoinSignTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filecoinSignTransaction.d.ts","sourceRoot":"","sources":["../../../src/types/api/filecoinSignTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,wBAAwB,CAAC;AAE7B,oBAAY,6BAA6B,GAAG;IAC1C,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,6BAA6B,GACnD,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG;IAAE,MAAM,CAAC,EAAE,6BAA6B,EAAE,CAAA;CAAE,GAClE,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC"}
|
|
@@ -11,4 +11,11 @@ export interface FirmwareUpdateParams {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function firmwareUpdate(connectId: string | undefined, params: Params<FirmwareUpdateParams>): Response<PROTO.Success>;
|
|
13
13
|
export declare function firmwareUpdate(connectId: string | undefined, params: Params<FirmwareUpdateBinaryParams>): Response<PROTO.Success>;
|
|
14
|
+
declare type IPlatform = 'native' | 'desktop' | 'ext' | 'web' | 'webEmbed';
|
|
15
|
+
declare type Platform = {
|
|
16
|
+
platform: IPlatform;
|
|
17
|
+
};
|
|
18
|
+
export declare function firmwareUpdateV2(connectId: string | undefined, params: Params<FirmwareUpdateParams & Platform>): Response<PROTO.Success>;
|
|
19
|
+
export declare function firmwareUpdateV2(connectId: string | undefined, params: Params<FirmwareUpdateBinaryParams & Platform>): Response<PROTO.Success>;
|
|
20
|
+
export {};
|
|
14
21
|
//# sourceMappingURL=firmwareUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firmwareUpdate.d.ts","sourceRoot":"","sources":["../../../src/types/api/firmwareUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAElD,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IACl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3B,aAAK,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC;AACnE,aAAK,QAAQ,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,CAAC,oBAAoB,GAAG,QAAQ,CAAC,GAC9C,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAC3B,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,CAAC,0BAA0B,GAAG,QAAQ,CAAC,GACpD,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -9,13 +9,14 @@ import { getFeatures } from './getFeatures';
|
|
|
9
9
|
import { getPassphraseState } from './getPassphraseState';
|
|
10
10
|
import { checkFirmwareRelease } from './checkFirmwareRelease';
|
|
11
11
|
import { checkBLEFirmwareRelease } from './checkBLEFirmwareRelease';
|
|
12
|
-
import { firmwareUpdate } from './firmwareUpdate';
|
|
12
|
+
import { firmwareUpdate, firmwareUpdateV2 } from './firmwareUpdate';
|
|
13
13
|
import { requestWebUsbDevice } from './requestWebUsbDevice';
|
|
14
14
|
import { deviceReset } from './deviceReset';
|
|
15
15
|
import { deviceRecovery } from './deviceRecovery';
|
|
16
16
|
import { deviceVerify } from './deviceVerify';
|
|
17
17
|
import { deviceWipe } from './deviceWipe';
|
|
18
18
|
import { deviceRebootToBootloader } from './deviceRebootToBootloader';
|
|
19
|
+
import { deviceRebootToBoardloader } from './deviceRebootToBoardloader';
|
|
19
20
|
import { deviceBackup } from './deviceBackup';
|
|
20
21
|
import { deviceChangePin } from './deviceChangePin';
|
|
21
22
|
import { deviceSettings } from './deviceSettings';
|
|
@@ -74,6 +75,8 @@ import { suiSignTransaction } from './suiSignTransaction';
|
|
|
74
75
|
import { cardanoGetAddress } from './cardanoGetAddress';
|
|
75
76
|
import { cardanoGetPublicKey } from './cardanoGetPublicKey';
|
|
76
77
|
import { cardanoSignTransaction } from './cardanoSignTransaction';
|
|
78
|
+
import { filecoinGetAddress } from './filecoinGetAddress';
|
|
79
|
+
import { filecoinSignTransaction } from './filecoinSignTransaction';
|
|
77
80
|
export * from './export';
|
|
78
81
|
export declare type CoreApi = {
|
|
79
82
|
init: typeof init;
|
|
@@ -94,6 +97,7 @@ export declare type CoreApi = {
|
|
|
94
97
|
deviceBackup: typeof deviceBackup;
|
|
95
98
|
deviceChangePin: typeof deviceChangePin;
|
|
96
99
|
deviceFlags: typeof deviceFlags;
|
|
100
|
+
deviceRebootToBoardloader: typeof deviceRebootToBoardloader;
|
|
97
101
|
deviceRebootToBootloader: typeof deviceRebootToBootloader;
|
|
98
102
|
deviceRecovery: typeof deviceRecovery;
|
|
99
103
|
deviceReset: typeof deviceReset;
|
|
@@ -107,7 +111,7 @@ export declare type CoreApi = {
|
|
|
107
111
|
checkFirmwareRelease: typeof checkFirmwareRelease;
|
|
108
112
|
checkBLEFirmwareRelease: typeof checkBLEFirmwareRelease;
|
|
109
113
|
firmwareUpdate: typeof firmwareUpdate;
|
|
110
|
-
firmwareUpdateV2: typeof
|
|
114
|
+
firmwareUpdateV2: typeof firmwareUpdateV2;
|
|
111
115
|
cipherKeyValue: typeof cipherKeyValue;
|
|
112
116
|
evmGetAddress: typeof evmGetAddress;
|
|
113
117
|
evmGetPublicKey: typeof evmGetPublicKey;
|
|
@@ -158,5 +162,7 @@ export declare type CoreApi = {
|
|
|
158
162
|
cardanoGetAddress: typeof cardanoGetAddress;
|
|
159
163
|
cardanoGetPublicKey: typeof cardanoGetPublicKey;
|
|
160
164
|
cardanoSignTransaction: typeof cardanoSignTransaction;
|
|
165
|
+
filecoinGetAddress: typeof filecoinGetAddress;
|
|
166
|
+
filecoinSignTransaction: typeof filecoinSignTransaction;
|
|
161
167
|
};
|
|
162
168
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,C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IACtB,MAAM,EAAE;QACN,OAAO,EAAE,aAAa,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE;aACR,CAAC,IAAI,OAAO,GAAG,MAAM;SACvB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC7B,GAAG,aAAa,CAAC"}
|
package/dist/utils/patch.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DefaultMessageResponse } from '../device/DeviceCommands';
|
|
2
|
-
export declare function patchFeatures(response: DefaultMessageResponse): import("../device/DeviceCommands").TypedResponseMessage<"Address"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessagePayload"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinancePublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceInputOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTransferMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceOrderMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCancelMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodeType"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodePathType"> | import("../device/DeviceCommands").TypedResponseMessage<"MultisigRedeemScriptType"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"GetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"SignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"MessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"VerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestDetailsType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestSerializedType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"TxInputType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputBinType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputType"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevTx"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevMeta"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraData"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"AuthorizeCoinJoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BIP32Address"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"SelfTest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase_ex"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoBlockchainPointerType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScript"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddressParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxInit"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAssetGroup"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoToken"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolOwner"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolRelayParameters"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolMetadataType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCertificate"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWithdrawal"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoCatalystRegistrationParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryData"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxMint"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxItemAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessResponse"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxHostAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxBodyHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxFinished"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInputType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTokenType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAssetGroupType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxOutputType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolOwnerType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolRelayParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCertificateType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWithdrawalType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryDataType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignedTxChunk"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignedTxChunkAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"Success"> | import("../device/DeviceCommands").TypedResponseMessage<"Failure"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseAck"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinPinInputOnDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessageCIP23"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CipherKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"CipheredKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"IdentityType"> | import("../device/DeviceCommands").TypedResponseMessage<"SignIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"SignedIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"GetECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"ECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"Path"> | import("../device/DeviceCommands").TypedResponseMessage<"BatchGetPublickeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EcdsaPublicKeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxHeader"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPermissionLevel"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationWait"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUndelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionRefund"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRamBytes"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionSellRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionVoteProducer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUpdateAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDeleteAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionLinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnlinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionNewAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnknown"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedData"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumFieldType"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumStructMember"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAccessList"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTxEIP1559"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessageEIP712"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedHash"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"Initialize"> | import("../device/DeviceCommands").TypedResponseMessage<"GetFeatures"> | import("../device/DeviceCommands").TypedResponseMessage<"Features"> | import("../device/DeviceCommands").TypedResponseMessage<"LockDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EndSession"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplySettings"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplyFlags"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangePin"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangeWipeCode"> | import("../device/DeviceCommands").TypedResponseMessage<"SdProtect"> | import("../device/DeviceCommands").TypedResponseMessage<"Ping"> | import("../device/DeviceCommands").TypedResponseMessage<"Cancel"> | import("../device/DeviceCommands").TypedResponseMessage<"GetEntropy"> | import("../device/DeviceCommands").TypedResponseMessage<"Entropy"> | import("../device/DeviceCommands").TypedResponseMessage<"WipeDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ResetDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyAck"> | import("../device/DeviceCommands").TypedResponseMessage<"RecoveryDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"WordRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"WordAck"> | import("../device/DeviceCommands").TypedResponseMessage<"SetU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"GetNextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"NextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"DoPreauthorized"> | import("../device/DeviceCommands").TypedResponseMessage<"PreauthorizedRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CancelAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinSeedOperate"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinOutMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceBackToBoot"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinLoadDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfoSettings"> | import("../device/DeviceCommands").TypedResponseMessage<"GetDeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"WriteSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashWrite"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashRead"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashData"> | import("../device/DeviceCommands").TypedResponseMessage<"SESignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SEMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"ZoomRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpdate"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteData"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBootloader"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBoardloader"> | import("../device/DeviceCommands").TypedResponseMessage<"ListResDir"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfoList"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceEraseSector"> | import("../device/DeviceCommands").TypedResponseMessage<"NearGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransactionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaic"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMProvisionNamespace"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicDefinition"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicCreation"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicSupplyChange"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMCosignatoryModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAggregateModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMImportanceTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptedMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RipplePayment"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarTxOpRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPaymentOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreateAccountOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageBuyOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSetOptionsOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarChangeTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAllowTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAccountMergeOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageDataOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarBumpSequenceOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosContractID"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosRevealOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosManagerTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosParametersManager"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosTransactionOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosOriginationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosDelegationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosProposalOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosBallotOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTransferContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTriggerSmartContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"TronMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"facotry">;
|
|
2
|
+
export declare function patchFeatures(response: DefaultMessageResponse): import("../device/DeviceCommands").TypedResponseMessage<"Address"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessagePayload"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinancePublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceInputOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTransferMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceOrderMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCancelMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodeType"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodePathType"> | import("../device/DeviceCommands").TypedResponseMessage<"MultisigRedeemScriptType"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"GetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"SignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"MessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"VerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestDetailsType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestSerializedType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"TxInputType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputBinType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputType"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevTx"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevMeta"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraData"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"AuthorizeCoinJoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BIP32Address"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"SelfTest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase_ex"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoBlockchainPointerType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScript"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddressParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxInit"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAssetGroup"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoToken"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInlineDatumChunk"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxReferenceScriptChunk"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolOwner"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolRelayParameters"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolMetadataType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCertificate"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWithdrawal"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGovernanceRegistrationDelegation"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGovernanceRegistrationParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryData"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxMint"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCollateralInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxRequiredSigner"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxReferenceInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxItemAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessResponse"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxHostAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxBodyHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxFinished"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"Success"> | import("../device/DeviceCommands").TypedResponseMessage<"Failure"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseAck"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinPinInputOnDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessageCIP23"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CipherKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"CipheredKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"IdentityType"> | import("../device/DeviceCommands").TypedResponseMessage<"SignIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"SignedIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"GetECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"ECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"Path"> | import("../device/DeviceCommands").TypedResponseMessage<"BatchGetPublickeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EcdsaPublicKeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxHeader"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPermissionLevel"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationWait"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUndelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionRefund"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRamBytes"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionSellRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionVoteProducer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUpdateAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDeleteAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionLinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnlinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionNewAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnknown"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedData"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumFieldType"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumStructMember"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAccessList"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTxEIP1559"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessageEIP712"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedHash"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"FilecoinGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"FilecoinAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"FilecoinSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"FilecoinSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"Initialize"> | import("../device/DeviceCommands").TypedResponseMessage<"GetFeatures"> | import("../device/DeviceCommands").TypedResponseMessage<"Features"> | import("../device/DeviceCommands").TypedResponseMessage<"LockDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EndSession"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplySettings"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplyFlags"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangePin"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangeWipeCode"> | import("../device/DeviceCommands").TypedResponseMessage<"SdProtect"> | import("../device/DeviceCommands").TypedResponseMessage<"Ping"> | import("../device/DeviceCommands").TypedResponseMessage<"Cancel"> | import("../device/DeviceCommands").TypedResponseMessage<"GetEntropy"> | import("../device/DeviceCommands").TypedResponseMessage<"Entropy"> | import("../device/DeviceCommands").TypedResponseMessage<"WipeDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ResetDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyAck"> | import("../device/DeviceCommands").TypedResponseMessage<"RecoveryDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"WordRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"WordAck"> | import("../device/DeviceCommands").TypedResponseMessage<"SetU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"GetNextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"NextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"DoPreauthorized"> | import("../device/DeviceCommands").TypedResponseMessage<"PreauthorizedRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CancelAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinSeedOperate"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinOutMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceBackToBoot"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinLoadDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfoSettings"> | import("../device/DeviceCommands").TypedResponseMessage<"GetDeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"WriteSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashWrite"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashRead"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashData"> | import("../device/DeviceCommands").TypedResponseMessage<"SESignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SEMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"ZoomRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpdate"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteData"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBootloader"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBoardloader"> | import("../device/DeviceCommands").TypedResponseMessage<"ListResDir"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfoList"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceEraseSector"> | import("../device/DeviceCommands").TypedResponseMessage<"NearGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransactionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaic"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMProvisionNamespace"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicDefinition"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicCreation"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicSupplyChange"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMCosignatoryModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAggregateModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMImportanceTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptedMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"PolkadotGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"PolkadotAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"PolkadotSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"PolkadotSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RipplePayment"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarTxOpRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPaymentOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreateAccountOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageBuyOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSetOptionsOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarChangeTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAllowTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAccountMergeOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageDataOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarBumpSequenceOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosContractID"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosRevealOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosManagerTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosParametersManager"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosTransactionOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosOriginationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosDelegationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosProposalOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosBallotOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTransferContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTriggerSmartContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"TronMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"facotry">;
|
|
3
3
|
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../src/utils/patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../src/utils/patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,sBAAsB,i41BAW7D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@onekeyfe/hd-shared": "^0.2.
|
|
28
|
-
"@onekeyfe/hd-transport": "^0.2.
|
|
27
|
+
"@onekeyfe/hd-shared": "^0.2.17",
|
|
28
|
+
"@onekeyfe/hd-transport": "^0.2.17",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"bignumber.js": "^9.0.2",
|
|
31
31
|
"jszip": "^3.10.1",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@types/semver": "^7.3.9",
|
|
43
43
|
"ripple-keypairs": "^1.1.4"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "d41357f21ad61f8ad3d245b3066766ca5c0bf1be"
|
|
46
46
|
}
|
|
@@ -27,7 +27,7 @@ type Params = {
|
|
|
27
27
|
|
|
28
28
|
const Log = getLogger(LoggerNames.Method);
|
|
29
29
|
|
|
30
|
-
export default class
|
|
30
|
+
export default class FirmwareUpdateV2 extends BaseMethod<Params> {
|
|
31
31
|
checkPromise: Deferred<any> | null = null;
|
|
32
32
|
|
|
33
33
|
init() {
|
|
@@ -41,6 +41,7 @@ export default class FirmwareUpdate extends BaseMethod<Params> {
|
|
|
41
41
|
{ name: 'version', type: 'array' },
|
|
42
42
|
{ name: 'binary', type: 'buffer' },
|
|
43
43
|
{ name: 'forcedUpdateRes', type: 'boolean' },
|
|
44
|
+
{ name: 'platform', type: 'string', required: true },
|
|
44
45
|
]);
|
|
45
46
|
|
|
46
47
|
if (!payload.updateType) {
|
|
@@ -143,13 +144,35 @@ export default class FirmwareUpdate extends BaseMethod<Params> {
|
|
|
143
144
|
return isTouchMode && semver.gte(currentVersion, '3.2.0');
|
|
144
145
|
}
|
|
145
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Check the version number of Touch to determine if it
|
|
149
|
+
* needs to be upgraded via the desktop
|
|
150
|
+
*/
|
|
151
|
+
checkVersionForCopyTouchResource(features?: Features) {
|
|
152
|
+
const deviceType = getDeviceType(features);
|
|
153
|
+
const currentVersion = getDeviceFirmwareVersion(features).join('.');
|
|
154
|
+
const targetVersion = this.params.version?.join('.');
|
|
155
|
+
const { updateType } = this.params;
|
|
156
|
+
if (deviceType === 'touch' && updateType === 'firmware' && targetVersion) {
|
|
157
|
+
if (
|
|
158
|
+
semver.lt(currentVersion, '3.5.0') &&
|
|
159
|
+
semver.gte(targetVersion, '3.5.0') &&
|
|
160
|
+
this.payload.platform !== 'desktop'
|
|
161
|
+
) {
|
|
162
|
+
throw ERRORS.TypedError(HardwareErrorCode.UseDesktopToUpdateFirmware);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
146
167
|
async run() {
|
|
147
168
|
const { device, params } = this;
|
|
148
169
|
const { features, commands } = device;
|
|
170
|
+
const deviceType = getDeviceType(features);
|
|
171
|
+
|
|
172
|
+
this.checkVersionForCopyTouchResource(features);
|
|
149
173
|
|
|
150
174
|
if (!features?.bootloader_mode && features) {
|
|
151
175
|
const uuid = getDeviceUUID(features);
|
|
152
|
-
const deviceType = getDeviceType(features);
|
|
153
176
|
// should go to bootloader mode manually
|
|
154
177
|
if (this.isEnteredManuallyBoot(features)) {
|
|
155
178
|
return Promise.reject(ERRORS.TypedError(HardwareErrorCode.FirmwareUpdateManuallyEnterBoot));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseMethod } from '../BaseMethod';
|
|
2
|
+
import type { RebootToBoardloaderParams } from '../../types/api/deviceRebootToBoardloader';
|
|
3
|
+
|
|
4
|
+
// Reboot BoardLoader
|
|
5
|
+
export default class DeviceRebootToBoardloader extends BaseMethod<RebootToBoardloaderParams> {
|
|
6
|
+
init() {
|
|
7
|
+
this.useDevicePassphraseState = false;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
getVersionRange() {
|
|
11
|
+
return {
|
|
12
|
+
classic: {
|
|
13
|
+
min: '2.1.11',
|
|
14
|
+
},
|
|
15
|
+
mini: {
|
|
16
|
+
min: '2.1.11',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async run() {
|
|
22
|
+
// On Touch devices, messsage code 904 is RebootToBoardloader
|
|
23
|
+
// so BininOutMessageSE message code 904 is used here
|
|
24
|
+
const res = await this.device.commands.typedCall('BixinOutMessageSE', 'Success');
|
|
25
|
+
|
|
26
|
+
return Promise.resolve(res.message);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FilecoinGetAddress as HardwareFilecoinGetAddress } from '@onekeyfe/hd-transport';
|
|
2
|
+
import { UI_REQUEST } from '../../constants/ui-request';
|
|
3
|
+
import { serializedPath, validatePath } from '../helpers/pathUtils';
|
|
4
|
+
import { BaseMethod } from '../BaseMethod';
|
|
5
|
+
import { validateParams } from '../helpers/paramsValidator';
|
|
6
|
+
import { FilecoinAddress, FilecoinGetAddressParams } from '../../types';
|
|
7
|
+
|
|
8
|
+
export default class FilecoinGetAddress extends BaseMethod<HardwareFilecoinGetAddress[]> {
|
|
9
|
+
hasBundle = false;
|
|
10
|
+
|
|
11
|
+
init() {
|
|
12
|
+
this.checkDeviceId = true;
|
|
13
|
+
this.allowDeviceMode = [...this.allowDeviceMode, UI_REQUEST.INITIALIZE];
|
|
14
|
+
|
|
15
|
+
this.hasBundle = !!this.payload?.bundle;
|
|
16
|
+
const payload = this.hasBundle ? this.payload : { bundle: [this.payload] };
|
|
17
|
+
|
|
18
|
+
// check payload
|
|
19
|
+
validateParams(payload, [{ name: 'bundle', type: 'array' }]);
|
|
20
|
+
|
|
21
|
+
// init params
|
|
22
|
+
this.params = [];
|
|
23
|
+
payload.bundle.forEach((batch: FilecoinGetAddressParams) => {
|
|
24
|
+
const addressN = validatePath(batch.path, 3);
|
|
25
|
+
|
|
26
|
+
validateParams(batch, [
|
|
27
|
+
{ name: 'path', required: true },
|
|
28
|
+
{ name: 'showOnOneKey', type: 'boolean' },
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
const showOnOneKey = batch.showOnOneKey ?? true;
|
|
32
|
+
|
|
33
|
+
this.params.push({
|
|
34
|
+
address_n: addressN,
|
|
35
|
+
show_display: showOnOneKey,
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
getVersionRange() {
|
|
41
|
+
return {
|
|
42
|
+
model_mini: {
|
|
43
|
+
min: '2.10.0',
|
|
44
|
+
},
|
|
45
|
+
model_touch: {
|
|
46
|
+
min: '3.5.0',
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async run() {
|
|
52
|
+
const responses: FilecoinAddress[] = [];
|
|
53
|
+
|
|
54
|
+
for (let i = 0; i < this.params.length; i++) {
|
|
55
|
+
const param = this.params[i];
|
|
56
|
+
|
|
57
|
+
const res = await this.device.commands.typedCall('FilecoinGetAddress', 'FilecoinAddress', {
|
|
58
|
+
...param,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const { address } = res.message;
|
|
62
|
+
|
|
63
|
+
responses.push({
|
|
64
|
+
path: serializedPath(param.address_n),
|
|
65
|
+
address,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return Promise.resolve(this.hasBundle ? responses : responses[0]);
|
|
70
|
+
}
|
|
71
|
+
}
|