@hinkal/common 0.0.48 → 0.0.50
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-DW8NKN0Y.js → snarkjsWorkerLogic-C-vBeo0f.js} +4 -4
- package/assets/{utxoWorkerLogic-CtW3IrAW.js → utxoWorkerLogic-BlmnZKZl.js} +2 -2
- package/assets/{viteWorkerURL.constant-BjQXDRFv.js → viteWorkerURL.constant-B9r_vIiq.js} +2 -2
- package/assets/{zkProofWorkerLauncher-CmF_4P7I.js → zkProofWorkerLauncher-B_lYufrg.js} +1 -1
- package/assets/{zkProofWorkerLogic-CPA7BZFf.js → zkProofWorkerLogic-B3e6UlTz.js} +61269 -64872
- package/data-structures/Hinkal/Hinkal.d.ts +0 -1
- package/data-structures/Hinkal/IHinkal.d.ts +0 -1
- package/data-structures/Hinkal/index.d.ts +0 -1
- package/externalABIs/index.d.ts +1 -2
- package/functions/private-wallet/index.d.ts +0 -1
- package/{index-Dq7UlO_Y.mjs → index-DYSw4i6n.mjs} +48266 -53112
- package/index.mjs +400 -404
- package/package.json +1 -3
- package/{snarkjsWorkerLogic-DZN3iDQQ.mjs → snarkjsWorkerLogic-DkBEqNNJ.mjs} +2 -2
- package/types/ethereum-network.types.d.ts +0 -1
- package/types/hinkal.types.d.ts +0 -1
- package/{utxoWorkerLogic-Du8GirBL.mjs → utxoWorkerLogic-OsrUKnhy.mjs} +2 -2
- package/{viteWorkerURL.constant-fQn49p33.mjs → viteWorkerURL.constant-CILmhRTc.mjs} +2 -2
- package/{workerProxy-CEcUtvQC.mjs → workerProxy-DsGOpi4j.mjs} +1 -1
- package/{zkProofWorkerLogic-n6r6YdcN.mjs → zkProofWorkerLogic-DJBrFvd7.mjs} +2 -2
- package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +0 -2
- package/functions/private-wallet/opProducer.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as sn, g as ja, p as Se, a as Lo, B as mo, b as bo, c as en, e as $a, d as Ga, u as Un } from "./index-
|
|
2
|
-
import { W as yo } from "./workerProxy-
|
|
1
|
+
import { r as sn, g as ja, p as Se, a as Lo, B as mo, b as bo, c as en, e as $a, d as Ga, u as Un } from "./index-DYSw4i6n.mjs";
|
|
2
|
+
import { W as yo } from "./workerProxy-DsGOpi4j.mjs";
|
|
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)
|
package/types/hinkal.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as y, k as h, l as f, B as p, m as U, n as g, o as d, q as x, j as T, s as u } from "./index-
|
|
2
|
-
import { W as v } from "./workerProxy-
|
|
1
|
+
import { U as y, k as h, l as f, B as p, m as U, n as g, o as d, q as x, j as T, s as u } from "./index-DYSw4i6n.mjs";
|
|
2
|
+
import { W as v } from "./workerProxy-DsGOpi4j.mjs";
|
|
3
3
|
const i = new v(), k = async ({ data: e }) => {
|
|
4
4
|
const { utxos: t, nullifiers: r } = e, o = t.filter((s) => {
|
|
5
5
|
const c = new y(s);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as r } from "./index-
|
|
2
|
-
const e = "" + new URL("assets/zkProofWorkerLauncher-
|
|
1
|
+
import { W as r } from "./index-DYSw4i6n.mjs";
|
|
2
|
+
const e = "" + new URL("assets/zkProofWorkerLauncher-B_lYufrg.js", import.meta.url).href, o = "" + new URL("assets/snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-DnwHvvqe.js", import.meta.url).href, a = {
|
|
3
3
|
[r.ZKProof]: e,
|
|
4
4
|
[r.SnarkJS]: o,
|
|
5
5
|
[r.UTXO]: s
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as p, f as g, U as T, h as k, i as u, j as I, Z as m, k as C } from "./index-
|
|
2
|
-
import { W as M } from "./workerProxy-
|
|
1
|
+
import { M as p, f as g, U as T, h as k, i as u, j as I, Z as m, k as C } from "./index-DYSw4i6n.mjs";
|
|
2
|
+
import { W as M } from "./workerProxy-DsGOpi4j.mjs";
|
|
3
3
|
const d = new M(), h = (e) => {
|
|
4
4
|
const { inputUtxosSerialized: s, merkleTreeSerialized: n } = e.data, l = n.tree, a = new Map(
|
|
5
5
|
Object.entries(l).map(([r, c]) => [BigInt(r), BigInt(c)])
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { IHinkal } from './IHinkal';
|
|
2
|
-
export declare const hinkalPrivateWallet: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], ops?: string[], walletNonce?: bigint, onlyGasEstimate?: boolean) => Promise<bigint | import("libs/shared/common/src/types/relayer.types").RelayerTransaction>;
|