@onekeyfe/hd-core 0.1.46 → 0.1.47
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/dist/api/tron/TronGetAddress.d.ts +1 -1
- package/dist/api/tron/TronGetAddress.d.ts.map +1 -1
- package/dist/api/tron/TronSignMessage.d.ts +1 -1
- package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
- package/dist/api/tron/TronSignTransaction.d.ts +1 -1
- package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/package.json +4 -4
- package/src/api/near/NearGetAddress.ts +1 -1
- package/src/api/near/NearSignTransaction.ts +1 -1
- package/src/api/tron/TronGetAddress.ts +2 -2
- package/src/api/tron/TronSignMessage.ts +3 -3
- package/src/api/tron/TronSignTransaction.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TronGetAddress as HardwareTronGetAddress } from '@onekeyfe/hd-transport';
|
|
1
2
|
import { BaseMethod } from '../BaseMethod';
|
|
2
3
|
import { TronAddress } from '../../types';
|
|
3
|
-
import { TronGetAddress as HardwareTronGetAddress } from '@onekeyfe/hd-transport';
|
|
4
4
|
export default class TronGetAddress extends BaseMethod<HardwareTronGetAddress[]> {
|
|
5
5
|
hasBundle: boolean;
|
|
6
6
|
init(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TronGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronGetAddress.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TronGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAwB,WAAW,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU,CAAC,sBAAsB,EAAE,CAAC;IAC9E,SAAS,UAAS;IAElB,IAAI;IA6BJ,eAAe;;;;;IAQT,GAAG;CAoBV"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseMethod } from '../BaseMethod';
|
|
2
1
|
import { TronSignMessage as HardwareTronSignMessage } from '@onekeyfe/hd-transport';
|
|
2
|
+
import { BaseMethod } from '../BaseMethod';
|
|
3
3
|
export default class TronSignMessage extends BaseMethod<HardwareTronSignMessage> {
|
|
4
4
|
init(): void;
|
|
5
5
|
getVersionRange(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TronSignMessage.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TronSignMessage.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGpF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,uBAAuB,CAAC;IAC9E,IAAI;IAoBJ,eAAe;;;;;IAQT,GAAG;CAWV"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TronSignTx } from '@onekeyfe/hd-transport';
|
|
1
2
|
import { BaseMethod } from '../BaseMethod';
|
|
2
3
|
import { TronTransaction } from '../../types/api/tronSignTransaction';
|
|
3
|
-
import { TronSignTx } from '@onekeyfe/hd-transport';
|
|
4
4
|
export default class TronSignTransaction extends BaseMethod<TronSignTx> {
|
|
5
5
|
parseTx(tx: TronTransaction, address_n: number[]): TronSignTx;
|
|
6
6
|
init(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TronSignTransaction.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignTransaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TronSignTransaction.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,UAAU,CAAC,UAAU,CAAC;IACrE,OAAO,CAAC,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,UAAU;IAqC7D,IAAI;IAyBJ,eAAe;;;;;IAQT,GAAG;CAOV"}
|
package/dist/index.js
CHANGED
|
@@ -14560,7 +14560,7 @@ class TronGetAddress extends BaseMethod {
|
|
|
14560
14560
|
getVersionRange() {
|
|
14561
14561
|
return {
|
|
14562
14562
|
model_mini: {
|
|
14563
|
-
min: '2.
|
|
14563
|
+
min: '2.5.0',
|
|
14564
14564
|
},
|
|
14565
14565
|
};
|
|
14566
14566
|
}
|
|
@@ -14599,7 +14599,7 @@ class TronSignMessage extends BaseMethod {
|
|
|
14599
14599
|
getVersionRange() {
|
|
14600
14600
|
return {
|
|
14601
14601
|
model_mini: {
|
|
14602
|
-
min: '2.
|
|
14602
|
+
min: '2.5.0',
|
|
14603
14603
|
},
|
|
14604
14604
|
};
|
|
14605
14605
|
}
|
|
@@ -14667,7 +14667,7 @@ class TronSignTransaction extends BaseMethod {
|
|
|
14667
14667
|
getVersionRange() {
|
|
14668
14668
|
return {
|
|
14669
14669
|
model_mini: {
|
|
14670
|
-
min: '2.
|
|
14670
|
+
min: '2.5.0',
|
|
14671
14671
|
},
|
|
14672
14672
|
};
|
|
14673
14673
|
}
|
|
@@ -14709,7 +14709,7 @@ class NearGetAddress extends BaseMethod {
|
|
|
14709
14709
|
getVersionRange() {
|
|
14710
14710
|
return {
|
|
14711
14711
|
model_mini: {
|
|
14712
|
-
min: '2.
|
|
14712
|
+
min: '2.5.0',
|
|
14713
14713
|
},
|
|
14714
14714
|
};
|
|
14715
14715
|
}
|
|
@@ -14748,7 +14748,7 @@ class NearSignTransaction extends BaseMethod {
|
|
|
14748
14748
|
getVersionRange() {
|
|
14749
14749
|
return {
|
|
14750
14750
|
model_mini: {
|
|
14751
|
-
min: '2.
|
|
14751
|
+
min: '2.5.0',
|
|
14752
14752
|
},
|
|
14753
14753
|
};
|
|
14754
14754
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@onekeyfe/hd-shared": "^0.1.
|
|
28
|
-
"@onekeyfe/hd-transport": "^0.1.
|
|
27
|
+
"@onekeyfe/hd-shared": "^0.1.47",
|
|
28
|
+
"@onekeyfe/hd-transport": "^0.1.47",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"bignumber.js": "^9.0.2",
|
|
31
31
|
"js-sha256": "^0.9.0",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/parse-uri": "^1.0.0",
|
|
37
37
|
"@types/semver": "^7.3.9"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "66d6a45a4b761292ca21ddf8e0d1c192d3756529"
|
|
40
40
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { TronGetAddress as HardwareTronGetAddress } from '@onekeyfe/hd-transport';
|
|
1
2
|
import { UI_REQUEST } from '../../constants/ui-request';
|
|
2
3
|
import { serializedPath, validatePath } from '../helpers/pathUtils';
|
|
3
4
|
import { BaseMethod } from '../BaseMethod';
|
|
4
5
|
import { validateParams } from '../helpers/paramsValidator';
|
|
5
6
|
import { TronGetAddressParams, TronAddress } from '../../types';
|
|
6
|
-
import { TronGetAddress as HardwareTronGetAddress } from '@onekeyfe/hd-transport';
|
|
7
7
|
|
|
8
8
|
export default class TronGetAddress extends BaseMethod<HardwareTronGetAddress[]> {
|
|
9
9
|
hasBundle = false;
|
|
@@ -40,7 +40,7 @@ export default class TronGetAddress extends BaseMethod<HardwareTronGetAddress[]>
|
|
|
40
40
|
getVersionRange() {
|
|
41
41
|
return {
|
|
42
42
|
model_mini: {
|
|
43
|
-
min: '2.
|
|
43
|
+
min: '2.5.0',
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { TronSignMessage as HardwareTronSignMessage } from '@onekeyfe/hd-transport';
|
|
1
2
|
import { UI_REQUEST } from '../../constants/ui-request';
|
|
2
3
|
import { validatePath } from '../helpers/pathUtils';
|
|
3
4
|
import { BaseMethod } from '../BaseMethod';
|
|
4
5
|
import { validateParams } from '../helpers/paramsValidator';
|
|
5
6
|
import { stripHexPrefix } from '../helpers/hexUtils';
|
|
6
|
-
import { TronSignMessage as HardwareTronSignMessage } from '@onekeyfe/hd-transport';
|
|
7
7
|
|
|
8
8
|
export default class TronSignMessage extends BaseMethod<HardwareTronSignMessage> {
|
|
9
9
|
init() {
|
|
@@ -29,7 +29,7 @@ export default class TronSignMessage extends BaseMethod<HardwareTronSignMessage>
|
|
|
29
29
|
getVersionRange() {
|
|
30
30
|
return {
|
|
31
31
|
model_mini: {
|
|
32
|
-
min: '2.
|
|
32
|
+
min: '2.5.0',
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -40,7 +40,7 @@ export default class TronSignMessage extends BaseMethod<HardwareTronSignMessage>
|
|
|
40
40
|
'TronMessageSignature',
|
|
41
41
|
{
|
|
42
42
|
...this.params,
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
44
|
);
|
|
45
45
|
|
|
46
46
|
return Promise.resolve(response.message);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { TronSignTx } from '@onekeyfe/hd-transport';
|
|
1
2
|
import { UI_REQUEST } from '../../constants/ui-request';
|
|
2
3
|
import { validatePath } from '../helpers/pathUtils';
|
|
3
4
|
import { BaseMethod } from '../BaseMethod';
|
|
4
5
|
import { validateParams } from '../helpers/paramsValidator';
|
|
5
6
|
import { TronTransaction } from '../../types/api/tronSignTransaction';
|
|
6
|
-
import { TronSignTx } from '@onekeyfe/hd-transport';
|
|
7
7
|
import { formatAnyHex } from '../helpers/hexUtils';
|
|
8
8
|
|
|
9
9
|
export default class TronSignTransaction extends BaseMethod<TronSignTx> {
|
|
@@ -72,7 +72,7 @@ export default class TronSignTransaction extends BaseMethod<TronSignTx> {
|
|
|
72
72
|
getVersionRange() {
|
|
73
73
|
return {
|
|
74
74
|
model_mini: {
|
|
75
|
-
min: '2.
|
|
75
|
+
min: '2.5.0',
|
|
76
76
|
},
|
|
77
77
|
};
|
|
78
78
|
}
|