@trezor/connect 9.0.3 → 9.0.4

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 (48) hide show
  1. package/README.md +1 -1
  2. package/lib/api/authorizeCoinJoin.js +6 -2
  3. package/lib/api/bitcoin/enhanceSignTx.js +1 -1
  4. package/lib/api/bitcoin/inputs.js +3 -2
  5. package/lib/api/bitcoin/refTx.js +3 -3
  6. package/lib/api/blockchainDisconnect.js +1 -1
  7. package/lib/api/blockchainSetCustomBackend.js +1 -1
  8. package/lib/api/cardano/cardanoAuxiliaryData.d.ts +1 -1
  9. package/lib/api/cardano/cardanoAuxiliaryData.js +38 -16
  10. package/lib/api/cardanoSignTransaction.d.ts +1 -0
  11. package/lib/api/cardanoSignTransaction.js +23 -3
  12. package/lib/api/getOwnershipProof.d.ts +1 -5
  13. package/lib/api/getOwnershipProof.js +5 -3
  14. package/lib/api/index.d.ts +1 -0
  15. package/lib/api/index.js +3 -1
  16. package/lib/api/setBusy.d.ts +7 -0
  17. package/lib/api/setBusy.js +27 -0
  18. package/lib/api/signTransaction.d.ts +1 -1
  19. package/lib/api/signTransaction.js +10 -3
  20. package/lib/backend/BackendManager.d.ts +21 -0
  21. package/lib/backend/BackendManager.js +91 -0
  22. package/lib/backend/Blockchain.d.ts +72 -0
  23. package/lib/backend/Blockchain.js +204 -0
  24. package/lib/backend/BlockchainLink.d.ts +6 -71
  25. package/lib/backend/BlockchainLink.js +12 -288
  26. package/lib/constants/cardano.d.ts +3 -1
  27. package/lib/constants/cardano.js +3 -1
  28. package/lib/core/AbstractMethod.d.ts +1 -0
  29. package/lib/core/index.d.ts +1 -1
  30. package/lib/core/index.js +1 -1
  31. package/lib/core/method.d.ts +1 -1
  32. package/lib/data/config.js +1 -1
  33. package/lib/data/version.d.ts +1 -1
  34. package/lib/data/version.js +1 -1
  35. package/lib/device/Device.d.ts +1 -1
  36. package/lib/device/Device.js +8 -2
  37. package/lib/device/DeviceCommands.d.ts +1 -0
  38. package/lib/device/DeviceCommands.js +11 -0
  39. package/lib/factory.js +1 -0
  40. package/lib/types/api/authorizeCoinJoin.d.ts +1 -0
  41. package/lib/types/api/bitcoin/index.d.ts +4 -0
  42. package/lib/types/api/cardano/index.d.ts +10 -3
  43. package/lib/types/api/index.d.ts +2 -0
  44. package/lib/types/api/setBusy.d.ts +4 -0
  45. package/lib/types/api/setBusy.js +3 -0
  46. package/package.json +10 -8
  47. package/lib/utils/bufferUtils.d.ts +0 -3
  48. package/lib/utils/bufferUtils.js +0 -11
@@ -27,6 +27,7 @@ export declare abstract class AbstractMethod<Name extends CallMethodPayload['met
27
27
  useUi: boolean;
28
28
  useDevice: boolean;
29
29
  useDeviceState: boolean;
30
+ preauthorized?: boolean;
30
31
  useEmptyPassphrase: boolean;
31
32
  allowSeedlessDevice: boolean;
32
33
  firmwareRange: FirmwareRange;
@@ -7,7 +7,7 @@ export declare const onCall: (message: CoreMessage) => Promise<void>;
7
7
  export declare class Core extends EventEmitter {
8
8
  handleMessage(message: any, isTrustedOrigin: boolean): void;
9
9
  dispose(): void;
10
- getCurrentMethod(): (import("../api").applyFlags | import("../api").applySettings | import("../api").authorizeCoinJoin | import("../api").backupDevice | import("../api").binanceGetAddress | import("../api").binanceGetPublicKey | import("../api").binanceSignTransaction | import("../api").blockchainDisconnect | import("../api").blockchainEstimateFee | import("../api").blockchainGetAccountBalanceHistory | import("../api").blockchainGetCurrentFiatRates | import("../api").blockchainGetFiatRatesForTimestamps | import("../api").blockchainGetTransactions | import("../api").blockchainSetCustomBackend | import("../api").blockchainSubscribe | import("../api").blockchainSubscribeFiatRates | import("../api").blockchainUnsubscribe | import("../api").blockchainUnsubscribeFiatRates | import("../api").cardanoGetAddress | import("../api").cardanoGetNativeScriptHash | import("../api").cardanoGetPublicKey | import("../api").cardanoSignTransaction | import("../api").changePin | import("../api").cipherKeyValue | import("../api").composeTransaction | import("../api").eosGetPublicKey | import("../api").eosSignTransaction | import("../api").ethereumGetAddress | import("../api").ethereumGetPublicKey | import("../api").ethereumSignMessage | import("../api").ethereumSignTransaction | import("../api").ethereumSignTypedData | import("../api").ethereumVerifyMessage | import("../api").firmwareUpdate | import("../api").getAccountInfo | import("../api").getAddress | import("../api").getCoinInfo | import("../api").getDeviceState | import("../api").getFeatures | import("../api").getFirmwareHash | import("../api").getOwnershipId | import("../api").getOwnershipProof | import("../api").getPublicKey | import("../api").getSettings | import("../api").nemGetAddress | import("../api").nemSignTransaction | import("../api").pushTransaction | import("../api").rebootToBootloader | import("../api").recoveryDevice | import("../api").requestLogin | import("../api").resetDevice | import("../api").rippleGetAddress | import("../api").rippleSignTransaction | import("../api").setProxy | import("../api").signMessage | import("../api").signTransaction | import("../api").stellarGetAddress | import("../api").stellarSignTransaction | import("../api").tezosGetAddress | import("../api").tezosGetPublicKey | import("../api").tezosSignTransaction | import("../api").unlockPath | import("../api").verifyMessage | import("../api").wipeDevice | import("../api").checkFirmwareAuthenticity)[];
10
+ getCurrentMethod(): (import("../api").applyFlags | import("../api").applySettings | import("../api").authorizeCoinJoin | import("../api").backupDevice | import("../api").binanceGetAddress | import("../api").binanceGetPublicKey | import("../api").binanceSignTransaction | import("../api").blockchainDisconnect | import("../api").blockchainEstimateFee | import("../api").blockchainGetAccountBalanceHistory | import("../api").blockchainGetCurrentFiatRates | import("../api").blockchainGetFiatRatesForTimestamps | import("../api").blockchainGetTransactions | import("../api").blockchainSetCustomBackend | import("../api").blockchainSubscribe | import("../api").blockchainSubscribeFiatRates | import("../api").blockchainUnsubscribe | import("../api").blockchainUnsubscribeFiatRates | import("../api").cardanoGetAddress | import("../api").cardanoGetNativeScriptHash | import("../api").cardanoGetPublicKey | import("../api").cardanoSignTransaction | import("../api").changePin | import("../api").cipherKeyValue | import("../api").composeTransaction | import("../api").eosGetPublicKey | import("../api").eosSignTransaction | import("../api").ethereumGetAddress | import("../api").ethereumGetPublicKey | import("../api").ethereumSignMessage | import("../api").ethereumSignTransaction | import("../api").ethereumSignTypedData | import("../api").ethereumVerifyMessage | import("../api").firmwareUpdate | import("../api").getAccountInfo | import("../api").getAddress | import("../api").getCoinInfo | import("../api").getDeviceState | import("../api").getFeatures | import("../api").getFirmwareHash | import("../api").getOwnershipId | import("../api").getOwnershipProof | import("../api").getPublicKey | import("../api").getSettings | import("../api").nemGetAddress | import("../api").nemSignTransaction | import("../api").pushTransaction | import("../api").rebootToBootloader | import("../api").recoveryDevice | import("../api").requestLogin | import("../api").resetDevice | import("../api").rippleGetAddress | import("../api").rippleSignTransaction | import("../api").setBusy | import("../api").setProxy | import("../api").signMessage | import("../api").signTransaction | import("../api").stellarGetAddress | import("../api").stellarSignTransaction | import("../api").tezosGetAddress | import("../api").tezosGetPublicKey | import("../api").tezosSignTransaction | import("../api").unlockPath | import("../api").verifyMessage | import("../api").wipeDevice | import("../api").checkFirmwareAuthenticity)[];
11
11
  getTransportInfo(): TransportInfo;
12
12
  }
13
13
  export declare const initCore: () => Core;
package/lib/core/index.js CHANGED
@@ -308,7 +308,7 @@ const onCall = async (message) => {
308
308
  }
309
309
  try {
310
310
  const invalidDeviceState = method.useDeviceState
311
- ? await device.validateState(method.network)
311
+ ? await device.validateState(method.network, method.preauthorized)
312
312
  : undefined;
313
313
  if (invalidDeviceState) {
314
314
  if (isUsingPopup) {
@@ -2,5 +2,5 @@ import * as Methods from '../api';
2
2
  import type { IFrameCallMessage } from '../events';
3
3
  export declare const getMethod: (message: IFrameCallMessage & {
4
4
  id?: number;
5
- }) => Methods.applyFlags | Methods.applySettings | Methods.authorizeCoinJoin | Methods.backupDevice | Methods.binanceGetAddress | Methods.binanceGetPublicKey | Methods.binanceSignTransaction | Methods.blockchainDisconnect | Methods.blockchainEstimateFee | Methods.blockchainGetAccountBalanceHistory | Methods.blockchainGetCurrentFiatRates | Methods.blockchainGetFiatRatesForTimestamps | Methods.blockchainGetTransactions | Methods.blockchainSetCustomBackend | Methods.blockchainSubscribe | Methods.blockchainSubscribeFiatRates | Methods.blockchainUnsubscribe | Methods.blockchainUnsubscribeFiatRates | Methods.cardanoGetAddress | Methods.cardanoGetNativeScriptHash | Methods.cardanoGetPublicKey | Methods.cardanoSignTransaction | Methods.changePin | Methods.cipherKeyValue | Methods.composeTransaction | Methods.eosGetPublicKey | Methods.eosSignTransaction | Methods.ethereumGetAddress | Methods.ethereumGetPublicKey | Methods.ethereumSignMessage | Methods.ethereumSignTransaction | Methods.ethereumSignTypedData | Methods.ethereumVerifyMessage | Methods.firmwareUpdate | Methods.getAccountInfo | Methods.getAddress | Methods.getCoinInfo | Methods.getDeviceState | Methods.getFeatures | Methods.getFirmwareHash | Methods.getOwnershipId | Methods.getOwnershipProof | Methods.getPublicKey | Methods.getSettings | Methods.nemGetAddress | Methods.nemSignTransaction | Methods.pushTransaction | Methods.rebootToBootloader | Methods.recoveryDevice | Methods.requestLogin | Methods.resetDevice | Methods.rippleGetAddress | Methods.rippleSignTransaction | Methods.setProxy | Methods.signMessage | Methods.signTransaction | Methods.stellarGetAddress | Methods.stellarSignTransaction | Methods.tezosGetAddress | Methods.tezosGetPublicKey | Methods.tezosSignTransaction | Methods.unlockPath | Methods.verifyMessage | Methods.wipeDevice | Methods.checkFirmwareAuthenticity;
5
+ }) => Methods.applyFlags | Methods.applySettings | Methods.authorizeCoinJoin | Methods.backupDevice | Methods.binanceGetAddress | Methods.binanceGetPublicKey | Methods.binanceSignTransaction | Methods.blockchainDisconnect | Methods.blockchainEstimateFee | Methods.blockchainGetAccountBalanceHistory | Methods.blockchainGetCurrentFiatRates | Methods.blockchainGetFiatRatesForTimestamps | Methods.blockchainGetTransactions | Methods.blockchainSetCustomBackend | Methods.blockchainSubscribe | Methods.blockchainSubscribeFiatRates | Methods.blockchainUnsubscribe | Methods.blockchainUnsubscribeFiatRates | Methods.cardanoGetAddress | Methods.cardanoGetNativeScriptHash | Methods.cardanoGetPublicKey | Methods.cardanoSignTransaction | Methods.changePin | Methods.cipherKeyValue | Methods.composeTransaction | Methods.eosGetPublicKey | Methods.eosSignTransaction | Methods.ethereumGetAddress | Methods.ethereumGetPublicKey | Methods.ethereumSignMessage | Methods.ethereumSignTransaction | Methods.ethereumSignTypedData | Methods.ethereumVerifyMessage | Methods.firmwareUpdate | Methods.getAccountInfo | Methods.getAddress | Methods.getCoinInfo | Methods.getDeviceState | Methods.getFeatures | Methods.getFirmwareHash | Methods.getOwnershipId | Methods.getOwnershipProof | Methods.getPublicKey | Methods.getSettings | Methods.nemGetAddress | Methods.nemSignTransaction | Methods.pushTransaction | Methods.rebootToBootloader | Methods.recoveryDevice | Methods.requestLogin | Methods.resetDevice | Methods.rippleGetAddress | Methods.rippleSignTransaction | Methods.setBusy | Methods.setProxy | Methods.signMessage | Methods.signTransaction | Methods.stellarGetAddress | Methods.stellarSignTransaction | Methods.tezosGetAddress | Methods.tezosGetPublicKey | Methods.tezosSignTransaction | Methods.unlockPath | Methods.verifyMessage | Methods.wipeDevice | Methods.checkFirmwareAuthenticity;
6
6
  //# sourceMappingURL=method.d.ts.map
@@ -104,7 +104,7 @@ exports.config = {
104
104
  ],
105
105
  },
106
106
  {
107
- coin: ['eth', 'trop'],
107
+ coin: ['eth', 'trop', 'tgor'],
108
108
  min: ['1.8.0', '2.1.0'],
109
109
  comment: ['There were protobuf backwards incompatible changes.'],
110
110
  },
@@ -1,3 +1,3 @@
1
- export declare const VERSION = "9.0.3";
1
+ export declare const VERSION = "9.0.4";
2
2
  export declare const DEFAULT_DOMAIN: string;
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_DOMAIN = exports.VERSION = void 0;
4
- exports.VERSION = '9.0.3';
4
+ exports.VERSION = '9.0.4';
5
5
  const versionN = exports.VERSION.split('.').map(s => parseInt(s, 10));
6
6
  exports.DEFAULT_DOMAIN = `https://connect.trezor.io/${versionN[0]}/`;
7
7
  //# sourceMappingURL=version.js.map
@@ -70,7 +70,7 @@ export declare class Device extends EventEmitter {
70
70
  getInternalState(): string;
71
71
  setExternalState(state?: string): void;
72
72
  getExternalState(): string;
73
- validateState(networkType?: NETWORK.NetworkType): Promise<string | undefined>;
73
+ validateState(networkType?: NETWORK.NetworkType, preauthorized?: boolean): Promise<string | undefined>;
74
74
  useLegacyPassphrase(): boolean;
75
75
  initialize(useEmptyPassphrase: boolean, useCardanoDerivation: boolean): Promise<void>;
76
76
  getFeatures(): Promise<void>;
@@ -241,9 +241,14 @@ class Device extends events_1.default {
241
241
  getExternalState() {
242
242
  return this.externalState[this.instance];
243
243
  }
244
- async validateState(networkType) {
244
+ async validateState(networkType, preauthorized = false) {
245
245
  if (!this.features)
246
246
  return;
247
+ if (!this.features.unlocked && preauthorized) {
248
+ if (await this.commands.preauthorize(false)) {
249
+ return;
250
+ }
251
+ }
247
252
  const altMode = this._altModeChange(networkType);
248
253
  const expectedState = altMode ? undefined : this.getExternalState();
249
254
  const state = await this.commands.getDeviceState(networkType);
@@ -287,6 +292,7 @@ class Device extends events_1.default {
287
292
  this._updateFeatures(message);
288
293
  }
289
294
  _updateFeatures(feat) {
295
+ var _a;
290
296
  const capabilities = (0, deviceFeaturesUtils_1.parseCapabilities)(feat);
291
297
  feat.capabilities = capabilities;
292
298
  const version = [feat.major_version, feat.minor_version, feat.patch_version];
@@ -301,7 +307,7 @@ class Device extends events_1.default {
301
307
  if (this.features && this.features.session_id && !feat.session_id) {
302
308
  feat.session_id = this.features.session_id;
303
309
  }
304
- feat.unlocked = feat.unlocked || true;
310
+ feat.unlocked = (_a = feat.unlocked) !== null && _a !== void 0 ? _a : true;
305
311
  const revision = (0, deviceFeaturesUtils_1.parseRevision)(feat);
306
312
  feat.revision = revision;
307
313
  this.features = feat;
@@ -46,6 +46,7 @@ export declare class DeviceCommands {
46
46
  address: string;
47
47
  }>;
48
48
  ethereumGetPublicKey({ address_n, show_display, }: Messages.EthereumGetPublicKey): Promise<HDNodeResponse>;
49
+ preauthorize(throwError: boolean): Promise<boolean>;
49
50
  getDeviceState(networkType?: string): Promise<string>;
50
51
  call(type: MessageKey, msg?: DefaultMessageResponse['message']): Promise<DefaultMessageResponse>;
51
52
  typedCall<T extends MessageKey, R extends MessageKey[]>(type: T, resType: R, msg?: MessageType[T]): Promise<TypedCallResponseMap[R[number]]>;
@@ -219,6 +219,17 @@ class DeviceCommands {
219
219
  depth: publicKey.node.depth,
220
220
  };
221
221
  }
222
+ async preauthorize(throwError) {
223
+ try {
224
+ await this.typedCall('DoPreauthorized', 'PreauthorizedRequest', {});
225
+ return true;
226
+ }
227
+ catch (error) {
228
+ if (throwError)
229
+ throw error;
230
+ return false;
231
+ }
232
+ }
222
233
  getDeviceState(networkType) {
223
234
  if (!this.device.atLeast('2.4.3')) {
224
235
  return this._getAddressForNetworkType(networkType);
package/lib/factory.js CHANGED
@@ -117,6 +117,7 @@ const factory = ({ eventEmitter, manifest, init, call, requestLogin, uiResponse,
117
117
  recoveryDevice: params => call({ ...params, method: 'recoveryDevice' }),
118
118
  getCoinInfo: params => call({ ...params, method: 'getCoinInfo' }),
119
119
  rebootToBootloader: params => call({ ...params, method: 'rebootToBootloader' }),
120
+ setBusy: params => call({ ...params, method: 'setBusy' }),
120
121
  setProxy: params => call({ ...params, method: 'setProxy' }),
121
122
  dispose,
122
123
  cancel,
@@ -9,6 +9,7 @@ export interface AuthorizeCoinJoin {
9
9
  coin?: string;
10
10
  scriptType?: PROTO.InternalInputScriptType;
11
11
  amountUnit?: PROTO.AmountUnit;
12
+ preauthorized?: boolean;
12
13
  }
13
14
  export declare function authorizeCoinJoin(params: Params<AuthorizeCoinJoin>): Response<PROTO.Success>;
14
15
  //# sourceMappingURL=authorizeCoinJoin.d.ts.map
@@ -44,6 +44,8 @@ export interface TransactionOptions {
44
44
  branch_id?: number;
45
45
  decred_staking_ticket?: boolean;
46
46
  amount_unit?: PROTO.AmountUnit;
47
+ serialize?: boolean;
48
+ coinjoin_request?: PROTO.CoinJoinRequest;
47
49
  }
48
50
  export interface SignTransaction {
49
51
  inputs: PROTO.TxInputType[];
@@ -66,6 +68,8 @@ export interface SignTransaction {
66
68
  preauthorized?: boolean;
67
69
  amountUnit?: PROTO.AmountUnit;
68
70
  unlockPath?: PROTO.UnlockPath;
71
+ serialize?: boolean;
72
+ coinjoinRequest?: PROTO.CoinJoinRequest;
69
73
  }
70
74
  export declare type SignedTransaction = {
71
75
  signatures: string[];
@@ -137,15 +137,22 @@ export interface CardanoReferenceInput {
137
137
  prev_hash: string;
138
138
  prev_index: number;
139
139
  }
140
- export interface CardanoCatalystRegistrationParameters {
140
+ export interface CardanoGovernanceRegistrationDelegation {
141
141
  votingPublicKey: string;
142
+ weight: number;
143
+ }
144
+ export interface CardanoGovernanceRegistrationParameters {
145
+ votingPublicKey?: string;
142
146
  stakingPath: string | number[];
143
147
  rewardAddressParameters: CardanoAddressParameters;
144
148
  nonce: string;
149
+ format?: PROTO.CardanoGovernanceRegistrationFormat;
150
+ delegations?: CardanoGovernanceRegistrationDelegation[];
151
+ votingPurpose?: number;
145
152
  }
146
153
  export interface CardanoAuxiliaryData {
147
154
  hash?: string;
148
- catalystRegistrationParameters?: CardanoCatalystRegistrationParameters;
155
+ governanceRegistrationParameters?: CardanoGovernanceRegistrationParameters;
149
156
  }
150
157
  export interface CardanoSignTransaction {
151
158
  inputs: CardanoInput[];
@@ -179,7 +186,7 @@ export interface CardanoSignedTxWitness {
179
186
  export interface CardanoAuxiliaryDataSupplement {
180
187
  type: PROTO.CardanoTxAuxiliaryDataSupplementType;
181
188
  auxiliaryDataHash: string;
182
- catalystSignature?: string;
189
+ governanceSignature?: string;
183
190
  }
184
191
  export interface CardanoSignedTxData {
185
192
  hash: string;
@@ -60,6 +60,7 @@ import { requestLogin } from './requestLogin';
60
60
  import { resetDevice } from './resetDevice';
61
61
  import { rippleGetAddress } from './rippleGetAddress';
62
62
  import { rippleSignTransaction } from './rippleSignTransaction';
63
+ import { setBusy } from './setBusy';
63
64
  import { setProxy } from './setProxy';
64
65
  import { signMessage } from './signMessage';
65
66
  import { signTransaction } from './signTransaction';
@@ -136,6 +137,7 @@ export interface TrezorConnect {
136
137
  resetDevice: typeof resetDevice;
137
138
  rippleGetAddress: typeof rippleGetAddress;
138
139
  rippleSignTransaction: typeof rippleSignTransaction;
140
+ setBusy: typeof setBusy;
139
141
  setProxy: typeof setProxy;
140
142
  signMessage: typeof signMessage;
141
143
  signTransaction: typeof signTransaction;
@@ -0,0 +1,4 @@
1
+ import type { PROTO } from '../../constants';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function setBusy(params: CommonParams & PROTO.SetBusy): Response<PROTO.Success>;
4
+ //# sourceMappingURL=setBusy.d.ts.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=setBusy.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trezor/connect",
3
- "version": "9.0.3",
3
+ "version": "9.0.4",
4
4
  "author": "Trezor <info@trezor.io>",
5
5
  "homepage": "https://github.com/trezor/trezor-suite/tree/develop/packages/connect",
6
6
  "description": "High-level javascript interface for Trezor hardware wallet.",
@@ -42,15 +42,15 @@
42
42
  "version:patch": "tsx scripts/bump-version.ts patch",
43
43
  "version:minor": "tsx scripts/bump-version.ts minor",
44
44
  "version:major": "tsx scripts/bump-version.ts major",
45
- "test:e2e:node": "TESTS_FIRMWARE=$(tsx ../integration-tests/wait-for-env.ts) yarn jest --runInBand --verbose -c e2e/jest.config.js",
46
- "test:e2e:web": "TESTS_FIRMWARE=$(tsx ../integration-tests/wait-for-env.ts) yarn karma start e2e/karma.config.js"
45
+ "test:e2e:web": "ts-node -O '{\"module\": \"commonjs\"}' ./e2e/run.ts web",
46
+ "test:e2e:node": "ts-node -O '{\"module\": \"commonjs\"}' ./e2e/run.ts node"
47
47
  },
48
48
  "dependencies": {
49
- "@trezor/blockchain-link": "^2.1.4",
50
- "@trezor/connect-common": "0.0.9",
51
- "@trezor/transport": "^1.1.4",
52
- "@trezor/utils": "^9.0.2",
53
- "@trezor/utxo-lib": "^1.0.0",
49
+ "@trezor/blockchain-link": "^2.1.5",
50
+ "@trezor/connect-common": "0.0.10",
51
+ "@trezor/transport": "^1.1.5",
52
+ "@trezor/utils": "^9.0.3",
53
+ "@trezor/utxo-lib": "^1.0.1",
54
54
  "bignumber.js": "^9.1.0",
55
55
  "blakejs": "^1.2.1",
56
56
  "bowser": "^2.11.0",
@@ -62,6 +62,7 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@trezor/trezor-user-env-link": "*",
65
+ "@types/karma": "^6.3.3",
65
66
  "@types/parse-uri": "^1.0.0",
66
67
  "@types/randombytes": "^2.0.0",
67
68
  "jest": "^26.6.3",
@@ -73,6 +74,7 @@
73
74
  "karma-sourcemap-loader": "^0.3.8",
74
75
  "karma-webpack": "^5.0.0",
75
76
  "rimraf": "^3.0.2",
77
+ "ts-node": "^10.9.1",
76
78
  "tsx": "^3.8.2",
77
79
  "typescript": "4.7.4"
78
80
  }
@@ -1,3 +0,0 @@
1
- /// <reference types="node" />
2
- export declare const reverseBuffer: (buf: Buffer) => Buffer;
3
- //# sourceMappingURL=bufferUtils.d.ts.map
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reverseBuffer = void 0;
4
- const reverseBuffer = (buf) => {
5
- const copy = Buffer.alloc(buf.length);
6
- buf.copy(copy);
7
- [].reverse.call(copy);
8
- return copy;
9
- };
10
- exports.reverseBuffer = reverseBuffer;
11
- //# sourceMappingURL=bufferUtils.js.map