@trezor/connect 9.4.2 → 9.4.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -9
- package/README.md +1 -1
- package/lib/api/applyFlags.js +1 -1
- package/lib/api/applySettings.js +1 -1
- package/lib/api/authenticateDevice.js +1 -1
- package/lib/api/authorizeCoinjoin.js +1 -1
- package/lib/api/backupDevice.js +1 -1
- package/lib/api/binance/api/binanceGetAddress.js +2 -1
- package/lib/api/binance/api/binanceGetPublicKey.js +2 -1
- package/lib/api/binance/api/binanceSignTransaction.js +2 -1
- package/lib/api/binance/binanceSignTx.js +1 -1
- package/lib/api/bitcoin/Fees.js +2 -2
- package/lib/api/bitcoin/TransactionComposer.d.ts +3 -3
- package/lib/api/bitcoin/TransactionComposer.js +2 -2
- package/lib/api/bitcoin/refTx.js +1 -1
- package/lib/api/blockchainDisconnect.js +1 -1
- package/lib/api/blockchainEvmRpcCall.d.ts +16 -0
- package/lib/api/blockchainEvmRpcCall.js +45 -0
- package/lib/api/cancelCoinjoinAuthorization.js +1 -1
- package/lib/api/cardano/api/cardanoGetAddress.js +2 -1
- package/lib/api/cardano/api/cardanoGetNativeScriptHash.js +2 -1
- package/lib/api/cardano/api/cardanoGetPublicKey.js +2 -1
- package/lib/api/cardano/api/cardanoSignTransaction.js +2 -1
- package/lib/api/cardano/cardanoAddressParameters.js +1 -1
- package/lib/api/cardano/cardanoAuxiliaryData.js +1 -1
- package/lib/api/cardano/cardanoCertificate.js +1 -1
- package/lib/api/cardano/cardanoInputs.d.ts +8 -8
- package/lib/api/cardano/cardanoInputs.js +1 -1
- package/lib/api/cardano/cardanoOutputs.d.ts +22 -22
- package/lib/api/cardano/cardanoOutputs.js +1 -1
- package/lib/api/cardano/cardanoTokenBundle.d.ts +6 -6
- package/lib/api/cardano/cardanoTokenBundle.js +1 -1
- package/lib/api/changeLanguage.js +1 -1
- package/lib/api/changePin.js +1 -1
- package/lib/api/cipherKeyValue.js +1 -1
- package/lib/api/common/paramsValidator.js +1 -1
- package/lib/api/composeTransaction.d.ts +9 -3
- package/lib/api/composeTransaction.js +7 -4
- package/lib/api/eos/api/eosGetPublicKey.js +2 -1
- package/lib/api/eos/api/eosSignTransaction.js +2 -1
- package/lib/api/eos/eosSignTx.d.ts +3 -3
- package/lib/api/ethereum/api/ethereumGetAddress.js +2 -1
- package/lib/api/ethereum/api/ethereumGetPublicKey.js +2 -1
- package/lib/api/ethereum/api/ethereumSignMessage.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumSignMessage.js +2 -1
- package/lib/api/ethereum/api/ethereumSignTransaction.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumSignTransaction.js +13 -7
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +58 -57
- package/lib/api/ethereum/api/ethereumSignTypedData.js +3 -2
- package/lib/api/ethereum/api/ethereumVerifyMessage.js +2 -1
- package/lib/api/ethereum/ethereumDefinitions.d.ts +21 -21
- package/lib/api/ethereum/ethereumDefinitions.js +6 -5
- package/lib/api/firmware/getBinary.d.ts +4 -5
- package/lib/api/firmware/getBinary.js +12 -13
- package/lib/api/firmware/getBinaryForFirmwareUpgrade.d.ts +3 -3
- package/lib/api/firmware/getBinaryForFirmwareUpgrade.js +2 -2
- package/lib/api/firmware/index.d.ts +1 -1
- package/lib/api/firmware/index.js +2 -1
- package/lib/api/firmware/x509certificate.js +3 -5
- package/lib/api/getAccountDescriptor.js +1 -1
- package/lib/api/getAddress.js +1 -1
- package/lib/api/getCoinInfo.d.ts +3 -0
- package/lib/api/getCoinInfo.js +1 -1
- package/lib/api/getFirmwareHash.js +1 -1
- package/lib/api/getOwnershipId.js +1 -1
- package/lib/api/getOwnershipProof.js +1 -1
- package/lib/api/getPublicKey.js +1 -1
- package/lib/api/index.d.ts +2 -1
- package/lib/api/index.js +5 -3
- package/lib/api/loadDevice.d.ts +14 -0
- package/lib/api/loadDevice.js +44 -0
- package/lib/api/nem/api/nemGetAddress.js +2 -1
- package/lib/api/nem/api/nemSignTransaction.js +2 -1
- package/lib/api/pushTransaction.js +1 -1
- package/lib/api/rebootToBootloader.js +1 -1
- package/lib/api/recoveryDevice.js +1 -1
- package/lib/api/requestLogin.js +1 -1
- package/lib/api/resetDevice.js +1 -2
- package/lib/api/ripple/api/rippleGetAddress.js +2 -1
- package/lib/api/ripple/api/rippleSignTransaction.js +2 -1
- package/lib/api/setBrightness.js +1 -1
- package/lib/api/setBusy.js +1 -1
- package/lib/api/signMessage.js +1 -1
- package/lib/api/solana/api/solanaGetAddress.js +2 -1
- package/lib/api/solana/api/solanaGetPublicKey.js +2 -1
- package/lib/api/solana/api/solanaSignTransaction.js +2 -1
- package/lib/api/stellar/api/stellarGetAddress.js +2 -1
- package/lib/api/stellar/api/stellarSignTransaction.js +2 -1
- package/lib/api/stellar/stellarSignTx.js +1 -1
- package/lib/api/tezos/api/tezosGetAddress.js +2 -1
- package/lib/api/tezos/api/tezosGetPublicKey.js +2 -1
- package/lib/api/tezos/api/tezosSignTransaction.js +2 -1
- package/lib/api/tezos/tezosSignTx.js +1 -1
- package/lib/api/unlockPath.js +1 -1
- package/lib/api/verifyMessage.js +1 -1
- package/lib/backend/Blockchain.d.ts +3 -0
- package/lib/backend/Blockchain.js +6 -6
- package/lib/constants/errors.d.ts +49 -38
- package/lib/constants/errors.js +10 -0
- package/lib/constants/firmware.d.ts +2 -0
- package/lib/constants/firmware.js +5 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +4 -1
- package/lib/constants/nem.d.ts +3 -3
- package/lib/constants/utxo.d.ts +3 -0
- package/lib/constants/utxo.js +5 -0
- package/lib/core/AbstractMethod.d.ts +13 -5
- package/lib/core/AbstractMethod.js +50 -24
- package/lib/core/index.js +41 -30
- package/lib/core/onCallFirmwareUpdate.d.ts +2 -2
- package/lib/core/onCallFirmwareUpdate.js +6 -6
- package/lib/data/DataManager.d.ts +0 -181
- package/lib/data/DataManager.js +40 -6
- package/lib/data/analyticsInfo.js +4 -2
- package/lib/data/coinInfo.d.ts +14 -0
- package/lib/data/config.d.ts +20 -22
- package/lib/data/config.js +15 -40
- package/lib/data/connectSettings.js +10 -4
- package/lib/data/deviceAuthenticityConfig.js +20 -0
- package/lib/data/deviceAuthenticityConfigTypes.d.ts +32 -23
- package/lib/data/firmwareInfo.d.ts +1 -1
- package/lib/data/models.d.ts +9 -0
- package/lib/data/models.js +9 -0
- package/lib/data/version.d.ts +2 -1
- package/lib/data/version.js +3 -2
- package/lib/device/Device.d.ts +144 -36
- package/lib/device/Device.js +270 -113
- package/lib/device/DeviceCommands.js +4 -4
- package/lib/device/DeviceList.d.ts +13 -21
- package/lib/device/DeviceList.js +54 -168
- package/lib/device/checkFirmwareRevision.js +4 -4
- package/lib/device/prompts.js +3 -2
- package/lib/device/resolveDescriptorForTaproot.d.ts +1 -1
- package/lib/events/call.d.ts +5 -5
- package/lib/events/call.js +2 -2
- package/lib/events/core.d.ts +4 -3
- package/lib/events/device.d.ts +0 -6
- package/lib/events/device.js +0 -6
- package/lib/events/transport.d.ts +1 -1
- package/lib/factory.d.ts +6 -6
- package/lib/factory.js +132 -136
- package/lib/impl/dynamic.d.ts +33 -0
- package/lib/impl/dynamic.js +75 -0
- package/lib/index-browser.d.ts +3 -1
- package/lib/index-browser.js +0 -3
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -13
- package/lib/types/api/applySettings.d.ts +13 -13
- package/lib/types/api/authenticateDevice.d.ts +33 -24
- package/lib/types/api/authorizeCoinjoin.d.ts +10 -10
- package/lib/types/api/binance/index.d.ts +143 -143
- package/lib/types/api/binance/index.js +1 -1
- package/lib/types/api/bitcoin/index.d.ts +11 -11
- package/lib/types/api/bitcoin/index.js +1 -1
- package/lib/types/api/blockchainEvmRpcCall.d.ts +4 -0
- package/lib/types/api/{checkFirmwareAuthenticity.js → blockchainEvmRpcCall.js} +1 -1
- package/lib/types/api/cancelCoinjoinAuthorization.d.ts +1 -1
- package/lib/types/api/cardano/index.d.ts +507 -507
- package/lib/types/api/changeLanguage.d.ts +6 -6
- package/lib/types/api/cipherKeyValue.d.ts +8 -8
- package/lib/types/api/cipherKeyValue.js +1 -1
- package/lib/types/api/composeTransaction.d.ts +13 -7
- package/lib/types/api/eos/index.d.ts +525 -525
- package/lib/types/api/eos/index.js +1 -1
- package/lib/types/api/ethereum/index.d.ts +100 -100
- package/lib/types/api/firmwareUpdate.d.ts +5 -5
- package/lib/types/api/getAccountDescriptor.d.ts +4 -4
- package/lib/types/api/getAddress.d.ts +32 -32
- package/lib/types/api/getOwnershipId.d.ts +24 -24
- package/lib/types/api/getOwnershipProof.d.ts +28 -28
- package/lib/types/api/getPublicKey.d.ts +24 -24
- package/lib/types/api/getPublicKey.js +1 -1
- package/lib/types/api/index.d.ts +4 -8
- package/lib/types/api/init.d.ts +4 -2
- package/lib/types/api/loadDevice.d.ts +4 -0
- package/lib/types/api/loadDevice.js +3 -0
- package/lib/types/api/nem/index.d.ts +612 -612
- package/lib/types/api/nem/index.js +1 -1
- package/lib/types/api/nemGetAddress.d.ts +6 -6
- package/lib/types/api/pushTransaction.d.ts +3 -3
- package/lib/types/api/recoveryDevice.d.ts +9 -9
- package/lib/types/api/requestLogin.d.ts +25 -25
- package/lib/types/api/ripple/index.d.ts +21 -21
- package/lib/types/api/ripple/index.js +1 -1
- package/lib/types/api/solana/index.d.ts +23 -23
- package/lib/types/api/solana/index.js +1 -1
- package/lib/types/api/stellar/index.d.ts +582 -582
- package/lib/types/api/stellar/index.js +1 -1
- package/lib/types/api/tezos/index.d.ts +120 -120
- package/lib/types/api/tezos/index.js +1 -1
- package/lib/types/api/unlockPath.d.ts +2 -2
- package/lib/types/coinInfo.d.ts +231 -224
- package/lib/types/device.d.ts +33 -14
- package/lib/types/device.js +3 -1
- package/lib/types/fees.d.ts +19 -19
- package/lib/types/firmware.d.ts +1 -1
- package/lib/types/params.d.ts +23 -19
- package/lib/types/settings.d.ts +17 -10
- package/lib/types/utils.d.ts +1 -0
- package/lib/types/utils.js +3 -0
- package/lib/utils/addressUtils.js +2 -2
- package/lib/utils/assetUtils.d.ts +1 -1
- package/lib/utils/assetUtils.js +6 -6
- package/lib/utils/assets.js +1 -1
- package/lib/utils/assets.native.js +1 -1
- package/lib/utils/deviceFeaturesUtils.js +1 -1
- package/lib/utils/proxy-event-emitter.d.ts +21 -0
- package/lib/utils/proxy-event-emitter.js +65 -0
- package/lib/utils/uiPromiseManager.d.ts +2 -1
- package/lib/utils/uiPromiseManager.js +3 -3
- package/package.json +12 -12
- package/lib/api/checkFirmwareAuthenticity.d.ts +0 -11
- package/lib/api/checkFirmwareAuthenticity.js +0 -56
- package/lib/types/api/checkFirmwareAuthenticity.d.ts +0 -11
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.enhanceMessageWithAnalytics = void 0;
|
|
4
|
+
const connect_analytics_1 = require("@trezor/connect-analytics");
|
|
4
5
|
const events_1 = require("../events");
|
|
5
6
|
const enhanceMessageWithAnalytics = (message, data) => {
|
|
6
7
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7
8
|
switch (message.type) {
|
|
8
|
-
case events_1.UI_REQUEST.REQUEST_CONFIRMATION:
|
|
9
|
+
case events_1.UI_REQUEST.REQUEST_CONFIRMATION: {
|
|
9
10
|
const { device } = data;
|
|
10
11
|
return {
|
|
11
12
|
...message,
|
|
12
13
|
payload: {
|
|
13
14
|
...message.payload,
|
|
14
15
|
analytics: {
|
|
15
|
-
type:
|
|
16
|
+
type: connect_analytics_1.EventType.DeviceSelected,
|
|
16
17
|
payload: {
|
|
17
18
|
mode: (device === null || device === void 0 ? void 0 : device.mode) || '',
|
|
18
19
|
pinProtection: ((_a = device === null || device === void 0 ? void 0 : device.features) === null || _a === void 0 ? void 0 : _a.pin_protection) || '',
|
|
@@ -28,6 +29,7 @@ const enhanceMessageWithAnalytics = (message, data) => {
|
|
|
28
29
|
},
|
|
29
30
|
},
|
|
30
31
|
};
|
|
32
|
+
}
|
|
31
33
|
default:
|
|
32
34
|
return message;
|
|
33
35
|
}
|
package/lib/data/coinInfo.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare const getBitcoinNetwork: (pathOrName: DerivationPath) => ({
|
|
|
17
17
|
T2B1: string | false;
|
|
18
18
|
T3B1: string | false;
|
|
19
19
|
T3T1: string | false;
|
|
20
|
+
T3W1: string | false;
|
|
20
21
|
connect: boolean;
|
|
21
22
|
};
|
|
22
23
|
decimals: number;
|
|
@@ -75,6 +76,7 @@ export declare const getEthereumNetwork: (pathOrName: DerivationPath) => ({
|
|
|
75
76
|
T2B1: string | false;
|
|
76
77
|
T3B1: string | false;
|
|
77
78
|
T3T1: string | false;
|
|
79
|
+
T3W1: string | false;
|
|
78
80
|
connect: boolean;
|
|
79
81
|
};
|
|
80
82
|
decimals: number;
|
|
@@ -108,6 +110,7 @@ export declare const getMiscNetwork: (pathOrName: DerivationPath) => ({
|
|
|
108
110
|
T2B1: string | false;
|
|
109
111
|
T3B1: string | false;
|
|
110
112
|
T3T1: string | false;
|
|
113
|
+
T3W1: string | false;
|
|
111
114
|
connect: boolean;
|
|
112
115
|
};
|
|
113
116
|
decimals: number;
|
|
@@ -165,6 +168,7 @@ export declare const fixCoinInfoNetwork: (ci: BitcoinNetworkInfo, path: number[]
|
|
|
165
168
|
T2B1: string | false;
|
|
166
169
|
T3B1: string | false;
|
|
167
170
|
T3T1: string | false;
|
|
171
|
+
T3W1: string | false;
|
|
168
172
|
connect: boolean;
|
|
169
173
|
};
|
|
170
174
|
decimals: number;
|
|
@@ -223,6 +227,7 @@ export declare const getCoinInfoByHash: (hash: string, networkInfo: any) => {
|
|
|
223
227
|
T2B1: string | false;
|
|
224
228
|
T3B1: string | false;
|
|
225
229
|
T3T1: string | false;
|
|
230
|
+
T3W1: string | false;
|
|
226
231
|
connect: boolean;
|
|
227
232
|
};
|
|
228
233
|
decimals: number;
|
|
@@ -281,6 +286,7 @@ export declare const getCoinInfo: (currency: string) => ({
|
|
|
281
286
|
T2B1: string | false;
|
|
282
287
|
T3B1: string | false;
|
|
283
288
|
T3T1: string | false;
|
|
289
|
+
T3W1: string | false;
|
|
284
290
|
connect: boolean;
|
|
285
291
|
};
|
|
286
292
|
decimals: number;
|
|
@@ -338,6 +344,7 @@ export declare const getCoinInfo: (currency: string) => ({
|
|
|
338
344
|
T2B1: string | false;
|
|
339
345
|
T3B1: string | false;
|
|
340
346
|
T3T1: string | false;
|
|
347
|
+
T3W1: string | false;
|
|
341
348
|
connect: boolean;
|
|
342
349
|
};
|
|
343
350
|
decimals: number;
|
|
@@ -370,6 +377,7 @@ export declare const getCoinInfo: (currency: string) => ({
|
|
|
370
377
|
T2B1: string | false;
|
|
371
378
|
T3B1: string | false;
|
|
372
379
|
T3T1: string | false;
|
|
380
|
+
T3W1: string | false;
|
|
373
381
|
connect: boolean;
|
|
374
382
|
};
|
|
375
383
|
decimals: number;
|
|
@@ -414,6 +422,7 @@ export declare const getUniqueNetworks: (networks: (CoinInfo | undefined)[]) =>
|
|
|
414
422
|
T2B1: string | false;
|
|
415
423
|
T3B1: string | false;
|
|
416
424
|
T3T1: string | false;
|
|
425
|
+
T3W1: string | false;
|
|
417
426
|
connect: boolean;
|
|
418
427
|
};
|
|
419
428
|
decimals: number;
|
|
@@ -471,6 +480,7 @@ export declare const getUniqueNetworks: (networks: (CoinInfo | undefined)[]) =>
|
|
|
471
480
|
T2B1: string | false;
|
|
472
481
|
T3B1: string | false;
|
|
473
482
|
T3T1: string | false;
|
|
483
|
+
T3W1: string | false;
|
|
474
484
|
connect: boolean;
|
|
475
485
|
};
|
|
476
486
|
decimals: number;
|
|
@@ -503,6 +513,7 @@ export declare const getUniqueNetworks: (networks: (CoinInfo | undefined)[]) =>
|
|
|
503
513
|
T2B1: string | false;
|
|
504
514
|
T3B1: string | false;
|
|
505
515
|
T3T1: string | false;
|
|
516
|
+
T3W1: string | false;
|
|
506
517
|
connect: boolean;
|
|
507
518
|
};
|
|
508
519
|
decimals: number;
|
|
@@ -536,6 +547,7 @@ export declare const getAllNetworks: () => (({
|
|
|
536
547
|
T2B1: string | false;
|
|
537
548
|
T3B1: string | false;
|
|
538
549
|
T3T1: string | false;
|
|
550
|
+
T3W1: string | false;
|
|
539
551
|
connect: boolean;
|
|
540
552
|
};
|
|
541
553
|
decimals: number;
|
|
@@ -593,6 +605,7 @@ export declare const getAllNetworks: () => (({
|
|
|
593
605
|
T2B1: string | false;
|
|
594
606
|
T3B1: string | false;
|
|
595
607
|
T3T1: string | false;
|
|
608
|
+
T3W1: string | false;
|
|
596
609
|
connect: boolean;
|
|
597
610
|
};
|
|
598
611
|
decimals: number;
|
|
@@ -625,6 +638,7 @@ export declare const getAllNetworks: () => (({
|
|
|
625
638
|
T2B1: string | false;
|
|
626
639
|
T3B1: string | false;
|
|
627
640
|
T3T1: string | false;
|
|
641
|
+
T3W1: string | false;
|
|
628
642
|
connect: boolean;
|
|
629
643
|
};
|
|
630
644
|
decimals: number;
|
package/lib/data/config.d.ts
CHANGED
|
@@ -18,11 +18,6 @@ export declare const config: {
|
|
|
18
18
|
onionDomains: {
|
|
19
19
|
'trezor.io': string;
|
|
20
20
|
};
|
|
21
|
-
assets: {
|
|
22
|
-
name: string;
|
|
23
|
-
url: string;
|
|
24
|
-
}[];
|
|
25
|
-
messages: string;
|
|
26
21
|
supportedBrowsers: {
|
|
27
22
|
chrome: {
|
|
28
23
|
version: number;
|
|
@@ -66,9 +61,8 @@ export declare const config: {
|
|
|
66
61
|
min: {
|
|
67
62
|
T1B1: string;
|
|
68
63
|
T2T1: string;
|
|
69
|
-
T2B1?: undefined;
|
|
70
|
-
T3B1?: undefined;
|
|
71
64
|
T3T1?: undefined;
|
|
65
|
+
T2B1?: undefined;
|
|
72
66
|
};
|
|
73
67
|
max: undefined;
|
|
74
68
|
comment: string[];
|
|
@@ -78,9 +72,8 @@ export declare const config: {
|
|
|
78
72
|
min: {
|
|
79
73
|
T1B1: string;
|
|
80
74
|
T2T1: string;
|
|
81
|
-
T2B1?: undefined;
|
|
82
|
-
T3B1?: undefined;
|
|
83
75
|
T3T1?: undefined;
|
|
76
|
+
T2B1?: undefined;
|
|
84
77
|
};
|
|
85
78
|
comment: string[];
|
|
86
79
|
methods?: undefined;
|
|
@@ -91,9 +84,8 @@ export declare const config: {
|
|
|
91
84
|
min: {
|
|
92
85
|
T1B1: string;
|
|
93
86
|
T2T1: string;
|
|
94
|
-
T2B1?: undefined;
|
|
95
|
-
T3B1?: undefined;
|
|
96
87
|
T3T1?: undefined;
|
|
88
|
+
T2B1?: undefined;
|
|
97
89
|
};
|
|
98
90
|
comment: string[];
|
|
99
91
|
coin?: undefined;
|
|
@@ -104,9 +96,8 @@ export declare const config: {
|
|
|
104
96
|
min: {
|
|
105
97
|
T1B1: string;
|
|
106
98
|
T2T1: string;
|
|
107
|
-
T2B1?: undefined;
|
|
108
|
-
T3B1?: undefined;
|
|
109
99
|
T3T1?: undefined;
|
|
100
|
+
T2B1?: undefined;
|
|
110
101
|
};
|
|
111
102
|
comment: string[];
|
|
112
103
|
coin?: undefined;
|
|
@@ -118,9 +109,8 @@ export declare const config: {
|
|
|
118
109
|
min: {
|
|
119
110
|
T1B1: string;
|
|
120
111
|
T2T1: string;
|
|
121
|
-
T2B1?: undefined;
|
|
122
|
-
T3B1?: undefined;
|
|
123
112
|
T3T1?: undefined;
|
|
113
|
+
T2B1?: undefined;
|
|
124
114
|
};
|
|
125
115
|
comment: string[];
|
|
126
116
|
max?: undefined;
|
|
@@ -131,9 +121,8 @@ export declare const config: {
|
|
|
131
121
|
min: {
|
|
132
122
|
T1B1: string;
|
|
133
123
|
T2T1: string;
|
|
134
|
-
T2B1?: undefined;
|
|
135
|
-
T3B1?: undefined;
|
|
136
124
|
T3T1?: undefined;
|
|
125
|
+
T2B1?: undefined;
|
|
137
126
|
};
|
|
138
127
|
coin?: undefined;
|
|
139
128
|
max?: undefined;
|
|
@@ -143,9 +132,8 @@ export declare const config: {
|
|
|
143
132
|
min: {
|
|
144
133
|
T1B1: string;
|
|
145
134
|
T2T1: string;
|
|
146
|
-
T2B1: string;
|
|
147
|
-
T3B1: string;
|
|
148
135
|
T3T1: string;
|
|
136
|
+
T2B1?: undefined;
|
|
149
137
|
};
|
|
150
138
|
coin?: undefined;
|
|
151
139
|
max?: undefined;
|
|
@@ -156,8 +144,19 @@ export declare const config: {
|
|
|
156
144
|
min: {
|
|
157
145
|
T1B1: string;
|
|
158
146
|
T2T1: string;
|
|
147
|
+
T3T1?: undefined;
|
|
159
148
|
T2B1?: undefined;
|
|
160
|
-
|
|
149
|
+
};
|
|
150
|
+
coin?: undefined;
|
|
151
|
+
max?: undefined;
|
|
152
|
+
comment?: undefined;
|
|
153
|
+
capabilities?: undefined;
|
|
154
|
+
} | {
|
|
155
|
+
methods: string[];
|
|
156
|
+
min: {
|
|
157
|
+
T1B1: string;
|
|
158
|
+
T2T1: string;
|
|
159
|
+
T2B1: string;
|
|
161
160
|
T3T1?: undefined;
|
|
162
161
|
};
|
|
163
162
|
coin?: undefined;
|
|
@@ -170,8 +169,7 @@ export declare const config: {
|
|
|
170
169
|
T1B1: string;
|
|
171
170
|
T2T1: string;
|
|
172
171
|
T2B1: string;
|
|
173
|
-
|
|
174
|
-
T3T1: string;
|
|
172
|
+
T3T1?: undefined;
|
|
175
173
|
};
|
|
176
174
|
comment: string[];
|
|
177
175
|
coin?: undefined;
|
package/lib/data/config.js
CHANGED
|
@@ -66,41 +66,6 @@ exports.config = {
|
|
|
66
66
|
onionDomains: {
|
|
67
67
|
'trezor.io': 'trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad.onion',
|
|
68
68
|
},
|
|
69
|
-
assets: [
|
|
70
|
-
{
|
|
71
|
-
name: 'coins',
|
|
72
|
-
url: './data/coins.json',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: 'coinsEth',
|
|
76
|
-
url: './data/coins-eth.json',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'bridge',
|
|
80
|
-
url: './data/bridge/releases.json',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: 'firmware-t1b1',
|
|
84
|
-
url: './data/firmware/t1b1/releases.json',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'firmware-t2t1',
|
|
88
|
-
url: './data/firmware/t2t1/releases.json',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'firmware-t2b1',
|
|
92
|
-
url: './data/firmware/t2b1/releases.json',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'firmware-t3b1',
|
|
96
|
-
url: './data/firmware/t3b1/releases.json',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'firmware-t3t1',
|
|
100
|
-
url: './data/firmware/t3t1/releases.json',
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
messages: './data/messages/messages.json',
|
|
104
69
|
supportedBrowsers: {
|
|
105
70
|
chrome: {
|
|
106
71
|
version: 59,
|
|
@@ -254,7 +219,11 @@ exports.config = {
|
|
|
254
219
|
},
|
|
255
220
|
{
|
|
256
221
|
methods: ['showDeviceTutorial', 'authenticateDevice'],
|
|
257
|
-
min: {
|
|
222
|
+
min: {
|
|
223
|
+
T1B1: '0',
|
|
224
|
+
T2T1: '0',
|
|
225
|
+
T3T1: '2.8.0',
|
|
226
|
+
},
|
|
258
227
|
},
|
|
259
228
|
{
|
|
260
229
|
methods: ['rebootToBootloader'],
|
|
@@ -266,11 +235,19 @@ exports.config = {
|
|
|
266
235
|
},
|
|
267
236
|
{
|
|
268
237
|
methods: ['solanaGetPublicKey', 'solanaGetAddress', 'solanaSignTransaction'],
|
|
269
|
-
min: {
|
|
238
|
+
min: {
|
|
239
|
+
T1B1: '0',
|
|
240
|
+
T2T1: '2.6.4',
|
|
241
|
+
T2B1: '2.6.4',
|
|
242
|
+
},
|
|
270
243
|
},
|
|
271
244
|
{
|
|
272
245
|
capabilities: ['chunkify'],
|
|
273
|
-
min: {
|
|
246
|
+
min: {
|
|
247
|
+
T1B1: '0',
|
|
248
|
+
T2T1: '2.6.3',
|
|
249
|
+
T2B1: '2.6.3',
|
|
250
|
+
},
|
|
274
251
|
comment: [
|
|
275
252
|
"Since firmware 2.6.3 there is a new protobuf field 'chunkify' in almost all getAddress and signTx methods",
|
|
276
253
|
],
|
|
@@ -281,8 +258,6 @@ exports.config = {
|
|
|
281
258
|
T1B1: '0',
|
|
282
259
|
T2T1: '2.7.0',
|
|
283
260
|
T2B1: '2.7.0',
|
|
284
|
-
T3B1: '2.8.1',
|
|
285
|
-
T3T1: '2.7.2',
|
|
286
261
|
},
|
|
287
262
|
},
|
|
288
263
|
],
|
|
@@ -21,6 +21,8 @@ const initialSettings = {
|
|
|
21
21
|
timestamp: new Date().getTime(),
|
|
22
22
|
interactionTimeout: 600,
|
|
23
23
|
sharedLogger: true,
|
|
24
|
+
deeplinkUrl: `${version_1.DEFAULT_DOMAIN}deeplink/${version_1.DEEPLINK_VERSION}/`,
|
|
25
|
+
transportReconnect: true,
|
|
24
26
|
};
|
|
25
27
|
const parseManifest = (manifest) => {
|
|
26
28
|
if (!manifest)
|
|
@@ -71,12 +73,10 @@ const parseConnectSettings = (input = {}) => {
|
|
|
71
73
|
settings.iframeSrc = `${src}iframe.html`;
|
|
72
74
|
settings.popupSrc = `${src}popup.html`;
|
|
73
75
|
settings.webusbSrc = `${src}webusb.html`;
|
|
76
|
+
settings.deeplinkUrl = `${src}deeplink/${version_1.DEEPLINK_VERSION}/`;
|
|
74
77
|
if (typeof input.transportReconnect === 'boolean') {
|
|
75
78
|
settings.transportReconnect = input.transportReconnect;
|
|
76
79
|
}
|
|
77
|
-
if (typeof input.webusb === 'boolean') {
|
|
78
|
-
settings.webusb = input.webusb;
|
|
79
|
-
}
|
|
80
80
|
if (Array.isArray(input.transports)) {
|
|
81
81
|
settings.transports = input.transports;
|
|
82
82
|
}
|
|
@@ -114,9 +114,15 @@ const parseConnectSettings = (input = {}) => {
|
|
|
114
114
|
if (typeof input._extendWebextensionLifetime === 'boolean') {
|
|
115
115
|
settings._extendWebextensionLifetime = input._extendWebextensionLifetime;
|
|
116
116
|
}
|
|
117
|
-
if (typeof input._sessionsBackgroundUrl === 'string') {
|
|
117
|
+
if (typeof input._sessionsBackgroundUrl === 'string' || input._sessionsBackgroundUrl === null) {
|
|
118
118
|
settings._sessionsBackgroundUrl = input._sessionsBackgroundUrl;
|
|
119
119
|
}
|
|
120
|
+
if (typeof input.binFilesBaseUrl === 'string') {
|
|
121
|
+
settings.binFilesBaseUrl = input.binFilesBaseUrl;
|
|
122
|
+
}
|
|
123
|
+
if (typeof input.enableFirmwareHashCheck === 'boolean') {
|
|
124
|
+
settings.enableFirmwareHashCheck = Boolean(input.enableFirmwareHashCheck);
|
|
125
|
+
}
|
|
120
126
|
return settings;
|
|
121
127
|
};
|
|
122
128
|
exports.parseConnectSettings = parseConnectSettings;
|
|
@@ -48,6 +48,12 @@ exports.deviceAuthenticityConfig = {
|
|
|
48
48
|
'04c243743ba6326a443c34d503ea5d2d3036e1fbc8dbb072d4ae0f9b8016910db38e234641b87557fb44bcddee612722a67831bbac9758982a5843d9077be9434d',
|
|
49
49
|
'04f1a32b84249a4b909974e32b33cc78aeef8144ef57744e792e6203fb8acce348f0d5d5535ed9a65ac741744a264de2073e49dbcd989819cddc90285b5e97a28a',
|
|
50
50
|
'04894fa385d11809244da4f3d7de8ddd70c25abd5d4d3054b438d09016f2fd0a98729e15ea1483fbde83489fec6c64f8be014db8dc22227babcecdb5fd996ea671',
|
|
51
|
+
'0488c8f35649583d68c01c3b34223f11cc61389bcc71707960a6b1c30854ac1a0b5da916c47ee4cb1a78a9bac3d602aec67a5cd49b34732b6d1cc4fb2cb6b04361',
|
|
52
|
+
'04e4be5f15b528c594bfe732e4fcae4e65d63580051bb0235e6c1ca91c2663d54afa4b873dfeacbc4df98c57a923f7b308277f9d6bd064e81ed8e6890a1c582532',
|
|
53
|
+
'041c6ff76562b8042cf0e678d4bf977da09947d531e628450acbda0f0609c242c63db0be7fa1c601940af499b455e207c252706b37487c41fa9086621c3bd5c131',
|
|
54
|
+
'041b31c4fc213b27a34106e5ee8c7516941fdf8b15e3410987592ee488081c8dde5f42d397901c6d8b1d029d89bd2286b9183091a1edf12914be29aea40968d039',
|
|
55
|
+
'045de24c0d64b611bee13f34d74a3df7b24a658e6fea1bf1b9b3b530c23177759ba757e86494ff51c688bd63c1c85e93148bd81f39c5db80d3b5a0c05a6da4f380',
|
|
56
|
+
'049fb194cd0f7d79b3aae0b681d9f324c3dd086bb3f568067070bed195e1d7f0c722f86f7f9476da68b4c57e42536e5ab8c7fc74ee4726208814897849cac77b47',
|
|
51
57
|
],
|
|
52
58
|
debug: {
|
|
53
59
|
rootPubKeys: [
|
|
@@ -92,6 +98,12 @@ exports.deviceAuthenticityConfig = {
|
|
|
92
98
|
'04903be00e4c5561413513eec337f0a6bec4968711de83242856e6b2bf1f06b26732b7bb1322a817448c03fc2f312318af67be580add0768179ce1af1f5e777bd0',
|
|
93
99
|
'0464f0ef96854bc7f081396ce7a2c75df4208f551c19d27f5a81238d47b842df800383a736a1b5b1c9e1e458d05ea1584e12278ab5e1252a098820251b37917c22',
|
|
94
100
|
'0401f3f804333b4d0caa18d27dfc0698dbc11c33b703019018e5819734ef2551615ba6915e6119bd7d36c035553ea660f1ccf7c34e2375e8e1ddf0a471b76707fd',
|
|
101
|
+
'04b427eb0e1484b7127f82820edddbbb538c11d3c330b5f68acef96c8cf4601b30390311f2d48090f3f5c5e4bf56ca0396984797cd92ab0d12164600c9f43d2ba3',
|
|
102
|
+
'0438e670e9eb3cd19f8579b3202caf9aa766c8d5735ab97bd3682155437499e062587bded86c732789345538581c83e9e42af0a15a4ad81bc42e1f28a7859ebce0',
|
|
103
|
+
'04ac2a7e88ffc08186b3cb461966a96cacdb2c07b383018d708a6f0ce0b74f59dca97a6f31fc8d243a781c7fe5006dc6b8ef05347972082b32fb29c636c595ffbc',
|
|
104
|
+
'047c32e92dc23894b60b6c182f589a12e4e57f82e48176936f56646c14dd8f0d300fd4737e17501d71deb84127c272c5b797ccf30a7a4531846b9c79866f2892c6',
|
|
105
|
+
'046482d01c4dbdac60327352d150b5e6d5772cd68732616a0abc5649c49111bc3ba0eb28aa424100efa27cdb98675395df4b9097097e92adecc39f5587306a9fac',
|
|
106
|
+
'04f96a9fdecc4247c67e083a69037d1794230441270e4bda6d4151eb2e385d576d046d36734dd262e45c8cf3bbe24bdd11c1dc0e58437107d55cea3942f14b7d61',
|
|
95
107
|
],
|
|
96
108
|
debug: {
|
|
97
109
|
rootPubKeys: [
|
|
@@ -102,5 +114,13 @@ exports.deviceAuthenticityConfig = {
|
|
|
102
114
|
],
|
|
103
115
|
},
|
|
104
116
|
},
|
|
117
|
+
T3W1: {
|
|
118
|
+
rootPubKeys: ['you shall not pass'],
|
|
119
|
+
caPubKeys: ['you shall not pass'],
|
|
120
|
+
debug: {
|
|
121
|
+
rootPubKeys: ['you shall not pass'],
|
|
122
|
+
caPubKeys: ['you shall not pass'],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
105
125
|
};
|
|
106
126
|
//# sourceMappingURL=deviceAuthenticityConfig.js.map
|
|
@@ -1,38 +1,47 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
2
|
export type DeviceAuthenticityConfig = Static<typeof DeviceAuthenticityConfig>;
|
|
3
|
-
export declare const DeviceAuthenticityConfig: import("@
|
|
4
|
-
T2B1: import("@
|
|
5
|
-
rootPubKeys: import("@
|
|
6
|
-
caPubKeys: import("@
|
|
3
|
+
export declare const DeviceAuthenticityConfig: import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
4
|
+
T2B1: import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
5
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
6
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
7
7
|
}>, import("@trezor/schema-utils").TObject<{
|
|
8
|
-
debug: import("@
|
|
9
|
-
rootPubKeys: import("@
|
|
10
|
-
caPubKeys: import("@
|
|
8
|
+
debug: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
9
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
10
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
11
11
|
}>>;
|
|
12
12
|
}>]>;
|
|
13
|
-
T3B1: import("@
|
|
14
|
-
rootPubKeys: import("@
|
|
15
|
-
caPubKeys: import("@
|
|
13
|
+
T3B1: import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
14
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
15
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
16
16
|
}>, import("@trezor/schema-utils").TObject<{
|
|
17
|
-
debug: import("@
|
|
18
|
-
rootPubKeys: import("@
|
|
19
|
-
caPubKeys: import("@
|
|
17
|
+
debug: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
18
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
19
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
20
20
|
}>>;
|
|
21
21
|
}>]>;
|
|
22
|
-
T3T1: import("@
|
|
23
|
-
rootPubKeys: import("@
|
|
24
|
-
caPubKeys: import("@
|
|
22
|
+
T3T1: import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
23
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
24
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
25
25
|
}>, import("@trezor/schema-utils").TObject<{
|
|
26
|
-
debug: import("@
|
|
27
|
-
rootPubKeys: import("@
|
|
28
|
-
caPubKeys: import("@
|
|
26
|
+
debug: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
27
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
28
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
29
|
+
}>>;
|
|
30
|
+
}>]>;
|
|
31
|
+
T3W1: import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
32
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
33
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
34
|
+
}>, import("@trezor/schema-utils").TObject<{
|
|
35
|
+
debug: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
36
|
+
rootPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
37
|
+
caPubKeys: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TString>;
|
|
29
38
|
}>>;
|
|
30
39
|
}>]>;
|
|
31
40
|
}>, import("@trezor/schema-utils").TObject<{
|
|
32
|
-
T1B1: import("@
|
|
33
|
-
T2T1: import("@
|
|
41
|
+
T1B1: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUndefined>;
|
|
42
|
+
T2T1: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUndefined>;
|
|
34
43
|
}>]>, import("@trezor/schema-utils").TObject<{
|
|
35
|
-
version: import("@
|
|
36
|
-
timestamp: import("@
|
|
44
|
+
version: import("@trezor/schema-utils").TNumber;
|
|
45
|
+
timestamp: import("@trezor/schema-utils").TString;
|
|
37
46
|
}>]>;
|
|
38
47
|
//# sourceMappingURL=deviceAuthenticityConfigTypes.d.ts.map
|
|
@@ -7,6 +7,6 @@ export interface GetInfoProps {
|
|
|
7
7
|
releases: FirmwareRelease[];
|
|
8
8
|
}
|
|
9
9
|
export declare const getInfo: ({ features, releases }: GetInfoProps) => ReleaseInfo | null;
|
|
10
|
-
export declare const getFirmwareStatus: (features: Features) => "valid" | "outdated" | "required" | "unknown" | "custom"
|
|
10
|
+
export declare const getFirmwareStatus: (features: Features) => "none" | "valid" | "outdated" | "required" | "unknown" | "custom";
|
|
11
11
|
export declare const getRelease: (features: Features) => ReleaseInfo | null;
|
|
12
12
|
//# sourceMappingURL=firmwareInfo.d.ts.map
|
package/lib/data/models.d.ts
CHANGED
package/lib/data/models.js
CHANGED
|
@@ -31,5 +31,14 @@ exports.models = {
|
|
|
31
31
|
'4': 'Bitcoin Orange',
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
|
+
T3W1: {
|
|
35
|
+
name: 'Trezor Safe 7',
|
|
36
|
+
colors: {
|
|
37
|
+
'1': 'Fantastic Ethereum',
|
|
38
|
+
'2': 'Lunatic Dogecoin',
|
|
39
|
+
'3': 'Galactic Litecoin',
|
|
40
|
+
'4': 'Majestic Bitcoin',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
34
43
|
};
|
|
35
44
|
//# sourceMappingURL=models.js.map
|
package/lib/data/version.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const VERSION = "9.4.2";
|
|
1
|
+
export declare const VERSION = "9.4.3-beta.2";
|
|
2
2
|
export declare const DEFAULT_DOMAIN: string;
|
|
3
3
|
export declare const CONTENT_SCRIPT_VERSION = 1;
|
|
4
|
+
export declare const DEEPLINK_VERSION = 1;
|
|
4
5
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/data/version.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONTENT_SCRIPT_VERSION = exports.DEFAULT_DOMAIN = exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '9.4.2';
|
|
3
|
+
exports.DEEPLINK_VERSION = exports.CONTENT_SCRIPT_VERSION = exports.DEFAULT_DOMAIN = exports.VERSION = void 0;
|
|
4
|
+
exports.VERSION = '9.4.3-beta.2';
|
|
5
5
|
const versionN = exports.VERSION.split('.').map(s => parseInt(s, 10));
|
|
6
6
|
const isBeta = exports.VERSION.includes('beta');
|
|
7
7
|
exports.DEFAULT_DOMAIN = isBeta
|
|
8
8
|
? `https://connect.trezor.io/${exports.VERSION}/`
|
|
9
9
|
: `https://connect.trezor.io/${versionN[0]}/`;
|
|
10
10
|
exports.CONTENT_SCRIPT_VERSION = 1;
|
|
11
|
+
exports.DEEPLINK_VERSION = 1;
|
|
11
12
|
//# sourceMappingURL=version.js.map
|