@onekeyfe/hd-transport 1.2.0-alpha.9 → 1.2.0-alpha.91
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/__tests__/messages.test.js +169 -11
- package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
- package/__tests__/protocol-v2-link-manager.test.js +120 -9
- package/__tests__/protocol-v2-usb-transport-base.test.js +36 -2
- package/__tests__/protocol-v2.test.js +438 -64
- package/__tests__/transport-log.test.js +79 -0
- package/dist/constants.d.ts +3 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +707 -242
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +597 -296
- package/dist/protocols/index.d.ts +13 -6
- package/dist/protocols/index.d.ts.map +1 -1
- package/dist/protocols/v2/ble-frame-writer.d.ts +15 -0
- package/dist/protocols/v2/ble-frame-writer.d.ts.map +1 -0
- package/dist/protocols/v2/decode.d.ts +12 -2
- package/dist/protocols/v2/decode.d.ts.map +1 -1
- package/dist/protocols/v2/encode.d.ts +2 -3
- package/dist/protocols/v2/encode.d.ts.map +1 -1
- package/dist/protocols/v2/errors.d.ts +8 -0
- package/dist/protocols/v2/errors.d.ts.map +1 -0
- package/dist/protocols/v2/frame-assembler.d.ts.map +1 -1
- package/dist/protocols/v2/index.d.ts +2 -1
- package/dist/protocols/v2/index.d.ts.map +1 -1
- package/dist/protocols/v2/link-manager.d.ts +4 -0
- package/dist/protocols/v2/link-manager.d.ts.map +1 -1
- package/dist/protocols/v2/session.d.ts +10 -4
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/protocols/v2/usb-transport-base.d.ts +1 -0
- package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -1
- package/dist/serialization/protobuf/decode.d.ts.map +1 -1
- package/dist/serialization/protobuf/encode.d.ts.map +1 -1
- package/dist/types/messages.d.ts +370 -144
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +20 -3
- package/dist/types/transport.d.ts.map +1 -1
- package/dist/utils/transportLog.d.ts +9 -0
- package/dist/utils/transportLog.d.ts.map +1 -0
- package/messages-protocol-v2.json +1113 -547
- package/package.json +3 -3
- package/scripts/protobuf-build.sh +85 -253
- package/scripts/protobuf-patches/index.js +1 -0
- package/scripts/protobuf-types.js +19 -1
- package/src/constants.ts +30 -16
- package/src/index.ts +5 -1
- package/src/protocols/index.ts +37 -40
- package/src/protocols/v2/ble-frame-writer.ts +77 -0
- package/src/protocols/v2/crc8.ts +1 -1
- package/src/protocols/v2/decode.ts +50 -35
- package/src/protocols/v2/encode.ts +2 -28
- package/src/protocols/v2/errors.ts +25 -0
- package/src/protocols/v2/frame-assembler.ts +6 -4
- package/src/protocols/v2/index.ts +2 -1
- package/src/protocols/v2/link-manager.ts +54 -5
- package/src/protocols/v2/session.ts +151 -200
- package/src/protocols/v2/usb-transport-base.ts +29 -10
- package/src/serialization/protobuf/decode.ts +4 -1
- package/src/serialization/protobuf/encode.ts +5 -1
- package/src/types/messages.ts +450 -185
- package/src/types/transport.ts +28 -3
- package/src/utils/transportLog.ts +102 -0
- package/dist/protocols/v2/debug.d.ts +0 -13
- package/dist/protocols/v2/debug.d.ts.map +0 -1
- package/src/protocols/v2/debug.ts +0 -26
package/dist/index.d.ts
CHANGED
|
@@ -63,32 +63,81 @@ declare const PROTO_DATA_TYPE_PACKET = 0;
|
|
|
63
63
|
declare const PROTO_DATA_TYPE_ACK = 1;
|
|
64
64
|
|
|
65
65
|
declare const CRC8_TABLE: Uint8Array;
|
|
66
|
+
/**
|
|
67
|
+
* Compute CRC-8 over the first len bytes using the firmware-compatible initial value.
|
|
68
|
+
*/
|
|
66
69
|
declare function crc8(data: Uint8Array, len: number): number;
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
type ProtocolV2FrameDebugOptions = {
|
|
72
|
-
logger?: ProtocolV2DebugLogger;
|
|
73
|
-
logPrefix?: string;
|
|
74
|
-
context?: string;
|
|
75
|
-
messageName?: string;
|
|
76
|
-
messageTypeId?: number;
|
|
77
|
-
pbPayloadLength?: number;
|
|
78
|
-
};
|
|
79
|
-
declare function logProtocolV2Debug(options: ProtocolV2FrameDebugOptions | undefined, stage: string, details: Record<string, unknown>): void;
|
|
80
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Advance a Protocol V2 sequence counter: 1-255, wraps around skipping 0.
|
|
73
|
+
*/
|
|
81
74
|
declare function nextProtoSeq(current: number): number;
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Build a raw Protocol V2 frame (0x5A framing).
|
|
77
|
+
*
|
|
78
|
+
* Frame layout (PROTO_HEAD_CRC_SIZE = 8 overhead bytes):
|
|
79
|
+
* [0] SOF = 0x5A
|
|
80
|
+
* [1] frameLen low byte
|
|
81
|
+
* [2] frameLen high byte
|
|
82
|
+
* [3] CRC8 of bytes 0-2 (pre-header CRC)
|
|
83
|
+
* [4] router
|
|
84
|
+
* [5] attr = ((packetSrc & 0x0F) << 2) | dataType
|
|
85
|
+
* [6] seq (1-255, wraps skipping 0)
|
|
86
|
+
* [7..N-2] payload
|
|
87
|
+
* [N-1] CRC8 of bytes 0 to N-2 (frame CRC)
|
|
88
|
+
*/
|
|
89
|
+
declare function encodeFrame(payload: Uint8Array | null, packetSrc?: number, router?: number, seq?: number): Uint8Array;
|
|
90
|
+
/**
|
|
91
|
+
* Build a Protocol V2 frame carrying a protobuf message.
|
|
92
|
+
*
|
|
93
|
+
* Payload layout:
|
|
94
|
+
* [0-1] messageTypeId as little-endian uint16
|
|
95
|
+
* [2..] protobuf-encoded message bytes
|
|
96
|
+
*/
|
|
97
|
+
declare function encodeProtobufFrame(messageTypeId: number, pbPayload: Uint8Array, packetSrc?: number, router?: number, seq?: number): Uint8Array;
|
|
84
98
|
|
|
85
99
|
interface ProtoV2Frame {
|
|
100
|
+
/** Little-endian message type ID */
|
|
86
101
|
messageTypeId: number;
|
|
102
|
+
/** Raw protobuf-encoded payload (bytes after the 2-byte messageTypeId) */
|
|
87
103
|
pbPayload: Uint8Array;
|
|
104
|
+
/** Sequence number from the frame header */
|
|
88
105
|
seq: number;
|
|
106
|
+
/** Routing channel from the frame header */
|
|
107
|
+
router: number;
|
|
108
|
+
/** Packet source from the frame header */
|
|
109
|
+
packetSrc: number;
|
|
110
|
+
/** Packet or ACK discriminator from the frame header */
|
|
111
|
+
dataType: number;
|
|
89
112
|
}
|
|
113
|
+
type ProtoV2FrameHeader = {
|
|
114
|
+
frameLen: number;
|
|
115
|
+
router: number;
|
|
116
|
+
packetSrc: number;
|
|
117
|
+
dataType: number;
|
|
118
|
+
seq: number;
|
|
119
|
+
};
|
|
120
|
+
declare function inspectFrameHeader(data: Uint8Array): ProtoV2FrameHeader;
|
|
90
121
|
declare function isAckFrame(data: Uint8Array): boolean;
|
|
91
|
-
|
|
122
|
+
/**
|
|
123
|
+
* Parse and validate a Protocol V2 response frame.
|
|
124
|
+
*
|
|
125
|
+
* Validates:
|
|
126
|
+
* - SOF byte (0x5A)
|
|
127
|
+
* - Header CRC (bytes 0-2)
|
|
128
|
+
* - Frame CRC (full frame except last byte)
|
|
129
|
+
*
|
|
130
|
+
* Returns the decoded messageTypeId, raw protobuf payload, and sequence number.
|
|
131
|
+
*/
|
|
132
|
+
declare function decodeFrame(data: Uint8Array): ProtoV2Frame;
|
|
133
|
+
|
|
134
|
+
type ProtocolV2LinkErrorCode = 'response-timeout' | 'io' | 'generation' | 'router' | 'packet-source' | 'ack-sequence' | 'response-sequence' | 'frame';
|
|
135
|
+
declare class ProtocolV2LinkError extends Error {
|
|
136
|
+
readonly code: ProtocolV2LinkErrorCode;
|
|
137
|
+
readonly cause?: unknown;
|
|
138
|
+
constructor(code: ProtocolV2LinkErrorCode, message: string, cause?: unknown);
|
|
139
|
+
}
|
|
140
|
+
declare const isProtocolV2LinkError: (error: unknown) => error is ProtocolV2LinkError;
|
|
92
141
|
|
|
93
142
|
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
94
143
|
declare class ProtocolV2FrameAssembler {
|
|
@@ -97,11 +146,31 @@ declare class ProtocolV2FrameAssembler {
|
|
|
97
146
|
constructor(maxFrameBytes?: number);
|
|
98
147
|
reset(): void;
|
|
99
148
|
push(chunk: Uint8Array): Uint8Array | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Append a chunk (optional) and extract every complete frame currently
|
|
151
|
+
* buffered. Same validation/throw semantics as push(); push() stays
|
|
152
|
+
* backward compatible for callers that drain one frame at a time.
|
|
153
|
+
*/
|
|
100
154
|
drain(chunk?: Uint8Array): Uint8Array[];
|
|
101
155
|
private append;
|
|
102
156
|
private extractFrame;
|
|
103
157
|
}
|
|
104
158
|
|
|
159
|
+
type ProtocolV2BleFrameWriterOptions = {
|
|
160
|
+
frame: Uint8Array;
|
|
161
|
+
packetCapacity: number;
|
|
162
|
+
writePacket: (packet: Uint8Array, packetIndex: number) => Promise<void>;
|
|
163
|
+
assertActive?: () => void;
|
|
164
|
+
signal?: AbortSignal;
|
|
165
|
+
abortMessage?: string;
|
|
166
|
+
initialDelayMs?: number;
|
|
167
|
+
burstSize?: number;
|
|
168
|
+
burstPauseMs?: number;
|
|
169
|
+
flushDelayMs?: number;
|
|
170
|
+
wait?: (timeoutMs: number) => Promise<void>;
|
|
171
|
+
};
|
|
172
|
+
declare function writeProtocolV2BleFrame({ frame, packetCapacity, writePacket, assertActive, signal, abortMessage, initialDelayMs, burstSize, burstPauseMs, flushDelayMs, wait, }: ProtocolV2BleFrameWriterOptions): Promise<void>;
|
|
173
|
+
|
|
105
174
|
declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
|
|
106
175
|
declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
|
|
107
176
|
declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
|
|
@@ -111,18 +180,23 @@ declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PAC
|
|
|
111
180
|
declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
|
|
112
181
|
declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
|
|
113
182
|
declare const protocolV2Codec_crc8: typeof crc8;
|
|
114
|
-
type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
|
|
115
|
-
type protocolV2Codec_ProtocolV2FrameDebugOptions = ProtocolV2FrameDebugOptions;
|
|
116
|
-
declare const protocolV2Codec_logProtocolV2Debug: typeof logProtocolV2Debug;
|
|
117
183
|
declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
|
|
118
184
|
declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
|
|
119
185
|
declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
|
|
120
186
|
type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
|
|
187
|
+
type protocolV2Codec_ProtoV2FrameHeader = ProtoV2FrameHeader;
|
|
188
|
+
declare const protocolV2Codec_inspectFrameHeader: typeof inspectFrameHeader;
|
|
121
189
|
declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
|
|
122
190
|
declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
|
|
191
|
+
type protocolV2Codec_ProtocolV2LinkErrorCode = ProtocolV2LinkErrorCode;
|
|
192
|
+
type protocolV2Codec_ProtocolV2LinkError = ProtocolV2LinkError;
|
|
193
|
+
declare const protocolV2Codec_ProtocolV2LinkError: typeof ProtocolV2LinkError;
|
|
194
|
+
declare const protocolV2Codec_isProtocolV2LinkError: typeof isProtocolV2LinkError;
|
|
123
195
|
declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
|
|
124
196
|
type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
|
|
125
197
|
declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
198
|
+
type protocolV2Codec_ProtocolV2BleFrameWriterOptions = ProtocolV2BleFrameWriterOptions;
|
|
199
|
+
declare const protocolV2Codec_writeProtocolV2BleFrame: typeof writeProtocolV2BleFrame;
|
|
126
200
|
declare namespace protocolV2Codec {
|
|
127
201
|
export {
|
|
128
202
|
protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
|
|
@@ -134,17 +208,21 @@ declare namespace protocolV2Codec {
|
|
|
134
208
|
protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
|
|
135
209
|
protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
|
|
136
210
|
protocolV2Codec_crc8 as crc8,
|
|
137
|
-
protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
|
|
138
|
-
protocolV2Codec_ProtocolV2FrameDebugOptions as ProtocolV2FrameDebugOptions,
|
|
139
|
-
protocolV2Codec_logProtocolV2Debug as logProtocolV2Debug,
|
|
140
211
|
protocolV2Codec_nextProtoSeq as nextProtoSeq,
|
|
141
212
|
protocolV2Codec_encodeFrame as encodeFrame,
|
|
142
213
|
protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
|
|
143
214
|
protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
|
|
215
|
+
protocolV2Codec_ProtoV2FrameHeader as ProtoV2FrameHeader,
|
|
216
|
+
protocolV2Codec_inspectFrameHeader as inspectFrameHeader,
|
|
144
217
|
protocolV2Codec_isAckFrame as isAckFrame,
|
|
145
218
|
protocolV2Codec_decodeFrame as decodeFrame,
|
|
219
|
+
protocolV2Codec_ProtocolV2LinkErrorCode as ProtocolV2LinkErrorCode,
|
|
220
|
+
protocolV2Codec_ProtocolV2LinkError as ProtocolV2LinkError,
|
|
221
|
+
protocolV2Codec_isProtocolV2LinkError as isProtocolV2LinkError,
|
|
146
222
|
protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
|
|
147
223
|
protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
|
|
224
|
+
protocolV2Codec_ProtocolV2BleFrameWriterOptions as ProtocolV2BleFrameWriterOptions,
|
|
225
|
+
protocolV2Codec_writeProtocolV2BleFrame as writeProtocolV2BleFrame,
|
|
148
226
|
};
|
|
149
227
|
}
|
|
150
228
|
|
|
@@ -156,10 +234,8 @@ type ProtocolV2Schemas$1 = {
|
|
|
156
234
|
type ProtocolV2FrameOptions = {
|
|
157
235
|
packetSrc?: number;
|
|
158
236
|
router?: number;
|
|
237
|
+
/** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
|
|
159
238
|
seq?: number;
|
|
160
|
-
logger?: ProtocolV2DebugLogger;
|
|
161
|
-
logPrefix?: string;
|
|
162
|
-
context?: string;
|
|
163
239
|
};
|
|
164
240
|
declare const ProtocolV1: {
|
|
165
241
|
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
@@ -174,8 +250,19 @@ declare const ProtocolV1: {
|
|
|
174
250
|
};
|
|
175
251
|
declare const ProtocolV2: {
|
|
176
252
|
isAckFrame: typeof isAckFrame;
|
|
253
|
+
inspectFrameHeader: typeof inspectFrameHeader;
|
|
254
|
+
inspectFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
255
|
+
messageName: string;
|
|
256
|
+
messageTypeId: number;
|
|
257
|
+
pbPayload: Uint8Array;
|
|
258
|
+
seq: number;
|
|
259
|
+
router: number;
|
|
260
|
+
packetSrc: number;
|
|
261
|
+
dataType: number;
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
177
264
|
encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
|
|
178
|
-
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array
|
|
265
|
+
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
179
266
|
message: {
|
|
180
267
|
[key: string]: any;
|
|
181
268
|
};
|
|
@@ -187,6 +274,14 @@ declare const ProtocolV2: {
|
|
|
187
274
|
};
|
|
188
275
|
};
|
|
189
276
|
|
|
277
|
+
declare const TRANSPORT_EVENT: {
|
|
278
|
+
readonly DEVICE_DISCONNECT: "transport-device-disconnect";
|
|
279
|
+
};
|
|
280
|
+
type TransportDeviceDisconnectEvent = {
|
|
281
|
+
id: string;
|
|
282
|
+
connectId: string;
|
|
283
|
+
name: string | null;
|
|
284
|
+
};
|
|
190
285
|
type ProtocolType = 'V1' | 'V2';
|
|
191
286
|
type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
|
|
192
287
|
type OneKeyUsbDeviceInfo = {
|
|
@@ -213,23 +308,37 @@ type AcquireInput = {
|
|
|
213
308
|
uuid?: string;
|
|
214
309
|
forceCleanRunPromise?: boolean;
|
|
215
310
|
expectedProtocol?: ProtocolType;
|
|
311
|
+
protocolHint?: ProtocolType;
|
|
216
312
|
};
|
|
217
313
|
type MessageFromOneKey = {
|
|
218
314
|
type: string;
|
|
219
315
|
message: Record<string, any>;
|
|
220
316
|
};
|
|
317
|
+
type TransportWriteMetrics = {
|
|
318
|
+
elapsedMs: number;
|
|
319
|
+
frameBytes: number;
|
|
320
|
+
};
|
|
221
321
|
type TransportCallOptions = {
|
|
222
322
|
timeoutMs?: number;
|
|
223
323
|
expectedTypes?: string[];
|
|
224
324
|
intermediateTypes?: string[];
|
|
225
325
|
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
326
|
+
/** Called after the complete request frame has been submitted to the transport. */
|
|
327
|
+
onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
|
|
328
|
+
/** Prefer acknowledged BLE characteristic writes for this call when supported. */
|
|
329
|
+
writeWithResponse?: boolean;
|
|
226
330
|
};
|
|
227
331
|
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
228
332
|
type Transport = {
|
|
229
333
|
enumerate(): Promise<Array<OneKeyDeviceInfo>>;
|
|
230
334
|
listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
|
|
231
335
|
acquire(input: AcquireInput): Promise<string>;
|
|
232
|
-
|
|
336
|
+
/**
|
|
337
|
+
* `keepSession` tells a transport that the caller intends to keep using this
|
|
338
|
+
* device across calls (firmware update, batched signing). Transports that
|
|
339
|
+
* hold the link open may use it to pick a longer idle window; the rest ignore it.
|
|
340
|
+
*/
|
|
341
|
+
release(session: string, onclose: boolean, keepSession?: boolean): Promise<void>;
|
|
233
342
|
configure(signedData: JSON | string): Promise<void>;
|
|
234
343
|
configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
|
|
235
344
|
call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
@@ -240,7 +349,7 @@ type Transport = {
|
|
|
240
349
|
getProtocolType: (path: string) => ProtocolType | undefined;
|
|
241
350
|
promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
|
|
242
351
|
init: ITransportInitFn;
|
|
243
|
-
stop(): void
|
|
352
|
+
stop(): void | Promise<void>;
|
|
244
353
|
configured: boolean;
|
|
245
354
|
version: string;
|
|
246
355
|
name: string;
|
|
@@ -253,7 +362,9 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
|
|
|
253
362
|
};
|
|
254
363
|
type LowlevelTransportSharedPlugin = {
|
|
255
364
|
enumerate: () => Promise<LowLevelDevice[]>;
|
|
256
|
-
send: (uuid: string, data: string
|
|
365
|
+
send: (uuid: string, data: string, options?: {
|
|
366
|
+
withoutResponse?: boolean;
|
|
367
|
+
}) => Promise<void>;
|
|
257
368
|
receive: (uuid?: string) => Promise<string>;
|
|
258
369
|
connect: (uuid: string) => Promise<void>;
|
|
259
370
|
disconnect: (uuid: string) => Promise<void>;
|
|
@@ -1910,11 +2021,17 @@ type KaspaAddress = {
|
|
|
1910
2021
|
};
|
|
1911
2022
|
type KaspaSignTx = {
|
|
1912
2023
|
address_n: number[];
|
|
1913
|
-
raw_message
|
|
2024
|
+
raw_message?: string;
|
|
1914
2025
|
scheme?: string;
|
|
1915
2026
|
prefix?: string;
|
|
1916
2027
|
input_count?: number;
|
|
1917
2028
|
use_tweak?: boolean;
|
|
2029
|
+
output_count?: number;
|
|
2030
|
+
version?: number;
|
|
2031
|
+
lock_time?: number;
|
|
2032
|
+
subnetwork_id?: string;
|
|
2033
|
+
gas?: number;
|
|
2034
|
+
payload_length?: number;
|
|
1918
2035
|
};
|
|
1919
2036
|
type KaspaTxInputRequest = {
|
|
1920
2037
|
request_index: number;
|
|
@@ -1924,6 +2041,77 @@ type KaspaTxInputAck = {
|
|
|
1924
2041
|
address_n: number[];
|
|
1925
2042
|
raw_message: string;
|
|
1926
2043
|
};
|
|
2044
|
+
type KaspaOutpoint = {
|
|
2045
|
+
tx_id: string;
|
|
2046
|
+
index: number;
|
|
2047
|
+
};
|
|
2048
|
+
declare enum Enum_KaspaInputScriptType {
|
|
2049
|
+
KASPA_SPEND_P2PK_SCHNORR = 0,
|
|
2050
|
+
KASPA_SPEND_P2PK_ECDSA = 1
|
|
2051
|
+
}
|
|
2052
|
+
type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
|
|
2053
|
+
declare enum Enum_KaspaOutputScriptType {
|
|
2054
|
+
KASPA_PAYTOADDRESS = 0,
|
|
2055
|
+
KASPA_PAYTOCHANGE = 1
|
|
2056
|
+
}
|
|
2057
|
+
type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
|
|
2058
|
+
declare enum Enum_KaspaRequestType {
|
|
2059
|
+
KASPA_TX_INPUT = 0,
|
|
2060
|
+
KASPA_TX_OUTPUT = 1,
|
|
2061
|
+
KASPA_TX_PAYLOAD = 2,
|
|
2062
|
+
KASPA_TX_FINISHED = 3,
|
|
2063
|
+
KASPA_TX_PREV_META = 4
|
|
2064
|
+
}
|
|
2065
|
+
type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
|
|
2066
|
+
type KaspaTxRequestSignature = {
|
|
2067
|
+
signature_index: number;
|
|
2068
|
+
signature: string;
|
|
2069
|
+
};
|
|
2070
|
+
type KaspaTxRequest = {
|
|
2071
|
+
request_type: KaspaRequestType;
|
|
2072
|
+
request_index?: number;
|
|
2073
|
+
signature?: KaspaTxRequestSignature;
|
|
2074
|
+
request_payload_length?: number;
|
|
2075
|
+
prev_tx_id?: string;
|
|
2076
|
+
};
|
|
2077
|
+
type KaspaTxAckInput = {
|
|
2078
|
+
address_n: number[];
|
|
2079
|
+
previous_outpoint: KaspaOutpoint;
|
|
2080
|
+
amount: UintType;
|
|
2081
|
+
sequence: number;
|
|
2082
|
+
sig_op_count: number;
|
|
2083
|
+
script_type?: KaspaInputScriptType;
|
|
2084
|
+
use_tweak?: boolean;
|
|
2085
|
+
};
|
|
2086
|
+
type KaspaTxAckOutput = {
|
|
2087
|
+
script_type?: KaspaOutputScriptType;
|
|
2088
|
+
amount: UintType;
|
|
2089
|
+
address_n: number[];
|
|
2090
|
+
address?: string;
|
|
2091
|
+
scheme?: string;
|
|
2092
|
+
use_tweak?: boolean;
|
|
2093
|
+
};
|
|
2094
|
+
type KaspaTxAckPayloadChunk = {
|
|
2095
|
+
payload_chunk: string;
|
|
2096
|
+
};
|
|
2097
|
+
type KaspaTxAckPrevMeta = {
|
|
2098
|
+
version: number;
|
|
2099
|
+
input_count: number;
|
|
2100
|
+
output_count: number;
|
|
2101
|
+
lock_time: number;
|
|
2102
|
+
subnetwork_id: string;
|
|
2103
|
+
gas: number;
|
|
2104
|
+
payload_length: number;
|
|
2105
|
+
};
|
|
2106
|
+
type KaspaTxAckPrevInput = {
|
|
2107
|
+
previous_outpoint: KaspaOutpoint;
|
|
2108
|
+
sequence: number;
|
|
2109
|
+
};
|
|
2110
|
+
type KaspaTxAckPrevOutput = {
|
|
2111
|
+
amount: UintType;
|
|
2112
|
+
script_version: number;
|
|
2113
|
+
script_public_key: string;
|
|
2114
|
+
};
|
|
1927
2115
|
type KaspaSignedTx = {
|
|
1928
2116
|
signature: string;
|
|
1929
2117
|
};
|
|
@@ -1950,7 +2138,7 @@ declare enum Enum_SafetyCheckLevel {
|
|
|
1950
2138
|
PromptAlways = 1,
|
|
1951
2139
|
PromptTemporarily = 2
|
|
1952
2140
|
}
|
|
1953
|
-
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
|
|
2141
|
+
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
|
|
1954
2142
|
type Initialize = {
|
|
1955
2143
|
session_id?: string;
|
|
1956
2144
|
_skip_passphrase?: boolean;
|
|
@@ -2089,6 +2277,19 @@ type Features = {
|
|
|
2089
2277
|
onekey_se04_state?: string | null;
|
|
2090
2278
|
attach_to_pin_user?: boolean;
|
|
2091
2279
|
unlocked_attach_pin?: boolean;
|
|
2280
|
+
coprocessor_bt_name?: string;
|
|
2281
|
+
coprocessor_version?: string;
|
|
2282
|
+
coprocessor_bt_enable?: boolean;
|
|
2283
|
+
romloader_version?: string;
|
|
2284
|
+
onekey_romloader_version?: string;
|
|
2285
|
+
onekey_romloader_hash?: string;
|
|
2286
|
+
onekey_bootloader_version?: string;
|
|
2287
|
+
onekey_bootloader_hash?: string;
|
|
2288
|
+
onekey_bootloader_build_id?: string;
|
|
2289
|
+
onekey_coprocessor_bt_name?: string;
|
|
2290
|
+
onekey_coprocessor_version?: string;
|
|
2291
|
+
onekey_coprocessor_build_id?: string;
|
|
2292
|
+
onekey_coprocessor_hash?: string;
|
|
2092
2293
|
};
|
|
2093
2294
|
type OnekeyFeatures = {
|
|
2094
2295
|
onekey_device_type?: OneKeyDeviceType;
|
|
@@ -2440,8 +2641,6 @@ type UnLockDeviceResponse = {
|
|
|
2440
2641
|
};
|
|
2441
2642
|
type GetPassphraseState = {
|
|
2442
2643
|
passphrase_state?: string;
|
|
2443
|
-
_only_main_pin?: boolean;
|
|
2444
|
-
allow_create_attach_pin?: boolean;
|
|
2445
2644
|
};
|
|
2446
2645
|
type PassphraseState = {
|
|
2447
2646
|
passphrase_state?: string;
|
|
@@ -3620,17 +3819,6 @@ type EthereumSignTypedDataQR = {
|
|
|
3620
3819
|
metamask_v4_compat?: boolean;
|
|
3621
3820
|
request_id?: string;
|
|
3622
3821
|
};
|
|
3623
|
-
type InternalMyAddressRequest = {
|
|
3624
|
-
coin_type: number;
|
|
3625
|
-
chain_id: number;
|
|
3626
|
-
account_index: number;
|
|
3627
|
-
derive_type: number;
|
|
3628
|
-
};
|
|
3629
|
-
type StartSession = {
|
|
3630
|
-
session_id?: string;
|
|
3631
|
-
_skip_passphrase?: boolean;
|
|
3632
|
-
derive_cardano?: boolean;
|
|
3633
|
-
};
|
|
3634
3822
|
type SetBusy = {
|
|
3635
3823
|
expiry_ms?: number;
|
|
3636
3824
|
};
|
|
@@ -3647,21 +3835,6 @@ type Nonce = {
|
|
|
3647
3835
|
type WriteSEPrivateKey = {
|
|
3648
3836
|
private_key: string;
|
|
3649
3837
|
};
|
|
3650
|
-
declare enum WallpaperTarget {
|
|
3651
|
-
Home = 0,
|
|
3652
|
-
Lock = 1
|
|
3653
|
-
}
|
|
3654
|
-
type SetWallpaper = {
|
|
3655
|
-
target: WallpaperTarget;
|
|
3656
|
-
path: string;
|
|
3657
|
-
};
|
|
3658
|
-
type GetWallpaper = {
|
|
3659
|
-
target: WallpaperTarget;
|
|
3660
|
-
};
|
|
3661
|
-
type Wallpaper = {
|
|
3662
|
-
target: WallpaperTarget;
|
|
3663
|
-
path: string;
|
|
3664
|
-
};
|
|
3665
3838
|
type UnlockPath = {
|
|
3666
3839
|
address_n: number[];
|
|
3667
3840
|
mac?: string;
|
|
@@ -3675,55 +3848,40 @@ declare enum MoneroNetworkType {
|
|
|
3675
3848
|
STAGENET = 2,
|
|
3676
3849
|
FAKECHAIN = 3
|
|
3677
3850
|
}
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
};
|
|
3682
|
-
type ViewDetail = {
|
|
3683
|
-
key: number;
|
|
3684
|
-
value: string;
|
|
3685
|
-
is_overview: boolean;
|
|
3686
|
-
has_icon: boolean;
|
|
3687
|
-
};
|
|
3688
|
-
declare enum ViewTipType {
|
|
3689
|
-
Default = 0,
|
|
3690
|
-
Highlight = 1,
|
|
3691
|
-
Recommend = 2,
|
|
3692
|
-
Warning = 3,
|
|
3693
|
-
Danger = 4
|
|
3851
|
+
declare enum UiAnimationType {
|
|
3852
|
+
Unknown = 0,
|
|
3853
|
+
Signing = 1
|
|
3694
3854
|
}
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
initial_data: string;
|
|
3701
|
-
placeholder: number;
|
|
3702
|
-
};
|
|
3703
|
-
declare enum ViewSignLayout {
|
|
3704
|
-
LayoutDefault = 0,
|
|
3705
|
-
LayoutSafeTxCreate = 1
|
|
3855
|
+
declare enum UiAnimationCommand {
|
|
3856
|
+
CommandUnknown = 0,
|
|
3857
|
+
Start = 1,
|
|
3858
|
+
Stop = 2,
|
|
3859
|
+
Refresh = 3
|
|
3706
3860
|
}
|
|
3707
|
-
type
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
general: ViewDetail[];
|
|
3711
|
-
tip?: ViewTip;
|
|
3712
|
-
raw_data?: ViewRawData;
|
|
3713
|
-
slide_to_confirm?: boolean;
|
|
3714
|
-
layout?: ViewSignLayout;
|
|
3861
|
+
type UiAnimationRequest = {
|
|
3862
|
+
command: UiAnimationCommand;
|
|
3863
|
+
type?: UiAnimationType;
|
|
3715
3864
|
};
|
|
3716
|
-
type
|
|
3717
|
-
|
|
3718
|
-
address: string;
|
|
3719
|
-
path: string;
|
|
3865
|
+
type ProtocolInfoRequest = {
|
|
3866
|
+
eventless_wallet_session?: boolean;
|
|
3720
3867
|
};
|
|
3721
|
-
type ProtocolInfoRequest = {};
|
|
3722
3868
|
type ProtocolInfo = {
|
|
3723
3869
|
version: number;
|
|
3870
|
+
build_fingerprint: string;
|
|
3724
3871
|
supported_messages: number[];
|
|
3725
|
-
protobuf_definition?: string;
|
|
3726
3872
|
};
|
|
3873
|
+
declare enum DeviceErrorCode {
|
|
3874
|
+
DeviceError_None = 0,
|
|
3875
|
+
DeviceError_Busy = 1,
|
|
3876
|
+
DeviceError_NotInitialized = 2,
|
|
3877
|
+
DeviceError_ActionCancelled = 3,
|
|
3878
|
+
DeviceError_PinAlreadyUsed = 4,
|
|
3879
|
+
DeviceError_PersistFailed = 5,
|
|
3880
|
+
DeviceError_SeError = 6,
|
|
3881
|
+
DeviceError_InvalidLanguage = 7,
|
|
3882
|
+
DeviceError_WallpaperNotUsable = 8,
|
|
3883
|
+
DeviceError_DeviceLocked = 9
|
|
3884
|
+
}
|
|
3727
3885
|
declare enum DeviceRebootType {
|
|
3728
3886
|
Normal = 0,
|
|
3729
3887
|
Romloader = 1,
|
|
@@ -3733,14 +3891,37 @@ type DeviceReboot = {
|
|
|
3733
3891
|
reboot_type: DeviceRebootType;
|
|
3734
3892
|
};
|
|
3735
3893
|
type DeviceSettings = {
|
|
3736
|
-
label?: string;
|
|
3737
3894
|
bt_enable?: boolean;
|
|
3738
3895
|
language?: string;
|
|
3896
|
+
wallpaper_path?: string;
|
|
3897
|
+
brightness?: number;
|
|
3898
|
+
animation_enable?: boolean;
|
|
3899
|
+
tap_to_wake?: boolean;
|
|
3900
|
+
haptic_feedback?: boolean;
|
|
3901
|
+
device_name_display_enabled?: boolean;
|
|
3902
|
+
airgap_mode?: boolean;
|
|
3903
|
+
usb_lock_enable?: boolean;
|
|
3904
|
+
random_keypad?: boolean;
|
|
3905
|
+
passphrase_enable?: boolean;
|
|
3906
|
+
fido_enabled?: boolean;
|
|
3907
|
+
autolock_delay_ms?: number;
|
|
3908
|
+
autoshutdown_delay_ms?: number;
|
|
3909
|
+
label?: string;
|
|
3739
3910
|
};
|
|
3740
3911
|
type DeviceSettingsGet = {};
|
|
3741
3912
|
type DeviceSettingsSet = {
|
|
3742
3913
|
settings: DeviceSettings;
|
|
3743
3914
|
};
|
|
3915
|
+
declare enum DeviceSettingsPage {
|
|
3916
|
+
DeviceReset = 0,
|
|
3917
|
+
DevicePinChange = 1,
|
|
3918
|
+
DevicePassphrase = 2,
|
|
3919
|
+
DeviceAirgap = 3
|
|
3920
|
+
}
|
|
3921
|
+
type DeviceSettingsPageShow = {
|
|
3922
|
+
page: DeviceSettingsPage;
|
|
3923
|
+
field_name?: string;
|
|
3924
|
+
};
|
|
3744
3925
|
type DeviceCertificate = {
|
|
3745
3926
|
cert_and_pubkey: string;
|
|
3746
3927
|
private_key?: string;
|
|
@@ -3755,6 +3936,39 @@ type DeviceCertificateSignature = {
|
|
|
3755
3936
|
type DeviceCertificateSign = {
|
|
3756
3937
|
data: string;
|
|
3757
3938
|
};
|
|
3939
|
+
type DeviceMiscUsbMscControl = {
|
|
3940
|
+
enable: boolean;
|
|
3941
|
+
};
|
|
3942
|
+
declare enum DeviceFactoryAck {
|
|
3943
|
+
FACTORY_ACK_SUCCESS = 0,
|
|
3944
|
+
FACTORY_ACK_FAIL = 1
|
|
3945
|
+
}
|
|
3946
|
+
type DeviceFactoryInfoManufactureTime = {
|
|
3947
|
+
year: number;
|
|
3948
|
+
month: number;
|
|
3949
|
+
day: number;
|
|
3950
|
+
hour: number;
|
|
3951
|
+
minute: number;
|
|
3952
|
+
second: number;
|
|
3953
|
+
};
|
|
3954
|
+
type DeviceFactoryInfo = {
|
|
3955
|
+
version?: number;
|
|
3956
|
+
serial_number?: string;
|
|
3957
|
+
burn_in_completed?: boolean;
|
|
3958
|
+
factory_test_completed?: boolean;
|
|
3959
|
+
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3960
|
+
};
|
|
3961
|
+
type DeviceFactoryInfoSet = {
|
|
3962
|
+
info: DeviceFactoryInfo;
|
|
3963
|
+
};
|
|
3964
|
+
type DeviceFactoryInfoGet = {};
|
|
3965
|
+
type DeviceFactoryPermanentLock = {
|
|
3966
|
+
check_a: string;
|
|
3967
|
+
check_b: string;
|
|
3968
|
+
};
|
|
3969
|
+
type DeviceFactoryTest = {
|
|
3970
|
+
burn_in_test: boolean;
|
|
3971
|
+
};
|
|
3758
3972
|
declare enum DeviceFirmwareTargetType {
|
|
3759
3973
|
FW_MGMT_TARGET_INVALID = 0,
|
|
3760
3974
|
FW_MGMT_TARGET_CRATE = 1,
|
|
@@ -3805,36 +4019,6 @@ type DeviceFirmwareUpdateStatusGet = {
|
|
|
3805
4019
|
type DeviceFirmwareUpdateStatus = {
|
|
3806
4020
|
records: DeviceFirmwareUpdateRecord[];
|
|
3807
4021
|
};
|
|
3808
|
-
declare enum DeviceFactoryAck {
|
|
3809
|
-
FACTORY_ACK_SUCCESS = 0,
|
|
3810
|
-
FACTORY_ACK_FAIL = 1
|
|
3811
|
-
}
|
|
3812
|
-
type DeviceFactoryInfoManufactureTime = {
|
|
3813
|
-
year: number;
|
|
3814
|
-
month: number;
|
|
3815
|
-
day: number;
|
|
3816
|
-
hour: number;
|
|
3817
|
-
minute: number;
|
|
3818
|
-
second: number;
|
|
3819
|
-
};
|
|
3820
|
-
type DeviceFactoryInfo = {
|
|
3821
|
-
version?: number;
|
|
3822
|
-
serial_number?: string;
|
|
3823
|
-
burn_in_completed?: boolean;
|
|
3824
|
-
factory_test_completed?: boolean;
|
|
3825
|
-
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3826
|
-
};
|
|
3827
|
-
type DeviceFactoryInfoSet = {
|
|
3828
|
-
info: DeviceFactoryInfo;
|
|
3829
|
-
};
|
|
3830
|
-
type DeviceFactoryInfoGet = {};
|
|
3831
|
-
type DeviceFactoryPermanentLock = {
|
|
3832
|
-
check_a: string;
|
|
3833
|
-
check_b: string;
|
|
3834
|
-
};
|
|
3835
|
-
type DeviceFactoryTest = {
|
|
3836
|
-
burn_in_test: boolean;
|
|
3837
|
-
};
|
|
3838
4022
|
declare enum DeviceType {
|
|
3839
4023
|
CLASSIC1 = 0,
|
|
3840
4024
|
CLASSIC1S = 1,
|
|
@@ -3891,7 +4075,6 @@ type DeviceInfoTargets = {
|
|
|
3891
4075
|
se2?: boolean;
|
|
3892
4076
|
se3?: boolean;
|
|
3893
4077
|
se4?: boolean;
|
|
3894
|
-
status?: boolean;
|
|
3895
4078
|
};
|
|
3896
4079
|
type DeviceInfoTypes = {
|
|
3897
4080
|
version?: boolean;
|
|
@@ -3912,15 +4095,43 @@ type ProtocolV2DeviceInfo = {
|
|
|
3912
4095
|
se2?: DeviceSEInfo;
|
|
3913
4096
|
se3?: DeviceSEInfo;
|
|
3914
4097
|
se4?: DeviceSEInfo;
|
|
3915
|
-
status?: DeviceStatus;
|
|
3916
4098
|
};
|
|
4099
|
+
declare enum DeviceSessionErrorCode {
|
|
4100
|
+
DeviceSessionError_None = 0,
|
|
4101
|
+
DeviceSessionError_UserCancelled = 1,
|
|
4102
|
+
DeviceSessionError_InvalidSession = 2,
|
|
4103
|
+
DeviceSessionError_AttachPinUnavailable = 3,
|
|
4104
|
+
DeviceSessionError_PassphraseDisabled = 4,
|
|
4105
|
+
DeviceSessionError_Busy = 5
|
|
4106
|
+
}
|
|
4107
|
+
declare enum DeviceSessionSeedDomain {
|
|
4108
|
+
SeedDomain_Standard = 1,
|
|
4109
|
+
SeedDomain_Cardano = 2
|
|
4110
|
+
}
|
|
3917
4111
|
type DeviceSessionGet = {
|
|
3918
4112
|
session_id?: string;
|
|
4113
|
+
btc_test_address?: string;
|
|
4114
|
+
seed_domains: DeviceSessionSeedDomain[];
|
|
3919
4115
|
};
|
|
3920
4116
|
type DeviceSession = {
|
|
3921
4117
|
session_id?: string;
|
|
3922
4118
|
btc_test_address?: string;
|
|
3923
4119
|
};
|
|
4120
|
+
declare enum DeviceSessionPinType {
|
|
4121
|
+
Any = 1,
|
|
4122
|
+
Main = 2,
|
|
4123
|
+
AttachToPin = 3
|
|
4124
|
+
}
|
|
4125
|
+
type DeviceSessionAskPin = {
|
|
4126
|
+
type?: DeviceSessionPinType;
|
|
4127
|
+
};
|
|
4128
|
+
type DeviceSessionAskPassphrase = {
|
|
4129
|
+
passphrase?: string;
|
|
4130
|
+
on_device: boolean;
|
|
4131
|
+
};
|
|
4132
|
+
declare enum DeviceSessionAskPin_FailureSubCodes {
|
|
4133
|
+
UserCancel = 1
|
|
4134
|
+
}
|
|
3924
4135
|
type DeviceStatus = {
|
|
3925
4136
|
device_id?: string;
|
|
3926
4137
|
unlocked?: boolean;
|
|
@@ -3931,27 +4142,6 @@ type DeviceStatus = {
|
|
|
3931
4142
|
unlocked_by_attach_to_pin?: boolean;
|
|
3932
4143
|
};
|
|
3933
4144
|
type DeviceStatusGet = {};
|
|
3934
|
-
declare enum DevOnboardingStage {
|
|
3935
|
-
DEV_ONBOARDING_STAGE_UNKNOWN = 0,
|
|
3936
|
-
DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
|
|
3937
|
-
DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
|
|
3938
|
-
DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
|
|
3939
|
-
DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
|
|
3940
|
-
DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
|
|
3941
|
-
DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
|
|
3942
|
-
DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
|
|
3943
|
-
DEV_ONBOARDING_STAGE_WALLET_READY = 8,
|
|
3944
|
-
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
|
|
3945
|
-
DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
|
|
3946
|
-
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
|
|
3947
|
-
DEV_ONBOARDING_STAGE_DONE = 12
|
|
3948
|
-
}
|
|
3949
|
-
type DevGetOnboardingStatus = {};
|
|
3950
|
-
type DevOnboardingStatus = {
|
|
3951
|
-
stage: DevOnboardingStage;
|
|
3952
|
-
status_code?: number;
|
|
3953
|
-
detail_code?: number;
|
|
3954
|
-
};
|
|
3955
4145
|
type FilesystemPermissionFix = {};
|
|
3956
4146
|
type FilesystemPathInfo = {
|
|
3957
4147
|
exist: boolean;
|
|
@@ -4012,7 +4202,142 @@ type FilesystemFormat = {
|
|
|
4012
4202
|
data: boolean;
|
|
4013
4203
|
user: boolean;
|
|
4014
4204
|
};
|
|
4205
|
+
type InternalMyAddressRequest = {
|
|
4206
|
+
coin_type: number;
|
|
4207
|
+
chain_id: number;
|
|
4208
|
+
account_index: number;
|
|
4209
|
+
derive_type: number;
|
|
4210
|
+
};
|
|
4211
|
+
type NftUpdate = {
|
|
4212
|
+
file_name_no_ext: string;
|
|
4213
|
+
};
|
|
4214
|
+
declare enum OnboardingStep {
|
|
4215
|
+
ONBOARDING_STEP_UNKNOWN = 0,
|
|
4216
|
+
ONBOARDING_STEP_CHECKING = 1,
|
|
4217
|
+
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
4218
|
+
ONBOARDING_STEP_PIN = 3,
|
|
4219
|
+
ONBOARDING_STEP_SETUP = 4,
|
|
4220
|
+
ONBOARDING_STEP_DONE = 5
|
|
4221
|
+
}
|
|
4222
|
+
declare enum OnboardingPhase {
|
|
4223
|
+
ONBOARDING_PHASE_UNKNOWN = 0,
|
|
4224
|
+
ONBOARDING_PHASE_SAFETY_CHECK = 1,
|
|
4225
|
+
ONBOARDING_PHASE_PIN_SETUP = 2,
|
|
4226
|
+
ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
|
|
4227
|
+
ONBOARDING_PHASE_SETUP_CHOICE = 4,
|
|
4228
|
+
ONBOARDING_PHASE_WALLET_CREATE_START = 5,
|
|
4229
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
|
|
4230
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
|
|
4231
|
+
ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
|
|
4232
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
|
|
4233
|
+
ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
|
|
4234
|
+
ONBOARDING_PHASE_WALLET_READY = 11,
|
|
4235
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
|
|
4236
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
|
|
4237
|
+
}
|
|
4238
|
+
declare enum OnboardingSetupKind {
|
|
4239
|
+
ONBOARDING_SETUP_KIND_UNKNOWN = 0,
|
|
4240
|
+
ONBOARDING_SETUP_KIND_CHOICE = 1,
|
|
4241
|
+
ONBOARDING_SETUP_KIND_CREATE = 2,
|
|
4242
|
+
ONBOARDING_SETUP_KIND_RESTORE = 3
|
|
4243
|
+
}
|
|
4244
|
+
declare enum OnboardingSetupMethod {
|
|
4245
|
+
ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
|
|
4246
|
+
ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
|
|
4247
|
+
ONBOARDING_SETUP_METHOD_SEEDCARD = 2
|
|
4248
|
+
}
|
|
4249
|
+
type OnboardingSetupStatus = {
|
|
4250
|
+
kind?: OnboardingSetupKind;
|
|
4251
|
+
method?: OnboardingSetupMethod;
|
|
4252
|
+
};
|
|
4253
|
+
type OnboardingStatusGet = {};
|
|
4254
|
+
type OnboardingStatus = {
|
|
4255
|
+
step?: OnboardingStep;
|
|
4256
|
+
phase?: OnboardingPhase;
|
|
4257
|
+
setup?: OnboardingSetupStatus;
|
|
4258
|
+
pin_set?: boolean;
|
|
4259
|
+
wallet_initialized?: boolean;
|
|
4260
|
+
};
|
|
4015
4261
|
type PortfolioUpdate = {};
|
|
4262
|
+
type ViewAmount = {
|
|
4263
|
+
is_unlimited: boolean;
|
|
4264
|
+
num: string;
|
|
4265
|
+
};
|
|
4266
|
+
type ViewDetail = {
|
|
4267
|
+
key: number;
|
|
4268
|
+
value: string;
|
|
4269
|
+
is_overview: boolean;
|
|
4270
|
+
has_icon: boolean;
|
|
4271
|
+
};
|
|
4272
|
+
declare enum ViewTipType {
|
|
4273
|
+
Default = 0,
|
|
4274
|
+
Highlight = 1,
|
|
4275
|
+
Recommend = 2,
|
|
4276
|
+
Warning = 3,
|
|
4277
|
+
Danger = 4
|
|
4278
|
+
}
|
|
4279
|
+
type ViewTip = {
|
|
4280
|
+
type: ViewTipType;
|
|
4281
|
+
text: string;
|
|
4282
|
+
};
|
|
4283
|
+
type ViewRawData = {
|
|
4284
|
+
initial_data: string;
|
|
4285
|
+
placeholder: number;
|
|
4286
|
+
};
|
|
4287
|
+
declare enum ViewSignLayout {
|
|
4288
|
+
LayoutDefault = 0,
|
|
4289
|
+
LayoutSafeTxCreate = 1,
|
|
4290
|
+
LayoutFinalConfirm = 2,
|
|
4291
|
+
Layout7702 = 3,
|
|
4292
|
+
LayoutFlat = 4,
|
|
4293
|
+
LayoutEthApprove = 5
|
|
4294
|
+
}
|
|
4295
|
+
type ViewSignPage = {
|
|
4296
|
+
title: string;
|
|
4297
|
+
amount?: UintType;
|
|
4298
|
+
general: ViewDetail[];
|
|
4299
|
+
tip?: ViewTip;
|
|
4300
|
+
raw_data?: ViewRawData;
|
|
4301
|
+
slide_to_confirm?: boolean;
|
|
4302
|
+
layout?: ViewSignLayout;
|
|
4303
|
+
};
|
|
4304
|
+
type ViewVerifyPage = {
|
|
4305
|
+
title: string;
|
|
4306
|
+
address: string;
|
|
4307
|
+
path: string;
|
|
4308
|
+
network?: string;
|
|
4309
|
+
derive_type?: string;
|
|
4310
|
+
value_key?: number;
|
|
4311
|
+
};
|
|
4312
|
+
declare enum ProtocolV2FailureType {
|
|
4313
|
+
Failure_InvalidMessage = 1,
|
|
4314
|
+
Failure_UndefinedError = 2,
|
|
4315
|
+
Failure_UsageError = 3,
|
|
4316
|
+
Failure_DataError = 4,
|
|
4317
|
+
Failure_ProcessError = 5
|
|
4318
|
+
}
|
|
4319
|
+
declare enum Enum_ProtocolV2Capability {
|
|
4320
|
+
Capability_Bitcoin = 1,
|
|
4321
|
+
Capability_Bitcoin_like = 2,
|
|
4322
|
+
Capability_Binance = 3,
|
|
4323
|
+
Capability_Cardano = 4,
|
|
4324
|
+
Capability_Crypto = 5,
|
|
4325
|
+
Capability_EOS = 6,
|
|
4326
|
+
Capability_Ethereum = 7,
|
|
4327
|
+
Capability_Lisk = 8,
|
|
4328
|
+
Capability_Monero = 9,
|
|
4329
|
+
Capability_NEM = 10,
|
|
4330
|
+
Capability_Ripple = 11,
|
|
4331
|
+
Capability_Stellar = 12,
|
|
4332
|
+
Capability_Tezos = 13,
|
|
4333
|
+
Capability_U2F = 14,
|
|
4334
|
+
Capability_Shamir = 15,
|
|
4335
|
+
Capability_ShamirGroups = 16,
|
|
4336
|
+
Capability_PassphraseEntry = 17,
|
|
4337
|
+
Capability_AttachToPin = 18,
|
|
4338
|
+
Capability_EthereumTypedData = 1000
|
|
4339
|
+
}
|
|
4340
|
+
type ProtocolV2Capability = keyof typeof Enum_ProtocolV2Capability;
|
|
4016
4341
|
type MessageType = {
|
|
4017
4342
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
4018
4343
|
AlephiumAddress: AlephiumAddress;
|
|
@@ -4287,6 +4612,15 @@ type MessageType = {
|
|
|
4287
4612
|
KaspaSignTx: KaspaSignTx;
|
|
4288
4613
|
KaspaTxInputRequest: KaspaTxInputRequest;
|
|
4289
4614
|
KaspaTxInputAck: KaspaTxInputAck;
|
|
4615
|
+
KaspaOutpoint: KaspaOutpoint;
|
|
4616
|
+
KaspaTxRequestSignature: KaspaTxRequestSignature;
|
|
4617
|
+
KaspaTxRequest: KaspaTxRequest;
|
|
4618
|
+
KaspaTxAckInput: KaspaTxAckInput;
|
|
4619
|
+
KaspaTxAckOutput: KaspaTxAckOutput;
|
|
4620
|
+
KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
|
|
4621
|
+
KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
|
|
4622
|
+
KaspaTxAckPrevInput: KaspaTxAckPrevInput;
|
|
4623
|
+
KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
|
|
4290
4624
|
KaspaSignedTx: KaspaSignedTx;
|
|
4291
4625
|
LnurlAuth: LnurlAuth;
|
|
4292
4626
|
LnurlAuthResp: LnurlAuthResp;
|
|
@@ -4577,48 +4911,40 @@ type MessageType = {
|
|
|
4577
4911
|
PaymentRequestMemo: PaymentRequestMemo;
|
|
4578
4912
|
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4579
4913
|
EthereumSignTypedDataQR: EthereumSignTypedDataQR;
|
|
4580
|
-
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4581
|
-
StartSession: StartSession;
|
|
4582
4914
|
SetBusy: SetBusy;
|
|
4583
4915
|
GetFirmwareHash: GetFirmwareHash;
|
|
4584
4916
|
FirmwareHash: FirmwareHash;
|
|
4585
4917
|
GetNonce: GetNonce;
|
|
4586
4918
|
Nonce: Nonce;
|
|
4587
4919
|
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4588
|
-
SetWallpaper: SetWallpaper;
|
|
4589
|
-
GetWallpaper: GetWallpaper;
|
|
4590
|
-
Wallpaper: Wallpaper;
|
|
4591
4920
|
UnlockPath: UnlockPath;
|
|
4592
4921
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4593
|
-
|
|
4594
|
-
ViewDetail: ViewDetail;
|
|
4595
|
-
ViewTip: ViewTip;
|
|
4596
|
-
ViewRawData: ViewRawData;
|
|
4597
|
-
ViewSignPage: ViewSignPage;
|
|
4598
|
-
ViewVerifyPage: ViewVerifyPage;
|
|
4922
|
+
UiAnimationRequest: UiAnimationRequest;
|
|
4599
4923
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
4600
4924
|
ProtocolInfo: ProtocolInfo;
|
|
4601
4925
|
DeviceReboot: DeviceReboot;
|
|
4602
4926
|
DeviceSettings: DeviceSettings;
|
|
4603
4927
|
DeviceSettingsGet: DeviceSettingsGet;
|
|
4604
4928
|
DeviceSettingsSet: DeviceSettingsSet;
|
|
4929
|
+
DeviceSettingsPageShow: DeviceSettingsPageShow;
|
|
4605
4930
|
DeviceCertificate: DeviceCertificate;
|
|
4606
4931
|
DeviceCertificateWrite: DeviceCertificateWrite;
|
|
4607
4932
|
DeviceCertificateRead: DeviceCertificateRead;
|
|
4608
4933
|
DeviceCertificateSignature: DeviceCertificateSignature;
|
|
4609
4934
|
DeviceCertificateSign: DeviceCertificateSign;
|
|
4610
|
-
|
|
4611
|
-
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4612
|
-
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4613
|
-
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4614
|
-
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4615
|
-
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4935
|
+
DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
|
|
4616
4936
|
DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
|
|
4617
4937
|
DeviceFactoryInfo: DeviceFactoryInfo;
|
|
4618
4938
|
DeviceFactoryInfoSet: DeviceFactoryInfoSet;
|
|
4619
4939
|
DeviceFactoryInfoGet: DeviceFactoryInfoGet;
|
|
4620
4940
|
DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
|
|
4621
4941
|
DeviceFactoryTest: DeviceFactoryTest;
|
|
4942
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4943
|
+
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4944
|
+
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4945
|
+
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4946
|
+
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4947
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4622
4948
|
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
4623
4949
|
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
4624
4950
|
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
@@ -4629,10 +4955,10 @@ type MessageType = {
|
|
|
4629
4955
|
DeviceInfoGet: DeviceInfoGet;
|
|
4630
4956
|
DeviceSessionGet: DeviceSessionGet;
|
|
4631
4957
|
DeviceSession: DeviceSession;
|
|
4958
|
+
DeviceSessionAskPin: DeviceSessionAskPin;
|
|
4959
|
+
DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
|
|
4632
4960
|
DeviceStatus: DeviceStatus;
|
|
4633
4961
|
DeviceStatusGet: DeviceStatusGet;
|
|
4634
|
-
DevGetOnboardingStatus: DevGetOnboardingStatus;
|
|
4635
|
-
DevOnboardingStatus: DevOnboardingStatus;
|
|
4636
4962
|
FilesystemPermissionFix: FilesystemPermissionFix;
|
|
4637
4963
|
FilesystemPathInfo: FilesystemPathInfo;
|
|
4638
4964
|
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
@@ -4645,7 +4971,18 @@ type MessageType = {
|
|
|
4645
4971
|
FilesystemDirMake: FilesystemDirMake;
|
|
4646
4972
|
FilesystemDirRemove: FilesystemDirRemove;
|
|
4647
4973
|
FilesystemFormat: FilesystemFormat;
|
|
4974
|
+
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4975
|
+
NftUpdate: NftUpdate;
|
|
4976
|
+
OnboardingSetupStatus: OnboardingSetupStatus;
|
|
4977
|
+
OnboardingStatusGet: OnboardingStatusGet;
|
|
4978
|
+
OnboardingStatus: OnboardingStatus;
|
|
4648
4979
|
PortfolioUpdate: PortfolioUpdate;
|
|
4980
|
+
ViewAmount: ViewAmount;
|
|
4981
|
+
ViewDetail: ViewDetail;
|
|
4982
|
+
ViewTip: ViewTip;
|
|
4983
|
+
ViewRawData: ViewRawData;
|
|
4984
|
+
ViewSignPage: ViewSignPage;
|
|
4985
|
+
ViewVerifyPage: ViewVerifyPage;
|
|
4649
4986
|
};
|
|
4650
4987
|
type MessageKey = keyof MessageType;
|
|
4651
4988
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5002,6 +5339,24 @@ type messages_KaspaAddress = KaspaAddress;
|
|
|
5002
5339
|
type messages_KaspaSignTx = KaspaSignTx;
|
|
5003
5340
|
type messages_KaspaTxInputRequest = KaspaTxInputRequest;
|
|
5004
5341
|
type messages_KaspaTxInputAck = KaspaTxInputAck;
|
|
5342
|
+
type messages_KaspaOutpoint = KaspaOutpoint;
|
|
5343
|
+
type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
|
|
5344
|
+
declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
|
|
5345
|
+
type messages_KaspaInputScriptType = KaspaInputScriptType;
|
|
5346
|
+
type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
|
|
5347
|
+
declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
|
|
5348
|
+
type messages_KaspaOutputScriptType = KaspaOutputScriptType;
|
|
5349
|
+
type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
|
|
5350
|
+
declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
|
|
5351
|
+
type messages_KaspaRequestType = KaspaRequestType;
|
|
5352
|
+
type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
|
|
5353
|
+
type messages_KaspaTxRequest = KaspaTxRequest;
|
|
5354
|
+
type messages_KaspaTxAckInput = KaspaTxAckInput;
|
|
5355
|
+
type messages_KaspaTxAckOutput = KaspaTxAckOutput;
|
|
5356
|
+
type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
|
|
5357
|
+
type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
|
|
5358
|
+
type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
|
|
5359
|
+
type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
|
|
5005
5360
|
type messages_KaspaSignedTx = KaspaSignedTx;
|
|
5006
5361
|
type messages_LnurlAuth = LnurlAuth;
|
|
5007
5362
|
type messages_LnurlAuthResp = LnurlAuthResp;
|
|
@@ -5358,46 +5713,48 @@ type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
|
5358
5713
|
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5359
5714
|
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5360
5715
|
type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
|
|
5361
|
-
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5362
|
-
type messages_StartSession = StartSession;
|
|
5363
5716
|
type messages_SetBusy = SetBusy;
|
|
5364
5717
|
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5365
5718
|
type messages_FirmwareHash = FirmwareHash;
|
|
5366
5719
|
type messages_GetNonce = GetNonce;
|
|
5367
5720
|
type messages_Nonce = Nonce;
|
|
5368
5721
|
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5369
|
-
type messages_WallpaperTarget = WallpaperTarget;
|
|
5370
|
-
declare const messages_WallpaperTarget: typeof WallpaperTarget;
|
|
5371
|
-
type messages_SetWallpaper = SetWallpaper;
|
|
5372
|
-
type messages_GetWallpaper = GetWallpaper;
|
|
5373
|
-
type messages_Wallpaper = Wallpaper;
|
|
5374
5722
|
type messages_UnlockPath = UnlockPath;
|
|
5375
5723
|
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5376
5724
|
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5377
5725
|
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5378
|
-
type
|
|
5379
|
-
|
|
5380
|
-
type
|
|
5381
|
-
declare const
|
|
5382
|
-
type
|
|
5383
|
-
type messages_ViewRawData = ViewRawData;
|
|
5384
|
-
type messages_ViewSignLayout = ViewSignLayout;
|
|
5385
|
-
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5386
|
-
type messages_ViewSignPage = ViewSignPage;
|
|
5387
|
-
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5726
|
+
type messages_UiAnimationType = UiAnimationType;
|
|
5727
|
+
declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
5728
|
+
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5729
|
+
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5730
|
+
type messages_UiAnimationRequest = UiAnimationRequest;
|
|
5388
5731
|
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
5389
5732
|
type messages_ProtocolInfo = ProtocolInfo;
|
|
5733
|
+
type messages_DeviceErrorCode = DeviceErrorCode;
|
|
5734
|
+
declare const messages_DeviceErrorCode: typeof DeviceErrorCode;
|
|
5390
5735
|
type messages_DeviceRebootType = DeviceRebootType;
|
|
5391
5736
|
declare const messages_DeviceRebootType: typeof DeviceRebootType;
|
|
5392
5737
|
type messages_DeviceReboot = DeviceReboot;
|
|
5393
5738
|
type messages_DeviceSettings = DeviceSettings;
|
|
5394
5739
|
type messages_DeviceSettingsGet = DeviceSettingsGet;
|
|
5395
5740
|
type messages_DeviceSettingsSet = DeviceSettingsSet;
|
|
5741
|
+
type messages_DeviceSettingsPage = DeviceSettingsPage;
|
|
5742
|
+
declare const messages_DeviceSettingsPage: typeof DeviceSettingsPage;
|
|
5743
|
+
type messages_DeviceSettingsPageShow = DeviceSettingsPageShow;
|
|
5396
5744
|
type messages_DeviceCertificate = DeviceCertificate;
|
|
5397
5745
|
type messages_DeviceCertificateWrite = DeviceCertificateWrite;
|
|
5398
5746
|
type messages_DeviceCertificateRead = DeviceCertificateRead;
|
|
5399
5747
|
type messages_DeviceCertificateSignature = DeviceCertificateSignature;
|
|
5400
5748
|
type messages_DeviceCertificateSign = DeviceCertificateSign;
|
|
5749
|
+
type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
|
|
5750
|
+
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5751
|
+
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5752
|
+
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5753
|
+
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5754
|
+
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5755
|
+
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5756
|
+
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5757
|
+
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5401
5758
|
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5402
5759
|
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5403
5760
|
type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
|
|
@@ -5408,14 +5765,6 @@ type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
|
|
|
5408
5765
|
type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
|
|
5409
5766
|
type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
|
|
5410
5767
|
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5411
|
-
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5412
|
-
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5413
|
-
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5414
|
-
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5415
|
-
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5416
|
-
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5417
|
-
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5418
|
-
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5419
5768
|
type messages_DeviceType = DeviceType;
|
|
5420
5769
|
declare const messages_DeviceType: typeof DeviceType;
|
|
5421
5770
|
type messages_DeviceSeType = DeviceSeType;
|
|
@@ -5431,14 +5780,20 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
|
|
|
5431
5780
|
type messages_DeviceInfoTypes = DeviceInfoTypes;
|
|
5432
5781
|
type messages_DeviceInfoGet = DeviceInfoGet;
|
|
5433
5782
|
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5783
|
+
type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
|
|
5784
|
+
declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
|
|
5785
|
+
type messages_DeviceSessionSeedDomain = DeviceSessionSeedDomain;
|
|
5786
|
+
declare const messages_DeviceSessionSeedDomain: typeof DeviceSessionSeedDomain;
|
|
5434
5787
|
type messages_DeviceSessionGet = DeviceSessionGet;
|
|
5435
5788
|
type messages_DeviceSession = DeviceSession;
|
|
5789
|
+
type messages_DeviceSessionPinType = DeviceSessionPinType;
|
|
5790
|
+
declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
|
|
5791
|
+
type messages_DeviceSessionAskPin = DeviceSessionAskPin;
|
|
5792
|
+
type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
|
|
5793
|
+
type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
|
|
5794
|
+
declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
|
|
5436
5795
|
type messages_DeviceStatus = DeviceStatus;
|
|
5437
5796
|
type messages_DeviceStatusGet = DeviceStatusGet;
|
|
5438
|
-
type messages_DevOnboardingStage = DevOnboardingStage;
|
|
5439
|
-
declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
|
|
5440
|
-
type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
|
|
5441
|
-
type messages_DevOnboardingStatus = DevOnboardingStatus;
|
|
5442
5797
|
type messages_FilesystemPermissionFix = FilesystemPermissionFix;
|
|
5443
5798
|
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5444
5799
|
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
@@ -5451,7 +5806,35 @@ type messages_FilesystemDirList = FilesystemDirList;
|
|
|
5451
5806
|
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5452
5807
|
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5453
5808
|
type messages_FilesystemFormat = FilesystemFormat;
|
|
5809
|
+
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5810
|
+
type messages_NftUpdate = NftUpdate;
|
|
5811
|
+
type messages_OnboardingStep = OnboardingStep;
|
|
5812
|
+
declare const messages_OnboardingStep: typeof OnboardingStep;
|
|
5813
|
+
type messages_OnboardingPhase = OnboardingPhase;
|
|
5814
|
+
declare const messages_OnboardingPhase: typeof OnboardingPhase;
|
|
5815
|
+
type messages_OnboardingSetupKind = OnboardingSetupKind;
|
|
5816
|
+
declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
|
|
5817
|
+
type messages_OnboardingSetupMethod = OnboardingSetupMethod;
|
|
5818
|
+
declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
|
|
5819
|
+
type messages_OnboardingSetupStatus = OnboardingSetupStatus;
|
|
5820
|
+
type messages_OnboardingStatusGet = OnboardingStatusGet;
|
|
5821
|
+
type messages_OnboardingStatus = OnboardingStatus;
|
|
5454
5822
|
type messages_PortfolioUpdate = PortfolioUpdate;
|
|
5823
|
+
type messages_ViewAmount = ViewAmount;
|
|
5824
|
+
type messages_ViewDetail = ViewDetail;
|
|
5825
|
+
type messages_ViewTipType = ViewTipType;
|
|
5826
|
+
declare const messages_ViewTipType: typeof ViewTipType;
|
|
5827
|
+
type messages_ViewTip = ViewTip;
|
|
5828
|
+
type messages_ViewRawData = ViewRawData;
|
|
5829
|
+
type messages_ViewSignLayout = ViewSignLayout;
|
|
5830
|
+
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5831
|
+
type messages_ViewSignPage = ViewSignPage;
|
|
5832
|
+
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5833
|
+
type messages_ProtocolV2FailureType = ProtocolV2FailureType;
|
|
5834
|
+
declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
|
|
5835
|
+
type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
|
|
5836
|
+
declare const messages_Enum_ProtocolV2Capability: typeof Enum_ProtocolV2Capability;
|
|
5837
|
+
type messages_ProtocolV2Capability = ProtocolV2Capability;
|
|
5455
5838
|
type messages_MessageType = MessageType;
|
|
5456
5839
|
type messages_MessageKey = MessageKey;
|
|
5457
5840
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
@@ -5772,6 +6155,21 @@ declare namespace messages {
|
|
|
5772
6155
|
messages_KaspaSignTx as KaspaSignTx,
|
|
5773
6156
|
messages_KaspaTxInputRequest as KaspaTxInputRequest,
|
|
5774
6157
|
messages_KaspaTxInputAck as KaspaTxInputAck,
|
|
6158
|
+
messages_KaspaOutpoint as KaspaOutpoint,
|
|
6159
|
+
messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
|
|
6160
|
+
messages_KaspaInputScriptType as KaspaInputScriptType,
|
|
6161
|
+
messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
|
|
6162
|
+
messages_KaspaOutputScriptType as KaspaOutputScriptType,
|
|
6163
|
+
messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
|
|
6164
|
+
messages_KaspaRequestType as KaspaRequestType,
|
|
6165
|
+
messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
|
|
6166
|
+
messages_KaspaTxRequest as KaspaTxRequest,
|
|
6167
|
+
messages_KaspaTxAckInput as KaspaTxAckInput,
|
|
6168
|
+
messages_KaspaTxAckOutput as KaspaTxAckOutput,
|
|
6169
|
+
messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
|
|
6170
|
+
messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
|
|
6171
|
+
messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
|
|
6172
|
+
messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
|
|
5775
6173
|
messages_KaspaSignedTx as KaspaSignedTx,
|
|
5776
6174
|
messages_LnurlAuth as LnurlAuth,
|
|
5777
6175
|
messages_LnurlAuthResp as LnurlAuthResp,
|
|
@@ -6097,41 +6495,41 @@ declare namespace messages {
|
|
|
6097
6495
|
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
6098
6496
|
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
6099
6497
|
messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
|
|
6100
|
-
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6101
|
-
messages_StartSession as StartSession,
|
|
6102
6498
|
messages_SetBusy as SetBusy,
|
|
6103
6499
|
messages_GetFirmwareHash as GetFirmwareHash,
|
|
6104
6500
|
messages_FirmwareHash as FirmwareHash,
|
|
6105
6501
|
messages_GetNonce as GetNonce,
|
|
6106
6502
|
messages_Nonce as Nonce,
|
|
6107
6503
|
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
6108
|
-
messages_WallpaperTarget as WallpaperTarget,
|
|
6109
|
-
messages_SetWallpaper as SetWallpaper,
|
|
6110
|
-
messages_GetWallpaper as GetWallpaper,
|
|
6111
|
-
messages_Wallpaper as Wallpaper,
|
|
6112
6504
|
messages_UnlockPath as UnlockPath,
|
|
6113
6505
|
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
6114
6506
|
messages_MoneroNetworkType as MoneroNetworkType,
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
messages_ViewTip as ViewTip,
|
|
6119
|
-
messages_ViewRawData as ViewRawData,
|
|
6120
|
-
messages_ViewSignLayout as ViewSignLayout,
|
|
6121
|
-
messages_ViewSignPage as ViewSignPage,
|
|
6122
|
-
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6507
|
+
messages_UiAnimationType as UiAnimationType,
|
|
6508
|
+
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6509
|
+
messages_UiAnimationRequest as UiAnimationRequest,
|
|
6123
6510
|
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
6124
6511
|
messages_ProtocolInfo as ProtocolInfo,
|
|
6512
|
+
messages_DeviceErrorCode as DeviceErrorCode,
|
|
6125
6513
|
messages_DeviceRebootType as DeviceRebootType,
|
|
6126
6514
|
messages_DeviceReboot as DeviceReboot,
|
|
6127
6515
|
messages_DeviceSettings as DeviceSettings,
|
|
6128
6516
|
messages_DeviceSettingsGet as DeviceSettingsGet,
|
|
6129
6517
|
messages_DeviceSettingsSet as DeviceSettingsSet,
|
|
6518
|
+
messages_DeviceSettingsPage as DeviceSettingsPage,
|
|
6519
|
+
messages_DeviceSettingsPageShow as DeviceSettingsPageShow,
|
|
6130
6520
|
messages_DeviceCertificate as DeviceCertificate,
|
|
6131
6521
|
messages_DeviceCertificateWrite as DeviceCertificateWrite,
|
|
6132
6522
|
messages_DeviceCertificateRead as DeviceCertificateRead,
|
|
6133
6523
|
messages_DeviceCertificateSignature as DeviceCertificateSignature,
|
|
6134
6524
|
messages_DeviceCertificateSign as DeviceCertificateSign,
|
|
6525
|
+
messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
|
|
6526
|
+
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6527
|
+
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6528
|
+
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6529
|
+
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6530
|
+
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6531
|
+
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6532
|
+
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6135
6533
|
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
6136
6534
|
messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
|
|
6137
6535
|
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
@@ -6140,13 +6538,6 @@ declare namespace messages {
|
|
|
6140
6538
|
messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
|
|
6141
6539
|
messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
|
|
6142
6540
|
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
6143
|
-
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6144
|
-
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6145
|
-
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6146
|
-
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6147
|
-
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6148
|
-
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6149
|
-
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6150
6541
|
messages_DeviceType as DeviceType,
|
|
6151
6542
|
messages_DeviceSeType as DeviceSeType,
|
|
6152
6543
|
messages_DeviceSEState as DeviceSEState,
|
|
@@ -6159,13 +6550,16 @@ declare namespace messages {
|
|
|
6159
6550
|
messages_DeviceInfoTypes as DeviceInfoTypes,
|
|
6160
6551
|
messages_DeviceInfoGet as DeviceInfoGet,
|
|
6161
6552
|
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
6553
|
+
messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
|
|
6554
|
+
messages_DeviceSessionSeedDomain as DeviceSessionSeedDomain,
|
|
6162
6555
|
messages_DeviceSessionGet as DeviceSessionGet,
|
|
6163
6556
|
messages_DeviceSession as DeviceSession,
|
|
6557
|
+
messages_DeviceSessionPinType as DeviceSessionPinType,
|
|
6558
|
+
messages_DeviceSessionAskPin as DeviceSessionAskPin,
|
|
6559
|
+
messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
|
|
6560
|
+
messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
|
|
6164
6561
|
messages_DeviceStatus as DeviceStatus,
|
|
6165
6562
|
messages_DeviceStatusGet as DeviceStatusGet,
|
|
6166
|
-
messages_DevOnboardingStage as DevOnboardingStage,
|
|
6167
|
-
messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
|
|
6168
|
-
messages_DevOnboardingStatus as DevOnboardingStatus,
|
|
6169
6563
|
messages_FilesystemPermissionFix as FilesystemPermissionFix,
|
|
6170
6564
|
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
6171
6565
|
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
@@ -6178,7 +6572,27 @@ declare namespace messages {
|
|
|
6178
6572
|
messages_FilesystemDirMake as FilesystemDirMake,
|
|
6179
6573
|
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
6180
6574
|
messages_FilesystemFormat as FilesystemFormat,
|
|
6575
|
+
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6576
|
+
messages_NftUpdate as NftUpdate,
|
|
6577
|
+
messages_OnboardingStep as OnboardingStep,
|
|
6578
|
+
messages_OnboardingPhase as OnboardingPhase,
|
|
6579
|
+
messages_OnboardingSetupKind as OnboardingSetupKind,
|
|
6580
|
+
messages_OnboardingSetupMethod as OnboardingSetupMethod,
|
|
6581
|
+
messages_OnboardingSetupStatus as OnboardingSetupStatus,
|
|
6582
|
+
messages_OnboardingStatusGet as OnboardingStatusGet,
|
|
6583
|
+
messages_OnboardingStatus as OnboardingStatus,
|
|
6181
6584
|
messages_PortfolioUpdate as PortfolioUpdate,
|
|
6585
|
+
messages_ViewAmount as ViewAmount,
|
|
6586
|
+
messages_ViewDetail as ViewDetail,
|
|
6587
|
+
messages_ViewTipType as ViewTipType,
|
|
6588
|
+
messages_ViewTip as ViewTip,
|
|
6589
|
+
messages_ViewRawData as ViewRawData,
|
|
6590
|
+
messages_ViewSignLayout as ViewSignLayout,
|
|
6591
|
+
messages_ViewSignPage as ViewSignPage,
|
|
6592
|
+
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6593
|
+
messages_ProtocolV2FailureType as ProtocolV2FailureType,
|
|
6594
|
+
messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
|
|
6595
|
+
messages_ProtocolV2Capability as ProtocolV2Capability,
|
|
6182
6596
|
messages_MessageType as MessageType,
|
|
6183
6597
|
messages_MessageKey as MessageKey,
|
|
6184
6598
|
messages_MessageResponse as MessageResponse,
|
|
@@ -6199,8 +6613,10 @@ type ProtocolV2Schemas = {
|
|
|
6199
6613
|
type ProtocolV2CallContext = {
|
|
6200
6614
|
messageName: string;
|
|
6201
6615
|
timeoutMs?: number;
|
|
6202
|
-
|
|
6616
|
+
highThroughput: boolean;
|
|
6617
|
+
writeWithResponse?: boolean;
|
|
6203
6618
|
generation: number;
|
|
6619
|
+
signal: AbortSignal;
|
|
6204
6620
|
};
|
|
6205
6621
|
type ProtocolLogger = {
|
|
6206
6622
|
debug?: (...args: any[]) => void;
|
|
@@ -6225,17 +6641,20 @@ type ProtocolV2CallOptions = {
|
|
|
6225
6641
|
expectedTypes?: string[];
|
|
6226
6642
|
intermediateTypes?: string[];
|
|
6227
6643
|
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
6644
|
+
onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
|
|
6645
|
+
writeWithResponse?: boolean;
|
|
6228
6646
|
};
|
|
6229
6647
|
|
|
6230
6648
|
declare function hexToBytes(hex: string): Uint8Array;
|
|
6231
6649
|
declare function bytesToHex(bytes: Uint8Array): string;
|
|
6650
|
+
declare function isProtocolV2HighThroughputCall(name: string): boolean;
|
|
6232
6651
|
declare function getErrorMessage(error: unknown): string;
|
|
6233
|
-
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
|
|
6234
|
-
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
|
|
6652
|
+
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
|
|
6235
6653
|
declare class ProtocolV2Session {
|
|
6236
6654
|
private readonly options;
|
|
6237
6655
|
private readonly sequenceCursor;
|
|
6238
6656
|
private pendingCall;
|
|
6657
|
+
private lastResponseSequence?;
|
|
6239
6658
|
constructor(options: ProtocolV2SessionOptions);
|
|
6240
6659
|
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6241
6660
|
private executeCall;
|
|
@@ -6271,6 +6690,9 @@ declare class ProtocolV2LinkManager<Key> {
|
|
|
6271
6690
|
private readonly links;
|
|
6272
6691
|
private readonly sequences;
|
|
6273
6692
|
private readonly callQueues;
|
|
6693
|
+
private readonly generations;
|
|
6694
|
+
private readonly invalidationReasons;
|
|
6695
|
+
private readonly invalidations;
|
|
6274
6696
|
private readonly options;
|
|
6275
6697
|
constructor(options: ProtocolV2LinkManagerOptions<Key>);
|
|
6276
6698
|
call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
@@ -6280,6 +6702,7 @@ declare class ProtocolV2LinkManager<Key> {
|
|
|
6280
6702
|
private getOrCreateLink;
|
|
6281
6703
|
private executeCall;
|
|
6282
6704
|
private clearSettledCallQueue;
|
|
6705
|
+
private assertCallGeneration;
|
|
6283
6706
|
}
|
|
6284
6707
|
|
|
6285
6708
|
type ProtocolV2UsbTransportBaseOptions = {
|
|
@@ -6309,6 +6732,7 @@ declare abstract class ProtocolV2UsbTransportBase<Key> {
|
|
|
6309
6732
|
private createProtocolV2UsbAdapter;
|
|
6310
6733
|
private getProtocolV2UsbAssembler;
|
|
6311
6734
|
private createProtocolV2UsbCancellation;
|
|
6735
|
+
private createProtocolV2UsbIoError;
|
|
6312
6736
|
}
|
|
6313
6737
|
|
|
6314
6738
|
declare function info(res: any): {
|
|
@@ -6337,22 +6761,59 @@ declare namespace check {
|
|
|
6337
6761
|
|
|
6338
6762
|
declare const LogBlockCommand: Set<string>;
|
|
6339
6763
|
|
|
6764
|
+
declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
|
|
6765
|
+
declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
|
|
6766
|
+
name: string;
|
|
6767
|
+
protocol: ProtocolType;
|
|
6768
|
+
request: unknown;
|
|
6769
|
+
};
|
|
6770
|
+
declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
|
|
6771
|
+
|
|
6772
|
+
/** Protocol V1 USB report marker, ASCII `?`. */
|
|
6340
6773
|
declare const PROTOCOL_V1_REPORT_ID = 63;
|
|
6774
|
+
/** Protocol V1 envelope marker, ASCII `#`. */
|
|
6341
6775
|
declare const PROTOCOL_V1_HEADER_BYTE = 35;
|
|
6776
|
+
/** Protocol V1 payload bytes per chunk after the report marker. */
|
|
6342
6777
|
declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
|
|
6778
|
+
/** Protocol V1 USB packet length: report marker plus chunk payload. */
|
|
6343
6779
|
declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
6780
|
+
/** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
|
|
6344
6781
|
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
6782
|
+
/** Protocol V1 envelope metadata: `##`, message type, and payload length. */
|
|
6345
6783
|
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
6346
|
-
|
|
6784
|
+
/** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
|
|
6785
|
+
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
|
|
6786
|
+
/** FilesystemFileWrite chunk size over WebUSB. */
|
|
6347
6787
|
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
6788
|
+
/** FilesystemFileWrite chunk size over BLE. */
|
|
6348
6789
|
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6790
|
+
/**
|
|
6791
|
+
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
|
|
6792
|
+
* The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
|
|
6793
|
+
*/
|
|
6794
|
+
declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
|
|
6795
|
+
/** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
|
|
6349
6796
|
declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
|
|
6797
|
+
/** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
|
|
6350
6798
|
declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
6799
|
+
/** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
|
|
6351
6800
|
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
|
|
6801
|
+
/**
|
|
6802
|
+
* Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
|
|
6803
|
+
* through the BLE coprocessor UART bridge.
|
|
6804
|
+
*/
|
|
6352
6805
|
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
6353
6806
|
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
6354
6807
|
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
6808
|
+
/** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
|
|
6355
6809
|
declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
|
|
6810
|
+
/**
|
|
6811
|
+
* Shared upper bound for a Protocol V2 request without a method-specific timeout.
|
|
6812
|
+
* Interactive and signing calls may wait on the device UI, so keep this longer than
|
|
6813
|
+
* ordinary transport timeouts while still preventing a stalled link from blocking
|
|
6814
|
+
* the per-device queue forever.
|
|
6815
|
+
*/
|
|
6816
|
+
declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
|
|
6356
6817
|
|
|
6357
6818
|
declare const _default: {
|
|
6358
6819
|
check: typeof check;
|
|
@@ -6371,6 +6832,20 @@ declare const _default: {
|
|
|
6371
6832
|
};
|
|
6372
6833
|
ProtocolV2: {
|
|
6373
6834
|
isAckFrame: typeof isAckFrame;
|
|
6835
|
+
inspectFrameHeader: typeof inspectFrameHeader;
|
|
6836
|
+
inspectFrame(schemas: {
|
|
6837
|
+
protocolV1: protobuf.Root;
|
|
6838
|
+
protocolV2: protobuf.Root;
|
|
6839
|
+
}, frame: Uint8Array): {
|
|
6840
|
+
messageName: string;
|
|
6841
|
+
messageTypeId: number;
|
|
6842
|
+
pbPayload: Uint8Array;
|
|
6843
|
+
seq: number;
|
|
6844
|
+
router: number;
|
|
6845
|
+
packetSrc: number;
|
|
6846
|
+
dataType: number;
|
|
6847
|
+
type: string;
|
|
6848
|
+
};
|
|
6374
6849
|
encodeFrame(schemas: {
|
|
6375
6850
|
protocolV1: protobuf.Root;
|
|
6376
6851
|
protocolV2: protobuf.Root;
|
|
@@ -6378,21 +6853,11 @@ declare const _default: {
|
|
|
6378
6853
|
packetSrc?: number | undefined;
|
|
6379
6854
|
router?: number | undefined;
|
|
6380
6855
|
seq?: number | undefined;
|
|
6381
|
-
logger?: ProtocolV2DebugLogger | undefined;
|
|
6382
|
-
logPrefix?: string | undefined;
|
|
6383
|
-
context?: string | undefined;
|
|
6384
6856
|
}): Uint8Array;
|
|
6385
6857
|
decodeFrame(schemas: {
|
|
6386
6858
|
protocolV1: protobuf.Root;
|
|
6387
6859
|
protocolV2: protobuf.Root;
|
|
6388
|
-
}, frame: Uint8Array
|
|
6389
|
-
packetSrc?: number | undefined;
|
|
6390
|
-
router?: number | undefined;
|
|
6391
|
-
seq?: number | undefined;
|
|
6392
|
-
logger?: ProtocolV2DebugLogger | undefined;
|
|
6393
|
-
logPrefix?: string | undefined;
|
|
6394
|
-
context?: string | undefined;
|
|
6395
|
-
}, "logger" | "logPrefix" | "context">): {
|
|
6860
|
+
}, frame: Uint8Array): {
|
|
6396
6861
|
message: {
|
|
6397
6862
|
[key: string]: any;
|
|
6398
6863
|
};
|
|
@@ -6429,4 +6894,4 @@ declare const _default: {
|
|
|
6429
6894
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
6430
6895
|
};
|
|
6431
6896
|
|
|
6432
|
-
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionGet, DeviceSettings, DeviceSettingsGet, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
|
|
6897
|
+
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSessionSeedDomain, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NftUpdate, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingPhase, OnboardingSetupKind, OnboardingSetupMethod, OnboardingSetupStatus, OnboardingStatus, OnboardingStatusGet, OnboardingStep, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2BleFrameWriterOptions, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkError, ProtocolV2LinkErrorClassification, ProtocolV2LinkErrorCode, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TRANSPORT_EVENT, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TransportDeviceDisconnectEvent, TransportWriteMetrics, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UiAnimationCommand, UiAnimationRequest, UiAnimationType, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, createTransportCallLog, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
|