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

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;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
+ {"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,5 +1,5 @@
1
1
  import * as protobuf from 'protobufjs/light';
2
- export declare function parseConfigure(data: protobuf.INamespace): protobuf.Root;
2
+ export declare function parseConfigure(data: protobuf.INamespace | string): 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;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"}
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"}
@@ -3508,6 +3508,33 @@ 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
+ };
3511
3538
  export type ZcashSignPczt = {
3512
3539
  pczt_length: number;
3513
3540
  pczt_initial_chunk: string;
@@ -4044,29 +4071,6 @@ export type ViewVerifyPage = {
4044
4071
  chain_id?: number;
4045
4072
  content?: ViewContentPreview;
4046
4073
  };
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
4074
  export declare enum ProtocolV2FailureType {
4071
4075
  Failure_InvalidMessage = 1,
4072
4076
  Failure_UndefinedError = 2,
@@ -4678,6 +4682,10 @@ export type MessageType = {
4678
4682
  UnlockPath: UnlockPath;
4679
4683
  UnlockedPathRequest: UnlockedPathRequest;
4680
4684
  UiAnimationRequest: UiAnimationRequest;
4685
+ ZcashGetAddress: ZcashGetAddress;
4686
+ ZcashAddress: ZcashAddress;
4687
+ ZcashGetFullViewingKey: ZcashGetFullViewingKey;
4688
+ ZcashFullViewingKey: ZcashFullViewingKey;
4681
4689
  ZcashSignPczt: ZcashSignPczt;
4682
4690
  ZcashPcztChunkRequest: ZcashPcztChunkRequest;
4683
4691
  ZcashPcztChunkAck: ZcashPcztChunkAck;
@@ -4759,8 +4767,6 @@ export type MessageType = {
4759
4767
  ViewSignPage: ViewSignPage;
4760
4768
  ViewWarningPage: ViewWarningPage;
4761
4769
  ViewVerifyPage: ViewVerifyPage;
4762
- ZcashGetAddress: ZcashGetAddress;
4763
- ZcashAddress: ZcashAddress;
4764
4770
  };
4765
4771
  export type MessageKey = keyof MessageType;
4766
4772
  export type MessageResponse<T extends MessageKey> = {