@onekeyfe/hd-transport 0.3.40-alpha.0 → 1.0.0-alpha.0
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 +139 -22
- package/dist/index.js +26 -15
- package/dist/types/messages.d.ts +114 -16
- package/dist/types/messages.d.ts.map +1 -1
- package/messages.proto +6599 -0
- package/package.json +2 -2
- package/scripts/protobuf-patches/index.js +4 -0
- package/src/types/messages.ts +133 -18
package/dist/index.d.ts
CHANGED
|
@@ -1551,6 +1551,22 @@ type Initialize = {
|
|
|
1551
1551
|
derive_cardano?: boolean;
|
|
1552
1552
|
};
|
|
1553
1553
|
type GetFeatures = {};
|
|
1554
|
+
type OnekeyGetFeatures = {};
|
|
1555
|
+
declare enum OneKeyDeviceType {
|
|
1556
|
+
CLASSIC = 0,
|
|
1557
|
+
CLASSIC1S = 1,
|
|
1558
|
+
MINI = 2,
|
|
1559
|
+
TOUCH = 3,
|
|
1560
|
+
PRO = 5
|
|
1561
|
+
}
|
|
1562
|
+
declare enum OneKeySeType {
|
|
1563
|
+
THD89 = 0,
|
|
1564
|
+
SE608A = 1
|
|
1565
|
+
}
|
|
1566
|
+
declare enum OneKeySEState {
|
|
1567
|
+
BOOT = 0,
|
|
1568
|
+
APP = 1
|
|
1569
|
+
}
|
|
1554
1570
|
declare enum Enum_Capability {
|
|
1555
1571
|
Capability_Bitcoin = 1,
|
|
1556
1572
|
Capability_Bitcoin_like = 2,
|
|
@@ -1571,17 +1587,6 @@ declare enum Enum_Capability {
|
|
|
1571
1587
|
Capability_PassphraseEntry = 17
|
|
1572
1588
|
}
|
|
1573
1589
|
type Capability = keyof typeof Enum_Capability;
|
|
1574
|
-
declare enum OneKeyDeviceType {
|
|
1575
|
-
CLASSIC = 0,
|
|
1576
|
-
CLASSIC1S = 1,
|
|
1577
|
-
MINI = 2,
|
|
1578
|
-
TOUCH = 3,
|
|
1579
|
-
TOUCH_PRO = 4
|
|
1580
|
-
}
|
|
1581
|
-
declare enum OneKeySeType {
|
|
1582
|
-
THD89 = 0,
|
|
1583
|
-
SE608A = 1
|
|
1584
|
-
}
|
|
1585
1590
|
type Features = {
|
|
1586
1591
|
vendor: string;
|
|
1587
1592
|
major_version: number;
|
|
@@ -1607,7 +1612,6 @@ type Features = {
|
|
|
1607
1612
|
fw_minor: number | null;
|
|
1608
1613
|
fw_patch: number | null;
|
|
1609
1614
|
fw_vendor: string | null;
|
|
1610
|
-
fw_vendor_keys?: string;
|
|
1611
1615
|
unfinished_backup: boolean | null;
|
|
1612
1616
|
no_backup: boolean | null;
|
|
1613
1617
|
recovery_mode: boolean | null;
|
|
@@ -1640,20 +1644,79 @@ type Features = {
|
|
|
1640
1644
|
pre_firmware?: string;
|
|
1641
1645
|
coin_switch?: number;
|
|
1642
1646
|
build_id?: string;
|
|
1643
|
-
|
|
1647
|
+
boardloader_version?: string;
|
|
1648
|
+
busy?: boolean;
|
|
1644
1649
|
onekey_device_type?: string | null;
|
|
1645
1650
|
onekey_se_type?: string | null;
|
|
1646
1651
|
onekey_board_version?: string;
|
|
1647
1652
|
onekey_board_hash?: string;
|
|
1648
1653
|
onekey_boot_version?: string;
|
|
1649
1654
|
onekey_boot_hash?: string;
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1655
|
+
onekey_se01_version?: string;
|
|
1656
|
+
onekey_se01_hash?: string;
|
|
1657
|
+
onekey_se01_build_id?: string;
|
|
1658
|
+
onekey_firmware_version?: string;
|
|
1659
|
+
onekey_firmware_hash?: string;
|
|
1660
|
+
onekey_firmware_build_id?: string;
|
|
1661
|
+
onekey_serial_no?: string;
|
|
1662
|
+
onekey_boot_build_id?: string;
|
|
1663
|
+
onekey_ble_name?: string;
|
|
1664
|
+
onekey_ble_version?: string;
|
|
1665
|
+
onekey_ble_build_id?: string;
|
|
1666
|
+
onekey_ble_hash?: string;
|
|
1667
|
+
onekey_se02_version?: string;
|
|
1668
|
+
onekey_se03_version?: string;
|
|
1669
|
+
onekey_se04_version?: string;
|
|
1670
|
+
onekey_se01_state?: string | null;
|
|
1671
|
+
onekey_se02_state?: string | null;
|
|
1672
|
+
onekey_se03_state?: string | null;
|
|
1673
|
+
onekey_se04_state?: string | null;
|
|
1674
|
+
};
|
|
1675
|
+
type OnekeyFeatures = {
|
|
1676
|
+
onekey_device_type?: OneKeyDeviceType;
|
|
1677
|
+
onekey_board_version?: string;
|
|
1678
|
+
onekey_boot_version?: string;
|
|
1653
1679
|
onekey_firmware_version?: string;
|
|
1680
|
+
onekey_board_hash?: string;
|
|
1681
|
+
onekey_boot_hash?: string;
|
|
1654
1682
|
onekey_firmware_hash?: string;
|
|
1683
|
+
onekey_board_build_id?: string;
|
|
1684
|
+
onekey_boot_build_id?: string;
|
|
1655
1685
|
onekey_firmware_build_id?: string;
|
|
1656
1686
|
onekey_serial_no?: string;
|
|
1687
|
+
onekey_ble_name?: string;
|
|
1688
|
+
onekey_ble_version?: string;
|
|
1689
|
+
onekey_ble_build_id?: string;
|
|
1690
|
+
onekey_ble_hash?: string;
|
|
1691
|
+
onekey_se_type?: OneKeySeType;
|
|
1692
|
+
onekey_se01_state?: OneKeySEState;
|
|
1693
|
+
onekey_se02_state?: OneKeySEState;
|
|
1694
|
+
onekey_se03_state?: OneKeySEState;
|
|
1695
|
+
onekey_se04_state?: OneKeySEState;
|
|
1696
|
+
onekey_se01_version?: string;
|
|
1697
|
+
onekey_se02_version?: string;
|
|
1698
|
+
onekey_se03_version?: string;
|
|
1699
|
+
onekey_se04_version?: string;
|
|
1700
|
+
onekey_se01_hash?: string;
|
|
1701
|
+
onekey_se02_hash?: string;
|
|
1702
|
+
onekey_se03_hash?: string;
|
|
1703
|
+
onekey_se04_hash?: string;
|
|
1704
|
+
onekey_se01_build_id?: string;
|
|
1705
|
+
onekey_se02_build_id?: string;
|
|
1706
|
+
onekey_se03_build_id?: string;
|
|
1707
|
+
onekey_se04_build_id?: string;
|
|
1708
|
+
onekey_se01_boot_version?: string;
|
|
1709
|
+
onekey_se02_boot_version?: string;
|
|
1710
|
+
onekey_se03_boot_version?: string;
|
|
1711
|
+
onekey_se04_boot_version?: string;
|
|
1712
|
+
onekey_se01_boot_hash?: string;
|
|
1713
|
+
onekey_se02_boot_hash?: string;
|
|
1714
|
+
onekey_se03_boot_hash?: string;
|
|
1715
|
+
onekey_se04_boot_hash?: string;
|
|
1716
|
+
onekey_se01_boot_build_id?: string;
|
|
1717
|
+
onekey_se02_boot_build_id?: string;
|
|
1718
|
+
onekey_se03_boot_build_id?: string;
|
|
1719
|
+
onekey_se04_boot_build_id?: string;
|
|
1657
1720
|
};
|
|
1658
1721
|
type LockDevice = {};
|
|
1659
1722
|
type EndSession = {};
|
|
@@ -2285,6 +2348,33 @@ type NEMDecryptMessage = {
|
|
|
2285
2348
|
type NEMDecryptedMessage = {
|
|
2286
2349
|
payload: string;
|
|
2287
2350
|
};
|
|
2351
|
+
type NervosGetAddress = {
|
|
2352
|
+
address_n: number[];
|
|
2353
|
+
network: string;
|
|
2354
|
+
show_display?: boolean;
|
|
2355
|
+
};
|
|
2356
|
+
type NervosAddress = {
|
|
2357
|
+
address: string;
|
|
2358
|
+
};
|
|
2359
|
+
type NervosSignTx = {
|
|
2360
|
+
address_n: number[];
|
|
2361
|
+
data_initial_chunk: string;
|
|
2362
|
+
witness_buffer: string;
|
|
2363
|
+
network: string;
|
|
2364
|
+
data_length?: number;
|
|
2365
|
+
};
|
|
2366
|
+
type NervosSignedTx = {
|
|
2367
|
+
signature: string;
|
|
2368
|
+
address: string;
|
|
2369
|
+
};
|
|
2370
|
+
type NervosTxRequest = {
|
|
2371
|
+
data_length?: number;
|
|
2372
|
+
public_key?: string;
|
|
2373
|
+
signature?: string;
|
|
2374
|
+
};
|
|
2375
|
+
type NervosTxAck = {
|
|
2376
|
+
data_chunk: string;
|
|
2377
|
+
};
|
|
2288
2378
|
type NexaGetAddress = {
|
|
2289
2379
|
address_n: number[];
|
|
2290
2380
|
show_display?: boolean;
|
|
@@ -3054,7 +3144,9 @@ type MessageType = {
|
|
|
3054
3144
|
LnurlAuthResp: LnurlAuthResp;
|
|
3055
3145
|
Initialize: Initialize;
|
|
3056
3146
|
GetFeatures: GetFeatures;
|
|
3147
|
+
OnekeyGetFeatures: OnekeyGetFeatures;
|
|
3057
3148
|
Features: Features;
|
|
3149
|
+
OnekeyFeatures: OnekeyFeatures;
|
|
3058
3150
|
LockDevice: LockDevice;
|
|
3059
3151
|
EndSession: EndSession;
|
|
3060
3152
|
ApplySettings: ApplySettings;
|
|
@@ -3189,6 +3281,12 @@ type MessageType = {
|
|
|
3189
3281
|
NEMSignedTx: NEMSignedTx;
|
|
3190
3282
|
NEMDecryptMessage: NEMDecryptMessage;
|
|
3191
3283
|
NEMDecryptedMessage: NEMDecryptedMessage;
|
|
3284
|
+
NervosGetAddress: NervosGetAddress;
|
|
3285
|
+
NervosAddress: NervosAddress;
|
|
3286
|
+
NervosSignTx: NervosSignTx;
|
|
3287
|
+
NervosSignedTx: NervosSignedTx;
|
|
3288
|
+
NervosTxRequest: NervosTxRequest;
|
|
3289
|
+
NervosTxAck: NervosTxAck;
|
|
3192
3290
|
NexaGetAddress: NexaGetAddress;
|
|
3193
3291
|
NexaAddress: NexaAddress;
|
|
3194
3292
|
NexaSignTx: NexaSignTx;
|
|
@@ -3604,14 +3702,18 @@ declare const messages_Enum_SafetyCheckLevel: typeof Enum_SafetyCheckLevel;
|
|
|
3604
3702
|
type messages_SafetyCheckLevel = SafetyCheckLevel;
|
|
3605
3703
|
type messages_Initialize = Initialize;
|
|
3606
3704
|
type messages_GetFeatures = GetFeatures;
|
|
3607
|
-
type
|
|
3608
|
-
declare const messages_Enum_Capability: typeof Enum_Capability;
|
|
3609
|
-
type messages_Capability = Capability;
|
|
3705
|
+
type messages_OnekeyGetFeatures = OnekeyGetFeatures;
|
|
3610
3706
|
type messages_OneKeyDeviceType = OneKeyDeviceType;
|
|
3611
3707
|
declare const messages_OneKeyDeviceType: typeof OneKeyDeviceType;
|
|
3612
3708
|
type messages_OneKeySeType = OneKeySeType;
|
|
3613
3709
|
declare const messages_OneKeySeType: typeof OneKeySeType;
|
|
3710
|
+
type messages_OneKeySEState = OneKeySEState;
|
|
3711
|
+
declare const messages_OneKeySEState: typeof OneKeySEState;
|
|
3712
|
+
type messages_Enum_Capability = Enum_Capability;
|
|
3713
|
+
declare const messages_Enum_Capability: typeof Enum_Capability;
|
|
3714
|
+
type messages_Capability = Capability;
|
|
3614
3715
|
type messages_Features = Features;
|
|
3716
|
+
type messages_OnekeyFeatures = OnekeyFeatures;
|
|
3615
3717
|
type messages_LockDevice = LockDevice;
|
|
3616
3718
|
type messages_EndSession = EndSession;
|
|
3617
3719
|
type messages_ExportType = ExportType;
|
|
@@ -3769,6 +3871,12 @@ type messages_NEMSignTx = NEMSignTx;
|
|
|
3769
3871
|
type messages_NEMSignedTx = NEMSignedTx;
|
|
3770
3872
|
type messages_NEMDecryptMessage = NEMDecryptMessage;
|
|
3771
3873
|
type messages_NEMDecryptedMessage = NEMDecryptedMessage;
|
|
3874
|
+
type messages_NervosGetAddress = NervosGetAddress;
|
|
3875
|
+
type messages_NervosAddress = NervosAddress;
|
|
3876
|
+
type messages_NervosSignTx = NervosSignTx;
|
|
3877
|
+
type messages_NervosSignedTx = NervosSignedTx;
|
|
3878
|
+
type messages_NervosTxRequest = NervosTxRequest;
|
|
3879
|
+
type messages_NervosTxAck = NervosTxAck;
|
|
3772
3880
|
type messages_NexaGetAddress = NexaGetAddress;
|
|
3773
3881
|
type messages_NexaAddress = NexaAddress;
|
|
3774
3882
|
type messages_NexaSignTx = NexaSignTx;
|
|
@@ -4168,11 +4276,14 @@ declare namespace messages {
|
|
|
4168
4276
|
messages_SafetyCheckLevel as SafetyCheckLevel,
|
|
4169
4277
|
messages_Initialize as Initialize,
|
|
4170
4278
|
messages_GetFeatures as GetFeatures,
|
|
4171
|
-
|
|
4172
|
-
messages_Capability as Capability,
|
|
4279
|
+
messages_OnekeyGetFeatures as OnekeyGetFeatures,
|
|
4173
4280
|
messages_OneKeyDeviceType as OneKeyDeviceType,
|
|
4174
4281
|
messages_OneKeySeType as OneKeySeType,
|
|
4282
|
+
messages_OneKeySEState as OneKeySEState,
|
|
4283
|
+
messages_Enum_Capability as Enum_Capability,
|
|
4284
|
+
messages_Capability as Capability,
|
|
4175
4285
|
messages_Features as Features,
|
|
4286
|
+
messages_OnekeyFeatures as OnekeyFeatures,
|
|
4176
4287
|
messages_LockDevice as LockDevice,
|
|
4177
4288
|
messages_EndSession as EndSession,
|
|
4178
4289
|
messages_ExportType as ExportType,
|
|
@@ -4319,6 +4430,12 @@ declare namespace messages {
|
|
|
4319
4430
|
messages_NEMSignedTx as NEMSignedTx,
|
|
4320
4431
|
messages_NEMDecryptMessage as NEMDecryptMessage,
|
|
4321
4432
|
messages_NEMDecryptedMessage as NEMDecryptedMessage,
|
|
4433
|
+
messages_NervosGetAddress as NervosGetAddress,
|
|
4434
|
+
messages_NervosAddress as NervosAddress,
|
|
4435
|
+
messages_NervosSignTx as NervosSignTx,
|
|
4436
|
+
messages_NervosSignedTx as NervosSignedTx,
|
|
4437
|
+
messages_NervosTxRequest as NervosTxRequest,
|
|
4438
|
+
messages_NervosTxAck as NervosTxAck,
|
|
4322
4439
|
messages_NexaGetAddress as NexaGetAddress,
|
|
4323
4440
|
messages_NexaAddress as NexaAddress,
|
|
4324
4441
|
messages_NexaSignTx as NexaSignTx,
|
|
@@ -4473,4 +4590,4 @@ declare const _default: {
|
|
|
4473
4590
|
decodeProtocol: typeof decodeProtocol;
|
|
4474
4591
|
};
|
|
4475
4592
|
|
|
4476
|
-
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, 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, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySeType, 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, SignTx, SignedIdentity, 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 };
|
|
4593
|
+
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, 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, SignTx, SignedIdentity, 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 };
|
package/dist/index.js
CHANGED
|
@@ -56,7 +56,12 @@ function __rest(s, e) {
|
|
|
56
56
|
t[p[i]] = s[p[i]];
|
|
57
57
|
}
|
|
58
58
|
return t;
|
|
59
|
-
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
62
|
+
var e = new Error(message);
|
|
63
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
64
|
+
};
|
|
60
65
|
|
|
61
66
|
const primitiveTypes = [
|
|
62
67
|
'bool',
|
|
@@ -650,6 +655,24 @@ exports.Enum_SafetyCheckLevel = void 0;
|
|
|
650
655
|
Enum_SafetyCheckLevel[Enum_SafetyCheckLevel["PromptAlways"] = 1] = "PromptAlways";
|
|
651
656
|
Enum_SafetyCheckLevel[Enum_SafetyCheckLevel["PromptTemporarily"] = 2] = "PromptTemporarily";
|
|
652
657
|
})(exports.Enum_SafetyCheckLevel || (exports.Enum_SafetyCheckLevel = {}));
|
|
658
|
+
exports.OneKeyDeviceType = void 0;
|
|
659
|
+
(function (OneKeyDeviceType) {
|
|
660
|
+
OneKeyDeviceType[OneKeyDeviceType["CLASSIC"] = 0] = "CLASSIC";
|
|
661
|
+
OneKeyDeviceType[OneKeyDeviceType["CLASSIC1S"] = 1] = "CLASSIC1S";
|
|
662
|
+
OneKeyDeviceType[OneKeyDeviceType["MINI"] = 2] = "MINI";
|
|
663
|
+
OneKeyDeviceType[OneKeyDeviceType["TOUCH"] = 3] = "TOUCH";
|
|
664
|
+
OneKeyDeviceType[OneKeyDeviceType["PRO"] = 5] = "PRO";
|
|
665
|
+
})(exports.OneKeyDeviceType || (exports.OneKeyDeviceType = {}));
|
|
666
|
+
exports.OneKeySeType = void 0;
|
|
667
|
+
(function (OneKeySeType) {
|
|
668
|
+
OneKeySeType[OneKeySeType["THD89"] = 0] = "THD89";
|
|
669
|
+
OneKeySeType[OneKeySeType["SE608A"] = 1] = "SE608A";
|
|
670
|
+
})(exports.OneKeySeType || (exports.OneKeySeType = {}));
|
|
671
|
+
exports.OneKeySEState = void 0;
|
|
672
|
+
(function (OneKeySEState) {
|
|
673
|
+
OneKeySEState[OneKeySEState["BOOT"] = 0] = "BOOT";
|
|
674
|
+
OneKeySEState[OneKeySEState["APP"] = 1] = "APP";
|
|
675
|
+
})(exports.OneKeySEState || (exports.OneKeySEState = {}));
|
|
653
676
|
exports.Enum_Capability = void 0;
|
|
654
677
|
(function (Enum_Capability) {
|
|
655
678
|
Enum_Capability[Enum_Capability["Capability_Bitcoin"] = 1] = "Capability_Bitcoin";
|
|
@@ -670,19 +693,6 @@ exports.Enum_Capability = void 0;
|
|
|
670
693
|
Enum_Capability[Enum_Capability["Capability_ShamirGroups"] = 16] = "Capability_ShamirGroups";
|
|
671
694
|
Enum_Capability[Enum_Capability["Capability_PassphraseEntry"] = 17] = "Capability_PassphraseEntry";
|
|
672
695
|
})(exports.Enum_Capability || (exports.Enum_Capability = {}));
|
|
673
|
-
exports.OneKeyDeviceType = void 0;
|
|
674
|
-
(function (OneKeyDeviceType) {
|
|
675
|
-
OneKeyDeviceType[OneKeyDeviceType["CLASSIC"] = 0] = "CLASSIC";
|
|
676
|
-
OneKeyDeviceType[OneKeyDeviceType["CLASSIC1S"] = 1] = "CLASSIC1S";
|
|
677
|
-
OneKeyDeviceType[OneKeyDeviceType["MINI"] = 2] = "MINI";
|
|
678
|
-
OneKeyDeviceType[OneKeyDeviceType["TOUCH"] = 3] = "TOUCH";
|
|
679
|
-
OneKeyDeviceType[OneKeyDeviceType["TOUCH_PRO"] = 4] = "TOUCH_PRO";
|
|
680
|
-
})(exports.OneKeyDeviceType || (exports.OneKeyDeviceType = {}));
|
|
681
|
-
exports.OneKeySeType = void 0;
|
|
682
|
-
(function (OneKeySeType) {
|
|
683
|
-
OneKeySeType[OneKeySeType["THD89"] = 0] = "THD89";
|
|
684
|
-
OneKeySeType[OneKeySeType["SE608A"] = 1] = "SE608A";
|
|
685
|
-
})(exports.OneKeySeType || (exports.OneKeySeType = {}));
|
|
686
696
|
exports.ExportType = void 0;
|
|
687
697
|
(function (ExportType) {
|
|
688
698
|
ExportType[ExportType["SeedEncExportType_NO"] = 0] = "SeedEncExportType_NO";
|
|
@@ -815,9 +825,10 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
815
825
|
get EthereumDataType () { return exports.EthereumDataType; },
|
|
816
826
|
get Enum_BackupType () { return exports.Enum_BackupType; },
|
|
817
827
|
get Enum_SafetyCheckLevel () { return exports.Enum_SafetyCheckLevel; },
|
|
818
|
-
get Enum_Capability () { return exports.Enum_Capability; },
|
|
819
828
|
get OneKeyDeviceType () { return exports.OneKeyDeviceType; },
|
|
820
829
|
get OneKeySeType () { return exports.OneKeySeType; },
|
|
830
|
+
get OneKeySEState () { return exports.OneKeySEState; },
|
|
831
|
+
get Enum_Capability () { return exports.Enum_Capability; },
|
|
821
832
|
get ExportType () { return exports.ExportType; },
|
|
822
833
|
get SdProtectOperationType () { return exports.SdProtectOperationType; },
|
|
823
834
|
get RecoveryDeviceType () { return exports.RecoveryDeviceType; },
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1458,6 +1458,22 @@ export type Initialize = {
|
|
|
1458
1458
|
derive_cardano?: boolean;
|
|
1459
1459
|
};
|
|
1460
1460
|
export type GetFeatures = {};
|
|
1461
|
+
export type OnekeyGetFeatures = {};
|
|
1462
|
+
export declare enum OneKeyDeviceType {
|
|
1463
|
+
CLASSIC = 0,
|
|
1464
|
+
CLASSIC1S = 1,
|
|
1465
|
+
MINI = 2,
|
|
1466
|
+
TOUCH = 3,
|
|
1467
|
+
PRO = 5
|
|
1468
|
+
}
|
|
1469
|
+
export declare enum OneKeySeType {
|
|
1470
|
+
THD89 = 0,
|
|
1471
|
+
SE608A = 1
|
|
1472
|
+
}
|
|
1473
|
+
export declare enum OneKeySEState {
|
|
1474
|
+
BOOT = 0,
|
|
1475
|
+
APP = 1
|
|
1476
|
+
}
|
|
1461
1477
|
export declare enum Enum_Capability {
|
|
1462
1478
|
Capability_Bitcoin = 1,
|
|
1463
1479
|
Capability_Bitcoin_like = 2,
|
|
@@ -1478,17 +1494,6 @@ export declare enum Enum_Capability {
|
|
|
1478
1494
|
Capability_PassphraseEntry = 17
|
|
1479
1495
|
}
|
|
1480
1496
|
export type Capability = keyof typeof Enum_Capability;
|
|
1481
|
-
export declare enum OneKeyDeviceType {
|
|
1482
|
-
CLASSIC = 0,
|
|
1483
|
-
CLASSIC1S = 1,
|
|
1484
|
-
MINI = 2,
|
|
1485
|
-
TOUCH = 3,
|
|
1486
|
-
TOUCH_PRO = 4
|
|
1487
|
-
}
|
|
1488
|
-
export declare enum OneKeySeType {
|
|
1489
|
-
THD89 = 0,
|
|
1490
|
-
SE608A = 1
|
|
1491
|
-
}
|
|
1492
1497
|
export type Features = {
|
|
1493
1498
|
vendor: string;
|
|
1494
1499
|
major_version: number;
|
|
@@ -1514,7 +1519,6 @@ export type Features = {
|
|
|
1514
1519
|
fw_minor: number | null;
|
|
1515
1520
|
fw_patch: number | null;
|
|
1516
1521
|
fw_vendor: string | null;
|
|
1517
|
-
fw_vendor_keys?: string;
|
|
1518
1522
|
unfinished_backup: boolean | null;
|
|
1519
1523
|
no_backup: boolean | null;
|
|
1520
1524
|
recovery_mode: boolean | null;
|
|
@@ -1547,20 +1551,79 @@ export type Features = {
|
|
|
1547
1551
|
pre_firmware?: string;
|
|
1548
1552
|
coin_switch?: number;
|
|
1549
1553
|
build_id?: string;
|
|
1550
|
-
|
|
1554
|
+
boardloader_version?: string;
|
|
1555
|
+
busy?: boolean;
|
|
1551
1556
|
onekey_device_type?: string | null;
|
|
1552
1557
|
onekey_se_type?: string | null;
|
|
1553
1558
|
onekey_board_version?: string;
|
|
1554
1559
|
onekey_board_hash?: string;
|
|
1555
1560
|
onekey_boot_version?: string;
|
|
1556
1561
|
onekey_boot_hash?: string;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1562
|
+
onekey_se01_version?: string;
|
|
1563
|
+
onekey_se01_hash?: string;
|
|
1564
|
+
onekey_se01_build_id?: string;
|
|
1565
|
+
onekey_firmware_version?: string;
|
|
1566
|
+
onekey_firmware_hash?: string;
|
|
1567
|
+
onekey_firmware_build_id?: string;
|
|
1568
|
+
onekey_serial_no?: string;
|
|
1569
|
+
onekey_boot_build_id?: string;
|
|
1570
|
+
onekey_ble_name?: string;
|
|
1571
|
+
onekey_ble_version?: string;
|
|
1572
|
+
onekey_ble_build_id?: string;
|
|
1573
|
+
onekey_ble_hash?: string;
|
|
1574
|
+
onekey_se02_version?: string;
|
|
1575
|
+
onekey_se03_version?: string;
|
|
1576
|
+
onekey_se04_version?: string;
|
|
1577
|
+
onekey_se01_state?: string | null;
|
|
1578
|
+
onekey_se02_state?: string | null;
|
|
1579
|
+
onekey_se03_state?: string | null;
|
|
1580
|
+
onekey_se04_state?: string | null;
|
|
1581
|
+
};
|
|
1582
|
+
export type OnekeyFeatures = {
|
|
1583
|
+
onekey_device_type?: OneKeyDeviceType;
|
|
1584
|
+
onekey_board_version?: string;
|
|
1585
|
+
onekey_boot_version?: string;
|
|
1560
1586
|
onekey_firmware_version?: string;
|
|
1587
|
+
onekey_board_hash?: string;
|
|
1588
|
+
onekey_boot_hash?: string;
|
|
1561
1589
|
onekey_firmware_hash?: string;
|
|
1590
|
+
onekey_board_build_id?: string;
|
|
1591
|
+
onekey_boot_build_id?: string;
|
|
1562
1592
|
onekey_firmware_build_id?: string;
|
|
1563
1593
|
onekey_serial_no?: string;
|
|
1594
|
+
onekey_ble_name?: string;
|
|
1595
|
+
onekey_ble_version?: string;
|
|
1596
|
+
onekey_ble_build_id?: string;
|
|
1597
|
+
onekey_ble_hash?: string;
|
|
1598
|
+
onekey_se_type?: OneKeySeType;
|
|
1599
|
+
onekey_se01_state?: OneKeySEState;
|
|
1600
|
+
onekey_se02_state?: OneKeySEState;
|
|
1601
|
+
onekey_se03_state?: OneKeySEState;
|
|
1602
|
+
onekey_se04_state?: OneKeySEState;
|
|
1603
|
+
onekey_se01_version?: string;
|
|
1604
|
+
onekey_se02_version?: string;
|
|
1605
|
+
onekey_se03_version?: string;
|
|
1606
|
+
onekey_se04_version?: string;
|
|
1607
|
+
onekey_se01_hash?: string;
|
|
1608
|
+
onekey_se02_hash?: string;
|
|
1609
|
+
onekey_se03_hash?: string;
|
|
1610
|
+
onekey_se04_hash?: string;
|
|
1611
|
+
onekey_se01_build_id?: string;
|
|
1612
|
+
onekey_se02_build_id?: string;
|
|
1613
|
+
onekey_se03_build_id?: string;
|
|
1614
|
+
onekey_se04_build_id?: string;
|
|
1615
|
+
onekey_se01_boot_version?: string;
|
|
1616
|
+
onekey_se02_boot_version?: string;
|
|
1617
|
+
onekey_se03_boot_version?: string;
|
|
1618
|
+
onekey_se04_boot_version?: string;
|
|
1619
|
+
onekey_se01_boot_hash?: string;
|
|
1620
|
+
onekey_se02_boot_hash?: string;
|
|
1621
|
+
onekey_se03_boot_hash?: string;
|
|
1622
|
+
onekey_se04_boot_hash?: string;
|
|
1623
|
+
onekey_se01_boot_build_id?: string;
|
|
1624
|
+
onekey_se02_boot_build_id?: string;
|
|
1625
|
+
onekey_se03_boot_build_id?: string;
|
|
1626
|
+
onekey_se04_boot_build_id?: string;
|
|
1564
1627
|
};
|
|
1565
1628
|
export type LockDevice = {};
|
|
1566
1629
|
export type EndSession = {};
|
|
@@ -2192,6 +2255,33 @@ export type NEMDecryptMessage = {
|
|
|
2192
2255
|
export type NEMDecryptedMessage = {
|
|
2193
2256
|
payload: string;
|
|
2194
2257
|
};
|
|
2258
|
+
export type NervosGetAddress = {
|
|
2259
|
+
address_n: number[];
|
|
2260
|
+
network: string;
|
|
2261
|
+
show_display?: boolean;
|
|
2262
|
+
};
|
|
2263
|
+
export type NervosAddress = {
|
|
2264
|
+
address: string;
|
|
2265
|
+
};
|
|
2266
|
+
export type NervosSignTx = {
|
|
2267
|
+
address_n: number[];
|
|
2268
|
+
data_initial_chunk: string;
|
|
2269
|
+
witness_buffer: string;
|
|
2270
|
+
network: string;
|
|
2271
|
+
data_length?: number;
|
|
2272
|
+
};
|
|
2273
|
+
export type NervosSignedTx = {
|
|
2274
|
+
signature: string;
|
|
2275
|
+
address: string;
|
|
2276
|
+
};
|
|
2277
|
+
export type NervosTxRequest = {
|
|
2278
|
+
data_length?: number;
|
|
2279
|
+
public_key?: string;
|
|
2280
|
+
signature?: string;
|
|
2281
|
+
};
|
|
2282
|
+
export type NervosTxAck = {
|
|
2283
|
+
data_chunk: string;
|
|
2284
|
+
};
|
|
2195
2285
|
export type NexaGetAddress = {
|
|
2196
2286
|
address_n: number[];
|
|
2197
2287
|
show_display?: boolean;
|
|
@@ -2961,7 +3051,9 @@ export type MessageType = {
|
|
|
2961
3051
|
LnurlAuthResp: LnurlAuthResp;
|
|
2962
3052
|
Initialize: Initialize;
|
|
2963
3053
|
GetFeatures: GetFeatures;
|
|
3054
|
+
OnekeyGetFeatures: OnekeyGetFeatures;
|
|
2964
3055
|
Features: Features;
|
|
3056
|
+
OnekeyFeatures: OnekeyFeatures;
|
|
2965
3057
|
LockDevice: LockDevice;
|
|
2966
3058
|
EndSession: EndSession;
|
|
2967
3059
|
ApplySettings: ApplySettings;
|
|
@@ -3096,6 +3188,12 @@ export type MessageType = {
|
|
|
3096
3188
|
NEMSignedTx: NEMSignedTx;
|
|
3097
3189
|
NEMDecryptMessage: NEMDecryptMessage;
|
|
3098
3190
|
NEMDecryptedMessage: NEMDecryptedMessage;
|
|
3191
|
+
NervosGetAddress: NervosGetAddress;
|
|
3192
|
+
NervosAddress: NervosAddress;
|
|
3193
|
+
NervosSignTx: NervosSignTx;
|
|
3194
|
+
NervosSignedTx: NervosSignedTx;
|
|
3195
|
+
NervosTxRequest: NervosTxRequest;
|
|
3196
|
+
NervosTxAck: NervosTxAck;
|
|
3099
3197
|
NexaGetAddress: NexaGetAddress;
|
|
3100
3198
|
NexaAddress: NexaAddress;
|
|
3101
3199
|
NexaSignTx: NexaSignTx;
|