@hinkal/common 0.0.86 → 0.0.88

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.
@@ -1,5 +1,5 @@
1
- import { U as l, d as p, a as T, b as f, c as I, g as y, l as h, p as m } from "./zkProofWorkerLogic-CVktKn1s.js";
2
- import "./zkProofWorkerLauncher-BGmeEepV.js";
1
+ import { U as l, d as p, a as T, b as f, c as I, e as y, l as h, p as m } from "./zkProofWorkerLogic-Doz4ARB3.js";
2
+ import "./zkProofWorkerLauncher-D86Xs1_B.js";
3
3
  const U = (e) => {
4
4
  const t = p.decode(
5
5
  ["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
@@ -1,6 +1,6 @@
1
- import { W as r } from "./zkProofWorkerLogic-CVktKn1s.js";
2
- import "./zkProofWorkerLauncher-BGmeEepV.js";
3
- var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CaBCnle3.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href;
1
+ import { W as r } from "./zkProofWorkerLogic-Doz4ARB3.js";
2
+ import "./zkProofWorkerLauncher-D86Xs1_B.js";
3
+ var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-fuD5h_j0.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href;
4
4
  const n = {
5
5
  [r.ZKProof]: o,
6
6
  [r.SnarkJS]: e,
@@ -1190,7 +1190,7 @@ const et = () => {
1190
1190
  };
1191
1191
  globalThis.process = tt;
1192
1192
  globalThis.Buffer = xr.Buffer;
1193
- const nt = import("./zkProofWorkerLogic-CVktKn1s.js").then(function(f) {
1193
+ const nt = import("./zkProofWorkerLogic-Doz4ARB3.js").then(function(f) {
1194
1194
  return f.z;
1195
1195
  });
1196
1196
  addEventListener("message", async (f) => {
@@ -1,4 +1,4 @@
1
- import { g as getAugmentedNamespace, b as buffer, c as commonjsGlobal, a as getDefaultExportFromCjs$1, d as base64Js } from "./zkProofWorkerLauncher-BGmeEepV.js";
1
+ import { g as getAugmentedNamespace, b as buffer, c as commonjsGlobal, a as getDefaultExportFromCjs$1, d as base64Js } from "./zkProofWorkerLauncher-D86Xs1_B.js";
2
2
  const hexLen = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
3
3
  function fromString$1(a, d) {
4
4
  if (!d || d == 10)
@@ -11406,10 +11406,10 @@ function eventTargetAgnosticAddListener(a, d, n, c) {
11406
11406
  else
11407
11407
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof a);
11408
11408
  }
11409
- var eventsExports = events$1.exports, streamBrowser = eventsExports.EventEmitter, fs = {}, __viteBrowserExternal = /* @__PURE__ */ Object.freeze({
11409
+ var eventsExports = events$1.exports, streamBrowser = eventsExports.EventEmitter, __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze({
11410
11410
  __proto__: null,
11411
- default: fs
11412
- }), require$$0$4 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal), buffer_list, hasRequiredBuffer_list;
11411
+ default: __viteBrowserExternal
11412
+ }), require$$0$4 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1), buffer_list, hasRequiredBuffer_list;
11413
11413
  function requireBuffer_list() {
11414
11414
  if (hasRequiredBuffer_list)
11415
11415
  return buffer_list;
@@ -15648,7 +15648,7 @@ let Writer$4 = class {
15648
15648
  return BigNumber.from(this.readBytes(this.wordSize));
15649
15649
  }
15650
15650
  };
15651
- var sha3$1 = { exports: {} };
15651
+ var sha3$2 = { exports: {} };
15652
15652
  /**
15653
15653
  * [js-sha3]{@link https://github.com/emn178/js-sha3}
15654
15654
  *
@@ -15912,10 +15912,10 @@ var sha3$1 = { exports: {} };
15912
15912
  for (ce = 0; ce < ye.length; ++ce)
15913
15913
  A[ye[ce]] = U[ye[ce]];
15914
15914
  })();
15915
- })(sha3$1);
15916
- var sha3Exports = sha3$1.exports, jsSha3 = /* @__PURE__ */ getDefaultExportFromCjs$1(sha3Exports);
15915
+ })(sha3$2);
15916
+ var sha3Exports = sha3$2.exports, sha3$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(sha3Exports);
15917
15917
  function keccak256$2(a) {
15918
- return "0x" + jsSha3.keccak_256(arrayify(a));
15918
+ return "0x" + sha3$1.keccak_256(arrayify(a));
15919
15919
  }
15920
15920
  var lib_esm$i = /* @__PURE__ */ Object.freeze({
15921
15921
  __proto__: null,
@@ -149417,7 +149417,7 @@ class WorkerFactory {
149417
149417
  constructor() {
149418
149418
  }
149419
149419
  static resolveWorkerURL = async (d) => {
149420
- const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-BZomZzVv.js");
149420
+ const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-TBsXLMNi.js");
149421
149421
  return new URL(c[d], n);
149422
149422
  };
149423
149423
  static createWorker = async (d) => {
@@ -149425,12 +149425,12 @@ class WorkerFactory {
149425
149425
  let c;
149426
149426
  return d === WorkerVariant.SnarkJS ? c = await import(
149427
149427
  /* @vite-ignore */
149428
- "./snarkjsWorkerLogic-B2ZAx1Vx.js"
149428
+ "./snarkjsWorkerLogic-D1WyqRQr.js"
149429
149429
  ) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
149430
149430
  return zkProofWorkerLogic;
149431
149431
  }) : d === WorkerVariant.UTXO && (c = await import(
149432
149432
  /* @vite-ignore */
149433
- "./utxoWorkerLogic-CdCvw5yQ.js"
149433
+ "./utxoWorkerLogic-BUjkvmsS.js"
149434
149434
  )), c.default;
149435
149435
  }
149436
149436
  const n = await WorkerFactory.resolveWorkerURL(d);
@@ -249237,12 +249237,8 @@ export {
249237
249237
  Utxo as b,
249238
249238
  decryptUtxoConstructorArgs as c,
249239
249239
  defaultAbiCoder as d,
249240
- eventsExports as e,
249241
- fs as f,
249242
- decryptUtxo as g,
249240
+ decryptUtxo as e,
249243
249241
  logError as l,
249244
249242
  preProcessing as p,
249245
- require$$0$4 as r,
249246
- util$b as u,
249247
249243
  zkProofWorkerLogic as z
249248
249244
  };