@hinkal/common 0.0.100 → 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.
@@ -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-D2byFHvm.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-BueCVOdX.mjs"
288420
+ "./zkProofWorkerLogic-CtgrDfdp.mjs"
288428
288421
  ) : t === WorkerVariant.UTXO && (c = await import(
288429
288422
  /* @vite-ignore */
288430
- "./utxoWorkerLogic-DPmsLZ2P.mjs"
288423
+ "./utxoWorkerLogic-BFMMdUgE.mjs"
288431
288424
  )), c.default;
288432
288425
  }
288433
288426
  const n = await WorkerFactory.resolveWorkerURL(t);
@@ -290222,6 +290215,228 @@ const resetMerkleTrees = async (a) => {
290222
290215
  a.nullifierSnapshotService.init(),
290223
290216
  a.accessTokenSnapshotService.init()
290224
290217
  ]), a.merkleTreeHinkal = a.commitmentsSnapshotService.merkleTree, a.merkleTreeAccessToken = a.accessTokenSnapshotService.merkleTree, a.nullifiers = a.nullifierSnapshotService.nullifiers, a.encryptedOutputs = a.commitmentsSnapshotService.encryptedOutputs, a.commitmentsSnapshotService.onNewEvent = balanceChangedHandler, a.nullifierSnapshotService.onNewEvent = balanceChangedHandler;
290218
+ }, openDefaultPassportWindow = (a, t, n = 650, c = 400) => {
290219
+ const l = window.top.outerHeight / 2 + window.top.screenY - n / 2, h = window.top.outerWidth / 2 + window.top.screenX - c / 2;
290220
+ window.open(
290221
+ a,
290222
+ t,
290223
+ `toolbar=no, menubar=no, width=${c}, height=${n}, top=${l}, left=${h}`
290224
+ );
290225
+ }, openPassportWindow = (a, t, n = 650, c = 400) => {
290226
+ const { onboardURL: l, shortName: h, customHandleKYC: A } = SupportedPassports[a];
290227
+ A ? A(t, h, l) : openDefaultPassportWindow(l, h, n, c);
290228
+ }, getHinkalZkMeProvider = (a) => ({
290229
+ async getAccessToken() {
290230
+ const n = a.getCurrentChainId();
290231
+ return API.getZkMeAccessToken(n);
290232
+ },
290233
+ async getUserAccounts() {
290234
+ return [await a.getEthereumAddress()];
290235
+ },
290236
+ async delegateTransaction(n) {
290237
+ const c = await a.getProviderAdapter(), l = {
290238
+ ...n,
290239
+ chainId: Number(n.chainId),
290240
+ type: n.type ? n.type : void 0,
290241
+ maxPriorityFeePerGas: n.maxPriorityFeePerGas ? n.maxPriorityFeePerGas : void 0,
290242
+ maxFeePerGas: n.maxFeePerGas ? n.maxFeePerGas : void 0
290243
+ };
290244
+ return (await c.sendTransaction(l)).hash;
290245
+ }
290246
+ });
290247
+ async function messageListener(a, t) {
290248
+ if (a.origin === "https://widget.zk.me") {
290249
+ if (a.data.method === "getUserAccounts") {
290250
+ const c = await t.getUserAccounts();
290251
+ a.source?.postMessage(
290252
+ {
290253
+ id: a.data.id,
290254
+ message: "ok",
290255
+ data: c
290256
+ },
290257
+ { targetOrigin: a.origin }
290258
+ );
290259
+ }
290260
+ if (a.data.method === "getAccessToken") {
290261
+ const c = await t.getAccessToken();
290262
+ a.source?.postMessage(
290263
+ {
290264
+ id: a.data.id,
290265
+ message: "ok",
290266
+ data: c
290267
+ },
290268
+ { targetOrigin: a.origin }
290269
+ );
290270
+ }
290271
+ if (a.data.method === "delegateTransaction") {
290272
+ const c = a.data.params;
290273
+ if (t.delegateTransaction) {
290274
+ const l = await t.delegateTransaction(c);
290275
+ a.source?.postMessage(
290276
+ {
290277
+ id: a.data.id,
290278
+ message: "ok",
290279
+ data: l
290280
+ },
290281
+ { targetOrigin: a.origin }
290282
+ );
290283
+ }
290284
+ }
290285
+ }
290286
+ }
290287
+ const zkMeKycHandler = async (a, t, n) => {
290288
+ const c = getHinkalZkMeProvider(a), l = await c.getAccessToken(), { zkChainId: h, merchId: A } = SupportedPassports[Passports.ZkMePassport].params;
290289
+ a.getCurrentChainId() !== h && await a.switchNetwork(networkRegistry[h]);
290290
+ const O = hexlify(h);
290291
+ window.addEventListener("message", (G) => messageListener(G, c));
290292
+ const Q = `${n}?mchNo=${A}&name=HinkalProtocol&chainId=${O}&accessToken=${l}`;
290293
+ openDefaultPassportWindow(Q, t, 700, 510);
290294
+ };
290295
+ let getRandomValues$1;
290296
+ const rnds8$1 = new Uint8Array(16);
290297
+ function rng$1() {
290298
+ if (!getRandomValues$1 && (getRandomValues$1 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !getRandomValues$1))
290299
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
290300
+ return getRandomValues$1(rnds8$1);
290301
+ }
290302
+ const byteToHex$1 = [];
290303
+ for (let a = 0; a < 256; ++a)
290304
+ byteToHex$1.push((a + 256).toString(16).slice(1));
290305
+ function unsafeStringify(a, t = 0) {
290306
+ return byteToHex$1[a[t + 0]] + byteToHex$1[a[t + 1]] + byteToHex$1[a[t + 2]] + byteToHex$1[a[t + 3]] + "-" + byteToHex$1[a[t + 4]] + byteToHex$1[a[t + 5]] + "-" + byteToHex$1[a[t + 6]] + byteToHex$1[a[t + 7]] + "-" + byteToHex$1[a[t + 8]] + byteToHex$1[a[t + 9]] + "-" + byteToHex$1[a[t + 10]] + byteToHex$1[a[t + 11]] + byteToHex$1[a[t + 12]] + byteToHex$1[a[t + 13]] + byteToHex$1[a[t + 14]] + byteToHex$1[a[t + 15]];
290307
+ }
290308
+ const randomUUID = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), native = {
290309
+ randomUUID
290310
+ };
290311
+ function v4$1(a, t, n) {
290312
+ if (native.randomUUID && !t && !a)
290313
+ return native.randomUUID();
290314
+ a = a || {};
290315
+ const c = a.random || (a.rng || rng$1)();
290316
+ if (c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, t) {
290317
+ n = n || 0;
290318
+ for (let l = 0; l < 16; ++l)
290319
+ t[n + l] = c[l];
290320
+ return t;
290321
+ }
290322
+ return unsafeStringify(c);
290323
+ }
290324
+ const authentoKycHandler = async (a, t, n) => {
290325
+ try {
290326
+ const { domainName: c, type: l } = AUTHENTO, h = v4$1(), A = Date.now().toString(), T = { name: c }, O = {
290327
+ content: AUTHENTO.verifyMessageText,
290328
+ for: c,
290329
+ timestamp: A,
290330
+ nonce: h
290331
+ }, Q = await a.signTypedData(T, l, O), G = await a.getEthereumAddress(), ne = `${n}verify/${c}?address=${G}&ts=${A}&nonce=${h}&signature=${Q}&levelType=BASIC`;
290332
+ openDefaultPassportWindow(ne, t, 700, 510);
290333
+ } catch (c) {
290334
+ console.error("authentoHelper error: ", c);
290335
+ }
290336
+ }, aipriseBaseOnboardingProductionUrl = "https://onboard.aiprise.com", aipriseBaseOnboardingSandboxUrl = "https://onboard-sandbox.aiprise.com";
290337
+ var Passports = /* @__PURE__ */ ((a) => (a[a.AiPriseKyc = 0] = "AiPriseKyc", a[a.AiPriseKyb = 1] = "AiPriseKyb", a[a.BABPassport = 2] = "BABPassport", a[a.GalxePassport = 3] = "GalxePassport", a[a.ZkMePassport = 4] = "ZkMePassport", a[a.CoinbasePassport = 5] = "CoinbasePassport", a[a.AuthentoPassport = 6] = "AuthentoPassport", a[a.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", a))(Passports || {});
290338
+ const SupportedPassports = {
290339
+ 0: {
290340
+ id: 0,
290341
+ shortName: "AiPriseKyc",
290342
+ fullName: " AiPrice Kyc",
290343
+ apiURL: "",
290344
+ onboardURL: "",
290345
+ supportedChainIds: [],
290346
+ supportsAllChains: !0
290347
+ },
290348
+ 1: {
290349
+ id: 1,
290350
+ shortName: "AiPriseKyb",
290351
+ fullName: " AiPrice Kyb",
290352
+ apiURL: "",
290353
+ onboardURL: "",
290354
+ supportedChainIds: [],
290355
+ supportsAllChains: !0
290356
+ },
290357
+ 2: {
290358
+ id: 2,
290359
+ shortName: "Bab",
290360
+ fullName: "Bab Token",
290361
+ apiURL: "BabPassport",
290362
+ onboardURL: "https://www.binance.com/en/BABT",
290363
+ supportedChainIds: [chainIds.bnbMainnet]
290364
+ },
290365
+ 3: {
290366
+ id: 3,
290367
+ shortName: "Galxe",
290368
+ fullName: "Galxe Passport",
290369
+ apiURL: "GalxePassport",
290370
+ onboardURL: "https://galxe.com/passport",
290371
+ supportedChainIds: [chainIds.bnbMainnet]
290372
+ },
290373
+ // [Passports.QuadrataPassport]: {
290374
+ // id: Passports.QuadrataPassport,
290375
+ // shortName: 'Quadrata',
290376
+ // fullName: 'Quadrata Passport',
290377
+ // apiURL: 'QuadrataPassport',
290378
+ // onboardURL: 'https://quadrata.com/onboard',
290379
+ // supportedChainIds: [
290380
+ // chainIds.ethMainnet,
290381
+ // chainIds.arbMainnet,
290382
+ // chainIds.optimism,
290383
+ // chainIds.polygon,
290384
+ // chainIds.avalanche,
290385
+ // ],
290386
+ // },
290387
+ 4: {
290388
+ id: 4,
290389
+ shortName: "zkMe",
290390
+ fullName: "zkMe Passport",
290391
+ apiURL: "ZkMePassport",
290392
+ onboardURL: "https://widget.zk.me/",
290393
+ customHandleKYC: (a, t, n) => zkMeKycHandler(a, t, n),
290394
+ supportedChainIds: [chainIds.polygon],
290395
+ params: {
290396
+ merchId: "M2023090671844574053042402155408",
290397
+ zkChainId: chainIds.polygon
290398
+ }
290399
+ },
290400
+ 5: {
290401
+ id: 5,
290402
+ shortName: "coinbase",
290403
+ fullName: "coinbase Passport",
290404
+ apiURL: "coinbasePassport",
290405
+ onboardURL: "https://www.coinbase.com/onchain-verify",
290406
+ supportedChainIds: [],
290407
+ supportsAllChains: !0
290408
+ },
290409
+ 6: {
290410
+ id: 6,
290411
+ shortName: "Authento",
290412
+ fullName: "Authento Passport",
290413
+ apiURL: "AuthentoPassport",
290414
+ onboardURL: "https://app.authento.io/",
290415
+ customHandleKYC: (a, t, n) => authentoKycHandler(a, t, n),
290416
+ supportedChainIds: [],
290417
+ supportsAllChains: !0
290418
+ },
290419
+ 7: {
290420
+ id: 7,
290421
+ shortName: "Authento",
290422
+ fullName: "Authento Passport",
290423
+ apiURL: "AuthentoPassport",
290424
+ onboardURL: "https://app.authento.io/",
290425
+ customHandleKYC: (a, t, n) => authentoKycHandler(a, t, n),
290426
+ supportedChainIds: [],
290427
+ supportsAllChains: !0
290428
+ }
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 = {
290430
+ verifyMessageText: "Sign this message to prove your ownership of this address and proceed with the identity verification process.",
290431
+ domainName: "Hinkal",
290432
+ type: {
290433
+ Message: [
290434
+ { name: "content", type: "string" },
290435
+ { name: "for", type: "string" },
290436
+ { name: "timestamp", type: "string" },
290437
+ { name: "nonce", type: "string" }
290438
+ ]
290439
+ }
290225
290440
  }, monitor = (a, t) => axios$3.post(`${getServerURL(t)}${API_CONFIG.ROUTES.monitor}`, { address: a }), getExternalActionForLido = (a, t) => {
290226
290441
  if (a === LidoVariant.Ethereum)
290227
290442
  return t === LidoAction.Stake ? ExternalActionId.LidoETH : ExternalActionId.LidoETHNFT;
@@ -308917,6 +309132,9 @@ class Hinkal {
308917
309132
  async getBalances() {
308918
309133
  return getShieldedBalance(this);
308919
309134
  }
309135
+ getSupportedPassportLinks() {
309136
+ return supportedPassportLinks;
309137
+ }
308920
309138
  checkAccessToken() {
308921
309139
  return checkHinkalAccessToken(this);
308922
309140
  }
@@ -309360,16 +309578,6 @@ const emptyHinkalCache = {
309360
309578
  value: h + A
309361
309579
  };
309362
309580
  return await c.addTokenCrossChain(t, T, O);
309363
- }, openDefaultPassportWindow = (a, t, n = 650, c = 400) => {
309364
- const l = window.top.outerHeight / 2 + window.top.screenY - n / 2, h = window.top.outerWidth / 2 + window.top.screenX - c / 2;
309365
- window.open(
309366
- a,
309367
- t,
309368
- `toolbar=no, menubar=no, width=${c}, height=${n}, top=${l}, left=${h}`
309369
- );
309370
- }, openPassportWindow = (a, t, n = 650, c = 400) => {
309371
- const { onboardURL: l, shortName: h, customHandleKYC: A } = SupportedPassports[a];
309372
- A ? A(t, h, l) : openDefaultPassportWindow(l, h, n, c);
309373
309581
  }, getCRV = (a) => {
309374
309582
  switch (getNonLocalhostChainId(a)) {
309375
309583
  case chainIds.polygon:
@@ -317050,218 +317258,6 @@ const produceOp = (a, t, n, c, l, h) => {
317050
317258
  }, getHinkalParameters = (a) => {
317051
317259
  const { contractData: t } = networkRegistry[getNonLocalhostChainId(a)], n = JSON.stringify(t.hinkalABI), c = new Interface(n), l = c.getSighash("transact"), h = c.getSighash("transactWithExternalAction");
317052
317260
  return { hinkalInterface: c, transactMethodId: l, transactWithExternalActionMethodId: h, NewCommitment: "NewCommitment", NewCommitmentTopic: "0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d" };
317053
- }, getHinkalZkMeProvider = (a) => ({
317054
- async getAccessToken() {
317055
- const n = a.getCurrentChainId();
317056
- return API.getZkMeAccessToken(n);
317057
- },
317058
- async getUserAccounts() {
317059
- return [await a.getEthereumAddress()];
317060
- },
317061
- async delegateTransaction(n) {
317062
- const c = await a.getProviderAdapter(), l = {
317063
- ...n,
317064
- chainId: Number(n.chainId),
317065
- type: n.type ? n.type : void 0,
317066
- maxPriorityFeePerGas: n.maxPriorityFeePerGas ? n.maxPriorityFeePerGas : void 0,
317067
- maxFeePerGas: n.maxFeePerGas ? n.maxFeePerGas : void 0
317068
- };
317069
- return (await c.sendTransaction(l)).hash;
317070
- }
317071
- });
317072
- async function messageListener(a, t) {
317073
- if (a.origin === "https://widget.zk.me") {
317074
- if (a.data.method === "getUserAccounts") {
317075
- const c = await t.getUserAccounts();
317076
- a.source?.postMessage(
317077
- {
317078
- id: a.data.id,
317079
- message: "ok",
317080
- data: c
317081
- },
317082
- { targetOrigin: a.origin }
317083
- );
317084
- }
317085
- if (a.data.method === "getAccessToken") {
317086
- const c = await t.getAccessToken();
317087
- a.source?.postMessage(
317088
- {
317089
- id: a.data.id,
317090
- message: "ok",
317091
- data: c
317092
- },
317093
- { targetOrigin: a.origin }
317094
- );
317095
- }
317096
- if (a.data.method === "delegateTransaction") {
317097
- const c = a.data.params;
317098
- if (t.delegateTransaction) {
317099
- const l = await t.delegateTransaction(c);
317100
- a.source?.postMessage(
317101
- {
317102
- id: a.data.id,
317103
- message: "ok",
317104
- data: l
317105
- },
317106
- { targetOrigin: a.origin }
317107
- );
317108
- }
317109
- }
317110
- }
317111
- }
317112
- const zkMeKycHandler = async (a, t, n) => {
317113
- const c = getHinkalZkMeProvider(a), l = await c.getAccessToken(), { zkChainId: h, merchId: A } = SupportedPassports[Passports.ZkMePassport].params;
317114
- a.getCurrentChainId() !== h && await a.switchNetwork(networkRegistry[h]);
317115
- const O = hexlify(h);
317116
- window.addEventListener("message", (G) => messageListener(G, c));
317117
- const Q = `${n}?mchNo=${A}&name=HinkalProtocol&chainId=${O}&accessToken=${l}`;
317118
- openDefaultPassportWindow(Q, t, 700, 510);
317119
- };
317120
- let getRandomValues$1;
317121
- const rnds8$1 = new Uint8Array(16);
317122
- function rng$1() {
317123
- if (!getRandomValues$1 && (getRandomValues$1 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !getRandomValues$1))
317124
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
317125
- return getRandomValues$1(rnds8$1);
317126
- }
317127
- const byteToHex$1 = [];
317128
- for (let a = 0; a < 256; ++a)
317129
- byteToHex$1.push((a + 256).toString(16).slice(1));
317130
- function unsafeStringify(a, t = 0) {
317131
- return byteToHex$1[a[t + 0]] + byteToHex$1[a[t + 1]] + byteToHex$1[a[t + 2]] + byteToHex$1[a[t + 3]] + "-" + byteToHex$1[a[t + 4]] + byteToHex$1[a[t + 5]] + "-" + byteToHex$1[a[t + 6]] + byteToHex$1[a[t + 7]] + "-" + byteToHex$1[a[t + 8]] + byteToHex$1[a[t + 9]] + "-" + byteToHex$1[a[t + 10]] + byteToHex$1[a[t + 11]] + byteToHex$1[a[t + 12]] + byteToHex$1[a[t + 13]] + byteToHex$1[a[t + 14]] + byteToHex$1[a[t + 15]];
317132
- }
317133
- const randomUUID = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), native = {
317134
- randomUUID
317135
- };
317136
- function v4$1(a, t, n) {
317137
- if (native.randomUUID && !t && !a)
317138
- return native.randomUUID();
317139
- a = a || {};
317140
- const c = a.random || (a.rng || rng$1)();
317141
- if (c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, t) {
317142
- n = n || 0;
317143
- for (let l = 0; l < 16; ++l)
317144
- t[n + l] = c[l];
317145
- return t;
317146
- }
317147
- return unsafeStringify(c);
317148
- }
317149
- const authentoKycHandler = async (a, t, n) => {
317150
- try {
317151
- const { domainName: c, type: l } = AUTHENTO, h = v4$1(), A = Date.now().toString(), T = { name: c }, O = {
317152
- content: AUTHENTO.verifyMessageText,
317153
- for: c,
317154
- timestamp: A,
317155
- nonce: h
317156
- }, Q = await a.signTypedData(T, l, O), G = await a.getEthereumAddress(), ne = `${n}verify/${c}?address=${G}&ts=${A}&nonce=${h}&signature=${Q}&levelType=BASIC`;
317157
- openDefaultPassportWindow(ne, t, 700, 510);
317158
- } catch (c) {
317159
- console.error("authentoHelper error: ", c);
317160
- }
317161
- }, aipriseBaseOnboardingProductionUrl = "https://onboard.aiprise.com", aipriseBaseOnboardingSandboxUrl = "https://onboard-sandbox.aiprise.com";
317162
- var Passports = /* @__PURE__ */ ((a) => (a[a.AiPriseKyc = 0] = "AiPriseKyc", a[a.AiPriseKyb = 1] = "AiPriseKyb", a[a.BABPassport = 2] = "BABPassport", a[a.GalxePassport = 3] = "GalxePassport", a[a.ZkMePassport = 4] = "ZkMePassport", a[a.CoinbasePassport = 5] = "CoinbasePassport", a[a.AuthentoPassport = 6] = "AuthentoPassport", a[a.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", a))(Passports || {});
317163
- const SupportedPassports = {
317164
- 0: {
317165
- id: 0,
317166
- shortName: "AiPriseKyc",
317167
- fullName: " AiPrice Kyc",
317168
- apiURL: "",
317169
- onboardURL: "",
317170
- supportedChainIds: [],
317171
- supportsAllChains: !0
317172
- },
317173
- 1: {
317174
- id: 1,
317175
- shortName: "AiPriseKyb",
317176
- fullName: " AiPrice Kyb",
317177
- apiURL: "",
317178
- onboardURL: "",
317179
- supportedChainIds: [],
317180
- supportsAllChains: !0
317181
- },
317182
- 2: {
317183
- id: 2,
317184
- shortName: "Bab",
317185
- fullName: "Bab Token",
317186
- apiURL: "BabPassport",
317187
- onboardURL: "https://www.binance.com/en/BABT",
317188
- supportedChainIds: [chainIds.bnbMainnet]
317189
- },
317190
- 3: {
317191
- id: 3,
317192
- shortName: "Galxe",
317193
- fullName: "Galxe Passport",
317194
- apiURL: "GalxePassport",
317195
- onboardURL: "https://galxe.com/passport",
317196
- supportedChainIds: [chainIds.bnbMainnet]
317197
- },
317198
- // [Passports.QuadrataPassport]: {
317199
- // id: Passports.QuadrataPassport,
317200
- // shortName: 'Quadrata',
317201
- // fullName: 'Quadrata Passport',
317202
- // apiURL: 'QuadrataPassport',
317203
- // onboardURL: 'https://quadrata.com/onboard',
317204
- // supportedChainIds: [
317205
- // chainIds.ethMainnet,
317206
- // chainIds.arbMainnet,
317207
- // chainIds.optimism,
317208
- // chainIds.polygon,
317209
- // chainIds.avalanche,
317210
- // ],
317211
- // },
317212
- 4: {
317213
- id: 4,
317214
- shortName: "zkMe",
317215
- fullName: "zkMe Passport",
317216
- apiURL: "ZkMePassport",
317217
- onboardURL: "https://widget.zk.me/",
317218
- customHandleKYC: (a, t, n) => zkMeKycHandler(a, t, n),
317219
- supportedChainIds: [chainIds.polygon],
317220
- params: {
317221
- merchId: "M2023090671844574053042402155408",
317222
- zkChainId: chainIds.polygon
317223
- }
317224
- },
317225
- 5: {
317226
- id: 5,
317227
- shortName: "coinbase",
317228
- fullName: "coinbase Passport",
317229
- apiURL: "coinbasePassport",
317230
- onboardURL: "https://www.coinbase.com/onchain-verify",
317231
- supportedChainIds: [],
317232
- supportsAllChains: !0
317233
- },
317234
- 6: {
317235
- id: 6,
317236
- shortName: "Authento",
317237
- fullName: "Authento Passport",
317238
- apiURL: "AuthentoPassport",
317239
- onboardURL: "https://app.authento.io/",
317240
- customHandleKYC: (a, t, n) => authentoKycHandler(a, t, n),
317241
- supportedChainIds: [],
317242
- supportsAllChains: !0
317243
- },
317244
- 7: {
317245
- id: 7,
317246
- shortName: "Authento",
317247
- fullName: "Authento Passport",
317248
- apiURL: "AuthentoPassport",
317249
- onboardURL: "https://app.authento.io/",
317250
- customHandleKYC: (a, t, n) => authentoKycHandler(a, t, n),
317251
- supportedChainIds: [],
317252
- supportsAllChains: !0
317253
- }
317254
- }, AIPRISE_KYC_TEMPLATE_ID_PROD = "dbda56e5-31f5-4a37-a895-d4adca6c53fd", AIPRISE_KYB_TEMPLATE_ID_PROD = "96050d8d-23c9-4908-b285-2e6dec4c020b", AUTHENTO = {
317255
- verifyMessageText: "Sign this message to prove your ownership of this address and proceed with the identity verification process.",
317256
- domainName: "Hinkal",
317257
- type: {
317258
- Message: [
317259
- { name: "content", type: "string" },
317260
- { name: "for", type: "string" },
317261
- { name: "timestamp", type: "string" },
317262
- { name: "nonce", type: "string" }
317263
- ]
317264
- }
317265
317261
  }, addWeekQueryParam = (a, t) => `${a}${t !== void 0 ? `?week=${t}` : ""}`, API_CONFIG = {
317266
317262
  ROUTES: {
317267
317263
  checkKycStatus: "/check-kyc-status",
@@ -397713,7 +397709,7 @@ export {
397713
397709
  ZKProofWorkerActionType as Z,
397714
397710
  networkRegistry$4 as _,
397715
397711
  calcAccessTokenSiblingsAndSides as a,
397716
- STAGING_SERVER_URLS as a$,
397712
+ SERVER_URLS as a$,
397717
397713
  networkRegistry$2 as a0,
397718
397714
  networkRegistry$1 as a1,
397719
397715
  coingeckoRegistry as a2,
@@ -397739,18 +397735,18 @@ export {
397739
397735
  aipriseBaseOnboardingSandboxUrl as aM,
397740
397736
  Passports as aN,
397741
397737
  SupportedPassports as aO,
397742
- AIPRISE_KYC_TEMPLATE_ID_PROD as aP,
397743
- AIPRISE_KYB_TEMPLATE_ID_PROD as aQ,
397744
- AUTHENTO as aR,
397745
- API_CONFIG as aS,
397746
- RELAYER_CONFIG as aT,
397747
- DATA_SERVER_CONFIG as aU,
397748
- STAGING_URL as aV,
397749
- PLAYGROUND_URL as aW,
397750
- DATA_SERVER_URL_PRODUCTION as aX,
397751
- DATA_SERVER_URL_LOCAL as aY,
397752
- DATA_SERVER_PORT as aZ,
397753
- SERVER_URLS as a_,
397738
+ supportedPassportLinks as aP,
397739
+ AIPRISE_KYC_TEMPLATE_ID_PROD as aQ,
397740
+ AIPRISE_KYB_TEMPLATE_ID_PROD as aR,
397741
+ AUTHENTO as aS,
397742
+ API_CONFIG as aT,
397743
+ RELAYER_CONFIG as aU,
397744
+ DATA_SERVER_CONFIG as aV,
397745
+ STAGING_URL as aW,
397746
+ PLAYGROUND_URL as aX,
397747
+ DATA_SERVER_URL_PRODUCTION as aY,
397748
+ DATA_SERVER_URL_LOCAL as aZ,
397749
+ DATA_SERVER_PORT as a_,
397754
397750
  arbMainnetData as aa,
397755
397751
  ethMainnetData as ab,
397756
397752
  polygonData as ac,
@@ -397778,349 +397774,350 @@ export {
397778
397774
  getRelayFee as ay,
397779
397775
  getSlippageFee as az,
397780
397776
  preProcessing as b,
397781
- RafflePrizePoints as b$,
397782
- PLAYGROUND_SERVER_URLS as b0,
397783
- RELAYER_URLS as b1,
397784
- STAGING_RELAYER_URLS as b2,
397785
- PLAYGROUND_RELAYER_URLS as b3,
397786
- DEPLOYMENT_MODE as b4,
397787
- deploymentMode as b5,
397788
- isStaging as b6,
397789
- isPlayground as b7,
397790
- isDevelopment as b8,
397791
- isNotProduction as b9,
397792
- ethCrvCvxRegistry as bA,
397793
- polygonCrvCvxRegistry as bB,
397794
- arbMainnetCrvCvxRegistry as bC,
397795
- optimismCrvCvxRegistry as bD,
397796
- avalancheCrvCvxRegistry as bE,
397797
- baseCrvCvxRegistry as bF,
397798
- getCrvCvxWithChainId as bG,
397799
- getCalcTokenAmountWithDynamicArray as bH,
397800
- lidoWithdrawalQueueERC721Address as bI,
397801
- lidoStakeManagerAddress as bJ,
397802
- lidoWstEthContractAddress as bK,
397803
- lidoStEthContractAddress as bL,
397804
- poLidoNftAddress as bM,
397805
- lidoStMaticAddress as bN,
397806
- ethSymbol as bO,
397807
- maticSymbol as bP,
397808
- wstEthSymbol as bQ,
397809
- stMaticSymbol as bR,
397810
- REWARD_RECEIVABLE_TOKEN_SYMBOLS as bS,
397811
- referralLink as bT,
397812
- pointsLink as bU,
397813
- lpLink as bV,
397814
- lpProgramStartWeek as bW,
397815
- raffleProgramStartWeek as bX,
397816
- boostAmounts as bY,
397817
- CERTIFICATION_DISABLE_WEEK as bZ,
397818
- ACCESS_TOKEN_MINTING_POINTS as b_,
397819
- zeroAddress as ba,
397820
- oneInchZeroAddress as bb,
397821
- curveZeroAddress as bc,
397822
- ethVolatileAddress as bd,
397823
- signaturePhrase as be,
397824
- ownerPublicKey as bf,
397825
- permitSignatureValidFor as bg,
397826
- CIRCOM_P as bh,
397827
- CIRCOM_P_HALF as bi,
397828
- curveWithdrawGasTokenAddress as bj,
397829
- crvSymbol as bk,
397830
- threePoolSymbol as bl,
397831
- cvxSymbol as bm,
397832
- beefyChainIds as bn,
397833
- proCoingeckoUrl as bo,
397834
- COINGECKO_API_KEY as bp,
397835
- proHeader as bq,
397836
- coingeckoPriceUrl as br,
397837
- coingeckoPriceUrl2 as bs,
397838
- coingeckoTokenListUrl as bt,
397839
- getCoingeckoIdForNativeTokens as bu,
397840
- getCoingeckoPlatform as bv,
397841
- CoinGeckoChainLabels as bw,
397842
- AxelarRegistry as bx,
397843
- NETWORKS as by,
397844
- getGasStationUrl as bz,
397777
+ ACCESS_TOKEN_MINTING_POINTS as b$,
397778
+ STAGING_SERVER_URLS as b0,
397779
+ PLAYGROUND_SERVER_URLS as b1,
397780
+ RELAYER_URLS as b2,
397781
+ STAGING_RELAYER_URLS as b3,
397782
+ PLAYGROUND_RELAYER_URLS as b4,
397783
+ DEPLOYMENT_MODE as b5,
397784
+ deploymentMode as b6,
397785
+ isStaging as b7,
397786
+ isPlayground as b8,
397787
+ isDevelopment as b9,
397788
+ getGasStationUrl as bA,
397789
+ ethCrvCvxRegistry as bB,
397790
+ polygonCrvCvxRegistry as bC,
397791
+ arbMainnetCrvCvxRegistry as bD,
397792
+ optimismCrvCvxRegistry as bE,
397793
+ avalancheCrvCvxRegistry as bF,
397794
+ baseCrvCvxRegistry as bG,
397795
+ getCrvCvxWithChainId as bH,
397796
+ getCalcTokenAmountWithDynamicArray as bI,
397797
+ lidoWithdrawalQueueERC721Address as bJ,
397798
+ lidoStakeManagerAddress as bK,
397799
+ lidoWstEthContractAddress as bL,
397800
+ lidoStEthContractAddress as bM,
397801
+ poLidoNftAddress as bN,
397802
+ lidoStMaticAddress as bO,
397803
+ ethSymbol as bP,
397804
+ maticSymbol as bQ,
397805
+ wstEthSymbol as bR,
397806
+ stMaticSymbol as bS,
397807
+ REWARD_RECEIVABLE_TOKEN_SYMBOLS as bT,
397808
+ referralLink as bU,
397809
+ pointsLink as bV,
397810
+ lpLink as bW,
397811
+ lpProgramStartWeek as bX,
397812
+ raffleProgramStartWeek as bY,
397813
+ boostAmounts as bZ,
397814
+ CERTIFICATION_DISABLE_WEEK as b_,
397815
+ isNotProduction as ba,
397816
+ zeroAddress as bb,
397817
+ oneInchZeroAddress as bc,
397818
+ curveZeroAddress as bd,
397819
+ ethVolatileAddress as be,
397820
+ signaturePhrase as bf,
397821
+ ownerPublicKey as bg,
397822
+ permitSignatureValidFor as bh,
397823
+ CIRCOM_P as bi,
397824
+ CIRCOM_P_HALF as bj,
397825
+ curveWithdrawGasTokenAddress as bk,
397826
+ crvSymbol as bl,
397827
+ threePoolSymbol as bm,
397828
+ cvxSymbol as bn,
397829
+ beefyChainIds as bo,
397830
+ proCoingeckoUrl as bp,
397831
+ COINGECKO_API_KEY as bq,
397832
+ proHeader as br,
397833
+ coingeckoPriceUrl as bs,
397834
+ coingeckoPriceUrl2 as bt,
397835
+ coingeckoTokenListUrl as bu,
397836
+ getCoingeckoIdForNativeTokens as bv,
397837
+ getCoingeckoPlatform as bw,
397838
+ CoinGeckoChainLabels as bx,
397839
+ AxelarRegistry as by,
397840
+ NETWORKS as bz,
397845
397841
  calcCommitmentsSiblingAndSides as c,
397846
- abi$v as c$,
397847
- blockReorgDepth as c0,
397848
- ethBeefyRegistry as c1,
397849
- getBeefyRegistryWithChainId as c2,
397850
- ethPendleRegistry as c3,
397851
- bnbPendleRegistry as c4,
397852
- optimismPendleRegistry as c5,
397853
- arbPendleRegistry as c6,
397854
- getPendleRegistryWithChainId as c7,
397855
- getYtTokensWithChainId as c8,
397856
- isYtToken as c9,
397857
- AbstractCommitmentsSnapshotService as cA,
397858
- AbstractNullifierSnapshotService as cB,
397859
- AbstractSnapshotService as cC,
397860
- AbstractEventService as cD,
397861
- customTokenRegistry as cE,
397862
- TokenChecker as cF,
397863
- TokenPriceFetcher as cG,
397864
- TransactionsManager as cH,
397865
- TransactionType as cI,
397866
- externalActionToTransactionType as cJ,
397867
- VolatileHelper as cK,
397868
- MultiThreadedUtxoUtils as cL,
397869
- multiThreadedUtxoUtils as cM,
397870
- FeeOverTransactionValueError as cN,
397871
- getGenericFeeOverTransactionValueErrorMessage as cO,
397872
- rethrowKnownGasErrorIfPossible as cP,
397873
- transactionErrorCodes as cQ,
397874
- UserFriendlyErrorCodes as cR,
397875
- extractMessage as cS,
397876
- getErrorMessage as cT,
397877
- checkErrorForSnapshotRestore as cU,
397878
- ErrorCategory as cV,
397879
- abi$s as cW,
397880
- abi$t as cX,
397881
- abi$p as cY,
397882
- abi$o as cZ,
397883
- abi$w as c_,
397884
- findSyAddress as ca,
397885
- poseidonHolder as cb,
397886
- poseidonHash as cc,
397887
- jubHolder as cd,
397888
- babyJubInstance as ce,
397889
- ValueCache as cf,
397890
- abiDecodeUtxo as cg,
397891
- decodeUtxo as ch,
397892
- encryptUtxo as ci,
397893
- EncryptionKeyPairDefaultValue as cj,
397894
- isCircomNegative as ck,
397895
- getCircomSign as cl,
397896
- Hinkal as cm,
397897
- hinkalActionBeefy as cn,
397898
- hinkalActionConvex as co,
397899
- hinkalActionCurve as cp,
397900
- hinkalActionPendle as cq,
397901
- hinkalDeposit as cr,
397902
- hinkalDepositForOther as cs,
397903
- hinkalSwap as ct,
397904
- hinkalTransfer as cu,
397905
- hinkalWithdraw as cv,
397906
- hinkalPrivateWallet as cw,
397907
- resetMerkleTrees as cx,
397908
- MerkleTreeIncompleteError as cy,
397909
- AbstractAccessTokenSnapshotService as cz,
397842
+ abi$w as c$,
397843
+ RafflePrizePoints as c0,
397844
+ blockReorgDepth as c1,
397845
+ ethBeefyRegistry as c2,
397846
+ getBeefyRegistryWithChainId as c3,
397847
+ ethPendleRegistry as c4,
397848
+ bnbPendleRegistry as c5,
397849
+ optimismPendleRegistry as c6,
397850
+ arbPendleRegistry as c7,
397851
+ getPendleRegistryWithChainId as c8,
397852
+ getYtTokensWithChainId as c9,
397853
+ AbstractAccessTokenSnapshotService as cA,
397854
+ AbstractCommitmentsSnapshotService as cB,
397855
+ AbstractNullifierSnapshotService as cC,
397856
+ AbstractSnapshotService as cD,
397857
+ AbstractEventService as cE,
397858
+ customTokenRegistry as cF,
397859
+ TokenChecker as cG,
397860
+ TokenPriceFetcher as cH,
397861
+ TransactionsManager as cI,
397862
+ TransactionType as cJ,
397863
+ externalActionToTransactionType as cK,
397864
+ VolatileHelper as cL,
397865
+ MultiThreadedUtxoUtils as cM,
397866
+ multiThreadedUtxoUtils as cN,
397867
+ FeeOverTransactionValueError as cO,
397868
+ getGenericFeeOverTransactionValueErrorMessage as cP,
397869
+ rethrowKnownGasErrorIfPossible as cQ,
397870
+ transactionErrorCodes as cR,
397871
+ UserFriendlyErrorCodes as cS,
397872
+ extractMessage as cT,
397873
+ getErrorMessage as cU,
397874
+ checkErrorForSnapshotRestore as cV,
397875
+ ErrorCategory as cW,
397876
+ abi$s as cX,
397877
+ abi$t as cY,
397878
+ abi$p as cZ,
397879
+ abi$o as c_,
397880
+ isYtToken as ca,
397881
+ findSyAddress as cb,
397882
+ poseidonHolder as cc,
397883
+ poseidonHash as cd,
397884
+ jubHolder as ce,
397885
+ babyJubInstance as cf,
397886
+ ValueCache as cg,
397887
+ abiDecodeUtxo as ch,
397888
+ decodeUtxo as ci,
397889
+ encryptUtxo as cj,
397890
+ EncryptionKeyPairDefaultValue as ck,
397891
+ isCircomNegative as cl,
397892
+ getCircomSign as cm,
397893
+ Hinkal as cn,
397894
+ hinkalActionBeefy as co,
397895
+ hinkalActionConvex as cp,
397896
+ hinkalActionCurve as cq,
397897
+ hinkalActionPendle as cr,
397898
+ hinkalDeposit as cs,
397899
+ hinkalDepositForOther as ct,
397900
+ hinkalSwap as cu,
397901
+ hinkalTransfer as cv,
397902
+ hinkalWithdraw as cw,
397903
+ hinkalPrivateWallet as cx,
397904
+ resetMerkleTrees as cy,
397905
+ MerkleTreeIncompleteError as cz,
397910
397906
  UserKeys as d,
397911
- processAmountChanges as d$,
397912
- abi$q as d0,
397913
- abi$m as d1,
397914
- abi$r as d2,
397915
- abi$l as d3,
397916
- abi$k as d4,
397917
- abi$j as d5,
397918
- abi$i as d6,
397919
- abi$u as d7,
397920
- abi$n as d8,
397921
- lidoStEthAbi as d9,
397922
- getValueFirstNDigit as dA,
397923
- trimLeadingZeros as dB,
397924
- toCommaSeparatedNumberString as dC,
397925
- truncateTo18DecimalPlaces as dD,
397926
- absBigInt as dE,
397927
- minBigInt as dF,
397928
- getHinkalCache as dG,
397929
- setHinkalCache as dH,
397930
- resetCache as dI,
397931
- saveTxsCache as dJ,
397932
- loadTxsCache as dK,
397933
- createProvider as dL,
397934
- getExternalActionIdHash as dM,
397935
- getExternalActionIdFromNumber as dN,
397936
- getActionFromMetadata as dO,
397937
- decodeMetadata as dP,
397938
- getExternalMetadataHash as dQ,
397939
- getERC20Token as dR,
397940
- getERC20TokenBySymbol as dS,
397941
- getHToken as dT,
397942
- requireEnv as dU,
397943
- resolveSync as dV,
397944
- getSequence as dW,
397945
- convertIntegrationProviderToExternalActionId as dX,
397946
- getInteractionFromAction as dY,
397947
- outputUtxoProcessing as dZ,
397948
- processGasEstimates as d_,
397949
- lidoStMaticAbi as da,
397950
- lidoWithdrawalQueueERC721Abi as db,
397951
- lidoWstEthAbi as dc,
397952
- poLidoNftAbi as dd,
397953
- lidoStakeManagerAbi as de,
397954
- abi$g as df,
397955
- abi$f as dg,
397956
- abi$e as dh,
397957
- OptimismGasPriceOracle as di,
397958
- abi$h as dj,
397959
- checkHinkalAccessToken as dk,
397960
- mintAccessToken as dl,
397961
- mintTokenCrossChain as dm,
397962
- openDefaultPassportWindow as dn,
397963
- openPassportWindow as dp,
397964
- calculateSum as dq,
397965
- beepsToPercentage as dr,
397966
- calculateAmountUsingBeeps as ds,
397967
- toBigInt as dt,
397968
- toBigIntOrUndefined as du,
397969
- toNumberOrUndefined as dv,
397970
- toInt as dw,
397971
- bigintApplySugar as dx,
397972
- bigintMax as dy,
397973
- fixDecimalsAmount as dz,
397907
+ processGasEstimates as d$,
397908
+ abi$v as d0,
397909
+ abi$q as d1,
397910
+ abi$m as d2,
397911
+ abi$r as d3,
397912
+ abi$l as d4,
397913
+ abi$k as d5,
397914
+ abi$j as d6,
397915
+ abi$i as d7,
397916
+ abi$u as d8,
397917
+ abi$n as d9,
397918
+ fixDecimalsAmount as dA,
397919
+ getValueFirstNDigit as dB,
397920
+ trimLeadingZeros as dC,
397921
+ toCommaSeparatedNumberString as dD,
397922
+ truncateTo18DecimalPlaces as dE,
397923
+ absBigInt as dF,
397924
+ minBigInt as dG,
397925
+ getHinkalCache as dH,
397926
+ setHinkalCache as dI,
397927
+ resetCache as dJ,
397928
+ saveTxsCache as dK,
397929
+ loadTxsCache as dL,
397930
+ createProvider as dM,
397931
+ getExternalActionIdHash as dN,
397932
+ getExternalActionIdFromNumber as dO,
397933
+ getActionFromMetadata as dP,
397934
+ decodeMetadata as dQ,
397935
+ getExternalMetadataHash as dR,
397936
+ getERC20Token as dS,
397937
+ getERC20TokenBySymbol as dT,
397938
+ getHToken as dU,
397939
+ requireEnv as dV,
397940
+ resolveSync as dW,
397941
+ getSequence as dX,
397942
+ convertIntegrationProviderToExternalActionId as dY,
397943
+ getInteractionFromAction as dZ,
397944
+ outputUtxoProcessing as d_,
397945
+ lidoStEthAbi as da,
397946
+ lidoStMaticAbi as db,
397947
+ lidoWithdrawalQueueERC721Abi as dc,
397948
+ lidoWstEthAbi as dd,
397949
+ poLidoNftAbi as de,
397950
+ lidoStakeManagerAbi as df,
397951
+ abi$g as dg,
397952
+ abi$f as dh,
397953
+ abi$e as di,
397954
+ OptimismGasPriceOracle as dj,
397955
+ abi$h as dk,
397956
+ checkHinkalAccessToken as dl,
397957
+ mintAccessToken as dm,
397958
+ mintTokenCrossChain as dn,
397959
+ openDefaultPassportWindow as dp,
397960
+ openPassportWindow as dq,
397961
+ calculateSum as dr,
397962
+ beepsToPercentage as ds,
397963
+ calculateAmountUsingBeeps as dt,
397964
+ toBigInt as du,
397965
+ toBigIntOrUndefined as dv,
397966
+ toNumberOrUndefined as dw,
397967
+ toInt as dx,
397968
+ bigintApplySugar as dy,
397969
+ bigintMax as dz,
397974
397970
  decryptUtxoConstructorArgs as e,
397975
- decryptStake as e$,
397976
- getFlatFees as e0,
397977
- getNetworkObject as e1,
397978
- getNetworkType as e2,
397979
- getAxelarMigrationInfo as e3,
397980
- browserSupported as e4,
397981
- walletSupported as e5,
397982
- decodeTxInput as e6,
397983
- decodeTxLogs as e7,
397984
- deserializeDecodedTxs as e8,
397985
- serializeDecodedTxs as e9,
397986
- searchPoolAndFee as eA,
397987
- getUniswapPriceHelper as eB,
397988
- getUniswapFee as eC,
397989
- getUniswapPrice as eD,
397990
- getOdosPrice as eE,
397991
- getOneInchPrice as eF,
397992
- runContractFunction as eG,
397993
- constructZkProof as eH,
397994
- constructEmporiumProof as eI,
397995
- buildInNullifiers as eJ,
397996
- buildOutCommitments as eK,
397997
- calcAmountChanges as eL,
397998
- calcEncryptedOutputs as eM,
397999
- serializeCircomData as eN,
398000
- deserializeCircomData as eO,
398001
- createCallDataHash as eP,
398002
- calcPublicSignalCount as eQ,
398003
- calcStealthAddressStructure as eR,
398004
- generateZkProof as eS,
398005
- getCRV as eT,
398006
- getCVX as eU,
398007
- erc20TokenFromPendleAsset as eV,
398008
- getAssetTypeFromPendleMarket as eW,
398009
- determinePendleSwapType as eX,
398010
- determinePendleSwapTypeApiRoute as eY,
398011
- getTokenIndexForPendleFlatFee as eZ,
398012
- encryptStake as e_,
398013
- reloadPage as ea,
398014
- toTitleCase as eb,
398015
- capitalizeFirstLetter as ec,
398016
- isNullOrEmpty as ed,
398017
- isNicknameValid as ee,
398018
- caseInsensitiveEqual as ef,
398019
- lowerCaseIncludes as eg,
398020
- lowerCaseStartsWith as eh,
398021
- waitLittle as ei,
398022
- patchRegistry as ej,
398023
- ethToWei as ek,
398024
- randomBigInt as el,
398025
- getAmountInToken as em,
398026
- getAmountInWei as en,
398027
- toBigIntWithDecimals as eo,
398028
- getAmountInWeiOrZero as ep,
398029
- getAmountWithPrecision as eq,
398030
- calculateDollarValue as er,
398031
- getAmountWithPrecisionOrZero as es,
398032
- getInputUtxosFromEncryptedOutputs as et,
398033
- getInputUtxoAndBalance as eu,
398034
- getShieldedBalance as ev,
398035
- addPaddingToUtxos as ew,
398036
- retrieveEvents as ex,
398037
- getDepositEvents as ey,
398038
- balanceChangedHandler as ez,
397971
+ encryptStake as e$,
397972
+ processAmountChanges as e0,
397973
+ getFlatFees as e1,
397974
+ getNetworkObject as e2,
397975
+ getNetworkType as e3,
397976
+ getAxelarMigrationInfo as e4,
397977
+ browserSupported as e5,
397978
+ walletSupported as e6,
397979
+ decodeTxInput as e7,
397980
+ decodeTxLogs as e8,
397981
+ deserializeDecodedTxs as e9,
397982
+ balanceChangedHandler as eA,
397983
+ searchPoolAndFee as eB,
397984
+ getUniswapPriceHelper as eC,
397985
+ getUniswapFee as eD,
397986
+ getUniswapPrice as eE,
397987
+ getOdosPrice as eF,
397988
+ getOneInchPrice as eG,
397989
+ runContractFunction as eH,
397990
+ constructZkProof as eI,
397991
+ constructEmporiumProof as eJ,
397992
+ buildInNullifiers as eK,
397993
+ buildOutCommitments as eL,
397994
+ calcAmountChanges as eM,
397995
+ calcEncryptedOutputs as eN,
397996
+ serializeCircomData as eO,
397997
+ deserializeCircomData as eP,
397998
+ createCallDataHash as eQ,
397999
+ calcPublicSignalCount as eR,
398000
+ calcStealthAddressStructure as eS,
398001
+ generateZkProof as eT,
398002
+ getCRV as eU,
398003
+ getCVX as eV,
398004
+ erc20TokenFromPendleAsset as eW,
398005
+ getAssetTypeFromPendleMarket as eX,
398006
+ determinePendleSwapType as eY,
398007
+ determinePendleSwapTypeApiRoute as eZ,
398008
+ getTokenIndexForPendleFlatFee as e_,
398009
+ serializeDecodedTxs as ea,
398010
+ reloadPage as eb,
398011
+ toTitleCase as ec,
398012
+ capitalizeFirstLetter as ed,
398013
+ isNullOrEmpty as ee,
398014
+ isNicknameValid as ef,
398015
+ caseInsensitiveEqual as eg,
398016
+ lowerCaseIncludes as eh,
398017
+ lowerCaseStartsWith as ei,
398018
+ waitLittle as ej,
398019
+ patchRegistry as ek,
398020
+ ethToWei as el,
398021
+ randomBigInt as em,
398022
+ getAmountInToken as en,
398023
+ getAmountInWei as eo,
398024
+ toBigIntWithDecimals as ep,
398025
+ getAmountInWeiOrZero as eq,
398026
+ getAmountWithPrecision as er,
398027
+ calculateDollarValue as es,
398028
+ getAmountWithPrecisionOrZero as et,
398029
+ getInputUtxosFromEncryptedOutputs as eu,
398030
+ getInputUtxoAndBalance as ev,
398031
+ getShieldedBalance as ew,
398032
+ addPaddingToUtxos as ex,
398033
+ retrieveEvents as ey,
398034
+ getDepositEvents as ez,
398039
398035
  decodeUtxoConstructorArgs as f,
398040
- BonusType as f$,
398041
- createStakeCommitment as f0,
398042
- calculateStakeNullifier as f1,
398043
- encodeHStakeMetadata as f2,
398044
- emporiumOp as f3,
398045
- encodeEmporiumMetadata as f4,
398046
- OpType as f5,
398047
- produceOp as f6,
398048
- dataBeefyApiConfig as f7,
398049
- isBeefyDeposit as f8,
398050
- emptyStealthAddressStructure as f9,
398051
- minuteInMilliseconds as fA,
398052
- hourInMilliseconds as fB,
398053
- dayInMilliseconds as fC,
398054
- weekInMilliseconds as fD,
398055
- getDateFromWeek as fE,
398056
- getWeekTimestamps as fF,
398057
- getCurrentWeek as fG,
398058
- parseWeek as fH,
398059
- toDateString as fI,
398060
- isWeekCurrent as fJ,
398061
- hasCertificationPeriodExpired as fK,
398062
- getNextDay as fL,
398063
- MONTHS as fM,
398064
- divideMonthOnIntervals as fN,
398065
- TIER_LEVEL as fO,
398066
- LP_TIER as fP,
398067
- RewardsPageTabs as fQ,
398068
- RewardsHistoryStatuses as fR,
398069
- RewardsHistorySnapshots as fS,
398070
- RewardsHistoryEligibility as fT,
398071
- RewardsHistoryDistribution as fU,
398072
- RafflePrizeType as fV,
398073
- PointType as fW,
398074
- Timeline as fX,
398075
- PaymentStatus as fY,
398076
- CertifyType as fZ,
398077
- RewardPage as f_,
398078
- defaultHookData as fa,
398079
- defaultHookDataArray as fb,
398080
- defaultStealthAddressStructure as fc,
398081
- ContractType as fd,
398082
- ExternalActionId as fe,
398083
- EventType as ff,
398084
- IntegrationProvider as fg,
398085
- StakeProvider as fh,
398086
- CurveAction as fi,
398087
- ConvexAction as fj,
398088
- BeefyAction as fk,
398089
- LidoVariant as fl,
398090
- LidoAction as fm,
398091
- PendleAction as fn,
398092
- PendleLPAction as fo,
398093
- VolatileAction as fp,
398094
- INTERACTION as fq,
398095
- VERIFICATION_TYPE as fr,
398096
- VerificationTypes as fs,
398097
- KycVerificationResult as ft,
398098
- KycVerificationStatus as fu,
398099
- ApprovalType as fv,
398100
- SlippageType as fw,
398101
- slippageLevels as fx,
398102
- emptyDecodedTx as fy,
398103
- secondInMilliseconds as fz,
398036
+ RewardPage as f$,
398037
+ decryptStake as f0,
398038
+ createStakeCommitment as f1,
398039
+ calculateStakeNullifier as f2,
398040
+ encodeHStakeMetadata as f3,
398041
+ emporiumOp as f4,
398042
+ encodeEmporiumMetadata as f5,
398043
+ OpType as f6,
398044
+ produceOp as f7,
398045
+ dataBeefyApiConfig as f8,
398046
+ isBeefyDeposit as f9,
398047
+ secondInMilliseconds as fA,
398048
+ minuteInMilliseconds as fB,
398049
+ hourInMilliseconds as fC,
398050
+ dayInMilliseconds as fD,
398051
+ weekInMilliseconds as fE,
398052
+ getDateFromWeek as fF,
398053
+ getWeekTimestamps as fG,
398054
+ getCurrentWeek as fH,
398055
+ parseWeek as fI,
398056
+ toDateString as fJ,
398057
+ isWeekCurrent as fK,
398058
+ hasCertificationPeriodExpired as fL,
398059
+ getNextDay as fM,
398060
+ MONTHS as fN,
398061
+ divideMonthOnIntervals as fO,
398062
+ TIER_LEVEL as fP,
398063
+ LP_TIER as fQ,
398064
+ RewardsPageTabs as fR,
398065
+ RewardsHistoryStatuses as fS,
398066
+ RewardsHistorySnapshots as fT,
398067
+ RewardsHistoryEligibility as fU,
398068
+ RewardsHistoryDistribution as fV,
398069
+ RafflePrizeType as fW,
398070
+ PointType as fX,
398071
+ Timeline as fY,
398072
+ PaymentStatus as fZ,
398073
+ CertifyType as f_,
398074
+ emptyStealthAddressStructure as fa,
398075
+ defaultHookData as fb,
398076
+ defaultHookDataArray as fc,
398077
+ defaultStealthAddressStructure as fd,
398078
+ ContractType as fe,
398079
+ ExternalActionId as ff,
398080
+ EventType as fg,
398081
+ IntegrationProvider as fh,
398082
+ StakeProvider as fi,
398083
+ CurveAction as fj,
398084
+ ConvexAction as fk,
398085
+ BeefyAction as fl,
398086
+ LidoVariant as fm,
398087
+ LidoAction as fn,
398088
+ PendleAction as fo,
398089
+ PendleLPAction as fp,
398090
+ VolatileAction as fq,
398091
+ INTERACTION as fr,
398092
+ VERIFICATION_TYPE as fs,
398093
+ VerificationTypes as ft,
398094
+ KycVerificationResult as fu,
398095
+ KycVerificationStatus as fv,
398096
+ ApprovalType as fw,
398097
+ SlippageType as fx,
398098
+ slippageLevels as fy,
398099
+ emptyDecodedTx as fz,
398104
398100
  decryptUtxo as g,
398105
- emptyUserPointsResponse as g0,
398106
- emptyUserPointsBreakdown as g1,
398107
- PendleTabs as g2,
398108
- PendleTradeGeneralTabs as g3,
398109
- PendleTradeTabs as g4,
398110
- PendlePoolTabs as g5,
398111
- PendlePoolZapTabs as g6,
398112
- PendlePoolManualTabs as g7,
398113
- PendleDashboardTabs as g8,
398114
- PendleEarnTabs as g9,
398115
- PendleChains as ga,
398116
- PendleAssetType as gb,
398117
- PendleSwapType as gc,
398118
- PendleMarketTransactionTypes as gd,
398119
- curveNetworkNames as ge,
398120
- curvePools as gf,
398121
- UpperTabPossibleValues as gg,
398122
- StatType as gh,
398123
- HinkalStakeMode as gi,
398101
+ BonusType as g0,
398102
+ emptyUserPointsResponse as g1,
398103
+ emptyUserPointsBreakdown as g2,
398104
+ PendleTabs as g3,
398105
+ PendleTradeGeneralTabs as g4,
398106
+ PendleTradeTabs as g5,
398107
+ PendlePoolTabs as g6,
398108
+ PendlePoolZapTabs as g7,
398109
+ PendlePoolManualTabs as g8,
398110
+ PendleDashboardTabs as g9,
398111
+ PendleEarnTabs as ga,
398112
+ PendleChains as gb,
398113
+ PendleAssetType as gc,
398114
+ PendleSwapType as gd,
398115
+ PendleMarketTransactionTypes as ge,
398116
+ curveNetworkNames as gf,
398117
+ curvePools as gg,
398118
+ UpperTabPossibleValues as gh,
398119
+ StatType as gi,
398120
+ HinkalStakeMode as gj,
398124
398121
  checkUtxoSignature as h,
398125
398122
  UtxoWorkerActionType as i,
398126
398123
  getServerURL as j,