@onekeyfe/hd-core 0.0.8 → 0.0.9

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.
Files changed (84) hide show
  1. package/dist/api/BaseMethod.d.ts +2 -0
  2. package/dist/api/BaseMethod.d.ts.map +1 -1
  3. package/dist/api/CipherKeyValue.d.ts +9 -0
  4. package/dist/api/CipherKeyValue.d.ts.map +1 -0
  5. package/dist/api/device/DeviceRebootToBootloader.d.ts +8 -0
  6. package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -1
  7. package/dist/api/evm/EVMSignMessageEIP712.d.ts +5 -0
  8. package/dist/api/evm/EVMSignMessageEIP712.d.ts.map +1 -1
  9. package/dist/api/evm/EVMSignTransaction.d.ts +5 -0
  10. package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -1
  11. package/dist/api/evm/EVMSignTypedData.d.ts +7 -1
  12. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  13. package/dist/api/helpers/hexUtils.d.ts.map +1 -1
  14. package/dist/api/index.d.ts +7 -0
  15. package/dist/api/index.d.ts.map +1 -1
  16. package/dist/api/nem/NEMGetAddress.d.ts +9 -0
  17. package/dist/api/nem/NEMGetAddress.d.ts.map +1 -0
  18. package/dist/api/nem/NEMSignTransaction.d.ts +20 -0
  19. package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -0
  20. package/dist/api/solana/SolGetAddress.d.ts +9 -0
  21. package/dist/api/solana/SolGetAddress.d.ts.map +1 -0
  22. package/dist/api/solana/SolSignTransaction.d.ts +17 -0
  23. package/dist/api/solana/SolSignTransaction.d.ts.map +1 -0
  24. package/dist/api/stellar/StellarGetAddress.d.ts +9 -0
  25. package/dist/api/stellar/StellarGetAddress.d.ts.map +1 -0
  26. package/dist/api/stellar/StellarSignTransaction.d.ts +335 -0
  27. package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -0
  28. package/dist/core/index.d.ts.map +1 -1
  29. package/dist/data/version.d.ts +1 -1
  30. package/dist/data/version.d.ts.map +1 -1
  31. package/dist/index.d.ts +298 -2
  32. package/dist/index.js +720 -19
  33. package/dist/inject.d.ts.map +1 -1
  34. package/dist/types/api/cipherKeyValue.d.ts +19 -0
  35. package/dist/types/api/cipherKeyValue.d.ts.map +1 -0
  36. package/dist/types/api/export.d.ts +7 -0
  37. package/dist/types/api/export.d.ts.map +1 -1
  38. package/dist/types/api/index.d.ts +14 -0
  39. package/dist/types/api/index.d.ts.map +1 -1
  40. package/dist/types/api/nemGetAddress.d.ts +15 -0
  41. package/dist/types/api/nemGetAddress.d.ts.map +1 -0
  42. package/dist/types/api/nemSignTransaction.d.ts +93 -0
  43. package/dist/types/api/nemSignTransaction.d.ts.map +1 -0
  44. package/dist/types/api/solGetAddress.d.ts +14 -0
  45. package/dist/types/api/solGetAddress.d.ts.map +1 -0
  46. package/dist/types/api/solSignTransaction.d.ts +14 -0
  47. package/dist/types/api/solSignTransaction.d.ts.map +1 -0
  48. package/dist/types/api/stellarGetAddress.d.ts +14 -0
  49. package/dist/types/api/stellarGetAddress.d.ts.map +1 -0
  50. package/dist/types/api/stellarSignTransaction.d.ts +130 -0
  51. package/dist/types/api/stellarSignTransaction.d.ts.map +1 -0
  52. package/dist/types/device.d.ts +7 -0
  53. package/dist/types/device.d.ts.map +1 -1
  54. package/dist/utils/deviceFeaturesUtils.d.ts +49 -2
  55. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  56. package/package.json +3 -3
  57. package/src/api/BaseMethod.ts +5 -0
  58. package/src/api/CipherKeyValue.ts +66 -0
  59. package/src/api/device/DeviceRebootToBootloader.ts +11 -0
  60. package/src/api/evm/EVMSignMessageEIP712.ts +8 -0
  61. package/src/api/evm/EVMSignTransaction.ts +15 -0
  62. package/src/api/evm/EVMSignTypedData.ts +55 -15
  63. package/src/api/helpers/hexUtils.ts +0 -1
  64. package/src/api/index.ts +10 -0
  65. package/src/api/nem/NEMGetAddress.ts +61 -0
  66. package/src/api/nem/NEMSignTransaction.ts +246 -0
  67. package/src/api/solana/SolGetAddress.ts +59 -0
  68. package/src/api/solana/SolSignTransaction.ts +69 -0
  69. package/src/api/stellar/StellarGetAddress.ts +59 -0
  70. package/src/api/stellar/StellarSignTransaction.ts +213 -0
  71. package/src/core/index.ts +39 -5
  72. package/src/data/version.ts +1 -1
  73. package/src/inject.ts +15 -0
  74. package/src/types/api/cipherKeyValue.ts +26 -0
  75. package/src/types/api/export.ts +27 -0
  76. package/src/types/api/index.ts +18 -0
  77. package/src/types/api/nemGetAddress.ts +22 -0
  78. package/src/types/api/nemSignTransaction.ts +117 -0
  79. package/src/types/api/solGetAddress.ts +21 -0
  80. package/src/types/api/solSignTransaction.ts +21 -0
  81. package/src/types/api/stellarGetAddress.ts +21 -0
  82. package/src/types/api/stellarSignTransaction.ts +153 -0
  83. package/src/types/device.ts +8 -0
  84. package/src/utils/deviceFeaturesUtils.ts +16 -2
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
2
2
  import { Messages, Transport, OneKeyDeviceInfo } from '@onekeyfe/hd-transport';
3
3
  export { Messages as PROTO } from '@onekeyfe/hd-transport';
4
- import { EthereumPublicKey, EthereumMessageSignature, Success as Success$1, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, PrevInput, TxOutputBinType, TxInput, TxOutputType, TxInputType, RecoveryDeviceType, SafetyCheckLevel, StarcoinAddress as StarcoinAddress$1, StarcoinPublicKey as StarcoinPublicKey$1, StarcoinMessageSignature, StarcoinSignedTx } from '@onekeyfe/hd-transport/src/types/messages';
4
+ import { EthereumPublicKey, EthereumMessageSignature, Success as Success$1, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, PrevInput, TxOutputBinType, TxInput, TxOutputType, TxInputType, RecoveryDeviceType, SafetyCheckLevel, StarcoinAddress as StarcoinAddress$1, StarcoinPublicKey as StarcoinPublicKey$1, StarcoinMessageSignature, StarcoinSignedTx, NEMAddress as NEMAddress$1, NEMSignedTx, SolanaAddress as SolanaAddress$1, SolanaSignedTx as SolanaSignedTx$1, StellarAddress as StellarAddress$1, StellarSignedTx, CipheredKeyValue as CipheredKeyValue$1 } from '@onekeyfe/hd-transport/src/types/messages';
5
5
 
6
6
  interface CommonParams {
7
7
  keepSession?: boolean;
@@ -157,9 +157,16 @@ declare type SearchDevice = {
157
157
  declare type Device$1 = KnownDevice;
158
158
  declare type Features = Messages.Features;
159
159
  declare type IDeviceType = 'classic' | 'mini' | 'touch' | 'pro';
160
+ declare type IDeviceModel = 'model_mini' | 'model_touch';
160
161
  declare type IDeviceFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
161
162
  declare type IDeviceBLEFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
162
163
  declare type ITransportStatus = 'valid' | 'outdated';
164
+ declare type DeviceFirmwareRange = {
165
+ [deviceType in IDeviceType | IDeviceModel]?: {
166
+ min: string;
167
+ max?: string;
168
+ };
169
+ };
163
170
 
164
171
  declare function searchDevices(): Response<SearchDevice[]>;
165
172
 
@@ -545,6 +552,288 @@ declare type StarcoinVerifyMessageParams = {
545
552
  };
546
553
  declare function starcoinVerifyMessage(connectId: string, params: CommonParams & StarcoinVerifyMessageParams): Response<Success$1>;
547
554
 
555
+ declare type NEMAddress = {
556
+ path: string;
557
+ } & NEMAddress$1;
558
+ declare type NEMGetAddressParams = {
559
+ path: string | number[];
560
+ network?: number;
561
+ showOnOneKey?: boolean;
562
+ };
563
+ declare function nemGetAddress(connectId: string, params: CommonParams & NEMGetAddressParams): Response<NEMAddress>;
564
+ declare function nemGetAddress(connectId: string, params: CommonParams & {
565
+ bundle?: NEMGetAddressParams[];
566
+ }): Response<Array<NEMAddress>>;
567
+
568
+ declare type MosaicID = {
569
+ namespaceId: string;
570
+ name: string;
571
+ };
572
+ declare type MosaicDefinition = {
573
+ levy?: {
574
+ type?: number;
575
+ fee?: number;
576
+ recipient?: string;
577
+ mosaicId?: MosaicID;
578
+ };
579
+ id: MosaicID;
580
+ description: string;
581
+ properties?: Array<{
582
+ name: 'divisibility' | 'initialSupply' | 'supplyMutable' | 'transferable';
583
+ value: string;
584
+ }>;
585
+ };
586
+ declare type NEMMosaic = {
587
+ mosaicId: MosaicID;
588
+ quantity: number;
589
+ };
590
+ declare type Modification = {
591
+ modificationType: number;
592
+ cosignatoryAccount: string;
593
+ };
594
+ declare type Message = {
595
+ payload?: string;
596
+ type?: number;
597
+ publicKey?: string;
598
+ };
599
+ declare type TransactionCommon = {
600
+ version: number;
601
+ timeStamp: number;
602
+ fee: number;
603
+ deadline?: number;
604
+ signer?: string;
605
+ };
606
+ declare type NEMTransferTransaction = TransactionCommon & {
607
+ type: 0x0101;
608
+ recipient: string;
609
+ amount: number | string;
610
+ mosaics?: NEMMosaic[];
611
+ message?: Message;
612
+ };
613
+ declare type NEMImportanceTransaction = TransactionCommon & {
614
+ type: 0x0801;
615
+ importanceTransfer: {
616
+ mode: number;
617
+ publicKey: string;
618
+ };
619
+ };
620
+ declare type NEMAggregateModificationTransaction = TransactionCommon & {
621
+ type: 0x1001;
622
+ modifications?: Modification[];
623
+ minCosignatories: {
624
+ relativeChange: number;
625
+ };
626
+ };
627
+ declare type NEMProvisionNamespaceTransaction = TransactionCommon & {
628
+ type: 0x2001;
629
+ newPart?: string;
630
+ parent?: string;
631
+ rentalFeeSink?: string;
632
+ rentalFee?: number;
633
+ };
634
+ declare type NEMMosaicCreationTransaction = TransactionCommon & {
635
+ type: 0x4001;
636
+ mosaicDefinition: MosaicDefinition;
637
+ creationFeeSink?: string;
638
+ creationFee?: number;
639
+ };
640
+ declare type NEMSupplyChangeTransaction = TransactionCommon & {
641
+ type: 0x4002;
642
+ mosaicId: MosaicID;
643
+ supplyType: number;
644
+ delta?: number;
645
+ };
646
+ declare type Transaction = NEMTransferTransaction | NEMImportanceTransaction | NEMAggregateModificationTransaction | NEMProvisionNamespaceTransaction | NEMMosaicCreationTransaction | NEMSupplyChangeTransaction;
647
+ declare type NEMMultisigTransaction = TransactionCommon & {
648
+ type: 0x0102 | 0x1002 | 0x1004;
649
+ otherTrans: Transaction;
650
+ };
651
+ declare type NEMTransaction = Transaction | NEMMultisigTransaction;
652
+ declare type NEMSignTransactionParams = {
653
+ path: string | number[];
654
+ transaction: NEMTransaction;
655
+ };
656
+ declare function nemSignTransaction(connectId: string, params: CommonParams & NEMSignTransactionParams): Response<NEMSignedTx>;
657
+
658
+ declare type SolanaAddress = {
659
+ path: string;
660
+ } & SolanaAddress$1;
661
+ declare type SolanaGetAddressParams = {
662
+ path: string | number[];
663
+ showOnOneKey?: boolean;
664
+ };
665
+ declare function solGetAddress(connectId: string, params: CommonParams & SolanaGetAddressParams): Response<SolanaAddress>;
666
+ declare function solGetAddress(connectId: string, params: CommonParams & {
667
+ bundle?: SolanaGetAddressParams[];
668
+ }): Response<Array<SolanaAddress>>;
669
+
670
+ declare type SolanaSignedTx = {
671
+ path: string;
672
+ } & SolanaSignedTx$1;
673
+ declare type SolanaSignTransactionParams = {
674
+ path: string | number[];
675
+ rawTx?: string;
676
+ };
677
+ declare function solSignTransaction(connectId: string, params: CommonParams & SolanaSignTransactionParams): Response<SolanaSignedTx>;
678
+ declare function solSignTransaction(connectId: string, params: CommonParams & {
679
+ bundle?: SolanaSignTransactionParams[];
680
+ }): Response<Array<SolanaSignedTx>>;
681
+
682
+ declare type StellarAddress = {
683
+ path: string;
684
+ } & StellarAddress$1;
685
+ declare type StellarGetAddressParams = {
686
+ path: string | number[];
687
+ showOnOneKey?: boolean;
688
+ };
689
+ declare function stellarGetAddress(connectId: string, params: CommonParams & StellarGetAddressParams): Response<StellarAddress>;
690
+ declare function stellarGetAddress(connectId: string, params: CommonParams & {
691
+ bundle?: StellarGetAddressParams[];
692
+ }): Response<Array<StellarAddress>>;
693
+
694
+ declare type StellarAsset = {
695
+ type: 0 | 1 | 2;
696
+ code: string;
697
+ issuer?: string;
698
+ };
699
+ declare type StellarCreateAccountOperation = {
700
+ type: 'createAccount';
701
+ source?: string;
702
+ destination: string;
703
+ startingBalance: string;
704
+ };
705
+ declare type StellarPaymentOperation = {
706
+ type: 'payment';
707
+ source?: string;
708
+ destination: string;
709
+ asset?: StellarAsset | typeof undefined;
710
+ amount: string;
711
+ };
712
+ declare type StellarPathPaymentOperation = {
713
+ type: 'pathPayment';
714
+ source?: string;
715
+ sendAsset: StellarAsset;
716
+ sendMax: string;
717
+ destination: string;
718
+ destAsset: StellarAsset;
719
+ destAmount: string;
720
+ path?: StellarAsset[];
721
+ };
722
+ declare type StellarPassiveOfferOperation = {
723
+ type: 'createPassiveOffer';
724
+ source?: string;
725
+ buying: StellarAsset;
726
+ selling: StellarAsset;
727
+ amount: string;
728
+ price: {
729
+ n: number;
730
+ d: number;
731
+ };
732
+ };
733
+ declare type StellarManageOfferOperation = {
734
+ type: 'manageOffer';
735
+ source?: string;
736
+ buying: StellarAsset;
737
+ selling: StellarAsset;
738
+ amount: string;
739
+ offerId?: string;
740
+ price: {
741
+ n: number;
742
+ d: number;
743
+ };
744
+ };
745
+ declare type StellarSetOptionsOperation = {
746
+ type: 'setOptions';
747
+ source?: string;
748
+ signer?: {
749
+ type: 0 | 1 | 2;
750
+ key: string | Buffer;
751
+ weight?: number;
752
+ };
753
+ inflationDest?: string;
754
+ clearFlags?: number;
755
+ setFlags?: number;
756
+ masterWeight?: number | string;
757
+ lowThreshold?: number | string;
758
+ medThreshold?: number | string;
759
+ highThreshold?: number | string;
760
+ homeDomain?: string;
761
+ };
762
+ declare type StellarChangeTrustOperation = {
763
+ type: 'changeTrust';
764
+ source?: string;
765
+ line: StellarAsset;
766
+ limit?: string;
767
+ };
768
+ declare type StellarAllowTrustOperation = {
769
+ type: 'allowTrust';
770
+ source?: string;
771
+ trustor: string;
772
+ assetCode: string;
773
+ assetType: number;
774
+ authorize?: boolean | typeof undefined;
775
+ };
776
+ declare type StellarAccountMergeOperation = {
777
+ type: 'accountMerge';
778
+ source?: string;
779
+ destination: string;
780
+ };
781
+ declare type StellarManageDataOperation = {
782
+ type: 'manageData';
783
+ source?: string;
784
+ name: string;
785
+ value?: Buffer | string;
786
+ };
787
+ declare type StellarBumpSequenceOperation = {
788
+ type: 'bumpSequence';
789
+ source?: string;
790
+ bumpTo: string;
791
+ };
792
+ declare type StellarInflationOperation = {
793
+ type: 'inflation';
794
+ source?: string;
795
+ };
796
+ declare type StellarOperation = StellarCreateAccountOperation | StellarPaymentOperation | StellarPathPaymentOperation | StellarPassiveOfferOperation | StellarManageOfferOperation | StellarSetOptionsOperation | StellarChangeTrustOperation | StellarAllowTrustOperation | StellarAccountMergeOperation | StellarInflationOperation | StellarManageDataOperation | StellarBumpSequenceOperation;
797
+ declare type StellarTransaction = {
798
+ source: string;
799
+ fee: number;
800
+ sequence: string | number;
801
+ timebounds?: {
802
+ minTime: number;
803
+ maxTime: number;
804
+ };
805
+ memo?: {
806
+ type: 0 | 1 | 2 | 3 | 4;
807
+ id?: string;
808
+ text?: string;
809
+ hash?: string | Buffer;
810
+ };
811
+ operations: StellarOperation[];
812
+ };
813
+ declare type StellarSignTransactionParams = {
814
+ path: string | number[];
815
+ networkPassphrase: string;
816
+ transaction: StellarTransaction;
817
+ };
818
+ declare function stellarSignTransaction(connectId: string, params: CommonParams & StellarSignTransactionParams): Response<StellarSignedTx>;
819
+
820
+ declare type CipheredKeyValue = {
821
+ path: string;
822
+ } & CipheredKeyValue$1;
823
+ declare type CipheredKeyValueParams = {
824
+ path: string | number[];
825
+ key: string;
826
+ value: string;
827
+ encrypt?: boolean;
828
+ askOnEncrypt?: boolean;
829
+ askOnDecrypt?: boolean;
830
+ iv?: string;
831
+ };
832
+ declare function cipherKeyValue(connectId: string, params: CommonParams & CipheredKeyValueParams): Response<CipheredKeyValue>;
833
+ declare function cipherKeyValue(connectId: string, params: CommonParams & {
834
+ bundle?: CipheredKeyValueParams[];
835
+ }): Response<Array<CipheredKeyValue>>;
836
+
548
837
  declare type CoreApi = {
549
838
  init: typeof init$1;
550
839
  on: typeof on;
@@ -559,6 +848,7 @@ declare type CoreApi = {
559
848
  checkFirmwareRelease: typeof checkFirmwareRelease;
560
849
  checkBLEFirmwareRelease: typeof checkBLEFirmwareRelease;
561
850
  checkTransportRelease: typeof checkTransportRelease;
851
+ cipherKeyValue: typeof cipherKeyValue;
562
852
  deviceBackup: typeof deviceBackup;
563
853
  deviceChangePin: typeof deviceChangePin;
564
854
  deviceFlags: typeof deviceFlags;
@@ -585,6 +875,12 @@ declare type CoreApi = {
585
875
  starcoinSignMessage: typeof starcoinSignMessage;
586
876
  starcoinSignTransaction: typeof starcoinSignTransaction;
587
877
  starcoinVerifyMessage: typeof starcoinVerifyMessage;
878
+ nemGetAddress: typeof nemGetAddress;
879
+ nemSignTransaction: typeof nemSignTransaction;
880
+ solGetAddress: typeof solGetAddress;
881
+ solSignTransaction: typeof solSignTransaction;
882
+ stellarGetAddress: typeof stellarGetAddress;
883
+ stellarSignTransaction: typeof stellarSignTransaction;
588
884
  };
589
885
 
590
886
  declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
@@ -1001,4 +1297,4 @@ declare class DataManager {
1001
1297
 
1002
1298
  declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, cancel, }: InjectApi) => CoreApi;
1003
1299
 
1004
- export { AccountAddress, AccountAddresses, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CommonParams, ConnectSettings, Core, CoreApi, CoreMessage, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Deferred, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFlagsParams, DeviceMode, DeviceRecoveryParams, DeviceResetParams, DeviceSettingsParams, DeviceStatus, DeviceTypeMap, errors as ERRORS, EVMAccessList, EVMAddress, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, Features, FirmwareRange, FirmwareRelease, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceType, IFRAME, IFirmwareReleaseInfo, IFrameBridge, IFrameCallMessage, IFrameEvent, IFrameEventMessage, IFrameInit, ILocale, ITransportStatus, IVersionArray, KnownDevice, MethodResponseMessage, PostMessageEvent, RESPONSE_EVENT, RefTransaction, ReleaseInfo, RemoteConfigResponse, Response, SearchDevice, SignedTransaction, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, Success, TransactionOptions, TransportReleaseStatus, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePin, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, corsValidator, create, createDeviceMessage, createErrorMessage, createIFrameMessage, createResponseMessage, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceTypeByDeviceId, getDeviceUUID, getEnv, getHDPath, getScriptType, getTimeStamp, httpRequest, init as initCore, initLog, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, versionCompare, versionSplit };
1300
+ export { AccountAddress, AccountAddresses, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CipheredKeyValue, CipheredKeyValueParams, CommonParams, ConnectSettings, Core, CoreApi, CoreMessage, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Deferred, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFirmwareRange, DeviceFlagsParams, DeviceMode, DeviceRecoveryParams, DeviceResetParams, DeviceSettingsParams, DeviceStatus, DeviceTypeMap, errors as ERRORS, EVMAccessList, EVMAddress, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, Features, FirmwareRange, FirmwareRelease, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareReleaseInfo, IFrameBridge, IFrameCallMessage, IFrameEvent, IFrameEventMessage, IFrameInit, ILocale, ITransportStatus, IVersionArray, KnownDevice, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, PostMessageEvent, RESPONSE_EVENT, RefTransaction, ReleaseInfo, RemoteConfigResponse, Response, SearchDevice, SignedTransaction, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, Success, TransactionOptions, TransportReleaseStatus, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePin, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, corsValidator, create, createDeviceMessage, createErrorMessage, createIFrameMessage, createResponseMessage, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceTypeByDeviceId, getDeviceUUID, getEnv, getHDPath, getScriptType, getTimeStamp, httpRequest, init as initCore, initLog, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, versionCompare, versionSplit };