@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.
package/dist/index.d.ts CHANGED
@@ -93,6 +93,49 @@ type LowlevelTransportSharedPlugin = {
93
93
  };
94
94
 
95
95
  type UintType = string | number;
96
+ type AlephiumGetAddress = {
97
+ address_n: number[];
98
+ show_display?: boolean;
99
+ include_public_key?: boolean;
100
+ };
101
+ type AlephiumAddress = {
102
+ address: string;
103
+ public_key?: string;
104
+ };
105
+ type AlephiumSignTx = {
106
+ address_n: number[];
107
+ data_initial_chunk: string;
108
+ data_length?: number;
109
+ };
110
+ type AlephiumSignedTx = {
111
+ signature: string;
112
+ address: string;
113
+ };
114
+ type AlephiumTxRequest = {
115
+ data_length?: number;
116
+ public_key?: string;
117
+ signature?: string;
118
+ };
119
+ type AlephiumTxAck = {
120
+ data_chunk: string;
121
+ };
122
+ type AlephiumBytecodeRequest = {
123
+ data_length?: number;
124
+ public_key?: string;
125
+ signature?: string;
126
+ };
127
+ type AlephiumBytecodeAck = {
128
+ bytecode_data: string;
129
+ };
130
+ type AlephiumSignMessage = {
131
+ address_n: number[];
132
+ message?: string;
133
+ message_type?: string;
134
+ };
135
+ type AlephiumMessageSignature = {
136
+ signature?: string;
137
+ address?: string;
138
+ };
96
139
  type AlgorandGetAddress = {
97
140
  address_n: number[];
98
141
  show_display?: boolean;
@@ -524,6 +567,13 @@ type GetPublicKeyMultiple = {
524
567
  type PublicKeyMultiple = {
525
568
  xpubs: string[];
526
569
  };
570
+ type SignPsbt = {
571
+ psbt: string;
572
+ coin_name?: string;
573
+ };
574
+ type SignedPsbt = {
575
+ psbt: string;
576
+ };
527
577
  type FirmwareErase = {
528
578
  length?: number;
529
579
  };
@@ -817,6 +867,7 @@ type CardanoSignMessage = {
817
867
  message: string;
818
868
  derivation_type: CardanoDerivationType;
819
869
  network_id: number;
870
+ address_type?: CardanoAddressType;
820
871
  };
821
872
  type CardanoMessageSignature = {
822
873
  signature: string;
@@ -2524,6 +2575,40 @@ type RippleSignedTx = {
2524
2575
  signature: string;
2525
2576
  serialized_tx: string;
2526
2577
  };
2578
+ type ScdoGetAddress = {
2579
+ address_n: number[];
2580
+ show_display?: boolean;
2581
+ };
2582
+ type ScdoAddress = {
2583
+ address: string;
2584
+ };
2585
+ type ScdoSignTx = {
2586
+ address_n: number[];
2587
+ nonce: string;
2588
+ gas_price: string;
2589
+ gas_limit: string;
2590
+ to: string;
2591
+ value: string;
2592
+ timestamp?: string;
2593
+ data_initial_chunk?: string;
2594
+ data_length?: number;
2595
+ tx_type?: number;
2596
+ };
2597
+ type ScdoSignedTx = {
2598
+ data_length?: number;
2599
+ signature?: string;
2600
+ };
2601
+ type ScdoTxAck = {
2602
+ data_chunk?: string;
2603
+ };
2604
+ type ScdoSignMessage = {
2605
+ address_n: number[];
2606
+ message?: string;
2607
+ };
2608
+ type ScdoSignedMessage = {
2609
+ signature?: string;
2610
+ address?: string;
2611
+ };
2527
2612
  type SolanaGetAddress = {
2528
2613
  address_n: number[];
2529
2614
  show_display?: boolean;
@@ -2850,6 +2935,66 @@ type TezosSignedTx = {
2850
2935
  sig_op_contents: string;
2851
2936
  operation_hash: string;
2852
2937
  };
2938
+ declare enum TonWalletVersion {
2939
+ V4R2 = 3
2940
+ }
2941
+ declare enum TonWorkChain {
2942
+ BASECHAIN = 0,
2943
+ MASTERCHAIN = 1
2944
+ }
2945
+ type TonGetAddress = {
2946
+ address_n: number[];
2947
+ show_display?: boolean;
2948
+ wallet_version?: TonWalletVersion;
2949
+ is_bounceable?: boolean;
2950
+ is_testnet_only?: boolean;
2951
+ workchain?: TonWorkChain;
2952
+ wallet_id?: number;
2953
+ };
2954
+ type TonAddress = {
2955
+ public_key: string;
2956
+ address: string;
2957
+ };
2958
+ type TonSignMessage = {
2959
+ address_n: number[];
2960
+ destination: string;
2961
+ jetton_master_address?: string;
2962
+ jetton_wallet_address?: string;
2963
+ ton_amount: number;
2964
+ jetton_amount?: number;
2965
+ fwd_fee?: number;
2966
+ comment?: string;
2967
+ is_raw_data?: boolean;
2968
+ mode?: number;
2969
+ seqno: number;
2970
+ expire_at: number;
2971
+ wallet_version?: TonWalletVersion;
2972
+ wallet_id?: number;
2973
+ workchain?: TonWorkChain;
2974
+ is_bounceable?: boolean;
2975
+ is_testnet_only?: boolean;
2976
+ ext_destination: string[];
2977
+ ext_ton_amount: number[];
2978
+ ext_payload: string[];
2979
+ };
2980
+ type TonSignedMessage = {
2981
+ signature?: string;
2982
+ signning_message?: string;
2983
+ };
2984
+ type TonSignProof = {
2985
+ address_n: number[];
2986
+ appdomain: string;
2987
+ comment?: string;
2988
+ expire_at: number;
2989
+ wallet_version?: TonWalletVersion;
2990
+ wallet_id?: number;
2991
+ workchain?: TonWorkChain;
2992
+ is_bounceable?: boolean;
2993
+ is_testnet_only?: boolean;
2994
+ };
2995
+ type TonSignedProof = {
2996
+ signature?: string;
2997
+ };
2853
2998
  type TronGetAddress = {
2854
2999
  address_n: number[];
2855
3000
  show_display?: boolean;
@@ -2944,14 +3089,17 @@ declare enum CommandFlags {
2944
3089
  Default = 0,
2945
3090
  Factory_Only = 1
2946
3091
  }
2947
- type SignPsbt = {
2948
- psbt: string;
2949
- coin_name?: string;
2950
- };
2951
- type SignedPsbt = {
2952
- psbt: string;
2953
- };
2954
3092
  type MessageType = {
3093
+ AlephiumGetAddress: AlephiumGetAddress;
3094
+ AlephiumAddress: AlephiumAddress;
3095
+ AlephiumSignTx: AlephiumSignTx;
3096
+ AlephiumSignedTx: AlephiumSignedTx;
3097
+ AlephiumTxRequest: AlephiumTxRequest;
3098
+ AlephiumTxAck: AlephiumTxAck;
3099
+ AlephiumBytecodeRequest: AlephiumBytecodeRequest;
3100
+ AlephiumBytecodeAck: AlephiumBytecodeAck;
3101
+ AlephiumSignMessage: AlephiumSignMessage;
3102
+ AlephiumMessageSignature: AlephiumMessageSignature;
2955
3103
  AlgorandGetAddress: AlgorandGetAddress;
2956
3104
  AlgorandAddress: AlgorandAddress;
2957
3105
  AlgorandSignTx: AlgorandSignTx;
@@ -3015,6 +3163,8 @@ type MessageType = {
3015
3163
  BIP32Address: BIP32Address;
3016
3164
  GetPublicKeyMultiple: GetPublicKeyMultiple;
3017
3165
  PublicKeyMultiple: PublicKeyMultiple;
3166
+ SignPsbt: SignPsbt;
3167
+ SignedPsbt: SignedPsbt;
3018
3168
  FirmwareErase: FirmwareErase;
3019
3169
  FirmwareRequest: FirmwareRequest;
3020
3170
  FirmwareUpload: FirmwareUpload;
@@ -3369,8 +3519,13 @@ type MessageType = {
3369
3519
  RipplePayment: RipplePayment;
3370
3520
  RippleSignTx: RippleSignTx;
3371
3521
  RippleSignedTx: RippleSignedTx;
3372
- SignPsbt: SignPsbt;
3373
- SignedPsbt: SignedPsbt;
3522
+ ScdoGetAddress: ScdoGetAddress;
3523
+ ScdoAddress: ScdoAddress;
3524
+ ScdoSignTx: ScdoSignTx;
3525
+ ScdoSignedTx: ScdoSignedTx;
3526
+ ScdoTxAck: ScdoTxAck;
3527
+ ScdoSignMessage: ScdoSignMessage;
3528
+ ScdoSignedMessage: ScdoSignedMessage;
3374
3529
  SolanaGetAddress: SolanaGetAddress;
3375
3530
  SolanaAddress: SolanaAddress;
3376
3531
  SolanaSignTx: SolanaSignTx;
@@ -3426,6 +3581,12 @@ type MessageType = {
3426
3581
  TezosBallotOp: TezosBallotOp;
3427
3582
  TezosSignTx: TezosSignTx;
3428
3583
  TezosSignedTx: TezosSignedTx;
3584
+ TonGetAddress: TonGetAddress;
3585
+ TonAddress: TonAddress;
3586
+ TonSignMessage: TonSignMessage;
3587
+ TonSignedMessage: TonSignedMessage;
3588
+ TonSignProof: TonSignProof;
3589
+ TonSignedProof: TonSignedProof;
3429
3590
  TronGetAddress: TronGetAddress;
3430
3591
  TronAddress: TronAddress;
3431
3592
  TronTransferContract: TronTransferContract;
@@ -3453,6 +3614,16 @@ type MessageResponse<T extends MessageKey> = {
3453
3614
  type TypedCall = <T extends MessageKey, R extends MessageKey>(type: T, resType: R, message?: MessageType[T]) => Promise<MessageResponse<R>>;
3454
3615
 
3455
3616
  type messages_UintType = UintType;
3617
+ type messages_AlephiumGetAddress = AlephiumGetAddress;
3618
+ type messages_AlephiumAddress = AlephiumAddress;
3619
+ type messages_AlephiumSignTx = AlephiumSignTx;
3620
+ type messages_AlephiumSignedTx = AlephiumSignedTx;
3621
+ type messages_AlephiumTxRequest = AlephiumTxRequest;
3622
+ type messages_AlephiumTxAck = AlephiumTxAck;
3623
+ type messages_AlephiumBytecodeRequest = AlephiumBytecodeRequest;
3624
+ type messages_AlephiumBytecodeAck = AlephiumBytecodeAck;
3625
+ type messages_AlephiumSignMessage = AlephiumSignMessage;
3626
+ type messages_AlephiumMessageSignature = AlephiumMessageSignature;
3456
3627
  type messages_AlgorandGetAddress = AlgorandGetAddress;
3457
3628
  type messages_AlgorandAddress = AlgorandAddress;
3458
3629
  type messages_AlgorandSignTx = AlgorandSignTx;
@@ -3540,6 +3711,8 @@ type messages_AuthorizeCoinJoin = AuthorizeCoinJoin;
3540
3711
  type messages_BIP32Address = BIP32Address;
3541
3712
  type messages_GetPublicKeyMultiple = GetPublicKeyMultiple;
3542
3713
  type messages_PublicKeyMultiple = PublicKeyMultiple;
3714
+ type messages_SignPsbt = SignPsbt;
3715
+ type messages_SignedPsbt = SignedPsbt;
3543
3716
  type messages_FirmwareErase = FirmwareErase;
3544
3717
  type messages_FirmwareRequest = FirmwareRequest;
3545
3718
  type messages_FirmwareUpload = FirmwareUpload;
@@ -3970,6 +4143,13 @@ type messages_RippleAddress = RippleAddress;
3970
4143
  type messages_RipplePayment = RipplePayment;
3971
4144
  type messages_RippleSignTx = RippleSignTx;
3972
4145
  type messages_RippleSignedTx = RippleSignedTx;
4146
+ type messages_ScdoGetAddress = ScdoGetAddress;
4147
+ type messages_ScdoAddress = ScdoAddress;
4148
+ type messages_ScdoSignTx = ScdoSignTx;
4149
+ type messages_ScdoSignedTx = ScdoSignedTx;
4150
+ type messages_ScdoTxAck = ScdoTxAck;
4151
+ type messages_ScdoSignMessage = ScdoSignMessage;
4152
+ type messages_ScdoSignedMessage = ScdoSignedMessage;
3973
4153
  type messages_SolanaGetAddress = SolanaGetAddress;
3974
4154
  type messages_SolanaAddress = SolanaAddress;
3975
4155
  type messages_SolanaSignTx = SolanaSignTx;
@@ -4035,6 +4215,16 @@ declare const messages_TezosBallotType: typeof TezosBallotType;
4035
4215
  type messages_TezosBallotOp = TezosBallotOp;
4036
4216
  type messages_TezosSignTx = TezosSignTx;
4037
4217
  type messages_TezosSignedTx = TezosSignedTx;
4218
+ type messages_TonWalletVersion = TonWalletVersion;
4219
+ declare const messages_TonWalletVersion: typeof TonWalletVersion;
4220
+ type messages_TonWorkChain = TonWorkChain;
4221
+ declare const messages_TonWorkChain: typeof TonWorkChain;
4222
+ type messages_TonGetAddress = TonGetAddress;
4223
+ type messages_TonAddress = TonAddress;
4224
+ type messages_TonSignMessage = TonSignMessage;
4225
+ type messages_TonSignedMessage = TonSignedMessage;
4226
+ type messages_TonSignProof = TonSignProof;
4227
+ type messages_TonSignedProof = TonSignedProof;
4038
4228
  type messages_TronGetAddress = TronGetAddress;
4039
4229
  type messages_TronAddress = TronAddress;
4040
4230
  type messages_TronTransferContract = TronTransferContract;
@@ -4057,8 +4247,6 @@ type messages_TronMessageSignature = TronMessageSignature;
4057
4247
  type messages_facotry = facotry;
4058
4248
  type messages_CommandFlags = CommandFlags;
4059
4249
  declare const messages_CommandFlags: typeof CommandFlags;
4060
- type messages_SignPsbt = SignPsbt;
4061
- type messages_SignedPsbt = SignedPsbt;
4062
4250
  type messages_MessageType = MessageType;
4063
4251
  type messages_MessageKey = MessageKey;
4064
4252
  type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
@@ -4066,6 +4254,16 @@ type messages_TypedCall = TypedCall;
4066
4254
  declare namespace messages {
4067
4255
  export {
4068
4256
  messages_UintType as UintType,
4257
+ messages_AlephiumGetAddress as AlephiumGetAddress,
4258
+ messages_AlephiumAddress as AlephiumAddress,
4259
+ messages_AlephiumSignTx as AlephiumSignTx,
4260
+ messages_AlephiumSignedTx as AlephiumSignedTx,
4261
+ messages_AlephiumTxRequest as AlephiumTxRequest,
4262
+ messages_AlephiumTxAck as AlephiumTxAck,
4263
+ messages_AlephiumBytecodeRequest as AlephiumBytecodeRequest,
4264
+ messages_AlephiumBytecodeAck as AlephiumBytecodeAck,
4265
+ messages_AlephiumSignMessage as AlephiumSignMessage,
4266
+ messages_AlephiumMessageSignature as AlephiumMessageSignature,
4069
4267
  messages_AlgorandGetAddress as AlgorandGetAddress,
4070
4268
  messages_AlgorandAddress as AlgorandAddress,
4071
4269
  messages_AlgorandSignTx as AlgorandSignTx,
@@ -4145,6 +4343,8 @@ declare namespace messages {
4145
4343
  messages_BIP32Address as BIP32Address,
4146
4344
  messages_GetPublicKeyMultiple as GetPublicKeyMultiple,
4147
4345
  messages_PublicKeyMultiple as PublicKeyMultiple,
4346
+ messages_SignPsbt as SignPsbt,
4347
+ messages_SignedPsbt as SignedPsbt,
4148
4348
  messages_FirmwareErase as FirmwareErase,
4149
4349
  messages_FirmwareRequest as FirmwareRequest,
4150
4350
  messages_FirmwareUpload as FirmwareUpload,
@@ -4540,6 +4740,13 @@ declare namespace messages {
4540
4740
  messages_RipplePayment as RipplePayment,
4541
4741
  messages_RippleSignTx as RippleSignTx,
4542
4742
  messages_RippleSignedTx as RippleSignedTx,
4743
+ messages_ScdoGetAddress as ScdoGetAddress,
4744
+ messages_ScdoAddress as ScdoAddress,
4745
+ messages_ScdoSignTx as ScdoSignTx,
4746
+ messages_ScdoSignedTx as ScdoSignedTx,
4747
+ messages_ScdoTxAck as ScdoTxAck,
4748
+ messages_ScdoSignMessage as ScdoSignMessage,
4749
+ messages_ScdoSignedMessage as ScdoSignedMessage,
4543
4750
  messages_SolanaGetAddress as SolanaGetAddress,
4544
4751
  messages_SolanaAddress as SolanaAddress,
4545
4752
  messages_SolanaSignTx as SolanaSignTx,
@@ -4600,6 +4807,14 @@ declare namespace messages {
4600
4807
  messages_TezosBallotOp as TezosBallotOp,
4601
4808
  messages_TezosSignTx as TezosSignTx,
4602
4809
  messages_TezosSignedTx as TezosSignedTx,
4810
+ messages_TonWalletVersion as TonWalletVersion,
4811
+ messages_TonWorkChain as TonWorkChain,
4812
+ messages_TonGetAddress as TonGetAddress,
4813
+ messages_TonAddress as TonAddress,
4814
+ messages_TonSignMessage as TonSignMessage,
4815
+ messages_TonSignedMessage as TonSignedMessage,
4816
+ messages_TonSignProof as TonSignProof,
4817
+ messages_TonSignedProof as TonSignedProof,
4603
4818
  messages_TronGetAddress as TronGetAddress,
4604
4819
  messages_TronAddress as TronAddress,
4605
4820
  messages_TronTransferContract as TronTransferContract,
@@ -4620,8 +4835,6 @@ declare namespace messages {
4620
4835
  messages_TronMessageSignature as TronMessageSignature,
4621
4836
  messages_facotry as facotry,
4622
4837
  messages_CommandFlags as CommandFlags,
4623
- messages_SignPsbt as SignPsbt,
4624
- messages_SignedPsbt as SignedPsbt,
4625
4838
  messages_MessageType as MessageType,
4626
4839
  messages_MessageKey as MessageKey,
4627
4840
  messages_MessageResponse as MessageResponse,
@@ -4671,4 +4884,4 @@ declare const _default: {
4671
4884
  decodeProtocol: typeof decodeProtocol;
4672
4885
  };
4673
4886
 
4674
- export { AcquireInput, Address, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCertificateType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoGovernanceRegistrationDelegation, CardanoGovernanceRegistrationFormat, CardanoGovernanceRegistrationParametersType, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, MessageKey, MessageResponse, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaSignTx, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
4887
+ export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCertificateType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoGovernanceRegistrationDelegation, CardanoGovernanceRegistrationFormat, CardanoGovernanceRegistrationParametersType, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, MessageKey, MessageResponse, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaSignTx, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignMessage, TonSignProof, TonSignedMessage, TonSignedProof, TonWalletVersion, TonWorkChain, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
package/dist/index.js CHANGED
@@ -796,6 +796,15 @@ exports.TezosBallotType = void 0;
796
796
  TezosBallotType[TezosBallotType["Nay"] = 1] = "Nay";
797
797
  TezosBallotType[TezosBallotType["Pass"] = 2] = "Pass";
798
798
  })(exports.TezosBallotType || (exports.TezosBallotType = {}));
799
+ exports.TonWalletVersion = void 0;
800
+ (function (TonWalletVersion) {
801
+ TonWalletVersion[TonWalletVersion["V4R2"] = 3] = "V4R2";
802
+ })(exports.TonWalletVersion || (exports.TonWalletVersion = {}));
803
+ exports.TonWorkChain = void 0;
804
+ (function (TonWorkChain) {
805
+ TonWorkChain[TonWorkChain["BASECHAIN"] = 0] = "BASECHAIN";
806
+ TonWorkChain[TonWorkChain["MASTERCHAIN"] = 1] = "MASTERCHAIN";
807
+ })(exports.TonWorkChain || (exports.TonWorkChain = {}));
799
808
  exports.TronResourceCode = void 0;
800
809
  (function (TronResourceCode) {
801
810
  TronResourceCode[TronResourceCode["BANDWIDTH"] = 0] = "BANDWIDTH";
@@ -857,6 +866,8 @@ var messages = /*#__PURE__*/Object.freeze({
857
866
  get StellarSignerType () { return exports.StellarSignerType; },
858
867
  get TezosContractType () { return exports.TezosContractType; },
859
868
  get TezosBallotType () { return exports.TezosBallotType; },
869
+ get TonWalletVersion () { return exports.TonWalletVersion; },
870
+ get TonWorkChain () { return exports.TonWorkChain; },
860
871
  get TronResourceCode () { return exports.TronResourceCode; },
861
872
  get CommandFlags () { return exports.CommandFlags; }
862
873
  });
@@ -1,5 +1,48 @@
1
1
  /// <reference types="node" />
2
2
  export type UintType = string | number;
3
+ export type AlephiumGetAddress = {
4
+ address_n: number[];
5
+ show_display?: boolean;
6
+ include_public_key?: boolean;
7
+ };
8
+ export type AlephiumAddress = {
9
+ address: string;
10
+ public_key?: string;
11
+ };
12
+ export type AlephiumSignTx = {
13
+ address_n: number[];
14
+ data_initial_chunk: string;
15
+ data_length?: number;
16
+ };
17
+ export type AlephiumSignedTx = {
18
+ signature: string;
19
+ address: string;
20
+ };
21
+ export type AlephiumTxRequest = {
22
+ data_length?: number;
23
+ public_key?: string;
24
+ signature?: string;
25
+ };
26
+ export type AlephiumTxAck = {
27
+ data_chunk: string;
28
+ };
29
+ export type AlephiumBytecodeRequest = {
30
+ data_length?: number;
31
+ public_key?: string;
32
+ signature?: string;
33
+ };
34
+ export type AlephiumBytecodeAck = {
35
+ bytecode_data: string;
36
+ };
37
+ export type AlephiumSignMessage = {
38
+ address_n: number[];
39
+ message?: string;
40
+ message_type?: string;
41
+ };
42
+ export type AlephiumMessageSignature = {
43
+ signature?: string;
44
+ address?: string;
45
+ };
3
46
  export type AlgorandGetAddress = {
4
47
  address_n: number[];
5
48
  show_display?: boolean;
@@ -431,6 +474,13 @@ export type GetPublicKeyMultiple = {
431
474
  export type PublicKeyMultiple = {
432
475
  xpubs: string[];
433
476
  };
477
+ export type SignPsbt = {
478
+ psbt: string;
479
+ coin_name?: string;
480
+ };
481
+ export type SignedPsbt = {
482
+ psbt: string;
483
+ };
434
484
  export type FirmwareErase = {
435
485
  length?: number;
436
486
  };
@@ -724,6 +774,7 @@ export type CardanoSignMessage = {
724
774
  message: string;
725
775
  derivation_type: CardanoDerivationType;
726
776
  network_id: number;
777
+ address_type?: CardanoAddressType;
727
778
  };
728
779
  export type CardanoMessageSignature = {
729
780
  signature: string;
@@ -2431,6 +2482,40 @@ export type RippleSignedTx = {
2431
2482
  signature: string;
2432
2483
  serialized_tx: string;
2433
2484
  };
2485
+ export type ScdoGetAddress = {
2486
+ address_n: number[];
2487
+ show_display?: boolean;
2488
+ };
2489
+ export type ScdoAddress = {
2490
+ address: string;
2491
+ };
2492
+ export type ScdoSignTx = {
2493
+ address_n: number[];
2494
+ nonce: string;
2495
+ gas_price: string;
2496
+ gas_limit: string;
2497
+ to: string;
2498
+ value: string;
2499
+ timestamp?: string;
2500
+ data_initial_chunk?: string;
2501
+ data_length?: number;
2502
+ tx_type?: number;
2503
+ };
2504
+ export type ScdoSignedTx = {
2505
+ data_length?: number;
2506
+ signature?: string;
2507
+ };
2508
+ export type ScdoTxAck = {
2509
+ data_chunk?: string;
2510
+ };
2511
+ export type ScdoSignMessage = {
2512
+ address_n: number[];
2513
+ message?: string;
2514
+ };
2515
+ export type ScdoSignedMessage = {
2516
+ signature?: string;
2517
+ address?: string;
2518
+ };
2434
2519
  export type SolanaGetAddress = {
2435
2520
  address_n: number[];
2436
2521
  show_display?: boolean;
@@ -2757,6 +2842,66 @@ export type TezosSignedTx = {
2757
2842
  sig_op_contents: string;
2758
2843
  operation_hash: string;
2759
2844
  };
2845
+ export declare enum TonWalletVersion {
2846
+ V4R2 = 3
2847
+ }
2848
+ export declare enum TonWorkChain {
2849
+ BASECHAIN = 0,
2850
+ MASTERCHAIN = 1
2851
+ }
2852
+ export type TonGetAddress = {
2853
+ address_n: number[];
2854
+ show_display?: boolean;
2855
+ wallet_version?: TonWalletVersion;
2856
+ is_bounceable?: boolean;
2857
+ is_testnet_only?: boolean;
2858
+ workchain?: TonWorkChain;
2859
+ wallet_id?: number;
2860
+ };
2861
+ export type TonAddress = {
2862
+ public_key: string;
2863
+ address: string;
2864
+ };
2865
+ export type TonSignMessage = {
2866
+ address_n: number[];
2867
+ destination: string;
2868
+ jetton_master_address?: string;
2869
+ jetton_wallet_address?: string;
2870
+ ton_amount: number;
2871
+ jetton_amount?: number;
2872
+ fwd_fee?: number;
2873
+ comment?: string;
2874
+ is_raw_data?: boolean;
2875
+ mode?: number;
2876
+ seqno: number;
2877
+ expire_at: number;
2878
+ wallet_version?: TonWalletVersion;
2879
+ wallet_id?: number;
2880
+ workchain?: TonWorkChain;
2881
+ is_bounceable?: boolean;
2882
+ is_testnet_only?: boolean;
2883
+ ext_destination: string[];
2884
+ ext_ton_amount: number[];
2885
+ ext_payload: string[];
2886
+ };
2887
+ export type TonSignedMessage = {
2888
+ signature?: string;
2889
+ signning_message?: string;
2890
+ };
2891
+ export type TonSignProof = {
2892
+ address_n: number[];
2893
+ appdomain: string;
2894
+ comment?: string;
2895
+ expire_at: number;
2896
+ wallet_version?: TonWalletVersion;
2897
+ wallet_id?: number;
2898
+ workchain?: TonWorkChain;
2899
+ is_bounceable?: boolean;
2900
+ is_testnet_only?: boolean;
2901
+ };
2902
+ export type TonSignedProof = {
2903
+ signature?: string;
2904
+ };
2760
2905
  export type TronGetAddress = {
2761
2906
  address_n: number[];
2762
2907
  show_display?: boolean;
@@ -2851,14 +2996,17 @@ export declare enum CommandFlags {
2851
2996
  Default = 0,
2852
2997
  Factory_Only = 1
2853
2998
  }
2854
- export type SignPsbt = {
2855
- psbt: string;
2856
- coin_name?: string;
2857
- };
2858
- export type SignedPsbt = {
2859
- psbt: string;
2860
- };
2861
2999
  export type MessageType = {
3000
+ AlephiumGetAddress: AlephiumGetAddress;
3001
+ AlephiumAddress: AlephiumAddress;
3002
+ AlephiumSignTx: AlephiumSignTx;
3003
+ AlephiumSignedTx: AlephiumSignedTx;
3004
+ AlephiumTxRequest: AlephiumTxRequest;
3005
+ AlephiumTxAck: AlephiumTxAck;
3006
+ AlephiumBytecodeRequest: AlephiumBytecodeRequest;
3007
+ AlephiumBytecodeAck: AlephiumBytecodeAck;
3008
+ AlephiumSignMessage: AlephiumSignMessage;
3009
+ AlephiumMessageSignature: AlephiumMessageSignature;
2862
3010
  AlgorandGetAddress: AlgorandGetAddress;
2863
3011
  AlgorandAddress: AlgorandAddress;
2864
3012
  AlgorandSignTx: AlgorandSignTx;
@@ -2922,6 +3070,8 @@ export type MessageType = {
2922
3070
  BIP32Address: BIP32Address;
2923
3071
  GetPublicKeyMultiple: GetPublicKeyMultiple;
2924
3072
  PublicKeyMultiple: PublicKeyMultiple;
3073
+ SignPsbt: SignPsbt;
3074
+ SignedPsbt: SignedPsbt;
2925
3075
  FirmwareErase: FirmwareErase;
2926
3076
  FirmwareRequest: FirmwareRequest;
2927
3077
  FirmwareUpload: FirmwareUpload;
@@ -3276,8 +3426,13 @@ export type MessageType = {
3276
3426
  RipplePayment: RipplePayment;
3277
3427
  RippleSignTx: RippleSignTx;
3278
3428
  RippleSignedTx: RippleSignedTx;
3279
- SignPsbt: SignPsbt;
3280
- SignedPsbt: SignedPsbt;
3429
+ ScdoGetAddress: ScdoGetAddress;
3430
+ ScdoAddress: ScdoAddress;
3431
+ ScdoSignTx: ScdoSignTx;
3432
+ ScdoSignedTx: ScdoSignedTx;
3433
+ ScdoTxAck: ScdoTxAck;
3434
+ ScdoSignMessage: ScdoSignMessage;
3435
+ ScdoSignedMessage: ScdoSignedMessage;
3281
3436
  SolanaGetAddress: SolanaGetAddress;
3282
3437
  SolanaAddress: SolanaAddress;
3283
3438
  SolanaSignTx: SolanaSignTx;
@@ -3333,6 +3488,12 @@ export type MessageType = {
3333
3488
  TezosBallotOp: TezosBallotOp;
3334
3489
  TezosSignTx: TezosSignTx;
3335
3490
  TezosSignedTx: TezosSignedTx;
3491
+ TonGetAddress: TonGetAddress;
3492
+ TonAddress: TonAddress;
3493
+ TonSignMessage: TonSignMessage;
3494
+ TonSignedMessage: TonSignedMessage;
3495
+ TonSignProof: TonSignProof;
3496
+ TonSignedProof: TonSignedProof;
3336
3497
  TronGetAddress: TronGetAddress;
3337
3498
  TronAddress: TronAddress;
3338
3499
  TronTransferContract: TronTransferContract;