@ukeyfe/hardware-core 1.1.30 → 1.1.32
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/__tests__/evmSignTransaction.test.ts +4 -1
- package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
- package/dist/api/aptos/AptosSignInMessage.d.ts +4 -1
- package/dist/api/aptos/AptosSignInMessage.d.ts.map +1 -1
- package/dist/api/aptos/AptosSignTransaction.d.ts +4 -1
- package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -1
- package/dist/api/benfen/BenfenGetAddress.d.ts +4 -1
- package/dist/api/benfen/BenfenGetAddress.d.ts.map +1 -1
- package/dist/api/benfen/BenfenGetPublicKey.d.ts +4 -1
- package/dist/api/benfen/BenfenGetPublicKey.d.ts.map +1 -1
- package/dist/api/benfen/BenfenSignMessage.d.ts +4 -1
- package/dist/api/benfen/BenfenSignMessage.d.ts.map +1 -1
- package/dist/api/benfen/BenfenSignTransaction.d.ts +4 -1
- package/dist/api/benfen/BenfenSignTransaction.d.ts.map +1 -1
- package/dist/api/btc/BTCSignMessage.d.ts +4 -1
- package/dist/api/btc/BTCSignMessage.d.ts.map +1 -1
- package/dist/api/btc/BTCSignPsbt.d.ts +4 -1
- package/dist/api/btc/BTCSignPsbt.d.ts.map +1 -1
- package/dist/api/cardano/CardanoSignMessage.d.ts +4 -1
- package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -1
- package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -1
- package/dist/api/evm/EVMSignTransaction.d.ts +6 -2
- package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -1
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
- package/dist/api/kaspa/KaspaGetAddress.d.ts +4 -1
- package/dist/api/kaspa/KaspaGetAddress.d.ts.map +1 -1
- package/dist/api/kaspa/KaspaSignTransaction.d.ts +4 -1
- package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -1
- package/dist/api/neo/NeoGetAddress.d.ts +4 -1
- package/dist/api/neo/NeoGetAddress.d.ts.map +1 -1
- package/dist/api/neo/NeoSignTransaction.d.ts +4 -1
- package/dist/api/neo/NeoSignTransaction.d.ts.map +1 -1
- package/dist/api/solana/SolSignMessage.d.ts +4 -1
- package/dist/api/solana/SolSignMessage.d.ts.map +1 -1
- package/dist/api/solana/SolSignOffchainMessage.d.ts +4 -1
- package/dist/api/solana/SolSignOffchainMessage.d.ts.map +1 -1
- package/dist/api/ton/TonSignMessage.d.ts.map +1 -1
- package/dist/api/tron/TronSignMessage.d.ts +4 -1
- package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
- package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
- package/dist/data-manager/DataManager.d.ts.map +1 -1
- package/dist/device/Device.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +205 -84
- package/dist/types/device.d.ts +1 -1
- package/dist/types/device.d.ts.map +1 -1
- package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
- package/dist/utils/deviceSettings.d.ts.map +1 -1
- package/dist/utils/homescreen.d.ts +1 -1
- package/dist/utils/homescreen.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/api/FirmwareUpdateV2.ts +5 -4
- package/src/api/FirmwareUpdateV3.ts +2 -2
- package/src/api/allnetwork/AllNetworkGetAddressBase.ts +1 -1
- package/src/api/aptos/AptosSignInMessage.ts +4 -1
- package/src/api/aptos/AptosSignTransaction.ts +4 -1
- package/src/api/benfen/BenfenGetAddress.ts +4 -1
- package/src/api/benfen/BenfenGetPublicKey.ts +4 -1
- package/src/api/benfen/BenfenSignMessage.ts +4 -1
- package/src/api/benfen/BenfenSignTransaction.ts +4 -1
- package/src/api/btc/BTCSignMessage.ts +4 -1
- package/src/api/btc/BTCSignPsbt.ts +4 -1
- package/src/api/cardano/CardanoSignMessage.ts +4 -1
- package/src/api/cardano/CardanoSignTransaction.ts +4 -1
- package/src/api/device/DeviceFullyUploadResource.ts +1 -1
- package/src/api/device/DeviceUploadResource.ts +1 -1
- package/src/api/evm/EVMSignTransaction.ts +4 -1
- package/src/api/evm/EVMSignTypedData.ts +2 -2
- package/src/api/evm/latest/signTypedHash.ts +2 -2
- package/src/api/evm/legacyV1/signTypedHash.ts +2 -2
- package/src/api/firmware/FirmwareUpdateBaseMethod.ts +4 -3
- package/src/api/kaspa/KaspaGetAddress.ts +4 -1
- package/src/api/kaspa/KaspaSignTransaction.ts +4 -1
- package/src/api/neo/NeoGetAddress.ts +4 -1
- package/src/api/neo/NeoSignTransaction.ts +4 -1
- package/src/api/solana/SolSignMessage.ts +4 -1
- package/src/api/solana/SolSignOffchainMessage.ts +4 -1
- package/src/api/ton/TonSignMessage.ts +12 -3
- package/src/api/tron/TronSignMessage.ts +4 -1
- package/src/api/tron/TronSignTransaction.ts +8 -2
- package/src/core/index.ts +1 -1
- package/src/data/messages/messages.json +3 -2
- package/src/data-manager/DataManager.ts +12 -7
- package/src/data-manager/MessagesConfig.ts +1 -1
- package/src/device/Device.ts +6 -2
- package/src/types/device.ts +6 -4
- package/src/types/settings.ts +1 -1
- package/src/utils/deviceFeaturesUtils.ts +12 -12
- package/src/utils/deviceInfoUtils.ts +15 -5
- package/src/utils/deviceSettings.ts +6 -3
- package/src/utils/deviceVersionUtils.ts +1 -1
- package/src/utils/homescreen.ts +30 -8
package/dist/index.js
CHANGED
|
@@ -1151,7 +1151,7 @@ const DeviceModelToTypes = {
|
|
|
1151
1151
|
hardwareShared.EDeviceType.ClassicPure,
|
|
1152
1152
|
hardwareShared.EDeviceType.Mini,
|
|
1153
1153
|
],
|
|
1154
|
-
model_touch: [hardwareShared.EDeviceType.Touch, hardwareShared.EDeviceType.
|
|
1154
|
+
model_touch: [hardwareShared.EDeviceType.Touch, hardwareShared.EDeviceType.Core26, hardwareShared.EDeviceType.Core27Pro],
|
|
1155
1155
|
model_classic: [hardwareShared.EDeviceType.Classic, hardwareShared.EDeviceType.Classic1s, hardwareShared.EDeviceType.ClassicPure],
|
|
1156
1156
|
model_classic1s: [hardwareShared.EDeviceType.Classic1s, hardwareShared.EDeviceType.ClassicPure],
|
|
1157
1157
|
};
|
|
@@ -1161,7 +1161,8 @@ const DeviceTypeToModels = {
|
|
|
1161
1161
|
[hardwareShared.EDeviceType.ClassicPure]: ['model_classic', 'model_mini', 'model_classic1s'],
|
|
1162
1162
|
[hardwareShared.EDeviceType.Mini]: ['model_mini'],
|
|
1163
1163
|
[hardwareShared.EDeviceType.Touch]: ['model_touch'],
|
|
1164
|
-
[hardwareShared.EDeviceType.
|
|
1164
|
+
[hardwareShared.EDeviceType.Core26]: ['model_touch'],
|
|
1165
|
+
[hardwareShared.EDeviceType.Core27Pro]: ['model_touch'],
|
|
1165
1166
|
[hardwareShared.EDeviceType.Unknown]: [],
|
|
1166
1167
|
};
|
|
1167
1168
|
|
|
@@ -1180,8 +1181,10 @@ const getDeviceType = (features) => {
|
|
|
1180
1181
|
return hardwareShared.EDeviceType.Mini;
|
|
1181
1182
|
case 'TOUCH':
|
|
1182
1183
|
return hardwareShared.EDeviceType.Touch;
|
|
1183
|
-
case '
|
|
1184
|
-
return hardwareShared.EDeviceType.
|
|
1184
|
+
case 'CORE26':
|
|
1185
|
+
return hardwareShared.EDeviceType.Core26;
|
|
1186
|
+
case 'CORE27PRO':
|
|
1187
|
+
return hardwareShared.EDeviceType.Core27Pro;
|
|
1185
1188
|
case 'PURE':
|
|
1186
1189
|
return hardwareShared.EDeviceType.ClassicPure;
|
|
1187
1190
|
default:
|
|
@@ -1206,8 +1209,10 @@ const getDeviceType = (features) => {
|
|
|
1206
1209
|
return hardwareShared.EDeviceType.Mini;
|
|
1207
1210
|
if (miniFlag.toLowerCase() === 'tc')
|
|
1208
1211
|
return hardwareShared.EDeviceType.Touch;
|
|
1209
|
-
if (miniFlag.toLowerCase() === '
|
|
1210
|
-
return hardwareShared.EDeviceType.
|
|
1212
|
+
if (miniFlag.toLowerCase() === 'c6')
|
|
1213
|
+
return hardwareShared.EDeviceType.Core26;
|
|
1214
|
+
if (miniFlag.toLowerCase() === 'c7')
|
|
1215
|
+
return hardwareShared.EDeviceType.Core27Pro;
|
|
1211
1216
|
return hardwareShared.EDeviceType.Unknown;
|
|
1212
1217
|
};
|
|
1213
1218
|
const getDeviceTypeByBleName = (name) => {
|
|
@@ -1221,8 +1226,10 @@ const getDeviceTypeByBleName = (name) => {
|
|
|
1221
1226
|
return hardwareShared.EDeviceType.Touch;
|
|
1222
1227
|
if (name.startsWith('Touch'))
|
|
1223
1228
|
return hardwareShared.EDeviceType.Touch;
|
|
1224
|
-
if (name.startsWith('
|
|
1225
|
-
return hardwareShared.EDeviceType.
|
|
1229
|
+
if (name.startsWith('Core26'))
|
|
1230
|
+
return hardwareShared.EDeviceType.Core26;
|
|
1231
|
+
if (name.startsWith('Core27'))
|
|
1232
|
+
return hardwareShared.EDeviceType.Core27Pro;
|
|
1226
1233
|
return hardwareShared.EDeviceType.Unknown;
|
|
1227
1234
|
};
|
|
1228
1235
|
const getDeviceBleName = (features) => {
|
|
@@ -1249,6 +1256,12 @@ const getDeviceLabel = (features) => {
|
|
|
1249
1256
|
if (deviceType === hardwareShared.EDeviceType.ClassicPure) {
|
|
1250
1257
|
return 'UKey Classic 1S';
|
|
1251
1258
|
}
|
|
1259
|
+
if (deviceType === hardwareShared.EDeviceType.Core26) {
|
|
1260
|
+
return 'UKey Core 26';
|
|
1261
|
+
}
|
|
1262
|
+
if (deviceType === hardwareShared.EDeviceType.Core27Pro) {
|
|
1263
|
+
return 'UKey Core 27 Pro';
|
|
1264
|
+
}
|
|
1252
1265
|
return `UKey ${deviceType.charAt(0).toUpperCase() + deviceType.slice(1)}`;
|
|
1253
1266
|
};
|
|
1254
1267
|
const getMethodVersionRange = (features, getVersionRange) => {
|
|
@@ -7702,8 +7715,9 @@ var nested$1 = {
|
|
|
7702
7715
|
CLASSIC1S: 1,
|
|
7703
7716
|
MINI: 2,
|
|
7704
7717
|
TOUCH: 3,
|
|
7705
|
-
|
|
7706
|
-
PURE: 6
|
|
7718
|
+
CORE26: 5,
|
|
7719
|
+
PURE: 6,
|
|
7720
|
+
CORE27PRO: 7
|
|
7707
7721
|
}
|
|
7708
7722
|
},
|
|
7709
7723
|
UKeySeType: {
|
|
@@ -25173,6 +25187,7 @@ class DataManager {
|
|
|
25173
25187
|
return enrichedData;
|
|
25174
25188
|
}
|
|
25175
25189
|
static load(settings) {
|
|
25190
|
+
var _b, _c;
|
|
25176
25191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25177
25192
|
this.settings = settings;
|
|
25178
25193
|
if (!settings.fetchConfig) {
|
|
@@ -25222,7 +25237,8 @@ class DataManager {
|
|
|
25222
25237
|
[hardwareShared.EDeviceType.ClassicPure]: this.enrichFirmwareReleaseInfo(data.classicpure),
|
|
25223
25238
|
[hardwareShared.EDeviceType.Mini]: this.enrichFirmwareReleaseInfo(data.mini),
|
|
25224
25239
|
[hardwareShared.EDeviceType.Touch]: this.enrichFirmwareReleaseInfo(data.touch),
|
|
25225
|
-
[hardwareShared.EDeviceType.
|
|
25240
|
+
[hardwareShared.EDeviceType.Core26]: this.enrichFirmwareReleaseInfo((_b = data.core26) !== null && _b !== void 0 ? _b : data.pro),
|
|
25241
|
+
[hardwareShared.EDeviceType.Core27Pro]: this.enrichFirmwareReleaseInfo((_c = data.core27pro) !== null && _c !== void 0 ? _c : data.pro),
|
|
25226
25242
|
};
|
|
25227
25243
|
this.assets = {
|
|
25228
25244
|
bridge: data.bridge,
|
|
@@ -25279,7 +25295,11 @@ DataManager.deviceMap = {
|
|
|
25279
25295
|
firmware: [],
|
|
25280
25296
|
ble: [],
|
|
25281
25297
|
},
|
|
25282
|
-
[hardwareShared.EDeviceType.
|
|
25298
|
+
[hardwareShared.EDeviceType.Core26]: {
|
|
25299
|
+
firmware: [],
|
|
25300
|
+
ble: [],
|
|
25301
|
+
},
|
|
25302
|
+
[hardwareShared.EDeviceType.Core27Pro]: {
|
|
25283
25303
|
firmware: [],
|
|
25284
25304
|
ble: [],
|
|
25285
25305
|
},
|
|
@@ -25323,7 +25343,7 @@ DataManager.getSysResourcesLatestRelease = ({ features, forcedUpdateRes, firmwar
|
|
|
25323
25343
|
var _b, _c, _d;
|
|
25324
25344
|
const deviceType = getDeviceType(features);
|
|
25325
25345
|
const deviceFirmwareVersion = getDeviceFirmwareVersion(features);
|
|
25326
|
-
if (deviceType !== hardwareShared.EDeviceType.
|
|
25346
|
+
if (deviceType !== hardwareShared.EDeviceType.Core26 && deviceType !== hardwareShared.EDeviceType.Core27Pro && deviceType !== hardwareShared.EDeviceType.Touch)
|
|
25327
25347
|
return undefined;
|
|
25328
25348
|
const firmwareUpdateField = getFirmwareUpdateField({
|
|
25329
25349
|
features,
|
|
@@ -25342,7 +25362,7 @@ DataManager.getSysFullResource = (features, firmwareType) => {
|
|
|
25342
25362
|
const deviceType = getDeviceType(features);
|
|
25343
25363
|
if (deviceType === hardwareShared.EDeviceType.Unknown)
|
|
25344
25364
|
return undefined;
|
|
25345
|
-
if (deviceType !== hardwareShared.EDeviceType.
|
|
25365
|
+
if (deviceType !== hardwareShared.EDeviceType.Core26 && deviceType !== hardwareShared.EDeviceType.Core27Pro && deviceType !== hardwareShared.EDeviceType.Touch)
|
|
25346
25366
|
return undefined;
|
|
25347
25367
|
const firmwareUpdateField = getFirmwareUpdateField({
|
|
25348
25368
|
features,
|
|
@@ -25358,7 +25378,7 @@ DataManager.getBootloaderResource = (features, firmwareType) => {
|
|
|
25358
25378
|
const deviceType = getDeviceType(features);
|
|
25359
25379
|
if (deviceType === hardwareShared.EDeviceType.Unknown)
|
|
25360
25380
|
throw new Error('Device type is unknown');
|
|
25361
|
-
if (deviceType !== hardwareShared.EDeviceType.
|
|
25381
|
+
if (deviceType !== hardwareShared.EDeviceType.Core26 && deviceType !== hardwareShared.EDeviceType.Core27Pro && deviceType !== hardwareShared.EDeviceType.Touch)
|
|
25362
25382
|
return undefined;
|
|
25363
25383
|
const firmwareUpdateField = getFirmwareUpdateField({
|
|
25364
25384
|
features,
|
|
@@ -25533,7 +25553,7 @@ const supportInputPinOnSoftware = (features) => {
|
|
|
25533
25553
|
if (!features)
|
|
25534
25554
|
return { support: false };
|
|
25535
25555
|
const deviceType = getDeviceType(features);
|
|
25536
|
-
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.
|
|
25556
|
+
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) {
|
|
25537
25557
|
return { support: false };
|
|
25538
25558
|
}
|
|
25539
25559
|
const currentVersion = getDeviceFirmwareVersion(features).join('.');
|
|
@@ -25543,7 +25563,7 @@ const supportNewPassphrase = (features) => {
|
|
|
25543
25563
|
if (!features)
|
|
25544
25564
|
return { support: false };
|
|
25545
25565
|
const deviceType = getDeviceType(features);
|
|
25546
|
-
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.
|
|
25566
|
+
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) {
|
|
25547
25567
|
return { support: true };
|
|
25548
25568
|
}
|
|
25549
25569
|
const currentVersion = getDeviceFirmwareVersion(features).join('.');
|
|
@@ -25554,7 +25574,7 @@ const getPassphraseStateWithRefreshDeviceInfo = (device, options) => __awaiter(v
|
|
|
25554
25574
|
const { features, commands } = device;
|
|
25555
25575
|
const locked = (features === null || features === void 0 ? void 0 : features.unlocked) === false;
|
|
25556
25576
|
const { passphraseState, newSession, unlockedAttachPin } = yield getPassphraseState(features, commands, Object.assign({}, options));
|
|
25557
|
-
const isModeT = getDeviceType(features) === hardwareShared.EDeviceType.Touch || getDeviceType(features) === hardwareShared.EDeviceType.
|
|
25577
|
+
const isModeT = getDeviceType(features) === hardwareShared.EDeviceType.Touch || getDeviceType(features) === hardwareShared.EDeviceType.Core26 || getDeviceType(features) === hardwareShared.EDeviceType.Core27Pro;
|
|
25558
25578
|
const needRefreshWithPassphrase = passphraseState && (features === null || features === void 0 ? void 0 : features.passphrase_protection) !== true;
|
|
25559
25579
|
const needRefreshWithLocked = isModeT && locked;
|
|
25560
25580
|
if (needRefreshWithLocked || needRefreshWithPassphrase) {
|
|
@@ -25572,7 +25592,7 @@ const getPassphraseState = (features, commands, options) => __awaiter(void 0, vo
|
|
|
25572
25592
|
const deviceType = getDeviceType(features);
|
|
25573
25593
|
const supportAttachPinCapability = existCapability(features, hardwareTransport.Enum_Capability.Capability_AttachToPin);
|
|
25574
25594
|
const supportGetPassphraseState = supportAttachPinCapability ||
|
|
25575
|
-
(deviceType === hardwareShared.EDeviceType.
|
|
25595
|
+
((deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) && semver__default["default"].gte(firmwareVersion.join('.'), '4.15.0'));
|
|
25576
25596
|
if (supportGetPassphraseState) {
|
|
25577
25597
|
const { message, type } = yield commands.typedCall('GetPassphraseState', 'PassphraseState', {
|
|
25578
25598
|
passphrase_state: (options === null || options === void 0 ? void 0 : options.onlyMainPin) ? undefined : options === null || options === void 0 ? void 0 : options.expectPassphraseState,
|
|
@@ -25606,7 +25626,7 @@ const supportBatchPublicKey = (features, options) => {
|
|
|
25606
25626
|
return false;
|
|
25607
25627
|
const currentVersion = getDeviceFirmwareVersion(features).join('.');
|
|
25608
25628
|
const deviceType = getDeviceType(features);
|
|
25609
|
-
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) && deviceType === hardwareShared.EDeviceType.
|
|
25629
|
+
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) && (deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro)) {
|
|
25610
25630
|
return semver__default["default"].gte(currentVersion, '4.14.0');
|
|
25611
25631
|
}
|
|
25612
25632
|
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) && deviceType === hardwareShared.EDeviceType.Touch) {
|
|
@@ -25621,7 +25641,7 @@ const supportBatchPublicKey = (features, options) => {
|
|
|
25621
25641
|
if (options === null || options === void 0 ? void 0 : options.includeNode) {
|
|
25622
25642
|
return false;
|
|
25623
25643
|
}
|
|
25624
|
-
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.
|
|
25644
|
+
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) {
|
|
25625
25645
|
return semver__default["default"].gte(currentVersion, '3.1.0');
|
|
25626
25646
|
}
|
|
25627
25647
|
return semver__default["default"].gte(currentVersion, '2.6.0');
|
|
@@ -25663,7 +25683,7 @@ const getFirmwareUpdateField = ({ features, updateType, targetVersion, firmwareT
|
|
|
25663
25683
|
return 'firmware';
|
|
25664
25684
|
return latestFirmwareField;
|
|
25665
25685
|
}
|
|
25666
|
-
if (deviceType === hardwareShared.EDeviceType.
|
|
25686
|
+
if (deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) {
|
|
25667
25687
|
return latestFirmwareField;
|
|
25668
25688
|
}
|
|
25669
25689
|
return 'firmware';
|
|
@@ -25692,7 +25712,7 @@ const getFirmwareUpdateFieldArray = (features, updateType) => {
|
|
|
25692
25712
|
}
|
|
25693
25713
|
return ['firmware'];
|
|
25694
25714
|
}
|
|
25695
|
-
if (deviceType === '
|
|
25715
|
+
if (deviceType === 'core26' || deviceType === 'core27pro') {
|
|
25696
25716
|
return ['firmware-v8'];
|
|
25697
25717
|
}
|
|
25698
25718
|
return ['firmware'];
|
|
@@ -25923,7 +25943,8 @@ const getLanguageConfig = (deviceType) => {
|
|
|
25923
25943
|
keys = ['en', 'zh_cn', 'zh_hk', 'ja', 'pt_br', 'de', 'ko'];
|
|
25924
25944
|
break;
|
|
25925
25945
|
case hardwareShared.EDeviceType.Touch:
|
|
25926
|
-
case hardwareShared.EDeviceType.
|
|
25946
|
+
case hardwareShared.EDeviceType.Core26:
|
|
25947
|
+
case hardwareShared.EDeviceType.Core27Pro:
|
|
25927
25948
|
keys = Object.keys(LANGUAGE_LABELS);
|
|
25928
25949
|
break;
|
|
25929
25950
|
default:
|
|
@@ -25946,7 +25967,8 @@ const getAutoLockOptions = (_deviceType) => {
|
|
|
25946
25967
|
{ seconds: 0, minute: 0, hour: 0, day: 0 },
|
|
25947
25968
|
];
|
|
25948
25969
|
case hardwareShared.EDeviceType.Touch:
|
|
25949
|
-
case hardwareShared.EDeviceType.
|
|
25970
|
+
case hardwareShared.EDeviceType.Core26:
|
|
25971
|
+
case hardwareShared.EDeviceType.Core27Pro:
|
|
25950
25972
|
return [
|
|
25951
25973
|
{ seconds: 30, minute: 0, hour: 0, day: 0 },
|
|
25952
25974
|
{ seconds: 0, minute: 1, hour: 0, day: 0 },
|
|
@@ -25975,7 +25997,8 @@ const getAutoShutDownOptions = (_deviceType) => {
|
|
|
25975
25997
|
{ seconds: 0, minute: 0, hour: 0, day: 0 },
|
|
25976
25998
|
];
|
|
25977
25999
|
case hardwareShared.EDeviceType.Touch:
|
|
25978
|
-
case hardwareShared.EDeviceType.
|
|
26000
|
+
case hardwareShared.EDeviceType.Core26:
|
|
26001
|
+
case hardwareShared.EDeviceType.Core27Pro:
|
|
25979
26002
|
return [
|
|
25980
26003
|
{ seconds: 0, minute: 1, hour: 0, day: 0 },
|
|
25981
26004
|
{ seconds: 0, minute: 2, hour: 0, day: 0 },
|
|
@@ -26208,7 +26231,7 @@ const getTouchData = () => ({
|
|
|
26208
26231
|
'wallpaper-3': { name: 'wallpaper-3', hex: '77616c6c70617065722d332e706e67' },
|
|
26209
26232
|
'wallpaper-4': { name: 'wallpaper-4', hex: '77616c6c70617065722d342e706e67' },
|
|
26210
26233
|
});
|
|
26211
|
-
const
|
|
26234
|
+
const getCore26Data = () => ({
|
|
26212
26235
|
'wallpaper-1': { name: 'wallpaper-1', hex: '77616c6c70617065722d312e6a7067' },
|
|
26213
26236
|
'wallpaper-2': { name: 'wallpaper-2', hex: '77616c6c70617065722d322e6a7067' },
|
|
26214
26237
|
'wallpaper-3': { name: 'wallpaper-3', hex: '77616c6c70617065722d332e6a7067' },
|
|
@@ -26230,8 +26253,11 @@ const getHomeScreenHex = (deviceType, name) => {
|
|
|
26230
26253
|
case hardwareShared.EDeviceType.Touch:
|
|
26231
26254
|
data = getTouchData();
|
|
26232
26255
|
break;
|
|
26233
|
-
case hardwareShared.EDeviceType.
|
|
26234
|
-
data =
|
|
26256
|
+
case hardwareShared.EDeviceType.Core26:
|
|
26257
|
+
data = getCore26Data();
|
|
26258
|
+
break;
|
|
26259
|
+
case hardwareShared.EDeviceType.Core27Pro:
|
|
26260
|
+
data = getCore26Data();
|
|
26235
26261
|
break;
|
|
26236
26262
|
default:
|
|
26237
26263
|
data = {};
|
|
@@ -26252,15 +26278,28 @@ const getHomeScreenDefaultList = (features) => {
|
|
|
26252
26278
|
case hardwareShared.EDeviceType.Touch:
|
|
26253
26279
|
data = getTouchData();
|
|
26254
26280
|
break;
|
|
26255
|
-
case hardwareShared.EDeviceType.
|
|
26281
|
+
case hardwareShared.EDeviceType.Core26:
|
|
26256
26282
|
if (semver__default["default"].gte(deviceVersion, '4.10.0')) {
|
|
26257
|
-
data =
|
|
26283
|
+
data = getCore26Data();
|
|
26258
26284
|
}
|
|
26259
26285
|
else {
|
|
26260
|
-
data = Object.keys(
|
|
26286
|
+
data = Object.keys(getCore26Data())
|
|
26261
26287
|
.slice(0, 4)
|
|
26262
26288
|
.reduce((obj, key) => {
|
|
26263
|
-
obj[key] =
|
|
26289
|
+
obj[key] = getCore26Data()[key];
|
|
26290
|
+
return obj;
|
|
26291
|
+
}, {});
|
|
26292
|
+
}
|
|
26293
|
+
break;
|
|
26294
|
+
case hardwareShared.EDeviceType.Core27Pro:
|
|
26295
|
+
if (semver__default["default"].gte(deviceVersion, '4.10.0')) {
|
|
26296
|
+
data = getCore26Data();
|
|
26297
|
+
}
|
|
26298
|
+
else {
|
|
26299
|
+
data = Object.keys(getCore26Data())
|
|
26300
|
+
.slice(0, 4)
|
|
26301
|
+
.reduce((obj, key) => {
|
|
26302
|
+
obj[key] = getCore26Data()[key];
|
|
26264
26303
|
return obj;
|
|
26265
26304
|
}, {});
|
|
26266
26305
|
}
|
|
@@ -26279,7 +26318,14 @@ const getHomeScreenSize = ({ deviceType, homeScreenType, thumbnail, }) => {
|
|
|
26279
26318
|
},
|
|
26280
26319
|
full: { width: 480, height: 800 },
|
|
26281
26320
|
},
|
|
26282
|
-
|
|
26321
|
+
core26: {
|
|
26322
|
+
thumbnail: {
|
|
26323
|
+
Nft: { width: 204, height: 204, radius: 20 },
|
|
26324
|
+
WallPaper: { width: 144, height: 240, radius: 20 },
|
|
26325
|
+
},
|
|
26326
|
+
full: { width: 480, height: 800 },
|
|
26327
|
+
},
|
|
26328
|
+
core27pro: {
|
|
26283
26329
|
thumbnail: {
|
|
26284
26330
|
Nft: { width: 204, height: 204, radius: 20 },
|
|
26285
26331
|
WallPaper: { width: 144, height: 240, radius: 20 },
|
|
@@ -27747,7 +27793,8 @@ class Device extends events.exports {
|
|
|
27747
27793
|
hasUsePassphrase() {
|
|
27748
27794
|
var _a;
|
|
27749
27795
|
const isModeT = getDeviceType(this.features) === hardwareShared.EDeviceType.Touch ||
|
|
27750
|
-
getDeviceType(this.features) === hardwareShared.EDeviceType.
|
|
27796
|
+
getDeviceType(this.features) === hardwareShared.EDeviceType.Core26 ||
|
|
27797
|
+
getDeviceType(this.features) === hardwareShared.EDeviceType.Core27Pro;
|
|
27751
27798
|
const preCheckTouch = isModeT && ((_a = this.features) === null || _a === void 0 ? void 0 : _a.unlocked) === false;
|
|
27752
27799
|
return this.features && (!!this.features.passphrase_protection || preCheckTouch);
|
|
27753
27800
|
}
|
|
@@ -27765,7 +27812,10 @@ class Device extends events.exports {
|
|
|
27765
27812
|
}
|
|
27766
27813
|
supportUnlockVersionRange() {
|
|
27767
27814
|
return {
|
|
27768
|
-
|
|
27815
|
+
core26: {
|
|
27816
|
+
min: '4.15.0',
|
|
27817
|
+
},
|
|
27818
|
+
core27pro: {
|
|
27769
27819
|
min: '4.15.0',
|
|
27770
27820
|
},
|
|
27771
27821
|
};
|
|
@@ -28876,7 +28926,7 @@ class DeviceUploadResource extends BaseMethod {
|
|
|
28876
28926
|
response.applyScreen = true;
|
|
28877
28927
|
const firmwareVersion = getDeviceFirmwareVersion(this.device.features).join('.');
|
|
28878
28928
|
const deviceType = getDeviceType(this.device.features);
|
|
28879
|
-
if (deviceType === hardwareShared.EDeviceType.
|
|
28929
|
+
if ((deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) && semver__default["default"].gte(firmwareVersion, '4.17.0')) {
|
|
28880
28930
|
response.applyScreen = false;
|
|
28881
28931
|
}
|
|
28882
28932
|
return response;
|
|
@@ -29506,7 +29556,7 @@ class DeviceFullyUploadResource extends BaseMethod {
|
|
|
29506
29556
|
if (updateType !== 'firmware')
|
|
29507
29557
|
return false;
|
|
29508
29558
|
const deviceType = getDeviceType(features);
|
|
29509
|
-
const isTouchMode = deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.
|
|
29559
|
+
const isTouchMode = deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro;
|
|
29510
29560
|
const currentVersion = getDeviceFirmwareVersion(features).join('.');
|
|
29511
29561
|
return isTouchMode && semver__default["default"].gte(currentVersion, '3.4.0');
|
|
29512
29562
|
}
|
|
@@ -29615,7 +29665,7 @@ class FirmwareUpdateBaseMethod extends BaseMethod {
|
|
|
29615
29665
|
});
|
|
29616
29666
|
}
|
|
29617
29667
|
checkDeviceToBootloader(connectId) {
|
|
29618
|
-
var _a, _b;
|
|
29668
|
+
var _a, _b, _c;
|
|
29619
29669
|
this.checkPromise = hardwareShared.createDeferred();
|
|
29620
29670
|
const env = DataManager.getSettings('env');
|
|
29621
29671
|
const isBleReconnect = connectId && DataManager.isBleConnect(env);
|
|
@@ -29623,13 +29673,14 @@ class FirmwareUpdateBaseMethod extends BaseMethod {
|
|
|
29623
29673
|
let isFirstCheck = true;
|
|
29624
29674
|
let checkCount = 0;
|
|
29625
29675
|
let timeoutTimer;
|
|
29626
|
-
const
|
|
29627
|
-
getDeviceType((_b = this === null || this === void 0 ? void 0 : this.device) === null || _b === void 0 ? void 0 : _b.features) === hardwareShared.EDeviceType.
|
|
29676
|
+
const isTouchScreenDevice = getDeviceType((_a = this === null || this === void 0 ? void 0 : this.device) === null || _a === void 0 ? void 0 : _a.features) === hardwareShared.EDeviceType.Touch ||
|
|
29677
|
+
getDeviceType((_b = this === null || this === void 0 ? void 0 : this.device) === null || _b === void 0 ? void 0 : _b.features) === hardwareShared.EDeviceType.Core26 ||
|
|
29678
|
+
getDeviceType((_c = this === null || this === void 0 ? void 0 : this.device) === null || _c === void 0 ? void 0 : _c.features) === hardwareShared.EDeviceType.Core27Pro;
|
|
29628
29679
|
const intervalTimer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
|
|
29629
|
-
var
|
|
29680
|
+
var _d, _e, _f, _g;
|
|
29630
29681
|
checkCount += 1;
|
|
29631
29682
|
Log$7.log('FirmwareUpdateBaseMethod [checkDeviceToBootloader] isFirstCheck: ', isFirstCheck);
|
|
29632
|
-
if (
|
|
29683
|
+
if (isTouchScreenDevice && isFirstCheck) {
|
|
29633
29684
|
isFirstCheck = false;
|
|
29634
29685
|
Log$7.log('FirmwareUpdateBaseMethod [checkDeviceToBootloader] wait 3000ms');
|
|
29635
29686
|
yield wait(3000);
|
|
@@ -29648,17 +29699,17 @@ class FirmwareUpdateBaseMethod extends BaseMethod {
|
|
|
29648
29699
|
}
|
|
29649
29700
|
catch (e) {
|
|
29650
29701
|
Log$7.log('FirmwareUpdateBaseMethod [checkDeviceToBootloader] _promptDeviceInBootloaderForWebDevice failed: ', e);
|
|
29651
|
-
(
|
|
29702
|
+
(_d = this.checkPromise) === null || _d === void 0 ? void 0 : _d.reject(e);
|
|
29652
29703
|
}
|
|
29653
29704
|
return;
|
|
29654
29705
|
}
|
|
29655
29706
|
if (isBleReconnect) {
|
|
29656
29707
|
try {
|
|
29657
|
-
yield ((
|
|
29708
|
+
yield ((_e = this.device.deviceConnector) === null || _e === void 0 ? void 0 : _e.acquire(this.device.originalDescriptor.id, null, true));
|
|
29658
29709
|
yield this.device.initialize();
|
|
29659
|
-
if ((
|
|
29710
|
+
if ((_f = this.device.features) === null || _f === void 0 ? void 0 : _f.bootloader_mode) {
|
|
29660
29711
|
clearInterval(intervalTimer);
|
|
29661
|
-
(
|
|
29712
|
+
(_g = this.checkPromise) === null || _g === void 0 ? void 0 : _g.resolve(true);
|
|
29662
29713
|
}
|
|
29663
29714
|
}
|
|
29664
29715
|
catch (e) {
|
|
@@ -30213,7 +30264,7 @@ class FirmwareUpdateV2 extends BaseMethod {
|
|
|
30213
30264
|
});
|
|
30214
30265
|
}
|
|
30215
30266
|
checkDeviceToBootloader(connectId) {
|
|
30216
|
-
var _a, _b;
|
|
30267
|
+
var _a, _b, _c;
|
|
30217
30268
|
this.checkPromise = hardwareShared.createDeferred();
|
|
30218
30269
|
const env = DataManager.getSettings('env');
|
|
30219
30270
|
const isBleReconnect = connectId && DataManager.isBleConnect(env);
|
|
@@ -30221,13 +30272,14 @@ class FirmwareUpdateV2 extends BaseMethod {
|
|
|
30221
30272
|
let isFirstCheck = true;
|
|
30222
30273
|
let checkCount = 0;
|
|
30223
30274
|
let timeoutTimer;
|
|
30224
|
-
const
|
|
30225
|
-
getDeviceType((_b = this === null || this === void 0 ? void 0 : this.device) === null || _b === void 0 ? void 0 : _b.features) === hardwareShared.EDeviceType.
|
|
30275
|
+
const isTouchScreenDevice = getDeviceType((_a = this === null || this === void 0 ? void 0 : this.device) === null || _a === void 0 ? void 0 : _a.features) === hardwareShared.EDeviceType.Touch ||
|
|
30276
|
+
getDeviceType((_b = this === null || this === void 0 ? void 0 : this.device) === null || _b === void 0 ? void 0 : _b.features) === hardwareShared.EDeviceType.Core26 ||
|
|
30277
|
+
getDeviceType((_c = this === null || this === void 0 ? void 0 : this.device) === null || _c === void 0 ? void 0 : _c.features) === hardwareShared.EDeviceType.Core27Pro;
|
|
30226
30278
|
const intervalTimer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
|
|
30227
|
-
var
|
|
30279
|
+
var _d, _e, _f, _g;
|
|
30228
30280
|
checkCount += 1;
|
|
30229
30281
|
Log$5.log('FirmwareUpdateV2 [checkDeviceToBootloader] isFirstCheck: ', isFirstCheck);
|
|
30230
|
-
if (
|
|
30282
|
+
if (isTouchScreenDevice && isFirstCheck) {
|
|
30231
30283
|
isFirstCheck = false;
|
|
30232
30284
|
Log$5.log('FirmwareUpdateV2 [checkDeviceToBootloader] wait 3000ms');
|
|
30233
30285
|
yield wait(3000);
|
|
@@ -30248,17 +30300,17 @@ class FirmwareUpdateV2 extends BaseMethod {
|
|
|
30248
30300
|
}
|
|
30249
30301
|
catch (e) {
|
|
30250
30302
|
Log$5.log('FirmwareUpdateV2 [checkDeviceToBootloader] promptDeviceInBootloaderForWebDevice failed: ', e);
|
|
30251
|
-
(
|
|
30303
|
+
(_d = this.checkPromise) === null || _d === void 0 ? void 0 : _d.reject(e);
|
|
30252
30304
|
}
|
|
30253
30305
|
return;
|
|
30254
30306
|
}
|
|
30255
30307
|
if (isBleReconnect) {
|
|
30256
30308
|
try {
|
|
30257
|
-
yield ((
|
|
30309
|
+
yield ((_e = this.device.deviceConnector) === null || _e === void 0 ? void 0 : _e.acquire(this.device.originalDescriptor.id, null, true));
|
|
30258
30310
|
yield this.device.initialize();
|
|
30259
|
-
if ((
|
|
30311
|
+
if ((_f = this.device.features) === null || _f === void 0 ? void 0 : _f.bootloader_mode) {
|
|
30260
30312
|
clearInterval(intervalTimer);
|
|
30261
|
-
(
|
|
30313
|
+
(_g = this.checkPromise) === null || _g === void 0 ? void 0 : _g.resolve(true);
|
|
30262
30314
|
}
|
|
30263
30315
|
}
|
|
30264
30316
|
catch (e) {
|
|
@@ -30307,7 +30359,7 @@ class FirmwareUpdateV2 extends BaseMethod {
|
|
|
30307
30359
|
if (updateType !== 'firmware')
|
|
30308
30360
|
return false;
|
|
30309
30361
|
const deviceType = getDeviceType(features);
|
|
30310
|
-
const isTouchMode = deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.
|
|
30362
|
+
const isTouchMode = deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro;
|
|
30311
30363
|
const currentVersion = getDeviceFirmwareVersion(features).join('.');
|
|
30312
30364
|
return isTouchMode && semver__default["default"].gte(currentVersion, '3.2.0');
|
|
30313
30365
|
}
|
|
@@ -30508,8 +30560,8 @@ class FirmwareUpdateV3 extends FirmwareUpdateBaseMethod {
|
|
|
30508
30560
|
if (deviceType === hardwareShared.EDeviceType.Unknown) {
|
|
30509
30561
|
throw hardwareShared.ERRORS.TypedError(hardwareShared.HardwareErrorCode.RuntimeError, 'unknown device type');
|
|
30510
30562
|
}
|
|
30511
|
-
if (deviceType !== hardwareShared.EDeviceType.
|
|
30512
|
-
throw hardwareShared.ERRORS.TypedError(hardwareShared.HardwareErrorCode.RuntimeError, 'only
|
|
30563
|
+
if (deviceType !== hardwareShared.EDeviceType.Core26 && deviceType !== hardwareShared.EDeviceType.Core27Pro) {
|
|
30564
|
+
throw hardwareShared.ERRORS.TypedError(hardwareShared.HardwareErrorCode.RuntimeError, 'only Core 26/Core 27 Pro device is supported');
|
|
30513
30565
|
}
|
|
30514
30566
|
if (semver__default["default"].lt(bootloaderVersion, MIN_UPDATE_V3_BOOTLOADER_VERSION)) {
|
|
30515
30567
|
throw hardwareShared.ERRORS.TypedError(hardwareShared.HardwareErrorCode.RuntimeError, 'bootloader version needs to be updated');
|
|
@@ -32155,7 +32207,10 @@ class BTCSignMessage extends BaseMethod {
|
|
|
32155
32207
|
getVersionRange() {
|
|
32156
32208
|
if (this.payload.dAppSignType) {
|
|
32157
32209
|
return {
|
|
32158
|
-
|
|
32210
|
+
core26: {
|
|
32211
|
+
min: '4.9.3',
|
|
32212
|
+
},
|
|
32213
|
+
core27pro: {
|
|
32159
32214
|
min: '4.9.3',
|
|
32160
32215
|
},
|
|
32161
32216
|
};
|
|
@@ -32187,7 +32242,10 @@ class BTCSignPsbt extends BaseMethod {
|
|
|
32187
32242
|
}
|
|
32188
32243
|
getVersionRange() {
|
|
32189
32244
|
return {
|
|
32190
|
-
|
|
32245
|
+
core26: {
|
|
32246
|
+
min: '4.9.3',
|
|
32247
|
+
},
|
|
32248
|
+
core27pro: {
|
|
32191
32249
|
min: '4.9.3',
|
|
32192
32250
|
},
|
|
32193
32251
|
model_classic1s: {
|
|
@@ -33334,7 +33392,10 @@ class EVMSignTransaction extends BaseMethod {
|
|
|
33334
33392
|
model_classic1s: {
|
|
33335
33393
|
min: '3.13.0',
|
|
33336
33394
|
},
|
|
33337
|
-
|
|
33395
|
+
core26: {
|
|
33396
|
+
min: '4.16.0',
|
|
33397
|
+
},
|
|
33398
|
+
core27pro: {
|
|
33338
33399
|
min: '4.16.0',
|
|
33339
33400
|
},
|
|
33340
33401
|
};
|
|
@@ -33379,7 +33440,7 @@ class EVMSignTransaction extends BaseMethod {
|
|
|
33379
33440
|
|
|
33380
33441
|
const signTypedHash$1 = ({ typedCall, addressN, device, chainId, domainHash, messageHash, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33381
33442
|
const deviceType = getDeviceType(device.features);
|
|
33382
|
-
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.
|
|
33443
|
+
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) {
|
|
33383
33444
|
const currentVersion = getDeviceFirmwareVersion(device.features).join('.');
|
|
33384
33445
|
const supportNestedArraysSignVersion = '4.2.0';
|
|
33385
33446
|
if (semver__default["default"].lt(currentVersion, supportNestedArraysSignVersion)) {
|
|
@@ -33396,7 +33457,7 @@ const signTypedHash$1 = ({ typedCall, addressN, device, chainId, domainHash, mes
|
|
|
33396
33457
|
|
|
33397
33458
|
const signTypedHash = ({ typedCall, addressN, device, chainId, domainHash, messageHash, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33398
33459
|
const deviceType = getDeviceType(device.features);
|
|
33399
|
-
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.
|
|
33460
|
+
if (deviceType === hardwareShared.EDeviceType.Touch || deviceType === hardwareShared.EDeviceType.Core26 || deviceType === hardwareShared.EDeviceType.Core27Pro) {
|
|
33400
33461
|
const currentVersion = getDeviceFirmwareVersion(device.features).join('.');
|
|
33401
33462
|
const supportNestedArraysSignVersion = '4.2.0';
|
|
33402
33463
|
if (semver__default["default"].lt(currentVersion, supportNestedArraysSignVersion)) {
|
|
@@ -34475,7 +34536,10 @@ class SolSignOffchainMessage extends BaseMethod {
|
|
|
34475
34536
|
}
|
|
34476
34537
|
getVersionRange() {
|
|
34477
34538
|
return {
|
|
34478
|
-
|
|
34539
|
+
core26: {
|
|
34540
|
+
min: '4.12.0',
|
|
34541
|
+
},
|
|
34542
|
+
core27pro: {
|
|
34479
34543
|
min: '4.12.0',
|
|
34480
34544
|
},
|
|
34481
34545
|
model_classic1s: {
|
|
@@ -34511,7 +34575,10 @@ class SolSignMessage extends BaseMethod {
|
|
|
34511
34575
|
}
|
|
34512
34576
|
getVersionRange() {
|
|
34513
34577
|
return {
|
|
34514
|
-
|
|
34578
|
+
core26: {
|
|
34579
|
+
min: '4.12.0',
|
|
34580
|
+
},
|
|
34581
|
+
core27pro: {
|
|
34515
34582
|
min: '4.12.0',
|
|
34516
34583
|
},
|
|
34517
34584
|
touch: {
|
|
@@ -34842,7 +34909,10 @@ class TronSignMessage extends BaseMethod {
|
|
|
34842
34909
|
}
|
|
34843
34910
|
getMessageV2VersionRange() {
|
|
34844
34911
|
return {
|
|
34845
|
-
|
|
34912
|
+
core26: {
|
|
34913
|
+
min: '4.16.0',
|
|
34914
|
+
},
|
|
34915
|
+
core27pro: {
|
|
34846
34916
|
min: '4.16.0',
|
|
34847
34917
|
},
|
|
34848
34918
|
touch: {
|
|
@@ -34991,7 +35061,10 @@ class TronSignTransaction extends BaseMethod {
|
|
|
34991
35061
|
}
|
|
34992
35062
|
getFixDataTypeVersionRange() {
|
|
34993
35063
|
return {
|
|
34994
|
-
|
|
35064
|
+
core26: {
|
|
35065
|
+
min: '4.13.0',
|
|
35066
|
+
},
|
|
35067
|
+
core27pro: {
|
|
34995
35068
|
min: '4.13.0',
|
|
34996
35069
|
},
|
|
34997
35070
|
touch: {
|
|
@@ -35009,7 +35082,10 @@ class TronSignTransaction extends BaseMethod {
|
|
|
35009
35082
|
}
|
|
35010
35083
|
supportDelegateResourceLockPeriodVersionRange() {
|
|
35011
35084
|
return {
|
|
35012
|
-
|
|
35085
|
+
core26: {
|
|
35086
|
+
min: '4.15.0',
|
|
35087
|
+
},
|
|
35088
|
+
core27pro: {
|
|
35013
35089
|
min: '4.15.0',
|
|
35014
35090
|
},
|
|
35015
35091
|
touch: {
|
|
@@ -35294,7 +35370,10 @@ class AptosSignTransaction extends BaseMethod {
|
|
|
35294
35370
|
}
|
|
35295
35371
|
getWithDataVersionRange() {
|
|
35296
35372
|
return {
|
|
35297
|
-
|
|
35373
|
+
core26: {
|
|
35374
|
+
min: '4.14.0',
|
|
35375
|
+
},
|
|
35376
|
+
core27pro: {
|
|
35298
35377
|
min: '4.14.0',
|
|
35299
35378
|
},
|
|
35300
35379
|
model_classic1s: {
|
|
@@ -35396,7 +35475,10 @@ class AptosSignInMessage extends BaseMethod {
|
|
|
35396
35475
|
}
|
|
35397
35476
|
getVersionRange() {
|
|
35398
35477
|
return {
|
|
35399
|
-
|
|
35478
|
+
core26: {
|
|
35479
|
+
min: '4.16.0',
|
|
35480
|
+
},
|
|
35481
|
+
core27pro: {
|
|
35400
35482
|
min: '4.16.0',
|
|
35401
35483
|
},
|
|
35402
35484
|
};
|
|
@@ -36793,7 +36875,10 @@ class CardanoSignTransaction extends BaseMethod {
|
|
|
36793
36875
|
return false;
|
|
36794
36876
|
};
|
|
36795
36877
|
this.supportConwayVersionRange = () => ({
|
|
36796
|
-
|
|
36878
|
+
core26: {
|
|
36879
|
+
min: '4.12.0',
|
|
36880
|
+
},
|
|
36881
|
+
core27pro: {
|
|
36797
36882
|
min: '4.12.0',
|
|
36798
36883
|
},
|
|
36799
36884
|
touch: {
|
|
@@ -37095,7 +37180,10 @@ class CardanoSignMessage extends BaseMethod {
|
|
|
37095
37180
|
}
|
|
37096
37181
|
getAddressTypeVersionRange() {
|
|
37097
37182
|
return {
|
|
37098
|
-
|
|
37183
|
+
core26: {
|
|
37184
|
+
min: '4.9.3',
|
|
37185
|
+
},
|
|
37186
|
+
core27pro: {
|
|
37099
37187
|
min: '4.9.3',
|
|
37100
37188
|
},
|
|
37101
37189
|
};
|
|
@@ -37423,7 +37511,10 @@ class KaspaGetAddress extends BaseMethod {
|
|
|
37423
37511
|
}
|
|
37424
37512
|
getUseTweakVersionRange() {
|
|
37425
37513
|
return {
|
|
37426
|
-
|
|
37514
|
+
core26: {
|
|
37515
|
+
min: '4.14.0',
|
|
37516
|
+
},
|
|
37517
|
+
core27pro: {
|
|
37427
37518
|
min: '4.14.0',
|
|
37428
37519
|
},
|
|
37429
37520
|
model_classic1s: {
|
|
@@ -37816,7 +37907,10 @@ class KaspaSignTransaction extends BaseMethod {
|
|
|
37816
37907
|
}
|
|
37817
37908
|
getUseTweakVersionRange() {
|
|
37818
37909
|
return {
|
|
37819
|
-
|
|
37910
|
+
core26: {
|
|
37911
|
+
min: '4.14.0',
|
|
37912
|
+
},
|
|
37913
|
+
core27pro: {
|
|
37820
37914
|
min: '4.14.0',
|
|
37821
37915
|
},
|
|
37822
37916
|
model_classic1s: {
|
|
@@ -38750,7 +38844,10 @@ class TonSignMessage extends BaseMethod {
|
|
|
38750
38844
|
}
|
|
38751
38845
|
getSupportJettonAmountBytesVersionRange() {
|
|
38752
38846
|
return {
|
|
38753
|
-
|
|
38847
|
+
core26: {
|
|
38848
|
+
min: '4.10.2',
|
|
38849
|
+
},
|
|
38850
|
+
core27pro: {
|
|
38754
38851
|
min: '4.10.2',
|
|
38755
38852
|
},
|
|
38756
38853
|
model_classic1s: {
|
|
@@ -38772,7 +38869,10 @@ class TonSignMessage extends BaseMethod {
|
|
|
38772
38869
|
}
|
|
38773
38870
|
getFixCommentErrorVersionRange() {
|
|
38774
38871
|
return {
|
|
38775
|
-
|
|
38872
|
+
core26: {
|
|
38873
|
+
min: '4.10.1',
|
|
38874
|
+
},
|
|
38875
|
+
core27pro: {
|
|
38776
38876
|
min: '4.10.1',
|
|
38777
38877
|
},
|
|
38778
38878
|
model_classic1s: {
|
|
@@ -38786,7 +38886,10 @@ class TonSignMessage extends BaseMethod {
|
|
|
38786
38886
|
}
|
|
38787
38887
|
getFixInitStateErrorVersionRange() {
|
|
38788
38888
|
return {
|
|
38789
|
-
|
|
38889
|
+
core26: {
|
|
38890
|
+
min: '4.13.0',
|
|
38891
|
+
},
|
|
38892
|
+
core27pro: {
|
|
38790
38893
|
min: '4.13.0',
|
|
38791
38894
|
},
|
|
38792
38895
|
model_classic1s: {
|
|
@@ -39256,7 +39359,10 @@ class BenfenGetAddress extends BaseMethod {
|
|
|
39256
39359
|
}
|
|
39257
39360
|
getVersionRange() {
|
|
39258
39361
|
return {
|
|
39259
|
-
|
|
39362
|
+
core26: {
|
|
39363
|
+
min: '4.12.0',
|
|
39364
|
+
},
|
|
39365
|
+
core27pro: {
|
|
39260
39366
|
min: '4.12.0',
|
|
39261
39367
|
},
|
|
39262
39368
|
model_classic1s: {
|
|
@@ -39344,7 +39450,10 @@ class BenfenGetPublicKey extends BaseMethod {
|
|
|
39344
39450
|
}
|
|
39345
39451
|
getVersionRange() {
|
|
39346
39452
|
return {
|
|
39347
|
-
|
|
39453
|
+
core26: {
|
|
39454
|
+
min: '4.12.0',
|
|
39455
|
+
},
|
|
39456
|
+
core27pro: {
|
|
39348
39457
|
min: '4.12.0',
|
|
39349
39458
|
},
|
|
39350
39459
|
model_classic1s: {
|
|
@@ -39384,7 +39493,10 @@ class BenfenSignMessage extends BaseMethod {
|
|
|
39384
39493
|
}
|
|
39385
39494
|
getVersionRange() {
|
|
39386
39495
|
return {
|
|
39387
|
-
|
|
39496
|
+
core26: {
|
|
39497
|
+
min: '4.12.0',
|
|
39498
|
+
},
|
|
39499
|
+
core27pro: {
|
|
39388
39500
|
min: '4.12.0',
|
|
39389
39501
|
},
|
|
39390
39502
|
model_classic1s: {
|
|
@@ -39437,7 +39549,10 @@ class BenfenSignTransaction extends BaseMethod {
|
|
|
39437
39549
|
}
|
|
39438
39550
|
getVersionRange() {
|
|
39439
39551
|
return {
|
|
39440
|
-
|
|
39552
|
+
core26: {
|
|
39553
|
+
min: '4.12.0',
|
|
39554
|
+
},
|
|
39555
|
+
core27pro: {
|
|
39441
39556
|
min: '4.12.0',
|
|
39442
39557
|
},
|
|
39443
39558
|
model_classic1s: {
|
|
@@ -39493,7 +39608,10 @@ class NeoGetAddress extends BaseMethod {
|
|
|
39493
39608
|
}
|
|
39494
39609
|
getVersionRange() {
|
|
39495
39610
|
return {
|
|
39496
|
-
|
|
39611
|
+
core26: {
|
|
39612
|
+
min: '4.12.0',
|
|
39613
|
+
},
|
|
39614
|
+
core27pro: {
|
|
39497
39615
|
min: '4.12.0',
|
|
39498
39616
|
},
|
|
39499
39617
|
model_classic1s: {
|
|
@@ -39547,7 +39665,10 @@ class NeoSignTransaction extends BaseMethod {
|
|
|
39547
39665
|
}
|
|
39548
39666
|
getVersionRange() {
|
|
39549
39667
|
return {
|
|
39550
|
-
|
|
39668
|
+
core26: {
|
|
39669
|
+
min: '4.12.0',
|
|
39670
|
+
},
|
|
39671
|
+
core27pro: {
|
|
39551
39672
|
min: '4.12.0',
|
|
39552
39673
|
},
|
|
39553
39674
|
model_classic1s: {
|