@onekeyfe/hd-transport 0.3.30 → 0.3.31
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 +489 -489
- 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 +479 -479
- 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/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,8 @@ declare enum Enum_Capability {
|
|
|
1561
1561
|
Capability_ShamirGroups = 16,
|
|
1562
1562
|
Capability_PassphraseEntry = 17
|
|
1563
1563
|
}
|
|
1564
|
-
|
|
1565
|
-
|
|
1564
|
+
type Capability = keyof typeof Enum_Capability;
|
|
1565
|
+
type Features = {
|
|
1566
1566
|
vendor: string;
|
|
1567
1567
|
major_version: number;
|
|
1568
1568
|
minor_version: number;
|
|
@@ -1622,14 +1622,14 @@ declare type Features = {
|
|
|
1622
1622
|
build_id?: string;
|
|
1623
1623
|
battery_level?: number;
|
|
1624
1624
|
};
|
|
1625
|
-
|
|
1626
|
-
|
|
1625
|
+
type LockDevice = {};
|
|
1626
|
+
type EndSession = {};
|
|
1627
1627
|
declare enum ExportType {
|
|
1628
1628
|
SeedEncExportType_NO = 0,
|
|
1629
1629
|
SeedEncExportType_YES = 1,
|
|
1630
1630
|
MnemonicPlainExportType_YES = 2
|
|
1631
1631
|
}
|
|
1632
|
-
|
|
1632
|
+
type ApplySettings = {
|
|
1633
1633
|
language?: string;
|
|
1634
1634
|
label?: string;
|
|
1635
1635
|
use_passphrase?: boolean;
|
|
@@ -1648,13 +1648,13 @@ declare type ApplySettings = {
|
|
|
1648
1648
|
fastpay_money_limit?: number;
|
|
1649
1649
|
fastpay_times?: number;
|
|
1650
1650
|
};
|
|
1651
|
-
|
|
1651
|
+
type ApplyFlags = {
|
|
1652
1652
|
flags: number;
|
|
1653
1653
|
};
|
|
1654
|
-
|
|
1654
|
+
type ChangePin = {
|
|
1655
1655
|
remove?: boolean;
|
|
1656
1656
|
};
|
|
1657
|
-
|
|
1657
|
+
type ChangeWipeCode = {
|
|
1658
1658
|
remove?: boolean;
|
|
1659
1659
|
};
|
|
1660
1660
|
declare enum SdProtectOperationType {
|
|
@@ -1662,22 +1662,22 @@ declare enum SdProtectOperationType {
|
|
|
1662
1662
|
ENABLE = 1,
|
|
1663
1663
|
REFRESH = 2
|
|
1664
1664
|
}
|
|
1665
|
-
|
|
1665
|
+
type SdProtect = {
|
|
1666
1666
|
operation: SdProtectOperationType;
|
|
1667
1667
|
};
|
|
1668
|
-
|
|
1668
|
+
type Ping = {
|
|
1669
1669
|
message?: string;
|
|
1670
1670
|
button_protection?: boolean;
|
|
1671
1671
|
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1672
|
+
type Cancel = {};
|
|
1673
|
+
type GetEntropy = {
|
|
1674
1674
|
size: number;
|
|
1675
1675
|
};
|
|
1676
|
-
|
|
1676
|
+
type Entropy = {
|
|
1677
1677
|
entropy: string;
|
|
1678
1678
|
};
|
|
1679
|
-
|
|
1680
|
-
|
|
1679
|
+
type WipeDevice = {};
|
|
1680
|
+
type ResetDevice = {
|
|
1681
1681
|
display_random?: boolean;
|
|
1682
1682
|
strength?: number;
|
|
1683
1683
|
passphrase_protection?: boolean;
|
|
@@ -1689,16 +1689,16 @@ declare type ResetDevice = {
|
|
|
1689
1689
|
no_backup?: boolean;
|
|
1690
1690
|
backup_type?: string | number;
|
|
1691
1691
|
};
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1692
|
+
type BackupDevice = {};
|
|
1693
|
+
type EntropyRequest = {};
|
|
1694
|
+
type EntropyAck = {
|
|
1695
1695
|
entropy: string;
|
|
1696
1696
|
};
|
|
1697
1697
|
declare enum RecoveryDeviceType {
|
|
1698
1698
|
RecoveryDeviceType_ScrambledWords = 0,
|
|
1699
1699
|
RecoveryDeviceType_Matrix = 1
|
|
1700
1700
|
}
|
|
1701
|
-
|
|
1701
|
+
type RecoveryDevice = {
|
|
1702
1702
|
word_count?: number;
|
|
1703
1703
|
passphrase_protection?: boolean;
|
|
1704
1704
|
pin_protection?: boolean;
|
|
@@ -1714,56 +1714,56 @@ declare enum Enum_WordRequestType {
|
|
|
1714
1714
|
WordRequestType_Matrix9 = 1,
|
|
1715
1715
|
WordRequestType_Matrix6 = 2
|
|
1716
1716
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1717
|
+
type WordRequestType = keyof typeof Enum_WordRequestType;
|
|
1718
|
+
type WordRequest = {
|
|
1719
1719
|
type: WordRequestType;
|
|
1720
1720
|
};
|
|
1721
|
-
|
|
1721
|
+
type WordAck = {
|
|
1722
1722
|
word: string;
|
|
1723
1723
|
};
|
|
1724
|
-
|
|
1724
|
+
type SetU2FCounter = {
|
|
1725
1725
|
u2f_counter: number;
|
|
1726
1726
|
};
|
|
1727
|
-
|
|
1728
|
-
|
|
1727
|
+
type GetNextU2FCounter = {};
|
|
1728
|
+
type NextU2FCounter = {
|
|
1729
1729
|
u2f_counter: number;
|
|
1730
1730
|
};
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1731
|
+
type DoPreauthorized = {};
|
|
1732
|
+
type PreauthorizedRequest = {};
|
|
1733
|
+
type CancelAuthorization = {};
|
|
1734
1734
|
declare enum SeedRequestType {
|
|
1735
1735
|
SeedRequestType_Gen = 0,
|
|
1736
1736
|
SeedRequestType_EncExport = 1,
|
|
1737
1737
|
SeedRequestType_EncImport = 2
|
|
1738
1738
|
}
|
|
1739
|
-
|
|
1739
|
+
type BixinSeedOperate = {
|
|
1740
1740
|
type: SeedRequestType;
|
|
1741
1741
|
seed_importData?: string;
|
|
1742
1742
|
};
|
|
1743
|
-
|
|
1743
|
+
type BixinMessageSE = {
|
|
1744
1744
|
inputmessage: string;
|
|
1745
1745
|
};
|
|
1746
|
-
|
|
1746
|
+
type BixinOutMessageSE = {
|
|
1747
1747
|
outmessage?: string;
|
|
1748
1748
|
};
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1749
|
+
type DeviceBackToBoot = {};
|
|
1750
|
+
type BixinBackupRequest = {};
|
|
1751
|
+
type BixinBackupAck = {
|
|
1752
1752
|
data: string;
|
|
1753
1753
|
};
|
|
1754
|
-
|
|
1754
|
+
type BixinRestoreRequest = {
|
|
1755
1755
|
data: string;
|
|
1756
1756
|
language?: string;
|
|
1757
1757
|
label?: string;
|
|
1758
1758
|
passphrase_protection?: boolean;
|
|
1759
1759
|
};
|
|
1760
|
-
|
|
1760
|
+
type BixinRestoreAck = {
|
|
1761
1761
|
data: string;
|
|
1762
1762
|
};
|
|
1763
|
-
|
|
1763
|
+
type BixinVerifyDeviceRequest = {
|
|
1764
1764
|
data: string;
|
|
1765
1765
|
};
|
|
1766
|
-
|
|
1766
|
+
type BixinVerifyDeviceAck = {
|
|
1767
1767
|
cert: string;
|
|
1768
1768
|
signature: string;
|
|
1769
1769
|
};
|
|
@@ -1772,30 +1772,30 @@ declare enum WL_OperationType {
|
|
|
1772
1772
|
WL_OperationType_Delete = 1,
|
|
1773
1773
|
WL_OperationType_Inquire = 2
|
|
1774
1774
|
}
|
|
1775
|
-
|
|
1775
|
+
type BixinWhiteListRequest = {
|
|
1776
1776
|
type: WL_OperationType;
|
|
1777
1777
|
addr_in?: string;
|
|
1778
1778
|
};
|
|
1779
|
-
|
|
1779
|
+
type BixinWhiteListAck = {
|
|
1780
1780
|
address: string[];
|
|
1781
1781
|
};
|
|
1782
|
-
|
|
1782
|
+
type BixinLoadDevice = {
|
|
1783
1783
|
mnemonics: string;
|
|
1784
1784
|
language?: string;
|
|
1785
1785
|
label?: string;
|
|
1786
1786
|
skip_checksum?: boolean;
|
|
1787
1787
|
};
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
type BixinBackupDevice = {};
|
|
1789
|
+
type BixinBackupDeviceAck = {
|
|
1790
1790
|
mnemonics: string;
|
|
1791
1791
|
};
|
|
1792
|
-
|
|
1792
|
+
type DeviceInfoSettings = {
|
|
1793
1793
|
serial_no?: string;
|
|
1794
1794
|
cpu_info?: string;
|
|
1795
1795
|
pre_firmware?: string;
|
|
1796
1796
|
};
|
|
1797
|
-
|
|
1798
|
-
|
|
1797
|
+
type GetDeviceInfo = {};
|
|
1798
|
+
type DeviceInfo = {
|
|
1799
1799
|
serial_no?: string;
|
|
1800
1800
|
spiFlash_info?: string;
|
|
1801
1801
|
SE_info?: string;
|
|
@@ -1803,39 +1803,39 @@ declare type DeviceInfo = {
|
|
|
1803
1803
|
cpu_info?: string;
|
|
1804
1804
|
pre_firmware?: string;
|
|
1805
1805
|
};
|
|
1806
|
-
|
|
1807
|
-
|
|
1806
|
+
type ReadSEPublicKey = {};
|
|
1807
|
+
type SEPublicKey = {
|
|
1808
1808
|
public_key: string;
|
|
1809
1809
|
};
|
|
1810
|
-
|
|
1810
|
+
type WriteSEPublicCert = {
|
|
1811
1811
|
public_cert: string;
|
|
1812
1812
|
};
|
|
1813
|
-
|
|
1814
|
-
|
|
1813
|
+
type ReadSEPublicCert = {};
|
|
1814
|
+
type SEPublicCert = {
|
|
1815
1815
|
public_cert: string;
|
|
1816
1816
|
};
|
|
1817
|
-
|
|
1817
|
+
type SpiFlashWrite = {
|
|
1818
1818
|
address: number;
|
|
1819
1819
|
data: string;
|
|
1820
1820
|
};
|
|
1821
|
-
|
|
1821
|
+
type SpiFlashRead = {
|
|
1822
1822
|
address: number;
|
|
1823
1823
|
len: number;
|
|
1824
1824
|
};
|
|
1825
|
-
|
|
1825
|
+
type SpiFlashData = {
|
|
1826
1826
|
data: string;
|
|
1827
1827
|
};
|
|
1828
|
-
|
|
1828
|
+
type SESignMessage = {
|
|
1829
1829
|
message: string;
|
|
1830
1830
|
};
|
|
1831
|
-
|
|
1831
|
+
type SEMessageSignature = {
|
|
1832
1832
|
signature: string;
|
|
1833
1833
|
};
|
|
1834
1834
|
declare enum ResourceType {
|
|
1835
1835
|
WallPaper = 0,
|
|
1836
1836
|
Nft = 1
|
|
1837
1837
|
}
|
|
1838
|
-
|
|
1838
|
+
type ResourceUpload = {
|
|
1839
1839
|
extension: string;
|
|
1840
1840
|
data_length: number;
|
|
1841
1841
|
res_type: ResourceType;
|
|
@@ -1843,66 +1843,66 @@ declare type ResourceUpload = {
|
|
|
1843
1843
|
zoom_data_length: number;
|
|
1844
1844
|
file_name_no_ext?: string;
|
|
1845
1845
|
};
|
|
1846
|
-
|
|
1846
|
+
type ZoomRequest = {
|
|
1847
1847
|
offset?: number;
|
|
1848
1848
|
data_length: number;
|
|
1849
1849
|
};
|
|
1850
|
-
|
|
1850
|
+
type ResourceRequest = {
|
|
1851
1851
|
offset?: number;
|
|
1852
1852
|
data_length: number;
|
|
1853
1853
|
};
|
|
1854
|
-
|
|
1854
|
+
type ResourceAck = {
|
|
1855
1855
|
data_chunk: string;
|
|
1856
1856
|
hash?: string;
|
|
1857
1857
|
};
|
|
1858
|
-
|
|
1858
|
+
type ResourceUpdate = {
|
|
1859
1859
|
file_name: string;
|
|
1860
1860
|
data_length: number;
|
|
1861
1861
|
initial_data_chunk: string;
|
|
1862
1862
|
hash?: string;
|
|
1863
1863
|
};
|
|
1864
|
-
|
|
1864
|
+
type NFTWriteInfo = {
|
|
1865
1865
|
index: number;
|
|
1866
1866
|
width: number;
|
|
1867
1867
|
height: number;
|
|
1868
1868
|
name_zh?: string;
|
|
1869
1869
|
name_en?: string;
|
|
1870
1870
|
};
|
|
1871
|
-
|
|
1871
|
+
type NFTWriteData = {
|
|
1872
1872
|
index: number;
|
|
1873
1873
|
data: string;
|
|
1874
1874
|
offset: number;
|
|
1875
1875
|
};
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1876
|
+
type RebootToBootloader = {};
|
|
1877
|
+
type RebootToBoardloader = {};
|
|
1878
|
+
type ListResDir = {
|
|
1879
1879
|
path: string;
|
|
1880
1880
|
};
|
|
1881
|
-
|
|
1881
|
+
type FileInfo = {
|
|
1882
1882
|
name: string;
|
|
1883
1883
|
size: number;
|
|
1884
1884
|
};
|
|
1885
|
-
|
|
1885
|
+
type FileInfoList = {
|
|
1886
1886
|
files: FileInfo[];
|
|
1887
1887
|
};
|
|
1888
|
-
|
|
1888
|
+
type DeviceEraseSector = {
|
|
1889
1889
|
sector: number;
|
|
1890
1890
|
};
|
|
1891
|
-
|
|
1891
|
+
type MoneroRctKeyPublic = {
|
|
1892
1892
|
dest?: string;
|
|
1893
1893
|
commitment?: string;
|
|
1894
1894
|
};
|
|
1895
|
-
|
|
1895
|
+
type MoneroOutputEntry = {
|
|
1896
1896
|
idx?: number;
|
|
1897
1897
|
key?: MoneroRctKeyPublic;
|
|
1898
1898
|
};
|
|
1899
|
-
|
|
1899
|
+
type MoneroMultisigKLRki = {
|
|
1900
1900
|
K?: string;
|
|
1901
1901
|
L?: string;
|
|
1902
1902
|
R?: string;
|
|
1903
1903
|
ki?: string;
|
|
1904
1904
|
};
|
|
1905
|
-
|
|
1905
|
+
type MoneroTransactionSourceEntry = {
|
|
1906
1906
|
outputs: MoneroOutputEntry[];
|
|
1907
1907
|
real_output?: number;
|
|
1908
1908
|
real_out_tx_key?: string;
|
|
@@ -1914,18 +1914,18 @@ declare type MoneroTransactionSourceEntry = {
|
|
|
1914
1914
|
multisig_kLRki?: MoneroMultisigKLRki;
|
|
1915
1915
|
subaddr_minor?: number;
|
|
1916
1916
|
};
|
|
1917
|
-
|
|
1917
|
+
type MoneroAccountPublicAddress = {
|
|
1918
1918
|
spend_public_key?: string;
|
|
1919
1919
|
view_public_key?: string;
|
|
1920
1920
|
};
|
|
1921
|
-
|
|
1921
|
+
type MoneroTransactionDestinationEntry = {
|
|
1922
1922
|
amount?: UintType;
|
|
1923
1923
|
addr?: MoneroAccountPublicAddress;
|
|
1924
1924
|
is_subaddress?: boolean;
|
|
1925
1925
|
original?: string;
|
|
1926
1926
|
is_integrated?: boolean;
|
|
1927
1927
|
};
|
|
1928
|
-
|
|
1928
|
+
type MoneroTransactionRsigData = {
|
|
1929
1929
|
rsig_type?: number;
|
|
1930
1930
|
offload_type?: number;
|
|
1931
1931
|
grouping: number[];
|
|
@@ -1934,7 +1934,7 @@ declare type MoneroTransactionRsigData = {
|
|
|
1934
1934
|
rsig_parts: string[];
|
|
1935
1935
|
bp_version?: number;
|
|
1936
1936
|
};
|
|
1937
|
-
|
|
1937
|
+
type MoneroGetAddress = {
|
|
1938
1938
|
address_n: number[];
|
|
1939
1939
|
show_display?: boolean;
|
|
1940
1940
|
network_type?: number;
|
|
@@ -1942,18 +1942,18 @@ declare type MoneroGetAddress = {
|
|
|
1942
1942
|
minor?: number;
|
|
1943
1943
|
payment_id?: string;
|
|
1944
1944
|
};
|
|
1945
|
-
|
|
1945
|
+
type MoneroAddress = {
|
|
1946
1946
|
address?: string;
|
|
1947
1947
|
};
|
|
1948
|
-
|
|
1948
|
+
type MoneroGetWatchKey = {
|
|
1949
1949
|
address_n: number[];
|
|
1950
1950
|
network_type?: number;
|
|
1951
1951
|
};
|
|
1952
|
-
|
|
1952
|
+
type MoneroWatchKey = {
|
|
1953
1953
|
watch_key?: string;
|
|
1954
1954
|
address?: string;
|
|
1955
1955
|
};
|
|
1956
|
-
|
|
1956
|
+
type MoneroTransactionData = {
|
|
1957
1957
|
version?: number;
|
|
1958
1958
|
payment_id?: string;
|
|
1959
1959
|
unlock_time?: number;
|
|
@@ -1970,20 +1970,20 @@ declare type MoneroTransactionData = {
|
|
|
1970
1970
|
hard_fork?: number;
|
|
1971
1971
|
monero_version?: string;
|
|
1972
1972
|
};
|
|
1973
|
-
|
|
1973
|
+
type MoneroTransactionInitRequest = {
|
|
1974
1974
|
version?: number;
|
|
1975
1975
|
address_n: number[];
|
|
1976
1976
|
network_type?: number;
|
|
1977
1977
|
tsx_data?: MoneroTransactionData;
|
|
1978
1978
|
};
|
|
1979
|
-
|
|
1979
|
+
type MoneroTransactionInitAck = {
|
|
1980
1980
|
hmacs: string[];
|
|
1981
1981
|
rsig_data?: MoneroTransactionRsigData;
|
|
1982
1982
|
};
|
|
1983
|
-
|
|
1983
|
+
type MoneroTransactionSetInputRequest = {
|
|
1984
1984
|
src_entr?: MoneroTransactionSourceEntry;
|
|
1985
1985
|
};
|
|
1986
|
-
|
|
1986
|
+
type MoneroTransactionSetInputAck = {
|
|
1987
1987
|
vini?: string;
|
|
1988
1988
|
vini_hmac?: string;
|
|
1989
1989
|
pseudo_out?: string;
|
|
@@ -1991,11 +1991,11 @@ declare type MoneroTransactionSetInputAck = {
|
|
|
1991
1991
|
pseudo_out_alpha?: string;
|
|
1992
1992
|
spend_key?: string;
|
|
1993
1993
|
};
|
|
1994
|
-
|
|
1994
|
+
type MoneroTransactionInputsPermutationRequest = {
|
|
1995
1995
|
perm: number[];
|
|
1996
1996
|
};
|
|
1997
|
-
|
|
1998
|
-
|
|
1997
|
+
type MoneroTransactionInputsPermutationAck = {};
|
|
1998
|
+
type MoneroTransactionInputViniRequest = {
|
|
1999
1999
|
src_entr?: MoneroTransactionSourceEntry;
|
|
2000
2000
|
vini?: string;
|
|
2001
2001
|
vini_hmac?: string;
|
|
@@ -2003,39 +2003,39 @@ declare type MoneroTransactionInputViniRequest = {
|
|
|
2003
2003
|
pseudo_out_hmac?: string;
|
|
2004
2004
|
orig_idx?: number;
|
|
2005
2005
|
};
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2006
|
+
type MoneroTransactionInputViniAck = {};
|
|
2007
|
+
type MoneroTransactionAllInputsSetRequest = {};
|
|
2008
|
+
type MoneroTransactionAllInputsSetAck = {
|
|
2009
2009
|
rsig_data?: MoneroTransactionRsigData;
|
|
2010
2010
|
};
|
|
2011
|
-
|
|
2011
|
+
type MoneroTransactionSetOutputRequest = {
|
|
2012
2012
|
dst_entr?: MoneroTransactionDestinationEntry;
|
|
2013
2013
|
dst_entr_hmac?: string;
|
|
2014
2014
|
rsig_data?: MoneroTransactionRsigData;
|
|
2015
2015
|
is_offloaded_bp?: boolean;
|
|
2016
2016
|
};
|
|
2017
|
-
|
|
2017
|
+
type MoneroTransactionSetOutputAck = {
|
|
2018
2018
|
tx_out?: string;
|
|
2019
2019
|
vouti_hmac?: string;
|
|
2020
2020
|
rsig_data?: MoneroTransactionRsigData;
|
|
2021
2021
|
out_pk?: string;
|
|
2022
2022
|
ecdh_info?: string;
|
|
2023
2023
|
};
|
|
2024
|
-
|
|
2024
|
+
type MoneroTransactionAllOutSetRequest = {
|
|
2025
2025
|
rsig_data?: MoneroTransactionRsigData;
|
|
2026
2026
|
};
|
|
2027
|
-
|
|
2027
|
+
type MoneroRingCtSig = {
|
|
2028
2028
|
txn_fee?: number;
|
|
2029
2029
|
message?: string;
|
|
2030
2030
|
rv_type?: number;
|
|
2031
2031
|
};
|
|
2032
|
-
|
|
2032
|
+
type MoneroTransactionAllOutSetAck = {
|
|
2033
2033
|
extra?: string;
|
|
2034
2034
|
tx_prefix_hash?: string;
|
|
2035
2035
|
rv?: MoneroRingCtSig;
|
|
2036
2036
|
full_message_hash?: string;
|
|
2037
2037
|
};
|
|
2038
|
-
|
|
2038
|
+
type MoneroTransactionSignInputRequest = {
|
|
2039
2039
|
src_entr?: MoneroTransactionSourceEntry;
|
|
2040
2040
|
vini?: string;
|
|
2041
2041
|
vini_hmac?: string;
|
|
@@ -2045,31 +2045,31 @@ declare type MoneroTransactionSignInputRequest = {
|
|
|
2045
2045
|
spend_key?: string;
|
|
2046
2046
|
orig_idx?: number;
|
|
2047
2047
|
};
|
|
2048
|
-
|
|
2048
|
+
type MoneroTransactionSignInputAck = {
|
|
2049
2049
|
signature?: string;
|
|
2050
2050
|
pseudo_out?: string;
|
|
2051
2051
|
};
|
|
2052
|
-
|
|
2053
|
-
|
|
2052
|
+
type MoneroTransactionFinalRequest = {};
|
|
2053
|
+
type MoneroTransactionFinalAck = {
|
|
2054
2054
|
cout_key?: string;
|
|
2055
2055
|
salt?: string;
|
|
2056
2056
|
rand_mult?: string;
|
|
2057
2057
|
tx_enc_keys?: string;
|
|
2058
2058
|
opening_key?: string;
|
|
2059
2059
|
};
|
|
2060
|
-
|
|
2060
|
+
type MoneroSubAddressIndicesList = {
|
|
2061
2061
|
account?: number;
|
|
2062
2062
|
minor_indices: number[];
|
|
2063
2063
|
};
|
|
2064
|
-
|
|
2064
|
+
type MoneroKeyImageExportInitRequest = {
|
|
2065
2065
|
num?: number;
|
|
2066
2066
|
hash?: string;
|
|
2067
2067
|
address_n: number[];
|
|
2068
2068
|
network_type?: number;
|
|
2069
2069
|
subs: MoneroSubAddressIndicesList[];
|
|
2070
2070
|
};
|
|
2071
|
-
|
|
2072
|
-
|
|
2071
|
+
type MoneroKeyImageExportInitAck = {};
|
|
2072
|
+
type MoneroTransferDetails = {
|
|
2073
2073
|
out_key?: string;
|
|
2074
2074
|
tx_pub_key?: string;
|
|
2075
2075
|
additional_tx_pub_keys: string[];
|
|
@@ -2077,21 +2077,21 @@ declare type MoneroTransferDetails = {
|
|
|
2077
2077
|
sub_addr_major?: number;
|
|
2078
2078
|
sub_addr_minor?: number;
|
|
2079
2079
|
};
|
|
2080
|
-
|
|
2080
|
+
type MoneroKeyImageSyncStepRequest = {
|
|
2081
2081
|
tdis: MoneroTransferDetails[];
|
|
2082
2082
|
};
|
|
2083
|
-
|
|
2083
|
+
type MoneroExportedKeyImage = {
|
|
2084
2084
|
iv?: string;
|
|
2085
2085
|
blob?: string;
|
|
2086
2086
|
};
|
|
2087
|
-
|
|
2087
|
+
type MoneroKeyImageSyncStepAck = {
|
|
2088
2088
|
kis: MoneroExportedKeyImage[];
|
|
2089
2089
|
};
|
|
2090
|
-
|
|
2091
|
-
|
|
2090
|
+
type MoneroKeyImageSyncFinalRequest = {};
|
|
2091
|
+
type MoneroKeyImageSyncFinalAck = {
|
|
2092
2092
|
enc_key?: string;
|
|
2093
2093
|
};
|
|
2094
|
-
|
|
2094
|
+
type MoneroGetTxKeyRequest = {
|
|
2095
2095
|
address_n: number[];
|
|
2096
2096
|
network_type?: number;
|
|
2097
2097
|
salt1?: string;
|
|
@@ -2101,52 +2101,52 @@ declare type MoneroGetTxKeyRequest = {
|
|
|
2101
2101
|
reason?: number;
|
|
2102
2102
|
view_public_key?: string;
|
|
2103
2103
|
};
|
|
2104
|
-
|
|
2104
|
+
type MoneroGetTxKeyAck = {
|
|
2105
2105
|
salt?: string;
|
|
2106
2106
|
tx_keys?: string;
|
|
2107
2107
|
tx_derivations?: string;
|
|
2108
2108
|
};
|
|
2109
|
-
|
|
2109
|
+
type MoneroLiveRefreshStartRequest = {
|
|
2110
2110
|
address_n: number[];
|
|
2111
2111
|
network_type?: number;
|
|
2112
2112
|
};
|
|
2113
|
-
|
|
2114
|
-
|
|
2113
|
+
type MoneroLiveRefreshStartAck = {};
|
|
2114
|
+
type MoneroLiveRefreshStepRequest = {
|
|
2115
2115
|
out_key?: string;
|
|
2116
2116
|
recv_deriv?: string;
|
|
2117
2117
|
real_out_idx?: number;
|
|
2118
2118
|
sub_addr_major?: number;
|
|
2119
2119
|
sub_addr_minor?: number;
|
|
2120
2120
|
};
|
|
2121
|
-
|
|
2121
|
+
type MoneroLiveRefreshStepAck = {
|
|
2122
2122
|
salt?: string;
|
|
2123
2123
|
key_image?: string;
|
|
2124
2124
|
};
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2125
|
+
type MoneroLiveRefreshFinalRequest = {};
|
|
2126
|
+
type MoneroLiveRefreshFinalAck = {};
|
|
2127
|
+
type NearGetAddress = {
|
|
2128
2128
|
address_n: number[];
|
|
2129
2129
|
show_display?: boolean;
|
|
2130
2130
|
};
|
|
2131
|
-
|
|
2131
|
+
type NearAddress = {
|
|
2132
2132
|
address?: string;
|
|
2133
2133
|
};
|
|
2134
|
-
|
|
2134
|
+
type NearSignTx = {
|
|
2135
2135
|
address_n: number[];
|
|
2136
2136
|
raw_tx: string;
|
|
2137
2137
|
};
|
|
2138
|
-
|
|
2138
|
+
type NearSignedTx = {
|
|
2139
2139
|
signature: string;
|
|
2140
2140
|
};
|
|
2141
|
-
|
|
2141
|
+
type NEMGetAddress = {
|
|
2142
2142
|
address_n: number[];
|
|
2143
2143
|
network?: number;
|
|
2144
2144
|
show_display?: boolean;
|
|
2145
2145
|
};
|
|
2146
|
-
|
|
2146
|
+
type NEMAddress = {
|
|
2147
2147
|
address: string;
|
|
2148
2148
|
};
|
|
2149
|
-
|
|
2149
|
+
type NEMTransactionCommon = {
|
|
2150
2150
|
address_n?: number[];
|
|
2151
2151
|
network?: number;
|
|
2152
2152
|
timestamp?: number;
|
|
@@ -2154,19 +2154,19 @@ declare type NEMTransactionCommon = {
|
|
|
2154
2154
|
deadline?: number;
|
|
2155
2155
|
signer?: string;
|
|
2156
2156
|
};
|
|
2157
|
-
|
|
2157
|
+
type NEMMosaic = {
|
|
2158
2158
|
namespace?: string;
|
|
2159
2159
|
mosaic?: string;
|
|
2160
2160
|
quantity?: number;
|
|
2161
2161
|
};
|
|
2162
|
-
|
|
2162
|
+
type NEMTransfer = {
|
|
2163
2163
|
recipient?: string;
|
|
2164
2164
|
amount?: UintType;
|
|
2165
2165
|
payload?: string;
|
|
2166
2166
|
public_key?: string;
|
|
2167
2167
|
mosaics?: NEMMosaic[];
|
|
2168
2168
|
};
|
|
2169
|
-
|
|
2169
|
+
type NEMProvisionNamespace = {
|
|
2170
2170
|
namespace?: string;
|
|
2171
2171
|
parent?: string;
|
|
2172
2172
|
sink?: string;
|
|
@@ -2176,7 +2176,7 @@ declare enum NEMMosaicLevy {
|
|
|
2176
2176
|
MosaicLevy_Absolute = 1,
|
|
2177
2177
|
MosaicLevy_Percentile = 2
|
|
2178
2178
|
}
|
|
2179
|
-
|
|
2179
|
+
type NEMMosaicDefinition = {
|
|
2180
2180
|
name?: string;
|
|
2181
2181
|
ticker?: string;
|
|
2182
2182
|
namespace?: string;
|
|
@@ -2193,7 +2193,7 @@ declare type NEMMosaicDefinition = {
|
|
|
2193
2193
|
description?: string;
|
|
2194
2194
|
networks?: number[];
|
|
2195
2195
|
};
|
|
2196
|
-
|
|
2196
|
+
type NEMMosaicCreation = {
|
|
2197
2197
|
definition?: NEMMosaicDefinition;
|
|
2198
2198
|
sink?: string;
|
|
2199
2199
|
fee?: UintType;
|
|
@@ -2202,7 +2202,7 @@ declare enum NEMSupplyChangeType {
|
|
|
2202
2202
|
SupplyChange_Increase = 1,
|
|
2203
2203
|
SupplyChange_Decrease = 2
|
|
2204
2204
|
}
|
|
2205
|
-
|
|
2205
|
+
type NEMMosaicSupplyChange = {
|
|
2206
2206
|
namespace?: string;
|
|
2207
2207
|
mosaic?: string;
|
|
2208
2208
|
type?: NEMSupplyChangeType;
|
|
@@ -2212,11 +2212,11 @@ declare enum NEMModificationType {
|
|
|
2212
2212
|
CosignatoryModification_Add = 1,
|
|
2213
2213
|
CosignatoryModification_Delete = 2
|
|
2214
2214
|
}
|
|
2215
|
-
|
|
2215
|
+
type NEMCosignatoryModification = {
|
|
2216
2216
|
type?: NEMModificationType;
|
|
2217
2217
|
public_key?: string;
|
|
2218
2218
|
};
|
|
2219
|
-
|
|
2219
|
+
type NEMAggregateModification = {
|
|
2220
2220
|
modifications?: NEMCosignatoryModification[];
|
|
2221
2221
|
relative_change?: number;
|
|
2222
2222
|
};
|
|
@@ -2224,11 +2224,11 @@ declare enum NEMImportanceTransferMode {
|
|
|
2224
2224
|
ImportanceTransfer_Activate = 1,
|
|
2225
2225
|
ImportanceTransfer_Deactivate = 2
|
|
2226
2226
|
}
|
|
2227
|
-
|
|
2227
|
+
type NEMImportanceTransfer = {
|
|
2228
2228
|
mode?: NEMImportanceTransferMode;
|
|
2229
2229
|
public_key?: string;
|
|
2230
2230
|
};
|
|
2231
|
-
|
|
2231
|
+
type NEMSignTx = {
|
|
2232
2232
|
transaction?: NEMTransactionCommon;
|
|
2233
2233
|
multisig?: NEMTransactionCommon;
|
|
2234
2234
|
transfer?: NEMTransfer;
|
|
@@ -2239,76 +2239,76 @@ declare type NEMSignTx = {
|
|
|
2239
2239
|
aggregate_modification?: NEMAggregateModification;
|
|
2240
2240
|
importance_transfer?: NEMImportanceTransfer;
|
|
2241
2241
|
};
|
|
2242
|
-
|
|
2242
|
+
type NEMSignedTx = {
|
|
2243
2243
|
data: string;
|
|
2244
2244
|
signature: string;
|
|
2245
2245
|
};
|
|
2246
|
-
|
|
2246
|
+
type NEMDecryptMessage = {
|
|
2247
2247
|
address_n: number[];
|
|
2248
2248
|
network?: number;
|
|
2249
2249
|
public_key?: string;
|
|
2250
2250
|
payload?: string;
|
|
2251
2251
|
};
|
|
2252
|
-
|
|
2252
|
+
type NEMDecryptedMessage = {
|
|
2253
2253
|
payload: string;
|
|
2254
2254
|
};
|
|
2255
|
-
|
|
2255
|
+
type NexaGetAddress = {
|
|
2256
2256
|
address_n: number[];
|
|
2257
2257
|
show_display?: boolean;
|
|
2258
2258
|
prefix?: string;
|
|
2259
2259
|
};
|
|
2260
|
-
|
|
2260
|
+
type NexaAddress = {
|
|
2261
2261
|
address: string;
|
|
2262
2262
|
public_key: string;
|
|
2263
2263
|
};
|
|
2264
|
-
|
|
2264
|
+
type NexaSignTx = {
|
|
2265
2265
|
address_n: number[];
|
|
2266
2266
|
raw_message: string;
|
|
2267
2267
|
prefix?: string;
|
|
2268
2268
|
input_count?: number;
|
|
2269
2269
|
};
|
|
2270
|
-
|
|
2270
|
+
type NexaTxInputRequest = {
|
|
2271
2271
|
request_index: number;
|
|
2272
2272
|
signature?: string;
|
|
2273
2273
|
};
|
|
2274
|
-
|
|
2274
|
+
type NexaTxInputAck = {
|
|
2275
2275
|
address_n: number[];
|
|
2276
2276
|
raw_message: string;
|
|
2277
2277
|
};
|
|
2278
|
-
|
|
2278
|
+
type NexaSignedTx = {
|
|
2279
2279
|
signature: string;
|
|
2280
2280
|
};
|
|
2281
|
-
|
|
2281
|
+
type PolkadotGetAddress = {
|
|
2282
2282
|
address_n: number[];
|
|
2283
2283
|
prefix: number;
|
|
2284
2284
|
network: string;
|
|
2285
2285
|
show_display?: boolean;
|
|
2286
2286
|
};
|
|
2287
|
-
|
|
2287
|
+
type PolkadotAddress = {
|
|
2288
2288
|
address?: string;
|
|
2289
2289
|
public_key?: string;
|
|
2290
2290
|
};
|
|
2291
|
-
|
|
2291
|
+
type PolkadotSignTx = {
|
|
2292
2292
|
address_n: number[];
|
|
2293
2293
|
raw_tx: string;
|
|
2294
2294
|
network: string;
|
|
2295
2295
|
};
|
|
2296
|
-
|
|
2296
|
+
type PolkadotSignedTx = {
|
|
2297
2297
|
signature: string;
|
|
2298
2298
|
};
|
|
2299
|
-
|
|
2299
|
+
type RippleGetAddress = {
|
|
2300
2300
|
address_n: number[];
|
|
2301
2301
|
show_display?: boolean;
|
|
2302
2302
|
};
|
|
2303
|
-
|
|
2303
|
+
type RippleAddress = {
|
|
2304
2304
|
address: string;
|
|
2305
2305
|
};
|
|
2306
|
-
|
|
2306
|
+
type RipplePayment = {
|
|
2307
2307
|
amount: UintType;
|
|
2308
2308
|
destination: string;
|
|
2309
2309
|
destination_tag?: number;
|
|
2310
2310
|
};
|
|
2311
|
-
|
|
2311
|
+
type RippleSignTx = {
|
|
2312
2312
|
address_n: number[];
|
|
2313
2313
|
fee?: UintType;
|
|
2314
2314
|
flags?: number;
|
|
@@ -2316,55 +2316,55 @@ declare type RippleSignTx = {
|
|
|
2316
2316
|
last_ledger_sequence?: number;
|
|
2317
2317
|
payment?: RipplePayment;
|
|
2318
2318
|
};
|
|
2319
|
-
|
|
2319
|
+
type RippleSignedTx = {
|
|
2320
2320
|
signature: string;
|
|
2321
2321
|
serialized_tx: string;
|
|
2322
2322
|
};
|
|
2323
|
-
|
|
2323
|
+
type SolanaGetAddress = {
|
|
2324
2324
|
address_n: number[];
|
|
2325
2325
|
show_display?: boolean;
|
|
2326
2326
|
};
|
|
2327
|
-
|
|
2327
|
+
type SolanaAddress = {
|
|
2328
2328
|
address?: string;
|
|
2329
2329
|
};
|
|
2330
|
-
|
|
2330
|
+
type SolanaSignTx = {
|
|
2331
2331
|
address_n: number[];
|
|
2332
2332
|
raw_tx: string;
|
|
2333
2333
|
};
|
|
2334
|
-
|
|
2334
|
+
type SolanaSignedTx = {
|
|
2335
2335
|
signature?: string;
|
|
2336
2336
|
};
|
|
2337
|
-
|
|
2337
|
+
type StarcoinGetAddress = {
|
|
2338
2338
|
address_n: number[];
|
|
2339
2339
|
show_display?: boolean;
|
|
2340
2340
|
};
|
|
2341
|
-
|
|
2341
|
+
type StarcoinAddress = {
|
|
2342
2342
|
address?: string;
|
|
2343
2343
|
};
|
|
2344
|
-
|
|
2344
|
+
type StarcoinGetPublicKey = {
|
|
2345
2345
|
address_n: number[];
|
|
2346
2346
|
show_display?: boolean;
|
|
2347
2347
|
};
|
|
2348
|
-
|
|
2348
|
+
type StarcoinPublicKey = {
|
|
2349
2349
|
public_key: string;
|
|
2350
2350
|
};
|
|
2351
|
-
|
|
2351
|
+
type StarcoinSignTx = {
|
|
2352
2352
|
address_n: number[];
|
|
2353
2353
|
raw_tx?: string;
|
|
2354
2354
|
};
|
|
2355
|
-
|
|
2355
|
+
type StarcoinSignedTx = {
|
|
2356
2356
|
public_key: string;
|
|
2357
2357
|
signature: string;
|
|
2358
2358
|
};
|
|
2359
|
-
|
|
2359
|
+
type StarcoinSignMessage = {
|
|
2360
2360
|
address_n: number[];
|
|
2361
2361
|
message?: string;
|
|
2362
2362
|
};
|
|
2363
|
-
|
|
2363
|
+
type StarcoinMessageSignature = {
|
|
2364
2364
|
public_key: string;
|
|
2365
2365
|
signature: string;
|
|
2366
2366
|
};
|
|
2367
|
-
|
|
2367
|
+
type StarcoinVerifyMessage = {
|
|
2368
2368
|
public_key?: string;
|
|
2369
2369
|
signature?: string;
|
|
2370
2370
|
message?: string;
|
|
@@ -2374,16 +2374,16 @@ declare enum StellarAssetType {
|
|
|
2374
2374
|
ALPHANUM4 = 1,
|
|
2375
2375
|
ALPHANUM12 = 2
|
|
2376
2376
|
}
|
|
2377
|
-
|
|
2377
|
+
type StellarAsset = {
|
|
2378
2378
|
type: StellarAssetType;
|
|
2379
2379
|
code?: string;
|
|
2380
2380
|
issuer?: string;
|
|
2381
2381
|
};
|
|
2382
|
-
|
|
2382
|
+
type StellarGetAddress = {
|
|
2383
2383
|
address_n: number[];
|
|
2384
2384
|
show_display?: boolean;
|
|
2385
2385
|
};
|
|
2386
|
-
|
|
2386
|
+
type StellarAddress = {
|
|
2387
2387
|
address: string;
|
|
2388
2388
|
};
|
|
2389
2389
|
declare enum StellarMemoType {
|
|
@@ -2393,7 +2393,7 @@ declare enum StellarMemoType {
|
|
|
2393
2393
|
HASH = 3,
|
|
2394
2394
|
RETURN = 4
|
|
2395
2395
|
}
|
|
2396
|
-
|
|
2396
|
+
type StellarSignTx = {
|
|
2397
2397
|
address_n: number[];
|
|
2398
2398
|
network_passphrase: string;
|
|
2399
2399
|
source_account: string;
|
|
@@ -2407,19 +2407,19 @@ declare type StellarSignTx = {
|
|
|
2407
2407
|
memo_hash?: Buffer | string;
|
|
2408
2408
|
num_operations: number;
|
|
2409
2409
|
};
|
|
2410
|
-
|
|
2411
|
-
|
|
2410
|
+
type StellarTxOpRequest = {};
|
|
2411
|
+
type StellarPaymentOp = {
|
|
2412
2412
|
source_account?: string;
|
|
2413
2413
|
destination_account: string;
|
|
2414
2414
|
asset: StellarAsset;
|
|
2415
2415
|
amount: UintType;
|
|
2416
2416
|
};
|
|
2417
|
-
|
|
2417
|
+
type StellarCreateAccountOp = {
|
|
2418
2418
|
source_account?: string;
|
|
2419
2419
|
new_account: string;
|
|
2420
2420
|
starting_balance: UintType;
|
|
2421
2421
|
};
|
|
2422
|
-
|
|
2422
|
+
type StellarPathPaymentStrictReceiveOp = {
|
|
2423
2423
|
source_account?: string;
|
|
2424
2424
|
send_asset: StellarAsset;
|
|
2425
2425
|
send_max: UintType;
|
|
@@ -2428,7 +2428,7 @@ declare type StellarPathPaymentStrictReceiveOp = {
|
|
|
2428
2428
|
destination_amount: UintType;
|
|
2429
2429
|
paths?: StellarAsset[];
|
|
2430
2430
|
};
|
|
2431
|
-
|
|
2431
|
+
type StellarPathPaymentStrictSendOp = {
|
|
2432
2432
|
source_account?: string;
|
|
2433
2433
|
send_asset: StellarAsset;
|
|
2434
2434
|
send_amount: UintType;
|
|
@@ -2437,7 +2437,7 @@ declare type StellarPathPaymentStrictSendOp = {
|
|
|
2437
2437
|
destination_min: UintType;
|
|
2438
2438
|
paths?: StellarAsset[];
|
|
2439
2439
|
};
|
|
2440
|
-
|
|
2440
|
+
type StellarManageSellOfferOp = {
|
|
2441
2441
|
source_account?: string;
|
|
2442
2442
|
selling_asset: StellarAsset;
|
|
2443
2443
|
buying_asset: StellarAsset;
|
|
@@ -2446,7 +2446,7 @@ declare type StellarManageSellOfferOp = {
|
|
|
2446
2446
|
price_d: number;
|
|
2447
2447
|
offer_id: UintType;
|
|
2448
2448
|
};
|
|
2449
|
-
|
|
2449
|
+
type StellarManageBuyOfferOp = {
|
|
2450
2450
|
source_account?: string;
|
|
2451
2451
|
selling_asset: StellarAsset;
|
|
2452
2452
|
buying_asset: StellarAsset;
|
|
@@ -2455,7 +2455,7 @@ declare type StellarManageBuyOfferOp = {
|
|
|
2455
2455
|
price_d: number;
|
|
2456
2456
|
offer_id: UintType;
|
|
2457
2457
|
};
|
|
2458
|
-
|
|
2458
|
+
type StellarCreatePassiveSellOfferOp = {
|
|
2459
2459
|
source_account?: string;
|
|
2460
2460
|
selling_asset: StellarAsset;
|
|
2461
2461
|
buying_asset: StellarAsset;
|
|
@@ -2468,7 +2468,7 @@ declare enum StellarSignerType {
|
|
|
2468
2468
|
PRE_AUTH = 1,
|
|
2469
2469
|
HASH = 2
|
|
2470
2470
|
}
|
|
2471
|
-
|
|
2471
|
+
type StellarSetOptionsOp = {
|
|
2472
2472
|
source_account?: string;
|
|
2473
2473
|
inflation_destination_account?: string;
|
|
2474
2474
|
clear_flags?: number;
|
|
@@ -2482,81 +2482,81 @@ declare type StellarSetOptionsOp = {
|
|
|
2482
2482
|
signer_key?: Buffer | string;
|
|
2483
2483
|
signer_weight?: number;
|
|
2484
2484
|
};
|
|
2485
|
-
|
|
2485
|
+
type StellarChangeTrustOp = {
|
|
2486
2486
|
source_account?: string;
|
|
2487
2487
|
asset: StellarAsset;
|
|
2488
2488
|
limit: UintType;
|
|
2489
2489
|
};
|
|
2490
|
-
|
|
2490
|
+
type StellarAllowTrustOp = {
|
|
2491
2491
|
source_account?: string;
|
|
2492
2492
|
trusted_account: string;
|
|
2493
2493
|
asset_type: StellarAssetType;
|
|
2494
2494
|
asset_code?: string;
|
|
2495
2495
|
is_authorized: boolean;
|
|
2496
2496
|
};
|
|
2497
|
-
|
|
2497
|
+
type StellarAccountMergeOp = {
|
|
2498
2498
|
source_account?: string;
|
|
2499
2499
|
destination_account: string;
|
|
2500
2500
|
};
|
|
2501
|
-
|
|
2501
|
+
type StellarManageDataOp = {
|
|
2502
2502
|
source_account?: string;
|
|
2503
2503
|
key: string;
|
|
2504
2504
|
value?: Buffer | string;
|
|
2505
2505
|
};
|
|
2506
|
-
|
|
2506
|
+
type StellarBumpSequenceOp = {
|
|
2507
2507
|
source_account?: string;
|
|
2508
2508
|
bump_to: UintType;
|
|
2509
2509
|
};
|
|
2510
|
-
|
|
2510
|
+
type StellarSignedTx = {
|
|
2511
2511
|
public_key: string;
|
|
2512
2512
|
signature: string;
|
|
2513
2513
|
};
|
|
2514
|
-
|
|
2514
|
+
type SuiGetAddress = {
|
|
2515
2515
|
address_n: number[];
|
|
2516
2516
|
show_display?: boolean;
|
|
2517
2517
|
};
|
|
2518
|
-
|
|
2518
|
+
type SuiAddress = {
|
|
2519
2519
|
address?: string;
|
|
2520
2520
|
};
|
|
2521
|
-
|
|
2521
|
+
type SuiSignTx = {
|
|
2522
2522
|
address_n: number[];
|
|
2523
2523
|
raw_tx: string;
|
|
2524
2524
|
};
|
|
2525
|
-
|
|
2525
|
+
type SuiSignedTx = {
|
|
2526
2526
|
public_key: string;
|
|
2527
2527
|
signature: string;
|
|
2528
2528
|
};
|
|
2529
|
-
|
|
2529
|
+
type SuiSignMessage = {
|
|
2530
2530
|
address_n: number[];
|
|
2531
2531
|
message: string;
|
|
2532
2532
|
};
|
|
2533
|
-
|
|
2533
|
+
type SuiMessageSignature = {
|
|
2534
2534
|
signature: string;
|
|
2535
2535
|
address: string;
|
|
2536
2536
|
};
|
|
2537
|
-
|
|
2537
|
+
type TezosGetAddress = {
|
|
2538
2538
|
address_n: number[];
|
|
2539
2539
|
show_display?: boolean;
|
|
2540
2540
|
};
|
|
2541
|
-
|
|
2541
|
+
type TezosAddress = {
|
|
2542
2542
|
address: string;
|
|
2543
2543
|
};
|
|
2544
|
-
|
|
2544
|
+
type TezosGetPublicKey = {
|
|
2545
2545
|
address_n: number[];
|
|
2546
2546
|
show_display?: boolean;
|
|
2547
2547
|
};
|
|
2548
|
-
|
|
2548
|
+
type TezosPublicKey = {
|
|
2549
2549
|
public_key: string;
|
|
2550
2550
|
};
|
|
2551
2551
|
declare enum TezosContractType {
|
|
2552
2552
|
Implicit = 0,
|
|
2553
2553
|
Originated = 1
|
|
2554
2554
|
}
|
|
2555
|
-
|
|
2555
|
+
type TezosContractID = {
|
|
2556
2556
|
tag: number;
|
|
2557
2557
|
hash: Uint8Array;
|
|
2558
2558
|
};
|
|
2559
|
-
|
|
2559
|
+
type TezosRevealOp = {
|
|
2560
2560
|
source: Uint8Array;
|
|
2561
2561
|
fee: UintType;
|
|
2562
2562
|
counter: number;
|
|
@@ -2564,16 +2564,16 @@ declare type TezosRevealOp = {
|
|
|
2564
2564
|
storage_limit: number;
|
|
2565
2565
|
public_key: Uint8Array;
|
|
2566
2566
|
};
|
|
2567
|
-
|
|
2567
|
+
type TezosManagerTransfer = {
|
|
2568
2568
|
destination?: TezosContractID;
|
|
2569
2569
|
amount?: UintType;
|
|
2570
2570
|
};
|
|
2571
|
-
|
|
2571
|
+
type TezosParametersManager = {
|
|
2572
2572
|
set_delegate?: Uint8Array;
|
|
2573
2573
|
cancel_delegate?: boolean;
|
|
2574
2574
|
transfer?: TezosManagerTransfer;
|
|
2575
2575
|
};
|
|
2576
|
-
|
|
2576
|
+
type TezosTransactionOp = {
|
|
2577
2577
|
source: Uint8Array;
|
|
2578
2578
|
fee: UintType;
|
|
2579
2579
|
counter: number;
|
|
@@ -2584,7 +2584,7 @@ declare type TezosTransactionOp = {
|
|
|
2584
2584
|
parameters?: number[];
|
|
2585
2585
|
parameters_manager?: TezosParametersManager;
|
|
2586
2586
|
};
|
|
2587
|
-
|
|
2587
|
+
type TezosOriginationOp = {
|
|
2588
2588
|
source: Uint8Array;
|
|
2589
2589
|
fee: UintType;
|
|
2590
2590
|
counter: number;
|
|
@@ -2597,7 +2597,7 @@ declare type TezosOriginationOp = {
|
|
|
2597
2597
|
delegate?: Uint8Array;
|
|
2598
2598
|
script: string | number[];
|
|
2599
2599
|
};
|
|
2600
|
-
|
|
2600
|
+
type TezosDelegationOp = {
|
|
2601
2601
|
source: Uint8Array;
|
|
2602
2602
|
fee: UintType;
|
|
2603
2603
|
counter: number;
|
|
@@ -2605,7 +2605,7 @@ declare type TezosDelegationOp = {
|
|
|
2605
2605
|
storage_limit: number;
|
|
2606
2606
|
delegate: Uint8Array;
|
|
2607
2607
|
};
|
|
2608
|
-
|
|
2608
|
+
type TezosProposalOp = {
|
|
2609
2609
|
source?: string;
|
|
2610
2610
|
period?: number;
|
|
2611
2611
|
proposals: string[];
|
|
@@ -2615,13 +2615,13 @@ declare enum TezosBallotType {
|
|
|
2615
2615
|
Nay = 1,
|
|
2616
2616
|
Pass = 2
|
|
2617
2617
|
}
|
|
2618
|
-
|
|
2618
|
+
type TezosBallotOp = {
|
|
2619
2619
|
source?: string;
|
|
2620
2620
|
period?: number;
|
|
2621
2621
|
proposal?: string;
|
|
2622
2622
|
ballot?: TezosBallotType;
|
|
2623
2623
|
};
|
|
2624
|
-
|
|
2624
|
+
type TezosSignTx = {
|
|
2625
2625
|
address_n: number[];
|
|
2626
2626
|
branch: Uint8Array;
|
|
2627
2627
|
reveal?: TezosRevealOp;
|
|
@@ -2631,23 +2631,23 @@ declare type TezosSignTx = {
|
|
|
2631
2631
|
proposal?: TezosProposalOp;
|
|
2632
2632
|
ballot?: TezosBallotOp;
|
|
2633
2633
|
};
|
|
2634
|
-
|
|
2634
|
+
type TezosSignedTx = {
|
|
2635
2635
|
signature: string;
|
|
2636
2636
|
sig_op_contents: string;
|
|
2637
2637
|
operation_hash: string;
|
|
2638
2638
|
};
|
|
2639
|
-
|
|
2639
|
+
type TronGetAddress = {
|
|
2640
2640
|
address_n: number[];
|
|
2641
2641
|
show_display?: boolean;
|
|
2642
2642
|
};
|
|
2643
|
-
|
|
2643
|
+
type TronAddress = {
|
|
2644
2644
|
address?: string;
|
|
2645
2645
|
};
|
|
2646
|
-
|
|
2646
|
+
type TronTransferContract = {
|
|
2647
2647
|
to_address?: string;
|
|
2648
2648
|
amount?: UintType;
|
|
2649
2649
|
};
|
|
2650
|
-
|
|
2650
|
+
type TronTriggerSmartContract = {
|
|
2651
2651
|
contract_address?: string;
|
|
2652
2652
|
call_value?: number;
|
|
2653
2653
|
data?: string;
|
|
@@ -2658,40 +2658,40 @@ declare enum TronResourceCode {
|
|
|
2658
2658
|
BANDWIDTH = 0,
|
|
2659
2659
|
ENERGY = 1
|
|
2660
2660
|
}
|
|
2661
|
-
|
|
2661
|
+
type TronFreezeBalanceContract = {
|
|
2662
2662
|
frozen_balance?: number;
|
|
2663
2663
|
frozen_duration?: number;
|
|
2664
2664
|
resource?: TronResourceCode;
|
|
2665
2665
|
receiver_address?: string;
|
|
2666
2666
|
};
|
|
2667
|
-
|
|
2667
|
+
type TronUnfreezeBalanceContract = {
|
|
2668
2668
|
resource?: TronResourceCode;
|
|
2669
2669
|
receiver_address?: string;
|
|
2670
2670
|
};
|
|
2671
|
-
|
|
2671
|
+
type TronWithdrawBalanceContract = {
|
|
2672
2672
|
owner_address?: string;
|
|
2673
2673
|
};
|
|
2674
|
-
|
|
2674
|
+
type TronFreezeBalanceV2Contract = {
|
|
2675
2675
|
frozen_balance?: number;
|
|
2676
2676
|
resource?: TronResourceCode;
|
|
2677
2677
|
};
|
|
2678
|
-
|
|
2678
|
+
type TronUnfreezeBalanceV2Contract = {
|
|
2679
2679
|
unfreeze_balance?: number;
|
|
2680
2680
|
resource?: TronResourceCode;
|
|
2681
2681
|
};
|
|
2682
|
-
|
|
2683
|
-
|
|
2682
|
+
type TronWithdrawExpireUnfreezeContract = {};
|
|
2683
|
+
type TronDelegateResourceContract = {
|
|
2684
2684
|
resource?: TronResourceCode;
|
|
2685
2685
|
balance?: number;
|
|
2686
2686
|
receiver_address?: string;
|
|
2687
2687
|
lock?: boolean;
|
|
2688
2688
|
};
|
|
2689
|
-
|
|
2689
|
+
type TronUnDelegateResourceContract = {
|
|
2690
2690
|
resource?: TronResourceCode;
|
|
2691
2691
|
balance?: number;
|
|
2692
2692
|
receiver_address?: string;
|
|
2693
2693
|
};
|
|
2694
|
-
|
|
2694
|
+
type TronContract = {
|
|
2695
2695
|
transfer_contract?: TronTransferContract;
|
|
2696
2696
|
freeze_balance_contract?: TronFreezeBalanceContract;
|
|
2697
2697
|
unfreeze_balance_contract?: TronUnfreezeBalanceContract;
|
|
@@ -2703,7 +2703,7 @@ declare type TronContract = {
|
|
|
2703
2703
|
delegate_resource_contract?: TronDelegateResourceContract;
|
|
2704
2704
|
undelegate_resource_contract?: TronUnDelegateResourceContract;
|
|
2705
2705
|
};
|
|
2706
|
-
|
|
2706
|
+
type TronSignTx = {
|
|
2707
2707
|
address_n: number[];
|
|
2708
2708
|
ref_block_bytes: string;
|
|
2709
2709
|
ref_block_hash: string;
|
|
@@ -2713,24 +2713,24 @@ declare type TronSignTx = {
|
|
|
2713
2713
|
timestamp: number;
|
|
2714
2714
|
fee_limit?: number;
|
|
2715
2715
|
};
|
|
2716
|
-
|
|
2716
|
+
type TronSignedTx = {
|
|
2717
2717
|
signature: string;
|
|
2718
2718
|
serialized_tx?: string;
|
|
2719
2719
|
};
|
|
2720
|
-
|
|
2720
|
+
type TronSignMessage = {
|
|
2721
2721
|
address_n: number[];
|
|
2722
2722
|
message: string;
|
|
2723
2723
|
};
|
|
2724
|
-
|
|
2724
|
+
type TronMessageSignature = {
|
|
2725
2725
|
address: string;
|
|
2726
2726
|
signature: string;
|
|
2727
2727
|
};
|
|
2728
|
-
|
|
2728
|
+
type facotry = {};
|
|
2729
2729
|
declare enum CommandFlags {
|
|
2730
2730
|
Default = 0,
|
|
2731
2731
|
Factory_Only = 1
|
|
2732
2732
|
}
|
|
2733
|
-
|
|
2733
|
+
type MessageType = {
|
|
2734
2734
|
AlgorandGetAddress: AlgorandGetAddress;
|
|
2735
2735
|
AlgorandAddress: AlgorandAddress;
|
|
2736
2736
|
AlgorandSignTx: AlgorandSignTx;
|
|
@@ -3191,12 +3191,12 @@ declare type MessageType = {
|
|
|
3191
3191
|
TronMessageSignature: TronMessageSignature;
|
|
3192
3192
|
facotry: facotry;
|
|
3193
3193
|
};
|
|
3194
|
-
|
|
3195
|
-
|
|
3194
|
+
type MessageKey = keyof MessageType;
|
|
3195
|
+
type MessageResponse<T extends MessageKey> = {
|
|
3196
3196
|
type: T;
|
|
3197
3197
|
message: MessageType[T];
|
|
3198
3198
|
};
|
|
3199
|
-
|
|
3199
|
+
type TypedCall = <T extends MessageKey, R extends MessageKey>(type: T, resType: R, message?: MessageType[T]) => Promise<MessageResponse<R>>;
|
|
3200
3200
|
|
|
3201
3201
|
type messages_UintType = UintType;
|
|
3202
3202
|
type messages_AlgorandGetAddress = AlgorandGetAddress;
|