@hinkal/common 0.0.58 → 0.0.60
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/assets/{snarkjsWorkerLogic-DuoLnikR.js → snarkjsWorkerLogic-DiaByR1H.js} +2 -2
- package/assets/{utxoWorkerLauncher-CqYoNYez.js → utxoWorkerLauncher-DnwHvvqe.js} +1 -1
- package/assets/{utxoWorkerLogic-DJoXxmeS.js → utxoWorkerLogic-7GeccTLS.js} +26695 -26667
- package/assets/{utxoWorkerLogic-DkwQWL-r.js → utxoWorkerLogic-DHb7wtxM.js} +2 -2
- package/assets/{viteWorkerURL.constant-DILHi0VU.js → viteWorkerURL.constant-Bx32O0Qa.js} +3 -3
- package/assets/{zkProofWorkerLauncher-BS9zCqRH.js → zkProofWorkerLauncher-DvQXC-QM.js} +1 -1
- package/assets/{zkProofWorkerLogic-BrqYSDKf.js → zkProofWorkerLogic-DIo7waUX.js} +4 -4
- package/functions/private-wallet/emporium.helpers.d.ts +0 -5
- package/functions/private-wallet/index.d.ts +0 -1
- package/{index-DzxOPhDT.mjs → index-BJFtjy4q.mjs} +49602 -49660
- package/index.mjs +247 -249
- package/package.json +3 -1
- package/{snarkjsWorkerLogic-DFbF0nqM.mjs → snarkjsWorkerLogic-C_48sg15.mjs} +4 -4
- package/{utxoWorkerLogic-DiF7S12E.mjs → utxoWorkerLogic-CJeBbJOT.mjs} +2 -2
- package/viteWorkerURL.constant-6P0hAXDX.mjs +9 -0
- package/{workerProxy-9ZdA7T2R.mjs → workerProxy-B-WTeLd-.mjs} +1 -1
- package/{zkProofWorkerLogic-C56_EYhS.mjs → zkProofWorkerLogic-DjS3X7Nv.mjs} +2 -2
- package/viteWorkerURL.constant-DcP0zJRL.mjs +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as U } from "./zkProofWorkerLauncher-
|
|
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-
|
|
1
|
+
import { B as U } from "./zkProofWorkerLauncher-DvQXC-QM.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-DIo7waUX.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-
|
|
2
|
-
import "./zkProofWorkerLauncher-
|
|
3
|
-
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-
|
|
1
|
+
import { W as r } from "./zkProofWorkerLogic-DIo7waUX.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-DvQXC-QM.js";
|
|
3
|
+
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CAfPlZZk.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-
|
|
1195
|
+
const Tt = import("./zkProofWorkerLogic-DIo7waUX.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-
|
|
1
|
+
import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-DvQXC-QM.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-
|
|
161589
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-Bx32O0Qa.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-
|
|
161597
|
+
"./snarkjsWorkerLogic-DiaByR1H.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-
|
|
161602
|
+
"./utxoWorkerLogic-DHb7wtxM.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';
|