@onekeyfe/hd-core 0.1.41 → 0.1.44
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/BaseMethod.d.ts.map +1 -1
- package/dist/api/aptos/AptosGetAddress.d.ts +9 -0
- package/dist/api/aptos/AptosGetAddress.d.ts.map +1 -0
- package/dist/api/aptos/AptosSignTransaction.d.ts +12 -0
- package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxGetAddress.d.ts +14 -0
- package/dist/api/conflux/ConfluxGetAddress.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxSignMessage.d.ts +12 -0
- package/dist/api/conflux/ConfluxSignMessage.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts +12 -0
- package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxSignTransaction.d.ts +17 -0
- package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -0
- package/dist/api/helpers/stringUtils.d.ts +1 -0
- package/dist/api/helpers/stringUtils.d.ts.map +1 -1
- package/dist/api/index.d.ts +21 -10
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/near/NearGetAddress.d.ts +14 -0
- package/dist/api/near/NearGetAddress.d.ts.map +1 -0
- package/dist/api/near/NearSignTransaction.d.ts +12 -0
- package/dist/api/near/NearSignTransaction.d.ts.map +1 -0
- package/dist/api/solana/SolGetAddress.d.ts.map +1 -1
- package/dist/api/solana/SolSignTransaction.d.ts.map +1 -1
- package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -1
- package/dist/api/tron/TronGetAddress.d.ts +14 -0
- package/dist/api/tron/TronGetAddress.d.ts.map +1 -0
- package/dist/api/tron/TronSignMessage.d.ts +12 -0
- package/dist/api/tron/TronSignMessage.d.ts.map +1 -0
- package/dist/api/tron/TronSignTransaction.d.ts +14 -0
- package/dist/api/tron/TronSignTransaction.d.ts.map +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/device/DeviceCommands.d.ts +1 -1
- package/dist/device/DeviceCommands.d.ts.map +1 -1
- package/dist/index.d.ts +347 -199
- package/dist/index.js +1579 -594
- package/dist/inject.d.ts.map +1 -1
- package/dist/types/api/aptosGetAddress.d.ts +14 -0
- package/dist/types/api/aptosGetAddress.d.ts.map +1 -0
- package/dist/types/api/aptosSignTransaction.d.ts +11 -0
- package/dist/types/api/aptosSignTransaction.d.ts.map +1 -0
- package/dist/types/api/confluxGetAddress.d.ts +15 -0
- package/dist/types/api/confluxGetAddress.d.ts.map +1 -0
- package/dist/types/api/confluxSignMessage.d.ts +8 -0
- package/dist/types/api/confluxSignMessage.d.ts.map +1 -0
- package/dist/types/api/confluxSignMessageCIP23.d.ts +9 -0
- package/dist/types/api/confluxSignMessageCIP23.d.ts.map +1 -0
- package/dist/types/api/confluxSignTransaction.d.ts +25 -0
- package/dist/types/api/confluxSignTransaction.d.ts.map +1 -0
- package/dist/types/api/deviceVerify.d.ts +2 -3
- package/dist/types/api/deviceVerify.d.ts.map +1 -1
- package/dist/types/api/export.d.ts +11 -0
- package/dist/types/api/export.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +49 -27
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/nearGetAddress.d.ts +14 -0
- package/dist/types/api/nearGetAddress.d.ts.map +1 -0
- package/dist/types/api/nearSignTransaction.d.ts +8 -0
- package/dist/types/api/nearSignTransaction.d.ts.map +1 -0
- package/dist/types/api/tronGetAddress.d.ts +14 -0
- package/dist/types/api/tronGetAddress.d.ts.map +1 -0
- package/dist/types/api/tronSignMessage.d.ts +8 -0
- package/dist/types/api/tronSignMessage.d.ts.map +1 -0
- package/dist/types/api/tronSignTransaction.d.ts +32 -0
- package/dist/types/api/tronSignTransaction.d.ts.map +1 -0
- 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/BaseMethod.ts +5 -2
- package/src/api/aptos/AptosGetAddress.ts +60 -0
- package/src/api/aptos/AptosSignTransaction.ts +45 -0
- package/src/api/conflux/ConfluxGetAddress.ts +67 -0
- package/src/api/conflux/ConfluxSignMessage.ts +48 -0
- package/src/api/conflux/ConfluxSignMessageCIP23.ts +48 -0
- package/src/api/conflux/ConfluxSignTransaction.ts +134 -0
- package/src/api/helpers/stringUtils.ts +3 -0
- package/src/api/index.ts +26 -10
- package/src/api/near/NearGetAddress.ts +68 -0
- package/src/api/near/NearSignTransaction.ts +45 -0
- package/src/api/solana/SolGetAddress.ts +0 -2
- package/src/api/solana/SolSignTransaction.ts +0 -2
- package/src/api/stellar/StellarSignTransaction.ts +14 -7
- package/src/api/tron/TronGetAddress.ts +68 -0
- package/src/api/tron/TronSignMessage.ts +48 -0
- package/src/api/tron/TronSignTransaction.ts +87 -0
- package/src/core/index.ts +15 -2
- package/src/data/messages/messages.json +8887 -8433
- package/src/device/DeviceCommands.ts +6 -7
- package/src/inject.ts +26 -0
- package/src/types/api/aptosGetAddress.ts +23 -0
- package/src/types/api/aptosSignTransaction.ts +17 -0
- package/src/types/api/confluxGetAddress.ts +24 -0
- package/src/types/api/confluxSignMessage.ts +13 -0
- package/src/types/api/confluxSignMessageCIP23.ts +14 -0
- package/src/types/api/confluxSignTransaction.ts +32 -0
- package/src/types/api/deviceVerify.ts +2 -2
- package/src/types/api/export.ts +25 -0
- package/src/types/api/index.ts +101 -35
- package/src/types/api/nearGetAddress.ts +23 -0
- package/src/types/api/nearSignTransaction.ts +13 -0
- package/src/types/api/tronGetAddress.ts +23 -0
- package/src/types/api/tronSignMessage.ts +13 -0
- package/src/types/api/tronSignTransaction.ts +41 -0
- package/src/utils/deviceFeaturesUtils.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
|
|
2
2
|
import * as _onekeyfe_hd_transport from '@onekeyfe/hd-transport';
|
|
3
|
-
import { Messages,
|
|
3
|
+
import { Messages, Success as Success$1, RecoveryDeviceType, SafetyCheckLevel, CipheredKeyValue as CipheredKeyValue$1, EthereumPublicKey, EthereumMessageSignature, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, 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, StellarAddress as StellarAddress$1, StellarSignedTx, TronAddress as TronAddress$1, UintType, TronSignedTx, TronMessageSignature, ConfluxAddress as ConfluxAddress$1, ConfluxMessageSignature, NearAddress as NearAddress$1, NearSignedTx, AptosAddress as AptosAddress$1, AptosSignedTx as AptosSignedTx$1, OneKeyDeviceInfo, Transport } from '@onekeyfe/hd-transport';
|
|
4
4
|
export { Messages as PROTO } from '@onekeyfe/hd-transport';
|
|
5
5
|
import { Deferred } from '@onekeyfe/hd-shared';
|
|
6
6
|
|
|
@@ -32,71 +32,9 @@ declare const on: <T extends string, P extends (...args: any[]) => any>(type: T,
|
|
|
32
32
|
declare const off: (type: any, fn: any) => void;
|
|
33
33
|
declare const removeAllListeners: (type: any) => void;
|
|
34
34
|
|
|
35
|
-
declare
|
|
35
|
+
declare function uiResponse(response: UiResponseEvent): void;
|
|
36
36
|
|
|
37
|
-
declare
|
|
38
|
-
connectSrc?: string;
|
|
39
|
-
debug?: boolean;
|
|
40
|
-
transportReconnect?: boolean;
|
|
41
|
-
lazyLoad?: boolean;
|
|
42
|
-
origin?: string;
|
|
43
|
-
parentOrigin?: string;
|
|
44
|
-
configSrc: string;
|
|
45
|
-
iframeSrc: string;
|
|
46
|
-
version: string;
|
|
47
|
-
priority: number;
|
|
48
|
-
trustedHost: boolean;
|
|
49
|
-
supportedBrowser?: boolean;
|
|
50
|
-
env: 'node' | 'web' | 'webextension' | 'electron' | 'react-native' | 'webusb';
|
|
51
|
-
timestamp: number;
|
|
52
|
-
isFrame?: boolean;
|
|
53
|
-
};
|
|
54
|
-
declare type IVersionArray = [number, number, number];
|
|
55
|
-
declare type ILocale = 'zh-CN' | 'en-US';
|
|
56
|
-
declare type IFirmwareReleaseInfo = {
|
|
57
|
-
required: boolean;
|
|
58
|
-
url: string;
|
|
59
|
-
fingerprint: string;
|
|
60
|
-
version: IVersionArray;
|
|
61
|
-
changelog: {
|
|
62
|
-
[k in ILocale]: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
declare type IBLEFirmwareReleaseInfo = {
|
|
66
|
-
required: boolean;
|
|
67
|
-
url: string;
|
|
68
|
-
webUpdate: string;
|
|
69
|
-
fingerprint: string;
|
|
70
|
-
fingerprintWeb: string;
|
|
71
|
-
version: IVersionArray;
|
|
72
|
-
changelog: {
|
|
73
|
-
[k in ILocale]: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
declare type DeviceTypeMap = {
|
|
77
|
-
[k in IDeviceType]: {
|
|
78
|
-
firmware: IFirmwareReleaseInfo[];
|
|
79
|
-
ble: IBLEFirmwareReleaseInfo[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
declare type AssetsMap = {
|
|
83
|
-
bridge: {
|
|
84
|
-
version: IVersionArray;
|
|
85
|
-
linux32Rpm: string;
|
|
86
|
-
linux64Rpm: string;
|
|
87
|
-
linux32Deb: string;
|
|
88
|
-
linux64Deb: string;
|
|
89
|
-
win: string;
|
|
90
|
-
mac: string;
|
|
91
|
-
sha256sumAsc: string;
|
|
92
|
-
changelog: {
|
|
93
|
-
[k in ILocale]: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
declare type RemoteConfigResponse = {
|
|
98
|
-
bridge: AssetsMap['bridge'];
|
|
99
|
-
} & DeviceTypeMap;
|
|
37
|
+
declare const safeThrowError: (error: any) => never;
|
|
100
38
|
|
|
101
39
|
declare type DeviceStatus = 'available' | 'occupied' | 'used';
|
|
102
40
|
declare type DeviceMode = 'normal' | 'bootloader' | 'initialize' | 'seedless';
|
|
@@ -184,31 +122,73 @@ declare type SupportFeatures = {
|
|
|
184
122
|
inputPinOnSoftware: SupportFeatureType;
|
|
185
123
|
};
|
|
186
124
|
|
|
187
|
-
declare
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
125
|
+
declare type ConnectSettings = {
|
|
126
|
+
connectSrc?: string;
|
|
127
|
+
debug?: boolean;
|
|
128
|
+
transportReconnect?: boolean;
|
|
129
|
+
lazyLoad?: boolean;
|
|
130
|
+
origin?: string;
|
|
131
|
+
parentOrigin?: string;
|
|
132
|
+
configSrc: string;
|
|
133
|
+
iframeSrc: string;
|
|
134
|
+
version: string;
|
|
135
|
+
priority: number;
|
|
136
|
+
trustedHost: boolean;
|
|
137
|
+
supportedBrowser?: boolean;
|
|
138
|
+
env: 'node' | 'web' | 'webextension' | 'electron' | 'react-native' | 'webusb';
|
|
139
|
+
timestamp: number;
|
|
140
|
+
isFrame?: boolean;
|
|
141
|
+
};
|
|
142
|
+
declare type IVersionArray = [number, number, number];
|
|
143
|
+
declare type ILocale = 'zh-CN' | 'en-US';
|
|
144
|
+
declare type IFirmwareReleaseInfo = {
|
|
145
|
+
required: boolean;
|
|
146
|
+
url: string;
|
|
147
|
+
fingerprint: string;
|
|
148
|
+
version: IVersionArray;
|
|
193
149
|
changelog: {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
150
|
+
[k in ILocale]: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
declare type IBLEFirmwareReleaseInfo = {
|
|
154
|
+
required: boolean;
|
|
155
|
+
url: string;
|
|
156
|
+
webUpdate: string;
|
|
157
|
+
fingerprint: string;
|
|
158
|
+
fingerprintWeb: string;
|
|
159
|
+
version: IVersionArray;
|
|
160
|
+
changelog: {
|
|
161
|
+
[k in ILocale]: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
declare type DeviceTypeMap = {
|
|
165
|
+
[k in IDeviceType]: {
|
|
166
|
+
firmware: IFirmwareReleaseInfo[];
|
|
167
|
+
ble: IBLEFirmwareReleaseInfo[];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
declare type AssetsMap = {
|
|
171
|
+
bridge: {
|
|
172
|
+
version: IVersionArray;
|
|
173
|
+
linux32Rpm: string;
|
|
174
|
+
linux64Rpm: string;
|
|
175
|
+
linux32Deb: string;
|
|
176
|
+
linux64Deb: string;
|
|
177
|
+
win: string;
|
|
178
|
+
mac: string;
|
|
179
|
+
sha256sumAsc: string;
|
|
180
|
+
changelog: {
|
|
181
|
+
[k in ILocale]: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
198
184
|
};
|
|
199
|
-
declare
|
|
185
|
+
declare type RemoteConfigResponse = {
|
|
186
|
+
bridge: AssetsMap['bridge'];
|
|
187
|
+
} & DeviceTypeMap;
|
|
200
188
|
|
|
201
189
|
declare function init$1(settings: Partial<ConnectSettings>): Promise<boolean>;
|
|
202
190
|
|
|
203
|
-
declare
|
|
204
|
-
status: IDeviceBLEFirmwareStatus;
|
|
205
|
-
changelog: {
|
|
206
|
-
'zh-CN': string;
|
|
207
|
-
'en-US': string;
|
|
208
|
-
}[];
|
|
209
|
-
release: IBLEFirmwareReleaseInfo;
|
|
210
|
-
};
|
|
211
|
-
declare function checkBLEFirmwareRelease(connectId?: string): Response<BleFirmwareRelease>;
|
|
191
|
+
declare function getLogs(): Response<string[]>;
|
|
212
192
|
|
|
213
193
|
interface FirmwareRange {
|
|
214
194
|
'1': {
|
|
@@ -222,7 +202,7 @@ interface FirmwareRange {
|
|
|
222
202
|
}
|
|
223
203
|
declare type MajorVersion = 1 | 2;
|
|
224
204
|
declare type VersionArray = [MajorVersion, number, number];
|
|
225
|
-
declare type FirmwareRelease = {
|
|
205
|
+
declare type FirmwareRelease$1 = {
|
|
226
206
|
required: boolean;
|
|
227
207
|
url: string;
|
|
228
208
|
fingerprint: string;
|
|
@@ -239,10 +219,10 @@ declare type FirmwareRelease = {
|
|
|
239
219
|
channel?: string;
|
|
240
220
|
};
|
|
241
221
|
declare type ReleaseInfo = {
|
|
242
|
-
changelog: FirmwareRelease[] | null;
|
|
243
|
-
release: FirmwareRelease;
|
|
222
|
+
changelog: FirmwareRelease$1[] | null;
|
|
223
|
+
release: FirmwareRelease$1;
|
|
244
224
|
isLatest: boolean;
|
|
245
|
-
latest: FirmwareRelease;
|
|
225
|
+
latest: FirmwareRelease$1;
|
|
246
226
|
isRequired: boolean | null;
|
|
247
227
|
isNewer: boolean | null;
|
|
248
228
|
};
|
|
@@ -252,6 +232,137 @@ declare function checkTransportRelease(): Response<TransportReleaseStatus>;
|
|
|
252
232
|
|
|
253
233
|
declare function checkBridgeStatus(): Response<boolean>;
|
|
254
234
|
|
|
235
|
+
declare function searchDevices(): Response<SearchDevice[]>;
|
|
236
|
+
|
|
237
|
+
declare function getFeatures(connectId?: string): Response<Features>;
|
|
238
|
+
|
|
239
|
+
declare function getPassphraseState(connectId?: string, params?: CommonParams): Response<string>;
|
|
240
|
+
|
|
241
|
+
declare type FirmwareRelease = {
|
|
242
|
+
status: IDeviceFirmwareStatus;
|
|
243
|
+
changelog: {
|
|
244
|
+
'en-US': string;
|
|
245
|
+
'zh-CN': string;
|
|
246
|
+
}[];
|
|
247
|
+
release: IFirmwareReleaseInfo;
|
|
248
|
+
};
|
|
249
|
+
declare function checkFirmwareRelease(connectId?: string): Response<FirmwareRelease>;
|
|
250
|
+
|
|
251
|
+
declare type BleFirmwareRelease = {
|
|
252
|
+
status: IDeviceBLEFirmwareStatus;
|
|
253
|
+
changelog: {
|
|
254
|
+
'zh-CN': string;
|
|
255
|
+
'en-US': string;
|
|
256
|
+
}[];
|
|
257
|
+
release: IBLEFirmwareReleaseInfo;
|
|
258
|
+
};
|
|
259
|
+
declare function checkBLEFirmwareRelease(connectId?: string): Response<BleFirmwareRelease>;
|
|
260
|
+
|
|
261
|
+
interface FirmwareUpdateBinary {
|
|
262
|
+
binary: ArrayBuffer;
|
|
263
|
+
}
|
|
264
|
+
interface FirmwareUpdate {
|
|
265
|
+
version: number[];
|
|
266
|
+
btcOnly?: boolean;
|
|
267
|
+
updateType: 'firmware' | 'ble';
|
|
268
|
+
}
|
|
269
|
+
declare function firmwareUpdate(connectId: string | undefined, params: Params<FirmwareUpdate>): Response<Messages.Success>;
|
|
270
|
+
declare function firmwareUpdate(connectId: string | undefined, params: Params<FirmwareUpdateBinary>): Response<Messages.Success>;
|
|
271
|
+
|
|
272
|
+
declare function requestWebUsbDevice(): Response<{
|
|
273
|
+
device: KnownDevice;
|
|
274
|
+
}>;
|
|
275
|
+
|
|
276
|
+
declare type DeviceResetParams = {
|
|
277
|
+
displayRandom?: boolean;
|
|
278
|
+
strength?: number;
|
|
279
|
+
passphraseProtection?: boolean;
|
|
280
|
+
pinProtection?: boolean;
|
|
281
|
+
language?: string;
|
|
282
|
+
label?: string;
|
|
283
|
+
u2fCounter?: number;
|
|
284
|
+
skipBackup?: boolean;
|
|
285
|
+
noBackup?: boolean;
|
|
286
|
+
backupType?: string | number;
|
|
287
|
+
};
|
|
288
|
+
declare function deviceReset(connectId: string, params: CommonParams & DeviceResetParams): Response<Success$1>;
|
|
289
|
+
|
|
290
|
+
declare type DeviceRecoveryParams = {
|
|
291
|
+
wordCount?: number;
|
|
292
|
+
passphraseProtection?: boolean;
|
|
293
|
+
pinProtection?: boolean;
|
|
294
|
+
language?: string;
|
|
295
|
+
label?: string;
|
|
296
|
+
enforceWordlist?: boolean;
|
|
297
|
+
type?: RecoveryDeviceType;
|
|
298
|
+
u2fCounter?: number;
|
|
299
|
+
dryRun?: boolean;
|
|
300
|
+
};
|
|
301
|
+
declare function deviceRecovery(connectId: string, params: CommonParams & DeviceRecoveryParams): Response<Success$1>;
|
|
302
|
+
|
|
303
|
+
declare type DeviceVerifyParams = {
|
|
304
|
+
dataHex: string;
|
|
305
|
+
};
|
|
306
|
+
declare type DeviceVerifySignature = {
|
|
307
|
+
cert: string;
|
|
308
|
+
signature: string;
|
|
309
|
+
};
|
|
310
|
+
declare function deviceVerify(connectId: string, params: CommonParams & DeviceVerifyParams): Response<DeviceVerifySignature>;
|
|
311
|
+
|
|
312
|
+
declare function deviceWipe(connectId: string): Response<Success$1>;
|
|
313
|
+
|
|
314
|
+
declare function deviceRebootToBootloader(connectId: string): Response<Success$1>;
|
|
315
|
+
|
|
316
|
+
declare function deviceBackup(connectId: string): Response<Success$1>;
|
|
317
|
+
|
|
318
|
+
declare type DeviceChangePinParams = {
|
|
319
|
+
remove?: boolean;
|
|
320
|
+
};
|
|
321
|
+
declare function deviceChangePin(connectId: string, params: CommonParams & DeviceChangePinParams): Response<Success$1>;
|
|
322
|
+
|
|
323
|
+
declare type DeviceSettingsParams = {
|
|
324
|
+
language?: string;
|
|
325
|
+
label?: string;
|
|
326
|
+
usePassphrase?: boolean;
|
|
327
|
+
homescreen?: string;
|
|
328
|
+
passphraseSource?: number;
|
|
329
|
+
autoLockDelayMs?: number;
|
|
330
|
+
displayRotation?: number;
|
|
331
|
+
passphraseAlwaysOnDevice?: boolean;
|
|
332
|
+
safetyChecks?: SafetyCheckLevel;
|
|
333
|
+
experimentalFeatures?: boolean;
|
|
334
|
+
};
|
|
335
|
+
declare function deviceSettings(connectId: string, params: CommonParams & DeviceSettingsParams): Response<Success$1>;
|
|
336
|
+
|
|
337
|
+
declare type DeviceFlagsParams = {
|
|
338
|
+
flags?: number;
|
|
339
|
+
};
|
|
340
|
+
declare function deviceFlags(connectId: string, params: CommonParams & DeviceFlagsParams): Response<Success$1>;
|
|
341
|
+
|
|
342
|
+
declare function deviceUpdateReboot(connectId: string): Response<Success$1>;
|
|
343
|
+
|
|
344
|
+
declare type DeviceSupportFeatures = SupportFeatures & {
|
|
345
|
+
device: Device$1 | null;
|
|
346
|
+
};
|
|
347
|
+
declare function deviceSupportFeatures(connectId?: string): Response<DeviceSupportFeatures>;
|
|
348
|
+
|
|
349
|
+
declare type CipheredKeyValue = {
|
|
350
|
+
path: string;
|
|
351
|
+
} & CipheredKeyValue$1;
|
|
352
|
+
declare type CipheredKeyValueParams = {
|
|
353
|
+
path: string | number[];
|
|
354
|
+
key: string;
|
|
355
|
+
value: string;
|
|
356
|
+
encrypt?: boolean;
|
|
357
|
+
askOnEncrypt?: boolean;
|
|
358
|
+
askOnDecrypt?: boolean;
|
|
359
|
+
iv?: string;
|
|
360
|
+
};
|
|
361
|
+
declare function cipherKeyValue(connectId: string, deviceId: string, params: CommonParams & CipheredKeyValueParams): Response<CipheredKeyValue>;
|
|
362
|
+
declare function cipherKeyValue(connectId: string, deviceId: string, params: CommonParams & {
|
|
363
|
+
bundle?: CipheredKeyValueParams[];
|
|
364
|
+
}): Response<Array<CipheredKeyValue>>;
|
|
365
|
+
|
|
255
366
|
declare type EVMAddress = {
|
|
256
367
|
path: string;
|
|
257
368
|
address: string;
|
|
@@ -483,76 +594,6 @@ declare type BTCVerifyMessageParams = {
|
|
|
483
594
|
};
|
|
484
595
|
declare function btcVerifyMessage(connectId: string, deviceId: string, params: CommonParams & BTCVerifyMessageParams): Response<Success$1>;
|
|
485
596
|
|
|
486
|
-
declare function uiResponse(response: UiResponseEvent): void;
|
|
487
|
-
|
|
488
|
-
declare type DeviceResetParams = {
|
|
489
|
-
displayRandom?: boolean;
|
|
490
|
-
strength?: number;
|
|
491
|
-
passphraseProtection?: boolean;
|
|
492
|
-
pinProtection?: boolean;
|
|
493
|
-
language?: string;
|
|
494
|
-
label?: string;
|
|
495
|
-
u2fCounter?: number;
|
|
496
|
-
skipBackup?: boolean;
|
|
497
|
-
noBackup?: boolean;
|
|
498
|
-
backupType?: string | number;
|
|
499
|
-
};
|
|
500
|
-
declare function deviceReset(connectId: string, params: CommonParams & DeviceResetParams): Response<Success$1>;
|
|
501
|
-
|
|
502
|
-
declare type DeviceRecoveryParams = {
|
|
503
|
-
wordCount?: number;
|
|
504
|
-
passphraseProtection?: boolean;
|
|
505
|
-
pinProtection?: boolean;
|
|
506
|
-
language?: string;
|
|
507
|
-
label?: string;
|
|
508
|
-
enforceWordlist?: boolean;
|
|
509
|
-
type?: RecoveryDeviceType;
|
|
510
|
-
u2fCounter?: number;
|
|
511
|
-
dryRun?: boolean;
|
|
512
|
-
};
|
|
513
|
-
declare function deviceRecovery(connectId: string, params: CommonParams & DeviceRecoveryParams): Response<Success$1>;
|
|
514
|
-
|
|
515
|
-
declare type DeviceVerifyParams = {
|
|
516
|
-
dataHex: string;
|
|
517
|
-
};
|
|
518
|
-
declare type DeviceVerifySignature = {
|
|
519
|
-
cert: Buffer;
|
|
520
|
-
signature: Buffer;
|
|
521
|
-
};
|
|
522
|
-
declare function deviceVerify(connectId: string, params: CommonParams & DeviceVerifyParams): Response<DeviceVerifySignature>;
|
|
523
|
-
|
|
524
|
-
declare function deviceWipe(connectId: string): Response<Success$1>;
|
|
525
|
-
|
|
526
|
-
declare function deviceRebootToBootloader(connectId: string): Response<Success$1>;
|
|
527
|
-
|
|
528
|
-
declare function deviceBackup(connectId: string): Response<Success$1>;
|
|
529
|
-
|
|
530
|
-
declare type DeviceChangePinParams = {
|
|
531
|
-
remove?: boolean;
|
|
532
|
-
};
|
|
533
|
-
declare function deviceChangePin(connectId: string, params: CommonParams & DeviceChangePinParams): Response<Success$1>;
|
|
534
|
-
|
|
535
|
-
declare type DeviceSettingsParams = {
|
|
536
|
-
language?: string;
|
|
537
|
-
label?: string;
|
|
538
|
-
usePassphrase?: boolean;
|
|
539
|
-
homescreen?: string;
|
|
540
|
-
passphraseSource?: number;
|
|
541
|
-
autoLockDelayMs?: number;
|
|
542
|
-
displayRotation?: number;
|
|
543
|
-
passphraseAlwaysOnDevice?: boolean;
|
|
544
|
-
safetyChecks?: SafetyCheckLevel;
|
|
545
|
-
experimentalFeatures?: boolean;
|
|
546
|
-
};
|
|
547
|
-
declare function deviceSettings(connectId: string, params: CommonParams & DeviceSettingsParams): Response<Success$1>;
|
|
548
|
-
|
|
549
|
-
declare type DeviceFlagsParams = {
|
|
550
|
-
flags?: number;
|
|
551
|
-
};
|
|
552
|
-
declare function deviceFlags(connectId: string, params: CommonParams & DeviceFlagsParams): Response<Success$1>;
|
|
553
|
-
|
|
554
|
-
declare function deviceUpdateReboot(connectId: string): Response<Success$1>;
|
|
555
|
-
|
|
556
597
|
declare type StarcoinAddress = {
|
|
557
598
|
path: string;
|
|
558
599
|
} & StarcoinAddress$1;
|
|
@@ -861,46 +902,142 @@ declare type StellarSignTransactionParams = {
|
|
|
861
902
|
};
|
|
862
903
|
declare function stellarSignTransaction(connectId: string, deviceId: string, params: CommonParams & StellarSignTransactionParams): Response<StellarSignedTx>;
|
|
863
904
|
|
|
864
|
-
declare type
|
|
905
|
+
declare type TronAddress = {
|
|
865
906
|
path: string;
|
|
866
|
-
} &
|
|
867
|
-
declare type
|
|
907
|
+
} & TronAddress$1;
|
|
908
|
+
declare type TronGetAddressParams = {
|
|
868
909
|
path: string | number[];
|
|
869
|
-
|
|
870
|
-
value: string;
|
|
871
|
-
encrypt?: boolean;
|
|
872
|
-
askOnEncrypt?: boolean;
|
|
873
|
-
askOnDecrypt?: boolean;
|
|
874
|
-
iv?: string;
|
|
910
|
+
showOnOneKey?: boolean;
|
|
875
911
|
};
|
|
876
|
-
declare function
|
|
877
|
-
declare function
|
|
878
|
-
bundle?:
|
|
879
|
-
}): Response<Array<
|
|
912
|
+
declare function tronGetAddress(connectId: string, deviceId: string, params: CommonParams & TronGetAddressParams): Response<TronAddress>;
|
|
913
|
+
declare function tronGetAddress(connectId: string, deviceId: string, params: CommonParams & {
|
|
914
|
+
bundle?: TronGetAddressParams[];
|
|
915
|
+
}): Response<Array<TronAddress>>;
|
|
880
916
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
917
|
+
declare type TronTransferContract = {
|
|
918
|
+
toAddress?: string;
|
|
919
|
+
amount?: UintType;
|
|
920
|
+
};
|
|
921
|
+
declare type TronTriggerSmartContract = {
|
|
922
|
+
contractAddress?: string;
|
|
923
|
+
callValue?: number;
|
|
924
|
+
data?: string;
|
|
925
|
+
callTokenValue?: number;
|
|
926
|
+
assetId?: number;
|
|
927
|
+
};
|
|
928
|
+
declare type TronTransactionContract = {
|
|
929
|
+
transferContract?: TronTransferContract;
|
|
930
|
+
triggerSmartContract?: TronTriggerSmartContract;
|
|
931
|
+
};
|
|
932
|
+
declare type TronTransaction = {
|
|
933
|
+
refBlockBytes: string;
|
|
934
|
+
refBlockHash: string;
|
|
935
|
+
expiration: number;
|
|
936
|
+
data?: string;
|
|
937
|
+
contract: TronTransactionContract;
|
|
938
|
+
timestamp: number;
|
|
939
|
+
feeLimit?: number;
|
|
940
|
+
};
|
|
941
|
+
declare type TronSignTransactionParams = {
|
|
942
|
+
path: string | number[];
|
|
943
|
+
transaction: TronTransaction;
|
|
944
|
+
};
|
|
945
|
+
declare function tronSignTransaction(connectId: string, deviceId: string, params: CommonParams & TronSignTransactionParams): Response<TronSignedTx>;
|
|
891
946
|
|
|
892
|
-
declare
|
|
947
|
+
declare type TronSignMessageParams = {
|
|
948
|
+
path: string | number[];
|
|
949
|
+
messageHex: string;
|
|
950
|
+
};
|
|
951
|
+
declare function tronSignMessage(connectId: string, deviceId: string, params: CommonParams & TronSignMessageParams): Response<TronMessageSignature>;
|
|
893
952
|
|
|
894
|
-
declare type
|
|
895
|
-
|
|
953
|
+
declare type ConfluxAddress = {
|
|
954
|
+
path: string;
|
|
955
|
+
} & ConfluxAddress$1;
|
|
956
|
+
declare type ConfluxGetAddressParams = {
|
|
957
|
+
path: string | number[];
|
|
958
|
+
chainId?: number;
|
|
959
|
+
showOnOneKey?: boolean;
|
|
896
960
|
};
|
|
897
|
-
declare function
|
|
961
|
+
declare function confluxGetAddress(connectId: string, deviceId: string, params: CommonParams & ConfluxGetAddressParams): Response<ConfluxAddress>;
|
|
962
|
+
declare function confluxGetAddress(connectId: string, deviceId: string, params: CommonParams & {
|
|
963
|
+
bundle?: ConfluxGetAddressParams[];
|
|
964
|
+
}): Response<Array<ConfluxAddress>>;
|
|
898
965
|
|
|
899
|
-
declare
|
|
900
|
-
|
|
901
|
-
|
|
966
|
+
declare type ConfluxSignMessageParams = {
|
|
967
|
+
path: string | number[];
|
|
968
|
+
messageHex: string;
|
|
969
|
+
};
|
|
970
|
+
declare function confluxSignMessage(connectId: string, deviceId: string, params: CommonParams & ConfluxSignMessageParams): Response<ConfluxMessageSignature>;
|
|
902
971
|
|
|
903
|
-
declare
|
|
972
|
+
declare type ConfluxSignMessageCIP23Params = {
|
|
973
|
+
path: string | number[];
|
|
974
|
+
domainHash: string;
|
|
975
|
+
messageHash: string;
|
|
976
|
+
};
|
|
977
|
+
declare function confluxSignMessageCIP23(connectId: string, deviceId: string, params: CommonParams & ConfluxSignMessageCIP23Params): Response<ConfluxMessageSignature>;
|
|
978
|
+
|
|
979
|
+
declare type ConfluxSignedTx = {
|
|
980
|
+
v: string;
|
|
981
|
+
r: string;
|
|
982
|
+
s: string;
|
|
983
|
+
};
|
|
984
|
+
declare type ConfluxTransaction = {
|
|
985
|
+
to: string;
|
|
986
|
+
value: string;
|
|
987
|
+
gasLimit: string;
|
|
988
|
+
gasPrice: string;
|
|
989
|
+
nonce: string;
|
|
990
|
+
epochHeight: string;
|
|
991
|
+
storageLimit: string;
|
|
992
|
+
chainId?: number;
|
|
993
|
+
data?: string;
|
|
994
|
+
data_initial_chunk?: string;
|
|
995
|
+
data_length?: string;
|
|
996
|
+
};
|
|
997
|
+
declare type ConfluxSignTransactionParams = {
|
|
998
|
+
path: string | number[];
|
|
999
|
+
transaction: ConfluxTransaction;
|
|
1000
|
+
};
|
|
1001
|
+
declare function confluxSignTransaction(connectId: string, deviceId: string, params: CommonParams & ConfluxTransaction): Response<ConfluxSignedTx>;
|
|
1002
|
+
|
|
1003
|
+
declare type NearAddress = {
|
|
1004
|
+
path: string;
|
|
1005
|
+
} & NearAddress$1;
|
|
1006
|
+
declare type NearGetAddressParams = {
|
|
1007
|
+
path: string | number[];
|
|
1008
|
+
showOnOneKey?: boolean;
|
|
1009
|
+
};
|
|
1010
|
+
declare function nearGetAddress(connectId: string, deviceId: string, params: CommonParams & NearGetAddressParams): Response<NearAddress>;
|
|
1011
|
+
declare function nearGetAddress(connectId: string, deviceId: string, params: CommonParams & {
|
|
1012
|
+
bundle?: NearGetAddressParams[];
|
|
1013
|
+
}): Response<Array<NearAddress>>;
|
|
1014
|
+
|
|
1015
|
+
declare type NearSignTransactionParams = {
|
|
1016
|
+
path: string | number[];
|
|
1017
|
+
rawTx: string;
|
|
1018
|
+
};
|
|
1019
|
+
declare function nearSignTransaction(connectId: string, deviceId: string, params: CommonParams & NearSignTransactionParams): Response<NearSignedTx>;
|
|
1020
|
+
|
|
1021
|
+
declare type AptosAddress = {
|
|
1022
|
+
path: string;
|
|
1023
|
+
} & AptosAddress$1;
|
|
1024
|
+
declare type AptosGetAddressParams = {
|
|
1025
|
+
path: string | number[];
|
|
1026
|
+
showOnOneKey?: boolean;
|
|
1027
|
+
};
|
|
1028
|
+
declare function aptosGetAddress(connectId: string, deviceId: string, params: CommonParams & AptosGetAddressParams): Response<AptosAddress>;
|
|
1029
|
+
declare function aptosGetAddress(connectId: string, deviceId: string, params: CommonParams & {
|
|
1030
|
+
bundle?: AptosGetAddressParams[];
|
|
1031
|
+
}): Response<Array<AptosAddress>>;
|
|
1032
|
+
|
|
1033
|
+
declare type AptosSignedTx = {
|
|
1034
|
+
path: string;
|
|
1035
|
+
} & AptosSignedTx$1;
|
|
1036
|
+
declare type AptosSignTransactionParams = {
|
|
1037
|
+
path: string | number[];
|
|
1038
|
+
rawTx?: string;
|
|
1039
|
+
};
|
|
1040
|
+
declare function aptosSignTransaction(connectId: string, deviceId: string, params: CommonParams & AptosSignTransactionParams): Response<AptosSignedTx>;
|
|
904
1041
|
|
|
905
1042
|
declare type CoreApi = {
|
|
906
1043
|
init: typeof init$1;
|
|
@@ -912,14 +1049,12 @@ declare type CoreApi = {
|
|
|
912
1049
|
uiResponse: typeof uiResponse;
|
|
913
1050
|
cancel: (connectId?: string) => void;
|
|
914
1051
|
getLogs: typeof getLogs;
|
|
1052
|
+
checkTransportRelease: typeof checkTransportRelease;
|
|
1053
|
+
checkBridgeStatus: typeof checkBridgeStatus;
|
|
915
1054
|
searchDevices: typeof searchDevices;
|
|
916
1055
|
requestWebUsbDevice: typeof requestWebUsbDevice;
|
|
917
1056
|
getFeatures: typeof getFeatures;
|
|
918
|
-
|
|
919
|
-
checkBLEFirmwareRelease: typeof checkBLEFirmwareRelease;
|
|
920
|
-
checkTransportRelease: typeof checkTransportRelease;
|
|
921
|
-
checkBridgeStatus: typeof checkBridgeStatus;
|
|
922
|
-
cipherKeyValue: typeof cipherKeyValue;
|
|
1057
|
+
getPassphraseState: typeof getPassphraseState;
|
|
923
1058
|
deviceBackup: typeof deviceBackup;
|
|
924
1059
|
deviceChangePin: typeof deviceChangePin;
|
|
925
1060
|
deviceFlags: typeof deviceFlags;
|
|
@@ -931,7 +1066,10 @@ declare type CoreApi = {
|
|
|
931
1066
|
deviceSupportFeatures: typeof deviceSupportFeatures;
|
|
932
1067
|
deviceVerify: typeof deviceVerify;
|
|
933
1068
|
deviceWipe: typeof deviceWipe;
|
|
934
|
-
|
|
1069
|
+
checkFirmwareRelease: typeof checkFirmwareRelease;
|
|
1070
|
+
checkBLEFirmwareRelease: typeof checkBLEFirmwareRelease;
|
|
1071
|
+
firmwareUpdate: typeof firmwareUpdate;
|
|
1072
|
+
cipherKeyValue: typeof cipherKeyValue;
|
|
935
1073
|
evmGetAddress: typeof evmGetAddress;
|
|
936
1074
|
evmGetPublicKey: typeof evmGetPublicKey;
|
|
937
1075
|
evmSignMessage: typeof evmSignMessage;
|
|
@@ -955,7 +1093,17 @@ declare type CoreApi = {
|
|
|
955
1093
|
solSignTransaction: typeof solSignTransaction;
|
|
956
1094
|
stellarGetAddress: typeof stellarGetAddress;
|
|
957
1095
|
stellarSignTransaction: typeof stellarSignTransaction;
|
|
958
|
-
|
|
1096
|
+
tronGetAddress: typeof tronGetAddress;
|
|
1097
|
+
tronSignMessage: typeof tronSignMessage;
|
|
1098
|
+
tronSignTransaction: typeof tronSignTransaction;
|
|
1099
|
+
confluxGetAddress: typeof confluxGetAddress;
|
|
1100
|
+
confluxSignMessage: typeof confluxSignMessage;
|
|
1101
|
+
confluxSignMessageCIP23: typeof confluxSignMessageCIP23;
|
|
1102
|
+
confluxSignTransaction: typeof confluxSignTransaction;
|
|
1103
|
+
nearGetAddress: typeof nearGetAddress;
|
|
1104
|
+
nearSignTransaction: typeof nearSignTransaction;
|
|
1105
|
+
aptosGetAddress: typeof aptosGetAddress;
|
|
1106
|
+
aptosSignTransaction: typeof aptosSignTransaction;
|
|
959
1107
|
};
|
|
960
1108
|
|
|
961
1109
|
declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
@@ -1384,7 +1532,7 @@ declare const normalizeVersionArray: (version: number[]) => number[];
|
|
|
1384
1532
|
declare const versionSplit: (version: string) => number[];
|
|
1385
1533
|
declare const versionCompare: (a: string | number[], b: string | number[]) => 0 | 1 | -1;
|
|
1386
1534
|
|
|
1387
|
-
declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"Address"> | TypedResponseMessage<"BinanceInputOutput"> | TypedResponseMessage<"BinanceCoin"> | TypedResponseMessage<"HDNodePathType"> | TypedResponseMessage<"HDNodeType"> | TypedResponseMessage<"MultisigRedeemScriptType"> | TypedResponseMessage<"TxRequestDetailsType"> | TypedResponseMessage<"TxRequestSerializedType"> | TypedResponseMessage<"TxInputType"> | TypedResponseMessage<"TxOutputBinType"> | TypedResponseMessage<"TxOutputType"> | TypedResponseMessage<"TxAckInputWrapper"> | TypedResponseMessage<"TxAckOutputWrapper"> | TypedResponseMessage<"PrevTx"> | TypedResponseMessage<"TxAckPrevInputWrapper"> | TypedResponseMessage<"PrevInput"> | TypedResponseMessage<"TxAckPrevOutputWrapper"> | TypedResponseMessage<"PrevOutput"> | TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | TypedResponseMessage<"CardanoNativeScript"> | TypedResponseMessage<"CardanoBlockchainPointerType"> | TypedResponseMessage<"CardanoAddressParametersType"> | TypedResponseMessage<"CardanoPoolOwner"> | TypedResponseMessage<"CardanoPoolRelayParameters"> | TypedResponseMessage<"CardanoPoolMetadataType"> | TypedResponseMessage<"CardanoPoolParametersType"> | TypedResponseMessage<"CardanoCatalystRegistrationParametersType"> | TypedResponseMessage<"CardanoTxInputType"> | TypedResponseMessage<"CardanoTxOutputType"> | TypedResponseMessage<"CardanoTxCertificateType"> | TypedResponseMessage<"CardanoTxWithdrawalType"> | TypedResponseMessage<"CardanoTxAuxiliaryDataType"> | TypedResponseMessage<"CardanoAssetGroupType"> | TypedResponseMessage<"CardanoTokenType"> | TypedResponseMessage<"IdentityType"> | TypedResponseMessage<"EosTxHeader"> | TypedResponseMessage<"EosActionCommon"> | TypedResponseMessage<"EosActionTransfer"> | TypedResponseMessage<"EosActionDelegate"> | TypedResponseMessage<"EosActionUndelegate"> | TypedResponseMessage<"EosActionRefund"> | TypedResponseMessage<"EosActionBuyRam"> | TypedResponseMessage<"EosActionBuyRamBytes"> | TypedResponseMessage<"EosActionSellRam"> | TypedResponseMessage<"EosActionVoteProducer"> | TypedResponseMessage<"EosActionUpdateAuth"> | TypedResponseMessage<"EosActionDeleteAuth"> | TypedResponseMessage<"EosActionLinkAuth"> | TypedResponseMessage<"EosActionUnlinkAuth"> | TypedResponseMessage<"EosActionNewAccount"> | TypedResponseMessage<"EosActionUnknown"> | TypedResponseMessage<"EosPermissionLevel"> | TypedResponseMessage<"EosAuthorizationKey"> | TypedResponseMessage<"EosAuthorizationAccount"> | TypedResponseMessage<"EosAuthorizationWait"> | TypedResponseMessage<"EosAsset"> | TypedResponseMessage<"EosAuthorization"> | TypedResponseMessage<"EthereumStructMember"> | TypedResponseMessage<"EthereumFieldType"> | TypedResponseMessage<"EthereumAccessList"> | TypedResponseMessage<"NEMTransactionCommon"> | TypedResponseMessage<"NEMTransfer"> | TypedResponseMessage<"NEMProvisionNamespace"> | TypedResponseMessage<"NEMMosaicCreation"> | TypedResponseMessage<"NEMMosaicSupplyChange"> | TypedResponseMessage<"NEMAggregateModification"> | TypedResponseMessage<"NEMImportanceTransfer"> | TypedResponseMessage<"NEMMosaic"> | TypedResponseMessage<"NEMMosaicDefinition"> | TypedResponseMessage<"NEMCosignatoryModification"> | TypedResponseMessage<"RipplePayment"> | TypedResponseMessage<"StellarAsset"> | TypedResponseMessage<"TezosRevealOp"> | TypedResponseMessage<"TezosTransactionOp"> | TypedResponseMessage<"TezosOriginationOp"> | TypedResponseMessage<"TezosDelegationOp"> | TypedResponseMessage<"TezosProposalOp"> | TypedResponseMessage<"TezosBallotOp"> | TypedResponseMessage<"TezosContractID"> | TypedResponseMessage<"TezosParametersManager"> | TypedResponseMessage<"TezosManagerTransfer"> | TypedResponseMessage<"BinanceGetAddress"> | TypedResponseMessage<"BinanceAddress"> | TypedResponseMessage<"BinanceGetPublicKey"> | TypedResponseMessage<"BinancePublicKey"> | TypedResponseMessage<"BinanceSignTx"> | TypedResponseMessage<"BinanceTxRequest"> | TypedResponseMessage<"BinanceTransferMsg"> | TypedResponseMessage<"BinanceOrderMsg"> | TypedResponseMessage<"BinanceCancelMsg"> | TypedResponseMessage<"BinanceSignedTx"> | TypedResponseMessage<"GetPublicKey"> | TypedResponseMessage<"PublicKey"> | TypedResponseMessage<"GetAddress"> | TypedResponseMessage<"GetOwnershipId"> | TypedResponseMessage<"OwnershipId"> | TypedResponseMessage<"SignMessage"> | TypedResponseMessage<"MessageSignature"> | TypedResponseMessage<"VerifyMessage"> | TypedResponseMessage<"SignTx"> | TypedResponseMessage<"TxRequest"> | TypedResponseMessage<"TextMemo"> | TypedResponseMessage<"RefundMemo"> | TypedResponseMessage<"CoinPurchaseMemo"> | TypedResponseMessage<"PaymentRequestMemo"> | TypedResponseMessage<"TxAckPaymentRequest"> | TypedResponseMessage<"TxAck"> | TypedResponseMessage<"TxAckInput"> | TypedResponseMessage<"TxAckOutput"> | TypedResponseMessage<"TxAckPrevMeta"> | TypedResponseMessage<"TxAckPrevInput"> | TypedResponseMessage<"TxAckPrevOutput"> | TypedResponseMessage<"TxAckPrevExtraData"> | TypedResponseMessage<"GetOwnershipProof"> | TypedResponseMessage<"OwnershipProof"> | TypedResponseMessage<"AuthorizeCoinJoin"> | TypedResponseMessage<"FirmwareErase"> | TypedResponseMessage<"FirmwareRequest"> | TypedResponseMessage<"FirmwareUpload"> | TypedResponseMessage<"SelfTest"> | TypedResponseMessage<"CardanoGetNativeScriptHash"> | TypedResponseMessage<"CardanoNativeScriptHash"> | TypedResponseMessage<"CardanoGetAddress"> | TypedResponseMessage<"CardanoAddress"> | TypedResponseMessage<"CardanoGetPublicKey"> | TypedResponseMessage<"CardanoPublicKey"> | TypedResponseMessage<"CardanoSignTxInit"> | TypedResponseMessage<"CardanoTxInput"> | TypedResponseMessage<"CardanoTxOutput"> | TypedResponseMessage<"CardanoAssetGroup"> | TypedResponseMessage<"CardanoToken"> | TypedResponseMessage<"CardanoTxCertificate"> | TypedResponseMessage<"CardanoTxWithdrawal"> | TypedResponseMessage<"CardanoTxAuxiliaryData"> | TypedResponseMessage<"CardanoTxMint"> | TypedResponseMessage<"CardanoTxCollateralInput"> | TypedResponseMessage<"CardanoTxRequiredSigner"> | TypedResponseMessage<"CardanoTxItemAck"> | TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | TypedResponseMessage<"CardanoTxWitnessRequest"> | TypedResponseMessage<"CardanoTxWitnessResponse"> | TypedResponseMessage<"CardanoTxHostAck"> | TypedResponseMessage<"CardanoTxBodyHash"> | TypedResponseMessage<"CardanoSignTxFinished"> | TypedResponseMessage<"CardanoPoolOwnerType"> | TypedResponseMessage<"CardanoPoolRelayParametersType"> | TypedResponseMessage<"CardanoSignTx"> | TypedResponseMessage<"CardanoSignedTxChunk"> | TypedResponseMessage<"CardanoSignedTxChunkAck"> | TypedResponseMessage<"CardanoSignedTx"> | TypedResponseMessage<"Success"> | TypedResponseMessage<"Failure"> | TypedResponseMessage<"ButtonRequest"> | TypedResponseMessage<"ButtonAck"> | TypedResponseMessage<"PinMatrixRequest"> | TypedResponseMessage<"PinMatrixAck"> | TypedResponseMessage<"PassphraseRequest"> | TypedResponseMessage<"PassphraseAck"> | TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | TypedResponseMessage<"Deprecated_PassphraseStateAck"> | TypedResponseMessage<"CipherKeyValue"> | TypedResponseMessage<"CipheredKeyValue"> | TypedResponseMessage<"SignIdentity"> | TypedResponseMessage<"SignedIdentity"> | TypedResponseMessage<"GetECDHSessionKey"> | TypedResponseMessage<"ECDHSessionKey"> | TypedResponseMessage<"EosGetPublicKey"> | TypedResponseMessage<"EosPublicKey"> | TypedResponseMessage<"EosSignTx"> | TypedResponseMessage<"EosTxActionRequest"> | TypedResponseMessage<"EosTxActionAck"> | TypedResponseMessage<"EosSignedTx"> | TypedResponseMessage<"EthereumSignTypedData"> | TypedResponseMessage<"EthereumTypedDataStructRequest"> | TypedResponseMessage<"EthereumTypedDataStructAck"> | TypedResponseMessage<"EthereumTypedDataValueRequest"> | TypedResponseMessage<"EthereumTypedDataValueAck"> | TypedResponseMessage<"EthereumGetPublicKey"> | TypedResponseMessage<"EthereumPublicKey"> | TypedResponseMessage<"EthereumGetAddress"> | TypedResponseMessage<"EthereumAddress"> | TypedResponseMessage<"EthereumSignTx"> | TypedResponseMessage<"EthereumSignTxEIP1559"> | TypedResponseMessage<"EthereumTxRequest"> | TypedResponseMessage<"EthereumTxAck"> | TypedResponseMessage<"EthereumSignMessage"> | TypedResponseMessage<"EthereumSignMessageEIP712"> | TypedResponseMessage<"EthereumMessageSignature"> | TypedResponseMessage<"EthereumVerifyMessage"> | TypedResponseMessage<"EthereumSignTypedHash"> | TypedResponseMessage<"EthereumTypedDataSignature"> | TypedResponseMessage<"Initialize"> | TypedResponseMessage<"GetFeatures"> | TypedResponseMessage<"Features"> | TypedResponseMessage<"LockDevice"> | TypedResponseMessage<"EndSession"> | TypedResponseMessage<"ApplySettings"> | TypedResponseMessage<"ApplyFlags"> | TypedResponseMessage<"ChangePin"> | TypedResponseMessage<"ChangeWipeCode"> | TypedResponseMessage<"SdProtect"> | TypedResponseMessage<"Ping"> | TypedResponseMessage<"Cancel"> | TypedResponseMessage<"GetEntropy"> | TypedResponseMessage<"Entropy"> | TypedResponseMessage<"GetFirmwareHash"> | TypedResponseMessage<"FirmwareHash"> | TypedResponseMessage<"GetFirmware"> | TypedResponseMessage<"FirmwareChunk"> | TypedResponseMessage<"FirmwareChunkAck"> | TypedResponseMessage<"WipeDevice"> | TypedResponseMessage<"ResetDevice"> | TypedResponseMessage<"BackupDevice"> | TypedResponseMessage<"EntropyRequest"> | TypedResponseMessage<"EntropyAck"> | TypedResponseMessage<"RecoveryDevice"> | TypedResponseMessage<"WordRequest"> | TypedResponseMessage<"WordAck"> | TypedResponseMessage<"SetU2FCounter"> | TypedResponseMessage<"GetNextU2FCounter"> | TypedResponseMessage<"NextU2FCounter"> | TypedResponseMessage<"DoPreauthorized"> | TypedResponseMessage<"PreauthorizedRequest"> | TypedResponseMessage<"CancelAuthorization"> | TypedResponseMessage<"BixinReboot"> | TypedResponseMessage<"BixinVerifyDeviceRequest"> | TypedResponseMessage<"BixinVerifyDeviceAck"> | TypedResponseMessage<"SESignMessage"> | TypedResponseMessage<"SEMessageSignature"> | TypedResponseMessage<"ReadSEPublicCert"> | TypedResponseMessage<"SEPublicCert"> | TypedResponseMessage<"RebootToBootloader"> | TypedResponseMessage<"GetNonce"> | TypedResponseMessage<"Nonce"> | TypedResponseMessage<"NEMGetAddress"> | TypedResponseMessage<"NEMAddress"> | TypedResponseMessage<"NEMSignTx"> | TypedResponseMessage<"NEMSignedTx"> | TypedResponseMessage<"NEMDecryptMessage"> | TypedResponseMessage<"NEMDecryptedMessage"> | TypedResponseMessage<"RippleGetAddress"> | TypedResponseMessage<"RippleAddress"> | TypedResponseMessage<"RippleSignTx"> | TypedResponseMessage<"RippleSignedTx"> | TypedResponseMessage<"StarcoinGetAddress"> | TypedResponseMessage<"StarcoinAddress"> | TypedResponseMessage<"StarcoinGetPublicKey"> | TypedResponseMessage<"StarcoinPublicKey"> | TypedResponseMessage<"StarcoinSignTx"> | TypedResponseMessage<"StarcoinSignedTx"> | TypedResponseMessage<"StarcoinSignMessage"> | TypedResponseMessage<"StarcoinMessageSignature"> | TypedResponseMessage<"StarcoinVerifyMessage"> | TypedResponseMessage<"StellarGetAddress"> | TypedResponseMessage<"StellarAddress"> | TypedResponseMessage<"StellarSignTx"> | TypedResponseMessage<"StellarTxOpRequest"> | TypedResponseMessage<"StellarPaymentOp"> | TypedResponseMessage<"StellarCreateAccountOp"> | TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | TypedResponseMessage<"StellarManageSellOfferOp"> | TypedResponseMessage<"StellarManageBuyOfferOp"> | TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | TypedResponseMessage<"StellarSetOptionsOp"> | TypedResponseMessage<"StellarChangeTrustOp"> | TypedResponseMessage<"StellarAllowTrustOp"> | TypedResponseMessage<"StellarAccountMergeOp"> | TypedResponseMessage<"StellarManageDataOp"> | TypedResponseMessage<"StellarBumpSequenceOp"> | TypedResponseMessage<"StellarSignedTx"> | TypedResponseMessage<"TezosGetAddress"> | TypedResponseMessage<"TezosAddress"> | TypedResponseMessage<"TezosGetPublicKey"> | TypedResponseMessage<"TezosPublicKey"> | TypedResponseMessage<"TezosSignTx"> | TypedResponseMessage<"TezosSignedTx">;
|
|
1535
|
+
declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"Address"> | TypedResponseMessage<"BinanceInputOutput"> | TypedResponseMessage<"BinanceCoin"> | TypedResponseMessage<"HDNodePathType"> | TypedResponseMessage<"HDNodeType"> | TypedResponseMessage<"MultisigRedeemScriptType"> | TypedResponseMessage<"TxRequestDetailsType"> | TypedResponseMessage<"TxRequestSerializedType"> | TypedResponseMessage<"TxInputType"> | TypedResponseMessage<"TxOutputBinType"> | TypedResponseMessage<"TxOutputType"> | TypedResponseMessage<"TxAckInputWrapper"> | TypedResponseMessage<"TxAckOutputWrapper"> | TypedResponseMessage<"PrevTx"> | TypedResponseMessage<"TxAckPrevInputWrapper"> | TypedResponseMessage<"PrevInput"> | TypedResponseMessage<"TxAckPrevOutputWrapper"> | TypedResponseMessage<"PrevOutput"> | TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | TypedResponseMessage<"BIP32Address"> | TypedResponseMessage<"CardanoNativeScript"> | TypedResponseMessage<"CardanoBlockchainPointerType"> | TypedResponseMessage<"CardanoAddressParametersType"> | TypedResponseMessage<"CardanoPoolOwner"> | TypedResponseMessage<"CardanoPoolRelayParameters"> | TypedResponseMessage<"CardanoPoolMetadataType"> | TypedResponseMessage<"CardanoPoolParametersType"> | TypedResponseMessage<"CardanoCatalystRegistrationParametersType"> | TypedResponseMessage<"CardanoTxInputType"> | TypedResponseMessage<"CardanoTxOutputType"> | TypedResponseMessage<"CardanoTxCertificateType"> | TypedResponseMessage<"CardanoTxWithdrawalType"> | TypedResponseMessage<"CardanoTxAuxiliaryDataType"> | TypedResponseMessage<"CardanoAssetGroupType"> | TypedResponseMessage<"CardanoTokenType"> | TypedResponseMessage<"IdentityType"> | TypedResponseMessage<"EosTxHeader"> | TypedResponseMessage<"EosActionCommon"> | TypedResponseMessage<"EosActionTransfer"> | TypedResponseMessage<"EosActionDelegate"> | TypedResponseMessage<"EosActionUndelegate"> | TypedResponseMessage<"EosActionRefund"> | TypedResponseMessage<"EosActionBuyRam"> | TypedResponseMessage<"EosActionBuyRamBytes"> | TypedResponseMessage<"EosActionSellRam"> | TypedResponseMessage<"EosActionVoteProducer"> | TypedResponseMessage<"EosActionUpdateAuth"> | TypedResponseMessage<"EosActionDeleteAuth"> | TypedResponseMessage<"EosActionLinkAuth"> | TypedResponseMessage<"EosActionUnlinkAuth"> | TypedResponseMessage<"EosActionNewAccount"> | TypedResponseMessage<"EosActionUnknown"> | TypedResponseMessage<"EosPermissionLevel"> | TypedResponseMessage<"EosAuthorizationKey"> | TypedResponseMessage<"EosAuthorizationAccount"> | TypedResponseMessage<"EosAuthorizationWait"> | TypedResponseMessage<"EosAsset"> | TypedResponseMessage<"EosAuthorization"> | TypedResponseMessage<"EthereumStructMember"> | TypedResponseMessage<"EthereumFieldType"> | TypedResponseMessage<"EthereumAccessList"> | TypedResponseMessage<"NEMTransactionCommon"> | TypedResponseMessage<"NEMTransfer"> | TypedResponseMessage<"NEMProvisionNamespace"> | TypedResponseMessage<"NEMMosaicCreation"> | TypedResponseMessage<"NEMMosaicSupplyChange"> | TypedResponseMessage<"NEMAggregateModification"> | TypedResponseMessage<"NEMImportanceTransfer"> | TypedResponseMessage<"NEMMosaic"> | TypedResponseMessage<"NEMMosaicDefinition"> | TypedResponseMessage<"NEMCosignatoryModification"> | TypedResponseMessage<"RipplePayment"> | TypedResponseMessage<"StellarAsset"> | TypedResponseMessage<"TezosRevealOp"> | TypedResponseMessage<"TezosTransactionOp"> | TypedResponseMessage<"TezosOriginationOp"> | TypedResponseMessage<"TezosDelegationOp"> | TypedResponseMessage<"TezosProposalOp"> | TypedResponseMessage<"TezosBallotOp"> | TypedResponseMessage<"TezosContractID"> | TypedResponseMessage<"TezosParametersManager"> | TypedResponseMessage<"TezosManagerTransfer"> | TypedResponseMessage<"TronContract"> | TypedResponseMessage<"TronTransferContract"> | TypedResponseMessage<"TronTriggerSmartContract"> | TypedResponseMessage<"AptosGetAddress"> | TypedResponseMessage<"AptosAddress"> | TypedResponseMessage<"AptosSignTx"> | TypedResponseMessage<"AptosSignedTx"> | TypedResponseMessage<"BinanceGetAddress"> | TypedResponseMessage<"BinanceAddress"> | TypedResponseMessage<"BinanceGetPublicKey"> | TypedResponseMessage<"BinancePublicKey"> | TypedResponseMessage<"BinanceSignTx"> | TypedResponseMessage<"BinanceTxRequest"> | TypedResponseMessage<"BinanceTransferMsg"> | TypedResponseMessage<"BinanceOrderMsg"> | TypedResponseMessage<"BinanceCancelMsg"> | TypedResponseMessage<"BinanceSignedTx"> | TypedResponseMessage<"GetPublicKey"> | TypedResponseMessage<"PublicKey"> | TypedResponseMessage<"GetAddress"> | TypedResponseMessage<"GetOwnershipId"> | TypedResponseMessage<"OwnershipId"> | TypedResponseMessage<"SignMessage"> | TypedResponseMessage<"MessageSignature"> | TypedResponseMessage<"VerifyMessage"> | TypedResponseMessage<"SignTx"> | TypedResponseMessage<"TxRequest"> | TypedResponseMessage<"TxAck"> | TypedResponseMessage<"TxAckInput"> | TypedResponseMessage<"TxAckOutput"> | TypedResponseMessage<"TxAckPrevMeta"> | TypedResponseMessage<"TxAckPrevInput"> | TypedResponseMessage<"TxAckPrevOutput"> | TypedResponseMessage<"TxAckPrevExtraData"> | TypedResponseMessage<"GetOwnershipProof"> | TypedResponseMessage<"OwnershipProof"> | TypedResponseMessage<"AuthorizeCoinJoin"> | TypedResponseMessage<"GetPublicKeyMultiple"> | TypedResponseMessage<"PublicKeyMultiple"> | TypedResponseMessage<"FirmwareErase"> | TypedResponseMessage<"FirmwareRequest"> | TypedResponseMessage<"FirmwareUpload"> | TypedResponseMessage<"SelfTest"> | TypedResponseMessage<"FirmwareErase_ex"> | TypedResponseMessage<"CardanoGetNativeScriptHash"> | TypedResponseMessage<"CardanoNativeScriptHash"> | TypedResponseMessage<"CardanoGetAddress"> | TypedResponseMessage<"CardanoAddress"> | TypedResponseMessage<"CardanoGetPublicKey"> | TypedResponseMessage<"CardanoPublicKey"> | TypedResponseMessage<"CardanoSignTxInit"> | TypedResponseMessage<"CardanoTxInput"> | TypedResponseMessage<"CardanoTxOutput"> | TypedResponseMessage<"CardanoAssetGroup"> | TypedResponseMessage<"CardanoToken"> | TypedResponseMessage<"CardanoTxCertificate"> | TypedResponseMessage<"CardanoTxWithdrawal"> | TypedResponseMessage<"CardanoTxAuxiliaryData"> | TypedResponseMessage<"CardanoTxMint"> | TypedResponseMessage<"CardanoTxItemAck"> | TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | TypedResponseMessage<"CardanoTxWitnessRequest"> | TypedResponseMessage<"CardanoTxWitnessResponse"> | TypedResponseMessage<"CardanoTxHostAck"> | TypedResponseMessage<"CardanoTxBodyHash"> | TypedResponseMessage<"CardanoSignTxFinished"> | TypedResponseMessage<"CardanoPoolOwnerType"> | TypedResponseMessage<"CardanoPoolRelayParametersType"> | TypedResponseMessage<"CardanoSignTx"> | TypedResponseMessage<"CardanoSignedTxChunk"> | TypedResponseMessage<"CardanoSignedTxChunkAck"> | TypedResponseMessage<"CardanoSignedTx"> | TypedResponseMessage<"Success"> | TypedResponseMessage<"Failure"> | TypedResponseMessage<"ButtonRequest"> | TypedResponseMessage<"ButtonAck"> | TypedResponseMessage<"PinMatrixRequest"> | TypedResponseMessage<"PinMatrixAck"> | TypedResponseMessage<"PassphraseRequest"> | TypedResponseMessage<"PassphraseAck"> | TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | TypedResponseMessage<"Deprecated_PassphraseStateAck"> | TypedResponseMessage<"BixinPinInputOnDevice"> | TypedResponseMessage<"ConfluxGetAddress"> | TypedResponseMessage<"ConfluxAddress"> | TypedResponseMessage<"ConfluxSignTx"> | TypedResponseMessage<"ConfluxTxRequest"> | TypedResponseMessage<"ConfluxTxAck"> | TypedResponseMessage<"ConfluxSignMessage"> | TypedResponseMessage<"ConfluxMessageSignature"> | TypedResponseMessage<"ConfluxSignMessageCIP23"> | TypedResponseMessage<"CipherKeyValue"> | TypedResponseMessage<"CipheredKeyValue"> | TypedResponseMessage<"SignIdentity"> | TypedResponseMessage<"SignedIdentity"> | TypedResponseMessage<"GetECDHSessionKey"> | TypedResponseMessage<"ECDHSessionKey"> | TypedResponseMessage<"EosGetPublicKey"> | TypedResponseMessage<"EosPublicKey"> | TypedResponseMessage<"EosSignTx"> | TypedResponseMessage<"EosTxActionRequest"> | TypedResponseMessage<"EosTxActionAck"> | TypedResponseMessage<"EosSignedTx"> | TypedResponseMessage<"EthereumSignTypedData"> | TypedResponseMessage<"EthereumTypedDataStructRequest"> | TypedResponseMessage<"EthereumTypedDataStructAck"> | TypedResponseMessage<"EthereumTypedDataValueRequest"> | TypedResponseMessage<"EthereumTypedDataValueAck"> | TypedResponseMessage<"EthereumGetPublicKey"> | TypedResponseMessage<"EthereumPublicKey"> | TypedResponseMessage<"EthereumGetAddress"> | TypedResponseMessage<"EthereumAddress"> | TypedResponseMessage<"EthereumSignTx"> | TypedResponseMessage<"EthereumSignTxEIP1559"> | TypedResponseMessage<"EthereumTxRequest"> | TypedResponseMessage<"EthereumTxAck"> | TypedResponseMessage<"EthereumSignMessage"> | TypedResponseMessage<"EthereumMessageSignature"> | TypedResponseMessage<"EthereumVerifyMessage"> | TypedResponseMessage<"EthereumSignMessageEIP712"> | TypedResponseMessage<"EthereumSignTypedHash"> | TypedResponseMessage<"EthereumTypedDataSignature"> | TypedResponseMessage<"Initialize"> | TypedResponseMessage<"GetFeatures"> | TypedResponseMessage<"Features"> | TypedResponseMessage<"LockDevice"> | TypedResponseMessage<"EndSession"> | TypedResponseMessage<"ApplySettings"> | TypedResponseMessage<"ApplyFlags"> | TypedResponseMessage<"ChangePin"> | TypedResponseMessage<"ChangeWipeCode"> | TypedResponseMessage<"SdProtect"> | TypedResponseMessage<"Ping"> | TypedResponseMessage<"Cancel"> | TypedResponseMessage<"GetEntropy"> | TypedResponseMessage<"Entropy"> | TypedResponseMessage<"WipeDevice"> | TypedResponseMessage<"ResetDevice"> | TypedResponseMessage<"BackupDevice"> | TypedResponseMessage<"EntropyRequest"> | TypedResponseMessage<"EntropyAck"> | TypedResponseMessage<"RecoveryDevice"> | TypedResponseMessage<"WordRequest"> | TypedResponseMessage<"WordAck"> | TypedResponseMessage<"SetU2FCounter"> | TypedResponseMessage<"GetNextU2FCounter"> | TypedResponseMessage<"NextU2FCounter"> | TypedResponseMessage<"DoPreauthorized"> | TypedResponseMessage<"PreauthorizedRequest"> | TypedResponseMessage<"CancelAuthorization"> | TypedResponseMessage<"BixinSeedOperate"> | TypedResponseMessage<"BixinMessageSE"> | TypedResponseMessage<"BixinOutMessageSE"> | TypedResponseMessage<"BixinReboot"> | TypedResponseMessage<"BixinBackupRequest"> | TypedResponseMessage<"BixinBackupAck"> | TypedResponseMessage<"BixinRestoreRequest"> | TypedResponseMessage<"BixinRestoreAck"> | TypedResponseMessage<"BixinVerifyDeviceRequest"> | TypedResponseMessage<"BixinVerifyDeviceAck"> | TypedResponseMessage<"BixinWhiteListRequest"> | TypedResponseMessage<"BixinWhiteListAck"> | TypedResponseMessage<"BixinLoadDevice"> | TypedResponseMessage<"BixinBackupDevice"> | TypedResponseMessage<"BixinBackupDeviceAck"> | TypedResponseMessage<"DeviceInfoSettings"> | TypedResponseMessage<"GetDeviceInfo"> | TypedResponseMessage<"DeviceInfo"> | TypedResponseMessage<"ReadSEPublicKey"> | TypedResponseMessage<"SEPublicKey"> | TypedResponseMessage<"WriteSEPublicCert"> | TypedResponseMessage<"ReadSEPublicCert"> | TypedResponseMessage<"SEPublicCert"> | TypedResponseMessage<"SpiFlashWrite"> | TypedResponseMessage<"SpiFlashRead"> | TypedResponseMessage<"SpiFlashData"> | TypedResponseMessage<"SESignMessage"> | TypedResponseMessage<"SEMessageSignature"> | TypedResponseMessage<"NFTWriteInfo"> | TypedResponseMessage<"NFTWriteData"> | TypedResponseMessage<"RebootToBootloader"> | TypedResponseMessage<"NearGetAddress"> | TypedResponseMessage<"NearAddress"> | TypedResponseMessage<"NearSignTx"> | TypedResponseMessage<"NearSignedTx"> | TypedResponseMessage<"NEMGetAddress"> | TypedResponseMessage<"NEMAddress"> | TypedResponseMessage<"NEMSignTx"> | TypedResponseMessage<"NEMSignedTx"> | TypedResponseMessage<"NEMDecryptMessage"> | TypedResponseMessage<"NEMDecryptedMessage"> | TypedResponseMessage<"RippleGetAddress"> | TypedResponseMessage<"RippleAddress"> | TypedResponseMessage<"RippleSignTx"> | TypedResponseMessage<"RippleSignedTx"> | TypedResponseMessage<"SolanaGetAddress"> | TypedResponseMessage<"SolanaAddress"> | TypedResponseMessage<"SolanaSignTx"> | TypedResponseMessage<"SolanaSignedTx"> | TypedResponseMessage<"StarcoinGetAddress"> | TypedResponseMessage<"StarcoinAddress"> | TypedResponseMessage<"StarcoinGetPublicKey"> | TypedResponseMessage<"StarcoinPublicKey"> | TypedResponseMessage<"StarcoinSignTx"> | TypedResponseMessage<"StarcoinSignedTx"> | TypedResponseMessage<"StarcoinSignMessage"> | TypedResponseMessage<"StarcoinMessageSignature"> | TypedResponseMessage<"StarcoinVerifyMessage"> | TypedResponseMessage<"StellarGetAddress"> | TypedResponseMessage<"StellarAddress"> | TypedResponseMessage<"StellarSignTx"> | TypedResponseMessage<"StellarTxOpRequest"> | TypedResponseMessage<"StellarPaymentOp"> | TypedResponseMessage<"StellarCreateAccountOp"> | TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | TypedResponseMessage<"StellarManageSellOfferOp"> | TypedResponseMessage<"StellarManageBuyOfferOp"> | TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | TypedResponseMessage<"StellarSetOptionsOp"> | TypedResponseMessage<"StellarChangeTrustOp"> | TypedResponseMessage<"StellarAllowTrustOp"> | TypedResponseMessage<"StellarAccountMergeOp"> | TypedResponseMessage<"StellarManageDataOp"> | TypedResponseMessage<"StellarBumpSequenceOp"> | TypedResponseMessage<"StellarSignedTx"> | TypedResponseMessage<"TezosGetAddress"> | TypedResponseMessage<"TezosAddress"> | TypedResponseMessage<"TezosGetPublicKey"> | TypedResponseMessage<"TezosPublicKey"> | TypedResponseMessage<"TezosSignTx"> | TypedResponseMessage<"TezosSignedTx"> | TypedResponseMessage<"TronGetAddress"> | TypedResponseMessage<"TronAddress"> | TypedResponseMessage<"TronSignTx"> | TypedResponseMessage<"TronSignedTx"> | TypedResponseMessage<"TronSignMessage"> | TypedResponseMessage<"TronMessageSignature"> | TypedResponseMessage<"facotry">;
|
|
1388
1536
|
|
|
1389
1537
|
declare const getDeviceType: (features?: _onekeyfe_hd_transport.Features | undefined) => IDeviceType;
|
|
1390
1538
|
declare const getDeviceTypeByBleName: (name?: string | undefined) => IDeviceType | null;
|
|
@@ -1470,4 +1618,4 @@ declare class DataManager {
|
|
|
1470
1618
|
|
|
1471
1619
|
declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, cancel, }: InjectApi) => CoreApi;
|
|
1472
1620
|
|
|
1473
|
-
export { AccountAddress, AccountAddresses, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CipheredKeyValue, CipheredKeyValueParams, CommonParams, ConnectSettings, Core, CoreApi, CoreMessage, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesPayload, DeviceFirmwareRange, DeviceFlagsParams, DeviceMode, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendSupportFeatures, DeviceSettingsParams, DeviceStatus, DeviceSupportFeatures, DeviceSupportFeaturesPayload, DeviceTypeMap, DeviceVerifyParams, DeviceVerifySignature, EVMAccessList, EVMAddress, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, FIRMWARE, FIRMWARE_EVENT, Features, FirmwareEvent, FirmwareMessage, FirmwareProgress, FirmwareRange, FirmwareRelease, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareReleaseInfo, IFrameBridge, IFrameCallMessage, IFrameCancelMessage, IFrameEvent, IFrameEventMessage, IFrameInit, ILocale, ITransportStatus, IVersionArray, KnownDevice, LOG, LOG_EVENT, LogEvent, LogEventMessage, LogOutput, LoggerNames, MajorVersion, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, Params, PostMessageEvent, RESPONSE_EVENT, RefTransaction, ReleaseInfo, ReleaseInfoEvent, ReleaseInfoPayload, RemoteConfigResponse, Response, SearchDevice, SignedTransaction, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, StrictFeatures, Success, SupportFeatureType, SupportFeatures, TransactionOptions, TransportReleaseStatus, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestPassphrase, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePin, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createResponseMessage, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceTypeByDeviceId, getDeviceUUID, getEnv, getHDPath, getLog, getLogger, getScriptType, getTimeStamp, httpRequest, init as initCore, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, safeThrowError, setLoggerPostMessage, versionCompare, versionSplit };
|
|
1621
|
+
export { AccountAddress, AccountAddresses, AptosAddress, AptosGetAddressParams, AptosSignTransactionParams, AptosSignedTx, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CipheredKeyValue, CipheredKeyValueParams, CommonParams, ConfluxAddress, ConfluxGetAddressParams, ConfluxSignMessageCIP23Params, ConfluxSignMessageParams, ConfluxSignTransactionParams, ConfluxSignedTx, ConfluxTransaction, ConnectSettings, Core, CoreApi, CoreMessage, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesPayload, DeviceFirmwareRange, DeviceFlagsParams, DeviceMode, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendSupportFeatures, DeviceSettingsParams, DeviceStatus, DeviceSupportFeatures, DeviceSupportFeaturesPayload, DeviceTypeMap, DeviceVerifyParams, DeviceVerifySignature, EVMAccessList, EVMAddress, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, FIRMWARE, FIRMWARE_EVENT, Features, FirmwareEvent, FirmwareMessage, FirmwareProgress, FirmwareRange, FirmwareRelease$1 as FirmwareRelease, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareReleaseInfo, IFrameBridge, IFrameCallMessage, IFrameCancelMessage, IFrameEvent, IFrameEventMessage, IFrameInit, ILocale, ITransportStatus, IVersionArray, KnownDevice, LOG, LOG_EVENT, LogEvent, LogEventMessage, LogOutput, LoggerNames, MajorVersion, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, NearAddress, NearGetAddressParams, NearSignTransactionParams, Params, PostMessageEvent, RESPONSE_EVENT, RefTransaction, ReleaseInfo, ReleaseInfoEvent, ReleaseInfoPayload, RemoteConfigResponse, Response, SearchDevice, SignedTransaction, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, StrictFeatures, Success, SupportFeatureType, SupportFeatures, TransactionOptions, TransportReleaseStatus, TronAddress, TronGetAddressParams, TronSignMessageParams, TronSignTransactionParams, TronTransaction, TronTransactionContract, TronTransferContract, TronTriggerSmartContract, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestPassphrase, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePin, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createResponseMessage, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceTypeByDeviceId, getDeviceUUID, getEnv, getHDPath, getLog, getLogger, getScriptType, getTimeStamp, httpRequest, init as initCore, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, safeThrowError, setLoggerPostMessage, versionCompare, versionSplit };
|