@hinkal/common 0.1.51 → 0.1.52
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/API/API.cjs +1 -1
- package/API/API.d.ts +2 -1
- package/API/API.mjs +17 -16
- package/API/kycCalls.cjs +1 -1
- package/API/kycCalls.d.ts +5 -0
- package/API/kycCalls.mjs +27 -19
- package/constants/kyc.constants.cjs +1 -1
- package/constants/kyc.constants.d.ts +8 -1
- package/constants/kyc.constants.mjs +80 -28
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +1 -0
- package/constants/server.constants.mjs +3 -2
- package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +9 -10
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +38 -42
- package/data-structures/event-service/AbstractEventService.cjs +1 -1
- package/data-structures/event-service/AbstractEventService.d.ts +0 -1
- package/data-structures/event-service/AbstractEventService.mjs +8 -9
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.d.ts +1 -1
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +7 -7
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.mjs +18 -19
- package/index.cjs +1 -1
- package/index.mjs +545 -542
- package/package.json +1 -1
- package/types/IMultiThreadedUtxoUtils.d.ts +1 -1
- package/types/kyc.types.cjs +1 -1
- package/types/kyc.types.d.ts +6 -1
- package/types/kyc.types.mjs +8 -8
package/API/API.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./referralProgramCalls.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./referralProgramCalls.cjs"),r=require("./rewardsPointsCalls.cjs"),s=require("./userVerifyTransactions.cjs"),n=require("./relayCalls.cjs"),o=require("./passwordCalls.cjs"),a=require("./getTokenPrice.cjs"),t=require("./kycCalls.cjs"),c=require("./callOdosAPI.cjs"),g=require("./dataServerCalls.cjs"),i=require("./HinkalPointsCalls.cjs"),d={getUserKycStatus:t.getUserKycStatus,setAiPriseVerificationUrl:t.setAiPriseVerificationUrl,getAccessTokenSignature:t.getAccessTokenSignature,getReclaimVerificationRequest:t.getReclaimVerificationRequest,getZkMeAccessToken:t.getZkMeAccessToken,userHasAccessToken:t.userHasAccessToken,afterKycCall:t.afterKycCall,getTokenPrice:a.getTokenPrice,getTokenPriceEth:a.getTokenPriceEth,getTokenPrices:a.getTokenPrices,getOdosPriceForToken:c.getOdosPriceForToken,getActiveCode:e.getActiveCode,updateActiveCode:e.updateActiveCode,getWeeklyReferralCodes:e.getWeeklyReferralCodes,getReferralCodes:e.getReferralCodes,addReferralCode:e.addReferralCode,getLpProgram:e.getLpProgram,addNickname:r.addNickname,getNickname:r.getNickname,verificationStartDate:s.verificationStartDate,userGetTransactions:s.userGetTransactions,userVerifyTransactions:s.userVerifyTransactions,points:r.points,leaderboard:r.leaderboard,seasonLeaderboard:r.seasonLeaderboard,getIdleRelay:n.getIdleRelay,userHasPassword:o.userHasPassword,userRegisterPassword:o.userRegisterPassword,getRewardsHistory:e.getRewardsHistory,setRewardsReceivingData:e.setRewardsReceivingData,getRewardsReceivingData:e.getRewardsReceivingData,getUserPoints:g.getUserPoints,getLimitedAnonymityStakingPoints:i.getLimitedAnonymityStakingPoints,getUserAnonymityStakingPoints:i.getUserAnonymityStakingPoints,getUserAnonymityStakingReferralPoints:i.getUserAnonymityStakingReferralPoints};exports.API=d;
|
package/API/API.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { userGetTransactions, userVerifyTransactions, verificationStartDate } fr
|
|
|
4
4
|
import { getIdleRelay } from './relayCalls';
|
|
5
5
|
import { userHasPassword, userRegisterPassword } from './passwordCalls';
|
|
6
6
|
import { getTokenPrice, getTokenPriceEth, getTokenPrices } from './getTokenPrice';
|
|
7
|
-
import { afterKycCall, getAccessTokenSignature, getUserKycStatus, getZkMeAccessToken, setAiPriseVerificationUrl, userHasAccessToken } from './kycCalls';
|
|
7
|
+
import { afterKycCall, getAccessTokenSignature, getReclaimVerificationRequest, getUserKycStatus, getZkMeAccessToken, setAiPriseVerificationUrl, userHasAccessToken } from './kycCalls';
|
|
8
8
|
import { getOdosPriceForToken } from './callOdosAPI';
|
|
9
9
|
import { getUserPoints } from './dataServerCalls';
|
|
10
10
|
import { getLimitedAnonymityStakingPoints, getUserAnonymityStakingPoints, getUserAnonymityStakingReferralPoints } from './HinkalPointsCalls';
|
|
@@ -12,6 +12,7 @@ export type IAPI = {
|
|
|
12
12
|
getUserKycStatus: typeof getUserKycStatus;
|
|
13
13
|
setAiPriseVerificationUrl: typeof setAiPriseVerificationUrl;
|
|
14
14
|
getAccessTokenSignature: typeof getAccessTokenSignature;
|
|
15
|
+
getReclaimVerificationRequest: typeof getReclaimVerificationRequest;
|
|
15
16
|
getZkMeAccessToken: typeof getZkMeAccessToken;
|
|
16
17
|
getTokenPrice: typeof getTokenPrice;
|
|
17
18
|
getTokenPriceEth: typeof getTokenPriceEth;
|
package/API/API.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getActiveCode as e, updateActiveCode as
|
|
1
|
+
import { getActiveCode as e, updateActiveCode as t, getWeeklyReferralCodes as r, getReferralCodes as o, addReferralCode as i, getLpProgram as s, getRewardsHistory as a, setRewardsReceivingData as n, getRewardsReceivingData as g } from "./referralProgramCalls.mjs";
|
|
2
2
|
import { addNickname as m, getNickname as c, points as d, leaderboard as f, seasonLeaderboard as k } from "./rewardsPointsCalls.mjs";
|
|
3
|
-
import { verificationStartDate as p, userGetTransactions as P, userVerifyTransactions as
|
|
3
|
+
import { verificationStartDate as p, userGetTransactions as P, userVerifyTransactions as R } from "./userVerifyTransactions.mjs";
|
|
4
4
|
import { getIdleRelay as l } from "./relayCalls.mjs";
|
|
5
|
-
import { userHasPassword as
|
|
6
|
-
import { getTokenPrice as
|
|
7
|
-
import { getUserKycStatus as S, setAiPriseVerificationUrl as v, getAccessTokenSignature as w,
|
|
8
|
-
import { getOdosPriceForToken as
|
|
5
|
+
import { userHasPassword as y, userRegisterPassword as A } from "./passwordCalls.mjs";
|
|
6
|
+
import { getTokenPrice as u, getTokenPriceEth as T, getTokenPrices as C } from "./getTokenPrice.mjs";
|
|
7
|
+
import { getUserKycStatus as S, setAiPriseVerificationUrl as v, getAccessTokenSignature as w, getReclaimVerificationRequest as U, getZkMeAccessToken as D, userHasAccessToken as H, afterKycCall as L } from "./kycCalls.mjs";
|
|
8
|
+
import { getOdosPriceForToken as V } from "./callOdosAPI.mjs";
|
|
9
9
|
import { getUserPoints as b } from "./dataServerCalls.mjs";
|
|
10
10
|
import { getLimitedAnonymityStakingPoints as I, getUserAnonymityStakingPoints as K, getUserAnonymityStakingReferralPoints as N } from "./HinkalPointsCalls.mjs";
|
|
11
11
|
const j = {
|
|
@@ -13,18 +13,19 @@ const j = {
|
|
|
13
13
|
getUserKycStatus: S,
|
|
14
14
|
setAiPriseVerificationUrl: v,
|
|
15
15
|
getAccessTokenSignature: w,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
getReclaimVerificationRequest: U,
|
|
17
|
+
getZkMeAccessToken: D,
|
|
18
|
+
userHasAccessToken: H,
|
|
19
|
+
afterKycCall: L,
|
|
19
20
|
// Prices
|
|
20
|
-
getTokenPrice:
|
|
21
|
-
getTokenPriceEth:
|
|
21
|
+
getTokenPrice: u,
|
|
22
|
+
getTokenPriceEth: T,
|
|
22
23
|
getTokenPrices: C,
|
|
23
|
-
getOdosPriceForToken:
|
|
24
|
+
getOdosPriceForToken: V,
|
|
24
25
|
// Referral Codes
|
|
25
26
|
getActiveCode: e,
|
|
26
|
-
updateActiveCode:
|
|
27
|
-
getWeeklyReferralCodes:
|
|
27
|
+
updateActiveCode: t,
|
|
28
|
+
getWeeklyReferralCodes: r,
|
|
28
29
|
getReferralCodes: o,
|
|
29
30
|
addReferralCode: i,
|
|
30
31
|
getLpProgram: s,
|
|
@@ -34,14 +35,14 @@ const j = {
|
|
|
34
35
|
// Transaction Verifications
|
|
35
36
|
verificationStartDate: p,
|
|
36
37
|
userGetTransactions: P,
|
|
37
|
-
userVerifyTransactions:
|
|
38
|
+
userVerifyTransactions: R,
|
|
38
39
|
points: d,
|
|
39
40
|
leaderboard: f,
|
|
40
41
|
seasonLeaderboard: k,
|
|
41
42
|
// relay
|
|
42
43
|
getIdleRelay: l,
|
|
43
44
|
// password
|
|
44
|
-
userHasPassword:
|
|
45
|
+
userHasPassword: y,
|
|
45
46
|
userRegisterPassword: A,
|
|
46
47
|
getRewardsHistory: a,
|
|
47
48
|
setRewardsReceivingData: n,
|
package/API/kycCalls.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("axios"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("axios"),a=require("../constants/server.constants.cjs"),c=require("./getServerURL.cjs");async function i(e,t){return(await s.post(`${c.getServerURL(e)}${a.API_CONFIG.ROUTES.checkKycStatus}`,{ethereumAddress:t})).data}async function o(e,t,r,n){return(await s.post(`${c.getServerURL(e)}${a.API_CONFIG.ROUTES.startUserVerification}`,{ethereumAddress:t,verificationSessionId:r,verificationType:n})).data}async function u(e,t,r){return(await s.post(`${c.getServerURL(e)}${a.API_CONFIG.ROUTES.getUserSignature}`,{ethereumAddress:t,accessKey:r})).data}async function g(e,t,r,n){return(await s.post(`${c.getServerURL(e)}${a.API_CONFIG.ROUTES.startReclaimVerification}`,{ethereumAddress:r,providerId:t,userSignature:n})).data}const S=async e=>(await s.get(`${c.getServerURL(e)}${a.API_CONFIG.ROUTES.zkMeAccessToken}`)).data.accessToken,U=async(e,t)=>(await s.get(`${c.getServerURL(e)}${a.API_CONFIG.ROUTES.userHasAccessToken(t)}`)).data,R=async(e,t,r)=>(await s.post(`${c.getServerURL(e)}${a.API_CONFIG.ROUTES.afterKycCall}`,{ethereumAddress:t,hasAccessTokenOnAnyChain:r})).data;exports.afterKycCall=R;exports.getAccessTokenSignature=u;exports.getReclaimVerificationRequest=g;exports.getUserKycStatus=i;exports.getZkMeAccessToken=S;exports.setAiPriseVerificationUrl=o;exports.userHasAccessToken=U;
|
package/API/kycCalls.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ interface AccessTokenSignatureResponse {
|
|
|
10
10
|
signatureData: SignatureData;
|
|
11
11
|
}
|
|
12
12
|
export declare function getAccessTokenSignature(chainId: number, ethereumAddress: string, accessKey: string): Promise<AccessTokenSignatureResponse>;
|
|
13
|
+
interface ReclaimVerificationRequestResponse {
|
|
14
|
+
reclaimProofRequestConfig: string;
|
|
15
|
+
message?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function getReclaimVerificationRequest(chainId: number, providerId: string, ethereumAddress: string, userSignature: string): Promise<ReclaimVerificationRequestResponse>;
|
|
13
18
|
export declare const getZkMeAccessToken: (chainId: number) => Promise<any>;
|
|
14
19
|
export declare const userHasAccessToken: (chainId: number, accessKey: string) => Promise<{
|
|
15
20
|
hasAccessToken: boolean;
|
package/API/kycCalls.mjs
CHANGED
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { API_CONFIG as
|
|
3
|
-
import { getServerURL as
|
|
4
|
-
async function
|
|
5
|
-
return (await
|
|
1
|
+
import s from "axios";
|
|
2
|
+
import { API_CONFIG as r } from "../constants/server.constants.mjs";
|
|
3
|
+
import { getServerURL as n } from "./getServerURL.mjs";
|
|
4
|
+
async function $(t, e) {
|
|
5
|
+
return (await s.post(`${n(t)}${r.ROUTES.checkKycStatus}`, {
|
|
6
6
|
ethereumAddress: e
|
|
7
7
|
})).data;
|
|
8
8
|
}
|
|
9
|
-
async function
|
|
10
|
-
return (await
|
|
9
|
+
async function f(t, e, a, c) {
|
|
10
|
+
return (await s.post(`${n(t)}${r.ROUTES.startUserVerification}`, {
|
|
11
11
|
ethereumAddress: e,
|
|
12
|
-
verificationSessionId:
|
|
12
|
+
verificationSessionId: a,
|
|
13
13
|
verificationType: c
|
|
14
14
|
})).data;
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
17
|
-
return (await
|
|
16
|
+
async function T(t, e, a) {
|
|
17
|
+
return (await s.post(`${n(t)}${r.ROUTES.getUserSignature}`, { ethereumAddress: e, accessKey: a })).data;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
`${
|
|
21
|
-
|
|
19
|
+
async function S(t, e, a, c) {
|
|
20
|
+
return (await s.post(`${n(t)}${r.ROUTES.startReclaimVerification}`, {
|
|
21
|
+
ethereumAddress: a,
|
|
22
|
+
providerId: e,
|
|
23
|
+
userSignature: c
|
|
24
|
+
})).data;
|
|
25
|
+
}
|
|
26
|
+
const U = async (t) => (await s.get(`${n(t)}${r.ROUTES.zkMeAccessToken}`)).data.accessToken, p = async (t, e) => (await s.get(
|
|
27
|
+
`${n(t)}${r.ROUTES.userHasAccessToken(e)}`
|
|
28
|
+
)).data, y = async (t, e, a) => (await s.post(`${n(t)}${r.ROUTES.afterKycCall}`, {
|
|
22
29
|
ethereumAddress: e,
|
|
23
|
-
hasAccessTokenOnAnyChain:
|
|
30
|
+
hasAccessTokenOnAnyChain: a
|
|
24
31
|
})).data;
|
|
25
32
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
y as afterKycCall,
|
|
34
|
+
T as getAccessTokenSignature,
|
|
35
|
+
S as getReclaimVerificationRequest,
|
|
36
|
+
$ as getUserKycStatus,
|
|
29
37
|
U as getZkMeAccessToken,
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
f as setAiPriseVerificationUrl,
|
|
39
|
+
p as userHasAccessToken
|
|
32
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../functions/kyc/zkMeHelper.cjs"),p=require("../functions/kyc/authentoHelper.cjs"),s=require("../types/kyc.types.cjs"),r=require("./chains.constants.cjs"),l="https://onboard.aiprise.com",P="https://onboard-sandbox.aiprise.com",i={[s.Passports.AiPriseKyc]:{id:s.Passports.AiPriseKyc,shortName:"AiPriseKyc",fullName:" AiPrice Kyc",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0},[s.Passports.AiPriseKyb]:{id:s.Passports.AiPriseKyb,shortName:"AiPriseKyb",fullName:" AiPrice Kyb",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0},[s.Passports.BABPassport]:{id:s.Passports.BABPassport,shortName:"Bab",fullName:"Bab Token",apiURL:"BabPassport",onboardURL:"https://www.binance.com/en/BABT",supportedChainIds:[r.chainIds.bnbMainnet]},[s.Passports.GalxePassport]:{id:s.Passports.GalxePassport,shortName:"Galxe",fullName:"Galxe Passport",apiURL:"GalxePassport",onboardURL:"https://galxe.com/passport",supportedChainIds:[r.chainIds.bnbMainnet]},[s.Passports.ZkMePassport]:{id:s.Passports.ZkMePassport,shortName:"zkMe",fullName:"zkMe Passport",apiURL:"ZkMePassport",onboardURL:"https://widget.zk.me/",customHandleKYC:(a,o,t)=>d.zkMeKycHandler(a,o,t,{merchId:"M2023090671844574053042402155408",zkChainId:r.chainIds.polygon}),supportedChainIds:[r.chainIds.polygon]},[s.Passports.CoinbasePassport]:{id:s.Passports.CoinbasePassport,shortName:"coinbase",fullName:"coinbase Passport",apiURL:"coinbasePassport",onboardURL:"https://www.coinbase.com/onchain-verify",supportedChainIds:[],supportsAllChains:!0},[s.Passports.AuthentoPassport]:{id:s.Passports.AuthentoPassport,shortName:"Authento",fullName:"Authento Passport",apiURL:"AuthentoPassport",onboardURL:"https://app.authento.io/",customHandleKYC:(a,o,t)=>p.authentoKycHandler(a,o,t),supportedChainIds:[],supportsAllChains:!0},[s.Passports.AuthentoPassportKyb]:{id:s.Passports.AuthentoPassportKyb,shortName:"Authento",fullName:"Authento Passport",apiURL:"AuthentoPassport",onboardURL:"https://app.authento.io/",customHandleKYC:(a,o,t)=>p.authentoKycHandler(a,o,t),supportedChainIds:[],supportsAllChains:!0}},n={[s.Passports.ReclaimBNBPassport]:{id:s.Passports.ReclaimBNBPassport,shortName:"ReclaimBNB",fullName:" Reclaim BNB",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"9a8127e6-c5c1-4336-bc49-24a0197f6c56"}},[s.Passports.ReclaimOKXPassport]:{id:s.Passports.ReclaimOKXPassport,shortName:"ReclaimOKX",fullName:" Reclaim OKX",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"4f464d13-d3b0-45b9-bed9-db160a1a5426"}},[s.Passports.ReclaimGatePassport]:{id:s.Passports.ReclaimGatePassport,shortName:"ReclaimGate",fullName:" Reclaim Gate",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"a824a912-52ad-4a84-a096-55728518c3d5"}},[s.Passports.ReclaimKucoinPassport]:{id:s.Passports.ReclaimKucoinPassport,shortName:"ReclaimKraken",fullName:" Reclaim Kraken",apiURL:"",onboardURL:"",supportedChainIds:[],supportsAllChains:!0,params:{providerId:"2a7a2124-04bb-4d8c-bb3b-54b0ddd97342"}}},e={...i,...n},c=Object.values(e).filter((a,o)=>a.onboardURL?.length>0&&Object.values(e).indexOf(a)===o).map(a=>a.onboardURL),u="dbda56e5-31f5-4a37-a895-d4adca6c53fd",h="96050d8d-23c9-4908-b285-2e6dec4c020b",b="Approve Integrity Status proof generation using Reclaim Protocol.";exports.AIPRISE_KYB_TEMPLATE_ID_PROD=h;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=u;exports.RECLAIM_MESSAGE_TO_SIGN=b;exports.ReclaimPassports=n;exports.StandardPassports=i;exports.SupportedPassports=e;exports.aipriseBaseOnboardingProductionUrl=l;exports.aipriseBaseOnboardingSandboxUrl=P;exports.supportedPassportLinks=c;
|
|
@@ -13,9 +13,16 @@ export type PassportDetails = {
|
|
|
13
13
|
supportsAllChains?: boolean;
|
|
14
14
|
supportedChainIds: number[];
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const StandardPassports: {
|
|
17
|
+
[passport: number]: PassportDetails;
|
|
18
|
+
};
|
|
19
|
+
export declare const ReclaimPassports: {
|
|
17
20
|
[passport: number]: PassportDetails;
|
|
18
21
|
};
|
|
22
|
+
export declare const SupportedPassports: {
|
|
23
|
+
[x: number]: PassportDetails;
|
|
24
|
+
};
|
|
19
25
|
export declare const supportedPassportLinks: string[];
|
|
20
26
|
export declare const AIPRISE_KYC_TEMPLATE_ID_PROD = "dbda56e5-31f5-4a37-a895-d4adca6c53fd";
|
|
21
27
|
export declare const AIPRISE_KYB_TEMPLATE_ID_PROD = "96050d8d-23c9-4908-b285-2e6dec4c020b";
|
|
28
|
+
export declare const RECLAIM_MESSAGE_TO_SIGN = "Approve Integrity Status proof generation using Reclaim Protocol.";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { zkMeKycHandler as
|
|
1
|
+
import { zkMeKycHandler as i } from "../functions/kyc/zkMeHelper.mjs";
|
|
2
2
|
import { authentoKycHandler as r } from "../functions/kyc/authentoHelper.mjs";
|
|
3
|
-
import { Passports as
|
|
3
|
+
import { Passports as a } from "../types/kyc.types.mjs";
|
|
4
4
|
import { chainIds as e } from "./chains.constants.mjs";
|
|
5
|
-
const
|
|
6
|
-
[
|
|
7
|
-
id:
|
|
5
|
+
const h = "https://onboard.aiprise.com", b = "https://onboard-sandbox.aiprise.com", n = {
|
|
6
|
+
[a.AiPriseKyc]: {
|
|
7
|
+
id: a.AiPriseKyc,
|
|
8
8
|
shortName: "AiPriseKyc",
|
|
9
9
|
fullName: " AiPrice Kyc",
|
|
10
10
|
apiURL: "",
|
|
@@ -12,8 +12,8 @@ const l = "https://onboard.aiprise.com", P = "https://onboard-sandbox.aiprise.co
|
|
|
12
12
|
supportedChainIds: [],
|
|
13
13
|
supportsAllChains: !0
|
|
14
14
|
},
|
|
15
|
-
[
|
|
16
|
-
id:
|
|
15
|
+
[a.AiPriseKyb]: {
|
|
16
|
+
id: a.AiPriseKyb,
|
|
17
17
|
shortName: "AiPriseKyb",
|
|
18
18
|
fullName: " AiPrice Kyb",
|
|
19
19
|
apiURL: "",
|
|
@@ -21,16 +21,16 @@ const l = "https://onboard.aiprise.com", P = "https://onboard-sandbox.aiprise.co
|
|
|
21
21
|
supportedChainIds: [],
|
|
22
22
|
supportsAllChains: !0
|
|
23
23
|
},
|
|
24
|
-
[
|
|
25
|
-
id:
|
|
24
|
+
[a.BABPassport]: {
|
|
25
|
+
id: a.BABPassport,
|
|
26
26
|
shortName: "Bab",
|
|
27
27
|
fullName: "Bab Token",
|
|
28
28
|
apiURL: "BabPassport",
|
|
29
29
|
onboardURL: "https://www.binance.com/en/BABT",
|
|
30
30
|
supportedChainIds: [e.bnbMainnet]
|
|
31
31
|
},
|
|
32
|
-
[
|
|
33
|
-
id:
|
|
32
|
+
[a.GalxePassport]: {
|
|
33
|
+
id: a.GalxePassport,
|
|
34
34
|
shortName: "Galxe",
|
|
35
35
|
fullName: "Galxe Passport",
|
|
36
36
|
apiURL: "GalxePassport",
|
|
@@ -51,20 +51,20 @@ const l = "https://onboard.aiprise.com", P = "https://onboard-sandbox.aiprise.co
|
|
|
51
51
|
// chainIds.avalanche,
|
|
52
52
|
// ],
|
|
53
53
|
// },
|
|
54
|
-
[
|
|
55
|
-
id:
|
|
54
|
+
[a.ZkMePassport]: {
|
|
55
|
+
id: a.ZkMePassport,
|
|
56
56
|
shortName: "zkMe",
|
|
57
57
|
fullName: "zkMe Passport",
|
|
58
58
|
apiURL: "ZkMePassport",
|
|
59
59
|
onboardURL: "https://widget.zk.me/",
|
|
60
|
-
customHandleKYC: (
|
|
60
|
+
customHandleKYC: (s, o, t) => i(s, o, t, {
|
|
61
61
|
merchId: "M2023090671844574053042402155408",
|
|
62
62
|
zkChainId: e.polygon
|
|
63
63
|
}),
|
|
64
64
|
supportedChainIds: [e.polygon]
|
|
65
65
|
},
|
|
66
|
-
[
|
|
67
|
-
id:
|
|
66
|
+
[a.CoinbasePassport]: {
|
|
67
|
+
id: a.CoinbasePassport,
|
|
68
68
|
shortName: "coinbase",
|
|
69
69
|
fullName: "coinbase Passport",
|
|
70
70
|
apiURL: "coinbasePassport",
|
|
@@ -72,32 +72,84 @@ const l = "https://onboard.aiprise.com", P = "https://onboard-sandbox.aiprise.co
|
|
|
72
72
|
supportedChainIds: [],
|
|
73
73
|
supportsAllChains: !0
|
|
74
74
|
},
|
|
75
|
-
[
|
|
76
|
-
id:
|
|
75
|
+
[a.AuthentoPassport]: {
|
|
76
|
+
id: a.AuthentoPassport,
|
|
77
77
|
shortName: "Authento",
|
|
78
78
|
fullName: "Authento Passport",
|
|
79
79
|
apiURL: "AuthentoPassport",
|
|
80
80
|
onboardURL: "https://app.authento.io/",
|
|
81
|
-
customHandleKYC: (
|
|
81
|
+
customHandleKYC: (s, o, t) => r(s, o, t),
|
|
82
82
|
supportedChainIds: [],
|
|
83
83
|
supportsAllChains: !0
|
|
84
84
|
},
|
|
85
|
-
[
|
|
86
|
-
id:
|
|
85
|
+
[a.AuthentoPassportKyb]: {
|
|
86
|
+
id: a.AuthentoPassportKyb,
|
|
87
87
|
shortName: "Authento",
|
|
88
88
|
fullName: "Authento Passport",
|
|
89
89
|
apiURL: "AuthentoPassport",
|
|
90
90
|
onboardURL: "https://app.authento.io/",
|
|
91
|
-
customHandleKYC: (
|
|
91
|
+
customHandleKYC: (s, o, t) => r(s, o, t),
|
|
92
92
|
supportedChainIds: [],
|
|
93
93
|
supportsAllChains: !0
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, d = {
|
|
96
|
+
[a.ReclaimBNBPassport]: {
|
|
97
|
+
id: a.ReclaimBNBPassport,
|
|
98
|
+
shortName: "ReclaimBNB",
|
|
99
|
+
fullName: " Reclaim BNB",
|
|
100
|
+
apiURL: "",
|
|
101
|
+
onboardURL: "",
|
|
102
|
+
supportedChainIds: [],
|
|
103
|
+
supportsAllChains: !0,
|
|
104
|
+
params: {
|
|
105
|
+
providerId: "9a8127e6-c5c1-4336-bc49-24a0197f6c56"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
[a.ReclaimOKXPassport]: {
|
|
109
|
+
id: a.ReclaimOKXPassport,
|
|
110
|
+
shortName: "ReclaimOKX",
|
|
111
|
+
fullName: " Reclaim OKX",
|
|
112
|
+
apiURL: "",
|
|
113
|
+
onboardURL: "",
|
|
114
|
+
supportedChainIds: [],
|
|
115
|
+
supportsAllChains: !0,
|
|
116
|
+
params: {
|
|
117
|
+
providerId: "4f464d13-d3b0-45b9-bed9-db160a1a5426"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
[a.ReclaimGatePassport]: {
|
|
121
|
+
id: a.ReclaimGatePassport,
|
|
122
|
+
shortName: "ReclaimGate",
|
|
123
|
+
fullName: " Reclaim Gate",
|
|
124
|
+
apiURL: "",
|
|
125
|
+
onboardURL: "",
|
|
126
|
+
supportedChainIds: [],
|
|
127
|
+
supportsAllChains: !0,
|
|
128
|
+
params: {
|
|
129
|
+
providerId: "a824a912-52ad-4a84-a096-55728518c3d5"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
[a.ReclaimKucoinPassport]: {
|
|
133
|
+
id: a.ReclaimKucoinPassport,
|
|
134
|
+
shortName: "ReclaimKraken",
|
|
135
|
+
fullName: " Reclaim Kraken",
|
|
136
|
+
apiURL: "",
|
|
137
|
+
onboardURL: "",
|
|
138
|
+
supportedChainIds: [],
|
|
139
|
+
supportsAllChains: !0,
|
|
140
|
+
params: {
|
|
141
|
+
providerId: "2a7a2124-04bb-4d8c-bb3b-54b0ddd97342"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, p = { ...n, ...d }, P = Object.values(p).filter((s, o) => s.onboardURL?.length > 0 && Object.values(p).indexOf(s) === o).map((s) => s.onboardURL), R = "dbda56e5-31f5-4a37-a895-d4adca6c53fd", A = "96050d8d-23c9-4908-b285-2e6dec4c020b", L = "Approve Integrity Status proof generation using Reclaim Protocol.";
|
|
96
145
|
export {
|
|
97
|
-
|
|
98
|
-
|
|
146
|
+
A as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
147
|
+
R as AIPRISE_KYC_TEMPLATE_ID_PROD,
|
|
148
|
+
L as RECLAIM_MESSAGE_TO_SIGN,
|
|
149
|
+
d as ReclaimPassports,
|
|
150
|
+
n as StandardPassports,
|
|
99
151
|
p as SupportedPassports,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
152
|
+
h as aipriseBaseOnboardingProductionUrl,
|
|
153
|
+
b as aipriseBaseOnboardingSandboxUrl,
|
|
154
|
+
P as supportedPassportLinks
|
|
103
155
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(e,n)=>`${e}${n!==void 0?`?week=${n}`:""}`,l={ROUTES:{checkKycStatus:"/check-kyc-status",getUserSignature:"/signature-request",startUserVerification:"/start-aiprise-verification",zkMeAccessToken:"/zkMeAccessToken",getCommitmentsSnapshot:"/snapshots/commitments",getAccessTokenSnapshot:"/snapshots/access-tokens",callOdosAPI:"/OdosSwapData",callOneInchAPI:"/OneInchSwapData",getOdosPriceForToken:e=>`/getOdosPriceForToken/${e}`,getNullifiers:"/snapshots/nullifiers",axelarGasEstimate:(e,n,i,o)=>`/axelarGasEstimate/${e}/${n}/${i}/${o}`,userHasAccessToken:e=>`/user-has-access-token/${e}`,afterKycCall:"/after-kyc-callback",restoreSnapshots:"/snapshots/restore",beefyGraphAPI:"/BeefyGraphData",monitor:"/monitor",checkRisk:e=>`/check-risk/${e}`,userVerifyTransactions:"/user-verify-transactions",verificationStartDate:e=>`/verification-start-date/${e}`,userGetTransactions:(e,n)=>`/user-get-transactions/${e}/${n}`,getActiveCode:e=>`/get-active-code/${e}`,updateActiveCode:"/update-active-code",getWeeklyReferralCodes:(e,n)=>`/get-weekly-referral-codes/${e}/${n}`,getReferralCodes:e=>s(`/get-referral-codes/${e}`),getRewardsHistory:e=>`/get-rewards-history/${e}`,addReferralCode:"/update-referral-code",getLpProgram:e=>s(`/getLpProgram/${e}`),points:(e,n)=>`/points/${e}/${n}`,leaderboard:e=>`/leaderboard/${e}`,setRewardsReceivingData:"/set-user-rewards-receiving-data",getRewardsReceivingData:e=>`/get-user-rewards-receiving-data/${e}`,seasonLeaderboard:e=>`/season-leaderboard/${e}`,getUserAnonymityStakingPoints:e=>`/hinkal-points/${e}`,getLimitedAnonymityStakingPoints:e=>`/hinkal-points/limited/${e}`,getUserAnonymityStakingReferralPoints:e=>`/hinkal-referral-codes-info/${e}`,userHasPassword:e=>`/user-has-password/${e}`,userRegisterPassword:"/user-register-password",getNickname:e=>`/get-nickname/${e}`,addNickname:"/update-nickname",getLidoDefiData:"lido/defi",getLidoStats:"lido/stats",getLidoEthStats:"lido/eth-stats",getLidoDiscount:"lido/discount",getLidoRequestTime:"lido/request-time",getLidoMaticReward:"lido/matic-rewards",pendleAddLiquiditySingleToken:"pendle/addLiquiditySingleToken",pendleAddLiquiditySingleSy:"pendle/addLiquiditySingleSy",pendleAddLiquiditySinglePt:"pendle/addLiquiditySinglePt",pendleAddLiquidityDualTokenAndPt:"pendle/addLiquidityDualTokenAndPt",pendleAddLiquidityDualSyAndPt:"pendle/addLiquidityDualSyAndPt",pendleAddLiquiditySingleTokenKeepYt:"pendle/addLiquiditySingleTokenKeepYt",pendleRemoveLiquiditySingleToken:"pendle/removeLiquiditySingleToken",pendleRemoveLiquiditySingleSy:"pendle/removeLiquiditySingleSy",pendleRemoveLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleRemoveLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",pendleRemoveLiquidityDualSyAndPt:"pendle/removeLiquidityDualSyAndPt",pendleMintPyFromToken:"pendle/mintPyFromToken",pendlRedeemPyToToken:"pendle/redeemPyToToken",removeLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",removeLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleSwapExactTokenForYT:"pendle/swapExactTokenForYt",pendleSwapExactTokenForPt:"pendle/swapExactTokenForPt",pendleSwapExactPtForToken:"pendle/swapExactPtForToken",pendleSwapExactPtForYt:"pendle/swapExactPtForYt",pendleSwapExactYtForToken:"pendle/swapExactYtForToken",pendleSwapExactYtForPt:"pendle/swapExactYtForPt",pendleSyTokenInOut:"pendle/syTokenInOut",connextReceiveFee:(e,n)=>`/connextEstimateReceive/${e}/${n}`,stakedYield:"/staked-yield",getPublicWalletInformation:e=>`/get-public-wallet-data/${e}`}},d={getGasEstimate:(e,n,i,o,r)=>`/gas-estimation/${e}/${o}/${n}/${i}/${r}`,getTokenPrice:"/get-token-price",getTokenPriceEth:e=>`/get-token-price-in-eth/${e}`,getTokenPrices:"/get-token-prices",TRANSACT:"/general-transact",getIdleRelay:"/get-idle-relay"},p={getUserPoints:e=>`/user-points/${e}`},t="http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com",a="http://ec2-18-144-10-166.us-west-1.compute.amazonaws.com",c="https://ethMainnet-data-server.hinkal.pro",R="http://localhost",h=7090,g={polygon:"https://polygon.server.hinkal.pro",arbMainnet:"https://arbMainnet.server.hinkal.pro",ethMainnet:"https://ethMainnet.server.hinkal.pro",bnbMainnet:"https://bnbMainnet.server.hinkal.pro",avalanche:"https://avalanche.server.hinkal.pro",optimism:"https://optimism.server.hinkal.pro",base:"https://base.server.hinkal.pro",localhost:"http://localhost:7072"},k={polygon:`${t}:7072`,arbMainnet:`${t}:7070`,ethMainnet:`${t}:7080`,bnbMainnet:`${t}:7076`,avalanche:`${t}:7078`,optimism:`${t}:7082`,base:`${t}:7084`,localhost:"http://localhost:7072"},S={polygon:`${a}:7072`,arbMainnet:`${a}:7070`,ethMainnet:`${a}:7080`,bnbMainnet:`${a}:7076`,avalanche:`${a}:7078`,optimism:`${a}:7082`,base:`${a}:7084`,localhost:"http://localhost:7072"},y={polygon:"https://polygon.relayer.hinkal.pro",arbMainnet:"https://arbMainnet.relayer.hinkal.pro",ethMainnet:"https://ethMainnet.relayer.hinkal.pro",bnbMainnet:"https://bnbMainnet.relayer.hinkal.pro",avalanche:"https://avalanche.relayer.hinkal.pro",optimism:"https://optimism.relayer.hinkal.pro",base:"https://base.relayer.hinkal.pro",localhost:"http://localhost:7073"},u={polygon:`${t}:7073`,arbMainnet:`${t}:7071`,ethMainnet:`${t}:7081`,bnbMainnet:`${t}:7077`,avalanche:`${t}:7079`,optimism:`${t}:7083`,base:`${t}:7085`,localhost:"http://localhost:7073"},L={polygon:`${a}:7073`,arbMainnet:`${a}:7071`,ethMainnet:`${a}:7081`,bnbMainnet:`${a}:7077`,avalanche:`${a}:7079`,optimism:`${a}:7083`,base:`${a}:7085`,localhost:"http://localhost:7073"};exports.API_CONFIG=l;exports.DATA_SERVER_CONFIG=p;exports.DATA_SERVER_PORT=h;exports.DATA_SERVER_URL_LOCAL=R;exports.DATA_SERVER_URL_PRODUCTION=c;exports.PLAYGROUND_RELAYER_URLS=L;exports.PLAYGROUND_SERVER_URLS=S;exports.PLAYGROUND_URL=a;exports.RELAYER_CONFIG=d;exports.RELAYER_URLS=y;exports.SERVER_URLS=g;exports.STAGING_RELAYER_URLS=u;exports.STAGING_SERVER_URLS=k;exports.STAGING_URL=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(e,n)=>`${e}${n!==void 0?`?week=${n}`:""}`,l={ROUTES:{checkKycStatus:"/check-kyc-status",getUserSignature:"/signature-request",startReclaimVerification:"/start-reclaim-verification",startUserVerification:"/start-aiprise-verification",zkMeAccessToken:"/zkMeAccessToken",getCommitmentsSnapshot:"/snapshots/commitments",getAccessTokenSnapshot:"/snapshots/access-tokens",callOdosAPI:"/OdosSwapData",callOneInchAPI:"/OneInchSwapData",getOdosPriceForToken:e=>`/getOdosPriceForToken/${e}`,getNullifiers:"/snapshots/nullifiers",axelarGasEstimate:(e,n,i,o)=>`/axelarGasEstimate/${e}/${n}/${i}/${o}`,userHasAccessToken:e=>`/user-has-access-token/${e}`,afterKycCall:"/after-kyc-callback",restoreSnapshots:"/snapshots/restore",beefyGraphAPI:"/BeefyGraphData",monitor:"/monitor",checkRisk:e=>`/check-risk/${e}`,userVerifyTransactions:"/user-verify-transactions",verificationStartDate:e=>`/verification-start-date/${e}`,userGetTransactions:(e,n)=>`/user-get-transactions/${e}/${n}`,getActiveCode:e=>`/get-active-code/${e}`,updateActiveCode:"/update-active-code",getWeeklyReferralCodes:(e,n)=>`/get-weekly-referral-codes/${e}/${n}`,getReferralCodes:e=>s(`/get-referral-codes/${e}`),getRewardsHistory:e=>`/get-rewards-history/${e}`,addReferralCode:"/update-referral-code",getLpProgram:e=>s(`/getLpProgram/${e}`),points:(e,n)=>`/points/${e}/${n}`,leaderboard:e=>`/leaderboard/${e}`,setRewardsReceivingData:"/set-user-rewards-receiving-data",getRewardsReceivingData:e=>`/get-user-rewards-receiving-data/${e}`,seasonLeaderboard:e=>`/season-leaderboard/${e}`,getUserAnonymityStakingPoints:e=>`/hinkal-points/${e}`,getLimitedAnonymityStakingPoints:e=>`/hinkal-points/limited/${e}`,getUserAnonymityStakingReferralPoints:e=>`/hinkal-referral-codes-info/${e}`,userHasPassword:e=>`/user-has-password/${e}`,userRegisterPassword:"/user-register-password",getNickname:e=>`/get-nickname/${e}`,addNickname:"/update-nickname",getLidoDefiData:"lido/defi",getLidoStats:"lido/stats",getLidoEthStats:"lido/eth-stats",getLidoDiscount:"lido/discount",getLidoRequestTime:"lido/request-time",getLidoMaticReward:"lido/matic-rewards",pendleAddLiquiditySingleToken:"pendle/addLiquiditySingleToken",pendleAddLiquiditySingleSy:"pendle/addLiquiditySingleSy",pendleAddLiquiditySinglePt:"pendle/addLiquiditySinglePt",pendleAddLiquidityDualTokenAndPt:"pendle/addLiquidityDualTokenAndPt",pendleAddLiquidityDualSyAndPt:"pendle/addLiquidityDualSyAndPt",pendleAddLiquiditySingleTokenKeepYt:"pendle/addLiquiditySingleTokenKeepYt",pendleRemoveLiquiditySingleToken:"pendle/removeLiquiditySingleToken",pendleRemoveLiquiditySingleSy:"pendle/removeLiquiditySingleSy",pendleRemoveLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleRemoveLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",pendleRemoveLiquidityDualSyAndPt:"pendle/removeLiquidityDualSyAndPt",pendleMintPyFromToken:"pendle/mintPyFromToken",pendlRedeemPyToToken:"pendle/redeemPyToToken",removeLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",removeLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleSwapExactTokenForYT:"pendle/swapExactTokenForYt",pendleSwapExactTokenForPt:"pendle/swapExactTokenForPt",pendleSwapExactPtForToken:"pendle/swapExactPtForToken",pendleSwapExactPtForYt:"pendle/swapExactPtForYt",pendleSwapExactYtForToken:"pendle/swapExactYtForToken",pendleSwapExactYtForPt:"pendle/swapExactYtForPt",pendleSyTokenInOut:"pendle/syTokenInOut",connextReceiveFee:(e,n)=>`/connextEstimateReceive/${e}/${n}`,stakedYield:"/staked-yield",getPublicWalletInformation:e=>`/get-public-wallet-data/${e}`}},d={getGasEstimate:(e,n,i,o,r)=>`/gas-estimation/${e}/${o}/${n}/${i}/${r}`,getTokenPrice:"/get-token-price",getTokenPriceEth:e=>`/get-token-price-in-eth/${e}`,getTokenPrices:"/get-token-prices",TRANSACT:"/general-transact",getIdleRelay:"/get-idle-relay"},p={getUserPoints:e=>`/user-points/${e}`},t="http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com",a="http://ec2-18-144-10-166.us-west-1.compute.amazonaws.com",c="https://ethMainnet-data-server.hinkal.pro",R="http://localhost",h=7090,g={polygon:"https://polygon.server.hinkal.pro",arbMainnet:"https://arbMainnet.server.hinkal.pro",ethMainnet:"https://ethMainnet.server.hinkal.pro",bnbMainnet:"https://bnbMainnet.server.hinkal.pro",avalanche:"https://avalanche.server.hinkal.pro",optimism:"https://optimism.server.hinkal.pro",base:"https://base.server.hinkal.pro",localhost:"http://localhost:7072"},k={polygon:`${t}:7072`,arbMainnet:`${t}:7070`,ethMainnet:`${t}:7080`,bnbMainnet:`${t}:7076`,avalanche:`${t}:7078`,optimism:`${t}:7082`,base:`${t}:7084`,localhost:"http://localhost:7072"},S={polygon:`${a}:7072`,arbMainnet:`${a}:7070`,ethMainnet:`${a}:7080`,bnbMainnet:`${a}:7076`,avalanche:`${a}:7078`,optimism:`${a}:7082`,base:`${a}:7084`,localhost:"http://localhost:7072"},y={polygon:"https://polygon.relayer.hinkal.pro",arbMainnet:"https://arbMainnet.relayer.hinkal.pro",ethMainnet:"https://ethMainnet.relayer.hinkal.pro",bnbMainnet:"https://bnbMainnet.relayer.hinkal.pro",avalanche:"https://avalanche.relayer.hinkal.pro",optimism:"https://optimism.relayer.hinkal.pro",base:"https://base.relayer.hinkal.pro",localhost:"http://localhost:7073"},u={polygon:`${t}:7073`,arbMainnet:`${t}:7071`,ethMainnet:`${t}:7081`,bnbMainnet:`${t}:7077`,avalanche:`${t}:7079`,optimism:`${t}:7083`,base:`${t}:7085`,localhost:"http://localhost:7073"},L={polygon:`${a}:7073`,arbMainnet:`${a}:7071`,ethMainnet:`${a}:7081`,bnbMainnet:`${a}:7077`,avalanche:`${a}:7079`,optimism:`${a}:7083`,base:`${a}:7085`,localhost:"http://localhost:7073"};exports.API_CONFIG=l;exports.DATA_SERVER_CONFIG=p;exports.DATA_SERVER_PORT=h;exports.DATA_SERVER_URL_LOCAL=R;exports.DATA_SERVER_URL_PRODUCTION=c;exports.PLAYGROUND_RELAYER_URLS=L;exports.PLAYGROUND_SERVER_URLS=S;exports.PLAYGROUND_URL=a;exports.RELAYER_CONFIG=d;exports.RELAYER_URLS=y;exports.SERVER_URLS=g;exports.STAGING_RELAYER_URLS=u;exports.STAGING_SERVER_URLS=k;exports.STAGING_URL=t;
|
|
@@ -2,6 +2,7 @@ const s = (e, t) => `${e}${t !== void 0 ? `?week=${t}` : ""}`, l = {
|
|
|
2
2
|
ROUTES: {
|
|
3
3
|
checkKycStatus: "/check-kyc-status",
|
|
4
4
|
getUserSignature: "/signature-request",
|
|
5
|
+
startReclaimVerification: "/start-reclaim-verification",
|
|
5
6
|
startUserVerification: "/start-aiprise-verification",
|
|
6
7
|
zkMeAccessToken: "/zkMeAccessToken",
|
|
7
8
|
getCommitmentsSnapshot: "/snapshots/commitments",
|
|
@@ -125,7 +126,7 @@ const s = (e, t) => `${e}${t !== void 0 ? `?week=${t}` : ""}`, l = {
|
|
|
125
126
|
optimism: `${a}:7083`,
|
|
126
127
|
base: `${a}:7085`,
|
|
127
128
|
localhost: "http://localhost:7073"
|
|
128
|
-
},
|
|
129
|
+
}, R = {
|
|
129
130
|
polygon: `${n}:7073`,
|
|
130
131
|
arbMainnet: `${n}:7071`,
|
|
131
132
|
ethMainnet: `${n}:7081`,
|
|
@@ -141,7 +142,7 @@ export {
|
|
|
141
142
|
g as DATA_SERVER_PORT,
|
|
142
143
|
h as DATA_SERVER_URL_LOCAL,
|
|
143
144
|
c as DATA_SERVER_URL_PRODUCTION,
|
|
144
|
-
|
|
145
|
+
R as PLAYGROUND_RELAYER_URLS,
|
|
145
146
|
u as PLAYGROUND_SERVER_URLS,
|
|
146
147
|
n as PLAYGROUND_URL,
|
|
147
148
|
d as RELAYER_CONFIG,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants/chains.constants.cjs"),n=require("../../functions/web3/events/balanceChangedHandler.cjs");require("../../types/circom-data.types.cjs");const r=require("../../types/ethereum-network.types.cjs");require("../../types/transactions.types.cjs");require("../../types/curve.types.cjs");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants/chains.constants.cjs"),n=require("../../functions/web3/events/balanceChangedHandler.cjs");require("../../types/circom-data.types.cjs");const r=require("../../types/ethereum-network.types.cjs");require("../../types/transactions.types.cjs");require("../../types/curve.types.cjs");const s=require("../snapshot/ClientAccessTokenSnapshotService.cjs"),i=require("../snapshot/ClientCommitmentsSnapshotService.cjs"),o=require("../snapshot/ClientNullifierSnapshotService.cjs"),a=async e=>{const{maxPageSize:t}=c.networkRegistry[e.getCurrentChainId()];e.commitmentsSnapshotService?.intervalClear(),e.commitmentsSnapshotService=new i.ClientCommitmentsSnapshotService(e.getContractWithFetcher(r.ContractType.HinkalContract),t),e.nullifierSnapshotService?.intervalClear(),e.nullifierSnapshotService=new o.ClientNullifierSnapshotService(e.getContractWithFetcher(r.ContractType.HinkalContract),t),e.accessTokenSnapshotService?.intervalClear(),e.accessTokenSnapshotService=new s.ClientAccessTokenSnapshotService(e.getContractWithFetcher(r.ContractType.CrossChainAccessTokenContract),t),await Promise.all([e.commitmentsSnapshotService.init(),e.nullifierSnapshotService.init(),e.accessTokenSnapshotService.init()]),e.merkleTreeHinkal=e.commitmentsSnapshotService.merkleTree,e.merkleTreeAccessToken=e.accessTokenSnapshotService.merkleTree,e.nullifiers=e.nullifierSnapshotService.nullifiers,e.encryptedOutputs=e.commitmentsSnapshotService.encryptedOutputs,e.commitmentsSnapshotService.onNewEvent=n.balanceChangedHandler,e.nullifierSnapshotService.onNewEvent=n.balanceChangedHandler};exports.resetMerkleTrees=a;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { networkRegistry as
|
|
1
|
+
import { networkRegistry as n } from "../../constants/chains.constants.mjs";
|
|
2
2
|
import { balanceChangedHandler as o } from "../../functions/web3/events/balanceChangedHandler.mjs";
|
|
3
3
|
import "../../types/circom-data.types.mjs";
|
|
4
4
|
import { ContractType as r } from "../../types/ethereum-network.types.mjs";
|
|
5
5
|
import "../../types/transactions.types.mjs";
|
|
6
6
|
import "../../types/curve.types.mjs";
|
|
7
|
-
import { ClientAccessTokenSnapshotService as
|
|
7
|
+
import { ClientAccessTokenSnapshotService as c } from "../snapshot/ClientAccessTokenSnapshotService.mjs";
|
|
8
8
|
import { ClientCommitmentsSnapshotService as i } from "../snapshot/ClientCommitmentsSnapshotService.mjs";
|
|
9
|
-
import { ClientNullifierSnapshotService as
|
|
10
|
-
const
|
|
11
|
-
const { maxPageSize: t } =
|
|
9
|
+
import { ClientNullifierSnapshotService as s } from "../snapshot/ClientNullifierSnapshotService.mjs";
|
|
10
|
+
const T = async (e) => {
|
|
11
|
+
const { maxPageSize: t } = n[e.getCurrentChainId()];
|
|
12
12
|
e.commitmentsSnapshotService?.intervalClear(), e.commitmentsSnapshotService = new i(
|
|
13
13
|
e.getContractWithFetcher(r.HinkalContract),
|
|
14
|
-
t
|
|
15
|
-
|
|
16
|
-
), e.nullifierSnapshotService?.intervalClear(), e.nullifierSnapshotService = new m(
|
|
14
|
+
t
|
|
15
|
+
), e.nullifierSnapshotService?.intervalClear(), e.nullifierSnapshotService = new s(
|
|
17
16
|
e.getContractWithFetcher(r.HinkalContract),
|
|
18
17
|
t
|
|
19
|
-
), e.accessTokenSnapshotService?.intervalClear(), e.accessTokenSnapshotService = new
|
|
18
|
+
), e.accessTokenSnapshotService?.intervalClear(), e.accessTokenSnapshotService = new c(
|
|
20
19
|
e.getContractWithFetcher(r.CrossChainAccessTokenContract),
|
|
21
20
|
t
|
|
22
21
|
), await Promise.all([
|
|
@@ -26,5 +25,5 @@ const d = async (e) => {
|
|
|
26
25
|
]), e.merkleTreeHinkal = e.commitmentsSnapshotService.merkleTree, e.merkleTreeAccessToken = e.accessTokenSnapshotService.merkleTree, e.nullifiers = e.nullifierSnapshotService.nullifiers, e.encryptedOutputs = e.commitmentsSnapshotService.encryptedOutputs, e.commitmentsSnapshotService.onNewEvent = o, e.nullifierSnapshotService.onNewEvent = o;
|
|
27
26
|
};
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
T as resetMerkleTrees
|
|
30
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../utxo/Utxo.cjs"),u=require("../../webworker/utxoWorker/utxoWorker.types.cjs"),y=require("../../webworker/performTaskWithWorker.cjs"),d=require("../../webworker/worker.registry.cjs"),m=require("../../constants/vite.constants.cjs");class S{NUM_WORKERS;NUM_WORKERS_BATCH_PROCESS;constructor(){m.isNode?(this.NUM_WORKERS=1,this.NUM_WORKERS_BATCH_PROCESS=1):(this.NUM_WORKERS=3,this.NUM_WORKERS_BATCH_PROCESS=Math.ceil(navigator.deviceMemory??4))}async createUtxoPromise(s){return await y.performTaskWithWorker({type:d.WorkerVariant.UTXO,payload:s})}async batchFilterUtxosWithNullifier(s,t){const r=this.sliceArrayIntoParts(s,this.NUM_WORKERS).map(o=>this.createUtxoPromise({type:u.UtxoWorkerActionType.BATCH_FILTER_UTXOS_WITH_NULLIFIER,data:{utxos:o.map(a=>a.getConstructableParams()),nullifiers:t}}));return(await Promise.all(r)).flat().map(o=>new p.Utxo(o))}async buildBatchProcess(s,t){const r=this.sliceArrayIntoParts(s,this.NUM_WORKERS).map(a=>this.createUtxoPromise({type:u.UtxoWorkerActionType.BUILD_UTXOS,data:{signature:t.getSignature(),encryptedOutputs:a}}));return(await Promise.all(r)).flat().map(a=>new p.Utxo(a))}sliceArrayIntoParts(s,t){const e=Math.ceil(s.length/t);return Array.from({length:t},(c,o)=>s.slice(e*o,e*(o+1)))}findLastOutput(s,t){let e=t;return s.forEach(r=>{r!==t&&(e=r)}),e}async batchProcess(s,t,e){const r=this.sliceArrayIntoParts(s,this.NUM_WORKERS_BATCH_PROCESS),c=e.getSignature(),o=r.map(i=>{const n={type:u.UtxoWorkerActionType.DECIPHER_OUTPUTS,data:{encryptedOutputs:i,lastOutput:t,signature:c}};return this.createUtxoPromise(n)}),a=await Promise.all(o),R=a.map(({additionalEncryptedOutputs:i})=>i).flat(),l=new Set,h=R.reduce((i,n)=>l.has(n.value)?i:(l.add(n.value),[...i,n]),[]),U=this.findLastOutput(a.map(i=>i.lastOutput),t);return{additionalEncryptedOutputs:h,lastOutput:U??t}}}exports.MultiThreadedUtxoUtils=S;
|
|
@@ -16,5 +16,5 @@ export declare class MultiThreadedUtxoUtils implements IMultiThreadedUtxoUtils {
|
|
|
16
16
|
buildBatchProcess(encryptedOutputs: EncryptedOutputWithSign[], userKeys: UserKeys): Promise<Utxo[]>;
|
|
17
17
|
sliceArrayIntoParts<T>(arr: T[], numberOfParts: number): T[][];
|
|
18
18
|
findLastOutput(lastOutputsArray: string[], lastOutput: string): string;
|
|
19
|
-
batchProcess(encryptedOutputs: EncryptedOutputWithSign[], lastOutput: string, userKeys: UserKeys
|
|
19
|
+
batchProcess(encryptedOutputs: EncryptedOutputWithSign[], lastOutput: string, userKeys: UserKeys): Promise<OutputsWithSignAndLast<boolean>>;
|
|
20
20
|
}
|