@onekeyfe/hd-web-sdk 0.1.7 → 0.1.10

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.
@@ -4122,6 +4122,10 @@ const inject = ({
4122
4122
  connectId,
4123
4123
  method: 'deviceUpdateReboot'
4124
4124
  }),
4125
+ deviceVerify: (connectId, params) => call(Object.assign(Object.assign({}, params), {
4126
+ connectId,
4127
+ method: 'deviceVerify'
4128
+ })),
4125
4129
  deviceWipe: connectId => call({
4126
4130
  connectId,
4127
4131
  method: 'deviceWipe'
@@ -4968,6 +4972,18 @@ const versionCompare = (a, b) => {
4968
4972
  return 0;
4969
4973
  };
4970
4974
 
4975
+ function patchFeatures(response) {
4976
+ if (response.type !== 'Features') {
4977
+ return response;
4978
+ }
4979
+
4980
+ if (response.message.major_version < 1) {
4981
+ response.message.major_version = 1;
4982
+ }
4983
+
4984
+ return response;
4985
+ }
4986
+
4971
4987
  const getDeviceModel = features => {
4972
4988
  if (!features || typeof features !== 'object') {
4973
4989
  return 'model_mini';
@@ -4992,6 +5008,18 @@ const getDeviceType = features => {
4992
5008
  return 'classic';
4993
5009
  };
4994
5010
 
5011
+ const getDeviceTypeOnBootloader = features => {
5012
+ if (!features || typeof features !== 'object') {
5013
+ return 'classic';
5014
+ }
5015
+
5016
+ if (features.model === 'T') {
5017
+ return 'touch';
5018
+ }
5019
+
5020
+ return getDeviceType(features);
5021
+ };
5022
+
4995
5023
  const getDeviceTypeByBleName = name => {
4996
5024
  if (!name) return 'classic';
4997
5025
  if (name.startsWith('MI')) return 'mini';
@@ -14132,7 +14160,8 @@ const UI_REQUEST$1 = {
14132
14160
  CLOSE_UI_WINDOW: 'ui-close_window',
14133
14161
  BLUETOOTH_PERMISSION: 'ui-bluetooth_permission',
14134
14162
  LOCATION_PERMISSION: 'ui-location_permission',
14135
- FIRMWARE_PROGRESS: 'ui-firmware-progress'
14163
+ FIRMWARE_PROGRESS: 'ui-firmware-progress',
14164
+ NOT_IN_BOOTLOADER: 'ui-device_not_in_bootloader_mode'
14136
14165
  };
14137
14166
 
14138
14167
  const createUiMessage = (type, payload) => ({
@@ -14310,7 +14339,7 @@ class DeviceCommands {
14310
14339
  }
14311
14340
 
14312
14341
  if (res.type === 'Features') {
14313
- return Promise.resolve(res);
14342
+ return Promise.resolve(patchFeatures(res));
14314
14343
  }
14315
14344
 
14316
14345
  if (res.type === 'ButtonRequest') {
@@ -14507,7 +14536,7 @@ class Device extends events.exports {
14507
14536
  return {
14508
14537
  connectId: env === 'react-native' ? this.mainId || null : getDeviceUUID(this.features),
14509
14538
  uuid: getDeviceUUID(this.features),
14510
- deviceType: getDeviceType(this.features),
14539
+ deviceType: this.features.bootloader_mode ? getDeviceTypeOnBootloader(this.features) : getDeviceType(this.features),
14511
14540
  deviceId: this.features.device_id || null,
14512
14541
  path: this.originalDescriptor.path,
14513
14542
  name: this.features.ble_name || this.features.label || `OneKey ${getDeviceType(this.features).toUpperCase()}`,
@@ -16567,6 +16596,43 @@ class DeviceUpdateReboot extends BaseMethod {
16567
16596
 
16568
16597
  }
16569
16598
 
16599
+ class DeviceVerify extends BaseMethod {
16600
+ init() {
16601
+ validateParams(this.payload, [{
16602
+ name: 'dataHex',
16603
+ type: 'hexString'
16604
+ }]);
16605
+ this.params = {
16606
+ data: formatAnyHex(this.payload.dataHex)
16607
+ };
16608
+ }
16609
+
16610
+ run() {
16611
+ return __awaiter(this, void 0, void 0, function* () {
16612
+ const deviceType = getDeviceType(this.device.features);
16613
+ let response;
16614
+
16615
+ if (deviceType === 'classic') {
16616
+ const res = yield this.device.commands.typedCall('BixinVerifyDeviceRequest', 'BixinVerifyDeviceAck', Object.assign({}, this.params));
16617
+ response = res.message;
16618
+ } else if (deviceType === 'mini') {
16619
+ const signatureRes = yield this.device.commands.typedCall('SESignMessage', 'SEMessageSignature', {
16620
+ message: this.params.data
16621
+ });
16622
+ const certRes = yield this.device.commands.typedCall('ReadSEPublicCert', 'SEPublicCert');
16623
+ response = {
16624
+ cert: certRes.message.public_cert,
16625
+ signature: signatureRes.message.signature
16626
+ };
16627
+ }
16628
+
16629
+ if (response) return Promise.resolve(response);
16630
+ return Promise.reject(hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, 'Device not support verify'));
16631
+ });
16632
+ }
16633
+
16634
+ }
16635
+
16570
16636
  class DeviceWipe extends BaseMethod {
16571
16637
  init() {}
16572
16638
 
@@ -16989,6 +17055,147 @@ class EVMSignTransaction extends BaseMethod {
16989
17055
 
16990
17056
  }
16991
17057
 
17058
+ const twosComplement = (number, bytes) => {
17059
+ if (bytes < 1 || bytes > 32) {
17060
+ throw hdShared.ERRORS.TypedError('Runtime', 'Int byte size must be between 1 and 32 (8 and 256 bits)');
17061
+ }
17062
+
17063
+ const minValue = new BigNumber__default["default"](2).exponentiatedBy(bytes * 8 - 1).negated();
17064
+ const maxValue = minValue.negated().minus(1);
17065
+ const bigNumber = new BigNumber__default["default"](number);
17066
+
17067
+ if (bigNumber.isGreaterThan(maxValue) || bigNumber.isLessThan(minValue)) {
17068
+ throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, `Overflow when trying to convert number ${number.toString()} into ${bytes} bytes`);
17069
+ }
17070
+
17071
+ if (bigNumber.isPositive()) {
17072
+ return bigNumber;
17073
+ }
17074
+
17075
+ return bigNumber.minus(minValue).minus(minValue);
17076
+ };
17077
+
17078
+ const intToHex = (number, bytes, signed) => {
17079
+ let bigNumber = new BigNumber__default["default"](number);
17080
+
17081
+ if (signed) {
17082
+ bigNumber = twosComplement(bigNumber, bytes);
17083
+ }
17084
+
17085
+ if (bigNumber.isNegative()) {
17086
+ throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, `Cannot convert negative number to unsigned interger: ${number.toString()}`);
17087
+ }
17088
+
17089
+ const hex = bigNumber.toString(16);
17090
+ const hexChars = bytes * 2;
17091
+
17092
+ if (hex.length > hexChars) {
17093
+ throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, `Overflow when trying to convert number ${number.toString()} into ${bytes} bytes`);
17094
+ }
17095
+
17096
+ return hex.padStart(bytes * 2, '0');
17097
+ };
17098
+
17099
+ const paramTypeArray = new RegExp(/^(.*)\[([0-9]*)\]$/);
17100
+ const paramTypeBytes = new RegExp(/^bytes([0-9]*)$/);
17101
+ const paramTypeNumber = new RegExp(/^(u?int)([0-9]*)$/);
17102
+
17103
+ const parseArrayType = arrayTypeName => {
17104
+ const arrayMatch = paramTypeArray.exec(arrayTypeName);
17105
+
17106
+ if (arrayMatch === null) {
17107
+ throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, `typename ${arrayTypeName} could not be parsed as an EIP-712 array`);
17108
+ }
17109
+
17110
+ const [_, entryTypeName, arraySize] = arrayMatch;
17111
+ return {
17112
+ entryTypeName,
17113
+ arraySize: parseInt(arraySize, 10) || null
17114
+ };
17115
+ };
17116
+
17117
+ const encodeData = (typeName, data) => {
17118
+ if (paramTypeBytes.test(typeName) || typeName === 'address') {
17119
+ return formatAnyHex(data);
17120
+ }
17121
+
17122
+ if (typeName === 'string') {
17123
+ return Buffer.from(data, 'utf-8').toString('hex');
17124
+ }
17125
+
17126
+ const numberMatch = paramTypeNumber.exec(typeName);
17127
+
17128
+ if (numberMatch) {
17129
+ const [_, intType, bits] = numberMatch;
17130
+ const bytes = Math.ceil(parseInt(bits, 10) / 8);
17131
+ return intToHex(data, bytes, intType === 'int');
17132
+ }
17133
+
17134
+ if (typeName === 'bool') {
17135
+ return data ? '01' : '00';
17136
+ }
17137
+
17138
+ throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, `Unsupported data type for direct field encoding: ${typeName}`);
17139
+ };
17140
+
17141
+ const paramTypesMap = {
17142
+ string: hdTransport.EthereumDataType.STRING,
17143
+ bool: hdTransport.EthereumDataType.BOOL,
17144
+ address: hdTransport.EthereumDataType.ADDRESS
17145
+ };
17146
+
17147
+ const getFieldType = (typeName, types) => {
17148
+ const arrayMatch = paramTypeArray.exec(typeName);
17149
+
17150
+ if (arrayMatch) {
17151
+ const [_, arrayItemTypeName, arraySize] = arrayMatch;
17152
+ const entryType = getFieldType(arrayItemTypeName, types);
17153
+ return {
17154
+ data_type: hdTransport.EthereumDataType.ARRAY,
17155
+ size: parseInt(arraySize, 10) || undefined,
17156
+ entry_type: entryType
17157
+ };
17158
+ }
17159
+
17160
+ const numberMatch = paramTypeNumber.exec(typeName);
17161
+
17162
+ if (numberMatch) {
17163
+ const [_, type, bits] = numberMatch;
17164
+ return {
17165
+ data_type: type === 'uint' ? hdTransport.EthereumDataType.UINT : hdTransport.EthereumDataType.INT,
17166
+ size: Math.floor(parseInt(bits, 10) / 8)
17167
+ };
17168
+ }
17169
+
17170
+ const bytesMatch = paramTypeBytes.exec(typeName);
17171
+
17172
+ if (bytesMatch) {
17173
+ const [_, size] = bytesMatch;
17174
+ return {
17175
+ data_type: hdTransport.EthereumDataType.BYTES,
17176
+ size: parseInt(size, 10) || undefined
17177
+ };
17178
+ }
17179
+
17180
+ const fixedSizeTypeMatch = paramTypesMap[typeName];
17181
+
17182
+ if (fixedSizeTypeMatch) {
17183
+ return {
17184
+ data_type: fixedSizeTypeMatch
17185
+ };
17186
+ }
17187
+
17188
+ if (typeName in types) {
17189
+ return {
17190
+ data_type: hdTransport.EthereumDataType.STRUCT,
17191
+ size: types[typeName].length,
17192
+ struct_name: typeName
17193
+ };
17194
+ }
17195
+
17196
+ throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, `No type definition specified: ${typeName}`);
17197
+ };
17198
+
16992
17199
  class EVMSignTypedData extends BaseMethod {
16993
17200
  init() {
16994
17201
  this.allowDeviceMode = [...this.allowDeviceMode, UI_REQUEST.INITIALIZE];
@@ -17033,6 +17240,112 @@ class EVMSignTypedData extends BaseMethod {
17033
17240
  }
17034
17241
  }
17035
17242
 
17243
+ signTypedData() {
17244
+ return __awaiter(this, void 0, void 0, function* () {
17245
+ const {
17246
+ commands
17247
+ } = this.device;
17248
+ const {
17249
+ addressN,
17250
+ data,
17251
+ metamaskV4Compat
17252
+ } = this.params;
17253
+ const {
17254
+ types,
17255
+ primaryType,
17256
+ domain,
17257
+ message
17258
+ } = data;
17259
+ let response = yield commands.typedCall('EthereumSignTypedData', ['EthereumTypedDataStructRequest', 'EthereumTypedDataValueRequest', 'EthereumTypedDataSignature'], {
17260
+ address_n: addressN,
17261
+ primary_type: primaryType,
17262
+ metamask_v4_compat: metamaskV4Compat
17263
+ });
17264
+
17265
+ while (response.type === 'EthereumTypedDataStructRequest') {
17266
+ const {
17267
+ name: typeDefinitionName
17268
+ } = response.message;
17269
+ const typeDefinition = types[typeDefinitionName];
17270
+
17271
+ if (typeDefinition === undefined) {
17272
+ throw hdShared.ERRORS.TypedError('Runtime', `Type ${typeDefinitionName} was not defined in types object`);
17273
+ }
17274
+
17275
+ const dataStruckAck = {
17276
+ members: typeDefinition.map(({
17277
+ name,
17278
+ type: typeName
17279
+ }) => ({
17280
+ name,
17281
+ type: getFieldType(typeName, types)
17282
+ }))
17283
+ };
17284
+ response = yield commands.typedCall('EthereumTypedDataStructAck', ['EthereumTypedDataStructRequest', 'EthereumTypedDataValueRequest', 'EthereumTypedDataSignature'], dataStruckAck);
17285
+ }
17286
+
17287
+ while (response.type === 'EthereumTypedDataValueRequest') {
17288
+ const {
17289
+ member_path
17290
+ } = response.message;
17291
+ let memberData;
17292
+ let memberTypeName;
17293
+ const [rootIndex, ...nestedMemberPath] = member_path;
17294
+
17295
+ switch (rootIndex) {
17296
+ case 0:
17297
+ memberData = domain;
17298
+ memberTypeName = 'EIP712Domain';
17299
+ break;
17300
+
17301
+ case 1:
17302
+ memberData = message;
17303
+ memberTypeName = primaryType;
17304
+ break;
17305
+
17306
+ default:
17307
+ throw hdShared.ERRORS.TypedError('Runtime', 'Root index can only be 0 or 1');
17308
+ }
17309
+
17310
+ for (const index of nestedMemberPath) {
17311
+ if (Array.isArray(memberData)) {
17312
+ memberTypeName = parseArrayType(memberTypeName).entryTypeName;
17313
+ memberData = memberData[index];
17314
+ } else if (typeof memberData === 'object' && memberData !== null) {
17315
+ const memberTypeDefinition = types[memberTypeName][index];
17316
+ memberTypeName = memberTypeDefinition.type;
17317
+ memberData = memberData[memberTypeDefinition.name];
17318
+ } else ;
17319
+ }
17320
+
17321
+ let encodedData;
17322
+
17323
+ if (Array.isArray(memberData)) {
17324
+ encodedData = encodeData('uint16', memberData.length);
17325
+ } else {
17326
+ encodedData = encodeData(memberTypeName, memberData);
17327
+ }
17328
+
17329
+ response = yield commands.typedCall('EthereumTypedDataValueAck', ['EthereumTypedDataValueRequest', 'EthereumTypedDataSignature'], {
17330
+ value: encodedData
17331
+ });
17332
+ }
17333
+
17334
+ if (response.type !== 'EthereumTypedDataSignature') {
17335
+ throw hdShared.ERRORS.TypedError('Runtime', 'Unexpected response type');
17336
+ }
17337
+
17338
+ const {
17339
+ address,
17340
+ signature
17341
+ } = response.message;
17342
+ return {
17343
+ address,
17344
+ signature
17345
+ };
17346
+ });
17347
+ }
17348
+
17036
17349
  getVersionRange() {
17037
17350
  return {
17038
17351
  model_mini: {
@@ -17100,7 +17413,7 @@ class EVMSignTypedData extends BaseMethod {
17100
17413
  return Promise.resolve(response.message);
17101
17414
  }
17102
17415
 
17103
- return Promise.resolve(hdShared.ERRORS.TypedError('Runtime', 'Not implemented'));
17416
+ return this.signTypedData();
17104
17417
  });
17105
17418
  }
17106
17419
 
@@ -18279,6 +18592,7 @@ var ApiMethods = /*#__PURE__*/Object.freeze({
18279
18592
  deviceReset: DeviceReset,
18280
18593
  deviceSettings: DeviceSettings,
18281
18594
  deviceUpdateReboot: DeviceUpdateReboot,
18595
+ deviceVerify: DeviceVerify,
18282
18596
  deviceWipe: DeviceWipe,
18283
18597
  evmGetAddress: EvmGetAddress,
18284
18598
  evmGetPublicKey: EVMGetPublicKey,
@@ -18580,6 +18894,10 @@ const callAPI = message => __awaiter(void 0, void 0, void 0, function* () {
18580
18894
  const unexpectedMode = device.hasUnexpectedMode(method.allowDeviceMode, method.requireDeviceMode);
18581
18895
 
18582
18896
  if (unexpectedMode) {
18897
+ if (unexpectedMode === UI_REQUEST$1.NOT_IN_BOOTLOADER) {
18898
+ return Promise.reject(hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.DeviceUnexpectedBootloaderMode));
18899
+ }
18900
+
18583
18901
  return Promise.reject(hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.DeviceUnexpectedMode, unexpectedMode));
18584
18902
  }
18585
18903
 
@@ -18916,6 +19234,7 @@ __webpack_unused_export__ = isValidVersionString;
18916
19234
  __webpack_unused_export__ = normalizeVersionArray;
18917
19235
  exports._4 = parseConnectSettings;
18918
19236
  exports.kW = parseMessage;
19237
+ __webpack_unused_export__ = patchFeatures;
18919
19238
  __webpack_unused_export__ = safeThrowError;
18920
19239
  __webpack_unused_export__ = versionCompare;
18921
19240
  __webpack_unused_export__ = versionSplit;
@@ -19403,33 +19722,33 @@ var check = /*#__PURE__*/Object.freeze({
19403
19722
  acquire: acquire,
19404
19723
  call: call
19405
19724
  });
19406
- var BinanceOrderType;
19725
+ exports.BinanceOrderType = void 0;
19407
19726
 
19408
19727
  (function (BinanceOrderType) {
19409
19728
  BinanceOrderType[BinanceOrderType["OT_UNKNOWN"] = 0] = "OT_UNKNOWN";
19410
19729
  BinanceOrderType[BinanceOrderType["MARKET"] = 1] = "MARKET";
19411
19730
  BinanceOrderType[BinanceOrderType["LIMIT"] = 2] = "LIMIT";
19412
19731
  BinanceOrderType[BinanceOrderType["OT_RESERVED"] = 3] = "OT_RESERVED";
19413
- })(BinanceOrderType || (BinanceOrderType = {}));
19732
+ })(exports.BinanceOrderType || (exports.BinanceOrderType = {}));
19414
19733
 
19415
- var BinanceOrderSide;
19734
+ exports.BinanceOrderSide = void 0;
19416
19735
 
19417
19736
  (function (BinanceOrderSide) {
19418
19737
  BinanceOrderSide[BinanceOrderSide["SIDE_UNKNOWN"] = 0] = "SIDE_UNKNOWN";
19419
19738
  BinanceOrderSide[BinanceOrderSide["BUY"] = 1] = "BUY";
19420
19739
  BinanceOrderSide[BinanceOrderSide["SELL"] = 2] = "SELL";
19421
- })(BinanceOrderSide || (BinanceOrderSide = {}));
19740
+ })(exports.BinanceOrderSide || (exports.BinanceOrderSide = {}));
19422
19741
 
19423
- var BinanceTimeInForce;
19742
+ exports.BinanceTimeInForce = void 0;
19424
19743
 
19425
19744
  (function (BinanceTimeInForce) {
19426
19745
  BinanceTimeInForce[BinanceTimeInForce["TIF_UNKNOWN"] = 0] = "TIF_UNKNOWN";
19427
19746
  BinanceTimeInForce[BinanceTimeInForce["GTE"] = 1] = "GTE";
19428
19747
  BinanceTimeInForce[BinanceTimeInForce["TIF_RESERVED"] = 2] = "TIF_RESERVED";
19429
19748
  BinanceTimeInForce[BinanceTimeInForce["IOC"] = 3] = "IOC";
19430
- })(BinanceTimeInForce || (BinanceTimeInForce = {}));
19749
+ })(exports.BinanceTimeInForce || (exports.BinanceTimeInForce = {}));
19431
19750
 
19432
- var Enum_InputScriptType;
19751
+ exports.Enum_InputScriptType = void 0;
19433
19752
 
19434
19753
  (function (Enum_InputScriptType) {
19435
19754
  Enum_InputScriptType[Enum_InputScriptType["SPENDADDRESS"] = 0] = "SPENDADDRESS";
@@ -19438,9 +19757,9 @@ var Enum_InputScriptType;
19438
19757
  Enum_InputScriptType[Enum_InputScriptType["SPENDWITNESS"] = 3] = "SPENDWITNESS";
19439
19758
  Enum_InputScriptType[Enum_InputScriptType["SPENDP2SHWITNESS"] = 4] = "SPENDP2SHWITNESS";
19440
19759
  Enum_InputScriptType[Enum_InputScriptType["SPENDTAPROOT"] = 5] = "SPENDTAPROOT";
19441
- })(Enum_InputScriptType || (Enum_InputScriptType = {}));
19760
+ })(exports.Enum_InputScriptType || (exports.Enum_InputScriptType = {}));
19442
19761
 
19443
- var Enum_OutputScriptType;
19762
+ exports.Enum_OutputScriptType = void 0;
19444
19763
 
19445
19764
  (function (Enum_OutputScriptType) {
19446
19765
  Enum_OutputScriptType[Enum_OutputScriptType["PAYTOADDRESS"] = 0] = "PAYTOADDRESS";
@@ -19450,25 +19769,25 @@ var Enum_OutputScriptType;
19450
19769
  Enum_OutputScriptType[Enum_OutputScriptType["PAYTOWITNESS"] = 4] = "PAYTOWITNESS";
19451
19770
  Enum_OutputScriptType[Enum_OutputScriptType["PAYTOP2SHWITNESS"] = 5] = "PAYTOP2SHWITNESS";
19452
19771
  Enum_OutputScriptType[Enum_OutputScriptType["PAYTOTAPROOT"] = 6] = "PAYTOTAPROOT";
19453
- })(Enum_OutputScriptType || (Enum_OutputScriptType = {}));
19772
+ })(exports.Enum_OutputScriptType || (exports.Enum_OutputScriptType = {}));
19454
19773
 
19455
- var DecredStakingSpendType;
19774
+ exports.DecredStakingSpendType = void 0;
19456
19775
 
19457
19776
  (function (DecredStakingSpendType) {
19458
19777
  DecredStakingSpendType[DecredStakingSpendType["SSGen"] = 0] = "SSGen";
19459
19778
  DecredStakingSpendType[DecredStakingSpendType["SSRTX"] = 1] = "SSRTX";
19460
- })(DecredStakingSpendType || (DecredStakingSpendType = {}));
19779
+ })(exports.DecredStakingSpendType || (exports.DecredStakingSpendType = {}));
19461
19780
 
19462
- var AmountUnit;
19781
+ exports.AmountUnit = void 0;
19463
19782
 
19464
19783
  (function (AmountUnit) {
19465
19784
  AmountUnit[AmountUnit["BITCOIN"] = 0] = "BITCOIN";
19466
19785
  AmountUnit[AmountUnit["MILLIBITCOIN"] = 1] = "MILLIBITCOIN";
19467
19786
  AmountUnit[AmountUnit["MICROBITCOIN"] = 2] = "MICROBITCOIN";
19468
19787
  AmountUnit[AmountUnit["SATOSHI"] = 3] = "SATOSHI";
19469
- })(AmountUnit || (AmountUnit = {}));
19788
+ })(exports.AmountUnit || (exports.AmountUnit = {}));
19470
19789
 
19471
- var Enum_RequestType;
19790
+ exports.Enum_RequestType = void 0;
19472
19791
 
19473
19792
  (function (Enum_RequestType) {
19474
19793
  Enum_RequestType[Enum_RequestType["TXINPUT"] = 0] = "TXINPUT";
@@ -19479,17 +19798,17 @@ var Enum_RequestType;
19479
19798
  Enum_RequestType[Enum_RequestType["TXORIGINPUT"] = 5] = "TXORIGINPUT";
19480
19799
  Enum_RequestType[Enum_RequestType["TXORIGOUTPUT"] = 6] = "TXORIGOUTPUT";
19481
19800
  Enum_RequestType[Enum_RequestType["TXPAYMENTREQ"] = 7] = "TXPAYMENTREQ";
19482
- })(Enum_RequestType || (Enum_RequestType = {}));
19801
+ })(exports.Enum_RequestType || (exports.Enum_RequestType = {}));
19483
19802
 
19484
- var CardanoDerivationType;
19803
+ exports.CardanoDerivationType = void 0;
19485
19804
 
19486
19805
  (function (CardanoDerivationType) {
19487
19806
  CardanoDerivationType[CardanoDerivationType["LEDGER"] = 0] = "LEDGER";
19488
19807
  CardanoDerivationType[CardanoDerivationType["ICARUS"] = 1] = "ICARUS";
19489
19808
  CardanoDerivationType[CardanoDerivationType["ICARUS_TREZOR"] = 2] = "ICARUS_TREZOR";
19490
- })(CardanoDerivationType || (CardanoDerivationType = {}));
19809
+ })(exports.CardanoDerivationType || (exports.CardanoDerivationType = {}));
19491
19810
 
19492
- var CardanoAddressType;
19811
+ exports.CardanoAddressType = void 0;
19493
19812
 
19494
19813
  (function (CardanoAddressType) {
19495
19814
  CardanoAddressType[CardanoAddressType["BASE"] = 0] = "BASE";
@@ -19503,9 +19822,9 @@ var CardanoAddressType;
19503
19822
  CardanoAddressType[CardanoAddressType["BYRON"] = 8] = "BYRON";
19504
19823
  CardanoAddressType[CardanoAddressType["REWARD"] = 14] = "REWARD";
19505
19824
  CardanoAddressType[CardanoAddressType["REWARD_SCRIPT"] = 15] = "REWARD_SCRIPT";
19506
- })(CardanoAddressType || (CardanoAddressType = {}));
19825
+ })(exports.CardanoAddressType || (exports.CardanoAddressType = {}));
19507
19826
 
19508
- var CardanoNativeScriptType;
19827
+ exports.CardanoNativeScriptType = void 0;
19509
19828
 
19510
19829
  (function (CardanoNativeScriptType) {
19511
19830
  CardanoNativeScriptType[CardanoNativeScriptType["PUB_KEY"] = 0] = "PUB_KEY";
@@ -19514,57 +19833,57 @@ var CardanoNativeScriptType;
19514
19833
  CardanoNativeScriptType[CardanoNativeScriptType["N_OF_K"] = 3] = "N_OF_K";
19515
19834
  CardanoNativeScriptType[CardanoNativeScriptType["INVALID_BEFORE"] = 4] = "INVALID_BEFORE";
19516
19835
  CardanoNativeScriptType[CardanoNativeScriptType["INVALID_HEREAFTER"] = 5] = "INVALID_HEREAFTER";
19517
- })(CardanoNativeScriptType || (CardanoNativeScriptType = {}));
19836
+ })(exports.CardanoNativeScriptType || (exports.CardanoNativeScriptType = {}));
19518
19837
 
19519
- var CardanoNativeScriptHashDisplayFormat;
19838
+ exports.CardanoNativeScriptHashDisplayFormat = void 0;
19520
19839
 
19521
19840
  (function (CardanoNativeScriptHashDisplayFormat) {
19522
19841
  CardanoNativeScriptHashDisplayFormat[CardanoNativeScriptHashDisplayFormat["HIDE"] = 0] = "HIDE";
19523
19842
  CardanoNativeScriptHashDisplayFormat[CardanoNativeScriptHashDisplayFormat["BECH32"] = 1] = "BECH32";
19524
19843
  CardanoNativeScriptHashDisplayFormat[CardanoNativeScriptHashDisplayFormat["POLICY_ID"] = 2] = "POLICY_ID";
19525
- })(CardanoNativeScriptHashDisplayFormat || (CardanoNativeScriptHashDisplayFormat = {}));
19844
+ })(exports.CardanoNativeScriptHashDisplayFormat || (exports.CardanoNativeScriptHashDisplayFormat = {}));
19526
19845
 
19527
- var CardanoCertificateType;
19846
+ exports.CardanoCertificateType = void 0;
19528
19847
 
19529
19848
  (function (CardanoCertificateType) {
19530
19849
  CardanoCertificateType[CardanoCertificateType["STAKE_REGISTRATION"] = 0] = "STAKE_REGISTRATION";
19531
19850
  CardanoCertificateType[CardanoCertificateType["STAKE_DEREGISTRATION"] = 1] = "STAKE_DEREGISTRATION";
19532
19851
  CardanoCertificateType[CardanoCertificateType["STAKE_DELEGATION"] = 2] = "STAKE_DELEGATION";
19533
19852
  CardanoCertificateType[CardanoCertificateType["STAKE_POOL_REGISTRATION"] = 3] = "STAKE_POOL_REGISTRATION";
19534
- })(CardanoCertificateType || (CardanoCertificateType = {}));
19853
+ })(exports.CardanoCertificateType || (exports.CardanoCertificateType = {}));
19535
19854
 
19536
- var CardanoPoolRelayType;
19855
+ exports.CardanoPoolRelayType = void 0;
19537
19856
 
19538
19857
  (function (CardanoPoolRelayType) {
19539
19858
  CardanoPoolRelayType[CardanoPoolRelayType["SINGLE_HOST_IP"] = 0] = "SINGLE_HOST_IP";
19540
19859
  CardanoPoolRelayType[CardanoPoolRelayType["SINGLE_HOST_NAME"] = 1] = "SINGLE_HOST_NAME";
19541
19860
  CardanoPoolRelayType[CardanoPoolRelayType["MULTIPLE_HOST_NAME"] = 2] = "MULTIPLE_HOST_NAME";
19542
- })(CardanoPoolRelayType || (CardanoPoolRelayType = {}));
19861
+ })(exports.CardanoPoolRelayType || (exports.CardanoPoolRelayType = {}));
19543
19862
 
19544
- var CardanoTxAuxiliaryDataSupplementType;
19863
+ exports.CardanoTxAuxiliaryDataSupplementType = void 0;
19545
19864
 
19546
19865
  (function (CardanoTxAuxiliaryDataSupplementType) {
19547
19866
  CardanoTxAuxiliaryDataSupplementType[CardanoTxAuxiliaryDataSupplementType["NONE"] = 0] = "NONE";
19548
19867
  CardanoTxAuxiliaryDataSupplementType[CardanoTxAuxiliaryDataSupplementType["CATALYST_REGISTRATION_SIGNATURE"] = 1] = "CATALYST_REGISTRATION_SIGNATURE";
19549
- })(CardanoTxAuxiliaryDataSupplementType || (CardanoTxAuxiliaryDataSupplementType = {}));
19868
+ })(exports.CardanoTxAuxiliaryDataSupplementType || (exports.CardanoTxAuxiliaryDataSupplementType = {}));
19550
19869
 
19551
- var CardanoTxSigningMode;
19870
+ exports.CardanoTxSigningMode = void 0;
19552
19871
 
19553
19872
  (function (CardanoTxSigningMode) {
19554
19873
  CardanoTxSigningMode[CardanoTxSigningMode["ORDINARY_TRANSACTION"] = 0] = "ORDINARY_TRANSACTION";
19555
19874
  CardanoTxSigningMode[CardanoTxSigningMode["POOL_REGISTRATION_AS_OWNER"] = 1] = "POOL_REGISTRATION_AS_OWNER";
19556
19875
  CardanoTxSigningMode[CardanoTxSigningMode["MULTISIG_TRANSACTION"] = 2] = "MULTISIG_TRANSACTION";
19557
19876
  CardanoTxSigningMode[CardanoTxSigningMode["PLUTUS_TRANSACTION"] = 3] = "PLUTUS_TRANSACTION";
19558
- })(CardanoTxSigningMode || (CardanoTxSigningMode = {}));
19877
+ })(exports.CardanoTxSigningMode || (exports.CardanoTxSigningMode = {}));
19559
19878
 
19560
- var CardanoTxWitnessType;
19879
+ exports.CardanoTxWitnessType = void 0;
19561
19880
 
19562
19881
  (function (CardanoTxWitnessType) {
19563
19882
  CardanoTxWitnessType[CardanoTxWitnessType["BYRON_WITNESS"] = 0] = "BYRON_WITNESS";
19564
19883
  CardanoTxWitnessType[CardanoTxWitnessType["SHELLEY_WITNESS"] = 1] = "SHELLEY_WITNESS";
19565
- })(CardanoTxWitnessType || (CardanoTxWitnessType = {}));
19884
+ })(exports.CardanoTxWitnessType || (exports.CardanoTxWitnessType = {}));
19566
19885
 
19567
- var FailureType;
19886
+ exports.FailureType = void 0;
19568
19887
 
19569
19888
  (function (FailureType) {
19570
19889
  FailureType[FailureType["Failure_UnexpectedMessage"] = 1] = "Failure_UnexpectedMessage";
@@ -19582,9 +19901,9 @@ var FailureType;
19582
19901
  FailureType[FailureType["Failure_WipeCodeMismatch"] = 13] = "Failure_WipeCodeMismatch";
19583
19902
  FailureType[FailureType["Failure_InvalidSession"] = 14] = "Failure_InvalidSession";
19584
19903
  FailureType[FailureType["Failure_FirmwareError"] = 99] = "Failure_FirmwareError";
19585
- })(FailureType || (FailureType = {}));
19904
+ })(exports.FailureType || (exports.FailureType = {}));
19586
19905
 
19587
- var Enum_ButtonRequestType;
19906
+ exports.Enum_ButtonRequestType = void 0;
19588
19907
 
19589
19908
  (function (Enum_ButtonRequestType) {
19590
19909
  Enum_ButtonRequestType[Enum_ButtonRequestType["ButtonRequest_Other"] = 1] = "ButtonRequest_Other";
@@ -19607,9 +19926,9 @@ var Enum_ButtonRequestType;
19607
19926
  Enum_ButtonRequestType[Enum_ButtonRequestType["ButtonRequest_Warning"] = 18] = "ButtonRequest_Warning";
19608
19927
  Enum_ButtonRequestType[Enum_ButtonRequestType["ButtonRequest_PassphraseEntry"] = 19] = "ButtonRequest_PassphraseEntry";
19609
19928
  Enum_ButtonRequestType[Enum_ButtonRequestType["ButtonRequest_PinEntry"] = 20] = "ButtonRequest_PinEntry";
19610
- })(Enum_ButtonRequestType || (Enum_ButtonRequestType = {}));
19929
+ })(exports.Enum_ButtonRequestType || (exports.Enum_ButtonRequestType = {}));
19611
19930
 
19612
- var Enum_PinMatrixRequestType;
19931
+ exports.Enum_PinMatrixRequestType = void 0;
19613
19932
 
19614
19933
  (function (Enum_PinMatrixRequestType) {
19615
19934
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_Current"] = 1] = "PinMatrixRequestType_Current";
@@ -19617,17 +19936,17 @@ var Enum_PinMatrixRequestType;
19617
19936
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_NewSecond"] = 3] = "PinMatrixRequestType_NewSecond";
19618
19937
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_WipeCodeFirst"] = 4] = "PinMatrixRequestType_WipeCodeFirst";
19619
19938
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_WipeCodeSecond"] = 5] = "PinMatrixRequestType_WipeCodeSecond";
19620
- })(Enum_PinMatrixRequestType || (Enum_PinMatrixRequestType = {}));
19939
+ })(exports.Enum_PinMatrixRequestType || (exports.Enum_PinMatrixRequestType = {}));
19621
19940
 
19622
- var DebugButton;
19941
+ exports.DebugButton = void 0;
19623
19942
 
19624
19943
  (function (DebugButton) {
19625
19944
  DebugButton[DebugButton["NO"] = 0] = "NO";
19626
19945
  DebugButton[DebugButton["YES"] = 1] = "YES";
19627
19946
  DebugButton[DebugButton["INFO"] = 2] = "INFO";
19628
- })(DebugButton || (DebugButton = {}));
19947
+ })(exports.DebugButton || (exports.DebugButton = {}));
19629
19948
 
19630
- var EthereumDataType;
19949
+ exports.EthereumDataType = void 0;
19631
19950
 
19632
19951
  (function (EthereumDataType) {
19633
19952
  EthereumDataType[EthereumDataType["UINT"] = 1] = "UINT";
@@ -19638,25 +19957,25 @@ var EthereumDataType;
19638
19957
  EthereumDataType[EthereumDataType["ADDRESS"] = 6] = "ADDRESS";
19639
19958
  EthereumDataType[EthereumDataType["ARRAY"] = 7] = "ARRAY";
19640
19959
  EthereumDataType[EthereumDataType["STRUCT"] = 8] = "STRUCT";
19641
- })(EthereumDataType || (EthereumDataType = {}));
19960
+ })(exports.EthereumDataType || (exports.EthereumDataType = {}));
19642
19961
 
19643
- var Enum_BackupType;
19962
+ exports.Enum_BackupType = void 0;
19644
19963
 
19645
19964
  (function (Enum_BackupType) {
19646
19965
  Enum_BackupType[Enum_BackupType["Bip39"] = 0] = "Bip39";
19647
19966
  Enum_BackupType[Enum_BackupType["Slip39_Basic"] = 1] = "Slip39_Basic";
19648
19967
  Enum_BackupType[Enum_BackupType["Slip39_Advanced"] = 2] = "Slip39_Advanced";
19649
- })(Enum_BackupType || (Enum_BackupType = {}));
19968
+ })(exports.Enum_BackupType || (exports.Enum_BackupType = {}));
19650
19969
 
19651
- var Enum_SafetyCheckLevel;
19970
+ exports.Enum_SafetyCheckLevel = void 0;
19652
19971
 
19653
19972
  (function (Enum_SafetyCheckLevel) {
19654
19973
  Enum_SafetyCheckLevel[Enum_SafetyCheckLevel["Strict"] = 0] = "Strict";
19655
19974
  Enum_SafetyCheckLevel[Enum_SafetyCheckLevel["PromptAlways"] = 1] = "PromptAlways";
19656
19975
  Enum_SafetyCheckLevel[Enum_SafetyCheckLevel["PromptTemporarily"] = 2] = "PromptTemporarily";
19657
- })(Enum_SafetyCheckLevel || (Enum_SafetyCheckLevel = {}));
19976
+ })(exports.Enum_SafetyCheckLevel || (exports.Enum_SafetyCheckLevel = {}));
19658
19977
 
19659
- var Enum_Capability;
19978
+ exports.Enum_Capability = void 0;
19660
19979
 
19661
19980
  (function (Enum_Capability) {
19662
19981
  Enum_Capability[Enum_Capability["Capability_Bitcoin"] = 1] = "Capability_Bitcoin";
@@ -19676,68 +19995,68 @@ var Enum_Capability;
19676
19995
  Enum_Capability[Enum_Capability["Capability_Shamir"] = 15] = "Capability_Shamir";
19677
19996
  Enum_Capability[Enum_Capability["Capability_ShamirGroups"] = 16] = "Capability_ShamirGroups";
19678
19997
  Enum_Capability[Enum_Capability["Capability_PassphraseEntry"] = 17] = "Capability_PassphraseEntry";
19679
- })(Enum_Capability || (Enum_Capability = {}));
19998
+ })(exports.Enum_Capability || (exports.Enum_Capability = {}));
19680
19999
 
19681
- var SdProtectOperationType;
20000
+ exports.SdProtectOperationType = void 0;
19682
20001
 
19683
20002
  (function (SdProtectOperationType) {
19684
20003
  SdProtectOperationType[SdProtectOperationType["DISABLE"] = 0] = "DISABLE";
19685
20004
  SdProtectOperationType[SdProtectOperationType["ENABLE"] = 1] = "ENABLE";
19686
20005
  SdProtectOperationType[SdProtectOperationType["REFRESH"] = 2] = "REFRESH";
19687
- })(SdProtectOperationType || (SdProtectOperationType = {}));
20006
+ })(exports.SdProtectOperationType || (exports.SdProtectOperationType = {}));
19688
20007
 
19689
- var RecoveryDeviceType;
20008
+ exports.RecoveryDeviceType = void 0;
19690
20009
 
19691
20010
  (function (RecoveryDeviceType) {
19692
20011
  RecoveryDeviceType[RecoveryDeviceType["RecoveryDeviceType_ScrambledWords"] = 0] = "RecoveryDeviceType_ScrambledWords";
19693
20012
  RecoveryDeviceType[RecoveryDeviceType["RecoveryDeviceType_Matrix"] = 1] = "RecoveryDeviceType_Matrix";
19694
- })(RecoveryDeviceType || (RecoveryDeviceType = {}));
20013
+ })(exports.RecoveryDeviceType || (exports.RecoveryDeviceType = {}));
19695
20014
 
19696
- var Enum_WordRequestType;
20015
+ exports.Enum_WordRequestType = void 0;
19697
20016
 
19698
20017
  (function (Enum_WordRequestType) {
19699
20018
  Enum_WordRequestType[Enum_WordRequestType["WordRequestType_Plain"] = 0] = "WordRequestType_Plain";
19700
20019
  Enum_WordRequestType[Enum_WordRequestType["WordRequestType_Matrix9"] = 1] = "WordRequestType_Matrix9";
19701
20020
  Enum_WordRequestType[Enum_WordRequestType["WordRequestType_Matrix6"] = 2] = "WordRequestType_Matrix6";
19702
- })(Enum_WordRequestType || (Enum_WordRequestType = {}));
20021
+ })(exports.Enum_WordRequestType || (exports.Enum_WordRequestType = {}));
19703
20022
 
19704
- var NEMMosaicLevy;
20023
+ exports.NEMMosaicLevy = void 0;
19705
20024
 
19706
20025
  (function (NEMMosaicLevy) {
19707
20026
  NEMMosaicLevy[NEMMosaicLevy["MosaicLevy_Absolute"] = 1] = "MosaicLevy_Absolute";
19708
20027
  NEMMosaicLevy[NEMMosaicLevy["MosaicLevy_Percentile"] = 2] = "MosaicLevy_Percentile";
19709
- })(NEMMosaicLevy || (NEMMosaicLevy = {}));
20028
+ })(exports.NEMMosaicLevy || (exports.NEMMosaicLevy = {}));
19710
20029
 
19711
- var NEMSupplyChangeType;
20030
+ exports.NEMSupplyChangeType = void 0;
19712
20031
 
19713
20032
  (function (NEMSupplyChangeType) {
19714
20033
  NEMSupplyChangeType[NEMSupplyChangeType["SupplyChange_Increase"] = 1] = "SupplyChange_Increase";
19715
20034
  NEMSupplyChangeType[NEMSupplyChangeType["SupplyChange_Decrease"] = 2] = "SupplyChange_Decrease";
19716
- })(NEMSupplyChangeType || (NEMSupplyChangeType = {}));
20035
+ })(exports.NEMSupplyChangeType || (exports.NEMSupplyChangeType = {}));
19717
20036
 
19718
- var NEMModificationType;
20037
+ exports.NEMModificationType = void 0;
19719
20038
 
19720
20039
  (function (NEMModificationType) {
19721
20040
  NEMModificationType[NEMModificationType["CosignatoryModification_Add"] = 1] = "CosignatoryModification_Add";
19722
20041
  NEMModificationType[NEMModificationType["CosignatoryModification_Delete"] = 2] = "CosignatoryModification_Delete";
19723
- })(NEMModificationType || (NEMModificationType = {}));
20042
+ })(exports.NEMModificationType || (exports.NEMModificationType = {}));
19724
20043
 
19725
- var NEMImportanceTransferMode;
20044
+ exports.NEMImportanceTransferMode = void 0;
19726
20045
 
19727
20046
  (function (NEMImportanceTransferMode) {
19728
20047
  NEMImportanceTransferMode[NEMImportanceTransferMode["ImportanceTransfer_Activate"] = 1] = "ImportanceTransfer_Activate";
19729
20048
  NEMImportanceTransferMode[NEMImportanceTransferMode["ImportanceTransfer_Deactivate"] = 2] = "ImportanceTransfer_Deactivate";
19730
- })(NEMImportanceTransferMode || (NEMImportanceTransferMode = {}));
20049
+ })(exports.NEMImportanceTransferMode || (exports.NEMImportanceTransferMode = {}));
19731
20050
 
19732
- var StellarAssetType;
20051
+ exports.StellarAssetType = void 0;
19733
20052
 
19734
20053
  (function (StellarAssetType) {
19735
20054
  StellarAssetType[StellarAssetType["NATIVE"] = 0] = "NATIVE";
19736
20055
  StellarAssetType[StellarAssetType["ALPHANUM4"] = 1] = "ALPHANUM4";
19737
20056
  StellarAssetType[StellarAssetType["ALPHANUM12"] = 2] = "ALPHANUM12";
19738
- })(StellarAssetType || (StellarAssetType = {}));
20057
+ })(exports.StellarAssetType || (exports.StellarAssetType = {}));
19739
20058
 
19740
- var StellarMemoType;
20059
+ exports.StellarMemoType = void 0;
19741
20060
 
19742
20061
  (function (StellarMemoType) {
19743
20062
  StellarMemoType[StellarMemoType["NONE"] = 0] = "NONE";
@@ -19745,180 +20064,180 @@ var StellarMemoType;
19745
20064
  StellarMemoType[StellarMemoType["ID"] = 2] = "ID";
19746
20065
  StellarMemoType[StellarMemoType["HASH"] = 3] = "HASH";
19747
20066
  StellarMemoType[StellarMemoType["RETURN"] = 4] = "RETURN";
19748
- })(StellarMemoType || (StellarMemoType = {}));
20067
+ })(exports.StellarMemoType || (exports.StellarMemoType = {}));
19749
20068
 
19750
- var StellarSignerType;
20069
+ exports.StellarSignerType = void 0;
19751
20070
 
19752
20071
  (function (StellarSignerType) {
19753
20072
  StellarSignerType[StellarSignerType["ACCOUNT"] = 0] = "ACCOUNT";
19754
20073
  StellarSignerType[StellarSignerType["PRE_AUTH"] = 1] = "PRE_AUTH";
19755
20074
  StellarSignerType[StellarSignerType["HASH"] = 2] = "HASH";
19756
- })(StellarSignerType || (StellarSignerType = {}));
20075
+ })(exports.StellarSignerType || (exports.StellarSignerType = {}));
19757
20076
 
19758
- var TezosContractType;
20077
+ exports.TezosContractType = void 0;
19759
20078
 
19760
20079
  (function (TezosContractType) {
19761
20080
  TezosContractType[TezosContractType["Implicit"] = 0] = "Implicit";
19762
20081
  TezosContractType[TezosContractType["Originated"] = 1] = "Originated";
19763
- })(TezosContractType || (TezosContractType = {}));
20082
+ })(exports.TezosContractType || (exports.TezosContractType = {}));
19764
20083
 
19765
- var TezosBallotType;
20084
+ exports.TezosBallotType = void 0;
19766
20085
 
19767
20086
  (function (TezosBallotType) {
19768
20087
  TezosBallotType[TezosBallotType["Yay"] = 0] = "Yay";
19769
20088
  TezosBallotType[TezosBallotType["Nay"] = 1] = "Nay";
19770
20089
  TezosBallotType[TezosBallotType["Pass"] = 2] = "Pass";
19771
- })(TezosBallotType || (TezosBallotType = {}));
20090
+ })(exports.TezosBallotType || (exports.TezosBallotType = {}));
19772
20091
 
19773
20092
  var messages = /*#__PURE__*/Object.freeze({
19774
20093
  __proto__: null,
19775
20094
 
19776
20095
  get BinanceOrderType() {
19777
- return BinanceOrderType;
20096
+ return exports.BinanceOrderType;
19778
20097
  },
19779
20098
 
19780
20099
  get BinanceOrderSide() {
19781
- return BinanceOrderSide;
20100
+ return exports.BinanceOrderSide;
19782
20101
  },
19783
20102
 
19784
20103
  get BinanceTimeInForce() {
19785
- return BinanceTimeInForce;
20104
+ return exports.BinanceTimeInForce;
19786
20105
  },
19787
20106
 
19788
20107
  get Enum_InputScriptType() {
19789
- return Enum_InputScriptType;
20108
+ return exports.Enum_InputScriptType;
19790
20109
  },
19791
20110
 
19792
20111
  get Enum_OutputScriptType() {
19793
- return Enum_OutputScriptType;
20112
+ return exports.Enum_OutputScriptType;
19794
20113
  },
19795
20114
 
19796
20115
  get DecredStakingSpendType() {
19797
- return DecredStakingSpendType;
20116
+ return exports.DecredStakingSpendType;
19798
20117
  },
19799
20118
 
19800
20119
  get AmountUnit() {
19801
- return AmountUnit;
20120
+ return exports.AmountUnit;
19802
20121
  },
19803
20122
 
19804
20123
  get Enum_RequestType() {
19805
- return Enum_RequestType;
20124
+ return exports.Enum_RequestType;
19806
20125
  },
19807
20126
 
19808
20127
  get CardanoDerivationType() {
19809
- return CardanoDerivationType;
20128
+ return exports.CardanoDerivationType;
19810
20129
  },
19811
20130
 
19812
20131
  get CardanoAddressType() {
19813
- return CardanoAddressType;
20132
+ return exports.CardanoAddressType;
19814
20133
  },
19815
20134
 
19816
20135
  get CardanoNativeScriptType() {
19817
- return CardanoNativeScriptType;
20136
+ return exports.CardanoNativeScriptType;
19818
20137
  },
19819
20138
 
19820
20139
  get CardanoNativeScriptHashDisplayFormat() {
19821
- return CardanoNativeScriptHashDisplayFormat;
20140
+ return exports.CardanoNativeScriptHashDisplayFormat;
19822
20141
  },
19823
20142
 
19824
20143
  get CardanoCertificateType() {
19825
- return CardanoCertificateType;
20144
+ return exports.CardanoCertificateType;
19826
20145
  },
19827
20146
 
19828
20147
  get CardanoPoolRelayType() {
19829
- return CardanoPoolRelayType;
20148
+ return exports.CardanoPoolRelayType;
19830
20149
  },
19831
20150
 
19832
20151
  get CardanoTxAuxiliaryDataSupplementType() {
19833
- return CardanoTxAuxiliaryDataSupplementType;
20152
+ return exports.CardanoTxAuxiliaryDataSupplementType;
19834
20153
  },
19835
20154
 
19836
20155
  get CardanoTxSigningMode() {
19837
- return CardanoTxSigningMode;
20156
+ return exports.CardanoTxSigningMode;
19838
20157
  },
19839
20158
 
19840
20159
  get CardanoTxWitnessType() {
19841
- return CardanoTxWitnessType;
20160
+ return exports.CardanoTxWitnessType;
19842
20161
  },
19843
20162
 
19844
20163
  get FailureType() {
19845
- return FailureType;
20164
+ return exports.FailureType;
19846
20165
  },
19847
20166
 
19848
20167
  get Enum_ButtonRequestType() {
19849
- return Enum_ButtonRequestType;
20168
+ return exports.Enum_ButtonRequestType;
19850
20169
  },
19851
20170
 
19852
20171
  get Enum_PinMatrixRequestType() {
19853
- return Enum_PinMatrixRequestType;
20172
+ return exports.Enum_PinMatrixRequestType;
19854
20173
  },
19855
20174
 
19856
20175
  get DebugButton() {
19857
- return DebugButton;
20176
+ return exports.DebugButton;
19858
20177
  },
19859
20178
 
19860
20179
  get EthereumDataType() {
19861
- return EthereumDataType;
20180
+ return exports.EthereumDataType;
19862
20181
  },
19863
20182
 
19864
20183
  get Enum_BackupType() {
19865
- return Enum_BackupType;
20184
+ return exports.Enum_BackupType;
19866
20185
  },
19867
20186
 
19868
20187
  get Enum_SafetyCheckLevel() {
19869
- return Enum_SafetyCheckLevel;
20188
+ return exports.Enum_SafetyCheckLevel;
19870
20189
  },
19871
20190
 
19872
20191
  get Enum_Capability() {
19873
- return Enum_Capability;
20192
+ return exports.Enum_Capability;
19874
20193
  },
19875
20194
 
19876
20195
  get SdProtectOperationType() {
19877
- return SdProtectOperationType;
20196
+ return exports.SdProtectOperationType;
19878
20197
  },
19879
20198
 
19880
20199
  get RecoveryDeviceType() {
19881
- return RecoveryDeviceType;
20200
+ return exports.RecoveryDeviceType;
19882
20201
  },
19883
20202
 
19884
20203
  get Enum_WordRequestType() {
19885
- return Enum_WordRequestType;
20204
+ return exports.Enum_WordRequestType;
19886
20205
  },
19887
20206
 
19888
20207
  get NEMMosaicLevy() {
19889
- return NEMMosaicLevy;
20208
+ return exports.NEMMosaicLevy;
19890
20209
  },
19891
20210
 
19892
20211
  get NEMSupplyChangeType() {
19893
- return NEMSupplyChangeType;
20212
+ return exports.NEMSupplyChangeType;
19894
20213
  },
19895
20214
 
19896
20215
  get NEMModificationType() {
19897
- return NEMModificationType;
20216
+ return exports.NEMModificationType;
19898
20217
  },
19899
20218
 
19900
20219
  get NEMImportanceTransferMode() {
19901
- return NEMImportanceTransferMode;
20220
+ return exports.NEMImportanceTransferMode;
19902
20221
  },
19903
20222
 
19904
20223
  get StellarAssetType() {
19905
- return StellarAssetType;
20224
+ return exports.StellarAssetType;
19906
20225
  },
19907
20226
 
19908
20227
  get StellarMemoType() {
19909
- return StellarMemoType;
20228
+ return exports.StellarMemoType;
19910
20229
  },
19911
20230
 
19912
20231
  get StellarSignerType() {
19913
- return StellarSignerType;
20232
+ return exports.StellarSignerType;
19914
20233
  },
19915
20234
 
19916
20235
  get TezosContractType() {
19917
- return TezosContractType;
20236
+ return exports.TezosContractType;
19918
20237
  },
19919
20238
 
19920
20239
  get TezosBallotType() {
19921
- return TezosBallotType;
20240
+ return exports.TezosBallotType;
19922
20241
  }
19923
20242
 
19924
20243
  });
@@ -20067,6 +20386,7 @@ const HardwareErrorCode = {
20067
20386
  DeviceNotFound: 105,
20068
20387
  DeviceInitializeFailed: 106,
20069
20388
  DeviceInterruptedFromOutside: 107,
20389
+ DeviceUnexpectedBootloaderMode: 108,
20070
20390
  NotInitialized: 200,
20071
20391
  IFrameNotInitialized: 300,
20072
20392
  IFrameAleradyInitialized: 301,
@@ -20107,6 +20427,7 @@ const HardwareErrorCodeMessage = {
20107
20427
  [HardwareErrorCode.DeviceNotFound]: 'Device not found',
20108
20428
  [HardwareErrorCode.DeviceInitializeFailed]: 'Device initialization failed',
20109
20429
  [HardwareErrorCode.DeviceInterruptedFromOutside]: 'Device interrupted',
20430
+ [HardwareErrorCode.DeviceUnexpectedBootloaderMode]: 'Device should be in bootloader mode',
20110
20431
  [HardwareErrorCode.NotInitialized]: 'Not initialized',
20111
20432
  [HardwareErrorCode.IFrameNotInitialized]: 'IFrame not initialized',
20112
20433
  [HardwareErrorCode.IFrameAleradyInitialized]: 'IFrame alerady initialized',