@onekeyfe/hd-web-sdk 0.2.4 → 0.2.6
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/build/iframe.html +1 -1
- package/build/js/iframe.e162166654afe2b43e26.js +3 -0
- package/build/js/{iframe.75db335c57cdc1bb866f.js.LICENSE.txt → iframe.e162166654afe2b43e26.js.LICENSE.txt} +0 -0
- package/build/js/iframe.e162166654afe2b43e26.js.map +1 -0
- package/build/onekey-js-sdk.js +11 -4
- package/build/onekey-js-sdk.js.map +1 -1
- package/build/onekey-js-sdk.min.js +1 -1
- package/build/onekey-js-sdk.min.js.map +1 -1
- package/package.json +6 -6
- package/build/js/iframe.75db335c57cdc1bb866f.js +0 -3
- package/build/js/iframe.75db335c57cdc1bb866f.js.map +0 -1
package/build/onekey-js-sdk.js
CHANGED
|
@@ -25273,7 +25273,7 @@ class XrpGetAddress$1 extends BaseMethod {
|
|
|
25273
25273
|
}
|
|
25274
25274
|
|
|
25275
25275
|
run() {
|
|
25276
|
-
var _a;
|
|
25276
|
+
var _a, _b, _c;
|
|
25277
25277
|
|
|
25278
25278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25279
25279
|
if (this.hasBundle && supportBatchPublicKey((_a = this.device) === null || _a === void 0 ? void 0 : _a.features)) {
|
|
@@ -25294,12 +25294,19 @@ class XrpGetAddress$1 extends BaseMethod {
|
|
|
25294
25294
|
for (let i = 0; i < this.params.length; i++) {
|
|
25295
25295
|
const param = this.params[i];
|
|
25296
25296
|
const res = yield this.device.commands.typedCall('RippleGetAddress', 'RippleAddress', Object.assign({}, param));
|
|
25297
|
+
const publicKey = yield this.device.commands.typedCall('BatchGetPublickeys', 'EcdsaPublicKeys', {
|
|
25298
|
+
paths: [{
|
|
25299
|
+
address_n: param.address_n
|
|
25300
|
+
}],
|
|
25301
|
+
ecdsa_curve_name: 'secp256k1'
|
|
25302
|
+
});
|
|
25297
25303
|
const {
|
|
25298
25304
|
address
|
|
25299
25305
|
} = res.message;
|
|
25300
25306
|
responses.push({
|
|
25301
25307
|
path: serializedPath(param.address_n),
|
|
25302
|
-
address
|
|
25308
|
+
address,
|
|
25309
|
+
publicKey: (_c = (_b = publicKey.message) === null || _b === void 0 ? void 0 : _b.public_keys) === null || _c === void 0 ? void 0 : _c[0]
|
|
25303
25310
|
});
|
|
25304
25311
|
}
|
|
25305
25312
|
|
|
@@ -71836,7 +71843,7 @@ module.exports = {"i8":"6.5.4"};
|
|
|
71836
71843
|
/***/ ((module) => {
|
|
71837
71844
|
|
|
71838
71845
|
"use strict";
|
|
71839
|
-
module.exports = JSON.parse('{"name":"@onekeyfe/hd-core","version":"0.2.
|
|
71846
|
+
module.exports = JSON.parse('{"name":"@onekeyfe/hd-core","version":"0.2.6","description":"> TODO: description","author":"OneKey","homepage":"https://github.com/OneKeyHQ/hardware-js-sdk#readme","license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/OneKeyHQ/hardware-js-sdk.git"},"publishConfig":{"access":"public"},"scripts":{"dev":"rimraf dist && rollup -c ../../build/rollup.config.js -w","build":"rimraf dist && rollup -c ../../build/rollup.config.js","lint":"eslint .","lint:fix":"eslint . --fix"},"bugs":{"url":"https://github.com/OneKeyHQ/hardware-js-sdk/issues"},"dependencies":{"@onekeyfe/hd-shared":"^0.2.6","@onekeyfe/hd-transport":"^0.2.6","axios":"^0.27.2","bignumber.js":"^9.0.2","jszip":"^3.10.1","parse-uri":"^1.0.7","semver":"^7.3.7"},"peerDependencies":{"@noble/hashes":"^1.1.3","ripple-keypairs":"^1.1.4"},"devDependencies":{"@noble/hashes":"^1.1.3","@types/parse-uri":"^1.0.0","@types/semver":"^7.3.9","ripple-keypairs":"^1.1.4"}}');
|
|
71840
71847
|
|
|
71841
71848
|
/***/ })
|
|
71842
71849
|
|
|
@@ -74375,7 +74382,7 @@ const src_init = async settings => {
|
|
|
74375
74382
|
|
|
74376
74383
|
try {
|
|
74377
74384
|
await init({ ..._settings,
|
|
74378
|
-
version: "0.2.
|
|
74385
|
+
version: "0.2.6"
|
|
74379
74386
|
});
|
|
74380
74387
|
return true;
|
|
74381
74388
|
} catch (e) {
|