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