@onekeyfe/hd-transport 1.2.8-alpha.111 → 1.2.8-alpha.113
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__/protocol-v2-file-write-pipeline.test.js +417 -0
- package/__tests__/transport-log.test.js +0 -44
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +42 -68
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +187 -57
- package/dist/protocols/v2/session.d.ts +4 -1
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/types/messages.d.ts +0 -47
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +5 -0
- package/dist/types/transport.d.ts.map +1 -1
- package/dist/utils/transportLog.d.ts.map +1 -1
- package/messages-protocol-v2.json +1 -138
- package/package.json +2 -2
- package/src/constants.ts +7 -0
- package/src/index.ts +1 -0
- package/src/protocols/v2/session.ts +300 -63
- package/src/types/messages.ts +0 -63
- package/src/types/transport.ts +19 -0
- package/src/utils/transportLog.ts +1 -6
package/dist/types/messages.d.ts
CHANGED
|
@@ -3508,23 +3508,6 @@ export type UiAnimationRequest = {
|
|
|
3508
3508
|
command: UiAnimationCommand;
|
|
3509
3509
|
type?: UiAnimationType;
|
|
3510
3510
|
};
|
|
3511
|
-
export type ZcashSignPczt = {
|
|
3512
|
-
pczt_length: number;
|
|
3513
|
-
pczt_initial_chunk: string;
|
|
3514
|
-
};
|
|
3515
|
-
export type ZcashPcztChunkRequest = {
|
|
3516
|
-
chunk_length: number;
|
|
3517
|
-
};
|
|
3518
|
-
export type ZcashPcztChunkAck = {
|
|
3519
|
-
data_chunk: string;
|
|
3520
|
-
};
|
|
3521
|
-
export type ZcashSignedPczt = {
|
|
3522
|
-
pczt_length: number;
|
|
3523
|
-
pczt_initial_chunk: string;
|
|
3524
|
-
};
|
|
3525
|
-
export type ZcashSignedPcztChunkRequest = {
|
|
3526
|
-
chunk_length: number;
|
|
3527
|
-
};
|
|
3528
3511
|
export type experimental_message = {};
|
|
3529
3512
|
export type experimental_field = {};
|
|
3530
3513
|
export type ProtocolInfoRequest = {
|
|
@@ -4044,29 +4027,6 @@ export type ViewVerifyPage = {
|
|
|
4044
4027
|
chain_id?: number;
|
|
4045
4028
|
content?: ViewContentPreview;
|
|
4046
4029
|
};
|
|
4047
|
-
export declare enum ZcashAddressType {
|
|
4048
|
-
UNIFIED_ORCHARD_P2PKH = 0,
|
|
4049
|
-
TRANSPARENT_P2PKH = 1,
|
|
4050
|
-
UNIFIED_ORCHARD = 2
|
|
4051
|
-
}
|
|
4052
|
-
export declare enum ZcashAddressScope {
|
|
4053
|
-
EXTERNAL = 0,
|
|
4054
|
-
INTERNAL = 1
|
|
4055
|
-
}
|
|
4056
|
-
export type ZcashGetAddress = {
|
|
4057
|
-
address_n: number[];
|
|
4058
|
-
show_display?: boolean;
|
|
4059
|
-
include_seed_fingerprint?: boolean;
|
|
4060
|
-
include_ufvk?: boolean;
|
|
4061
|
-
diversifier_index?: number;
|
|
4062
|
-
address_type?: ZcashAddressType;
|
|
4063
|
-
scope?: ZcashAddressScope;
|
|
4064
|
-
};
|
|
4065
|
-
export type ZcashAddress = {
|
|
4066
|
-
address: string;
|
|
4067
|
-
ufvk?: string;
|
|
4068
|
-
seed_fingerprint?: string;
|
|
4069
|
-
};
|
|
4070
4030
|
export declare enum ProtocolV2FailureType {
|
|
4071
4031
|
Failure_InvalidMessage = 1,
|
|
4072
4032
|
Failure_UndefinedError = 2,
|
|
@@ -4678,11 +4638,6 @@ export type MessageType = {
|
|
|
4678
4638
|
UnlockPath: UnlockPath;
|
|
4679
4639
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4680
4640
|
UiAnimationRequest: UiAnimationRequest;
|
|
4681
|
-
ZcashSignPczt: ZcashSignPczt;
|
|
4682
|
-
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
4683
|
-
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
4684
|
-
ZcashSignedPczt: ZcashSignedPczt;
|
|
4685
|
-
ZcashSignedPcztChunkRequest: ZcashSignedPcztChunkRequest;
|
|
4686
4641
|
experimental_message: experimental_message;
|
|
4687
4642
|
experimental_field: experimental_field;
|
|
4688
4643
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
@@ -4759,8 +4714,6 @@ export type MessageType = {
|
|
|
4759
4714
|
ViewSignPage: ViewSignPage;
|
|
4760
4715
|
ViewWarningPage: ViewWarningPage;
|
|
4761
4716
|
ViewVerifyPage: ViewVerifyPage;
|
|
4762
|
-
ZcashGetAddress: ZcashGetAddress;
|
|
4763
|
-
ZcashAddress: ZcashAddress;
|
|
4764
4717
|
};
|
|
4765
4718
|
export type MessageKey = keyof MessageType;
|
|
4766
4719
|
export type MessageResponse<T extends MessageKey> = {
|