@hinkal/common 0.0.61 → 0.0.63
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-DDtiumPH.js → snarkjsWorkerLogic-nmHEk4-X.js} +2 -2
- package/assets/{utxoWorkerLauncher-DnwHvvqe.js → utxoWorkerLauncher-fcb6eWp0.js} +1 -1
- package/assets/{utxoWorkerLogic-DzUMTGmw.js → utxoWorkerLogic-B8tT1TX5.js} +2 -2
- package/assets/{utxoWorkerLogic-7GeccTLS.js → utxoWorkerLogic-Wy6IstjZ.js} +27063 -27120
- package/assets/{viteWorkerURL.constant-5KVZiNHh.js → viteWorkerURL.constant-BTZdN3Pf.js} +3 -3
- package/assets/{zkProofWorkerLauncher-BFqnIKeC.js → zkProofWorkerLauncher-BQBrO28l.js} +1 -1
- package/assets/{zkProofWorkerLogic-DteqUP_R.js → zkProofWorkerLogic-C7OtYbQP.js} +4 -4
- package/constants/coingecko.constants.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionPendle.d.ts +1 -1
- package/data-structures/Hinkal/hinkalActionVolatile.d.ts +1 -1
- package/data-structures/Hinkal/hinkalWithdraw.d.ts +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +4 -1
- package/functions/snarkjs/generateCircomData.d.ts +2 -1
- package/functions/snarkjs/generateZkProof.d.ts +1 -1
- package/functions/utils/external-action.utils.d.ts +2 -1
- package/{index-KFcTC7Rg.mjs → index-Aiaspot9.mjs} +4 -4
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-BlW1M4T6.mjs → snarkjsWorkerLogic-Cfiz1nf4.mjs} +2 -2
- package/types/IMultiThreadedUtxoUtils.d.ts +2 -1
- package/{utxoWorkerLogic-yw4aYqr5.mjs → utxoWorkerLogic-CzARBTiU.mjs} +2 -2
- package/{viteWorkerURL.constant-xGjGKGEC.mjs → viteWorkerURL.constant-LzBk6jes.mjs} +3 -3
- package/{workerProxy-X5sGn1EM.mjs → workerProxy-C05dOvVG.mjs} +1 -1
- package/{zkProofWorkerLogic-CMJD2Vlp.mjs → zkProofWorkerLogic-DYmJThyB.mjs} +2 -2
|
@@ -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-C7OtYbQP.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-BQBrO28l.js";
|
|
3
|
+
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-fcb6eWp0.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-C7OtYbQP.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-BQBrO28l.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)
|
|
@@ -165268,7 +165268,7 @@ class WorkerFactory {
|
|
|
165268
165268
|
constructor() {
|
|
165269
165269
|
}
|
|
165270
165270
|
static resolveWorkerURL = async (d) => {
|
|
165271
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
165271
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-BTZdN3Pf.js");
|
|
165272
165272
|
return new URL(c[d], n);
|
|
165273
165273
|
};
|
|
165274
165274
|
static createWorker = async (d) => {
|
|
@@ -165276,12 +165276,12 @@ class WorkerFactory {
|
|
|
165276
165276
|
let c;
|
|
165277
165277
|
return d === WorkerVariant.SnarkJS ? c = await import(
|
|
165278
165278
|
/* @vite-ignore */
|
|
165279
|
-
"./snarkjsWorkerLogic-
|
|
165279
|
+
"./snarkjsWorkerLogic-nmHEk4-X.js"
|
|
165280
165280
|
) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
|
|
165281
165281
|
return zkProofWorkerLogic;
|
|
165282
165282
|
}) : d === WorkerVariant.UTXO && (c = await import(
|
|
165283
165283
|
/* @vite-ignore */
|
|
165284
|
-
"./utxoWorkerLogic-
|
|
165284
|
+
"./utxoWorkerLogic-B8tT1TX5.js"
|
|
165285
165285
|
)), c.default;
|
|
165286
165286
|
}
|
|
165287
165287
|
const n = await WorkerFactory.resolveWorkerURL(d);
|
|
@@ -7,7 +7,7 @@ export declare const coingeckoTokenListUrl = "https://pro-api.coingecko.com/api/
|
|
|
7
7
|
export declare const getCoingeckoIdForNativeTokens: {
|
|
8
8
|
[x: number]: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const getCoingeckoPlatform: (chainId: number) => "base" | "blast" | "ethereum" | "polygon-pos" | "arbitrum-one" | "
|
|
10
|
+
export declare const getCoingeckoPlatform: (chainId: number) => "base" | "blast" | "ethereum" | "avalanche" | "polygon-pos" | "arbitrum-one" | "binance-smart-chain" | "optimistic-ethereum";
|
|
11
11
|
export declare const CoinGeckoChainLabels: {
|
|
12
12
|
[x: number]: string;
|
|
13
13
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PendleMetadata } from '../../types';
|
|
2
2
|
import { IHinkal } from './IHinkal';
|
|
3
|
-
export declare const hinkalActionPendle: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], pendleMetadata: PendleMetadata, gasTokenAddress?: string, onlyGasEstimate?: boolean) => Promise<bigint | import("
|
|
3
|
+
export declare const hinkalActionPendle: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], pendleMetadata: PendleMetadata, gasTokenAddress?: string, onlyGasEstimate?: boolean) => Promise<bigint | import("libs/shared/common/src/types/relayer.types").RelayerTransaction | import("ethers").ContractTransaction>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { VolatileHelperData } from '../volatile-helper/VolatileHelper';
|
|
2
2
|
import { IHinkal } from './IHinkal';
|
|
3
|
-
export declare const hinkalActionVolatile: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], volatileHelperData: VolatileHelperData, onlyGasEstimate: boolean) => Promise<bigint | import("
|
|
3
|
+
export declare const hinkalActionVolatile: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], volatileHelperData: VolatileHelperData, onlyGasEstimate: boolean) => Promise<bigint | import("libs/shared/common/src/types/relayer.types").RelayerTransaction | import("ethers").ContractTransaction>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IHinkal } from './IHinkal';
|
|
2
|
-
export declare const hinkalWithdraw: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], recipientAddress: string, isRelayerOff: boolean, onlyGasEstimate?: boolean) => Promise<bigint | import("
|
|
2
|
+
export declare const hinkalWithdraw: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], recipientAddress: string, isRelayerOff: boolean, onlyGasEstimate?: boolean) => Promise<bigint | import("libs/shared/common/src/types/relayer.types").RelayerTransaction | import("ethers").ContractTransaction>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserKeys } from '../crypto-keys/keys';
|
|
2
|
+
import { Utxo } from '../utxo/Utxo';
|
|
3
|
+
import { EncryptedOutputWithSign, OutputsWithSignAndLast } from '../../types/commitments.types';
|
|
4
|
+
import { IMultiThreadedUtxoUtils } from '../../types/IMultiThreadedUtxoUtils';
|
|
2
5
|
export declare class MultiThreadedUtxoUtils implements IMultiThreadedUtxoUtils {
|
|
3
6
|
private get NUM_WORKERS();
|
|
4
7
|
private createUtxoPromise;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Utxo } from '../../data-structures/utxo/Utxo';
|
|
2
|
-
import { CircomDataType,
|
|
2
|
+
import { CircomDataType, HookDataType, StealthAddressStructure } from '../../types/circom-data.types';
|
|
3
|
+
import { ExternalActionId } from '../../types/external-action.types';
|
|
3
4
|
export declare const generateCircomData: (rootHashHinkal: bigint | undefined, rootHashAccessToken: bigint | undefined, inputUtxos: Utxo[][], outputUtxos: Utxo[][], encryptedOutputs: string[][], flatFees: bigint[], publicSignalCount: number, externalActionId: ExternalActionId | bigint, externalAddress: string | undefined, externalActionMetadata: string, relay: string, calldataHash: bigint, tokenIds: number[], stealthAddressStructure: StealthAddressStructure, onChainCreation: boolean[], hookData: HookDataType | undefined) => Promise<CircomDataType>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NewZkCallDataType } from '../../types';
|
|
1
|
+
import { NewZkCallDataType } from '../../types/snark.types';
|
|
2
2
|
export declare const generateZkProof: (chainId: number, verifierName: string, input: any) => Promise<{
|
|
3
3
|
zkCallData: NewZkCallDataType;
|
|
4
4
|
publicSignals: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ethers } from 'ethers';
|
|
2
|
-
import { CircomDataJsonType
|
|
2
|
+
import { CircomDataJsonType } from '../../types/circom-data.types';
|
|
3
|
+
import { ExternalActionId } from '../../types/external-action.types';
|
|
3
4
|
export declare const getExternalActionIdHash: (externalActionId: ExternalActionId | 0n) => bigint;
|
|
4
5
|
export declare const getExternalActionIdFromNumber: (externalActionIdNumber: string | bigint) => ExternalActionId | undefined;
|
|
5
6
|
export declare const getActionFromMetadata: (externalActionId: ExternalActionId, circomDataDeserialized: Partial<CircomDataJsonType>) => number | undefined;
|
|
@@ -304434,7 +304434,7 @@ class WorkerFactory {
|
|
|
304434
304434
|
constructor() {
|
|
304435
304435
|
}
|
|
304436
304436
|
static resolveWorkerURL = async (t) => {
|
|
304437
|
-
const d = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
304437
|
+
const d = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-LzBk6jes.mjs");
|
|
304438
304438
|
return new URL(c[t], d);
|
|
304439
304439
|
};
|
|
304440
304440
|
static createWorker = async (t) => {
|
|
@@ -304442,13 +304442,13 @@ class WorkerFactory {
|
|
|
304442
304442
|
let c;
|
|
304443
304443
|
return t === WorkerVariant.SnarkJS ? c = await import(
|
|
304444
304444
|
/* @vite-ignore */
|
|
304445
|
-
"./snarkjsWorkerLogic-
|
|
304445
|
+
"./snarkjsWorkerLogic-Cfiz1nf4.mjs"
|
|
304446
304446
|
) : t === WorkerVariant.ZKProof ? c = await import(
|
|
304447
304447
|
/* @vite-ignore */
|
|
304448
|
-
"./zkProofWorkerLogic-
|
|
304448
|
+
"./zkProofWorkerLogic-DYmJThyB.mjs"
|
|
304449
304449
|
) : t === WorkerVariant.UTXO && (c = await import(
|
|
304450
304450
|
/* @vite-ignore */
|
|
304451
|
-
"./utxoWorkerLogic-
|
|
304451
|
+
"./utxoWorkerLogic-CzARBTiU.mjs"
|
|
304452
304452
|
)), c.default;
|
|
304453
304453
|
}
|
|
304454
304454
|
const d = await WorkerFactory.resolveWorkerURL(t);
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c8 as s, a_ as t, aZ as r, L as i, b0 as o, a$ as n, cJ as c, cK as d, cN as l, cL as g, cM as p, d8 as A, fF as b, bH as u, dh as y, dr as T, fu as R, d9 as P, g9 as f, c7 as m, br as S, bs as I, bz as k, g7 as C, bG as E, fn as h, ft as D, fs as v, d5 as x, d4 as U, b2 as L, b7 as F, b6 as _, b5 as M, be as O, da as B, ct as N, d3 as w, aA as V, fp as W, fo as H, cX as G, ds as K, aG as Y, aF as z, cw as Z, gs as q, T as j, fA as Q, du as X, fq as J, fD as $, fE as aa, fZ as ea, fw as sa, fv as ta, fW as ra, M as ia, cI as oa, cV as na, bI as ca, ff as da, bd as la, ba as ga, b4 as pa, aX as Aa, g6 as ba, fx as ua, gl as ya, gk as Ta, gi as Ra, gj as Pa, fy as fa, gn as ma, gh as Sa, gf as Ia, gg as ka, gm as Ca, gc as Ea, gd as ha, ge as Da, g4 as va, ag as xa, b1 as Ua, bb as La, c0 as Fa, c9 as _a, g3 as Ma, g8 as Oa, g2 as Ba, g1 as Na, g0 as wa, f$ as Va, f_ as Wa, b8 as Ha, bc as Ga, b9 as Ka, b3 as Ya, fG as za, fr as Za, gr as qa, aY as ja, fY as Qa, g5 as Xa, cP as Ja, cQ as $a, cS as ae, cR as ee, db as se, de as te, dd as re, df as ie, gq as oe, c$ as ne, k as ce, U as de, fB as le, cp as ge, fC as pe, fz as Ae, cU as be, dg as ue, cq as ye, dO as Te, eG as Re, aV as Pe, aW as fe, bM as me, ak as Se, a4 as Ie, X as ke, cg as Ce, bO as Ee, an as he, a7 as De, $ as ve, as as xe, at as Ue, co as Le, eJ as Fe, bP as _e, ap as Me, a9 as Oe, a1 as Be, bx as Ne, dB as we, dH as Ve, dI as We, aq as He, aa as Ge, a2 as Ke, ca as Ye, aj as ze, a5 as Ze, Y as qe, ce as je, c6 as Qe, ee as Xe, eT as Je, eU as $e, i as as, eV as es, h as ss, eW as ts, e_ as rs, e$ as is, dC as os, eB as ns, fb as cs, dA as ds, A as ls, D as gs, em as ps, ep as As, au as bs, aB as us, d2 as ys, dv as Ts, J as Rs, q as Ps, bB as fs, bC as ms, ac as Ss, bD as Is, eS as ks, eR as Cs, aT as Es, e5 as hs, eZ as Ds, dV as vs, fa as xs, az as Us, bu as Ls, go as Fs, gp as _s, bt as Ms, bm as Os, cO as Bs, bw as Ns, dc as ws, fh as Vs, fM as Ws, dZ as Hs, eg as Gs, eh as Ks, cr as Ys, m as zs, f9 as Zs, n as qs, l as js, fk as Qs, fl as Xs, fm as Js, bf as $s, eY as at, ei as et, f5 as st, f6 as tt, fX as rt, fd as it, fI as ot, fj as nt, gb as ct, ga as dt, fe as lt, fc as gt, f8 as pt, cs as At, f3 as bt, cb as ut, bK as yt, al as Tt, a3 as Rt, V as Pt, cd as ft, bY as mt, eu as St, bn as It, cT as kt, d0 as Ct, d7 as Et, ck as ht, dJ as Dt, f0 as vt, dY as xt, aM as Ut, aO as Lt, aK as Ft, aN as _t, ew as Mt, ex as Ot, ez as Bt, eA as Nt, eC as wt, aL as Vt, f4 as Wt, E as Ht, ed as Gt, C as Kt, cc as Yt, f1 as zt, f2 as Zt, bR as qt, cv as jt, bE as Qt, bF as Xt, w as Jt, x as $t, y as ar, z as er, bQ as sr, fQ as tr, P as rr, Q as ir, v as or, fO as nr, eI as cr, ah as dr, d$ as lr, e0 as gr, d1 as pr, R as Ar, dX as br, dW as ur, d_ as yr, ai as Tr, ea as Rr, F as Pr, bJ as fr, cY as mr, e1 as Sr, dQ as Ir, aH as kr, aU as Cr, K as Er, eE as hr, eD as Dr, e6 as vr, eb as xr, ec as Ur, fV as Lr, ax as Fr, eO as _r, eP as Mr, ch as Or, aI as Br, S as Nr, e4 as wr, t as Vr, eF as Wr, aJ as Hr, f7 as Gr, G as Kr, H as Yr, I as zr, eM as Zr, eN as qr, eL as jr, dK as Qr, fP as Xr, ci as Jr, fU as $r, cx as ai, cy as ei, cz as si, cA as ti, cB as ri, cC as ii, cG as oi, cD as ni, cE as ci, cF as di, fL as li, fi as gi, cu as pi, bi as Ai, aw as bi, eo as ui, bj as yi, en as Ti, aD as Ri, aC as Pi, aE as fi, bh as mi, bg as Si, fT as Ii, cj as ki, cn as Ci, dj as Ei, bV as hi, dk as Di, bX as vi, dp as xi, bT as Ui, dl as Li, bS as Fi, dm as _i, bU as Mi, dU as Oi, ar as Bi, av as Ni, ab as wi, o as Vi, eq as Wi, er as Hi, c3 as Gi, c4 as Ki, N as Yi, O as zi, bZ as Zi, dP as qi, dw as ji, dx as Qi, fK as Xi, cW as Ji, ay as $i, bl as ao, dy as eo, dz as so, bN as to, ao as ro, dt as io, cf as oo, a8 as no, a0 as co, e7 as lo, bp as go, fR as po, et as Ao, bq as bo, dn as uo, bW as yo, c2 as To, bL as Ro, am as Po, a6 as fo, _ as mo, f as So, cm as Io, cl as ko, j as Co, by as Eo, bA as ho, e9 as Do, e8 as vo, fg as xo, d6 as Uo, c5 as Lo, ev as Fo, c1 as _o, ek as Mo, e2 as Oo, dS as Bo, cH as No, e3 as wo, cZ as Vo, eH as Wo, eQ as Ho, di as Go, dT as Ko, eK as Yo, fJ as zo, eX as Zo, ej as qo, dR as jo, bo as Qo, fH as Xo, b$ as Jo, bv as $o, dD as an, dE as en, ey as sn, dM as tn, fS as rn, dG as on, dF as nn, el as cn, c_ as dn, dq as ln, dL as gn, dN as pn, aR as An, aP as bn, aQ as un, aS as yn, ae as Tn, ad as Rn, af as Pn, es as fn, ef as mn, fN as Sn, b_ as In, bk as kn } from "./index-
|
|
1
|
+
import { c8 as s, a_ as t, aZ as r, L as i, b0 as o, a$ as n, cJ as c, cK as d, cN as l, cL as g, cM as p, d8 as A, fF as b, bH as u, dh as y, dr as T, fu as R, d9 as P, g9 as f, c7 as m, br as S, bs as I, bz as k, g7 as C, bG as E, fn as h, ft as D, fs as v, d5 as x, d4 as U, b2 as L, b7 as F, b6 as _, b5 as M, be as O, da as B, ct as N, d3 as w, aA as V, fp as W, fo as H, cX as G, ds as K, aG as Y, aF as z, cw as Z, gs as q, T as j, fA as Q, du as X, fq as J, fD as $, fE as aa, fZ as ea, fw as sa, fv as ta, fW as ra, M as ia, cI as oa, cV as na, bI as ca, ff as da, bd as la, ba as ga, b4 as pa, aX as Aa, g6 as ba, fx as ua, gl as ya, gk as Ta, gi as Ra, gj as Pa, fy as fa, gn as ma, gh as Sa, gf as Ia, gg as ka, gm as Ca, gc as Ea, gd as ha, ge as Da, g4 as va, ag as xa, b1 as Ua, bb as La, c0 as Fa, c9 as _a, g3 as Ma, g8 as Oa, g2 as Ba, g1 as Na, g0 as wa, f$ as Va, f_ as Wa, b8 as Ha, bc as Ga, b9 as Ka, b3 as Ya, fG as za, fr as Za, gr as qa, aY as ja, fY as Qa, g5 as Xa, cP as Ja, cQ as $a, cS as ae, cR as ee, db as se, de as te, dd as re, df as ie, gq as oe, c$ as ne, k as ce, U as de, fB as le, cp as ge, fC as pe, fz as Ae, cU as be, dg as ue, cq as ye, dO as Te, eG as Re, aV as Pe, aW as fe, bM as me, ak as Se, a4 as Ie, X as ke, cg as Ce, bO as Ee, an as he, a7 as De, $ as ve, as as xe, at as Ue, co as Le, eJ as Fe, bP as _e, ap as Me, a9 as Oe, a1 as Be, bx as Ne, dB as we, dH as Ve, dI as We, aq as He, aa as Ge, a2 as Ke, ca as Ye, aj as ze, a5 as Ze, Y as qe, ce as je, c6 as Qe, ee as Xe, eT as Je, eU as $e, i as as, eV as es, h as ss, eW as ts, e_ as rs, e$ as is, dC as os, eB as ns, fb as cs, dA as ds, A as ls, D as gs, em as ps, ep as As, au as bs, aB as us, d2 as ys, dv as Ts, J as Rs, q as Ps, bB as fs, bC as ms, ac as Ss, bD as Is, eS as ks, eR as Cs, aT as Es, e5 as hs, eZ as Ds, dV as vs, fa as xs, az as Us, bu as Ls, go as Fs, gp as _s, bt as Ms, bm as Os, cO as Bs, bw as Ns, dc as ws, fh as Vs, fM as Ws, dZ as Hs, eg as Gs, eh as Ks, cr as Ys, m as zs, f9 as Zs, n as qs, l as js, fk as Qs, fl as Xs, fm as Js, bf as $s, eY as at, ei as et, f5 as st, f6 as tt, fX as rt, fd as it, fI as ot, fj as nt, gb as ct, ga as dt, fe as lt, fc as gt, f8 as pt, cs as At, f3 as bt, cb as ut, bK as yt, al as Tt, a3 as Rt, V as Pt, cd as ft, bY as mt, eu as St, bn as It, cT as kt, d0 as Ct, d7 as Et, ck as ht, dJ as Dt, f0 as vt, dY as xt, aM as Ut, aO as Lt, aK as Ft, aN as _t, ew as Mt, ex as Ot, ez as Bt, eA as Nt, eC as wt, aL as Vt, f4 as Wt, E as Ht, ed as Gt, C as Kt, cc as Yt, f1 as zt, f2 as Zt, bR as qt, cv as jt, bE as Qt, bF as Xt, w as Jt, x as $t, y as ar, z as er, bQ as sr, fQ as tr, P as rr, Q as ir, v as or, fO as nr, eI as cr, ah as dr, d$ as lr, e0 as gr, d1 as pr, R as Ar, dX as br, dW as ur, d_ as yr, ai as Tr, ea as Rr, F as Pr, bJ as fr, cY as mr, e1 as Sr, dQ as Ir, aH as kr, aU as Cr, K as Er, eE as hr, eD as Dr, e6 as vr, eb as xr, ec as Ur, fV as Lr, ax as Fr, eO as _r, eP as Mr, ch as Or, aI as Br, S as Nr, e4 as wr, t as Vr, eF as Wr, aJ as Hr, f7 as Gr, G as Kr, H as Yr, I as zr, eM as Zr, eN as qr, eL as jr, dK as Qr, fP as Xr, ci as Jr, fU as $r, cx as ai, cy as ei, cz as si, cA as ti, cB as ri, cC as ii, cG as oi, cD as ni, cE as ci, cF as di, fL as li, fi as gi, cu as pi, bi as Ai, aw as bi, eo as ui, bj as yi, en as Ti, aD as Ri, aC as Pi, aE as fi, bh as mi, bg as Si, fT as Ii, cj as ki, cn as Ci, dj as Ei, bV as hi, dk as Di, bX as vi, dp as xi, bT as Ui, dl as Li, bS as Fi, dm as _i, bU as Mi, dU as Oi, ar as Bi, av as Ni, ab as wi, o as Vi, eq as Wi, er as Hi, c3 as Gi, c4 as Ki, N as Yi, O as zi, bZ as Zi, dP as qi, dw as ji, dx as Qi, fK as Xi, cW as Ji, ay as $i, bl as ao, dy as eo, dz as so, bN as to, ao as ro, dt as io, cf as oo, a8 as no, a0 as co, e7 as lo, bp as go, fR as po, et as Ao, bq as bo, dn as uo, bW as yo, c2 as To, bL as Ro, am as Po, a6 as fo, _ as mo, f as So, cm as Io, cl as ko, j as Co, by as Eo, bA as ho, e9 as Do, e8 as vo, fg as xo, d6 as Uo, c5 as Lo, ev as Fo, c1 as _o, ek as Mo, e2 as Oo, dS as Bo, cH as No, e3 as wo, cZ as Vo, eH as Wo, eQ as Ho, di as Go, dT as Ko, eK as Yo, fJ as zo, eX as Zo, ej as qo, dR as jo, bo as Qo, fH as Xo, b$ as Jo, bv as $o, dD as an, dE as en, ey as sn, dM as tn, fS as rn, dG as on, dF as nn, el as cn, c_ as dn, dq as ln, dL as gn, dN as pn, aR as An, aP as bn, aQ as un, aS as yn, ae as Tn, ad as Rn, af as Pn, es as fn, ef as mn, fN as Sn, b_ as In, bk as kn } from "./index-Aiaspot9.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ACCESS_TOKEN_MINTING_POINTS,
|
|
4
4
|
t as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
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-Aiaspot9.mjs";
|
|
2
|
+
import { W as yo } from "./workerProxy-C05dOvVG.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)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type UserKeys
|
|
1
|
+
import { type UserKeys } from '../data-structures/crypto-keys/keys';
|
|
2
|
+
import { type Utxo } from '../data-structures/utxo/Utxo';
|
|
2
3
|
import { EncryptedOutputWithSign, OutputsWithSignAndLast } from './commitments.types';
|
|
3
4
|
export interface IMultiThreadedUtxoUtils {
|
|
4
5
|
batchProcess(encryptedOutputs: EncryptedOutputWithSign[], lastOutput: string, userKeys: UserKeys): Promise<OutputsWithSignAndLast>;
|
|
@@ -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-Aiaspot9.mjs";
|
|
2
|
+
import { W as v } from "./workerProxy-C05dOvVG.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,9 +1,9 @@
|
|
|
1
|
-
import { W as r } from "./index-
|
|
2
|
-
const e = "" + new URL("assets/zkProofWorkerLauncher-
|
|
1
|
+
import { W as r } from "./index-Aiaspot9.mjs";
|
|
2
|
+
const e = "" + new URL("assets/zkProofWorkerLauncher-BQBrO28l.js", import.meta.url).href, o = "" + new URL("assets/snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-fcb6eWp0.js", import.meta.url).href, a = {
|
|
3
3
|
[r.ZKProof]: e,
|
|
4
4
|
[r.SnarkJS]: o,
|
|
5
5
|
[r.UTXO]: s
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
a as workerViteURL
|
|
9
9
|
};
|
|
@@ -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-Aiaspot9.mjs";
|
|
2
|
+
import { W as M } from "./workerProxy-C05dOvVG.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)])
|