@ukeyfe/hardware-transport 1.1.13
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/.eslintrc +24 -0
- package/README.md +29 -0
- package/__tests__/build-receive.test.js +117 -0
- package/__tests__/decode-features.test.js +72 -0
- package/__tests__/encode-decode-basic.test.js +272 -0
- package/__tests__/encode-decode.test.js +532 -0
- package/__tests__/messages.test.js +86 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.d.ts +5203 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +942 -0
- package/dist/serialization/index.d.ts +6 -0
- package/dist/serialization/index.d.ts.map +1 -0
- package/dist/serialization/protobuf/decode.d.ts +6 -0
- package/dist/serialization/protobuf/decode.d.ts.map +1 -0
- package/dist/serialization/protobuf/encode.d.ts +5 -0
- package/dist/serialization/protobuf/encode.d.ts.map +1 -0
- package/dist/serialization/protobuf/index.d.ts +4 -0
- package/dist/serialization/protobuf/index.d.ts.map +1 -0
- package/dist/serialization/protobuf/messages.d.ts +11 -0
- package/dist/serialization/protobuf/messages.d.ts.map +1 -0
- package/dist/serialization/protocol/decode.d.ts +11 -0
- package/dist/serialization/protocol/decode.d.ts.map +1 -0
- package/dist/serialization/protocol/encode.d.ts +11 -0
- package/dist/serialization/protocol/encode.d.ts.map +1 -0
- package/dist/serialization/protocol/index.d.ts +3 -0
- package/dist/serialization/protocol/index.d.ts.map +1 -0
- package/dist/serialization/receive.d.ts +8 -0
- package/dist/serialization/receive.d.ts.map +1 -0
- package/dist/serialization/send.d.ts +7 -0
- package/dist/serialization/send.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/messages.d.ts +3762 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/transport.d.ts +62 -0
- package/dist/types/transport.d.ts.map +1 -0
- package/dist/utils/highlevel-checks.d.ts +10 -0
- package/dist/utils/highlevel-checks.d.ts.map +1 -0
- package/dist/utils/logBlockCommand.d.ts +2 -0
- package/dist/utils/logBlockCommand.d.ts.map +1 -0
- package/dist/utils/protobuf.d.ts +2 -0
- package/dist/utils/protobuf.d.ts.map +1 -0
- package/jest.config.js +7 -0
- package/package.json +31 -0
- package/protocol.md +21 -0
- package/scripts/protobuf-build.sh +58 -0
- package/scripts/protobuf-patches/TxAck.js +44 -0
- package/scripts/protobuf-patches/TxInputType.js +49 -0
- package/scripts/protobuf-patches/TxOutputType.js +50 -0
- package/scripts/protobuf-patches/index.js +274 -0
- package/scripts/protobuf-types.js +283 -0
- package/src/constants.ts +8 -0
- package/src/index.ts +41 -0
- package/src/serialization/index.ts +8 -0
- package/src/serialization/protobuf/decode.ts +95 -0
- package/src/serialization/protobuf/encode.ts +79 -0
- package/src/serialization/protobuf/index.ts +3 -0
- package/src/serialization/protobuf/messages.ts +37 -0
- package/src/serialization/protocol/decode.ts +48 -0
- package/src/serialization/protocol/encode.ts +59 -0
- package/src/serialization/protocol/index.ts +2 -0
- package/src/serialization/receive.ts +18 -0
- package/src/serialization/send.ts +56 -0
- package/src/types/index.ts +2 -0
- package/src/types/messages.ts +4864 -0
- package/src/types/transport.ts +71 -0
- package/src/utils/highlevel-checks.ts +88 -0
- package/src/utils/logBlockCommand.ts +1 -0
- package/src/utils/protobuf.ts +24 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,4864 @@
|
|
|
1
|
+
// This file is auto generated from data/messages/message.json
|
|
2
|
+
|
|
3
|
+
// custom type uint32/64 may be represented as string
|
|
4
|
+
export type UintType = string | number;
|
|
5
|
+
|
|
6
|
+
// AlephiumGetAddress
|
|
7
|
+
export type AlephiumGetAddress = {
|
|
8
|
+
address_n: number[];
|
|
9
|
+
show_display?: boolean;
|
|
10
|
+
include_public_key?: boolean;
|
|
11
|
+
target_group?: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// AlephiumAddress
|
|
15
|
+
export type AlephiumAddress = {
|
|
16
|
+
address: string;
|
|
17
|
+
public_key?: string;
|
|
18
|
+
derived_path: number[];
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// AlephiumSignTx
|
|
22
|
+
export type AlephiumSignTx = {
|
|
23
|
+
address_n: number[];
|
|
24
|
+
data_initial_chunk: string;
|
|
25
|
+
data_length?: number;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// AlephiumSignedTx
|
|
29
|
+
export type AlephiumSignedTx = {
|
|
30
|
+
signature: string;
|
|
31
|
+
address: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// AlephiumTxRequest
|
|
35
|
+
export type AlephiumTxRequest = {
|
|
36
|
+
data_length?: number;
|
|
37
|
+
public_key?: string;
|
|
38
|
+
signature?: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// AlephiumTxAck
|
|
42
|
+
export type AlephiumTxAck = {
|
|
43
|
+
data_chunk: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// AlephiumBytecodeRequest
|
|
47
|
+
export type AlephiumBytecodeRequest = {
|
|
48
|
+
data_length?: number;
|
|
49
|
+
public_key?: string;
|
|
50
|
+
signature?: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// AlephiumBytecodeAck
|
|
54
|
+
export type AlephiumBytecodeAck = {
|
|
55
|
+
bytecode_data: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// AlephiumSignMessage
|
|
59
|
+
export type AlephiumSignMessage = {
|
|
60
|
+
address_n: number[];
|
|
61
|
+
message?: string;
|
|
62
|
+
message_type?: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// AlephiumMessageSignature
|
|
66
|
+
export type AlephiumMessageSignature = {
|
|
67
|
+
signature?: string;
|
|
68
|
+
address?: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// AlgorandGetAddress
|
|
72
|
+
export type AlgorandGetAddress = {
|
|
73
|
+
address_n: number[];
|
|
74
|
+
show_display?: boolean;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// AlgorandAddress
|
|
78
|
+
export type AlgorandAddress = {
|
|
79
|
+
address?: string;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// AlgorandSignTx
|
|
83
|
+
export type AlgorandSignTx = {
|
|
84
|
+
address_n: number[];
|
|
85
|
+
raw_tx: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// AlgorandSignedTx
|
|
89
|
+
export type AlgorandSignedTx = {
|
|
90
|
+
signature: string;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
// AptosGetAddress
|
|
94
|
+
export type AptosGetAddress = {
|
|
95
|
+
address_n: number[];
|
|
96
|
+
show_display?: boolean;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// AptosAddress
|
|
100
|
+
export type AptosAddress = {
|
|
101
|
+
address?: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export enum AptosTransactionType {
|
|
105
|
+
STANDARD = 0,
|
|
106
|
+
WITH_DATA = 1,
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// AptosSignTx
|
|
110
|
+
export type AptosSignTx = {
|
|
111
|
+
address_n: number[];
|
|
112
|
+
raw_tx: string;
|
|
113
|
+
tx_type?: AptosTransactionType;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// AptosSignedTx
|
|
117
|
+
export type AptosSignedTx = {
|
|
118
|
+
public_key: string;
|
|
119
|
+
signature: string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type AptosMessagePayload = {
|
|
123
|
+
address?: string;
|
|
124
|
+
chain_id?: string;
|
|
125
|
+
application?: string;
|
|
126
|
+
nonce: string;
|
|
127
|
+
message: string;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
// AptosSignMessage
|
|
131
|
+
export type AptosSignMessage = {
|
|
132
|
+
address_n: number[];
|
|
133
|
+
payload: AptosMessagePayload;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
// AptosMessageSignature
|
|
137
|
+
export type AptosMessageSignature = {
|
|
138
|
+
signature: string;
|
|
139
|
+
address: string;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// AptosSignSIWAMessage
|
|
143
|
+
export type AptosSignSIWAMessage = {
|
|
144
|
+
address_n: number[];
|
|
145
|
+
siwa_payload: string;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// BenfenGetAddress
|
|
149
|
+
export type BenfenGetAddress = {
|
|
150
|
+
address_n: number[];
|
|
151
|
+
show_display?: boolean;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// BenfenAddress
|
|
155
|
+
export type BenfenAddress = {
|
|
156
|
+
address?: string;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
// BenfenSignTx
|
|
160
|
+
export type BenfenSignTx = {
|
|
161
|
+
address_n: number[];
|
|
162
|
+
raw_tx: string;
|
|
163
|
+
data_initial_chunk?: string;
|
|
164
|
+
coin_type?: string;
|
|
165
|
+
data_length?: number;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
// BenfenSignedTx
|
|
169
|
+
export type BenfenSignedTx = {
|
|
170
|
+
public_key: string;
|
|
171
|
+
signature: string;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
// BenfenTxRequest
|
|
175
|
+
export type BenfenTxRequest = {
|
|
176
|
+
data_length?: number;
|
|
177
|
+
public_key?: string;
|
|
178
|
+
signature?: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
// BenfenTxAck
|
|
182
|
+
export type BenfenTxAck = {
|
|
183
|
+
data_chunk: string;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
// BenfenSignMessage
|
|
187
|
+
export type BenfenSignMessage = {
|
|
188
|
+
address_n: number[];
|
|
189
|
+
message: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
// BenfenMessageSignature
|
|
193
|
+
export type BenfenMessageSignature = {
|
|
194
|
+
signature: string;
|
|
195
|
+
address: string;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// BinanceGetAddress
|
|
199
|
+
export type BinanceGetAddress = {
|
|
200
|
+
address_n: number[];
|
|
201
|
+
show_display?: boolean;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// BinanceAddress
|
|
205
|
+
export type BinanceAddress = {
|
|
206
|
+
address: string;
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
// BinanceGetPublicKey
|
|
210
|
+
export type BinanceGetPublicKey = {
|
|
211
|
+
address_n: number[];
|
|
212
|
+
show_display?: boolean;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// BinancePublicKey
|
|
216
|
+
export type BinancePublicKey = {
|
|
217
|
+
public_key: string;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
// BinanceSignTx
|
|
221
|
+
export type BinanceSignTx = {
|
|
222
|
+
address_n: number[];
|
|
223
|
+
msg_count?: number;
|
|
224
|
+
account_number?: number;
|
|
225
|
+
chain_id?: string;
|
|
226
|
+
memo?: string;
|
|
227
|
+
sequence?: number;
|
|
228
|
+
source?: number;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
// BinanceTxRequest
|
|
232
|
+
export type BinanceTxRequest = {};
|
|
233
|
+
|
|
234
|
+
export type BinanceCoin = {
|
|
235
|
+
amount?: UintType;
|
|
236
|
+
denom?: string;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export type BinanceInputOutput = {
|
|
240
|
+
address?: string;
|
|
241
|
+
coins: BinanceCoin[];
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
// BinanceTransferMsg
|
|
245
|
+
export type BinanceTransferMsg = {
|
|
246
|
+
inputs: BinanceInputOutput[];
|
|
247
|
+
outputs: BinanceInputOutput[];
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export enum BinanceOrderType {
|
|
251
|
+
OT_UNKNOWN = 0,
|
|
252
|
+
MARKET = 1,
|
|
253
|
+
LIMIT = 2,
|
|
254
|
+
OT_RESERVED = 3,
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export enum BinanceOrderSide {
|
|
258
|
+
SIDE_UNKNOWN = 0,
|
|
259
|
+
BUY = 1,
|
|
260
|
+
SELL = 2,
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export enum BinanceTimeInForce {
|
|
264
|
+
TIF_UNKNOWN = 0,
|
|
265
|
+
GTE = 1,
|
|
266
|
+
TIF_RESERVED = 2,
|
|
267
|
+
IOC = 3,
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// BinanceOrderMsg
|
|
271
|
+
export type BinanceOrderMsg = {
|
|
272
|
+
id?: string;
|
|
273
|
+
ordertype?: BinanceOrderType;
|
|
274
|
+
price?: number;
|
|
275
|
+
quantity?: number;
|
|
276
|
+
sender?: string;
|
|
277
|
+
side?: BinanceOrderSide;
|
|
278
|
+
symbol?: string;
|
|
279
|
+
timeinforce?: BinanceTimeInForce;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
// BinanceCancelMsg
|
|
283
|
+
export type BinanceCancelMsg = {
|
|
284
|
+
refid?: string;
|
|
285
|
+
sender?: string;
|
|
286
|
+
symbol?: string;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
// BinanceSignedTx
|
|
290
|
+
export type BinanceSignedTx = {
|
|
291
|
+
signature: string;
|
|
292
|
+
public_key: string;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
export enum Enum_InputScriptType {
|
|
296
|
+
SPENDADDRESS = 0,
|
|
297
|
+
SPENDMULTISIG = 1,
|
|
298
|
+
EXTERNAL = 2,
|
|
299
|
+
SPENDWITNESS = 3,
|
|
300
|
+
SPENDP2SHWITNESS = 4,
|
|
301
|
+
SPENDTAPROOT = 5,
|
|
302
|
+
}
|
|
303
|
+
export type InputScriptType = keyof typeof Enum_InputScriptType;
|
|
304
|
+
|
|
305
|
+
export enum Enum_OutputScriptType {
|
|
306
|
+
PAYTOADDRESS = 0,
|
|
307
|
+
PAYTOSCRIPTHASH = 1,
|
|
308
|
+
PAYTOMULTISIG = 2,
|
|
309
|
+
PAYTOOPRETURN = 3,
|
|
310
|
+
PAYTOWITNESS = 4,
|
|
311
|
+
PAYTOP2SHWITNESS = 5,
|
|
312
|
+
PAYTOTAPROOT = 6,
|
|
313
|
+
}
|
|
314
|
+
export type OutputScriptType = keyof typeof Enum_OutputScriptType;
|
|
315
|
+
|
|
316
|
+
export enum DecredStakingSpendType {
|
|
317
|
+
SSGen = 0,
|
|
318
|
+
SSRTX = 1,
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export enum AmountUnit {
|
|
322
|
+
BITCOIN = 0,
|
|
323
|
+
MILLIBITCOIN = 1,
|
|
324
|
+
MICROBITCOIN = 2,
|
|
325
|
+
SATOSHI = 3,
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// HDNodeType
|
|
329
|
+
export type HDNodeType = {
|
|
330
|
+
depth: number;
|
|
331
|
+
fingerprint: number;
|
|
332
|
+
child_num: number;
|
|
333
|
+
chain_code: string;
|
|
334
|
+
private_key?: string;
|
|
335
|
+
public_key: string;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export type HDNodePathType = {
|
|
339
|
+
node: HDNodeType | string;
|
|
340
|
+
address_n: number[];
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
// MultisigRedeemScriptType
|
|
344
|
+
export type MultisigRedeemScriptType = {
|
|
345
|
+
pubkeys: HDNodePathType[];
|
|
346
|
+
signatures: string[];
|
|
347
|
+
m: number;
|
|
348
|
+
nodes?: HDNodeType[];
|
|
349
|
+
address_n?: number[];
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
// GetPublicKey
|
|
353
|
+
export type GetPublicKey = {
|
|
354
|
+
address_n: number[];
|
|
355
|
+
ecdsa_curve_name?: string;
|
|
356
|
+
show_display?: boolean;
|
|
357
|
+
coin_name?: string;
|
|
358
|
+
script_type?: InputScriptType;
|
|
359
|
+
ignore_xpub_magic?: boolean;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
// PublicKey
|
|
363
|
+
export type PublicKey = {
|
|
364
|
+
node: HDNodeType;
|
|
365
|
+
xpub: string;
|
|
366
|
+
root_fingerprint?: number;
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
// GetAddress
|
|
370
|
+
export type GetAddress = {
|
|
371
|
+
address_n: number[];
|
|
372
|
+
coin_name?: string;
|
|
373
|
+
show_display?: boolean;
|
|
374
|
+
multisig?: MultisigRedeemScriptType;
|
|
375
|
+
script_type?: InputScriptType;
|
|
376
|
+
ignore_xpub_magic?: boolean;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
// Address
|
|
380
|
+
export type Address = {
|
|
381
|
+
address: string;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
// GetOwnershipId
|
|
385
|
+
export type GetOwnershipId = {
|
|
386
|
+
address_n: number[];
|
|
387
|
+
coin_name?: string;
|
|
388
|
+
multisig?: MultisigRedeemScriptType;
|
|
389
|
+
script_type?: InputScriptType;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
// OwnershipId
|
|
393
|
+
export type OwnershipId = {
|
|
394
|
+
ownership_id: string;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
// SignMessage
|
|
398
|
+
export type SignMessage = {
|
|
399
|
+
address_n: number[];
|
|
400
|
+
message: string;
|
|
401
|
+
coin_name?: string;
|
|
402
|
+
script_type?: InputScriptType;
|
|
403
|
+
no_script_type?: boolean;
|
|
404
|
+
is_bip322_simple?: boolean;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
// MessageSignature
|
|
408
|
+
export type MessageSignature = {
|
|
409
|
+
address: string;
|
|
410
|
+
signature: string;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
// VerifyMessage
|
|
414
|
+
export type VerifyMessage = {
|
|
415
|
+
address: string;
|
|
416
|
+
signature: string;
|
|
417
|
+
message: string;
|
|
418
|
+
coin_name?: string;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
// SignTx
|
|
422
|
+
export type SignTx = {
|
|
423
|
+
outputs_count: number;
|
|
424
|
+
inputs_count: number;
|
|
425
|
+
coin_name?: string;
|
|
426
|
+
version?: number;
|
|
427
|
+
lock_time?: number;
|
|
428
|
+
expiry?: number;
|
|
429
|
+
overwintered?: boolean;
|
|
430
|
+
version_group_id?: number;
|
|
431
|
+
timestamp?: number;
|
|
432
|
+
branch_id?: number;
|
|
433
|
+
amount_unit?: AmountUnit;
|
|
434
|
+
decred_staking_ticket?: boolean;
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
export enum Enum_RequestType {
|
|
438
|
+
TXINPUT = 0,
|
|
439
|
+
TXOUTPUT = 1,
|
|
440
|
+
TXMETA = 2,
|
|
441
|
+
TXFINISHED = 3,
|
|
442
|
+
TXEXTRADATA = 4,
|
|
443
|
+
TXORIGINPUT = 5,
|
|
444
|
+
TXORIGOUTPUT = 6,
|
|
445
|
+
}
|
|
446
|
+
export type RequestType = keyof typeof Enum_RequestType;
|
|
447
|
+
|
|
448
|
+
export type TxRequestDetailsType = {
|
|
449
|
+
request_index: number;
|
|
450
|
+
tx_hash?: string;
|
|
451
|
+
extra_data_len?: number;
|
|
452
|
+
extra_data_offset?: number;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
export type TxRequestSerializedType = {
|
|
456
|
+
signature_index?: number;
|
|
457
|
+
signature?: string;
|
|
458
|
+
serialized_tx?: string;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
// TxRequest
|
|
462
|
+
export type TxRequest = {
|
|
463
|
+
request_type: RequestType;
|
|
464
|
+
details: TxRequestDetailsType;
|
|
465
|
+
serialized?: TxRequestSerializedType;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
// TxInputType replacement
|
|
469
|
+
// TxInputType needs more exact types
|
|
470
|
+
// differences: external input (no address_n + required script_pubkey)
|
|
471
|
+
|
|
472
|
+
export type InternalInputScriptType = Exclude<InputScriptType, 'EXTERNAL'>;
|
|
473
|
+
|
|
474
|
+
type CommonTxInputType = {
|
|
475
|
+
prev_hash: string; // required: previous transaction hash (reversed)
|
|
476
|
+
prev_index: number; // required: previous transaction index
|
|
477
|
+
amount: UintType; // required
|
|
478
|
+
sequence?: number;
|
|
479
|
+
multisig?: MultisigRedeemScriptType;
|
|
480
|
+
decred_tree?: number;
|
|
481
|
+
orig_hash?: string; // RBF
|
|
482
|
+
orig_index?: number; // RBF
|
|
483
|
+
decred_staking_spend?: DecredStakingSpendType;
|
|
484
|
+
script_pubkey?: string; // required if script_type=EXTERNAL
|
|
485
|
+
script_sig?: string; // used by EXTERNAL, depending on script_pubkey
|
|
486
|
+
witness?: string; // used by EXTERNAL, depending on script_pubkey
|
|
487
|
+
ownership_proof?: string; // used by EXTERNAL, depending on script_pubkey
|
|
488
|
+
commitment_data?: string; // used by EXTERNAL, depending on ownership_proof
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
export type TxInputType =
|
|
492
|
+
| (CommonTxInputType & {
|
|
493
|
+
address_n: number[];
|
|
494
|
+
script_type?: InternalInputScriptType;
|
|
495
|
+
})
|
|
496
|
+
| (CommonTxInputType & {
|
|
497
|
+
address_n?: typeof undefined;
|
|
498
|
+
script_type: 'EXTERNAL';
|
|
499
|
+
script_pubkey: string;
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
export type TxInput = TxInputType;
|
|
503
|
+
|
|
504
|
+
// TxInputType replacement end
|
|
505
|
+
|
|
506
|
+
export type TxOutputBinType = {
|
|
507
|
+
amount: UintType;
|
|
508
|
+
script_pubkey: string;
|
|
509
|
+
decred_script_version?: number;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
// TxOutputType replacement
|
|
513
|
+
// TxOutputType needs more exact types
|
|
514
|
+
// differences: external output (no address_n), opreturn output (no address_n, no address)
|
|
515
|
+
|
|
516
|
+
export type ChangeOutputScriptType = Exclude<OutputScriptType, 'PAYTOOPRETURN'>;
|
|
517
|
+
|
|
518
|
+
export type TxOutputType =
|
|
519
|
+
| {
|
|
520
|
+
address: string;
|
|
521
|
+
address_n?: typeof undefined;
|
|
522
|
+
script_type: 'PAYTOADDRESS';
|
|
523
|
+
amount: UintType;
|
|
524
|
+
multisig?: MultisigRedeemScriptType;
|
|
525
|
+
orig_hash?: string;
|
|
526
|
+
orig_index?: number;
|
|
527
|
+
payment_req_index?: number;
|
|
528
|
+
}
|
|
529
|
+
| {
|
|
530
|
+
address?: typeof undefined;
|
|
531
|
+
address_n: number[];
|
|
532
|
+
script_type: ChangeOutputScriptType;
|
|
533
|
+
amount: UintType;
|
|
534
|
+
multisig?: MultisigRedeemScriptType;
|
|
535
|
+
orig_hash?: string;
|
|
536
|
+
orig_index?: number;
|
|
537
|
+
payment_req_index?: number;
|
|
538
|
+
}
|
|
539
|
+
| {
|
|
540
|
+
address?: typeof undefined;
|
|
541
|
+
address_n?: typeof undefined;
|
|
542
|
+
amount: '0';
|
|
543
|
+
op_return_data: string;
|
|
544
|
+
script_type: 'PAYTOOPRETURN';
|
|
545
|
+
orig_hash?: string;
|
|
546
|
+
orig_index?: number;
|
|
547
|
+
payment_req_index?: number;
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
export type TxOutput = TxOutputType;
|
|
551
|
+
|
|
552
|
+
// - TxOutputType replacement end
|
|
553
|
+
|
|
554
|
+
// PrevTx
|
|
555
|
+
export type PrevTx = {
|
|
556
|
+
version: number;
|
|
557
|
+
lock_time: number;
|
|
558
|
+
inputs_count: number;
|
|
559
|
+
outputs_count: number;
|
|
560
|
+
extra_data_len?: number;
|
|
561
|
+
expiry?: number;
|
|
562
|
+
version_group_id?: number;
|
|
563
|
+
timestamp?: number;
|
|
564
|
+
branch_id?: number;
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
// PrevInput
|
|
568
|
+
export type PrevInput = {
|
|
569
|
+
prev_hash: string;
|
|
570
|
+
prev_index: number;
|
|
571
|
+
script_sig: string;
|
|
572
|
+
sequence: number;
|
|
573
|
+
decred_tree?: number;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
// PrevOutput
|
|
577
|
+
export type PrevOutput = {
|
|
578
|
+
amount: UintType;
|
|
579
|
+
script_pubkey: string;
|
|
580
|
+
decred_script_version?: number;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
// TxAck
|
|
584
|
+
|
|
585
|
+
// TxAck replacement
|
|
586
|
+
// TxAck needs more exact types
|
|
587
|
+
// PrevInput and TxInputType requires exact responses in TxAckResponse
|
|
588
|
+
// main difference: PrevInput should not contain address_n (unexpected field by protobuf)
|
|
589
|
+
|
|
590
|
+
export type TxAckResponse =
|
|
591
|
+
| {
|
|
592
|
+
inputs: Array<TxInputType | PrevInput>;
|
|
593
|
+
}
|
|
594
|
+
| {
|
|
595
|
+
bin_outputs: TxOutputBinType[];
|
|
596
|
+
}
|
|
597
|
+
| {
|
|
598
|
+
outputs: TxOutputType[];
|
|
599
|
+
}
|
|
600
|
+
| {
|
|
601
|
+
extra_data: string;
|
|
602
|
+
}
|
|
603
|
+
| {
|
|
604
|
+
version?: number;
|
|
605
|
+
lock_time?: number;
|
|
606
|
+
inputs_cnt: number;
|
|
607
|
+
outputs_cnt: number;
|
|
608
|
+
extra_data?: string;
|
|
609
|
+
extra_data_len?: number;
|
|
610
|
+
timestamp?: number;
|
|
611
|
+
version_group_id?: number;
|
|
612
|
+
expiry?: number;
|
|
613
|
+
branch_id?: number;
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
export type TxAck = {
|
|
617
|
+
tx: TxAckResponse;
|
|
618
|
+
};
|
|
619
|
+
// - TxAck replacement end
|
|
620
|
+
|
|
621
|
+
export type TxAckInputWrapper = {
|
|
622
|
+
input: TxInput;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
// TxAckInput
|
|
626
|
+
export type TxAckInput = {
|
|
627
|
+
tx: TxAckInputWrapper;
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
export type TxAckOutputWrapper = {
|
|
631
|
+
output: TxOutput;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
// TxAckOutput
|
|
635
|
+
export type TxAckOutput = {
|
|
636
|
+
tx: TxAckOutputWrapper;
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
// TxAckPrevMeta
|
|
640
|
+
export type TxAckPrevMeta = {
|
|
641
|
+
tx: PrevTx;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
export type TxAckPrevInputWrapper = {
|
|
645
|
+
input: PrevInput;
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
// TxAckPrevInput
|
|
649
|
+
export type TxAckPrevInput = {
|
|
650
|
+
tx: TxAckPrevInputWrapper;
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
export type TxAckPrevOutputWrapper = {
|
|
654
|
+
output: PrevOutput;
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
// TxAckPrevOutput
|
|
658
|
+
export type TxAckPrevOutput = {
|
|
659
|
+
tx: TxAckPrevOutputWrapper;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
export type TxAckPrevExtraDataWrapper = {
|
|
663
|
+
extra_data_chunk: string;
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
// TxAckPrevExtraData
|
|
667
|
+
export type TxAckPrevExtraData = {
|
|
668
|
+
tx: TxAckPrevExtraDataWrapper;
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
// GetOwnershipProof
|
|
672
|
+
export type GetOwnershipProof = {
|
|
673
|
+
address_n: number[];
|
|
674
|
+
coin_name?: string;
|
|
675
|
+
script_type?: InputScriptType;
|
|
676
|
+
multisig?: MultisigRedeemScriptType;
|
|
677
|
+
user_confirmation?: boolean;
|
|
678
|
+
ownership_ids?: string[];
|
|
679
|
+
commitment_data?: string;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
// OwnershipProof
|
|
683
|
+
export type OwnershipProof = {
|
|
684
|
+
ownership_proof: string;
|
|
685
|
+
signature: string;
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
// AuthorizeCoinJoin
|
|
689
|
+
export type AuthorizeCoinJoin = {
|
|
690
|
+
coordinator: string;
|
|
691
|
+
max_total_fee: number;
|
|
692
|
+
fee_per_anonymity?: number;
|
|
693
|
+
address_n: number[];
|
|
694
|
+
coin_name?: string;
|
|
695
|
+
script_type?: InputScriptType;
|
|
696
|
+
amount_unit?: AmountUnit;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
export type BIP32Address = {
|
|
700
|
+
address_n: number[];
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
// GetPublicKeyMultiple
|
|
704
|
+
export type GetPublicKeyMultiple = {
|
|
705
|
+
addresses: BIP32Address[];
|
|
706
|
+
ecdsa_curve_name?: string;
|
|
707
|
+
show_display?: boolean;
|
|
708
|
+
coin_name?: string;
|
|
709
|
+
script_type?: InputScriptType;
|
|
710
|
+
ignore_xpub_magic?: boolean;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
// PublicKeyMultiple
|
|
714
|
+
export type PublicKeyMultiple = {
|
|
715
|
+
xpubs: string[];
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
// SignPsbt
|
|
719
|
+
export type SignPsbt = {
|
|
720
|
+
psbt: string;
|
|
721
|
+
coin_name?: string;
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
// SignedPsbt
|
|
725
|
+
export type SignedPsbt = {
|
|
726
|
+
psbt: string;
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
// FirmwareErase
|
|
730
|
+
export type FirmwareErase = {
|
|
731
|
+
length?: number;
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
// FirmwareRequest
|
|
735
|
+
export type FirmwareRequest = {
|
|
736
|
+
offset?: number;
|
|
737
|
+
length?: number;
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
// FirmwareUpload
|
|
741
|
+
export type FirmwareUpload = {
|
|
742
|
+
payload: Buffer | ArrayBuffer;
|
|
743
|
+
hash?: string;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
// SelfTest
|
|
747
|
+
export type SelfTest = {
|
|
748
|
+
payload?: string;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
// FirmwareErase_ex
|
|
752
|
+
export type FirmwareErase_ex = {
|
|
753
|
+
length?: number;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
export enum RebootType {
|
|
757
|
+
Normal = 0,
|
|
758
|
+
Boardloader = 1,
|
|
759
|
+
BootLoader = 2,
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// Reboot
|
|
763
|
+
export type Reboot = {
|
|
764
|
+
reboot_type: RebootType;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
// FirmwareUpdateEmmc
|
|
768
|
+
export type FirmwareUpdateEmmc = {
|
|
769
|
+
path: string;
|
|
770
|
+
reboot_on_success?: boolean;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
export enum CardanoDerivationType {
|
|
774
|
+
LEDGER = 0,
|
|
775
|
+
ICARUS = 1,
|
|
776
|
+
ICARUS_TREZOR = 2,
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export enum CardanoAddressType {
|
|
780
|
+
BASE = 0,
|
|
781
|
+
BASE_SCRIPT_KEY = 1,
|
|
782
|
+
BASE_KEY_SCRIPT = 2,
|
|
783
|
+
BASE_SCRIPT_SCRIPT = 3,
|
|
784
|
+
POINTER = 4,
|
|
785
|
+
POINTER_SCRIPT = 5,
|
|
786
|
+
ENTERPRISE = 6,
|
|
787
|
+
ENTERPRISE_SCRIPT = 7,
|
|
788
|
+
BYRON = 8,
|
|
789
|
+
REWARD = 14,
|
|
790
|
+
REWARD_SCRIPT = 15,
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export enum CardanoNativeScriptType {
|
|
794
|
+
PUB_KEY = 0,
|
|
795
|
+
ALL = 1,
|
|
796
|
+
ANY = 2,
|
|
797
|
+
N_OF_K = 3,
|
|
798
|
+
INVALID_BEFORE = 4,
|
|
799
|
+
INVALID_HEREAFTER = 5,
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export enum CardanoNativeScriptHashDisplayFormat {
|
|
803
|
+
HIDE = 0,
|
|
804
|
+
BECH32 = 1,
|
|
805
|
+
POLICY_ID = 2,
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export enum CardanoTxOutputSerializationFormat {
|
|
809
|
+
ARRAY_LEGACY = 0,
|
|
810
|
+
MAP_BABBAGE = 1,
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
export enum CardanoCertificateType {
|
|
814
|
+
STAKE_REGISTRATION = 0,
|
|
815
|
+
STAKE_DEREGISTRATION = 1,
|
|
816
|
+
STAKE_DELEGATION = 2,
|
|
817
|
+
STAKE_POOL_REGISTRATION = 3,
|
|
818
|
+
STAKE_REGISTRATION_CONWAY = 7,
|
|
819
|
+
STAKE_DEREGISTRATION_CONWAY = 8,
|
|
820
|
+
VOTE_DELEGATION = 9,
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export enum CardanoDRepType {
|
|
824
|
+
KEY_HASH = 0,
|
|
825
|
+
SCRIPT_HASH = 1,
|
|
826
|
+
ABSTAIN = 2,
|
|
827
|
+
NO_CONFIDENCE = 3,
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export enum CardanoPoolRelayType {
|
|
831
|
+
SINGLE_HOST_IP = 0,
|
|
832
|
+
SINGLE_HOST_NAME = 1,
|
|
833
|
+
MULTIPLE_HOST_NAME = 2,
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
export enum CardanoTxAuxiliaryDataSupplementType {
|
|
837
|
+
NONE = 0,
|
|
838
|
+
CVOTE_REGISTRATION_SIGNATURE = 1,
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export enum CardanoCVoteRegistrationFormat {
|
|
842
|
+
CIP15 = 0,
|
|
843
|
+
CIP36 = 1,
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
export enum CardanoTxSigningMode {
|
|
847
|
+
ORDINARY_TRANSACTION = 0,
|
|
848
|
+
POOL_REGISTRATION_AS_OWNER = 1,
|
|
849
|
+
MULTISIG_TRANSACTION = 2,
|
|
850
|
+
PLUTUS_TRANSACTION = 3,
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export enum CardanoTxWitnessType {
|
|
854
|
+
BYRON_WITNESS = 0,
|
|
855
|
+
SHELLEY_WITNESS = 1,
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
// CardanoBlockchainPointerType
|
|
859
|
+
export type CardanoBlockchainPointerType = {
|
|
860
|
+
block_index: number;
|
|
861
|
+
tx_index: number;
|
|
862
|
+
certificate_index: number;
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
// CardanoNativeScript
|
|
866
|
+
export type CardanoNativeScript = {
|
|
867
|
+
type: CardanoNativeScriptType;
|
|
868
|
+
scripts?: CardanoNativeScript[];
|
|
869
|
+
key_hash?: string;
|
|
870
|
+
key_path?: number[];
|
|
871
|
+
required_signatures_count?: number;
|
|
872
|
+
invalid_before?: UintType;
|
|
873
|
+
invalid_hereafter?: UintType;
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
// CardanoGetNativeScriptHash
|
|
877
|
+
export type CardanoGetNativeScriptHash = {
|
|
878
|
+
script: CardanoNativeScript;
|
|
879
|
+
display_format: CardanoNativeScriptHashDisplayFormat;
|
|
880
|
+
derivation_type: CardanoDerivationType;
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
// CardanoNativeScriptHash
|
|
884
|
+
export type CardanoNativeScriptHash = {
|
|
885
|
+
script_hash: string;
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
// CardanoAddressParametersType
|
|
889
|
+
export type CardanoAddressParametersType = {
|
|
890
|
+
address_type: CardanoAddressType;
|
|
891
|
+
address_n: number[];
|
|
892
|
+
address_n_staking: number[];
|
|
893
|
+
staking_key_hash?: string;
|
|
894
|
+
certificate_pointer?: CardanoBlockchainPointerType;
|
|
895
|
+
script_payment_hash?: string;
|
|
896
|
+
script_staking_hash?: string;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
// CardanoGetAddress
|
|
900
|
+
export type CardanoGetAddress = {
|
|
901
|
+
show_display?: boolean;
|
|
902
|
+
protocol_magic: number;
|
|
903
|
+
network_id: number;
|
|
904
|
+
address_parameters: CardanoAddressParametersType;
|
|
905
|
+
derivation_type: CardanoDerivationType;
|
|
906
|
+
chunkify?: boolean;
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
// CardanoAddress
|
|
910
|
+
export type CardanoAddress = {
|
|
911
|
+
address: string;
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
// CardanoGetPublicKey
|
|
915
|
+
export type CardanoGetPublicKey = {
|
|
916
|
+
address_n: number[];
|
|
917
|
+
show_display?: boolean;
|
|
918
|
+
derivation_type: CardanoDerivationType;
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
// CardanoPublicKey
|
|
922
|
+
export type CardanoPublicKey = {
|
|
923
|
+
xpub: string;
|
|
924
|
+
node: HDNodeType;
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
// CardanoSignTxInit
|
|
928
|
+
export type CardanoSignTxInit = {
|
|
929
|
+
signing_mode: CardanoTxSigningMode;
|
|
930
|
+
protocol_magic: number;
|
|
931
|
+
network_id: number;
|
|
932
|
+
inputs_count: number;
|
|
933
|
+
outputs_count: number;
|
|
934
|
+
fee: UintType;
|
|
935
|
+
ttl?: UintType;
|
|
936
|
+
certificates_count: number;
|
|
937
|
+
withdrawals_count: number;
|
|
938
|
+
has_auxiliary_data: boolean;
|
|
939
|
+
validity_interval_start?: UintType;
|
|
940
|
+
witness_requests_count: number;
|
|
941
|
+
minting_asset_groups_count: number;
|
|
942
|
+
derivation_type: CardanoDerivationType;
|
|
943
|
+
include_network_id?: boolean;
|
|
944
|
+
script_data_hash?: string;
|
|
945
|
+
collateral_inputs_count: number;
|
|
946
|
+
required_signers_count: number;
|
|
947
|
+
has_collateral_return?: boolean;
|
|
948
|
+
total_collateral?: UintType;
|
|
949
|
+
reference_inputs_count?: number;
|
|
950
|
+
chunkify?: boolean;
|
|
951
|
+
tag_cbor_sets?: boolean;
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
// CardanoTxInput
|
|
955
|
+
export type CardanoTxInput = {
|
|
956
|
+
prev_hash: string;
|
|
957
|
+
prev_index: number;
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
// CardanoTxOutput
|
|
961
|
+
export type CardanoTxOutput = {
|
|
962
|
+
address?: string;
|
|
963
|
+
address_parameters?: CardanoAddressParametersType;
|
|
964
|
+
amount: UintType;
|
|
965
|
+
asset_groups_count: number;
|
|
966
|
+
datum_hash?: string;
|
|
967
|
+
format?: CardanoTxOutputSerializationFormat;
|
|
968
|
+
inline_datum_size?: number;
|
|
969
|
+
reference_script_size?: number;
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
// CardanoAssetGroup
|
|
973
|
+
export type CardanoAssetGroup = {
|
|
974
|
+
policy_id: string;
|
|
975
|
+
tokens_count: number;
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
// CardanoToken
|
|
979
|
+
export type CardanoToken = {
|
|
980
|
+
asset_name_bytes: string;
|
|
981
|
+
amount?: UintType;
|
|
982
|
+
mint_amount?: UintType;
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
// CardanoTxInlineDatumChunk
|
|
986
|
+
export type CardanoTxInlineDatumChunk = {
|
|
987
|
+
data: string;
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
// CardanoTxReferenceScriptChunk
|
|
991
|
+
export type CardanoTxReferenceScriptChunk = {
|
|
992
|
+
data: string;
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
// CardanoPoolOwner
|
|
996
|
+
export type CardanoPoolOwner = {
|
|
997
|
+
staking_key_path?: number[];
|
|
998
|
+
staking_key_hash?: string;
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
// CardanoPoolRelayParameters
|
|
1002
|
+
export type CardanoPoolRelayParameters = {
|
|
1003
|
+
type: CardanoPoolRelayType;
|
|
1004
|
+
ipv4_address?: string;
|
|
1005
|
+
ipv6_address?: string;
|
|
1006
|
+
host_name?: string;
|
|
1007
|
+
port?: number;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
// CardanoPoolMetadataType
|
|
1011
|
+
export type CardanoPoolMetadataType = {
|
|
1012
|
+
url: string;
|
|
1013
|
+
hash: string;
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
// CardanoPoolParametersType
|
|
1017
|
+
export type CardanoPoolParametersType = {
|
|
1018
|
+
pool_id: string;
|
|
1019
|
+
vrf_key_hash: string;
|
|
1020
|
+
pledge: UintType;
|
|
1021
|
+
cost: UintType;
|
|
1022
|
+
margin_numerator: UintType;
|
|
1023
|
+
margin_denominator: UintType;
|
|
1024
|
+
reward_account: string;
|
|
1025
|
+
metadata?: CardanoPoolMetadataType;
|
|
1026
|
+
owners_count: number;
|
|
1027
|
+
relays_count: number;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
// CardanoDRep
|
|
1031
|
+
export type CardanoDRep = {
|
|
1032
|
+
type: CardanoDRepType;
|
|
1033
|
+
key_hash?: string;
|
|
1034
|
+
script_hash?: string;
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
// CardanoTxCertificate
|
|
1038
|
+
export type CardanoTxCertificate = {
|
|
1039
|
+
type: CardanoCertificateType;
|
|
1040
|
+
path?: number[];
|
|
1041
|
+
pool?: string;
|
|
1042
|
+
pool_parameters?: CardanoPoolParametersType;
|
|
1043
|
+
script_hash?: string;
|
|
1044
|
+
key_hash?: string;
|
|
1045
|
+
deposit?: UintType;
|
|
1046
|
+
drep?: CardanoDRep;
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
// CardanoTxWithdrawal
|
|
1050
|
+
export type CardanoTxWithdrawal = {
|
|
1051
|
+
path?: number[];
|
|
1052
|
+
amount: UintType;
|
|
1053
|
+
script_hash?: string;
|
|
1054
|
+
key_hash?: string;
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
// CardanoCVoteRegistrationDelegation
|
|
1058
|
+
export type CardanoCVoteRegistrationDelegation = {
|
|
1059
|
+
vote_public_key: string;
|
|
1060
|
+
weight: number;
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
// CardanoCVoteRegistrationParametersType
|
|
1064
|
+
export type CardanoCVoteRegistrationParametersType = {
|
|
1065
|
+
vote_public_key?: string;
|
|
1066
|
+
staking_path: number[];
|
|
1067
|
+
payment_address_parameters?: CardanoAddressParametersType;
|
|
1068
|
+
nonce: number;
|
|
1069
|
+
format?: CardanoCVoteRegistrationFormat;
|
|
1070
|
+
delegations: CardanoCVoteRegistrationDelegation[];
|
|
1071
|
+
voting_purpose?: number;
|
|
1072
|
+
payment_address?: string;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
// CardanoTxAuxiliaryData
|
|
1076
|
+
export type CardanoTxAuxiliaryData = {
|
|
1077
|
+
cvote_registration_parameters?: CardanoCVoteRegistrationParametersType;
|
|
1078
|
+
hash?: string;
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
// CardanoTxMint
|
|
1082
|
+
export type CardanoTxMint = {
|
|
1083
|
+
asset_groups_count: number;
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
// CardanoTxCollateralInput
|
|
1087
|
+
export type CardanoTxCollateralInput = {
|
|
1088
|
+
prev_hash: string;
|
|
1089
|
+
prev_index: number;
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
// CardanoTxRequiredSigner
|
|
1093
|
+
export type CardanoTxRequiredSigner = {
|
|
1094
|
+
key_hash?: string;
|
|
1095
|
+
key_path?: number[];
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
// CardanoTxReferenceInput
|
|
1099
|
+
export type CardanoTxReferenceInput = {
|
|
1100
|
+
prev_hash: string;
|
|
1101
|
+
prev_index: number;
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
// CardanoTxItemAck
|
|
1105
|
+
export type CardanoTxItemAck = {};
|
|
1106
|
+
|
|
1107
|
+
// CardanoTxAuxiliaryDataSupplement
|
|
1108
|
+
export type CardanoTxAuxiliaryDataSupplement = {
|
|
1109
|
+
type: CardanoTxAuxiliaryDataSupplementType;
|
|
1110
|
+
auxiliary_data_hash?: string;
|
|
1111
|
+
cvote_registration_signature?: string;
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
// CardanoTxWitnessRequest
|
|
1115
|
+
export type CardanoTxWitnessRequest = {
|
|
1116
|
+
path: number[];
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
// CardanoTxWitnessResponse
|
|
1120
|
+
export type CardanoTxWitnessResponse = {
|
|
1121
|
+
type: CardanoTxWitnessType;
|
|
1122
|
+
pub_key: string;
|
|
1123
|
+
signature: string;
|
|
1124
|
+
chain_code?: string;
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
// CardanoTxHostAck
|
|
1128
|
+
export type CardanoTxHostAck = {};
|
|
1129
|
+
|
|
1130
|
+
// CardanoTxBodyHash
|
|
1131
|
+
export type CardanoTxBodyHash = {
|
|
1132
|
+
tx_hash: string;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
// CardanoSignTxFinished
|
|
1136
|
+
export type CardanoSignTxFinished = {};
|
|
1137
|
+
|
|
1138
|
+
// CardanoSignMessage
|
|
1139
|
+
export type CardanoSignMessage = {
|
|
1140
|
+
address_n: number[];
|
|
1141
|
+
message: string;
|
|
1142
|
+
derivation_type: CardanoDerivationType;
|
|
1143
|
+
network_id: number;
|
|
1144
|
+
address_type?: CardanoAddressType;
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
// CardanoMessageSignature
|
|
1148
|
+
export type CardanoMessageSignature = {
|
|
1149
|
+
signature: string;
|
|
1150
|
+
key: string;
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
// Success
|
|
1154
|
+
export type Success = {
|
|
1155
|
+
message: string;
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
export enum FailureType {
|
|
1159
|
+
Failure_UnexpectedMessage = 1,
|
|
1160
|
+
Failure_ButtonExpected = 2,
|
|
1161
|
+
Failure_DataError = 3,
|
|
1162
|
+
Failure_ActionCancelled = 4,
|
|
1163
|
+
Failure_PinExpected = 5,
|
|
1164
|
+
Failure_PinCancelled = 6,
|
|
1165
|
+
Failure_PinInvalid = 7,
|
|
1166
|
+
Failure_InvalidSignature = 8,
|
|
1167
|
+
Failure_ProcessError = 9,
|
|
1168
|
+
Failure_NotEnoughFunds = 10,
|
|
1169
|
+
Failure_NotInitialized = 11,
|
|
1170
|
+
Failure_PinMismatch = 12,
|
|
1171
|
+
Failure_WipeCodeMismatch = 13,
|
|
1172
|
+
Failure_InvalidSession = 14,
|
|
1173
|
+
Failure_FirmwareError = 99,
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
// Failure
|
|
1177
|
+
export type Failure = {
|
|
1178
|
+
code?: FailureType;
|
|
1179
|
+
message?: string;
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
export enum Enum_ButtonRequestType {
|
|
1183
|
+
ButtonRequest_Other = 1,
|
|
1184
|
+
ButtonRequest_FeeOverThreshold = 2,
|
|
1185
|
+
ButtonRequest_ConfirmOutput = 3,
|
|
1186
|
+
ButtonRequest_ResetDevice = 4,
|
|
1187
|
+
ButtonRequest_ConfirmWord = 5,
|
|
1188
|
+
ButtonRequest_WipeDevice = 6,
|
|
1189
|
+
ButtonRequest_ProtectCall = 7,
|
|
1190
|
+
ButtonRequest_SignTx = 8,
|
|
1191
|
+
ButtonRequest_FirmwareCheck = 9,
|
|
1192
|
+
ButtonRequest_Address = 10,
|
|
1193
|
+
ButtonRequest_PublicKey = 11,
|
|
1194
|
+
ButtonRequest_MnemonicWordCount = 12,
|
|
1195
|
+
ButtonRequest_MnemonicInput = 13,
|
|
1196
|
+
_Deprecated_ButtonRequest_PassphraseType = 14,
|
|
1197
|
+
ButtonRequest_UnknownDerivationPath = 15,
|
|
1198
|
+
ButtonRequest_RecoveryHomepage = 16,
|
|
1199
|
+
ButtonRequest_Success = 17,
|
|
1200
|
+
ButtonRequest_Warning = 18,
|
|
1201
|
+
ButtonRequest_PassphraseEntry = 19,
|
|
1202
|
+
ButtonRequest_PinEntry = 20,
|
|
1203
|
+
ButtonRequest_AttachPin = 8000,
|
|
1204
|
+
}
|
|
1205
|
+
export type ButtonRequestType = keyof typeof Enum_ButtonRequestType;
|
|
1206
|
+
|
|
1207
|
+
// ButtonRequest
|
|
1208
|
+
export type ButtonRequest = {
|
|
1209
|
+
code?: ButtonRequestType;
|
|
1210
|
+
pages?: number;
|
|
1211
|
+
};
|
|
1212
|
+
|
|
1213
|
+
// ButtonAck
|
|
1214
|
+
export type ButtonAck = {};
|
|
1215
|
+
|
|
1216
|
+
export enum Enum_PinMatrixRequestType {
|
|
1217
|
+
PinMatrixRequestType_Current = 1,
|
|
1218
|
+
PinMatrixRequestType_NewFirst = 2,
|
|
1219
|
+
PinMatrixRequestType_NewSecond = 3,
|
|
1220
|
+
PinMatrixRequestType_WipeCodeFirst = 4,
|
|
1221
|
+
PinMatrixRequestType_WipeCodeSecond = 5,
|
|
1222
|
+
PinMatrixRequestType_BackupFirst = 6,
|
|
1223
|
+
PinMatrixRequestType_BackupSecond = 7,
|
|
1224
|
+
PinMatrixRequestType_AttachToPin = 8000,
|
|
1225
|
+
}
|
|
1226
|
+
export type PinMatrixRequestType = keyof typeof Enum_PinMatrixRequestType;
|
|
1227
|
+
|
|
1228
|
+
// PinMatrixRequest
|
|
1229
|
+
export type PinMatrixRequest = {
|
|
1230
|
+
type?: PinMatrixRequestType;
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
// PinMatrixAck
|
|
1234
|
+
export type PinMatrixAck = {
|
|
1235
|
+
pin: string;
|
|
1236
|
+
new_pin?: string;
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
// PassphraseRequest
|
|
1240
|
+
export type PassphraseRequest = {
|
|
1241
|
+
_on_device?: boolean;
|
|
1242
|
+
exists_attach_pin_user?: boolean;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
// PassphraseAck
|
|
1246
|
+
export type PassphraseAck = {
|
|
1247
|
+
passphrase?: string;
|
|
1248
|
+
_state?: string;
|
|
1249
|
+
on_device?: boolean;
|
|
1250
|
+
on_device_attach_pin?: boolean;
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1253
|
+
// Deprecated_PassphraseStateRequest
|
|
1254
|
+
export type Deprecated_PassphraseStateRequest = {
|
|
1255
|
+
state?: string;
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
// Deprecated_PassphraseStateAck
|
|
1259
|
+
export type Deprecated_PassphraseStateAck = {};
|
|
1260
|
+
|
|
1261
|
+
// BixinPinInputOnDevice
|
|
1262
|
+
export type BixinPinInputOnDevice = {};
|
|
1263
|
+
|
|
1264
|
+
// ConfluxGetAddress
|
|
1265
|
+
export type ConfluxGetAddress = {
|
|
1266
|
+
address_n: number[];
|
|
1267
|
+
show_display?: boolean;
|
|
1268
|
+
chain_id?: number;
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
// ConfluxAddress
|
|
1272
|
+
export type ConfluxAddress = {
|
|
1273
|
+
address?: string;
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
// ConfluxSignTx
|
|
1277
|
+
export type ConfluxSignTx = {
|
|
1278
|
+
address_n: number[];
|
|
1279
|
+
nonce?: string;
|
|
1280
|
+
gas_price?: string;
|
|
1281
|
+
gas_limit?: string;
|
|
1282
|
+
to?: string;
|
|
1283
|
+
value?: string;
|
|
1284
|
+
epoch_height?: string;
|
|
1285
|
+
storage_limit?: string;
|
|
1286
|
+
data_initial_chunk?: string;
|
|
1287
|
+
data_length?: number;
|
|
1288
|
+
chain_id?: number;
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
// ConfluxTxRequest
|
|
1292
|
+
export type ConfluxTxRequest = {
|
|
1293
|
+
data_length?: number;
|
|
1294
|
+
signature_v?: number;
|
|
1295
|
+
signature_r?: string;
|
|
1296
|
+
signature_s?: string;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
// ConfluxTxAck
|
|
1300
|
+
export type ConfluxTxAck = {
|
|
1301
|
+
data_chunk?: string;
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
// ConfluxSignMessage
|
|
1305
|
+
export type ConfluxSignMessage = {
|
|
1306
|
+
address_n: number[];
|
|
1307
|
+
message?: string;
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1310
|
+
// ConfluxMessageSignature
|
|
1311
|
+
export type ConfluxMessageSignature = {
|
|
1312
|
+
signature?: string;
|
|
1313
|
+
address?: string;
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
// ConfluxSignMessageCIP23
|
|
1317
|
+
export type ConfluxSignMessageCIP23 = {
|
|
1318
|
+
address_n: number[];
|
|
1319
|
+
domain_hash?: string;
|
|
1320
|
+
message_hash?: string;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
// CosmosGetAddress
|
|
1324
|
+
export type CosmosGetAddress = {
|
|
1325
|
+
address_n: number[];
|
|
1326
|
+
hrp?: string;
|
|
1327
|
+
show_display?: boolean;
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
// CosmosAddress
|
|
1331
|
+
export type CosmosAddress = {
|
|
1332
|
+
address?: string;
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
// CosmosSignTx
|
|
1336
|
+
export type CosmosSignTx = {
|
|
1337
|
+
address_n: number[];
|
|
1338
|
+
raw_tx: string;
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
// CosmosSignedTx
|
|
1342
|
+
export type CosmosSignedTx = {
|
|
1343
|
+
signature: string;
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
// CipherKeyValue
|
|
1347
|
+
export type CipherKeyValue = {
|
|
1348
|
+
address_n: number[];
|
|
1349
|
+
key: string;
|
|
1350
|
+
value: string;
|
|
1351
|
+
encrypt?: boolean;
|
|
1352
|
+
ask_on_encrypt?: boolean;
|
|
1353
|
+
ask_on_decrypt?: boolean;
|
|
1354
|
+
iv?: string;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
// CipheredKeyValue
|
|
1358
|
+
export type CipheredKeyValue = {
|
|
1359
|
+
value: string;
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
// IdentityType
|
|
1363
|
+
export type IdentityType = {
|
|
1364
|
+
proto?: string;
|
|
1365
|
+
user?: string;
|
|
1366
|
+
host?: string;
|
|
1367
|
+
port?: string;
|
|
1368
|
+
path?: string;
|
|
1369
|
+
index?: number;
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
// SignIdentity
|
|
1373
|
+
export type SignIdentity = {
|
|
1374
|
+
identity: IdentityType;
|
|
1375
|
+
challenge_hidden?: string;
|
|
1376
|
+
challenge_visual?: string;
|
|
1377
|
+
ecdsa_curve_name?: string;
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
// SignedIdentity
|
|
1381
|
+
export type SignedIdentity = {
|
|
1382
|
+
address: string;
|
|
1383
|
+
public_key: string;
|
|
1384
|
+
signature: string;
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
// GetECDHSessionKey
|
|
1388
|
+
export type GetECDHSessionKey = {
|
|
1389
|
+
identity: IdentityType;
|
|
1390
|
+
peer_public_key: string;
|
|
1391
|
+
ecdsa_curve_name?: string;
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
// ECDHSessionKey
|
|
1395
|
+
export type ECDHSessionKey = {
|
|
1396
|
+
session_key: string;
|
|
1397
|
+
public_key?: string;
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
export type Path = {
|
|
1401
|
+
address_n: number[];
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
// BatchGetPublickeys
|
|
1405
|
+
export type BatchGetPublickeys = {
|
|
1406
|
+
ecdsa_curve_name?: string;
|
|
1407
|
+
paths: Path[];
|
|
1408
|
+
include_node?: boolean;
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
// EcdsaPublicKeys
|
|
1412
|
+
export type EcdsaPublicKeys = {
|
|
1413
|
+
public_keys: string[];
|
|
1414
|
+
hd_nodes: HDNodeType[];
|
|
1415
|
+
root_fingerprint?: number;
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1418
|
+
// DnxGetAddress
|
|
1419
|
+
export type DnxGetAddress = {
|
|
1420
|
+
address_n: number[];
|
|
1421
|
+
show_display?: boolean;
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
// DnxAddress
|
|
1425
|
+
export type DnxAddress = {
|
|
1426
|
+
address?: string;
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
// DnxSignTx
|
|
1430
|
+
export type DnxSignTx = {
|
|
1431
|
+
address_n: number[];
|
|
1432
|
+
inputs_count: number;
|
|
1433
|
+
to_address: string;
|
|
1434
|
+
amount: UintType;
|
|
1435
|
+
fee: UintType;
|
|
1436
|
+
payment_id?: string;
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
export type DnxTxKey = {
|
|
1440
|
+
ephemeral_tx_sec_key?: string;
|
|
1441
|
+
ephemeral_tx_pub_key?: string;
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
export type DnxComputedKeyImage = {
|
|
1445
|
+
key_image?: string;
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
// DnxInputRequest
|
|
1449
|
+
export type DnxInputRequest = {
|
|
1450
|
+
request_index?: number;
|
|
1451
|
+
tx_key?: DnxTxKey;
|
|
1452
|
+
computed_key_image?: DnxComputedKeyImage;
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
// DnxInputAck
|
|
1456
|
+
export type DnxInputAck = {
|
|
1457
|
+
prev_index: number;
|
|
1458
|
+
global_index: number;
|
|
1459
|
+
tx_pubkey: string;
|
|
1460
|
+
prev_out_pubkey: string;
|
|
1461
|
+
amount: UintType;
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
// DnxRTSigsRequest
|
|
1465
|
+
export type DnxRTSigsRequest = {};
|
|
1466
|
+
|
|
1467
|
+
// DnxSignedTx
|
|
1468
|
+
export type DnxSignedTx = {
|
|
1469
|
+
signatures: string[];
|
|
1470
|
+
output_keys: string[];
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
// EmmcFixPermission
|
|
1474
|
+
export type EmmcFixPermission = {};
|
|
1475
|
+
|
|
1476
|
+
// EmmcPath
|
|
1477
|
+
export type EmmcPath = {
|
|
1478
|
+
exist: boolean;
|
|
1479
|
+
size: number;
|
|
1480
|
+
year: number;
|
|
1481
|
+
month: number;
|
|
1482
|
+
day: number;
|
|
1483
|
+
hour: number;
|
|
1484
|
+
minute: number;
|
|
1485
|
+
second: number;
|
|
1486
|
+
readonly: boolean;
|
|
1487
|
+
hidden: boolean;
|
|
1488
|
+
system: boolean;
|
|
1489
|
+
archive: boolean;
|
|
1490
|
+
directory: boolean;
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
// EmmcPathInfo
|
|
1494
|
+
export type EmmcPathInfo = {
|
|
1495
|
+
path: string;
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
// EmmcFile
|
|
1499
|
+
export type EmmcFile = {
|
|
1500
|
+
path: string;
|
|
1501
|
+
offset: number;
|
|
1502
|
+
len: number;
|
|
1503
|
+
data?: string;
|
|
1504
|
+
data_hash?: number;
|
|
1505
|
+
processed_byte?: number;
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
// EmmcFileRead
|
|
1509
|
+
export type EmmcFileRead = {
|
|
1510
|
+
file: EmmcFile;
|
|
1511
|
+
ui_percentage?: number;
|
|
1512
|
+
};
|
|
1513
|
+
|
|
1514
|
+
// EmmcFileWrite
|
|
1515
|
+
export type EmmcFileWrite = {
|
|
1516
|
+
file: EmmcFile;
|
|
1517
|
+
overwrite: boolean;
|
|
1518
|
+
append: boolean;
|
|
1519
|
+
ui_percentage?: number;
|
|
1520
|
+
};
|
|
1521
|
+
|
|
1522
|
+
// EmmcFileDelete
|
|
1523
|
+
export type EmmcFileDelete = {
|
|
1524
|
+
path: string;
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
// EmmcDir
|
|
1528
|
+
export type EmmcDir = {
|
|
1529
|
+
path: string;
|
|
1530
|
+
child_dirs?: string;
|
|
1531
|
+
child_files?: string;
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
// EmmcDirList
|
|
1535
|
+
export type EmmcDirList = {
|
|
1536
|
+
path: string;
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
// EmmcDirMake
|
|
1540
|
+
export type EmmcDirMake = {
|
|
1541
|
+
path: string;
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
// EmmcDirRemove
|
|
1545
|
+
export type EmmcDirRemove = {
|
|
1546
|
+
path: string;
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
// EosGetPublicKey
|
|
1550
|
+
export type EosGetPublicKey = {
|
|
1551
|
+
address_n: number[];
|
|
1552
|
+
show_display?: boolean;
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
// EosPublicKey
|
|
1556
|
+
export type EosPublicKey = {
|
|
1557
|
+
wif_public_key: string;
|
|
1558
|
+
raw_public_key: string;
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
export type EosTxHeader = {
|
|
1562
|
+
expiration: number;
|
|
1563
|
+
ref_block_num: number;
|
|
1564
|
+
ref_block_prefix: number;
|
|
1565
|
+
max_net_usage_words: number;
|
|
1566
|
+
max_cpu_usage_ms: number;
|
|
1567
|
+
delay_sec: number;
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
// EosSignTx
|
|
1571
|
+
export type EosSignTx = {
|
|
1572
|
+
address_n: number[];
|
|
1573
|
+
chain_id?: string;
|
|
1574
|
+
header?: EosTxHeader;
|
|
1575
|
+
num_actions?: number;
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
// EosTxActionRequest
|
|
1579
|
+
export type EosTxActionRequest = {
|
|
1580
|
+
data_size?: number;
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
export type EosAsset = {
|
|
1584
|
+
amount?: UintType;
|
|
1585
|
+
symbol?: string;
|
|
1586
|
+
};
|
|
1587
|
+
|
|
1588
|
+
export type EosPermissionLevel = {
|
|
1589
|
+
actor?: string;
|
|
1590
|
+
permission?: string;
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
export type EosAuthorizationKey = {
|
|
1594
|
+
type?: number;
|
|
1595
|
+
key: string;
|
|
1596
|
+
address_n?: number[];
|
|
1597
|
+
weight: number;
|
|
1598
|
+
};
|
|
1599
|
+
|
|
1600
|
+
export type EosAuthorizationAccount = {
|
|
1601
|
+
account?: EosPermissionLevel;
|
|
1602
|
+
weight?: number;
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1605
|
+
export type EosAuthorizationWait = {
|
|
1606
|
+
wait_sec?: number;
|
|
1607
|
+
weight?: number;
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
export type EosAuthorization = {
|
|
1611
|
+
threshold?: number;
|
|
1612
|
+
keys: EosAuthorizationKey[];
|
|
1613
|
+
accounts: EosAuthorizationAccount[];
|
|
1614
|
+
waits: EosAuthorizationWait[];
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
export type EosActionCommon = {
|
|
1618
|
+
account?: string;
|
|
1619
|
+
name?: string;
|
|
1620
|
+
authorization: EosPermissionLevel[];
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
export type EosActionTransfer = {
|
|
1624
|
+
sender?: string;
|
|
1625
|
+
receiver?: string;
|
|
1626
|
+
quantity?: EosAsset;
|
|
1627
|
+
memo?: string;
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
export type EosActionDelegate = {
|
|
1631
|
+
sender?: string;
|
|
1632
|
+
receiver?: string;
|
|
1633
|
+
net_quantity?: EosAsset;
|
|
1634
|
+
cpu_quantity?: EosAsset;
|
|
1635
|
+
transfer?: boolean;
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
export type EosActionUndelegate = {
|
|
1639
|
+
sender?: string;
|
|
1640
|
+
receiver?: string;
|
|
1641
|
+
net_quantity?: EosAsset;
|
|
1642
|
+
cpu_quantity?: EosAsset;
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
export type EosActionRefund = {
|
|
1646
|
+
owner?: string;
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
export type EosActionBuyRam = {
|
|
1650
|
+
payer?: string;
|
|
1651
|
+
receiver?: string;
|
|
1652
|
+
quantity?: EosAsset;
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
export type EosActionBuyRamBytes = {
|
|
1656
|
+
payer?: string;
|
|
1657
|
+
receiver?: string;
|
|
1658
|
+
bytes?: number;
|
|
1659
|
+
};
|
|
1660
|
+
|
|
1661
|
+
export type EosActionSellRam = {
|
|
1662
|
+
account?: string;
|
|
1663
|
+
bytes?: number;
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
export type EosActionVoteProducer = {
|
|
1667
|
+
voter?: string;
|
|
1668
|
+
proxy?: string;
|
|
1669
|
+
producers: string[];
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
export type EosActionUpdateAuth = {
|
|
1673
|
+
account?: string;
|
|
1674
|
+
permission?: string;
|
|
1675
|
+
parent?: string;
|
|
1676
|
+
auth?: EosAuthorization;
|
|
1677
|
+
};
|
|
1678
|
+
|
|
1679
|
+
export type EosActionDeleteAuth = {
|
|
1680
|
+
account?: string;
|
|
1681
|
+
permission?: string;
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
export type EosActionLinkAuth = {
|
|
1685
|
+
account?: string;
|
|
1686
|
+
code?: string;
|
|
1687
|
+
type?: string;
|
|
1688
|
+
requirement?: string;
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1691
|
+
export type EosActionUnlinkAuth = {
|
|
1692
|
+
account?: string;
|
|
1693
|
+
code?: string;
|
|
1694
|
+
type?: string;
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
export type EosActionNewAccount = {
|
|
1698
|
+
creator?: string;
|
|
1699
|
+
name?: string;
|
|
1700
|
+
owner?: EosAuthorization;
|
|
1701
|
+
active?: EosAuthorization;
|
|
1702
|
+
};
|
|
1703
|
+
|
|
1704
|
+
export type EosActionUnknown = {
|
|
1705
|
+
data_size: number;
|
|
1706
|
+
data_chunk?: string;
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
// EosTxActionAck
|
|
1710
|
+
export type EosTxActionAck = {
|
|
1711
|
+
common?: EosActionCommon;
|
|
1712
|
+
transfer?: EosActionTransfer;
|
|
1713
|
+
delegate?: EosActionDelegate;
|
|
1714
|
+
undelegate?: EosActionUndelegate;
|
|
1715
|
+
refund?: EosActionRefund;
|
|
1716
|
+
buy_ram?: EosActionBuyRam;
|
|
1717
|
+
buy_ram_bytes?: EosActionBuyRamBytes;
|
|
1718
|
+
sell_ram?: EosActionSellRam;
|
|
1719
|
+
vote_producer?: EosActionVoteProducer;
|
|
1720
|
+
update_auth?: EosActionUpdateAuth;
|
|
1721
|
+
delete_auth?: EosActionDeleteAuth;
|
|
1722
|
+
link_auth?: EosActionLinkAuth;
|
|
1723
|
+
unlink_auth?: EosActionUnlinkAuth;
|
|
1724
|
+
new_account?: EosActionNewAccount;
|
|
1725
|
+
unknown?: EosActionUnknown;
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
// EosSignedTx
|
|
1729
|
+
export type EosSignedTx = {
|
|
1730
|
+
signature: string;
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
export enum EthereumDefinitionType {
|
|
1734
|
+
NETWORK = 0,
|
|
1735
|
+
TOKEN = 1,
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
// EthereumNetworkInfo
|
|
1739
|
+
export type EthereumNetworkInfo = {
|
|
1740
|
+
chain_id: number;
|
|
1741
|
+
symbol: string;
|
|
1742
|
+
slip44: number;
|
|
1743
|
+
name: string;
|
|
1744
|
+
icon?: string;
|
|
1745
|
+
primary_color?: number;
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1748
|
+
// EthereumTokenInfo
|
|
1749
|
+
export type EthereumTokenInfo = {
|
|
1750
|
+
address: string;
|
|
1751
|
+
chain_id: number;
|
|
1752
|
+
symbol: string;
|
|
1753
|
+
decimals: number;
|
|
1754
|
+
name: string;
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
// EthereumDefinitions
|
|
1758
|
+
export type EthereumDefinitions = {
|
|
1759
|
+
encoded_network?: ArrayBuffer;
|
|
1760
|
+
encoded_token?: ArrayBuffer;
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
// EthereumSignTypedDataUKey
|
|
1764
|
+
export type EthereumSignTypedDataUKey = {
|
|
1765
|
+
address_n: number[];
|
|
1766
|
+
primary_type: string;
|
|
1767
|
+
metamask_v4_compat?: boolean;
|
|
1768
|
+
chain_id?: number;
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
export enum EthereumGnosisSafeTxOperation {
|
|
1772
|
+
CALL = 0,
|
|
1773
|
+
DELEGATE_CALL = 1,
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
// EthereumGnosisSafeTxRequest
|
|
1777
|
+
export type EthereumGnosisSafeTxRequest = {};
|
|
1778
|
+
|
|
1779
|
+
// EthereumGnosisSafeTxAck
|
|
1780
|
+
export type EthereumGnosisSafeTxAck = {
|
|
1781
|
+
to: string;
|
|
1782
|
+
value: string;
|
|
1783
|
+
data?: string;
|
|
1784
|
+
operation: EthereumGnosisSafeTxOperation;
|
|
1785
|
+
safeTxGas: string;
|
|
1786
|
+
baseGas: string;
|
|
1787
|
+
gasPrice: string;
|
|
1788
|
+
gasToken: string;
|
|
1789
|
+
refundReceiver: string;
|
|
1790
|
+
nonce: string;
|
|
1791
|
+
chain_id: number;
|
|
1792
|
+
verifyingContract: string;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
// EthereumTypedDataStructRequestUKey
|
|
1796
|
+
export type EthereumTypedDataStructRequestUKey = {
|
|
1797
|
+
name: string;
|
|
1798
|
+
};
|
|
1799
|
+
|
|
1800
|
+
export type EthereumStructMemberUKey = {
|
|
1801
|
+
type: EthereumFieldTypeUKey;
|
|
1802
|
+
name: string;
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
export type EthereumFieldTypeUKey = {
|
|
1806
|
+
data_type: EthereumDataTypeUKey;
|
|
1807
|
+
size?: number;
|
|
1808
|
+
entry_type?: EthereumFieldTypeUKey;
|
|
1809
|
+
struct_name?: string;
|
|
1810
|
+
};
|
|
1811
|
+
|
|
1812
|
+
export enum EthereumDataTypeUKey {
|
|
1813
|
+
UINT = 1,
|
|
1814
|
+
INT = 2,
|
|
1815
|
+
BYTES = 3,
|
|
1816
|
+
STRING = 4,
|
|
1817
|
+
BOOL = 5,
|
|
1818
|
+
ADDRESS = 6,
|
|
1819
|
+
ARRAY = 7,
|
|
1820
|
+
STRUCT = 8,
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
// EthereumTypedDataStructAckUKey
|
|
1824
|
+
export type EthereumTypedDataStructAckUKey = {
|
|
1825
|
+
members: EthereumStructMemberUKey[];
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
// EthereumTypedDataValueRequestUKey
|
|
1829
|
+
export type EthereumTypedDataValueRequestUKey = {
|
|
1830
|
+
member_path: number[];
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
// EthereumTypedDataValueAckUKey
|
|
1834
|
+
export type EthereumTypedDataValueAckUKey = {
|
|
1835
|
+
value: string;
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
// EthereumSignTypedData
|
|
1839
|
+
export type EthereumSignTypedData = {
|
|
1840
|
+
address_n: number[];
|
|
1841
|
+
primary_type: string;
|
|
1842
|
+
metamask_v4_compat?: boolean;
|
|
1843
|
+
definitions?: EthereumDefinitions;
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
// EthereumTypedDataStructRequest
|
|
1847
|
+
export type EthereumTypedDataStructRequest = {
|
|
1848
|
+
name: string;
|
|
1849
|
+
};
|
|
1850
|
+
|
|
1851
|
+
export enum EthereumDataType {
|
|
1852
|
+
UINT = 1,
|
|
1853
|
+
INT = 2,
|
|
1854
|
+
BYTES = 3,
|
|
1855
|
+
STRING = 4,
|
|
1856
|
+
BOOL = 5,
|
|
1857
|
+
ADDRESS = 6,
|
|
1858
|
+
ARRAY = 7,
|
|
1859
|
+
STRUCT = 8,
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
export type EthereumFieldType = {
|
|
1863
|
+
data_type: EthereumDataType;
|
|
1864
|
+
size?: number;
|
|
1865
|
+
entry_type?: EthereumFieldType;
|
|
1866
|
+
struct_name?: string;
|
|
1867
|
+
};
|
|
1868
|
+
|
|
1869
|
+
export type EthereumStructMember = {
|
|
1870
|
+
type: EthereumFieldType;
|
|
1871
|
+
name: string;
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
// EthereumTypedDataStructAck
|
|
1875
|
+
export type EthereumTypedDataStructAck = {
|
|
1876
|
+
members: EthereumStructMember[];
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
// EthereumTypedDataValueRequest
|
|
1880
|
+
export type EthereumTypedDataValueRequest = {
|
|
1881
|
+
member_path: number[];
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
// EthereumTypedDataValueAck
|
|
1885
|
+
export type EthereumTypedDataValueAck = {
|
|
1886
|
+
value: string;
|
|
1887
|
+
};
|
|
1888
|
+
|
|
1889
|
+
// EthereumGetPublicKeyUKey
|
|
1890
|
+
export type EthereumGetPublicKeyUKey = {
|
|
1891
|
+
address_n: number[];
|
|
1892
|
+
show_display?: boolean;
|
|
1893
|
+
chain_id?: number;
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
// EthereumPublicKeyUKey
|
|
1897
|
+
export type EthereumPublicKeyUKey = {
|
|
1898
|
+
node: HDNodeType;
|
|
1899
|
+
xpub: string;
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1902
|
+
// EthereumGetAddressUKey
|
|
1903
|
+
export type EthereumGetAddressUKey = {
|
|
1904
|
+
address_n: number[];
|
|
1905
|
+
show_display?: boolean;
|
|
1906
|
+
chain_id?: number;
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
// EthereumAddressUKey
|
|
1910
|
+
export type EthereumAddressUKey = {
|
|
1911
|
+
_old_address?: string;
|
|
1912
|
+
address?: string;
|
|
1913
|
+
};
|
|
1914
|
+
|
|
1915
|
+
// EthereumSignTxUKey
|
|
1916
|
+
export type EthereumSignTxUKey = {
|
|
1917
|
+
address_n: number[];
|
|
1918
|
+
nonce?: string;
|
|
1919
|
+
gas_price: string;
|
|
1920
|
+
gas_limit: string;
|
|
1921
|
+
to?: string;
|
|
1922
|
+
value?: string;
|
|
1923
|
+
data_initial_chunk?: string;
|
|
1924
|
+
data_length?: number;
|
|
1925
|
+
chain_id: number;
|
|
1926
|
+
tx_type?: number;
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
// EthereumAccessListUKey
|
|
1930
|
+
export type EthereumAccessListUKey = {
|
|
1931
|
+
address: string;
|
|
1932
|
+
storage_keys: string[];
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
// EthereumSignTxEIP1559UKey
|
|
1936
|
+
export type EthereumSignTxEIP1559UKey = {
|
|
1937
|
+
address_n: number[];
|
|
1938
|
+
nonce: string;
|
|
1939
|
+
max_gas_fee: string;
|
|
1940
|
+
max_priority_fee: string;
|
|
1941
|
+
gas_limit: string;
|
|
1942
|
+
to?: string;
|
|
1943
|
+
value: string;
|
|
1944
|
+
data_initial_chunk?: string;
|
|
1945
|
+
data_length: number;
|
|
1946
|
+
chain_id: number;
|
|
1947
|
+
access_list: EthereumAccessListUKey[];
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
// EthereumAuthorizationSignature
|
|
1951
|
+
export type EthereumAuthorizationSignature = {
|
|
1952
|
+
y_parity: number;
|
|
1953
|
+
r: string;
|
|
1954
|
+
s: string;
|
|
1955
|
+
};
|
|
1956
|
+
|
|
1957
|
+
export type EthereumAuthorizationUKey = {
|
|
1958
|
+
address_n: number[];
|
|
1959
|
+
chain_id: number;
|
|
1960
|
+
address: string;
|
|
1961
|
+
nonce: string;
|
|
1962
|
+
signature?: EthereumAuthorizationSignature;
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
// EthereumSignTxEIP7702UKey
|
|
1966
|
+
export type EthereumSignTxEIP7702UKey = {
|
|
1967
|
+
address_n: number[];
|
|
1968
|
+
nonce: string;
|
|
1969
|
+
max_gas_fee: string;
|
|
1970
|
+
max_priority_fee: string;
|
|
1971
|
+
gas_limit: string;
|
|
1972
|
+
to: string;
|
|
1973
|
+
value: string;
|
|
1974
|
+
data_initial_chunk?: string;
|
|
1975
|
+
data_length: number;
|
|
1976
|
+
chain_id: number;
|
|
1977
|
+
access_list: EthereumAccessListUKey[];
|
|
1978
|
+
authorization_list: EthereumAuthorizationUKey[];
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
// EthereumTxRequestUKey
|
|
1982
|
+
export type EthereumTxRequestUKey = {
|
|
1983
|
+
data_length?: number;
|
|
1984
|
+
signature_v?: number;
|
|
1985
|
+
signature_r?: string;
|
|
1986
|
+
signature_s?: string;
|
|
1987
|
+
authorization_signatures: EthereumAuthorizationSignature[];
|
|
1988
|
+
};
|
|
1989
|
+
|
|
1990
|
+
// EthereumTxAckUKey
|
|
1991
|
+
export type EthereumTxAckUKey = {
|
|
1992
|
+
data_chunk: string;
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
// EthereumSignMessageUKey
|
|
1996
|
+
export type EthereumSignMessageUKey = {
|
|
1997
|
+
address_n: number[];
|
|
1998
|
+
message: string;
|
|
1999
|
+
chain_id?: number;
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
// EthereumMessageSignatureUKey
|
|
2003
|
+
export type EthereumMessageSignatureUKey = {
|
|
2004
|
+
signature: string;
|
|
2005
|
+
address: string;
|
|
2006
|
+
};
|
|
2007
|
+
|
|
2008
|
+
// EthereumVerifyMessageUKey
|
|
2009
|
+
export type EthereumVerifyMessageUKey = {
|
|
2010
|
+
signature: string;
|
|
2011
|
+
message: string;
|
|
2012
|
+
address: string;
|
|
2013
|
+
chain_id?: number;
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2016
|
+
// EthereumSignTypedHashUKey
|
|
2017
|
+
export type EthereumSignTypedHashUKey = {
|
|
2018
|
+
address_n: number[];
|
|
2019
|
+
domain_separator_hash: string;
|
|
2020
|
+
message_hash?: string;
|
|
2021
|
+
chain_id?: number;
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
// EthereumTypedDataSignatureUKey
|
|
2025
|
+
export type EthereumTypedDataSignatureUKey = {
|
|
2026
|
+
signature: string;
|
|
2027
|
+
address: string;
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
// EthereumSignMessageEIP712
|
|
2031
|
+
export type EthereumSignMessageEIP712 = {
|
|
2032
|
+
address_n: number[];
|
|
2033
|
+
domain_hash?: string;
|
|
2034
|
+
message_hash?: string;
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2037
|
+
// EthereumGetPublicKey
|
|
2038
|
+
export type EthereumGetPublicKey = {
|
|
2039
|
+
address_n: number[];
|
|
2040
|
+
show_display?: boolean;
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2043
|
+
// EthereumPublicKey
|
|
2044
|
+
export type EthereumPublicKey = {
|
|
2045
|
+
node: HDNodeType;
|
|
2046
|
+
xpub: string;
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
// EthereumGetAddress
|
|
2050
|
+
export type EthereumGetAddress = {
|
|
2051
|
+
address_n: number[];
|
|
2052
|
+
show_display?: boolean;
|
|
2053
|
+
encoded_network?: ArrayBuffer;
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
// EthereumAddress
|
|
2057
|
+
export type EthereumAddress = {
|
|
2058
|
+
_old_address?: string;
|
|
2059
|
+
address: string;
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
// EthereumSignTx
|
|
2063
|
+
export type EthereumSignTx = {
|
|
2064
|
+
address_n: number[];
|
|
2065
|
+
nonce?: string;
|
|
2066
|
+
gas_price: string;
|
|
2067
|
+
gas_limit: string;
|
|
2068
|
+
to?: string;
|
|
2069
|
+
value?: string;
|
|
2070
|
+
data_initial_chunk?: string;
|
|
2071
|
+
data_length?: number;
|
|
2072
|
+
chain_id: number;
|
|
2073
|
+
tx_type?: number;
|
|
2074
|
+
definitions?: EthereumDefinitions;
|
|
2075
|
+
};
|
|
2076
|
+
|
|
2077
|
+
export type EthereumAccessList = {
|
|
2078
|
+
address: string;
|
|
2079
|
+
storage_keys: string[];
|
|
2080
|
+
};
|
|
2081
|
+
|
|
2082
|
+
// EthereumSignTxEIP1559
|
|
2083
|
+
export type EthereumSignTxEIP1559 = {
|
|
2084
|
+
address_n: number[];
|
|
2085
|
+
nonce: string;
|
|
2086
|
+
max_gas_fee: string;
|
|
2087
|
+
max_priority_fee: string;
|
|
2088
|
+
gas_limit: string;
|
|
2089
|
+
to?: string;
|
|
2090
|
+
value: string;
|
|
2091
|
+
data_initial_chunk?: string;
|
|
2092
|
+
data_length: number;
|
|
2093
|
+
chain_id: number;
|
|
2094
|
+
access_list: EthereumAccessList[];
|
|
2095
|
+
definitions?: EthereumDefinitions;
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
// EthereumTxRequest
|
|
2099
|
+
export type EthereumTxRequest = {
|
|
2100
|
+
data_length?: number;
|
|
2101
|
+
signature_v?: number;
|
|
2102
|
+
signature_r?: string;
|
|
2103
|
+
signature_s?: string;
|
|
2104
|
+
};
|
|
2105
|
+
|
|
2106
|
+
// EthereumTxAck
|
|
2107
|
+
export type EthereumTxAck = {
|
|
2108
|
+
data_chunk: string;
|
|
2109
|
+
};
|
|
2110
|
+
|
|
2111
|
+
// EthereumSignMessage
|
|
2112
|
+
export type EthereumSignMessage = {
|
|
2113
|
+
address_n: number[];
|
|
2114
|
+
message: string;
|
|
2115
|
+
encoded_network?: ArrayBuffer;
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
// EthereumMessageSignature
|
|
2119
|
+
export type EthereumMessageSignature = {
|
|
2120
|
+
signature: string;
|
|
2121
|
+
address: string;
|
|
2122
|
+
};
|
|
2123
|
+
|
|
2124
|
+
// EthereumVerifyMessage
|
|
2125
|
+
export type EthereumVerifyMessage = {
|
|
2126
|
+
signature: string;
|
|
2127
|
+
message: string;
|
|
2128
|
+
address: string;
|
|
2129
|
+
};
|
|
2130
|
+
|
|
2131
|
+
// EthereumSignTypedHash
|
|
2132
|
+
export type EthereumSignTypedHash = {
|
|
2133
|
+
address_n: number[];
|
|
2134
|
+
domain_separator_hash: string;
|
|
2135
|
+
message_hash?: string;
|
|
2136
|
+
encoded_network?: ArrayBuffer;
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
// EthereumTypedDataSignature
|
|
2140
|
+
export type EthereumTypedDataSignature = {
|
|
2141
|
+
signature: string;
|
|
2142
|
+
address: string;
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
// FilecoinGetAddress
|
|
2146
|
+
export type FilecoinGetAddress = {
|
|
2147
|
+
address_n: number[];
|
|
2148
|
+
show_display?: boolean;
|
|
2149
|
+
testnet?: boolean;
|
|
2150
|
+
};
|
|
2151
|
+
|
|
2152
|
+
// FilecoinAddress
|
|
2153
|
+
export type FilecoinAddress = {
|
|
2154
|
+
address?: string;
|
|
2155
|
+
};
|
|
2156
|
+
|
|
2157
|
+
// FilecoinSignTx
|
|
2158
|
+
export type FilecoinSignTx = {
|
|
2159
|
+
address_n: number[];
|
|
2160
|
+
raw_tx: string;
|
|
2161
|
+
testnet?: boolean;
|
|
2162
|
+
};
|
|
2163
|
+
|
|
2164
|
+
// FilecoinSignedTx
|
|
2165
|
+
export type FilecoinSignedTx = {
|
|
2166
|
+
signature: string;
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
// KaspaGetAddress
|
|
2170
|
+
export type KaspaGetAddress = {
|
|
2171
|
+
address_n: number[];
|
|
2172
|
+
show_display?: boolean;
|
|
2173
|
+
prefix?: string;
|
|
2174
|
+
scheme?: string;
|
|
2175
|
+
use_tweak?: boolean;
|
|
2176
|
+
};
|
|
2177
|
+
|
|
2178
|
+
// KaspaAddress
|
|
2179
|
+
export type KaspaAddress = {
|
|
2180
|
+
address: string;
|
|
2181
|
+
};
|
|
2182
|
+
|
|
2183
|
+
// KaspaSignTx
|
|
2184
|
+
export type KaspaSignTx = {
|
|
2185
|
+
address_n: number[];
|
|
2186
|
+
raw_message: string;
|
|
2187
|
+
scheme?: string;
|
|
2188
|
+
prefix?: string;
|
|
2189
|
+
input_count?: number;
|
|
2190
|
+
use_tweak?: boolean;
|
|
2191
|
+
};
|
|
2192
|
+
|
|
2193
|
+
// KaspaTxInputRequest
|
|
2194
|
+
export type KaspaTxInputRequest = {
|
|
2195
|
+
request_index: number;
|
|
2196
|
+
signature?: string;
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
// KaspaTxInputAck
|
|
2200
|
+
export type KaspaTxInputAck = {
|
|
2201
|
+
address_n: number[];
|
|
2202
|
+
raw_message: string;
|
|
2203
|
+
};
|
|
2204
|
+
|
|
2205
|
+
// KaspaSignedTx
|
|
2206
|
+
export type KaspaSignedTx = {
|
|
2207
|
+
signature: string;
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
// LnurlAuth
|
|
2211
|
+
export type LnurlAuth = {
|
|
2212
|
+
domain: string;
|
|
2213
|
+
data: string;
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2216
|
+
// LnurlAuthResp
|
|
2217
|
+
export type LnurlAuthResp = {
|
|
2218
|
+
publickey?: string;
|
|
2219
|
+
path?: string;
|
|
2220
|
+
signature?: string;
|
|
2221
|
+
};
|
|
2222
|
+
|
|
2223
|
+
export enum Enum_BackupType {
|
|
2224
|
+
Bip39 = 0,
|
|
2225
|
+
Slip39_Basic = 1,
|
|
2226
|
+
Slip39_Advanced = 2,
|
|
2227
|
+
}
|
|
2228
|
+
export type BackupType = keyof typeof Enum_BackupType;
|
|
2229
|
+
|
|
2230
|
+
export enum Enum_SafetyCheckLevel {
|
|
2231
|
+
Strict = 0,
|
|
2232
|
+
PromptAlways = 1,
|
|
2233
|
+
PromptTemporarily = 2,
|
|
2234
|
+
}
|
|
2235
|
+
export type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
|
|
2236
|
+
|
|
2237
|
+
// Initialize
|
|
2238
|
+
export type Initialize = {
|
|
2239
|
+
session_id?: string;
|
|
2240
|
+
_skip_passphrase?: boolean;
|
|
2241
|
+
derive_cardano?: boolean;
|
|
2242
|
+
passphrase_state?: string;
|
|
2243
|
+
is_contains_attach?: boolean;
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
// GetFeatures
|
|
2247
|
+
export type GetFeatures = {};
|
|
2248
|
+
|
|
2249
|
+
// UkeyGetFeatures
|
|
2250
|
+
export type UkeyGetFeatures = {};
|
|
2251
|
+
|
|
2252
|
+
export enum UKeyDeviceType {
|
|
2253
|
+
CLASSIC = 0,
|
|
2254
|
+
CLASSIC1S = 1,
|
|
2255
|
+
MINI = 2,
|
|
2256
|
+
TOUCH = 3,
|
|
2257
|
+
PRO = 5,
|
|
2258
|
+
PURE = 6,
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
export enum UKeySeType {
|
|
2262
|
+
THD89 = 0,
|
|
2263
|
+
SE608A = 1,
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
export enum UKeySEState {
|
|
2267
|
+
BOOT = 0,
|
|
2268
|
+
APP = 1,
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
export enum Enum_Capability {
|
|
2272
|
+
Capability_Bitcoin = 1,
|
|
2273
|
+
Capability_Bitcoin_like = 2,
|
|
2274
|
+
Capability_Binance = 3,
|
|
2275
|
+
Capability_Cardano = 4,
|
|
2276
|
+
Capability_Crypto = 5,
|
|
2277
|
+
Capability_EOS = 6,
|
|
2278
|
+
Capability_Ethereum = 7,
|
|
2279
|
+
Capability_Lisk = 8,
|
|
2280
|
+
Capability_Monero = 9,
|
|
2281
|
+
Capability_NEM = 10,
|
|
2282
|
+
Capability_Ripple = 11,
|
|
2283
|
+
Capability_Stellar = 12,
|
|
2284
|
+
Capability_Tezos = 13,
|
|
2285
|
+
Capability_U2F = 14,
|
|
2286
|
+
Capability_Shamir = 15,
|
|
2287
|
+
Capability_ShamirGroups = 16,
|
|
2288
|
+
Capability_PassphraseEntry = 17,
|
|
2289
|
+
Capability_EthereumTypedData = 1000,
|
|
2290
|
+
Capability_AttachToPin = 8000,
|
|
2291
|
+
}
|
|
2292
|
+
export type Capability = keyof typeof Enum_Capability;
|
|
2293
|
+
|
|
2294
|
+
// Features
|
|
2295
|
+
export type Features = {
|
|
2296
|
+
vendor: string;
|
|
2297
|
+
major_version: number;
|
|
2298
|
+
minor_version: number;
|
|
2299
|
+
patch_version: number;
|
|
2300
|
+
bootloader_mode: boolean | null;
|
|
2301
|
+
device_id: string | null;
|
|
2302
|
+
pin_protection: boolean | null;
|
|
2303
|
+
passphrase_protection: boolean | null;
|
|
2304
|
+
language: string | null;
|
|
2305
|
+
label: string | null;
|
|
2306
|
+
initialized: boolean | null;
|
|
2307
|
+
revision: string | null;
|
|
2308
|
+
bootloader_hash: string | null;
|
|
2309
|
+
imported: boolean | null;
|
|
2310
|
+
unlocked: boolean | null;
|
|
2311
|
+
_passphrase_cached?: boolean;
|
|
2312
|
+
firmware_present: boolean | null;
|
|
2313
|
+
needs_backup: boolean | null;
|
|
2314
|
+
flags: number | null;
|
|
2315
|
+
model: string;
|
|
2316
|
+
fw_major: number | null;
|
|
2317
|
+
fw_minor: number | null;
|
|
2318
|
+
fw_patch: number | null;
|
|
2319
|
+
fw_vendor: string | null;
|
|
2320
|
+
unfinished_backup: boolean | null;
|
|
2321
|
+
no_backup: boolean | null;
|
|
2322
|
+
recovery_mode: boolean | null;
|
|
2323
|
+
capabilities: Capability[];
|
|
2324
|
+
backup_type: BackupType | null;
|
|
2325
|
+
sd_card_present: boolean | null;
|
|
2326
|
+
sd_protection: boolean | null;
|
|
2327
|
+
wipe_code_protection: boolean | null;
|
|
2328
|
+
session_id: string | null;
|
|
2329
|
+
passphrase_always_on_device: boolean | null;
|
|
2330
|
+
safety_checks: SafetyCheckLevel | null;
|
|
2331
|
+
auto_lock_delay_ms: number | null;
|
|
2332
|
+
display_rotation: number | null;
|
|
2333
|
+
experimental_features: boolean | null;
|
|
2334
|
+
busy?: boolean;
|
|
2335
|
+
offset?: number;
|
|
2336
|
+
ble_name?: string;
|
|
2337
|
+
ble_ver?: string;
|
|
2338
|
+
ble_enable?: boolean;
|
|
2339
|
+
se_enable?: boolean;
|
|
2340
|
+
se_ver?: string;
|
|
2341
|
+
backup_only?: boolean;
|
|
2342
|
+
ukey_version?: string;
|
|
2343
|
+
ukey_serial?: string;
|
|
2344
|
+
bootloader_version?: string;
|
|
2345
|
+
serial_no?: string;
|
|
2346
|
+
spi_flash?: string;
|
|
2347
|
+
initstates?: number;
|
|
2348
|
+
NFT_voucher?: string;
|
|
2349
|
+
cpu_info?: string;
|
|
2350
|
+
pre_firmware?: string;
|
|
2351
|
+
coin_switch?: number;
|
|
2352
|
+
build_id?: string;
|
|
2353
|
+
boardloader_version?: string;
|
|
2354
|
+
battery_level?: number;
|
|
2355
|
+
ukey_device_type?: string | null;
|
|
2356
|
+
ukey_se_type?: string | null;
|
|
2357
|
+
ukey_board_version?: string;
|
|
2358
|
+
ukey_board_hash?: string;
|
|
2359
|
+
ukey_boot_version?: string;
|
|
2360
|
+
ukey_boot_hash?: string;
|
|
2361
|
+
ukey_se01_version?: string;
|
|
2362
|
+
ukey_se01_hash?: string;
|
|
2363
|
+
ukey_se01_build_id?: string;
|
|
2364
|
+
ukey_firmware_version?: string;
|
|
2365
|
+
ukey_firmware_hash?: string;
|
|
2366
|
+
ukey_firmware_build_id?: string;
|
|
2367
|
+
ukey_serial_no?: string;
|
|
2368
|
+
ukey_boot_build_id?: string;
|
|
2369
|
+
ukey_ble_name?: string;
|
|
2370
|
+
ukey_ble_version?: string;
|
|
2371
|
+
ukey_ble_build_id?: string;
|
|
2372
|
+
ukey_ble_hash?: string;
|
|
2373
|
+
ukey_se02_version?: string;
|
|
2374
|
+
ukey_se03_version?: string;
|
|
2375
|
+
ukey_se04_version?: string;
|
|
2376
|
+
ukey_se01_state?: string | null;
|
|
2377
|
+
ukey_se02_state?: string | null;
|
|
2378
|
+
ukey_se03_state?: string | null;
|
|
2379
|
+
ukey_se04_state?: string | null;
|
|
2380
|
+
attach_to_pin_user?: boolean;
|
|
2381
|
+
unlocked_attach_pin?: boolean;
|
|
2382
|
+
};
|
|
2383
|
+
|
|
2384
|
+
// UkeyFeatures
|
|
2385
|
+
export type UkeyFeatures = {
|
|
2386
|
+
ukey_device_type?: UKeyDeviceType;
|
|
2387
|
+
ukey_board_version?: string;
|
|
2388
|
+
ukey_boot_version?: string;
|
|
2389
|
+
ukey_firmware_version?: string;
|
|
2390
|
+
ukey_board_hash?: string;
|
|
2391
|
+
ukey_boot_hash?: string;
|
|
2392
|
+
ukey_firmware_hash?: string;
|
|
2393
|
+
ukey_board_build_id?: string;
|
|
2394
|
+
ukey_boot_build_id?: string;
|
|
2395
|
+
ukey_firmware_build_id?: string;
|
|
2396
|
+
ukey_serial_no?: string;
|
|
2397
|
+
ukey_ble_name?: string;
|
|
2398
|
+
ukey_ble_version?: string;
|
|
2399
|
+
ukey_ble_build_id?: string;
|
|
2400
|
+
ukey_ble_hash?: string;
|
|
2401
|
+
ukey_se_type?: UKeySeType;
|
|
2402
|
+
ukey_se01_state?: UKeySEState;
|
|
2403
|
+
ukey_se02_state?: UKeySEState;
|
|
2404
|
+
ukey_se03_state?: UKeySEState;
|
|
2405
|
+
ukey_se04_state?: UKeySEState;
|
|
2406
|
+
ukey_se01_version?: string;
|
|
2407
|
+
ukey_se02_version?: string;
|
|
2408
|
+
ukey_se03_version?: string;
|
|
2409
|
+
ukey_se04_version?: string;
|
|
2410
|
+
ukey_se01_hash?: string;
|
|
2411
|
+
ukey_se02_hash?: string;
|
|
2412
|
+
ukey_se03_hash?: string;
|
|
2413
|
+
ukey_se04_hash?: string;
|
|
2414
|
+
ukey_se01_build_id?: string;
|
|
2415
|
+
ukey_se02_build_id?: string;
|
|
2416
|
+
ukey_se03_build_id?: string;
|
|
2417
|
+
ukey_se04_build_id?: string;
|
|
2418
|
+
ukey_se01_boot_version?: string;
|
|
2419
|
+
ukey_se02_boot_version?: string;
|
|
2420
|
+
ukey_se03_boot_version?: string;
|
|
2421
|
+
ukey_se04_boot_version?: string;
|
|
2422
|
+
ukey_se01_boot_hash?: string;
|
|
2423
|
+
ukey_se02_boot_hash?: string;
|
|
2424
|
+
ukey_se03_boot_hash?: string;
|
|
2425
|
+
ukey_se04_boot_hash?: string;
|
|
2426
|
+
ukey_se01_boot_build_id?: string;
|
|
2427
|
+
ukey_se02_boot_build_id?: string;
|
|
2428
|
+
ukey_se03_boot_build_id?: string;
|
|
2429
|
+
ukey_se04_boot_build_id?: string;
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2432
|
+
// LockDevice
|
|
2433
|
+
export type LockDevice = {};
|
|
2434
|
+
|
|
2435
|
+
// EndSession
|
|
2436
|
+
export type EndSession = {};
|
|
2437
|
+
|
|
2438
|
+
export enum ExportType {
|
|
2439
|
+
SeedEncExportType_NO = 0,
|
|
2440
|
+
SeedEncExportType_YES = 1,
|
|
2441
|
+
MnemonicPlainExportType_YES = 2,
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
// ApplySettings
|
|
2445
|
+
export type ApplySettings = {
|
|
2446
|
+
language?: string;
|
|
2447
|
+
label?: string;
|
|
2448
|
+
use_passphrase?: boolean;
|
|
2449
|
+
homescreen?: string;
|
|
2450
|
+
_passphrase_source?: number;
|
|
2451
|
+
auto_lock_delay_ms?: number;
|
|
2452
|
+
display_rotation?: number;
|
|
2453
|
+
passphrase_always_on_device?: boolean;
|
|
2454
|
+
safety_checks?: SafetyCheckLevel;
|
|
2455
|
+
experimental_features?: boolean;
|
|
2456
|
+
use_ble?: boolean;
|
|
2457
|
+
use_se?: boolean;
|
|
2458
|
+
is_bixinapp?: boolean;
|
|
2459
|
+
fastpay_pin?: boolean;
|
|
2460
|
+
fastpay_confirm?: boolean;
|
|
2461
|
+
fastpay_money_limit?: number;
|
|
2462
|
+
fastpay_times?: number;
|
|
2463
|
+
};
|
|
2464
|
+
|
|
2465
|
+
// ApplyFlags
|
|
2466
|
+
export type ApplyFlags = {
|
|
2467
|
+
flags: number;
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
// ChangePin
|
|
2471
|
+
export type ChangePin = {
|
|
2472
|
+
remove?: boolean;
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
// ChangeWipeCode
|
|
2476
|
+
export type ChangeWipeCode = {
|
|
2477
|
+
remove?: boolean;
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
export enum SdProtectOperationType {
|
|
2481
|
+
DISABLE = 0,
|
|
2482
|
+
ENABLE = 1,
|
|
2483
|
+
REFRESH = 2,
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
// SdProtect
|
|
2487
|
+
export type SdProtect = {
|
|
2488
|
+
operation: SdProtectOperationType;
|
|
2489
|
+
};
|
|
2490
|
+
|
|
2491
|
+
// Ping
|
|
2492
|
+
export type Ping = {
|
|
2493
|
+
message?: string;
|
|
2494
|
+
button_protection?: boolean;
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2497
|
+
// Cancel
|
|
2498
|
+
export type Cancel = {};
|
|
2499
|
+
|
|
2500
|
+
// GetEntropy
|
|
2501
|
+
export type GetEntropy = {
|
|
2502
|
+
size: number;
|
|
2503
|
+
};
|
|
2504
|
+
|
|
2505
|
+
// Entropy
|
|
2506
|
+
export type Entropy = {
|
|
2507
|
+
entropy: string;
|
|
2508
|
+
};
|
|
2509
|
+
|
|
2510
|
+
// WipeDevice
|
|
2511
|
+
export type WipeDevice = {};
|
|
2512
|
+
|
|
2513
|
+
// ResetDevice
|
|
2514
|
+
export type ResetDevice = {
|
|
2515
|
+
display_random?: boolean;
|
|
2516
|
+
strength?: number;
|
|
2517
|
+
passphrase_protection?: boolean;
|
|
2518
|
+
pin_protection?: boolean;
|
|
2519
|
+
language?: string;
|
|
2520
|
+
label?: string;
|
|
2521
|
+
u2f_counter?: number;
|
|
2522
|
+
skip_backup?: boolean;
|
|
2523
|
+
no_backup?: boolean;
|
|
2524
|
+
backup_type?: string | number;
|
|
2525
|
+
};
|
|
2526
|
+
|
|
2527
|
+
// BackupDevice
|
|
2528
|
+
export type BackupDevice = {};
|
|
2529
|
+
|
|
2530
|
+
// EntropyRequest
|
|
2531
|
+
export type EntropyRequest = {};
|
|
2532
|
+
|
|
2533
|
+
// EntropyAck
|
|
2534
|
+
export type EntropyAck = {
|
|
2535
|
+
entropy: string;
|
|
2536
|
+
};
|
|
2537
|
+
|
|
2538
|
+
export enum RecoveryDeviceType {
|
|
2539
|
+
RecoveryDeviceType_ScrambledWords = 0,
|
|
2540
|
+
RecoveryDeviceType_Matrix = 1,
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
// RecoveryDevice
|
|
2544
|
+
export type RecoveryDevice = {
|
|
2545
|
+
word_count?: number;
|
|
2546
|
+
passphrase_protection?: boolean;
|
|
2547
|
+
pin_protection?: boolean;
|
|
2548
|
+
language?: string;
|
|
2549
|
+
label?: string;
|
|
2550
|
+
enforce_wordlist?: boolean;
|
|
2551
|
+
type?: RecoveryDeviceType;
|
|
2552
|
+
u2f_counter?: number;
|
|
2553
|
+
dry_run?: boolean;
|
|
2554
|
+
};
|
|
2555
|
+
|
|
2556
|
+
export enum Enum_WordRequestType {
|
|
2557
|
+
WordRequestType_Plain = 0,
|
|
2558
|
+
WordRequestType_Matrix9 = 1,
|
|
2559
|
+
WordRequestType_Matrix6 = 2,
|
|
2560
|
+
}
|
|
2561
|
+
export type WordRequestType = keyof typeof Enum_WordRequestType;
|
|
2562
|
+
|
|
2563
|
+
// WordRequest
|
|
2564
|
+
export type WordRequest = {
|
|
2565
|
+
type: WordRequestType;
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2568
|
+
// WordAck
|
|
2569
|
+
export type WordAck = {
|
|
2570
|
+
word: string;
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
// SetU2FCounter
|
|
2574
|
+
export type SetU2FCounter = {
|
|
2575
|
+
u2f_counter: number;
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2578
|
+
// GetNextU2FCounter
|
|
2579
|
+
export type GetNextU2FCounter = {};
|
|
2580
|
+
|
|
2581
|
+
// NextU2FCounter
|
|
2582
|
+
export type NextU2FCounter = {
|
|
2583
|
+
u2f_counter: number;
|
|
2584
|
+
};
|
|
2585
|
+
|
|
2586
|
+
// DoPreauthorized
|
|
2587
|
+
export type DoPreauthorized = {};
|
|
2588
|
+
|
|
2589
|
+
// PreauthorizedRequest
|
|
2590
|
+
export type PreauthorizedRequest = {};
|
|
2591
|
+
|
|
2592
|
+
// CancelAuthorization
|
|
2593
|
+
export type CancelAuthorization = {};
|
|
2594
|
+
|
|
2595
|
+
export enum SeedRequestType {
|
|
2596
|
+
SeedRequestType_Gen = 0,
|
|
2597
|
+
SeedRequestType_EncExport = 1,
|
|
2598
|
+
SeedRequestType_EncImport = 2,
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
// BixinSeedOperate
|
|
2602
|
+
export type BixinSeedOperate = {
|
|
2603
|
+
type: SeedRequestType;
|
|
2604
|
+
seed_importData?: string;
|
|
2605
|
+
};
|
|
2606
|
+
|
|
2607
|
+
// BixinMessageSE
|
|
2608
|
+
export type BixinMessageSE = {
|
|
2609
|
+
inputmessage: string;
|
|
2610
|
+
};
|
|
2611
|
+
|
|
2612
|
+
// BixinOutMessageSE
|
|
2613
|
+
export type BixinOutMessageSE = {
|
|
2614
|
+
outmessage?: string;
|
|
2615
|
+
};
|
|
2616
|
+
|
|
2617
|
+
// DeviceBackToBoot
|
|
2618
|
+
export type DeviceBackToBoot = {};
|
|
2619
|
+
|
|
2620
|
+
// BixinBackupRequest
|
|
2621
|
+
export type BixinBackupRequest = {};
|
|
2622
|
+
|
|
2623
|
+
// BixinBackupAck
|
|
2624
|
+
export type BixinBackupAck = {
|
|
2625
|
+
data: string;
|
|
2626
|
+
};
|
|
2627
|
+
|
|
2628
|
+
// BixinRestoreRequest
|
|
2629
|
+
export type BixinRestoreRequest = {
|
|
2630
|
+
data: string;
|
|
2631
|
+
language?: string;
|
|
2632
|
+
label?: string;
|
|
2633
|
+
passphrase_protection?: boolean;
|
|
2634
|
+
};
|
|
2635
|
+
|
|
2636
|
+
// BixinRestoreAck
|
|
2637
|
+
export type BixinRestoreAck = {
|
|
2638
|
+
data: string;
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
// BixinVerifyDeviceRequest
|
|
2642
|
+
export type BixinVerifyDeviceRequest = {
|
|
2643
|
+
data: string;
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2646
|
+
// BixinVerifyDeviceAck
|
|
2647
|
+
export type BixinVerifyDeviceAck = {
|
|
2648
|
+
cert: string;
|
|
2649
|
+
signature: string;
|
|
2650
|
+
};
|
|
2651
|
+
|
|
2652
|
+
export enum WL_OperationType {
|
|
2653
|
+
WL_OperationType_Add = 0,
|
|
2654
|
+
WL_OperationType_Delete = 1,
|
|
2655
|
+
WL_OperationType_Inquire = 2,
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
// BixinWhiteListRequest
|
|
2659
|
+
export type BixinWhiteListRequest = {
|
|
2660
|
+
type: WL_OperationType;
|
|
2661
|
+
addr_in?: string;
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2664
|
+
// BixinWhiteListAck
|
|
2665
|
+
export type BixinWhiteListAck = {
|
|
2666
|
+
address: string[];
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
// BixinLoadDevice
|
|
2670
|
+
export type BixinLoadDevice = {
|
|
2671
|
+
mnemonics: string;
|
|
2672
|
+
language?: string;
|
|
2673
|
+
label?: string;
|
|
2674
|
+
skip_checksum?: boolean;
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2677
|
+
// BixinBackupDevice
|
|
2678
|
+
export type BixinBackupDevice = {};
|
|
2679
|
+
|
|
2680
|
+
// BixinBackupDeviceAck
|
|
2681
|
+
export type BixinBackupDeviceAck = {
|
|
2682
|
+
mnemonics: string;
|
|
2683
|
+
};
|
|
2684
|
+
|
|
2685
|
+
// DeviceInfoSettings
|
|
2686
|
+
export type DeviceInfoSettings = {
|
|
2687
|
+
serial_no?: string;
|
|
2688
|
+
cpu_info?: string;
|
|
2689
|
+
pre_firmware?: string;
|
|
2690
|
+
};
|
|
2691
|
+
|
|
2692
|
+
// GetDeviceInfo
|
|
2693
|
+
export type GetDeviceInfo = {};
|
|
2694
|
+
|
|
2695
|
+
// DeviceInfo
|
|
2696
|
+
export type DeviceInfo = {
|
|
2697
|
+
serial_no?: string;
|
|
2698
|
+
spiFlash_info?: string;
|
|
2699
|
+
SE_info?: string;
|
|
2700
|
+
NFT_voucher?: string;
|
|
2701
|
+
cpu_info?: string;
|
|
2702
|
+
pre_firmware?: string;
|
|
2703
|
+
};
|
|
2704
|
+
|
|
2705
|
+
// ReadSEPublicKey
|
|
2706
|
+
export type ReadSEPublicKey = {};
|
|
2707
|
+
|
|
2708
|
+
// SEPublicKey
|
|
2709
|
+
export type SEPublicKey = {
|
|
2710
|
+
public_key: string;
|
|
2711
|
+
};
|
|
2712
|
+
|
|
2713
|
+
// WriteSEPublicCert
|
|
2714
|
+
export type WriteSEPublicCert = {
|
|
2715
|
+
public_cert: string;
|
|
2716
|
+
};
|
|
2717
|
+
|
|
2718
|
+
// ReadSEPublicCert
|
|
2719
|
+
export type ReadSEPublicCert = {};
|
|
2720
|
+
|
|
2721
|
+
// SEPublicCert
|
|
2722
|
+
export type SEPublicCert = {
|
|
2723
|
+
public_cert: string;
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
// SpiFlashWrite
|
|
2727
|
+
export type SpiFlashWrite = {
|
|
2728
|
+
address: number;
|
|
2729
|
+
data: string;
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
// SpiFlashRead
|
|
2733
|
+
export type SpiFlashRead = {
|
|
2734
|
+
address: number;
|
|
2735
|
+
len: number;
|
|
2736
|
+
};
|
|
2737
|
+
|
|
2738
|
+
// SpiFlashData
|
|
2739
|
+
export type SpiFlashData = {
|
|
2740
|
+
data: string;
|
|
2741
|
+
};
|
|
2742
|
+
|
|
2743
|
+
// SESignMessage
|
|
2744
|
+
export type SESignMessage = {
|
|
2745
|
+
message: string;
|
|
2746
|
+
};
|
|
2747
|
+
|
|
2748
|
+
// SEMessageSignature
|
|
2749
|
+
export type SEMessageSignature = {
|
|
2750
|
+
signature: string;
|
|
2751
|
+
};
|
|
2752
|
+
|
|
2753
|
+
export enum ResourceType {
|
|
2754
|
+
WallPaper = 0,
|
|
2755
|
+
Nft = 1,
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
// ResourceUpload
|
|
2759
|
+
export type ResourceUpload = {
|
|
2760
|
+
extension: string;
|
|
2761
|
+
data_length: number;
|
|
2762
|
+
res_type: ResourceType;
|
|
2763
|
+
nft_meta_data?: string;
|
|
2764
|
+
zoom_data_length: number;
|
|
2765
|
+
file_name_no_ext?: string;
|
|
2766
|
+
};
|
|
2767
|
+
|
|
2768
|
+
// ZoomRequest
|
|
2769
|
+
export type ZoomRequest = {
|
|
2770
|
+
offset?: number;
|
|
2771
|
+
data_length: number;
|
|
2772
|
+
};
|
|
2773
|
+
|
|
2774
|
+
// ResourceRequest
|
|
2775
|
+
export type ResourceRequest = {
|
|
2776
|
+
offset?: number;
|
|
2777
|
+
data_length: number;
|
|
2778
|
+
};
|
|
2779
|
+
|
|
2780
|
+
// ResourceAck
|
|
2781
|
+
export type ResourceAck = {
|
|
2782
|
+
data_chunk: string;
|
|
2783
|
+
hash?: string;
|
|
2784
|
+
};
|
|
2785
|
+
|
|
2786
|
+
// ResourceUpdate
|
|
2787
|
+
export type ResourceUpdate = {
|
|
2788
|
+
file_name: string;
|
|
2789
|
+
data_length: number;
|
|
2790
|
+
initial_data_chunk: string;
|
|
2791
|
+
hash?: string;
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
// NFTWriteInfo
|
|
2795
|
+
export type NFTWriteInfo = {
|
|
2796
|
+
index: number;
|
|
2797
|
+
width: number;
|
|
2798
|
+
height: number;
|
|
2799
|
+
name_zh?: string;
|
|
2800
|
+
name_en?: string;
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2803
|
+
// NFTWriteData
|
|
2804
|
+
export type NFTWriteData = {
|
|
2805
|
+
index: number;
|
|
2806
|
+
data: string;
|
|
2807
|
+
offset: number;
|
|
2808
|
+
};
|
|
2809
|
+
|
|
2810
|
+
// RebootToBootloader
|
|
2811
|
+
export type RebootToBootloader = {};
|
|
2812
|
+
|
|
2813
|
+
// RebootToBoardloader
|
|
2814
|
+
export type RebootToBoardloader = {};
|
|
2815
|
+
|
|
2816
|
+
// ListResDir
|
|
2817
|
+
export type ListResDir = {
|
|
2818
|
+
path: string;
|
|
2819
|
+
};
|
|
2820
|
+
|
|
2821
|
+
export type FileInfo = {
|
|
2822
|
+
name: string;
|
|
2823
|
+
size: number;
|
|
2824
|
+
};
|
|
2825
|
+
|
|
2826
|
+
// FileInfoList
|
|
2827
|
+
export type FileInfoList = {
|
|
2828
|
+
files: FileInfo[];
|
|
2829
|
+
};
|
|
2830
|
+
|
|
2831
|
+
// DeviceEraseSector
|
|
2832
|
+
export type DeviceEraseSector = {
|
|
2833
|
+
sector: number;
|
|
2834
|
+
};
|
|
2835
|
+
|
|
2836
|
+
// UnLockDevice
|
|
2837
|
+
export type UnLockDevice = {};
|
|
2838
|
+
|
|
2839
|
+
// UnLockDeviceResponse
|
|
2840
|
+
export type UnLockDeviceResponse = {
|
|
2841
|
+
unlocked?: boolean;
|
|
2842
|
+
unlocked_attach_pin?: boolean;
|
|
2843
|
+
passphrase_protection?: boolean;
|
|
2844
|
+
};
|
|
2845
|
+
|
|
2846
|
+
// GetPassphraseState
|
|
2847
|
+
export type GetPassphraseState = {
|
|
2848
|
+
passphrase_state?: string;
|
|
2849
|
+
};
|
|
2850
|
+
|
|
2851
|
+
// PassphraseState
|
|
2852
|
+
export type PassphraseState = {
|
|
2853
|
+
passphrase_state?: string;
|
|
2854
|
+
session_id?: string;
|
|
2855
|
+
unlocked_attach_pin?: boolean;
|
|
2856
|
+
};
|
|
2857
|
+
|
|
2858
|
+
export type MoneroRctKeyPublic = {
|
|
2859
|
+
dest?: string;
|
|
2860
|
+
commitment?: string;
|
|
2861
|
+
};
|
|
2862
|
+
|
|
2863
|
+
export type MoneroOutputEntry = {
|
|
2864
|
+
idx?: number;
|
|
2865
|
+
key?: MoneroRctKeyPublic;
|
|
2866
|
+
};
|
|
2867
|
+
|
|
2868
|
+
export type MoneroMultisigKLRki = {
|
|
2869
|
+
K?: string;
|
|
2870
|
+
L?: string;
|
|
2871
|
+
R?: string;
|
|
2872
|
+
ki?: string;
|
|
2873
|
+
};
|
|
2874
|
+
|
|
2875
|
+
// MoneroTransactionSourceEntry
|
|
2876
|
+
export type MoneroTransactionSourceEntry = {
|
|
2877
|
+
outputs: MoneroOutputEntry[];
|
|
2878
|
+
real_output?: number;
|
|
2879
|
+
real_out_tx_key?: string;
|
|
2880
|
+
real_out_additional_tx_keys: string[];
|
|
2881
|
+
real_output_in_tx_index?: number;
|
|
2882
|
+
amount?: UintType;
|
|
2883
|
+
rct?: boolean;
|
|
2884
|
+
mask?: string;
|
|
2885
|
+
multisig_kLRki?: MoneroMultisigKLRki;
|
|
2886
|
+
subaddr_minor?: number;
|
|
2887
|
+
};
|
|
2888
|
+
|
|
2889
|
+
export type MoneroAccountPublicAddress = {
|
|
2890
|
+
spend_public_key?: string;
|
|
2891
|
+
view_public_key?: string;
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2894
|
+
// MoneroTransactionDestinationEntry
|
|
2895
|
+
export type MoneroTransactionDestinationEntry = {
|
|
2896
|
+
amount?: UintType;
|
|
2897
|
+
addr?: MoneroAccountPublicAddress;
|
|
2898
|
+
is_subaddress?: boolean;
|
|
2899
|
+
original?: string;
|
|
2900
|
+
is_integrated?: boolean;
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2903
|
+
// MoneroTransactionRsigData
|
|
2904
|
+
export type MoneroTransactionRsigData = {
|
|
2905
|
+
rsig_type?: number;
|
|
2906
|
+
offload_type?: number;
|
|
2907
|
+
grouping: number[];
|
|
2908
|
+
mask?: string;
|
|
2909
|
+
rsig?: string;
|
|
2910
|
+
rsig_parts: string[];
|
|
2911
|
+
bp_version?: number;
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
// MoneroGetAddress
|
|
2915
|
+
export type MoneroGetAddress = {
|
|
2916
|
+
address_n: number[];
|
|
2917
|
+
show_display?: boolean;
|
|
2918
|
+
network_type?: number;
|
|
2919
|
+
account?: number;
|
|
2920
|
+
minor?: number;
|
|
2921
|
+
payment_id?: string;
|
|
2922
|
+
};
|
|
2923
|
+
|
|
2924
|
+
// MoneroAddress
|
|
2925
|
+
export type MoneroAddress = {
|
|
2926
|
+
address?: string;
|
|
2927
|
+
};
|
|
2928
|
+
|
|
2929
|
+
// MoneroGetWatchKey
|
|
2930
|
+
export type MoneroGetWatchKey = {
|
|
2931
|
+
address_n: number[];
|
|
2932
|
+
network_type?: number;
|
|
2933
|
+
};
|
|
2934
|
+
|
|
2935
|
+
// MoneroWatchKey
|
|
2936
|
+
export type MoneroWatchKey = {
|
|
2937
|
+
watch_key?: string;
|
|
2938
|
+
address?: string;
|
|
2939
|
+
};
|
|
2940
|
+
|
|
2941
|
+
export type MoneroTransactionData = {
|
|
2942
|
+
version?: number;
|
|
2943
|
+
payment_id?: string;
|
|
2944
|
+
unlock_time?: number;
|
|
2945
|
+
outputs: MoneroTransactionDestinationEntry[];
|
|
2946
|
+
change_dts?: MoneroTransactionDestinationEntry;
|
|
2947
|
+
num_inputs?: number;
|
|
2948
|
+
mixin?: number;
|
|
2949
|
+
fee?: UintType;
|
|
2950
|
+
account?: number;
|
|
2951
|
+
minor_indices: number[];
|
|
2952
|
+
rsig_data?: MoneroTransactionRsigData;
|
|
2953
|
+
integrated_indices: number[];
|
|
2954
|
+
client_version?: number;
|
|
2955
|
+
hard_fork?: number;
|
|
2956
|
+
monero_version?: string;
|
|
2957
|
+
};
|
|
2958
|
+
|
|
2959
|
+
// MoneroTransactionInitRequest
|
|
2960
|
+
export type MoneroTransactionInitRequest = {
|
|
2961
|
+
version?: number;
|
|
2962
|
+
address_n: number[];
|
|
2963
|
+
network_type?: number;
|
|
2964
|
+
tsx_data?: MoneroTransactionData;
|
|
2965
|
+
};
|
|
2966
|
+
|
|
2967
|
+
// MoneroTransactionInitAck
|
|
2968
|
+
export type MoneroTransactionInitAck = {
|
|
2969
|
+
hmacs: string[];
|
|
2970
|
+
rsig_data?: MoneroTransactionRsigData;
|
|
2971
|
+
};
|
|
2972
|
+
|
|
2973
|
+
// MoneroTransactionSetInputRequest
|
|
2974
|
+
export type MoneroTransactionSetInputRequest = {
|
|
2975
|
+
src_entr?: MoneroTransactionSourceEntry;
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
// MoneroTransactionSetInputAck
|
|
2979
|
+
export type MoneroTransactionSetInputAck = {
|
|
2980
|
+
vini?: string;
|
|
2981
|
+
vini_hmac?: string;
|
|
2982
|
+
pseudo_out?: string;
|
|
2983
|
+
pseudo_out_hmac?: string;
|
|
2984
|
+
pseudo_out_alpha?: string;
|
|
2985
|
+
spend_key?: string;
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
// MoneroTransactionInputsPermutationRequest
|
|
2989
|
+
export type MoneroTransactionInputsPermutationRequest = {
|
|
2990
|
+
perm: number[];
|
|
2991
|
+
};
|
|
2992
|
+
|
|
2993
|
+
// MoneroTransactionInputsPermutationAck
|
|
2994
|
+
export type MoneroTransactionInputsPermutationAck = {};
|
|
2995
|
+
|
|
2996
|
+
// MoneroTransactionInputViniRequest
|
|
2997
|
+
export type MoneroTransactionInputViniRequest = {
|
|
2998
|
+
src_entr?: MoneroTransactionSourceEntry;
|
|
2999
|
+
vini?: string;
|
|
3000
|
+
vini_hmac?: string;
|
|
3001
|
+
pseudo_out?: string;
|
|
3002
|
+
pseudo_out_hmac?: string;
|
|
3003
|
+
orig_idx?: number;
|
|
3004
|
+
};
|
|
3005
|
+
|
|
3006
|
+
// MoneroTransactionInputViniAck
|
|
3007
|
+
export type MoneroTransactionInputViniAck = {};
|
|
3008
|
+
|
|
3009
|
+
// MoneroTransactionAllInputsSetRequest
|
|
3010
|
+
export type MoneroTransactionAllInputsSetRequest = {};
|
|
3011
|
+
|
|
3012
|
+
// MoneroTransactionAllInputsSetAck
|
|
3013
|
+
export type MoneroTransactionAllInputsSetAck = {
|
|
3014
|
+
rsig_data?: MoneroTransactionRsigData;
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
// MoneroTransactionSetOutputRequest
|
|
3018
|
+
export type MoneroTransactionSetOutputRequest = {
|
|
3019
|
+
dst_entr?: MoneroTransactionDestinationEntry;
|
|
3020
|
+
dst_entr_hmac?: string;
|
|
3021
|
+
rsig_data?: MoneroTransactionRsigData;
|
|
3022
|
+
is_offloaded_bp?: boolean;
|
|
3023
|
+
};
|
|
3024
|
+
|
|
3025
|
+
// MoneroTransactionSetOutputAck
|
|
3026
|
+
export type MoneroTransactionSetOutputAck = {
|
|
3027
|
+
tx_out?: string;
|
|
3028
|
+
vouti_hmac?: string;
|
|
3029
|
+
rsig_data?: MoneroTransactionRsigData;
|
|
3030
|
+
out_pk?: string;
|
|
3031
|
+
ecdh_info?: string;
|
|
3032
|
+
};
|
|
3033
|
+
|
|
3034
|
+
// MoneroTransactionAllOutSetRequest
|
|
3035
|
+
export type MoneroTransactionAllOutSetRequest = {
|
|
3036
|
+
rsig_data?: MoneroTransactionRsigData;
|
|
3037
|
+
};
|
|
3038
|
+
|
|
3039
|
+
export type MoneroRingCtSig = {
|
|
3040
|
+
txn_fee?: number;
|
|
3041
|
+
message?: string;
|
|
3042
|
+
rv_type?: number;
|
|
3043
|
+
};
|
|
3044
|
+
|
|
3045
|
+
// MoneroTransactionAllOutSetAck
|
|
3046
|
+
export type MoneroTransactionAllOutSetAck = {
|
|
3047
|
+
extra?: string;
|
|
3048
|
+
tx_prefix_hash?: string;
|
|
3049
|
+
rv?: MoneroRingCtSig;
|
|
3050
|
+
full_message_hash?: string;
|
|
3051
|
+
};
|
|
3052
|
+
|
|
3053
|
+
// MoneroTransactionSignInputRequest
|
|
3054
|
+
export type MoneroTransactionSignInputRequest = {
|
|
3055
|
+
src_entr?: MoneroTransactionSourceEntry;
|
|
3056
|
+
vini?: string;
|
|
3057
|
+
vini_hmac?: string;
|
|
3058
|
+
pseudo_out?: string;
|
|
3059
|
+
pseudo_out_hmac?: string;
|
|
3060
|
+
pseudo_out_alpha?: string;
|
|
3061
|
+
spend_key?: string;
|
|
3062
|
+
orig_idx?: number;
|
|
3063
|
+
};
|
|
3064
|
+
|
|
3065
|
+
// MoneroTransactionSignInputAck
|
|
3066
|
+
export type MoneroTransactionSignInputAck = {
|
|
3067
|
+
signature?: string;
|
|
3068
|
+
pseudo_out?: string;
|
|
3069
|
+
};
|
|
3070
|
+
|
|
3071
|
+
// MoneroTransactionFinalRequest
|
|
3072
|
+
export type MoneroTransactionFinalRequest = {};
|
|
3073
|
+
|
|
3074
|
+
// MoneroTransactionFinalAck
|
|
3075
|
+
export type MoneroTransactionFinalAck = {
|
|
3076
|
+
cout_key?: string;
|
|
3077
|
+
salt?: string;
|
|
3078
|
+
rand_mult?: string;
|
|
3079
|
+
tx_enc_keys?: string;
|
|
3080
|
+
opening_key?: string;
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
export type MoneroSubAddressIndicesList = {
|
|
3084
|
+
account?: number;
|
|
3085
|
+
minor_indices: number[];
|
|
3086
|
+
};
|
|
3087
|
+
|
|
3088
|
+
// MoneroKeyImageExportInitRequest
|
|
3089
|
+
export type MoneroKeyImageExportInitRequest = {
|
|
3090
|
+
num?: number;
|
|
3091
|
+
hash?: string;
|
|
3092
|
+
address_n: number[];
|
|
3093
|
+
network_type?: number;
|
|
3094
|
+
subs: MoneroSubAddressIndicesList[];
|
|
3095
|
+
};
|
|
3096
|
+
|
|
3097
|
+
// MoneroKeyImageExportInitAck
|
|
3098
|
+
export type MoneroKeyImageExportInitAck = {};
|
|
3099
|
+
|
|
3100
|
+
export type MoneroTransferDetails = {
|
|
3101
|
+
out_key?: string;
|
|
3102
|
+
tx_pub_key?: string;
|
|
3103
|
+
additional_tx_pub_keys: string[];
|
|
3104
|
+
internal_output_index?: number;
|
|
3105
|
+
sub_addr_major?: number;
|
|
3106
|
+
sub_addr_minor?: number;
|
|
3107
|
+
};
|
|
3108
|
+
|
|
3109
|
+
// MoneroKeyImageSyncStepRequest
|
|
3110
|
+
export type MoneroKeyImageSyncStepRequest = {
|
|
3111
|
+
tdis: MoneroTransferDetails[];
|
|
3112
|
+
};
|
|
3113
|
+
|
|
3114
|
+
export type MoneroExportedKeyImage = {
|
|
3115
|
+
iv?: string;
|
|
3116
|
+
blob?: string;
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
// MoneroKeyImageSyncStepAck
|
|
3120
|
+
export type MoneroKeyImageSyncStepAck = {
|
|
3121
|
+
kis: MoneroExportedKeyImage[];
|
|
3122
|
+
};
|
|
3123
|
+
|
|
3124
|
+
// MoneroKeyImageSyncFinalRequest
|
|
3125
|
+
export type MoneroKeyImageSyncFinalRequest = {};
|
|
3126
|
+
|
|
3127
|
+
// MoneroKeyImageSyncFinalAck
|
|
3128
|
+
export type MoneroKeyImageSyncFinalAck = {
|
|
3129
|
+
enc_key?: string;
|
|
3130
|
+
};
|
|
3131
|
+
|
|
3132
|
+
// MoneroGetTxKeyRequest
|
|
3133
|
+
export type MoneroGetTxKeyRequest = {
|
|
3134
|
+
address_n: number[];
|
|
3135
|
+
network_type?: number;
|
|
3136
|
+
salt1?: string;
|
|
3137
|
+
salt2?: string;
|
|
3138
|
+
tx_enc_keys?: string;
|
|
3139
|
+
tx_prefix_hash?: string;
|
|
3140
|
+
reason?: number;
|
|
3141
|
+
view_public_key?: string;
|
|
3142
|
+
};
|
|
3143
|
+
|
|
3144
|
+
// MoneroGetTxKeyAck
|
|
3145
|
+
export type MoneroGetTxKeyAck = {
|
|
3146
|
+
salt?: string;
|
|
3147
|
+
tx_keys?: string;
|
|
3148
|
+
tx_derivations?: string;
|
|
3149
|
+
};
|
|
3150
|
+
|
|
3151
|
+
// MoneroLiveRefreshStartRequest
|
|
3152
|
+
export type MoneroLiveRefreshStartRequest = {
|
|
3153
|
+
address_n: number[];
|
|
3154
|
+
network_type?: number;
|
|
3155
|
+
};
|
|
3156
|
+
|
|
3157
|
+
// MoneroLiveRefreshStartAck
|
|
3158
|
+
export type MoneroLiveRefreshStartAck = {};
|
|
3159
|
+
|
|
3160
|
+
// MoneroLiveRefreshStepRequest
|
|
3161
|
+
export type MoneroLiveRefreshStepRequest = {
|
|
3162
|
+
out_key?: string;
|
|
3163
|
+
recv_deriv?: string;
|
|
3164
|
+
real_out_idx?: number;
|
|
3165
|
+
sub_addr_major?: number;
|
|
3166
|
+
sub_addr_minor?: number;
|
|
3167
|
+
};
|
|
3168
|
+
|
|
3169
|
+
// MoneroLiveRefreshStepAck
|
|
3170
|
+
export type MoneroLiveRefreshStepAck = {
|
|
3171
|
+
salt?: string;
|
|
3172
|
+
key_image?: string;
|
|
3173
|
+
};
|
|
3174
|
+
|
|
3175
|
+
// MoneroLiveRefreshFinalRequest
|
|
3176
|
+
export type MoneroLiveRefreshFinalRequest = {};
|
|
3177
|
+
|
|
3178
|
+
// MoneroLiveRefreshFinalAck
|
|
3179
|
+
export type MoneroLiveRefreshFinalAck = {};
|
|
3180
|
+
|
|
3181
|
+
// NearGetAddress
|
|
3182
|
+
export type NearGetAddress = {
|
|
3183
|
+
address_n: number[];
|
|
3184
|
+
show_display?: boolean;
|
|
3185
|
+
};
|
|
3186
|
+
|
|
3187
|
+
// NearAddress
|
|
3188
|
+
export type NearAddress = {
|
|
3189
|
+
address?: string;
|
|
3190
|
+
};
|
|
3191
|
+
|
|
3192
|
+
// NearSignTx
|
|
3193
|
+
export type NearSignTx = {
|
|
3194
|
+
address_n: number[];
|
|
3195
|
+
raw_tx: string;
|
|
3196
|
+
};
|
|
3197
|
+
|
|
3198
|
+
// NearSignedTx
|
|
3199
|
+
export type NearSignedTx = {
|
|
3200
|
+
signature: string;
|
|
3201
|
+
};
|
|
3202
|
+
|
|
3203
|
+
// NEMGetAddress
|
|
3204
|
+
export type NEMGetAddress = {
|
|
3205
|
+
address_n: number[];
|
|
3206
|
+
network?: number;
|
|
3207
|
+
show_display?: boolean;
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
// NEMAddress
|
|
3211
|
+
export type NEMAddress = {
|
|
3212
|
+
address: string;
|
|
3213
|
+
};
|
|
3214
|
+
|
|
3215
|
+
export type NEMTransactionCommon = {
|
|
3216
|
+
address_n?: number[];
|
|
3217
|
+
network?: number;
|
|
3218
|
+
timestamp?: number;
|
|
3219
|
+
fee?: UintType;
|
|
3220
|
+
deadline?: number;
|
|
3221
|
+
signer?: string;
|
|
3222
|
+
};
|
|
3223
|
+
|
|
3224
|
+
export type NEMMosaic = {
|
|
3225
|
+
namespace?: string;
|
|
3226
|
+
mosaic?: string;
|
|
3227
|
+
quantity?: number;
|
|
3228
|
+
};
|
|
3229
|
+
|
|
3230
|
+
export type NEMTransfer = {
|
|
3231
|
+
recipient?: string;
|
|
3232
|
+
amount?: UintType;
|
|
3233
|
+
payload?: string;
|
|
3234
|
+
public_key?: string;
|
|
3235
|
+
mosaics?: NEMMosaic[];
|
|
3236
|
+
};
|
|
3237
|
+
|
|
3238
|
+
export type NEMProvisionNamespace = {
|
|
3239
|
+
namespace?: string;
|
|
3240
|
+
parent?: string;
|
|
3241
|
+
sink?: string;
|
|
3242
|
+
fee?: UintType;
|
|
3243
|
+
};
|
|
3244
|
+
|
|
3245
|
+
export enum NEMMosaicLevy {
|
|
3246
|
+
MosaicLevy_Absolute = 1,
|
|
3247
|
+
MosaicLevy_Percentile = 2,
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
export type NEMMosaicDefinition = {
|
|
3251
|
+
name?: string;
|
|
3252
|
+
ticker?: string;
|
|
3253
|
+
namespace?: string;
|
|
3254
|
+
mosaic?: string;
|
|
3255
|
+
divisibility?: number;
|
|
3256
|
+
levy?: NEMMosaicLevy;
|
|
3257
|
+
fee?: UintType;
|
|
3258
|
+
levy_address?: string;
|
|
3259
|
+
levy_namespace?: string;
|
|
3260
|
+
levy_mosaic?: string;
|
|
3261
|
+
supply?: number;
|
|
3262
|
+
mutable_supply?: boolean;
|
|
3263
|
+
transferable?: boolean;
|
|
3264
|
+
description?: string;
|
|
3265
|
+
networks?: number[];
|
|
3266
|
+
};
|
|
3267
|
+
|
|
3268
|
+
export type NEMMosaicCreation = {
|
|
3269
|
+
definition?: NEMMosaicDefinition;
|
|
3270
|
+
sink?: string;
|
|
3271
|
+
fee?: UintType;
|
|
3272
|
+
};
|
|
3273
|
+
|
|
3274
|
+
export enum NEMSupplyChangeType {
|
|
3275
|
+
SupplyChange_Increase = 1,
|
|
3276
|
+
SupplyChange_Decrease = 2,
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
export type NEMMosaicSupplyChange = {
|
|
3280
|
+
namespace?: string;
|
|
3281
|
+
mosaic?: string;
|
|
3282
|
+
type?: NEMSupplyChangeType;
|
|
3283
|
+
delta?: number;
|
|
3284
|
+
};
|
|
3285
|
+
|
|
3286
|
+
export enum NEMModificationType {
|
|
3287
|
+
CosignatoryModification_Add = 1,
|
|
3288
|
+
CosignatoryModification_Delete = 2,
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
export type NEMCosignatoryModification = {
|
|
3292
|
+
type?: NEMModificationType;
|
|
3293
|
+
public_key?: string;
|
|
3294
|
+
};
|
|
3295
|
+
|
|
3296
|
+
export type NEMAggregateModification = {
|
|
3297
|
+
modifications?: NEMCosignatoryModification[];
|
|
3298
|
+
relative_change?: number;
|
|
3299
|
+
};
|
|
3300
|
+
|
|
3301
|
+
export enum NEMImportanceTransferMode {
|
|
3302
|
+
ImportanceTransfer_Activate = 1,
|
|
3303
|
+
ImportanceTransfer_Deactivate = 2,
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
export type NEMImportanceTransfer = {
|
|
3307
|
+
mode?: NEMImportanceTransferMode;
|
|
3308
|
+
public_key?: string;
|
|
3309
|
+
};
|
|
3310
|
+
|
|
3311
|
+
// NEMSignTx
|
|
3312
|
+
export type NEMSignTx = {
|
|
3313
|
+
transaction?: NEMTransactionCommon;
|
|
3314
|
+
multisig?: NEMTransactionCommon;
|
|
3315
|
+
transfer?: NEMTransfer;
|
|
3316
|
+
cosigning?: boolean;
|
|
3317
|
+
provision_namespace?: NEMProvisionNamespace;
|
|
3318
|
+
mosaic_creation?: NEMMosaicCreation;
|
|
3319
|
+
supply_change?: NEMMosaicSupplyChange;
|
|
3320
|
+
aggregate_modification?: NEMAggregateModification;
|
|
3321
|
+
importance_transfer?: NEMImportanceTransfer;
|
|
3322
|
+
};
|
|
3323
|
+
|
|
3324
|
+
// NEMSignedTx
|
|
3325
|
+
export type NEMSignedTx = {
|
|
3326
|
+
data: string;
|
|
3327
|
+
signature: string;
|
|
3328
|
+
};
|
|
3329
|
+
|
|
3330
|
+
// NEMDecryptMessage
|
|
3331
|
+
export type NEMDecryptMessage = {
|
|
3332
|
+
address_n: number[];
|
|
3333
|
+
network?: number;
|
|
3334
|
+
public_key?: string;
|
|
3335
|
+
payload?: string;
|
|
3336
|
+
};
|
|
3337
|
+
|
|
3338
|
+
// NEMDecryptedMessage
|
|
3339
|
+
export type NEMDecryptedMessage = {
|
|
3340
|
+
payload: string;
|
|
3341
|
+
};
|
|
3342
|
+
|
|
3343
|
+
// NeoGetAddress
|
|
3344
|
+
export type NeoGetAddress = {
|
|
3345
|
+
address_n: number[];
|
|
3346
|
+
show_display?: boolean;
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
// NeoAddress
|
|
3350
|
+
export type NeoAddress = {
|
|
3351
|
+
address?: string;
|
|
3352
|
+
public_key?: string;
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
// NeoSignTx
|
|
3356
|
+
export type NeoSignTx = {
|
|
3357
|
+
address_n: number[];
|
|
3358
|
+
raw_tx: string;
|
|
3359
|
+
network_magic?: number;
|
|
3360
|
+
};
|
|
3361
|
+
|
|
3362
|
+
// NeoSignedTx
|
|
3363
|
+
export type NeoSignedTx = {
|
|
3364
|
+
public_key: string;
|
|
3365
|
+
signature: string;
|
|
3366
|
+
};
|
|
3367
|
+
|
|
3368
|
+
// NervosGetAddress
|
|
3369
|
+
export type NervosGetAddress = {
|
|
3370
|
+
address_n: number[];
|
|
3371
|
+
network: string;
|
|
3372
|
+
show_display?: boolean;
|
|
3373
|
+
};
|
|
3374
|
+
|
|
3375
|
+
// NervosAddress
|
|
3376
|
+
export type NervosAddress = {
|
|
3377
|
+
address: string;
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3380
|
+
// NervosSignTx
|
|
3381
|
+
export type NervosSignTx = {
|
|
3382
|
+
address_n: number[];
|
|
3383
|
+
data_initial_chunk: string;
|
|
3384
|
+
witness_buffer: string;
|
|
3385
|
+
network: string;
|
|
3386
|
+
data_length?: number;
|
|
3387
|
+
};
|
|
3388
|
+
|
|
3389
|
+
// NervosSignedTx
|
|
3390
|
+
export type NervosSignedTx = {
|
|
3391
|
+
signature: string;
|
|
3392
|
+
address: string;
|
|
3393
|
+
};
|
|
3394
|
+
|
|
3395
|
+
// NervosTxRequest
|
|
3396
|
+
export type NervosTxRequest = {
|
|
3397
|
+
data_length?: number;
|
|
3398
|
+
public_key?: string;
|
|
3399
|
+
signature?: string;
|
|
3400
|
+
};
|
|
3401
|
+
|
|
3402
|
+
// NervosTxAck
|
|
3403
|
+
export type NervosTxAck = {
|
|
3404
|
+
data_chunk: string;
|
|
3405
|
+
};
|
|
3406
|
+
|
|
3407
|
+
// NexaGetAddress
|
|
3408
|
+
export type NexaGetAddress = {
|
|
3409
|
+
address_n: number[];
|
|
3410
|
+
show_display?: boolean;
|
|
3411
|
+
prefix?: string;
|
|
3412
|
+
};
|
|
3413
|
+
|
|
3414
|
+
// NexaAddress
|
|
3415
|
+
export type NexaAddress = {
|
|
3416
|
+
address: string;
|
|
3417
|
+
public_key: string;
|
|
3418
|
+
};
|
|
3419
|
+
|
|
3420
|
+
// NexaSignTx
|
|
3421
|
+
export type NexaSignTx = {
|
|
3422
|
+
address_n: number[];
|
|
3423
|
+
raw_message: string;
|
|
3424
|
+
prefix?: string;
|
|
3425
|
+
input_count?: number;
|
|
3426
|
+
};
|
|
3427
|
+
|
|
3428
|
+
// NexaTxInputRequest
|
|
3429
|
+
export type NexaTxInputRequest = {
|
|
3430
|
+
request_index: number;
|
|
3431
|
+
signature?: string;
|
|
3432
|
+
};
|
|
3433
|
+
|
|
3434
|
+
// NexaTxInputAck
|
|
3435
|
+
export type NexaTxInputAck = {
|
|
3436
|
+
address_n: number[];
|
|
3437
|
+
raw_message: string;
|
|
3438
|
+
};
|
|
3439
|
+
|
|
3440
|
+
// NexaSignedTx
|
|
3441
|
+
export type NexaSignedTx = {
|
|
3442
|
+
signature: string;
|
|
3443
|
+
};
|
|
3444
|
+
|
|
3445
|
+
// NostrGetPublicKey
|
|
3446
|
+
export type NostrGetPublicKey = {
|
|
3447
|
+
address_n: number[];
|
|
3448
|
+
show_display?: boolean;
|
|
3449
|
+
};
|
|
3450
|
+
|
|
3451
|
+
// NostrPublicKey
|
|
3452
|
+
export type NostrPublicKey = {
|
|
3453
|
+
publickey?: string;
|
|
3454
|
+
npub?: string;
|
|
3455
|
+
};
|
|
3456
|
+
|
|
3457
|
+
// NostrSignEvent
|
|
3458
|
+
export type NostrSignEvent = {
|
|
3459
|
+
address_n: number[];
|
|
3460
|
+
event: string;
|
|
3461
|
+
};
|
|
3462
|
+
|
|
3463
|
+
// NostrSignedEvent
|
|
3464
|
+
export type NostrSignedEvent = {
|
|
3465
|
+
event: string;
|
|
3466
|
+
};
|
|
3467
|
+
|
|
3468
|
+
// NostrSignSchnorr
|
|
3469
|
+
export type NostrSignSchnorr = {
|
|
3470
|
+
address_n: number[];
|
|
3471
|
+
hash: string;
|
|
3472
|
+
};
|
|
3473
|
+
|
|
3474
|
+
// NostrSignedSchnorr
|
|
3475
|
+
export type NostrSignedSchnorr = {
|
|
3476
|
+
signature: string;
|
|
3477
|
+
};
|
|
3478
|
+
|
|
3479
|
+
// NostrEncryptMessage
|
|
3480
|
+
export type NostrEncryptMessage = {
|
|
3481
|
+
address_n: number[];
|
|
3482
|
+
pubkey: string;
|
|
3483
|
+
msg: string;
|
|
3484
|
+
show_display?: boolean;
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3487
|
+
// NostrEncryptedMessage
|
|
3488
|
+
export type NostrEncryptedMessage = {
|
|
3489
|
+
msg: string;
|
|
3490
|
+
};
|
|
3491
|
+
|
|
3492
|
+
// NostrDecryptMessage
|
|
3493
|
+
export type NostrDecryptMessage = {
|
|
3494
|
+
address_n: number[];
|
|
3495
|
+
pubkey: string;
|
|
3496
|
+
msg: string;
|
|
3497
|
+
show_display?: boolean;
|
|
3498
|
+
};
|
|
3499
|
+
|
|
3500
|
+
// NostrDecryptedMessage
|
|
3501
|
+
export type NostrDecryptedMessage = {
|
|
3502
|
+
msg: string;
|
|
3503
|
+
};
|
|
3504
|
+
|
|
3505
|
+
// PolkadotGetAddress
|
|
3506
|
+
export type PolkadotGetAddress = {
|
|
3507
|
+
address_n: number[];
|
|
3508
|
+
prefix: number;
|
|
3509
|
+
network: string;
|
|
3510
|
+
show_display?: boolean;
|
|
3511
|
+
};
|
|
3512
|
+
|
|
3513
|
+
// PolkadotAddress
|
|
3514
|
+
export type PolkadotAddress = {
|
|
3515
|
+
address?: string;
|
|
3516
|
+
public_key?: string;
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
// PolkadotSignTx
|
|
3520
|
+
export type PolkadotSignTx = {
|
|
3521
|
+
address_n: number[];
|
|
3522
|
+
raw_tx: string;
|
|
3523
|
+
network: string;
|
|
3524
|
+
};
|
|
3525
|
+
|
|
3526
|
+
// PolkadotSignedTx
|
|
3527
|
+
export type PolkadotSignedTx = {
|
|
3528
|
+
signature: string;
|
|
3529
|
+
};
|
|
3530
|
+
|
|
3531
|
+
// RippleGetAddress
|
|
3532
|
+
export type RippleGetAddress = {
|
|
3533
|
+
address_n: number[];
|
|
3534
|
+
show_display?: boolean;
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3537
|
+
// RippleAddress
|
|
3538
|
+
export type RippleAddress = {
|
|
3539
|
+
address: string;
|
|
3540
|
+
};
|
|
3541
|
+
|
|
3542
|
+
export type RipplePayment = {
|
|
3543
|
+
amount: UintType;
|
|
3544
|
+
destination: string;
|
|
3545
|
+
destination_tag?: number;
|
|
3546
|
+
};
|
|
3547
|
+
|
|
3548
|
+
// RippleSignTx
|
|
3549
|
+
export type RippleSignTx = {
|
|
3550
|
+
address_n: number[];
|
|
3551
|
+
fee?: UintType;
|
|
3552
|
+
flags?: number;
|
|
3553
|
+
sequence?: number;
|
|
3554
|
+
last_ledger_sequence?: number;
|
|
3555
|
+
payment?: RipplePayment;
|
|
3556
|
+
};
|
|
3557
|
+
|
|
3558
|
+
// RippleSignedTx
|
|
3559
|
+
export type RippleSignedTx = {
|
|
3560
|
+
signature: string;
|
|
3561
|
+
serialized_tx: string;
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3564
|
+
// ScdoGetAddress
|
|
3565
|
+
export type ScdoGetAddress = {
|
|
3566
|
+
address_n: number[];
|
|
3567
|
+
show_display?: boolean;
|
|
3568
|
+
};
|
|
3569
|
+
|
|
3570
|
+
// ScdoAddress
|
|
3571
|
+
export type ScdoAddress = {
|
|
3572
|
+
address: string;
|
|
3573
|
+
};
|
|
3574
|
+
|
|
3575
|
+
// ScdoSignTx
|
|
3576
|
+
export type ScdoSignTx = {
|
|
3577
|
+
address_n: number[];
|
|
3578
|
+
nonce: string;
|
|
3579
|
+
gas_price: string;
|
|
3580
|
+
gas_limit: string;
|
|
3581
|
+
to: string;
|
|
3582
|
+
value: string;
|
|
3583
|
+
timestamp?: string;
|
|
3584
|
+
data_initial_chunk?: string;
|
|
3585
|
+
data_length?: number;
|
|
3586
|
+
tx_type?: number;
|
|
3587
|
+
};
|
|
3588
|
+
|
|
3589
|
+
// ScdoSignedTx
|
|
3590
|
+
export type ScdoSignedTx = {
|
|
3591
|
+
data_length?: number;
|
|
3592
|
+
signature?: string;
|
|
3593
|
+
};
|
|
3594
|
+
|
|
3595
|
+
// ScdoTxAck
|
|
3596
|
+
export type ScdoTxAck = {
|
|
3597
|
+
data_chunk?: string;
|
|
3598
|
+
};
|
|
3599
|
+
|
|
3600
|
+
// ScdoSignMessage
|
|
3601
|
+
export type ScdoSignMessage = {
|
|
3602
|
+
address_n: number[];
|
|
3603
|
+
message?: string;
|
|
3604
|
+
};
|
|
3605
|
+
|
|
3606
|
+
// ScdoSignedMessage
|
|
3607
|
+
export type ScdoSignedMessage = {
|
|
3608
|
+
signature?: string;
|
|
3609
|
+
address?: string;
|
|
3610
|
+
};
|
|
3611
|
+
|
|
3612
|
+
// SolanaGetAddress
|
|
3613
|
+
export type SolanaGetAddress = {
|
|
3614
|
+
address_n: number[];
|
|
3615
|
+
show_display?: boolean;
|
|
3616
|
+
};
|
|
3617
|
+
|
|
3618
|
+
// SolanaAddress
|
|
3619
|
+
export type SolanaAddress = {
|
|
3620
|
+
address?: string;
|
|
3621
|
+
};
|
|
3622
|
+
|
|
3623
|
+
// SolanaSignTx
|
|
3624
|
+
export type SolanaSignTx = {
|
|
3625
|
+
address_n: number[];
|
|
3626
|
+
raw_tx: string;
|
|
3627
|
+
};
|
|
3628
|
+
|
|
3629
|
+
// SolanaSignedTx
|
|
3630
|
+
export type SolanaSignedTx = {
|
|
3631
|
+
signature?: string;
|
|
3632
|
+
};
|
|
3633
|
+
|
|
3634
|
+
export enum SolanaOffChainMessageVersion {
|
|
3635
|
+
MESSAGE_VERSION_0 = 0,
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
export enum SolanaOffChainMessageFormat {
|
|
3639
|
+
V0_RESTRICTED_ASCII = 0,
|
|
3640
|
+
V0_LIMITED_UTF8 = 1,
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
// SolanaSignOffChainMessage
|
|
3644
|
+
export type SolanaSignOffChainMessage = {
|
|
3645
|
+
address_n: number[];
|
|
3646
|
+
message: string;
|
|
3647
|
+
message_version?: SolanaOffChainMessageVersion;
|
|
3648
|
+
message_format?: SolanaOffChainMessageFormat;
|
|
3649
|
+
application_domain?: string;
|
|
3650
|
+
};
|
|
3651
|
+
|
|
3652
|
+
// SolanaSignUnsafeMessage
|
|
3653
|
+
export type SolanaSignUnsafeMessage = {
|
|
3654
|
+
address_n: number[];
|
|
3655
|
+
message: string;
|
|
3656
|
+
};
|
|
3657
|
+
|
|
3658
|
+
// SolanaMessageSignature
|
|
3659
|
+
export type SolanaMessageSignature = {
|
|
3660
|
+
signature: string;
|
|
3661
|
+
public_key?: string;
|
|
3662
|
+
};
|
|
3663
|
+
|
|
3664
|
+
// StarcoinGetAddress
|
|
3665
|
+
export type StarcoinGetAddress = {
|
|
3666
|
+
address_n: number[];
|
|
3667
|
+
show_display?: boolean;
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
// StarcoinAddress
|
|
3671
|
+
export type StarcoinAddress = {
|
|
3672
|
+
address?: string;
|
|
3673
|
+
};
|
|
3674
|
+
|
|
3675
|
+
// StarcoinGetPublicKey
|
|
3676
|
+
export type StarcoinGetPublicKey = {
|
|
3677
|
+
address_n: number[];
|
|
3678
|
+
show_display?: boolean;
|
|
3679
|
+
};
|
|
3680
|
+
|
|
3681
|
+
// StarcoinPublicKey
|
|
3682
|
+
export type StarcoinPublicKey = {
|
|
3683
|
+
public_key: string;
|
|
3684
|
+
};
|
|
3685
|
+
|
|
3686
|
+
// StarcoinSignTx
|
|
3687
|
+
export type StarcoinSignTx = {
|
|
3688
|
+
address_n: number[];
|
|
3689
|
+
raw_tx?: string;
|
|
3690
|
+
};
|
|
3691
|
+
|
|
3692
|
+
// StarcoinSignedTx
|
|
3693
|
+
export type StarcoinSignedTx = {
|
|
3694
|
+
public_key: string;
|
|
3695
|
+
signature: string;
|
|
3696
|
+
};
|
|
3697
|
+
|
|
3698
|
+
// StarcoinSignMessage
|
|
3699
|
+
export type StarcoinSignMessage = {
|
|
3700
|
+
address_n: number[];
|
|
3701
|
+
message?: string;
|
|
3702
|
+
};
|
|
3703
|
+
|
|
3704
|
+
// StarcoinMessageSignature
|
|
3705
|
+
export type StarcoinMessageSignature = {
|
|
3706
|
+
public_key: string;
|
|
3707
|
+
signature: string;
|
|
3708
|
+
};
|
|
3709
|
+
|
|
3710
|
+
// StarcoinVerifyMessage
|
|
3711
|
+
export type StarcoinVerifyMessage = {
|
|
3712
|
+
public_key?: string;
|
|
3713
|
+
signature?: string;
|
|
3714
|
+
message?: string;
|
|
3715
|
+
};
|
|
3716
|
+
|
|
3717
|
+
export enum StellarAssetType {
|
|
3718
|
+
NATIVE = 0,
|
|
3719
|
+
ALPHANUM4 = 1,
|
|
3720
|
+
ALPHANUM12 = 2,
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
// StellarAsset
|
|
3724
|
+
export type StellarAsset = {
|
|
3725
|
+
type: StellarAssetType;
|
|
3726
|
+
code?: string;
|
|
3727
|
+
issuer?: string;
|
|
3728
|
+
};
|
|
3729
|
+
|
|
3730
|
+
// StellarGetAddress
|
|
3731
|
+
export type StellarGetAddress = {
|
|
3732
|
+
address_n: number[];
|
|
3733
|
+
show_display?: boolean;
|
|
3734
|
+
};
|
|
3735
|
+
|
|
3736
|
+
// StellarAddress
|
|
3737
|
+
export type StellarAddress = {
|
|
3738
|
+
address: string;
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3741
|
+
export enum StellarMemoType {
|
|
3742
|
+
NONE = 0,
|
|
3743
|
+
TEXT = 1,
|
|
3744
|
+
ID = 2,
|
|
3745
|
+
HASH = 3,
|
|
3746
|
+
RETURN = 4,
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
// StellarSignTx
|
|
3750
|
+
export type StellarSignTx = {
|
|
3751
|
+
address_n: number[];
|
|
3752
|
+
network_passphrase: string;
|
|
3753
|
+
source_account: string;
|
|
3754
|
+
fee: UintType;
|
|
3755
|
+
sequence_number: UintType;
|
|
3756
|
+
timebounds_start: number;
|
|
3757
|
+
timebounds_end: number;
|
|
3758
|
+
memo_type: StellarMemoType;
|
|
3759
|
+
memo_text?: string;
|
|
3760
|
+
memo_id?: string;
|
|
3761
|
+
memo_hash?: Buffer | string;
|
|
3762
|
+
num_operations: number;
|
|
3763
|
+
};
|
|
3764
|
+
|
|
3765
|
+
// StellarTxOpRequest
|
|
3766
|
+
export type StellarTxOpRequest = {};
|
|
3767
|
+
|
|
3768
|
+
// StellarPaymentOp
|
|
3769
|
+
export type StellarPaymentOp = {
|
|
3770
|
+
source_account?: string;
|
|
3771
|
+
destination_account: string;
|
|
3772
|
+
asset: StellarAsset;
|
|
3773
|
+
amount: UintType;
|
|
3774
|
+
};
|
|
3775
|
+
|
|
3776
|
+
// StellarCreateAccountOp
|
|
3777
|
+
export type StellarCreateAccountOp = {
|
|
3778
|
+
source_account?: string;
|
|
3779
|
+
new_account: string;
|
|
3780
|
+
starting_balance: UintType;
|
|
3781
|
+
};
|
|
3782
|
+
|
|
3783
|
+
// StellarPathPaymentStrictReceiveOp
|
|
3784
|
+
export type StellarPathPaymentStrictReceiveOp = {
|
|
3785
|
+
source_account?: string;
|
|
3786
|
+
send_asset: StellarAsset;
|
|
3787
|
+
send_max: UintType;
|
|
3788
|
+
destination_account: string;
|
|
3789
|
+
destination_asset: StellarAsset;
|
|
3790
|
+
destination_amount: UintType;
|
|
3791
|
+
paths?: StellarAsset[];
|
|
3792
|
+
};
|
|
3793
|
+
|
|
3794
|
+
// StellarPathPaymentStrictSendOp
|
|
3795
|
+
export type StellarPathPaymentStrictSendOp = {
|
|
3796
|
+
source_account?: string;
|
|
3797
|
+
send_asset: StellarAsset;
|
|
3798
|
+
send_amount: UintType;
|
|
3799
|
+
destination_account: string;
|
|
3800
|
+
destination_asset: StellarAsset;
|
|
3801
|
+
destination_min: UintType;
|
|
3802
|
+
paths?: StellarAsset[];
|
|
3803
|
+
};
|
|
3804
|
+
|
|
3805
|
+
// StellarManageSellOfferOp
|
|
3806
|
+
export type StellarManageSellOfferOp = {
|
|
3807
|
+
source_account?: string;
|
|
3808
|
+
selling_asset: StellarAsset;
|
|
3809
|
+
buying_asset: StellarAsset;
|
|
3810
|
+
amount: UintType;
|
|
3811
|
+
price_n: number;
|
|
3812
|
+
price_d: number;
|
|
3813
|
+
offer_id: UintType;
|
|
3814
|
+
};
|
|
3815
|
+
|
|
3816
|
+
// StellarManageBuyOfferOp
|
|
3817
|
+
export type StellarManageBuyOfferOp = {
|
|
3818
|
+
source_account?: string;
|
|
3819
|
+
selling_asset: StellarAsset;
|
|
3820
|
+
buying_asset: StellarAsset;
|
|
3821
|
+
amount: UintType;
|
|
3822
|
+
price_n: number;
|
|
3823
|
+
price_d: number;
|
|
3824
|
+
offer_id: UintType;
|
|
3825
|
+
};
|
|
3826
|
+
|
|
3827
|
+
// StellarCreatePassiveSellOfferOp
|
|
3828
|
+
export type StellarCreatePassiveSellOfferOp = {
|
|
3829
|
+
source_account?: string;
|
|
3830
|
+
selling_asset: StellarAsset;
|
|
3831
|
+
buying_asset: StellarAsset;
|
|
3832
|
+
amount: UintType;
|
|
3833
|
+
price_n: number;
|
|
3834
|
+
price_d: number;
|
|
3835
|
+
};
|
|
3836
|
+
|
|
3837
|
+
export enum StellarSignerType {
|
|
3838
|
+
ACCOUNT = 0,
|
|
3839
|
+
PRE_AUTH = 1,
|
|
3840
|
+
HASH = 2,
|
|
3841
|
+
}
|
|
3842
|
+
|
|
3843
|
+
// StellarSetOptionsOp
|
|
3844
|
+
export type StellarSetOptionsOp = {
|
|
3845
|
+
source_account?: string;
|
|
3846
|
+
inflation_destination_account?: string;
|
|
3847
|
+
clear_flags?: number;
|
|
3848
|
+
set_flags?: number;
|
|
3849
|
+
master_weight?: UintType;
|
|
3850
|
+
low_threshold?: UintType;
|
|
3851
|
+
medium_threshold?: UintType;
|
|
3852
|
+
high_threshold?: UintType;
|
|
3853
|
+
home_domain?: string;
|
|
3854
|
+
signer_type?: StellarSignerType;
|
|
3855
|
+
signer_key?: Buffer | string;
|
|
3856
|
+
signer_weight?: number;
|
|
3857
|
+
};
|
|
3858
|
+
|
|
3859
|
+
// StellarChangeTrustOp
|
|
3860
|
+
export type StellarChangeTrustOp = {
|
|
3861
|
+
source_account?: string;
|
|
3862
|
+
asset: StellarAsset;
|
|
3863
|
+
limit: UintType;
|
|
3864
|
+
};
|
|
3865
|
+
|
|
3866
|
+
// StellarAllowTrustOp
|
|
3867
|
+
export type StellarAllowTrustOp = {
|
|
3868
|
+
source_account?: string;
|
|
3869
|
+
trusted_account: string;
|
|
3870
|
+
asset_type: StellarAssetType;
|
|
3871
|
+
asset_code?: string;
|
|
3872
|
+
is_authorized: boolean;
|
|
3873
|
+
};
|
|
3874
|
+
|
|
3875
|
+
// StellarAccountMergeOp
|
|
3876
|
+
export type StellarAccountMergeOp = {
|
|
3877
|
+
source_account?: string;
|
|
3878
|
+
destination_account: string;
|
|
3879
|
+
};
|
|
3880
|
+
|
|
3881
|
+
// StellarManageDataOp
|
|
3882
|
+
export type StellarManageDataOp = {
|
|
3883
|
+
source_account?: string;
|
|
3884
|
+
key: string;
|
|
3885
|
+
value?: Buffer | string;
|
|
3886
|
+
};
|
|
3887
|
+
|
|
3888
|
+
// StellarBumpSequenceOp
|
|
3889
|
+
export type StellarBumpSequenceOp = {
|
|
3890
|
+
source_account?: string;
|
|
3891
|
+
bump_to: UintType;
|
|
3892
|
+
};
|
|
3893
|
+
|
|
3894
|
+
// StellarSignedTx
|
|
3895
|
+
export type StellarSignedTx = {
|
|
3896
|
+
public_key: string;
|
|
3897
|
+
signature: string;
|
|
3898
|
+
};
|
|
3899
|
+
|
|
3900
|
+
// SuiGetAddress
|
|
3901
|
+
export type SuiGetAddress = {
|
|
3902
|
+
address_n: number[];
|
|
3903
|
+
show_display?: boolean;
|
|
3904
|
+
};
|
|
3905
|
+
|
|
3906
|
+
// SuiAddress
|
|
3907
|
+
export type SuiAddress = {
|
|
3908
|
+
address?: string;
|
|
3909
|
+
};
|
|
3910
|
+
|
|
3911
|
+
// SuiSignTx
|
|
3912
|
+
export type SuiSignTx = {
|
|
3913
|
+
address_n: number[];
|
|
3914
|
+
raw_tx: string;
|
|
3915
|
+
data_initial_chunk?: string;
|
|
3916
|
+
data_length?: number;
|
|
3917
|
+
};
|
|
3918
|
+
|
|
3919
|
+
// SuiSignedTx
|
|
3920
|
+
export type SuiSignedTx = {
|
|
3921
|
+
public_key: string;
|
|
3922
|
+
signature: string;
|
|
3923
|
+
};
|
|
3924
|
+
|
|
3925
|
+
// SuiTxRequest
|
|
3926
|
+
export type SuiTxRequest = {
|
|
3927
|
+
data_length?: number;
|
|
3928
|
+
public_key?: string;
|
|
3929
|
+
signature?: string;
|
|
3930
|
+
};
|
|
3931
|
+
|
|
3932
|
+
// SuiTxAck
|
|
3933
|
+
export type SuiTxAck = {
|
|
3934
|
+
data_chunk: string;
|
|
3935
|
+
};
|
|
3936
|
+
|
|
3937
|
+
// SuiSignMessage
|
|
3938
|
+
export type SuiSignMessage = {
|
|
3939
|
+
address_n: number[];
|
|
3940
|
+
message: string;
|
|
3941
|
+
};
|
|
3942
|
+
|
|
3943
|
+
// SuiMessageSignature
|
|
3944
|
+
export type SuiMessageSignature = {
|
|
3945
|
+
signature: string;
|
|
3946
|
+
address: string;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3949
|
+
// TezosGetAddress
|
|
3950
|
+
export type TezosGetAddress = {
|
|
3951
|
+
address_n: number[];
|
|
3952
|
+
show_display?: boolean;
|
|
3953
|
+
};
|
|
3954
|
+
|
|
3955
|
+
// TezosAddress
|
|
3956
|
+
export type TezosAddress = {
|
|
3957
|
+
address: string;
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
// TezosGetPublicKey
|
|
3961
|
+
export type TezosGetPublicKey = {
|
|
3962
|
+
address_n: number[];
|
|
3963
|
+
show_display?: boolean;
|
|
3964
|
+
};
|
|
3965
|
+
|
|
3966
|
+
// TezosPublicKey
|
|
3967
|
+
export type TezosPublicKey = {
|
|
3968
|
+
public_key: string;
|
|
3969
|
+
};
|
|
3970
|
+
|
|
3971
|
+
export enum TezosContractType {
|
|
3972
|
+
Implicit = 0,
|
|
3973
|
+
Originated = 1,
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3976
|
+
export type TezosContractID = {
|
|
3977
|
+
tag: number;
|
|
3978
|
+
hash: Uint8Array;
|
|
3979
|
+
};
|
|
3980
|
+
|
|
3981
|
+
export type TezosRevealOp = {
|
|
3982
|
+
source: Uint8Array;
|
|
3983
|
+
fee: UintType;
|
|
3984
|
+
counter: number;
|
|
3985
|
+
gas_limit: number;
|
|
3986
|
+
storage_limit: number;
|
|
3987
|
+
public_key: Uint8Array;
|
|
3988
|
+
};
|
|
3989
|
+
|
|
3990
|
+
export type TezosManagerTransfer = {
|
|
3991
|
+
destination?: TezosContractID;
|
|
3992
|
+
amount?: UintType;
|
|
3993
|
+
};
|
|
3994
|
+
|
|
3995
|
+
export type TezosParametersManager = {
|
|
3996
|
+
set_delegate?: Uint8Array;
|
|
3997
|
+
cancel_delegate?: boolean;
|
|
3998
|
+
transfer?: TezosManagerTransfer;
|
|
3999
|
+
};
|
|
4000
|
+
|
|
4001
|
+
export type TezosTransactionOp = {
|
|
4002
|
+
source: Uint8Array;
|
|
4003
|
+
fee: UintType;
|
|
4004
|
+
counter: number;
|
|
4005
|
+
gas_limit: number;
|
|
4006
|
+
storage_limit: number;
|
|
4007
|
+
amount: UintType;
|
|
4008
|
+
destination: TezosContractID;
|
|
4009
|
+
parameters?: number[];
|
|
4010
|
+
parameters_manager?: TezosParametersManager;
|
|
4011
|
+
};
|
|
4012
|
+
|
|
4013
|
+
export type TezosOriginationOp = {
|
|
4014
|
+
source: Uint8Array;
|
|
4015
|
+
fee: UintType;
|
|
4016
|
+
counter: number;
|
|
4017
|
+
gas_limit: number;
|
|
4018
|
+
storage_limit: number;
|
|
4019
|
+
manager_pubkey?: string;
|
|
4020
|
+
balance: number;
|
|
4021
|
+
spendable?: boolean;
|
|
4022
|
+
delegatable?: boolean;
|
|
4023
|
+
delegate?: Uint8Array;
|
|
4024
|
+
script: string | number[];
|
|
4025
|
+
};
|
|
4026
|
+
|
|
4027
|
+
export type TezosDelegationOp = {
|
|
4028
|
+
source: Uint8Array;
|
|
4029
|
+
fee: UintType;
|
|
4030
|
+
counter: number;
|
|
4031
|
+
gas_limit: number;
|
|
4032
|
+
storage_limit: number;
|
|
4033
|
+
delegate: Uint8Array;
|
|
4034
|
+
};
|
|
4035
|
+
|
|
4036
|
+
export type TezosProposalOp = {
|
|
4037
|
+
source?: string;
|
|
4038
|
+
period?: number;
|
|
4039
|
+
proposals: string[];
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
export enum TezosBallotType {
|
|
4043
|
+
Yay = 0,
|
|
4044
|
+
Nay = 1,
|
|
4045
|
+
Pass = 2,
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
export type TezosBallotOp = {
|
|
4049
|
+
source?: string;
|
|
4050
|
+
period?: number;
|
|
4051
|
+
proposal?: string;
|
|
4052
|
+
ballot?: TezosBallotType;
|
|
4053
|
+
};
|
|
4054
|
+
|
|
4055
|
+
// TezosSignTx
|
|
4056
|
+
export type TezosSignTx = {
|
|
4057
|
+
address_n: number[];
|
|
4058
|
+
branch: Uint8Array;
|
|
4059
|
+
reveal?: TezosRevealOp;
|
|
4060
|
+
transaction?: TezosTransactionOp;
|
|
4061
|
+
origination?: TezosOriginationOp;
|
|
4062
|
+
delegation?: TezosDelegationOp;
|
|
4063
|
+
proposal?: TezosProposalOp;
|
|
4064
|
+
ballot?: TezosBallotOp;
|
|
4065
|
+
};
|
|
4066
|
+
|
|
4067
|
+
// TezosSignedTx
|
|
4068
|
+
export type TezosSignedTx = {
|
|
4069
|
+
signature: string;
|
|
4070
|
+
sig_op_contents: string;
|
|
4071
|
+
operation_hash: string;
|
|
4072
|
+
};
|
|
4073
|
+
|
|
4074
|
+
export enum TonWalletVersion {
|
|
4075
|
+
V4R2 = 3,
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
export enum TonWorkChain {
|
|
4079
|
+
BASECHAIN = 0,
|
|
4080
|
+
MASTERCHAIN = 1,
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
// TonGetAddress
|
|
4084
|
+
export type TonGetAddress = {
|
|
4085
|
+
address_n: number[];
|
|
4086
|
+
show_display?: boolean;
|
|
4087
|
+
wallet_version?: TonWalletVersion;
|
|
4088
|
+
is_bounceable?: boolean;
|
|
4089
|
+
is_testnet_only?: boolean;
|
|
4090
|
+
workchain?: TonWorkChain;
|
|
4091
|
+
wallet_id?: number;
|
|
4092
|
+
};
|
|
4093
|
+
|
|
4094
|
+
// TonAddress
|
|
4095
|
+
export type TonAddress = {
|
|
4096
|
+
public_key: string;
|
|
4097
|
+
address: string;
|
|
4098
|
+
};
|
|
4099
|
+
|
|
4100
|
+
// TonSignMessage
|
|
4101
|
+
export type TonSignMessage = {
|
|
4102
|
+
address_n: number[];
|
|
4103
|
+
destination: string;
|
|
4104
|
+
jetton_master_address?: string;
|
|
4105
|
+
jetton_wallet_address?: string;
|
|
4106
|
+
ton_amount: UintType;
|
|
4107
|
+
jetton_amount?: UintType;
|
|
4108
|
+
fwd_fee?: UintType;
|
|
4109
|
+
comment?: string;
|
|
4110
|
+
is_raw_data?: boolean;
|
|
4111
|
+
mode?: number;
|
|
4112
|
+
seqno: number;
|
|
4113
|
+
expire_at: UintType;
|
|
4114
|
+
wallet_version?: TonWalletVersion;
|
|
4115
|
+
wallet_id?: number;
|
|
4116
|
+
workchain?: TonWorkChain;
|
|
4117
|
+
is_bounceable?: boolean;
|
|
4118
|
+
is_testnet_only?: boolean;
|
|
4119
|
+
ext_destination: string[];
|
|
4120
|
+
ext_ton_amount: UintType[];
|
|
4121
|
+
ext_payload: string[];
|
|
4122
|
+
jetton_amount_bytes?: string;
|
|
4123
|
+
init_data_initial_chunk?: string;
|
|
4124
|
+
init_data_length?: number;
|
|
4125
|
+
signing_message_repr?: string;
|
|
4126
|
+
};
|
|
4127
|
+
|
|
4128
|
+
// TonTxAck
|
|
4129
|
+
export type TonTxAck = {
|
|
4130
|
+
init_data_chunk: string;
|
|
4131
|
+
};
|
|
4132
|
+
|
|
4133
|
+
// TonSignedMessage
|
|
4134
|
+
export type TonSignedMessage = {
|
|
4135
|
+
signature?: string;
|
|
4136
|
+
signning_message?: string;
|
|
4137
|
+
init_data_length?: number;
|
|
4138
|
+
};
|
|
4139
|
+
|
|
4140
|
+
// TonSignProof
|
|
4141
|
+
export type TonSignProof = {
|
|
4142
|
+
address_n: number[];
|
|
4143
|
+
appdomain: string;
|
|
4144
|
+
comment?: string;
|
|
4145
|
+
expire_at: UintType;
|
|
4146
|
+
wallet_version?: TonWalletVersion;
|
|
4147
|
+
wallet_id?: number;
|
|
4148
|
+
workchain?: TonWorkChain;
|
|
4149
|
+
is_bounceable?: boolean;
|
|
4150
|
+
is_testnet_only?: boolean;
|
|
4151
|
+
};
|
|
4152
|
+
|
|
4153
|
+
// TonSignedProof
|
|
4154
|
+
export type TonSignedProof = {
|
|
4155
|
+
signature?: string;
|
|
4156
|
+
};
|
|
4157
|
+
|
|
4158
|
+
// TronGetAddress
|
|
4159
|
+
export type TronGetAddress = {
|
|
4160
|
+
address_n: number[];
|
|
4161
|
+
show_display?: boolean;
|
|
4162
|
+
};
|
|
4163
|
+
|
|
4164
|
+
// TronAddress
|
|
4165
|
+
export type TronAddress = {
|
|
4166
|
+
address?: string;
|
|
4167
|
+
};
|
|
4168
|
+
|
|
4169
|
+
export type TronTransferContract = {
|
|
4170
|
+
to_address?: string;
|
|
4171
|
+
amount?: UintType;
|
|
4172
|
+
};
|
|
4173
|
+
|
|
4174
|
+
export type TronTriggerSmartContract = {
|
|
4175
|
+
contract_address?: string;
|
|
4176
|
+
call_value?: number;
|
|
4177
|
+
data?: string;
|
|
4178
|
+
call_token_value?: number;
|
|
4179
|
+
asset_id?: number;
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4182
|
+
export enum TronResourceCode {
|
|
4183
|
+
BANDWIDTH = 0,
|
|
4184
|
+
ENERGY = 1,
|
|
4185
|
+
TRON_POWER = 2,
|
|
4186
|
+
}
|
|
4187
|
+
|
|
4188
|
+
export type TronFreezeBalanceContract = {
|
|
4189
|
+
frozen_balance?: number;
|
|
4190
|
+
frozen_duration?: number;
|
|
4191
|
+
resource?: TronResourceCode;
|
|
4192
|
+
receiver_address?: string;
|
|
4193
|
+
};
|
|
4194
|
+
|
|
4195
|
+
export type TronUnfreezeBalanceContract = {
|
|
4196
|
+
resource?: TronResourceCode;
|
|
4197
|
+
receiver_address?: string;
|
|
4198
|
+
};
|
|
4199
|
+
|
|
4200
|
+
export type TronWithdrawBalanceContract = {
|
|
4201
|
+
owner_address?: string;
|
|
4202
|
+
};
|
|
4203
|
+
|
|
4204
|
+
export type TronFreezeBalanceV2Contract = {
|
|
4205
|
+
frozen_balance?: number;
|
|
4206
|
+
resource?: TronResourceCode;
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4209
|
+
export type TronUnfreezeBalanceV2Contract = {
|
|
4210
|
+
unfreeze_balance?: number;
|
|
4211
|
+
resource?: TronResourceCode;
|
|
4212
|
+
};
|
|
4213
|
+
|
|
4214
|
+
export type TronWithdrawExpireUnfreezeContract = {};
|
|
4215
|
+
|
|
4216
|
+
export type TronDelegateResourceContract = {
|
|
4217
|
+
resource?: TronResourceCode;
|
|
4218
|
+
balance?: number;
|
|
4219
|
+
receiver_address?: string;
|
|
4220
|
+
lock?: boolean;
|
|
4221
|
+
lock_period?: number;
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
export type TronUnDelegateResourceContract = {
|
|
4225
|
+
resource?: TronResourceCode;
|
|
4226
|
+
balance?: number;
|
|
4227
|
+
receiver_address?: string;
|
|
4228
|
+
};
|
|
4229
|
+
|
|
4230
|
+
export type Vote = {
|
|
4231
|
+
vote_address: string;
|
|
4232
|
+
vote_count: number;
|
|
4233
|
+
};
|
|
4234
|
+
|
|
4235
|
+
export type TronVoteWitnessContract = {
|
|
4236
|
+
votes: Vote[];
|
|
4237
|
+
support?: boolean;
|
|
4238
|
+
};
|
|
4239
|
+
|
|
4240
|
+
export type TronCancelAllUnfreezeV2Contract = {};
|
|
4241
|
+
|
|
4242
|
+
export type TronContract = {
|
|
4243
|
+
transfer_contract?: TronTransferContract;
|
|
4244
|
+
provider?: string;
|
|
4245
|
+
vote_witness_contract?: TronVoteWitnessContract;
|
|
4246
|
+
contract_name?: string;
|
|
4247
|
+
permission_id?: number;
|
|
4248
|
+
freeze_balance_contract?: TronFreezeBalanceContract;
|
|
4249
|
+
unfreeze_balance_contract?: TronUnfreezeBalanceContract;
|
|
4250
|
+
withdraw_balance_contract?: TronWithdrawBalanceContract;
|
|
4251
|
+
trigger_smart_contract?: TronTriggerSmartContract;
|
|
4252
|
+
freeze_balance_v2_contract?: TronFreezeBalanceV2Contract;
|
|
4253
|
+
unfreeze_balance_v2_contract?: TronUnfreezeBalanceV2Contract;
|
|
4254
|
+
withdraw_expire_unfreeze_contract?: TronWithdrawExpireUnfreezeContract;
|
|
4255
|
+
delegate_resource_contract?: TronDelegateResourceContract;
|
|
4256
|
+
undelegate_resource_contract?: TronUnDelegateResourceContract;
|
|
4257
|
+
cancel_all_unfreeze_v2_contract?: TronCancelAllUnfreezeV2Contract;
|
|
4258
|
+
};
|
|
4259
|
+
|
|
4260
|
+
// TronSignTx
|
|
4261
|
+
export type TronSignTx = {
|
|
4262
|
+
address_n: number[];
|
|
4263
|
+
ref_block_bytes: string;
|
|
4264
|
+
ref_block_hash: string;
|
|
4265
|
+
expiration: number;
|
|
4266
|
+
data?: string;
|
|
4267
|
+
contract: TronContract;
|
|
4268
|
+
timestamp: number;
|
|
4269
|
+
fee_limit?: number;
|
|
4270
|
+
};
|
|
4271
|
+
|
|
4272
|
+
// TronSignedTx
|
|
4273
|
+
export type TronSignedTx = {
|
|
4274
|
+
signature: string;
|
|
4275
|
+
serialized_tx?: string;
|
|
4276
|
+
};
|
|
4277
|
+
|
|
4278
|
+
export enum TronMessageType {
|
|
4279
|
+
V1 = 1,
|
|
4280
|
+
V2 = 2,
|
|
4281
|
+
}
|
|
4282
|
+
|
|
4283
|
+
// TronSignMessage
|
|
4284
|
+
export type TronSignMessage = {
|
|
4285
|
+
address_n: number[];
|
|
4286
|
+
message: string;
|
|
4287
|
+
message_type?: TronMessageType;
|
|
4288
|
+
};
|
|
4289
|
+
|
|
4290
|
+
// TronMessageSignature
|
|
4291
|
+
export type TronMessageSignature = {
|
|
4292
|
+
address: string;
|
|
4293
|
+
signature: string;
|
|
4294
|
+
};
|
|
4295
|
+
|
|
4296
|
+
// facotry
|
|
4297
|
+
export type facotry = {};
|
|
4298
|
+
|
|
4299
|
+
export enum CommandFlags {
|
|
4300
|
+
Default = 0,
|
|
4301
|
+
Factory_Only = 1,
|
|
4302
|
+
}
|
|
4303
|
+
|
|
4304
|
+
// custom connect definitions
|
|
4305
|
+
export type MessageType = {
|
|
4306
|
+
AlephiumGetAddress: AlephiumGetAddress;
|
|
4307
|
+
AlephiumAddress: AlephiumAddress;
|
|
4308
|
+
AlephiumSignTx: AlephiumSignTx;
|
|
4309
|
+
AlephiumSignedTx: AlephiumSignedTx;
|
|
4310
|
+
AlephiumTxRequest: AlephiumTxRequest;
|
|
4311
|
+
AlephiumTxAck: AlephiumTxAck;
|
|
4312
|
+
AlephiumBytecodeRequest: AlephiumBytecodeRequest;
|
|
4313
|
+
AlephiumBytecodeAck: AlephiumBytecodeAck;
|
|
4314
|
+
AlephiumSignMessage: AlephiumSignMessage;
|
|
4315
|
+
AlephiumMessageSignature: AlephiumMessageSignature;
|
|
4316
|
+
AlgorandGetAddress: AlgorandGetAddress;
|
|
4317
|
+
AlgorandAddress: AlgorandAddress;
|
|
4318
|
+
AlgorandSignTx: AlgorandSignTx;
|
|
4319
|
+
AlgorandSignedTx: AlgorandSignedTx;
|
|
4320
|
+
AptosGetAddress: AptosGetAddress;
|
|
4321
|
+
AptosAddress: AptosAddress;
|
|
4322
|
+
AptosSignTx: AptosSignTx;
|
|
4323
|
+
AptosSignedTx: AptosSignedTx;
|
|
4324
|
+
AptosMessagePayload: AptosMessagePayload;
|
|
4325
|
+
AptosSignMessage: AptosSignMessage;
|
|
4326
|
+
AptosMessageSignature: AptosMessageSignature;
|
|
4327
|
+
AptosSignSIWAMessage: AptosSignSIWAMessage;
|
|
4328
|
+
BenfenGetAddress: BenfenGetAddress;
|
|
4329
|
+
BenfenAddress: BenfenAddress;
|
|
4330
|
+
BenfenSignTx: BenfenSignTx;
|
|
4331
|
+
BenfenSignedTx: BenfenSignedTx;
|
|
4332
|
+
BenfenTxRequest: BenfenTxRequest;
|
|
4333
|
+
BenfenTxAck: BenfenTxAck;
|
|
4334
|
+
BenfenSignMessage: BenfenSignMessage;
|
|
4335
|
+
BenfenMessageSignature: BenfenMessageSignature;
|
|
4336
|
+
BinanceGetAddress: BinanceGetAddress;
|
|
4337
|
+
BinanceAddress: BinanceAddress;
|
|
4338
|
+
BinanceGetPublicKey: BinanceGetPublicKey;
|
|
4339
|
+
BinancePublicKey: BinancePublicKey;
|
|
4340
|
+
BinanceSignTx: BinanceSignTx;
|
|
4341
|
+
BinanceTxRequest: BinanceTxRequest;
|
|
4342
|
+
BinanceCoin: BinanceCoin;
|
|
4343
|
+
BinanceInputOutput: BinanceInputOutput;
|
|
4344
|
+
BinanceTransferMsg: BinanceTransferMsg;
|
|
4345
|
+
BinanceOrderMsg: BinanceOrderMsg;
|
|
4346
|
+
BinanceCancelMsg: BinanceCancelMsg;
|
|
4347
|
+
BinanceSignedTx: BinanceSignedTx;
|
|
4348
|
+
HDNodeType: HDNodeType;
|
|
4349
|
+
HDNodePathType: HDNodePathType;
|
|
4350
|
+
MultisigRedeemScriptType: MultisigRedeemScriptType;
|
|
4351
|
+
GetPublicKey: GetPublicKey;
|
|
4352
|
+
PublicKey: PublicKey;
|
|
4353
|
+
GetAddress: GetAddress;
|
|
4354
|
+
Address: Address;
|
|
4355
|
+
GetOwnershipId: GetOwnershipId;
|
|
4356
|
+
OwnershipId: OwnershipId;
|
|
4357
|
+
SignMessage: SignMessage;
|
|
4358
|
+
MessageSignature: MessageSignature;
|
|
4359
|
+
VerifyMessage: VerifyMessage;
|
|
4360
|
+
SignTx: SignTx;
|
|
4361
|
+
TxRequestDetailsType: TxRequestDetailsType;
|
|
4362
|
+
TxRequestSerializedType: TxRequestSerializedType;
|
|
4363
|
+
TxRequest: TxRequest;
|
|
4364
|
+
TxInputType: TxInputType;
|
|
4365
|
+
TxOutputBinType: TxOutputBinType;
|
|
4366
|
+
TxOutputType: TxOutputType;
|
|
4367
|
+
PrevTx: PrevTx;
|
|
4368
|
+
PrevInput: PrevInput;
|
|
4369
|
+
PrevOutput: PrevOutput;
|
|
4370
|
+
TxAck: TxAck;
|
|
4371
|
+
TxAckInputWrapper: TxAckInputWrapper;
|
|
4372
|
+
TxAckInput: TxAckInput;
|
|
4373
|
+
TxAckOutputWrapper: TxAckOutputWrapper;
|
|
4374
|
+
TxAckOutput: TxAckOutput;
|
|
4375
|
+
TxAckPrevMeta: TxAckPrevMeta;
|
|
4376
|
+
TxAckPrevInputWrapper: TxAckPrevInputWrapper;
|
|
4377
|
+
TxAckPrevInput: TxAckPrevInput;
|
|
4378
|
+
TxAckPrevOutputWrapper: TxAckPrevOutputWrapper;
|
|
4379
|
+
TxAckPrevOutput: TxAckPrevOutput;
|
|
4380
|
+
TxAckPrevExtraDataWrapper: TxAckPrevExtraDataWrapper;
|
|
4381
|
+
TxAckPrevExtraData: TxAckPrevExtraData;
|
|
4382
|
+
GetOwnershipProof: GetOwnershipProof;
|
|
4383
|
+
OwnershipProof: OwnershipProof;
|
|
4384
|
+
AuthorizeCoinJoin: AuthorizeCoinJoin;
|
|
4385
|
+
BIP32Address: BIP32Address;
|
|
4386
|
+
GetPublicKeyMultiple: GetPublicKeyMultiple;
|
|
4387
|
+
PublicKeyMultiple: PublicKeyMultiple;
|
|
4388
|
+
SignPsbt: SignPsbt;
|
|
4389
|
+
SignedPsbt: SignedPsbt;
|
|
4390
|
+
FirmwareErase: FirmwareErase;
|
|
4391
|
+
FirmwareRequest: FirmwareRequest;
|
|
4392
|
+
FirmwareUpload: FirmwareUpload;
|
|
4393
|
+
SelfTest: SelfTest;
|
|
4394
|
+
FirmwareErase_ex: FirmwareErase_ex;
|
|
4395
|
+
Reboot: Reboot;
|
|
4396
|
+
FirmwareUpdateEmmc: FirmwareUpdateEmmc;
|
|
4397
|
+
CardanoBlockchainPointerType: CardanoBlockchainPointerType;
|
|
4398
|
+
CardanoNativeScript: CardanoNativeScript;
|
|
4399
|
+
CardanoGetNativeScriptHash: CardanoGetNativeScriptHash;
|
|
4400
|
+
CardanoNativeScriptHash: CardanoNativeScriptHash;
|
|
4401
|
+
CardanoAddressParametersType: CardanoAddressParametersType;
|
|
4402
|
+
CardanoGetAddress: CardanoGetAddress;
|
|
4403
|
+
CardanoAddress: CardanoAddress;
|
|
4404
|
+
CardanoGetPublicKey: CardanoGetPublicKey;
|
|
4405
|
+
CardanoPublicKey: CardanoPublicKey;
|
|
4406
|
+
CardanoSignTxInit: CardanoSignTxInit;
|
|
4407
|
+
CardanoTxInput: CardanoTxInput;
|
|
4408
|
+
CardanoTxOutput: CardanoTxOutput;
|
|
4409
|
+
CardanoAssetGroup: CardanoAssetGroup;
|
|
4410
|
+
CardanoToken: CardanoToken;
|
|
4411
|
+
CardanoTxInlineDatumChunk: CardanoTxInlineDatumChunk;
|
|
4412
|
+
CardanoTxReferenceScriptChunk: CardanoTxReferenceScriptChunk;
|
|
4413
|
+
CardanoPoolOwner: CardanoPoolOwner;
|
|
4414
|
+
CardanoPoolRelayParameters: CardanoPoolRelayParameters;
|
|
4415
|
+
CardanoPoolMetadataType: CardanoPoolMetadataType;
|
|
4416
|
+
CardanoPoolParametersType: CardanoPoolParametersType;
|
|
4417
|
+
CardanoDRep: CardanoDRep;
|
|
4418
|
+
CardanoTxCertificate: CardanoTxCertificate;
|
|
4419
|
+
CardanoTxWithdrawal: CardanoTxWithdrawal;
|
|
4420
|
+
CardanoCVoteRegistrationDelegation: CardanoCVoteRegistrationDelegation;
|
|
4421
|
+
CardanoCVoteRegistrationParametersType: CardanoCVoteRegistrationParametersType;
|
|
4422
|
+
CardanoTxAuxiliaryData: CardanoTxAuxiliaryData;
|
|
4423
|
+
CardanoTxMint: CardanoTxMint;
|
|
4424
|
+
CardanoTxCollateralInput: CardanoTxCollateralInput;
|
|
4425
|
+
CardanoTxRequiredSigner: CardanoTxRequiredSigner;
|
|
4426
|
+
CardanoTxReferenceInput: CardanoTxReferenceInput;
|
|
4427
|
+
CardanoTxItemAck: CardanoTxItemAck;
|
|
4428
|
+
CardanoTxAuxiliaryDataSupplement: CardanoTxAuxiliaryDataSupplement;
|
|
4429
|
+
CardanoTxWitnessRequest: CardanoTxWitnessRequest;
|
|
4430
|
+
CardanoTxWitnessResponse: CardanoTxWitnessResponse;
|
|
4431
|
+
CardanoTxHostAck: CardanoTxHostAck;
|
|
4432
|
+
CardanoTxBodyHash: CardanoTxBodyHash;
|
|
4433
|
+
CardanoSignTxFinished: CardanoSignTxFinished;
|
|
4434
|
+
CardanoSignMessage: CardanoSignMessage;
|
|
4435
|
+
CardanoMessageSignature: CardanoMessageSignature;
|
|
4436
|
+
Success: Success;
|
|
4437
|
+
Failure: Failure;
|
|
4438
|
+
ButtonRequest: ButtonRequest;
|
|
4439
|
+
ButtonAck: ButtonAck;
|
|
4440
|
+
PinMatrixRequest: PinMatrixRequest;
|
|
4441
|
+
PinMatrixAck: PinMatrixAck;
|
|
4442
|
+
PassphraseRequest: PassphraseRequest;
|
|
4443
|
+
PassphraseAck: PassphraseAck;
|
|
4444
|
+
Deprecated_PassphraseStateRequest: Deprecated_PassphraseStateRequest;
|
|
4445
|
+
Deprecated_PassphraseStateAck: Deprecated_PassphraseStateAck;
|
|
4446
|
+
BixinPinInputOnDevice: BixinPinInputOnDevice;
|
|
4447
|
+
ConfluxGetAddress: ConfluxGetAddress;
|
|
4448
|
+
ConfluxAddress: ConfluxAddress;
|
|
4449
|
+
ConfluxSignTx: ConfluxSignTx;
|
|
4450
|
+
ConfluxTxRequest: ConfluxTxRequest;
|
|
4451
|
+
ConfluxTxAck: ConfluxTxAck;
|
|
4452
|
+
ConfluxSignMessage: ConfluxSignMessage;
|
|
4453
|
+
ConfluxMessageSignature: ConfluxMessageSignature;
|
|
4454
|
+
ConfluxSignMessageCIP23: ConfluxSignMessageCIP23;
|
|
4455
|
+
CosmosGetAddress: CosmosGetAddress;
|
|
4456
|
+
CosmosAddress: CosmosAddress;
|
|
4457
|
+
CosmosSignTx: CosmosSignTx;
|
|
4458
|
+
CosmosSignedTx: CosmosSignedTx;
|
|
4459
|
+
CipherKeyValue: CipherKeyValue;
|
|
4460
|
+
CipheredKeyValue: CipheredKeyValue;
|
|
4461
|
+
IdentityType: IdentityType;
|
|
4462
|
+
SignIdentity: SignIdentity;
|
|
4463
|
+
SignedIdentity: SignedIdentity;
|
|
4464
|
+
GetECDHSessionKey: GetECDHSessionKey;
|
|
4465
|
+
ECDHSessionKey: ECDHSessionKey;
|
|
4466
|
+
Path: Path;
|
|
4467
|
+
BatchGetPublickeys: BatchGetPublickeys;
|
|
4468
|
+
EcdsaPublicKeys: EcdsaPublicKeys;
|
|
4469
|
+
DnxGetAddress: DnxGetAddress;
|
|
4470
|
+
DnxAddress: DnxAddress;
|
|
4471
|
+
DnxSignTx: DnxSignTx;
|
|
4472
|
+
DnxTxKey: DnxTxKey;
|
|
4473
|
+
DnxComputedKeyImage: DnxComputedKeyImage;
|
|
4474
|
+
DnxInputRequest: DnxInputRequest;
|
|
4475
|
+
DnxInputAck: DnxInputAck;
|
|
4476
|
+
DnxRTSigsRequest: DnxRTSigsRequest;
|
|
4477
|
+
DnxSignedTx: DnxSignedTx;
|
|
4478
|
+
EmmcFixPermission: EmmcFixPermission;
|
|
4479
|
+
EmmcPath: EmmcPath;
|
|
4480
|
+
EmmcPathInfo: EmmcPathInfo;
|
|
4481
|
+
EmmcFile: EmmcFile;
|
|
4482
|
+
EmmcFileRead: EmmcFileRead;
|
|
4483
|
+
EmmcFileWrite: EmmcFileWrite;
|
|
4484
|
+
EmmcFileDelete: EmmcFileDelete;
|
|
4485
|
+
EmmcDir: EmmcDir;
|
|
4486
|
+
EmmcDirList: EmmcDirList;
|
|
4487
|
+
EmmcDirMake: EmmcDirMake;
|
|
4488
|
+
EmmcDirRemove: EmmcDirRemove;
|
|
4489
|
+
EosGetPublicKey: EosGetPublicKey;
|
|
4490
|
+
EosPublicKey: EosPublicKey;
|
|
4491
|
+
EosTxHeader: EosTxHeader;
|
|
4492
|
+
EosSignTx: EosSignTx;
|
|
4493
|
+
EosTxActionRequest: EosTxActionRequest;
|
|
4494
|
+
EosAsset: EosAsset;
|
|
4495
|
+
EosPermissionLevel: EosPermissionLevel;
|
|
4496
|
+
EosAuthorizationKey: EosAuthorizationKey;
|
|
4497
|
+
EosAuthorizationAccount: EosAuthorizationAccount;
|
|
4498
|
+
EosAuthorizationWait: EosAuthorizationWait;
|
|
4499
|
+
EosAuthorization: EosAuthorization;
|
|
4500
|
+
EosActionCommon: EosActionCommon;
|
|
4501
|
+
EosActionTransfer: EosActionTransfer;
|
|
4502
|
+
EosActionDelegate: EosActionDelegate;
|
|
4503
|
+
EosActionUndelegate: EosActionUndelegate;
|
|
4504
|
+
EosActionRefund: EosActionRefund;
|
|
4505
|
+
EosActionBuyRam: EosActionBuyRam;
|
|
4506
|
+
EosActionBuyRamBytes: EosActionBuyRamBytes;
|
|
4507
|
+
EosActionSellRam: EosActionSellRam;
|
|
4508
|
+
EosActionVoteProducer: EosActionVoteProducer;
|
|
4509
|
+
EosActionUpdateAuth: EosActionUpdateAuth;
|
|
4510
|
+
EosActionDeleteAuth: EosActionDeleteAuth;
|
|
4511
|
+
EosActionLinkAuth: EosActionLinkAuth;
|
|
4512
|
+
EosActionUnlinkAuth: EosActionUnlinkAuth;
|
|
4513
|
+
EosActionNewAccount: EosActionNewAccount;
|
|
4514
|
+
EosActionUnknown: EosActionUnknown;
|
|
4515
|
+
EosTxActionAck: EosTxActionAck;
|
|
4516
|
+
EosSignedTx: EosSignedTx;
|
|
4517
|
+
EthereumNetworkInfo: EthereumNetworkInfo;
|
|
4518
|
+
EthereumTokenInfo: EthereumTokenInfo;
|
|
4519
|
+
EthereumDefinitions: EthereumDefinitions;
|
|
4520
|
+
EthereumSignTypedDataUKey: EthereumSignTypedDataUKey;
|
|
4521
|
+
EthereumGnosisSafeTxRequest: EthereumGnosisSafeTxRequest;
|
|
4522
|
+
EthereumGnosisSafeTxAck: EthereumGnosisSafeTxAck;
|
|
4523
|
+
EthereumTypedDataStructRequestUKey: EthereumTypedDataStructRequestUKey;
|
|
4524
|
+
EthereumStructMemberUKey: EthereumStructMemberUKey;
|
|
4525
|
+
EthereumFieldTypeUKey: EthereumFieldTypeUKey;
|
|
4526
|
+
EthereumTypedDataStructAckUKey: EthereumTypedDataStructAckUKey;
|
|
4527
|
+
EthereumTypedDataValueRequestUKey: EthereumTypedDataValueRequestUKey;
|
|
4528
|
+
EthereumTypedDataValueAckUKey: EthereumTypedDataValueAckUKey;
|
|
4529
|
+
EthereumSignTypedData: EthereumSignTypedData;
|
|
4530
|
+
EthereumTypedDataStructRequest: EthereumTypedDataStructRequest;
|
|
4531
|
+
EthereumFieldType: EthereumFieldType;
|
|
4532
|
+
EthereumStructMember: EthereumStructMember;
|
|
4533
|
+
EthereumTypedDataStructAck: EthereumTypedDataStructAck;
|
|
4534
|
+
EthereumTypedDataValueRequest: EthereumTypedDataValueRequest;
|
|
4535
|
+
EthereumTypedDataValueAck: EthereumTypedDataValueAck;
|
|
4536
|
+
EthereumGetPublicKeyUKey: EthereumGetPublicKeyUKey;
|
|
4537
|
+
EthereumPublicKeyUKey: EthereumPublicKeyUKey;
|
|
4538
|
+
EthereumGetAddressUKey: EthereumGetAddressUKey;
|
|
4539
|
+
EthereumAddressUKey: EthereumAddressUKey;
|
|
4540
|
+
EthereumSignTxUKey: EthereumSignTxUKey;
|
|
4541
|
+
EthereumAccessListUKey: EthereumAccessListUKey;
|
|
4542
|
+
EthereumSignTxEIP1559UKey: EthereumSignTxEIP1559UKey;
|
|
4543
|
+
EthereumAuthorizationSignature: EthereumAuthorizationSignature;
|
|
4544
|
+
EthereumAuthorizationUKey: EthereumAuthorizationUKey;
|
|
4545
|
+
EthereumSignTxEIP7702UKey: EthereumSignTxEIP7702UKey;
|
|
4546
|
+
EthereumTxRequestUKey: EthereumTxRequestUKey;
|
|
4547
|
+
EthereumTxAckUKey: EthereumTxAckUKey;
|
|
4548
|
+
EthereumSignMessageUKey: EthereumSignMessageUKey;
|
|
4549
|
+
EthereumMessageSignatureUKey: EthereumMessageSignatureUKey;
|
|
4550
|
+
EthereumVerifyMessageUKey: EthereumVerifyMessageUKey;
|
|
4551
|
+
EthereumSignTypedHashUKey: EthereumSignTypedHashUKey;
|
|
4552
|
+
EthereumTypedDataSignatureUKey: EthereumTypedDataSignatureUKey;
|
|
4553
|
+
EthereumSignMessageEIP712: EthereumSignMessageEIP712;
|
|
4554
|
+
EthereumGetPublicKey: EthereumGetPublicKey;
|
|
4555
|
+
EthereumPublicKey: EthereumPublicKey;
|
|
4556
|
+
EthereumGetAddress: EthereumGetAddress;
|
|
4557
|
+
EthereumAddress: EthereumAddress;
|
|
4558
|
+
EthereumSignTx: EthereumSignTx;
|
|
4559
|
+
EthereumAccessList: EthereumAccessList;
|
|
4560
|
+
EthereumSignTxEIP1559: EthereumSignTxEIP1559;
|
|
4561
|
+
EthereumTxRequest: EthereumTxRequest;
|
|
4562
|
+
EthereumTxAck: EthereumTxAck;
|
|
4563
|
+
EthereumSignMessage: EthereumSignMessage;
|
|
4564
|
+
EthereumMessageSignature: EthereumMessageSignature;
|
|
4565
|
+
EthereumVerifyMessage: EthereumVerifyMessage;
|
|
4566
|
+
EthereumSignTypedHash: EthereumSignTypedHash;
|
|
4567
|
+
EthereumTypedDataSignature: EthereumTypedDataSignature;
|
|
4568
|
+
FilecoinGetAddress: FilecoinGetAddress;
|
|
4569
|
+
FilecoinAddress: FilecoinAddress;
|
|
4570
|
+
FilecoinSignTx: FilecoinSignTx;
|
|
4571
|
+
FilecoinSignedTx: FilecoinSignedTx;
|
|
4572
|
+
KaspaGetAddress: KaspaGetAddress;
|
|
4573
|
+
KaspaAddress: KaspaAddress;
|
|
4574
|
+
KaspaSignTx: KaspaSignTx;
|
|
4575
|
+
KaspaTxInputRequest: KaspaTxInputRequest;
|
|
4576
|
+
KaspaTxInputAck: KaspaTxInputAck;
|
|
4577
|
+
KaspaSignedTx: KaspaSignedTx;
|
|
4578
|
+
LnurlAuth: LnurlAuth;
|
|
4579
|
+
LnurlAuthResp: LnurlAuthResp;
|
|
4580
|
+
Initialize: Initialize;
|
|
4581
|
+
GetFeatures: GetFeatures;
|
|
4582
|
+
UkeyGetFeatures: UkeyGetFeatures;
|
|
4583
|
+
Features: Features;
|
|
4584
|
+
UkeyFeatures: UkeyFeatures;
|
|
4585
|
+
LockDevice: LockDevice;
|
|
4586
|
+
EndSession: EndSession;
|
|
4587
|
+
ApplySettings: ApplySettings;
|
|
4588
|
+
ApplyFlags: ApplyFlags;
|
|
4589
|
+
ChangePin: ChangePin;
|
|
4590
|
+
ChangeWipeCode: ChangeWipeCode;
|
|
4591
|
+
SdProtect: SdProtect;
|
|
4592
|
+
Ping: Ping;
|
|
4593
|
+
Cancel: Cancel;
|
|
4594
|
+
GetEntropy: GetEntropy;
|
|
4595
|
+
Entropy: Entropy;
|
|
4596
|
+
WipeDevice: WipeDevice;
|
|
4597
|
+
ResetDevice: ResetDevice;
|
|
4598
|
+
BackupDevice: BackupDevice;
|
|
4599
|
+
EntropyRequest: EntropyRequest;
|
|
4600
|
+
EntropyAck: EntropyAck;
|
|
4601
|
+
RecoveryDevice: RecoveryDevice;
|
|
4602
|
+
WordRequest: WordRequest;
|
|
4603
|
+
WordAck: WordAck;
|
|
4604
|
+
SetU2FCounter: SetU2FCounter;
|
|
4605
|
+
GetNextU2FCounter: GetNextU2FCounter;
|
|
4606
|
+
NextU2FCounter: NextU2FCounter;
|
|
4607
|
+
DoPreauthorized: DoPreauthorized;
|
|
4608
|
+
PreauthorizedRequest: PreauthorizedRequest;
|
|
4609
|
+
CancelAuthorization: CancelAuthorization;
|
|
4610
|
+
BixinSeedOperate: BixinSeedOperate;
|
|
4611
|
+
BixinMessageSE: BixinMessageSE;
|
|
4612
|
+
BixinOutMessageSE: BixinOutMessageSE;
|
|
4613
|
+
DeviceBackToBoot: DeviceBackToBoot;
|
|
4614
|
+
BixinBackupRequest: BixinBackupRequest;
|
|
4615
|
+
BixinBackupAck: BixinBackupAck;
|
|
4616
|
+
BixinRestoreRequest: BixinRestoreRequest;
|
|
4617
|
+
BixinRestoreAck: BixinRestoreAck;
|
|
4618
|
+
BixinVerifyDeviceRequest: BixinVerifyDeviceRequest;
|
|
4619
|
+
BixinVerifyDeviceAck: BixinVerifyDeviceAck;
|
|
4620
|
+
BixinWhiteListRequest: BixinWhiteListRequest;
|
|
4621
|
+
BixinWhiteListAck: BixinWhiteListAck;
|
|
4622
|
+
BixinLoadDevice: BixinLoadDevice;
|
|
4623
|
+
BixinBackupDevice: BixinBackupDevice;
|
|
4624
|
+
BixinBackupDeviceAck: BixinBackupDeviceAck;
|
|
4625
|
+
DeviceInfoSettings: DeviceInfoSettings;
|
|
4626
|
+
GetDeviceInfo: GetDeviceInfo;
|
|
4627
|
+
DeviceInfo: DeviceInfo;
|
|
4628
|
+
ReadSEPublicKey: ReadSEPublicKey;
|
|
4629
|
+
SEPublicKey: SEPublicKey;
|
|
4630
|
+
WriteSEPublicCert: WriteSEPublicCert;
|
|
4631
|
+
ReadSEPublicCert: ReadSEPublicCert;
|
|
4632
|
+
SEPublicCert: SEPublicCert;
|
|
4633
|
+
SpiFlashWrite: SpiFlashWrite;
|
|
4634
|
+
SpiFlashRead: SpiFlashRead;
|
|
4635
|
+
SpiFlashData: SpiFlashData;
|
|
4636
|
+
SESignMessage: SESignMessage;
|
|
4637
|
+
SEMessageSignature: SEMessageSignature;
|
|
4638
|
+
ResourceUpload: ResourceUpload;
|
|
4639
|
+
ZoomRequest: ZoomRequest;
|
|
4640
|
+
ResourceRequest: ResourceRequest;
|
|
4641
|
+
ResourceAck: ResourceAck;
|
|
4642
|
+
ResourceUpdate: ResourceUpdate;
|
|
4643
|
+
NFTWriteInfo: NFTWriteInfo;
|
|
4644
|
+
NFTWriteData: NFTWriteData;
|
|
4645
|
+
RebootToBootloader: RebootToBootloader;
|
|
4646
|
+
RebootToBoardloader: RebootToBoardloader;
|
|
4647
|
+
ListResDir: ListResDir;
|
|
4648
|
+
FileInfo: FileInfo;
|
|
4649
|
+
FileInfoList: FileInfoList;
|
|
4650
|
+
DeviceEraseSector: DeviceEraseSector;
|
|
4651
|
+
UnLockDevice: UnLockDevice;
|
|
4652
|
+
UnLockDeviceResponse: UnLockDeviceResponse;
|
|
4653
|
+
GetPassphraseState: GetPassphraseState;
|
|
4654
|
+
PassphraseState: PassphraseState;
|
|
4655
|
+
MoneroRctKeyPublic: MoneroRctKeyPublic;
|
|
4656
|
+
MoneroOutputEntry: MoneroOutputEntry;
|
|
4657
|
+
MoneroMultisigKLRki: MoneroMultisigKLRki;
|
|
4658
|
+
MoneroTransactionSourceEntry: MoneroTransactionSourceEntry;
|
|
4659
|
+
MoneroAccountPublicAddress: MoneroAccountPublicAddress;
|
|
4660
|
+
MoneroTransactionDestinationEntry: MoneroTransactionDestinationEntry;
|
|
4661
|
+
MoneroTransactionRsigData: MoneroTransactionRsigData;
|
|
4662
|
+
MoneroGetAddress: MoneroGetAddress;
|
|
4663
|
+
MoneroAddress: MoneroAddress;
|
|
4664
|
+
MoneroGetWatchKey: MoneroGetWatchKey;
|
|
4665
|
+
MoneroWatchKey: MoneroWatchKey;
|
|
4666
|
+
MoneroTransactionData: MoneroTransactionData;
|
|
4667
|
+
MoneroTransactionInitRequest: MoneroTransactionInitRequest;
|
|
4668
|
+
MoneroTransactionInitAck: MoneroTransactionInitAck;
|
|
4669
|
+
MoneroTransactionSetInputRequest: MoneroTransactionSetInputRequest;
|
|
4670
|
+
MoneroTransactionSetInputAck: MoneroTransactionSetInputAck;
|
|
4671
|
+
MoneroTransactionInputsPermutationRequest: MoneroTransactionInputsPermutationRequest;
|
|
4672
|
+
MoneroTransactionInputsPermutationAck: MoneroTransactionInputsPermutationAck;
|
|
4673
|
+
MoneroTransactionInputViniRequest: MoneroTransactionInputViniRequest;
|
|
4674
|
+
MoneroTransactionInputViniAck: MoneroTransactionInputViniAck;
|
|
4675
|
+
MoneroTransactionAllInputsSetRequest: MoneroTransactionAllInputsSetRequest;
|
|
4676
|
+
MoneroTransactionAllInputsSetAck: MoneroTransactionAllInputsSetAck;
|
|
4677
|
+
MoneroTransactionSetOutputRequest: MoneroTransactionSetOutputRequest;
|
|
4678
|
+
MoneroTransactionSetOutputAck: MoneroTransactionSetOutputAck;
|
|
4679
|
+
MoneroTransactionAllOutSetRequest: MoneroTransactionAllOutSetRequest;
|
|
4680
|
+
MoneroRingCtSig: MoneroRingCtSig;
|
|
4681
|
+
MoneroTransactionAllOutSetAck: MoneroTransactionAllOutSetAck;
|
|
4682
|
+
MoneroTransactionSignInputRequest: MoneroTransactionSignInputRequest;
|
|
4683
|
+
MoneroTransactionSignInputAck: MoneroTransactionSignInputAck;
|
|
4684
|
+
MoneroTransactionFinalRequest: MoneroTransactionFinalRequest;
|
|
4685
|
+
MoneroTransactionFinalAck: MoneroTransactionFinalAck;
|
|
4686
|
+
MoneroSubAddressIndicesList: MoneroSubAddressIndicesList;
|
|
4687
|
+
MoneroKeyImageExportInitRequest: MoneroKeyImageExportInitRequest;
|
|
4688
|
+
MoneroKeyImageExportInitAck: MoneroKeyImageExportInitAck;
|
|
4689
|
+
MoneroTransferDetails: MoneroTransferDetails;
|
|
4690
|
+
MoneroKeyImageSyncStepRequest: MoneroKeyImageSyncStepRequest;
|
|
4691
|
+
MoneroExportedKeyImage: MoneroExportedKeyImage;
|
|
4692
|
+
MoneroKeyImageSyncStepAck: MoneroKeyImageSyncStepAck;
|
|
4693
|
+
MoneroKeyImageSyncFinalRequest: MoneroKeyImageSyncFinalRequest;
|
|
4694
|
+
MoneroKeyImageSyncFinalAck: MoneroKeyImageSyncFinalAck;
|
|
4695
|
+
MoneroGetTxKeyRequest: MoneroGetTxKeyRequest;
|
|
4696
|
+
MoneroGetTxKeyAck: MoneroGetTxKeyAck;
|
|
4697
|
+
MoneroLiveRefreshStartRequest: MoneroLiveRefreshStartRequest;
|
|
4698
|
+
MoneroLiveRefreshStartAck: MoneroLiveRefreshStartAck;
|
|
4699
|
+
MoneroLiveRefreshStepRequest: MoneroLiveRefreshStepRequest;
|
|
4700
|
+
MoneroLiveRefreshStepAck: MoneroLiveRefreshStepAck;
|
|
4701
|
+
MoneroLiveRefreshFinalRequest: MoneroLiveRefreshFinalRequest;
|
|
4702
|
+
MoneroLiveRefreshFinalAck: MoneroLiveRefreshFinalAck;
|
|
4703
|
+
NearGetAddress: NearGetAddress;
|
|
4704
|
+
NearAddress: NearAddress;
|
|
4705
|
+
NearSignTx: NearSignTx;
|
|
4706
|
+
NearSignedTx: NearSignedTx;
|
|
4707
|
+
NEMGetAddress: NEMGetAddress;
|
|
4708
|
+
NEMAddress: NEMAddress;
|
|
4709
|
+
NEMTransactionCommon: NEMTransactionCommon;
|
|
4710
|
+
NEMMosaic: NEMMosaic;
|
|
4711
|
+
NEMTransfer: NEMTransfer;
|
|
4712
|
+
NEMProvisionNamespace: NEMProvisionNamespace;
|
|
4713
|
+
NEMMosaicDefinition: NEMMosaicDefinition;
|
|
4714
|
+
NEMMosaicCreation: NEMMosaicCreation;
|
|
4715
|
+
NEMMosaicSupplyChange: NEMMosaicSupplyChange;
|
|
4716
|
+
NEMCosignatoryModification: NEMCosignatoryModification;
|
|
4717
|
+
NEMAggregateModification: NEMAggregateModification;
|
|
4718
|
+
NEMImportanceTransfer: NEMImportanceTransfer;
|
|
4719
|
+
NEMSignTx: NEMSignTx;
|
|
4720
|
+
NEMSignedTx: NEMSignedTx;
|
|
4721
|
+
NEMDecryptMessage: NEMDecryptMessage;
|
|
4722
|
+
NEMDecryptedMessage: NEMDecryptedMessage;
|
|
4723
|
+
NeoGetAddress: NeoGetAddress;
|
|
4724
|
+
NeoAddress: NeoAddress;
|
|
4725
|
+
NeoSignTx: NeoSignTx;
|
|
4726
|
+
NeoSignedTx: NeoSignedTx;
|
|
4727
|
+
NervosGetAddress: NervosGetAddress;
|
|
4728
|
+
NervosAddress: NervosAddress;
|
|
4729
|
+
NervosSignTx: NervosSignTx;
|
|
4730
|
+
NervosSignedTx: NervosSignedTx;
|
|
4731
|
+
NervosTxRequest: NervosTxRequest;
|
|
4732
|
+
NervosTxAck: NervosTxAck;
|
|
4733
|
+
NexaGetAddress: NexaGetAddress;
|
|
4734
|
+
NexaAddress: NexaAddress;
|
|
4735
|
+
NexaSignTx: NexaSignTx;
|
|
4736
|
+
NexaTxInputRequest: NexaTxInputRequest;
|
|
4737
|
+
NexaTxInputAck: NexaTxInputAck;
|
|
4738
|
+
NexaSignedTx: NexaSignedTx;
|
|
4739
|
+
NostrGetPublicKey: NostrGetPublicKey;
|
|
4740
|
+
NostrPublicKey: NostrPublicKey;
|
|
4741
|
+
NostrSignEvent: NostrSignEvent;
|
|
4742
|
+
NostrSignedEvent: NostrSignedEvent;
|
|
4743
|
+
NostrSignSchnorr: NostrSignSchnorr;
|
|
4744
|
+
NostrSignedSchnorr: NostrSignedSchnorr;
|
|
4745
|
+
NostrEncryptMessage: NostrEncryptMessage;
|
|
4746
|
+
NostrEncryptedMessage: NostrEncryptedMessage;
|
|
4747
|
+
NostrDecryptMessage: NostrDecryptMessage;
|
|
4748
|
+
NostrDecryptedMessage: NostrDecryptedMessage;
|
|
4749
|
+
PolkadotGetAddress: PolkadotGetAddress;
|
|
4750
|
+
PolkadotAddress: PolkadotAddress;
|
|
4751
|
+
PolkadotSignTx: PolkadotSignTx;
|
|
4752
|
+
PolkadotSignedTx: PolkadotSignedTx;
|
|
4753
|
+
RippleGetAddress: RippleGetAddress;
|
|
4754
|
+
RippleAddress: RippleAddress;
|
|
4755
|
+
RipplePayment: RipplePayment;
|
|
4756
|
+
RippleSignTx: RippleSignTx;
|
|
4757
|
+
RippleSignedTx: RippleSignedTx;
|
|
4758
|
+
ScdoGetAddress: ScdoGetAddress;
|
|
4759
|
+
ScdoAddress: ScdoAddress;
|
|
4760
|
+
ScdoSignTx: ScdoSignTx;
|
|
4761
|
+
ScdoSignedTx: ScdoSignedTx;
|
|
4762
|
+
ScdoTxAck: ScdoTxAck;
|
|
4763
|
+
ScdoSignMessage: ScdoSignMessage;
|
|
4764
|
+
ScdoSignedMessage: ScdoSignedMessage;
|
|
4765
|
+
SolanaGetAddress: SolanaGetAddress;
|
|
4766
|
+
SolanaAddress: SolanaAddress;
|
|
4767
|
+
SolanaSignTx: SolanaSignTx;
|
|
4768
|
+
SolanaSignedTx: SolanaSignedTx;
|
|
4769
|
+
SolanaSignOffChainMessage: SolanaSignOffChainMessage;
|
|
4770
|
+
SolanaSignUnsafeMessage: SolanaSignUnsafeMessage;
|
|
4771
|
+
SolanaMessageSignature: SolanaMessageSignature;
|
|
4772
|
+
StarcoinGetAddress: StarcoinGetAddress;
|
|
4773
|
+
StarcoinAddress: StarcoinAddress;
|
|
4774
|
+
StarcoinGetPublicKey: StarcoinGetPublicKey;
|
|
4775
|
+
StarcoinPublicKey: StarcoinPublicKey;
|
|
4776
|
+
StarcoinSignTx: StarcoinSignTx;
|
|
4777
|
+
StarcoinSignedTx: StarcoinSignedTx;
|
|
4778
|
+
StarcoinSignMessage: StarcoinSignMessage;
|
|
4779
|
+
StarcoinMessageSignature: StarcoinMessageSignature;
|
|
4780
|
+
StarcoinVerifyMessage: StarcoinVerifyMessage;
|
|
4781
|
+
StellarAsset: StellarAsset;
|
|
4782
|
+
StellarGetAddress: StellarGetAddress;
|
|
4783
|
+
StellarAddress: StellarAddress;
|
|
4784
|
+
StellarSignTx: StellarSignTx;
|
|
4785
|
+
StellarTxOpRequest: StellarTxOpRequest;
|
|
4786
|
+
StellarPaymentOp: StellarPaymentOp;
|
|
4787
|
+
StellarCreateAccountOp: StellarCreateAccountOp;
|
|
4788
|
+
StellarPathPaymentStrictReceiveOp: StellarPathPaymentStrictReceiveOp;
|
|
4789
|
+
StellarPathPaymentStrictSendOp: StellarPathPaymentStrictSendOp;
|
|
4790
|
+
StellarManageSellOfferOp: StellarManageSellOfferOp;
|
|
4791
|
+
StellarManageBuyOfferOp: StellarManageBuyOfferOp;
|
|
4792
|
+
StellarCreatePassiveSellOfferOp: StellarCreatePassiveSellOfferOp;
|
|
4793
|
+
StellarSetOptionsOp: StellarSetOptionsOp;
|
|
4794
|
+
StellarChangeTrustOp: StellarChangeTrustOp;
|
|
4795
|
+
StellarAllowTrustOp: StellarAllowTrustOp;
|
|
4796
|
+
StellarAccountMergeOp: StellarAccountMergeOp;
|
|
4797
|
+
StellarManageDataOp: StellarManageDataOp;
|
|
4798
|
+
StellarBumpSequenceOp: StellarBumpSequenceOp;
|
|
4799
|
+
StellarSignedTx: StellarSignedTx;
|
|
4800
|
+
SuiGetAddress: SuiGetAddress;
|
|
4801
|
+
SuiAddress: SuiAddress;
|
|
4802
|
+
SuiSignTx: SuiSignTx;
|
|
4803
|
+
SuiSignedTx: SuiSignedTx;
|
|
4804
|
+
SuiTxRequest: SuiTxRequest;
|
|
4805
|
+
SuiTxAck: SuiTxAck;
|
|
4806
|
+
SuiSignMessage: SuiSignMessage;
|
|
4807
|
+
SuiMessageSignature: SuiMessageSignature;
|
|
4808
|
+
TezosGetAddress: TezosGetAddress;
|
|
4809
|
+
TezosAddress: TezosAddress;
|
|
4810
|
+
TezosGetPublicKey: TezosGetPublicKey;
|
|
4811
|
+
TezosPublicKey: TezosPublicKey;
|
|
4812
|
+
TezosContractID: TezosContractID;
|
|
4813
|
+
TezosRevealOp: TezosRevealOp;
|
|
4814
|
+
TezosManagerTransfer: TezosManagerTransfer;
|
|
4815
|
+
TezosParametersManager: TezosParametersManager;
|
|
4816
|
+
TezosTransactionOp: TezosTransactionOp;
|
|
4817
|
+
TezosOriginationOp: TezosOriginationOp;
|
|
4818
|
+
TezosDelegationOp: TezosDelegationOp;
|
|
4819
|
+
TezosProposalOp: TezosProposalOp;
|
|
4820
|
+
TezosBallotOp: TezosBallotOp;
|
|
4821
|
+
TezosSignTx: TezosSignTx;
|
|
4822
|
+
TezosSignedTx: TezosSignedTx;
|
|
4823
|
+
TonGetAddress: TonGetAddress;
|
|
4824
|
+
TonAddress: TonAddress;
|
|
4825
|
+
TonSignMessage: TonSignMessage;
|
|
4826
|
+
TonTxAck: TonTxAck;
|
|
4827
|
+
TonSignedMessage: TonSignedMessage;
|
|
4828
|
+
TonSignProof: TonSignProof;
|
|
4829
|
+
TonSignedProof: TonSignedProof;
|
|
4830
|
+
TronGetAddress: TronGetAddress;
|
|
4831
|
+
TronAddress: TronAddress;
|
|
4832
|
+
TronTransferContract: TronTransferContract;
|
|
4833
|
+
TronTriggerSmartContract: TronTriggerSmartContract;
|
|
4834
|
+
TronFreezeBalanceContract: TronFreezeBalanceContract;
|
|
4835
|
+
TronUnfreezeBalanceContract: TronUnfreezeBalanceContract;
|
|
4836
|
+
TronWithdrawBalanceContract: TronWithdrawBalanceContract;
|
|
4837
|
+
TronFreezeBalanceV2Contract: TronFreezeBalanceV2Contract;
|
|
4838
|
+
TronUnfreezeBalanceV2Contract: TronUnfreezeBalanceV2Contract;
|
|
4839
|
+
TronWithdrawExpireUnfreezeContract: TronWithdrawExpireUnfreezeContract;
|
|
4840
|
+
TronDelegateResourceContract: TronDelegateResourceContract;
|
|
4841
|
+
TronUnDelegateResourceContract: TronUnDelegateResourceContract;
|
|
4842
|
+
Vote: Vote;
|
|
4843
|
+
TronVoteWitnessContract: TronVoteWitnessContract;
|
|
4844
|
+
TronCancelAllUnfreezeV2Contract: TronCancelAllUnfreezeV2Contract;
|
|
4845
|
+
TronContract: TronContract;
|
|
4846
|
+
TronSignTx: TronSignTx;
|
|
4847
|
+
TronSignedTx: TronSignedTx;
|
|
4848
|
+
TronSignMessage: TronSignMessage;
|
|
4849
|
+
TronMessageSignature: TronMessageSignature;
|
|
4850
|
+
facotry: facotry;
|
|
4851
|
+
};
|
|
4852
|
+
|
|
4853
|
+
export type MessageKey = keyof MessageType;
|
|
4854
|
+
|
|
4855
|
+
export type MessageResponse<T extends MessageKey> = {
|
|
4856
|
+
type: T;
|
|
4857
|
+
message: MessageType[T];
|
|
4858
|
+
};
|
|
4859
|
+
|
|
4860
|
+
export type TypedCall = <T extends MessageKey, R extends MessageKey>(
|
|
4861
|
+
type: T,
|
|
4862
|
+
resType: R,
|
|
4863
|
+
message?: MessageType[T]
|
|
4864
|
+
) => Promise<MessageResponse<R>>;
|