@onekeyfe/hd-transport 1.0.9 → 1.0.10-alpha.10

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.
@@ -3,6 +3,69 @@
3
3
  // custom type uint32/64 may be represented as string
4
4
  export type UintType = string | number;
5
5
 
6
+ // AlephiumGetAddress
7
+ export type AlephiumGetAddress = {
8
+ address_n: number[];
9
+ show_display?: boolean;
10
+ include_public_key?: boolean;
11
+ };
12
+
13
+ // AlephiumAddress
14
+ export type AlephiumAddress = {
15
+ address: string;
16
+ public_key?: string;
17
+ };
18
+
19
+ // AlephiumSignTx
20
+ export type AlephiumSignTx = {
21
+ address_n: number[];
22
+ data_initial_chunk: string;
23
+ data_length?: number;
24
+ };
25
+
26
+ // AlephiumSignedTx
27
+ export type AlephiumSignedTx = {
28
+ signature: string;
29
+ address: string;
30
+ };
31
+
32
+ // AlephiumTxRequest
33
+ export type AlephiumTxRequest = {
34
+ data_length?: number;
35
+ public_key?: string;
36
+ signature?: string;
37
+ };
38
+
39
+ // AlephiumTxAck
40
+ export type AlephiumTxAck = {
41
+ data_chunk: string;
42
+ };
43
+
44
+ // AlephiumBytecodeRequest
45
+ export type AlephiumBytecodeRequest = {
46
+ data_length?: number;
47
+ public_key?: string;
48
+ signature?: string;
49
+ };
50
+
51
+ // AlephiumBytecodeAck
52
+ export type AlephiumBytecodeAck = {
53
+ bytecode_data: string;
54
+ };
55
+
56
+ // AlephiumSignMessage
57
+ export type AlephiumSignMessage = {
58
+ address_n: number[];
59
+ message?: string;
60
+ message_type?: string;
61
+ };
62
+
63
+ // AlephiumMessageSignature
64
+ export type AlephiumMessageSignature = {
65
+ signature?: string;
66
+ address?: string;
67
+ };
68
+
6
69
  // AlgorandGetAddress
7
70
  export type AlgorandGetAddress = {
8
71
  address_n: number[];
@@ -588,6 +651,17 @@ export type PublicKeyMultiple = {
588
651
  xpubs: string[];
589
652
  };
590
653
 
654
+ // SignPsbt
655
+ export type SignPsbt = {
656
+ psbt: string;
657
+ coin_name?: string;
658
+ };
659
+
660
+ // SignedPsbt
661
+ export type SignedPsbt = {
662
+ psbt: string;
663
+ };
664
+
591
665
  // FirmwareErase
592
666
  export type FirmwareErase = {
593
667
  length?: number;
@@ -980,6 +1054,7 @@ export type CardanoSignMessage = {
980
1054
  message: string;
981
1055
  derivation_type: CardanoDerivationType;
982
1056
  network_id: number;
1057
+ address_type?: CardanoAddressType;
983
1058
  };
984
1059
 
985
1060
  // CardanoMessageSignature
@@ -3279,6 +3354,54 @@ export type RippleSignedTx = {
3279
3354
  serialized_tx: string;
3280
3355
  };
3281
3356
 
3357
+ // ScdoGetAddress
3358
+ export type ScdoGetAddress = {
3359
+ address_n: number[];
3360
+ show_display?: boolean;
3361
+ };
3362
+
3363
+ // ScdoAddress
3364
+ export type ScdoAddress = {
3365
+ address: string;
3366
+ };
3367
+
3368
+ // ScdoSignTx
3369
+ export type ScdoSignTx = {
3370
+ address_n: number[];
3371
+ nonce: string;
3372
+ gas_price: string;
3373
+ gas_limit: string;
3374
+ to: string;
3375
+ value: string;
3376
+ timestamp?: string;
3377
+ data_initial_chunk?: string;
3378
+ data_length?: number;
3379
+ tx_type?: number;
3380
+ };
3381
+
3382
+ // ScdoSignedTx
3383
+ export type ScdoSignedTx = {
3384
+ data_length?: number;
3385
+ signature?: string;
3386
+ };
3387
+
3388
+ // ScdoTxAck
3389
+ export type ScdoTxAck = {
3390
+ data_chunk?: string;
3391
+ };
3392
+
3393
+ // ScdoSignMessage
3394
+ export type ScdoSignMessage = {
3395
+ address_n: number[];
3396
+ message?: string;
3397
+ };
3398
+
3399
+ // ScdoSignedMessage
3400
+ export type ScdoSignedMessage = {
3401
+ signature?: string;
3402
+ address?: string;
3403
+ };
3404
+
3282
3405
  // SolanaGetAddress
3283
3406
  export type SolanaGetAddress = {
3284
3407
  address_n: number[];
@@ -3711,6 +3834,80 @@ export type TezosSignedTx = {
3711
3834
  operation_hash: string;
3712
3835
  };
3713
3836
 
3837
+ export enum TonWalletVersion {
3838
+ V4R2 = 3,
3839
+ }
3840
+
3841
+ export enum TonWorkChain {
3842
+ BASECHAIN = 0,
3843
+ MASTERCHAIN = 1,
3844
+ }
3845
+
3846
+ // TonGetAddress
3847
+ export type TonGetAddress = {
3848
+ address_n: number[];
3849
+ show_display?: boolean;
3850
+ wallet_version?: TonWalletVersion;
3851
+ is_bounceable?: boolean;
3852
+ is_testnet_only?: boolean;
3853
+ workchain?: TonWorkChain;
3854
+ wallet_id?: number;
3855
+ };
3856
+
3857
+ // TonAddress
3858
+ export type TonAddress = {
3859
+ public_key: string;
3860
+ address: string;
3861
+ };
3862
+
3863
+ // TonSignMessage
3864
+ export type TonSignMessage = {
3865
+ address_n: number[];
3866
+ destination: string;
3867
+ jetton_master_address?: string;
3868
+ jetton_wallet_address?: string;
3869
+ ton_amount: number;
3870
+ jetton_amount?: number;
3871
+ fwd_fee?: number;
3872
+ comment?: string;
3873
+ is_raw_data?: boolean;
3874
+ mode?: number;
3875
+ seqno: number;
3876
+ expire_at: number;
3877
+ wallet_version?: TonWalletVersion;
3878
+ wallet_id?: number;
3879
+ workchain?: TonWorkChain;
3880
+ is_bounceable?: boolean;
3881
+ is_testnet_only?: boolean;
3882
+ ext_destination: string[];
3883
+ ext_ton_amount: number[];
3884
+ ext_payload: string[];
3885
+ };
3886
+
3887
+ // TonSignedMessage
3888
+ export type TonSignedMessage = {
3889
+ signature?: string;
3890
+ signning_message?: string;
3891
+ };
3892
+
3893
+ // TonSignProof
3894
+ export type TonSignProof = {
3895
+ address_n: number[];
3896
+ appdomain: string;
3897
+ comment?: string;
3898
+ expire_at: number;
3899
+ wallet_version?: TonWalletVersion;
3900
+ wallet_id?: number;
3901
+ workchain?: TonWorkChain;
3902
+ is_bounceable?: boolean;
3903
+ is_testnet_only?: boolean;
3904
+ };
3905
+
3906
+ // TonSignedProof
3907
+ export type TonSignedProof = {
3908
+ signature?: string;
3909
+ };
3910
+
3714
3911
  // TronGetAddress
3715
3912
  export type TronGetAddress = {
3716
3913
  address_n: number[];
@@ -3832,19 +4029,18 @@ export enum CommandFlags {
3832
4029
  Factory_Only = 1,
3833
4030
  }
3834
4031
 
3835
- // SignPsbt
3836
- export type SignPsbt = {
3837
- psbt: string;
3838
- coin_name?: string;
3839
- };
3840
-
3841
- // SignedPsbt
3842
- export type SignedPsbt = {
3843
- psbt: string;
3844
- };
3845
-
3846
4032
  // custom connect definitions
3847
4033
  export type MessageType = {
4034
+ AlephiumGetAddress: AlephiumGetAddress;
4035
+ AlephiumAddress: AlephiumAddress;
4036
+ AlephiumSignTx: AlephiumSignTx;
4037
+ AlephiumSignedTx: AlephiumSignedTx;
4038
+ AlephiumTxRequest: AlephiumTxRequest;
4039
+ AlephiumTxAck: AlephiumTxAck;
4040
+ AlephiumBytecodeRequest: AlephiumBytecodeRequest;
4041
+ AlephiumBytecodeAck: AlephiumBytecodeAck;
4042
+ AlephiumSignMessage: AlephiumSignMessage;
4043
+ AlephiumMessageSignature: AlephiumMessageSignature;
3848
4044
  AlgorandGetAddress: AlgorandGetAddress;
3849
4045
  AlgorandAddress: AlgorandAddress;
3850
4046
  AlgorandSignTx: AlgorandSignTx;
@@ -3908,6 +4104,8 @@ export type MessageType = {
3908
4104
  BIP32Address: BIP32Address;
3909
4105
  GetPublicKeyMultiple: GetPublicKeyMultiple;
3910
4106
  PublicKeyMultiple: PublicKeyMultiple;
4107
+ SignPsbt: SignPsbt;
4108
+ SignedPsbt: SignedPsbt;
3911
4109
  FirmwareErase: FirmwareErase;
3912
4110
  FirmwareRequest: FirmwareRequest;
3913
4111
  FirmwareUpload: FirmwareUpload;
@@ -4262,8 +4460,13 @@ export type MessageType = {
4262
4460
  RipplePayment: RipplePayment;
4263
4461
  RippleSignTx: RippleSignTx;
4264
4462
  RippleSignedTx: RippleSignedTx;
4265
- SignPsbt: SignPsbt;
4266
- SignedPsbt: SignedPsbt;
4463
+ ScdoGetAddress: ScdoGetAddress;
4464
+ ScdoAddress: ScdoAddress;
4465
+ ScdoSignTx: ScdoSignTx;
4466
+ ScdoSignedTx: ScdoSignedTx;
4467
+ ScdoTxAck: ScdoTxAck;
4468
+ ScdoSignMessage: ScdoSignMessage;
4469
+ ScdoSignedMessage: ScdoSignedMessage;
4267
4470
  SolanaGetAddress: SolanaGetAddress;
4268
4471
  SolanaAddress: SolanaAddress;
4269
4472
  SolanaSignTx: SolanaSignTx;
@@ -4319,6 +4522,12 @@ export type MessageType = {
4319
4522
  TezosBallotOp: TezosBallotOp;
4320
4523
  TezosSignTx: TezosSignTx;
4321
4524
  TezosSignedTx: TezosSignedTx;
4525
+ TonGetAddress: TonGetAddress;
4526
+ TonAddress: TonAddress;
4527
+ TonSignMessage: TonSignMessage;
4528
+ TonSignedMessage: TonSignedMessage;
4529
+ TonSignProof: TonSignProof;
4530
+ TonSignedProof: TonSignedProof;
4322
4531
  TronGetAddress: TronGetAddress;
4323
4532
  TronAddress: TronAddress;
4324
4533
  TronTransferContract: TronTransferContract;