@hinkal/common 0.0.14 → 0.0.15
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-DbN7AhXw.js → snarkjsWorkerLogic-PT_bvjbJ.js} +2 -2
- package/assets/{utxoWorkerLogic-Bkshrlp4.js → utxoWorkerLogic-CaRjg9tk.js} +2 -2
- package/assets/viteWorkerURL.constant-C7fE1hzc.js +11 -0
- package/assets/{zkProofWorkerLauncher-DGaNFkI2.js → zkProofWorkerLauncher-D1ef-Gxp.js} +1 -1
- package/assets/{zkProofWorkerLogic-InUBQakA.js → zkProofWorkerLogic-BwAAGTST.js} +4 -4
- package/{index-DhzLG43o.cjs → index-B8ePiYjC.js} +24 -24
- package/{index-DT99VnQG.js → index-BZ-pPp0Y.mjs} +4023 -4010
- package/index.js +1 -448
- package/index.mjs +448 -0
- package/package.json +2 -2
- package/{snarkjsWorkerLogic-1mhiyYcS.cjs → snarkjsWorkerLogic-DertJLwB.js} +1 -1
- package/{snarkjsWorkerLogic-ByjUSKVU.js → snarkjsWorkerLogic-wQM4709R.mjs} +2 -2
- package/{utxoWorkerLogic-B2tb16OQ.js → utxoWorkerLogic-DGQxcKX5.mjs} +2 -2
- package/utxoWorkerLogic-DtyjPuS3.js +1 -0
- package/viteWorkerURL.constant-B4ERp5DP.js +1 -0
- package/viteWorkerURL.constant-DNNogPOI.mjs +9 -0
- package/zkProofWorkerLogic-C5kAcugj.js +1 -0
- package/{zkProofWorkerLogic-CZxvrCnr.js → zkProofWorkerLogic-CS9jd81C.mjs} +2 -2
- package/assets/viteWorkerURL.constant-DQ9bjg_P.js +0 -11
- package/index.cjs +0 -1
- package/utxoWorkerLogic-DtxfaOdY.cjs +0 -1
- package/viteWorkerURL.constant-CHyBNUFm.js +0 -9
- package/viteWorkerURL.constant-DafWv1zI.cjs +0 -1
- package/zkProofWorkerLogic-BMxmT4el.cjs +0 -1
- /package/{workerProxy-BDj498Ht.js → workerProxy-BDj498Ht.mjs} +0 -0
- /package/{workerProxy-C2KnRvuH.cjs → workerProxy-C2KnRvuH.js} +0 -0
package/index.mjs
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import { c2 as s, aU as t, aT as i, G as r, aW as o, aV as n, cC as c, cD as d, cG as l, cE as g, cF as A, d1 as b, fs as p, bB as y, da as T, dj as R, fh as u, d2 as P, fY as f, c1 as S, bl as C, bm as m, bt as I, fW as k, bA as E, fa as h, fg as D, ff as v, c_ as x, cZ as U, aY as L, b1 as F, b0 as _, a$ as B, b8 as M, d3 as N, cn as O, cY as w, au as V, fc as H, fb as W, cQ as G, dk as K, aA as Y, az as z, cq as Z, gf as q, O as Q, fn as j, fd as X, fq as J, fr as $, fM as aa, fj as ea, fi as sa, fJ as ta, M as ia, cB as ra, cO as oa, bC as na, b7 as ca, b4 as da, a_ as la, aR as ga, fV as Aa, fk as ba, g8 as pa, g7 as ya, g5 as Ta, g6 as Ra, fl as ua, ga as Pa, g4 as fa, g2 as Sa, g3 as Ca, g9 as ma, f$ as Ia, g0 as ka, g1 as Ea, fT as ha, aX as Da, b5 as va, bW as xa, c3 as Ua, fS as La, fX as Fa, fR as _a, fQ as Ba, fP as Ma, fO as Na, fN as Oa, b2 as wa, b6 as Va, b3 as Ha, aZ as Wa, ft as Ga, fe as Ka, ge as Ya, aS as za, fL as Za, fU as qa, cI as Qa, cJ as ja, cL as Xa, cK as Ja, d4 as $a, d7 as ae, d6 as ee, d8 as se, gd as te, cU as ie, g as re, U as oe, fo as ne, cj as ce, fp as de, fm as le, cN as ge, d9 as Ae, ck as be, dG as pe, ey as ye, aP as Te, aQ as Re, bG as ue, ae as Pe, $ as fe, Q as Se, ca as Ce, bI as me, ah as Ie, a2 as ke, T as Ee, am as he, an as De, ci as ve, eB as xe, bJ as Ue, aj as Le, a4 as Fe, X as _e, br as Be, dt as Me, dz as Ne, dA as Oe, ak as we, a5 as Ve, Y as He, c4 as We, ad as Ge, a0 as Ke, R as Ye, c8 as ze, c0 as Ze, e6 as qe, eK as Qe, eL as je, b as Xe, eM as Je, a as $e, eN as as, eR as es, eS as ss, du as ts, et as is, f2 as rs, ds as os, w as ns, y as cs, ee as ds, eh as ls, ao as gs, av as As, cX as bs, dm as ps, E as ys, k as Ts, bv as Rs, bw as us, a7 as Ps, bx as fs, eJ as Ss, aN as Cs, dZ as ms, eQ as Is, dN as ks, f1 as Es, at as hs, bo as Ds, gb as vs, gc as xs, bn as Us, bg as Ls, cH as Fs, bq as _s, d5 as Bs, f4 as Ms, fz as Ns, dR as Os, e8 as ws, e9 as Vs, cl as Hs, i as Ws, f0 as Gs, j as Ks, h as Ys, f7 as zs, f8 as Zs, f9 as qs, b9 as Qs, eP as js, ea as Xs, eY as Js, eZ as $s, fK as at, fv as et, f6 as st, f_ as tt, fZ as it, f3 as rt, e$ as ot, cm as nt, eW as ct, c5 as dt, bE as lt, af as gt, _ as At, P as bt, c7 as pt, bS as yt, em as Tt, bh as Rt, cM as ut, cV as Pt, d0 as ft, ce as St, dB as Ct, eT as mt, dQ as It, aG as kt, aI as Et, aE as ht, aH as Dt, eo as vt, ep as xt, er as Ut, es as Lt, eu as Ft, aF as _t, eX as Bt, z as Mt, e5 as Nt, x as Ot, c6 as wt, eU as Vt, eV as Ht, bL as Wt, cp as Gt, by as Kt, bz as Yt, q as zt, s as Zt, t as qt, v as Qt, bK as jt, fD as Xt, J as Jt, K as $t, o as ai, fB as ei, eA as si, ab as ti, dT as ii, dU as ri, cW as oi, L as ni, dP as ci, dO as di, dS as li, ac as gi, e2 as Ai, A as bi, bD as pi, cR as yi, dV as Ti, dI as Ri, aB as ui, aO as Pi, F as fi, ew as Si, ev as Ci, d_ as mi, e3 as Ii, e4 as ki, fI as Ei, ar as hi, eG as Di, eH as vi, cb as xi, aC as Ui, N as Li, dY as Fi, n as _i, ex as Bi, aD as Mi, e_ as Ni, B as Oi, C as wi, D as Vi, eE as Hi, eF as Wi, eD as Gi, dC as Ki, fC as Yi, cc as zi, fH as Zi, cr as qi, cs as Qi, ct as ji, cu as Xi, cv as Ji, cw as $i, cx as ar, cy as er, cz as sr, fy as tr, f5 as ir, co as rr, bc as or, aq as nr, eg as cr, bd as dr, ef as lr, ax as gr, aw as Ar, ay as br, bb as pr, ba as yr, fG as Tr, cd as Rr, ch as ur, dc as Pr, bP as fr, dd as Sr, bR as Cr, dh as mr, bN as Ir, de as kr, bM as Er, df as hr, bO as Dr, dM as vr, al as xr, ap as Ur, a6 as Lr, l as Fr, ei as _r, ej as Br, bZ as Mr, b_ as Nr, H as Or, I as wr, bT as Vr, dH as Hr, dn as Wr, dp as Gr, fx as Kr, cP as Yr, as as zr, bf as Zr, dq as qr, dr as Qr, bH as jr, ai as Xr, dl as Jr, c9 as $r, a3 as ao, V as eo, d$ as so, bj as to, fE as io, el as ro, bk as oo, dg as no, bQ as co, bY as lo, bF as go, ag as Ao, a1 as bo, S as po, p as yo, cg as To, cf as Ro, d as uo, bs as Po, bu as fo, e1 as So, e0 as Co, c$ as mo, b$ as Io, en as ko, bX as Eo, ec as ho, dW as Do, dK as vo, cA as xo, dX as Uo, cS as Lo, ez as Fo, eI as _o, db as Bo, dL as Mo, eC as No, fw as Oo, eO as wo, eb as Vo, dJ as Ho, bi as Wo, fu as Go, bV as Ko, bp as Yo, dv as zo, dw as Zo, eq as qo, dE as Qo, fF as jo, dy as Xo, dx as Jo, ed as $o, cT as an, di as en, dD as sn, dF as tn, aL as rn, aJ as on, aK as nn, aM as cn, a9 as dn, a8 as ln, aa as gn, ek as An, e7 as bn, fA as pn, bU as yn, be as Tn } from "./index-BZ-pPp0Y.mjs";
|
|
2
|
+
export {
|
|
3
|
+
s as ACCESS_TOKEN_MINTING_POINTS,
|
|
4
|
+
t as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
5
|
+
i as AIPRISE_KYC_TEMPLATE_ID_PROD,
|
|
6
|
+
r as API,
|
|
7
|
+
o as API_CONFIG,
|
|
8
|
+
n as AUTHENTO,
|
|
9
|
+
c as AbstractAccessTokenSnapshotService,
|
|
10
|
+
d as AbstractCommitmentsSnapshotService,
|
|
11
|
+
l as AbstractEventService,
|
|
12
|
+
g as AbstractNullifierSnapshotService,
|
|
13
|
+
A as AbstractSnapshotService,
|
|
14
|
+
b as AmTokenABI,
|
|
15
|
+
p as ApprovalType,
|
|
16
|
+
y as AxelarRegistry,
|
|
17
|
+
T as BUSDABI,
|
|
18
|
+
R as BabABI,
|
|
19
|
+
u as BeefyAction,
|
|
20
|
+
P as BeefyVaultABI,
|
|
21
|
+
f as BonusType,
|
|
22
|
+
S as CERTIFICATION_DISABLE_WEEK,
|
|
23
|
+
C as CIRCOM_P,
|
|
24
|
+
m as CIRCOM_P_HALF,
|
|
25
|
+
I as COINGECKO_API_KEY,
|
|
26
|
+
k as CertifyType,
|
|
27
|
+
E as CoinGeckoChainLabels,
|
|
28
|
+
h as ContractType,
|
|
29
|
+
D as ConvexAction,
|
|
30
|
+
v as CurveAction,
|
|
31
|
+
x as CurveReadingWrapperABI,
|
|
32
|
+
U as CurveWrappedMainPoolABI,
|
|
33
|
+
L as DATA_SERVER_CONFIG,
|
|
34
|
+
F as DATA_SERVER_PORT,
|
|
35
|
+
_ as DATA_SERVER_URL_LOCAL,
|
|
36
|
+
B as DATA_SERVER_URL_PRODUCTION,
|
|
37
|
+
M as DEPLOYMENT_MODE,
|
|
38
|
+
N as ERC20ABI,
|
|
39
|
+
O as EncryptionKeyPairDefaultValue,
|
|
40
|
+
w as ErrorCategory,
|
|
41
|
+
V as EthereumNetworkType,
|
|
42
|
+
H as EventType,
|
|
43
|
+
W as ExternalActionId,
|
|
44
|
+
G as FeeOverTransactionValueError,
|
|
45
|
+
K as GalxeABI,
|
|
46
|
+
Y as HINKAL_EXTERNAL_ACTION_FEE,
|
|
47
|
+
z as HINKAL_UNIVERSAL_FEE,
|
|
48
|
+
Z as Hinkal,
|
|
49
|
+
q as HinkalStakeMode,
|
|
50
|
+
Q as IMAGE_PATHS,
|
|
51
|
+
j as INTERACTION,
|
|
52
|
+
X as IntegrationProvider,
|
|
53
|
+
J as KycVerificationResult,
|
|
54
|
+
$ as KycVerificationStatus,
|
|
55
|
+
aa as LP_TIER,
|
|
56
|
+
ea as LidoAction,
|
|
57
|
+
sa as LidoVariant,
|
|
58
|
+
ta as MONTHS,
|
|
59
|
+
ia as MerkleTree,
|
|
60
|
+
ra as MerkleTreeIncompleteError,
|
|
61
|
+
oa as MultiThreadedUtxoUtils,
|
|
62
|
+
na as NETWORKS,
|
|
63
|
+
ca as PLAYGROUND_RELAYER_URLS,
|
|
64
|
+
da as PLAYGROUND_SERVER_URLS,
|
|
65
|
+
la as PLAYGROUND_URL,
|
|
66
|
+
ga as Passports,
|
|
67
|
+
Aa as PaymentStatus,
|
|
68
|
+
ba as PendleAction,
|
|
69
|
+
pa as PendleAssetType,
|
|
70
|
+
ya as PendleChains,
|
|
71
|
+
Ta as PendleDashboardTabs,
|
|
72
|
+
Ra as PendleEarnTabs,
|
|
73
|
+
ua as PendleLPAction,
|
|
74
|
+
Pa as PendleMarketTransactionTypes,
|
|
75
|
+
fa as PendlePoolManualTabs,
|
|
76
|
+
Sa as PendlePoolTabs,
|
|
77
|
+
Ca as PendlePoolZapTabs,
|
|
78
|
+
ma as PendleSwapType,
|
|
79
|
+
Ia as PendleTabs,
|
|
80
|
+
ka as PendleTradeGeneralTabs,
|
|
81
|
+
Ea as PendleTradeTabs,
|
|
82
|
+
ha as PointType,
|
|
83
|
+
Da as RELAYER_CONFIG,
|
|
84
|
+
va as RELAYER_URLS,
|
|
85
|
+
xa as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
|
|
86
|
+
Ua as RafflePrizePoints,
|
|
87
|
+
La as RafflePrizeType,
|
|
88
|
+
Fa as RewardPage,
|
|
89
|
+
_a as RewardsHistoryDistribution,
|
|
90
|
+
Ba as RewardsHistoryEligibility,
|
|
91
|
+
Ma as RewardsHistorySnapshots,
|
|
92
|
+
Na as RewardsHistoryStatuses,
|
|
93
|
+
Oa as RewardsPageTabs,
|
|
94
|
+
wa as SERVER_URLS,
|
|
95
|
+
Va as STAGING_RELAYER_URLS,
|
|
96
|
+
Ha as STAGING_SERVER_URLS,
|
|
97
|
+
Wa as STAGING_URL,
|
|
98
|
+
Ga as SlippageType,
|
|
99
|
+
Ka as StakeProvider,
|
|
100
|
+
Ya as StatType,
|
|
101
|
+
za as SupportedPassports,
|
|
102
|
+
Za as TIER_LEVEL,
|
|
103
|
+
qa as Timeline,
|
|
104
|
+
Qa as TokenChecker,
|
|
105
|
+
ja as TokenPriceFetcher,
|
|
106
|
+
Xa as TransactionType,
|
|
107
|
+
Ja as TransactionsManager,
|
|
108
|
+
$a as USDCABI,
|
|
109
|
+
ae as USDR3CRVABI,
|
|
110
|
+
ee as USDRABI,
|
|
111
|
+
se as USDTABI,
|
|
112
|
+
te as UpperTabPossibleValues,
|
|
113
|
+
ie as UserFriendlyErrorCodes,
|
|
114
|
+
re as UserKeys,
|
|
115
|
+
oe as Utxo,
|
|
116
|
+
ne as VERIFICATION_TYPE,
|
|
117
|
+
ce as ValueCache,
|
|
118
|
+
de as VerificationTypes,
|
|
119
|
+
le as VolatileAction,
|
|
120
|
+
ge as VolatileHelper,
|
|
121
|
+
Ae as WETHABI,
|
|
122
|
+
be as abiDecodeUtxo,
|
|
123
|
+
pe as absBigInt,
|
|
124
|
+
ye as addPaddingToUtxos,
|
|
125
|
+
Te as aipriseBaseOnboardingProductionUrl,
|
|
126
|
+
Re as aipriseBaseOnboardingSandboxUrl,
|
|
127
|
+
ue as arbMainnetCrvCvxRegistry,
|
|
128
|
+
Pe as arbMainnetData,
|
|
129
|
+
fe as arbMainnetRegistry,
|
|
130
|
+
Se as arbMainnetRegistryFixed,
|
|
131
|
+
Ce as arbPendleRegistry,
|
|
132
|
+
me as avalancheCrvCvxRegistry,
|
|
133
|
+
Ie as avalancheData,
|
|
134
|
+
ke as avalancheRegistry,
|
|
135
|
+
Ee as avalancheRegistryFixed,
|
|
136
|
+
he as axelar1Data,
|
|
137
|
+
De as axelar2Data,
|
|
138
|
+
ve as babyJubInstance,
|
|
139
|
+
xe as balanceChangedHandler,
|
|
140
|
+
Ue as baseCrvCvxRegistry,
|
|
141
|
+
Le as baseData,
|
|
142
|
+
Fe as baseRegistry,
|
|
143
|
+
_e as baseRegistryFixed,
|
|
144
|
+
Be as beefyChainIds,
|
|
145
|
+
Me as beepsToPercentage,
|
|
146
|
+
Ne as bigintApplySugar,
|
|
147
|
+
Oe as bigintMax,
|
|
148
|
+
we as blastData,
|
|
149
|
+
Ve as blastRegistry,
|
|
150
|
+
He as blastRegistryFixed,
|
|
151
|
+
We as blockReorgDepth,
|
|
152
|
+
Ge as bnbMainnetData,
|
|
153
|
+
Ke as bnbMainnetRegistry,
|
|
154
|
+
Ye as bnbMainnetRegistryFixed,
|
|
155
|
+
ze as bnbPendleRegistry,
|
|
156
|
+
Ze as boostAmounts,
|
|
157
|
+
qe as browserSupported,
|
|
158
|
+
Qe as buildInNullifiers,
|
|
159
|
+
je as buildOutCommitments,
|
|
160
|
+
Xe as calcAccessTokenSiblingsAndSides,
|
|
161
|
+
Je as calcAmountChanges,
|
|
162
|
+
$e as calcCommitmentsSiblingAndSides,
|
|
163
|
+
as as calcEncryptedOutputs,
|
|
164
|
+
es as calcPublicSignalCount,
|
|
165
|
+
ss as calcStealthAddressStructure,
|
|
166
|
+
ts as calculateAmountUsingBeeps,
|
|
167
|
+
is as calculateDollarValue,
|
|
168
|
+
rs as calculateStakeNullifier,
|
|
169
|
+
os as calculateSum,
|
|
170
|
+
ns as callOneInchAPI,
|
|
171
|
+
cs as callRelayerTransactAPI,
|
|
172
|
+
ds as capitalizeFirstLetter,
|
|
173
|
+
ls as caseInsensitiveEqual,
|
|
174
|
+
gs as chainIds,
|
|
175
|
+
As as chainIdsByType,
|
|
176
|
+
bs as checkErrorForSnapshotRestore,
|
|
177
|
+
ps as checkHinkalAccessToken,
|
|
178
|
+
ys as checkRisk,
|
|
179
|
+
Ts as checkUtxoSignature,
|
|
180
|
+
Rs as coingeckoPriceUrl,
|
|
181
|
+
us as coingeckoPriceUrl2,
|
|
182
|
+
Ps as coingeckoRegistry,
|
|
183
|
+
fs as coingeckoTokenListUrl,
|
|
184
|
+
Ss as constructZkProof,
|
|
185
|
+
Cs as contractMetadataMapping,
|
|
186
|
+
ms as convertIntegrationProviderToExternalActionId,
|
|
187
|
+
Is as createCallDataHash,
|
|
188
|
+
ks as createProvider,
|
|
189
|
+
Es as createStakeCommitment,
|
|
190
|
+
hs as crossChainAccessTokenNetworks,
|
|
191
|
+
Ds as crvSymbol,
|
|
192
|
+
vs as curveNetworkNames,
|
|
193
|
+
xs as curvePools,
|
|
194
|
+
Us as curveWithdrawGasTokenAddress,
|
|
195
|
+
Ls as curveZeroAddress,
|
|
196
|
+
Fs as customTokenRegistry,
|
|
197
|
+
_s as cvxSymbol,
|
|
198
|
+
Bs as daiABI,
|
|
199
|
+
Ms as dataBeefyApiConfig,
|
|
200
|
+
Ns as dayInMilliseconds,
|
|
201
|
+
Os as decodeMetadata,
|
|
202
|
+
ws as decodeTxInput,
|
|
203
|
+
Vs as decodeTxLogs,
|
|
204
|
+
Hs as decodeUtxo,
|
|
205
|
+
Ws as decodeUtxoConstructorArgs,
|
|
206
|
+
Gs as decryptStake,
|
|
207
|
+
Ks as decryptUtxo,
|
|
208
|
+
Ys as decryptUtxoConstructorArgs,
|
|
209
|
+
zs as defaultHookData,
|
|
210
|
+
Zs as defaultHookDataArray,
|
|
211
|
+
qs as defaultStealthAddressStructure,
|
|
212
|
+
Qs as deploymentMode,
|
|
213
|
+
js as deserializeCircomData,
|
|
214
|
+
Xs as deserializeDecodedTxs,
|
|
215
|
+
Js as determinePendleSwapType,
|
|
216
|
+
$s as determinePendleSwapTypeApiRoute,
|
|
217
|
+
at as divideMonthOnIntervals,
|
|
218
|
+
et as emptyDecodedTx,
|
|
219
|
+
st as emptyStealthAddressStructure,
|
|
220
|
+
tt as emptyUserPointsBreakdown,
|
|
221
|
+
it as emptyUserPointsResponse,
|
|
222
|
+
rt as encodeHStakeMetadata,
|
|
223
|
+
ot as encryptStake,
|
|
224
|
+
nt as encryptUtxo,
|
|
225
|
+
ct as erc20TokenFromPendleAsset,
|
|
226
|
+
dt as ethBeefyRegistry,
|
|
227
|
+
lt as ethCrvCvxRegistry,
|
|
228
|
+
gt as ethMainnetData,
|
|
229
|
+
At as ethMainnetRegistry,
|
|
230
|
+
bt as ethMainnetRegistryFixed,
|
|
231
|
+
pt as ethPendleRegistry,
|
|
232
|
+
yt as ethSymbol,
|
|
233
|
+
Tt as ethToWei,
|
|
234
|
+
Rt as ethVolatileAddress,
|
|
235
|
+
ut as externalActionToTransactionType,
|
|
236
|
+
Pt as extractMessage,
|
|
237
|
+
ft as factoryABI,
|
|
238
|
+
St as findSyAddress,
|
|
239
|
+
Ct as fixDecimalsAmount,
|
|
240
|
+
mt as generateZkProof,
|
|
241
|
+
It as getActionFromMetadata,
|
|
242
|
+
kt as getAmountAfterRelayAndFlatFees,
|
|
243
|
+
Et as getAmountAfterRelayAndFlatFeesAndSlippage,
|
|
244
|
+
ht as getAmountAfterRelayFee,
|
|
245
|
+
Dt as getAmountAfterSlippage,
|
|
246
|
+
vt as getAmountInToken,
|
|
247
|
+
xt as getAmountInWei,
|
|
248
|
+
Ut as getAmountInWeiOrZero,
|
|
249
|
+
Lt as getAmountWithPrecision,
|
|
250
|
+
Ft as getAmountWithPrecisionOrZero,
|
|
251
|
+
_t as getAmountWithoutFee,
|
|
252
|
+
Bt as getAssetTypeFromPendleMarket,
|
|
253
|
+
Mt as getAxelarGasEstimate,
|
|
254
|
+
Nt as getAxelarMigrationInfo,
|
|
255
|
+
Ot as getBeefyHistoricalChartData,
|
|
256
|
+
wt as getBeefyRegistryWithChainId,
|
|
257
|
+
Vt as getCRV,
|
|
258
|
+
Ht as getCVX,
|
|
259
|
+
Wt as getCalcTokenAmountWithDynamicArray,
|
|
260
|
+
Gt as getCircomSign,
|
|
261
|
+
Kt as getCoingeckoIdForNativeTokens,
|
|
262
|
+
Yt as getCoingeckoPlatform,
|
|
263
|
+
zt as getCoingeckoPrice,
|
|
264
|
+
Zt as getCoingeckoPrice2,
|
|
265
|
+
qt as getCoingeckoPrices,
|
|
266
|
+
Qt as getCoingeckoTokenList,
|
|
267
|
+
jt as getCrvCvxWithChainId,
|
|
268
|
+
Xt as getCurrentWeek,
|
|
269
|
+
Jt as getCurvePools,
|
|
270
|
+
$t as getCurvePoolsforPriceFetching,
|
|
271
|
+
ai as getDataServerURL,
|
|
272
|
+
ei as getDateFromWeek,
|
|
273
|
+
si as getDepositEvents,
|
|
274
|
+
ti as getERC20Registry,
|
|
275
|
+
ii as getERC20Token,
|
|
276
|
+
ri as getERC20TokenBySymbol,
|
|
277
|
+
oi as getErrorMessage,
|
|
278
|
+
ni as getExtendedPoolInfo,
|
|
279
|
+
ci as getExternalActionIdFromNumber,
|
|
280
|
+
di as getExternalActionIdHash,
|
|
281
|
+
li as getExternalMetadataHash,
|
|
282
|
+
gi as getFixedRegistry,
|
|
283
|
+
Ai as getFlatFees,
|
|
284
|
+
bi as getGasEstimates,
|
|
285
|
+
pi as getGasStationUrl,
|
|
286
|
+
yi as getGenericFeeOverTransactionValueErrorMessage,
|
|
287
|
+
Ti as getHToken,
|
|
288
|
+
Ri as getHinkalCache,
|
|
289
|
+
ui as getHinkalFeeRateInBeeps,
|
|
290
|
+
Pi as getHinkalParameters,
|
|
291
|
+
fi as getIdleRelay,
|
|
292
|
+
Si as getInputUtxoAndBalance,
|
|
293
|
+
Ci as getInputUtxosFromEncryptedOutputs,
|
|
294
|
+
mi as getInteractionFromAction,
|
|
295
|
+
Ii as getNetworkObject,
|
|
296
|
+
ki as getNetworkType,
|
|
297
|
+
Ei as getNextDay,
|
|
298
|
+
hi as getNonLocalhostChainId,
|
|
299
|
+
Di as getOdosPrice,
|
|
300
|
+
vi as getOneInchPrice,
|
|
301
|
+
xi as getPendleRegistryWithChainId,
|
|
302
|
+
Ui as getRelayFee,
|
|
303
|
+
Li as getRelayerURL,
|
|
304
|
+
Fi as getSequence,
|
|
305
|
+
_i as getServerURL,
|
|
306
|
+
Bi as getShieldedBalance,
|
|
307
|
+
Mi as getSlippageFee,
|
|
308
|
+
Ni as getTokenIndexForPendleFlatFee,
|
|
309
|
+
Oi as getTokenPrice,
|
|
310
|
+
wi as getTokenPriceEth,
|
|
311
|
+
Vi as getTokenPrices,
|
|
312
|
+
Hi as getUniswapFee,
|
|
313
|
+
Wi as getUniswapPrice,
|
|
314
|
+
Gi as getUniswapPriceHelper,
|
|
315
|
+
Ki as getValueFirstNDigit,
|
|
316
|
+
Yi as getWeekTimestamps,
|
|
317
|
+
zi as getYtTokensWithChainId,
|
|
318
|
+
Zi as hasCertificationPeriodExpired,
|
|
319
|
+
qi as hinkalActionBeefy,
|
|
320
|
+
Qi as hinkalActionConvex,
|
|
321
|
+
ji as hinkalActionCurve,
|
|
322
|
+
Xi as hinkalActionPendle,
|
|
323
|
+
Ji as hinkalDeposit,
|
|
324
|
+
$i as hinkalDepositForOther,
|
|
325
|
+
ar as hinkalSwap,
|
|
326
|
+
er as hinkalTransfer,
|
|
327
|
+
sr as hinkalWithdraw,
|
|
328
|
+
tr as hourInMilliseconds,
|
|
329
|
+
ir as isBeefyDeposit,
|
|
330
|
+
rr as isCircomNegative,
|
|
331
|
+
or as isDevelopment,
|
|
332
|
+
nr as isLocalNetwork,
|
|
333
|
+
cr as isNicknameValid,
|
|
334
|
+
dr as isNotProduction,
|
|
335
|
+
lr as isNullOrEmpty,
|
|
336
|
+
gr as isOptimismBedrockLike,
|
|
337
|
+
Ar as isOptimismEcotoneLike,
|
|
338
|
+
br as isOptimismLike,
|
|
339
|
+
pr as isPlayground,
|
|
340
|
+
yr as isStaging,
|
|
341
|
+
Tr as isWeekCurrent,
|
|
342
|
+
Rr as isYtToken,
|
|
343
|
+
ur as jubHolder,
|
|
344
|
+
Pr as lidoStEthAbi,
|
|
345
|
+
fr as lidoStEthContractAddress,
|
|
346
|
+
Sr as lidoStMaticAbi,
|
|
347
|
+
Cr as lidoStMaticAddress,
|
|
348
|
+
mr as lidoStakeManagerAbi,
|
|
349
|
+
Ir as lidoStakeManagerAddress,
|
|
350
|
+
kr as lidoWithdrawalQueueERC721Abi,
|
|
351
|
+
Er as lidoWithdrawalQueueERC721Address,
|
|
352
|
+
hr as lidoWstEthAbi,
|
|
353
|
+
Dr as lidoWstEthContractAddress,
|
|
354
|
+
vr as loadTxsCache,
|
|
355
|
+
xr as localhostData,
|
|
356
|
+
Ur as localhostNetwork,
|
|
357
|
+
Lr as localhostRegistry,
|
|
358
|
+
Fr as logError,
|
|
359
|
+
_r as lowerCaseIncludes,
|
|
360
|
+
Br as lowerCaseStartsWith,
|
|
361
|
+
Mr as lpLink,
|
|
362
|
+
Nr as lpProgramStartWeek,
|
|
363
|
+
Or as lpTokens,
|
|
364
|
+
wr as lpTokensToBasePool,
|
|
365
|
+
Vr as maticSymbol,
|
|
366
|
+
Hr as minBigInt,
|
|
367
|
+
Wr as mintAccessToken,
|
|
368
|
+
Gr as mintTokenCrossChain,
|
|
369
|
+
Kr as minuteInMilliseconds,
|
|
370
|
+
Yr as multiThreadedUtxoUtils,
|
|
371
|
+
zr as networkRegistry,
|
|
372
|
+
Zr as oneInchZeroAddress,
|
|
373
|
+
qr as openDefaultPassportWindow,
|
|
374
|
+
Qr as openPassportWindow,
|
|
375
|
+
jr as optimismCrvCvxRegistry,
|
|
376
|
+
Xr as optimismData,
|
|
377
|
+
Jr as optimismGasPriceOracleAbi,
|
|
378
|
+
$r as optimismPendleRegistry,
|
|
379
|
+
ao as optimismRegistry,
|
|
380
|
+
eo as optimismRegistryFixed,
|
|
381
|
+
so as outputUtxoProcessing,
|
|
382
|
+
to as ownerPublicKey,
|
|
383
|
+
io as parseWeek,
|
|
384
|
+
ro as patchRegistry,
|
|
385
|
+
oo as permitSignatureValidFor,
|
|
386
|
+
no as poLidoNftAbi,
|
|
387
|
+
co as poLidoNftAddress,
|
|
388
|
+
lo as pointsLink,
|
|
389
|
+
go as polygonCrvCvxRegistry,
|
|
390
|
+
Ao as polygonData,
|
|
391
|
+
bo as polygonRegistry,
|
|
392
|
+
po as polygonRegistryFixed,
|
|
393
|
+
yo as poseidonFunction,
|
|
394
|
+
To as poseidonHash,
|
|
395
|
+
Ro as poseidonHolder,
|
|
396
|
+
uo as preProcessing,
|
|
397
|
+
Po as proCoingeckoUrl,
|
|
398
|
+
fo as proHeader,
|
|
399
|
+
So as processAmountChanges,
|
|
400
|
+
Co as processGasEstimates,
|
|
401
|
+
mo as quoterV2ABI,
|
|
402
|
+
Io as raffleProgramStartWeek,
|
|
403
|
+
ko as randomBigInt,
|
|
404
|
+
Eo as referralLink,
|
|
405
|
+
ho as reloadPage,
|
|
406
|
+
Do as requireEnv,
|
|
407
|
+
vo as resetCache,
|
|
408
|
+
xo as resetMerkleTrees,
|
|
409
|
+
Uo as resolveSync,
|
|
410
|
+
Lo as rethrowKnownGasErrorIfPossible,
|
|
411
|
+
Fo as retrieveEvents,
|
|
412
|
+
_o as runContractFunction,
|
|
413
|
+
Bo as sanctionsListABI,
|
|
414
|
+
Mo as saveTxsCache,
|
|
415
|
+
No as searchPoolAndFee,
|
|
416
|
+
Oo as secondInMilliseconds,
|
|
417
|
+
wo as serializeCircomData,
|
|
418
|
+
Vo as serializeDecodedTxs,
|
|
419
|
+
Ho as setHinkalCache,
|
|
420
|
+
Wo as signaturePhrase,
|
|
421
|
+
Go as slippageLevels,
|
|
422
|
+
Ko as stMaticSymbol,
|
|
423
|
+
Yo as threePoolSymbol,
|
|
424
|
+
zo as toBigInt,
|
|
425
|
+
Zo as toBigIntOrUndefined,
|
|
426
|
+
qo as toBigIntWithDecimals,
|
|
427
|
+
Qo as toCommaSeparatedNumberString,
|
|
428
|
+
jo as toDateString,
|
|
429
|
+
Xo as toInt,
|
|
430
|
+
Jo as toNumberOrUndefined,
|
|
431
|
+
$o as toTitleCase,
|
|
432
|
+
an as transactionErrorCodes,
|
|
433
|
+
en as transactionProverABI,
|
|
434
|
+
sn as trimLeadingZeros,
|
|
435
|
+
tn as truncateTo18DecimalPlaces,
|
|
436
|
+
rn as uniswapV2PoolData,
|
|
437
|
+
on as uniswapV3FactoryData,
|
|
438
|
+
nn as uniswapV3PoolData,
|
|
439
|
+
cn as uniswapV3QuoterData,
|
|
440
|
+
dn as urlForBeefyVaultTokens,
|
|
441
|
+
ln as urlForBeefyVaultTotalInUSD,
|
|
442
|
+
gn as urlForRegularTokenPricesInBeefy,
|
|
443
|
+
An as waitLittle,
|
|
444
|
+
bn as walletSupported,
|
|
445
|
+
pn as weekInMilliseconds,
|
|
446
|
+
yn as wstEthSymbol,
|
|
447
|
+
Tn as zeroAddress
|
|
448
|
+
};
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lo=require("./workerProxy-C2KnRvuH.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lo=require("./workerProxy-C2KnRvuH.js"),se=require("./index-B8ePiYjC.js"),uo=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4];function on(c,t){if(!t||t==10)return BigInt(c);if(t==16)return c.slice(0,2)=="0x"?BigInt(c):BigInt("0x"+c)}const ve=on;function fo(c,t){let e=BigInt(0);t=BigInt(t);for(let n=0;n<c.length;n++)e=e*t+BigInt(c[n]);return e}function Ni(c){const t=c.toString(16);return(t.length-1)*4+uo[parseInt(t[0],16)]}function _o(c){return BigInt(c)<BigInt(0)}function go(c){return!c}function zi(c,t){return BigInt(c)<<BigInt(t)}function Rn(c,t){return BigInt(c)>>BigInt(t)}const po=zi,ho=Rn;function Lo(c){return(BigInt(c)&BigInt(1))==BigInt(1)}function mo(c){let t=BigInt(c);const e=[];for(;t;){if(t&BigInt(1)){const n=2-Number(t%BigInt(4));e.push(n),t=t-BigInt(n)}else e.push(0);t=t>>BigInt(1)}return e}function bo(c){let t=BigInt(c);const e=[];for(;t;)t&BigInt(1)?e.push(1):e.push(0),t=t>>BigInt(1);return e}function Ui(c){if(c>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Number too big");return Number(c)}function yo(c,t){const e=[];let n=BigInt(c);for(t=BigInt(t);n;)e.unshift(Number(n%t)),n=n/t;return e}function Co(c,t){return BigInt(c)+BigInt(t)}function Ao(c,t){return BigInt(c)-BigInt(t)}function Fo(c){return-BigInt(c)}function Eo(c,t){return BigInt(c)*BigInt(t)}function wo(c){return BigInt(c)*BigInt(c)}function Bo(c,t){return BigInt(c)**BigInt(t)}function vo(c,t){return BigInt(c)**BigInt(t)}function xo(c){return BigInt(c)>=0?BigInt(c):-BigInt(c)}function So(c,t){return BigInt(c)/BigInt(t)}function Io(c,t){return BigInt(c)%BigInt(t)}function Oo(c,t){return BigInt(c)==BigInt(t)}function Po(c,t){return BigInt(c)!=BigInt(t)}function ko(c,t){return BigInt(c)<BigInt(t)}function To(c,t){return BigInt(c)>BigInt(t)}function qo(c,t){return BigInt(c)<=BigInt(t)}function Mo(c,t){return BigInt(c)>=BigInt(t)}function ji(c,t){return BigInt(c)&BigInt(t)}function Do(c,t){return BigInt(c)|BigInt(t)}function Ro(c,t){return BigInt(c)^BigInt(t)}function No(c,t){return BigInt(c)&&BigInt(t)}function zo(c,t){return BigInt(c)||BigInt(t)}function Uo(c){return!BigInt(c)}function $i(c,t,e,n){const i="0000000"+e.toString(16),s=new Uint32Array(c.buffer,c.byteOffset+t,n/4),g=((i.length-7)*4-1>>5)+1;for(let d=0;d<g;d++)s[d]=parseInt(i.substring(i.length-8*d-8,i.length-8*d),16);for(let d=g;d<s.length;d++)s[d]=0;for(let d=s.length*4;d<n;d++)c[d]=Ui(ji(Rn(e,d*8),255))}function jo(c,t,e,n){const i="0000000"+e.toString(16),s=new DataView(c.buffer,c.byteOffset+t,n),g=((i.length-7)*4-1>>5)+1;for(let d=0;d<g;d++)s.setUint32(n-d*4-4,parseInt(i.substring(i.length-8*d-8,i.length-8*d),16),!1);for(let d=0;d<n/4-g;d++)s[d]=0}function $o(c,t,e){e=e||c.byteLength,t=t||0;const n=new Uint32Array(c.buffer,c.byteOffset+t,e/4),i=new Array(e/4);return n.forEach((s,g)=>i[i.length-g-1]=s.toString(16).padStart(8,"0")),on(i.join(""),16)}function Go(c,t,e){e=e||c.byteLength,t=t||0;const n=new DataView(c.buffer,c.byteOffset+t,e),i=new Array(e/4);for(let s=0;s<e/4;s++)i[s]=n.getUint32(s*4,!1).toString(16).padStart(8,"0");return on(i.join(""),16)}function Zo(c,t){return c.toString(t)}function Wo(c){const t=new Uint8Array(Math.floor((Ni(c)-1)/8)+1);return $i(t,0,c,t.byteLength),t}const Xo=ve(0),Vo=ve(1);var Ho=Object.freeze({__proto__:null,abs:xo,add:Co,band:ji,bitLength:Ni,bits:bo,bor:Do,bxor:Ro,div:So,e:ve,eq:Oo,exp:vo,fromArray:fo,fromRprBE:Go,fromRprLE:$o,fromString:on,geq:Mo,gt:To,isNegative:_o,isOdd:Lo,isZero:go,land:No,leq:qo,lnot:Uo,lor:zo,lt:ko,mod:Io,mul:Eo,naf:mo,neg:Fo,neq:Po,one:Vo,pow:Bo,shiftLeft:zi,shiftRight:Rn,shl:po,shr:ho,square:wo,sub:Ao,toArray:yo,toLEBuff:Wo,toNumber:Ui,toRprBE:jo,toRprLE:$i,toString:Zo,zero:Xo});const oe=1<<30;let Qo=class Bn{constructor(t){this.buffers=[],this.byteLength=t;for(let e=0;e<t;e+=oe){const n=Math.min(t-e,oe);this.buffers.push(new Uint8Array(n))}}slice(t,e){e===void 0&&(e=this.byteLength),t===void 0&&(t=0);const n=e-t,i=Math.floor(t/oe),s=Math.floor((t+n-1)/oe);if(i==s||n==0)return this.buffers[i].slice(t%oe,t%oe+n);let g,d=i,C=t%oe,l=n;for(;l>0;){const o=C+l>oe?oe-C:l,y=new Uint8Array(this.buffers[d].buffer,this.buffers[d].byteOffset+C,o);if(o==n)return y.slice();g||(n<=oe?g=new Uint8Array(n):g=new Bn(n)),g.set(y,n-l),l=l-o,d++,C=0}return g}set(t,e){e===void 0&&(e=0);const n=t.byteLength;if(n==0)return;const i=Math.floor(e/oe),s=Math.floor((e+n-1)/oe);if(i==s)return t instanceof Bn&&t.buffers.length==1?this.buffers[i].set(t.buffers[0],e%oe):this.buffers[i].set(t,e%oe);let g=i,d=e%oe,C=n;for(;C>0;){const l=d+C>oe?oe-d:C,o=t.slice(n-C,n-C+l);new Uint8Array(this.buffers[g].buffer,this.buffers[g].byteOffset+d,l).set(o),C=C-l,g++,d=0}}};function Jo(c){return globalThis.btoa(c)}Jo(`(function thread(self) {
|
|
2
2
|
const MAXMEM = 32767;
|
|
3
3
|
let instance;
|
|
4
4
|
let memory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as _o } from "./workerProxy-BDj498Ht.
|
|
2
|
-
import { f as on, r as vn, c as Ye, e as Ua, u as zn } from "./index-
|
|
1
|
+
import { W as _o } from "./workerProxy-BDj498Ht.mjs";
|
|
2
|
+
import { f as on, r as vn, c as Ye, e as Ua, u as zn } from "./index-BZ-pPp0Y.mjs";
|
|
3
3
|
const go = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
4
4
|
function cn(c, t) {
|
|
5
5
|
if (!t || t == 10)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as p, g as h, h as y, i as f, j as U, l as d, k as g, d as x, m as u } from "./index-
|
|
2
|
-
import { W as T } from "./workerProxy-BDj498Ht.
|
|
1
|
+
import { U as p, g as h, h as y, i as f, j as U, l as d, k as g, d as x, m as u } from "./index-BZ-pPp0Y.mjs";
|
|
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) => {
|
|
5
5
|
const c = new p(t);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-B8ePiYjC.js"),g=require("./workerProxy-C2KnRvuH.js"),l=new g.WorkerProxy,d=async({data:e})=>{const{utxos:o,nullifiers:s}=e,n=o.filter(t=>{const a=new r.Utxo(t);return!s.has(a.getNullifier())});l.postMessageToMainThread(n)},h=async({data:e})=>{const o=new r.UserKeys(e.signature),s=o.getShieldedPrivateKey(),n=e.encryptedOutputs.map(t=>{try{return t.isPositive?r.decryptUtxoConstructorArgs(Buffer.from(t.value.slice(2),"hex"),o):r.decodeUtxoConstructorArgs(t.value,s)}catch{return}}).filter(t=>t!==void 0);l.postMessageToMainThread(n)},y=async({data:e})=>{const o=new r.UserKeys(e.signature),s=[],{encryptedOutputs:n}=e;let{lastOutput:t}=e;for(let a=0;a<n.length;a+=1){const i=n[a];if(t=i.value,i.isPositive)try{const c=r.decryptUtxo(Buffer.from(t.slice(2),"hex"),o);if(!c.erc20TokenAddress||!c.amount||!c.stealthAddress)throw Error("bruh");s.map(u=>u.value).includes(i.value)||s.push(i)}catch{r.logError("Utxo not decrypted")}else try{r.checkUtxoSignature(t,o.getShieldedPrivateKey())&&(s.map(u=>u.value).includes(i.value)||s.push(i))}catch{r.logError("Utxo not decoded")}}l.postMessageToMainThread({additionalEncryptedOutputs:s,lastOutput:t})},p=async e=>{await r.preProcessing();const{type:o}=e.payload;switch(o){case r.UtxoWorkerActionType.BATCH_FILTER_UTXOS_WITH_NULLIFIER:d(e.payload);return;case r.UtxoWorkerActionType.BUILD_UTXOS:h(e.payload);return;case r.UtxoWorkerActionType.DECIPHER_OUTPUTS:y(e.payload);return;default:throw Error(`Unknown worker message type ${o}`)}};l.attachWorkerSideOnMessage(p);exports.default=l;exports.handleBuildUtxosMessage=h;exports.handleDecipherMessage=y;exports.handleFilterUtxosWithNullifier=d;exports.onWorkerMessage=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-B8ePiYjC.js"),e="/assets/zkProofWorkerLauncher-D1ef-Gxp.js",o="/assets/snarkjsWorkerLauncher-CaBCnle3.js",s="/assets/utxoWorkerLauncher-TRT6Cdzd.js",t={[r.WorkerVariant.ZKProof]:e,[r.WorkerVariant.SnarkJS]:o,[r.WorkerVariant.UTXO]:s};exports.workerViteURL=t;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { W as r } from "./index-BZ-pPp0Y.mjs";
|
|
2
|
+
const o = "/assets/zkProofWorkerLauncher-D1ef-Gxp.js", s = "/assets/snarkjsWorkerLauncher-CaBCnle3.js", e = "/assets/utxoWorkerLauncher-TRT6Cdzd.js", k = {
|
|
3
|
+
[r.ZKProof]: o,
|
|
4
|
+
[r.SnarkJS]: s,
|
|
5
|
+
[r.UTXO]: e
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
k as workerViteURL
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-B8ePiYjC.js"),k=require("./workerProxy-C2KnRvuH.js"),d=new k.WorkerProxy,p=n=>{const{inputUtxosSerialized:i,merkleTreeSerialized:t}=n.data,S=t.tree,r=new Map(Object.entries(S).map(([c,l])=>[BigInt(c),BigInt(l)])),o=e.MerkleTree.createWithData(r,BigInt(t.index),BigInt(t.count),e.poseidonFunction,25n,0n),s=i.map(c=>c.map(l=>new e.Utxo(l))),{inCommitmentSiblings:a,inCommitmentSiblingSides:m}=e.calcCommitmentsSiblingAndSides(s,o);d.postMessageToMainThread({inCommitmentSiblings:a,inCommitmentSiblingSides:m})},g=n=>{const{userSignature:i,merkleTreeAccessTokenSerialized:t}=n.data,S=new e.UserKeys(i),r=t.tree,o=new Map(Object.entries(r).map(([c,l])=>[BigInt(c),BigInt(l)])),s=e.MerkleTree.createWithData(o,BigInt(t.index),BigInt(t.count),e.poseidonFunction,25n,0n),{accessTokenSiblings:a,accessTokenSiblingSides:m}=e.calcAccessTokenSiblingsAndSides(S,s);d.postMessageToMainThread({accessTokenSiblings:a,accessTokenSiblingSides:m})},T=n=>{const{inputUtxosSerialized:i,onChainCreation:t}=n.data,r=i.map(o=>o.map(s=>new e.Utxo(s))).map((o,s)=>o.map(a=>t[s]?"0":a.getNullifier()));d.postMessageToMainThread(r)},u=async n=>{await e.preProcessing();const{type:i}=n.payload;switch(i){case e.ZKProofWorkerActionType.CALC_COMMITMENTS_SIBLING_AND_SIDES:p(n.payload);return;case e.ZKProofWorkerActionType.CALC_ACCESS_TOKEN_SIBLING_AND_SIDES:g(n.payload);return;case e.ZKProofWorkerActionType.BUILD_IN_NULLIFIERS:T(n.payload);return;default:throw Error(`Unknown worker message type ${i}`)}};d.attachWorkerSideOnMessage(u);exports.default=d;exports.handleBuildInNullifiers=T;exports.handleCalcAccessTokenSiblingAndSides=g;exports.handleCalcCommitmentsSiblingAndSides=p;exports.onWorkerMessage=u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as p, p as g, U as T, a as u, b as I, d as k, Z as m, g as C } from "./index-
|
|
2
|
-
import { W as M } from "./workerProxy-BDj498Ht.
|
|
1
|
+
import { M as p, p as g, U as T, a as u, b as I, d as k, Z as m, g as C } from "./index-BZ-pPp0Y.mjs";
|
|
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(
|
|
5
5
|
Object.entries(l).map(([r, c]) => [BigInt(r), BigInt(c)])
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { W as r } from "./zkProofWorkerLogic-InUBQakA.js";
|
|
2
|
-
import "./zkProofWorkerLauncher-DGaNFkI2.js";
|
|
3
|
-
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CaBCnle3.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href;
|
|
4
|
-
const n = {
|
|
5
|
-
[r.ZKProof]: o,
|
|
6
|
-
[r.SnarkJS]: e,
|
|
7
|
-
[r.UTXO]: a
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
n as workerViteURL
|
|
11
|
-
};
|
package/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DhzLG43o.cjs");exports.ACCESS_TOKEN_MINTING_POINTS=e.ACCESS_TOKEN_MINTING_POINTS;exports.AIPRISE_KYB_TEMPLATE_ID_PROD=e.AIPRISE_KYB_TEMPLATE_ID_PROD;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=e.AIPRISE_KYC_TEMPLATE_ID_PROD;exports.API=e.API;exports.API_CONFIG=e.API_CONFIG;exports.AUTHENTO=e.AUTHENTO;exports.AbstractAccessTokenSnapshotService=e.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=e.AbstractCommitmentsSnapshotService;exports.AbstractEventService=e.AbstractEventService;exports.AbstractNullifierSnapshotService=e.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=e.AbstractSnapshotService;exports.AmTokenABI=e.abi$4;exports.ApprovalType=e.ApprovalType;exports.AxelarRegistry=e.AxelarRegistry;exports.BUSDABI=e.abi$13;exports.BabABI=e.abi$16;exports.BeefyAction=e.BeefyAction;exports.BeefyVaultABI=e.abi$5;exports.BonusType=e.BonusType;exports.CERTIFICATION_DISABLE_WEEK=e.CERTIFICATION_DISABLE_WEEK;exports.CIRCOM_P=e.CIRCOM_P;exports.CIRCOM_P_HALF=e.CIRCOM_P_HALF;exports.COINGECKO_API_KEY=e.COINGECKO_API_KEY;exports.CertifyType=e.CertifyType;exports.CoinGeckoChainLabels=e.CoinGeckoChainLabels;exports.ContractType=e.ContractType;exports.ConvexAction=e.ConvexAction;exports.CurveAction=e.CurveAction;exports.CurveReadingWrapperABI=e.abi$1;exports.CurveWrappedMainPoolABI=e.abi;exports.DATA_SERVER_CONFIG=e.DATA_SERVER_CONFIG;exports.DATA_SERVER_PORT=e.DATA_SERVER_PORT;exports.DATA_SERVER_URL_LOCAL=e.DATA_SERVER_URL_LOCAL;exports.DATA_SERVER_URL_PRODUCTION=e.DATA_SERVER_URL_PRODUCTION;exports.DEPLOYMENT_MODE=e.DEPLOYMENT_MODE;exports.ERC20ABI=e.abi$6;exports.EncryptionKeyPairDefaultValue=e.EncryptionKeyPairDefaultValue;exports.ErrorCategory=e.ErrorCategory;exports.EthereumNetworkType=e.EthereumNetworkType;exports.EventType=e.EventType;exports.ExternalActionId=e.ExternalActionId;exports.FeeOverTransactionValueError=e.FeeOverTransactionValueError;exports.GalxeABI=e.abi$17;exports.HINKAL_EXTERNAL_ACTION_FEE=e.HINKAL_EXTERNAL_ACTION_FEE;exports.HINKAL_UNIVERSAL_FEE=e.HINKAL_UNIVERSAL_FEE;exports.Hinkal=e.Hinkal;exports.HinkalStakeMode=e.HinkalStakeMode;exports.IMAGE_PATHS=e.IMAGE_PATHS;exports.INTERACTION=e.INTERACTION;exports.IntegrationProvider=e.IntegrationProvider;exports.KycVerificationResult=e.KycVerificationResult;exports.KycVerificationStatus=e.KycVerificationStatus;exports.LP_TIER=e.LP_TIER;exports.LidoAction=e.LidoAction;exports.LidoVariant=e.LidoVariant;exports.MONTHS=e.MONTHS;exports.MerkleTree=e.MerkleTree;exports.MerkleTreeIncompleteError=e.MerkleTreeIncompleteError;exports.MultiThreadedUtxoUtils=e.MultiThreadedUtxoUtils;exports.NETWORKS=e.NETWORKS;exports.PLAYGROUND_RELAYER_URLS=e.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=e.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_URL=e.PLAYGROUND_URL;exports.Passports=e.Passports;exports.PaymentStatus=e.PaymentStatus;exports.PendleAction=e.PendleAction;exports.PendleAssetType=e.PendleAssetType;exports.PendleChains=e.PendleChains;exports.PendleDashboardTabs=e.PendleDashboardTabs;exports.PendleEarnTabs=e.PendleEarnTabs;exports.PendleLPAction=e.PendleLPAction;exports.PendleMarketTransactionTypes=e.PendleMarketTransactionTypes;exports.PendlePoolManualTabs=e.PendlePoolManualTabs;exports.PendlePoolTabs=e.PendlePoolTabs;exports.PendlePoolZapTabs=e.PendlePoolZapTabs;exports.PendleSwapType=e.PendleSwapType;exports.PendleTabs=e.PendleTabs;exports.PendleTradeGeneralTabs=e.PendleTradeGeneralTabs;exports.PendleTradeTabs=e.PendleTradeTabs;exports.PointType=e.PointType;exports.RELAYER_CONFIG=e.RELAYER_CONFIG;exports.RELAYER_URLS=e.RELAYER_URLS;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=e.REWARD_RECEIVABLE_TOKEN_SYMBOLS;exports.RafflePrizePoints=e.RafflePrizePoints;exports.RafflePrizeType=e.RafflePrizeType;exports.RewardPage=e.RewardPage;exports.RewardsHistoryDistribution=e.RewardsHistoryDistribution;exports.RewardsHistoryEligibility=e.RewardsHistoryEligibility;exports.RewardsHistorySnapshots=e.RewardsHistorySnapshots;exports.RewardsHistoryStatuses=e.RewardsHistoryStatuses;exports.RewardsPageTabs=e.RewardsPageTabs;exports.SERVER_URLS=e.SERVER_URLS;exports.STAGING_RELAYER_URLS=e.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=e.STAGING_SERVER_URLS;exports.STAGING_URL=e.STAGING_URL;exports.SlippageType=e.SlippageType;exports.StakeProvider=e.StakeProvider;exports.StatType=e.StatType;exports.SupportedPassports=e.SupportedPassports;exports.TIER_LEVEL=e.TIER_LEVEL;exports.Timeline=e.Timeline;exports.TokenChecker=e.TokenChecker;exports.TokenPriceFetcher=e.TokenPriceFetcher;exports.TransactionType=e.TransactionType;exports.TransactionsManager=e.TransactionsManager;exports.USDCABI=e.abi$7;exports.USDR3CRVABI=e.abi$10;exports.USDRABI=e.abi$9;exports.USDTABI=e.abi$11;exports.UpperTabPossibleValues=e.UpperTabPossibleValues;exports.UserFriendlyErrorCodes=e.UserFriendlyErrorCodes;exports.UserKeys=e.UserKeys;exports.Utxo=e.Utxo;exports.VERIFICATION_TYPE=e.VERIFICATION_TYPE;exports.ValueCache=e.ValueCache;exports.VerificationTypes=e.VerificationTypes;exports.VolatileAction=e.VolatileAction;exports.VolatileHelper=e.VolatileHelper;exports.WETHABI=e.abi$12;exports.abiDecodeUtxo=e.abiDecodeUtxo;exports.absBigInt=e.absBigInt;exports.addPaddingToUtxos=e.addPaddingToUtxos;exports.aipriseBaseOnboardingProductionUrl=e.aipriseBaseOnboardingProductionUrl;exports.aipriseBaseOnboardingSandboxUrl=e.aipriseBaseOnboardingSandboxUrl;exports.arbMainnetCrvCvxRegistry=e.arbMainnetCrvCvxRegistry;exports.arbMainnetData=e.arbMainnetData;exports.arbMainnetRegistry=e.networkRegistry$9;exports.arbMainnetRegistryFixed=e.networkRegistry$1;exports.arbPendleRegistry=e.arbPendleRegistry;exports.avalancheCrvCvxRegistry=e.avalancheCrvCvxRegistry;exports.avalancheData=e.avalancheData;exports.avalancheRegistry=e.networkRegistry$12;exports.avalancheRegistryFixed=e.networkRegistry$4;exports.axelar1Data=e.axelar1Data;exports.axelar2Data=e.axelar2Data;exports.babyJubInstance=e.babyJubInstance;exports.balanceChangedHandler=e.balanceChangedHandler;exports.baseCrvCvxRegistry=e.baseCrvCvxRegistry;exports.baseData=e.baseData;exports.baseRegistry=e.networkRegistry$14;exports.baseRegistryFixed=e.networkRegistry$6;exports.beefyChainIds=e.beefyChainIds;exports.beepsToPercentage=e.beepsToPercentage;exports.bigintApplySugar=e.bigintApplySugar;exports.bigintMax=e.bigintMax;exports.blastData=e.blastData;exports.blastRegistry=e.networkRegistry$15;exports.blastRegistryFixed=e.networkRegistry$7;exports.blockReorgDepth=e.blockReorgDepth;exports.bnbMainnetData=e.bnbMainnetData;exports.bnbMainnetRegistry=e.networkRegistry$10;exports.bnbMainnetRegistryFixed=e.networkRegistry$2;exports.bnbPendleRegistry=e.bnbPendleRegistry;exports.boostAmounts=e.boostAmounts;exports.browserSupported=e.browserSupported;exports.buildInNullifiers=e.buildInNullifiers;exports.buildOutCommitments=e.buildOutCommitments;exports.calcAccessTokenSiblingsAndSides=e.calcAccessTokenSiblingsAndSides;exports.calcAmountChanges=e.calcAmountChanges;exports.calcCommitmentsSiblingAndSides=e.calcCommitmentsSiblingAndSides;exports.calcEncryptedOutputs=e.calcEncryptedOutputs;exports.calcPublicSignalCount=e.calcPublicSignalCount;exports.calcStealthAddressStructure=e.calcStealthAddressStructure;exports.calculateAmountUsingBeeps=e.calculateAmountUsingBeeps;exports.calculateDollarValue=e.calculateDollarValue;exports.calculateStakeNullifier=e.calculateStakeNullifier;exports.calculateSum=e.calculateSum;exports.callOneInchAPI=e.callOneInchAPI;exports.callRelayerTransactAPI=e.callRelayerTransactAPI;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.caseInsensitiveEqual=e.caseInsensitiveEqual;exports.chainIds=e.chainIds;exports.chainIdsByType=e.chainIdsByType;exports.checkErrorForSnapshotRestore=e.checkErrorForSnapshotRestore;exports.checkHinkalAccessToken=e.checkHinkalAccessToken;exports.checkRisk=e.checkRisk;exports.checkUtxoSignature=e.checkUtxoSignature;exports.coingeckoPriceUrl=e.coingeckoPriceUrl;exports.coingeckoPriceUrl2=e.coingeckoPriceUrl2;exports.coingeckoRegistry=e.coingeckoRegistry;exports.coingeckoTokenListUrl=e.coingeckoTokenListUrl;exports.constructZkProof=e.constructZkProof;exports.contractMetadataMapping=e.contractMetadataMapping;exports.convertIntegrationProviderToExternalActionId=e.convertIntegrationProviderToExternalActionId;exports.createCallDataHash=e.createCallDataHash;exports.createProvider=e.createProvider;exports.createStakeCommitment=e.createStakeCommitment;exports.crossChainAccessTokenNetworks=e.crossChainAccessTokenNetworks;exports.crvSymbol=e.crvSymbol;exports.curveNetworkNames=e.curveNetworkNames;exports.curvePools=e.curvePools;exports.curveWithdrawGasTokenAddress=e.curveWithdrawGasTokenAddress;exports.curveZeroAddress=e.curveZeroAddress;exports.customTokenRegistry=e.customTokenRegistry;exports.cvxSymbol=e.cvxSymbol;exports.daiABI=e.abi$8;exports.dataBeefyApiConfig=e.dataBeefyApiConfig;exports.dayInMilliseconds=e.dayInMilliseconds;exports.decodeMetadata=e.decodeMetadata;exports.decodeTxInput=e.decodeTxInput;exports.decodeTxLogs=e.decodeTxLogs;exports.decodeUtxo=e.decodeUtxo;exports.decodeUtxoConstructorArgs=e.decodeUtxoConstructorArgs;exports.decryptStake=e.decryptStake;exports.decryptUtxo=e.decryptUtxo;exports.decryptUtxoConstructorArgs=e.decryptUtxoConstructorArgs;exports.defaultHookData=e.defaultHookData;exports.defaultHookDataArray=e.defaultHookDataArray;exports.defaultStealthAddressStructure=e.defaultStealthAddressStructure;exports.deploymentMode=e.deploymentMode;exports.deserializeCircomData=e.deserializeCircomData;exports.deserializeDecodedTxs=e.deserializeDecodedTxs;exports.determinePendleSwapType=e.determinePendleSwapType;exports.determinePendleSwapTypeApiRoute=e.determinePendleSwapTypeApiRoute;exports.divideMonthOnIntervals=e.divideMonthOnIntervals;exports.emptyDecodedTx=e.emptyDecodedTx;exports.emptyStealthAddressStructure=e.emptyStealthAddressStructure;exports.emptyUserPointsBreakdown=e.emptyUserPointsBreakdown;exports.emptyUserPointsResponse=e.emptyUserPointsResponse;exports.encodeHStakeMetadata=e.encodeHStakeMetadata;exports.encryptStake=e.encryptStake;exports.encryptUtxo=e.encryptUtxo;exports.erc20TokenFromPendleAsset=e.erc20TokenFromPendleAsset;exports.ethBeefyRegistry=e.ethBeefyRegistry;exports.ethCrvCvxRegistry=e.ethCrvCvxRegistry;exports.ethMainnetData=e.ethMainnetData;exports.ethMainnetRegistry=e.networkRegistry$8;exports.ethMainnetRegistryFixed=e.networkRegistry;exports.ethPendleRegistry=e.ethPendleRegistry;exports.ethSymbol=e.ethSymbol;exports.ethToWei=e.ethToWei;exports.ethVolatileAddress=e.ethVolatileAddress;exports.externalActionToTransactionType=e.externalActionToTransactionType;exports.extractMessage=e.extractMessage;exports.factoryABI=e.abi$3;exports.findSyAddress=e.findSyAddress;exports.fixDecimalsAmount=e.fixDecimalsAmount;exports.generateZkProof=e.generateZkProof;exports.getActionFromMetadata=e.getActionFromMetadata;exports.getAmountAfterRelayAndFlatFees=e.getAmountAfterRelayAndFlatFees;exports.getAmountAfterRelayAndFlatFeesAndSlippage=e.getAmountAfterRelayAndFlatFeesAndSlippage;exports.getAmountAfterRelayFee=e.getAmountAfterRelayFee;exports.getAmountAfterSlippage=e.getAmountAfterSlippage;exports.getAmountInToken=e.getAmountInToken;exports.getAmountInWei=e.getAmountInWei;exports.getAmountInWeiOrZero=e.getAmountInWeiOrZero;exports.getAmountWithPrecision=e.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=e.getAmountWithPrecisionOrZero;exports.getAmountWithoutFee=e.getAmountWithoutFee;exports.getAssetTypeFromPendleMarket=e.getAssetTypeFromPendleMarket;exports.getAxelarGasEstimate=e.getAxelarGasEstimate;exports.getAxelarMigrationInfo=e.getAxelarMigrationInfo;exports.getBeefyHistoricalChartData=e.getBeefyHistoricalChartData;exports.getBeefyRegistryWithChainId=e.getBeefyRegistryWithChainId;exports.getCRV=e.getCRV;exports.getCVX=e.getCVX;exports.getCalcTokenAmountWithDynamicArray=e.getCalcTokenAmountWithDynamicArray;exports.getCircomSign=e.getCircomSign;exports.getCoingeckoIdForNativeTokens=e.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=e.getCoingeckoPlatform;exports.getCoingeckoPrice=e.getCoingeckoPrice;exports.getCoingeckoPrice2=e.getCoingeckoPrice2;exports.getCoingeckoPrices=e.getCoingeckoPrices;exports.getCoingeckoTokenList=e.getCoingeckoTokenList;exports.getCrvCvxWithChainId=e.getCrvCvxWithChainId;exports.getCurrentWeek=e.getCurrentWeek;exports.getCurvePools=e.getCurvePools;exports.getCurvePoolsforPriceFetching=e.getCurvePoolsforPriceFetching;exports.getDataServerURL=e.getDataServerURL;exports.getDateFromWeek=e.getDateFromWeek;exports.getDepositEvents=e.getDepositEvents;exports.getERC20Registry=e.getERC20Registry;exports.getERC20Token=e.getERC20Token;exports.getERC20TokenBySymbol=e.getERC20TokenBySymbol;exports.getErrorMessage=e.getErrorMessage;exports.getExtendedPoolInfo=e.getExtendedPoolInfo;exports.getExternalActionIdFromNumber=e.getExternalActionIdFromNumber;exports.getExternalActionIdHash=e.getExternalActionIdHash;exports.getExternalMetadataHash=e.getExternalMetadataHash;exports.getFixedRegistry=e.getFixedRegistry;exports.getFlatFees=e.getFlatFees;exports.getGasEstimates=e.getGasEstimates;exports.getGasStationUrl=e.getGasStationUrl;exports.getGenericFeeOverTransactionValueErrorMessage=e.getGenericFeeOverTransactionValueErrorMessage;exports.getHToken=e.getHToken;exports.getHinkalCache=e.getHinkalCache;exports.getHinkalFeeRateInBeeps=e.getHinkalFeeRateInBeeps;exports.getHinkalParameters=e.getHinkalParameters;exports.getIdleRelay=e.getIdleRelay;exports.getInputUtxoAndBalance=e.getInputUtxoAndBalance;exports.getInputUtxosFromEncryptedOutputs=e.getInputUtxosFromEncryptedOutputs;exports.getInteractionFromAction=e.getInteractionFromAction;exports.getNetworkObject=e.getNetworkObject;exports.getNetworkType=e.getNetworkType;exports.getNextDay=e.getNextDay;exports.getNonLocalhostChainId=e.getNonLocalhostChainId;exports.getOdosPrice=e.getOdosPrice;exports.getOneInchPrice=e.getOneInchPrice;exports.getPendleRegistryWithChainId=e.getPendleRegistryWithChainId;exports.getRelayFee=e.getRelayFee;exports.getRelayerURL=e.getRelayerURL;exports.getSequence=e.getSequence;exports.getServerURL=e.getServerURL;exports.getShieldedBalance=e.getShieldedBalance;exports.getSlippageFee=e.getSlippageFee;exports.getTokenIndexForPendleFlatFee=e.getTokenIndexForPendleFlatFee;exports.getTokenPrice=e.getTokenPrice;exports.getTokenPriceEth=e.getTokenPriceEth;exports.getTokenPrices=e.getTokenPrices;exports.getUniswapFee=e.getUniswapFee;exports.getUniswapPrice=e.getUniswapPrice;exports.getUniswapPriceHelper=e.getUniswapPriceHelper;exports.getValueFirstNDigit=e.getValueFirstNDigit;exports.getWeekTimestamps=e.getWeekTimestamps;exports.getYtTokensWithChainId=e.getYtTokensWithChainId;exports.hasCertificationPeriodExpired=e.hasCertificationPeriodExpired;exports.hinkalActionBeefy=e.hinkalActionBeefy;exports.hinkalActionConvex=e.hinkalActionConvex;exports.hinkalActionCurve=e.hinkalActionCurve;exports.hinkalActionPendle=e.hinkalActionPendle;exports.hinkalDeposit=e.hinkalDeposit;exports.hinkalDepositForOther=e.hinkalDepositForOther;exports.hinkalSwap=e.hinkalSwap;exports.hinkalTransfer=e.hinkalTransfer;exports.hinkalWithdraw=e.hinkalWithdraw;exports.hourInMilliseconds=e.hourInMilliseconds;exports.isBeefyDeposit=e.isBeefyDeposit;exports.isCircomNegative=e.isCircomNegative;exports.isDevelopment=e.isDevelopment;exports.isLocalNetwork=e.isLocalNetwork;exports.isNicknameValid=e.isNicknameValid;exports.isNotProduction=e.isNotProduction;exports.isNullOrEmpty=e.isNullOrEmpty;exports.isOptimismBedrockLike=e.isOptimismBedrockLike;exports.isOptimismEcotoneLike=e.isOptimismEcotoneLike;exports.isOptimismLike=e.isOptimismLike;exports.isPlayground=e.isPlayground;exports.isStaging=e.isStaging;exports.isWeekCurrent=e.isWeekCurrent;exports.isYtToken=e.isYtToken;exports.jubHolder=e.jubHolder;exports.lidoStEthAbi=e.lidoStEthAbi;exports.lidoStEthContractAddress=e.lidoStEthContractAddress;exports.lidoStMaticAbi=e.lidoStMaticAbi;exports.lidoStMaticAddress=e.lidoStMaticAddress;exports.lidoStakeManagerAbi=e.lidoStakeManagerAbi;exports.lidoStakeManagerAddress=e.lidoStakeManagerAddress;exports.lidoWithdrawalQueueERC721Abi=e.lidoWithdrawalQueueERC721Abi;exports.lidoWithdrawalQueueERC721Address=e.lidoWithdrawalQueueERC721Address;exports.lidoWstEthAbi=e.lidoWstEthAbi;exports.lidoWstEthContractAddress=e.lidoWstEthContractAddress;exports.loadTxsCache=e.loadTxsCache;exports.localhostData=e.localhostData;exports.localhostNetwork=e.localhostNetwork;exports.localhostRegistry=e.networkRegistry$16;exports.logError=e.logError;exports.lowerCaseIncludes=e.lowerCaseIncludes;exports.lowerCaseStartsWith=e.lowerCaseStartsWith;exports.lpLink=e.lpLink;exports.lpProgramStartWeek=e.lpProgramStartWeek;exports.lpTokens=e.lpTokens;exports.lpTokensToBasePool=e.lpTokensToBasePool;exports.maticSymbol=e.maticSymbol;exports.minBigInt=e.minBigInt;exports.mintAccessToken=e.mintAccessToken;exports.mintTokenCrossChain=e.mintTokenCrossChain;exports.minuteInMilliseconds=e.minuteInMilliseconds;exports.multiThreadedUtxoUtils=e.multiThreadedUtxoUtils;exports.networkRegistry=e.networkRegistry$17;exports.oneInchZeroAddress=e.oneInchZeroAddress;exports.openDefaultPassportWindow=e.openDefaultPassportWindow;exports.openPassportWindow=e.openPassportWindow;exports.optimismCrvCvxRegistry=e.optimismCrvCvxRegistry;exports.optimismData=e.optimismData;exports.optimismGasPriceOracleAbi=e.OptimismGasPriceOracle;exports.optimismPendleRegistry=e.optimismPendleRegistry;exports.optimismRegistry=e.networkRegistry$13;exports.optimismRegistryFixed=e.networkRegistry$5;exports.outputUtxoProcessing=e.outputUtxoProcessing;exports.ownerPublicKey=e.ownerPublicKey;exports.parseWeek=e.parseWeek;exports.patchRegistry=e.patchRegistry;exports.permitSignatureValidFor=e.permitSignatureValidFor;exports.poLidoNftAbi=e.poLidoNftAbi;exports.poLidoNftAddress=e.poLidoNftAddress;exports.pointsLink=e.pointsLink;exports.polygonCrvCvxRegistry=e.polygonCrvCvxRegistry;exports.polygonData=e.polygonData;exports.polygonRegistry=e.networkRegistry$11;exports.polygonRegistryFixed=e.networkRegistry$3;exports.poseidonFunction=e.poseidonFunction;exports.poseidonHash=e.poseidonHash;exports.poseidonHolder=e.poseidonHolder;exports.preProcessing=e.preProcessing;exports.proCoingeckoUrl=e.proCoingeckoUrl;exports.proHeader=e.proHeader;exports.processAmountChanges=e.processAmountChanges;exports.processGasEstimates=e.processGasEstimates;exports.quoterV2ABI=e.abi$2;exports.raffleProgramStartWeek=e.raffleProgramStartWeek;exports.randomBigInt=e.randomBigInt;exports.referralLink=e.referralLink;exports.reloadPage=e.reloadPage;exports.requireEnv=e.requireEnv;exports.resetCache=e.resetCache;exports.resetMerkleTrees=e.resetMerkleTrees;exports.resolveSync=e.resolveSync;exports.rethrowKnownGasErrorIfPossible=e.rethrowKnownGasErrorIfPossible;exports.retrieveEvents=e.retrieveEvents;exports.runContractFunction=e.runContractFunction;exports.sanctionsListABI=e.abi$14;exports.saveTxsCache=e.saveTxsCache;exports.searchPoolAndFee=e.searchPoolAndFee;exports.secondInMilliseconds=e.secondInMilliseconds;exports.serializeCircomData=e.serializeCircomData;exports.serializeDecodedTxs=e.serializeDecodedTxs;exports.setHinkalCache=e.setHinkalCache;exports.signaturePhrase=e.signaturePhrase;exports.slippageLevels=e.slippageLevels;exports.stMaticSymbol=e.stMaticSymbol;exports.threePoolSymbol=e.threePoolSymbol;exports.toBigInt=e.toBigInt;exports.toBigIntOrUndefined=e.toBigIntOrUndefined;exports.toBigIntWithDecimals=e.toBigIntWithDecimals;exports.toCommaSeparatedNumberString=e.toCommaSeparatedNumberString;exports.toDateString=e.toDateString;exports.toInt=e.toInt;exports.toNumberOrUndefined=e.toNumberOrUndefined;exports.toTitleCase=e.toTitleCase;exports.transactionErrorCodes=e.transactionErrorCodes;exports.transactionProverABI=e.abi$15;exports.trimLeadingZeros=e.trimLeadingZeros;exports.truncateTo18DecimalPlaces=e.truncateTo18DecimalPlaces;exports.uniswapV2PoolData=e.uniswapV2PoolData;exports.uniswapV3FactoryData=e.uniswapV3FactoryData;exports.uniswapV3PoolData=e.uniswapV3PoolData;exports.uniswapV3QuoterData=e.uniswapV3QuoterData;exports.urlForBeefyVaultTokens=e.urlForBeefyVaultTokens;exports.urlForBeefyVaultTotalInUSD=e.urlForBeefyVaultTotalInUSD;exports.urlForRegularTokenPricesInBeefy=e.urlForRegularTokenPricesInBeefy;exports.waitLittle=e.waitLittle;exports.walletSupported=e.walletSupported;exports.weekInMilliseconds=e.weekInMilliseconds;exports.wstEthSymbol=e.wstEthSymbol;exports.zeroAddress=e.zeroAddress;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-DhzLG43o.cjs"),g=require("./workerProxy-C2KnRvuH.cjs"),l=new g.WorkerProxy,d=async({data:e})=>{const{utxos:o,nullifiers:s}=e,n=o.filter(t=>{const a=new r.Utxo(t);return!s.has(a.getNullifier())});l.postMessageToMainThread(n)},h=async({data:e})=>{const o=new r.UserKeys(e.signature),s=o.getShieldedPrivateKey(),n=e.encryptedOutputs.map(t=>{try{return t.isPositive?r.decryptUtxoConstructorArgs(Buffer.from(t.value.slice(2),"hex"),o):r.decodeUtxoConstructorArgs(t.value,s)}catch{return}}).filter(t=>t!==void 0);l.postMessageToMainThread(n)},y=async({data:e})=>{const o=new r.UserKeys(e.signature),s=[],{encryptedOutputs:n}=e;let{lastOutput:t}=e;for(let a=0;a<n.length;a+=1){const i=n[a];if(t=i.value,i.isPositive)try{const c=r.decryptUtxo(Buffer.from(t.slice(2),"hex"),o);if(!c.erc20TokenAddress||!c.amount||!c.stealthAddress)throw Error("bruh");s.map(u=>u.value).includes(i.value)||s.push(i)}catch{r.logError("Utxo not decrypted")}else try{r.checkUtxoSignature(t,o.getShieldedPrivateKey())&&(s.map(u=>u.value).includes(i.value)||s.push(i))}catch{r.logError("Utxo not decoded")}}l.postMessageToMainThread({additionalEncryptedOutputs:s,lastOutput:t})},p=async e=>{await r.preProcessing();const{type:o}=e.payload;switch(o){case r.UtxoWorkerActionType.BATCH_FILTER_UTXOS_WITH_NULLIFIER:d(e.payload);return;case r.UtxoWorkerActionType.BUILD_UTXOS:h(e.payload);return;case r.UtxoWorkerActionType.DECIPHER_OUTPUTS:y(e.payload);return;default:throw Error(`Unknown worker message type ${o}`)}};l.attachWorkerSideOnMessage(p);exports.default=l;exports.handleBuildUtxosMessage=h;exports.handleDecipherMessage=y;exports.handleFilterUtxosWithNullifier=d;exports.onWorkerMessage=p;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { W as r } from "./index-DT99VnQG.js";
|
|
2
|
-
const e = "" + new URL("assets/zkProofWorkerLauncher-DGaNFkI2.js", import.meta.url).href, o = "" + new URL("assets/snarkjsWorkerLauncher-CaBCnle3.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href, a = {
|
|
3
|
-
[r.ZKProof]: e,
|
|
4
|
-
[r.SnarkJS]: o,
|
|
5
|
-
[r.UTXO]: s
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
a as workerViteURL
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DhzLG43o.cjs"),r=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/assets/zkProofWorkerLauncher-DGaNFkI2.js").href:new URL("assets/zkProofWorkerLauncher-DGaNFkI2.js",document.currentScript&&document.currentScript.src||document.baseURI).href),t=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/assets/snarkjsWorkerLauncher-CaBCnle3.js").href:new URL("assets/snarkjsWorkerLauncher-CaBCnle3.js",document.currentScript&&document.currentScript.src||document.baseURI).href),n=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/assets/utxoWorkerLauncher-TRT6Cdzd.js").href:new URL("assets/utxoWorkerLauncher-TRT6Cdzd.js",document.currentScript&&document.currentScript.src||document.baseURI).href),o={[e.WorkerVariant.ZKProof]:r,[e.WorkerVariant.SnarkJS]:t,[e.WorkerVariant.UTXO]:n};exports.workerViteURL=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DhzLG43o.cjs"),k=require("./workerProxy-C2KnRvuH.cjs"),d=new k.WorkerProxy,p=n=>{const{inputUtxosSerialized:i,merkleTreeSerialized:t}=n.data,S=t.tree,r=new Map(Object.entries(S).map(([c,l])=>[BigInt(c),BigInt(l)])),o=e.MerkleTree.createWithData(r,BigInt(t.index),BigInt(t.count),e.poseidonFunction,25n,0n),s=i.map(c=>c.map(l=>new e.Utxo(l))),{inCommitmentSiblings:a,inCommitmentSiblingSides:m}=e.calcCommitmentsSiblingAndSides(s,o);d.postMessageToMainThread({inCommitmentSiblings:a,inCommitmentSiblingSides:m})},g=n=>{const{userSignature:i,merkleTreeAccessTokenSerialized:t}=n.data,S=new e.UserKeys(i),r=t.tree,o=new Map(Object.entries(r).map(([c,l])=>[BigInt(c),BigInt(l)])),s=e.MerkleTree.createWithData(o,BigInt(t.index),BigInt(t.count),e.poseidonFunction,25n,0n),{accessTokenSiblings:a,accessTokenSiblingSides:m}=e.calcAccessTokenSiblingsAndSides(S,s);d.postMessageToMainThread({accessTokenSiblings:a,accessTokenSiblingSides:m})},T=n=>{const{inputUtxosSerialized:i,onChainCreation:t}=n.data,r=i.map(o=>o.map(s=>new e.Utxo(s))).map((o,s)=>o.map(a=>t[s]?"0":a.getNullifier()));d.postMessageToMainThread(r)},u=async n=>{await e.preProcessing();const{type:i}=n.payload;switch(i){case e.ZKProofWorkerActionType.CALC_COMMITMENTS_SIBLING_AND_SIDES:p(n.payload);return;case e.ZKProofWorkerActionType.CALC_ACCESS_TOKEN_SIBLING_AND_SIDES:g(n.payload);return;case e.ZKProofWorkerActionType.BUILD_IN_NULLIFIERS:T(n.payload);return;default:throw Error(`Unknown worker message type ${i}`)}};d.attachWorkerSideOnMessage(u);exports.default=d;exports.handleBuildInNullifiers=T;exports.handleCalcAccessTokenSiblingAndSides=g;exports.handleCalcCommitmentsSiblingAndSides=p;exports.onWorkerMessage=u;
|
|
File without changes
|
|
File without changes
|