@hinkal/common 0.0.69 → 0.0.71

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.
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
1192
1192
  };
1193
1193
  globalThis.process = It;
1194
1194
  globalThis.Buffer = gr;
1195
- const Tt = import("./snarkjsWorkerLogic-lF_GoZvZ.js");
1195
+ const Tt = import("./snarkjsWorkerLogic-DRlN78hN.js");
1196
1196
  addEventListener("message", async (h) => {
1197
1197
  const { onWorkerMessage: f } = await Tt;
1198
1198
  f(h.data);
@@ -1,4 +1,4 @@
1
- import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-BvlkhcoG.js";
1
+ import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-BazhiJ3V.js";
2
2
  class WorkerProxy {
3
3
  isNode = !1;
4
4
  /**
@@ -37296,12 +37296,11 @@ const isNode = typeof process$1 < "u" && process$1.versions != null && process$1
37296
37296
  }
37297
37297
  } = c.metadata;
37298
37298
  let S = n, B = a;
37299
- if (console.log({ isWebpack, wasmFilePath: n }), isNode) {
37299
+ if (console.log({ isWebpack }), console.log({ wasmFilePath: n }), isNode) {
37300
37300
  A && !isWebpack ? (S = `test/circuits/${n}`, B = `test/circuits/${a}`) : isWebpack && (S = `libs/hardhat/test/circuits/${n}`, B = `libs/hardhat/test/circuits/${a}`);
37301
37301
  const _ = require("path");
37302
37302
  S = _.resolve(S), B = _.resolve(B);
37303
- } else
37304
- d === M.localhost && (S = `${u}/${n}`, B = `${u}/${a}`);
37303
+ }
37305
37304
  console.log({ wasmFullFilePath: S });
37306
37305
  try {
37307
37306
  const { proof: _, publicSignals: I } = await groth16FullProve(t, S, B), O = await groth16ExportSolidityCallData(_, I), $ = JSON.parse(`[${O}]`);
@@ -1,5 +1,5 @@
1
- import { p as Se, B as Lo } from "./zkProofWorkerLauncher-BUnka4vM.js";
2
- import { r as sn, g as ja, a as mo, b as bo, c as en, e as $a, d as Ga, u as Un, f as yo } from "./zkProofWorkerLogic-2Y3vwGGg.js";
1
+ import { p as Se, B as Lo } from "./zkProofWorkerLauncher-DdLnV4nj.js";
2
+ import { r as sn, g as ja, a as mo, b as bo, c as en, e as $a, d as Ga, u as Un, f as yo } from "./zkProofWorkerLogic-DAndDxlc.js";
3
3
  const Co = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
4
4
  function rn(c, t) {
5
5
  if (!t || t == 10)
@@ -15666,12 +15666,11 @@ const il = typeof Se < "u" && Se.versions != null && Se.versions.node != null, x
15666
15666
  }
15667
15667
  } = c.metadata;
15668
15668
  let C = e, l = n;
15669
- if (console.log({ isWebpack: xn, wasmFilePath: e }), il) {
15669
+ if (console.log({ isWebpack: xn }), console.log({ wasmFilePath: e }), il) {
15670
15670
  g && !xn ? (C = `test/circuits/${e}`, l = `test/circuits/${n}`) : xn && (C = `libs/hardhat/test/circuits/${e}`, l = `libs/hardhat/test/circuits/${n}`);
15671
15671
  const o = require("path");
15672
15672
  C = o.resolve(C), l = o.resolve(l);
15673
- } else
15674
- a === d.localhost && (C = `${s}/${e}`, l = `${s}/${n}`);
15673
+ }
15675
15674
  console.log({ wasmFullFilePath: C });
15676
15675
  try {
15677
15676
  const { proof: o, publicSignals: y } = await Ir(t, C, l), E = await Or(o, y), m = JSON.parse(`[${E}]`);
@@ -1,5 +1,5 @@
1
- import { B as U } from "./zkProofWorkerLauncher-BUnka4vM.js";
2
- import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-2Y3vwGGg.js";
1
+ import { B as U } from "./zkProofWorkerLauncher-DdLnV4nj.js";
2
+ import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-DAndDxlc.js";
3
3
  const g = (e) => {
4
4
  const t = T.decode(
5
5
  ["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
@@ -1,6 +1,6 @@
1
- import { W as r } from "./zkProofWorkerLogic-2Y3vwGGg.js";
2
- import "./zkProofWorkerLauncher-BUnka4vM.js";
3
- var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-BvlkhcoG.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-DnwHvvqe.js", import.meta.url).href;
1
+ import { W as r } from "./zkProofWorkerLogic-DAndDxlc.js";
2
+ import "./zkProofWorkerLauncher-DdLnV4nj.js";
3
+ var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-BazhiJ3V.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-DnwHvvqe.js", import.meta.url).href;
4
4
  const n = {
5
5
  [r.ZKProof]: o,
6
6
  [r.SnarkJS]: e,
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
1192
1192
  };
1193
1193
  globalThis.process = It;
1194
1194
  globalThis.Buffer = gr;
1195
- const Tt = import("./zkProofWorkerLogic-2Y3vwGGg.js").then(function(h) {
1195
+ const Tt = import("./zkProofWorkerLogic-DAndDxlc.js").then(function(h) {
1196
1196
  return h.z;
1197
1197
  });
1198
1198
  addEventListener("message", async (h) => {