@onekeyfe/hd-transport 1.2.10-alpha.3 → 1.2.11-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11034,6 +11034,94 @@
11034
11034
  }
11035
11035
  }
11036
11036
  },
11037
+ "ZcashAddressType": {
11038
+ "values": {
11039
+ "UNIFIED_ORCHARD_P2PKH": 0,
11040
+ "TRANSPARENT_P2PKH": 1,
11041
+ "UNIFIED_ORCHARD": 2
11042
+ }
11043
+ },
11044
+ "ZcashAddressScope": {
11045
+ "values": {
11046
+ "EXTERNAL": 0,
11047
+ "INTERNAL": 1
11048
+ }
11049
+ },
11050
+ "ZcashGetAddress": {
11051
+ "fields": {
11052
+ "address_n": {
11053
+ "rule": "repeated",
11054
+ "type": "uint32",
11055
+ "id": 1,
11056
+ "options": {
11057
+ "packed": false
11058
+ }
11059
+ },
11060
+ "show_display": {
11061
+ "type": "bool",
11062
+ "id": 2
11063
+ },
11064
+ "include_seed_fingerprint": {
11065
+ "type": "bool",
11066
+ "id": 3
11067
+ },
11068
+ "diversifier_index": {
11069
+ "type": "uint32",
11070
+ "id": 5,
11071
+ "options": {
11072
+ "default": 0
11073
+ }
11074
+ },
11075
+ "address_type": {
11076
+ "type": "ZcashAddressType",
11077
+ "id": 6,
11078
+ "options": {
11079
+ "default": "UNIFIED_ORCHARD_P2PKH"
11080
+ }
11081
+ },
11082
+ "scope": {
11083
+ "type": "ZcashAddressScope",
11084
+ "id": 7,
11085
+ "options": {
11086
+ "default": "EXTERNAL"
11087
+ }
11088
+ }
11089
+ }
11090
+ },
11091
+ "ZcashAddress": {
11092
+ "fields": {
11093
+ "address": {
11094
+ "rule": "required",
11095
+ "type": "string",
11096
+ "id": 1
11097
+ },
11098
+ "seed_fingerprint": {
11099
+ "type": "bytes",
11100
+ "id": 3
11101
+ }
11102
+ }
11103
+ },
11104
+ "ZcashGetFullViewingKey": {
11105
+ "fields": {
11106
+ "address_n": {
11107
+ "rule": "repeated",
11108
+ "type": "uint32",
11109
+ "id": 1,
11110
+ "options": {
11111
+ "packed": false
11112
+ }
11113
+ }
11114
+ }
11115
+ },
11116
+ "ZcashFullViewingKey": {
11117
+ "fields": {
11118
+ "ufvk": {
11119
+ "rule": "required",
11120
+ "type": "string",
11121
+ "id": 1
11122
+ }
11123
+ }
11124
+ },
11037
11125
  "ZcashSignPczt": {
11038
11126
  "fields": {
11039
11127
  "pczt_length": {
@@ -11514,11 +11602,15 @@
11514
11602
  "MessageType_NeoAddress": 12302,
11515
11603
  "MessageType_NeoSignTx": 12303,
11516
11604
  "MessageType_NeoSignedTx": 12304,
11605
+ "MessageType_ZcashGetAddress": 12400,
11606
+ "MessageType_ZcashAddress": 12401,
11517
11607
  "MessageType_ZcashSignPczt": 12402,
11518
11608
  "MessageType_ZcashSignedPczt": 12403,
11519
11609
  "MessageType_ZcashPcztChunkRequest": 12404,
11520
11610
  "MessageType_ZcashPcztChunkAck": 12405,
11521
11611
  "MessageType_ZcashSignedPcztChunkRequest": 12406,
11612
+ "MessageType_ZcashGetFullViewingKey": 12407,
11613
+ "MessageType_ZcashFullViewingKey": 12408,
11522
11614
  "MessageType_DeviceFactoryInfoSet": 60000,
11523
11615
  "MessageType_DeviceFactoryInfoGet": 60001,
11524
11616
  "MessageType_DeviceFactoryInfo": 60002,
@@ -11571,9 +11663,7 @@
11571
11663
  "MessageType_PortfolioUpdate": 61400,
11572
11664
  "MessageType_NftUpdate": 61500,
11573
11665
  "MessageType_OnboardingStatusGet": 61600,
11574
- "MessageType_OnboardingStatus": 61601,
11575
- "MessageType_ZcashGetAddress": 12400,
11576
- "MessageType_ZcashAddress": 12401
11666
+ "MessageType_OnboardingStatus": 61601
11577
11667
  },
11578
11668
  "reserved": [
11579
11669
  [90, 92],
@@ -13792,81 +13882,6 @@
13792
13882
  }
13793
13883
  }
13794
13884
  }
13795
- },
13796
- "ZcashAddressType": {
13797
- "values": {
13798
- "UNIFIED_ORCHARD_P2PKH": 0,
13799
- "TRANSPARENT_P2PKH": 1,
13800
- "UNIFIED_ORCHARD": 2
13801
- }
13802
- },
13803
- "ZcashAddressScope": {
13804
- "values": {
13805
- "EXTERNAL": 0,
13806
- "INTERNAL": 1
13807
- }
13808
- },
13809
- "ZcashGetAddress": {
13810
- "fields": {
13811
- "address_n": {
13812
- "rule": "repeated",
13813
- "type": "uint32",
13814
- "id": 1,
13815
- "options": {
13816
- "packed": false
13817
- }
13818
- },
13819
- "show_display": {
13820
- "type": "bool",
13821
- "id": 2
13822
- },
13823
- "include_seed_fingerprint": {
13824
- "type": "bool",
13825
- "id": 3
13826
- },
13827
- "include_ufvk": {
13828
- "type": "bool",
13829
- "id": 4
13830
- },
13831
- "diversifier_index": {
13832
- "type": "uint32",
13833
- "id": 5,
13834
- "options": {
13835
- "default": 0
13836
- }
13837
- },
13838
- "address_type": {
13839
- "type": "ZcashAddressType",
13840
- "id": 6,
13841
- "options": {
13842
- "default": "UNIFIED_ORCHARD_P2PKH"
13843
- }
13844
- },
13845
- "scope": {
13846
- "type": "ZcashAddressScope",
13847
- "id": 7,
13848
- "options": {
13849
- "default": "EXTERNAL"
13850
- }
13851
- }
13852
- }
13853
- },
13854
- "ZcashAddress": {
13855
- "fields": {
13856
- "address": {
13857
- "rule": "required",
13858
- "type": "string",
13859
- "id": 1
13860
- },
13861
- "ufvk": {
13862
- "type": "string",
13863
- "id": 2
13864
- },
13865
- "seed_fingerprint": {
13866
- "type": "bytes",
13867
- "id": 3
13868
- }
13869
- }
13870
13885
  }
13871
13886
  }
13872
13887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport",
3
- "version": "1.2.10-alpha.3",
3
+ "version": "1.2.11-alpha.1",
4
4
  "description": "Transport layer abstractions and utilities for OneKey hardware SDK.",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -28,5 +28,5 @@
28
28
  "long": "^4.0.0",
29
29
  "protobufjs": "^6.11.2"
30
30
  },
31
- "gitHead": "7ea778fa7f33611198758436b09e26df68cbc0e8"
31
+ "gitHead": "2d32b0985ac1ea5956fa7edf9d43b29c77450f6c"
32
32
  }
@@ -4680,6 +4680,43 @@ export type UiAnimationRequest = {
4680
4680
  type?: UiAnimationType;
4681
4681
  };
4682
4682
 
4683
+ export enum ZcashAddressType {
4684
+ UNIFIED_ORCHARD_P2PKH = 0,
4685
+ TRANSPARENT_P2PKH = 1,
4686
+ UNIFIED_ORCHARD = 2,
4687
+ }
4688
+
4689
+ export enum ZcashAddressScope {
4690
+ EXTERNAL = 0,
4691
+ INTERNAL = 1,
4692
+ }
4693
+
4694
+ // ZcashGetAddress
4695
+ export type ZcashGetAddress = {
4696
+ address_n: number[];
4697
+ show_display?: boolean;
4698
+ include_seed_fingerprint?: boolean;
4699
+ diversifier_index?: number;
4700
+ address_type?: ZcashAddressType;
4701
+ scope?: ZcashAddressScope;
4702
+ };
4703
+
4704
+ // ZcashAddress
4705
+ export type ZcashAddress = {
4706
+ address: string;
4707
+ seed_fingerprint?: string;
4708
+ };
4709
+
4710
+ // ZcashGetFullViewingKey
4711
+ export type ZcashGetFullViewingKey = {
4712
+ address_n: number[];
4713
+ };
4714
+
4715
+ // ZcashFullViewingKey
4716
+ export type ZcashFullViewingKey = {
4717
+ ufvk: string;
4718
+ };
4719
+
4683
4720
  // ZcashSignPczt
4684
4721
  export type ZcashSignPczt = {
4685
4722
  pczt_length: number;
@@ -5401,35 +5438,6 @@ export type ViewVerifyPage = {
5401
5438
  content?: ViewContentPreview;
5402
5439
  };
5403
5440
 
5404
- export enum ZcashAddressType {
5405
- UNIFIED_ORCHARD_P2PKH = 0,
5406
- TRANSPARENT_P2PKH = 1,
5407
- UNIFIED_ORCHARD = 2,
5408
- }
5409
-
5410
- export enum ZcashAddressScope {
5411
- EXTERNAL = 0,
5412
- INTERNAL = 1,
5413
- }
5414
-
5415
- // ZcashGetAddress
5416
- export type ZcashGetAddress = {
5417
- address_n: number[];
5418
- show_display?: boolean;
5419
- include_seed_fingerprint?: boolean;
5420
- include_ufvk?: boolean;
5421
- diversifier_index?: number;
5422
- address_type?: ZcashAddressType;
5423
- scope?: ZcashAddressScope;
5424
- };
5425
-
5426
- // ZcashAddress
5427
- export type ZcashAddress = {
5428
- address: string;
5429
- ufvk?: string;
5430
- seed_fingerprint?: string;
5431
- };
5432
-
5433
5441
  export enum ProtocolV2FailureType {
5434
5442
  Failure_InvalidMessage = 1,
5435
5443
  Failure_UndefinedError = 2,
@@ -6044,6 +6052,10 @@ export type MessageType = {
6044
6052
  UnlockPath: UnlockPath;
6045
6053
  UnlockedPathRequest: UnlockedPathRequest;
6046
6054
  UiAnimationRequest: UiAnimationRequest;
6055
+ ZcashGetAddress: ZcashGetAddress;
6056
+ ZcashAddress: ZcashAddress;
6057
+ ZcashGetFullViewingKey: ZcashGetFullViewingKey;
6058
+ ZcashFullViewingKey: ZcashFullViewingKey;
6047
6059
  ZcashSignPczt: ZcashSignPczt;
6048
6060
  ZcashPcztChunkRequest: ZcashPcztChunkRequest;
6049
6061
  ZcashPcztChunkAck: ZcashPcztChunkAck;
@@ -6125,8 +6137,6 @@ export type MessageType = {
6125
6137
  ViewSignPage: ViewSignPage;
6126
6138
  ViewWarningPage: ViewWarningPage;
6127
6139
  ViewVerifyPage: ViewVerifyPage;
6128
- ZcashGetAddress: ZcashGetAddress;
6129
- ZcashAddress: ZcashAddress;
6130
6140
  };
6131
6141
 
6132
6142
  export type MessageKey = keyof MessageType;