@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.
- package/README.md +33 -12
- package/assets/{snarkjsWorkerLogic-D1WyqRQr.js → snarkjsWorkerLogic-CatB8Hso.js} +2 -2
- package/assets/{utxoWorkerLogic-BUjkvmsS.js → utxoWorkerLogic-DDqTe7hT.js} +2 -2
- package/assets/{viteWorkerURL.constant-TBsXLMNi.js → viteWorkerURL.constant-DrIQXA2B.js} +2 -2
- package/assets/{zkProofWorkerLauncher-D86Xs1_B.js → zkProofWorkerLauncher-C-pvCm0b.js} +1 -1
- package/assets/{zkProofWorkerLogic-Doz4ARB3.js → zkProofWorkerLogic-CLpRqNRx.js} +27226 -25214
- package/constants/kyc.constants.d.ts +1 -0
- package/data-structures/Hinkal/Hinkal.d.ts +1 -0
- package/data-structures/Hinkal/IHinkal.d.ts +1 -0
- package/{index-DGw5xy2S.mjs → index-f5eNXqZp.mjs} +591 -594
- package/index.mjs +74 -73
- package/package.json +1 -1
- package/{utxoWorkerLogic-DPmsLZ2P.mjs → utxoWorkerLogic-BFMMdUgE.mjs} +1 -1
- package/{viteWorkerURL.constant-D2byFHvm.mjs → viteWorkerURL.constant-B4zHpxcT.mjs} +2 -2
- package/{zkProofWorkerLogic-BueCVOdX.mjs → zkProofWorkerLogic-CtgrDfdp.mjs} +1 -1
|
@@ -276561,28 +276561,21 @@ var doEval = function a(t) {
|
|
|
276561
276561
|
}
|
|
276562
276562
|
}
|
|
276563
276563
|
return T;
|
|
276564
|
-
}, callBind$2 = { exports: {} },
|
|
276565
|
-
|
|
276566
|
-
|
|
276567
|
-
|
|
276568
|
-
|
|
276569
|
-
|
|
276570
|
-
|
|
276571
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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-
|
|
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-
|
|
288420
|
+
"./zkProofWorkerLogic-CtgrDfdp.mjs"
|
|
288428
288421
|
) : t === WorkerVariant.UTXO && (c = await import(
|
|
288429
288422
|
/* @vite-ignore */
|
|
288430
|
-
"./utxoWorkerLogic-
|
|
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
|
-
|
|
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
|
-
|
|
397743
|
-
|
|
397744
|
-
|
|
397745
|
-
|
|
397746
|
-
|
|
397747
|
-
|
|
397748
|
-
|
|
397749
|
-
|
|
397750
|
-
|
|
397751
|
-
|
|
397752
|
-
|
|
397753
|
-
|
|
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
|
-
|
|
397782
|
-
|
|
397783
|
-
|
|
397784
|
-
|
|
397785
|
-
|
|
397786
|
-
|
|
397787
|
-
|
|
397788
|
-
|
|
397789
|
-
|
|
397790
|
-
|
|
397791
|
-
|
|
397792
|
-
|
|
397793
|
-
|
|
397794
|
-
|
|
397795
|
-
|
|
397796
|
-
|
|
397797
|
-
|
|
397798
|
-
|
|
397799
|
-
|
|
397800
|
-
|
|
397801
|
-
|
|
397802
|
-
|
|
397803
|
-
|
|
397804
|
-
|
|
397805
|
-
|
|
397806
|
-
|
|
397807
|
-
|
|
397808
|
-
|
|
397809
|
-
|
|
397810
|
-
|
|
397811
|
-
|
|
397812
|
-
|
|
397813
|
-
|
|
397814
|
-
|
|
397815
|
-
|
|
397816
|
-
|
|
397817
|
-
|
|
397818
|
-
|
|
397819
|
-
|
|
397820
|
-
|
|
397821
|
-
|
|
397822
|
-
|
|
397823
|
-
|
|
397824
|
-
|
|
397825
|
-
|
|
397826
|
-
|
|
397827
|
-
|
|
397828
|
-
|
|
397829
|
-
|
|
397830
|
-
|
|
397831
|
-
|
|
397832
|
-
|
|
397833
|
-
|
|
397834
|
-
|
|
397835
|
-
|
|
397836
|
-
|
|
397837
|
-
|
|
397838
|
-
|
|
397839
|
-
|
|
397840
|
-
|
|
397841
|
-
|
|
397842
|
-
|
|
397843
|
-
|
|
397844
|
-
|
|
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$
|
|
397847
|
-
|
|
397848
|
-
|
|
397849
|
-
|
|
397850
|
-
|
|
397851
|
-
|
|
397852
|
-
|
|
397853
|
-
|
|
397854
|
-
|
|
397855
|
-
|
|
397856
|
-
|
|
397857
|
-
|
|
397858
|
-
|
|
397859
|
-
|
|
397860
|
-
|
|
397861
|
-
|
|
397862
|
-
|
|
397863
|
-
|
|
397864
|
-
|
|
397865
|
-
|
|
397866
|
-
|
|
397867
|
-
|
|
397868
|
-
|
|
397869
|
-
|
|
397870
|
-
|
|
397871
|
-
|
|
397872
|
-
|
|
397873
|
-
|
|
397874
|
-
|
|
397875
|
-
|
|
397876
|
-
|
|
397877
|
-
|
|
397878
|
-
|
|
397879
|
-
|
|
397880
|
-
abi$
|
|
397881
|
-
abi$
|
|
397882
|
-
abi$
|
|
397883
|
-
abi$
|
|
397884
|
-
|
|
397885
|
-
|
|
397886
|
-
|
|
397887
|
-
|
|
397888
|
-
|
|
397889
|
-
|
|
397890
|
-
|
|
397891
|
-
|
|
397892
|
-
|
|
397893
|
-
|
|
397894
|
-
|
|
397895
|
-
|
|
397896
|
-
|
|
397897
|
-
|
|
397898
|
-
|
|
397899
|
-
|
|
397900
|
-
|
|
397901
|
-
|
|
397902
|
-
|
|
397903
|
-
|
|
397904
|
-
|
|
397905
|
-
|
|
397906
|
-
|
|
397907
|
-
|
|
397908
|
-
|
|
397909
|
-
|
|
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
|
-
|
|
397912
|
-
abi$
|
|
397913
|
-
abi$
|
|
397914
|
-
abi$
|
|
397915
|
-
abi$
|
|
397916
|
-
abi$
|
|
397917
|
-
abi$
|
|
397918
|
-
abi$
|
|
397919
|
-
abi$
|
|
397920
|
-
abi$
|
|
397921
|
-
|
|
397922
|
-
|
|
397923
|
-
|
|
397924
|
-
|
|
397925
|
-
|
|
397926
|
-
|
|
397927
|
-
|
|
397928
|
-
|
|
397929
|
-
|
|
397930
|
-
|
|
397931
|
-
|
|
397932
|
-
|
|
397933
|
-
|
|
397934
|
-
|
|
397935
|
-
|
|
397936
|
-
|
|
397937
|
-
|
|
397938
|
-
|
|
397939
|
-
|
|
397940
|
-
|
|
397941
|
-
|
|
397942
|
-
|
|
397943
|
-
|
|
397944
|
-
|
|
397945
|
-
|
|
397946
|
-
|
|
397947
|
-
|
|
397948
|
-
|
|
397949
|
-
|
|
397950
|
-
|
|
397951
|
-
|
|
397952
|
-
|
|
397953
|
-
|
|
397954
|
-
|
|
397955
|
-
abi$
|
|
397956
|
-
abi$
|
|
397957
|
-
|
|
397958
|
-
|
|
397959
|
-
|
|
397960
|
-
|
|
397961
|
-
|
|
397962
|
-
|
|
397963
|
-
|
|
397964
|
-
|
|
397965
|
-
|
|
397966
|
-
|
|
397967
|
-
|
|
397968
|
-
|
|
397969
|
-
|
|
397970
|
-
|
|
397971
|
-
|
|
397972
|
-
|
|
397973
|
-
|
|
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
|
-
|
|
397976
|
-
|
|
397977
|
-
|
|
397978
|
-
|
|
397979
|
-
|
|
397980
|
-
|
|
397981
|
-
|
|
397982
|
-
|
|
397983
|
-
|
|
397984
|
-
|
|
397985
|
-
|
|
397986
|
-
|
|
397987
|
-
|
|
397988
|
-
|
|
397989
|
-
|
|
397990
|
-
|
|
397991
|
-
|
|
397992
|
-
|
|
397993
|
-
|
|
397994
|
-
|
|
397995
|
-
|
|
397996
|
-
|
|
397997
|
-
|
|
397998
|
-
|
|
397999
|
-
|
|
398000
|
-
|
|
398001
|
-
|
|
398002
|
-
|
|
398003
|
-
|
|
398004
|
-
|
|
398005
|
-
|
|
398006
|
-
|
|
398007
|
-
|
|
398008
|
-
|
|
398009
|
-
|
|
398010
|
-
|
|
398011
|
-
|
|
398012
|
-
|
|
398013
|
-
|
|
398014
|
-
|
|
398015
|
-
|
|
398016
|
-
|
|
398017
|
-
|
|
398018
|
-
|
|
398019
|
-
|
|
398020
|
-
|
|
398021
|
-
|
|
398022
|
-
|
|
398023
|
-
|
|
398024
|
-
|
|
398025
|
-
|
|
398026
|
-
|
|
398027
|
-
|
|
398028
|
-
|
|
398029
|
-
|
|
398030
|
-
|
|
398031
|
-
|
|
398032
|
-
|
|
398033
|
-
|
|
398034
|
-
|
|
398035
|
-
|
|
398036
|
-
|
|
398037
|
-
|
|
398038
|
-
|
|
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
|
-
|
|
398041
|
-
|
|
398042
|
-
|
|
398043
|
-
|
|
398044
|
-
|
|
398045
|
-
|
|
398046
|
-
|
|
398047
|
-
|
|
398048
|
-
|
|
398049
|
-
|
|
398050
|
-
|
|
398051
|
-
|
|
398052
|
-
|
|
398053
|
-
|
|
398054
|
-
|
|
398055
|
-
|
|
398056
|
-
|
|
398057
|
-
|
|
398058
|
-
|
|
398059
|
-
|
|
398060
|
-
|
|
398061
|
-
|
|
398062
|
-
|
|
398063
|
-
|
|
398064
|
-
|
|
398065
|
-
|
|
398066
|
-
|
|
398067
|
-
|
|
398068
|
-
|
|
398069
|
-
|
|
398070
|
-
|
|
398071
|
-
|
|
398072
|
-
|
|
398073
|
-
|
|
398074
|
-
|
|
398075
|
-
|
|
398076
|
-
|
|
398077
|
-
|
|
398078
|
-
|
|
398079
|
-
|
|
398080
|
-
|
|
398081
|
-
|
|
398082
|
-
|
|
398083
|
-
|
|
398084
|
-
|
|
398085
|
-
|
|
398086
|
-
|
|
398087
|
-
|
|
398088
|
-
|
|
398089
|
-
|
|
398090
|
-
|
|
398091
|
-
|
|
398092
|
-
|
|
398093
|
-
|
|
398094
|
-
|
|
398095
|
-
|
|
398096
|
-
|
|
398097
|
-
|
|
398098
|
-
|
|
398099
|
-
|
|
398100
|
-
|
|
398101
|
-
|
|
398102
|
-
|
|
398103
|
-
|
|
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
|
-
|
|
398106
|
-
|
|
398107
|
-
|
|
398108
|
-
|
|
398109
|
-
|
|
398110
|
-
|
|
398111
|
-
|
|
398112
|
-
|
|
398113
|
-
|
|
398114
|
-
|
|
398115
|
-
|
|
398116
|
-
|
|
398117
|
-
|
|
398118
|
-
|
|
398119
|
-
|
|
398120
|
-
|
|
398121
|
-
|
|
398122
|
-
|
|
398123
|
-
|
|
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,
|