@onekeyfe/hd-transport 1.1.26 → 1.1.27-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/build-receive.test.js +6 -8
- package/__tests__/decode-features.test.js +3 -2
- package/__tests__/protocol-v2.test.js +481 -0
- package/dist/constants.d.ts +14 -5
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +742 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +637 -74
- package/dist/protocols/index.d.ts +40 -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/decode.d.ts +7 -0
- package/dist/protocols/v2/decode.d.ts.map +1 -0
- package/dist/protocols/v2/encode.d.ts +3 -0
- package/dist/protocols/v2/encode.d.ts.map +1 -0
- package/dist/protocols/v2/frame-assembler.d.ts +9 -0
- package/dist/protocols/v2/frame-assembler.d.ts.map +1 -0
- package/dist/protocols/v2/index.d.ts +6 -0
- package/dist/protocols/v2/index.d.ts.map +1 -0
- package/dist/protocols/v2/session.d.ts +46 -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/types/messages.d.ts +349 -2
- 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-pro2.json +13106 -0
- package/messages.proto +2 -0
- package/package.json +3 -3
- package/scripts/proto-pro2-sys/messages-pro2-sys.proto +231 -0
- package/scripts/protobuf-build.sh +353 -20
- package/scripts/protobuf-patches/index.js +2 -0
- package/scripts/protobuf-types.js +48 -7
- package/src/constants.ts +42 -6
- package/src/index.ts +39 -11
- package/src/protocols/index.ts +83 -0
- package/src/{serialization/protocol → protocols/v1}/decode.ts +4 -4
- package/src/{serialization/protocol → protocols/v1}/encode.ts +15 -10
- 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/decode.ts +72 -0
- package/src/protocols/v2/encode.ts +75 -0
- package/src/protocols/v2/frame-assembler.ts +51 -0
- package/src/protocols/v2/index.ts +5 -0
- package/src/protocols/v2/session.ts +357 -0
- package/src/serialization/index.ts +6 -5
- package/src/serialization/protobuf/decode.ts +7 -0
- package/src/types/messages.ts +464 -2
- package/src/types/transport.ts +25 -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,154 @@ 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
|
+
messageType: 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
|
-
|
|
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 PROTOCOL_V2_SYS_MESSAGE_THRESHOLD = 60000;
|
|
58
|
+
type ProtocolV2Schemas$1 = {
|
|
59
|
+
protocolV1: Root;
|
|
60
|
+
protocolV2: Root;
|
|
61
|
+
};
|
|
62
|
+
type ProtocolV2FrameOptions = {
|
|
63
|
+
packetSrc?: number;
|
|
64
|
+
router?: number;
|
|
65
|
+
};
|
|
66
|
+
declare const ProtocolV1: {
|
|
67
|
+
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
68
|
+
encodeMessageChunks: (messages: Root, name: string, data: Record<string, unknown>) => Buffer[];
|
|
69
|
+
encodeTransportPackets: (messages: Root, name: string, data: Record<string, unknown>) => ByteBuffer__default[];
|
|
70
|
+
decodeFirstChunk: (bytes: ArrayBuffer) => {
|
|
71
|
+
length: number;
|
|
72
|
+
typeId: number;
|
|
73
|
+
restBuffer: ByteBuffer__default;
|
|
74
|
+
};
|
|
75
|
+
decodeMessage: typeof decodeMessage;
|
|
76
|
+
};
|
|
77
|
+
declare const ProtocolV2: {
|
|
78
|
+
encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
|
|
79
|
+
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
80
|
+
message: {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
};
|
|
83
|
+
messageName: string;
|
|
84
|
+
msgType: number;
|
|
85
|
+
pbPayload: Uint8Array;
|
|
86
|
+
seq: number;
|
|
87
|
+
type: string;
|
|
88
|
+
};
|
|
26
89
|
};
|
|
27
90
|
|
|
28
|
-
declare const
|
|
29
|
-
declare const
|
|
30
|
-
declare
|
|
91
|
+
declare const PROTO_HEAD_SOF = 90;
|
|
92
|
+
declare const PROTO_PRE_HEAD_SIZE = 4;
|
|
93
|
+
declare const PROTO_HEAD_CRC_SIZE = 8;
|
|
94
|
+
declare const CRC8_INIT = 48;
|
|
95
|
+
declare const PACKET_SIZE = 4096;
|
|
96
|
+
declare const PROTO_DATA_TYPE_PACKET = 0;
|
|
97
|
+
|
|
98
|
+
declare const CRC8_TABLE: Uint8Array;
|
|
99
|
+
declare function crc8(data: Uint8Array, len: number): number;
|
|
100
|
+
|
|
101
|
+
declare function encodeFrame(payload: Uint8Array | null, packetSrc?: number, router?: number): Uint8Array;
|
|
102
|
+
declare function encodeProtobufFrame(msgType: number, pbPayload: Uint8Array, packetSrc?: number, router?: number): Uint8Array;
|
|
103
|
+
|
|
104
|
+
interface ProtoV2Frame {
|
|
105
|
+
msgType: number;
|
|
106
|
+
pbPayload: Uint8Array;
|
|
107
|
+
seq: number;
|
|
108
|
+
}
|
|
109
|
+
declare function decodeFrame(data: Uint8Array): ProtoV2Frame;
|
|
110
|
+
|
|
111
|
+
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
112
|
+
declare class ProtocolV2FrameAssembler {
|
|
113
|
+
private buffer;
|
|
114
|
+
private readonly maxFrameBytes;
|
|
115
|
+
constructor(maxFrameBytes?: number);
|
|
116
|
+
reset(): void;
|
|
117
|
+
push(chunk: Uint8Array): Uint8Array | undefined;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
|
|
121
|
+
declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
|
|
122
|
+
declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
|
|
123
|
+
declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
|
|
124
|
+
declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
|
|
125
|
+
declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
|
|
126
|
+
declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
|
|
127
|
+
declare const protocolV2Codec_crc8: typeof crc8;
|
|
128
|
+
declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
|
|
129
|
+
declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
|
|
130
|
+
type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
|
|
131
|
+
declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
|
|
132
|
+
declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
|
|
133
|
+
type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
|
|
134
|
+
declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
135
|
+
declare namespace protocolV2Codec {
|
|
31
136
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
137
|
+
protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
|
|
138
|
+
protocolV2Codec_PROTO_PRE_HEAD_SIZE as PROTO_PRE_HEAD_SIZE,
|
|
139
|
+
protocolV2Codec_PROTO_HEAD_CRC_SIZE as PROTO_HEAD_CRC_SIZE,
|
|
140
|
+
protocolV2Codec_CRC8_INIT as CRC8_INIT,
|
|
141
|
+
protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
|
|
142
|
+
protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
|
|
143
|
+
protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
|
|
144
|
+
protocolV2Codec_crc8 as crc8,
|
|
145
|
+
protocolV2Codec_encodeFrame as encodeFrame,
|
|
146
|
+
protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
|
|
147
|
+
protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
|
|
148
|
+
protocolV2Codec_decodeFrame as decodeFrame,
|
|
149
|
+
protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
|
|
150
|
+
protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
|
|
34
151
|
};
|
|
35
152
|
}
|
|
36
153
|
|
|
154
|
+
type ProtocolType = 'V1' | 'V2';
|
|
37
155
|
type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
|
|
38
156
|
type OneKeyUsbDeviceInfo = {
|
|
39
157
|
path: string;
|
|
@@ -50,17 +168,26 @@ type OneKeyMobileDeviceInfo = {
|
|
|
50
168
|
type OneKeyDeviceInfoBase = {
|
|
51
169
|
commType: OneKeyDeviceCommType;
|
|
52
170
|
};
|
|
53
|
-
type OneKeyDeviceInfo = OneKeyDeviceInfoBase & OneKeyDeviceInfoWithSession & OneKeyMobileDeviceInfo
|
|
171
|
+
type OneKeyDeviceInfo = OneKeyDeviceInfoBase & OneKeyDeviceInfoWithSession & OneKeyMobileDeviceInfo & {
|
|
172
|
+
protocolType?: ProtocolType;
|
|
173
|
+
};
|
|
54
174
|
type AcquireInput = {
|
|
55
175
|
path?: string;
|
|
56
176
|
previous?: string | null;
|
|
57
177
|
uuid?: string;
|
|
58
178
|
forceCleanRunPromise?: boolean;
|
|
179
|
+
expectedProtocol?: ProtocolType;
|
|
59
180
|
};
|
|
60
181
|
type MessageFromOneKey = {
|
|
61
182
|
type: string;
|
|
62
183
|
message: Record<string, any>;
|
|
63
184
|
};
|
|
185
|
+
type TransportCallOptions = {
|
|
186
|
+
timeoutMs?: number;
|
|
187
|
+
expectedTypes?: string[];
|
|
188
|
+
intermediateTypes?: string[];
|
|
189
|
+
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
190
|
+
};
|
|
64
191
|
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
65
192
|
type Transport = {
|
|
66
193
|
enumerate(): Promise<Array<OneKeyDeviceInfo>>;
|
|
@@ -68,11 +195,13 @@ type Transport = {
|
|
|
68
195
|
acquire(input: AcquireInput): Promise<string>;
|
|
69
196
|
release(session: string, onclose: boolean): Promise<void>;
|
|
70
197
|
configure(signedData: JSON | string): Promise<void>;
|
|
71
|
-
|
|
198
|
+
configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
|
|
199
|
+
call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
72
200
|
post(session: string, name: string, data: Record<string, any>): Promise<void>;
|
|
73
201
|
read(session: string): Promise<MessageFromOneKey>;
|
|
74
202
|
cancel(): Promise<void>;
|
|
75
203
|
disconnect?: (session: string) => Promise<void>;
|
|
204
|
+
getProtocolType: (path: string) => ProtocolType;
|
|
76
205
|
promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
|
|
77
206
|
init: ITransportInitFn;
|
|
78
207
|
stop(): void;
|
|
@@ -3247,7 +3376,7 @@ type TonSignData = {
|
|
|
3247
3376
|
payload: string;
|
|
3248
3377
|
schema?: string;
|
|
3249
3378
|
appdomain: string;
|
|
3250
|
-
timestamp:
|
|
3379
|
+
timestamp: number;
|
|
3251
3380
|
from_address?: string;
|
|
3252
3381
|
wallet_version?: TonWalletVersion;
|
|
3253
3382
|
wallet_id?: number;
|
|
@@ -3374,6 +3503,298 @@ declare enum CommandFlags {
|
|
|
3374
3503
|
Default = 0,
|
|
3375
3504
|
Factory_Only = 1
|
|
3376
3505
|
}
|
|
3506
|
+
type experimental_message = {};
|
|
3507
|
+
type experimental_field = {};
|
|
3508
|
+
type TextMemo = {
|
|
3509
|
+
text: string;
|
|
3510
|
+
};
|
|
3511
|
+
type RefundMemo = {
|
|
3512
|
+
address: string;
|
|
3513
|
+
mac: string;
|
|
3514
|
+
};
|
|
3515
|
+
type CoinPurchaseMemo = {
|
|
3516
|
+
coin_type: number;
|
|
3517
|
+
amount: UintType;
|
|
3518
|
+
address: string;
|
|
3519
|
+
mac: string;
|
|
3520
|
+
};
|
|
3521
|
+
type PaymentRequestMemo = {
|
|
3522
|
+
text_memo?: TextMemo;
|
|
3523
|
+
refund_memo?: RefundMemo;
|
|
3524
|
+
coin_purchase_memo?: CoinPurchaseMemo;
|
|
3525
|
+
};
|
|
3526
|
+
type TxAckPaymentRequest = {
|
|
3527
|
+
nonce?: string;
|
|
3528
|
+
recipient_name: string;
|
|
3529
|
+
memos?: PaymentRequestMemo[];
|
|
3530
|
+
amount?: UintType;
|
|
3531
|
+
signature: string;
|
|
3532
|
+
};
|
|
3533
|
+
type SetBusy = {
|
|
3534
|
+
expiry_ms?: number;
|
|
3535
|
+
};
|
|
3536
|
+
type GetFirmwareHash = {
|
|
3537
|
+
challenge?: string;
|
|
3538
|
+
};
|
|
3539
|
+
type FirmwareHash = {
|
|
3540
|
+
hash: string;
|
|
3541
|
+
};
|
|
3542
|
+
type GetNonce = {};
|
|
3543
|
+
type Nonce = {
|
|
3544
|
+
nonce: string;
|
|
3545
|
+
};
|
|
3546
|
+
type WriteSEPrivateKey = {
|
|
3547
|
+
private_key: string;
|
|
3548
|
+
};
|
|
3549
|
+
type UnlockPath = {
|
|
3550
|
+
address_n: number[];
|
|
3551
|
+
mac?: string;
|
|
3552
|
+
};
|
|
3553
|
+
type UnlockedPathRequest = {
|
|
3554
|
+
mac?: string;
|
|
3555
|
+
};
|
|
3556
|
+
declare enum MoneroNetworkType {
|
|
3557
|
+
MAINNET = 0,
|
|
3558
|
+
TESTNET = 1,
|
|
3559
|
+
STAGENET = 2,
|
|
3560
|
+
FAKECHAIN = 3
|
|
3561
|
+
}
|
|
3562
|
+
type TxDetailsAmount = {
|
|
3563
|
+
num: string;
|
|
3564
|
+
decimals: number;
|
|
3565
|
+
symbol: string;
|
|
3566
|
+
};
|
|
3567
|
+
type TxDetailsAddress = {
|
|
3568
|
+
key: number;
|
|
3569
|
+
address: string;
|
|
3570
|
+
owner?: string;
|
|
3571
|
+
icon?: string;
|
|
3572
|
+
};
|
|
3573
|
+
type TxDetailsNetwork = {
|
|
3574
|
+
coin_type: number;
|
|
3575
|
+
chain_id?: number;
|
|
3576
|
+
};
|
|
3577
|
+
type TxDetailsGeneral = {
|
|
3578
|
+
key: number;
|
|
3579
|
+
value: string;
|
|
3580
|
+
is_overview: boolean;
|
|
3581
|
+
};
|
|
3582
|
+
declare enum TxDetailsDisplayType {
|
|
3583
|
+
DISPLAY_TYPE_INFO = 0,
|
|
3584
|
+
DISPLAY_TYPE_SIGN = 1
|
|
3585
|
+
}
|
|
3586
|
+
type TxDetailsPage = {
|
|
3587
|
+
title: string;
|
|
3588
|
+
display_type: TxDetailsDisplayType;
|
|
3589
|
+
amount?: UintType;
|
|
3590
|
+
network?: TxDetailsNetwork;
|
|
3591
|
+
address: TxDetailsAddress[];
|
|
3592
|
+
general: TxDetailsGeneral[];
|
|
3593
|
+
};
|
|
3594
|
+
type GetProtoVersion = {};
|
|
3595
|
+
type ProtoVersion = {
|
|
3596
|
+
proto_version: number;
|
|
3597
|
+
};
|
|
3598
|
+
declare enum DeviceRebootType {
|
|
3599
|
+
Normal = 0,
|
|
3600
|
+
Boardloader = 1,
|
|
3601
|
+
Bootloader = 2
|
|
3602
|
+
}
|
|
3603
|
+
type DeviceReboot = {
|
|
3604
|
+
reboot_type: DeviceRebootType;
|
|
3605
|
+
};
|
|
3606
|
+
declare enum DeviceType {
|
|
3607
|
+
CLASSIC1 = 0,
|
|
3608
|
+
CLASSIC1S = 1,
|
|
3609
|
+
MINI = 2,
|
|
3610
|
+
TOUCH = 3,
|
|
3611
|
+
PRO = 5,
|
|
3612
|
+
CLASSIC1S_PURE = 6
|
|
3613
|
+
}
|
|
3614
|
+
declare enum DeviceSeType {
|
|
3615
|
+
THD89 = 0,
|
|
3616
|
+
SE608A = 1
|
|
3617
|
+
}
|
|
3618
|
+
declare enum DeviceSEState {
|
|
3619
|
+
BOOT = 0,
|
|
3620
|
+
APP_FACTORY = 51,
|
|
3621
|
+
APP = 85
|
|
3622
|
+
}
|
|
3623
|
+
type DeviceFirmwareImageInfo = {
|
|
3624
|
+
version?: string;
|
|
3625
|
+
build_id?: string;
|
|
3626
|
+
hash?: string;
|
|
3627
|
+
};
|
|
3628
|
+
type DeviceHardwareInfo = {
|
|
3629
|
+
Device_type?: DeviceType;
|
|
3630
|
+
serial_no?: string;
|
|
3631
|
+
hardware_version?: string;
|
|
3632
|
+
hardware_version_raw_adc?: number;
|
|
3633
|
+
};
|
|
3634
|
+
type DeviceMainMcuInfo = {
|
|
3635
|
+
board?: DeviceFirmwareImageInfo;
|
|
3636
|
+
boot?: DeviceFirmwareImageInfo;
|
|
3637
|
+
app?: DeviceFirmwareImageInfo;
|
|
3638
|
+
};
|
|
3639
|
+
type DeviceBluetoothInfo = {
|
|
3640
|
+
boot?: DeviceFirmwareImageInfo;
|
|
3641
|
+
app?: DeviceFirmwareImageInfo;
|
|
3642
|
+
adv_name?: string;
|
|
3643
|
+
mac?: string;
|
|
3644
|
+
};
|
|
3645
|
+
type DeviceSEInfo = {
|
|
3646
|
+
boot?: DeviceFirmwareImageInfo;
|
|
3647
|
+
app?: DeviceFirmwareImageInfo;
|
|
3648
|
+
type?: DeviceSeType;
|
|
3649
|
+
state?: DeviceSEState;
|
|
3650
|
+
};
|
|
3651
|
+
type DeviceInfoTargets = {
|
|
3652
|
+
hw?: boolean;
|
|
3653
|
+
fw?: boolean;
|
|
3654
|
+
bt?: boolean;
|
|
3655
|
+
se1?: boolean;
|
|
3656
|
+
se2?: boolean;
|
|
3657
|
+
se3?: boolean;
|
|
3658
|
+
se4?: boolean;
|
|
3659
|
+
status?: boolean;
|
|
3660
|
+
};
|
|
3661
|
+
type DeviceInfoTypes = {
|
|
3662
|
+
version?: boolean;
|
|
3663
|
+
build_id?: boolean;
|
|
3664
|
+
hash?: boolean;
|
|
3665
|
+
specific?: boolean;
|
|
3666
|
+
};
|
|
3667
|
+
type DeviceStatus = {
|
|
3668
|
+
language?: string;
|
|
3669
|
+
bt_enable?: boolean;
|
|
3670
|
+
init_states?: boolean;
|
|
3671
|
+
backup_required?: boolean;
|
|
3672
|
+
passphrase_protection?: boolean;
|
|
3673
|
+
label?: string;
|
|
3674
|
+
};
|
|
3675
|
+
type DeviceGetDeviceInfo = {
|
|
3676
|
+
targets?: DeviceInfoTargets;
|
|
3677
|
+
types?: DeviceInfoTypes;
|
|
3678
|
+
};
|
|
3679
|
+
type ProtocolV2DeviceInfo = {
|
|
3680
|
+
protocol_version: number;
|
|
3681
|
+
hw?: DeviceHardwareInfo;
|
|
3682
|
+
fw?: DeviceMainMcuInfo;
|
|
3683
|
+
bt?: DeviceBluetoothInfo;
|
|
3684
|
+
se1?: DeviceSEInfo;
|
|
3685
|
+
se2?: DeviceSEInfo;
|
|
3686
|
+
se3?: DeviceSEInfo;
|
|
3687
|
+
se4?: DeviceSEInfo;
|
|
3688
|
+
status?: DeviceStatus;
|
|
3689
|
+
};
|
|
3690
|
+
declare enum DeviceFirmwareTargetType {
|
|
3691
|
+
TARGET_INVALID = 0,
|
|
3692
|
+
TARGET_ROMLOADER = 1,
|
|
3693
|
+
TARGET_BOOTLOADER = 2,
|
|
3694
|
+
TARGET_FIRMWARE_P1 = 3,
|
|
3695
|
+
TARGET_FIRMWARE_P2 = 4,
|
|
3696
|
+
TARGET_COPROCESSOR = 5,
|
|
3697
|
+
TARGET_SE = 6,
|
|
3698
|
+
TARGET_RESOURCE = 10
|
|
3699
|
+
}
|
|
3700
|
+
type DeviceFirmwareTarget = {
|
|
3701
|
+
target_id: DeviceFirmwareTargetType;
|
|
3702
|
+
path: string;
|
|
3703
|
+
};
|
|
3704
|
+
type DeviceFirmwareUpdate = {
|
|
3705
|
+
targets: DeviceFirmwareTarget[];
|
|
3706
|
+
max_concurrent?: number;
|
|
3707
|
+
};
|
|
3708
|
+
type DeviceFirmwareInstallProgress = {
|
|
3709
|
+
target_id: DeviceFirmwareTargetType;
|
|
3710
|
+
progress: number;
|
|
3711
|
+
stage?: string;
|
|
3712
|
+
};
|
|
3713
|
+
type DeviceFirmwareUpdateStatusEntry = {
|
|
3714
|
+
target_id: DeviceFirmwareTargetType;
|
|
3715
|
+
status: number;
|
|
3716
|
+
};
|
|
3717
|
+
type DeviceGetFirmwareUpdateStatus = {};
|
|
3718
|
+
type DeviceFirmwareUpdateStatus = {
|
|
3719
|
+
targets: DeviceFirmwareUpdateStatusEntry[];
|
|
3720
|
+
};
|
|
3721
|
+
type FactoryDeviceInfoSettings = {
|
|
3722
|
+
serial_no?: string;
|
|
3723
|
+
cpu_info?: string;
|
|
3724
|
+
pre_firmware?: string;
|
|
3725
|
+
};
|
|
3726
|
+
type FactoryGetDeviceInfo = {};
|
|
3727
|
+
type FactoryDeviceInfo = {
|
|
3728
|
+
serial_no?: string;
|
|
3729
|
+
spi_flash_info?: string;
|
|
3730
|
+
se_info?: string;
|
|
3731
|
+
nft_voucher?: string;
|
|
3732
|
+
cpu_info?: string;
|
|
3733
|
+
pre_firmware?: string;
|
|
3734
|
+
};
|
|
3735
|
+
type FilesystemFixPermission = {};
|
|
3736
|
+
type FilesystemPathInfo = {
|
|
3737
|
+
exist: boolean;
|
|
3738
|
+
size: number;
|
|
3739
|
+
year: number;
|
|
3740
|
+
month: number;
|
|
3741
|
+
day: number;
|
|
3742
|
+
hour: number;
|
|
3743
|
+
minute: number;
|
|
3744
|
+
second: number;
|
|
3745
|
+
readonly: boolean;
|
|
3746
|
+
hidden: boolean;
|
|
3747
|
+
system: boolean;
|
|
3748
|
+
archive: boolean;
|
|
3749
|
+
directory: boolean;
|
|
3750
|
+
};
|
|
3751
|
+
type FilesystemPathInfoQuery = {
|
|
3752
|
+
path: string;
|
|
3753
|
+
};
|
|
3754
|
+
type FilesystemFile = {
|
|
3755
|
+
path: string;
|
|
3756
|
+
offset: number;
|
|
3757
|
+
total_size: number;
|
|
3758
|
+
data?: Buffer | ArrayBuffer | Uint8Array | string;
|
|
3759
|
+
data_hash?: number;
|
|
3760
|
+
processed_byte?: number;
|
|
3761
|
+
};
|
|
3762
|
+
type FilesystemFileRead = {
|
|
3763
|
+
file: FilesystemFile;
|
|
3764
|
+
chunk_len?: number;
|
|
3765
|
+
ui_percentage?: number;
|
|
3766
|
+
};
|
|
3767
|
+
type FilesystemFileWrite = {
|
|
3768
|
+
file: FilesystemFile;
|
|
3769
|
+
overwrite: boolean;
|
|
3770
|
+
append: boolean;
|
|
3771
|
+
ui_percentage?: number;
|
|
3772
|
+
};
|
|
3773
|
+
type FilesystemFileDelete = {
|
|
3774
|
+
path: string;
|
|
3775
|
+
};
|
|
3776
|
+
type FilesystemDir = {
|
|
3777
|
+
path: string;
|
|
3778
|
+
child_dirs?: string;
|
|
3779
|
+
child_files?: string;
|
|
3780
|
+
};
|
|
3781
|
+
type FilesystemDirList = {
|
|
3782
|
+
path: string;
|
|
3783
|
+
depth?: number;
|
|
3784
|
+
};
|
|
3785
|
+
type FilesystemDirMake = {
|
|
3786
|
+
path: string;
|
|
3787
|
+
};
|
|
3788
|
+
type FilesystemDirRemove = {
|
|
3789
|
+
path: string;
|
|
3790
|
+
};
|
|
3791
|
+
type FilesystemFormat = {};
|
|
3792
|
+
type DeviceGetOnboardingStatus = {};
|
|
3793
|
+
type DeviceOnboardingStatus = {
|
|
3794
|
+
page_index?: number;
|
|
3795
|
+
page_count?: number;
|
|
3796
|
+
page_name?: string;
|
|
3797
|
+
};
|
|
3377
3798
|
type MessageType = {
|
|
3378
3799
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
3379
3800
|
AlephiumAddress: AlephiumAddress;
|
|
@@ -3697,7 +4118,7 @@ type MessageType = {
|
|
|
3697
4118
|
BixinBackupDeviceAck: BixinBackupDeviceAck;
|
|
3698
4119
|
DeviceInfoSettings: DeviceInfoSettings;
|
|
3699
4120
|
GetDeviceInfo: GetDeviceInfo;
|
|
3700
|
-
DeviceInfo: DeviceInfo;
|
|
4121
|
+
DeviceInfo: DeviceInfo | ProtocolV2DeviceInfo;
|
|
3701
4122
|
ReadSEPublicKey: ReadSEPublicKey;
|
|
3702
4123
|
SEPublicKey: SEPublicKey;
|
|
3703
4124
|
WriteSEPublicCert: WriteSEPublicCert;
|
|
@@ -3929,6 +4350,61 @@ type MessageType = {
|
|
|
3929
4350
|
TronSignMessage: TronSignMessage;
|
|
3930
4351
|
TronMessageSignature: TronMessageSignature;
|
|
3931
4352
|
facotry: facotry;
|
|
4353
|
+
experimental_message: experimental_message;
|
|
4354
|
+
experimental_field: experimental_field;
|
|
4355
|
+
TextMemo: TextMemo;
|
|
4356
|
+
RefundMemo: RefundMemo;
|
|
4357
|
+
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
4358
|
+
PaymentRequestMemo: PaymentRequestMemo;
|
|
4359
|
+
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4360
|
+
SetBusy: SetBusy;
|
|
4361
|
+
GetFirmwareHash: GetFirmwareHash;
|
|
4362
|
+
FirmwareHash: FirmwareHash;
|
|
4363
|
+
GetNonce: GetNonce;
|
|
4364
|
+
Nonce: Nonce;
|
|
4365
|
+
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4366
|
+
UnlockPath: UnlockPath;
|
|
4367
|
+
UnlockedPathRequest: UnlockedPathRequest;
|
|
4368
|
+
TxDetailsAmount: TxDetailsAmount;
|
|
4369
|
+
TxDetailsAddress: TxDetailsAddress;
|
|
4370
|
+
TxDetailsNetwork: TxDetailsNetwork;
|
|
4371
|
+
TxDetailsGeneral: TxDetailsGeneral;
|
|
4372
|
+
TxDetailsPage: TxDetailsPage;
|
|
4373
|
+
GetProtoVersion: GetProtoVersion;
|
|
4374
|
+
ProtoVersion: ProtoVersion;
|
|
4375
|
+
DeviceReboot: DeviceReboot;
|
|
4376
|
+
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
4377
|
+
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
4378
|
+
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
4379
|
+
DeviceBluetoothInfo: DeviceBluetoothInfo;
|
|
4380
|
+
DeviceSEInfo: DeviceSEInfo;
|
|
4381
|
+
DeviceInfoTargets: DeviceInfoTargets;
|
|
4382
|
+
DeviceInfoTypes: DeviceInfoTypes;
|
|
4383
|
+
DeviceStatus: DeviceStatus;
|
|
4384
|
+
DeviceGetDeviceInfo: DeviceGetDeviceInfo;
|
|
4385
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4386
|
+
DeviceFirmwareUpdate: DeviceFirmwareUpdate;
|
|
4387
|
+
DeviceFirmwareInstallProgress: DeviceFirmwareInstallProgress;
|
|
4388
|
+
DeviceFirmwareUpdateStatusEntry: DeviceFirmwareUpdateStatusEntry;
|
|
4389
|
+
DeviceGetFirmwareUpdateStatus: DeviceGetFirmwareUpdateStatus;
|
|
4390
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4391
|
+
FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
|
|
4392
|
+
FactoryGetDeviceInfo: FactoryGetDeviceInfo;
|
|
4393
|
+
FactoryDeviceInfo: FactoryDeviceInfo;
|
|
4394
|
+
FilesystemFixPermission: FilesystemFixPermission;
|
|
4395
|
+
FilesystemPathInfo: FilesystemPathInfo;
|
|
4396
|
+
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
4397
|
+
FilesystemFile: FilesystemFile;
|
|
4398
|
+
FilesystemFileRead: FilesystemFileRead;
|
|
4399
|
+
FilesystemFileWrite: FilesystemFileWrite;
|
|
4400
|
+
FilesystemFileDelete: FilesystemFileDelete;
|
|
4401
|
+
FilesystemDir: FilesystemDir;
|
|
4402
|
+
FilesystemDirList: FilesystemDirList;
|
|
4403
|
+
FilesystemDirMake: FilesystemDirMake;
|
|
4404
|
+
FilesystemDirRemove: FilesystemDirRemove;
|
|
4405
|
+
FilesystemFormat: FilesystemFormat;
|
|
4406
|
+
DeviceGetOnboardingStatus: DeviceGetOnboardingStatus;
|
|
4407
|
+
DeviceOnboardingStatus: DeviceOnboardingStatus;
|
|
3932
4408
|
};
|
|
3933
4409
|
type MessageKey = keyof MessageType;
|
|
3934
4410
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -4626,6 +5102,76 @@ type messages_TronMessageSignature = TronMessageSignature;
|
|
|
4626
5102
|
type messages_facotry = facotry;
|
|
4627
5103
|
type messages_CommandFlags = CommandFlags;
|
|
4628
5104
|
declare const messages_CommandFlags: typeof CommandFlags;
|
|
5105
|
+
type messages_experimental_message = experimental_message;
|
|
5106
|
+
type messages_experimental_field = experimental_field;
|
|
5107
|
+
type messages_TextMemo = TextMemo;
|
|
5108
|
+
type messages_RefundMemo = RefundMemo;
|
|
5109
|
+
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
5110
|
+
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5111
|
+
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5112
|
+
type messages_SetBusy = SetBusy;
|
|
5113
|
+
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5114
|
+
type messages_FirmwareHash = FirmwareHash;
|
|
5115
|
+
type messages_GetNonce = GetNonce;
|
|
5116
|
+
type messages_Nonce = Nonce;
|
|
5117
|
+
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5118
|
+
type messages_UnlockPath = UnlockPath;
|
|
5119
|
+
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5120
|
+
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5121
|
+
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5122
|
+
type messages_TxDetailsAmount = TxDetailsAmount;
|
|
5123
|
+
type messages_TxDetailsAddress = TxDetailsAddress;
|
|
5124
|
+
type messages_TxDetailsNetwork = TxDetailsNetwork;
|
|
5125
|
+
type messages_TxDetailsGeneral = TxDetailsGeneral;
|
|
5126
|
+
type messages_TxDetailsDisplayType = TxDetailsDisplayType;
|
|
5127
|
+
declare const messages_TxDetailsDisplayType: typeof TxDetailsDisplayType;
|
|
5128
|
+
type messages_TxDetailsPage = TxDetailsPage;
|
|
5129
|
+
type messages_GetProtoVersion = GetProtoVersion;
|
|
5130
|
+
type messages_ProtoVersion = ProtoVersion;
|
|
5131
|
+
type messages_DeviceRebootType = DeviceRebootType;
|
|
5132
|
+
declare const messages_DeviceRebootType: typeof DeviceRebootType;
|
|
5133
|
+
type messages_DeviceReboot = DeviceReboot;
|
|
5134
|
+
type messages_DeviceType = DeviceType;
|
|
5135
|
+
declare const messages_DeviceType: typeof DeviceType;
|
|
5136
|
+
type messages_DeviceSeType = DeviceSeType;
|
|
5137
|
+
declare const messages_DeviceSeType: typeof DeviceSeType;
|
|
5138
|
+
type messages_DeviceSEState = DeviceSEState;
|
|
5139
|
+
declare const messages_DeviceSEState: typeof DeviceSEState;
|
|
5140
|
+
type messages_DeviceFirmwareImageInfo = DeviceFirmwareImageInfo;
|
|
5141
|
+
type messages_DeviceHardwareInfo = DeviceHardwareInfo;
|
|
5142
|
+
type messages_DeviceMainMcuInfo = DeviceMainMcuInfo;
|
|
5143
|
+
type messages_DeviceBluetoothInfo = DeviceBluetoothInfo;
|
|
5144
|
+
type messages_DeviceSEInfo = DeviceSEInfo;
|
|
5145
|
+
type messages_DeviceInfoTargets = DeviceInfoTargets;
|
|
5146
|
+
type messages_DeviceInfoTypes = DeviceInfoTypes;
|
|
5147
|
+
type messages_DeviceStatus = DeviceStatus;
|
|
5148
|
+
type messages_DeviceGetDeviceInfo = DeviceGetDeviceInfo;
|
|
5149
|
+
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5150
|
+
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5151
|
+
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5152
|
+
type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
|
|
5153
|
+
type messages_DeviceFirmwareUpdate = DeviceFirmwareUpdate;
|
|
5154
|
+
type messages_DeviceFirmwareInstallProgress = DeviceFirmwareInstallProgress;
|
|
5155
|
+
type messages_DeviceFirmwareUpdateStatusEntry = DeviceFirmwareUpdateStatusEntry;
|
|
5156
|
+
type messages_DeviceGetFirmwareUpdateStatus = DeviceGetFirmwareUpdateStatus;
|
|
5157
|
+
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5158
|
+
type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
|
|
5159
|
+
type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
|
|
5160
|
+
type messages_FactoryDeviceInfo = FactoryDeviceInfo;
|
|
5161
|
+
type messages_FilesystemFixPermission = FilesystemFixPermission;
|
|
5162
|
+
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5163
|
+
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
5164
|
+
type messages_FilesystemFile = FilesystemFile;
|
|
5165
|
+
type messages_FilesystemFileRead = FilesystemFileRead;
|
|
5166
|
+
type messages_FilesystemFileWrite = FilesystemFileWrite;
|
|
5167
|
+
type messages_FilesystemFileDelete = FilesystemFileDelete;
|
|
5168
|
+
type messages_FilesystemDir = FilesystemDir;
|
|
5169
|
+
type messages_FilesystemDirList = FilesystemDirList;
|
|
5170
|
+
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5171
|
+
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5172
|
+
type messages_FilesystemFormat = FilesystemFormat;
|
|
5173
|
+
type messages_DeviceGetOnboardingStatus = DeviceGetOnboardingStatus;
|
|
5174
|
+
type messages_DeviceOnboardingStatus = DeviceOnboardingStatus;
|
|
4629
5175
|
type messages_MessageType = MessageType;
|
|
4630
5176
|
type messages_MessageKey = MessageKey;
|
|
4631
5177
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
@@ -5261,6 +5807,69 @@ declare namespace messages {
|
|
|
5261
5807
|
messages_TronMessageSignature as TronMessageSignature,
|
|
5262
5808
|
messages_facotry as facotry,
|
|
5263
5809
|
messages_CommandFlags as CommandFlags,
|
|
5810
|
+
messages_experimental_message as experimental_message,
|
|
5811
|
+
messages_experimental_field as experimental_field,
|
|
5812
|
+
messages_TextMemo as TextMemo,
|
|
5813
|
+
messages_RefundMemo as RefundMemo,
|
|
5814
|
+
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
5815
|
+
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
5816
|
+
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
5817
|
+
messages_SetBusy as SetBusy,
|
|
5818
|
+
messages_GetFirmwareHash as GetFirmwareHash,
|
|
5819
|
+
messages_FirmwareHash as FirmwareHash,
|
|
5820
|
+
messages_GetNonce as GetNonce,
|
|
5821
|
+
messages_Nonce as Nonce,
|
|
5822
|
+
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
5823
|
+
messages_UnlockPath as UnlockPath,
|
|
5824
|
+
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
5825
|
+
messages_MoneroNetworkType as MoneroNetworkType,
|
|
5826
|
+
messages_TxDetailsAmount as TxDetailsAmount,
|
|
5827
|
+
messages_TxDetailsAddress as TxDetailsAddress,
|
|
5828
|
+
messages_TxDetailsNetwork as TxDetailsNetwork,
|
|
5829
|
+
messages_TxDetailsGeneral as TxDetailsGeneral,
|
|
5830
|
+
messages_TxDetailsDisplayType as TxDetailsDisplayType,
|
|
5831
|
+
messages_TxDetailsPage as TxDetailsPage,
|
|
5832
|
+
messages_GetProtoVersion as GetProtoVersion,
|
|
5833
|
+
messages_ProtoVersion as ProtoVersion,
|
|
5834
|
+
messages_DeviceRebootType as DeviceRebootType,
|
|
5835
|
+
messages_DeviceReboot as DeviceReboot,
|
|
5836
|
+
messages_DeviceType as DeviceType,
|
|
5837
|
+
messages_DeviceSeType as DeviceSeType,
|
|
5838
|
+
messages_DeviceSEState as DeviceSEState,
|
|
5839
|
+
messages_DeviceFirmwareImageInfo as DeviceFirmwareImageInfo,
|
|
5840
|
+
messages_DeviceHardwareInfo as DeviceHardwareInfo,
|
|
5841
|
+
messages_DeviceMainMcuInfo as DeviceMainMcuInfo,
|
|
5842
|
+
messages_DeviceBluetoothInfo as DeviceBluetoothInfo,
|
|
5843
|
+
messages_DeviceSEInfo as DeviceSEInfo,
|
|
5844
|
+
messages_DeviceInfoTargets as DeviceInfoTargets,
|
|
5845
|
+
messages_DeviceInfoTypes as DeviceInfoTypes,
|
|
5846
|
+
messages_DeviceStatus as DeviceStatus,
|
|
5847
|
+
messages_DeviceGetDeviceInfo as DeviceGetDeviceInfo,
|
|
5848
|
+
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
5849
|
+
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
5850
|
+
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
5851
|
+
messages_DeviceFirmwareUpdate as DeviceFirmwareUpdate,
|
|
5852
|
+
messages_DeviceFirmwareInstallProgress as DeviceFirmwareInstallProgress,
|
|
5853
|
+
messages_DeviceFirmwareUpdateStatusEntry as DeviceFirmwareUpdateStatusEntry,
|
|
5854
|
+
messages_DeviceGetFirmwareUpdateStatus as DeviceGetFirmwareUpdateStatus,
|
|
5855
|
+
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
5856
|
+
messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
|
|
5857
|
+
messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
|
|
5858
|
+
messages_FactoryDeviceInfo as FactoryDeviceInfo,
|
|
5859
|
+
messages_FilesystemFixPermission as FilesystemFixPermission,
|
|
5860
|
+
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
5861
|
+
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
5862
|
+
messages_FilesystemFile as FilesystemFile,
|
|
5863
|
+
messages_FilesystemFileRead as FilesystemFileRead,
|
|
5864
|
+
messages_FilesystemFileWrite as FilesystemFileWrite,
|
|
5865
|
+
messages_FilesystemFileDelete as FilesystemFileDelete,
|
|
5866
|
+
messages_FilesystemDir as FilesystemDir,
|
|
5867
|
+
messages_FilesystemDirList as FilesystemDirList,
|
|
5868
|
+
messages_FilesystemDirMake as FilesystemDirMake,
|
|
5869
|
+
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
5870
|
+
messages_FilesystemFormat as FilesystemFormat,
|
|
5871
|
+
messages_DeviceGetOnboardingStatus as DeviceGetOnboardingStatus,
|
|
5872
|
+
messages_DeviceOnboardingStatus as DeviceOnboardingStatus,
|
|
5264
5873
|
messages_MessageType as MessageType,
|
|
5265
5874
|
messages_MessageKey as MessageKey,
|
|
5266
5875
|
messages_MessageResponse as MessageResponse,
|
|
@@ -5268,6 +5877,49 @@ declare namespace messages {
|
|
|
5268
5877
|
};
|
|
5269
5878
|
}
|
|
5270
5879
|
|
|
5880
|
+
type ProtocolV2Schemas = {
|
|
5881
|
+
protocolV1: Root;
|
|
5882
|
+
protocolV2: Root;
|
|
5883
|
+
};
|
|
5884
|
+
type ProtocolLogger = {
|
|
5885
|
+
debug?: (...args: any[]) => void;
|
|
5886
|
+
error?: (...args: any[]) => void;
|
|
5887
|
+
};
|
|
5888
|
+
type ProtocolV2SessionOptions = {
|
|
5889
|
+
schemas: ProtocolV2Schemas;
|
|
5890
|
+
router: number;
|
|
5891
|
+
packetSrc?: number;
|
|
5892
|
+
writeFrame: (frame: Uint8Array) => Promise<void>;
|
|
5893
|
+
readFrame: () => Promise<Uint8Array>;
|
|
5894
|
+
logger?: ProtocolLogger;
|
|
5895
|
+
logPrefix?: string;
|
|
5896
|
+
createTimeoutError?: (name: string, timeoutMs: number) => Error;
|
|
5897
|
+
};
|
|
5898
|
+
type ProtocolV2CallOptions = {
|
|
5899
|
+
timeoutMs?: number;
|
|
5900
|
+
expectedTypes?: string[];
|
|
5901
|
+
intermediateTypes?: string[];
|
|
5902
|
+
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
5903
|
+
};
|
|
5904
|
+
|
|
5905
|
+
declare function hexToBytes(hex: string): Uint8Array;
|
|
5906
|
+
declare function bytesToHex(bytes: Uint8Array): string;
|
|
5907
|
+
declare function getErrorMessage(error: unknown): string;
|
|
5908
|
+
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error): Promise<T>;
|
|
5909
|
+
declare class ProtocolV2Session {
|
|
5910
|
+
private readonly options;
|
|
5911
|
+
constructor(options: ProtocolV2SessionOptions);
|
|
5912
|
+
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
5913
|
+
}
|
|
5914
|
+
declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
|
|
5915
|
+
call: (name: string, data: Record<string, unknown>, options?: ProtocolV2CallOptions) => Promise<MessageFromOneKey>;
|
|
5916
|
+
timeoutMs: number;
|
|
5917
|
+
logger?: ProtocolLogger;
|
|
5918
|
+
logPrefix?: string;
|
|
5919
|
+
onBeforeProbe?: () => Promise<void> | void;
|
|
5920
|
+
onProbeFailed?: (error: unknown) => Promise<void> | void;
|
|
5921
|
+
}): Promise<boolean>;
|
|
5922
|
+
|
|
5271
5923
|
declare function info(res: any): {
|
|
5272
5924
|
version: string;
|
|
5273
5925
|
configured: boolean;
|
|
@@ -5294,20 +5946,79 @@ declare namespace check {
|
|
|
5294
5946
|
|
|
5295
5947
|
declare const LogBlockCommand: Set<string>;
|
|
5296
5948
|
|
|
5297
|
-
declare const
|
|
5298
|
-
declare const
|
|
5299
|
-
declare const
|
|
5300
|
-
declare const
|
|
5301
|
-
declare const
|
|
5949
|
+
declare const PROTOCOL_V1_REPORT_ID = 63;
|
|
5950
|
+
declare const PROTOCOL_V1_HEADER_BYTE = 35;
|
|
5951
|
+
declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
|
|
5952
|
+
declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
5953
|
+
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
5954
|
+
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
5955
|
+
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
|
|
5956
|
+
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4096;
|
|
5957
|
+
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
5958
|
+
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4096;
|
|
5959
|
+
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
5960
|
+
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
5961
|
+
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
5962
|
+
declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
|
|
5302
5963
|
|
|
5303
5964
|
declare const _default: {
|
|
5304
5965
|
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
5966
|
parseConfigure: typeof parseConfigure;
|
|
5310
|
-
|
|
5967
|
+
protocolV2: typeof protocolV2Codec;
|
|
5968
|
+
ProtocolV1: {
|
|
5969
|
+
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
5970
|
+
encodeMessageChunks: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => Buffer[];
|
|
5971
|
+
encodeTransportPackets: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => ByteBuffer[];
|
|
5972
|
+
decodeFirstChunk: (bytes: ArrayBuffer) => {
|
|
5973
|
+
length: number;
|
|
5974
|
+
typeId: number;
|
|
5975
|
+
restBuffer: ByteBuffer;
|
|
5976
|
+
};
|
|
5977
|
+
decodeMessage: typeof decodeMessage;
|
|
5978
|
+
};
|
|
5979
|
+
ProtocolV2: {
|
|
5980
|
+
encodeFrame(schemas: {
|
|
5981
|
+
protocolV1: protobuf.Root;
|
|
5982
|
+
protocolV2: protobuf.Root;
|
|
5983
|
+
}, name: string, data: Record<string, unknown>, options?: {
|
|
5984
|
+
packetSrc?: number | undefined;
|
|
5985
|
+
router?: number | undefined;
|
|
5986
|
+
}): Uint8Array;
|
|
5987
|
+
decodeFrame(schemas: {
|
|
5988
|
+
protocolV1: protobuf.Root;
|
|
5989
|
+
protocolV2: protobuf.Root;
|
|
5990
|
+
}, frame: Uint8Array): {
|
|
5991
|
+
message: {
|
|
5992
|
+
[key: string]: any;
|
|
5993
|
+
};
|
|
5994
|
+
messageName: string;
|
|
5995
|
+
msgType: number;
|
|
5996
|
+
pbPayload: Uint8Array;
|
|
5997
|
+
seq: number;
|
|
5998
|
+
type: string;
|
|
5999
|
+
};
|
|
6000
|
+
};
|
|
6001
|
+
PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
|
|
6002
|
+
ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
6003
|
+
ProtocolV2Session: typeof ProtocolV2Session;
|
|
6004
|
+
bytesToHex: typeof bytesToHex;
|
|
6005
|
+
concatUint8Arrays: typeof concatUint8Arrays;
|
|
6006
|
+
createMessageFromName: (messages: protobuf.Root, name: string) => {
|
|
6007
|
+
Message: protobuf.Type;
|
|
6008
|
+
messageType: number;
|
|
6009
|
+
};
|
|
6010
|
+
createMessageFromType: (messages: protobuf.Root, typeId: number) => {
|
|
6011
|
+
Message: protobuf.Type;
|
|
6012
|
+
messageName: string;
|
|
6013
|
+
};
|
|
6014
|
+
encodeProtobuf: (Message: protobuf.Type, data: Record<string, unknown>) => ByteBuffer;
|
|
6015
|
+
decodeProtobuf: (Message: protobuf.Type, data: ByteBuffer) => {
|
|
6016
|
+
[key: string]: any;
|
|
6017
|
+
};
|
|
6018
|
+
getErrorMessage: typeof getErrorMessage;
|
|
6019
|
+
hexToBytes: typeof hexToBytes;
|
|
6020
|
+
probeProtocolV2: typeof probeProtocolV2;
|
|
6021
|
+
withProtocolTimeout: typeof withProtocolTimeout;
|
|
5311
6022
|
};
|
|
5312
6023
|
|
|
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 };
|
|
6024
|
+
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, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceBluetoothInfo, DeviceEraseSector, DeviceFirmwareImageInfo, DeviceFirmwareInstallProgress, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdate, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusEntry, DeviceGetDeviceInfo, DeviceGetFirmwareUpdateStatus, DeviceGetOnboardingStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceOnboardingStatus, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceStatus, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, 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, 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, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, 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, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, 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 };
|