@hinkal/common 0.0.58 → 0.0.59

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 { p as Se, B as Lo } from "./zkProofWorkerLauncher-BS9zCqRH.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-BrqYSDKf.js";
1
+ import { p as Se, B as Lo } from "./zkProofWorkerLauncher-B-_yH0h1.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-DPdo2Zdx.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)
@@ -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("./utxoWorkerLogic-DJoXxmeS.js");
1195
+ const Tt = import("./utxoWorkerLogic-CnD255Z-.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 { d as dist, p as process$1, B as Buffer } from "./utxoWorkerLauncher-CqYoNYez.js";
1
+ import { d as dist, p as process$1, B as Buffer } from "./utxoWorkerLauncher-C7XZVzJF.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(I, c) {
4
4
  if (!c || c == 10)
@@ -14113,11 +14113,13 @@ function requirePipeline() {
14113
14113
  }
14114
14114
  return pipeline_1 = J, pipeline_1;
14115
14115
  }
14116
- (function(I, c) {
14117
- c = I.exports = require_stream_readable$1(), c.Stream = c, c.Readable = c, c.Writable = require_stream_writable$1(), c.Duplex = require_stream_duplex$1(), c.Transform = require_stream_transform$1(), c.PassThrough = require_stream_passthrough$1(), c.finished = requireEndOfStream(), c.pipeline = requirePipeline();
14118
- })(readableBrowser$1, readableBrowser$1.exports);
14119
- var readableBrowserExports = readableBrowser$1.exports;
14120
- readableBrowserExports.Transform;
14116
+ var hasRequiredReadableBrowser$1;
14117
+ function requireReadableBrowser$1() {
14118
+ return hasRequiredReadableBrowser$1 || (hasRequiredReadableBrowser$1 = 1, function(I, c) {
14119
+ c = I.exports = require_stream_readable$1(), c.Stream = c, c.Readable = c, c.Writable = require_stream_writable$1(), c.Duplex = require_stream_duplex$1(), c.Transform = require_stream_transform$1(), c.PassThrough = require_stream_passthrough$1(), c.finished = requireEndOfStream(), c.pipeline = requirePipeline();
14120
+ }(readableBrowser$1, readableBrowser$1.exports)), readableBrowser$1.exports;
14121
+ }
14122
+ requireReadableBrowser$1().Transform;
14121
14123
  class Blake {
14122
14124
  _lengthCarry(c) {
14123
14125
  for (let l = 0; l < c.length && !(c[l] < 4294967296); ++l)
@@ -46463,7 +46465,7 @@ function requireHashBase$1() {
46463
46465
  if (hasRequiredHashBase$1)
46464
46466
  return hashBase$1;
46465
46467
  hasRequiredHashBase$1 = 1;
46466
- var I = requireSafeBuffer$1().Buffer, c = readableBrowserExports.Transform, l = requireInherits_browser();
46468
+ var I = requireSafeBuffer$1().Buffer, c = requireReadableBrowser$1().Transform, l = requireInherits_browser();
46467
46469
  function h(o, y) {
46468
46470
  if (!I.isBuffer(o) && typeof o != "string")
46469
46471
  throw new TypeError(y + " must be a string or a buffer");
@@ -46557,7 +46559,7 @@ function requireHashBase() {
46557
46559
  if (hasRequiredHashBase)
46558
46560
  return hashBase;
46559
46561
  hasRequiredHashBase = 1;
46560
- var I = requireSafeBuffer$1().Buffer, c = readableBrowserExports.Transform, l = requireInherits_browser();
46562
+ var I = requireSafeBuffer$1().Buffer, c = requireReadableBrowser$1().Transform, l = requireInherits_browser();
46561
46563
  function h(o, y) {
46562
46564
  if (!I.isBuffer(o) && typeof o != "string")
46563
46565
  throw new TypeError(y + " must be a string or a buffer");
@@ -1,5 +1,5 @@
1
- import { B as U } from "./zkProofWorkerLauncher-BS9zCqRH.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-BrqYSDKf.js";
1
+ import { B as U } from "./zkProofWorkerLauncher-B-_yH0h1.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-DPdo2Zdx.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-BrqYSDKf.js";
2
- import "./zkProofWorkerLauncher-BS9zCqRH.js";
3
- var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-CqYoNYez.js", import.meta.url).href;
1
+ import { W as r } from "./zkProofWorkerLogic-DPdo2Zdx.js";
2
+ import "./zkProofWorkerLauncher-B-_yH0h1.js";
3
+ var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-C7XZVzJF.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-BrqYSDKf.js").then(function(h) {
1195
+ const Tt = import("./zkProofWorkerLogic-DPdo2Zdx.js").then(function(h) {
1196
1196
  return h.z;
1197
1197
  });
1198
1198
  addEventListener("message", async (h) => {
@@ -1,4 +1,4 @@
1
- import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-BS9zCqRH.js";
1
+ import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-B-_yH0h1.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)
@@ -161586,7 +161586,7 @@ class WorkerFactory {
161586
161586
  constructor() {
161587
161587
  }
161588
161588
  static resolveWorkerURL = async (d) => {
161589
- const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-DILHi0VU.js");
161589
+ const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-CnuXeF0k.js");
161590
161590
  return new URL(c[d], n);
161591
161591
  };
161592
161592
  static createWorker = async (d) => {
@@ -161594,12 +161594,12 @@ class WorkerFactory {
161594
161594
  let c;
161595
161595
  return d === WorkerVariant.SnarkJS ? c = await import(
161596
161596
  /* @vite-ignore */
161597
- "./snarkjsWorkerLogic-DuoLnikR.js"
161597
+ "./snarkjsWorkerLogic-1Gv5Fdwi.js"
161598
161598
  ) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
161599
161599
  return zkProofWorkerLogic;
161600
161600
  }) : d === WorkerVariant.UTXO && (c = await import(
161601
161601
  /* @vite-ignore */
161602
- "./utxoWorkerLogic-DkwQWL-r.js"
161602
+ "./utxoWorkerLogic-DI6j2LvW.js"
161603
161603
  )), c.default;
161604
161604
  }
161605
161605
  const n = await WorkerFactory.resolveWorkerURL(d);
@@ -1,5 +0,0 @@
1
- import { Contract, ContractTransaction } from 'ethers';
2
- export declare const emporiumOp: <ContractInstance extends Contract, ContractFunctions extends ContractInstance["functions"], ExactFunction extends { [K in keyof ContractFunctions]: ReturnType<ContractFunctions[K]> extends Promise<ContractTransaction> ? K : never; }[keyof ContractFunctions], FunctionArguments extends Parameters<ContractFunctions[ExactFunction]>>(contract: ContractInstance | string, func?: ExactFunction, args?: FunctionArguments extends [
3
- ] ? [
4
- ] : FunctionArguments, invokeWallet?: boolean, value?: bigint) => string;
5
- export declare const encodeEmporiumMetadata: (ops: string[], walletSalt?: string) => string;
@@ -1 +0,0 @@
1
- export * from './emporium.helpers';