@onekeyfe/hd-transport 0.3.30 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +521 -491
- package/dist/index.js +15 -0
- package/dist/serialization/protocol/encode.d.ts +1 -1
- package/dist/serialization/protocol/encode.d.ts.map +1 -1
- package/dist/types/messages.d.ts +504 -480
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +10 -10
- package/dist/types/transport.d.ts.map +1 -1
- package/package.json +2 -2
- package/scripts/protobuf-patches/index.js +2 -0
- package/src/types/messages.ts +26 -0
package/dist/index.d.ts
CHANGED
|
@@ -34,31 +34,31 @@ declare namespace decodeProtocol {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
type OneKeyUsbDeviceInfo = {
|
|
38
38
|
path: string;
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
type OneKeyDeviceInfoWithSession = OneKeyUsbDeviceInfo & {
|
|
41
41
|
session?: string | null;
|
|
42
42
|
debugSession?: string | null;
|
|
43
43
|
debug: boolean;
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
type OneKeyMobileDeviceInfo = {
|
|
46
46
|
id: string;
|
|
47
47
|
name: string | null;
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
type OneKeyDeviceInfo = OneKeyDeviceInfoWithSession & OneKeyMobileDeviceInfo;
|
|
50
|
+
type AcquireInput = {
|
|
51
51
|
path?: string;
|
|
52
52
|
previous?: string | null;
|
|
53
53
|
uuid?: string;
|
|
54
54
|
forceCleanRunPromise?: boolean;
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
type MessageFromOneKey = {
|
|
57
57
|
type: string;
|
|
58
58
|
message: Record<string, any>;
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
61
|
+
type Transport = {
|
|
62
62
|
enumerate(): Promise<Array<OneKeyDeviceInfo>>;
|
|
63
63
|
listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
|
|
64
64
|
acquire(input: AcquireInput): Promise<string>;
|
|
@@ -78,11 +78,11 @@ declare type Transport = {
|
|
|
78
78
|
requestNeeded: boolean;
|
|
79
79
|
isOutdated: boolean;
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
type LowLevelDevice = {
|
|
82
82
|
id: string;
|
|
83
83
|
name: string;
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
type LowlevelTransportSharedPlugin = {
|
|
86
86
|
enumerate: () => Promise<LowLevelDevice[]>;
|
|
87
87
|
send: (uuid: string, data: string) => Promise<void>;
|
|
88
88
|
receive: () => Promise<string>;
|
|
@@ -92,66 +92,66 @@ declare type LowlevelTransportSharedPlugin = {
|
|
|
92
92
|
version: string;
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
type UintType = string | number;
|
|
96
|
+
type AlgorandGetAddress = {
|
|
97
97
|
address_n: number[];
|
|
98
98
|
show_display?: boolean;
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
type AlgorandAddress = {
|
|
101
101
|
address?: string;
|
|
102
102
|
};
|
|
103
|
-
|
|
103
|
+
type AlgorandSignTx = {
|
|
104
104
|
address_n: number[];
|
|
105
105
|
raw_tx: string;
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
type AlgorandSignedTx = {
|
|
108
108
|
signature: string;
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
type AptosGetAddress = {
|
|
111
111
|
address_n: number[];
|
|
112
112
|
show_display?: boolean;
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
type AptosAddress = {
|
|
115
115
|
address?: string;
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
type AptosSignTx = {
|
|
118
118
|
address_n: number[];
|
|
119
119
|
raw_tx: string;
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
type AptosSignedTx = {
|
|
122
122
|
public_key: string;
|
|
123
123
|
signature: string;
|
|
124
124
|
};
|
|
125
|
-
|
|
125
|
+
type AptosMessagePayload = {
|
|
126
126
|
address?: string;
|
|
127
127
|
chain_id?: string;
|
|
128
128
|
application?: string;
|
|
129
129
|
nonce: string;
|
|
130
130
|
message: string;
|
|
131
131
|
};
|
|
132
|
-
|
|
132
|
+
type AptosSignMessage = {
|
|
133
133
|
address_n: number[];
|
|
134
134
|
payload: AptosMessagePayload;
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
type AptosMessageSignature = {
|
|
137
137
|
signature: string;
|
|
138
138
|
address: string;
|
|
139
139
|
};
|
|
140
|
-
|
|
140
|
+
type BinanceGetAddress = {
|
|
141
141
|
address_n: number[];
|
|
142
142
|
show_display?: boolean;
|
|
143
143
|
};
|
|
144
|
-
|
|
144
|
+
type BinanceAddress = {
|
|
145
145
|
address: string;
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
type BinanceGetPublicKey = {
|
|
148
148
|
address_n: number[];
|
|
149
149
|
show_display?: boolean;
|
|
150
150
|
};
|
|
151
|
-
|
|
151
|
+
type BinancePublicKey = {
|
|
152
152
|
public_key: string;
|
|
153
153
|
};
|
|
154
|
-
|
|
154
|
+
type BinanceSignTx = {
|
|
155
155
|
address_n: number[];
|
|
156
156
|
msg_count?: number;
|
|
157
157
|
account_number?: number;
|
|
@@ -160,16 +160,16 @@ declare type BinanceSignTx = {
|
|
|
160
160
|
sequence?: number;
|
|
161
161
|
source?: number;
|
|
162
162
|
};
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
type BinanceTxRequest = {};
|
|
164
|
+
type BinanceCoin = {
|
|
165
165
|
amount?: UintType;
|
|
166
166
|
denom?: string;
|
|
167
167
|
};
|
|
168
|
-
|
|
168
|
+
type BinanceInputOutput = {
|
|
169
169
|
address?: string;
|
|
170
170
|
coins: BinanceCoin[];
|
|
171
171
|
};
|
|
172
|
-
|
|
172
|
+
type BinanceTransferMsg = {
|
|
173
173
|
inputs: BinanceInputOutput[];
|
|
174
174
|
outputs: BinanceInputOutput[];
|
|
175
175
|
};
|
|
@@ -190,7 +190,7 @@ declare enum BinanceTimeInForce {
|
|
|
190
190
|
TIF_RESERVED = 2,
|
|
191
191
|
IOC = 3
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
type BinanceOrderMsg = {
|
|
194
194
|
id?: string;
|
|
195
195
|
ordertype?: BinanceOrderType;
|
|
196
196
|
price?: number;
|
|
@@ -200,12 +200,12 @@ declare type BinanceOrderMsg = {
|
|
|
200
200
|
symbol?: string;
|
|
201
201
|
timeinforce?: BinanceTimeInForce;
|
|
202
202
|
};
|
|
203
|
-
|
|
203
|
+
type BinanceCancelMsg = {
|
|
204
204
|
refid?: string;
|
|
205
205
|
sender?: string;
|
|
206
206
|
symbol?: string;
|
|
207
207
|
};
|
|
208
|
-
|
|
208
|
+
type BinanceSignedTx = {
|
|
209
209
|
signature: string;
|
|
210
210
|
public_key: string;
|
|
211
211
|
};
|
|
@@ -217,7 +217,7 @@ declare enum Enum_InputScriptType {
|
|
|
217
217
|
SPENDP2SHWITNESS = 4,
|
|
218
218
|
SPENDTAPROOT = 5
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
type InputScriptType = keyof typeof Enum_InputScriptType;
|
|
221
221
|
declare enum Enum_OutputScriptType {
|
|
222
222
|
PAYTOADDRESS = 0,
|
|
223
223
|
PAYTOSCRIPTHASH = 1,
|
|
@@ -227,7 +227,7 @@ declare enum Enum_OutputScriptType {
|
|
|
227
227
|
PAYTOP2SHWITNESS = 5,
|
|
228
228
|
PAYTOTAPROOT = 6
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
type OutputScriptType = keyof typeof Enum_OutputScriptType;
|
|
231
231
|
declare enum DecredStakingSpendType {
|
|
232
232
|
SSGen = 0,
|
|
233
233
|
SSRTX = 1
|
|
@@ -238,7 +238,7 @@ declare enum AmountUnit {
|
|
|
238
238
|
MICROBITCOIN = 2,
|
|
239
239
|
SATOSHI = 3
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
type HDNodeType = {
|
|
242
242
|
depth: number;
|
|
243
243
|
fingerprint: number;
|
|
244
244
|
child_num: number;
|
|
@@ -246,18 +246,18 @@ declare type HDNodeType = {
|
|
|
246
246
|
private_key?: string;
|
|
247
247
|
public_key: string;
|
|
248
248
|
};
|
|
249
|
-
|
|
249
|
+
type HDNodePathType = {
|
|
250
250
|
node: HDNodeType | string;
|
|
251
251
|
address_n: number[];
|
|
252
252
|
};
|
|
253
|
-
|
|
253
|
+
type MultisigRedeemScriptType = {
|
|
254
254
|
pubkeys: HDNodePathType[];
|
|
255
255
|
signatures: string[];
|
|
256
256
|
m: number;
|
|
257
257
|
nodes?: HDNodeType[];
|
|
258
258
|
address_n?: number[];
|
|
259
259
|
};
|
|
260
|
-
|
|
260
|
+
type GetPublicKey = {
|
|
261
261
|
address_n: number[];
|
|
262
262
|
ecdsa_curve_name?: string;
|
|
263
263
|
show_display?: boolean;
|
|
@@ -265,12 +265,12 @@ declare type GetPublicKey = {
|
|
|
265
265
|
script_type?: InputScriptType;
|
|
266
266
|
ignore_xpub_magic?: boolean;
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
type PublicKey = {
|
|
269
269
|
node: HDNodeType;
|
|
270
270
|
xpub: string;
|
|
271
271
|
root_fingerprint?: number;
|
|
272
272
|
};
|
|
273
|
-
|
|
273
|
+
type GetAddress = {
|
|
274
274
|
address_n: number[];
|
|
275
275
|
coin_name?: string;
|
|
276
276
|
show_display?: boolean;
|
|
@@ -278,36 +278,36 @@ declare type GetAddress = {
|
|
|
278
278
|
script_type?: InputScriptType;
|
|
279
279
|
ignore_xpub_magic?: boolean;
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
type Address = {
|
|
282
282
|
address: string;
|
|
283
283
|
};
|
|
284
|
-
|
|
284
|
+
type GetOwnershipId = {
|
|
285
285
|
address_n: number[];
|
|
286
286
|
coin_name?: string;
|
|
287
287
|
multisig?: MultisigRedeemScriptType;
|
|
288
288
|
script_type?: InputScriptType;
|
|
289
289
|
};
|
|
290
|
-
|
|
290
|
+
type OwnershipId = {
|
|
291
291
|
ownership_id: string;
|
|
292
292
|
};
|
|
293
|
-
|
|
293
|
+
type SignMessage = {
|
|
294
294
|
address_n: number[];
|
|
295
295
|
message: string;
|
|
296
296
|
coin_name?: string;
|
|
297
297
|
script_type?: InputScriptType;
|
|
298
298
|
no_script_type?: boolean;
|
|
299
299
|
};
|
|
300
|
-
|
|
300
|
+
type MessageSignature = {
|
|
301
301
|
address: string;
|
|
302
302
|
signature: string;
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
type VerifyMessage = {
|
|
305
305
|
address: string;
|
|
306
306
|
signature: string;
|
|
307
307
|
message: string;
|
|
308
308
|
coin_name?: string;
|
|
309
309
|
};
|
|
310
|
-
|
|
310
|
+
type SignTx = {
|
|
311
311
|
outputs_count: number;
|
|
312
312
|
inputs_count: number;
|
|
313
313
|
coin_name?: string;
|
|
@@ -330,25 +330,25 @@ declare enum Enum_RequestType {
|
|
|
330
330
|
TXORIGINPUT = 5,
|
|
331
331
|
TXORIGOUTPUT = 6
|
|
332
332
|
}
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
type RequestType = keyof typeof Enum_RequestType;
|
|
334
|
+
type TxRequestDetailsType = {
|
|
335
335
|
request_index: number;
|
|
336
336
|
tx_hash?: string;
|
|
337
337
|
extra_data_len?: number;
|
|
338
338
|
extra_data_offset?: number;
|
|
339
339
|
};
|
|
340
|
-
|
|
340
|
+
type TxRequestSerializedType = {
|
|
341
341
|
signature_index?: number;
|
|
342
342
|
signature?: string;
|
|
343
343
|
serialized_tx?: string;
|
|
344
344
|
};
|
|
345
|
-
|
|
345
|
+
type TxRequest = {
|
|
346
346
|
request_type: RequestType;
|
|
347
347
|
details: TxRequestDetailsType;
|
|
348
348
|
serialized?: TxRequestSerializedType;
|
|
349
349
|
};
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
type InternalInputScriptType = Exclude<InputScriptType, 'EXTERNAL'>;
|
|
351
|
+
type CommonTxInputType = {
|
|
352
352
|
prev_hash: string;
|
|
353
353
|
prev_index: number;
|
|
354
354
|
amount: UintType;
|
|
@@ -364,7 +364,7 @@ declare type CommonTxInputType = {
|
|
|
364
364
|
ownership_proof?: string;
|
|
365
365
|
commitment_data?: string;
|
|
366
366
|
};
|
|
367
|
-
|
|
367
|
+
type TxInputType = (CommonTxInputType & {
|
|
368
368
|
address_n: number[];
|
|
369
369
|
script_type?: InternalInputScriptType;
|
|
370
370
|
}) | (CommonTxInputType & {
|
|
@@ -372,14 +372,14 @@ declare type TxInputType = (CommonTxInputType & {
|
|
|
372
372
|
script_type: 'EXTERNAL';
|
|
373
373
|
script_pubkey: string;
|
|
374
374
|
});
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
type TxInput = TxInputType;
|
|
376
|
+
type TxOutputBinType = {
|
|
377
377
|
amount: UintType;
|
|
378
378
|
script_pubkey: string;
|
|
379
379
|
decred_script_version?: number;
|
|
380
380
|
};
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
type ChangeOutputScriptType = Exclude<OutputScriptType, 'PAYTOOPRETURN'>;
|
|
382
|
+
type TxOutputType = {
|
|
383
383
|
address: string;
|
|
384
384
|
address_n?: typeof undefined;
|
|
385
385
|
script_type: 'PAYTOADDRESS';
|
|
@@ -407,8 +407,8 @@ declare type TxOutputType = {
|
|
|
407
407
|
orig_index?: number;
|
|
408
408
|
payment_req_index?: number;
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
type TxOutput = TxOutputType;
|
|
411
|
+
type PrevTx = {
|
|
412
412
|
version: number;
|
|
413
413
|
lock_time: number;
|
|
414
414
|
inputs_count: number;
|
|
@@ -419,19 +419,19 @@ declare type PrevTx = {
|
|
|
419
419
|
timestamp?: number;
|
|
420
420
|
branch_id?: number;
|
|
421
421
|
};
|
|
422
|
-
|
|
422
|
+
type PrevInput = {
|
|
423
423
|
prev_hash: string;
|
|
424
424
|
prev_index: number;
|
|
425
425
|
script_sig: string;
|
|
426
426
|
sequence: number;
|
|
427
427
|
decred_tree?: number;
|
|
428
428
|
};
|
|
429
|
-
|
|
429
|
+
type PrevOutput = {
|
|
430
430
|
amount: UintType;
|
|
431
431
|
script_pubkey: string;
|
|
432
432
|
decred_script_version?: number;
|
|
433
433
|
};
|
|
434
|
-
|
|
434
|
+
type TxAckResponse = {
|
|
435
435
|
inputs: Array<TxInputType | PrevInput>;
|
|
436
436
|
} | {
|
|
437
437
|
bin_outputs: TxOutputBinType[];
|
|
@@ -451,43 +451,43 @@ declare type TxAckResponse = {
|
|
|
451
451
|
expiry?: number;
|
|
452
452
|
branch_id?: number;
|
|
453
453
|
};
|
|
454
|
-
|
|
454
|
+
type TxAck = {
|
|
455
455
|
tx: TxAckResponse;
|
|
456
456
|
};
|
|
457
|
-
|
|
457
|
+
type TxAckInputWrapper = {
|
|
458
458
|
input: TxInput;
|
|
459
459
|
};
|
|
460
|
-
|
|
460
|
+
type TxAckInput = {
|
|
461
461
|
tx: TxAckInputWrapper;
|
|
462
462
|
};
|
|
463
|
-
|
|
463
|
+
type TxAckOutputWrapper = {
|
|
464
464
|
output: TxOutput;
|
|
465
465
|
};
|
|
466
|
-
|
|
466
|
+
type TxAckOutput = {
|
|
467
467
|
tx: TxAckOutputWrapper;
|
|
468
468
|
};
|
|
469
|
-
|
|
469
|
+
type TxAckPrevMeta = {
|
|
470
470
|
tx: PrevTx;
|
|
471
471
|
};
|
|
472
|
-
|
|
472
|
+
type TxAckPrevInputWrapper = {
|
|
473
473
|
input: PrevInput;
|
|
474
474
|
};
|
|
475
|
-
|
|
475
|
+
type TxAckPrevInput = {
|
|
476
476
|
tx: TxAckPrevInputWrapper;
|
|
477
477
|
};
|
|
478
|
-
|
|
478
|
+
type TxAckPrevOutputWrapper = {
|
|
479
479
|
output: PrevOutput;
|
|
480
480
|
};
|
|
481
|
-
|
|
481
|
+
type TxAckPrevOutput = {
|
|
482
482
|
tx: TxAckPrevOutputWrapper;
|
|
483
483
|
};
|
|
484
|
-
|
|
484
|
+
type TxAckPrevExtraDataWrapper = {
|
|
485
485
|
extra_data_chunk: string;
|
|
486
486
|
};
|
|
487
|
-
|
|
487
|
+
type TxAckPrevExtraData = {
|
|
488
488
|
tx: TxAckPrevExtraDataWrapper;
|
|
489
489
|
};
|
|
490
|
-
|
|
490
|
+
type GetOwnershipProof = {
|
|
491
491
|
address_n: number[];
|
|
492
492
|
coin_name?: string;
|
|
493
493
|
script_type?: InputScriptType;
|
|
@@ -496,11 +496,11 @@ declare type GetOwnershipProof = {
|
|
|
496
496
|
ownership_ids?: string[];
|
|
497
497
|
commitment_data?: string;
|
|
498
498
|
};
|
|
499
|
-
|
|
499
|
+
type OwnershipProof = {
|
|
500
500
|
ownership_proof: string;
|
|
501
501
|
signature: string;
|
|
502
502
|
};
|
|
503
|
-
|
|
503
|
+
type AuthorizeCoinJoin = {
|
|
504
504
|
coordinator: string;
|
|
505
505
|
max_total_fee: number;
|
|
506
506
|
fee_per_anonymity?: number;
|
|
@@ -509,10 +509,10 @@ declare type AuthorizeCoinJoin = {
|
|
|
509
509
|
script_type?: InputScriptType;
|
|
510
510
|
amount_unit?: AmountUnit;
|
|
511
511
|
};
|
|
512
|
-
|
|
512
|
+
type BIP32Address = {
|
|
513
513
|
address_n: number[];
|
|
514
514
|
};
|
|
515
|
-
|
|
515
|
+
type GetPublicKeyMultiple = {
|
|
516
516
|
addresses: BIP32Address[];
|
|
517
517
|
ecdsa_curve_name?: string;
|
|
518
518
|
show_display?: boolean;
|
|
@@ -520,24 +520,24 @@ declare type GetPublicKeyMultiple = {
|
|
|
520
520
|
script_type?: InputScriptType;
|
|
521
521
|
ignore_xpub_magic?: boolean;
|
|
522
522
|
};
|
|
523
|
-
|
|
523
|
+
type PublicKeyMultiple = {
|
|
524
524
|
xpubs: string[];
|
|
525
525
|
};
|
|
526
|
-
|
|
526
|
+
type FirmwareErase = {
|
|
527
527
|
length?: number;
|
|
528
528
|
};
|
|
529
|
-
|
|
529
|
+
type FirmwareRequest = {
|
|
530
530
|
offset?: number;
|
|
531
531
|
length?: number;
|
|
532
532
|
};
|
|
533
|
-
|
|
533
|
+
type FirmwareUpload = {
|
|
534
534
|
payload: Buffer | ArrayBuffer;
|
|
535
535
|
hash?: string;
|
|
536
536
|
};
|
|
537
|
-
|
|
537
|
+
type SelfTest = {
|
|
538
538
|
payload?: string;
|
|
539
539
|
};
|
|
540
|
-
|
|
540
|
+
type FirmwareErase_ex = {
|
|
541
541
|
length?: number;
|
|
542
542
|
};
|
|
543
543
|
declare enum RebootType {
|
|
@@ -545,10 +545,10 @@ declare enum RebootType {
|
|
|
545
545
|
Boardloader = 1,
|
|
546
546
|
BootLoader = 2
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
type Reboot = {
|
|
549
549
|
reboot_type: RebootType;
|
|
550
550
|
};
|
|
551
|
-
|
|
551
|
+
type FirmwareUpdateEmmc = {
|
|
552
552
|
path: string;
|
|
553
553
|
reboot_on_success?: boolean;
|
|
554
554
|
};
|
|
@@ -616,12 +616,12 @@ declare enum CardanoTxWitnessType {
|
|
|
616
616
|
BYRON_WITNESS = 0,
|
|
617
617
|
SHELLEY_WITNESS = 1
|
|
618
618
|
}
|
|
619
|
-
|
|
619
|
+
type CardanoBlockchainPointerType = {
|
|
620
620
|
block_index: number;
|
|
621
621
|
tx_index: number;
|
|
622
622
|
certificate_index: number;
|
|
623
623
|
};
|
|
624
|
-
|
|
624
|
+
type CardanoNativeScript = {
|
|
625
625
|
type: CardanoNativeScriptType;
|
|
626
626
|
scripts?: CardanoNativeScript[];
|
|
627
627
|
key_hash?: string;
|
|
@@ -630,15 +630,15 @@ declare type CardanoNativeScript = {
|
|
|
630
630
|
invalid_before?: UintType;
|
|
631
631
|
invalid_hereafter?: UintType;
|
|
632
632
|
};
|
|
633
|
-
|
|
633
|
+
type CardanoGetNativeScriptHash = {
|
|
634
634
|
script: CardanoNativeScript;
|
|
635
635
|
display_format: CardanoNativeScriptHashDisplayFormat;
|
|
636
636
|
derivation_type: CardanoDerivationType;
|
|
637
637
|
};
|
|
638
|
-
|
|
638
|
+
type CardanoNativeScriptHash = {
|
|
639
639
|
script_hash: string;
|
|
640
640
|
};
|
|
641
|
-
|
|
641
|
+
type CardanoAddressParametersType = {
|
|
642
642
|
address_type: CardanoAddressType;
|
|
643
643
|
address_n: number[];
|
|
644
644
|
address_n_staking: number[];
|
|
@@ -647,26 +647,26 @@ declare type CardanoAddressParametersType = {
|
|
|
647
647
|
script_payment_hash?: string;
|
|
648
648
|
script_staking_hash?: string;
|
|
649
649
|
};
|
|
650
|
-
|
|
650
|
+
type CardanoGetAddress = {
|
|
651
651
|
show_display?: boolean;
|
|
652
652
|
protocol_magic: number;
|
|
653
653
|
network_id: number;
|
|
654
654
|
address_parameters: CardanoAddressParametersType;
|
|
655
655
|
derivation_type: CardanoDerivationType;
|
|
656
656
|
};
|
|
657
|
-
|
|
657
|
+
type CardanoAddress = {
|
|
658
658
|
address: string;
|
|
659
659
|
};
|
|
660
|
-
|
|
660
|
+
type CardanoGetPublicKey = {
|
|
661
661
|
address_n: number[];
|
|
662
662
|
show_display?: boolean;
|
|
663
663
|
derivation_type: CardanoDerivationType;
|
|
664
664
|
};
|
|
665
|
-
|
|
665
|
+
type CardanoPublicKey = {
|
|
666
666
|
xpub: string;
|
|
667
667
|
node: HDNodeType;
|
|
668
668
|
};
|
|
669
|
-
|
|
669
|
+
type CardanoSignTxInit = {
|
|
670
670
|
signing_mode: CardanoTxSigningMode;
|
|
671
671
|
protocol_magic: number;
|
|
672
672
|
network_id: number;
|
|
@@ -689,11 +689,11 @@ declare type CardanoSignTxInit = {
|
|
|
689
689
|
total_collateral?: UintType;
|
|
690
690
|
reference_inputs_count?: number;
|
|
691
691
|
};
|
|
692
|
-
|
|
692
|
+
type CardanoTxInput = {
|
|
693
693
|
prev_hash: string;
|
|
694
694
|
prev_index: number;
|
|
695
695
|
};
|
|
696
|
-
|
|
696
|
+
type CardanoTxOutput = {
|
|
697
697
|
address?: string;
|
|
698
698
|
address_parameters?: CardanoAddressParametersType;
|
|
699
699
|
amount: UintType;
|
|
@@ -703,37 +703,37 @@ declare type CardanoTxOutput = {
|
|
|
703
703
|
inline_datum_size?: number;
|
|
704
704
|
reference_script_size?: number;
|
|
705
705
|
};
|
|
706
|
-
|
|
706
|
+
type CardanoAssetGroup = {
|
|
707
707
|
policy_id: string;
|
|
708
708
|
tokens_count: number;
|
|
709
709
|
};
|
|
710
|
-
|
|
710
|
+
type CardanoToken = {
|
|
711
711
|
asset_name_bytes: string;
|
|
712
712
|
amount?: UintType;
|
|
713
713
|
mint_amount?: UintType;
|
|
714
714
|
};
|
|
715
|
-
|
|
715
|
+
type CardanoTxInlineDatumChunk = {
|
|
716
716
|
data: string;
|
|
717
717
|
};
|
|
718
|
-
|
|
718
|
+
type CardanoTxReferenceScriptChunk = {
|
|
719
719
|
data: string;
|
|
720
720
|
};
|
|
721
|
-
|
|
721
|
+
type CardanoPoolOwner = {
|
|
722
722
|
staking_key_path?: number[];
|
|
723
723
|
staking_key_hash?: string;
|
|
724
724
|
};
|
|
725
|
-
|
|
725
|
+
type CardanoPoolRelayParameters = {
|
|
726
726
|
type: CardanoPoolRelayType;
|
|
727
727
|
ipv4_address?: string;
|
|
728
728
|
ipv6_address?: string;
|
|
729
729
|
host_name?: string;
|
|
730
730
|
port?: number;
|
|
731
731
|
};
|
|
732
|
-
|
|
732
|
+
type CardanoPoolMetadataType = {
|
|
733
733
|
url: string;
|
|
734
734
|
hash: string;
|
|
735
735
|
};
|
|
736
|
-
|
|
736
|
+
type CardanoPoolParametersType = {
|
|
737
737
|
pool_id: string;
|
|
738
738
|
vrf_key_hash: string;
|
|
739
739
|
pledge: UintType;
|
|
@@ -745,7 +745,7 @@ declare type CardanoPoolParametersType = {
|
|
|
745
745
|
owners_count: number;
|
|
746
746
|
relays_count: number;
|
|
747
747
|
};
|
|
748
|
-
|
|
748
|
+
type CardanoTxCertificate = {
|
|
749
749
|
type: CardanoCertificateType;
|
|
750
750
|
path?: number[];
|
|
751
751
|
pool?: string;
|
|
@@ -753,17 +753,17 @@ declare type CardanoTxCertificate = {
|
|
|
753
753
|
script_hash?: string;
|
|
754
754
|
key_hash?: string;
|
|
755
755
|
};
|
|
756
|
-
|
|
756
|
+
type CardanoTxWithdrawal = {
|
|
757
757
|
path?: number[];
|
|
758
758
|
amount: UintType;
|
|
759
759
|
script_hash?: string;
|
|
760
760
|
key_hash?: string;
|
|
761
761
|
};
|
|
762
|
-
|
|
762
|
+
type CardanoGovernanceRegistrationDelegation = {
|
|
763
763
|
voting_public_key: string;
|
|
764
764
|
weight: number;
|
|
765
765
|
};
|
|
766
|
-
|
|
766
|
+
type CardanoGovernanceRegistrationParametersType = {
|
|
767
767
|
voting_public_key?: string;
|
|
768
768
|
staking_path: number[];
|
|
769
769
|
reward_address_parameters: CardanoAddressParametersType;
|
|
@@ -772,56 +772,56 @@ declare type CardanoGovernanceRegistrationParametersType = {
|
|
|
772
772
|
delegations: CardanoGovernanceRegistrationDelegation[];
|
|
773
773
|
voting_purpose?: number;
|
|
774
774
|
};
|
|
775
|
-
|
|
775
|
+
type CardanoTxAuxiliaryData = {
|
|
776
776
|
governance_registration_parameters?: CardanoGovernanceRegistrationParametersType;
|
|
777
777
|
hash?: string;
|
|
778
778
|
};
|
|
779
|
-
|
|
779
|
+
type CardanoTxMint = {
|
|
780
780
|
asset_groups_count: number;
|
|
781
781
|
};
|
|
782
|
-
|
|
782
|
+
type CardanoTxCollateralInput = {
|
|
783
783
|
prev_hash: string;
|
|
784
784
|
prev_index: number;
|
|
785
785
|
};
|
|
786
|
-
|
|
786
|
+
type CardanoTxRequiredSigner = {
|
|
787
787
|
key_hash?: string;
|
|
788
788
|
key_path?: number[];
|
|
789
789
|
};
|
|
790
|
-
|
|
790
|
+
type CardanoTxReferenceInput = {
|
|
791
791
|
prev_hash: string;
|
|
792
792
|
prev_index: number;
|
|
793
793
|
};
|
|
794
|
-
|
|
795
|
-
|
|
794
|
+
type CardanoTxItemAck = {};
|
|
795
|
+
type CardanoTxAuxiliaryDataSupplement = {
|
|
796
796
|
type: CardanoTxAuxiliaryDataSupplementType;
|
|
797
797
|
auxiliary_data_hash?: string;
|
|
798
798
|
governance_signature?: string;
|
|
799
799
|
};
|
|
800
|
-
|
|
800
|
+
type CardanoTxWitnessRequest = {
|
|
801
801
|
path: number[];
|
|
802
802
|
};
|
|
803
|
-
|
|
803
|
+
type CardanoTxWitnessResponse = {
|
|
804
804
|
type: CardanoTxWitnessType;
|
|
805
805
|
pub_key: string;
|
|
806
806
|
signature: string;
|
|
807
807
|
chain_code?: string;
|
|
808
808
|
};
|
|
809
|
-
|
|
810
|
-
|
|
809
|
+
type CardanoTxHostAck = {};
|
|
810
|
+
type CardanoTxBodyHash = {
|
|
811
811
|
tx_hash: string;
|
|
812
812
|
};
|
|
813
|
-
|
|
814
|
-
|
|
813
|
+
type CardanoSignTxFinished = {};
|
|
814
|
+
type CardanoSignMessage = {
|
|
815
815
|
address_n: number[];
|
|
816
816
|
message: string;
|
|
817
817
|
derivation_type: CardanoDerivationType;
|
|
818
818
|
network_id: number;
|
|
819
819
|
};
|
|
820
|
-
|
|
820
|
+
type CardanoMessageSignature = {
|
|
821
821
|
signature: string;
|
|
822
822
|
key: string;
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
type Success = {
|
|
825
825
|
message: string;
|
|
826
826
|
};
|
|
827
827
|
declare enum FailureType {
|
|
@@ -841,7 +841,7 @@ declare enum FailureType {
|
|
|
841
841
|
Failure_InvalidSession = 14,
|
|
842
842
|
Failure_FirmwareError = 99
|
|
843
843
|
}
|
|
844
|
-
|
|
844
|
+
type Failure = {
|
|
845
845
|
code?: FailureType;
|
|
846
846
|
message?: string;
|
|
847
847
|
};
|
|
@@ -867,12 +867,12 @@ declare enum Enum_ButtonRequestType {
|
|
|
867
867
|
ButtonRequest_PassphraseEntry = 19,
|
|
868
868
|
ButtonRequest_PinEntry = 20
|
|
869
869
|
}
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
type ButtonRequestType = keyof typeof Enum_ButtonRequestType;
|
|
871
|
+
type ButtonRequest = {
|
|
872
872
|
code?: ButtonRequestType;
|
|
873
873
|
pages?: number;
|
|
874
874
|
};
|
|
875
|
-
|
|
875
|
+
type ButtonAck = {};
|
|
876
876
|
declare enum Enum_PinMatrixRequestType {
|
|
877
877
|
PinMatrixRequestType_Current = 1,
|
|
878
878
|
PinMatrixRequestType_NewFirst = 2,
|
|
@@ -882,36 +882,36 @@ declare enum Enum_PinMatrixRequestType {
|
|
|
882
882
|
PinMatrixRequestType_BackupFirst = 6,
|
|
883
883
|
PinMatrixRequestType_BackupSecond = 7
|
|
884
884
|
}
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
type PinMatrixRequestType = keyof typeof Enum_PinMatrixRequestType;
|
|
886
|
+
type PinMatrixRequest = {
|
|
887
887
|
type?: PinMatrixRequestType;
|
|
888
888
|
};
|
|
889
|
-
|
|
889
|
+
type PinMatrixAck = {
|
|
890
890
|
pin: string;
|
|
891
891
|
new_pin?: string;
|
|
892
892
|
};
|
|
893
|
-
|
|
893
|
+
type PassphraseRequest = {
|
|
894
894
|
_on_device?: boolean;
|
|
895
895
|
};
|
|
896
|
-
|
|
896
|
+
type PassphraseAck = {
|
|
897
897
|
passphrase?: string;
|
|
898
898
|
_state?: string;
|
|
899
899
|
on_device?: boolean;
|
|
900
900
|
};
|
|
901
|
-
|
|
901
|
+
type Deprecated_PassphraseStateRequest = {
|
|
902
902
|
state?: string;
|
|
903
903
|
};
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
904
|
+
type Deprecated_PassphraseStateAck = {};
|
|
905
|
+
type BixinPinInputOnDevice = {};
|
|
906
|
+
type ConfluxGetAddress = {
|
|
907
907
|
address_n: number[];
|
|
908
908
|
show_display?: boolean;
|
|
909
909
|
chain_id?: number;
|
|
910
910
|
};
|
|
911
|
-
|
|
911
|
+
type ConfluxAddress = {
|
|
912
912
|
address?: string;
|
|
913
913
|
};
|
|
914
|
-
|
|
914
|
+
type ConfluxSignTx = {
|
|
915
915
|
address_n: number[];
|
|
916
916
|
nonce?: string;
|
|
917
917
|
gas_price?: string;
|
|
@@ -924,44 +924,44 @@ declare type ConfluxSignTx = {
|
|
|
924
924
|
data_length?: number;
|
|
925
925
|
chain_id?: number;
|
|
926
926
|
};
|
|
927
|
-
|
|
927
|
+
type ConfluxTxRequest = {
|
|
928
928
|
data_length?: number;
|
|
929
929
|
signature_v?: number;
|
|
930
930
|
signature_r?: string;
|
|
931
931
|
signature_s?: string;
|
|
932
932
|
};
|
|
933
|
-
|
|
933
|
+
type ConfluxTxAck = {
|
|
934
934
|
data_chunk?: string;
|
|
935
935
|
};
|
|
936
|
-
|
|
936
|
+
type ConfluxSignMessage = {
|
|
937
937
|
address_n: number[];
|
|
938
938
|
message?: string;
|
|
939
939
|
};
|
|
940
|
-
|
|
940
|
+
type ConfluxMessageSignature = {
|
|
941
941
|
signature?: string;
|
|
942
942
|
address?: string;
|
|
943
943
|
};
|
|
944
|
-
|
|
944
|
+
type ConfluxSignMessageCIP23 = {
|
|
945
945
|
address_n: number[];
|
|
946
946
|
domain_hash?: string;
|
|
947
947
|
message_hash?: string;
|
|
948
948
|
};
|
|
949
|
-
|
|
949
|
+
type CosmosGetAddress = {
|
|
950
950
|
address_n: number[];
|
|
951
951
|
hrp?: string;
|
|
952
952
|
show_display?: boolean;
|
|
953
953
|
};
|
|
954
|
-
|
|
954
|
+
type CosmosAddress = {
|
|
955
955
|
address?: string;
|
|
956
956
|
};
|
|
957
|
-
|
|
957
|
+
type CosmosSignTx = {
|
|
958
958
|
address_n: number[];
|
|
959
959
|
raw_tx: string;
|
|
960
960
|
};
|
|
961
|
-
|
|
961
|
+
type CosmosSignedTx = {
|
|
962
962
|
signature: string;
|
|
963
963
|
};
|
|
964
|
-
|
|
964
|
+
type CipherKeyValue = {
|
|
965
965
|
address_n: number[];
|
|
966
966
|
key: string;
|
|
967
967
|
value: string;
|
|
@@ -970,10 +970,10 @@ declare type CipherKeyValue = {
|
|
|
970
970
|
ask_on_decrypt?: boolean;
|
|
971
971
|
iv?: string;
|
|
972
972
|
};
|
|
973
|
-
|
|
973
|
+
type CipheredKeyValue = {
|
|
974
974
|
value: string;
|
|
975
975
|
};
|
|
976
|
-
|
|
976
|
+
type IdentityType = {
|
|
977
977
|
proto?: string;
|
|
978
978
|
user?: string;
|
|
979
979
|
host?: string;
|
|
@@ -981,38 +981,38 @@ declare type IdentityType = {
|
|
|
981
981
|
path?: string;
|
|
982
982
|
index?: number;
|
|
983
983
|
};
|
|
984
|
-
|
|
984
|
+
type SignIdentity = {
|
|
985
985
|
identity: IdentityType;
|
|
986
986
|
challenge_hidden?: string;
|
|
987
987
|
challenge_visual?: string;
|
|
988
988
|
ecdsa_curve_name?: string;
|
|
989
989
|
};
|
|
990
|
-
|
|
990
|
+
type SignedIdentity = {
|
|
991
991
|
address: string;
|
|
992
992
|
public_key: string;
|
|
993
993
|
signature: string;
|
|
994
994
|
};
|
|
995
|
-
|
|
995
|
+
type GetECDHSessionKey = {
|
|
996
996
|
identity: IdentityType;
|
|
997
997
|
peer_public_key: string;
|
|
998
998
|
ecdsa_curve_name?: string;
|
|
999
999
|
};
|
|
1000
|
-
|
|
1000
|
+
type ECDHSessionKey = {
|
|
1001
1001
|
session_key: string;
|
|
1002
1002
|
public_key?: string;
|
|
1003
1003
|
};
|
|
1004
|
-
|
|
1004
|
+
type Path = {
|
|
1005
1005
|
address_n: number[];
|
|
1006
1006
|
};
|
|
1007
|
-
|
|
1007
|
+
type BatchGetPublickeys = {
|
|
1008
1008
|
ecdsa_curve_name?: string;
|
|
1009
1009
|
paths: Path[];
|
|
1010
1010
|
};
|
|
1011
|
-
|
|
1011
|
+
type EcdsaPublicKeys = {
|
|
1012
1012
|
public_keys: string[];
|
|
1013
1013
|
};
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
type EmmcFixPermission = {};
|
|
1015
|
+
type EmmcPath = {
|
|
1016
1016
|
exist: boolean;
|
|
1017
1017
|
size: number;
|
|
1018
1018
|
year: number;
|
|
@@ -1027,10 +1027,10 @@ declare type EmmcPath = {
|
|
|
1027
1027
|
archive: boolean;
|
|
1028
1028
|
directory: boolean;
|
|
1029
1029
|
};
|
|
1030
|
-
|
|
1030
|
+
type EmmcPathInfo = {
|
|
1031
1031
|
path: string;
|
|
1032
1032
|
};
|
|
1033
|
-
|
|
1033
|
+
type EmmcFile = {
|
|
1034
1034
|
path: string;
|
|
1035
1035
|
offset: number;
|
|
1036
1036
|
len: number;
|
|
@@ -1038,42 +1038,42 @@ declare type EmmcFile = {
|
|
|
1038
1038
|
data_hash?: number;
|
|
1039
1039
|
processed_byte?: number;
|
|
1040
1040
|
};
|
|
1041
|
-
|
|
1041
|
+
type EmmcFileRead = {
|
|
1042
1042
|
file: EmmcFile;
|
|
1043
1043
|
ui_percentage?: number;
|
|
1044
1044
|
};
|
|
1045
|
-
|
|
1045
|
+
type EmmcFileWrite = {
|
|
1046
1046
|
file: EmmcFile;
|
|
1047
1047
|
overwrite: boolean;
|
|
1048
1048
|
append: boolean;
|
|
1049
1049
|
ui_percentage?: number;
|
|
1050
1050
|
};
|
|
1051
|
-
|
|
1051
|
+
type EmmcFileDelete = {
|
|
1052
1052
|
path: string;
|
|
1053
1053
|
};
|
|
1054
|
-
|
|
1054
|
+
type EmmcDir = {
|
|
1055
1055
|
path: string;
|
|
1056
1056
|
child_dirs?: string;
|
|
1057
1057
|
child_files?: string;
|
|
1058
1058
|
};
|
|
1059
|
-
|
|
1059
|
+
type EmmcDirList = {
|
|
1060
1060
|
path: string;
|
|
1061
1061
|
};
|
|
1062
|
-
|
|
1062
|
+
type EmmcDirMake = {
|
|
1063
1063
|
path: string;
|
|
1064
1064
|
};
|
|
1065
|
-
|
|
1065
|
+
type EmmcDirRemove = {
|
|
1066
1066
|
path: string;
|
|
1067
1067
|
};
|
|
1068
|
-
|
|
1068
|
+
type EosGetPublicKey = {
|
|
1069
1069
|
address_n: number[];
|
|
1070
1070
|
show_display?: boolean;
|
|
1071
1071
|
};
|
|
1072
|
-
|
|
1072
|
+
type EosPublicKey = {
|
|
1073
1073
|
wif_public_key: string;
|
|
1074
1074
|
raw_public_key: string;
|
|
1075
1075
|
};
|
|
1076
|
-
|
|
1076
|
+
type EosTxHeader = {
|
|
1077
1077
|
expiration: number;
|
|
1078
1078
|
ref_block_num: number;
|
|
1079
1079
|
ref_block_prefix: number;
|
|
@@ -1081,121 +1081,121 @@ declare type EosTxHeader = {
|
|
|
1081
1081
|
max_cpu_usage_ms: number;
|
|
1082
1082
|
delay_sec: number;
|
|
1083
1083
|
};
|
|
1084
|
-
|
|
1084
|
+
type EosSignTx = {
|
|
1085
1085
|
address_n: number[];
|
|
1086
1086
|
chain_id?: string;
|
|
1087
1087
|
header?: EosTxHeader;
|
|
1088
1088
|
num_actions?: number;
|
|
1089
1089
|
};
|
|
1090
|
-
|
|
1090
|
+
type EosTxActionRequest = {
|
|
1091
1091
|
data_size?: number;
|
|
1092
1092
|
};
|
|
1093
|
-
|
|
1093
|
+
type EosAsset = {
|
|
1094
1094
|
amount?: UintType;
|
|
1095
1095
|
symbol?: string;
|
|
1096
1096
|
};
|
|
1097
|
-
|
|
1097
|
+
type EosPermissionLevel = {
|
|
1098
1098
|
actor?: string;
|
|
1099
1099
|
permission?: string;
|
|
1100
1100
|
};
|
|
1101
|
-
|
|
1101
|
+
type EosAuthorizationKey = {
|
|
1102
1102
|
type?: number;
|
|
1103
1103
|
key: string;
|
|
1104
1104
|
address_n?: number[];
|
|
1105
1105
|
weight: number;
|
|
1106
1106
|
};
|
|
1107
|
-
|
|
1107
|
+
type EosAuthorizationAccount = {
|
|
1108
1108
|
account?: EosPermissionLevel;
|
|
1109
1109
|
weight?: number;
|
|
1110
1110
|
};
|
|
1111
|
-
|
|
1111
|
+
type EosAuthorizationWait = {
|
|
1112
1112
|
wait_sec?: number;
|
|
1113
1113
|
weight?: number;
|
|
1114
1114
|
};
|
|
1115
|
-
|
|
1115
|
+
type EosAuthorization = {
|
|
1116
1116
|
threshold?: number;
|
|
1117
1117
|
keys: EosAuthorizationKey[];
|
|
1118
1118
|
accounts: EosAuthorizationAccount[];
|
|
1119
1119
|
waits: EosAuthorizationWait[];
|
|
1120
1120
|
};
|
|
1121
|
-
|
|
1121
|
+
type EosActionCommon = {
|
|
1122
1122
|
account?: string;
|
|
1123
1123
|
name?: string;
|
|
1124
1124
|
authorization: EosPermissionLevel[];
|
|
1125
1125
|
};
|
|
1126
|
-
|
|
1126
|
+
type EosActionTransfer = {
|
|
1127
1127
|
sender?: string;
|
|
1128
1128
|
receiver?: string;
|
|
1129
1129
|
quantity?: EosAsset;
|
|
1130
1130
|
memo?: string;
|
|
1131
1131
|
};
|
|
1132
|
-
|
|
1132
|
+
type EosActionDelegate = {
|
|
1133
1133
|
sender?: string;
|
|
1134
1134
|
receiver?: string;
|
|
1135
1135
|
net_quantity?: EosAsset;
|
|
1136
1136
|
cpu_quantity?: EosAsset;
|
|
1137
1137
|
transfer?: boolean;
|
|
1138
1138
|
};
|
|
1139
|
-
|
|
1139
|
+
type EosActionUndelegate = {
|
|
1140
1140
|
sender?: string;
|
|
1141
1141
|
receiver?: string;
|
|
1142
1142
|
net_quantity?: EosAsset;
|
|
1143
1143
|
cpu_quantity?: EosAsset;
|
|
1144
1144
|
};
|
|
1145
|
-
|
|
1145
|
+
type EosActionRefund = {
|
|
1146
1146
|
owner?: string;
|
|
1147
1147
|
};
|
|
1148
|
-
|
|
1148
|
+
type EosActionBuyRam = {
|
|
1149
1149
|
payer?: string;
|
|
1150
1150
|
receiver?: string;
|
|
1151
1151
|
quantity?: EosAsset;
|
|
1152
1152
|
};
|
|
1153
|
-
|
|
1153
|
+
type EosActionBuyRamBytes = {
|
|
1154
1154
|
payer?: string;
|
|
1155
1155
|
receiver?: string;
|
|
1156
1156
|
bytes?: number;
|
|
1157
1157
|
};
|
|
1158
|
-
|
|
1158
|
+
type EosActionSellRam = {
|
|
1159
1159
|
account?: string;
|
|
1160
1160
|
bytes?: number;
|
|
1161
1161
|
};
|
|
1162
|
-
|
|
1162
|
+
type EosActionVoteProducer = {
|
|
1163
1163
|
voter?: string;
|
|
1164
1164
|
proxy?: string;
|
|
1165
1165
|
producers: string[];
|
|
1166
1166
|
};
|
|
1167
|
-
|
|
1167
|
+
type EosActionUpdateAuth = {
|
|
1168
1168
|
account?: string;
|
|
1169
1169
|
permission?: string;
|
|
1170
1170
|
parent?: string;
|
|
1171
1171
|
auth?: EosAuthorization;
|
|
1172
1172
|
};
|
|
1173
|
-
|
|
1173
|
+
type EosActionDeleteAuth = {
|
|
1174
1174
|
account?: string;
|
|
1175
1175
|
permission?: string;
|
|
1176
1176
|
};
|
|
1177
|
-
|
|
1177
|
+
type EosActionLinkAuth = {
|
|
1178
1178
|
account?: string;
|
|
1179
1179
|
code?: string;
|
|
1180
1180
|
type?: string;
|
|
1181
1181
|
requirement?: string;
|
|
1182
1182
|
};
|
|
1183
|
-
|
|
1183
|
+
type EosActionUnlinkAuth = {
|
|
1184
1184
|
account?: string;
|
|
1185
1185
|
code?: string;
|
|
1186
1186
|
type?: string;
|
|
1187
1187
|
};
|
|
1188
|
-
|
|
1188
|
+
type EosActionNewAccount = {
|
|
1189
1189
|
creator?: string;
|
|
1190
1190
|
name?: string;
|
|
1191
1191
|
owner?: EosAuthorization;
|
|
1192
1192
|
active?: EosAuthorization;
|
|
1193
1193
|
};
|
|
1194
|
-
|
|
1194
|
+
type EosActionUnknown = {
|
|
1195
1195
|
data_size: number;
|
|
1196
1196
|
data_chunk?: string;
|
|
1197
1197
|
};
|
|
1198
|
-
|
|
1198
|
+
type EosTxActionAck = {
|
|
1199
1199
|
common?: EosActionCommon;
|
|
1200
1200
|
transfer?: EosActionTransfer;
|
|
1201
1201
|
delegate?: EosActionDelegate;
|
|
@@ -1212,14 +1212,14 @@ declare type EosTxActionAck = {
|
|
|
1212
1212
|
new_account?: EosActionNewAccount;
|
|
1213
1213
|
unknown?: EosActionUnknown;
|
|
1214
1214
|
};
|
|
1215
|
-
|
|
1215
|
+
type EosSignedTx = {
|
|
1216
1216
|
signature: string;
|
|
1217
1217
|
};
|
|
1218
1218
|
declare enum EthereumDefinitionType {
|
|
1219
1219
|
NETWORK = 0,
|
|
1220
1220
|
TOKEN = 1
|
|
1221
1221
|
}
|
|
1222
|
-
|
|
1222
|
+
type EthereumNetworkInfo = {
|
|
1223
1223
|
chain_id: number;
|
|
1224
1224
|
symbol: string;
|
|
1225
1225
|
slip44: number;
|
|
@@ -1227,31 +1227,31 @@ declare type EthereumNetworkInfo = {
|
|
|
1227
1227
|
icon?: string;
|
|
1228
1228
|
primary_color?: number;
|
|
1229
1229
|
};
|
|
1230
|
-
|
|
1230
|
+
type EthereumTokenInfo = {
|
|
1231
1231
|
address: string;
|
|
1232
1232
|
chain_id: number;
|
|
1233
1233
|
symbol: string;
|
|
1234
1234
|
decimals: number;
|
|
1235
1235
|
name: string;
|
|
1236
1236
|
};
|
|
1237
|
-
|
|
1237
|
+
type EthereumDefinitions = {
|
|
1238
1238
|
encoded_network?: ArrayBuffer;
|
|
1239
1239
|
encoded_token?: ArrayBuffer;
|
|
1240
1240
|
};
|
|
1241
|
-
|
|
1241
|
+
type EthereumSignTypedDataOneKey = {
|
|
1242
1242
|
address_n: number[];
|
|
1243
1243
|
primary_type: string;
|
|
1244
1244
|
metamask_v4_compat?: boolean;
|
|
1245
1245
|
chain_id?: number;
|
|
1246
1246
|
};
|
|
1247
|
-
|
|
1247
|
+
type EthereumTypedDataStructRequestOneKey = {
|
|
1248
1248
|
name: string;
|
|
1249
1249
|
};
|
|
1250
|
-
|
|
1250
|
+
type EthereumStructMemberOneKey = {
|
|
1251
1251
|
type: EthereumFieldTypeOneKey;
|
|
1252
1252
|
name: string;
|
|
1253
1253
|
};
|
|
1254
|
-
|
|
1254
|
+
type EthereumFieldTypeOneKey = {
|
|
1255
1255
|
data_type: EthereumDataTypeOneKey;
|
|
1256
1256
|
size?: number;
|
|
1257
1257
|
entry_type?: EthereumFieldTypeOneKey;
|
|
@@ -1267,22 +1267,22 @@ declare enum EthereumDataTypeOneKey {
|
|
|
1267
1267
|
ARRAY = 7,
|
|
1268
1268
|
STRUCT = 8
|
|
1269
1269
|
}
|
|
1270
|
-
|
|
1270
|
+
type EthereumTypedDataStructAckOneKey = {
|
|
1271
1271
|
members: EthereumStructMemberOneKey[];
|
|
1272
1272
|
};
|
|
1273
|
-
|
|
1273
|
+
type EthereumTypedDataValueRequestOneKey = {
|
|
1274
1274
|
member_path: number[];
|
|
1275
1275
|
};
|
|
1276
|
-
|
|
1276
|
+
type EthereumTypedDataValueAckOneKey = {
|
|
1277
1277
|
value: string;
|
|
1278
1278
|
};
|
|
1279
|
-
|
|
1279
|
+
type EthereumSignTypedData = {
|
|
1280
1280
|
address_n: number[];
|
|
1281
1281
|
primary_type: string;
|
|
1282
1282
|
metamask_v4_compat?: boolean;
|
|
1283
1283
|
definitions?: EthereumDefinitions;
|
|
1284
1284
|
};
|
|
1285
|
-
|
|
1285
|
+
type EthereumTypedDataStructRequest = {
|
|
1286
1286
|
name: string;
|
|
1287
1287
|
};
|
|
1288
1288
|
declare enum EthereumDataType {
|
|
@@ -1295,44 +1295,44 @@ declare enum EthereumDataType {
|
|
|
1295
1295
|
ARRAY = 7,
|
|
1296
1296
|
STRUCT = 8
|
|
1297
1297
|
}
|
|
1298
|
-
|
|
1298
|
+
type EthereumFieldType = {
|
|
1299
1299
|
data_type: EthereumDataType;
|
|
1300
1300
|
size?: number;
|
|
1301
1301
|
entry_type?: EthereumFieldType;
|
|
1302
1302
|
struct_name?: string;
|
|
1303
1303
|
};
|
|
1304
|
-
|
|
1304
|
+
type EthereumStructMember = {
|
|
1305
1305
|
type: EthereumFieldType;
|
|
1306
1306
|
name: string;
|
|
1307
1307
|
};
|
|
1308
|
-
|
|
1308
|
+
type EthereumTypedDataStructAck = {
|
|
1309
1309
|
members: EthereumStructMember[];
|
|
1310
1310
|
};
|
|
1311
|
-
|
|
1311
|
+
type EthereumTypedDataValueRequest = {
|
|
1312
1312
|
member_path: number[];
|
|
1313
1313
|
};
|
|
1314
|
-
|
|
1314
|
+
type EthereumTypedDataValueAck = {
|
|
1315
1315
|
value: string;
|
|
1316
1316
|
};
|
|
1317
|
-
|
|
1317
|
+
type EthereumGetPublicKeyOneKey = {
|
|
1318
1318
|
address_n: number[];
|
|
1319
1319
|
show_display?: boolean;
|
|
1320
1320
|
chain_id?: number;
|
|
1321
1321
|
};
|
|
1322
|
-
|
|
1322
|
+
type EthereumPublicKeyOneKey = {
|
|
1323
1323
|
node: HDNodeType;
|
|
1324
1324
|
xpub: string;
|
|
1325
1325
|
};
|
|
1326
|
-
|
|
1326
|
+
type EthereumGetAddressOneKey = {
|
|
1327
1327
|
address_n: number[];
|
|
1328
1328
|
show_display?: boolean;
|
|
1329
1329
|
chain_id?: number;
|
|
1330
1330
|
};
|
|
1331
|
-
|
|
1331
|
+
type EthereumAddressOneKey = {
|
|
1332
1332
|
_old_address?: string;
|
|
1333
1333
|
address?: string;
|
|
1334
1334
|
};
|
|
1335
|
-
|
|
1335
|
+
type EthereumSignTxOneKey = {
|
|
1336
1336
|
address_n: number[];
|
|
1337
1337
|
nonce?: string;
|
|
1338
1338
|
gas_price: string;
|
|
@@ -1344,11 +1344,11 @@ declare type EthereumSignTxOneKey = {
|
|
|
1344
1344
|
chain_id: number;
|
|
1345
1345
|
tx_type?: number;
|
|
1346
1346
|
};
|
|
1347
|
-
|
|
1347
|
+
type EthereumAccessListOneKey = {
|
|
1348
1348
|
address: string;
|
|
1349
1349
|
storage_keys: string[];
|
|
1350
1350
|
};
|
|
1351
|
-
|
|
1351
|
+
type EthereumSignTxEIP1559OneKey = {
|
|
1352
1352
|
address_n: number[];
|
|
1353
1353
|
nonce: string;
|
|
1354
1354
|
max_gas_fee: string;
|
|
@@ -1361,63 +1361,63 @@ declare type EthereumSignTxEIP1559OneKey = {
|
|
|
1361
1361
|
chain_id: number;
|
|
1362
1362
|
access_list: EthereumAccessListOneKey[];
|
|
1363
1363
|
};
|
|
1364
|
-
|
|
1364
|
+
type EthereumTxRequestOneKey = {
|
|
1365
1365
|
data_length?: number;
|
|
1366
1366
|
signature_v?: number;
|
|
1367
1367
|
signature_r?: string;
|
|
1368
1368
|
signature_s?: string;
|
|
1369
1369
|
};
|
|
1370
|
-
|
|
1370
|
+
type EthereumTxAckOneKey = {
|
|
1371
1371
|
data_chunk: string;
|
|
1372
1372
|
};
|
|
1373
|
-
|
|
1373
|
+
type EthereumSignMessageOneKey = {
|
|
1374
1374
|
address_n: number[];
|
|
1375
1375
|
message: string;
|
|
1376
1376
|
chain_id?: number;
|
|
1377
1377
|
};
|
|
1378
|
-
|
|
1378
|
+
type EthereumMessageSignatureOneKey = {
|
|
1379
1379
|
signature: string;
|
|
1380
1380
|
address: string;
|
|
1381
1381
|
};
|
|
1382
|
-
|
|
1382
|
+
type EthereumVerifyMessageOneKey = {
|
|
1383
1383
|
signature: string;
|
|
1384
1384
|
message: string;
|
|
1385
1385
|
address: string;
|
|
1386
1386
|
chain_id?: number;
|
|
1387
1387
|
};
|
|
1388
|
-
|
|
1388
|
+
type EthereumSignTypedHashOneKey = {
|
|
1389
1389
|
address_n: number[];
|
|
1390
1390
|
domain_separator_hash: string;
|
|
1391
1391
|
message_hash?: string;
|
|
1392
1392
|
chain_id?: number;
|
|
1393
1393
|
};
|
|
1394
|
-
|
|
1394
|
+
type EthereumTypedDataSignatureOneKey = {
|
|
1395
1395
|
signature: string;
|
|
1396
1396
|
address: string;
|
|
1397
1397
|
};
|
|
1398
|
-
|
|
1398
|
+
type EthereumSignMessageEIP712 = {
|
|
1399
1399
|
address_n: number[];
|
|
1400
1400
|
domain_hash?: string;
|
|
1401
1401
|
message_hash?: string;
|
|
1402
1402
|
};
|
|
1403
|
-
|
|
1403
|
+
type EthereumGetPublicKey = {
|
|
1404
1404
|
address_n: number[];
|
|
1405
1405
|
show_display?: boolean;
|
|
1406
1406
|
};
|
|
1407
|
-
|
|
1407
|
+
type EthereumPublicKey = {
|
|
1408
1408
|
node: HDNodeType;
|
|
1409
1409
|
xpub: string;
|
|
1410
1410
|
};
|
|
1411
|
-
|
|
1411
|
+
type EthereumGetAddress = {
|
|
1412
1412
|
address_n: number[];
|
|
1413
1413
|
show_display?: boolean;
|
|
1414
1414
|
encoded_network?: ArrayBuffer;
|
|
1415
1415
|
};
|
|
1416
|
-
|
|
1416
|
+
type EthereumAddress = {
|
|
1417
1417
|
_old_address?: string;
|
|
1418
1418
|
address: string;
|
|
1419
1419
|
};
|
|
1420
|
-
|
|
1420
|
+
type EthereumSignTx = {
|
|
1421
1421
|
address_n: number[];
|
|
1422
1422
|
nonce?: string;
|
|
1423
1423
|
gas_price: string;
|
|
@@ -1430,11 +1430,11 @@ declare type EthereumSignTx = {
|
|
|
1430
1430
|
tx_type?: number;
|
|
1431
1431
|
definitions?: EthereumDefinitions;
|
|
1432
1432
|
};
|
|
1433
|
-
|
|
1433
|
+
type EthereumAccessList = {
|
|
1434
1434
|
address: string;
|
|
1435
1435
|
storage_keys: string[];
|
|
1436
1436
|
};
|
|
1437
|
-
|
|
1437
|
+
type EthereumSignTxEIP1559 = {
|
|
1438
1438
|
address_n: number[];
|
|
1439
1439
|
nonce: string;
|
|
1440
1440
|
max_gas_fee: string;
|
|
@@ -1448,80 +1448,80 @@ declare type EthereumSignTxEIP1559 = {
|
|
|
1448
1448
|
access_list: EthereumAccessList[];
|
|
1449
1449
|
definitions?: EthereumDefinitions;
|
|
1450
1450
|
};
|
|
1451
|
-
|
|
1451
|
+
type EthereumTxRequest = {
|
|
1452
1452
|
data_length?: number;
|
|
1453
1453
|
signature_v?: number;
|
|
1454
1454
|
signature_r?: string;
|
|
1455
1455
|
signature_s?: string;
|
|
1456
1456
|
};
|
|
1457
|
-
|
|
1457
|
+
type EthereumTxAck = {
|
|
1458
1458
|
data_chunk: string;
|
|
1459
1459
|
};
|
|
1460
|
-
|
|
1460
|
+
type EthereumSignMessage = {
|
|
1461
1461
|
address_n: number[];
|
|
1462
1462
|
message: string;
|
|
1463
1463
|
encoded_network?: ArrayBuffer;
|
|
1464
1464
|
};
|
|
1465
|
-
|
|
1465
|
+
type EthereumMessageSignature = {
|
|
1466
1466
|
signature: string;
|
|
1467
1467
|
address: string;
|
|
1468
1468
|
};
|
|
1469
|
-
|
|
1469
|
+
type EthereumVerifyMessage = {
|
|
1470
1470
|
signature: string;
|
|
1471
1471
|
message: string;
|
|
1472
1472
|
address: string;
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1474
|
+
type EthereumSignTypedHash = {
|
|
1475
1475
|
address_n: number[];
|
|
1476
1476
|
domain_separator_hash: string;
|
|
1477
1477
|
message_hash?: string;
|
|
1478
1478
|
encoded_network?: ArrayBuffer;
|
|
1479
1479
|
};
|
|
1480
|
-
|
|
1480
|
+
type EthereumTypedDataSignature = {
|
|
1481
1481
|
signature: string;
|
|
1482
1482
|
address: string;
|
|
1483
1483
|
};
|
|
1484
|
-
|
|
1484
|
+
type FilecoinGetAddress = {
|
|
1485
1485
|
address_n: number[];
|
|
1486
1486
|
show_display?: boolean;
|
|
1487
1487
|
testnet?: boolean;
|
|
1488
1488
|
};
|
|
1489
|
-
|
|
1489
|
+
type FilecoinAddress = {
|
|
1490
1490
|
address?: string;
|
|
1491
1491
|
};
|
|
1492
|
-
|
|
1492
|
+
type FilecoinSignTx = {
|
|
1493
1493
|
address_n: number[];
|
|
1494
1494
|
raw_tx: string;
|
|
1495
1495
|
testnet?: boolean;
|
|
1496
1496
|
};
|
|
1497
|
-
|
|
1497
|
+
type FilecoinSignedTx = {
|
|
1498
1498
|
signature: string;
|
|
1499
1499
|
};
|
|
1500
|
-
|
|
1500
|
+
type KaspaGetAddress = {
|
|
1501
1501
|
address_n: number[];
|
|
1502
1502
|
show_display?: boolean;
|
|
1503
1503
|
prefix?: string;
|
|
1504
1504
|
scheme?: string;
|
|
1505
1505
|
};
|
|
1506
|
-
|
|
1506
|
+
type KaspaAddress = {
|
|
1507
1507
|
address: string;
|
|
1508
1508
|
};
|
|
1509
|
-
|
|
1509
|
+
type KaspaSignTx = {
|
|
1510
1510
|
address_n: number[];
|
|
1511
1511
|
raw_message: string;
|
|
1512
1512
|
scheme?: string;
|
|
1513
1513
|
prefix?: string;
|
|
1514
1514
|
input_count?: number;
|
|
1515
1515
|
};
|
|
1516
|
-
|
|
1516
|
+
type KaspaTxInputRequest = {
|
|
1517
1517
|
request_index: number;
|
|
1518
1518
|
signature?: string;
|
|
1519
1519
|
};
|
|
1520
|
-
|
|
1520
|
+
type KaspaTxInputAck = {
|
|
1521
1521
|
address_n: number[];
|
|
1522
1522
|
raw_message: string;
|
|
1523
1523
|
};
|
|
1524
|
-
|
|
1524
|
+
type KaspaSignedTx = {
|
|
1525
1525
|
signature: string;
|
|
1526
1526
|
};
|
|
1527
1527
|
declare enum Enum_BackupType {
|
|
@@ -1529,19 +1529,19 @@ declare enum Enum_BackupType {
|
|
|
1529
1529
|
Slip39_Basic = 1,
|
|
1530
1530
|
Slip39_Advanced = 2
|
|
1531
1531
|
}
|
|
1532
|
-
|
|
1532
|
+
type BackupType = keyof typeof Enum_BackupType;
|
|
1533
1533
|
declare enum Enum_SafetyCheckLevel {
|
|
1534
1534
|
Strict = 0,
|
|
1535
1535
|
PromptAlways = 1,
|
|
1536
1536
|
PromptTemporarily = 2
|
|
1537
1537
|
}
|
|
1538
|
-
|
|
1539
|
-
|
|
1538
|
+
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
|
|
1539
|
+
type Initialize = {
|
|
1540
1540
|
session_id?: string;
|
|
1541
1541
|
_skip_passphrase?: boolean;
|
|
1542
1542
|
derive_cardano?: boolean;
|
|
1543
1543
|
};
|
|
1544
|
-
|
|
1544
|
+
type GetFeatures = {};
|
|
1545
1545
|
declare enum Enum_Capability {
|
|
1546
1546
|
Capability_Bitcoin = 1,
|
|
1547
1547
|
Capability_Bitcoin_like = 2,
|
|
@@ -1561,8 +1561,19 @@ declare enum Enum_Capability {
|
|
|
1561
1561
|
Capability_ShamirGroups = 16,
|
|
1562
1562
|
Capability_PassphraseEntry = 17
|
|
1563
1563
|
}
|
|
1564
|
-
|
|
1565
|
-
declare
|
|
1564
|
+
type Capability = keyof typeof Enum_Capability;
|
|
1565
|
+
declare enum OneKeyDeviceType {
|
|
1566
|
+
CLASSIC = 0,
|
|
1567
|
+
CLASSIC1S = 1,
|
|
1568
|
+
MINI = 2,
|
|
1569
|
+
TOUCH = 3,
|
|
1570
|
+
TOUCH_PRO = 4
|
|
1571
|
+
}
|
|
1572
|
+
declare enum OneKeySeType {
|
|
1573
|
+
THD89 = 0,
|
|
1574
|
+
SE608A = 1
|
|
1575
|
+
}
|
|
1576
|
+
type Features = {
|
|
1566
1577
|
vendor: string;
|
|
1567
1578
|
major_version: number;
|
|
1568
1579
|
minor_version: number;
|
|
@@ -1621,15 +1632,28 @@ declare type Features = {
|
|
|
1621
1632
|
coin_switch?: number;
|
|
1622
1633
|
build_id?: string;
|
|
1623
1634
|
battery_level?: number;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1635
|
+
onekey_device_type?: string | null;
|
|
1636
|
+
onekey_se_type?: string | null;
|
|
1637
|
+
onekey_board_version?: string;
|
|
1638
|
+
onekey_board_hash?: string;
|
|
1639
|
+
onekey_boot_version?: string;
|
|
1640
|
+
onekey_boot_hash?: string;
|
|
1641
|
+
onekey_se_version?: string;
|
|
1642
|
+
onekey_se_hash?: string;
|
|
1643
|
+
onekey_se_build_id?: string;
|
|
1644
|
+
onekey_firmware_version?: string;
|
|
1645
|
+
onekey_firmware_hash?: string;
|
|
1646
|
+
onekey_firmware_build_id?: string;
|
|
1647
|
+
onekey_serial_no?: string;
|
|
1648
|
+
};
|
|
1649
|
+
type LockDevice = {};
|
|
1650
|
+
type EndSession = {};
|
|
1627
1651
|
declare enum ExportType {
|
|
1628
1652
|
SeedEncExportType_NO = 0,
|
|
1629
1653
|
SeedEncExportType_YES = 1,
|
|
1630
1654
|
MnemonicPlainExportType_YES = 2
|
|
1631
1655
|
}
|
|
1632
|
-
|
|
1656
|
+
type ApplySettings = {
|
|
1633
1657
|
language?: string;
|
|
1634
1658
|
label?: string;
|
|
1635
1659
|
use_passphrase?: boolean;
|
|
@@ -1648,13 +1672,13 @@ declare type ApplySettings = {
|
|
|
1648
1672
|
fastpay_money_limit?: number;
|
|
1649
1673
|
fastpay_times?: number;
|
|
1650
1674
|
};
|
|
1651
|
-
|
|
1675
|
+
type ApplyFlags = {
|
|
1652
1676
|
flags: number;
|
|
1653
1677
|
};
|
|
1654
|
-
|
|
1678
|
+
type ChangePin = {
|
|
1655
1679
|
remove?: boolean;
|
|
1656
1680
|
};
|
|
1657
|
-
|
|
1681
|
+
type ChangeWipeCode = {
|
|
1658
1682
|
remove?: boolean;
|
|
1659
1683
|
};
|
|
1660
1684
|
declare enum SdProtectOperationType {
|
|
@@ -1662,22 +1686,22 @@ declare enum SdProtectOperationType {
|
|
|
1662
1686
|
ENABLE = 1,
|
|
1663
1687
|
REFRESH = 2
|
|
1664
1688
|
}
|
|
1665
|
-
|
|
1689
|
+
type SdProtect = {
|
|
1666
1690
|
operation: SdProtectOperationType;
|
|
1667
1691
|
};
|
|
1668
|
-
|
|
1692
|
+
type Ping = {
|
|
1669
1693
|
message?: string;
|
|
1670
1694
|
button_protection?: boolean;
|
|
1671
1695
|
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1696
|
+
type Cancel = {};
|
|
1697
|
+
type GetEntropy = {
|
|
1674
1698
|
size: number;
|
|
1675
1699
|
};
|
|
1676
|
-
|
|
1700
|
+
type Entropy = {
|
|
1677
1701
|
entropy: string;
|
|
1678
1702
|
};
|
|
1679
|
-
|
|
1680
|
-
|
|
1703
|
+
type WipeDevice = {};
|
|
1704
|
+
type ResetDevice = {
|
|
1681
1705
|
display_random?: boolean;
|
|
1682
1706
|
strength?: number;
|
|
1683
1707
|
passphrase_protection?: boolean;
|
|
@@ -1689,16 +1713,16 @@ declare type ResetDevice = {
|
|
|
1689
1713
|
no_backup?: boolean;
|
|
1690
1714
|
backup_type?: string | number;
|
|
1691
1715
|
};
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1716
|
+
type BackupDevice = {};
|
|
1717
|
+
type EntropyRequest = {};
|
|
1718
|
+
type EntropyAck = {
|
|
1695
1719
|
entropy: string;
|
|
1696
1720
|
};
|
|
1697
1721
|
declare enum RecoveryDeviceType {
|
|
1698
1722
|
RecoveryDeviceType_ScrambledWords = 0,
|
|
1699
1723
|
RecoveryDeviceType_Matrix = 1
|
|
1700
1724
|
}
|
|
1701
|
-
|
|
1725
|
+
type RecoveryDevice = {
|
|
1702
1726
|
word_count?: number;
|
|
1703
1727
|
passphrase_protection?: boolean;
|
|
1704
1728
|
pin_protection?: boolean;
|
|
@@ -1714,56 +1738,56 @@ declare enum Enum_WordRequestType {
|
|
|
1714
1738
|
WordRequestType_Matrix9 = 1,
|
|
1715
1739
|
WordRequestType_Matrix6 = 2
|
|
1716
1740
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1741
|
+
type WordRequestType = keyof typeof Enum_WordRequestType;
|
|
1742
|
+
type WordRequest = {
|
|
1719
1743
|
type: WordRequestType;
|
|
1720
1744
|
};
|
|
1721
|
-
|
|
1745
|
+
type WordAck = {
|
|
1722
1746
|
word: string;
|
|
1723
1747
|
};
|
|
1724
|
-
|
|
1748
|
+
type SetU2FCounter = {
|
|
1725
1749
|
u2f_counter: number;
|
|
1726
1750
|
};
|
|
1727
|
-
|
|
1728
|
-
|
|
1751
|
+
type GetNextU2FCounter = {};
|
|
1752
|
+
type NextU2FCounter = {
|
|
1729
1753
|
u2f_counter: number;
|
|
1730
1754
|
};
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1755
|
+
type DoPreauthorized = {};
|
|
1756
|
+
type PreauthorizedRequest = {};
|
|
1757
|
+
type CancelAuthorization = {};
|
|
1734
1758
|
declare enum SeedRequestType {
|
|
1735
1759
|
SeedRequestType_Gen = 0,
|
|
1736
1760
|
SeedRequestType_EncExport = 1,
|
|
1737
1761
|
SeedRequestType_EncImport = 2
|
|
1738
1762
|
}
|
|
1739
|
-
|
|
1763
|
+
type BixinSeedOperate = {
|
|
1740
1764
|
type: SeedRequestType;
|
|
1741
1765
|
seed_importData?: string;
|
|
1742
1766
|
};
|
|
1743
|
-
|
|
1767
|
+
type BixinMessageSE = {
|
|
1744
1768
|
inputmessage: string;
|
|
1745
1769
|
};
|
|
1746
|
-
|
|
1770
|
+
type BixinOutMessageSE = {
|
|
1747
1771
|
outmessage?: string;
|
|
1748
1772
|
};
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1773
|
+
type DeviceBackToBoot = {};
|
|
1774
|
+
type BixinBackupRequest = {};
|
|
1775
|
+
type BixinBackupAck = {
|
|
1752
1776
|
data: string;
|
|
1753
1777
|
};
|
|
1754
|
-
|
|
1778
|
+
type BixinRestoreRequest = {
|
|
1755
1779
|
data: string;
|
|
1756
1780
|
language?: string;
|
|
1757
1781
|
label?: string;
|
|
1758
1782
|
passphrase_protection?: boolean;
|
|
1759
1783
|
};
|
|
1760
|
-
|
|
1784
|
+
type BixinRestoreAck = {
|
|
1761
1785
|
data: string;
|
|
1762
1786
|
};
|
|
1763
|
-
|
|
1787
|
+
type BixinVerifyDeviceRequest = {
|
|
1764
1788
|
data: string;
|
|
1765
1789
|
};
|
|
1766
|
-
|
|
1790
|
+
type BixinVerifyDeviceAck = {
|
|
1767
1791
|
cert: string;
|
|
1768
1792
|
signature: string;
|
|
1769
1793
|
};
|
|
@@ -1772,30 +1796,30 @@ declare enum WL_OperationType {
|
|
|
1772
1796
|
WL_OperationType_Delete = 1,
|
|
1773
1797
|
WL_OperationType_Inquire = 2
|
|
1774
1798
|
}
|
|
1775
|
-
|
|
1799
|
+
type BixinWhiteListRequest = {
|
|
1776
1800
|
type: WL_OperationType;
|
|
1777
1801
|
addr_in?: string;
|
|
1778
1802
|
};
|
|
1779
|
-
|
|
1803
|
+
type BixinWhiteListAck = {
|
|
1780
1804
|
address: string[];
|
|
1781
1805
|
};
|
|
1782
|
-
|
|
1806
|
+
type BixinLoadDevice = {
|
|
1783
1807
|
mnemonics: string;
|
|
1784
1808
|
language?: string;
|
|
1785
1809
|
label?: string;
|
|
1786
1810
|
skip_checksum?: boolean;
|
|
1787
1811
|
};
|
|
1788
|
-
|
|
1789
|
-
|
|
1812
|
+
type BixinBackupDevice = {};
|
|
1813
|
+
type BixinBackupDeviceAck = {
|
|
1790
1814
|
mnemonics: string;
|
|
1791
1815
|
};
|
|
1792
|
-
|
|
1816
|
+
type DeviceInfoSettings = {
|
|
1793
1817
|
serial_no?: string;
|
|
1794
1818
|
cpu_info?: string;
|
|
1795
1819
|
pre_firmware?: string;
|
|
1796
1820
|
};
|
|
1797
|
-
|
|
1798
|
-
|
|
1821
|
+
type GetDeviceInfo = {};
|
|
1822
|
+
type DeviceInfo = {
|
|
1799
1823
|
serial_no?: string;
|
|
1800
1824
|
spiFlash_info?: string;
|
|
1801
1825
|
SE_info?: string;
|
|
@@ -1803,39 +1827,39 @@ declare type DeviceInfo = {
|
|
|
1803
1827
|
cpu_info?: string;
|
|
1804
1828
|
pre_firmware?: string;
|
|
1805
1829
|
};
|
|
1806
|
-
|
|
1807
|
-
|
|
1830
|
+
type ReadSEPublicKey = {};
|
|
1831
|
+
type SEPublicKey = {
|
|
1808
1832
|
public_key: string;
|
|
1809
1833
|
};
|
|
1810
|
-
|
|
1834
|
+
type WriteSEPublicCert = {
|
|
1811
1835
|
public_cert: string;
|
|
1812
1836
|
};
|
|
1813
|
-
|
|
1814
|
-
|
|
1837
|
+
type ReadSEPublicCert = {};
|
|
1838
|
+
type SEPublicCert = {
|
|
1815
1839
|
public_cert: string;
|
|
1816
1840
|
};
|
|
1817
|
-
|
|
1841
|
+
type SpiFlashWrite = {
|
|
1818
1842
|
address: number;
|
|
1819
1843
|
data: string;
|
|
1820
1844
|
};
|
|
1821
|
-
|
|
1845
|
+
type SpiFlashRead = {
|
|
1822
1846
|
address: number;
|
|
1823
1847
|
len: number;
|
|
1824
1848
|
};
|
|
1825
|
-
|
|
1849
|
+
type SpiFlashData = {
|
|
1826
1850
|
data: string;
|
|
1827
1851
|
};
|
|
1828
|
-
|
|
1852
|
+
type SESignMessage = {
|
|
1829
1853
|
message: string;
|
|
1830
1854
|
};
|
|
1831
|
-
|
|
1855
|
+
type SEMessageSignature = {
|
|
1832
1856
|
signature: string;
|
|
1833
1857
|
};
|
|
1834
1858
|
declare enum ResourceType {
|
|
1835
1859
|
WallPaper = 0,
|
|
1836
1860
|
Nft = 1
|
|
1837
1861
|
}
|
|
1838
|
-
|
|
1862
|
+
type ResourceUpload = {
|
|
1839
1863
|
extension: string;
|
|
1840
1864
|
data_length: number;
|
|
1841
1865
|
res_type: ResourceType;
|
|
@@ -1843,66 +1867,66 @@ declare type ResourceUpload = {
|
|
|
1843
1867
|
zoom_data_length: number;
|
|
1844
1868
|
file_name_no_ext?: string;
|
|
1845
1869
|
};
|
|
1846
|
-
|
|
1870
|
+
type ZoomRequest = {
|
|
1847
1871
|
offset?: number;
|
|
1848
1872
|
data_length: number;
|
|
1849
1873
|
};
|
|
1850
|
-
|
|
1874
|
+
type ResourceRequest = {
|
|
1851
1875
|
offset?: number;
|
|
1852
1876
|
data_length: number;
|
|
1853
1877
|
};
|
|
1854
|
-
|
|
1878
|
+
type ResourceAck = {
|
|
1855
1879
|
data_chunk: string;
|
|
1856
1880
|
hash?: string;
|
|
1857
1881
|
};
|
|
1858
|
-
|
|
1882
|
+
type ResourceUpdate = {
|
|
1859
1883
|
file_name: string;
|
|
1860
1884
|
data_length: number;
|
|
1861
1885
|
initial_data_chunk: string;
|
|
1862
1886
|
hash?: string;
|
|
1863
1887
|
};
|
|
1864
|
-
|
|
1888
|
+
type NFTWriteInfo = {
|
|
1865
1889
|
index: number;
|
|
1866
1890
|
width: number;
|
|
1867
1891
|
height: number;
|
|
1868
1892
|
name_zh?: string;
|
|
1869
1893
|
name_en?: string;
|
|
1870
1894
|
};
|
|
1871
|
-
|
|
1895
|
+
type NFTWriteData = {
|
|
1872
1896
|
index: number;
|
|
1873
1897
|
data: string;
|
|
1874
1898
|
offset: number;
|
|
1875
1899
|
};
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1900
|
+
type RebootToBootloader = {};
|
|
1901
|
+
type RebootToBoardloader = {};
|
|
1902
|
+
type ListResDir = {
|
|
1879
1903
|
path: string;
|
|
1880
1904
|
};
|
|
1881
|
-
|
|
1905
|
+
type FileInfo = {
|
|
1882
1906
|
name: string;
|
|
1883
1907
|
size: number;
|
|
1884
1908
|
};
|
|
1885
|
-
|
|
1909
|
+
type FileInfoList = {
|
|
1886
1910
|
files: FileInfo[];
|
|
1887
1911
|
};
|
|
1888
|
-
|
|
1912
|
+
type DeviceEraseSector = {
|
|
1889
1913
|
sector: number;
|
|
1890
1914
|
};
|
|
1891
|
-
|
|
1915
|
+
type MoneroRctKeyPublic = {
|
|
1892
1916
|
dest?: string;
|
|
1893
1917
|
commitment?: string;
|
|
1894
1918
|
};
|
|
1895
|
-
|
|
1919
|
+
type MoneroOutputEntry = {
|
|
1896
1920
|
idx?: number;
|
|
1897
1921
|
key?: MoneroRctKeyPublic;
|
|
1898
1922
|
};
|
|
1899
|
-
|
|
1923
|
+
type MoneroMultisigKLRki = {
|
|
1900
1924
|
K?: string;
|
|
1901
1925
|
L?: string;
|
|
1902
1926
|
R?: string;
|
|
1903
1927
|
ki?: string;
|
|
1904
1928
|
};
|
|
1905
|
-
|
|
1929
|
+
type MoneroTransactionSourceEntry = {
|
|
1906
1930
|
outputs: MoneroOutputEntry[];
|
|
1907
1931
|
real_output?: number;
|
|
1908
1932
|
real_out_tx_key?: string;
|
|
@@ -1914,18 +1938,18 @@ declare type MoneroTransactionSourceEntry = {
|
|
|
1914
1938
|
multisig_kLRki?: MoneroMultisigKLRki;
|
|
1915
1939
|
subaddr_minor?: number;
|
|
1916
1940
|
};
|
|
1917
|
-
|
|
1941
|
+
type MoneroAccountPublicAddress = {
|
|
1918
1942
|
spend_public_key?: string;
|
|
1919
1943
|
view_public_key?: string;
|
|
1920
1944
|
};
|
|
1921
|
-
|
|
1945
|
+
type MoneroTransactionDestinationEntry = {
|
|
1922
1946
|
amount?: UintType;
|
|
1923
1947
|
addr?: MoneroAccountPublicAddress;
|
|
1924
1948
|
is_subaddress?: boolean;
|
|
1925
1949
|
original?: string;
|
|
1926
1950
|
is_integrated?: boolean;
|
|
1927
1951
|
};
|
|
1928
|
-
|
|
1952
|
+
type MoneroTransactionRsigData = {
|
|
1929
1953
|
rsig_type?: number;
|
|
1930
1954
|
offload_type?: number;
|
|
1931
1955
|
grouping: number[];
|
|
@@ -1934,7 +1958,7 @@ declare type MoneroTransactionRsigData = {
|
|
|
1934
1958
|
rsig_parts: string[];
|
|
1935
1959
|
bp_version?: number;
|
|
1936
1960
|
};
|
|
1937
|
-
|
|
1961
|
+
type MoneroGetAddress = {
|
|
1938
1962
|
address_n: number[];
|
|
1939
1963
|
show_display?: boolean;
|
|
1940
1964
|
network_type?: number;
|
|
@@ -1942,18 +1966,18 @@ declare type MoneroGetAddress = {
|
|
|
1942
1966
|
minor?: number;
|
|
1943
1967
|
payment_id?: string;
|
|
1944
1968
|
};
|
|
1945
|
-
|
|
1969
|
+
type MoneroAddress = {
|
|
1946
1970
|
address?: string;
|
|
1947
1971
|
};
|
|
1948
|
-
|
|
1972
|
+
type MoneroGetWatchKey = {
|
|
1949
1973
|
address_n: number[];
|
|
1950
1974
|
network_type?: number;
|
|
1951
1975
|
};
|
|
1952
|
-
|
|
1976
|
+
type MoneroWatchKey = {
|
|
1953
1977
|
watch_key?: string;
|
|
1954
1978
|
address?: string;
|
|
1955
1979
|
};
|
|
1956
|
-
|
|
1980
|
+
type MoneroTransactionData = {
|
|
1957
1981
|
version?: number;
|
|
1958
1982
|
payment_id?: string;
|
|
1959
1983
|
unlock_time?: number;
|
|
@@ -1970,20 +1994,20 @@ declare type MoneroTransactionData = {
|
|
|
1970
1994
|
hard_fork?: number;
|
|
1971
1995
|
monero_version?: string;
|
|
1972
1996
|
};
|
|
1973
|
-
|
|
1997
|
+
type MoneroTransactionInitRequest = {
|
|
1974
1998
|
version?: number;
|
|
1975
1999
|
address_n: number[];
|
|
1976
2000
|
network_type?: number;
|
|
1977
2001
|
tsx_data?: MoneroTransactionData;
|
|
1978
2002
|
};
|
|
1979
|
-
|
|
2003
|
+
type MoneroTransactionInitAck = {
|
|
1980
2004
|
hmacs: string[];
|
|
1981
2005
|
rsig_data?: MoneroTransactionRsigData;
|
|
1982
2006
|
};
|
|
1983
|
-
|
|
2007
|
+
type MoneroTransactionSetInputRequest = {
|
|
1984
2008
|
src_entr?: MoneroTransactionSourceEntry;
|
|
1985
2009
|
};
|
|
1986
|
-
|
|
2010
|
+
type MoneroTransactionSetInputAck = {
|
|
1987
2011
|
vini?: string;
|
|
1988
2012
|
vini_hmac?: string;
|
|
1989
2013
|
pseudo_out?: string;
|
|
@@ -1991,11 +2015,11 @@ declare type MoneroTransactionSetInputAck = {
|
|
|
1991
2015
|
pseudo_out_alpha?: string;
|
|
1992
2016
|
spend_key?: string;
|
|
1993
2017
|
};
|
|
1994
|
-
|
|
2018
|
+
type MoneroTransactionInputsPermutationRequest = {
|
|
1995
2019
|
perm: number[];
|
|
1996
2020
|
};
|
|
1997
|
-
|
|
1998
|
-
|
|
2021
|
+
type MoneroTransactionInputsPermutationAck = {};
|
|
2022
|
+
type MoneroTransactionInputViniRequest = {
|
|
1999
2023
|
src_entr?: MoneroTransactionSourceEntry;
|
|
2000
2024
|
vini?: string;
|
|
2001
2025
|
vini_hmac?: string;
|
|
@@ -2003,39 +2027,39 @@ declare type MoneroTransactionInputViniRequest = {
|
|
|
2003
2027
|
pseudo_out_hmac?: string;
|
|
2004
2028
|
orig_idx?: number;
|
|
2005
2029
|
};
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2030
|
+
type MoneroTransactionInputViniAck = {};
|
|
2031
|
+
type MoneroTransactionAllInputsSetRequest = {};
|
|
2032
|
+
type MoneroTransactionAllInputsSetAck = {
|
|
2009
2033
|
rsig_data?: MoneroTransactionRsigData;
|
|
2010
2034
|
};
|
|
2011
|
-
|
|
2035
|
+
type MoneroTransactionSetOutputRequest = {
|
|
2012
2036
|
dst_entr?: MoneroTransactionDestinationEntry;
|
|
2013
2037
|
dst_entr_hmac?: string;
|
|
2014
2038
|
rsig_data?: MoneroTransactionRsigData;
|
|
2015
2039
|
is_offloaded_bp?: boolean;
|
|
2016
2040
|
};
|
|
2017
|
-
|
|
2041
|
+
type MoneroTransactionSetOutputAck = {
|
|
2018
2042
|
tx_out?: string;
|
|
2019
2043
|
vouti_hmac?: string;
|
|
2020
2044
|
rsig_data?: MoneroTransactionRsigData;
|
|
2021
2045
|
out_pk?: string;
|
|
2022
2046
|
ecdh_info?: string;
|
|
2023
2047
|
};
|
|
2024
|
-
|
|
2048
|
+
type MoneroTransactionAllOutSetRequest = {
|
|
2025
2049
|
rsig_data?: MoneroTransactionRsigData;
|
|
2026
2050
|
};
|
|
2027
|
-
|
|
2051
|
+
type MoneroRingCtSig = {
|
|
2028
2052
|
txn_fee?: number;
|
|
2029
2053
|
message?: string;
|
|
2030
2054
|
rv_type?: number;
|
|
2031
2055
|
};
|
|
2032
|
-
|
|
2056
|
+
type MoneroTransactionAllOutSetAck = {
|
|
2033
2057
|
extra?: string;
|
|
2034
2058
|
tx_prefix_hash?: string;
|
|
2035
2059
|
rv?: MoneroRingCtSig;
|
|
2036
2060
|
full_message_hash?: string;
|
|
2037
2061
|
};
|
|
2038
|
-
|
|
2062
|
+
type MoneroTransactionSignInputRequest = {
|
|
2039
2063
|
src_entr?: MoneroTransactionSourceEntry;
|
|
2040
2064
|
vini?: string;
|
|
2041
2065
|
vini_hmac?: string;
|
|
@@ -2045,31 +2069,31 @@ declare type MoneroTransactionSignInputRequest = {
|
|
|
2045
2069
|
spend_key?: string;
|
|
2046
2070
|
orig_idx?: number;
|
|
2047
2071
|
};
|
|
2048
|
-
|
|
2072
|
+
type MoneroTransactionSignInputAck = {
|
|
2049
2073
|
signature?: string;
|
|
2050
2074
|
pseudo_out?: string;
|
|
2051
2075
|
};
|
|
2052
|
-
|
|
2053
|
-
|
|
2076
|
+
type MoneroTransactionFinalRequest = {};
|
|
2077
|
+
type MoneroTransactionFinalAck = {
|
|
2054
2078
|
cout_key?: string;
|
|
2055
2079
|
salt?: string;
|
|
2056
2080
|
rand_mult?: string;
|
|
2057
2081
|
tx_enc_keys?: string;
|
|
2058
2082
|
opening_key?: string;
|
|
2059
2083
|
};
|
|
2060
|
-
|
|
2084
|
+
type MoneroSubAddressIndicesList = {
|
|
2061
2085
|
account?: number;
|
|
2062
2086
|
minor_indices: number[];
|
|
2063
2087
|
};
|
|
2064
|
-
|
|
2088
|
+
type MoneroKeyImageExportInitRequest = {
|
|
2065
2089
|
num?: number;
|
|
2066
2090
|
hash?: string;
|
|
2067
2091
|
address_n: number[];
|
|
2068
2092
|
network_type?: number;
|
|
2069
2093
|
subs: MoneroSubAddressIndicesList[];
|
|
2070
2094
|
};
|
|
2071
|
-
|
|
2072
|
-
|
|
2095
|
+
type MoneroKeyImageExportInitAck = {};
|
|
2096
|
+
type MoneroTransferDetails = {
|
|
2073
2097
|
out_key?: string;
|
|
2074
2098
|
tx_pub_key?: string;
|
|
2075
2099
|
additional_tx_pub_keys: string[];
|
|
@@ -2077,21 +2101,21 @@ declare type MoneroTransferDetails = {
|
|
|
2077
2101
|
sub_addr_major?: number;
|
|
2078
2102
|
sub_addr_minor?: number;
|
|
2079
2103
|
};
|
|
2080
|
-
|
|
2104
|
+
type MoneroKeyImageSyncStepRequest = {
|
|
2081
2105
|
tdis: MoneroTransferDetails[];
|
|
2082
2106
|
};
|
|
2083
|
-
|
|
2107
|
+
type MoneroExportedKeyImage = {
|
|
2084
2108
|
iv?: string;
|
|
2085
2109
|
blob?: string;
|
|
2086
2110
|
};
|
|
2087
|
-
|
|
2111
|
+
type MoneroKeyImageSyncStepAck = {
|
|
2088
2112
|
kis: MoneroExportedKeyImage[];
|
|
2089
2113
|
};
|
|
2090
|
-
|
|
2091
|
-
|
|
2114
|
+
type MoneroKeyImageSyncFinalRequest = {};
|
|
2115
|
+
type MoneroKeyImageSyncFinalAck = {
|
|
2092
2116
|
enc_key?: string;
|
|
2093
2117
|
};
|
|
2094
|
-
|
|
2118
|
+
type MoneroGetTxKeyRequest = {
|
|
2095
2119
|
address_n: number[];
|
|
2096
2120
|
network_type?: number;
|
|
2097
2121
|
salt1?: string;
|
|
@@ -2101,52 +2125,52 @@ declare type MoneroGetTxKeyRequest = {
|
|
|
2101
2125
|
reason?: number;
|
|
2102
2126
|
view_public_key?: string;
|
|
2103
2127
|
};
|
|
2104
|
-
|
|
2128
|
+
type MoneroGetTxKeyAck = {
|
|
2105
2129
|
salt?: string;
|
|
2106
2130
|
tx_keys?: string;
|
|
2107
2131
|
tx_derivations?: string;
|
|
2108
2132
|
};
|
|
2109
|
-
|
|
2133
|
+
type MoneroLiveRefreshStartRequest = {
|
|
2110
2134
|
address_n: number[];
|
|
2111
2135
|
network_type?: number;
|
|
2112
2136
|
};
|
|
2113
|
-
|
|
2114
|
-
|
|
2137
|
+
type MoneroLiveRefreshStartAck = {};
|
|
2138
|
+
type MoneroLiveRefreshStepRequest = {
|
|
2115
2139
|
out_key?: string;
|
|
2116
2140
|
recv_deriv?: string;
|
|
2117
2141
|
real_out_idx?: number;
|
|
2118
2142
|
sub_addr_major?: number;
|
|
2119
2143
|
sub_addr_minor?: number;
|
|
2120
2144
|
};
|
|
2121
|
-
|
|
2145
|
+
type MoneroLiveRefreshStepAck = {
|
|
2122
2146
|
salt?: string;
|
|
2123
2147
|
key_image?: string;
|
|
2124
2148
|
};
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2149
|
+
type MoneroLiveRefreshFinalRequest = {};
|
|
2150
|
+
type MoneroLiveRefreshFinalAck = {};
|
|
2151
|
+
type NearGetAddress = {
|
|
2128
2152
|
address_n: number[];
|
|
2129
2153
|
show_display?: boolean;
|
|
2130
2154
|
};
|
|
2131
|
-
|
|
2155
|
+
type NearAddress = {
|
|
2132
2156
|
address?: string;
|
|
2133
2157
|
};
|
|
2134
|
-
|
|
2158
|
+
type NearSignTx = {
|
|
2135
2159
|
address_n: number[];
|
|
2136
2160
|
raw_tx: string;
|
|
2137
2161
|
};
|
|
2138
|
-
|
|
2162
|
+
type NearSignedTx = {
|
|
2139
2163
|
signature: string;
|
|
2140
2164
|
};
|
|
2141
|
-
|
|
2165
|
+
type NEMGetAddress = {
|
|
2142
2166
|
address_n: number[];
|
|
2143
2167
|
network?: number;
|
|
2144
2168
|
show_display?: boolean;
|
|
2145
2169
|
};
|
|
2146
|
-
|
|
2170
|
+
type NEMAddress = {
|
|
2147
2171
|
address: string;
|
|
2148
2172
|
};
|
|
2149
|
-
|
|
2173
|
+
type NEMTransactionCommon = {
|
|
2150
2174
|
address_n?: number[];
|
|
2151
2175
|
network?: number;
|
|
2152
2176
|
timestamp?: number;
|
|
@@ -2154,19 +2178,19 @@ declare type NEMTransactionCommon = {
|
|
|
2154
2178
|
deadline?: number;
|
|
2155
2179
|
signer?: string;
|
|
2156
2180
|
};
|
|
2157
|
-
|
|
2181
|
+
type NEMMosaic = {
|
|
2158
2182
|
namespace?: string;
|
|
2159
2183
|
mosaic?: string;
|
|
2160
2184
|
quantity?: number;
|
|
2161
2185
|
};
|
|
2162
|
-
|
|
2186
|
+
type NEMTransfer = {
|
|
2163
2187
|
recipient?: string;
|
|
2164
2188
|
amount?: UintType;
|
|
2165
2189
|
payload?: string;
|
|
2166
2190
|
public_key?: string;
|
|
2167
2191
|
mosaics?: NEMMosaic[];
|
|
2168
2192
|
};
|
|
2169
|
-
|
|
2193
|
+
type NEMProvisionNamespace = {
|
|
2170
2194
|
namespace?: string;
|
|
2171
2195
|
parent?: string;
|
|
2172
2196
|
sink?: string;
|
|
@@ -2176,7 +2200,7 @@ declare enum NEMMosaicLevy {
|
|
|
2176
2200
|
MosaicLevy_Absolute = 1,
|
|
2177
2201
|
MosaicLevy_Percentile = 2
|
|
2178
2202
|
}
|
|
2179
|
-
|
|
2203
|
+
type NEMMosaicDefinition = {
|
|
2180
2204
|
name?: string;
|
|
2181
2205
|
ticker?: string;
|
|
2182
2206
|
namespace?: string;
|
|
@@ -2193,7 +2217,7 @@ declare type NEMMosaicDefinition = {
|
|
|
2193
2217
|
description?: string;
|
|
2194
2218
|
networks?: number[];
|
|
2195
2219
|
};
|
|
2196
|
-
|
|
2220
|
+
type NEMMosaicCreation = {
|
|
2197
2221
|
definition?: NEMMosaicDefinition;
|
|
2198
2222
|
sink?: string;
|
|
2199
2223
|
fee?: UintType;
|
|
@@ -2202,7 +2226,7 @@ declare enum NEMSupplyChangeType {
|
|
|
2202
2226
|
SupplyChange_Increase = 1,
|
|
2203
2227
|
SupplyChange_Decrease = 2
|
|
2204
2228
|
}
|
|
2205
|
-
|
|
2229
|
+
type NEMMosaicSupplyChange = {
|
|
2206
2230
|
namespace?: string;
|
|
2207
2231
|
mosaic?: string;
|
|
2208
2232
|
type?: NEMSupplyChangeType;
|
|
@@ -2212,11 +2236,11 @@ declare enum NEMModificationType {
|
|
|
2212
2236
|
CosignatoryModification_Add = 1,
|
|
2213
2237
|
CosignatoryModification_Delete = 2
|
|
2214
2238
|
}
|
|
2215
|
-
|
|
2239
|
+
type NEMCosignatoryModification = {
|
|
2216
2240
|
type?: NEMModificationType;
|
|
2217
2241
|
public_key?: string;
|
|
2218
2242
|
};
|
|
2219
|
-
|
|
2243
|
+
type NEMAggregateModification = {
|
|
2220
2244
|
modifications?: NEMCosignatoryModification[];
|
|
2221
2245
|
relative_change?: number;
|
|
2222
2246
|
};
|
|
@@ -2224,11 +2248,11 @@ declare enum NEMImportanceTransferMode {
|
|
|
2224
2248
|
ImportanceTransfer_Activate = 1,
|
|
2225
2249
|
ImportanceTransfer_Deactivate = 2
|
|
2226
2250
|
}
|
|
2227
|
-
|
|
2251
|
+
type NEMImportanceTransfer = {
|
|
2228
2252
|
mode?: NEMImportanceTransferMode;
|
|
2229
2253
|
public_key?: string;
|
|
2230
2254
|
};
|
|
2231
|
-
|
|
2255
|
+
type NEMSignTx = {
|
|
2232
2256
|
transaction?: NEMTransactionCommon;
|
|
2233
2257
|
multisig?: NEMTransactionCommon;
|
|
2234
2258
|
transfer?: NEMTransfer;
|
|
@@ -2239,76 +2263,76 @@ declare type NEMSignTx = {
|
|
|
2239
2263
|
aggregate_modification?: NEMAggregateModification;
|
|
2240
2264
|
importance_transfer?: NEMImportanceTransfer;
|
|
2241
2265
|
};
|
|
2242
|
-
|
|
2266
|
+
type NEMSignedTx = {
|
|
2243
2267
|
data: string;
|
|
2244
2268
|
signature: string;
|
|
2245
2269
|
};
|
|
2246
|
-
|
|
2270
|
+
type NEMDecryptMessage = {
|
|
2247
2271
|
address_n: number[];
|
|
2248
2272
|
network?: number;
|
|
2249
2273
|
public_key?: string;
|
|
2250
2274
|
payload?: string;
|
|
2251
2275
|
};
|
|
2252
|
-
|
|
2276
|
+
type NEMDecryptedMessage = {
|
|
2253
2277
|
payload: string;
|
|
2254
2278
|
};
|
|
2255
|
-
|
|
2279
|
+
type NexaGetAddress = {
|
|
2256
2280
|
address_n: number[];
|
|
2257
2281
|
show_display?: boolean;
|
|
2258
2282
|
prefix?: string;
|
|
2259
2283
|
};
|
|
2260
|
-
|
|
2284
|
+
type NexaAddress = {
|
|
2261
2285
|
address: string;
|
|
2262
2286
|
public_key: string;
|
|
2263
2287
|
};
|
|
2264
|
-
|
|
2288
|
+
type NexaSignTx = {
|
|
2265
2289
|
address_n: number[];
|
|
2266
2290
|
raw_message: string;
|
|
2267
2291
|
prefix?: string;
|
|
2268
2292
|
input_count?: number;
|
|
2269
2293
|
};
|
|
2270
|
-
|
|
2294
|
+
type NexaTxInputRequest = {
|
|
2271
2295
|
request_index: number;
|
|
2272
2296
|
signature?: string;
|
|
2273
2297
|
};
|
|
2274
|
-
|
|
2298
|
+
type NexaTxInputAck = {
|
|
2275
2299
|
address_n: number[];
|
|
2276
2300
|
raw_message: string;
|
|
2277
2301
|
};
|
|
2278
|
-
|
|
2302
|
+
type NexaSignedTx = {
|
|
2279
2303
|
signature: string;
|
|
2280
2304
|
};
|
|
2281
|
-
|
|
2305
|
+
type PolkadotGetAddress = {
|
|
2282
2306
|
address_n: number[];
|
|
2283
2307
|
prefix: number;
|
|
2284
2308
|
network: string;
|
|
2285
2309
|
show_display?: boolean;
|
|
2286
2310
|
};
|
|
2287
|
-
|
|
2311
|
+
type PolkadotAddress = {
|
|
2288
2312
|
address?: string;
|
|
2289
2313
|
public_key?: string;
|
|
2290
2314
|
};
|
|
2291
|
-
|
|
2315
|
+
type PolkadotSignTx = {
|
|
2292
2316
|
address_n: number[];
|
|
2293
2317
|
raw_tx: string;
|
|
2294
2318
|
network: string;
|
|
2295
2319
|
};
|
|
2296
|
-
|
|
2320
|
+
type PolkadotSignedTx = {
|
|
2297
2321
|
signature: string;
|
|
2298
2322
|
};
|
|
2299
|
-
|
|
2323
|
+
type RippleGetAddress = {
|
|
2300
2324
|
address_n: number[];
|
|
2301
2325
|
show_display?: boolean;
|
|
2302
2326
|
};
|
|
2303
|
-
|
|
2327
|
+
type RippleAddress = {
|
|
2304
2328
|
address: string;
|
|
2305
2329
|
};
|
|
2306
|
-
|
|
2330
|
+
type RipplePayment = {
|
|
2307
2331
|
amount: UintType;
|
|
2308
2332
|
destination: string;
|
|
2309
2333
|
destination_tag?: number;
|
|
2310
2334
|
};
|
|
2311
|
-
|
|
2335
|
+
type RippleSignTx = {
|
|
2312
2336
|
address_n: number[];
|
|
2313
2337
|
fee?: UintType;
|
|
2314
2338
|
flags?: number;
|
|
@@ -2316,55 +2340,55 @@ declare type RippleSignTx = {
|
|
|
2316
2340
|
last_ledger_sequence?: number;
|
|
2317
2341
|
payment?: RipplePayment;
|
|
2318
2342
|
};
|
|
2319
|
-
|
|
2343
|
+
type RippleSignedTx = {
|
|
2320
2344
|
signature: string;
|
|
2321
2345
|
serialized_tx: string;
|
|
2322
2346
|
};
|
|
2323
|
-
|
|
2347
|
+
type SolanaGetAddress = {
|
|
2324
2348
|
address_n: number[];
|
|
2325
2349
|
show_display?: boolean;
|
|
2326
2350
|
};
|
|
2327
|
-
|
|
2351
|
+
type SolanaAddress = {
|
|
2328
2352
|
address?: string;
|
|
2329
2353
|
};
|
|
2330
|
-
|
|
2354
|
+
type SolanaSignTx = {
|
|
2331
2355
|
address_n: number[];
|
|
2332
2356
|
raw_tx: string;
|
|
2333
2357
|
};
|
|
2334
|
-
|
|
2358
|
+
type SolanaSignedTx = {
|
|
2335
2359
|
signature?: string;
|
|
2336
2360
|
};
|
|
2337
|
-
|
|
2361
|
+
type StarcoinGetAddress = {
|
|
2338
2362
|
address_n: number[];
|
|
2339
2363
|
show_display?: boolean;
|
|
2340
2364
|
};
|
|
2341
|
-
|
|
2365
|
+
type StarcoinAddress = {
|
|
2342
2366
|
address?: string;
|
|
2343
2367
|
};
|
|
2344
|
-
|
|
2368
|
+
type StarcoinGetPublicKey = {
|
|
2345
2369
|
address_n: number[];
|
|
2346
2370
|
show_display?: boolean;
|
|
2347
2371
|
};
|
|
2348
|
-
|
|
2372
|
+
type StarcoinPublicKey = {
|
|
2349
2373
|
public_key: string;
|
|
2350
2374
|
};
|
|
2351
|
-
|
|
2375
|
+
type StarcoinSignTx = {
|
|
2352
2376
|
address_n: number[];
|
|
2353
2377
|
raw_tx?: string;
|
|
2354
2378
|
};
|
|
2355
|
-
|
|
2379
|
+
type StarcoinSignedTx = {
|
|
2356
2380
|
public_key: string;
|
|
2357
2381
|
signature: string;
|
|
2358
2382
|
};
|
|
2359
|
-
|
|
2383
|
+
type StarcoinSignMessage = {
|
|
2360
2384
|
address_n: number[];
|
|
2361
2385
|
message?: string;
|
|
2362
2386
|
};
|
|
2363
|
-
|
|
2387
|
+
type StarcoinMessageSignature = {
|
|
2364
2388
|
public_key: string;
|
|
2365
2389
|
signature: string;
|
|
2366
2390
|
};
|
|
2367
|
-
|
|
2391
|
+
type StarcoinVerifyMessage = {
|
|
2368
2392
|
public_key?: string;
|
|
2369
2393
|
signature?: string;
|
|
2370
2394
|
message?: string;
|
|
@@ -2374,16 +2398,16 @@ declare enum StellarAssetType {
|
|
|
2374
2398
|
ALPHANUM4 = 1,
|
|
2375
2399
|
ALPHANUM12 = 2
|
|
2376
2400
|
}
|
|
2377
|
-
|
|
2401
|
+
type StellarAsset = {
|
|
2378
2402
|
type: StellarAssetType;
|
|
2379
2403
|
code?: string;
|
|
2380
2404
|
issuer?: string;
|
|
2381
2405
|
};
|
|
2382
|
-
|
|
2406
|
+
type StellarGetAddress = {
|
|
2383
2407
|
address_n: number[];
|
|
2384
2408
|
show_display?: boolean;
|
|
2385
2409
|
};
|
|
2386
|
-
|
|
2410
|
+
type StellarAddress = {
|
|
2387
2411
|
address: string;
|
|
2388
2412
|
};
|
|
2389
2413
|
declare enum StellarMemoType {
|
|
@@ -2393,7 +2417,7 @@ declare enum StellarMemoType {
|
|
|
2393
2417
|
HASH = 3,
|
|
2394
2418
|
RETURN = 4
|
|
2395
2419
|
}
|
|
2396
|
-
|
|
2420
|
+
type StellarSignTx = {
|
|
2397
2421
|
address_n: number[];
|
|
2398
2422
|
network_passphrase: string;
|
|
2399
2423
|
source_account: string;
|
|
@@ -2407,19 +2431,19 @@ declare type StellarSignTx = {
|
|
|
2407
2431
|
memo_hash?: Buffer | string;
|
|
2408
2432
|
num_operations: number;
|
|
2409
2433
|
};
|
|
2410
|
-
|
|
2411
|
-
|
|
2434
|
+
type StellarTxOpRequest = {};
|
|
2435
|
+
type StellarPaymentOp = {
|
|
2412
2436
|
source_account?: string;
|
|
2413
2437
|
destination_account: string;
|
|
2414
2438
|
asset: StellarAsset;
|
|
2415
2439
|
amount: UintType;
|
|
2416
2440
|
};
|
|
2417
|
-
|
|
2441
|
+
type StellarCreateAccountOp = {
|
|
2418
2442
|
source_account?: string;
|
|
2419
2443
|
new_account: string;
|
|
2420
2444
|
starting_balance: UintType;
|
|
2421
2445
|
};
|
|
2422
|
-
|
|
2446
|
+
type StellarPathPaymentStrictReceiveOp = {
|
|
2423
2447
|
source_account?: string;
|
|
2424
2448
|
send_asset: StellarAsset;
|
|
2425
2449
|
send_max: UintType;
|
|
@@ -2428,7 +2452,7 @@ declare type StellarPathPaymentStrictReceiveOp = {
|
|
|
2428
2452
|
destination_amount: UintType;
|
|
2429
2453
|
paths?: StellarAsset[];
|
|
2430
2454
|
};
|
|
2431
|
-
|
|
2455
|
+
type StellarPathPaymentStrictSendOp = {
|
|
2432
2456
|
source_account?: string;
|
|
2433
2457
|
send_asset: StellarAsset;
|
|
2434
2458
|
send_amount: UintType;
|
|
@@ -2437,7 +2461,7 @@ declare type StellarPathPaymentStrictSendOp = {
|
|
|
2437
2461
|
destination_min: UintType;
|
|
2438
2462
|
paths?: StellarAsset[];
|
|
2439
2463
|
};
|
|
2440
|
-
|
|
2464
|
+
type StellarManageSellOfferOp = {
|
|
2441
2465
|
source_account?: string;
|
|
2442
2466
|
selling_asset: StellarAsset;
|
|
2443
2467
|
buying_asset: StellarAsset;
|
|
@@ -2446,7 +2470,7 @@ declare type StellarManageSellOfferOp = {
|
|
|
2446
2470
|
price_d: number;
|
|
2447
2471
|
offer_id: UintType;
|
|
2448
2472
|
};
|
|
2449
|
-
|
|
2473
|
+
type StellarManageBuyOfferOp = {
|
|
2450
2474
|
source_account?: string;
|
|
2451
2475
|
selling_asset: StellarAsset;
|
|
2452
2476
|
buying_asset: StellarAsset;
|
|
@@ -2455,7 +2479,7 @@ declare type StellarManageBuyOfferOp = {
|
|
|
2455
2479
|
price_d: number;
|
|
2456
2480
|
offer_id: UintType;
|
|
2457
2481
|
};
|
|
2458
|
-
|
|
2482
|
+
type StellarCreatePassiveSellOfferOp = {
|
|
2459
2483
|
source_account?: string;
|
|
2460
2484
|
selling_asset: StellarAsset;
|
|
2461
2485
|
buying_asset: StellarAsset;
|
|
@@ -2468,7 +2492,7 @@ declare enum StellarSignerType {
|
|
|
2468
2492
|
PRE_AUTH = 1,
|
|
2469
2493
|
HASH = 2
|
|
2470
2494
|
}
|
|
2471
|
-
|
|
2495
|
+
type StellarSetOptionsOp = {
|
|
2472
2496
|
source_account?: string;
|
|
2473
2497
|
inflation_destination_account?: string;
|
|
2474
2498
|
clear_flags?: number;
|
|
@@ -2482,81 +2506,81 @@ declare type StellarSetOptionsOp = {
|
|
|
2482
2506
|
signer_key?: Buffer | string;
|
|
2483
2507
|
signer_weight?: number;
|
|
2484
2508
|
};
|
|
2485
|
-
|
|
2509
|
+
type StellarChangeTrustOp = {
|
|
2486
2510
|
source_account?: string;
|
|
2487
2511
|
asset: StellarAsset;
|
|
2488
2512
|
limit: UintType;
|
|
2489
2513
|
};
|
|
2490
|
-
|
|
2514
|
+
type StellarAllowTrustOp = {
|
|
2491
2515
|
source_account?: string;
|
|
2492
2516
|
trusted_account: string;
|
|
2493
2517
|
asset_type: StellarAssetType;
|
|
2494
2518
|
asset_code?: string;
|
|
2495
2519
|
is_authorized: boolean;
|
|
2496
2520
|
};
|
|
2497
|
-
|
|
2521
|
+
type StellarAccountMergeOp = {
|
|
2498
2522
|
source_account?: string;
|
|
2499
2523
|
destination_account: string;
|
|
2500
2524
|
};
|
|
2501
|
-
|
|
2525
|
+
type StellarManageDataOp = {
|
|
2502
2526
|
source_account?: string;
|
|
2503
2527
|
key: string;
|
|
2504
2528
|
value?: Buffer | string;
|
|
2505
2529
|
};
|
|
2506
|
-
|
|
2530
|
+
type StellarBumpSequenceOp = {
|
|
2507
2531
|
source_account?: string;
|
|
2508
2532
|
bump_to: UintType;
|
|
2509
2533
|
};
|
|
2510
|
-
|
|
2534
|
+
type StellarSignedTx = {
|
|
2511
2535
|
public_key: string;
|
|
2512
2536
|
signature: string;
|
|
2513
2537
|
};
|
|
2514
|
-
|
|
2538
|
+
type SuiGetAddress = {
|
|
2515
2539
|
address_n: number[];
|
|
2516
2540
|
show_display?: boolean;
|
|
2517
2541
|
};
|
|
2518
|
-
|
|
2542
|
+
type SuiAddress = {
|
|
2519
2543
|
address?: string;
|
|
2520
2544
|
};
|
|
2521
|
-
|
|
2545
|
+
type SuiSignTx = {
|
|
2522
2546
|
address_n: number[];
|
|
2523
2547
|
raw_tx: string;
|
|
2524
2548
|
};
|
|
2525
|
-
|
|
2549
|
+
type SuiSignedTx = {
|
|
2526
2550
|
public_key: string;
|
|
2527
2551
|
signature: string;
|
|
2528
2552
|
};
|
|
2529
|
-
|
|
2553
|
+
type SuiSignMessage = {
|
|
2530
2554
|
address_n: number[];
|
|
2531
2555
|
message: string;
|
|
2532
2556
|
};
|
|
2533
|
-
|
|
2557
|
+
type SuiMessageSignature = {
|
|
2534
2558
|
signature: string;
|
|
2535
2559
|
address: string;
|
|
2536
2560
|
};
|
|
2537
|
-
|
|
2561
|
+
type TezosGetAddress = {
|
|
2538
2562
|
address_n: number[];
|
|
2539
2563
|
show_display?: boolean;
|
|
2540
2564
|
};
|
|
2541
|
-
|
|
2565
|
+
type TezosAddress = {
|
|
2542
2566
|
address: string;
|
|
2543
2567
|
};
|
|
2544
|
-
|
|
2568
|
+
type TezosGetPublicKey = {
|
|
2545
2569
|
address_n: number[];
|
|
2546
2570
|
show_display?: boolean;
|
|
2547
2571
|
};
|
|
2548
|
-
|
|
2572
|
+
type TezosPublicKey = {
|
|
2549
2573
|
public_key: string;
|
|
2550
2574
|
};
|
|
2551
2575
|
declare enum TezosContractType {
|
|
2552
2576
|
Implicit = 0,
|
|
2553
2577
|
Originated = 1
|
|
2554
2578
|
}
|
|
2555
|
-
|
|
2579
|
+
type TezosContractID = {
|
|
2556
2580
|
tag: number;
|
|
2557
2581
|
hash: Uint8Array;
|
|
2558
2582
|
};
|
|
2559
|
-
|
|
2583
|
+
type TezosRevealOp = {
|
|
2560
2584
|
source: Uint8Array;
|
|
2561
2585
|
fee: UintType;
|
|
2562
2586
|
counter: number;
|
|
@@ -2564,16 +2588,16 @@ declare type TezosRevealOp = {
|
|
|
2564
2588
|
storage_limit: number;
|
|
2565
2589
|
public_key: Uint8Array;
|
|
2566
2590
|
};
|
|
2567
|
-
|
|
2591
|
+
type TezosManagerTransfer = {
|
|
2568
2592
|
destination?: TezosContractID;
|
|
2569
2593
|
amount?: UintType;
|
|
2570
2594
|
};
|
|
2571
|
-
|
|
2595
|
+
type TezosParametersManager = {
|
|
2572
2596
|
set_delegate?: Uint8Array;
|
|
2573
2597
|
cancel_delegate?: boolean;
|
|
2574
2598
|
transfer?: TezosManagerTransfer;
|
|
2575
2599
|
};
|
|
2576
|
-
|
|
2600
|
+
type TezosTransactionOp = {
|
|
2577
2601
|
source: Uint8Array;
|
|
2578
2602
|
fee: UintType;
|
|
2579
2603
|
counter: number;
|
|
@@ -2584,7 +2608,7 @@ declare type TezosTransactionOp = {
|
|
|
2584
2608
|
parameters?: number[];
|
|
2585
2609
|
parameters_manager?: TezosParametersManager;
|
|
2586
2610
|
};
|
|
2587
|
-
|
|
2611
|
+
type TezosOriginationOp = {
|
|
2588
2612
|
source: Uint8Array;
|
|
2589
2613
|
fee: UintType;
|
|
2590
2614
|
counter: number;
|
|
@@ -2597,7 +2621,7 @@ declare type TezosOriginationOp = {
|
|
|
2597
2621
|
delegate?: Uint8Array;
|
|
2598
2622
|
script: string | number[];
|
|
2599
2623
|
};
|
|
2600
|
-
|
|
2624
|
+
type TezosDelegationOp = {
|
|
2601
2625
|
source: Uint8Array;
|
|
2602
2626
|
fee: UintType;
|
|
2603
2627
|
counter: number;
|
|
@@ -2605,7 +2629,7 @@ declare type TezosDelegationOp = {
|
|
|
2605
2629
|
storage_limit: number;
|
|
2606
2630
|
delegate: Uint8Array;
|
|
2607
2631
|
};
|
|
2608
|
-
|
|
2632
|
+
type TezosProposalOp = {
|
|
2609
2633
|
source?: string;
|
|
2610
2634
|
period?: number;
|
|
2611
2635
|
proposals: string[];
|
|
@@ -2615,13 +2639,13 @@ declare enum TezosBallotType {
|
|
|
2615
2639
|
Nay = 1,
|
|
2616
2640
|
Pass = 2
|
|
2617
2641
|
}
|
|
2618
|
-
|
|
2642
|
+
type TezosBallotOp = {
|
|
2619
2643
|
source?: string;
|
|
2620
2644
|
period?: number;
|
|
2621
2645
|
proposal?: string;
|
|
2622
2646
|
ballot?: TezosBallotType;
|
|
2623
2647
|
};
|
|
2624
|
-
|
|
2648
|
+
type TezosSignTx = {
|
|
2625
2649
|
address_n: number[];
|
|
2626
2650
|
branch: Uint8Array;
|
|
2627
2651
|
reveal?: TezosRevealOp;
|
|
@@ -2631,23 +2655,23 @@ declare type TezosSignTx = {
|
|
|
2631
2655
|
proposal?: TezosProposalOp;
|
|
2632
2656
|
ballot?: TezosBallotOp;
|
|
2633
2657
|
};
|
|
2634
|
-
|
|
2658
|
+
type TezosSignedTx = {
|
|
2635
2659
|
signature: string;
|
|
2636
2660
|
sig_op_contents: string;
|
|
2637
2661
|
operation_hash: string;
|
|
2638
2662
|
};
|
|
2639
|
-
|
|
2663
|
+
type TronGetAddress = {
|
|
2640
2664
|
address_n: number[];
|
|
2641
2665
|
show_display?: boolean;
|
|
2642
2666
|
};
|
|
2643
|
-
|
|
2667
|
+
type TronAddress = {
|
|
2644
2668
|
address?: string;
|
|
2645
2669
|
};
|
|
2646
|
-
|
|
2670
|
+
type TronTransferContract = {
|
|
2647
2671
|
to_address?: string;
|
|
2648
2672
|
amount?: UintType;
|
|
2649
2673
|
};
|
|
2650
|
-
|
|
2674
|
+
type TronTriggerSmartContract = {
|
|
2651
2675
|
contract_address?: string;
|
|
2652
2676
|
call_value?: number;
|
|
2653
2677
|
data?: string;
|
|
@@ -2658,40 +2682,40 @@ declare enum TronResourceCode {
|
|
|
2658
2682
|
BANDWIDTH = 0,
|
|
2659
2683
|
ENERGY = 1
|
|
2660
2684
|
}
|
|
2661
|
-
|
|
2685
|
+
type TronFreezeBalanceContract = {
|
|
2662
2686
|
frozen_balance?: number;
|
|
2663
2687
|
frozen_duration?: number;
|
|
2664
2688
|
resource?: TronResourceCode;
|
|
2665
2689
|
receiver_address?: string;
|
|
2666
2690
|
};
|
|
2667
|
-
|
|
2691
|
+
type TronUnfreezeBalanceContract = {
|
|
2668
2692
|
resource?: TronResourceCode;
|
|
2669
2693
|
receiver_address?: string;
|
|
2670
2694
|
};
|
|
2671
|
-
|
|
2695
|
+
type TronWithdrawBalanceContract = {
|
|
2672
2696
|
owner_address?: string;
|
|
2673
2697
|
};
|
|
2674
|
-
|
|
2698
|
+
type TronFreezeBalanceV2Contract = {
|
|
2675
2699
|
frozen_balance?: number;
|
|
2676
2700
|
resource?: TronResourceCode;
|
|
2677
2701
|
};
|
|
2678
|
-
|
|
2702
|
+
type TronUnfreezeBalanceV2Contract = {
|
|
2679
2703
|
unfreeze_balance?: number;
|
|
2680
2704
|
resource?: TronResourceCode;
|
|
2681
2705
|
};
|
|
2682
|
-
|
|
2683
|
-
|
|
2706
|
+
type TronWithdrawExpireUnfreezeContract = {};
|
|
2707
|
+
type TronDelegateResourceContract = {
|
|
2684
2708
|
resource?: TronResourceCode;
|
|
2685
2709
|
balance?: number;
|
|
2686
2710
|
receiver_address?: string;
|
|
2687
2711
|
lock?: boolean;
|
|
2688
2712
|
};
|
|
2689
|
-
|
|
2713
|
+
type TronUnDelegateResourceContract = {
|
|
2690
2714
|
resource?: TronResourceCode;
|
|
2691
2715
|
balance?: number;
|
|
2692
2716
|
receiver_address?: string;
|
|
2693
2717
|
};
|
|
2694
|
-
|
|
2718
|
+
type TronContract = {
|
|
2695
2719
|
transfer_contract?: TronTransferContract;
|
|
2696
2720
|
freeze_balance_contract?: TronFreezeBalanceContract;
|
|
2697
2721
|
unfreeze_balance_contract?: TronUnfreezeBalanceContract;
|
|
@@ -2703,7 +2727,7 @@ declare type TronContract = {
|
|
|
2703
2727
|
delegate_resource_contract?: TronDelegateResourceContract;
|
|
2704
2728
|
undelegate_resource_contract?: TronUnDelegateResourceContract;
|
|
2705
2729
|
};
|
|
2706
|
-
|
|
2730
|
+
type TronSignTx = {
|
|
2707
2731
|
address_n: number[];
|
|
2708
2732
|
ref_block_bytes: string;
|
|
2709
2733
|
ref_block_hash: string;
|
|
@@ -2713,24 +2737,24 @@ declare type TronSignTx = {
|
|
|
2713
2737
|
timestamp: number;
|
|
2714
2738
|
fee_limit?: number;
|
|
2715
2739
|
};
|
|
2716
|
-
|
|
2740
|
+
type TronSignedTx = {
|
|
2717
2741
|
signature: string;
|
|
2718
2742
|
serialized_tx?: string;
|
|
2719
2743
|
};
|
|
2720
|
-
|
|
2744
|
+
type TronSignMessage = {
|
|
2721
2745
|
address_n: number[];
|
|
2722
2746
|
message: string;
|
|
2723
2747
|
};
|
|
2724
|
-
|
|
2748
|
+
type TronMessageSignature = {
|
|
2725
2749
|
address: string;
|
|
2726
2750
|
signature: string;
|
|
2727
2751
|
};
|
|
2728
|
-
|
|
2752
|
+
type facotry = {};
|
|
2729
2753
|
declare enum CommandFlags {
|
|
2730
2754
|
Default = 0,
|
|
2731
2755
|
Factory_Only = 1
|
|
2732
2756
|
}
|
|
2733
|
-
|
|
2757
|
+
type MessageType = {
|
|
2734
2758
|
AlgorandGetAddress: AlgorandGetAddress;
|
|
2735
2759
|
AlgorandAddress: AlgorandAddress;
|
|
2736
2760
|
AlgorandSignTx: AlgorandSignTx;
|
|
@@ -3191,12 +3215,12 @@ declare type MessageType = {
|
|
|
3191
3215
|
TronMessageSignature: TronMessageSignature;
|
|
3192
3216
|
facotry: facotry;
|
|
3193
3217
|
};
|
|
3194
|
-
|
|
3195
|
-
|
|
3218
|
+
type MessageKey = keyof MessageType;
|
|
3219
|
+
type MessageResponse<T extends MessageKey> = {
|
|
3196
3220
|
type: T;
|
|
3197
3221
|
message: MessageType[T];
|
|
3198
3222
|
};
|
|
3199
|
-
|
|
3223
|
+
type TypedCall = <T extends MessageKey, R extends MessageKey>(type: T, resType: R, message?: MessageType[T]) => Promise<MessageResponse<R>>;
|
|
3200
3224
|
|
|
3201
3225
|
type messages_UintType = UintType;
|
|
3202
3226
|
type messages_AlgorandGetAddress = AlgorandGetAddress;
|
|
@@ -3508,6 +3532,10 @@ type messages_GetFeatures = GetFeatures;
|
|
|
3508
3532
|
type messages_Enum_Capability = Enum_Capability;
|
|
3509
3533
|
declare const messages_Enum_Capability: typeof Enum_Capability;
|
|
3510
3534
|
type messages_Capability = Capability;
|
|
3535
|
+
type messages_OneKeyDeviceType = OneKeyDeviceType;
|
|
3536
|
+
declare const messages_OneKeyDeviceType: typeof OneKeyDeviceType;
|
|
3537
|
+
type messages_OneKeySeType = OneKeySeType;
|
|
3538
|
+
declare const messages_OneKeySeType: typeof OneKeySeType;
|
|
3511
3539
|
type messages_Features = Features;
|
|
3512
3540
|
type messages_LockDevice = LockDevice;
|
|
3513
3541
|
type messages_EndSession = EndSession;
|
|
@@ -4053,6 +4081,8 @@ declare namespace messages {
|
|
|
4053
4081
|
messages_GetFeatures as GetFeatures,
|
|
4054
4082
|
messages_Enum_Capability as Enum_Capability,
|
|
4055
4083
|
messages_Capability as Capability,
|
|
4084
|
+
messages_OneKeyDeviceType as OneKeyDeviceType,
|
|
4085
|
+
messages_OneKeySeType as OneKeySeType,
|
|
4056
4086
|
messages_Features as Features,
|
|
4057
4087
|
messages_LockDevice as LockDevice,
|
|
4058
4088
|
messages_EndSession as EndSession,
|
|
@@ -4342,4 +4372,4 @@ declare const _default: {
|
|
|
4342
4372
|
decodeProtocol: typeof decodeProtocol;
|
|
4343
4373
|
};
|
|
4344
4374
|
|
|
4345
|
-
export { AcquireInput, Address, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCertificateType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoGovernanceRegistrationDelegation, CardanoGovernanceRegistrationFormat, CardanoGovernanceRegistrationParametersType, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, MessageKey, MessageResponse, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyMobileDeviceInfo, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignTx, SignedIdentity, SolanaAddress, SolanaGetAddress, SolanaSignTx, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
|
|
4375
|
+
export { AcquireInput, Address, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCertificateType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoGovernanceRegistrationDelegation, CardanoGovernanceRegistrationFormat, CardanoGovernanceRegistrationParametersType, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, MessageKey, MessageResponse, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySeType, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignTx, SignedIdentity, SolanaAddress, SolanaGetAddress, SolanaSignTx, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
|