@onekeyfe/hd-transport 1.2.0-alpha.7 → 1.2.0-alpha.71
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 +220 -0
- package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
- package/__tests__/protocol-v2-link-manager.test.js +437 -0
- package/__tests__/protocol-v2-usb-transport-base.test.js +330 -0
- package/__tests__/protocol-v2.test.js +492 -53
- package/__tests__/transport-log.test.js +79 -0
- package/dist/constants.d.ts +4 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +810 -198
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +836 -228
- package/dist/protocols/index.d.ts +14 -5
- 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/constants.d.ts +1 -0
- package/dist/protocols/v2/constants.d.ts.map +1 -1
- package/dist/protocols/v2/decode.d.ts +13 -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 +39 -0
- package/dist/protocols/v2/link-manager.d.ts.map +1 -0
- package/dist/protocols/v2/sequence-cursor.d.ts +5 -0
- package/dist/protocols/v2/sequence-cursor.d.ts.map +1 -0
- package/dist/protocols/v2/session.d.ts +23 -6
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/protocols/v2/usb-transport-base.d.ts +32 -0
- package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -0
- 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 +386 -110
- 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 +1138 -441
- package/package.json +3 -3
- package/scripts/protobuf-build.sh +86 -208
- package/scripts/protobuf-patches/index.js +1 -0
- package/scripts/protobuf-types.js +19 -1
- package/src/constants.ts +28 -14
- package/src/index.ts +13 -1
- package/src/protocols/index.ts +39 -40
- package/src/protocols/v2/ble-frame-writer.ts +77 -0
- package/src/protocols/v2/constants.ts +1 -0
- package/src/protocols/v2/crc8.ts +1 -1
- package/src/protocols/v2/decode.ts +71 -37
- 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 +209 -0
- package/src/protocols/v2/sequence-cursor.ts +10 -0
- package/src/protocols/v2/session.ts +173 -201
- package/src/protocols/v2/usb-transport-base.ts +213 -0
- package/src/serialization/protobuf/decode.ts +4 -1
- package/src/serialization/protobuf/encode.ts +5 -1
- package/src/types/messages.ts +471 -142
- package/src/types/transport.ts +23 -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
|
@@ -60,33 +60,84 @@ declare const PROTO_HEAD_CRC_SIZE = 8;
|
|
|
60
60
|
declare const CRC8_INIT = 48;
|
|
61
61
|
declare const PACKET_SIZE = 4096;
|
|
62
62
|
declare const PROTO_DATA_TYPE_PACKET = 0;
|
|
63
|
+
declare const PROTO_DATA_TYPE_ACK = 1;
|
|
63
64
|
|
|
64
65
|
declare const CRC8_TABLE: Uint8Array;
|
|
66
|
+
/**
|
|
67
|
+
* Compute CRC-8 over the first len bytes using the firmware-compatible initial value.
|
|
68
|
+
*/
|
|
65
69
|
declare function crc8(data: Uint8Array, len: number): number;
|
|
66
70
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
type ProtocolV2FrameDebugOptions = {
|
|
71
|
-
logger?: ProtocolV2DebugLogger;
|
|
72
|
-
logPrefix?: string;
|
|
73
|
-
context?: string;
|
|
74
|
-
messageName?: string;
|
|
75
|
-
messageTypeId?: number;
|
|
76
|
-
pbPayloadLength?: number;
|
|
77
|
-
};
|
|
78
|
-
declare function logProtocolV2Debug(options: ProtocolV2FrameDebugOptions | undefined, stage: string, details: Record<string, unknown>): void;
|
|
79
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Advance a Protocol V2 sequence counter: 1-255, wraps around skipping 0.
|
|
73
|
+
*/
|
|
80
74
|
declare function nextProtoSeq(current: number): number;
|
|
81
|
-
|
|
82
|
-
|
|
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;
|
|
83
98
|
|
|
84
99
|
interface ProtoV2Frame {
|
|
100
|
+
/** Little-endian message type ID */
|
|
85
101
|
messageTypeId: number;
|
|
102
|
+
/** Raw protobuf-encoded payload (bytes after the 2-byte messageTypeId) */
|
|
86
103
|
pbPayload: Uint8Array;
|
|
104
|
+
/** Sequence number from the frame header */
|
|
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;
|
|
112
|
+
}
|
|
113
|
+
type ProtoV2FrameHeader = {
|
|
114
|
+
frameLen: number;
|
|
115
|
+
router: number;
|
|
116
|
+
packetSrc: number;
|
|
117
|
+
dataType: number;
|
|
87
118
|
seq: number;
|
|
119
|
+
};
|
|
120
|
+
declare function inspectFrameHeader(data: Uint8Array): ProtoV2FrameHeader;
|
|
121
|
+
declare function isAckFrame(data: Uint8Array): boolean;
|
|
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);
|
|
88
139
|
}
|
|
89
|
-
declare
|
|
140
|
+
declare const isProtocolV2LinkError: (error: unknown) => error is ProtocolV2LinkError;
|
|
90
141
|
|
|
91
142
|
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
92
143
|
declare class ProtocolV2FrameAssembler {
|
|
@@ -95,30 +146,57 @@ declare class ProtocolV2FrameAssembler {
|
|
|
95
146
|
constructor(maxFrameBytes?: number);
|
|
96
147
|
reset(): void;
|
|
97
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
|
+
*/
|
|
98
154
|
drain(chunk?: Uint8Array): Uint8Array[];
|
|
99
155
|
private append;
|
|
100
156
|
private extractFrame;
|
|
101
157
|
}
|
|
102
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
|
+
|
|
103
174
|
declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
|
|
104
175
|
declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
|
|
105
176
|
declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
|
|
106
177
|
declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
|
|
107
178
|
declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
|
|
108
179
|
declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
|
|
180
|
+
declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
|
|
109
181
|
declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
|
|
110
182
|
declare const protocolV2Codec_crc8: typeof crc8;
|
|
111
|
-
type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
|
|
112
|
-
type protocolV2Codec_ProtocolV2FrameDebugOptions = ProtocolV2FrameDebugOptions;
|
|
113
|
-
declare const protocolV2Codec_logProtocolV2Debug: typeof logProtocolV2Debug;
|
|
114
183
|
declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
|
|
115
184
|
declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
|
|
116
185
|
declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
|
|
117
186
|
type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
|
|
187
|
+
type protocolV2Codec_ProtoV2FrameHeader = ProtoV2FrameHeader;
|
|
188
|
+
declare const protocolV2Codec_inspectFrameHeader: typeof inspectFrameHeader;
|
|
189
|
+
declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
|
|
118
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;
|
|
119
195
|
declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
|
|
120
196
|
type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
|
|
121
197
|
declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
198
|
+
type protocolV2Codec_ProtocolV2BleFrameWriterOptions = ProtocolV2BleFrameWriterOptions;
|
|
199
|
+
declare const protocolV2Codec_writeProtocolV2BleFrame: typeof writeProtocolV2BleFrame;
|
|
122
200
|
declare namespace protocolV2Codec {
|
|
123
201
|
export {
|
|
124
202
|
protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
|
|
@@ -127,18 +205,24 @@ declare namespace protocolV2Codec {
|
|
|
127
205
|
protocolV2Codec_CRC8_INIT as CRC8_INIT,
|
|
128
206
|
protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
|
|
129
207
|
protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
|
|
208
|
+
protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
|
|
130
209
|
protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
|
|
131
210
|
protocolV2Codec_crc8 as crc8,
|
|
132
|
-
protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
|
|
133
|
-
protocolV2Codec_ProtocolV2FrameDebugOptions as ProtocolV2FrameDebugOptions,
|
|
134
|
-
protocolV2Codec_logProtocolV2Debug as logProtocolV2Debug,
|
|
135
211
|
protocolV2Codec_nextProtoSeq as nextProtoSeq,
|
|
136
212
|
protocolV2Codec_encodeFrame as encodeFrame,
|
|
137
213
|
protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
|
|
138
214
|
protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
|
|
215
|
+
protocolV2Codec_ProtoV2FrameHeader as ProtoV2FrameHeader,
|
|
216
|
+
protocolV2Codec_inspectFrameHeader as inspectFrameHeader,
|
|
217
|
+
protocolV2Codec_isAckFrame as isAckFrame,
|
|
139
218
|
protocolV2Codec_decodeFrame as decodeFrame,
|
|
219
|
+
protocolV2Codec_ProtocolV2LinkErrorCode as ProtocolV2LinkErrorCode,
|
|
220
|
+
protocolV2Codec_ProtocolV2LinkError as ProtocolV2LinkError,
|
|
221
|
+
protocolV2Codec_isProtocolV2LinkError as isProtocolV2LinkError,
|
|
140
222
|
protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
|
|
141
223
|
protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
|
|
224
|
+
protocolV2Codec_ProtocolV2BleFrameWriterOptions as ProtocolV2BleFrameWriterOptions,
|
|
225
|
+
protocolV2Codec_writeProtocolV2BleFrame as writeProtocolV2BleFrame,
|
|
142
226
|
};
|
|
143
227
|
}
|
|
144
228
|
|
|
@@ -150,10 +234,8 @@ type ProtocolV2Schemas$1 = {
|
|
|
150
234
|
type ProtocolV2FrameOptions = {
|
|
151
235
|
packetSrc?: number;
|
|
152
236
|
router?: number;
|
|
237
|
+
/** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
|
|
153
238
|
seq?: number;
|
|
154
|
-
logger?: ProtocolV2DebugLogger;
|
|
155
|
-
logPrefix?: string;
|
|
156
|
-
context?: string;
|
|
157
239
|
};
|
|
158
240
|
declare const ProtocolV1: {
|
|
159
241
|
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
@@ -167,8 +249,20 @@ declare const ProtocolV1: {
|
|
|
167
249
|
decodeMessage: typeof decodeMessage;
|
|
168
250
|
};
|
|
169
251
|
declare const ProtocolV2: {
|
|
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
|
+
};
|
|
170
264
|
encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
|
|
171
|
-
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array
|
|
265
|
+
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
172
266
|
message: {
|
|
173
267
|
[key: string]: any;
|
|
174
268
|
};
|
|
@@ -180,6 +274,14 @@ declare const ProtocolV2: {
|
|
|
180
274
|
};
|
|
181
275
|
};
|
|
182
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
|
+
};
|
|
183
285
|
type ProtocolType = 'V1' | 'V2';
|
|
184
286
|
type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
|
|
185
287
|
type OneKeyUsbDeviceInfo = {
|
|
@@ -206,16 +308,25 @@ type AcquireInput = {
|
|
|
206
308
|
uuid?: string;
|
|
207
309
|
forceCleanRunPromise?: boolean;
|
|
208
310
|
expectedProtocol?: ProtocolType;
|
|
311
|
+
protocolHint?: ProtocolType;
|
|
209
312
|
};
|
|
210
313
|
type MessageFromOneKey = {
|
|
211
314
|
type: string;
|
|
212
315
|
message: Record<string, any>;
|
|
213
316
|
};
|
|
317
|
+
type TransportWriteMetrics = {
|
|
318
|
+
elapsedMs: number;
|
|
319
|
+
frameBytes: number;
|
|
320
|
+
};
|
|
214
321
|
type TransportCallOptions = {
|
|
215
322
|
timeoutMs?: number;
|
|
216
323
|
expectedTypes?: string[];
|
|
217
324
|
intermediateTypes?: string[];
|
|
218
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;
|
|
219
330
|
};
|
|
220
331
|
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
221
332
|
type Transport = {
|
|
@@ -233,7 +344,7 @@ type Transport = {
|
|
|
233
344
|
getProtocolType: (path: string) => ProtocolType | undefined;
|
|
234
345
|
promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
|
|
235
346
|
init: ITransportInitFn;
|
|
236
|
-
stop(): void
|
|
347
|
+
stop(): void | Promise<void>;
|
|
237
348
|
configured: boolean;
|
|
238
349
|
version: string;
|
|
239
350
|
name: string;
|
|
@@ -246,8 +357,10 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
|
|
|
246
357
|
};
|
|
247
358
|
type LowlevelTransportSharedPlugin = {
|
|
248
359
|
enumerate: () => Promise<LowLevelDevice[]>;
|
|
249
|
-
send: (uuid: string, data: string
|
|
250
|
-
|
|
360
|
+
send: (uuid: string, data: string, options?: {
|
|
361
|
+
withoutResponse?: boolean;
|
|
362
|
+
}) => Promise<void>;
|
|
363
|
+
receive: (uuid?: string) => Promise<string>;
|
|
251
364
|
connect: (uuid: string) => Promise<void>;
|
|
252
365
|
disconnect: (uuid: string) => Promise<void>;
|
|
253
366
|
init: () => Promise<void>;
|
|
@@ -1903,11 +2016,17 @@ type KaspaAddress = {
|
|
|
1903
2016
|
};
|
|
1904
2017
|
type KaspaSignTx = {
|
|
1905
2018
|
address_n: number[];
|
|
1906
|
-
raw_message
|
|
2019
|
+
raw_message?: string;
|
|
1907
2020
|
scheme?: string;
|
|
1908
2021
|
prefix?: string;
|
|
1909
2022
|
input_count?: number;
|
|
1910
2023
|
use_tweak?: boolean;
|
|
2024
|
+
output_count?: number;
|
|
2025
|
+
version?: number;
|
|
2026
|
+
lock_time?: number;
|
|
2027
|
+
subnetwork_id?: string;
|
|
2028
|
+
gas?: number;
|
|
2029
|
+
payload_length?: number;
|
|
1911
2030
|
};
|
|
1912
2031
|
type KaspaTxInputRequest = {
|
|
1913
2032
|
request_index: number;
|
|
@@ -1917,6 +2036,77 @@ type KaspaTxInputAck = {
|
|
|
1917
2036
|
address_n: number[];
|
|
1918
2037
|
raw_message: string;
|
|
1919
2038
|
};
|
|
2039
|
+
type KaspaOutpoint = {
|
|
2040
|
+
tx_id: string;
|
|
2041
|
+
index: number;
|
|
2042
|
+
};
|
|
2043
|
+
declare enum Enum_KaspaInputScriptType {
|
|
2044
|
+
KASPA_SPEND_P2PK_SCHNORR = 0,
|
|
2045
|
+
KASPA_SPEND_P2PK_ECDSA = 1
|
|
2046
|
+
}
|
|
2047
|
+
type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
|
|
2048
|
+
declare enum Enum_KaspaOutputScriptType {
|
|
2049
|
+
KASPA_PAYTOADDRESS = 0,
|
|
2050
|
+
KASPA_PAYTOCHANGE = 1
|
|
2051
|
+
}
|
|
2052
|
+
type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
|
|
2053
|
+
declare enum Enum_KaspaRequestType {
|
|
2054
|
+
KASPA_TX_INPUT = 0,
|
|
2055
|
+
KASPA_TX_OUTPUT = 1,
|
|
2056
|
+
KASPA_TX_PAYLOAD = 2,
|
|
2057
|
+
KASPA_TX_FINISHED = 3,
|
|
2058
|
+
KASPA_TX_PREV_META = 4
|
|
2059
|
+
}
|
|
2060
|
+
type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
|
|
2061
|
+
type KaspaTxRequestSignature = {
|
|
2062
|
+
signature_index: number;
|
|
2063
|
+
signature: string;
|
|
2064
|
+
};
|
|
2065
|
+
type KaspaTxRequest = {
|
|
2066
|
+
request_type: KaspaRequestType;
|
|
2067
|
+
request_index?: number;
|
|
2068
|
+
signature?: KaspaTxRequestSignature;
|
|
2069
|
+
request_payload_length?: number;
|
|
2070
|
+
prev_tx_id?: string;
|
|
2071
|
+
};
|
|
2072
|
+
type KaspaTxAckInput = {
|
|
2073
|
+
address_n: number[];
|
|
2074
|
+
previous_outpoint: KaspaOutpoint;
|
|
2075
|
+
amount: UintType;
|
|
2076
|
+
sequence: number;
|
|
2077
|
+
sig_op_count: number;
|
|
2078
|
+
script_type?: KaspaInputScriptType;
|
|
2079
|
+
use_tweak?: boolean;
|
|
2080
|
+
};
|
|
2081
|
+
type KaspaTxAckOutput = {
|
|
2082
|
+
script_type?: KaspaOutputScriptType;
|
|
2083
|
+
amount: UintType;
|
|
2084
|
+
address_n: number[];
|
|
2085
|
+
address?: string;
|
|
2086
|
+
scheme?: string;
|
|
2087
|
+
use_tweak?: boolean;
|
|
2088
|
+
};
|
|
2089
|
+
type KaspaTxAckPayloadChunk = {
|
|
2090
|
+
payload_chunk: string;
|
|
2091
|
+
};
|
|
2092
|
+
type KaspaTxAckPrevMeta = {
|
|
2093
|
+
version: number;
|
|
2094
|
+
input_count: number;
|
|
2095
|
+
output_count: number;
|
|
2096
|
+
lock_time: number;
|
|
2097
|
+
subnetwork_id: string;
|
|
2098
|
+
gas: number;
|
|
2099
|
+
payload_length: number;
|
|
2100
|
+
};
|
|
2101
|
+
type KaspaTxAckPrevInput = {
|
|
2102
|
+
previous_outpoint: KaspaOutpoint;
|
|
2103
|
+
sequence: number;
|
|
2104
|
+
};
|
|
2105
|
+
type KaspaTxAckPrevOutput = {
|
|
2106
|
+
amount: UintType;
|
|
2107
|
+
script_version: number;
|
|
2108
|
+
script_public_key: string;
|
|
2109
|
+
};
|
|
1920
2110
|
type KaspaSignedTx = {
|
|
1921
2111
|
signature: string;
|
|
1922
2112
|
};
|
|
@@ -1943,7 +2133,7 @@ declare enum Enum_SafetyCheckLevel {
|
|
|
1943
2133
|
PromptAlways = 1,
|
|
1944
2134
|
PromptTemporarily = 2
|
|
1945
2135
|
}
|
|
1946
|
-
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
|
|
2136
|
+
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
|
|
1947
2137
|
type Initialize = {
|
|
1948
2138
|
session_id?: string;
|
|
1949
2139
|
_skip_passphrase?: boolean;
|
|
@@ -2082,6 +2272,19 @@ type Features = {
|
|
|
2082
2272
|
onekey_se04_state?: string | null;
|
|
2083
2273
|
attach_to_pin_user?: boolean;
|
|
2084
2274
|
unlocked_attach_pin?: boolean;
|
|
2275
|
+
coprocessor_bt_name?: string;
|
|
2276
|
+
coprocessor_version?: string;
|
|
2277
|
+
coprocessor_bt_enable?: boolean;
|
|
2278
|
+
romloader_version?: string;
|
|
2279
|
+
onekey_romloader_version?: string;
|
|
2280
|
+
onekey_romloader_hash?: string;
|
|
2281
|
+
onekey_bootloader_version?: string;
|
|
2282
|
+
onekey_bootloader_hash?: string;
|
|
2283
|
+
onekey_bootloader_build_id?: string;
|
|
2284
|
+
onekey_coprocessor_bt_name?: string;
|
|
2285
|
+
onekey_coprocessor_version?: string;
|
|
2286
|
+
onekey_coprocessor_build_id?: string;
|
|
2287
|
+
onekey_coprocessor_hash?: string;
|
|
2085
2288
|
};
|
|
2086
2289
|
type OnekeyFeatures = {
|
|
2087
2290
|
onekey_device_type?: OneKeyDeviceType;
|
|
@@ -2433,8 +2636,6 @@ type UnLockDeviceResponse = {
|
|
|
2433
2636
|
};
|
|
2434
2637
|
type GetPassphraseState = {
|
|
2435
2638
|
passphrase_state?: string;
|
|
2436
|
-
_only_main_pin?: boolean;
|
|
2437
|
-
allow_create_attach_pin?: boolean;
|
|
2438
2639
|
};
|
|
2439
2640
|
type PassphraseState = {
|
|
2440
2641
|
passphrase_state?: string;
|
|
@@ -3606,16 +3807,12 @@ type TxAckPaymentRequest = {
|
|
|
3606
3807
|
amount?: UintType;
|
|
3607
3808
|
signature: string;
|
|
3608
3809
|
};
|
|
3609
|
-
type
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
type StartSession = {
|
|
3616
|
-
session_id?: string;
|
|
3617
|
-
_skip_passphrase?: boolean;
|
|
3618
|
-
derive_cardano?: boolean;
|
|
3810
|
+
type EthereumSignTypedDataQR = {
|
|
3811
|
+
address_n: number[];
|
|
3812
|
+
json_data?: string;
|
|
3813
|
+
chain_id?: number;
|
|
3814
|
+
metamask_v4_compat?: boolean;
|
|
3815
|
+
request_id?: string;
|
|
3619
3816
|
};
|
|
3620
3817
|
type SetBusy = {
|
|
3621
3818
|
expiry_ms?: number;
|
|
@@ -3633,21 +3830,6 @@ type Nonce = {
|
|
|
3633
3830
|
type WriteSEPrivateKey = {
|
|
3634
3831
|
private_key: string;
|
|
3635
3832
|
};
|
|
3636
|
-
declare enum WallpaperTarget {
|
|
3637
|
-
Home = 0,
|
|
3638
|
-
Lock = 1
|
|
3639
|
-
}
|
|
3640
|
-
type SetWallpaper = {
|
|
3641
|
-
target: WallpaperTarget;
|
|
3642
|
-
path: string;
|
|
3643
|
-
};
|
|
3644
|
-
type GetWallpaper = {
|
|
3645
|
-
target: WallpaperTarget;
|
|
3646
|
-
};
|
|
3647
|
-
type Wallpaper = {
|
|
3648
|
-
target: WallpaperTarget;
|
|
3649
|
-
path: string;
|
|
3650
|
-
};
|
|
3651
3833
|
type UnlockPath = {
|
|
3652
3834
|
address_n: number[];
|
|
3653
3835
|
mac?: string;
|
|
@@ -3661,44 +3843,40 @@ declare enum MoneroNetworkType {
|
|
|
3661
3843
|
STAGENET = 2,
|
|
3662
3844
|
FAKECHAIN = 3
|
|
3663
3845
|
}
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
};
|
|
3668
|
-
type ViewDetail = {
|
|
3669
|
-
key: number;
|
|
3670
|
-
value: string;
|
|
3671
|
-
is_overview: boolean;
|
|
3672
|
-
has_icon: boolean;
|
|
3673
|
-
};
|
|
3674
|
-
declare enum ViewTipType {
|
|
3675
|
-
Default = 0,
|
|
3676
|
-
Highlight = 1,
|
|
3677
|
-
Recommend = 2,
|
|
3678
|
-
Warning = 3,
|
|
3679
|
-
Danger = 4
|
|
3846
|
+
declare enum UiAnimationType {
|
|
3847
|
+
Unknown = 0,
|
|
3848
|
+
Signing = 1
|
|
3680
3849
|
}
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3850
|
+
declare enum UiAnimationCommand {
|
|
3851
|
+
CommandUnknown = 0,
|
|
3852
|
+
Start = 1,
|
|
3853
|
+
Stop = 2,
|
|
3854
|
+
Refresh = 3
|
|
3855
|
+
}
|
|
3856
|
+
type UiAnimationRequest = {
|
|
3857
|
+
command: UiAnimationCommand;
|
|
3858
|
+
type?: UiAnimationType;
|
|
3690
3859
|
};
|
|
3691
|
-
type
|
|
3692
|
-
|
|
3693
|
-
address: string;
|
|
3694
|
-
path: string;
|
|
3860
|
+
type ProtocolInfoRequest = {
|
|
3861
|
+
eventless_wallet_session?: boolean;
|
|
3695
3862
|
};
|
|
3696
|
-
type ProtocolInfoRequest = {};
|
|
3697
3863
|
type ProtocolInfo = {
|
|
3698
3864
|
version: number;
|
|
3865
|
+
build_fingerprint: string;
|
|
3699
3866
|
supported_messages: number[];
|
|
3700
|
-
protobuf_definition?: string;
|
|
3701
3867
|
};
|
|
3868
|
+
declare enum DeviceErrorCode {
|
|
3869
|
+
DeviceError_None = 0,
|
|
3870
|
+
DeviceError_Busy = 1,
|
|
3871
|
+
DeviceError_NotInitialized = 2,
|
|
3872
|
+
DeviceError_ActionCancelled = 3,
|
|
3873
|
+
DeviceError_PinAlreadyUsed = 4,
|
|
3874
|
+
DeviceError_PersistFailed = 5,
|
|
3875
|
+
DeviceError_SeError = 6,
|
|
3876
|
+
DeviceError_InvalidLanguage = 7,
|
|
3877
|
+
DeviceError_WallpaperNotUsable = 8,
|
|
3878
|
+
DeviceError_DeviceLocked = 9
|
|
3879
|
+
}
|
|
3702
3880
|
declare enum DeviceRebootType {
|
|
3703
3881
|
Normal = 0,
|
|
3704
3882
|
Romloader = 1,
|
|
@@ -3708,14 +3886,37 @@ type DeviceReboot = {
|
|
|
3708
3886
|
reboot_type: DeviceRebootType;
|
|
3709
3887
|
};
|
|
3710
3888
|
type DeviceSettings = {
|
|
3711
|
-
label?: string;
|
|
3712
3889
|
bt_enable?: boolean;
|
|
3713
3890
|
language?: string;
|
|
3891
|
+
wallpaper_path?: string;
|
|
3892
|
+
brightness?: number;
|
|
3893
|
+
animation_enable?: boolean;
|
|
3894
|
+
tap_to_wake?: boolean;
|
|
3895
|
+
haptic_feedback?: boolean;
|
|
3896
|
+
device_name_display_enabled?: boolean;
|
|
3897
|
+
airgap_mode?: boolean;
|
|
3898
|
+
usb_lock_enable?: boolean;
|
|
3899
|
+
random_keypad?: boolean;
|
|
3900
|
+
passphrase_enable?: boolean;
|
|
3901
|
+
fido_enabled?: boolean;
|
|
3902
|
+
autolock_delay_ms?: number;
|
|
3903
|
+
autoshutdown_delay_ms?: number;
|
|
3904
|
+
label?: string;
|
|
3714
3905
|
};
|
|
3715
3906
|
type DeviceSettingsGet = {};
|
|
3716
3907
|
type DeviceSettingsSet = {
|
|
3717
3908
|
settings: DeviceSettings;
|
|
3718
3909
|
};
|
|
3910
|
+
declare enum DeviceSettingsPage {
|
|
3911
|
+
DeviceReset = 0,
|
|
3912
|
+
DevicePinChange = 1,
|
|
3913
|
+
DevicePassphrase = 2,
|
|
3914
|
+
DeviceAirgap = 3
|
|
3915
|
+
}
|
|
3916
|
+
type DeviceSettingsPageShow = {
|
|
3917
|
+
page: DeviceSettingsPage;
|
|
3918
|
+
field_name?: string;
|
|
3919
|
+
};
|
|
3719
3920
|
type DeviceCertificate = {
|
|
3720
3921
|
cert_and_pubkey: string;
|
|
3721
3922
|
private_key?: string;
|
|
@@ -3730,6 +3931,39 @@ type DeviceCertificateSignature = {
|
|
|
3730
3931
|
type DeviceCertificateSign = {
|
|
3731
3932
|
data: string;
|
|
3732
3933
|
};
|
|
3934
|
+
type DeviceMiscUsbMscControl = {
|
|
3935
|
+
enable: boolean;
|
|
3936
|
+
};
|
|
3937
|
+
declare enum DeviceFactoryAck {
|
|
3938
|
+
FACTORY_ACK_SUCCESS = 0,
|
|
3939
|
+
FACTORY_ACK_FAIL = 1
|
|
3940
|
+
}
|
|
3941
|
+
type DeviceFactoryInfoManufactureTime = {
|
|
3942
|
+
year: number;
|
|
3943
|
+
month: number;
|
|
3944
|
+
day: number;
|
|
3945
|
+
hour: number;
|
|
3946
|
+
minute: number;
|
|
3947
|
+
second: number;
|
|
3948
|
+
};
|
|
3949
|
+
type DeviceFactoryInfo = {
|
|
3950
|
+
version?: number;
|
|
3951
|
+
serial_number?: string;
|
|
3952
|
+
burn_in_completed?: boolean;
|
|
3953
|
+
factory_test_completed?: boolean;
|
|
3954
|
+
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3955
|
+
};
|
|
3956
|
+
type DeviceFactoryInfoSet = {
|
|
3957
|
+
info: DeviceFactoryInfo;
|
|
3958
|
+
};
|
|
3959
|
+
type DeviceFactoryInfoGet = {};
|
|
3960
|
+
type DeviceFactoryPermanentLock = {
|
|
3961
|
+
check_a: string;
|
|
3962
|
+
check_b: string;
|
|
3963
|
+
};
|
|
3964
|
+
type DeviceFactoryTest = {
|
|
3965
|
+
burn_in_test: boolean;
|
|
3966
|
+
};
|
|
3733
3967
|
declare enum DeviceFirmwareTargetType {
|
|
3734
3968
|
FW_MGMT_TARGET_INVALID = 0,
|
|
3735
3969
|
FW_MGMT_TARGET_CRATE = 1,
|
|
@@ -3780,36 +4014,6 @@ type DeviceFirmwareUpdateStatusGet = {
|
|
|
3780
4014
|
type DeviceFirmwareUpdateStatus = {
|
|
3781
4015
|
records: DeviceFirmwareUpdateRecord[];
|
|
3782
4016
|
};
|
|
3783
|
-
declare enum DeviceFactoryAck {
|
|
3784
|
-
FACTORY_ACK_SUCCESS = 0,
|
|
3785
|
-
FACTORY_ACK_FAIL = 1
|
|
3786
|
-
}
|
|
3787
|
-
type DeviceFactoryInfoManufactureTime = {
|
|
3788
|
-
year: number;
|
|
3789
|
-
month: number;
|
|
3790
|
-
day: number;
|
|
3791
|
-
hour: number;
|
|
3792
|
-
minute: number;
|
|
3793
|
-
second: number;
|
|
3794
|
-
};
|
|
3795
|
-
type DeviceFactoryInfo = {
|
|
3796
|
-
version?: number;
|
|
3797
|
-
serial_number?: string;
|
|
3798
|
-
burn_in_completed?: boolean;
|
|
3799
|
-
factory_test_completed?: boolean;
|
|
3800
|
-
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3801
|
-
};
|
|
3802
|
-
type DeviceFactoryInfoSet = {
|
|
3803
|
-
info: DeviceFactoryInfo;
|
|
3804
|
-
};
|
|
3805
|
-
type DeviceFactoryInfoGet = {};
|
|
3806
|
-
type DeviceFactoryPermanentLock = {
|
|
3807
|
-
check_a: string;
|
|
3808
|
-
check_b: string;
|
|
3809
|
-
};
|
|
3810
|
-
type DeviceFactoryTest = {
|
|
3811
|
-
burn_in_test: boolean;
|
|
3812
|
-
};
|
|
3813
4017
|
declare enum DeviceType {
|
|
3814
4018
|
CLASSIC1 = 0,
|
|
3815
4019
|
CLASSIC1S = 1,
|
|
@@ -3866,7 +4070,6 @@ type DeviceInfoTargets = {
|
|
|
3866
4070
|
se2?: boolean;
|
|
3867
4071
|
se3?: boolean;
|
|
3868
4072
|
se4?: boolean;
|
|
3869
|
-
status?: boolean;
|
|
3870
4073
|
};
|
|
3871
4074
|
type DeviceInfoTypes = {
|
|
3872
4075
|
version?: boolean;
|
|
@@ -3887,15 +4090,43 @@ type ProtocolV2DeviceInfo = {
|
|
|
3887
4090
|
se2?: DeviceSEInfo;
|
|
3888
4091
|
se3?: DeviceSEInfo;
|
|
3889
4092
|
se4?: DeviceSEInfo;
|
|
3890
|
-
status?: DeviceStatus;
|
|
3891
4093
|
};
|
|
4094
|
+
declare enum DeviceSessionErrorCode {
|
|
4095
|
+
DeviceSessionError_None = 0,
|
|
4096
|
+
DeviceSessionError_UserCancelled = 1,
|
|
4097
|
+
DeviceSessionError_InvalidSession = 2,
|
|
4098
|
+
DeviceSessionError_AttachPinUnavailable = 3,
|
|
4099
|
+
DeviceSessionError_PassphraseDisabled = 4,
|
|
4100
|
+
DeviceSessionError_Busy = 5
|
|
4101
|
+
}
|
|
4102
|
+
declare enum DeviceSessionSeedDomain {
|
|
4103
|
+
SeedDomain_Standard = 1,
|
|
4104
|
+
SeedDomain_Cardano = 2
|
|
4105
|
+
}
|
|
3892
4106
|
type DeviceSessionGet = {
|
|
3893
4107
|
session_id?: string;
|
|
4108
|
+
btc_test_address?: string;
|
|
4109
|
+
seed_domains: DeviceSessionSeedDomain[];
|
|
3894
4110
|
};
|
|
3895
4111
|
type DeviceSession = {
|
|
3896
4112
|
session_id?: string;
|
|
3897
4113
|
btc_test_address?: string;
|
|
3898
4114
|
};
|
|
4115
|
+
declare enum DeviceSessionPinType {
|
|
4116
|
+
Any = 1,
|
|
4117
|
+
Main = 2,
|
|
4118
|
+
AttachToPin = 3
|
|
4119
|
+
}
|
|
4120
|
+
type DeviceSessionAskPin = {
|
|
4121
|
+
type?: DeviceSessionPinType;
|
|
4122
|
+
};
|
|
4123
|
+
type DeviceSessionAskPassphrase = {
|
|
4124
|
+
passphrase?: string;
|
|
4125
|
+
on_device: boolean;
|
|
4126
|
+
};
|
|
4127
|
+
declare enum DeviceSessionAskPin_FailureSubCodes {
|
|
4128
|
+
UserCancel = 1
|
|
4129
|
+
}
|
|
3899
4130
|
type DeviceStatus = {
|
|
3900
4131
|
device_id?: string;
|
|
3901
4132
|
unlocked?: boolean;
|
|
@@ -3905,6 +4136,7 @@ type DeviceStatus = {
|
|
|
3905
4136
|
attach_to_pin_enabled?: boolean;
|
|
3906
4137
|
unlocked_by_attach_to_pin?: boolean;
|
|
3907
4138
|
};
|
|
4139
|
+
type DeviceStatusGet = {};
|
|
3908
4140
|
type FilesystemPermissionFix = {};
|
|
3909
4141
|
type FilesystemPathInfo = {
|
|
3910
4142
|
exist: boolean;
|
|
@@ -3961,7 +4193,146 @@ type FilesystemDirMake = {
|
|
|
3961
4193
|
type FilesystemDirRemove = {
|
|
3962
4194
|
path: string;
|
|
3963
4195
|
};
|
|
3964
|
-
type FilesystemFormat = {
|
|
4196
|
+
type FilesystemFormat = {
|
|
4197
|
+
data: boolean;
|
|
4198
|
+
user: boolean;
|
|
4199
|
+
};
|
|
4200
|
+
type InternalMyAddressRequest = {
|
|
4201
|
+
coin_type: number;
|
|
4202
|
+
chain_id: number;
|
|
4203
|
+
account_index: number;
|
|
4204
|
+
derive_type: number;
|
|
4205
|
+
};
|
|
4206
|
+
type NftUpdate = {
|
|
4207
|
+
file_name_no_ext: string;
|
|
4208
|
+
};
|
|
4209
|
+
declare enum OnboardingStep {
|
|
4210
|
+
ONBOARDING_STEP_UNKNOWN = 0,
|
|
4211
|
+
ONBOARDING_STEP_CHECKING = 1,
|
|
4212
|
+
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
4213
|
+
ONBOARDING_STEP_PIN = 3,
|
|
4214
|
+
ONBOARDING_STEP_SETUP = 4,
|
|
4215
|
+
ONBOARDING_STEP_DONE = 5
|
|
4216
|
+
}
|
|
4217
|
+
declare enum OnboardingPhase {
|
|
4218
|
+
ONBOARDING_PHASE_UNKNOWN = 0,
|
|
4219
|
+
ONBOARDING_PHASE_SAFETY_CHECK = 1,
|
|
4220
|
+
ONBOARDING_PHASE_PIN_SETUP = 2,
|
|
4221
|
+
ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
|
|
4222
|
+
ONBOARDING_PHASE_SETUP_CHOICE = 4,
|
|
4223
|
+
ONBOARDING_PHASE_WALLET_CREATE_START = 5,
|
|
4224
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
|
|
4225
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
|
|
4226
|
+
ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
|
|
4227
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
|
|
4228
|
+
ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
|
|
4229
|
+
ONBOARDING_PHASE_WALLET_READY = 11,
|
|
4230
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
|
|
4231
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
|
|
4232
|
+
}
|
|
4233
|
+
declare enum OnboardingSetupKind {
|
|
4234
|
+
ONBOARDING_SETUP_KIND_UNKNOWN = 0,
|
|
4235
|
+
ONBOARDING_SETUP_KIND_CHOICE = 1,
|
|
4236
|
+
ONBOARDING_SETUP_KIND_CREATE = 2,
|
|
4237
|
+
ONBOARDING_SETUP_KIND_RESTORE = 3
|
|
4238
|
+
}
|
|
4239
|
+
declare enum OnboardingSetupMethod {
|
|
4240
|
+
ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
|
|
4241
|
+
ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
|
|
4242
|
+
ONBOARDING_SETUP_METHOD_SEEDCARD = 2
|
|
4243
|
+
}
|
|
4244
|
+
type OnboardingSetupStatus = {
|
|
4245
|
+
kind?: OnboardingSetupKind;
|
|
4246
|
+
method?: OnboardingSetupMethod;
|
|
4247
|
+
};
|
|
4248
|
+
type OnboardingStatusGet = {};
|
|
4249
|
+
type OnboardingStatus = {
|
|
4250
|
+
step?: OnboardingStep;
|
|
4251
|
+
phase?: OnboardingPhase;
|
|
4252
|
+
setup?: OnboardingSetupStatus;
|
|
4253
|
+
pin_set?: boolean;
|
|
4254
|
+
wallet_initialized?: boolean;
|
|
4255
|
+
};
|
|
4256
|
+
type PortfolioUpdate = {};
|
|
4257
|
+
type ViewAmount = {
|
|
4258
|
+
is_unlimited: boolean;
|
|
4259
|
+
num: string;
|
|
4260
|
+
};
|
|
4261
|
+
type ViewDetail = {
|
|
4262
|
+
key: number;
|
|
4263
|
+
value: string;
|
|
4264
|
+
is_overview: boolean;
|
|
4265
|
+
has_icon: boolean;
|
|
4266
|
+
};
|
|
4267
|
+
declare enum ViewTipType {
|
|
4268
|
+
Default = 0,
|
|
4269
|
+
Highlight = 1,
|
|
4270
|
+
Recommend = 2,
|
|
4271
|
+
Warning = 3,
|
|
4272
|
+
Danger = 4
|
|
4273
|
+
}
|
|
4274
|
+
type ViewTip = {
|
|
4275
|
+
type: ViewTipType;
|
|
4276
|
+
text: string;
|
|
4277
|
+
};
|
|
4278
|
+
type ViewRawData = {
|
|
4279
|
+
initial_data: string;
|
|
4280
|
+
placeholder: number;
|
|
4281
|
+
};
|
|
4282
|
+
declare enum ViewSignLayout {
|
|
4283
|
+
LayoutDefault = 0,
|
|
4284
|
+
LayoutSafeTxCreate = 1,
|
|
4285
|
+
LayoutFinalConfirm = 2,
|
|
4286
|
+
Layout7702 = 3,
|
|
4287
|
+
LayoutFlat = 4,
|
|
4288
|
+
LayoutEthApprove = 5
|
|
4289
|
+
}
|
|
4290
|
+
type ViewSignPage = {
|
|
4291
|
+
title: string;
|
|
4292
|
+
amount?: UintType;
|
|
4293
|
+
general: ViewDetail[];
|
|
4294
|
+
tip?: ViewTip;
|
|
4295
|
+
raw_data?: ViewRawData;
|
|
4296
|
+
slide_to_confirm?: boolean;
|
|
4297
|
+
layout?: ViewSignLayout;
|
|
4298
|
+
};
|
|
4299
|
+
type ViewVerifyPage = {
|
|
4300
|
+
title: string;
|
|
4301
|
+
address: string;
|
|
4302
|
+
path: string;
|
|
4303
|
+
network?: string;
|
|
4304
|
+
derive_type?: string;
|
|
4305
|
+
value_key?: number;
|
|
4306
|
+
};
|
|
4307
|
+
declare enum ProtocolV2FailureType {
|
|
4308
|
+
Failure_InvalidMessage = 1,
|
|
4309
|
+
Failure_UndefinedError = 2,
|
|
4310
|
+
Failure_UsageError = 3,
|
|
4311
|
+
Failure_DataError = 4,
|
|
4312
|
+
Failure_ProcessError = 5
|
|
4313
|
+
}
|
|
4314
|
+
declare enum Enum_ProtocolV2Capability {
|
|
4315
|
+
Capability_Bitcoin = 1,
|
|
4316
|
+
Capability_Bitcoin_like = 2,
|
|
4317
|
+
Capability_Binance = 3,
|
|
4318
|
+
Capability_Cardano = 4,
|
|
4319
|
+
Capability_Crypto = 5,
|
|
4320
|
+
Capability_EOS = 6,
|
|
4321
|
+
Capability_Ethereum = 7,
|
|
4322
|
+
Capability_Lisk = 8,
|
|
4323
|
+
Capability_Monero = 9,
|
|
4324
|
+
Capability_NEM = 10,
|
|
4325
|
+
Capability_Ripple = 11,
|
|
4326
|
+
Capability_Stellar = 12,
|
|
4327
|
+
Capability_Tezos = 13,
|
|
4328
|
+
Capability_U2F = 14,
|
|
4329
|
+
Capability_Shamir = 15,
|
|
4330
|
+
Capability_ShamirGroups = 16,
|
|
4331
|
+
Capability_PassphraseEntry = 17,
|
|
4332
|
+
Capability_AttachToPin = 18,
|
|
4333
|
+
Capability_EthereumTypedData = 1000
|
|
4334
|
+
}
|
|
4335
|
+
type ProtocolV2Capability = keyof typeof Enum_ProtocolV2Capability;
|
|
3965
4336
|
type MessageType = {
|
|
3966
4337
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
3967
4338
|
AlephiumAddress: AlephiumAddress;
|
|
@@ -4236,6 +4607,15 @@ type MessageType = {
|
|
|
4236
4607
|
KaspaSignTx: KaspaSignTx;
|
|
4237
4608
|
KaspaTxInputRequest: KaspaTxInputRequest;
|
|
4238
4609
|
KaspaTxInputAck: KaspaTxInputAck;
|
|
4610
|
+
KaspaOutpoint: KaspaOutpoint;
|
|
4611
|
+
KaspaTxRequestSignature: KaspaTxRequestSignature;
|
|
4612
|
+
KaspaTxRequest: KaspaTxRequest;
|
|
4613
|
+
KaspaTxAckInput: KaspaTxAckInput;
|
|
4614
|
+
KaspaTxAckOutput: KaspaTxAckOutput;
|
|
4615
|
+
KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
|
|
4616
|
+
KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
|
|
4617
|
+
KaspaTxAckPrevInput: KaspaTxAckPrevInput;
|
|
4618
|
+
KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
|
|
4239
4619
|
KaspaSignedTx: KaspaSignedTx;
|
|
4240
4620
|
LnurlAuth: LnurlAuth;
|
|
4241
4621
|
LnurlAuthResp: LnurlAuthResp;
|
|
@@ -4525,47 +4905,41 @@ type MessageType = {
|
|
|
4525
4905
|
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
4526
4906
|
PaymentRequestMemo: PaymentRequestMemo;
|
|
4527
4907
|
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4528
|
-
|
|
4529
|
-
StartSession: StartSession;
|
|
4908
|
+
EthereumSignTypedDataQR: EthereumSignTypedDataQR;
|
|
4530
4909
|
SetBusy: SetBusy;
|
|
4531
4910
|
GetFirmwareHash: GetFirmwareHash;
|
|
4532
4911
|
FirmwareHash: FirmwareHash;
|
|
4533
4912
|
GetNonce: GetNonce;
|
|
4534
4913
|
Nonce: Nonce;
|
|
4535
4914
|
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4536
|
-
SetWallpaper: SetWallpaper;
|
|
4537
|
-
GetWallpaper: GetWallpaper;
|
|
4538
|
-
Wallpaper: Wallpaper;
|
|
4539
4915
|
UnlockPath: UnlockPath;
|
|
4540
4916
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4541
|
-
|
|
4542
|
-
ViewDetail: ViewDetail;
|
|
4543
|
-
ViewTip: ViewTip;
|
|
4544
|
-
ViewSignPage: ViewSignPage;
|
|
4545
|
-
ViewVerifyPage: ViewVerifyPage;
|
|
4917
|
+
UiAnimationRequest: UiAnimationRequest;
|
|
4546
4918
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
4547
4919
|
ProtocolInfo: ProtocolInfo;
|
|
4548
4920
|
DeviceReboot: DeviceReboot;
|
|
4549
4921
|
DeviceSettings: DeviceSettings;
|
|
4550
4922
|
DeviceSettingsGet: DeviceSettingsGet;
|
|
4551
4923
|
DeviceSettingsSet: DeviceSettingsSet;
|
|
4924
|
+
DeviceSettingsPageShow: DeviceSettingsPageShow;
|
|
4552
4925
|
DeviceCertificate: DeviceCertificate;
|
|
4553
4926
|
DeviceCertificateWrite: DeviceCertificateWrite;
|
|
4554
4927
|
DeviceCertificateRead: DeviceCertificateRead;
|
|
4555
4928
|
DeviceCertificateSignature: DeviceCertificateSignature;
|
|
4556
4929
|
DeviceCertificateSign: DeviceCertificateSign;
|
|
4557
|
-
|
|
4558
|
-
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4559
|
-
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4560
|
-
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4561
|
-
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4562
|
-
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4930
|
+
DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
|
|
4563
4931
|
DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
|
|
4564
4932
|
DeviceFactoryInfo: DeviceFactoryInfo;
|
|
4565
4933
|
DeviceFactoryInfoSet: DeviceFactoryInfoSet;
|
|
4566
4934
|
DeviceFactoryInfoGet: DeviceFactoryInfoGet;
|
|
4567
4935
|
DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
|
|
4568
4936
|
DeviceFactoryTest: DeviceFactoryTest;
|
|
4937
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4938
|
+
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4939
|
+
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4940
|
+
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4941
|
+
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4942
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4569
4943
|
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
4570
4944
|
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
4571
4945
|
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
@@ -4576,7 +4950,10 @@ type MessageType = {
|
|
|
4576
4950
|
DeviceInfoGet: DeviceInfoGet;
|
|
4577
4951
|
DeviceSessionGet: DeviceSessionGet;
|
|
4578
4952
|
DeviceSession: DeviceSession;
|
|
4953
|
+
DeviceSessionAskPin: DeviceSessionAskPin;
|
|
4954
|
+
DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
|
|
4579
4955
|
DeviceStatus: DeviceStatus;
|
|
4956
|
+
DeviceStatusGet: DeviceStatusGet;
|
|
4580
4957
|
FilesystemPermissionFix: FilesystemPermissionFix;
|
|
4581
4958
|
FilesystemPathInfo: FilesystemPathInfo;
|
|
4582
4959
|
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
@@ -4589,6 +4966,18 @@ type MessageType = {
|
|
|
4589
4966
|
FilesystemDirMake: FilesystemDirMake;
|
|
4590
4967
|
FilesystemDirRemove: FilesystemDirRemove;
|
|
4591
4968
|
FilesystemFormat: FilesystemFormat;
|
|
4969
|
+
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4970
|
+
NftUpdate: NftUpdate;
|
|
4971
|
+
OnboardingSetupStatus: OnboardingSetupStatus;
|
|
4972
|
+
OnboardingStatusGet: OnboardingStatusGet;
|
|
4973
|
+
OnboardingStatus: OnboardingStatus;
|
|
4974
|
+
PortfolioUpdate: PortfolioUpdate;
|
|
4975
|
+
ViewAmount: ViewAmount;
|
|
4976
|
+
ViewDetail: ViewDetail;
|
|
4977
|
+
ViewTip: ViewTip;
|
|
4978
|
+
ViewRawData: ViewRawData;
|
|
4979
|
+
ViewSignPage: ViewSignPage;
|
|
4980
|
+
ViewVerifyPage: ViewVerifyPage;
|
|
4592
4981
|
};
|
|
4593
4982
|
type MessageKey = keyof MessageType;
|
|
4594
4983
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -4945,6 +5334,24 @@ type messages_KaspaAddress = KaspaAddress;
|
|
|
4945
5334
|
type messages_KaspaSignTx = KaspaSignTx;
|
|
4946
5335
|
type messages_KaspaTxInputRequest = KaspaTxInputRequest;
|
|
4947
5336
|
type messages_KaspaTxInputAck = KaspaTxInputAck;
|
|
5337
|
+
type messages_KaspaOutpoint = KaspaOutpoint;
|
|
5338
|
+
type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
|
|
5339
|
+
declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
|
|
5340
|
+
type messages_KaspaInputScriptType = KaspaInputScriptType;
|
|
5341
|
+
type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
|
|
5342
|
+
declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
|
|
5343
|
+
type messages_KaspaOutputScriptType = KaspaOutputScriptType;
|
|
5344
|
+
type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
|
|
5345
|
+
declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
|
|
5346
|
+
type messages_KaspaRequestType = KaspaRequestType;
|
|
5347
|
+
type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
|
|
5348
|
+
type messages_KaspaTxRequest = KaspaTxRequest;
|
|
5349
|
+
type messages_KaspaTxAckInput = KaspaTxAckInput;
|
|
5350
|
+
type messages_KaspaTxAckOutput = KaspaTxAckOutput;
|
|
5351
|
+
type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
|
|
5352
|
+
type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
|
|
5353
|
+
type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
|
|
5354
|
+
type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
|
|
4948
5355
|
type messages_KaspaSignedTx = KaspaSignedTx;
|
|
4949
5356
|
type messages_LnurlAuth = LnurlAuth;
|
|
4950
5357
|
type messages_LnurlAuthResp = LnurlAuthResp;
|
|
@@ -5300,43 +5707,49 @@ type messages_RefundMemo = RefundMemo;
|
|
|
5300
5707
|
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
5301
5708
|
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5302
5709
|
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5303
|
-
type
|
|
5304
|
-
type messages_StartSession = StartSession;
|
|
5710
|
+
type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
|
|
5305
5711
|
type messages_SetBusy = SetBusy;
|
|
5306
5712
|
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5307
5713
|
type messages_FirmwareHash = FirmwareHash;
|
|
5308
5714
|
type messages_GetNonce = GetNonce;
|
|
5309
5715
|
type messages_Nonce = Nonce;
|
|
5310
5716
|
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5311
|
-
type messages_WallpaperTarget = WallpaperTarget;
|
|
5312
|
-
declare const messages_WallpaperTarget: typeof WallpaperTarget;
|
|
5313
|
-
type messages_SetWallpaper = SetWallpaper;
|
|
5314
|
-
type messages_GetWallpaper = GetWallpaper;
|
|
5315
|
-
type messages_Wallpaper = Wallpaper;
|
|
5316
5717
|
type messages_UnlockPath = UnlockPath;
|
|
5317
5718
|
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5318
5719
|
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5319
5720
|
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5320
|
-
type
|
|
5321
|
-
|
|
5322
|
-
type
|
|
5323
|
-
declare const
|
|
5324
|
-
type
|
|
5325
|
-
type messages_ViewSignPage = ViewSignPage;
|
|
5326
|
-
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5721
|
+
type messages_UiAnimationType = UiAnimationType;
|
|
5722
|
+
declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
5723
|
+
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5724
|
+
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5725
|
+
type messages_UiAnimationRequest = UiAnimationRequest;
|
|
5327
5726
|
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
5328
5727
|
type messages_ProtocolInfo = ProtocolInfo;
|
|
5728
|
+
type messages_DeviceErrorCode = DeviceErrorCode;
|
|
5729
|
+
declare const messages_DeviceErrorCode: typeof DeviceErrorCode;
|
|
5329
5730
|
type messages_DeviceRebootType = DeviceRebootType;
|
|
5330
5731
|
declare const messages_DeviceRebootType: typeof DeviceRebootType;
|
|
5331
5732
|
type messages_DeviceReboot = DeviceReboot;
|
|
5332
5733
|
type messages_DeviceSettings = DeviceSettings;
|
|
5333
5734
|
type messages_DeviceSettingsGet = DeviceSettingsGet;
|
|
5334
5735
|
type messages_DeviceSettingsSet = DeviceSettingsSet;
|
|
5736
|
+
type messages_DeviceSettingsPage = DeviceSettingsPage;
|
|
5737
|
+
declare const messages_DeviceSettingsPage: typeof DeviceSettingsPage;
|
|
5738
|
+
type messages_DeviceSettingsPageShow = DeviceSettingsPageShow;
|
|
5335
5739
|
type messages_DeviceCertificate = DeviceCertificate;
|
|
5336
5740
|
type messages_DeviceCertificateWrite = DeviceCertificateWrite;
|
|
5337
5741
|
type messages_DeviceCertificateRead = DeviceCertificateRead;
|
|
5338
5742
|
type messages_DeviceCertificateSignature = DeviceCertificateSignature;
|
|
5339
5743
|
type messages_DeviceCertificateSign = DeviceCertificateSign;
|
|
5744
|
+
type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
|
|
5745
|
+
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5746
|
+
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5747
|
+
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5748
|
+
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5749
|
+
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5750
|
+
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5751
|
+
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5752
|
+
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5340
5753
|
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5341
5754
|
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5342
5755
|
type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
|
|
@@ -5347,14 +5760,6 @@ type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
|
|
|
5347
5760
|
type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
|
|
5348
5761
|
type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
|
|
5349
5762
|
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5350
|
-
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5351
|
-
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5352
|
-
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5353
|
-
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5354
|
-
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5355
|
-
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5356
|
-
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5357
|
-
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5358
5763
|
type messages_DeviceType = DeviceType;
|
|
5359
5764
|
declare const messages_DeviceType: typeof DeviceType;
|
|
5360
5765
|
type messages_DeviceSeType = DeviceSeType;
|
|
@@ -5370,9 +5775,20 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
|
|
|
5370
5775
|
type messages_DeviceInfoTypes = DeviceInfoTypes;
|
|
5371
5776
|
type messages_DeviceInfoGet = DeviceInfoGet;
|
|
5372
5777
|
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5778
|
+
type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
|
|
5779
|
+
declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
|
|
5780
|
+
type messages_DeviceSessionSeedDomain = DeviceSessionSeedDomain;
|
|
5781
|
+
declare const messages_DeviceSessionSeedDomain: typeof DeviceSessionSeedDomain;
|
|
5373
5782
|
type messages_DeviceSessionGet = DeviceSessionGet;
|
|
5374
5783
|
type messages_DeviceSession = DeviceSession;
|
|
5784
|
+
type messages_DeviceSessionPinType = DeviceSessionPinType;
|
|
5785
|
+
declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
|
|
5786
|
+
type messages_DeviceSessionAskPin = DeviceSessionAskPin;
|
|
5787
|
+
type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
|
|
5788
|
+
type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
|
|
5789
|
+
declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
|
|
5375
5790
|
type messages_DeviceStatus = DeviceStatus;
|
|
5791
|
+
type messages_DeviceStatusGet = DeviceStatusGet;
|
|
5376
5792
|
type messages_FilesystemPermissionFix = FilesystemPermissionFix;
|
|
5377
5793
|
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5378
5794
|
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
@@ -5385,6 +5801,35 @@ type messages_FilesystemDirList = FilesystemDirList;
|
|
|
5385
5801
|
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5386
5802
|
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5387
5803
|
type messages_FilesystemFormat = FilesystemFormat;
|
|
5804
|
+
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5805
|
+
type messages_NftUpdate = NftUpdate;
|
|
5806
|
+
type messages_OnboardingStep = OnboardingStep;
|
|
5807
|
+
declare const messages_OnboardingStep: typeof OnboardingStep;
|
|
5808
|
+
type messages_OnboardingPhase = OnboardingPhase;
|
|
5809
|
+
declare const messages_OnboardingPhase: typeof OnboardingPhase;
|
|
5810
|
+
type messages_OnboardingSetupKind = OnboardingSetupKind;
|
|
5811
|
+
declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
|
|
5812
|
+
type messages_OnboardingSetupMethod = OnboardingSetupMethod;
|
|
5813
|
+
declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
|
|
5814
|
+
type messages_OnboardingSetupStatus = OnboardingSetupStatus;
|
|
5815
|
+
type messages_OnboardingStatusGet = OnboardingStatusGet;
|
|
5816
|
+
type messages_OnboardingStatus = OnboardingStatus;
|
|
5817
|
+
type messages_PortfolioUpdate = PortfolioUpdate;
|
|
5818
|
+
type messages_ViewAmount = ViewAmount;
|
|
5819
|
+
type messages_ViewDetail = ViewDetail;
|
|
5820
|
+
type messages_ViewTipType = ViewTipType;
|
|
5821
|
+
declare const messages_ViewTipType: typeof ViewTipType;
|
|
5822
|
+
type messages_ViewTip = ViewTip;
|
|
5823
|
+
type messages_ViewRawData = ViewRawData;
|
|
5824
|
+
type messages_ViewSignLayout = ViewSignLayout;
|
|
5825
|
+
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5826
|
+
type messages_ViewSignPage = ViewSignPage;
|
|
5827
|
+
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5828
|
+
type messages_ProtocolV2FailureType = ProtocolV2FailureType;
|
|
5829
|
+
declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
|
|
5830
|
+
type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
|
|
5831
|
+
declare const messages_Enum_ProtocolV2Capability: typeof Enum_ProtocolV2Capability;
|
|
5832
|
+
type messages_ProtocolV2Capability = ProtocolV2Capability;
|
|
5388
5833
|
type messages_MessageType = MessageType;
|
|
5389
5834
|
type messages_MessageKey = MessageKey;
|
|
5390
5835
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
@@ -5705,6 +6150,21 @@ declare namespace messages {
|
|
|
5705
6150
|
messages_KaspaSignTx as KaspaSignTx,
|
|
5706
6151
|
messages_KaspaTxInputRequest as KaspaTxInputRequest,
|
|
5707
6152
|
messages_KaspaTxInputAck as KaspaTxInputAck,
|
|
6153
|
+
messages_KaspaOutpoint as KaspaOutpoint,
|
|
6154
|
+
messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
|
|
6155
|
+
messages_KaspaInputScriptType as KaspaInputScriptType,
|
|
6156
|
+
messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
|
|
6157
|
+
messages_KaspaOutputScriptType as KaspaOutputScriptType,
|
|
6158
|
+
messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
|
|
6159
|
+
messages_KaspaRequestType as KaspaRequestType,
|
|
6160
|
+
messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
|
|
6161
|
+
messages_KaspaTxRequest as KaspaTxRequest,
|
|
6162
|
+
messages_KaspaTxAckInput as KaspaTxAckInput,
|
|
6163
|
+
messages_KaspaTxAckOutput as KaspaTxAckOutput,
|
|
6164
|
+
messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
|
|
6165
|
+
messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
|
|
6166
|
+
messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
|
|
6167
|
+
messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
|
|
5708
6168
|
messages_KaspaSignedTx as KaspaSignedTx,
|
|
5709
6169
|
messages_LnurlAuth as LnurlAuth,
|
|
5710
6170
|
messages_LnurlAuthResp as LnurlAuthResp,
|
|
@@ -6029,39 +6489,42 @@ declare namespace messages {
|
|
|
6029
6489
|
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
6030
6490
|
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
6031
6491
|
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
6032
|
-
|
|
6033
|
-
messages_StartSession as StartSession,
|
|
6492
|
+
messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
|
|
6034
6493
|
messages_SetBusy as SetBusy,
|
|
6035
6494
|
messages_GetFirmwareHash as GetFirmwareHash,
|
|
6036
6495
|
messages_FirmwareHash as FirmwareHash,
|
|
6037
6496
|
messages_GetNonce as GetNonce,
|
|
6038
6497
|
messages_Nonce as Nonce,
|
|
6039
6498
|
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
6040
|
-
messages_WallpaperTarget as WallpaperTarget,
|
|
6041
|
-
messages_SetWallpaper as SetWallpaper,
|
|
6042
|
-
messages_GetWallpaper as GetWallpaper,
|
|
6043
|
-
messages_Wallpaper as Wallpaper,
|
|
6044
6499
|
messages_UnlockPath as UnlockPath,
|
|
6045
6500
|
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
6046
6501
|
messages_MoneroNetworkType as MoneroNetworkType,
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
messages_ViewTip as ViewTip,
|
|
6051
|
-
messages_ViewSignPage as ViewSignPage,
|
|
6052
|
-
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6502
|
+
messages_UiAnimationType as UiAnimationType,
|
|
6503
|
+
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6504
|
+
messages_UiAnimationRequest as UiAnimationRequest,
|
|
6053
6505
|
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
6054
6506
|
messages_ProtocolInfo as ProtocolInfo,
|
|
6507
|
+
messages_DeviceErrorCode as DeviceErrorCode,
|
|
6055
6508
|
messages_DeviceRebootType as DeviceRebootType,
|
|
6056
6509
|
messages_DeviceReboot as DeviceReboot,
|
|
6057
6510
|
messages_DeviceSettings as DeviceSettings,
|
|
6058
6511
|
messages_DeviceSettingsGet as DeviceSettingsGet,
|
|
6059
6512
|
messages_DeviceSettingsSet as DeviceSettingsSet,
|
|
6513
|
+
messages_DeviceSettingsPage as DeviceSettingsPage,
|
|
6514
|
+
messages_DeviceSettingsPageShow as DeviceSettingsPageShow,
|
|
6060
6515
|
messages_DeviceCertificate as DeviceCertificate,
|
|
6061
6516
|
messages_DeviceCertificateWrite as DeviceCertificateWrite,
|
|
6062
6517
|
messages_DeviceCertificateRead as DeviceCertificateRead,
|
|
6063
6518
|
messages_DeviceCertificateSignature as DeviceCertificateSignature,
|
|
6064
6519
|
messages_DeviceCertificateSign as DeviceCertificateSign,
|
|
6520
|
+
messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
|
|
6521
|
+
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6522
|
+
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6523
|
+
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6524
|
+
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6525
|
+
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6526
|
+
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6527
|
+
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6065
6528
|
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
6066
6529
|
messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
|
|
6067
6530
|
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
@@ -6070,13 +6533,6 @@ declare namespace messages {
|
|
|
6070
6533
|
messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
|
|
6071
6534
|
messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
|
|
6072
6535
|
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
6073
|
-
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6074
|
-
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6075
|
-
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6076
|
-
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6077
|
-
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6078
|
-
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6079
|
-
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6080
6536
|
messages_DeviceType as DeviceType,
|
|
6081
6537
|
messages_DeviceSeType as DeviceSeType,
|
|
6082
6538
|
messages_DeviceSEState as DeviceSEState,
|
|
@@ -6089,9 +6545,16 @@ declare namespace messages {
|
|
|
6089
6545
|
messages_DeviceInfoTypes as DeviceInfoTypes,
|
|
6090
6546
|
messages_DeviceInfoGet as DeviceInfoGet,
|
|
6091
6547
|
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
6548
|
+
messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
|
|
6549
|
+
messages_DeviceSessionSeedDomain as DeviceSessionSeedDomain,
|
|
6092
6550
|
messages_DeviceSessionGet as DeviceSessionGet,
|
|
6093
6551
|
messages_DeviceSession as DeviceSession,
|
|
6552
|
+
messages_DeviceSessionPinType as DeviceSessionPinType,
|
|
6553
|
+
messages_DeviceSessionAskPin as DeviceSessionAskPin,
|
|
6554
|
+
messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
|
|
6555
|
+
messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
|
|
6094
6556
|
messages_DeviceStatus as DeviceStatus,
|
|
6557
|
+
messages_DeviceStatusGet as DeviceStatusGet,
|
|
6095
6558
|
messages_FilesystemPermissionFix as FilesystemPermissionFix,
|
|
6096
6559
|
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
6097
6560
|
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
@@ -6104,6 +6567,27 @@ declare namespace messages {
|
|
|
6104
6567
|
messages_FilesystemDirMake as FilesystemDirMake,
|
|
6105
6568
|
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
6106
6569
|
messages_FilesystemFormat as FilesystemFormat,
|
|
6570
|
+
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6571
|
+
messages_NftUpdate as NftUpdate,
|
|
6572
|
+
messages_OnboardingStep as OnboardingStep,
|
|
6573
|
+
messages_OnboardingPhase as OnboardingPhase,
|
|
6574
|
+
messages_OnboardingSetupKind as OnboardingSetupKind,
|
|
6575
|
+
messages_OnboardingSetupMethod as OnboardingSetupMethod,
|
|
6576
|
+
messages_OnboardingSetupStatus as OnboardingSetupStatus,
|
|
6577
|
+
messages_OnboardingStatusGet as OnboardingStatusGet,
|
|
6578
|
+
messages_OnboardingStatus as OnboardingStatus,
|
|
6579
|
+
messages_PortfolioUpdate as PortfolioUpdate,
|
|
6580
|
+
messages_ViewAmount as ViewAmount,
|
|
6581
|
+
messages_ViewDetail as ViewDetail,
|
|
6582
|
+
messages_ViewTipType as ViewTipType,
|
|
6583
|
+
messages_ViewTip as ViewTip,
|
|
6584
|
+
messages_ViewRawData as ViewRawData,
|
|
6585
|
+
messages_ViewSignLayout as ViewSignLayout,
|
|
6586
|
+
messages_ViewSignPage as ViewSignPage,
|
|
6587
|
+
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6588
|
+
messages_ProtocolV2FailureType as ProtocolV2FailureType,
|
|
6589
|
+
messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
|
|
6590
|
+
messages_ProtocolV2Capability as ProtocolV2Capability,
|
|
6107
6591
|
messages_MessageType as MessageType,
|
|
6108
6592
|
messages_MessageKey as MessageKey,
|
|
6109
6593
|
messages_MessageResponse as MessageResponse,
|
|
@@ -6112,10 +6596,23 @@ declare namespace messages {
|
|
|
6112
6596
|
};
|
|
6113
6597
|
}
|
|
6114
6598
|
|
|
6599
|
+
declare class ProtocolV2SequenceCursor {
|
|
6600
|
+
private current;
|
|
6601
|
+
next(): number;
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6115
6604
|
type ProtocolV2Schemas = {
|
|
6116
6605
|
protocolV1: Root;
|
|
6117
6606
|
protocolV2: Root;
|
|
6118
6607
|
};
|
|
6608
|
+
type ProtocolV2CallContext = {
|
|
6609
|
+
messageName: string;
|
|
6610
|
+
timeoutMs?: number;
|
|
6611
|
+
highVolume: boolean;
|
|
6612
|
+
writeWithResponse?: boolean;
|
|
6613
|
+
generation: number;
|
|
6614
|
+
signal: AbortSignal;
|
|
6615
|
+
};
|
|
6119
6616
|
type ProtocolLogger = {
|
|
6120
6617
|
debug?: (...args: any[]) => void;
|
|
6121
6618
|
error?: (...args: any[]) => void;
|
|
@@ -6124,28 +6621,34 @@ type ProtocolV2SessionOptions = {
|
|
|
6124
6621
|
schemas: ProtocolV2Schemas;
|
|
6125
6622
|
router: number;
|
|
6126
6623
|
packetSrc?: number;
|
|
6127
|
-
|
|
6128
|
-
|
|
6624
|
+
maxFrameBytes?: number;
|
|
6625
|
+
prepareCall?: (context: ProtocolV2CallContext) => Promise<void> | void;
|
|
6626
|
+
writeFrame: (frame: Uint8Array, context: ProtocolV2CallContext) => Promise<void>;
|
|
6627
|
+
readFrame: (context: ProtocolV2CallContext) => Promise<Uint8Array>;
|
|
6129
6628
|
logger?: ProtocolLogger;
|
|
6130
6629
|
logPrefix?: string;
|
|
6131
6630
|
createTimeoutError?: (name: string, timeoutMs: number) => Error;
|
|
6631
|
+
sequenceCursor?: ProtocolV2SequenceCursor;
|
|
6632
|
+
generation?: number;
|
|
6132
6633
|
};
|
|
6133
6634
|
type ProtocolV2CallOptions = {
|
|
6134
6635
|
timeoutMs?: number;
|
|
6135
6636
|
expectedTypes?: string[];
|
|
6136
6637
|
intermediateTypes?: string[];
|
|
6137
6638
|
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
6639
|
+
onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
|
|
6640
|
+
writeWithResponse?: boolean;
|
|
6138
6641
|
};
|
|
6139
6642
|
|
|
6140
6643
|
declare function hexToBytes(hex: string): Uint8Array;
|
|
6141
6644
|
declare function bytesToHex(bytes: Uint8Array): string;
|
|
6142
6645
|
declare function getErrorMessage(error: unknown): string;
|
|
6143
|
-
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
|
|
6144
|
-
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
|
|
6646
|
+
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
|
|
6145
6647
|
declare class ProtocolV2Session {
|
|
6146
6648
|
private readonly options;
|
|
6649
|
+
private readonly sequenceCursor;
|
|
6147
6650
|
private pendingCall;
|
|
6148
|
-
private
|
|
6651
|
+
private lastResponseSequence?;
|
|
6149
6652
|
constructor(options: ProtocolV2SessionOptions);
|
|
6150
6653
|
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6151
6654
|
private executeCall;
|
|
@@ -6159,6 +6662,73 @@ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeP
|
|
|
6159
6662
|
onProbeFailed?: (error: unknown) => Promise<void> | void;
|
|
6160
6663
|
}): Promise<boolean>;
|
|
6161
6664
|
|
|
6665
|
+
type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
|
|
6666
|
+
interface ProtocolV2LinkAdapter {
|
|
6667
|
+
router: number;
|
|
6668
|
+
maxFrameBytes?: number;
|
|
6669
|
+
generation: number;
|
|
6670
|
+
prepareCall(context: ProtocolV2CallContext): Promise<void> | void;
|
|
6671
|
+
writeFrame(frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
|
|
6672
|
+
readFrame(context: ProtocolV2CallContext): Promise<Uint8Array>;
|
|
6673
|
+
reset(reason: string): Promise<void> | void;
|
|
6674
|
+
logger?: ProtocolV2SessionOptions['logger'];
|
|
6675
|
+
logPrefix?: string;
|
|
6676
|
+
createTimeoutError?: ProtocolV2SessionOptions['createTimeoutError'];
|
|
6677
|
+
}
|
|
6678
|
+
type ProtocolV2LinkManagerOptions<Key> = {
|
|
6679
|
+
getSchemas: () => ProtocolV2Schemas;
|
|
6680
|
+
classifyError: (error: unknown) => ProtocolV2LinkErrorClassification;
|
|
6681
|
+
onLinkInvalidated?: (key: Key, reason: string) => Promise<void> | void;
|
|
6682
|
+
};
|
|
6683
|
+
declare class ProtocolV2LinkManager<Key> {
|
|
6684
|
+
private readonly links;
|
|
6685
|
+
private readonly sequences;
|
|
6686
|
+
private readonly callQueues;
|
|
6687
|
+
private readonly generations;
|
|
6688
|
+
private readonly invalidationReasons;
|
|
6689
|
+
private readonly invalidations;
|
|
6690
|
+
private readonly options;
|
|
6691
|
+
constructor(options: ProtocolV2LinkManagerOptions<Key>);
|
|
6692
|
+
call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
6693
|
+
invalidateLink(key: Key, reason: string): Promise<void>;
|
|
6694
|
+
invalidateAllLinks(reason: string): Promise<void>;
|
|
6695
|
+
dispose(reason: string): Promise<void>;
|
|
6696
|
+
private getOrCreateLink;
|
|
6697
|
+
private executeCall;
|
|
6698
|
+
private clearSettledCallQueue;
|
|
6699
|
+
private assertCallGeneration;
|
|
6700
|
+
}
|
|
6701
|
+
|
|
6702
|
+
type ProtocolV2UsbTransportBaseOptions = {
|
|
6703
|
+
router: number;
|
|
6704
|
+
maxFrameBytes: number;
|
|
6705
|
+
logPrefix: string;
|
|
6706
|
+
};
|
|
6707
|
+
declare abstract class ProtocolV2UsbTransportBase<Key> {
|
|
6708
|
+
private readonly protocolV2UsbLinks;
|
|
6709
|
+
private readonly protocolV2UsbAssemblers;
|
|
6710
|
+
private readonly protocolV2UsbGenerations;
|
|
6711
|
+
private readonly protocolV2UsbCancellations;
|
|
6712
|
+
private readonly protocolV2UsbOptions;
|
|
6713
|
+
protected constructor(options: ProtocolV2UsbTransportBaseOptions);
|
|
6714
|
+
protected abstract getProtocolV2UsbSchemas(): ProtocolV2Schemas;
|
|
6715
|
+
protected abstract getProtocolV2UsbLogger(): ProtocolV2SessionOptions['logger'];
|
|
6716
|
+
protected abstract writeProtocolV2UsbPacket(key: Key, frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
|
|
6717
|
+
protected abstract readProtocolV2UsbPacket(key: Key, context: ProtocolV2CallContext): Promise<Uint8Array>;
|
|
6718
|
+
protected abstract resetProtocolV2UsbNativeLink(key: Key, reason: string): Promise<void>;
|
|
6719
|
+
protected abstract createProtocolV2UsbTimeoutError(name: string, timeoutMs: number): Error;
|
|
6720
|
+
protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
|
|
6721
|
+
protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
|
|
6722
|
+
protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
6723
|
+
protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
|
|
6724
|
+
protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
|
|
6725
|
+
protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
|
|
6726
|
+
private createProtocolV2UsbAdapter;
|
|
6727
|
+
private getProtocolV2UsbAssembler;
|
|
6728
|
+
private createProtocolV2UsbCancellation;
|
|
6729
|
+
private createProtocolV2UsbIoError;
|
|
6730
|
+
}
|
|
6731
|
+
|
|
6162
6732
|
declare function info(res: any): {
|
|
6163
6733
|
version: string;
|
|
6164
6734
|
configured: boolean;
|
|
@@ -6185,20 +6755,54 @@ declare namespace check {
|
|
|
6185
6755
|
|
|
6186
6756
|
declare const LogBlockCommand: Set<string>;
|
|
6187
6757
|
|
|
6758
|
+
declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
|
|
6759
|
+
declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
|
|
6760
|
+
name: string;
|
|
6761
|
+
protocol: ProtocolType;
|
|
6762
|
+
request: unknown;
|
|
6763
|
+
};
|
|
6764
|
+
declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
|
|
6765
|
+
|
|
6766
|
+
/** Protocol V1 USB report marker, ASCII `?`. */
|
|
6188
6767
|
declare const PROTOCOL_V1_REPORT_ID = 63;
|
|
6768
|
+
/** Protocol V1 envelope marker, ASCII `#`. */
|
|
6189
6769
|
declare const PROTOCOL_V1_HEADER_BYTE = 35;
|
|
6770
|
+
/** Protocol V1 payload bytes per chunk after the report marker. */
|
|
6190
6771
|
declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
|
|
6772
|
+
/** Protocol V1 USB packet length: report marker plus chunk payload. */
|
|
6191
6773
|
declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
6774
|
+
/** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
|
|
6192
6775
|
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
6776
|
+
/** Protocol V1 envelope metadata: `##`, message type, and payload length. */
|
|
6193
6777
|
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
6194
|
-
|
|
6778
|
+
/** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
|
|
6779
|
+
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
|
|
6780
|
+
/** FilesystemFileWrite chunk size over WebUSB. */
|
|
6195
6781
|
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
6782
|
+
/** FilesystemFileWrite chunk size over BLE. */
|
|
6196
6783
|
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6784
|
+
/** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
|
|
6785
|
+
declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
|
|
6786
|
+
/** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
|
|
6787
|
+
declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
6788
|
+
/** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
|
|
6197
6789
|
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
|
|
6790
|
+
/**
|
|
6791
|
+
* Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
|
|
6792
|
+
* through the BLE coprocessor UART bridge.
|
|
6793
|
+
*/
|
|
6198
6794
|
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
6199
6795
|
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
6200
6796
|
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
6797
|
+
/** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
|
|
6201
6798
|
declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
|
|
6799
|
+
/**
|
|
6800
|
+
* Shared upper bound for a Protocol V2 request without a method-specific timeout.
|
|
6801
|
+
* Interactive and signing calls may wait on the device UI, so keep this longer than
|
|
6802
|
+
* ordinary transport timeouts while still preventing a stalled link from blocking
|
|
6803
|
+
* the per-device queue forever.
|
|
6804
|
+
*/
|
|
6805
|
+
declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
|
|
6202
6806
|
|
|
6203
6807
|
declare const _default: {
|
|
6204
6808
|
check: typeof check;
|
|
@@ -6216,6 +6820,21 @@ declare const _default: {
|
|
|
6216
6820
|
decodeMessage: typeof decodeMessage;
|
|
6217
6821
|
};
|
|
6218
6822
|
ProtocolV2: {
|
|
6823
|
+
isAckFrame: typeof isAckFrame;
|
|
6824
|
+
inspectFrameHeader: typeof inspectFrameHeader;
|
|
6825
|
+
inspectFrame(schemas: {
|
|
6826
|
+
protocolV1: protobuf.Root;
|
|
6827
|
+
protocolV2: protobuf.Root;
|
|
6828
|
+
}, frame: Uint8Array): {
|
|
6829
|
+
messageName: string;
|
|
6830
|
+
messageTypeId: number;
|
|
6831
|
+
pbPayload: Uint8Array;
|
|
6832
|
+
seq: number;
|
|
6833
|
+
router: number;
|
|
6834
|
+
packetSrc: number;
|
|
6835
|
+
dataType: number;
|
|
6836
|
+
type: string;
|
|
6837
|
+
};
|
|
6219
6838
|
encodeFrame(schemas: {
|
|
6220
6839
|
protocolV1: protobuf.Root;
|
|
6221
6840
|
protocolV2: protobuf.Root;
|
|
@@ -6223,21 +6842,11 @@ declare const _default: {
|
|
|
6223
6842
|
packetSrc?: number | undefined;
|
|
6224
6843
|
router?: number | undefined;
|
|
6225
6844
|
seq?: number | undefined;
|
|
6226
|
-
logger?: ProtocolV2DebugLogger | undefined;
|
|
6227
|
-
logPrefix?: string | undefined;
|
|
6228
|
-
context?: string | undefined;
|
|
6229
6845
|
}): Uint8Array;
|
|
6230
6846
|
decodeFrame(schemas: {
|
|
6231
6847
|
protocolV1: protobuf.Root;
|
|
6232
6848
|
protocolV2: protobuf.Root;
|
|
6233
|
-
}, frame: Uint8Array
|
|
6234
|
-
packetSrc?: number | undefined;
|
|
6235
|
-
router?: number | undefined;
|
|
6236
|
-
seq?: number | undefined;
|
|
6237
|
-
logger?: ProtocolV2DebugLogger | undefined;
|
|
6238
|
-
logPrefix?: string | undefined;
|
|
6239
|
-
context?: string | undefined;
|
|
6240
|
-
}, "logger" | "logPrefix" | "context">): {
|
|
6849
|
+
}, frame: Uint8Array): {
|
|
6241
6850
|
message: {
|
|
6242
6851
|
[key: string]: any;
|
|
6243
6852
|
};
|
|
@@ -6250,7 +6859,10 @@ declare const _default: {
|
|
|
6250
6859
|
};
|
|
6251
6860
|
PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
|
|
6252
6861
|
ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
6862
|
+
ProtocolV2LinkManager: typeof ProtocolV2LinkManager;
|
|
6863
|
+
ProtocolV2SequenceCursor: typeof ProtocolV2SequenceCursor;
|
|
6253
6864
|
ProtocolV2Session: typeof ProtocolV2Session;
|
|
6865
|
+
ProtocolV2UsbTransportBase: typeof ProtocolV2UsbTransportBase;
|
|
6254
6866
|
bytesToHex: typeof bytesToHex;
|
|
6255
6867
|
concatUint8Arrays: typeof concatUint8Arrays;
|
|
6256
6868
|
createMessageFromName: (messages: protobuf.Root, name: string) => {
|
|
@@ -6271,4 +6883,4 @@ declare const _default: {
|
|
|
6271
6883
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
6272
6884
|
};
|
|
6273
6885
|
|
|
6274
|
-
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, 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, 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, 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_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, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2Schemas, ProtocolV2Session, ProtocolV2SessionOptions, 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, 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 };
|
|
6886
|
+
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_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, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
|