@trezor/connect 9.0.0-beta.5 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +27 -14
  2. package/lib/api/binance/binanceSignTx.d.ts +1 -1
  3. package/lib/api/binanceSignTransaction.d.ts +1 -1
  4. package/lib/api/binanceSignTransaction.js +1 -1
  5. package/lib/api/bitcoin/Fees.js +1 -1
  6. package/lib/api/bitcoin/TransactionComposer.js +1 -1
  7. package/lib/api/bitcoin/enhanceSignTx.d.ts +1 -1
  8. package/lib/api/bitcoin/index.js +9 -9
  9. package/lib/api/bitcoin/refTx.d.ts +3 -3
  10. package/lib/api/bitcoin/signtx.d.ts +1 -1
  11. package/lib/api/bitcoin/signtxLegacy.d.ts +1 -1
  12. package/lib/api/cardano/cardanoAddressParameters.d.ts +1 -1
  13. package/lib/api/cardano/cardanoAuxiliaryData.d.ts +1 -1
  14. package/lib/api/cardano/cardanoCertificate.d.ts +1 -1
  15. package/lib/api/cardano/cardanoTokenBundle.d.ts +1 -1
  16. package/lib/api/cardanoGetAddress.d.ts +1 -1
  17. package/lib/api/cardanoGetNativeScriptHash.d.ts +1 -1
  18. package/lib/api/cardanoGetPublicKey.d.ts +1 -1
  19. package/lib/api/cardanoSignTransaction.d.ts +1 -1
  20. package/lib/api/common/Discovery.js +1 -1
  21. package/lib/api/common/paramsValidator.d.ts +1 -1
  22. package/lib/api/composeTransaction.d.ts +1 -1
  23. package/lib/api/composeTransaction.js +2 -2
  24. package/lib/api/eos/eosSignTx.d.ts +1 -1
  25. package/lib/api/eos/eosSignTx.js +1 -1
  26. package/lib/api/eosGetPublicKey.d.ts +1 -1
  27. package/lib/api/eosSignTransaction.js +1 -1
  28. package/lib/api/ethereum/__fixtures__/ethereumSignTypedData.js +1 -1
  29. package/lib/api/ethereum/ethereumSignTx.d.ts +3 -3
  30. package/lib/api/ethereum/ethereumSignTypedData.d.ts +1 -1
  31. package/lib/api/ethereum/ethereumSignTypedData.js +1 -1
  32. package/lib/api/ethereumSignTransaction.d.ts +1 -1
  33. package/lib/api/ethereumSignTransaction.js +1 -1
  34. package/lib/api/ethereumSignTypedData.d.ts +1 -1
  35. package/lib/api/firmware/calculateFirmwareHash.d.ts +1 -1
  36. package/lib/api/firmwareUpdate.js +1 -1
  37. package/lib/api/index.d.ts +0 -1
  38. package/lib/api/index.js +2 -4
  39. package/lib/api/nem/nemSignTx.d.ts +1 -1
  40. package/lib/api/nemSignTransaction.js +1 -1
  41. package/lib/api/signTransaction.d.ts +2 -2
  42. package/lib/api/signTransaction.js +1 -1
  43. package/lib/api/stellar/stellarSignTx.d.ts +1 -1
  44. package/lib/api/stellarSignTransaction.d.ts +1 -1
  45. package/lib/api/stellarSignTransaction.js +1 -1
  46. package/lib/api/tezos/tezosSignTx.d.ts +1 -1
  47. package/lib/api/tezos/tezosSignTx.js +1 -1
  48. package/lib/api/tezosSignTransaction.js +1 -1
  49. package/lib/backend/BlockchainLink.js +1 -1
  50. package/lib/constants/errors.d.ts +1 -2
  51. package/lib/constants/errors.js +0 -1
  52. package/lib/constants/index.js +5 -5
  53. package/lib/core/AbstractMethod.d.ts +0 -1
  54. package/lib/core/AbstractMethod.js +1 -2
  55. package/lib/core/index.d.ts +1 -1
  56. package/lib/core/index.js +1 -14
  57. package/lib/core/method.d.ts +1 -1
  58. package/lib/core/method.js +1 -1
  59. package/lib/data/DataManager.d.ts +2 -4
  60. package/lib/data/DataManager.js +4 -9
  61. package/lib/data/config.d.ts +1 -7
  62. package/lib/data/config.js +1 -9
  63. package/lib/data/connectSettings.d.ts +1 -1
  64. package/lib/data/version.d.ts +1 -1
  65. package/lib/data/version.js +1 -1
  66. package/lib/device/AbortController.js +1 -1
  67. package/lib/device/DescriptorStream.js +1 -1
  68. package/lib/device/Device.js +1 -1
  69. package/lib/device/DeviceCommands.js +2 -2
  70. package/lib/device/DeviceList.d.ts +1 -5
  71. package/lib/device/DeviceList.js +8 -34
  72. package/lib/events/index.d.ts +0 -2
  73. package/lib/events/index.js +10 -10
  74. package/lib/events/ui-request.d.ts +1 -9
  75. package/lib/events/ui-request.js +0 -1
  76. package/lib/events/ui-response.d.ts +1 -10
  77. package/lib/events/ui-response.js +0 -1
  78. package/lib/exports.js +3 -3
  79. package/lib/factory.d.ts +1 -2
  80. package/lib/factory.js +1 -2
  81. package/lib/index-browser.js +1 -2
  82. package/lib/index.js +2 -35
  83. package/lib/types/api/binance/index.d.ts +29 -0
  84. package/lib/types/api/{customMessage.js → binance/index.js} +1 -1
  85. package/lib/types/api/binanceSignTransaction.d.ts +1 -27
  86. package/lib/types/api/bitcoin/index.d.ts +82 -0
  87. package/lib/types/api/bitcoin/index.js +3 -0
  88. package/lib/types/api/cardano/index.d.ts +193 -0
  89. package/lib/types/api/cardano/index.js +3 -0
  90. package/lib/types/api/cardanoGetAddress.d.ts +1 -31
  91. package/lib/types/api/cardanoGetNativeScriptHash.d.ts +1 -18
  92. package/lib/types/api/cardanoGetPublicKey.d.ts +1 -12
  93. package/lib/types/api/cardanoSignTransaction.d.ts +1 -135
  94. package/lib/types/api/eos/index.d.ts +119 -0
  95. package/lib/types/api/eos/index.js +3 -0
  96. package/lib/types/api/eosGetPublicKey.d.ts +1 -10
  97. package/lib/types/api/eosSignTransaction.d.ts +1 -107
  98. package/lib/types/api/ethereum/index.d.ts +86 -0
  99. package/lib/types/api/ethereum/index.js +3 -0
  100. package/lib/types/api/ethereumSignMessage.d.ts +1 -5
  101. package/lib/types/api/ethereumSignTransaction.d.ts +1 -37
  102. package/lib/types/api/ethereumSignTypedData.d.ts +1 -37
  103. package/lib/types/api/ethereumVerifyMessage.d.ts +1 -6
  104. package/lib/types/api/index.d.ts +0 -2
  105. package/lib/types/api/nem/index.d.ts +90 -0
  106. package/lib/types/api/nem/index.js +3 -0
  107. package/lib/types/api/nemSignTransaction.d.ts +2 -89
  108. package/lib/types/api/ripple/index.d.ts +21 -0
  109. package/lib/types/api/ripple/index.js +3 -0
  110. package/lib/types/api/rippleSignTransaction.d.ts +1 -20
  111. package/lib/types/api/signMessage.d.ts +1 -7
  112. package/lib/types/api/signTransaction.d.ts +1 -67
  113. package/lib/types/api/stellar/index.d.ts +180 -0
  114. package/lib/types/api/stellar/index.js +3 -0
  115. package/lib/types/api/stellarSignTransaction.d.ts +1 -179
  116. package/lib/types/api/tezos/index.d.ts +58 -0
  117. package/lib/types/api/tezos/index.js +3 -0
  118. package/lib/types/api/tezosSignTransaction.d.ts +1 -57
  119. package/lib/types/api/verifyMessage.d.ts +1 -7
  120. package/lib/types/index.d.ts +8 -4
  121. package/lib/types/index.js +15 -7
  122. package/lib/utils/__fixtures__/accountUtils.js +1 -1
  123. package/lib/utils/__fixtures__/ethereumUtils.js +1 -1
  124. package/lib/utils/__fixtures__/formatUtils.js +1 -1
  125. package/lib/utils/accountUtils.d.ts +2 -2
  126. package/lib/utils/assets-browser.js +1 -1
  127. package/lib/utils/assets.js +1 -1
  128. package/lib/utils/browserUtils.js +1 -1
  129. package/lib/utils/debug.d.ts +2 -2
  130. package/lib/utils/deviceFeaturesUtils.d.ts +1 -1
  131. package/lib/utils/deviceFeaturesUtils.js +1 -1
  132. package/lib/utils/ethereumUtils.d.ts +1 -1
  133. package/lib/utils/formatUtils.js +1 -1
  134. package/lib/utils/hdnodeUtils.d.ts +1 -1
  135. package/lib/utils/pathUtils.d.ts +2 -2
  136. package/lib/workers/workers-browser.js +5 -5
  137. package/lib/workers/workers-react-native.js +4 -4
  138. package/lib/workers/workers.js +4 -4
  139. package/package.json +14 -11
  140. package/lib/api/customMessage.d.ts +0 -13
  141. package/lib/api/customMessage.js +0 -56
  142. package/lib/types/api/customMessage.d.ts +0 -12
package/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # @trezor/connect API version 9.0.0-beta.5
1
+ # @trezor/connect
2
+
3
+ API version 9.0.0
2
4
 
3
5
  [![Build Status](https://github.com/trezor/trezor-suite/actions/workflows/connect-test.yml/badge.svg)](https://github.com/trezor/trezor-suite/actions/workflows/connect-test.yml)
4
6
  [![NPM](https://img.shields.io/npm/v/@trezor/connect.svg)](https://www.npmjs.org/package/@trezor/connect)
@@ -6,9 +8,31 @@
6
8
 
7
9
  Trezor Connect is a platform for easy integration of Trezor into 3rd party services, as well as into Trezor Suite. It provides an API with functionality to access public keys, sign transactions and authenticate users.
8
10
 
9
- User interface is presented in a secure popup window served from `connect.trezor.io/<version>/popup.html`. To try it out, use [@trezor/connect-explorer](../connect-explorer) hosted [here](https://trezor.github.io/trezor-suite/connect-explorer).
11
+ This package is intended to be used in node.js environment. If you wan't to build a web application please refer to [@trezor/connect-web package](../connect-web/README.md).
12
+
13
+ ## Installation
14
+
15
+ Install library as npm module:
16
+
17
+ ```javascript
18
+ npm install @trezor/connect
19
+ ```
20
+
21
+ or
22
+
23
+ ```javascript
24
+ yarn add @trezor/connect
25
+ ```
10
26
 
11
- - [Integration](https://github.com/trezor/trezor-suite/blob/develop/docs/packages/connect/index.md)
27
+ ## Initialization
28
+
29
+ ES6
30
+
31
+ ```javascript
32
+ import TrezorConnect from '@trezor/connect';
33
+ ```
34
+
35
+ For more instructions [refer to this document](../../docs/packages/connect/index.md)
12
36
 
13
37
  ## Version 9+ (experimental)
14
38
 
@@ -19,17 +43,6 @@ Since version 9 we are adopting a new versioning strategy. With every release, w
19
43
 
20
44
  Version 9+ will be available as `@trezor/connect` and `@trezor/connect-web` npm packages.
21
45
 
22
- ## Step by step release process
23
-
24
- - Make sure you have released all [npm dependencies](../../releases/npm-packages.md).
25
- - Optional: if unsure run `node ./ci/scripts/check-npm-dependencies.js connect`. Please note that this script will report unreleased dependencies even for changes that do not affect runtime (READMEs etc.)
26
- - bump version in all @trezor/connect\* packages (except plugin packages). `yarn workspace @trezor/connect version:<beta|patch|minor|major>`
27
- - make sure CHANGELOG files have been updated
28
- - merge into develop branch
29
- - from develop branch create a pull requests into branch `release/connect-v9`
30
- - gitlab: click manual release `@trezor/connect-web` and `@trezor/connect` into npm
31
- - gitlab: click manual deploy job to connect.trezor.io/9
32
-
33
46
  ## Version 8 (stable)
34
47
 
35
48
  Currently, we are at version 8, which has an url https://connect.trezor.io/8/trezor-connect.js.
@@ -1,5 +1,5 @@
1
1
  import { PROTO } from '../../constants';
2
- import type { BinanceSDKTransaction, BinancePreparedTransaction } from '../../types/api/binanceSignTransaction';
2
+ import type { BinanceSDKTransaction, BinancePreparedTransaction } from '../../types/api/binance';
3
3
  import type { TypedCall } from '../../device/DeviceCommands';
4
4
  export declare const validate: (tx: BinanceSDKTransaction) => BinancePreparedTransaction;
5
5
  export declare const signTx: (typedCall: TypedCall, address_n: number[], tx: BinancePreparedTransaction) => Promise<PROTO.BinanceSignedTx>;
@@ -1,5 +1,5 @@
1
1
  import { AbstractMethod } from '../core/AbstractMethod';
2
- import type { BinancePreparedTransaction } from '../types/api/binanceSignTransaction';
2
+ import type { BinancePreparedTransaction } from '../types/api/binance';
3
3
  declare type Params = {
4
4
  path: number[];
5
5
  transaction: BinancePreparedTransaction;
@@ -5,7 +5,7 @@ const AbstractMethod_1 = require("../core/AbstractMethod");
5
5
  const paramsValidator_1 = require("./common/paramsValidator");
6
6
  const coinInfo_1 = require("../data/coinInfo");
7
7
  const pathUtils_1 = require("../utils/pathUtils");
8
- const helper = (0, tslib_1.__importStar)(require("./binance/binanceSignTx"));
8
+ const helper = tslib_1.__importStar(require("./binance/binanceSignTx"));
9
9
  class BinanceSignTransaction extends AbstractMethod_1.AbstractMethod {
10
10
  init() {
11
11
  this.requiredPermissions = ['read', 'write'];
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FeeLevels = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const bignumber_js_1 = (0, tslib_1.__importDefault)(require("bignumber.js"));
5
+ const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
6
6
  const BLOCKS = {
7
7
  btc: {
8
8
  high: 1,
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransactionComposer = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const bignumber_js_1 = (0, tslib_1.__importDefault)(require("bignumber.js"));
5
+ const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
6
6
  const utxo_lib_1 = require("@trezor/utxo-lib");
7
7
  const Fees_1 = require("./Fees");
8
8
  const pathUtils_1 = require("../../utils/pathUtils");
@@ -1,4 +1,4 @@
1
1
  import type { BitcoinNetworkInfo } from '../../types';
2
- import type { TransactionOptions } from '../../types/api/signTransaction';
2
+ import type { TransactionOptions } from '../../types/api/bitcoin';
3
3
  export declare const enhanceSignTx: (options: TransactionOptions, coinInfo: BitcoinNetworkInfo) => TransactionOptions;
4
4
  //# sourceMappingURL=enhanceSignTx.d.ts.map
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./enhanceSignTx"), exports);
5
- (0, tslib_1.__exportStar)(require("./Fees"), exports);
6
- (0, tslib_1.__exportStar)(require("./inputs"), exports);
7
- (0, tslib_1.__exportStar)(require("./outputs"), exports);
8
- (0, tslib_1.__exportStar)(require("./refTx"), exports);
9
- (0, tslib_1.__exportStar)(require("./signtx"), exports);
10
- (0, tslib_1.__exportStar)(require("./signtxLegacy"), exports);
11
- (0, tslib_1.__exportStar)(require("./signtxVerify"), exports);
12
- (0, tslib_1.__exportStar)(require("./TransactionComposer"), exports);
4
+ tslib_1.__exportStar(require("./enhanceSignTx"), exports);
5
+ tslib_1.__exportStar(require("./Fees"), exports);
6
+ tslib_1.__exportStar(require("./inputs"), exports);
7
+ tslib_1.__exportStar(require("./outputs"), exports);
8
+ tslib_1.__exportStar(require("./refTx"), exports);
9
+ tslib_1.__exportStar(require("./signtx"), exports);
10
+ tslib_1.__exportStar(require("./signtxLegacy"), exports);
11
+ tslib_1.__exportStar(require("./signtxVerify"), exports);
12
+ tslib_1.__exportStar(require("./TransactionComposer"), exports);
13
13
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
1
  import type { TypedRawTransaction } from '@trezor/blockchain-link';
2
2
  import type { CoinInfo, AccountAddresses } from '../../types';
3
- import type { RefTransaction, TransactionOptions } from '../../types/api/signTransaction';
3
+ import type { RefTransaction, TransactionOptions } from '../../types/api/bitcoin';
4
4
  import type { PROTO } from '../../constants';
5
- export declare const requireReferencedTransactions: (inputs: PROTO.TxInputType[], options?: TransactionOptions, coinInfo?: CoinInfo | undefined) => boolean;
5
+ export declare const requireReferencedTransactions: (inputs: PROTO.TxInputType[], options?: TransactionOptions, coinInfo?: CoinInfo) => boolean;
6
6
  export declare const getReferencedTransactions: (inputs: PROTO.TxInputType[]) => string[];
7
7
  export declare const getOrigTransactions: (inputs: PROTO.TxInputType[], outputs: PROTO.TxOutputType[]) => string[];
8
- export declare const transformOrigTransactions: (txs: TypedRawTransaction[], coinInfo: CoinInfo, addresses?: AccountAddresses | undefined) => RefTransaction[];
8
+ export declare const transformOrigTransactions: (txs: TypedRawTransaction[], coinInfo: CoinInfo, addresses?: AccountAddresses) => RefTransaction[];
9
9
  export declare const transformReferencedTransactions: (txs: TypedRawTransaction[], coinInfo: CoinInfo) => RefTransaction[];
10
10
  export declare const validateReferencedTransactions: (txs: RefTransaction[] | typeof undefined, inputs: PROTO.TxInputType[], outputs: PROTO.TxOutputType[]) => RefTransaction[] | undefined;
11
11
  //# sourceMappingURL=refTx.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { PROTO } from '../../constants';
2
2
  import type { BitcoinNetworkInfo } from '../../types';
3
3
  import type { TypedCall } from '../../device/DeviceCommands';
4
- import type { RefTransaction, TransactionOptions, SignedTransaction } from '../../types/api/signTransaction';
4
+ import type { RefTransaction, TransactionOptions, SignedTransaction } from '../../types/api/bitcoin';
5
5
  export interface SignTxHelperProps {
6
6
  typedCall: TypedCall;
7
7
  txRequest: PROTO.TxRequest;
@@ -1,4 +1,4 @@
1
- import type { SignedTransaction } from '../../types/api/signTransaction';
1
+ import type { SignedTransaction } from '../../types/api/bitcoin';
2
2
  import type { SignTxHelperParams } from './signtx';
3
3
  export declare const signTxLegacy: ({ typedCall, inputs, outputs, refTxs, options, coinInfo, }: SignTxHelperParams) => Promise<SignedTransaction>;
4
4
  //# sourceMappingURL=signtxLegacy.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { PROTO } from '../../constants';
2
2
  import type { Device } from '../../device/Device';
3
- import type { CardanoAddressParameters } from '../../types/api/cardanoGetAddress';
3
+ import type { CardanoAddressParameters } from '../../types/api/cardano';
4
4
  export declare const validateAddressParameters: (addressParameters: CardanoAddressParameters) => void;
5
5
  export declare const modifyAddressParametersForBackwardsCompatibility: (device: Device, address_parameters: PROTO.CardanoAddressParametersType) => PROTO.CardanoAddressParametersType;
6
6
  export declare const addressParametersToProto: (addressParameters: CardanoAddressParameters) => PROTO.CardanoAddressParametersType;
@@ -1,6 +1,6 @@
1
1
  import type { Device } from '../../device/Device';
2
2
  import type { PROTO } from '../../constants';
3
- import type { CardanoAuxiliaryData } from '../../types/api/cardanoSignTransaction';
3
+ import type { CardanoAuxiliaryData } from '../../types/api/cardano';
4
4
  export declare const transformAuxiliaryData: (auxiliaryData: CardanoAuxiliaryData) => PROTO.CardanoTxAuxiliaryData;
5
5
  export declare const modifyAuxiliaryDataForBackwardsCompatibility: (device: Device, auxiliary_data: PROTO.CardanoTxAuxiliaryData) => PROTO.CardanoTxAuxiliaryData;
6
6
  //# sourceMappingURL=cardanoAuxiliaryData.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { PROTO } from '../../constants';
2
- import type { CardanoCertificate } from '../../types/api/cardanoSignTransaction';
2
+ import type { CardanoCertificate } from '../../types/api/cardano';
3
3
  export declare type CertificateWithPoolOwnersAndRelays = {
4
4
  certificate: PROTO.CardanoTxCertificate;
5
5
  poolOwners: PROTO.CardanoPoolOwner[];
@@ -1,5 +1,5 @@
1
1
  import type { PROTO } from '../../constants';
2
- import type { CardanoAssetGroup } from '../../types/api/cardanoSignTransaction';
2
+ import type { CardanoAssetGroup } from '../../types/api/cardano';
3
3
  export declare type AssetGroupWithTokens = {
4
4
  policyId: string;
5
5
  tokens: PROTO.CardanoToken[];
@@ -17,7 +17,7 @@ export default class CardanoGetAddress extends AbstractMethod<'cardanoGetAddress
17
17
  noBackupConfirmation(): Promise<boolean>;
18
18
  _call({ address_parameters, protocol_magic, network_id, derivation_type, show_display, }: Params): Promise<PROTO.CardanoAddress>;
19
19
  _ensureFirmwareSupportsBatch(batch: Params): void;
20
- run(): Promise<import("../types/api/cardanoGetAddress").CardanoAddress | import("../types/api/cardanoGetAddress").CardanoAddress[]>;
20
+ run(): Promise<import("..").CardanoAddress | import("..").CardanoAddress[]>;
21
21
  }
22
22
  export {};
23
23
  //# sourceMappingURL=cardanoGetAddress.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { PROTO } from '../constants';
2
2
  import { AbstractMethod } from '../core/AbstractMethod';
3
- import type { CardanoNativeScript } from '../types/api/cardanoGetNativeScriptHash';
3
+ import type { CardanoNativeScript } from '../types/api/cardano';
4
4
  export default class CardanoGetNativeScriptHash extends AbstractMethod<'cardanoGetNativeScriptHash', PROTO.CardanoGetNativeScriptHash> {
5
5
  init(): void;
6
6
  validateScript(script: CardanoNativeScript): void;
@@ -5,6 +5,6 @@ export default class CardanoGetPublicKey extends AbstractMethod<'cardanoGetPubli
5
5
  confirmed?: boolean;
6
6
  init(): void;
7
7
  confirmation(): Promise<boolean>;
8
- run(): Promise<import("../types/api/cardanoGetPublicKey").CardanoPublicKey | import("../types/api/cardanoGetPublicKey").CardanoPublicKey[]>;
8
+ run(): Promise<import("..").CardanoPublicKey | import("..").CardanoPublicKey[]>;
9
9
  }
10
10
  //# sourceMappingURL=cardanoGetPublicKey.d.ts.map
@@ -3,7 +3,7 @@ import type { CertificateWithPoolOwnersAndRelays } from './cardano/cardanoCertif
3
3
  import { Path, InputWithPath, CollateralInputWithPath } from './cardano/cardanoInputs';
4
4
  import type { OutputWithData } from './cardano/cardanoOutputs';
5
5
  import { PROTO } from '../constants';
6
- import type { CardanoSignedTxData } from '../types/api/cardanoSignTransaction';
6
+ import type { CardanoSignedTxData } from '../types/api/cardano';
7
7
  import type { AssetGroupWithTokens } from './cardano/cardanoTokenBundle';
8
8
  declare const CardanoSignTransactionFeatures: Readonly<{
9
9
  TransactionStreaming: string[];
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Discovery = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const events_1 = (0, tslib_1.__importDefault)(require("events"));
5
+ const events_1 = tslib_1.__importDefault(require("events"));
6
6
  const constants_1 = require("../../constants");
7
7
  const accountUtils_1 = require("../../utils/accountUtils");
8
8
  const formatUtils_1 = require("../../utils/formatUtils");
@@ -8,7 +8,7 @@ declare type Param = {
8
8
  allowNegative?: boolean;
9
9
  };
10
10
  export declare function validateParams<P extends Record<string, any>>(params: P, schema: Param[]): P;
11
- export declare const validateCoinPath: (path: number[], coinInfo?: CoinInfo | undefined) => void;
11
+ export declare const validateCoinPath: (path: number[], coinInfo?: CoinInfo) => void;
12
12
  export declare const getFirmwareRange: (method: string, coinInfo: CoinInfo | null | undefined, currentRange: FirmwareRange) => FirmwareRange;
13
13
  export {};
14
14
  //# sourceMappingURL=paramsValidator.d.ts.map
@@ -26,7 +26,7 @@ export default class ComposeTransaction extends AbstractMethod<'composeTransacti
26
26
  }>;
27
27
  selectFee(account: DiscoveryAccount, utxo: AccountUtxo[]): Promise<SignedTransaction | "change-account">;
28
28
  _selectFeeUiResponse(composer: TransactionComposer): Promise<SignedTransaction | 'change-account'>;
29
- _sign(tx: ComposeResult): Promise<import("../types/api/signTransaction").SignedTransaction>;
29
+ _sign(tx: ComposeResult): Promise<import("../types").SignedTransaction>;
30
30
  dispose(): void;
31
31
  }
32
32
  export {};
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const bignumber_js_1 = (0, tslib_1.__importDefault)(require("bignumber.js"));
4
+ const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
5
5
  const AbstractMethod_1 = require("../core/AbstractMethod");
6
6
  const constants_1 = require("../constants");
7
7
  const events_1 = require("../events");
8
8
  const Discovery_1 = require("./common/Discovery");
9
9
  const paramsValidator_1 = require("./common/paramsValidator");
10
- const pathUtils = (0, tslib_1.__importStar)(require("../utils/pathUtils"));
10
+ const pathUtils = tslib_1.__importStar(require("../utils/pathUtils"));
11
11
  const promiseUtils_1 = require("../utils/promiseUtils");
12
12
  const formatUtils_1 = require("../utils/formatUtils");
13
13
  const coinInfo_1 = require("../data/coinInfo");
@@ -1,5 +1,5 @@
1
1
  import { PROTO } from '../../constants';
2
- import type { EosSDKTransaction } from '../../types/api/eosSignTransaction';
2
+ import type { EosSDKTransaction } from '../../types/api/eos';
3
3
  import type { TypedCall } from '../../device/DeviceCommands';
4
4
  export declare const validate: (tx: EosSDKTransaction) => {
5
5
  chain_id: string;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.signTx = exports.validate = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const bs58 = (0, tslib_1.__importStar)(require("bs58"));
5
+ const bs58 = tslib_1.__importStar(require("bs58"));
6
6
  const constants_1 = require("../../constants");
7
7
  const binaryToDecimal = (bignum, minDigits = 1) => {
8
8
  const result = Array(minDigits).fill('0'.charCodeAt(0));
@@ -5,6 +5,6 @@ export default class EosGetPublicKey extends AbstractMethod<'eosGetPublicKey', P
5
5
  confirmed?: boolean;
6
6
  init(): void;
7
7
  confirmation(): Promise<boolean>;
8
- run(): Promise<import("../types/api/eosGetPublicKey").EosPublicKey | import("../types/api/eosGetPublicKey").EosPublicKey[]>;
8
+ run(): Promise<import("..").EosPublicKey | import("..").EosPublicKey[]>;
9
9
  }
10
10
  //# sourceMappingURL=eosGetPublicKey.d.ts.map
@@ -5,7 +5,7 @@ const AbstractMethod_1 = require("../core/AbstractMethod");
5
5
  const paramsValidator_1 = require("./common/paramsValidator");
6
6
  const coinInfo_1 = require("../data/coinInfo");
7
7
  const pathUtils_1 = require("../utils/pathUtils");
8
- const helper = (0, tslib_1.__importStar)(require("./eos/eosSignTx"));
8
+ const helper = tslib_1.__importStar(require("./eos/eosSignTx"));
9
9
  class EosSignTransaction extends AbstractMethod_1.AbstractMethod {
10
10
  init() {
11
11
  this.requiredPermissions = ['read', 'write'];
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.encodeData = exports.getFieldType = exports.parseArrayType = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const bignumber_js_1 = (0, tslib_1.__importDefault)(require("bignumber.js"));
5
+ const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
6
6
  const errors_1 = require("../../../constants/errors");
7
7
  const constants_1 = require("../../../constants");
8
8
  exports.parseArrayType = [
@@ -1,11 +1,11 @@
1
1
  import type { TypedCall } from '../../device/DeviceCommands';
2
- import type { EthereumAccessList } from '../../types/api/ethereumSignTransaction';
3
- export declare const ethereumSignTx: (typedCall: TypedCall, address_n: number[], to: string, value: string, gas_limit: string, gas_price: string, nonce: string, chain_id: number, data?: string | undefined, tx_type?: number | undefined) => Promise<{
2
+ import type { EthereumAccessList } from '../../types/api/ethereum';
3
+ export declare const ethereumSignTx: (typedCall: TypedCall, address_n: number[], to: string, value: string, gas_limit: string, gas_price: string, nonce: string, chain_id: number, data?: string, tx_type?: number) => Promise<{
4
4
  v: string;
5
5
  r: string;
6
6
  s: string;
7
7
  }>;
8
- export declare const ethereumSignTxEIP1559: (typedCall: TypedCall, address_n: number[], to: string, value: string, gas_limit: string, max_gas_fee: string, max_priority_fee: string, nonce: string, chain_id: number, data?: string | undefined, access_list?: EthereumAccessList[] | undefined) => Promise<{
8
+ export declare const ethereumSignTxEIP1559: (typedCall: TypedCall, address_n: number[], to: string, value: string, gas_limit: string, max_gas_fee: string, max_priority_fee: string, nonce: string, chain_id: number, data?: string, access_list?: EthereumAccessList[]) => Promise<{
9
9
  v: string;
10
10
  r: string;
11
11
  s: string;
@@ -1,5 +1,5 @@
1
1
  import { PROTO } from '../../constants';
2
- import type { EthereumSignTypedDataTypes } from '../../types/api/ethereumSignTypedData';
2
+ import type { EthereumSignTypedDataTypes } from '../../types/api/ethereum';
3
3
  export declare function parseArrayType(arrayTypeName: string): {
4
4
  entryTypeName: string;
5
5
  arraySize: number | null;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFieldType = exports.encodeData = exports.parseArrayType = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const bignumber_js_1 = (0, tslib_1.__importDefault)(require("bignumber.js"));
5
+ const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
6
6
  const constants_1 = require("../../constants");
7
7
  const formatUtils_1 = require("../../utils/formatUtils");
8
8
  const paramTypeArray = new RegExp(/^(.*)\[([0-9]*)\]$/);
@@ -1,5 +1,5 @@
1
1
  import { AbstractMethod } from '../core/AbstractMethod';
2
- import type { EthereumTransaction, EthereumTransactionEIP1559 } from '../types/api/ethereumSignTransaction';
2
+ import type { EthereumTransaction, EthereumTransactionEIP1559 } from '../types/api/ethereum';
3
3
  declare type Params = {
4
4
  path: number[];
5
5
  tx: ({
@@ -7,7 +7,7 @@ const pathUtils_1 = require("../utils/pathUtils");
7
7
  const coinInfo_1 = require("../data/coinInfo");
8
8
  const ethereumUtils_1 = require("../utils/ethereumUtils");
9
9
  const formatUtils_1 = require("../utils/formatUtils");
10
- const helper = (0, tslib_1.__importStar)(require("./ethereum/ethereumSignTx"));
10
+ const helper = tslib_1.__importStar(require("./ethereum/ethereumSignTx"));
11
11
  const strip = value => {
12
12
  if (typeof value === 'string') {
13
13
  let stripped = (0, formatUtils_1.stripHexPrefix)(value);
@@ -1,5 +1,5 @@
1
1
  import { AbstractMethod } from '../core/AbstractMethod';
2
- import type { EthereumSignTypedDataTypes, EthereumSignTypedData as EthereumSignTypedDataParams, EthereumSignTypedHash as EthereumSignTypedHashParams } from '../types/api/ethereumSignTypedData';
2
+ import type { EthereumSignTypedDataTypes, EthereumSignTypedData as EthereumSignTypedDataParams, EthereumSignTypedHash as EthereumSignTypedHashParams } from '../types/api/ethereum';
3
3
  declare type Params = (Omit<EthereumSignTypedDataParams<EthereumSignTypedDataTypes>, 'path'> | Omit<EthereumSignTypedHashParams<EthereumSignTypedDataTypes>, 'path'>) & {
4
4
  address_n: number[];
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- export declare const calculateFirmwareHash: (major_version: number, fw: ArrayBuffer, key?: Buffer | undefined) => {
2
+ export declare const calculateFirmwareHash: (major_version: number, fw: ArrayBuffer, key?: Buffer) => {
3
3
  hash: string;
4
4
  challenge: string;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const randombytes_1 = (0, tslib_1.__importDefault)(require("randombytes"));
4
+ const randombytes_1 = tslib_1.__importDefault(require("randombytes"));
5
5
  const AbstractMethod_1 = require("../core/AbstractMethod");
6
6
  const constants_1 = require("../constants");
7
7
  const events_1 = require("../events");
@@ -23,7 +23,6 @@ export { default as cardanoSignTransaction } from './cardanoSignTransaction';
23
23
  export { default as changePin } from './changePin';
24
24
  export { default as cipherKeyValue } from './cipherKeyValue';
25
25
  export { default as composeTransaction } from './composeTransaction';
26
- export { default as customMessage } from './customMessage';
27
26
  export { default as eosGetPublicKey } from './eosGetPublicKey';
28
27
  export { default as eosSignTransaction } from './eosSignTransaction';
29
28
  export { default as ethereumGetAddress } from './ethereumGetAddress';
package/lib/api/index.js CHANGED
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.recoveryDevice = exports.rebootToBootloader = exports.pushTransaction = exports.nemSignTransaction = exports.nemGetAddress = exports.getSettings = exports.getPublicKey = exports.getOwnershipProof = exports.getOwnershipId = exports.getFirmwareHash = exports.getFeatures = exports.getDeviceState = exports.getCoinInfo = exports.getAddress = exports.getAccountInfo = exports.firmwareUpdate = exports.ethereumVerifyMessage = exports.ethereumSignTypedData = exports.ethereumSignTransaction = exports.ethereumSignMessage = exports.ethereumGetPublicKey = exports.ethereumGetAddress = exports.eosSignTransaction = exports.eosGetPublicKey = exports.customMessage = exports.composeTransaction = exports.cipherKeyValue = exports.changePin = exports.cardanoSignTransaction = exports.cardanoGetPublicKey = exports.cardanoGetNativeScriptHash = exports.cardanoGetAddress = exports.blockchainUnsubscribeFiatRates = exports.blockchainUnsubscribe = exports.blockchainSubscribeFiatRates = exports.blockchainSubscribe = exports.blockchainSetCustomBackend = exports.blockchainGetTransactions = exports.blockchainGetFiatRatesForTimestamps = exports.blockchainGetCurrentFiatRates = exports.blockchainGetAccountBalanceHistory = exports.blockchainEstimateFee = exports.blockchainDisconnect = exports.binanceSignTransaction = exports.binanceGetPublicKey = exports.binanceGetAddress = exports.backupDevice = exports.authorizeCoinJoin = exports.applySettings = exports.applyFlags = void 0;
7
- exports.wipeDevice = exports.verifyMessage = exports.tezosSignTransaction = exports.tezosGetPublicKey = exports.tezosGetAddress = exports.stellarSignTransaction = exports.stellarGetAddress = exports.signTransaction = exports.signMessage = exports.setProxy = exports.rippleSignTransaction = exports.rippleGetAddress = exports.resetDevice = exports.requestLogin = void 0;
6
+ exports.requestLogin = exports.recoveryDevice = exports.rebootToBootloader = exports.pushTransaction = exports.nemSignTransaction = exports.nemGetAddress = exports.getSettings = exports.getPublicKey = exports.getOwnershipProof = exports.getOwnershipId = exports.getFirmwareHash = exports.getFeatures = exports.getDeviceState = exports.getCoinInfo = exports.getAddress = exports.getAccountInfo = exports.firmwareUpdate = exports.ethereumVerifyMessage = exports.ethereumSignTypedData = exports.ethereumSignTransaction = exports.ethereumSignMessage = exports.ethereumGetPublicKey = exports.ethereumGetAddress = exports.eosSignTransaction = exports.eosGetPublicKey = exports.composeTransaction = exports.cipherKeyValue = exports.changePin = exports.cardanoSignTransaction = exports.cardanoGetPublicKey = exports.cardanoGetNativeScriptHash = exports.cardanoGetAddress = exports.blockchainUnsubscribeFiatRates = exports.blockchainUnsubscribe = exports.blockchainSubscribeFiatRates = exports.blockchainSubscribe = exports.blockchainSetCustomBackend = exports.blockchainGetTransactions = exports.blockchainGetFiatRatesForTimestamps = exports.blockchainGetCurrentFiatRates = exports.blockchainGetAccountBalanceHistory = exports.blockchainEstimateFee = exports.blockchainDisconnect = exports.binanceSignTransaction = exports.binanceGetPublicKey = exports.binanceGetAddress = exports.backupDevice = exports.authorizeCoinJoin = exports.applySettings = exports.applyFlags = void 0;
7
+ exports.wipeDevice = exports.verifyMessage = exports.tezosSignTransaction = exports.tezosGetPublicKey = exports.tezosGetAddress = exports.stellarSignTransaction = exports.stellarGetAddress = exports.signTransaction = exports.signMessage = exports.setProxy = exports.rippleSignTransaction = exports.rippleGetAddress = exports.resetDevice = void 0;
8
8
  var applyFlags_1 = require("./applyFlags");
9
9
  Object.defineProperty(exports, "applyFlags", { enumerable: true, get: function () { return __importDefault(applyFlags_1).default; } });
10
10
  var applySettings_1 = require("./applySettings");
@@ -55,8 +55,6 @@ var cipherKeyValue_1 = require("./cipherKeyValue");
55
55
  Object.defineProperty(exports, "cipherKeyValue", { enumerable: true, get: function () { return __importDefault(cipherKeyValue_1).default; } });
56
56
  var composeTransaction_1 = require("./composeTransaction");
57
57
  Object.defineProperty(exports, "composeTransaction", { enumerable: true, get: function () { return __importDefault(composeTransaction_1).default; } });
58
- var customMessage_1 = require("./customMessage");
59
- Object.defineProperty(exports, "customMessage", { enumerable: true, get: function () { return __importDefault(customMessage_1).default; } });
60
58
  var eosGetPublicKey_1 = require("./eosGetPublicKey");
61
59
  Object.defineProperty(exports, "eosGetPublicKey", { enumerable: true, get: function () { return __importDefault(eosGetPublicKey_1).default; } });
62
60
  var eosSignTransaction_1 = require("./eosSignTransaction");
@@ -1,4 +1,4 @@
1
1
  import { PROTO } from '../../constants';
2
- import * as $T from '../../types/api/nemSignTransaction';
2
+ import * as $T from '../../types/api/nem';
3
3
  export declare const createTx: (tx: $T.NEMTransaction, address_n: number[]) => PROTO.NEMSignTx;
4
4
  //# sourceMappingURL=nemSignTx.d.ts.map
@@ -5,7 +5,7 @@ const AbstractMethod_1 = require("../core/AbstractMethod");
5
5
  const paramsValidator_1 = require("./common/paramsValidator");
6
6
  const coinInfo_1 = require("../data/coinInfo");
7
7
  const pathUtils_1 = require("../utils/pathUtils");
8
- const helper = (0, tslib_1.__importStar)(require("./nem/nemSignTx"));
8
+ const helper = tslib_1.__importStar(require("./nem/nemSignTx"));
9
9
  class NEMSignTransaction extends AbstractMethod_1.AbstractMethod {
10
10
  init() {
11
11
  this.requiredPermissions = ['read', 'write'];
@@ -1,7 +1,7 @@
1
1
  import { AbstractMethod } from '../core/AbstractMethod';
2
2
  import { PROTO } from '../constants';
3
3
  import type { BitcoinNetworkInfo, AccountAddresses } from '../types';
4
- import type { RefTransaction, TransactionOptions } from '../types/api/signTransaction';
4
+ import type { RefTransaction, TransactionOptions } from '../types/api/bitcoin';
5
5
  declare type Params = {
6
6
  inputs: PROTO.TxInputType[];
7
7
  outputs: PROTO.TxOutputType[];
@@ -15,7 +15,7 @@ declare type Params = {
15
15
  };
16
16
  export default class SignTransaction extends AbstractMethod<'signTransaction', Params> {
17
17
  init(): void;
18
- run(): Promise<import("../types/api/signTransaction").SignedTransaction>;
18
+ run(): Promise<import("../types").SignedTransaction>;
19
19
  }
20
20
  export {};
21
21
  //# sourceMappingURL=signTransaction.d.ts.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const bignumber_js_1 = (0, tslib_1.__importDefault)(require("bignumber.js"));
4
+ const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
5
5
  const AbstractMethod_1 = require("../core/AbstractMethod");
6
6
  const paramsValidator_1 = require("./common/paramsValidator");
7
7
  const coinInfo_1 = require("../data/coinInfo");
@@ -1,5 +1,5 @@
1
1
  import { PROTO } from '../../constants';
2
2
  import type { TypedCall } from '../../device/DeviceCommands';
3
- import type { StellarTransaction } from '../../types/api/stellarSignTransaction';
3
+ import type { StellarTransaction } from '../../types/api/stellar';
4
4
  export declare const stellarSignTx: (typedCall: TypedCall, address_n: number[], networkPassphrase: string, tx: StellarTransaction) => Promise<PROTO.StellarSignedTx>;
5
5
  //# sourceMappingURL=stellarSignTx.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { AbstractMethod } from '../core/AbstractMethod';
2
- import { StellarTransaction } from '../types/api/stellarSignTransaction';
2
+ import { StellarTransaction } from '../types/api/stellar';
3
3
  declare type Params = {
4
4
  path: number[];
5
5
  networkPassphrase: string;
@@ -5,7 +5,7 @@ const AbstractMethod_1 = require("../core/AbstractMethod");
5
5
  const paramsValidator_1 = require("./common/paramsValidator");
6
6
  const coinInfo_1 = require("../data/coinInfo");
7
7
  const pathUtils_1 = require("../utils/pathUtils");
8
- const helper = (0, tslib_1.__importStar)(require("./stellar/stellarSignTx"));
8
+ const helper = tslib_1.__importStar(require("./stellar/stellarSignTx"));
9
9
  const constants_1 = require("../constants");
10
10
  const StellarSignTransactionFeatures = Object.freeze({
11
11
  manageBuyOffer: ['1.10.4', '2.4.3'],
@@ -1,4 +1,4 @@
1
1
  import { PROTO } from '../../constants';
2
- import type { TezosOperation } from '../../types/api/tezosSignTransaction';
2
+ import type { TezosOperation } from '../../types/api/tezos';
3
3
  export declare const createTx: (address_n: number[], branch: string, operation: TezosOperation) => PROTO.TezosSignTx;
4
4
  //# sourceMappingURL=tezosSignTx.d.ts.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createTx = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const bs58check = (0, tslib_1.__importStar)(require("bs58check"));
5
+ const bs58check = tslib_1.__importStar(require("bs58check"));
6
6
  const constants_1 = require("../../constants");
7
7
  const paramsValidator_1 = require("../common/paramsValidator");
8
8
  const PREFIX = {
@@ -5,7 +5,7 @@ const AbstractMethod_1 = require("../core/AbstractMethod");
5
5
  const paramsValidator_1 = require("./common/paramsValidator");
6
6
  const coinInfo_1 = require("../data/coinInfo");
7
7
  const pathUtils_1 = require("../utils/pathUtils");
8
- const helper = (0, tslib_1.__importStar)(require("./tezos/tezosSignTx"));
8
+ const helper = tslib_1.__importStar(require("./tezos/tezosSignTx"));
9
9
  class TezosSignTransaction extends AbstractMethod_1.AbstractMethod {
10
10
  init() {
11
11
  this.requiredPermissions = ['read', 'write'];
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dispose = exports.reconnectAllBackends = exports.initBlockchain = exports.isBackendSupported = exports.setCustomBackend = exports.findBackend = exports.Blockchain = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const blockchain_link_1 = (0, tslib_1.__importDefault)(require("@trezor/blockchain-link"));
5
+ const blockchain_link_1 = tslib_1.__importDefault(require("@trezor/blockchain-link"));
6
6
  const config_1 = require("../data/config");
7
7
  const DataManager_1 = require("../data/DataManager");
8
8
  const events_1 = require("../events");
@@ -16,7 +16,6 @@ export declare const ERROR_CODES: {
16
16
  Method_UnknownCoin: string;
17
17
  Method_AddressNotMatch: string;
18
18
  Method_FirmwareUpdate_DownloadFailed: string;
19
- Method_CustomMessage_Callback: string;
20
19
  Method_Discovery_BundleException: string;
21
20
  Method_Override: string;
22
21
  Method_NoResponse: string;
@@ -40,7 +39,7 @@ export declare class TrezorError extends Error {
40
39
  message: string;
41
40
  constructor(code: string, message: string);
42
41
  }
43
- export declare const TypedError: (id: keyof typeof ERROR_CODES, message?: string | undefined) => TrezorError;
42
+ export declare const TypedError: (id: keyof typeof ERROR_CODES, message?: string) => TrezorError;
44
43
  export declare const serializeError: (payload: any) => any;
45
44
  export declare const WRONG_PREVIOUS_SESSION_ERROR_MESSAGE = "wrong previous session";
46
45
  export declare const INVALID_PIN_ERROR_MESSAGE = "PIN invalid";
@@ -19,7 +19,6 @@ exports.ERROR_CODES = {
19
19
  Method_UnknownCoin: 'Coin not found',
20
20
  Method_AddressNotMatch: 'Addresses do not match',
21
21
  Method_FirmwareUpdate_DownloadFailed: 'Failed to download firmware binary',
22
- Method_CustomMessage_Callback: 'Parameter "callback" is not a function',
23
22
  Method_Discovery_BundleException: '',
24
23
  Method_Override: 'override',
25
24
  Method_NoResponse: 'Call resolved without response',