@onekeyfe/hd-core 1.0.27-alpha.1 → 1.0.28

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.
@@ -6,7 +6,7 @@ export default class TonGetAddress extends BaseMethod<HardwareTonGetAddress[]> {
6
6
  shouldConfirm: boolean;
7
7
  init(): void;
8
8
  getVersionRange(): {
9
- pro: {
9
+ model_touch: {
10
10
  min: string;
11
11
  };
12
12
  model_classic1s: {
@@ -1 +1 @@
1
- {"version":3,"file":"TonGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,qBAAqB,EAAE,CAAC;IAC5E,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IA2CJ,eAAe;;;;;;;;IAWT,GAAG;CA2BV"}
1
+ {"version":3,"file":"TonGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,qBAAqB,EAAE,CAAC;IAC5E,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IA4CJ,eAAe;;;;;;;;IAWT,GAAG;CA2BV"}
@@ -6,7 +6,7 @@ export default class TonSignMessage extends BaseMethod<HardwareTonSignMessage> {
6
6
  initState: string | null;
7
7
  init(): void;
8
8
  getVersionRange(): {
9
- pro: {
9
+ model_touch: {
10
10
  min: string;
11
11
  };
12
12
  model_classic1s: {
@@ -1 +1 @@
1
- {"version":3,"file":"TonSignMessage.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonSignMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,sBAAsB,EACxC,gBAAgB,EAChB,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAWhC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAA4C,MAAM,aAAa,CAAC;AAG5F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG/E,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU,CAAC,sBAAsB,CAAC;IAC5E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEhC,IAAI;IA4DJ,eAAe;;;;;;;;IAWf,uCAAuC,IAAI,mBAAmB;IAW9D,6BAA6B;IAkB7B,8BAA8B,IAAI,mBAAmB;IAWrD,oBAAoB;IAQpB,gCAAgC,IAAI,mBAAmB;IAWvD,sBAAsB;IAQtB,gBAAgB,YACL,gBAAgB,QACnB,MAAM,KACX,QAAQ,QAAQ,GAAG,wBAAwB,CAAC,CAmB7C;IAEI,GAAG;CA6BV"}
1
+ {"version":3,"file":"TonSignMessage.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonSignMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,sBAAsB,EACxC,gBAAgB,EAChB,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAA4C,MAAM,aAAa,CAAC;AAG5F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG/E,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU,CAAC,sBAAsB,CAAC;IAC5E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEhC,IAAI;IA6DJ,eAAe;;;;;;;;IAWf,uCAAuC,IAAI,mBAAmB;IAW9D,6BAA6B;IAkB7B,8BAA8B,IAAI,mBAAmB;IAWrD,oBAAoB;IAQpB,gCAAgC,IAAI,mBAAmB;IAWvD,sBAAsB;IAQtB,gBAAgB,YACL,gBAAgB,QACnB,MAAM,KACX,QAAQ,QAAQ,GAAG,wBAAwB,CAAC,CAmB7C;IAEI,GAAG;CA6BV"}
@@ -3,7 +3,7 @@ import { BaseMethod } from '../BaseMethod';
3
3
  export default class TonSignProof extends BaseMethod<HardwareTonSignProof> {
4
4
  init(): void;
5
5
  getVersionRange(): {
6
- pro: {
6
+ model_touch: {
7
7
  min: string;
8
8
  };
9
9
  model_classic1s: {
@@ -1 +1 @@
1
- {"version":3,"file":"TonSignProof.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonSignProof.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,UAAU,CAAC,oBAAoB,CAAC;IACxE,IAAI;IAiCJ,eAAe;;;;;;;;IAWT,GAAG;CAOV"}
1
+ {"version":3,"file":"TonSignProof.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonSignProof.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,UAAU,CAAC,oBAAoB,CAAC;IACxE,IAAI;IAkCJ,eAAe;;;;;;;;IAWT,GAAG;CAOV"}
package/dist/index.js CHANGED
@@ -36730,6 +36730,7 @@ class TonGetAddress extends BaseMethod {
36730
36730
  }
36731
36731
  init() {
36732
36732
  var _a;
36733
+ this.strictCheckDeviceSupport = true;
36733
36734
  this.checkDeviceId = true;
36734
36735
  this.notAllowDeviceMode = [...this.notAllowDeviceMode, UI_REQUEST.INITIALIZE];
36735
36736
  this.hasBundle = !!((_a = this.payload) === null || _a === void 0 ? void 0 : _a.bundle);
@@ -36765,7 +36766,7 @@ class TonGetAddress extends BaseMethod {
36765
36766
  }
36766
36767
  getVersionRange() {
36767
36768
  return {
36768
- pro: {
36769
+ model_touch: {
36769
36770
  min: '4.10.0',
36770
36771
  },
36771
36772
  model_classic1s: {
@@ -36816,6 +36817,7 @@ class TonSignMessage extends BaseMethod {
36816
36817
  });
36817
36818
  }
36818
36819
  init() {
36820
+ this.strictCheckDeviceSupport = true;
36819
36821
  this.checkDeviceId = true;
36820
36822
  this.notAllowDeviceMode = [...this.notAllowDeviceMode, UI_REQUEST.INITIALIZE];
36821
36823
  validateParams(this.payload, [
@@ -36872,7 +36874,7 @@ class TonSignMessage extends BaseMethod {
36872
36874
  }
36873
36875
  getVersionRange() {
36874
36876
  return {
36875
- pro: {
36877
+ model_touch: {
36876
36878
  min: '4.10.0',
36877
36879
  },
36878
36880
  model_classic1s: {
@@ -36959,6 +36961,7 @@ class TonSignMessage extends BaseMethod {
36959
36961
 
36960
36962
  class TonSignProof extends BaseMethod {
36961
36963
  init() {
36964
+ this.strictCheckDeviceSupport = true;
36962
36965
  this.checkDeviceId = true;
36963
36966
  this.notAllowDeviceMode = [...this.notAllowDeviceMode, UI_REQUEST.INITIALIZE];
36964
36967
  validateParams(this.payload, [
@@ -36988,7 +36991,7 @@ class TonSignProof extends BaseMethod {
36988
36991
  }
36989
36992
  getVersionRange() {
36990
36993
  return {
36991
- pro: {
36994
+ model_touch: {
36992
36995
  min: '4.10.0',
36993
36996
  },
36994
36997
  model_classic1s: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-core",
3
- "version": "1.0.27-alpha.1",
3
+ "version": "1.0.28",
4
4
  "description": "> TODO: description",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -25,8 +25,8 @@
25
25
  "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@onekeyfe/hd-shared": "^1.0.27-alpha.1",
29
- "@onekeyfe/hd-transport": "^1.0.27-alpha.1",
28
+ "@onekeyfe/hd-shared": "^1.0.28",
29
+ "@onekeyfe/hd-transport": "^1.0.28",
30
30
  "axios": "^0.27.2",
31
31
  "bignumber.js": "^9.0.2",
32
32
  "bytebuffer": "^5.0.1",
@@ -46,5 +46,5 @@
46
46
  "@types/web-bluetooth": "^0.0.21",
47
47
  "ripple-keypairs": "^1.1.4"
48
48
  },
49
- "gitHead": "86a744e69feea177ea301d2c85d07fbf5487f8d3"
49
+ "gitHead": "e59928917c30423a5d13a502c13b5197d2f55246"
50
50
  }
@@ -12,6 +12,7 @@ export default class TonGetAddress extends BaseMethod<HardwareTonGetAddress[]> {
12
12
  shouldConfirm = false;
13
13
 
14
14
  init() {
15
+ this.strictCheckDeviceSupport = true;
15
16
  this.checkDeviceId = true;
16
17
  this.notAllowDeviceMode = [...this.notAllowDeviceMode, UI_REQUEST.INITIALIZE];
17
18
 
@@ -56,7 +57,7 @@ export default class TonGetAddress extends BaseMethod<HardwareTonGetAddress[]> {
56
57
 
57
58
  getVersionRange() {
58
59
  return {
59
- pro: {
60
+ model_touch: {
60
61
  min: '4.10.0',
61
62
  },
62
63
  model_classic1s: {
@@ -6,11 +6,6 @@ import {
6
6
  import semver from 'semver';
7
7
  import BigNumber from 'bignumber.js';
8
8
  import { isEmpty } from 'lodash';
9
- import {
10
- createNeedUpgradeFirmwareHardwareError,
11
- ERRORS,
12
- HardwareErrorCode,
13
- } from '@onekeyfe/hd-shared';
14
9
  import { UI_REQUEST } from '../../constants/ui-request';
15
10
  import { validatePath } from '../helpers/pathUtils';
16
11
  import { BaseMethod } from '../BaseMethod';
@@ -25,6 +20,7 @@ export default class TonSignMessage extends BaseMethod<HardwareTonSignMessage> {
25
20
  initState: string | null = null;
26
21
 
27
22
  init() {
23
+ this.strictCheckDeviceSupport = true;
28
24
  this.checkDeviceId = true;
29
25
  this.notAllowDeviceMode = [...this.notAllowDeviceMode, UI_REQUEST.INITIALIZE];
30
26
 
@@ -86,7 +82,7 @@ export default class TonSignMessage extends BaseMethod<HardwareTonSignMessage> {
86
82
 
87
83
  getVersionRange() {
88
84
  return {
89
- pro: {
85
+ model_touch: {
90
86
  min: '4.10.0',
91
87
  },
92
88
  model_classic1s: {
@@ -8,6 +8,7 @@ import { TonSignProofParams } from '../../types';
8
8
 
9
9
  export default class TonSignProof extends BaseMethod<HardwareTonSignProof> {
10
10
  init() {
11
+ this.strictCheckDeviceSupport = true;
11
12
  this.checkDeviceId = true;
12
13
  this.notAllowDeviceMode = [...this.notAllowDeviceMode, UI_REQUEST.INITIALIZE];
13
14
 
@@ -42,7 +43,7 @@ export default class TonSignProof extends BaseMethod<HardwareTonSignProof> {
42
43
 
43
44
  getVersionRange() {
44
45
  return {
45
- pro: {
46
+ model_touch: {
46
47
  min: '4.10.0',
47
48
  },
48
49
  model_classic1s: {