@hinkal/common 0.0.101 → 0.0.102

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Hinkal SDK
2
2
 
3
- Hinkal is a middleware and set of smart contracts on EVM chains that uses ZK-proofs and stealth addresses to enable compliant and private transactions on major dApps. Users can privately store assets and transact on major dApps such as Uniswap, Pendle, Lido, Curve, and others.
3
+ Hinkal is a middleware and a set of smart contracts on EVM chains that use ZK-proofs and stealth addresses to enable compliant and private transactions on major dApps. Users can privately store assets and transact on major dApps such as Uniswap, Pendle, Lido, Curve, and others.
4
4
 
5
- This SDK allows to do arbitrary Smart Contract interactions privately.
5
+ This SDK allows users to perform arbitrary smart contract interactions privately.
6
6
 
7
7
  ### Installation
8
8
 
@@ -20,7 +20,7 @@ yarn add @hinkal/common
20
20
 
21
21
  ### Usage
22
22
 
23
- 1. Step: import hinkal from @hinkal/common package and initiate a Hinkal instance:
23
+ 1. Import hinkal from @hinkal/common package and initiate a Hinkal instance:
24
24
 
25
25
  ```sh
26
26
  import {Hinkal} from '@hinkal/common';
@@ -28,38 +28,59 @@ yarn add @hinkal/common
28
28
  const hinkal = new Hinkal<Connector>();
29
29
  ```
30
30
 
31
- 2. Initiate ProviderAdapter object, where connector should be 'wagmi' Connector instance
31
+ 2. Initialize a ProviderAdapter object, where the connector should be an instance of the wagmi Connector.
32
32
 
33
33
  ```typescript
34
34
  const providerAdapter = new ProviderAdapter(connector);
35
35
  await hinkal.initProviderAdapter(connector, providerAdapter);
36
36
  ```
37
37
 
38
- 3. Ask user to generate his shielded address and fetch state from smart contract
38
+ 3. Prompt a user to generate their shielded address and fetch the state from the smart contract.
39
39
 
40
40
  ```typescript
41
41
  await hinkal.initUserKeys();
42
42
  await hinkal.resetMerkle();
43
43
  ```
44
44
 
45
- 4. Once user generated shielded address, shielded balances are available that can be displayed in front-end:
45
+ 4. Once a user has generated a shielded address, the shielded balances become available and can be displayed on the front end:
46
46
 
47
47
  ```typescript
48
48
  const balances = await hinkal.getBalances();
49
49
  ```
50
50
 
51
- 5. A user can deposit to his shielded account using:
51
+ 5. A user can deposit to their shielded account using:
52
52
 
53
53
  ```typescript
54
- hinkal.deposit(erc20addresses:string[],amountChanges:bigint[]);
54
+ hinkal.deposit(erc20addresses:string[],amountChanges:bigint[]): Promise<TransactionObject>;
55
55
  ```
56
56
 
57
- where erc20Addresses is array of token addresses and amountChanges - token amounts for the deposit.
57
+ where erc20Addresses is an array of token addresses, and amountChanges represents the token amounts for the deposit.
58
+
59
+ 6. Once a user’s balance is updated, they can perform any smart contract interaction:
58
60
 
59
- 6. A user, once his balance is updated, can do any smart contract interaction:
60
61
 
61
62
  ```typescript
62
- hinkal.actionPrivateWallet( erc20Addresses:string[], amountChanges:bigint[], onChainCreation:boolean[], ops:string[]);
63
+ hinkal.actionPrivateWallet( erc20Addresses:string[], amountChanges:bigint[], onChainCreation:boolean[], ops:string[]): Promise<TransactionObject>;
63
64
  ```
64
65
 
65
- where onChainCreation indicates amounts of tokens which are uncertain before the transaction is executed onchain. And, ops array is encoded array of user ops.
66
+ where onChainCreation indicates the amounts of tokens that are uncertain before the transaction is executed on-chain. The ops array is an encoded array of user operations.
67
+
68
+ ### Access Tokens
69
+
70
+ Before interacting with Hinkal smart contracts, a user needs to mint an access token after passing compliance checks.
71
+
72
+ To check whether the user already has an access token, one can use the checkAccessToken function:
73
+
74
+ ```typescript
75
+ function checkAccessToken(): Promise<boolean>;
76
+ ```
77
+ If the user does not have an access token, one of the compliance providers should be used to pass the check. To view the available providers:
78
+ ```typescript
79
+ function getSupportedPassportLinks(): string[];
80
+ ```
81
+
82
+ Once the user has passed the check, they can mint an access token using:
83
+ ```typescript
84
+ const { signatureData } = await hinkal.getAPI().getAccessTokenSignature(chainId, ethereumAddress, accessKey);
85
+ await mintAccessToken(this, signatureData);
86
+ ```
@@ -1,5 +1,5 @@
1
- import { a as Qi } from "./zkProofWorkerLogic-GDTtbG7h.js";
2
- import "./zkProofWorkerLauncher-C-lf5pHC.js";
1
+ import { a as Qi } from "./zkProofWorkerLogic-CLpRqNRx.js";
2
+ import "./zkProofWorkerLauncher-C-pvCm0b.js";
3
3
  const Pi = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
4
4
  function Xn(c, t) {
5
5
  if (!t || t == 10)
@@ -1,5 +1,5 @@
1
- import { U as l, d as p, a as T, b as f, c as I, e as y, l as h, p as m } from "./zkProofWorkerLogic-GDTtbG7h.js";
2
- import "./zkProofWorkerLauncher-C-lf5pHC.js";
1
+ import { U as l, d as p, a as T, b as f, c as I, e as y, l as h, p as m } from "./zkProofWorkerLogic-CLpRqNRx.js";
2
+ import "./zkProofWorkerLauncher-C-pvCm0b.js";
3
3
  const U = (e) => {
4
4
  const t = p.decode(
5
5
  ["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
@@ -1,5 +1,5 @@
1
- import { W as r } from "./zkProofWorkerLogic-GDTtbG7h.js";
2
- import "./zkProofWorkerLauncher-C-lf5pHC.js";
1
+ import { W as r } from "./zkProofWorkerLogic-CLpRqNRx.js";
2
+ import "./zkProofWorkerLauncher-C-pvCm0b.js";
3
3
  var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-fuD5h_j0.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href;
4
4
  const n = {
5
5
  [r.ZKProof]: o,
@@ -1190,7 +1190,7 @@ const et = () => {
1190
1190
  };
1191
1191
  globalThis.process = tt;
1192
1192
  globalThis.Buffer = xr.Buffer;
1193
- const nt = import("./zkProofWorkerLogic-GDTtbG7h.js").then(function(f) {
1193
+ const nt = import("./zkProofWorkerLogic-CLpRqNRx.js").then(function(f) {
1194
1194
  return f.z;
1195
1195
  });
1196
1196
  addEventListener("message", async (f) => {
@@ -1,4 +1,4 @@
1
- import { g as getAugmentedNamespace, b as buffer, c as commonjsGlobal, a as getDefaultExportFromCjs$1, d as base64Js } from "./zkProofWorkerLauncher-C-lf5pHC.js";
1
+ import { g as getAugmentedNamespace, b as buffer, c as commonjsGlobal, a as getDefaultExportFromCjs$1, d as base64Js } from "./zkProofWorkerLauncher-C-pvCm0b.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)
@@ -151207,7 +151207,7 @@ class WorkerFactory {
151207
151207
  constructor() {
151208
151208
  }
151209
151209
  static resolveWorkerURL = async (d) => {
151210
- const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-Cenp2Ntx.js");
151210
+ const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-DrIQXA2B.js");
151211
151211
  return new URL(c[d], n);
151212
151212
  };
151213
151213
  static createWorker = async (d) => {
@@ -151215,12 +151215,12 @@ class WorkerFactory {
151215
151215
  let c;
151216
151216
  return d === WorkerVariant.SnarkJS ? c = await import(
151217
151217
  /* @vite-ignore */
151218
- "./snarkjsWorkerLogic-WnCFhu1O.js"
151218
+ "./snarkjsWorkerLogic-CatB8Hso.js"
151219
151219
  ) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
151220
151220
  return zkProofWorkerLogic;
151221
151221
  }) : d === WorkerVariant.UTXO && (c = await import(
151222
151222
  /* @vite-ignore */
151223
- "./utxoWorkerLogic-CrrFgs9X.js"
151223
+ "./utxoWorkerLogic-DDqTe7hT.js"
151224
151224
  )), c.default;
151225
151225
  }
151226
151226
  const n = await WorkerFactory.resolveWorkerURL(d);
@@ -151467,7 +151467,7 @@ const SupportedPassports = {
151467
151467
  supportsAllChains: !0
151468
151468
  }
151469
151469
  };
151470
- Object.values(SupportedPassports).filter((a) => a.onboardURL?.length > 0).map((a) => a.onboardURL);
151470
+ Object.values(SupportedPassports).filter((a, d) => a.onboardURL?.length > 0 && Object.values(SupportedPassports).indexOf(a) === d).map((a) => a.onboardURL);
151471
151471
  const AUTHENTO = {
151472
151472
  verifyMessageText: "Sign this message to prove your ownership of this address and proceed with the identity verification process.",
151473
151473
  domainName: "Hinkal",
@@ -276561,28 +276561,21 @@ var doEval = function a(t) {
276561
276561
  }
276562
276562
  }
276563
276563
  return T;
276564
- }, callBind$2 = { exports: {} }, esDefineProperty, hasRequiredEsDefineProperty;
276565
- function requireEsDefineProperty() {
276566
- if (hasRequiredEsDefineProperty)
276567
- return esDefineProperty;
276568
- hasRequiredEsDefineProperty = 1;
276569
- var a = getIntrinsic, t = a("%Object.defineProperty%", !0) || !1;
276570
- if (t)
276571
- try {
276572
- t({}, "a", { value: 1 });
276573
- } catch {
276574
- t = !1;
276575
- }
276576
- return esDefineProperty = t, esDefineProperty;
276577
- }
276578
- var GetIntrinsic$2 = getIntrinsic, $gOPD = GetIntrinsic$2("%Object.getOwnPropertyDescriptor%", !0);
276564
+ }, callBind$2 = { exports: {} }, GetIntrinsic$3 = getIntrinsic, $defineProperty$2 = GetIntrinsic$3("%Object.defineProperty%", !0) || !1;
276565
+ if ($defineProperty$2)
276566
+ try {
276567
+ $defineProperty$2({}, "a", { value: 1 });
276568
+ } catch {
276569
+ $defineProperty$2 = !1;
276570
+ }
276571
+ var esDefineProperty = $defineProperty$2, GetIntrinsic$2 = getIntrinsic, $gOPD = GetIntrinsic$2("%Object.getOwnPropertyDescriptor%", !0);
276579
276572
  if ($gOPD)
276580
276573
  try {
276581
276574
  $gOPD([], "length");
276582
276575
  } catch {
276583
276576
  $gOPD = null;
276584
276577
  }
276585
- var gopd$1 = $gOPD, $defineProperty$1 = requireEsDefineProperty(), $SyntaxError = syntax, $TypeError$1 = type, gopd = gopd$1, defineDataProperty$1 = function(t, n, c) {
276578
+ var gopd$1 = $gOPD, $defineProperty$1 = esDefineProperty, $SyntaxError = syntax, $TypeError$1 = type, gopd = gopd$1, defineDataProperty$1 = function(t, n, c) {
276586
276579
  if (!t || typeof t != "object" && typeof t != "function")
276587
276580
  throw new $TypeError$1("`obj` must be an object or a function`");
276588
276581
  if (typeof n != "string" && typeof n != "symbol")
@@ -276607,7 +276600,7 @@ var gopd$1 = $gOPD, $defineProperty$1 = requireEsDefineProperty(), $SyntaxError
276607
276600
  t[n] = c;
276608
276601
  else
276609
276602
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
276610
- }, $defineProperty = requireEsDefineProperty(), hasPropertyDescriptors = function() {
276603
+ }, $defineProperty = esDefineProperty, hasPropertyDescriptors = function() {
276611
276604
  return !!$defineProperty;
276612
276605
  };
276613
276606
  hasPropertyDescriptors.hasArrayLengthDefineBug = function() {
@@ -276644,7 +276637,7 @@ var hasPropertyDescriptors_1 = hasPropertyDescriptors, GetIntrinsic$1 = getIntri
276644
276637
  )), t;
276645
276638
  };
276646
276639
  (function(a) {
276647
- var t = functionBind, n = getIntrinsic, c = setFunctionLength, l = type, h = n("%Function.prototype.apply%"), A = n("%Function.prototype.call%"), T = n("%Reflect.apply%", !0) || t.call(A, h), O = requireEsDefineProperty(), Q = n("%Math.max%");
276640
+ var t = functionBind, n = getIntrinsic, c = setFunctionLength, l = type, h = n("%Function.prototype.apply%"), A = n("%Function.prototype.call%"), T = n("%Reflect.apply%", !0) || t.call(A, h), O = esDefineProperty, Q = n("%Math.max%");
276648
276641
  a.exports = function(S) {
276649
276642
  if (typeof S != "function")
276650
276643
  throw new l("a function is required");
@@ -288413,7 +288406,7 @@ class WorkerFactory {
288413
288406
  constructor() {
288414
288407
  }
288415
288408
  static resolveWorkerURL = async (t) => {
288416
- const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-CXLTu_bK.mjs");
288409
+ const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-B4zHpxcT.mjs");
288417
288410
  return new URL(c[t], n);
288418
288411
  };
288419
288412
  static createWorker = async (t) => {
@@ -288424,10 +288417,10 @@ class WorkerFactory {
288424
288417
  "./snarkjsWorkerLogic-BpNWzeoy.mjs"
288425
288418
  ) : t === WorkerVariant.ZKProof ? c = await import(
288426
288419
  /* @vite-ignore */
288427
- "./zkProofWorkerLogic-H7cs0wlA.mjs"
288420
+ "./zkProofWorkerLogic-CtgrDfdp.mjs"
288428
288421
  ) : t === WorkerVariant.UTXO && (c = await import(
288429
288422
  /* @vite-ignore */
288430
- "./utxoWorkerLogic-Uv-1gFhQ.mjs"
288423
+ "./utxoWorkerLogic-BFMMdUgE.mjs"
288431
288424
  )), c.default;
288432
288425
  }
288433
288426
  const n = await WorkerFactory.resolveWorkerURL(t);
@@ -290433,7 +290426,7 @@ const SupportedPassports = {
290433
290426
  supportedChainIds: [],
290434
290427
  supportsAllChains: !0
290435
290428
  }
290436
- }, supportedPassportLinks = Object.values(SupportedPassports).filter((a) => a.onboardURL?.length > 0).map((a) => a.onboardURL), AIPRISE_KYC_TEMPLATE_ID_PROD = "dbda56e5-31f5-4a37-a895-d4adca6c53fd", AIPRISE_KYB_TEMPLATE_ID_PROD = "96050d8d-23c9-4908-b285-2e6dec4c020b", AUTHENTO = {
290429
+ }, supportedPassportLinks = Object.values(SupportedPassports).filter((a, t) => a.onboardURL?.length > 0 && Object.values(SupportedPassports).indexOf(a) === t).map((a) => a.onboardURL), AIPRISE_KYC_TEMPLATE_ID_PROD = "dbda56e5-31f5-4a37-a895-d4adca6c53fd", AIPRISE_KYB_TEMPLATE_ID_PROD = "96050d8d-23c9-4908-b285-2e6dec4c020b", AUTHENTO = {
290437
290430
  verifyMessageText: "Sign this message to prove your ownership of this address and proceed with the identity verification process.",
290438
290431
  domainName: "Hinkal",
290439
290432
  type: {
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { b$ as s, aR as t, aQ as r, B as i, aT as o, aS as n, cA as c, cB as d, cE as l, cC as g, cD as p, c$ as A, fw as b, by as u, d8 as y, dh as T, fl as R, d0 as P, g0 as f, b_ as m, bi as S, bj as I, bq as k, f_ as C, bx as E, fe as h, fk as D, fj as v, cY as x, cX as L, aV as U, a_ as F, aZ as _, aY as B, b5 as M, d1 as O, ck as N, cW as w, aq as V, fg as W, ff as H, cO as G, di as K, aw as Y, av as z, cn as Z, gj as q, I as j, fr as Q, dk as X, fh as J, fu as $, fv as aa, fQ as ea, fn as sa, fm as ta, fN as ra, M as ia, cz as oa, cM as na, bz as ca, f6 as da, b4 as la, b1 as ga, aX as pa, aN as Aa, fZ as ba, fo as ua, gc as ya, gb as Ta, g9 as Ra, ga as Pa, fp as fa, ge as ma, g8 as Sa, g6 as Ia, g7 as ka, gd as Ca, g3 as Ea, g4 as ha, g5 as Da, fX as va, a6 as xa, aU as La, b2 as Ua, bT as Fa, c0 as _a, fW as Ba, f$ as Ma, fV as Oa, fU as Na, fT as wa, fS as Va, fR as Wa, a$ as Ha, b3 as Ga, b0 as Ka, aW as Ya, fx as za, fi as Za, gi as qa, aO as ja, fP as Qa, fY as Xa, cG as Ja, cH as $a, cJ as ae, cI as ee, d2 as se, d5 as te, d4 as re, d6 as ie, gh as oe, cS as ne, d as ce, U as de, fs as le, cg as ge, ft as pe, fq as Ae, cL as be, d7 as ue, ch as ye, dF as Te, ex as Re, aL as Pe, aM as fe, bD as me, aa as Se, T as Ie, K as ke, c7 as Ce, bF as Ee, ad as he, Y as De, O as ve, ai as xe, aj as Le, cf as Ue, eA as Fe, bG as _e, af as Be, $ as Me, Q as Oe, bo as Ne, ds as we, dy as Ve, dz as We, ag as He, a0 as Ge, R as Ke, c1 as Ye, a9 as ze, V as Ze, L as qe, c5 as je, bZ as Qe, e5 as Xe, eK as Je, eL as $e, a as as, eM as es, c as ss, eN as ts, eR as rs, eS as is, dt as os, es as ns, f2 as cs, dr as ds, r as ls, t as gs, ed as ps, eg as As, ak as bs, ar as us, cV as ys, dl as Ts, z as Rs, h as Ps, bs as fs, bt as ms, a2 as Ss, bu as Is, eJ as ks, eI as Cs, aJ as Es, dY as hs, eQ as Ds, dM as vs, f1 as xs, ap as Ls, bl as Us, gf as Fs, gg as _s, bk as Bs, bd as Ms, cF as Os, bn as Ns, d3 as ws, f8 as Vs, fD as Ws, dQ as Hs, e7 as Gs, e8 as Ks, ci as Ys, f as zs, f0 as Zs, g as qs, e as js, fb as Qs, fc as Xs, fd as Js, b6 as $s, eP as at, e9 as et, eY as st, eZ as tt, fO as rt, f4 as it, fz as ot, fa as nt, g2 as ct, g1 as dt, f5 as lt, f3 as gt, e$ as pt, cj as At, eW as bt, c2 as ut, bB as yt, ab as Tt, S as Rt, J as Pt, c4 as ft, bP as mt, el as St, be as It, cK as kt, cT as Ct, c_ as Et, cb as ht, dA as Dt, eT as vt, dP as xt, aC as Lt, aE as Ut, aA as Ft, aD as _t, en as Bt, eo as Mt, eq as Ot, er as Nt, et as wt, aB as Vt, eX as Wt, u as Ht, e4 as Gt, s as Kt, c3 as Yt, eU as zt, eV as Zt, bI as qt, cm as jt, bv as Qt, bw as Xt, m as Jt, n as $t, o as ar, q as er, bH as sr, fH as tr, E as rr, F as ir, k as or, fF as nr, ez as cr, a7 as dr, dS as lr, dT as gr, cU as pr, G as Ar, dO as br, dN as ur, dR as yr, a8 as Tr, e1 as Rr, v as Pr, bA as fr, cP as mr, dU as Sr, dH as Ir, ax as kr, aK as Cr, A as Er, ev as hr, eu as Dr, dZ as vr, e2 as xr, e3 as Lr, fM as Ur, an as Fr, eF as _r, eG as Br, c8 as Mr, ay as Or, H as Nr, dX as wr, j as Vr, ew as Wr, az as Hr, e_ as Gr, w as Kr, x as Yr, y as zr, eD as Zr, eE as qr, eC as jr, dB as Qr, fG as Xr, c9 as Jr, fL as $r, co as ai, cp as ei, cq as si, cr as ti, cs as ri, ct as ii, cx as oi, cu as ni, cv as ci, cw as di, fC as li, f9 as gi, cl as pi, b9 as Ai, am as bi, ef as ui, ba as yi, ee as Ti, at as Ri, as as Pi, au as fi, b8 as mi, b7 as Si, fK as Ii, ca as ki, ce as Ci, da as Ei, bM as hi, db as Di, bO as vi, df as xi, bK as Li, dc as Ui, bJ as Fi, dd as _i, bL as Bi, dL as Mi, ah as Oi, al as Ni, a1 as wi, l as Vi, eh as Wi, ei as Hi, bW as Gi, bX as Ki, C as Yi, D as zi, bQ as Zi, dG as qi, dm as ji, dn as Qi, fB as Xi, cN as Ji, ao as $i, bc as ao, dp as eo, dq as so, bE as to, ae as ro, dj as io, c6 as oo, _ as no, P as co, d_ as lo, bg as go, fI as po, ek as Ao, bh as bo, de as uo, bN as yo, bV as To, bC as Ro, ac as Po, X as fo, N as mo, p as So, cd as Io, cc as ko, b as Co, bp as Eo, br as ho, e0 as Do, d$ as vo, f7 as xo, cZ as Lo, bY as Uo, em as Fo, bU as _o, eb as Bo, dV as Mo, dJ as Oo, cy as No, dW as wo, cQ as Vo, ey as Wo, eH as Ho, d9 as Go, dK as Ko, eB as Yo, fA as zo, eO as Zo, ea as qo, dI as jo, bf as Qo, fy as Xo, bS as Jo, aP as $o, bm as an, du as en, dv as sn, ep as tn, dD as rn, fJ as on, dx as nn, dw as cn, ec as dn, cR as ln, dg as gn, dC as pn, dE as An, aH as bn, aF as un, aG as yn, aI as Tn, a4 as Rn, a3 as Pn, a5 as fn, ej as mn, e6 as Sn, fE as In, bR as kn, bb as Cn } from "./index-zoOqKYyQ.mjs";
1
+ import { b$ as s, aR as t, aQ as r, B as i, aT as o, aS as n, cA as c, cB as d, cE as l, cC as g, cD as p, c$ as A, fw as b, by as u, d8 as y, dh as T, fl as R, d0 as P, g0 as f, b_ as m, bi as S, bj as I, bq as k, f_ as C, bx as E, fe as h, fk as D, fj as v, cY as x, cX as L, aV as U, a_ as F, aZ as _, aY as B, b5 as M, d1 as O, ck as N, cW as w, aq as V, fg as W, ff as H, cO as G, di as K, aw as Y, av as z, cn as Z, gj as q, I as j, fr as Q, dk as X, fh as J, fu as $, fv as aa, fQ as ea, fn as sa, fm as ta, fN as ra, M as ia, cz as oa, cM as na, bz as ca, f6 as da, b4 as la, b1 as ga, aX as pa, aN as Aa, fZ as ba, fo as ua, gc as ya, gb as Ta, g9 as Ra, ga as Pa, fp as fa, ge as ma, g8 as Sa, g6 as Ia, g7 as ka, gd as Ca, g3 as Ea, g4 as ha, g5 as Da, fX as va, a6 as xa, aU as La, b2 as Ua, bT as Fa, c0 as _a, fW as Ba, f$ as Ma, fV as Oa, fU as Na, fT as wa, fS as Va, fR as Wa, a$ as Ha, b3 as Ga, b0 as Ka, aW as Ya, fx as za, fi as Za, gi as qa, aO as ja, fP as Qa, fY as Xa, cG as Ja, cH as $a, cJ as ae, cI as ee, d2 as se, d5 as te, d4 as re, d6 as ie, gh as oe, cS as ne, d as ce, U as de, fs as le, cg as ge, ft as pe, fq as Ae, cL as be, d7 as ue, ch as ye, dF as Te, ex as Re, aL as Pe, aM as fe, bD as me, aa as Se, T as Ie, K as ke, c7 as Ce, bF as Ee, ad as he, Y as De, O as ve, ai as xe, aj as Le, cf as Ue, eA as Fe, bG as _e, af as Be, $ as Me, Q as Oe, bo as Ne, ds as we, dy as Ve, dz as We, ag as He, a0 as Ge, R as Ke, c1 as Ye, a9 as ze, V as Ze, L as qe, c5 as je, bZ as Qe, e5 as Xe, eK as Je, eL as $e, a as as, eM as es, c as ss, eN as ts, eR as rs, eS as is, dt as os, es as ns, f2 as cs, dr as ds, r as ls, t as gs, ed as ps, eg as As, ak as bs, ar as us, cV as ys, dl as Ts, z as Rs, h as Ps, bs as fs, bt as ms, a2 as Ss, bu as Is, eJ as ks, eI as Cs, aJ as Es, dY as hs, eQ as Ds, dM as vs, f1 as xs, ap as Ls, bl as Us, gf as Fs, gg as _s, bk as Bs, bd as Ms, cF as Os, bn as Ns, d3 as ws, f8 as Vs, fD as Ws, dQ as Hs, e7 as Gs, e8 as Ks, ci as Ys, f as zs, f0 as Zs, g as qs, e as js, fb as Qs, fc as Xs, fd as Js, b6 as $s, eP as at, e9 as et, eY as st, eZ as tt, fO as rt, f4 as it, fz as ot, fa as nt, g2 as ct, g1 as dt, f5 as lt, f3 as gt, e$ as pt, cj as At, eW as bt, c2 as ut, bB as yt, ab as Tt, S as Rt, J as Pt, c4 as ft, bP as mt, el as St, be as It, cK as kt, cT as Ct, c_ as Et, cb as ht, dA as Dt, eT as vt, dP as xt, aC as Lt, aE as Ut, aA as Ft, aD as _t, en as Bt, eo as Mt, eq as Ot, er as Nt, et as wt, aB as Vt, eX as Wt, u as Ht, e4 as Gt, s as Kt, c3 as Yt, eU as zt, eV as Zt, bI as qt, cm as jt, bv as Qt, bw as Xt, m as Jt, n as $t, o as ar, q as er, bH as sr, fH as tr, E as rr, F as ir, k as or, fF as nr, ez as cr, a7 as dr, dS as lr, dT as gr, cU as pr, G as Ar, dO as br, dN as ur, dR as yr, a8 as Tr, e1 as Rr, v as Pr, bA as fr, cP as mr, dU as Sr, dH as Ir, ax as kr, aK as Cr, A as Er, ev as hr, eu as Dr, dZ as vr, e2 as xr, e3 as Lr, fM as Ur, an as Fr, eF as _r, eG as Br, c8 as Mr, ay as Or, H as Nr, dX as wr, j as Vr, ew as Wr, az as Hr, e_ as Gr, w as Kr, x as Yr, y as zr, eD as Zr, eE as qr, eC as jr, dB as Qr, fG as Xr, c9 as Jr, fL as $r, co as ai, cp as ei, cq as si, cr as ti, cs as ri, ct as ii, cx as oi, cu as ni, cv as ci, cw as di, fC as li, f9 as gi, cl as pi, b9 as Ai, am as bi, ef as ui, ba as yi, ee as Ti, at as Ri, as as Pi, au as fi, b8 as mi, b7 as Si, fK as Ii, ca as ki, ce as Ci, da as Ei, bM as hi, db as Di, bO as vi, df as xi, bK as Li, dc as Ui, bJ as Fi, dd as _i, bL as Bi, dL as Mi, ah as Oi, al as Ni, a1 as wi, l as Vi, eh as Wi, ei as Hi, bW as Gi, bX as Ki, C as Yi, D as zi, bQ as Zi, dG as qi, dm as ji, dn as Qi, fB as Xi, cN as Ji, ao as $i, bc as ao, dp as eo, dq as so, bE as to, ae as ro, dj as io, c6 as oo, _ as no, P as co, d_ as lo, bg as go, fI as po, ek as Ao, bh as bo, de as uo, bN as yo, bV as To, bC as Ro, ac as Po, X as fo, N as mo, p as So, cd as Io, cc as ko, b as Co, bp as Eo, br as ho, e0 as Do, d$ as vo, f7 as xo, cZ as Lo, bY as Uo, em as Fo, bU as _o, eb as Bo, dV as Mo, dJ as Oo, cy as No, dW as wo, cQ as Vo, ey as Wo, eH as Ho, d9 as Go, dK as Ko, eB as Yo, fA as zo, eO as Zo, ea as qo, dI as jo, bf as Qo, fy as Xo, bS as Jo, aP as $o, bm as an, du as en, dv as sn, ep as tn, dD as rn, fJ as on, dx as nn, dw as cn, ec as dn, cR as ln, dg as gn, dC as pn, dE as An, aH as bn, aF as un, aG as yn, aI as Tn, a4 as Rn, a3 as Pn, a5 as fn, ej as mn, e6 as Sn, fE as In, bR as kn, bb as Cn } from "./index-f5eNXqZp.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@hinkal/common",
3
- "version": "0.0.101",
3
+ "version": "0.0.102",
4
4
  "homepage": "hinkal.pro",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -1,4 +1,4 @@
1
- import { U as p, d as h, e as y, f, g as U, l as d, h as g, b as x, i as u } from "./index-zoOqKYyQ.mjs";
1
+ import { U as p, d as h, e as y, f, g as U, l as d, h as g, b as x, i as u } from "./index-f5eNXqZp.mjs";
2
2
  import { W as T } from "./workerProxy-BDj498Ht.mjs";
3
3
  const i = new T(), v = async ({ data: e }) => {
4
4
  const { utxos: s, nullifiers: r } = e, o = s.filter((t) => {
@@ -1,5 +1,5 @@
1
- import { W as r } from "./index-zoOqKYyQ.mjs";
2
- const o = "" + new URL("assets/zkProofWorkerLauncher-C-lf5pHC.js", import.meta.url).href, e = "" + new URL("assets/snarkjsWorkerLauncher-fuD5h_j0.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href, a = {
1
+ import { W as r } from "./index-f5eNXqZp.mjs";
2
+ const o = "" + new URL("assets/zkProofWorkerLauncher-C-pvCm0b.js", import.meta.url).href, e = "" + new URL("assets/snarkjsWorkerLauncher-fuD5h_j0.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href, a = {
3
3
  [r.ZKProof]: o,
4
4
  [r.SnarkJS]: e,
5
5
  [r.UTXO]: s
@@ -1,4 +1,4 @@
1
- import { M as p, p as g, U as T, c as u, a as I, b as k, Z as m, d as C } from "./index-zoOqKYyQ.mjs";
1
+ import { M as p, p as g, U as T, c as u, a as I, b as k, Z as m, d as C } from "./index-f5eNXqZp.mjs";
2
2
  import { W as M } from "./workerProxy-BDj498Ht.mjs";
3
3
  const d = new M(), A = (e) => {
4
4
  const { inputUtxosSerialized: s, merkleTreeSerialized: n } = e.data, l = n.tree, a = new Map(