@onekeyfe/hd-core 0.2.10 → 0.2.12

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 (46) hide show
  1. package/dist/api/cardano/CardanoGetAddress.d.ts +5 -0
  2. package/dist/api/cardano/CardanoGetAddress.d.ts.map +1 -1
  3. package/dist/api/cardano/CardanoGetPublicKey.d.ts +5 -0
  4. package/dist/api/cardano/CardanoGetPublicKey.d.ts.map +1 -1
  5. package/dist/api/cardano/CardanoSignMessage.d.ts +14 -0
  6. package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -0
  7. package/dist/api/cardano/CardanoSignTransaction.d.ts +5 -0
  8. package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -1
  9. package/dist/api/cardano/helper/auxiliaryData.d.ts.map +1 -1
  10. package/dist/api/cardano/helper/cardanoInputs.d.ts.map +1 -1
  11. package/dist/api/cardano/helper/cardanoOutputs.d.ts.map +1 -1
  12. package/dist/api/cardano/helper/certificate.d.ts.map +1 -1
  13. package/dist/api/cardano/helper/witnesses.d.ts.map +1 -1
  14. package/dist/api/device/DeviceUploadResource.d.ts.map +1 -1
  15. package/dist/api/index.d.ts +1 -0
  16. package/dist/api/index.d.ts.map +1 -1
  17. package/dist/index.d.ts +13 -3
  18. package/dist/index.js +242 -268
  19. package/dist/inject.d.ts.map +1 -1
  20. package/dist/types/api/cardano.d.ts.map +1 -1
  21. package/dist/types/api/cardanoSignMessage.d.ts +16 -0
  22. package/dist/types/api/cardanoSignMessage.d.ts.map +1 -0
  23. package/dist/types/api/index.d.ts +2 -0
  24. package/dist/types/api/index.d.ts.map +1 -1
  25. package/dist/utils/index.d.ts +1 -1
  26. package/dist/utils/index.d.ts.map +1 -1
  27. package/dist/utils/patch.d.ts +1 -1
  28. package/dist/utils/patch.d.ts.map +1 -1
  29. package/package.json +4 -4
  30. package/src/api/cardano/CardanoGetAddress.ts +9 -1
  31. package/src/api/cardano/CardanoGetPublicKey.ts +9 -1
  32. package/src/api/cardano/CardanoSignMessage.ts +58 -0
  33. package/src/api/cardano/CardanoSignTransaction.ts +10 -7
  34. package/src/api/cardano/helper/auxiliaryData.ts +4 -0
  35. package/src/api/cardano/helper/cardanoInputs.ts +0 -2
  36. package/src/api/cardano/helper/cardanoOutputs.ts +0 -1
  37. package/src/api/cardano/helper/certificate.ts +0 -2
  38. package/src/api/cardano/helper/witnesses.ts +0 -2
  39. package/src/api/device/DeviceUploadResource.ts +3 -1
  40. package/src/api/index.ts +1 -0
  41. package/src/data/messages/messages.json +281 -368
  42. package/src/inject.ts +2 -0
  43. package/src/types/api/cardano.ts +0 -1
  44. package/src/types/api/cardanoSignMessage.ts +22 -0
  45. package/src/types/api/index.ts +2 -0
  46. package/src/utils/index.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cardano.d.ts","sourceRoot":"","sources":["../../../src/types/api/cardano.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,KAAK,CAAC,kBAAkB,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;C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,CAAC;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACxC,cAAc,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,CAAC,oCAAoC,CAAC;IACjD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,sBAAsB,EAAE,CAAC;IACpC,uBAAuB,CAAC,EAAE,8BAA8B,CAAC;CAC1D"}
@@ -0,0 +1,16 @@
1
+ import type { CardanoMessageSignature } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare type CardanoSignMessageParams = {
4
+ address_n: number[];
5
+ message: string;
6
+ derivation_type: number;
7
+ network_id: number;
8
+ };
9
+ export declare type CardanoSignMessageMethodParams = {
10
+ path: string;
11
+ message: string;
12
+ derivationType: number;
13
+ networkId: number;
14
+ };
15
+ export declare function cardanoSignMessage(connectId: string, deviceId: string, params: CommonParams & CardanoSignMessageMethodParams): Response<CardanoMessageSignature>;
16
+ //# sourceMappingURL=cardanoSignMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cardanoSignMessage.d.ts","sourceRoot":"","sources":["../../../src/types/api/cardanoSignMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,oBAAY,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,8BAA8B,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,8BAA8B,GACpD,QAAQ,CAAC,uBAAuB,CAAC,CAAC"}
@@ -74,6 +74,7 @@ import { suiSignTransaction } from './suiSignTransaction';
74
74
  import { cardanoGetAddress } from './cardanoGetAddress';
75
75
  import { cardanoGetPublicKey } from './cardanoGetPublicKey';
76
76
  import { cardanoSignTransaction } from './cardanoSignTransaction';
77
+ import { cardanoSignMessage } from './cardanoSignMessage';
77
78
  export * from './export';
78
79
  export declare type CoreApi = {
79
80
  init: typeof init;
@@ -158,5 +159,6 @@ export declare type CoreApi = {
158
159
  cardanoGetAddress: typeof cardanoGetAddress;
159
160
  cardanoGetPublicKey: typeof cardanoGetPublicKey;
160
161
  cardanoSignTransaction: typeof cardanoSignTransaction;
162
+ cardanoSignMessage: typeof cardanoSignMessage;
161
163
  };
162
164
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA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2
2
  export * from './versionUtils';
3
3
  export * from './patch';
4
4
  export { getDeviceType, getDeviceTypeByBleName, getDeviceTypeByDeviceId, getDeviceUUID, getDeviceLabel, } from './deviceFeaturesUtils';
5
- export { getHDPath, getScriptType } from '../api/helpers/pathUtils';
5
+ export { getHDPath, getScriptType, getOutputScriptType } from '../api/helpers/pathUtils';
6
6
  export { getLogger, enableLog, LoggerNames, getLog, setLoggerPostMessage } from './logger';
7
7
  export declare const wait: (ms: number) => Promise<unknown>;
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,aAAa,EACb,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE3F,eAAO,MAAM,IAAI,OAAQ,MAAM,qBAG3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,aAAa,EACb,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE3F,eAAO,MAAM,IAAI,OAAQ,MAAM,qBAG3B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { DefaultMessageResponse } from '../device/DeviceCommands';
2
- export declare function patchFeatures(response: DefaultMessageResponse): import("../device/DeviceCommands").TypedResponseMessage<"Address"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessagePayload"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinancePublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceInputOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTransferMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceOrderMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCancelMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodeType"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodePathType"> | import("../device/DeviceCommands").TypedResponseMessage<"MultisigRedeemScriptType"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"GetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"SignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"MessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"VerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestDetailsType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestSerializedType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"TxInputType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputBinType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputType"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevTx"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevMeta"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraData"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"AuthorizeCoinJoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BIP32Address"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"SelfTest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase_ex"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoBlockchainPointerType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScript"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddressParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxInit"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAssetGroup"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoToken"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolOwner"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolRelayParameters"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolMetadataType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCertificate"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWithdrawal"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoCatalystRegistrationParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryData"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxMint"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxItemAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessResponse"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxHostAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxBodyHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxFinished"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInputType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTokenType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAssetGroupType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxOutputType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolOwnerType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolRelayParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCertificateType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWithdrawalType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryDataType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignedTxChunk"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignedTxChunkAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"Success"> | import("../device/DeviceCommands").TypedResponseMessage<"Failure"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseAck"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinPinInputOnDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessageCIP23"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CipherKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"CipheredKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"IdentityType"> | import("../device/DeviceCommands").TypedResponseMessage<"SignIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"SignedIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"GetECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"ECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"Path"> | import("../device/DeviceCommands").TypedResponseMessage<"BatchGetPublickeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EcdsaPublicKeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxHeader"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPermissionLevel"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationWait"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUndelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionRefund"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRamBytes"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionSellRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionVoteProducer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUpdateAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDeleteAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionLinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnlinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionNewAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnknown"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedData"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumFieldType"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumStructMember"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAccessList"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTxEIP1559"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessageEIP712"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedHash"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"Initialize"> | import("../device/DeviceCommands").TypedResponseMessage<"GetFeatures"> | import("../device/DeviceCommands").TypedResponseMessage<"Features"> | import("../device/DeviceCommands").TypedResponseMessage<"LockDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EndSession"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplySettings"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplyFlags"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangePin"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangeWipeCode"> | import("../device/DeviceCommands").TypedResponseMessage<"SdProtect"> | import("../device/DeviceCommands").TypedResponseMessage<"Ping"> | import("../device/DeviceCommands").TypedResponseMessage<"Cancel"> | import("../device/DeviceCommands").TypedResponseMessage<"GetEntropy"> | import("../device/DeviceCommands").TypedResponseMessage<"Entropy"> | import("../device/DeviceCommands").TypedResponseMessage<"WipeDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ResetDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyAck"> | import("../device/DeviceCommands").TypedResponseMessage<"RecoveryDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"WordRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"WordAck"> | import("../device/DeviceCommands").TypedResponseMessage<"SetU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"GetNextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"NextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"DoPreauthorized"> | import("../device/DeviceCommands").TypedResponseMessage<"PreauthorizedRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CancelAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinSeedOperate"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinOutMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceBackToBoot"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinLoadDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfoSettings"> | import("../device/DeviceCommands").TypedResponseMessage<"GetDeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"WriteSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashWrite"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashRead"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashData"> | import("../device/DeviceCommands").TypedResponseMessage<"SESignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SEMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"ZoomRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpdate"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteData"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBootloader"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBoardloader"> | import("../device/DeviceCommands").TypedResponseMessage<"ListResDir"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfoList"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceEraseSector"> | import("../device/DeviceCommands").TypedResponseMessage<"NearGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransactionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaic"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMProvisionNamespace"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicDefinition"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicCreation"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicSupplyChange"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMCosignatoryModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAggregateModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMImportanceTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptedMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RipplePayment"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarTxOpRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPaymentOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreateAccountOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageBuyOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSetOptionsOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarChangeTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAllowTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAccountMergeOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageDataOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarBumpSequenceOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosContractID"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosRevealOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosManagerTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosParametersManager"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosTransactionOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosOriginationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosDelegationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosProposalOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosBallotOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTransferContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTriggerSmartContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"TronMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"facotry">;
2
+ export declare function patchFeatures(response: DefaultMessageResponse): import("../device/DeviceCommands").TypedResponseMessage<"Address"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AlgorandSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessagePayload"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"AptosMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinancePublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceInputOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceTransferMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceOrderMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceCancelMsg"> | import("../device/DeviceCommands").TypedResponseMessage<"BinanceSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodeType"> | import("../device/DeviceCommands").TypedResponseMessage<"HDNodePathType"> | import("../device/DeviceCommands").TypedResponseMessage<"MultisigRedeemScriptType"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"GetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipId"> | import("../device/DeviceCommands").TypedResponseMessage<"SignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"MessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"VerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestDetailsType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequestSerializedType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"TxInputType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputBinType"> | import("../device/DeviceCommands").TypedResponseMessage<"TxOutputType"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevTx"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"PrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevMeta"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevInput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutputWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | import("../device/DeviceCommands").TypedResponseMessage<"TxAckPrevExtraData"> | import("../device/DeviceCommands").TypedResponseMessage<"GetOwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"OwnershipProof"> | import("../device/DeviceCommands").TypedResponseMessage<"AuthorizeCoinJoin"> | import("../device/DeviceCommands").TypedResponseMessage<"BIP32Address"> | import("../device/DeviceCommands").TypedResponseMessage<"GetPublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"PublicKeyMultiple"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"SelfTest"> | import("../device/DeviceCommands").TypedResponseMessage<"FirmwareErase_ex"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoBlockchainPointerType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScript"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoNativeScriptHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddressParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxInit"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxOutput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoAssetGroup"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoToken"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxInlineDatumChunk"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxReferenceScriptChunk"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolOwner"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolRelayParameters"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolMetadataType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoPoolParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCertificate"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWithdrawal"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGovernanceRegistrationDelegation"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoGovernanceRegistrationParametersType"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryData"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxMint"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxCollateralInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxRequiredSigner"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxReferenceInput"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxItemAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxWitnessResponse"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxHostAck"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoTxBodyHash"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignTxFinished"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"CardanoMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"Success"> | import("../device/DeviceCommands").TypedResponseMessage<"Failure"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ButtonAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PinMatrixAck"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"PassphraseAck"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"Deprecated_PassphraseStateAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinPinInputOnDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ConfluxSignMessageCIP23"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CosmosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"CipherKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"CipheredKeyValue"> | import("../device/DeviceCommands").TypedResponseMessage<"IdentityType"> | import("../device/DeviceCommands").TypedResponseMessage<"SignIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"SignedIdentity"> | import("../device/DeviceCommands").TypedResponseMessage<"GetECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"ECDHSessionKey"> | import("../device/DeviceCommands").TypedResponseMessage<"Path"> | import("../device/DeviceCommands").TypedResponseMessage<"BatchGetPublickeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EcdsaPublicKeys"> | import("../device/DeviceCommands").TypedResponseMessage<"EosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxHeader"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"EosPermissionLevel"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorizationWait"> | import("../device/DeviceCommands").TypedResponseMessage<"EosAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUndelegate"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionRefund"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionBuyRamBytes"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionSellRam"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionVoteProducer"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUpdateAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionDeleteAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionLinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnlinkAuth"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionNewAccount"> | import("../device/DeviceCommands").TypedResponseMessage<"EosActionUnknown"> | import("../device/DeviceCommands").TypedResponseMessage<"EosTxActionAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedData"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumFieldType"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumStructMember"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataStructAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataValueAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumAccessList"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTxEIP1559"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTxAck"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignMessageEIP712"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumSignTypedHash"> | import("../device/DeviceCommands").TypedResponseMessage<"EthereumTypedDataSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"Initialize"> | import("../device/DeviceCommands").TypedResponseMessage<"GetFeatures"> | import("../device/DeviceCommands").TypedResponseMessage<"Features"> | import("../device/DeviceCommands").TypedResponseMessage<"LockDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EndSession"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplySettings"> | import("../device/DeviceCommands").TypedResponseMessage<"ApplyFlags"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangePin"> | import("../device/DeviceCommands").TypedResponseMessage<"ChangeWipeCode"> | import("../device/DeviceCommands").TypedResponseMessage<"SdProtect"> | import("../device/DeviceCommands").TypedResponseMessage<"Ping"> | import("../device/DeviceCommands").TypedResponseMessage<"Cancel"> | import("../device/DeviceCommands").TypedResponseMessage<"GetEntropy"> | import("../device/DeviceCommands").TypedResponseMessage<"Entropy"> | import("../device/DeviceCommands").TypedResponseMessage<"WipeDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"ResetDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"EntropyAck"> | import("../device/DeviceCommands").TypedResponseMessage<"RecoveryDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"WordRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"WordAck"> | import("../device/DeviceCommands").TypedResponseMessage<"SetU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"GetNextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"NextU2FCounter"> | import("../device/DeviceCommands").TypedResponseMessage<"DoPreauthorized"> | import("../device/DeviceCommands").TypedResponseMessage<"PreauthorizedRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"CancelAuthorization"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinSeedOperate"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinOutMessageSE"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceBackToBoot"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinRestoreAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinVerifyDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinWhiteListAck"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinLoadDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDevice"> | import("../device/DeviceCommands").TypedResponseMessage<"BixinBackupDeviceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfoSettings"> | import("../device/DeviceCommands").TypedResponseMessage<"GetDeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"WriteSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"ReadSEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SEPublicCert"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashWrite"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashRead"> | import("../device/DeviceCommands").TypedResponseMessage<"SpiFlashData"> | import("../device/DeviceCommands").TypedResponseMessage<"SESignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"SEMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpload"> | import("../device/DeviceCommands").TypedResponseMessage<"ZoomRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceAck"> | import("../device/DeviceCommands").TypedResponseMessage<"ResourceUpdate"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"NFTWriteData"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBootloader"> | import("../device/DeviceCommands").TypedResponseMessage<"RebootToBoardloader"> | import("../device/DeviceCommands").TypedResponseMessage<"ListResDir"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfo"> | import("../device/DeviceCommands").TypedResponseMessage<"FileInfoList"> | import("../device/DeviceCommands").TypedResponseMessage<"DeviceEraseSector"> | import("../device/DeviceCommands").TypedResponseMessage<"NearGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NearSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransactionCommon"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaic"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMProvisionNamespace"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicDefinition"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicCreation"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMMosaicSupplyChange"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMCosignatoryModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMAggregateModification"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMImportanceTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"NEMDecryptedMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"RipplePayment"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"RippleSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SolanaSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"StarcoinVerifyMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAsset"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarTxOpRequest"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPaymentOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreateAccountOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageBuyOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSetOptionsOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarChangeTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAllowTrustOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarAccountMergeOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarManageDataOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarBumpSequenceOp"> | import("../device/DeviceCommands").TypedResponseMessage<"StellarSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"SuiSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosGetPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosPublicKey"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosContractID"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosRevealOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosManagerTransfer"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosParametersManager"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosTransactionOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosOriginationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosDelegationOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosProposalOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosBallotOp"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TezosSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronGetAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronAddress"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTransferContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronTriggerSmartContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronContract"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignedTx"> | import("../device/DeviceCommands").TypedResponseMessage<"TronSignMessage"> | import("../device/DeviceCommands").TypedResponseMessage<"TronMessageSignature"> | import("../device/DeviceCommands").TypedResponseMessage<"facotry">;
3
3
  //# sourceMappingURL=patch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../src/utils/patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,sBAAsB,uo1BAW7D"}
1
+ {"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../src/utils/patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,sBAAsB,mx0BAW7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-core",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "> TODO: description",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -24,8 +24,8 @@
24
24
  "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@onekeyfe/hd-shared": "^0.2.10",
28
- "@onekeyfe/hd-transport": "^0.2.10",
27
+ "@onekeyfe/hd-shared": "^0.2.12",
28
+ "@onekeyfe/hd-transport": "^0.2.12",
29
29
  "axios": "^0.27.2",
30
30
  "bignumber.js": "^9.0.2",
31
31
  "jszip": "^3.10.1",
@@ -42,5 +42,5 @@
42
42
  "@types/semver": "^7.3.9",
43
43
  "ripple-keypairs": "^1.1.4"
44
44
  },
45
- "gitHead": "02e8b4a394794b3e5365b5bd9d29f7b596920fc5"
45
+ "gitHead": "6b465edf51a27147f4598dfa1b92ad8e29531946"
46
46
  }
@@ -44,12 +44,20 @@ export default class CardanoGetAddress extends BaseMethod<CardanoGetAddressParam
44
44
  derivation_type:
45
45
  typeof batch.derivationType !== 'undefined'
46
46
  ? batch.derivationType
47
- : PROTO.CardanoDerivationType.ICARUS_TREZOR,
47
+ : PROTO.CardanoDerivationType.ICARUS,
48
48
  show_display: typeof batch.showOnOneKey === 'boolean' ? !!batch.showOnOneKey : true,
49
49
  };
50
50
  });
51
51
  }
52
52
 
53
+ getVersionRange() {
54
+ return {
55
+ model_mini: {
56
+ min: '2.10.0',
57
+ },
58
+ };
59
+ }
60
+
53
61
  async run() {
54
62
  const responses: CardanoAddress[] = [];
55
63
 
@@ -31,12 +31,20 @@ export default class CardanoGetPublicKey extends BaseMethod<CardanoPublicKeyPara
31
31
  derivation_type:
32
32
  typeof batch.derivationType !== 'undefined'
33
33
  ? batch.derivationType
34
- : PROTO.CardanoDerivationType.ICARUS_TREZOR,
34
+ : PROTO.CardanoDerivationType.ICARUS,
35
35
  show_display: typeof batch.showOnOneKey === 'boolean' ? batch.showOnOneKey : false,
36
36
  };
37
37
  });
38
38
  }
39
39
 
40
+ getVersionRange() {
41
+ return {
42
+ model_mini: {
43
+ min: '2.10.0',
44
+ },
45
+ };
46
+ }
47
+
40
48
  async run() {
41
49
  const responses: CardanoPublicKey[] = [];
42
50
  const cmd = this.device.getCommands();
@@ -0,0 +1,58 @@
1
+ import { BaseMethod } from '../BaseMethod';
2
+ import { PROTO } from '../../constants';
3
+ import { UI_REQUEST } from '../../constants/ui-request';
4
+ import { validateParams } from '../helpers/paramsValidator';
5
+ import { validatePath } from '../helpers/pathUtils';
6
+ import { CardanoSignMessageParams } from '../../types/api/cardanoSignMessage';
7
+
8
+ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessageParams> {
9
+ hasBundle?: boolean;
10
+
11
+ isCheck?: boolean;
12
+
13
+ init() {
14
+ this.checkDeviceId = true;
15
+ this.allowDeviceMode = [...this.allowDeviceMode, UI_REQUEST.INITIALIZE];
16
+
17
+ const { payload } = this;
18
+ validateParams(payload, [
19
+ { name: 'path', type: 'string', required: true },
20
+ { name: 'message', type: 'string', required: true },
21
+ { name: 'derivationType', type: 'number' },
22
+ { name: 'networkId', type: 'number', required: true },
23
+ ]);
24
+
25
+ const addressN = validatePath(payload.path, 3);
26
+
27
+ this.params = {
28
+ address_n: addressN,
29
+ message: payload.message,
30
+ derivation_type:
31
+ typeof payload.derivationType !== 'undefined'
32
+ ? payload.derivationType
33
+ : PROTO.CardanoDerivationType.ICARUS,
34
+ network_id: payload.networkId,
35
+ };
36
+ }
37
+
38
+ getVersionRange() {
39
+ return {
40
+ model_mini: {
41
+ min: '2.10.0',
42
+ },
43
+ // model_touch: {
44
+ // min: '3.5.0',
45
+ // },
46
+ };
47
+ }
48
+
49
+ async run() {
50
+ const res = await this.device.commands.typedCall(
51
+ 'CardanoSignMessage',
52
+ 'CardanoMessageSignature',
53
+ this.params
54
+ );
55
+
56
+ return res.message;
57
+ }
58
+ }
@@ -29,6 +29,14 @@ import type {
29
29
  export default class CardanoSignTransaction extends BaseMethod<any> {
30
30
  hasBundle?: boolean;
31
31
 
32
+ getVersionRange() {
33
+ return {
34
+ model_mini: {
35
+ min: '2.10.0',
36
+ },
37
+ };
38
+ }
39
+
32
40
  init() {
33
41
  this.checkDeviceId = true;
34
42
  this.allowDeviceMode = [...this.allowDeviceMode, UI_REQUEST.INITIALIZE];
@@ -107,7 +115,6 @@ export default class CardanoSignTransaction extends BaseMethod<any> {
107
115
  collateralInputsWithPath = payload.collateralInputs.map(transformCollateralInput);
108
116
  }
109
117
 
110
- // @ts-expect-error
111
118
  let requiredSigners: PROTO.CardanoTxRequiredSigner[] = [];
112
119
  if (payload.requiredSigners) {
113
120
  requiredSigners = payload.requiredSigners.map((requiredSigner: any) => {
@@ -115,7 +122,6 @@ export default class CardanoSignTransaction extends BaseMethod<any> {
115
122
  return {
116
123
  key_path: requiredSigner.keyPath ? validatePath(requiredSigner.keyPath, 3) : undefined,
117
124
  key_hash: requiredSigner.keyHash,
118
- // @ts-expect-error
119
125
  } as PROTO.CardanoTxRequiredSigner;
120
126
  });
121
127
  }
@@ -124,7 +130,6 @@ export default class CardanoSignTransaction extends BaseMethod<any> {
124
130
  ? transformOutput(payload.collateralReturn)
125
131
  : undefined;
126
132
 
127
- // @ts-expect-error
128
133
  let referenceInputs: PROTO.CardanoTxReferenceInput[] = [];
129
134
  if (payload.referenceInputs) {
130
135
  referenceInputs = payload.referenceInputs.map(transformReferenceInput);
@@ -162,7 +167,7 @@ export default class CardanoSignTransaction extends BaseMethod<any> {
162
167
  derivationType:
163
168
  typeof payload.derivationType !== 'undefined'
164
169
  ? payload.derivationType
165
- : PROTO.CardanoDerivationType.ICARUS_TREZOR,
170
+ : PROTO.CardanoDerivationType.ICARUS,
166
171
  includeNetworkId: payload.includeNetworkId,
167
172
  };
168
173
  }
@@ -243,6 +248,7 @@ export default class CardanoSignTransaction extends BaseMethod<any> {
243
248
  type: auxiliaryDataType,
244
249
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
245
250
  auxiliaryDataHash: message.auxiliary_data_hash!,
251
+ // @ts-expect-error
246
252
  catalystSignature: message.catalyst_signature,
247
253
  };
248
254
  }
@@ -265,12 +271,10 @@ export default class CardanoSignTransaction extends BaseMethod<any> {
265
271
  }
266
272
  // collateral inputs
267
273
  for (const { collateralInput } of this.params.collateralInputsWithPath) {
268
- // @ts-expect-error
269
274
  await typedCall('CardanoTxCollateralInput', 'CardanoTxItemAck', collateralInput);
270
275
  }
271
276
  // required signers
272
277
  for (const requiredSigner of this.params.requiredSigners) {
273
- // @ts-expect-error
274
278
  await typedCall('CardanoTxRequiredSigner', 'CardanoTxItemAck', requiredSigner);
275
279
  }
276
280
  // collateral return
@@ -279,7 +283,6 @@ export default class CardanoSignTransaction extends BaseMethod<any> {
279
283
  }
280
284
  // reference inputs
281
285
  for (const referenceInput of this.params.referenceInputs) {
282
- // @ts-expect-error
283
286
  await typedCall('CardanoTxReferenceInput', 'CardanoTxItemAck', referenceInput);
284
287
  }
285
288
  // witnesses
@@ -13,6 +13,7 @@ import { PROTO } from '../../../constants';
13
13
 
14
14
  const transformCatalystRegistrationParameters = (
15
15
  catalystRegistrationParameters: CardanoCatalystRegistrationParameters
16
+ // @ts-expect-error
16
17
  ): PROTO.CardanoCatalystRegistrationParametersType => {
17
18
  validateParams(catalystRegistrationParameters, [
18
19
  { name: 'votingPublicKey', type: 'string', required: true },
@@ -50,6 +51,7 @@ export const transformAuxiliaryData = (
50
51
 
51
52
  return {
52
53
  hash: auxiliaryData.hash,
54
+ // @ts-expect-error
53
55
  catalyst_registration_parameters: catalystRegistrationParameters,
54
56
  };
55
57
  };
@@ -57,6 +59,7 @@ export const transformAuxiliaryData = (
57
59
  export const modifyAuxiliaryDataForBackwardsCompatibility = (
58
60
  auxiliary_data: PROTO.CardanoTxAuxiliaryData
59
61
  ): PROTO.CardanoTxAuxiliaryData => {
62
+ // @ts-expect-error
60
63
  const { catalyst_registration_parameters } = auxiliary_data;
61
64
  if (catalyst_registration_parameters) {
62
65
  catalyst_registration_parameters.reward_address_parameters =
@@ -66,6 +69,7 @@ export const modifyAuxiliaryDataForBackwardsCompatibility = (
66
69
 
67
70
  return {
68
71
  ...auxiliary_data,
72
+ // @ts-expect-error
69
73
  catalyst_registration_parameters,
70
74
  };
71
75
  }
@@ -10,7 +10,6 @@ export type InputWithPath = {
10
10
  };
11
11
 
12
12
  export type CollateralInputWithPath = {
13
- // @ts-expect-error
14
13
  collateralInput: PROTO.CardanoTxCollateralInput;
15
14
  path?: Path;
16
15
  };
@@ -43,7 +42,6 @@ export const transformCollateralInput = (collateralInput: any): CollateralInputW
43
42
  };
44
43
  };
45
44
 
46
- // @ts-expect-error
47
45
  export const transformReferenceInput = (referenceInput: any): PROTO.CardanoTxReferenceInput => {
48
46
  validateParams(referenceInput, [
49
47
  { name: 'prev_hash', type: 'string', required: true },
@@ -27,7 +27,6 @@ export const transformOutput = (output: any): OutputWithData => {
27
27
  output: {
28
28
  amount: output.amount,
29
29
  asset_groups_count: 0,
30
- // @ts-expect-error
31
30
  datum_hash: output.datumHash,
32
31
  format: output.format,
33
32
  inline_datum_size: output.inlineDatum ? hexStringByteLength(output.inlineDatum) : undefined,
@@ -130,7 +130,6 @@ const transformPoolParameters = (
130
130
  validatePoolParameters(poolParameters);
131
131
 
132
132
  return {
133
- // @ts-expect-error
134
133
  poolParameters: {
135
134
  pool_id: poolParameters.poolId,
136
135
  vrf_key_hash: poolParameters.vrfKeyHash,
@@ -188,7 +187,6 @@ export const transformCertificate = (
188
187
  type: certificate.type,
189
188
  path: certificate.path ? validatePath(certificate.path, 5) : undefined,
190
189
  script_hash: certificate.scriptHash,
191
- // @ts-expect-error
192
190
  key_hash: certificate.keyHash,
193
191
  pool: certificate.pool,
194
192
  pool_parameters: poolParameters,
@@ -7,7 +7,6 @@ export const gatherWitnessPaths = (
7
7
  certificatesWithPoolOwnersAndRelays: CertificateWithPoolOwnersAndRelays[],
8
8
  withdrawals: PROTO.CardanoTxWithdrawal[],
9
9
  collateralInputsWithPath: CollateralInputWithPath[],
10
- // @ts-expect-error
11
10
  requiredSigners: PROTO.CardanoTxRequiredSigner[],
12
11
  additionalWitnessRequests: Path[],
13
12
  signingMode: PROTO.CardanoTxSigningMode
@@ -43,7 +42,6 @@ export const gatherWitnessPaths = (
43
42
  }
44
43
 
45
44
  // gather Plutus-related paths
46
- // @ts-expect-error
47
45
  if (signingMode === PROTO.CardanoTxSigningMode.PLUTUS_TRANSACTION) {
48
46
  collateralInputsWithPath.forEach(({ path }) => {
49
47
  if (path) _insert(path);
@@ -32,6 +32,7 @@ export default class DeviceUploadResource extends BaseMethod<ResourceUpload> {
32
32
  { name: 'thumbnailDataHex', type: 'string', required: true },
33
33
  { name: 'resType', type: 'number', required: true },
34
34
  { name: 'nftMetaData', type: 'string' },
35
+ { name: 'file_name_no_ext', type: 'boolean' },
35
36
  ]);
36
37
 
37
38
  const { suffix, dataHex, thumbnailDataHex, resType, nftMetaData } = this
@@ -48,7 +49,8 @@ export default class DeviceUploadResource extends BaseMethod<ResourceUpload> {
48
49
  data_length: this.paramsData.data.byteLength,
49
50
  zoom_data_length: this.paramsData.thumbnailData.byteLength,
50
51
  res_type: resType,
51
- nft_meta_data: nftMetaData,
52
+ nft_metadata: nftMetaData,
53
+ file_name_no_ext: this.payload.file_name_no_ext,
52
54
  };
53
55
  }
54
56
 
package/src/api/index.ts CHANGED
@@ -89,3 +89,4 @@ export { default as suiSignTransaction } from './sui/SuiSignTransaction';
89
89
  export { default as cardanoGetAddress } from './cardano/CardanoGetAddress';
90
90
  export { default as cardanoGetPublicKey } from './cardano/CardanoGetPublicKey';
91
91
  export { default as cardanoSignTransaction } from './cardano/CardanoSignTransaction';
92
+ export { default as cardanoSignMessage } from './cardano/CardanoSignMessage';