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