@onekeyfe/hd-transport 1.2.10-alpha.2 → 1.2.10-alpha.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocols/index.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAE,qBAAqB,EAA+C,MAAM,cAAc,CAAC;AAElG,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAQhE,OAAO,EAGL,kBAAkB,EAClB,UAAU,EACX,MAAM,MAAM,CAAC;AAId,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AAEvD,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAkGF,eAAO,MAAM,UAAU;;;;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;0BAIC,iBAAiB,SAAS,UAAU;;;;;;;;;;yBAgB/C,iBAAiB,QACpB,MAAM,QACN,OAAO,MAAM,EAAE,OAAO,CAAC,YACpB,sBAAsB;yBAkBZ,iBAAiB,SAAS,UAAU;;;;;;;;;;;;;;;;;;;;;;CAqC1D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocols/index.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAE,qBAAqB,EAA+C,MAAM,cAAc,CAAC;AAElG,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAIhE,OAAO,EAGL,kBAAkB,EAClB,UAAU,EACX,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AAEvD,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAqHF,eAAO,MAAM,UAAU;;;;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;0BAIC,iBAAiB,SAAS,UAAU;;;;;;;;;;yBAgB/C,iBAAiB,QACpB,MAAM,QACN,OAAO,MAAM,EAAE,OAAO,CAAC,YACpB,sBAAsB;yBAkBZ,iBAAiB,SAAS,UAAU;;;;;;;;;;;;;;;;;;;;;;CAqC1D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as protobuf from 'protobufjs/light';
2
- export declare function parseConfigure(data: protobuf.INamespace | string): protobuf.Root;
2
+ export declare function parseConfigure(data: protobuf.INamespace): protobuf.Root;
3
3
  export declare const createMessageFromName: (messages: protobuf.Root, name: string) => {
4
4
  Message: protobuf.Type;
5
5
  messageTypeId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/serialization/protobuf/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAS7C,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,MAAM,iBAKhE;AAED,eAAO,MAAM,qBAAqB,aAAc,SAAS,IAAI,QAAQ,MAAM;;;CAiB1E,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,SAAS,IAAI,UAAU,MAAM;;;CAgB5E,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/serialization/protobuf/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,iBAMvD;AAED,eAAO,MAAM,qBAAqB,aAAc,SAAS,IAAI,QAAQ,MAAM;;;CAiB1E,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,SAAS,IAAI,UAAU,MAAM;;;CAgB5E,CAAC"}
@@ -3508,33 +3508,6 @@ export type UiAnimationRequest = {
3508
3508
  command: UiAnimationCommand;
3509
3509
  type?: UiAnimationType;
3510
3510
  };
3511
- export declare enum ZcashAddressType {
3512
- UNIFIED_ORCHARD_P2PKH = 0,
3513
- TRANSPARENT_P2PKH = 1,
3514
- UNIFIED_ORCHARD = 2
3515
- }
3516
- export declare enum ZcashAddressScope {
3517
- EXTERNAL = 0,
3518
- INTERNAL = 1
3519
- }
3520
- export type ZcashGetAddress = {
3521
- address_n: number[];
3522
- show_display?: boolean;
3523
- include_seed_fingerprint?: boolean;
3524
- diversifier_index?: number;
3525
- address_type?: ZcashAddressType;
3526
- scope?: ZcashAddressScope;
3527
- };
3528
- export type ZcashAddress = {
3529
- address: string;
3530
- seed_fingerprint?: string;
3531
- };
3532
- export type ZcashGetFullViewingKey = {
3533
- address_n: number[];
3534
- };
3535
- export type ZcashFullViewingKey = {
3536
- ufvk: string;
3537
- };
3538
3511
  export type ZcashSignPczt = {
3539
3512
  pczt_length: number;
3540
3513
  pczt_initial_chunk: string;
@@ -4071,6 +4044,29 @@ export type ViewVerifyPage = {
4071
4044
  chain_id?: number;
4072
4045
  content?: ViewContentPreview;
4073
4046
  };
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
+ };
4074
4070
  export declare enum ProtocolV2FailureType {
4075
4071
  Failure_InvalidMessage = 1,
4076
4072
  Failure_UndefinedError = 2,
@@ -4682,10 +4678,6 @@ export type MessageType = {
4682
4678
  UnlockPath: UnlockPath;
4683
4679
  UnlockedPathRequest: UnlockedPathRequest;
4684
4680
  UiAnimationRequest: UiAnimationRequest;
4685
- ZcashGetAddress: ZcashGetAddress;
4686
- ZcashAddress: ZcashAddress;
4687
- ZcashGetFullViewingKey: ZcashGetFullViewingKey;
4688
- ZcashFullViewingKey: ZcashFullViewingKey;
4689
4681
  ZcashSignPczt: ZcashSignPczt;
4690
4682
  ZcashPcztChunkRequest: ZcashPcztChunkRequest;
4691
4683
  ZcashPcztChunkAck: ZcashPcztChunkAck;
@@ -4767,6 +4759,8 @@ export type MessageType = {
4767
4759
  ViewSignPage: ViewSignPage;
4768
4760
  ViewWarningPage: ViewWarningPage;
4769
4761
  ViewVerifyPage: ViewVerifyPage;
4762
+ ZcashGetAddress: ZcashGetAddress;
4763
+ ZcashAddress: ZcashAddress;
4770
4764
  };
4771
4765
  export type MessageKey = keyof MessageType;
4772
4766
  export type MessageResponse<T extends MessageKey> = {