@ecency/wallets 1.2.5 → 1.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/dist/ecency-sdk.es.js +5 -4
- package/package.json +1 -1
package/dist/ecency-sdk.es.js
CHANGED
|
@@ -154,6 +154,7 @@ function Q(e) {
|
|
|
154
154
|
const { data: t } = b(e);
|
|
155
155
|
return p({
|
|
156
156
|
queryKey: ["ecencу-wallets", "hive-keys", e, t],
|
|
157
|
+
staleTime: 1 / 0,
|
|
157
158
|
queryFn: async () => {
|
|
158
159
|
if (!t)
|
|
159
160
|
throw new Error("[Ecency][Wallets] - no seed to create Hive account");
|
|
@@ -213,7 +214,7 @@ function ye(e) {
|
|
|
213
214
|
[t, e]
|
|
214
215
|
);
|
|
215
216
|
}
|
|
216
|
-
const
|
|
217
|
+
const I = {
|
|
217
218
|
[o.BTC]: "m/44'/0'/0'/0/0",
|
|
218
219
|
// Bitcoin (BIP44)
|
|
219
220
|
[o.ETH]: "m/44'/60'/0'/0/0",
|
|
@@ -237,7 +238,7 @@ function fe(e, t) {
|
|
|
237
238
|
throw new Error("[Ecency][Wallets] - No seed to create a wallet");
|
|
238
239
|
const r = T(t), i = await (r == null ? void 0 : r.getDerivedPrivateKey({
|
|
239
240
|
mnemonic: n,
|
|
240
|
-
hdPath:
|
|
241
|
+
hdPath: I[t]
|
|
241
242
|
}));
|
|
242
243
|
await E(1e3);
|
|
243
244
|
const l = await (r == null ? void 0 : r.getNewAddress({
|
|
@@ -264,7 +265,7 @@ function fe(e, t) {
|
|
|
264
265
|
importWallet: c
|
|
265
266
|
};
|
|
266
267
|
}
|
|
267
|
-
function
|
|
268
|
+
function B(e) {
|
|
268
269
|
const { data: t } = p({
|
|
269
270
|
queryKey: ["ecency-wallets", "wallets", e]
|
|
270
271
|
}), { data: n } = Q(e);
|
|
@@ -317,7 +318,7 @@ function P() {
|
|
|
317
318
|
const he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
318
319
|
__proto__: null,
|
|
319
320
|
useCheckWalletExistence: P,
|
|
320
|
-
useCreateAccountWithWallets:
|
|
321
|
+
useCreateAccountWithWallets: B
|
|
321
322
|
}, Symbol.toStringTag, { value: "Module" })), $ = {
|
|
322
323
|
[o.BTC]: ["m/84'/0'/0'/0/0"],
|
|
323
324
|
[o.ETH]: ["m/84'/60'/0'/0/0"],
|