@onekeyfe/hd-transport 1.1.28 → 1.2.0-alpha.1
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/README.md +2 -4
- package/__tests__/build-receive.test.js +6 -8
- package/__tests__/decode-features.test.js +3 -2
- package/__tests__/messages.test.js +8 -0
- package/__tests__/protocol-v2.test.js +754 -0
- package/dist/constants.d.ts +14 -5
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +905 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +811 -84
- package/dist/protocols/index.d.ts +45 -0
- package/dist/protocols/index.d.ts.map +1 -0
- package/dist/protocols/v1/decode.d.ts +11 -0
- package/dist/protocols/v1/decode.d.ts.map +1 -0
- package/dist/protocols/v1/encode.d.ts +11 -0
- package/dist/protocols/v1/encode.d.ts.map +1 -0
- package/dist/protocols/v1/index.d.ts +5 -0
- package/dist/protocols/v1/index.d.ts.map +1 -0
- package/dist/protocols/v1/packets.d.ts +7 -0
- package/dist/protocols/v1/packets.d.ts.map +1 -0
- package/dist/{serialization → protocols/v1}/receive.d.ts +1 -1
- package/dist/protocols/v1/receive.d.ts.map +1 -0
- package/dist/protocols/v2/constants.d.ts +7 -0
- package/dist/protocols/v2/constants.d.ts.map +1 -0
- package/dist/protocols/v2/crc8.d.ts +3 -0
- package/dist/protocols/v2/crc8.d.ts.map +1 -0
- package/dist/protocols/v2/debug.d.ts +13 -0
- package/dist/protocols/v2/debug.d.ts.map +1 -0
- package/dist/protocols/v2/decode.d.ts +8 -0
- package/dist/protocols/v2/decode.d.ts.map +1 -0
- package/dist/protocols/v2/encode.d.ts +5 -0
- package/dist/protocols/v2/encode.d.ts.map +1 -0
- package/dist/protocols/v2/frame-assembler.d.ts +12 -0
- package/dist/protocols/v2/frame-assembler.d.ts.map +1 -0
- package/dist/protocols/v2/index.d.ts +7 -0
- package/dist/protocols/v2/index.d.ts.map +1 -0
- package/dist/protocols/v2/session.d.ts +50 -0
- package/dist/protocols/v2/session.d.ts.map +1 -0
- package/dist/serialization/index.d.ts +6 -3
- package/dist/serialization/index.d.ts.map +1 -1
- package/dist/serialization/protobuf/decode.d.ts.map +1 -1
- package/dist/serialization/protobuf/messages.d.ts +1 -1
- package/dist/serialization/protobuf/messages.d.ts.map +1 -1
- package/dist/types/messages.d.ts +441 -11
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +14 -2
- package/dist/types/transport.d.ts.map +1 -1
- package/dist/utils/logBlockCommand.d.ts.map +1 -1
- package/messages-protocol-v2.json +13375 -0
- package/package.json +3 -3
- package/scripts/protobuf-build.sh +314 -20
- package/scripts/protobuf-patches/TxInputType.js +1 -0
- package/scripts/protobuf-patches/index.js +2 -0
- package/scripts/protobuf-types.js +224 -18
- package/src/constants.ts +42 -6
- package/src/index.ts +39 -11
- package/src/protocols/index.ts +144 -0
- package/src/{serialization/protocol → protocols/v1}/decode.ts +4 -4
- package/src/{serialization/protocol → protocols/v1}/encode.ts +18 -13
- package/src/protocols/v1/index.ts +4 -0
- package/src/protocols/v1/packets.ts +53 -0
- package/src/{serialization → protocols/v1}/receive.ts +5 -5
- package/src/protocols/v2/constants.ts +6 -0
- package/src/protocols/v2/crc8.ts +34 -0
- package/src/protocols/v2/debug.ts +26 -0
- package/src/protocols/v2/decode.ts +92 -0
- package/src/protocols/v2/encode.ts +116 -0
- package/src/protocols/v2/frame-assembler.ts +98 -0
- package/src/protocols/v2/index.ts +6 -0
- package/src/protocols/v2/session.ts +429 -0
- package/src/serialization/index.ts +6 -5
- package/src/serialization/protobuf/decode.ts +7 -0
- package/src/serialization/protobuf/messages.ts +8 -4
- package/src/types/messages.ts +579 -13
- package/src/types/transport.ts +26 -2
- package/src/utils/logBlockCommand.ts +9 -1
- package/dist/serialization/protocol/decode.d.ts +0 -11
- package/dist/serialization/protocol/decode.d.ts.map +0 -1
- package/dist/serialization/protocol/encode.d.ts +0 -11
- package/dist/serialization/protocol/encode.d.ts.map +0 -1
- package/dist/serialization/protocol/index.d.ts +0 -3
- package/dist/serialization/protocol/index.d.ts.map +0 -1
- package/dist/serialization/receive.d.ts.map +0 -1
- package/dist/serialization/send.d.ts +0 -7
- package/dist/serialization/send.d.ts.map +0 -1
- package/src/serialization/protocol/index.ts +0 -2
- package/src/serialization/send.ts +0 -58
package/dist/index.d.ts
CHANGED
|
@@ -4,36 +4,183 @@ import * as protobuf from 'protobufjs/light';
|
|
|
4
4
|
import { Root } from 'protobufjs/light';
|
|
5
5
|
import EventEmitter from 'events';
|
|
6
6
|
|
|
7
|
-
declare
|
|
7
|
+
declare const decodeEnvelope: (byteBuffer: ByteBuffer__default) => {
|
|
8
|
+
typeId: number;
|
|
9
|
+
buffer: ByteBuffer__default;
|
|
10
|
+
};
|
|
11
|
+
declare const decodeFirstChunk: (bytes: ArrayBuffer) => {
|
|
12
|
+
length: number;
|
|
13
|
+
typeId: number;
|
|
14
|
+
restBuffer: ByteBuffer__default;
|
|
15
|
+
};
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
type Options<Chunked> = {
|
|
18
|
+
chunked: Chunked;
|
|
19
|
+
addTrezorHeaders: boolean;
|
|
20
|
+
messageTypeId: number;
|
|
21
|
+
};
|
|
22
|
+
declare function encodeEnvelope(data: ByteBuffer__default, options: Options<true>): Buffer[];
|
|
23
|
+
declare function encodeEnvelope(data: ByteBuffer__default, options: Options<false>): Buffer;
|
|
10
24
|
|
|
11
|
-
declare function
|
|
25
|
+
declare function encodeEnvelopeMessage(messages: Root, name: string, data: Record<string, unknown>): Buffer;
|
|
26
|
+
declare const encodeMessageChunks: (messages: Root, name: string, data: Record<string, unknown>) => Buffer[];
|
|
27
|
+
declare const encodeTransportPackets: (messages: Root, name: string, data: Record<string, unknown>) => ByteBuffer__default[];
|
|
28
|
+
|
|
29
|
+
declare function decodeMessage(messages: Root, data: string): {
|
|
12
30
|
message: {
|
|
13
31
|
[key: string]: any;
|
|
14
32
|
};
|
|
15
33
|
type: string;
|
|
16
34
|
};
|
|
17
35
|
|
|
18
|
-
declare const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
declare const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
declare const index_decodeEnvelope: typeof decodeEnvelope;
|
|
37
|
+
declare const index_decodeFirstChunk: typeof decodeFirstChunk;
|
|
38
|
+
declare const index_encodeEnvelope: typeof encodeEnvelope;
|
|
39
|
+
declare const index_encodeEnvelopeMessage: typeof encodeEnvelopeMessage;
|
|
40
|
+
declare const index_encodeMessageChunks: typeof encodeMessageChunks;
|
|
41
|
+
declare const index_encodeTransportPackets: typeof encodeTransportPackets;
|
|
42
|
+
declare const index_decodeMessage: typeof decodeMessage;
|
|
43
|
+
declare namespace index {
|
|
44
|
+
export {
|
|
45
|
+
index_decodeEnvelope as decodeEnvelope,
|
|
46
|
+
index_decodeFirstChunk as decodeFirstChunk,
|
|
47
|
+
index_encodeEnvelope as encodeEnvelope,
|
|
48
|
+
index_encodeEnvelopeMessage as encodeEnvelopeMessage,
|
|
49
|
+
index_encodeMessageChunks as encodeMessageChunks,
|
|
50
|
+
index_encodeTransportPackets as encodeTransportPackets,
|
|
51
|
+
index_decodeMessage as decodeMessage,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare function parseConfigure(data: protobuf.INamespace): protobuf.Root;
|
|
27
56
|
|
|
28
|
-
declare const
|
|
29
|
-
declare const
|
|
30
|
-
declare
|
|
57
|
+
declare const PROTO_HEAD_SOF = 90;
|
|
58
|
+
declare const PROTO_PRE_HEAD_SIZE = 4;
|
|
59
|
+
declare const PROTO_HEAD_CRC_SIZE = 8;
|
|
60
|
+
declare const CRC8_INIT = 48;
|
|
61
|
+
declare const PACKET_SIZE = 4096;
|
|
62
|
+
declare const PROTO_DATA_TYPE_PACKET = 0;
|
|
63
|
+
|
|
64
|
+
declare const CRC8_TABLE: Uint8Array;
|
|
65
|
+
declare function crc8(data: Uint8Array, len: number): number;
|
|
66
|
+
|
|
67
|
+
type ProtocolV2DebugLogger = {
|
|
68
|
+
debug?: (...args: unknown[]) => void;
|
|
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
|
+
|
|
80
|
+
declare function nextProtoSeq(current: number): number;
|
|
81
|
+
declare function encodeFrame(payload: Uint8Array | null, packetSrc?: number, router?: number, debugOptions?: ProtocolV2FrameDebugOptions, seq?: number): Uint8Array;
|
|
82
|
+
declare function encodeProtobufFrame(messageTypeId: number, pbPayload: Uint8Array, packetSrc?: number, router?: number, debugOptions?: ProtocolV2FrameDebugOptions, seq?: number): Uint8Array;
|
|
83
|
+
|
|
84
|
+
interface ProtoV2Frame {
|
|
85
|
+
messageTypeId: number;
|
|
86
|
+
pbPayload: Uint8Array;
|
|
87
|
+
seq: number;
|
|
88
|
+
}
|
|
89
|
+
declare function decodeFrame(data: Uint8Array, debugOptions?: ProtocolV2FrameDebugOptions): ProtoV2Frame;
|
|
90
|
+
|
|
91
|
+
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
92
|
+
declare class ProtocolV2FrameAssembler {
|
|
93
|
+
private buffer;
|
|
94
|
+
private readonly maxFrameBytes;
|
|
95
|
+
constructor(maxFrameBytes?: number);
|
|
96
|
+
reset(): void;
|
|
97
|
+
push(chunk: Uint8Array): Uint8Array | undefined;
|
|
98
|
+
drain(chunk?: Uint8Array): Uint8Array[];
|
|
99
|
+
private append;
|
|
100
|
+
private extractFrame;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
|
|
104
|
+
declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
|
|
105
|
+
declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
|
|
106
|
+
declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
|
|
107
|
+
declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
|
|
108
|
+
declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
|
|
109
|
+
declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
|
|
110
|
+
declare const protocolV2Codec_crc8: typeof crc8;
|
|
111
|
+
type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
|
|
112
|
+
type protocolV2Codec_ProtocolV2FrameDebugOptions = ProtocolV2FrameDebugOptions;
|
|
113
|
+
declare const protocolV2Codec_logProtocolV2Debug: typeof logProtocolV2Debug;
|
|
114
|
+
declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
|
|
115
|
+
declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
|
|
116
|
+
declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
|
|
117
|
+
type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
|
|
118
|
+
declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
|
|
119
|
+
declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
|
|
120
|
+
type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
|
|
121
|
+
declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
122
|
+
declare namespace protocolV2Codec {
|
|
31
123
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
124
|
+
protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
|
|
125
|
+
protocolV2Codec_PROTO_PRE_HEAD_SIZE as PROTO_PRE_HEAD_SIZE,
|
|
126
|
+
protocolV2Codec_PROTO_HEAD_CRC_SIZE as PROTO_HEAD_CRC_SIZE,
|
|
127
|
+
protocolV2Codec_CRC8_INIT as CRC8_INIT,
|
|
128
|
+
protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
|
|
129
|
+
protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
|
|
130
|
+
protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
|
|
131
|
+
protocolV2Codec_crc8 as crc8,
|
|
132
|
+
protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
|
|
133
|
+
protocolV2Codec_ProtocolV2FrameDebugOptions as ProtocolV2FrameDebugOptions,
|
|
134
|
+
protocolV2Codec_logProtocolV2Debug as logProtocolV2Debug,
|
|
135
|
+
protocolV2Codec_nextProtoSeq as nextProtoSeq,
|
|
136
|
+
protocolV2Codec_encodeFrame as encodeFrame,
|
|
137
|
+
protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
|
|
138
|
+
protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
|
|
139
|
+
protocolV2Codec_decodeFrame as decodeFrame,
|
|
140
|
+
protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
|
|
141
|
+
protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
|
|
34
142
|
};
|
|
35
143
|
}
|
|
36
144
|
|
|
145
|
+
declare const PROTOCOL_V2_SYS_MESSAGE_THRESHOLD = 60000;
|
|
146
|
+
type ProtocolV2Schemas$1 = {
|
|
147
|
+
protocolV1: Root;
|
|
148
|
+
protocolV2: Root;
|
|
149
|
+
};
|
|
150
|
+
type ProtocolV2FrameOptions = {
|
|
151
|
+
packetSrc?: number;
|
|
152
|
+
router?: number;
|
|
153
|
+
seq?: number;
|
|
154
|
+
logger?: ProtocolV2DebugLogger;
|
|
155
|
+
logPrefix?: string;
|
|
156
|
+
context?: string;
|
|
157
|
+
};
|
|
158
|
+
declare const ProtocolV1: {
|
|
159
|
+
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
160
|
+
encodeMessageChunks: (messages: Root, name: string, data: Record<string, unknown>) => Buffer[];
|
|
161
|
+
encodeTransportPackets: (messages: Root, name: string, data: Record<string, unknown>) => ByteBuffer__default[];
|
|
162
|
+
decodeFirstChunk: (bytes: ArrayBuffer) => {
|
|
163
|
+
length: number;
|
|
164
|
+
typeId: number;
|
|
165
|
+
restBuffer: ByteBuffer__default;
|
|
166
|
+
};
|
|
167
|
+
decodeMessage: typeof decodeMessage;
|
|
168
|
+
};
|
|
169
|
+
declare const ProtocolV2: {
|
|
170
|
+
encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
|
|
171
|
+
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array, options?: Pick<ProtocolV2FrameOptions, 'logger' | 'logPrefix' | 'context'>): {
|
|
172
|
+
message: {
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
};
|
|
175
|
+
messageName: string;
|
|
176
|
+
messageTypeId: number;
|
|
177
|
+
pbPayload: Uint8Array;
|
|
178
|
+
seq: number;
|
|
179
|
+
type: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
type ProtocolType = 'V1' | 'V2';
|
|
37
184
|
type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
|
|
38
185
|
type OneKeyUsbDeviceInfo = {
|
|
39
186
|
path: string;
|
|
@@ -50,17 +197,26 @@ type OneKeyMobileDeviceInfo = {
|
|
|
50
197
|
type OneKeyDeviceInfoBase = {
|
|
51
198
|
commType: OneKeyDeviceCommType;
|
|
52
199
|
};
|
|
53
|
-
type OneKeyDeviceInfo = OneKeyDeviceInfoBase & OneKeyDeviceInfoWithSession & OneKeyMobileDeviceInfo
|
|
200
|
+
type OneKeyDeviceInfo = OneKeyDeviceInfoBase & OneKeyDeviceInfoWithSession & OneKeyMobileDeviceInfo & {
|
|
201
|
+
protocolType?: ProtocolType;
|
|
202
|
+
};
|
|
54
203
|
type AcquireInput = {
|
|
55
204
|
path?: string;
|
|
56
205
|
previous?: string | null;
|
|
57
206
|
uuid?: string;
|
|
58
207
|
forceCleanRunPromise?: boolean;
|
|
208
|
+
expectedProtocol?: ProtocolType;
|
|
59
209
|
};
|
|
60
210
|
type MessageFromOneKey = {
|
|
61
211
|
type: string;
|
|
62
212
|
message: Record<string, any>;
|
|
63
213
|
};
|
|
214
|
+
type TransportCallOptions = {
|
|
215
|
+
timeoutMs?: number;
|
|
216
|
+
expectedTypes?: string[];
|
|
217
|
+
intermediateTypes?: string[];
|
|
218
|
+
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
219
|
+
};
|
|
64
220
|
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
65
221
|
type Transport = {
|
|
66
222
|
enumerate(): Promise<Array<OneKeyDeviceInfo>>;
|
|
@@ -68,11 +224,13 @@ type Transport = {
|
|
|
68
224
|
acquire(input: AcquireInput): Promise<string>;
|
|
69
225
|
release(session: string, onclose: boolean): Promise<void>;
|
|
70
226
|
configure(signedData: JSON | string): Promise<void>;
|
|
71
|
-
|
|
227
|
+
configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
|
|
228
|
+
call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
72
229
|
post(session: string, name: string, data: Record<string, any>): Promise<void>;
|
|
73
230
|
read(session: string): Promise<MessageFromOneKey>;
|
|
74
231
|
cancel(): Promise<void>;
|
|
75
232
|
disconnect?: (session: string) => Promise<void>;
|
|
233
|
+
getProtocolType: (path: string) => ProtocolType | undefined;
|
|
76
234
|
promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
|
|
77
235
|
init: ITransportInitFn;
|
|
78
236
|
stop(): void;
|
|
@@ -372,6 +530,7 @@ type GetAddress = {
|
|
|
372
530
|
};
|
|
373
531
|
type Address = {
|
|
374
532
|
address: string;
|
|
533
|
+
mac?: string;
|
|
375
534
|
};
|
|
376
535
|
type GetOwnershipId = {
|
|
377
536
|
address_n: number[];
|
|
@@ -400,6 +559,13 @@ type VerifyMessage = {
|
|
|
400
559
|
message: string;
|
|
401
560
|
coin_name?: string;
|
|
402
561
|
};
|
|
562
|
+
type CoinJoinRequest = {
|
|
563
|
+
fee_rate: number;
|
|
564
|
+
no_fee_threshold: number;
|
|
565
|
+
min_registrable_amount: number;
|
|
566
|
+
mask_public_key: string;
|
|
567
|
+
signature: string;
|
|
568
|
+
};
|
|
403
569
|
type SignTx = {
|
|
404
570
|
outputs_count: number;
|
|
405
571
|
inputs_count: number;
|
|
@@ -413,6 +579,8 @@ type SignTx = {
|
|
|
413
579
|
branch_id?: number;
|
|
414
580
|
amount_unit?: AmountUnit;
|
|
415
581
|
decred_staking_ticket?: boolean;
|
|
582
|
+
serialize?: boolean;
|
|
583
|
+
coinjoin_request?: CoinJoinRequest;
|
|
416
584
|
};
|
|
417
585
|
declare enum Enum_RequestType {
|
|
418
586
|
TXINPUT = 0,
|
|
@@ -421,7 +589,8 @@ declare enum Enum_RequestType {
|
|
|
421
589
|
TXFINISHED = 3,
|
|
422
590
|
TXEXTRADATA = 4,
|
|
423
591
|
TXORIGINPUT = 5,
|
|
424
|
-
TXORIGOUTPUT = 6
|
|
592
|
+
TXORIGOUTPUT = 6,
|
|
593
|
+
TXPAYMENTREQ = 7
|
|
425
594
|
}
|
|
426
595
|
type RequestType = keyof typeof Enum_RequestType;
|
|
427
596
|
type TxRequestDetailsType = {
|
|
@@ -456,6 +625,7 @@ type CommonTxInputType = {
|
|
|
456
625
|
witness?: string;
|
|
457
626
|
ownership_proof?: string;
|
|
458
627
|
commitment_data?: string;
|
|
628
|
+
coinjoin_flags?: number;
|
|
459
629
|
};
|
|
460
630
|
type TxInputType = (CommonTxInputType & {
|
|
461
631
|
address_n: number[];
|
|
@@ -595,12 +765,15 @@ type OwnershipProof = {
|
|
|
595
765
|
};
|
|
596
766
|
type AuthorizeCoinJoin = {
|
|
597
767
|
coordinator: string;
|
|
598
|
-
max_total_fee
|
|
768
|
+
max_total_fee?: number;
|
|
599
769
|
fee_per_anonymity?: number;
|
|
600
770
|
address_n: number[];
|
|
601
771
|
coin_name?: string;
|
|
602
772
|
script_type?: InputScriptType;
|
|
603
773
|
amount_unit?: AmountUnit;
|
|
774
|
+
max_rounds?: number;
|
|
775
|
+
max_coordinator_fee_rate?: number;
|
|
776
|
+
max_fee_per_kvbyte?: number;
|
|
604
777
|
};
|
|
605
778
|
type BIP32Address = {
|
|
606
779
|
address_n: number[];
|
|
@@ -1755,7 +1928,10 @@ type LnurlAuthResp = {
|
|
|
1755
1928
|
declare enum Enum_BackupType {
|
|
1756
1929
|
Bip39 = 0,
|
|
1757
1930
|
Slip39_Basic = 1,
|
|
1758
|
-
Slip39_Advanced = 2
|
|
1931
|
+
Slip39_Advanced = 2,
|
|
1932
|
+
Slip39_Single_Extendable = 3,
|
|
1933
|
+
Slip39_Basic_Extendable = 4,
|
|
1934
|
+
Slip39_Advanced_Extendable = 5
|
|
1759
1935
|
}
|
|
1760
1936
|
type BackupType = keyof typeof Enum_BackupType;
|
|
1761
1937
|
declare enum Enum_SafetyCheckLevel {
|
|
@@ -2231,6 +2407,8 @@ type UnLockDeviceResponse = {
|
|
|
2231
2407
|
};
|
|
2232
2408
|
type GetPassphraseState = {
|
|
2233
2409
|
passphrase_state?: string;
|
|
2410
|
+
_only_main_pin?: boolean;
|
|
2411
|
+
allow_create_attach_pin?: boolean;
|
|
2234
2412
|
};
|
|
2235
2413
|
type PassphraseState = {
|
|
2236
2414
|
passphrase_state?: string;
|
|
@@ -2286,7 +2464,7 @@ type MoneroTransactionRsigData = {
|
|
|
2286
2464
|
type MoneroGetAddress = {
|
|
2287
2465
|
address_n: number[];
|
|
2288
2466
|
show_display?: boolean;
|
|
2289
|
-
network_type?: number;
|
|
2467
|
+
network_type?: number | MoneroNetworkType;
|
|
2290
2468
|
account?: number;
|
|
2291
2469
|
minor?: number;
|
|
2292
2470
|
payment_id?: string;
|
|
@@ -2296,7 +2474,7 @@ type MoneroAddress = {
|
|
|
2296
2474
|
};
|
|
2297
2475
|
type MoneroGetWatchKey = {
|
|
2298
2476
|
address_n: number[];
|
|
2299
|
-
network_type?: number;
|
|
2477
|
+
network_type?: number | MoneroNetworkType;
|
|
2300
2478
|
};
|
|
2301
2479
|
type MoneroWatchKey = {
|
|
2302
2480
|
watch_key?: string;
|
|
@@ -2322,7 +2500,7 @@ type MoneroTransactionData = {
|
|
|
2322
2500
|
type MoneroTransactionInitRequest = {
|
|
2323
2501
|
version?: number;
|
|
2324
2502
|
address_n: number[];
|
|
2325
|
-
network_type?: number;
|
|
2503
|
+
network_type?: number | MoneroNetworkType;
|
|
2326
2504
|
tsx_data?: MoneroTransactionData;
|
|
2327
2505
|
};
|
|
2328
2506
|
type MoneroTransactionInitAck = {
|
|
@@ -2414,7 +2592,7 @@ type MoneroKeyImageExportInitRequest = {
|
|
|
2414
2592
|
num?: number;
|
|
2415
2593
|
hash?: string;
|
|
2416
2594
|
address_n: number[];
|
|
2417
|
-
network_type?: number;
|
|
2595
|
+
network_type?: number | MoneroNetworkType;
|
|
2418
2596
|
subs: MoneroSubAddressIndicesList[];
|
|
2419
2597
|
};
|
|
2420
2598
|
type MoneroKeyImageExportInitAck = {};
|
|
@@ -2442,7 +2620,7 @@ type MoneroKeyImageSyncFinalAck = {
|
|
|
2442
2620
|
};
|
|
2443
2621
|
type MoneroGetTxKeyRequest = {
|
|
2444
2622
|
address_n: number[];
|
|
2445
|
-
network_type?: number;
|
|
2623
|
+
network_type?: number | MoneroNetworkType;
|
|
2446
2624
|
salt1?: string;
|
|
2447
2625
|
salt2?: string;
|
|
2448
2626
|
tx_enc_keys?: string;
|
|
@@ -2457,7 +2635,7 @@ type MoneroGetTxKeyAck = {
|
|
|
2457
2635
|
};
|
|
2458
2636
|
type MoneroLiveRefreshStartRequest = {
|
|
2459
2637
|
address_n: number[];
|
|
2460
|
-
network_type?: number;
|
|
2638
|
+
network_type?: number | MoneroNetworkType;
|
|
2461
2639
|
};
|
|
2462
2640
|
type MoneroLiveRefreshStartAck = {};
|
|
2463
2641
|
type MoneroLiveRefreshStepRequest = {
|
|
@@ -3221,6 +3399,7 @@ type TonSignedMessage = {
|
|
|
3221
3399
|
signature?: string;
|
|
3222
3400
|
signning_message?: string;
|
|
3223
3401
|
init_data_length?: number;
|
|
3402
|
+
signing_message?: string;
|
|
3224
3403
|
};
|
|
3225
3404
|
type TonSignProof = {
|
|
3226
3405
|
address_n: number[];
|
|
@@ -3374,6 +3553,345 @@ declare enum CommandFlags {
|
|
|
3374
3553
|
Default = 0,
|
|
3375
3554
|
Factory_Only = 1
|
|
3376
3555
|
}
|
|
3556
|
+
type experimental_message = {};
|
|
3557
|
+
type experimental_field = {};
|
|
3558
|
+
type TextMemo = {
|
|
3559
|
+
text: string;
|
|
3560
|
+
};
|
|
3561
|
+
type RefundMemo = {
|
|
3562
|
+
address: string;
|
|
3563
|
+
mac: string;
|
|
3564
|
+
};
|
|
3565
|
+
type CoinPurchaseMemo = {
|
|
3566
|
+
coin_type: number;
|
|
3567
|
+
amount: UintType;
|
|
3568
|
+
address: string;
|
|
3569
|
+
mac: string;
|
|
3570
|
+
};
|
|
3571
|
+
type PaymentRequestMemo = {
|
|
3572
|
+
text_memo?: TextMemo;
|
|
3573
|
+
refund_memo?: RefundMemo;
|
|
3574
|
+
coin_purchase_memo?: CoinPurchaseMemo;
|
|
3575
|
+
};
|
|
3576
|
+
type TxAckPaymentRequest = {
|
|
3577
|
+
nonce?: string;
|
|
3578
|
+
recipient_name: string;
|
|
3579
|
+
memos?: PaymentRequestMemo[];
|
|
3580
|
+
amount?: UintType;
|
|
3581
|
+
signature: string;
|
|
3582
|
+
};
|
|
3583
|
+
type DebugLinkInput = {
|
|
3584
|
+
x?: number;
|
|
3585
|
+
y?: number;
|
|
3586
|
+
duration_ms?: number;
|
|
3587
|
+
x_end?: number;
|
|
3588
|
+
y_end?: number;
|
|
3589
|
+
};
|
|
3590
|
+
type InternalMyAddressRequest = {
|
|
3591
|
+
coin_type: number;
|
|
3592
|
+
chain_id: number;
|
|
3593
|
+
account_index: number;
|
|
3594
|
+
derive_type: number;
|
|
3595
|
+
};
|
|
3596
|
+
type SetBusy = {
|
|
3597
|
+
expiry_ms?: number;
|
|
3598
|
+
};
|
|
3599
|
+
type GetFirmwareHash = {
|
|
3600
|
+
challenge?: string;
|
|
3601
|
+
};
|
|
3602
|
+
type FirmwareHash = {
|
|
3603
|
+
hash: string;
|
|
3604
|
+
};
|
|
3605
|
+
type GetNonce = {};
|
|
3606
|
+
type Nonce = {
|
|
3607
|
+
nonce: string;
|
|
3608
|
+
};
|
|
3609
|
+
type WriteSEPrivateKey = {
|
|
3610
|
+
private_key: string;
|
|
3611
|
+
};
|
|
3612
|
+
declare enum WallpaperTarget {
|
|
3613
|
+
Home = 0,
|
|
3614
|
+
Lock = 1
|
|
3615
|
+
}
|
|
3616
|
+
type SetWallpaper = {
|
|
3617
|
+
target: WallpaperTarget;
|
|
3618
|
+
path: string;
|
|
3619
|
+
};
|
|
3620
|
+
type GetWallpaper = {
|
|
3621
|
+
target: WallpaperTarget;
|
|
3622
|
+
};
|
|
3623
|
+
type Wallpaper = {
|
|
3624
|
+
target: WallpaperTarget;
|
|
3625
|
+
path: string;
|
|
3626
|
+
};
|
|
3627
|
+
type UnlockPath = {
|
|
3628
|
+
address_n: number[];
|
|
3629
|
+
mac?: string;
|
|
3630
|
+
};
|
|
3631
|
+
type UnlockedPathRequest = {
|
|
3632
|
+
mac?: string;
|
|
3633
|
+
};
|
|
3634
|
+
declare enum MoneroNetworkType {
|
|
3635
|
+
MAINNET = 0,
|
|
3636
|
+
TESTNET = 1,
|
|
3637
|
+
STAGENET = 2,
|
|
3638
|
+
FAKECHAIN = 3
|
|
3639
|
+
}
|
|
3640
|
+
type ViewAmount = {
|
|
3641
|
+
is_unlimited: boolean;
|
|
3642
|
+
num: string;
|
|
3643
|
+
};
|
|
3644
|
+
type ViewDetail = {
|
|
3645
|
+
key: number;
|
|
3646
|
+
value: string;
|
|
3647
|
+
is_overview: boolean;
|
|
3648
|
+
has_icon: boolean;
|
|
3649
|
+
};
|
|
3650
|
+
declare enum ViewTipType {
|
|
3651
|
+
Default = 0,
|
|
3652
|
+
Highlight = 1,
|
|
3653
|
+
Recommend = 2,
|
|
3654
|
+
Warning = 3,
|
|
3655
|
+
Danger = 4
|
|
3656
|
+
}
|
|
3657
|
+
type ViewTip = {
|
|
3658
|
+
type: ViewTipType;
|
|
3659
|
+
text: string;
|
|
3660
|
+
};
|
|
3661
|
+
type ViewSignPage = {
|
|
3662
|
+
title: string;
|
|
3663
|
+
amount?: UintType;
|
|
3664
|
+
general: ViewDetail[];
|
|
3665
|
+
tip?: ViewTip;
|
|
3666
|
+
};
|
|
3667
|
+
type ViewVerifyPage = {
|
|
3668
|
+
title: string;
|
|
3669
|
+
address: string;
|
|
3670
|
+
path: string;
|
|
3671
|
+
};
|
|
3672
|
+
type GetProtoVersion = {};
|
|
3673
|
+
type ProtoVersion = {
|
|
3674
|
+
proto_version: number;
|
|
3675
|
+
};
|
|
3676
|
+
declare enum DevRebootType {
|
|
3677
|
+
Normal = 0,
|
|
3678
|
+
Boardloader = 1,
|
|
3679
|
+
Bootloader = 2
|
|
3680
|
+
}
|
|
3681
|
+
type DevReboot = {
|
|
3682
|
+
reboot_type: DevRebootType;
|
|
3683
|
+
};
|
|
3684
|
+
declare enum DeviceType {
|
|
3685
|
+
CLASSIC1 = 0,
|
|
3686
|
+
CLASSIC1S = 1,
|
|
3687
|
+
MINI = 2,
|
|
3688
|
+
TOUCH = 3,
|
|
3689
|
+
PRO = 5,
|
|
3690
|
+
CLASSIC1S_PURE = 6
|
|
3691
|
+
}
|
|
3692
|
+
declare enum DevSeType {
|
|
3693
|
+
THD89 = 0,
|
|
3694
|
+
SE608A = 1
|
|
3695
|
+
}
|
|
3696
|
+
declare enum DevSEState {
|
|
3697
|
+
BOOT = 0,
|
|
3698
|
+
APP_FACTORY = 51,
|
|
3699
|
+
APP = 85
|
|
3700
|
+
}
|
|
3701
|
+
type DevFirmwareImageInfo = {
|
|
3702
|
+
version?: string;
|
|
3703
|
+
build_id?: string;
|
|
3704
|
+
hash?: string;
|
|
3705
|
+
};
|
|
3706
|
+
type DevHardwareInfo = {
|
|
3707
|
+
device_type?: DeviceType;
|
|
3708
|
+
serial_no?: string;
|
|
3709
|
+
device_id?: string;
|
|
3710
|
+
hardware_version?: string;
|
|
3711
|
+
hardware_version_raw_adc?: number;
|
|
3712
|
+
};
|
|
3713
|
+
type DevMainMcuInfo = {
|
|
3714
|
+
board?: DevFirmwareImageInfo;
|
|
3715
|
+
boot?: DevFirmwareImageInfo;
|
|
3716
|
+
app?: DevFirmwareImageInfo;
|
|
3717
|
+
};
|
|
3718
|
+
type DevBluetoothInfo = {
|
|
3719
|
+
boot?: DevFirmwareImageInfo;
|
|
3720
|
+
app?: DevFirmwareImageInfo;
|
|
3721
|
+
adv_name?: string;
|
|
3722
|
+
mac?: string;
|
|
3723
|
+
};
|
|
3724
|
+
type DevSEInfo = {
|
|
3725
|
+
boot?: DevFirmwareImageInfo;
|
|
3726
|
+
app?: DevFirmwareImageInfo;
|
|
3727
|
+
type?: DevSeType;
|
|
3728
|
+
state?: DevSEState;
|
|
3729
|
+
};
|
|
3730
|
+
type DevInfoTargets = {
|
|
3731
|
+
hw?: boolean;
|
|
3732
|
+
fw?: boolean;
|
|
3733
|
+
bt?: boolean;
|
|
3734
|
+
se1?: boolean;
|
|
3735
|
+
se2?: boolean;
|
|
3736
|
+
se3?: boolean;
|
|
3737
|
+
se4?: boolean;
|
|
3738
|
+
status?: boolean;
|
|
3739
|
+
};
|
|
3740
|
+
type DevInfoTypes = {
|
|
3741
|
+
version?: boolean;
|
|
3742
|
+
build_id?: boolean;
|
|
3743
|
+
hash?: boolean;
|
|
3744
|
+
specific?: boolean;
|
|
3745
|
+
};
|
|
3746
|
+
type DevStatus = {
|
|
3747
|
+
language?: string;
|
|
3748
|
+
bt_enable?: boolean;
|
|
3749
|
+
init_states?: boolean;
|
|
3750
|
+
backup_required?: boolean;
|
|
3751
|
+
passphrase_protection?: boolean;
|
|
3752
|
+
label?: string;
|
|
3753
|
+
};
|
|
3754
|
+
type DevGetDeviceInfo = {
|
|
3755
|
+
targets?: DevInfoTargets;
|
|
3756
|
+
types?: DevInfoTypes;
|
|
3757
|
+
};
|
|
3758
|
+
type ProtocolV2DeviceInfo = {
|
|
3759
|
+
protocol_version: number;
|
|
3760
|
+
hw?: DevHardwareInfo;
|
|
3761
|
+
fw?: DevMainMcuInfo;
|
|
3762
|
+
bt?: DevBluetoothInfo;
|
|
3763
|
+
se1?: DevSEInfo;
|
|
3764
|
+
se2?: DevSEInfo;
|
|
3765
|
+
se3?: DevSEInfo;
|
|
3766
|
+
se4?: DevSEInfo;
|
|
3767
|
+
status?: DevStatus;
|
|
3768
|
+
};
|
|
3769
|
+
declare enum DevFirmwareTargetType {
|
|
3770
|
+
TARGET_MAIN_APP = 0,
|
|
3771
|
+
TARGET_MAIN_BOOT = 1,
|
|
3772
|
+
TARGET_BT = 2,
|
|
3773
|
+
TARGET_SE1 = 3,
|
|
3774
|
+
TARGET_SE2 = 4,
|
|
3775
|
+
TARGET_SE3 = 5,
|
|
3776
|
+
TARGET_SE4 = 6,
|
|
3777
|
+
TARGET_RESOURCE = 10
|
|
3778
|
+
}
|
|
3779
|
+
type DevFirmwareTarget = {
|
|
3780
|
+
target_id: DevFirmwareTargetType;
|
|
3781
|
+
path: string;
|
|
3782
|
+
};
|
|
3783
|
+
type DevFirmwareUpdate = {
|
|
3784
|
+
targets: DevFirmwareTarget[];
|
|
3785
|
+
};
|
|
3786
|
+
type DevFirmwareInstallProgress = {
|
|
3787
|
+
target_id: DevFirmwareTargetType;
|
|
3788
|
+
progress: number;
|
|
3789
|
+
stage?: string;
|
|
3790
|
+
};
|
|
3791
|
+
type DevFirmwareUpdateStatusEntry = {
|
|
3792
|
+
target_id: DevFirmwareTargetType;
|
|
3793
|
+
status: number;
|
|
3794
|
+
};
|
|
3795
|
+
type DevGetFirmwareUpdateStatus = {};
|
|
3796
|
+
type DevFirmwareUpdateStatus = {
|
|
3797
|
+
targets: DevFirmwareUpdateStatusEntry[];
|
|
3798
|
+
};
|
|
3799
|
+
type FactoryDeviceInfoSettings = {
|
|
3800
|
+
serial_no?: string;
|
|
3801
|
+
cpu_info?: string;
|
|
3802
|
+
pre_firmware?: string;
|
|
3803
|
+
};
|
|
3804
|
+
type FactoryGetDeviceInfo = {};
|
|
3805
|
+
type FactoryDeviceInfo = {
|
|
3806
|
+
serial_no?: string;
|
|
3807
|
+
spi_flash_info?: string;
|
|
3808
|
+
se_info?: string;
|
|
3809
|
+
nft_voucher?: string;
|
|
3810
|
+
cpu_info?: string;
|
|
3811
|
+
pre_firmware?: string;
|
|
3812
|
+
};
|
|
3813
|
+
type FilesystemFixPermission = {};
|
|
3814
|
+
type FilesystemPathInfo = {
|
|
3815
|
+
exist: boolean;
|
|
3816
|
+
size: number;
|
|
3817
|
+
year: number;
|
|
3818
|
+
month: number;
|
|
3819
|
+
day: number;
|
|
3820
|
+
hour: number;
|
|
3821
|
+
minute: number;
|
|
3822
|
+
second: number;
|
|
3823
|
+
readonly: boolean;
|
|
3824
|
+
hidden: boolean;
|
|
3825
|
+
system: boolean;
|
|
3826
|
+
archive: boolean;
|
|
3827
|
+
directory: boolean;
|
|
3828
|
+
};
|
|
3829
|
+
type FilesystemPathInfoQuery = {
|
|
3830
|
+
path: string;
|
|
3831
|
+
};
|
|
3832
|
+
type FilesystemFile = {
|
|
3833
|
+
path: string;
|
|
3834
|
+
offset: number;
|
|
3835
|
+
total_size: number;
|
|
3836
|
+
data?: Buffer | ArrayBuffer | Uint8Array | string;
|
|
3837
|
+
data_hash?: number;
|
|
3838
|
+
processed_byte?: number;
|
|
3839
|
+
};
|
|
3840
|
+
type FilesystemFileRead = {
|
|
3841
|
+
file: FilesystemFile;
|
|
3842
|
+
chunk_len?: number;
|
|
3843
|
+
ui_percentage?: number;
|
|
3844
|
+
};
|
|
3845
|
+
type FilesystemFileWrite = {
|
|
3846
|
+
file: FilesystemFile;
|
|
3847
|
+
overwrite: boolean;
|
|
3848
|
+
append: boolean;
|
|
3849
|
+
ui_percentage?: number;
|
|
3850
|
+
};
|
|
3851
|
+
type FilesystemFileDelete = {
|
|
3852
|
+
path: string;
|
|
3853
|
+
};
|
|
3854
|
+
type FilesystemDir = {
|
|
3855
|
+
path: string;
|
|
3856
|
+
child_dirs?: string;
|
|
3857
|
+
child_files?: string;
|
|
3858
|
+
};
|
|
3859
|
+
type FilesystemDirList = {
|
|
3860
|
+
path: string;
|
|
3861
|
+
depth?: number;
|
|
3862
|
+
};
|
|
3863
|
+
type FilesystemDirMake = {
|
|
3864
|
+
path: string;
|
|
3865
|
+
};
|
|
3866
|
+
type FilesystemDirRemove = {
|
|
3867
|
+
path: string;
|
|
3868
|
+
};
|
|
3869
|
+
type FilesystemFormat = {};
|
|
3870
|
+
declare enum OnboardingStep {
|
|
3871
|
+
ONBOARDING_STEP_UNKNOWN = 0,
|
|
3872
|
+
ONBOARDING_STEP_DEVICE_VERIFICATION = 1,
|
|
3873
|
+
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
3874
|
+
ONBOARDING_STEP_SETUP = 3,
|
|
3875
|
+
ONBOARDING_STEP_FIRMWARE = 4
|
|
3876
|
+
}
|
|
3877
|
+
type GetOnboardingStatus = {};
|
|
3878
|
+
type NewDevice = {
|
|
3879
|
+
seedcard_backup?: boolean;
|
|
3880
|
+
};
|
|
3881
|
+
type Restore = {
|
|
3882
|
+
mnemonic?: boolean;
|
|
3883
|
+
seedcard?: boolean;
|
|
3884
|
+
};
|
|
3885
|
+
type Setup = {
|
|
3886
|
+
new_device?: NewDevice;
|
|
3887
|
+
restore?: Restore;
|
|
3888
|
+
};
|
|
3889
|
+
type OnboardingStatus = {
|
|
3890
|
+
step: OnboardingStep;
|
|
3891
|
+
setup?: Setup;
|
|
3892
|
+
detail_code?: number;
|
|
3893
|
+
detail_str?: string;
|
|
3894
|
+
};
|
|
3377
3895
|
type MessageType = {
|
|
3378
3896
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
3379
3897
|
AlephiumAddress: AlephiumAddress;
|
|
@@ -3429,6 +3947,7 @@ type MessageType = {
|
|
|
3429
3947
|
SignMessage: SignMessage;
|
|
3430
3948
|
MessageSignature: MessageSignature;
|
|
3431
3949
|
VerifyMessage: VerifyMessage;
|
|
3950
|
+
CoinJoinRequest: CoinJoinRequest;
|
|
3432
3951
|
SignTx: SignTx;
|
|
3433
3952
|
TxRequestDetailsType: TxRequestDetailsType;
|
|
3434
3953
|
TxRequestSerializedType: TxRequestSerializedType;
|
|
@@ -3697,7 +4216,7 @@ type MessageType = {
|
|
|
3697
4216
|
BixinBackupDeviceAck: BixinBackupDeviceAck;
|
|
3698
4217
|
DeviceInfoSettings: DeviceInfoSettings;
|
|
3699
4218
|
GetDeviceInfo: GetDeviceInfo;
|
|
3700
|
-
DeviceInfo: DeviceInfo;
|
|
4219
|
+
DeviceInfo: DeviceInfo | ProtocolV2DeviceInfo;
|
|
3701
4220
|
ReadSEPublicKey: ReadSEPublicKey;
|
|
3702
4221
|
SEPublicKey: SEPublicKey;
|
|
3703
4222
|
WriteSEPublicCert: WriteSEPublicCert;
|
|
@@ -3929,13 +4448,82 @@ type MessageType = {
|
|
|
3929
4448
|
TronSignMessage: TronSignMessage;
|
|
3930
4449
|
TronMessageSignature: TronMessageSignature;
|
|
3931
4450
|
facotry: facotry;
|
|
4451
|
+
experimental_message: experimental_message;
|
|
4452
|
+
experimental_field: experimental_field;
|
|
4453
|
+
TextMemo: TextMemo;
|
|
4454
|
+
RefundMemo: RefundMemo;
|
|
4455
|
+
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
4456
|
+
PaymentRequestMemo: PaymentRequestMemo;
|
|
4457
|
+
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4458
|
+
DebugLinkInput: DebugLinkInput;
|
|
4459
|
+
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4460
|
+
SetBusy: SetBusy;
|
|
4461
|
+
GetFirmwareHash: GetFirmwareHash;
|
|
4462
|
+
FirmwareHash: FirmwareHash;
|
|
4463
|
+
GetNonce: GetNonce;
|
|
4464
|
+
Nonce: Nonce;
|
|
4465
|
+
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4466
|
+
SetWallpaper: SetWallpaper;
|
|
4467
|
+
GetWallpaper: GetWallpaper;
|
|
4468
|
+
Wallpaper: Wallpaper;
|
|
4469
|
+
UnlockPath: UnlockPath;
|
|
4470
|
+
UnlockedPathRequest: UnlockedPathRequest;
|
|
4471
|
+
ViewAmount: ViewAmount;
|
|
4472
|
+
ViewDetail: ViewDetail;
|
|
4473
|
+
ViewTip: ViewTip;
|
|
4474
|
+
ViewSignPage: ViewSignPage;
|
|
4475
|
+
ViewVerifyPage: ViewVerifyPage;
|
|
4476
|
+
GetProtoVersion: GetProtoVersion;
|
|
4477
|
+
ProtoVersion: ProtoVersion;
|
|
4478
|
+
DevReboot: DevReboot;
|
|
4479
|
+
DevFirmwareImageInfo: DevFirmwareImageInfo;
|
|
4480
|
+
DevHardwareInfo: DevHardwareInfo;
|
|
4481
|
+
DevMainMcuInfo: DevMainMcuInfo;
|
|
4482
|
+
DevBluetoothInfo: DevBluetoothInfo;
|
|
4483
|
+
DevSEInfo: DevSEInfo;
|
|
4484
|
+
DevInfoTargets: DevInfoTargets;
|
|
4485
|
+
DevInfoTypes: DevInfoTypes;
|
|
4486
|
+
DevStatus: DevStatus;
|
|
4487
|
+
DevGetDeviceInfo: DevGetDeviceInfo;
|
|
4488
|
+
DevFirmwareTarget: DevFirmwareTarget;
|
|
4489
|
+
DevFirmwareUpdate: DevFirmwareUpdate;
|
|
4490
|
+
DevFirmwareInstallProgress: DevFirmwareInstallProgress;
|
|
4491
|
+
DevFirmwareUpdateStatusEntry: DevFirmwareUpdateStatusEntry;
|
|
4492
|
+
DevGetFirmwareUpdateStatus: DevGetFirmwareUpdateStatus;
|
|
4493
|
+
DevFirmwareUpdateStatus: DevFirmwareUpdateStatus;
|
|
4494
|
+
FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
|
|
4495
|
+
FactoryGetDeviceInfo: FactoryGetDeviceInfo;
|
|
4496
|
+
FactoryDeviceInfo: FactoryDeviceInfo;
|
|
4497
|
+
FilesystemFixPermission: FilesystemFixPermission;
|
|
4498
|
+
FilesystemPathInfo: FilesystemPathInfo;
|
|
4499
|
+
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
4500
|
+
FilesystemFile: FilesystemFile;
|
|
4501
|
+
FilesystemFileRead: FilesystemFileRead;
|
|
4502
|
+
FilesystemFileWrite: FilesystemFileWrite;
|
|
4503
|
+
FilesystemFileDelete: FilesystemFileDelete;
|
|
4504
|
+
FilesystemDir: FilesystemDir;
|
|
4505
|
+
FilesystemDirList: FilesystemDirList;
|
|
4506
|
+
FilesystemDirMake: FilesystemDirMake;
|
|
4507
|
+
FilesystemDirRemove: FilesystemDirRemove;
|
|
4508
|
+
FilesystemFormat: FilesystemFormat;
|
|
4509
|
+
GetOnboardingStatus: GetOnboardingStatus;
|
|
4510
|
+
NewDevice: NewDevice;
|
|
4511
|
+
Restore: Restore;
|
|
4512
|
+
Setup: Setup;
|
|
4513
|
+
OnboardingStatus: OnboardingStatus;
|
|
3932
4514
|
};
|
|
3933
4515
|
type MessageKey = keyof MessageType;
|
|
3934
4516
|
type MessageResponse<T extends MessageKey> = {
|
|
3935
4517
|
type: T;
|
|
3936
4518
|
message: MessageType[T];
|
|
3937
4519
|
};
|
|
3938
|
-
type
|
|
4520
|
+
type MessageResponseMap = {
|
|
4521
|
+
[K in MessageKey]: MessageResponse<K>;
|
|
4522
|
+
};
|
|
4523
|
+
type TypedCall = {
|
|
4524
|
+
<T extends MessageKey, R extends readonly MessageKey[]>(type: T, resType: R, message?: MessageType[T]): Promise<MessageResponseMap[R[number]]>;
|
|
4525
|
+
<T extends MessageKey, R extends MessageKey>(type: T, resType: R, message?: MessageType[T]): Promise<MessageResponse<R>>;
|
|
4526
|
+
};
|
|
3939
4527
|
|
|
3940
4528
|
type messages_UintType = UintType;
|
|
3941
4529
|
type messages_AlephiumGetAddress = AlephiumGetAddress;
|
|
@@ -4010,6 +4598,7 @@ type messages_OwnershipId = OwnershipId;
|
|
|
4010
4598
|
type messages_SignMessage = SignMessage;
|
|
4011
4599
|
type messages_MessageSignature = MessageSignature;
|
|
4012
4600
|
type messages_VerifyMessage = VerifyMessage;
|
|
4601
|
+
type messages_CoinJoinRequest = CoinJoinRequest;
|
|
4013
4602
|
type messages_SignTx = SignTx;
|
|
4014
4603
|
type messages_Enum_RequestType = Enum_RequestType;
|
|
4015
4604
|
declare const messages_Enum_RequestType: typeof Enum_RequestType;
|
|
@@ -4626,9 +5215,92 @@ type messages_TronMessageSignature = TronMessageSignature;
|
|
|
4626
5215
|
type messages_facotry = facotry;
|
|
4627
5216
|
type messages_CommandFlags = CommandFlags;
|
|
4628
5217
|
declare const messages_CommandFlags: typeof CommandFlags;
|
|
5218
|
+
type messages_experimental_message = experimental_message;
|
|
5219
|
+
type messages_experimental_field = experimental_field;
|
|
5220
|
+
type messages_TextMemo = TextMemo;
|
|
5221
|
+
type messages_RefundMemo = RefundMemo;
|
|
5222
|
+
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
5223
|
+
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5224
|
+
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5225
|
+
type messages_DebugLinkInput = DebugLinkInput;
|
|
5226
|
+
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5227
|
+
type messages_SetBusy = SetBusy;
|
|
5228
|
+
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5229
|
+
type messages_FirmwareHash = FirmwareHash;
|
|
5230
|
+
type messages_GetNonce = GetNonce;
|
|
5231
|
+
type messages_Nonce = Nonce;
|
|
5232
|
+
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5233
|
+
type messages_WallpaperTarget = WallpaperTarget;
|
|
5234
|
+
declare const messages_WallpaperTarget: typeof WallpaperTarget;
|
|
5235
|
+
type messages_SetWallpaper = SetWallpaper;
|
|
5236
|
+
type messages_GetWallpaper = GetWallpaper;
|
|
5237
|
+
type messages_Wallpaper = Wallpaper;
|
|
5238
|
+
type messages_UnlockPath = UnlockPath;
|
|
5239
|
+
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5240
|
+
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5241
|
+
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5242
|
+
type messages_ViewAmount = ViewAmount;
|
|
5243
|
+
type messages_ViewDetail = ViewDetail;
|
|
5244
|
+
type messages_ViewTipType = ViewTipType;
|
|
5245
|
+
declare const messages_ViewTipType: typeof ViewTipType;
|
|
5246
|
+
type messages_ViewTip = ViewTip;
|
|
5247
|
+
type messages_ViewSignPage = ViewSignPage;
|
|
5248
|
+
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5249
|
+
type messages_GetProtoVersion = GetProtoVersion;
|
|
5250
|
+
type messages_ProtoVersion = ProtoVersion;
|
|
5251
|
+
type messages_DevRebootType = DevRebootType;
|
|
5252
|
+
declare const messages_DevRebootType: typeof DevRebootType;
|
|
5253
|
+
type messages_DevReboot = DevReboot;
|
|
5254
|
+
type messages_DeviceType = DeviceType;
|
|
5255
|
+
declare const messages_DeviceType: typeof DeviceType;
|
|
5256
|
+
type messages_DevSeType = DevSeType;
|
|
5257
|
+
declare const messages_DevSeType: typeof DevSeType;
|
|
5258
|
+
type messages_DevSEState = DevSEState;
|
|
5259
|
+
declare const messages_DevSEState: typeof DevSEState;
|
|
5260
|
+
type messages_DevFirmwareImageInfo = DevFirmwareImageInfo;
|
|
5261
|
+
type messages_DevHardwareInfo = DevHardwareInfo;
|
|
5262
|
+
type messages_DevMainMcuInfo = DevMainMcuInfo;
|
|
5263
|
+
type messages_DevBluetoothInfo = DevBluetoothInfo;
|
|
5264
|
+
type messages_DevSEInfo = DevSEInfo;
|
|
5265
|
+
type messages_DevInfoTargets = DevInfoTargets;
|
|
5266
|
+
type messages_DevInfoTypes = DevInfoTypes;
|
|
5267
|
+
type messages_DevStatus = DevStatus;
|
|
5268
|
+
type messages_DevGetDeviceInfo = DevGetDeviceInfo;
|
|
5269
|
+
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5270
|
+
type messages_DevFirmwareTargetType = DevFirmwareTargetType;
|
|
5271
|
+
declare const messages_DevFirmwareTargetType: typeof DevFirmwareTargetType;
|
|
5272
|
+
type messages_DevFirmwareTarget = DevFirmwareTarget;
|
|
5273
|
+
type messages_DevFirmwareUpdate = DevFirmwareUpdate;
|
|
5274
|
+
type messages_DevFirmwareInstallProgress = DevFirmwareInstallProgress;
|
|
5275
|
+
type messages_DevFirmwareUpdateStatusEntry = DevFirmwareUpdateStatusEntry;
|
|
5276
|
+
type messages_DevGetFirmwareUpdateStatus = DevGetFirmwareUpdateStatus;
|
|
5277
|
+
type messages_DevFirmwareUpdateStatus = DevFirmwareUpdateStatus;
|
|
5278
|
+
type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
|
|
5279
|
+
type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
|
|
5280
|
+
type messages_FactoryDeviceInfo = FactoryDeviceInfo;
|
|
5281
|
+
type messages_FilesystemFixPermission = FilesystemFixPermission;
|
|
5282
|
+
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5283
|
+
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
5284
|
+
type messages_FilesystemFile = FilesystemFile;
|
|
5285
|
+
type messages_FilesystemFileRead = FilesystemFileRead;
|
|
5286
|
+
type messages_FilesystemFileWrite = FilesystemFileWrite;
|
|
5287
|
+
type messages_FilesystemFileDelete = FilesystemFileDelete;
|
|
5288
|
+
type messages_FilesystemDir = FilesystemDir;
|
|
5289
|
+
type messages_FilesystemDirList = FilesystemDirList;
|
|
5290
|
+
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5291
|
+
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5292
|
+
type messages_FilesystemFormat = FilesystemFormat;
|
|
5293
|
+
type messages_OnboardingStep = OnboardingStep;
|
|
5294
|
+
declare const messages_OnboardingStep: typeof OnboardingStep;
|
|
5295
|
+
type messages_GetOnboardingStatus = GetOnboardingStatus;
|
|
5296
|
+
type messages_NewDevice = NewDevice;
|
|
5297
|
+
type messages_Restore = Restore;
|
|
5298
|
+
type messages_Setup = Setup;
|
|
5299
|
+
type messages_OnboardingStatus = OnboardingStatus;
|
|
4629
5300
|
type messages_MessageType = MessageType;
|
|
4630
5301
|
type messages_MessageKey = MessageKey;
|
|
4631
5302
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
5303
|
+
type messages_MessageResponseMap = MessageResponseMap;
|
|
4632
5304
|
type messages_TypedCall = TypedCall;
|
|
4633
5305
|
declare namespace messages {
|
|
4634
5306
|
export {
|
|
@@ -4697,6 +5369,7 @@ declare namespace messages {
|
|
|
4697
5369
|
messages_SignMessage as SignMessage,
|
|
4698
5370
|
messages_MessageSignature as MessageSignature,
|
|
4699
5371
|
messages_VerifyMessage as VerifyMessage,
|
|
5372
|
+
messages_CoinJoinRequest as CoinJoinRequest,
|
|
4700
5373
|
messages_SignTx as SignTx,
|
|
4701
5374
|
messages_Enum_RequestType as Enum_RequestType,
|
|
4702
5375
|
messages_RequestType as RequestType,
|
|
@@ -5261,13 +5934,134 @@ declare namespace messages {
|
|
|
5261
5934
|
messages_TronMessageSignature as TronMessageSignature,
|
|
5262
5935
|
messages_facotry as facotry,
|
|
5263
5936
|
messages_CommandFlags as CommandFlags,
|
|
5937
|
+
messages_experimental_message as experimental_message,
|
|
5938
|
+
messages_experimental_field as experimental_field,
|
|
5939
|
+
messages_TextMemo as TextMemo,
|
|
5940
|
+
messages_RefundMemo as RefundMemo,
|
|
5941
|
+
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
5942
|
+
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
5943
|
+
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
5944
|
+
messages_DebugLinkInput as DebugLinkInput,
|
|
5945
|
+
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
5946
|
+
messages_SetBusy as SetBusy,
|
|
5947
|
+
messages_GetFirmwareHash as GetFirmwareHash,
|
|
5948
|
+
messages_FirmwareHash as FirmwareHash,
|
|
5949
|
+
messages_GetNonce as GetNonce,
|
|
5950
|
+
messages_Nonce as Nonce,
|
|
5951
|
+
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
5952
|
+
messages_WallpaperTarget as WallpaperTarget,
|
|
5953
|
+
messages_SetWallpaper as SetWallpaper,
|
|
5954
|
+
messages_GetWallpaper as GetWallpaper,
|
|
5955
|
+
messages_Wallpaper as Wallpaper,
|
|
5956
|
+
messages_UnlockPath as UnlockPath,
|
|
5957
|
+
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
5958
|
+
messages_MoneroNetworkType as MoneroNetworkType,
|
|
5959
|
+
messages_ViewAmount as ViewAmount,
|
|
5960
|
+
messages_ViewDetail as ViewDetail,
|
|
5961
|
+
messages_ViewTipType as ViewTipType,
|
|
5962
|
+
messages_ViewTip as ViewTip,
|
|
5963
|
+
messages_ViewSignPage as ViewSignPage,
|
|
5964
|
+
messages_ViewVerifyPage as ViewVerifyPage,
|
|
5965
|
+
messages_GetProtoVersion as GetProtoVersion,
|
|
5966
|
+
messages_ProtoVersion as ProtoVersion,
|
|
5967
|
+
messages_DevRebootType as DevRebootType,
|
|
5968
|
+
messages_DevReboot as DevReboot,
|
|
5969
|
+
messages_DeviceType as DeviceType,
|
|
5970
|
+
messages_DevSeType as DevSeType,
|
|
5971
|
+
messages_DevSEState as DevSEState,
|
|
5972
|
+
messages_DevFirmwareImageInfo as DevFirmwareImageInfo,
|
|
5973
|
+
messages_DevHardwareInfo as DevHardwareInfo,
|
|
5974
|
+
messages_DevMainMcuInfo as DevMainMcuInfo,
|
|
5975
|
+
messages_DevBluetoothInfo as DevBluetoothInfo,
|
|
5976
|
+
messages_DevSEInfo as DevSEInfo,
|
|
5977
|
+
messages_DevInfoTargets as DevInfoTargets,
|
|
5978
|
+
messages_DevInfoTypes as DevInfoTypes,
|
|
5979
|
+
messages_DevStatus as DevStatus,
|
|
5980
|
+
messages_DevGetDeviceInfo as DevGetDeviceInfo,
|
|
5981
|
+
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
5982
|
+
messages_DevFirmwareTargetType as DevFirmwareTargetType,
|
|
5983
|
+
messages_DevFirmwareTarget as DevFirmwareTarget,
|
|
5984
|
+
messages_DevFirmwareUpdate as DevFirmwareUpdate,
|
|
5985
|
+
messages_DevFirmwareInstallProgress as DevFirmwareInstallProgress,
|
|
5986
|
+
messages_DevFirmwareUpdateStatusEntry as DevFirmwareUpdateStatusEntry,
|
|
5987
|
+
messages_DevGetFirmwareUpdateStatus as DevGetFirmwareUpdateStatus,
|
|
5988
|
+
messages_DevFirmwareUpdateStatus as DevFirmwareUpdateStatus,
|
|
5989
|
+
messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
|
|
5990
|
+
messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
|
|
5991
|
+
messages_FactoryDeviceInfo as FactoryDeviceInfo,
|
|
5992
|
+
messages_FilesystemFixPermission as FilesystemFixPermission,
|
|
5993
|
+
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
5994
|
+
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
5995
|
+
messages_FilesystemFile as FilesystemFile,
|
|
5996
|
+
messages_FilesystemFileRead as FilesystemFileRead,
|
|
5997
|
+
messages_FilesystemFileWrite as FilesystemFileWrite,
|
|
5998
|
+
messages_FilesystemFileDelete as FilesystemFileDelete,
|
|
5999
|
+
messages_FilesystemDir as FilesystemDir,
|
|
6000
|
+
messages_FilesystemDirList as FilesystemDirList,
|
|
6001
|
+
messages_FilesystemDirMake as FilesystemDirMake,
|
|
6002
|
+
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
6003
|
+
messages_FilesystemFormat as FilesystemFormat,
|
|
6004
|
+
messages_OnboardingStep as OnboardingStep,
|
|
6005
|
+
messages_GetOnboardingStatus as GetOnboardingStatus,
|
|
6006
|
+
messages_NewDevice as NewDevice,
|
|
6007
|
+
messages_Restore as Restore,
|
|
6008
|
+
messages_Setup as Setup,
|
|
6009
|
+
messages_OnboardingStatus as OnboardingStatus,
|
|
5264
6010
|
messages_MessageType as MessageType,
|
|
5265
6011
|
messages_MessageKey as MessageKey,
|
|
5266
6012
|
messages_MessageResponse as MessageResponse,
|
|
6013
|
+
messages_MessageResponseMap as MessageResponseMap,
|
|
5267
6014
|
messages_TypedCall as TypedCall,
|
|
5268
6015
|
};
|
|
5269
6016
|
}
|
|
5270
6017
|
|
|
6018
|
+
type ProtocolV2Schemas = {
|
|
6019
|
+
protocolV1: Root;
|
|
6020
|
+
protocolV2: Root;
|
|
6021
|
+
};
|
|
6022
|
+
type ProtocolLogger = {
|
|
6023
|
+
debug?: (...args: any[]) => void;
|
|
6024
|
+
error?: (...args: any[]) => void;
|
|
6025
|
+
};
|
|
6026
|
+
type ProtocolV2SessionOptions = {
|
|
6027
|
+
schemas: ProtocolV2Schemas;
|
|
6028
|
+
router: number;
|
|
6029
|
+
packetSrc?: number;
|
|
6030
|
+
writeFrame: (frame: Uint8Array) => Promise<void>;
|
|
6031
|
+
readFrame: () => Promise<Uint8Array>;
|
|
6032
|
+
logger?: ProtocolLogger;
|
|
6033
|
+
logPrefix?: string;
|
|
6034
|
+
createTimeoutError?: (name: string, timeoutMs: number) => Error;
|
|
6035
|
+
};
|
|
6036
|
+
type ProtocolV2CallOptions = {
|
|
6037
|
+
timeoutMs?: number;
|
|
6038
|
+
expectedTypes?: string[];
|
|
6039
|
+
intermediateTypes?: string[];
|
|
6040
|
+
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
6041
|
+
};
|
|
6042
|
+
|
|
6043
|
+
declare function hexToBytes(hex: string): Uint8Array;
|
|
6044
|
+
declare function bytesToHex(bytes: Uint8Array): string;
|
|
6045
|
+
declare function getErrorMessage(error: unknown): string;
|
|
6046
|
+
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
|
|
6047
|
+
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 30000;
|
|
6048
|
+
declare class ProtocolV2Session {
|
|
6049
|
+
private readonly options;
|
|
6050
|
+
private pendingCall;
|
|
6051
|
+
private protoSeq;
|
|
6052
|
+
constructor(options: ProtocolV2SessionOptions);
|
|
6053
|
+
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6054
|
+
private executeCall;
|
|
6055
|
+
}
|
|
6056
|
+
declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
|
|
6057
|
+
call: (name: string, data: Record<string, unknown>, options?: ProtocolV2CallOptions) => Promise<MessageFromOneKey>;
|
|
6058
|
+
timeoutMs: number;
|
|
6059
|
+
logger?: ProtocolLogger;
|
|
6060
|
+
logPrefix?: string;
|
|
6061
|
+
onBeforeProbe?: () => Promise<void> | void;
|
|
6062
|
+
onProbeFailed?: (error: unknown) => Promise<void> | void;
|
|
6063
|
+
}): Promise<boolean>;
|
|
6064
|
+
|
|
5271
6065
|
declare function info(res: any): {
|
|
5272
6066
|
version: string;
|
|
5273
6067
|
configured: boolean;
|
|
@@ -5294,20 +6088,90 @@ declare namespace check {
|
|
|
5294
6088
|
|
|
5295
6089
|
declare const LogBlockCommand: Set<string>;
|
|
5296
6090
|
|
|
5297
|
-
declare const
|
|
5298
|
-
declare const
|
|
5299
|
-
declare const
|
|
5300
|
-
declare const
|
|
5301
|
-
declare const
|
|
6091
|
+
declare const PROTOCOL_V1_REPORT_ID = 63;
|
|
6092
|
+
declare const PROTOCOL_V1_HEADER_BYTE = 35;
|
|
6093
|
+
declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
|
|
6094
|
+
declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
6095
|
+
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
6096
|
+
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
6097
|
+
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
|
|
6098
|
+
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4096;
|
|
6099
|
+
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6100
|
+
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4096;
|
|
6101
|
+
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
6102
|
+
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
6103
|
+
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
6104
|
+
declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
|
|
5302
6105
|
|
|
5303
6106
|
declare const _default: {
|
|
5304
6107
|
check: typeof check;
|
|
5305
|
-
buildOne: typeof buildOne;
|
|
5306
|
-
buildBuffers: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => ByteBuffer[];
|
|
5307
|
-
buildEncodeBuffers: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => Buffer[];
|
|
5308
|
-
receiveOne: typeof receiveOne;
|
|
5309
6108
|
parseConfigure: typeof parseConfigure;
|
|
5310
|
-
|
|
6109
|
+
protocolV2: typeof protocolV2Codec;
|
|
6110
|
+
ProtocolV1: {
|
|
6111
|
+
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
6112
|
+
encodeMessageChunks: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => Buffer[];
|
|
6113
|
+
encodeTransportPackets: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => ByteBuffer[];
|
|
6114
|
+
decodeFirstChunk: (bytes: ArrayBuffer) => {
|
|
6115
|
+
length: number;
|
|
6116
|
+
typeId: number;
|
|
6117
|
+
restBuffer: ByteBuffer;
|
|
6118
|
+
};
|
|
6119
|
+
decodeMessage: typeof decodeMessage;
|
|
6120
|
+
};
|
|
6121
|
+
ProtocolV2: {
|
|
6122
|
+
encodeFrame(schemas: {
|
|
6123
|
+
protocolV1: protobuf.Root;
|
|
6124
|
+
protocolV2: protobuf.Root;
|
|
6125
|
+
}, name: string, data: Record<string, unknown>, options?: {
|
|
6126
|
+
packetSrc?: number | undefined;
|
|
6127
|
+
router?: number | undefined;
|
|
6128
|
+
seq?: number | undefined;
|
|
6129
|
+
logger?: ProtocolV2DebugLogger | undefined;
|
|
6130
|
+
logPrefix?: string | undefined;
|
|
6131
|
+
context?: string | undefined;
|
|
6132
|
+
}): Uint8Array;
|
|
6133
|
+
decodeFrame(schemas: {
|
|
6134
|
+
protocolV1: protobuf.Root;
|
|
6135
|
+
protocolV2: protobuf.Root;
|
|
6136
|
+
}, frame: Uint8Array, options?: Pick<{
|
|
6137
|
+
packetSrc?: number | undefined;
|
|
6138
|
+
router?: number | undefined;
|
|
6139
|
+
seq?: number | undefined;
|
|
6140
|
+
logger?: ProtocolV2DebugLogger | undefined;
|
|
6141
|
+
logPrefix?: string | undefined;
|
|
6142
|
+
context?: string | undefined;
|
|
6143
|
+
}, "logger" | "logPrefix" | "context">): {
|
|
6144
|
+
message: {
|
|
6145
|
+
[key: string]: any;
|
|
6146
|
+
};
|
|
6147
|
+
messageName: string;
|
|
6148
|
+
messageTypeId: number;
|
|
6149
|
+
pbPayload: Uint8Array;
|
|
6150
|
+
seq: number;
|
|
6151
|
+
type: string;
|
|
6152
|
+
};
|
|
6153
|
+
};
|
|
6154
|
+
PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
|
|
6155
|
+
ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
6156
|
+
ProtocolV2Session: typeof ProtocolV2Session;
|
|
6157
|
+
bytesToHex: typeof bytesToHex;
|
|
6158
|
+
concatUint8Arrays: typeof concatUint8Arrays;
|
|
6159
|
+
createMessageFromName: (messages: protobuf.Root, name: string) => {
|
|
6160
|
+
Message: protobuf.Type;
|
|
6161
|
+
messageTypeId: number;
|
|
6162
|
+
};
|
|
6163
|
+
createMessageFromType: (messages: protobuf.Root, typeId: number) => {
|
|
6164
|
+
Message: protobuf.Type;
|
|
6165
|
+
messageName: string;
|
|
6166
|
+
};
|
|
6167
|
+
encodeProtobuf: (Message: protobuf.Type, data: Record<string, unknown>) => ByteBuffer;
|
|
6168
|
+
decodeProtobuf: (Message: protobuf.Type, data: ByteBuffer) => {
|
|
6169
|
+
[key: string]: any;
|
|
6170
|
+
};
|
|
6171
|
+
getErrorMessage: typeof getErrorMessage;
|
|
6172
|
+
hexToBytes: typeof hexToBytes;
|
|
6173
|
+
probeProtocolV2: typeof probeProtocolV2;
|
|
6174
|
+
withProtocolTimeout: typeof withProtocolTimeout;
|
|
5311
6175
|
};
|
|
5312
6176
|
|
|
5313
|
-
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, BUFFER_SIZE, 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, COMMON_HEADER_SIZE, 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, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, 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, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, MessageKey, MessageResponse, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, PassphraseState, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, 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, 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, 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, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UpgradeFileHeader, VerifyMessage, Vote, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
|
|
6177
|
+
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, DebugLinkInput, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevBluetoothInfo, DevFirmwareImageInfo, DevFirmwareInstallProgress, DevFirmwareTarget, DevFirmwareTargetType, DevFirmwareUpdate, DevFirmwareUpdateStatus, DevFirmwareUpdateStatusEntry, DevGetDeviceInfo, DevGetFirmwareUpdateStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevReboot, DevRebootType, DevSEInfo, DevSEState, DevSeType, DevStatus, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, 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, FactoryDeviceInfo, FactoryDeviceInfoSettings, FactoryGetDeviceInfo, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFixPermission, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOnboardingStatus, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetProtoVersion, 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, NewDevice, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingStatus, 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_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, ProtoVersion, 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, Restore, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, Setup, 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, 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 };
|