@onekeyfe/hd-transport 1.1.27 → 1.2.0-alpha.0
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 +934 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +827 -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 +461 -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 +13369 -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 +606 -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
|
+
};
|
|
16
|
+
|
|
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;
|
|
8
24
|
|
|
9
|
-
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[];
|
|
10
28
|
|
|
11
|
-
declare function
|
|
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;
|
|
56
|
+
|
|
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;
|
|
27
63
|
|
|
28
|
-
declare const
|
|
29
|
-
declare
|
|
30
|
-
|
|
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,362 @@ 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 SetBusy = {
|
|
3584
|
+
expiry_ms?: number;
|
|
3585
|
+
};
|
|
3586
|
+
type GetFirmwareHash = {
|
|
3587
|
+
challenge?: string;
|
|
3588
|
+
};
|
|
3589
|
+
type FirmwareHash = {
|
|
3590
|
+
hash: string;
|
|
3591
|
+
};
|
|
3592
|
+
type GetNonce = {};
|
|
3593
|
+
type Nonce = {
|
|
3594
|
+
nonce: string;
|
|
3595
|
+
};
|
|
3596
|
+
type WriteSEPrivateKey = {
|
|
3597
|
+
private_key: string;
|
|
3598
|
+
};
|
|
3599
|
+
type UnlockPath = {
|
|
3600
|
+
address_n: number[];
|
|
3601
|
+
mac?: string;
|
|
3602
|
+
};
|
|
3603
|
+
type UnlockedPathRequest = {
|
|
3604
|
+
mac?: string;
|
|
3605
|
+
};
|
|
3606
|
+
declare enum MoneroNetworkType {
|
|
3607
|
+
MAINNET = 0,
|
|
3608
|
+
TESTNET = 1,
|
|
3609
|
+
STAGENET = 2,
|
|
3610
|
+
FAKECHAIN = 3
|
|
3611
|
+
}
|
|
3612
|
+
type TxDetailsAmount = {
|
|
3613
|
+
num: string;
|
|
3614
|
+
decimals: number;
|
|
3615
|
+
symbol: string;
|
|
3616
|
+
};
|
|
3617
|
+
type TxDetailsAddress = {
|
|
3618
|
+
key: number;
|
|
3619
|
+
address: string;
|
|
3620
|
+
owner?: string;
|
|
3621
|
+
icon?: string;
|
|
3622
|
+
};
|
|
3623
|
+
type TxDetailsNetwork = {
|
|
3624
|
+
coin_type: number;
|
|
3625
|
+
chain_id?: number;
|
|
3626
|
+
};
|
|
3627
|
+
type TxDetailsGeneral = {
|
|
3628
|
+
key: number;
|
|
3629
|
+
value: string;
|
|
3630
|
+
is_overview: boolean;
|
|
3631
|
+
};
|
|
3632
|
+
declare enum TxDetailsDisplayType {
|
|
3633
|
+
DISPLAY_TYPE_INFO = 0,
|
|
3634
|
+
DISPLAY_TYPE_SIGN = 1
|
|
3635
|
+
}
|
|
3636
|
+
type TxDetailsPage = {
|
|
3637
|
+
title: string;
|
|
3638
|
+
display_type: TxDetailsDisplayType;
|
|
3639
|
+
amount?: UintType;
|
|
3640
|
+
network?: TxDetailsNetwork;
|
|
3641
|
+
address: TxDetailsAddress[];
|
|
3642
|
+
general: TxDetailsGeneral[];
|
|
3643
|
+
};
|
|
3644
|
+
type GetProtoVersion = {};
|
|
3645
|
+
type ProtoVersion = {
|
|
3646
|
+
proto_version: number;
|
|
3647
|
+
};
|
|
3648
|
+
declare enum DevRebootType {
|
|
3649
|
+
Normal = 0,
|
|
3650
|
+
Boardloader = 1,
|
|
3651
|
+
Bootloader = 2
|
|
3652
|
+
}
|
|
3653
|
+
declare enum DeviceRebootType {
|
|
3654
|
+
Normal = 0,
|
|
3655
|
+
Romloader = 1,
|
|
3656
|
+
Bootloader = 2
|
|
3657
|
+
}
|
|
3658
|
+
type DevReboot = {
|
|
3659
|
+
reboot_type: DevRebootType;
|
|
3660
|
+
};
|
|
3661
|
+
type DeviceReboot = {
|
|
3662
|
+
reboot_type: DeviceRebootType;
|
|
3663
|
+
};
|
|
3664
|
+
declare enum DeviceType {
|
|
3665
|
+
CLASSIC1 = 0,
|
|
3666
|
+
CLASSIC1S = 1,
|
|
3667
|
+
MINI = 2,
|
|
3668
|
+
TOUCH = 3,
|
|
3669
|
+
PRO = 5,
|
|
3670
|
+
CLASSIC1S_PURE = 6
|
|
3671
|
+
}
|
|
3672
|
+
declare enum DevSeType {
|
|
3673
|
+
THD89 = 0,
|
|
3674
|
+
SE608A = 1
|
|
3675
|
+
}
|
|
3676
|
+
declare enum DevSEState {
|
|
3677
|
+
BOOT = 0,
|
|
3678
|
+
APP_FACTORY = 51,
|
|
3679
|
+
APP = 85
|
|
3680
|
+
}
|
|
3681
|
+
type DevFirmwareImageInfo = {
|
|
3682
|
+
version?: string;
|
|
3683
|
+
build_id?: string;
|
|
3684
|
+
hash?: string;
|
|
3685
|
+
};
|
|
3686
|
+
type DevHardwareInfo = {
|
|
3687
|
+
device_type?: DeviceType;
|
|
3688
|
+
serial_no?: string;
|
|
3689
|
+
hardware_version?: string;
|
|
3690
|
+
hardware_version_raw_adc?: number;
|
|
3691
|
+
};
|
|
3692
|
+
type DevMainMcuInfo = {
|
|
3693
|
+
board?: DevFirmwareImageInfo;
|
|
3694
|
+
boot?: DevFirmwareImageInfo;
|
|
3695
|
+
app?: DevFirmwareImageInfo;
|
|
3696
|
+
};
|
|
3697
|
+
type DevBluetoothInfo = {
|
|
3698
|
+
boot?: DevFirmwareImageInfo;
|
|
3699
|
+
app?: DevFirmwareImageInfo;
|
|
3700
|
+
adv_name?: string;
|
|
3701
|
+
mac?: string;
|
|
3702
|
+
};
|
|
3703
|
+
type DevSEInfo = {
|
|
3704
|
+
boot?: DevFirmwareImageInfo;
|
|
3705
|
+
app?: DevFirmwareImageInfo;
|
|
3706
|
+
type?: DevSeType;
|
|
3707
|
+
state?: DevSEState;
|
|
3708
|
+
};
|
|
3709
|
+
type DevInfoTargets = {
|
|
3710
|
+
hw?: boolean;
|
|
3711
|
+
fw?: boolean;
|
|
3712
|
+
bt?: boolean;
|
|
3713
|
+
se1?: boolean;
|
|
3714
|
+
se2?: boolean;
|
|
3715
|
+
se3?: boolean;
|
|
3716
|
+
se4?: boolean;
|
|
3717
|
+
status?: boolean;
|
|
3718
|
+
};
|
|
3719
|
+
type DevInfoTypes = {
|
|
3720
|
+
version?: boolean;
|
|
3721
|
+
build_id?: boolean;
|
|
3722
|
+
hash?: boolean;
|
|
3723
|
+
specific?: boolean;
|
|
3724
|
+
};
|
|
3725
|
+
type DevStatus = {
|
|
3726
|
+
language?: string;
|
|
3727
|
+
bt_enable?: boolean;
|
|
3728
|
+
init_states?: boolean;
|
|
3729
|
+
backup_required?: boolean;
|
|
3730
|
+
passphrase_protection?: boolean;
|
|
3731
|
+
label?: string;
|
|
3732
|
+
};
|
|
3733
|
+
type DevGetDeviceInfo = {
|
|
3734
|
+
targets?: DevInfoTargets;
|
|
3735
|
+
types?: DevInfoTypes;
|
|
3736
|
+
};
|
|
3737
|
+
type DeviceGetDeviceInfo = DevGetDeviceInfo;
|
|
3738
|
+
type ProtocolV2DeviceInfo = {
|
|
3739
|
+
protocol_version: number;
|
|
3740
|
+
hw?: DevHardwareInfo;
|
|
3741
|
+
fw?: DevMainMcuInfo;
|
|
3742
|
+
bt?: DevBluetoothInfo;
|
|
3743
|
+
se1?: DevSEInfo;
|
|
3744
|
+
se2?: DevSEInfo;
|
|
3745
|
+
se3?: DevSEInfo;
|
|
3746
|
+
se4?: DevSEInfo;
|
|
3747
|
+
status?: DevStatus;
|
|
3748
|
+
};
|
|
3749
|
+
declare enum DevFirmwareTargetType {
|
|
3750
|
+
TARGET_INVALID = 0,
|
|
3751
|
+
TARGET_ROMLOADER = 1,
|
|
3752
|
+
TARGET_BOOTLOADER = 2,
|
|
3753
|
+
TARGET_APPLICATION_P1 = 3,
|
|
3754
|
+
TARGET_APPLICATION_P2 = 4,
|
|
3755
|
+
TARGET_COPROCESSOR = 5,
|
|
3756
|
+
TARGET_SE01 = 6,
|
|
3757
|
+
TARGET_SE02 = 7,
|
|
3758
|
+
TARGET_SE03 = 8,
|
|
3759
|
+
TARGET_SE04 = 9,
|
|
3760
|
+
TARGET_RESOURCE = 10
|
|
3761
|
+
}
|
|
3762
|
+
declare enum DeviceFirmwareTargetType {
|
|
3763
|
+
TARGET_INVALID = 0,
|
|
3764
|
+
TARGET_ROMLOADER = 1,
|
|
3765
|
+
TARGET_BOOTLOADER = 2,
|
|
3766
|
+
TARGET_APPLICATION_P1 = 3,
|
|
3767
|
+
TARGET_APPLICATION_P2 = 4,
|
|
3768
|
+
TARGET_COPROCESSOR = 5,
|
|
3769
|
+
TARGET_SE01 = 6,
|
|
3770
|
+
TARGET_SE02 = 7,
|
|
3771
|
+
TARGET_SE03 = 8,
|
|
3772
|
+
TARGET_SE04 = 9,
|
|
3773
|
+
TARGET_RESOURCE = 10
|
|
3774
|
+
}
|
|
3775
|
+
type DevFirmwareTarget = {
|
|
3776
|
+
target_id: DevFirmwareTargetType;
|
|
3777
|
+
path: string;
|
|
3778
|
+
};
|
|
3779
|
+
type DeviceFirmwareTarget = {
|
|
3780
|
+
target_id: DeviceFirmwareTargetType;
|
|
3781
|
+
path: string;
|
|
3782
|
+
};
|
|
3783
|
+
type DevFirmwareUpdate = {
|
|
3784
|
+
targets: DevFirmwareTarget[];
|
|
3785
|
+
};
|
|
3786
|
+
type DeviceFirmwareUpdate = {
|
|
3787
|
+
targets: DeviceFirmwareTarget[];
|
|
3788
|
+
max_concurrent?: number;
|
|
3789
|
+
};
|
|
3790
|
+
type DevFirmwareInstallProgress = {
|
|
3791
|
+
target_id: DevFirmwareTargetType;
|
|
3792
|
+
progress: number;
|
|
3793
|
+
stage?: string;
|
|
3794
|
+
};
|
|
3795
|
+
type DeviceFirmwareInstallProgress = {
|
|
3796
|
+
target_id: DeviceFirmwareTargetType;
|
|
3797
|
+
progress: number;
|
|
3798
|
+
stage?: string;
|
|
3799
|
+
};
|
|
3800
|
+
type DevFirmwareUpdateStatusEntry = {
|
|
3801
|
+
target_id: DevFirmwareTargetType;
|
|
3802
|
+
status: number;
|
|
3803
|
+
};
|
|
3804
|
+
type DeviceFirmwareUpdateStatusEntry = {
|
|
3805
|
+
target_id: DeviceFirmwareTargetType;
|
|
3806
|
+
status: number;
|
|
3807
|
+
};
|
|
3808
|
+
type DevGetFirmwareUpdateStatus = {};
|
|
3809
|
+
type DeviceGetFirmwareUpdateStatus = {};
|
|
3810
|
+
type DevFirmwareUpdateStatus = {
|
|
3811
|
+
targets: DevFirmwareUpdateStatusEntry[];
|
|
3812
|
+
};
|
|
3813
|
+
type DeviceFirmwareUpdateStatus = {
|
|
3814
|
+
targets: DeviceFirmwareUpdateStatusEntry[];
|
|
3815
|
+
};
|
|
3816
|
+
type FactoryDeviceInfoSettings = {
|
|
3817
|
+
serial_no?: string;
|
|
3818
|
+
cpu_info?: string;
|
|
3819
|
+
pre_firmware?: string;
|
|
3820
|
+
};
|
|
3821
|
+
type FactoryGetDeviceInfo = {};
|
|
3822
|
+
type FactoryDeviceInfo = {
|
|
3823
|
+
serial_no?: string;
|
|
3824
|
+
spi_flash_info?: string;
|
|
3825
|
+
se_info?: string;
|
|
3826
|
+
nft_voucher?: string;
|
|
3827
|
+
cpu_info?: string;
|
|
3828
|
+
pre_firmware?: string;
|
|
3829
|
+
};
|
|
3830
|
+
type FilesystemFixPermission = {};
|
|
3831
|
+
type FilesystemPathInfo = {
|
|
3832
|
+
exist: boolean;
|
|
3833
|
+
size: number;
|
|
3834
|
+
year: number;
|
|
3835
|
+
month: number;
|
|
3836
|
+
day: number;
|
|
3837
|
+
hour: number;
|
|
3838
|
+
minute: number;
|
|
3839
|
+
second: number;
|
|
3840
|
+
readonly: boolean;
|
|
3841
|
+
hidden: boolean;
|
|
3842
|
+
system: boolean;
|
|
3843
|
+
archive: boolean;
|
|
3844
|
+
directory: boolean;
|
|
3845
|
+
};
|
|
3846
|
+
type FilesystemPathInfoQuery = {
|
|
3847
|
+
path: string;
|
|
3848
|
+
};
|
|
3849
|
+
type FilesystemFile = {
|
|
3850
|
+
path: string;
|
|
3851
|
+
offset: number;
|
|
3852
|
+
total_size: number;
|
|
3853
|
+
data?: Buffer | ArrayBuffer | Uint8Array | string;
|
|
3854
|
+
data_hash?: number;
|
|
3855
|
+
processed_byte?: number;
|
|
3856
|
+
};
|
|
3857
|
+
type FilesystemFileRead = {
|
|
3858
|
+
file: FilesystemFile;
|
|
3859
|
+
chunk_len?: number;
|
|
3860
|
+
ui_percentage?: number;
|
|
3861
|
+
};
|
|
3862
|
+
type FilesystemFileWrite = {
|
|
3863
|
+
file: FilesystemFile;
|
|
3864
|
+
overwrite: boolean;
|
|
3865
|
+
append: boolean;
|
|
3866
|
+
ui_percentage?: number;
|
|
3867
|
+
};
|
|
3868
|
+
type FilesystemFileDelete = {
|
|
3869
|
+
path: string;
|
|
3870
|
+
};
|
|
3871
|
+
type FilesystemDir = {
|
|
3872
|
+
path: string;
|
|
3873
|
+
child_dirs?: string;
|
|
3874
|
+
child_files?: string;
|
|
3875
|
+
};
|
|
3876
|
+
type FilesystemDirList = {
|
|
3877
|
+
path: string;
|
|
3878
|
+
depth?: number;
|
|
3879
|
+
};
|
|
3880
|
+
type FilesystemDirMake = {
|
|
3881
|
+
path: string;
|
|
3882
|
+
};
|
|
3883
|
+
type FilesystemDirRemove = {
|
|
3884
|
+
path: string;
|
|
3885
|
+
};
|
|
3886
|
+
type FilesystemFormat = {};
|
|
3887
|
+
declare enum OnboardingStep {
|
|
3888
|
+
ONBOARDING_STEP_UNKNOWN = 0,
|
|
3889
|
+
ONBOARDING_STEP_DEVICE_VERIFICATION = 1,
|
|
3890
|
+
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
3891
|
+
ONBOARDING_STEP_SETUP = 3,
|
|
3892
|
+
ONBOARDING_STEP_FIRMWARE = 4
|
|
3893
|
+
}
|
|
3894
|
+
type GetOnboardingStatus = {};
|
|
3895
|
+
type NewDevice = {
|
|
3896
|
+
seedcard_backup?: boolean;
|
|
3897
|
+
};
|
|
3898
|
+
type Restore = {
|
|
3899
|
+
mnemonic?: boolean;
|
|
3900
|
+
seedcard?: boolean;
|
|
3901
|
+
};
|
|
3902
|
+
type Setup = {
|
|
3903
|
+
new_device?: NewDevice;
|
|
3904
|
+
restore?: Restore;
|
|
3905
|
+
};
|
|
3906
|
+
type OnboardingStatus = {
|
|
3907
|
+
step: OnboardingStep;
|
|
3908
|
+
setup?: Setup;
|
|
3909
|
+
detail_code?: number;
|
|
3910
|
+
detail_str?: string;
|
|
3911
|
+
};
|
|
3377
3912
|
type MessageType = {
|
|
3378
3913
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
3379
3914
|
AlephiumAddress: AlephiumAddress;
|
|
@@ -3429,6 +3964,7 @@ type MessageType = {
|
|
|
3429
3964
|
SignMessage: SignMessage;
|
|
3430
3965
|
MessageSignature: MessageSignature;
|
|
3431
3966
|
VerifyMessage: VerifyMessage;
|
|
3967
|
+
CoinJoinRequest: CoinJoinRequest;
|
|
3432
3968
|
SignTx: SignTx;
|
|
3433
3969
|
TxRequestDetailsType: TxRequestDetailsType;
|
|
3434
3970
|
TxRequestSerializedType: TxRequestSerializedType;
|
|
@@ -3697,7 +4233,7 @@ type MessageType = {
|
|
|
3697
4233
|
BixinBackupDeviceAck: BixinBackupDeviceAck;
|
|
3698
4234
|
DeviceInfoSettings: DeviceInfoSettings;
|
|
3699
4235
|
GetDeviceInfo: GetDeviceInfo;
|
|
3700
|
-
DeviceInfo: DeviceInfo;
|
|
4236
|
+
DeviceInfo: DeviceInfo | ProtocolV2DeviceInfo;
|
|
3701
4237
|
ReadSEPublicKey: ReadSEPublicKey;
|
|
3702
4238
|
SEPublicKey: SEPublicKey;
|
|
3703
4239
|
WriteSEPublicCert: WriteSEPublicCert;
|
|
@@ -3929,13 +4465,85 @@ type MessageType = {
|
|
|
3929
4465
|
TronSignMessage: TronSignMessage;
|
|
3930
4466
|
TronMessageSignature: TronMessageSignature;
|
|
3931
4467
|
facotry: facotry;
|
|
4468
|
+
experimental_message: experimental_message;
|
|
4469
|
+
experimental_field: experimental_field;
|
|
4470
|
+
TextMemo: TextMemo;
|
|
4471
|
+
RefundMemo: RefundMemo;
|
|
4472
|
+
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
4473
|
+
PaymentRequestMemo: PaymentRequestMemo;
|
|
4474
|
+
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4475
|
+
SetBusy: SetBusy;
|
|
4476
|
+
GetFirmwareHash: GetFirmwareHash;
|
|
4477
|
+
FirmwareHash: FirmwareHash;
|
|
4478
|
+
GetNonce: GetNonce;
|
|
4479
|
+
Nonce: Nonce;
|
|
4480
|
+
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4481
|
+
UnlockPath: UnlockPath;
|
|
4482
|
+
UnlockedPathRequest: UnlockedPathRequest;
|
|
4483
|
+
TxDetailsAmount: TxDetailsAmount;
|
|
4484
|
+
TxDetailsAddress: TxDetailsAddress;
|
|
4485
|
+
TxDetailsNetwork: TxDetailsNetwork;
|
|
4486
|
+
TxDetailsGeneral: TxDetailsGeneral;
|
|
4487
|
+
TxDetailsPage: TxDetailsPage;
|
|
4488
|
+
GetProtoVersion: GetProtoVersion;
|
|
4489
|
+
ProtoVersion: ProtoVersion;
|
|
4490
|
+
DevReboot: DevReboot;
|
|
4491
|
+
DeviceReboot: DeviceReboot;
|
|
4492
|
+
DevFirmwareImageInfo: DevFirmwareImageInfo;
|
|
4493
|
+
DevHardwareInfo: DevHardwareInfo;
|
|
4494
|
+
DevMainMcuInfo: DevMainMcuInfo;
|
|
4495
|
+
DevBluetoothInfo: DevBluetoothInfo;
|
|
4496
|
+
DevSEInfo: DevSEInfo;
|
|
4497
|
+
DevInfoTargets: DevInfoTargets;
|
|
4498
|
+
DevInfoTypes: DevInfoTypes;
|
|
4499
|
+
DevStatus: DevStatus;
|
|
4500
|
+
DevGetDeviceInfo: DevGetDeviceInfo;
|
|
4501
|
+
DeviceGetDeviceInfo: DeviceGetDeviceInfo;
|
|
4502
|
+
DevFirmwareTarget: DevFirmwareTarget;
|
|
4503
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4504
|
+
DevFirmwareUpdate: DevFirmwareUpdate;
|
|
4505
|
+
DeviceFirmwareUpdate: DeviceFirmwareUpdate;
|
|
4506
|
+
DevFirmwareInstallProgress: DevFirmwareInstallProgress;
|
|
4507
|
+
DeviceFirmwareInstallProgress: DeviceFirmwareInstallProgress;
|
|
4508
|
+
DevFirmwareUpdateStatusEntry: DevFirmwareUpdateStatusEntry;
|
|
4509
|
+
DeviceFirmwareUpdateStatusEntry: DeviceFirmwareUpdateStatusEntry;
|
|
4510
|
+
DevGetFirmwareUpdateStatus: DevGetFirmwareUpdateStatus;
|
|
4511
|
+
DeviceGetFirmwareUpdateStatus: DeviceGetFirmwareUpdateStatus;
|
|
4512
|
+
DevFirmwareUpdateStatus: DevFirmwareUpdateStatus;
|
|
4513
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4514
|
+
FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
|
|
4515
|
+
FactoryGetDeviceInfo: FactoryGetDeviceInfo;
|
|
4516
|
+
FactoryDeviceInfo: FactoryDeviceInfo;
|
|
4517
|
+
FilesystemFixPermission: FilesystemFixPermission;
|
|
4518
|
+
FilesystemPathInfo: FilesystemPathInfo;
|
|
4519
|
+
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
4520
|
+
FilesystemFile: FilesystemFile;
|
|
4521
|
+
FilesystemFileRead: FilesystemFileRead;
|
|
4522
|
+
FilesystemFileWrite: FilesystemFileWrite;
|
|
4523
|
+
FilesystemFileDelete: FilesystemFileDelete;
|
|
4524
|
+
FilesystemDir: FilesystemDir;
|
|
4525
|
+
FilesystemDirList: FilesystemDirList;
|
|
4526
|
+
FilesystemDirMake: FilesystemDirMake;
|
|
4527
|
+
FilesystemDirRemove: FilesystemDirRemove;
|
|
4528
|
+
FilesystemFormat: FilesystemFormat;
|
|
4529
|
+
GetOnboardingStatus: GetOnboardingStatus;
|
|
4530
|
+
NewDevice: NewDevice;
|
|
4531
|
+
Restore: Restore;
|
|
4532
|
+
Setup: Setup;
|
|
4533
|
+
OnboardingStatus: OnboardingStatus;
|
|
3932
4534
|
};
|
|
3933
4535
|
type MessageKey = keyof MessageType;
|
|
3934
4536
|
type MessageResponse<T extends MessageKey> = {
|
|
3935
4537
|
type: T;
|
|
3936
4538
|
message: MessageType[T];
|
|
3937
4539
|
};
|
|
3938
|
-
type
|
|
4540
|
+
type MessageResponseMap = {
|
|
4541
|
+
[K in MessageKey]: MessageResponse<K>;
|
|
4542
|
+
};
|
|
4543
|
+
type TypedCall = {
|
|
4544
|
+
<T extends MessageKey, R extends readonly MessageKey[]>(type: T, resType: R, message?: MessageType[T]): Promise<MessageResponseMap[R[number]]>;
|
|
4545
|
+
<T extends MessageKey, R extends MessageKey>(type: T, resType: R, message?: MessageType[T]): Promise<MessageResponse<R>>;
|
|
4546
|
+
};
|
|
3939
4547
|
|
|
3940
4548
|
type messages_UintType = UintType;
|
|
3941
4549
|
type messages_AlephiumGetAddress = AlephiumGetAddress;
|
|
@@ -4010,6 +4618,7 @@ type messages_OwnershipId = OwnershipId;
|
|
|
4010
4618
|
type messages_SignMessage = SignMessage;
|
|
4011
4619
|
type messages_MessageSignature = MessageSignature;
|
|
4012
4620
|
type messages_VerifyMessage = VerifyMessage;
|
|
4621
|
+
type messages_CoinJoinRequest = CoinJoinRequest;
|
|
4013
4622
|
type messages_SignTx = SignTx;
|
|
4014
4623
|
type messages_Enum_RequestType = Enum_RequestType;
|
|
4015
4624
|
declare const messages_Enum_RequestType: typeof Enum_RequestType;
|
|
@@ -4626,9 +5235,97 @@ type messages_TronMessageSignature = TronMessageSignature;
|
|
|
4626
5235
|
type messages_facotry = facotry;
|
|
4627
5236
|
type messages_CommandFlags = CommandFlags;
|
|
4628
5237
|
declare const messages_CommandFlags: typeof CommandFlags;
|
|
5238
|
+
type messages_experimental_message = experimental_message;
|
|
5239
|
+
type messages_experimental_field = experimental_field;
|
|
5240
|
+
type messages_TextMemo = TextMemo;
|
|
5241
|
+
type messages_RefundMemo = RefundMemo;
|
|
5242
|
+
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
5243
|
+
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5244
|
+
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5245
|
+
type messages_SetBusy = SetBusy;
|
|
5246
|
+
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5247
|
+
type messages_FirmwareHash = FirmwareHash;
|
|
5248
|
+
type messages_GetNonce = GetNonce;
|
|
5249
|
+
type messages_Nonce = Nonce;
|
|
5250
|
+
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5251
|
+
type messages_UnlockPath = UnlockPath;
|
|
5252
|
+
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5253
|
+
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5254
|
+
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5255
|
+
type messages_TxDetailsAmount = TxDetailsAmount;
|
|
5256
|
+
type messages_TxDetailsAddress = TxDetailsAddress;
|
|
5257
|
+
type messages_TxDetailsNetwork = TxDetailsNetwork;
|
|
5258
|
+
type messages_TxDetailsGeneral = TxDetailsGeneral;
|
|
5259
|
+
type messages_TxDetailsDisplayType = TxDetailsDisplayType;
|
|
5260
|
+
declare const messages_TxDetailsDisplayType: typeof TxDetailsDisplayType;
|
|
5261
|
+
type messages_TxDetailsPage = TxDetailsPage;
|
|
5262
|
+
type messages_GetProtoVersion = GetProtoVersion;
|
|
5263
|
+
type messages_ProtoVersion = ProtoVersion;
|
|
5264
|
+
type messages_DevRebootType = DevRebootType;
|
|
5265
|
+
declare const messages_DevRebootType: typeof DevRebootType;
|
|
5266
|
+
type messages_DeviceRebootType = DeviceRebootType;
|
|
5267
|
+
declare const messages_DeviceRebootType: typeof DeviceRebootType;
|
|
5268
|
+
type messages_DevReboot = DevReboot;
|
|
5269
|
+
type messages_DeviceReboot = DeviceReboot;
|
|
5270
|
+
type messages_DeviceType = DeviceType;
|
|
5271
|
+
declare const messages_DeviceType: typeof DeviceType;
|
|
5272
|
+
type messages_DevSeType = DevSeType;
|
|
5273
|
+
declare const messages_DevSeType: typeof DevSeType;
|
|
5274
|
+
type messages_DevSEState = DevSEState;
|
|
5275
|
+
declare const messages_DevSEState: typeof DevSEState;
|
|
5276
|
+
type messages_DevFirmwareImageInfo = DevFirmwareImageInfo;
|
|
5277
|
+
type messages_DevHardwareInfo = DevHardwareInfo;
|
|
5278
|
+
type messages_DevMainMcuInfo = DevMainMcuInfo;
|
|
5279
|
+
type messages_DevBluetoothInfo = DevBluetoothInfo;
|
|
5280
|
+
type messages_DevSEInfo = DevSEInfo;
|
|
5281
|
+
type messages_DevInfoTargets = DevInfoTargets;
|
|
5282
|
+
type messages_DevInfoTypes = DevInfoTypes;
|
|
5283
|
+
type messages_DevStatus = DevStatus;
|
|
5284
|
+
type messages_DevGetDeviceInfo = DevGetDeviceInfo;
|
|
5285
|
+
type messages_DeviceGetDeviceInfo = DeviceGetDeviceInfo;
|
|
5286
|
+
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5287
|
+
type messages_DevFirmwareTargetType = DevFirmwareTargetType;
|
|
5288
|
+
declare const messages_DevFirmwareTargetType: typeof DevFirmwareTargetType;
|
|
5289
|
+
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5290
|
+
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5291
|
+
type messages_DevFirmwareTarget = DevFirmwareTarget;
|
|
5292
|
+
type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
|
|
5293
|
+
type messages_DevFirmwareUpdate = DevFirmwareUpdate;
|
|
5294
|
+
type messages_DeviceFirmwareUpdate = DeviceFirmwareUpdate;
|
|
5295
|
+
type messages_DevFirmwareInstallProgress = DevFirmwareInstallProgress;
|
|
5296
|
+
type messages_DeviceFirmwareInstallProgress = DeviceFirmwareInstallProgress;
|
|
5297
|
+
type messages_DevFirmwareUpdateStatusEntry = DevFirmwareUpdateStatusEntry;
|
|
5298
|
+
type messages_DeviceFirmwareUpdateStatusEntry = DeviceFirmwareUpdateStatusEntry;
|
|
5299
|
+
type messages_DevGetFirmwareUpdateStatus = DevGetFirmwareUpdateStatus;
|
|
5300
|
+
type messages_DeviceGetFirmwareUpdateStatus = DeviceGetFirmwareUpdateStatus;
|
|
5301
|
+
type messages_DevFirmwareUpdateStatus = DevFirmwareUpdateStatus;
|
|
5302
|
+
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5303
|
+
type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
|
|
5304
|
+
type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
|
|
5305
|
+
type messages_FactoryDeviceInfo = FactoryDeviceInfo;
|
|
5306
|
+
type messages_FilesystemFixPermission = FilesystemFixPermission;
|
|
5307
|
+
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5308
|
+
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
5309
|
+
type messages_FilesystemFile = FilesystemFile;
|
|
5310
|
+
type messages_FilesystemFileRead = FilesystemFileRead;
|
|
5311
|
+
type messages_FilesystemFileWrite = FilesystemFileWrite;
|
|
5312
|
+
type messages_FilesystemFileDelete = FilesystemFileDelete;
|
|
5313
|
+
type messages_FilesystemDir = FilesystemDir;
|
|
5314
|
+
type messages_FilesystemDirList = FilesystemDirList;
|
|
5315
|
+
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5316
|
+
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5317
|
+
type messages_FilesystemFormat = FilesystemFormat;
|
|
5318
|
+
type messages_OnboardingStep = OnboardingStep;
|
|
5319
|
+
declare const messages_OnboardingStep: typeof OnboardingStep;
|
|
5320
|
+
type messages_GetOnboardingStatus = GetOnboardingStatus;
|
|
5321
|
+
type messages_NewDevice = NewDevice;
|
|
5322
|
+
type messages_Restore = Restore;
|
|
5323
|
+
type messages_Setup = Setup;
|
|
5324
|
+
type messages_OnboardingStatus = OnboardingStatus;
|
|
4629
5325
|
type messages_MessageType = MessageType;
|
|
4630
5326
|
type messages_MessageKey = MessageKey;
|
|
4631
5327
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
5328
|
+
type messages_MessageResponseMap = MessageResponseMap;
|
|
4632
5329
|
type messages_TypedCall = TypedCall;
|
|
4633
5330
|
declare namespace messages {
|
|
4634
5331
|
export {
|
|
@@ -4697,6 +5394,7 @@ declare namespace messages {
|
|
|
4697
5394
|
messages_SignMessage as SignMessage,
|
|
4698
5395
|
messages_MessageSignature as MessageSignature,
|
|
4699
5396
|
messages_VerifyMessage as VerifyMessage,
|
|
5397
|
+
messages_CoinJoinRequest as CoinJoinRequest,
|
|
4700
5398
|
messages_SignTx as SignTx,
|
|
4701
5399
|
messages_Enum_RequestType as Enum_RequestType,
|
|
4702
5400
|
messages_RequestType as RequestType,
|
|
@@ -5261,13 +5959,138 @@ declare namespace messages {
|
|
|
5261
5959
|
messages_TronMessageSignature as TronMessageSignature,
|
|
5262
5960
|
messages_facotry as facotry,
|
|
5263
5961
|
messages_CommandFlags as CommandFlags,
|
|
5962
|
+
messages_experimental_message as experimental_message,
|
|
5963
|
+
messages_experimental_field as experimental_field,
|
|
5964
|
+
messages_TextMemo as TextMemo,
|
|
5965
|
+
messages_RefundMemo as RefundMemo,
|
|
5966
|
+
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
5967
|
+
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
5968
|
+
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
5969
|
+
messages_SetBusy as SetBusy,
|
|
5970
|
+
messages_GetFirmwareHash as GetFirmwareHash,
|
|
5971
|
+
messages_FirmwareHash as FirmwareHash,
|
|
5972
|
+
messages_GetNonce as GetNonce,
|
|
5973
|
+
messages_Nonce as Nonce,
|
|
5974
|
+
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
5975
|
+
messages_UnlockPath as UnlockPath,
|
|
5976
|
+
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
5977
|
+
messages_MoneroNetworkType as MoneroNetworkType,
|
|
5978
|
+
messages_TxDetailsAmount as TxDetailsAmount,
|
|
5979
|
+
messages_TxDetailsAddress as TxDetailsAddress,
|
|
5980
|
+
messages_TxDetailsNetwork as TxDetailsNetwork,
|
|
5981
|
+
messages_TxDetailsGeneral as TxDetailsGeneral,
|
|
5982
|
+
messages_TxDetailsDisplayType as TxDetailsDisplayType,
|
|
5983
|
+
messages_TxDetailsPage as TxDetailsPage,
|
|
5984
|
+
messages_GetProtoVersion as GetProtoVersion,
|
|
5985
|
+
messages_ProtoVersion as ProtoVersion,
|
|
5986
|
+
messages_DevRebootType as DevRebootType,
|
|
5987
|
+
messages_DeviceRebootType as DeviceRebootType,
|
|
5988
|
+
messages_DevReboot as DevReboot,
|
|
5989
|
+
messages_DeviceReboot as DeviceReboot,
|
|
5990
|
+
messages_DeviceType as DeviceType,
|
|
5991
|
+
messages_DevSeType as DevSeType,
|
|
5992
|
+
messages_DevSEState as DevSEState,
|
|
5993
|
+
messages_DevFirmwareImageInfo as DevFirmwareImageInfo,
|
|
5994
|
+
messages_DevHardwareInfo as DevHardwareInfo,
|
|
5995
|
+
messages_DevMainMcuInfo as DevMainMcuInfo,
|
|
5996
|
+
messages_DevBluetoothInfo as DevBluetoothInfo,
|
|
5997
|
+
messages_DevSEInfo as DevSEInfo,
|
|
5998
|
+
messages_DevInfoTargets as DevInfoTargets,
|
|
5999
|
+
messages_DevInfoTypes as DevInfoTypes,
|
|
6000
|
+
messages_DevStatus as DevStatus,
|
|
6001
|
+
messages_DevGetDeviceInfo as DevGetDeviceInfo,
|
|
6002
|
+
messages_DeviceGetDeviceInfo as DeviceGetDeviceInfo,
|
|
6003
|
+
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
6004
|
+
messages_DevFirmwareTargetType as DevFirmwareTargetType,
|
|
6005
|
+
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
6006
|
+
messages_DevFirmwareTarget as DevFirmwareTarget,
|
|
6007
|
+
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
6008
|
+
messages_DevFirmwareUpdate as DevFirmwareUpdate,
|
|
6009
|
+
messages_DeviceFirmwareUpdate as DeviceFirmwareUpdate,
|
|
6010
|
+
messages_DevFirmwareInstallProgress as DevFirmwareInstallProgress,
|
|
6011
|
+
messages_DeviceFirmwareInstallProgress as DeviceFirmwareInstallProgress,
|
|
6012
|
+
messages_DevFirmwareUpdateStatusEntry as DevFirmwareUpdateStatusEntry,
|
|
6013
|
+
messages_DeviceFirmwareUpdateStatusEntry as DeviceFirmwareUpdateStatusEntry,
|
|
6014
|
+
messages_DevGetFirmwareUpdateStatus as DevGetFirmwareUpdateStatus,
|
|
6015
|
+
messages_DeviceGetFirmwareUpdateStatus as DeviceGetFirmwareUpdateStatus,
|
|
6016
|
+
messages_DevFirmwareUpdateStatus as DevFirmwareUpdateStatus,
|
|
6017
|
+
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
6018
|
+
messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
|
|
6019
|
+
messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
|
|
6020
|
+
messages_FactoryDeviceInfo as FactoryDeviceInfo,
|
|
6021
|
+
messages_FilesystemFixPermission as FilesystemFixPermission,
|
|
6022
|
+
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
6023
|
+
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
6024
|
+
messages_FilesystemFile as FilesystemFile,
|
|
6025
|
+
messages_FilesystemFileRead as FilesystemFileRead,
|
|
6026
|
+
messages_FilesystemFileWrite as FilesystemFileWrite,
|
|
6027
|
+
messages_FilesystemFileDelete as FilesystemFileDelete,
|
|
6028
|
+
messages_FilesystemDir as FilesystemDir,
|
|
6029
|
+
messages_FilesystemDirList as FilesystemDirList,
|
|
6030
|
+
messages_FilesystemDirMake as FilesystemDirMake,
|
|
6031
|
+
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
6032
|
+
messages_FilesystemFormat as FilesystemFormat,
|
|
6033
|
+
messages_OnboardingStep as OnboardingStep,
|
|
6034
|
+
messages_GetOnboardingStatus as GetOnboardingStatus,
|
|
6035
|
+
messages_NewDevice as NewDevice,
|
|
6036
|
+
messages_Restore as Restore,
|
|
6037
|
+
messages_Setup as Setup,
|
|
6038
|
+
messages_OnboardingStatus as OnboardingStatus,
|
|
5264
6039
|
messages_MessageType as MessageType,
|
|
5265
6040
|
messages_MessageKey as MessageKey,
|
|
5266
6041
|
messages_MessageResponse as MessageResponse,
|
|
6042
|
+
messages_MessageResponseMap as MessageResponseMap,
|
|
5267
6043
|
messages_TypedCall as TypedCall,
|
|
5268
6044
|
};
|
|
5269
6045
|
}
|
|
5270
6046
|
|
|
6047
|
+
type ProtocolV2Schemas = {
|
|
6048
|
+
protocolV1: Root;
|
|
6049
|
+
protocolV2: Root;
|
|
6050
|
+
};
|
|
6051
|
+
type ProtocolLogger = {
|
|
6052
|
+
debug?: (...args: any[]) => void;
|
|
6053
|
+
error?: (...args: any[]) => void;
|
|
6054
|
+
};
|
|
6055
|
+
type ProtocolV2SessionOptions = {
|
|
6056
|
+
schemas: ProtocolV2Schemas;
|
|
6057
|
+
router: number;
|
|
6058
|
+
packetSrc?: number;
|
|
6059
|
+
writeFrame: (frame: Uint8Array) => Promise<void>;
|
|
6060
|
+
readFrame: () => Promise<Uint8Array>;
|
|
6061
|
+
logger?: ProtocolLogger;
|
|
6062
|
+
logPrefix?: string;
|
|
6063
|
+
createTimeoutError?: (name: string, timeoutMs: number) => Error;
|
|
6064
|
+
};
|
|
6065
|
+
type ProtocolV2CallOptions = {
|
|
6066
|
+
timeoutMs?: number;
|
|
6067
|
+
expectedTypes?: string[];
|
|
6068
|
+
intermediateTypes?: string[];
|
|
6069
|
+
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
6070
|
+
};
|
|
6071
|
+
|
|
6072
|
+
declare function hexToBytes(hex: string): Uint8Array;
|
|
6073
|
+
declare function bytesToHex(bytes: Uint8Array): string;
|
|
6074
|
+
declare function getErrorMessage(error: unknown): string;
|
|
6075
|
+
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
|
|
6076
|
+
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 30000;
|
|
6077
|
+
declare class ProtocolV2Session {
|
|
6078
|
+
private readonly options;
|
|
6079
|
+
private pendingCall;
|
|
6080
|
+
private protoSeq;
|
|
6081
|
+
constructor(options: ProtocolV2SessionOptions);
|
|
6082
|
+
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6083
|
+
private executeCall;
|
|
6084
|
+
}
|
|
6085
|
+
declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
|
|
6086
|
+
call: (name: string, data: Record<string, unknown>, options?: ProtocolV2CallOptions) => Promise<MessageFromOneKey>;
|
|
6087
|
+
timeoutMs: number;
|
|
6088
|
+
logger?: ProtocolLogger;
|
|
6089
|
+
logPrefix?: string;
|
|
6090
|
+
onBeforeProbe?: () => Promise<void> | void;
|
|
6091
|
+
onProbeFailed?: (error: unknown) => Promise<void> | void;
|
|
6092
|
+
}): Promise<boolean>;
|
|
6093
|
+
|
|
5271
6094
|
declare function info(res: any): {
|
|
5272
6095
|
version: string;
|
|
5273
6096
|
configured: boolean;
|
|
@@ -5294,20 +6117,90 @@ declare namespace check {
|
|
|
5294
6117
|
|
|
5295
6118
|
declare const LogBlockCommand: Set<string>;
|
|
5296
6119
|
|
|
5297
|
-
declare const
|
|
5298
|
-
declare const
|
|
5299
|
-
declare const
|
|
5300
|
-
declare const
|
|
5301
|
-
declare const
|
|
6120
|
+
declare const PROTOCOL_V1_REPORT_ID = 63;
|
|
6121
|
+
declare const PROTOCOL_V1_HEADER_BYTE = 35;
|
|
6122
|
+
declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
|
|
6123
|
+
declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
6124
|
+
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
6125
|
+
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
6126
|
+
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
|
|
6127
|
+
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4096;
|
|
6128
|
+
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6129
|
+
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4096;
|
|
6130
|
+
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
6131
|
+
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
6132
|
+
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
6133
|
+
declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
|
|
5302
6134
|
|
|
5303
6135
|
declare const _default: {
|
|
5304
6136
|
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
6137
|
parseConfigure: typeof parseConfigure;
|
|
5310
|
-
|
|
6138
|
+
protocolV2: typeof protocolV2Codec;
|
|
6139
|
+
ProtocolV1: {
|
|
6140
|
+
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
6141
|
+
encodeMessageChunks: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => Buffer[];
|
|
6142
|
+
encodeTransportPackets: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => ByteBuffer[];
|
|
6143
|
+
decodeFirstChunk: (bytes: ArrayBuffer) => {
|
|
6144
|
+
length: number;
|
|
6145
|
+
typeId: number;
|
|
6146
|
+
restBuffer: ByteBuffer;
|
|
6147
|
+
};
|
|
6148
|
+
decodeMessage: typeof decodeMessage;
|
|
6149
|
+
};
|
|
6150
|
+
ProtocolV2: {
|
|
6151
|
+
encodeFrame(schemas: {
|
|
6152
|
+
protocolV1: protobuf.Root;
|
|
6153
|
+
protocolV2: protobuf.Root;
|
|
6154
|
+
}, name: string, data: Record<string, unknown>, options?: {
|
|
6155
|
+
packetSrc?: number | undefined;
|
|
6156
|
+
router?: number | undefined;
|
|
6157
|
+
seq?: number | undefined;
|
|
6158
|
+
logger?: ProtocolV2DebugLogger | undefined;
|
|
6159
|
+
logPrefix?: string | undefined;
|
|
6160
|
+
context?: string | undefined;
|
|
6161
|
+
}): Uint8Array;
|
|
6162
|
+
decodeFrame(schemas: {
|
|
6163
|
+
protocolV1: protobuf.Root;
|
|
6164
|
+
protocolV2: protobuf.Root;
|
|
6165
|
+
}, frame: Uint8Array, options?: Pick<{
|
|
6166
|
+
packetSrc?: number | undefined;
|
|
6167
|
+
router?: number | undefined;
|
|
6168
|
+
seq?: number | undefined;
|
|
6169
|
+
logger?: ProtocolV2DebugLogger | undefined;
|
|
6170
|
+
logPrefix?: string | undefined;
|
|
6171
|
+
context?: string | undefined;
|
|
6172
|
+
}, "logger" | "logPrefix" | "context">): {
|
|
6173
|
+
message: {
|
|
6174
|
+
[key: string]: any;
|
|
6175
|
+
};
|
|
6176
|
+
messageName: string;
|
|
6177
|
+
messageTypeId: number;
|
|
6178
|
+
pbPayload: Uint8Array;
|
|
6179
|
+
seq: number;
|
|
6180
|
+
type: string;
|
|
6181
|
+
};
|
|
6182
|
+
};
|
|
6183
|
+
PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
|
|
6184
|
+
ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
6185
|
+
ProtocolV2Session: typeof ProtocolV2Session;
|
|
6186
|
+
bytesToHex: typeof bytesToHex;
|
|
6187
|
+
concatUint8Arrays: typeof concatUint8Arrays;
|
|
6188
|
+
createMessageFromName: (messages: protobuf.Root, name: string) => {
|
|
6189
|
+
Message: protobuf.Type;
|
|
6190
|
+
messageTypeId: number;
|
|
6191
|
+
};
|
|
6192
|
+
createMessageFromType: (messages: protobuf.Root, typeId: number) => {
|
|
6193
|
+
Message: protobuf.Type;
|
|
6194
|
+
messageName: string;
|
|
6195
|
+
};
|
|
6196
|
+
encodeProtobuf: (Message: protobuf.Type, data: Record<string, unknown>) => ByteBuffer;
|
|
6197
|
+
decodeProtobuf: (Message: protobuf.Type, data: ByteBuffer) => {
|
|
6198
|
+
[key: string]: any;
|
|
6199
|
+
};
|
|
6200
|
+
getErrorMessage: typeof getErrorMessage;
|
|
6201
|
+
hexToBytes: typeof hexToBytes;
|
|
6202
|
+
probeProtocolV2: typeof probeProtocolV2;
|
|
6203
|
+
withProtocolTimeout: typeof withProtocolTimeout;
|
|
5311
6204
|
};
|
|
5312
6205
|
|
|
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 };
|
|
6206
|
+
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, DevBluetoothInfo, DevFirmwareImageInfo, DevFirmwareInstallProgress, DevFirmwareTarget, DevFirmwareTargetType, DevFirmwareUpdate, DevFirmwareUpdateStatus, DevFirmwareUpdateStatusEntry, DevGetDeviceInfo, DevGetFirmwareUpdateStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevReboot, DevRebootType, DevSEInfo, DevSEState, DevSeType, DevStatus, DeviceBackToBoot, DeviceEraseSector, DeviceFirmwareInstallProgress, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdate, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusEntry, DeviceGetDeviceInfo, DeviceGetFirmwareUpdateStatus, DeviceInfo, DeviceInfoSettings, DeviceReboot, DeviceRebootType, 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, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, 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, 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, TxDetailsAddress, TxDetailsAmount, TxDetailsDisplayType, TxDetailsGeneral, TxDetailsNetwork, TxDetailsPage, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, Vote, WL_OperationType, 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 };
|