@hinkal/common 0.0.104 → 0.0.107

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.
Files changed (272) hide show
  1. package/API/API.js +58 -0
  2. package/API/HinkalPointsCalls.js +38 -0
  3. package/API/callBeefyGraphAPI.js +37 -0
  4. package/API/callCurveAPI.js +156 -0
  5. package/API/callMonitor.js +30 -0
  6. package/API/callOdosAPI.js +44 -0
  7. package/API/callOneInchAPI.js +37 -0
  8. package/API/callRelayer.js +32 -0
  9. package/API/checkRisk.js +30 -0
  10. package/API/dataServerCalls.js +32 -0
  11. package/API/fetchCommitmentsCache.js +31 -0
  12. package/API/fetchNullifiers.js +30 -0
  13. package/API/getAxelarGasEstimate.js +37 -0
  14. package/API/getCoingeckoPrice.js +27 -0
  15. package/API/getConnextReceiveFee.js +30 -0
  16. package/API/getGasEstimates.js +38 -0
  17. package/API/getRelayerURL.js +32 -0
  18. package/API/getServerURL.js +67 -0
  19. package/API/getTokenPrice.js +41 -0
  20. package/API/kycCalls.js +32 -0
  21. package/API/passwordCalls.js +36 -0
  22. package/API/referralProgramCalls.js +58 -0
  23. package/API/relayCalls.js +30 -0
  24. package/API/restoreSnapshots.js +32 -0
  25. package/API/rewardsPointsCalls.js +40 -0
  26. package/API/userVerifyTransactions.js +45 -0
  27. package/README.md +116 -1
  28. package/assets/{snarkjsWorkerLogic-CatB8Hso.js → snarkjsWorkerLogic-Fv0M38Mc.js} +2 -2
  29. package/assets/{utxoWorkerLogic-DDqTe7hT.js → utxoWorkerLogic-CtFLQiAX.js} +2 -2
  30. package/assets/{zkProofWorkerLauncher-C-pvCm0b.js → zkProofWorkerLauncher-J3Ts5_Ba.js} +1 -1
  31. package/assets/{zkProofWorkerLogic-CLpRqNRx.js → zkProofWorkerLogic-CPNuu61R.js} +18 -19
  32. package/constants/assets.constants.js +16 -0
  33. package/constants/axelar.constants.js +55 -0
  34. package/constants/backend.constants.js +18 -0
  35. package/constants/beefy.registry.js +24 -0
  36. package/constants/chains.constants.js +204 -0
  37. package/constants/coingecko.constants.js +53 -0
  38. package/constants/contracts.constants.js +276 -0
  39. package/constants/crvCvx.registry.js +636 -0
  40. package/constants/crvDynamic.registry.js +24 -0
  41. package/constants/deploy-data/deploy-data-arbMainnet.json.js +7415 -0
  42. package/constants/deploy-data/deploy-data-avalanche.json.js +7411 -0
  43. package/constants/deploy-data/deploy-data-axelar1.json.js +4329 -0
  44. package/constants/deploy-data/deploy-data-axelar2.json.js +4329 -0
  45. package/constants/deploy-data/deploy-data-base.json.js +8425 -0
  46. package/constants/deploy-data/deploy-data-blast.json.js +9600 -0
  47. package/constants/deploy-data/deploy-data-bnbMainnet.json.js +6877 -0
  48. package/constants/deploy-data/deploy-data-ethMainnet.json.js +11427 -0
  49. package/constants/deploy-data/deploy-data-localhost.json.js +13283 -0
  50. package/constants/deploy-data/deploy-data-optimism.json.js +7417 -0
  51. package/constants/deploy-data/deploy-data-polygon.json.js +7439 -0
  52. package/constants/fees.constants.js +57 -0
  53. package/constants/kyc.constants.js +118 -0
  54. package/constants/lido.constants.js +13 -0
  55. package/constants/pendle.registry.js +253 -0
  56. package/constants/protocol.constants.js +26 -0
  57. package/constants/reorg-depths.constants.js +15 -0
  58. package/constants/rewards.constants.js +27 -0
  59. package/constants/server.constants.js +157 -0
  60. package/constants/token-data/ERC20Registry.js +85 -0
  61. package/constants/token-data/arbMainnetRegistry.json.js +946 -0
  62. package/constants/token-data/arbMainnetRegistryFixed.json.js +856 -0
  63. package/constants/token-data/avalancheRegistry.json.js +591 -0
  64. package/constants/token-data/avalancheRegistryFixed.json.js +591 -0
  65. package/constants/token-data/baseRegistry.json.js +490 -0
  66. package/constants/token-data/baseRegistryFixed.json.js +463 -0
  67. package/constants/token-data/blastRegistry.json.js +137 -0
  68. package/constants/token-data/blastRegistryFixed.json.js +137 -0
  69. package/constants/token-data/bnbMainnetRegistry.json.js +973 -0
  70. package/constants/token-data/bnbMainnetRegistryFixed.json.js +973 -0
  71. package/constants/token-data/coingeckoRegistry.json.js +115623 -0
  72. package/constants/token-data/ethMainnetRegistry.json.js +2700 -0
  73. package/constants/token-data/ethMainnetRegistryFixed.json.js +2251 -0
  74. package/constants/token-data/index.js +6 -0
  75. package/constants/token-data/localhostRegistry.json.js +2768 -0
  76. package/constants/token-data/optimismRegistry.json.js +1455 -0
  77. package/constants/token-data/optimismRegistryFixed.json.js +1392 -0
  78. package/constants/token-data/polygonRegistry.json.js +1327 -0
  79. package/constants/token-data/polygonRegistryFixed.json.js +1255 -0
  80. package/constants/token-data/popularTokens.constants.js +14 -0
  81. package/constants/token-data/tokenPricing.consts.js +8 -0
  82. package/constants/vite.constants.js +29 -0
  83. package/crypto/babyJub.js +15 -0
  84. package/crypto/poseidon.js +26 -0
  85. package/crypto/preProcessing.js +9 -0
  86. package/data-structures/Hinkal/Hinkal.js +299 -0
  87. package/data-structures/Hinkal/hinkalActionBeefy.js +101 -0
  88. package/data-structures/Hinkal/hinkalActionConvex.js +83 -0
  89. package/data-structures/Hinkal/hinkalActionCurve.js +112 -0
  90. package/data-structures/Hinkal/hinkalActionLidoEth.js +91 -0
  91. package/data-structures/Hinkal/hinkalActionPendle.js +140 -0
  92. package/data-structures/Hinkal/hinkalActionPendleLP.js +96 -0
  93. package/data-structures/Hinkal/hinkalActionStake.js +138 -0
  94. package/data-structures/Hinkal/hinkalActionVolatile.js +112 -0
  95. package/data-structures/Hinkal/hinkalDeposit.js +95 -0
  96. package/data-structures/Hinkal/hinkalGetZkMeProvider.js +47 -0
  97. package/data-structures/Hinkal/hinkalPrivateWallet.js +66 -0
  98. package/data-structures/Hinkal/hinkalSwap.js +98 -0
  99. package/data-structures/Hinkal/hinkalTransfer.js +5 -0
  100. package/data-structures/Hinkal/hinkalWithdraw.js +91 -0
  101. package/data-structures/Hinkal/resetMerkleTrees.js +49 -0
  102. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.js +83 -0
  103. package/data-structures/ValueCache/ValueCache.js +25 -0
  104. package/data-structures/crypto-keys/decodeUTXO.js +40 -0
  105. package/data-structures/crypto-keys/encryptDecryptUtxo.js +41 -0
  106. package/data-structures/crypto-keys/keyUtils.js +10 -0
  107. package/data-structures/crypto-keys/keys.js +90 -0
  108. package/data-structures/custom-token-registry/CustomTokenRegistry.js +33 -0
  109. package/data-structures/event-service/AbstractAccessTokenSnapshotService.js +131 -0
  110. package/data-structures/event-service/AbstractCommitmentsSnapshotService.js +132 -0
  111. package/data-structures/event-service/AbstractEventService.js +118 -0
  112. package/data-structures/event-service/AbstractNullifierSnapshotService.js +59 -0
  113. package/data-structures/event-service/AbstractSnapshotService.js +35 -0
  114. package/data-structures/merkle-tree/MerkleTree.js +177 -0
  115. package/data-structures/merkle-tree/MerkleTreeIncompleteError.js +8 -0
  116. package/data-structures/snapshot/ClientAccessTokenSnapshotService.js +48 -0
  117. package/data-structures/snapshot/ClientCommitmentsSnapshotService.js +47 -0
  118. package/data-structures/snapshot/ClientNullifierSnapshotService.js +44 -0
  119. package/data-structures/token-price-fetcher/TokenChecker.js +29 -0
  120. package/data-structures/token-price-fetcher/TokenPriceFetcher.js +218 -0
  121. package/data-structures/transactions-manager/TransactionsManager.js +194 -0
  122. package/data-structures/transactions-manager/history/getBeefyData.js +68 -0
  123. package/data-structures/transactions-manager/history/getConvexData.js +57 -0
  124. package/data-structures/transactions-manager/history/getCurveData.js +97 -0
  125. package/data-structures/transactions-manager/history/getDepositData.js +36 -0
  126. package/data-structures/transactions-manager/history/getLidoData.js +44 -0
  127. package/data-structures/transactions-manager/history/getPendleData.js +59 -0
  128. package/data-structures/transactions-manager/history/getSwapData.js +43 -0
  129. package/data-structures/transactions-manager/history/getTxDetails.js +74 -0
  130. package/data-structures/transactions-manager/history/getVolatileData.js +75 -0
  131. package/data-structures/transactions-manager/history/history.types.js +62 -0
  132. package/data-structures/transactions-manager/history/history.utils.js +8 -0
  133. package/data-structures/utxo/Utxo.js +134 -0
  134. package/data-structures/volatile-helper/VolatileHelper.js +181 -0
  135. package/error-handling/customErrors/ErrorWithAmount.js +9 -0
  136. package/error-handling/customErrors/FeeOverTransactionValueError.js +9 -0
  137. package/error-handling/customErrors/customErrors.helpers.js +21 -0
  138. package/error-handling/error-codes.constants.js +184 -0
  139. package/error-handling/get-error.message.js +53 -0
  140. package/error-handling/handleErrorRestore.js +35 -0
  141. package/error-handling/logError.js +7 -0
  142. package/error-handling/types.js +4 -0
  143. package/externalABIs/BUSD.js +519 -0
  144. package/externalABIs/BabPassport.json.js +24 -0
  145. package/externalABIs/BeefyRouterAbi.json.js +1022 -0
  146. package/externalABIs/BeefyStrategyAbi.json.js +1423 -0
  147. package/externalABIs/BeefyVaultAbi.json.js +570 -0
  148. package/externalABIs/BeefyZapAbi.json.js +208 -0
  149. package/externalABIs/BeefyZapOneInchAbi.json.js +340 -0
  150. package/externalABIs/ConvexBoosterAbi.json.js +674 -0
  151. package/externalABIs/ConvexBoosterAbiMainnet.json.js +1002 -0
  152. package/externalABIs/ConvexRewardPoolAbi.json.js +883 -0
  153. package/externalABIs/CurveReadingWrapperAbi.json.js +1422 -0
  154. package/externalABIs/CurveWrappedMainPool.json.js +1136 -0
  155. package/externalABIs/CurveZap.json.js +262 -0
  156. package/externalABIs/CvxCrvUtilities.json.js +264 -0
  157. package/externalABIs/DAI.js +334 -0
  158. package/externalABIs/ERC20.json.js +291 -0
  159. package/externalABIs/GalxePassport.json.js +41 -0
  160. package/externalABIs/IQuoterV2.json.js +205 -0
  161. package/externalABIs/ISwapRouter.json.js +568 -0
  162. package/externalABIs/IUniswapV3Factory.json.js +201 -0
  163. package/externalABIs/IUniswapV3Pool.json.js +999 -0
  164. package/externalABIs/LidoStEthAbi.json.js +1603 -0
  165. package/externalABIs/LidoStMaticAbi.json.js +1764 -0
  166. package/externalABIs/LidoStakeManagerAbi.json.js +2082 -0
  167. package/externalABIs/LidoWithdrawalQueueERC721Abi.json.js +2030 -0
  168. package/externalABIs/LidoWstEthAbi.json.js +480 -0
  169. package/externalABIs/OptimismGasPriceOracle.json.js +206 -0
  170. package/externalABIs/PendleRouterAbi.json.js +173 -0
  171. package/externalABIs/PoLidoNftAbi.json.js +701 -0
  172. package/externalABIs/SanctionsList.js +89 -0
  173. package/externalABIs/USDC.js +721 -0
  174. package/externalABIs/USDR.js +346 -0
  175. package/externalABIs/USDR3CRV.js +542 -0
  176. package/externalABIs/USDT.js +393 -0
  177. package/externalABIs/UniswapV2PoolAbi.json.js +80 -0
  178. package/externalABIs/WETH.js +156 -0
  179. package/externalABIs/amToken.js +350 -0
  180. package/externalABIs/transactionsProver.json.js +39 -0
  181. package/functions/kyc/authentoHelper.js +42 -0
  182. package/functions/kyc/passportHelper.js +39 -0
  183. package/functions/kyc/zkMeHelper.js +56 -0
  184. package/functions/pre-transaction/getFlatFees.js +203 -0
  185. package/functions/pre-transaction/interaction-to-action.js +57 -0
  186. package/functions/pre-transaction/outputUtxoProcessing.js +45 -0
  187. package/functions/pre-transaction/process-gas-estimates.js +57 -0
  188. package/functions/pre-transaction/processAmountChanges.js +229 -0
  189. package/functions/private-wallet/emporium.helpers.js +19 -0
  190. package/functions/private-wallet/opProducer.js +24 -0
  191. package/functions/protocols/convex.protocols.js +41 -0
  192. package/functions/protocols/curve.protocols.js +45 -0
  193. package/functions/protocols/pendle.helpers.js +108 -0
  194. package/functions/snarkjs/common.snarkjs.js +96 -0
  195. package/functions/snarkjs/constant.js +211 -0
  196. package/functions/snarkjs/constructEmporiumProof.js +105 -0
  197. package/functions/snarkjs/constructGeneralZkProof.js +129 -0
  198. package/functions/snarkjs/generateCircomData.js +60 -0
  199. package/functions/snarkjs/generateZkProof.js +18 -0
  200. package/functions/snarkjs/getZKFiles.js +30 -0
  201. package/functions/staking/index.js +40 -0
  202. package/functions/utils/amounts.utils.js +70 -0
  203. package/functions/utils/axelar.utils.js +38 -0
  204. package/functions/utils/cacheFunctions.js +67 -0
  205. package/functions/utils/caseInsensitive.utils.js +6 -0
  206. package/functions/utils/convertIntegrationProviderToExternalActionId.js +16 -0
  207. package/functions/utils/create-provider.js +5 -0
  208. package/functions/utils/enum.utils.js +14 -0
  209. package/functions/utils/erc20tokenFunctions.js +20 -0
  210. package/functions/utils/evmNetworkFunctions.js +29 -0
  211. package/functions/utils/external-action.utils.js +61 -0
  212. package/functions/utils/getDataFromTransaction.js +105 -0
  213. package/functions/utils/memoize.utils.js +14 -0
  214. package/functions/utils/nickname.utils.js +7 -0
  215. package/functions/utils/process.utils.js +4 -0
  216. package/functions/utils/reloadPage.js +4 -0
  217. package/functions/utils/requireEnv.js +7 -0
  218. package/functions/utils/resolve-sync.utils.js +22 -0
  219. package/functions/utils/serialize.utils.js +4 -0
  220. package/functions/utils/string.utils.js +14 -0
  221. package/functions/utils/time.utils.js +8 -0
  222. package/functions/utils/userAgent.js +15 -0
  223. package/functions/utils/volatile-patcher.utils.js +40 -0
  224. package/functions/web3/etherFunctions.js +41 -0
  225. package/functions/web3/events/balanceChangedHandler.js +10 -0
  226. package/functions/web3/events/getInputUtxoAndBalance.js +72 -0
  227. package/functions/web3/events/getShieldedBalance.js +107 -0
  228. package/functions/web3/events/web3RetrieveEvents.js +9 -0
  229. package/functions/web3/functionCalls/accessTokenCalls.js +48 -0
  230. package/functions/web3/functionCalls/approveToken.js +153 -0
  231. package/functions/web3/functionCalls/estimateGasRelayer.js +18 -0
  232. package/functions/web3/functionCalls/transactCallDirect.js +60 -0
  233. package/functions/web3/functionCalls/transactCallRelayer.js +42 -0
  234. package/functions/web3/odosAPI.js +65 -0
  235. package/functions/web3/oneInchAPI.js +61 -0
  236. package/functions/web3/runContractFunction.js +95 -0
  237. package/functions/web3/uniswapAPI.js +97 -0
  238. package/index.js +644 -0
  239. package/package.json +5 -4
  240. package/types/beefy.types.js +21 -0
  241. package/types/circom-data.types.js +22 -0
  242. package/types/curve.types.js +25 -0
  243. package/types/ethereum-network.types.js +4 -0
  244. package/types/external-action.types.js +4 -0
  245. package/types/hinkal.stake.types.js +4 -0
  246. package/types/hinkal.types.js +15 -0
  247. package/types/kyc.types.js +13 -0
  248. package/types/pendle.types.js +15 -0
  249. package/types/rewards.types.js +27 -0
  250. package/types/slippage.types.js +15 -0
  251. package/types/time.types.js +58 -0
  252. package/types/token.types.js +4 -0
  253. package/types/transactions.types.js +36 -0
  254. package/webworker/performTaskWithWorker.js +62 -0
  255. package/webworker/snarkjsWorker/snarkjsWorker.types.js +4 -0
  256. package/webworker/snarkjsWorker/snarkjsWorkerLogic.js +32 -0
  257. package/webworker/utxoWorker/utxoWorker.types.js +4 -0
  258. package/webworker/utxoWorker/utxoWorkerLogic.js +70 -0
  259. package/webworker/viteWorkerURL.constant.d.ts +3 -3
  260. package/webworker/worker.registry.js +4 -0
  261. package/webworker/workerFactory.d.ts +0 -1
  262. package/webworker/workerFactory.js +42 -0
  263. package/{workerProxy-BDj498Ht.mjs → webworker/workerProxy.js} +1 -1
  264. package/webworker/zkProofWorker/zkProofWorker.types.js +4 -0
  265. package/webworker/zkProofWorker/zkProofWorkerLogic.js +66 -0
  266. package/assets/viteWorkerURL.constant-DrIQXA2B.js +0 -11
  267. package/index-DbehuQxV.mjs +0 -398145
  268. package/index.mjs +0 -457
  269. package/snarkjsWorkerLogic-BpNWzeoy.mjs +0 -12086
  270. package/utxoWorkerLogic-D7NuHk_K.mjs +0 -64
  271. package/viteWorkerURL.constant-Bc7ufzqC.mjs +0 -9
  272. package/zkProofWorkerLogic-Bnalmuka.mjs +0 -60
@@ -0,0 +1,57 @@
1
+ import "./chains.constants.js";
2
+ import "../types/circom-data.types.js";
3
+ import { slippageLevels as A } from "../types/slippage.types.js";
4
+ import "../types/transactions.types.js";
5
+ import "../types/curve.types.js";
6
+ import { isDevelopment as m } from "./vite.constants.js";
7
+ import "./contracts.constants.js";
8
+ import "./kyc.constants.js";
9
+ import "./coingecko.constants.js";
10
+ import "./axelar.constants.js";
11
+ import "./rewards.constants.js";
12
+ import "./reorg-depths.constants.js";
13
+ import "ethers";
14
+ import "circomlibjs";
15
+ import { absBigInt as s } from "../functions/utils/amounts.utils.js";
16
+ import "../data-structures/crypto-keys/keys.js";
17
+ import "axios";
18
+ import "../data-structures/crypto-keys/encryptDecryptUtxo.js";
19
+ import "../functions/web3/events/getShieldedBalance.js";
20
+ import "../webworker/workerFactory.js";
21
+ import "../functions/utils/external-action.utils.js";
22
+ import "../data-structures/custom-token-registry/CustomTokenRegistry.js";
23
+ import "../functions/utils/convertIntegrationProviderToExternalActionId.js";
24
+ import "../functions/utils/userAgent.js";
25
+ import "../data-structures/volatile-helper/VolatileHelper.js";
26
+ import "libsodium-wrappers";
27
+ const c = 8n, u = 3n, a = (t) => t ? c : u, i = (t, o = !1) => {
28
+ const e = s(t);
29
+ return a(o) * e / 10000n;
30
+ }, g = (t, o) => {
31
+ const e = s(t), n = A[o];
32
+ return BigInt(Math.round(n * 100)) * e / 10000n;
33
+ }, f = (t, o = !1) => {
34
+ const e = s(t), n = i(e, o);
35
+ return e - n;
36
+ }, q = (t, o = !1) => s(t) * 10000n / (10000n - a(o)), F = (t, o, e = !1) => {
37
+ const n = s(t), r = s(o), p = f(n, e) - r;
38
+ return console.log("flatFee", { flatFeesAbs: r, afterFlatFee: p, totalFee: o + i(n, e) }), p;
39
+ }, b = (t, o) => {
40
+ const e = s(t), n = g(e, o);
41
+ return e - n;
42
+ }, z = (t, o, e, n = !1) => {
43
+ const r = s(t), p = s(o), l = b(r, e);
44
+ return F(l, p, n);
45
+ };
46
+ export {
47
+ u as HINKAL_EXTERNAL_ACTION_FEE,
48
+ c as HINKAL_UNIVERSAL_FEE,
49
+ F as getAmountAfterRelayAndFlatFees,
50
+ z as getAmountAfterRelayAndFlatFeesAndSlippage,
51
+ f as getAmountAfterRelayFee,
52
+ b as getAmountAfterSlippage,
53
+ q as getAmountWithoutFee,
54
+ a as getHinkalFeeRateInBeeps,
55
+ i as getRelayFee,
56
+ g as getSlippageFee
57
+ };
@@ -0,0 +1,118 @@
1
+ import { zkMeKycHandler as r } from "../functions/kyc/zkMeHelper.js";
2
+ import { authentoKycHandler as s } from "../functions/kyc/authentoHelper.js";
3
+ import { chainIds as o } from "./chains.constants.js";
4
+ const u = "https://onboard.aiprise.com", l = "https://onboard-sandbox.aiprise.com";
5
+ var i = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e))(i || {});
6
+ const n = {
7
+ 0: {
8
+ id: 0,
9
+ shortName: "AiPriseKyc",
10
+ fullName: " AiPrice Kyc",
11
+ apiURL: "",
12
+ onboardURL: "",
13
+ supportedChainIds: [],
14
+ supportsAllChains: !0
15
+ },
16
+ 1: {
17
+ id: 1,
18
+ shortName: "AiPriseKyb",
19
+ fullName: " AiPrice Kyb",
20
+ apiURL: "",
21
+ onboardURL: "",
22
+ supportedChainIds: [],
23
+ supportsAllChains: !0
24
+ },
25
+ 2: {
26
+ id: 2,
27
+ shortName: "Bab",
28
+ fullName: "Bab Token",
29
+ apiURL: "BabPassport",
30
+ onboardURL: "https://www.binance.com/en/BABT",
31
+ supportedChainIds: [o.bnbMainnet]
32
+ },
33
+ 3: {
34
+ id: 3,
35
+ shortName: "Galxe",
36
+ fullName: "Galxe Passport",
37
+ apiURL: "GalxePassport",
38
+ onboardURL: "https://galxe.com/passport",
39
+ supportedChainIds: [o.bnbMainnet]
40
+ },
41
+ // [Passports.QuadrataPassport]: {
42
+ // id: Passports.QuadrataPassport,
43
+ // shortName: 'Quadrata',
44
+ // fullName: 'Quadrata Passport',
45
+ // apiURL: 'QuadrataPassport',
46
+ // onboardURL: 'https://quadrata.com/onboard',
47
+ // supportedChainIds: [
48
+ // chainIds.ethMainnet,
49
+ // chainIds.arbMainnet,
50
+ // chainIds.optimism,
51
+ // chainIds.polygon,
52
+ // chainIds.avalanche,
53
+ // ],
54
+ // },
55
+ 4: {
56
+ id: 4,
57
+ shortName: "zkMe",
58
+ fullName: "zkMe Passport",
59
+ apiURL: "ZkMePassport",
60
+ onboardURL: "https://widget.zk.me/",
61
+ customHandleKYC: (e, a, t) => r(e, a, t),
62
+ supportedChainIds: [o.polygon],
63
+ params: {
64
+ merchId: "M2023090671844574053042402155408",
65
+ zkChainId: o.polygon
66
+ }
67
+ },
68
+ 5: {
69
+ id: 5,
70
+ shortName: "coinbase",
71
+ fullName: "coinbase Passport",
72
+ apiURL: "coinbasePassport",
73
+ onboardURL: "https://www.coinbase.com/onchain-verify",
74
+ supportedChainIds: [],
75
+ supportsAllChains: !0
76
+ },
77
+ 6: {
78
+ id: 6,
79
+ shortName: "Authento",
80
+ fullName: "Authento Passport",
81
+ apiURL: "AuthentoPassport",
82
+ onboardURL: "https://app.authento.io/",
83
+ customHandleKYC: (e, a, t) => s(e, a, t),
84
+ supportedChainIds: [],
85
+ supportsAllChains: !0
86
+ },
87
+ 7: {
88
+ id: 7,
89
+ shortName: "Authento",
90
+ fullName: "Authento Passport",
91
+ apiURL: "AuthentoPassport",
92
+ onboardURL: "https://app.authento.io/",
93
+ customHandleKYC: (e, a, t) => s(e, a, t),
94
+ supportedChainIds: [],
95
+ supportsAllChains: !0
96
+ }
97
+ }, c = Object.values(n).filter((e, a) => e.onboardURL?.length > 0 && Object.values(n).indexOf(e) === a).map((e) => e.onboardURL), m = "dbda56e5-31f5-4a37-a895-d4adca6c53fd", b = "96050d8d-23c9-4908-b285-2e6dec4c020b", A = {
98
+ verifyMessageText: "Sign this message to prove your ownership of this address and proceed with the identity verification process.",
99
+ domainName: "Hinkal",
100
+ type: {
101
+ Message: [
102
+ { name: "content", type: "string" },
103
+ { name: "for", type: "string" },
104
+ { name: "timestamp", type: "string" },
105
+ { name: "nonce", type: "string" }
106
+ ]
107
+ }
108
+ };
109
+ export {
110
+ b as AIPRISE_KYB_TEMPLATE_ID_PROD,
111
+ m as AIPRISE_KYC_TEMPLATE_ID_PROD,
112
+ A as AUTHENTO,
113
+ i as Passports,
114
+ n as SupportedPassports,
115
+ u as aipriseBaseOnboardingProductionUrl,
116
+ l as aipriseBaseOnboardingSandboxUrl,
117
+ c as supportedPassportLinks
118
+ };
@@ -0,0 +1,13 @@
1
+ const t = "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1", d = "0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908", e = "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0", s = "0xae7ab96520de3a18e5e111b5eaab095312d7fe84", a = "0x60a91E2B7A1568f0848f3D43353C453730082E46", o = "0x9ee91f9f426fa633d227f7a9b000e28b9dfd8599", c = "ETH", f = "MATIC", b = "wstETH", n = "stMATIC";
2
+ export {
3
+ c as ethSymbol,
4
+ s as lidoStEthContractAddress,
5
+ o as lidoStMaticAddress,
6
+ d as lidoStakeManagerAddress,
7
+ t as lidoWithdrawalQueueERC721Address,
8
+ e as lidoWstEthContractAddress,
9
+ f as maticSymbol,
10
+ a as poLidoNftAddress,
11
+ n as stMaticSymbol,
12
+ b as wstEthSymbol
13
+ };
@@ -0,0 +1,253 @@
1
+ import { caseInsensitiveEqual as r } from "../functions/utils/caseInsensitive.utils.js";
2
+ import { chainIds as c, getNonLocalhostChainId as C } from "./chains.constants.js";
3
+ const s = [
4
+ {
5
+ name: "Pendle-WEETH-JUNE2024",
6
+ // ether.fi eEth Pool
7
+ SY: "0xAC0047886a985071476a1186bE89222659970d65",
8
+ YT: "0xfb35Fd0095dD1096b1Ca49AD44d8C5812A201677",
9
+ PT: "0xc69Ad9baB1dEE23F4605a82b3354F8E40d1E5966",
10
+ market: "0xF32e58F92e60f4b0A37A69b95d642A471365EAe8",
11
+ expiry: 1719446400,
12
+ decimals: 18,
13
+ version: 1,
14
+ rewardTokens: []
15
+ },
16
+ {
17
+ name: "Pendle-RSETH-KELP-JUNE2024",
18
+ // Kelp Dao
19
+ SY: "0x730A5E2AcEbccAA5e9095723B3CB862739DA793c",
20
+ YT: "0x0ED3A1D45DfdCf85BCc6C7BAFDC0170A357B974C",
21
+ PT: "0xB05cABCd99cf9a73b19805edefC5f67CA5d1895E",
22
+ market: "0x4f43c77872Db6BA177c270986CD30c3381AF37Ee",
23
+ expiry: 1719446400,
24
+ decimals: 18,
25
+ version: 1,
26
+ rewardTokens: []
27
+ },
28
+ {
29
+ name: "Pendle-PUFETH-JUNE2024",
30
+ // Puffer
31
+ SY: "0x253008ba4aE2f3E6488DC998a5321D4EB1a0c905",
32
+ YT: "0x391B570e81e354a85a496952b66ADc831715f54f",
33
+ PT: "0xC58aa33Ce619c7f7Ac4929DF357D0Ef762edbD23",
34
+ market: "0x17BE998a578fD97687b24E83954FEc86Dc20c979",
35
+ expiry: 1719446400,
36
+ decimals: 18,
37
+ version: 1,
38
+ rewardTokens: []
39
+ },
40
+ {
41
+ name: "Pendle-ZIRCUIT-EZETH-JUNE2024",
42
+ // Zircuit ezEth (Renzo)
43
+ SY: "0x7a493be5c2ce014cd049bf178a1ac0db1b434744",
44
+ YT: "0x98601E27d41ccff643da9d981dc708cf9eF1F150",
45
+ PT: "0xDDFD5e912C1949B4bDb12579002c44B7A83F9E88",
46
+ market: "0xd7E0809998693fD87E81D51dE1619fd0EE658031",
47
+ expiry: 1719446400,
48
+ decimals: 18,
49
+ version: 1,
50
+ rewardTokens: []
51
+ },
52
+ {
53
+ name: "Pendle-ZIRCUIT-EETH-JUN2024",
54
+ // Zircuit eEth (ether.fi)
55
+ SY: "0xD7DF7E085214743530afF339aFC420c7c720BFa7",
56
+ YT: "0x7C2D26182adeEf96976035986cF56474feC03bDa",
57
+ PT: "0x4AE5411F3863CdB640309e84CEDf4B08B8b33FfF",
58
+ market: "0xe26D7f9409581f606242300fbFE63f56789F2169",
59
+ expiry: 1719446400,
60
+ decimals: 18,
61
+ version: 1,
62
+ rewardTokens: []
63
+ },
64
+ {
65
+ name: "Pendle-ZIRCUIT-RSETH-JUN2024",
66
+ // Zircuit Kelp Dao
67
+ SY: "0x34349c5569e7b846c3558961552d2202760a9789",
68
+ YT: "0x029aad400f6092dc735a65be95102efcc2fe64bf",
69
+ PT: "0x094be6bd31d7b860f7d2c1f280fd09f0463d7e67",
70
+ market: "0x445d25a1c31445fb29e65d12da8e0eea38174176",
71
+ expiry: 1719446400,
72
+ decimals: 18,
73
+ version: 1,
74
+ rewardTokens: []
75
+ },
76
+ {
77
+ name: "Pendle-SUSDE-MAINNET-SEP2024",
78
+ SY: "0x4139cDC6345aFFbaC0692b43bed4D059Df3e6d65",
79
+ YT: "0xdc02b77a3986da62C7A78FED73949C9767850809",
80
+ PT: "0x6c9f097e044506712B58EAC670c9a5fd4BCceF13",
81
+ market: "0xd1D7D99764f8a52Aff007b7831cc02748b2013b5",
82
+ expiry: 1727308800,
83
+ decimals: 18,
84
+ version: 1,
85
+ rewardTokens: []
86
+ },
87
+ {
88
+ name: "Pendle-WEETH-DEC2024",
89
+ SY: "0xAC0047886a985071476a1186bE89222659970d65",
90
+ YT: "0x129e6B5DBC0Ecc12F9e486C5BC9cDF1a6A80bc6A",
91
+ PT: "0x6ee2b5E19ECBa773a352E5B21415Dc419A700d1d",
92
+ market: "0x7d372819240D14fB477f17b964f95F33BeB4c704",
93
+ expiry: 1735171200,
94
+ decimals: 18,
95
+ version: 1,
96
+ rewardTokens: []
97
+ },
98
+ {
99
+ name: "Pendle-EZETH-DEC2024",
100
+ SY: "0x22E12A50e3ca49FB183074235cB1db84Fe4C716D",
101
+ YT: "0x7749F5Ed1e356EDc63D469c2fcaC9adEB56d1C2b",
102
+ PT: "0xf7906F274c174A52d444175729E3fa98f9bde285",
103
+ market: "0xD8F12bCDE578c653014F27379a6114F67F0e445f",
104
+ expiry: 1735171200,
105
+ decimals: 18,
106
+ version: 1,
107
+ rewardTokens: []
108
+ },
109
+ {
110
+ name: "Pendle-PUFETH-MAINNET-SEP2024",
111
+ SY: "0x253008ba4aE2f3E6488DC998a5321D4EB1a0c905",
112
+ YT: "0x1a65eB80a2ac3ea6E41D456DdD6E9cC5728BEf7C",
113
+ PT: "0xd4e75971eAF78a8d93D96df530f1FFf5f9F53288",
114
+ market: "0xA54FC268101c8b97DE19eF3141d34751a11996B2",
115
+ expiry: 1727308800,
116
+ decimals: 18,
117
+ version: 1,
118
+ rewardTokens: []
119
+ },
120
+ {
121
+ name: "Pendle-WEETH-MAINNET-SEP2024",
122
+ SY: "0xAC0047886a985071476a1186bE89222659970d65",
123
+ YT: "0xA54Df645A042D24121a737dAA89a57EbF8E0b71c",
124
+ PT: "0x1c085195437738d73d75DC64bC5A3E098b7f93b1",
125
+ market: "0xC8eDd52D0502Aa8b4D5C77361D4B3D300e8fC81c",
126
+ expiry: 1727308800,
127
+ decimals: 18,
128
+ version: 1,
129
+ rewardTokens: []
130
+ },
131
+ {
132
+ name: "Pendle-STETH-25DEC2025",
133
+ SY: "0xcbC72d92b2dc8187414F6734718563898740C0BC",
134
+ YT: "0xf3aBC972A0f537c1119C990d422463b93227Cd83",
135
+ PT: "0xf99985822fb361117FCf3768D34a6353E6022F5F",
136
+ market: "0xC374f7eC85F8C7DE3207a10bB1978bA104bdA3B2",
137
+ expiry: 1766620800,
138
+ decimals: 18,
139
+ version: 1,
140
+ rewardTokens: []
141
+ },
142
+ {
143
+ name: "Pendle-ZIRCUIT-WEETH-MAINNET-AUG2024",
144
+ SY: "0xD7DF7E085214743530afF339aFC420c7c720BFa7",
145
+ YT: "0x323DA63d354c9d79DF927fd21CE5B97aDD3a50d9",
146
+ PT: "0x7131eD1994BA1A2a5392FE4D99e579f49F5eD48F",
147
+ market: "0x6c269DFc142259c52773430b3c78503CC994a93E",
148
+ expiry: 1724284800,
149
+ version: 1,
150
+ decimals: 18,
151
+ rewardTokens: []
152
+ }
153
+ ], D = [
154
+ {
155
+ name: "Pendle-ANKRBNB-26JUN2025.",
156
+ SY: "0x58732F1C1243A0D5876a601FB8D1Ee508B21580D",
157
+ YT: "0x269f3E230C90C0a29140106D4cFB5860aF6F6827",
158
+ PT: "0x04eb6B56ff53f457c8E857ca8D4fbC8d9a531c0C",
159
+ market: "0xEDa1D0e1681D59dea451702963d6287b844Cb94C",
160
+ expiry: 1750896e3,
161
+ decimals: 18,
162
+ version: 2,
163
+ rewardTokens: []
164
+ },
165
+ {
166
+ name: "Pendle-WBETH-DEC2024",
167
+ SY: "0x96F77F24b3d17166FcaF3a9E3B8330fF38B966F9",
168
+ YT: "0x429c77E193Ff7e6c6c3B2e1f00877B91792e87ee",
169
+ PT: "0x70c1138B54ba212776d3A9d29b6160C54C31cd5d",
170
+ market: "0x080f52A881ba96EEE2268682733C857c560e5dd4",
171
+ expiry: 1735171200,
172
+ decimals: 18,
173
+ version: 2,
174
+ rewardTokens: []
175
+ }
176
+ ], x = [
177
+ {
178
+ name: "Pendle-RETH-OPTIMISM-JUNE2024",
179
+ SY: "0x9D6d509C0354ACA187aAC6beA7d063D3Ef68e2A0",
180
+ YT: "0xE8F0cf61598E0d7D20f99b978BdeFF4D4222FeB8",
181
+ PT: "0xAA92Ea52612fA5ee5aba5510682485c19750CB82",
182
+ market: "0x0C485Feb9E6fee816652Ea8f3beD2A8f59296E40",
183
+ expiry: 1719446400,
184
+ decimals: 18,
185
+ version: 2,
186
+ rewardTokens: []
187
+ },
188
+ {
189
+ name: "Pendle-WSTETH-OPTIMISM-SEP2024",
190
+ SY: "0x96A528f4414aC3CcD21342996c93f2EcdEc24286",
191
+ YT: "0x1DFe41cc7F7860BA7f1076ca6d0fedD707c87A00",
192
+ PT: "0xF4225F061E5E01aA59DE5E615729A9180301EB07",
193
+ market: "0x24fB77c8C776C75F869BC65e6856AF56f57d919F",
194
+ expiry: 1727308800,
195
+ decimals: 18,
196
+ version: 2,
197
+ rewardTokens: []
198
+ }
199
+ ], F = [
200
+ {
201
+ name: "Pendle-AAVE-USDC-JUNE2024",
202
+ SY: "0x50288c30c37FA1Ec6167a31E575EA8632645dE20",
203
+ YT: "0xA1c32EF8d3c4c30cB596bAb8647e11daF0FA5C94",
204
+ PT: "0xb72b988CAF33f3d8A6d816974fE8cAA199E5E86c",
205
+ market: "0x8621c587059357d6C669f72dA3Bfe1398fc0D0B5",
206
+ expiry: 1719446400,
207
+ decimals: 6,
208
+ version: 1,
209
+ rewardTokens: []
210
+ },
211
+ {
212
+ name: "Pendle-HLP-JUN2024.",
213
+ SY: "0xF18011766Cf11D905e93ed5626838d44c7FA14B7",
214
+ YT: "0x9D090Ef4Aafd0ACB821113a7689d5794e50bD047",
215
+ PT: "0xC595c9c28D78bb347C8177dFbB820484e2D99A66",
216
+ market: "0x0F249f735647992572eEa231fc24b35F7B6b34e1",
217
+ expiry: 1719446400,
218
+ decimals: 18,
219
+ version: 2,
220
+ rewardTokens: []
221
+ }
222
+ ], n = (e) => {
223
+ switch (e) {
224
+ case c.ethMainnet:
225
+ return s;
226
+ case c.bnbMainnet:
227
+ return D;
228
+ case c.optimism:
229
+ return x;
230
+ case c.arbMainnet:
231
+ return F;
232
+ default:
233
+ return [];
234
+ }
235
+ }, b = (e) => {
236
+ const a = C(e);
237
+ return n(a).map((d) => d.YT.toLowerCase());
238
+ }, T = (e, a) => b(e).some((E) => r(E, a)), o = (e, a) => {
239
+ const d = n(e).find((f) => r(f.YT, a))?.SY;
240
+ if (!d)
241
+ throw Error(`Sy Address for ${a} not found`);
242
+ return d;
243
+ };
244
+ export {
245
+ F as arbPendleRegistry,
246
+ D as bnbPendleRegistry,
247
+ s as ethPendleRegistry,
248
+ o as findSyAddress,
249
+ n as getPendleRegistryWithChainId,
250
+ b as getYtTokensWithChainId,
251
+ T as isYtToken,
252
+ x as optimismPendleRegistry
253
+ };
@@ -0,0 +1,26 @@
1
+ const e = `0x${"00".repeat(20)}`, n = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", r = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", s = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", t = "Hinkal Stake KeyPair Generator", c = "0xa33e4e1672ffdc9a08d0d8b50c79a7dee400bb5493d054076ff01733d7646b32", a = 60 * 60 * 1e3, o = 21888242871839275222246405745257275088548364400416034343698204186575808495617n, d = o / 2n, i = { current: e }, E = "curve-dao-token", b = "lp-3pool-curve", l = "convex-finance", u = {
2
+ 137: "polygon",
3
+ 42161: "arbitrum",
4
+ 1: "ethereum",
5
+ 43114: "avax",
6
+ 56: "bsc",
7
+ 10: "optimism",
8
+ 8453: "base"
9
+ // there is no blast
10
+ };
11
+ export {
12
+ o as CIRCOM_P,
13
+ d as CIRCOM_P_HALF,
14
+ u as beefyChainIds,
15
+ E as crvSymbol,
16
+ i as curveWithdrawGasTokenAddress,
17
+ r as curveZeroAddress,
18
+ l as cvxSymbol,
19
+ s as ethVolatileAddress,
20
+ n as oneInchZeroAddress,
21
+ c as ownerPublicKey,
22
+ a as permitSignatureValidFor,
23
+ t as signaturePhrase,
24
+ b as threePoolSymbol,
25
+ e as zeroAddress
26
+ };
@@ -0,0 +1,15 @@
1
+ import { chainIds as a } from "./chains.constants.js";
2
+ const o = {
3
+ [a.ethMainnet]: 3,
4
+ [a.bnbMainnet]: 10,
5
+ [a.polygon]: 32,
6
+ [a.avalanche]: 1,
7
+ [a.arbMainnet]: 1,
8
+ [a.optimism]: 1,
9
+ [a.base]: 1,
10
+ [a.blast]: 1,
11
+ [a.localhost]: 1
12
+ };
13
+ export {
14
+ o as blockReorgDepth
15
+ };
@@ -0,0 +1,27 @@
1
+ import "../types/circom-data.types.js";
2
+ import "../types/transactions.types.js";
3
+ import { RafflePrizeType as t } from "../types/rewards.types.js";
4
+ import "../types/curve.types.js";
5
+ const i = ["USDC"], a = "https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program", n = "https://hinkal-team.gitbook.io/hinkal/users/rewards/points", l = "https://hinkal-team.gitbook.io/hinkal/users/rebates/lp-program", p = 3, k = 9, m = {
6
+ 10: 2,
7
+ // if in the top 10
8
+ 50: 1.6,
9
+ // if in top 50 but not in top 10
10
+ 100: 1.2
11
+ // and so on
12
+ }, E = 7, c = 1e3, S = {
13
+ [t.Silver]: 1e4,
14
+ [t.Gold]: 2e4
15
+ };
16
+ export {
17
+ c as ACCESS_TOKEN_MINTING_POINTS,
18
+ E as CERTIFICATION_DISABLE_WEEK,
19
+ i as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
20
+ S as RafflePrizePoints,
21
+ m as boostAmounts,
22
+ l as lpLink,
23
+ p as lpProgramStartWeek,
24
+ n as pointsLink,
25
+ k as raffleProgramStartWeek,
26
+ a as referralLink
27
+ };
@@ -0,0 +1,157 @@
1
+ const s = (e, n) => `${e}${n !== void 0 ? `?week=${n}` : ""}`, l = {
2
+ ROUTES: {
3
+ checkKycStatus: "/check-kyc-status",
4
+ getUserSignature: "/signature-request",
5
+ startUserVerification: "/start-aiprise-verification",
6
+ zkMeAccessToken: "/zkMeAccessToken",
7
+ getCommitmentsSnapshot: "/snapshots/commitments",
8
+ getAccessTokenSnapshot: "/snapshots/access-tokens",
9
+ callOdosAPI: "/OdosSwapData",
10
+ callOneInchAPI: "/OneInchSwapData",
11
+ getOdosPriceForToken: (e) => `/getOdosPriceForToken/${e}`,
12
+ getNullifiers: "/snapshots/nullifiers",
13
+ axelarGasEstimate: (e, n, i, o) => `/axelarGasEstimate/${e}/${n}/${i}/${o}`,
14
+ userHasAccessToken: (e) => `/user-has-access-token/${e}`,
15
+ afterKycCall: "/after-kyc-callback",
16
+ restoreSnapshots: "/snapshots/restore",
17
+ beefyGraphAPI: "/BeefyGraphData",
18
+ monitor: "/monitor",
19
+ checkRisk: (e) => `/check-risk/${e}`,
20
+ userVerifyTransactions: "/user-verify-transactions",
21
+ verificationStartDate: (e) => `/verification-start-date/${e}`,
22
+ userGetTransactions: (e, n) => `/user-get-transactions/${e}/${n}`,
23
+ getActiveCode: (e) => `/get-active-code/${e}`,
24
+ updateActiveCode: "/update-active-code",
25
+ getWeeklyReferralCodes: (e, n) => `/get-weekly-referral-codes/${e}/${n}`,
26
+ getReferralCodes: (e) => s(`/get-referral-codes/${e}`),
27
+ getRewardsHistory: (e) => `/get-rewards-history/${e}`,
28
+ addReferralCode: "/update-referral-code",
29
+ getLpProgram: (e) => s(`/getLpProgram/${e}`),
30
+ points: (e, n) => `/points/${e}/${n}`,
31
+ leaderboard: (e) => `/leaderboard/${e}`,
32
+ setRewardsReceivingData: "/set-user-rewards-receiving-data",
33
+ getRewardsReceivingData: (e) => `/get-user-rewards-receiving-data/${e}`,
34
+ seasonLeaderboard: (e) => `/season-leaderboard/${e}`,
35
+ getUserAnonymityStakingPoints: (e) => `/hinkal-points/${e}`,
36
+ getLimitedAnonymityStakingPoints: (e) => `/hinkal-points/limited/${e}`,
37
+ getUserAnonymityStakingReferralPoints: (e) => `/hinkal-referral-codes-info/${e}`,
38
+ userHasPassword: (e) => `/user-has-password/${e}`,
39
+ userRegisterPassword: "/user-register-password",
40
+ getNickname: (e) => `/get-nickname/${e}`,
41
+ addNickname: "/update-nickname",
42
+ getLidoDefiData: "lido/defi",
43
+ getLidoStats: "lido/stats",
44
+ getLidoEthStats: "lido/eth-stats",
45
+ getLidoDiscount: "lido/discount",
46
+ getLidoRequestTime: "lido/request-time",
47
+ getLidoMaticReward: "lido/matic-rewards",
48
+ pendleAddLiquiditySingleToken: "pendle/addLiquiditySingleToken",
49
+ pendleAddLiquiditySingleSy: "pendle/addLiquiditySingleSy",
50
+ pendleAddLiquiditySinglePt: "pendle/addLiquiditySinglePt",
51
+ pendleAddLiquidityDualTokenAndPt: "pendle/addLiquidityDualTokenAndPt",
52
+ pendleAddLiquidityDualSyAndPt: "pendle/addLiquidityDualSyAndPt",
53
+ pendleAddLiquiditySingleTokenKeepYt: "pendle/addLiquiditySingleTokenKeepYt",
54
+ pendleRemoveLiquiditySingleToken: "pendle/removeLiquiditySingleToken",
55
+ pendleRemoveLiquiditySingleSy: "pendle/removeLiquiditySingleSy",
56
+ pendleRemoveLiquiditySinglePt: "pendle/removeLiquiditySinglePt",
57
+ pendleRemoveLiquidityDualTokenAndPt: "pendle/removeLiquidityDualTokenAndPt",
58
+ pendleRemoveLiquidityDualSyAndPt: "pendle/removeLiquidityDualSyAndPt",
59
+ pendleMintPyFromToken: "pendle/mintPyFromToken",
60
+ pendlRedeemPyToToken: "pendle/redeemPyToToken",
61
+ removeLiquidityDualTokenAndPt: "pendle/removeLiquidityDualTokenAndPt",
62
+ removeLiquiditySinglePt: "pendle/removeLiquiditySinglePt",
63
+ pendleSwapExactTokenForYT: "pendle/swapExactTokenForYt",
64
+ pendleSwapExactTokenForPt: "pendle/swapExactTokenForPt",
65
+ pendleSwapExactPtForToken: "pendle/swapExactPtForToken",
66
+ pendleSwapExactPtForYt: "pendle/swapExactPtForYt",
67
+ pendleSwapExactYtForToken: "pendle/swapExactYtForToken",
68
+ pendleSwapExactYtForPt: "pendle/swapExactYtForPt",
69
+ pendleSyTokenInOut: "pendle/syTokenInOut",
70
+ connextReceiveFee: (e, n) => `/connextEstimateReceive/${e}/${n}`
71
+ }
72
+ }, d = {
73
+ getGasEstimate: (e, n, i, o, r) => `/gas-estimation/${e}/${o}/${n}/${i}/${r}`,
74
+ getTokenPrice: "/get-token-price",
75
+ getTokenPriceEth: (e) => `/get-token-price-in-eth/${e}`,
76
+ getTokenPrices: "/get-token-prices",
77
+ TRANSACT: "/general-transact",
78
+ getIdleRelay: "/get-idle-relay"
79
+ }, p = {
80
+ getUserPoints: (e) => `/user-points/${e}`
81
+ }, 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", h = "http://localhost", k = 7090, g = {
82
+ polygon: "https://polygon.server.hinkal.pro",
83
+ arbMainnet: "https://arbMainnet.server.hinkal.pro",
84
+ ethMainnet: "https://ethMainnet.server.hinkal.pro",
85
+ bnbMainnet: "https://bnbMainnet.server.hinkal.pro",
86
+ avalanche: "https://avalanche.server.hinkal.pro",
87
+ optimism: "https://optimism.server.hinkal.pro",
88
+ base: "https://base.server.hinkal.pro",
89
+ blast: "https://blast.server.hinkal.pro",
90
+ localhost: "http://localhost:7072"
91
+ }, y = {
92
+ polygon: `${t}:7072`,
93
+ arbMainnet: `${t}:7070`,
94
+ ethMainnet: `${t}:7080`,
95
+ bnbMainnet: `${t}:7076`,
96
+ avalanche: `${t}:7078`,
97
+ optimism: `${t}:7082`,
98
+ base: `${t}:7084`,
99
+ blast: `${t}:7086`,
100
+ localhost: "http://localhost:7072"
101
+ }, u = {
102
+ polygon: `${a}:7072`,
103
+ arbMainnet: `${a}:7070`,
104
+ ethMainnet: `${a}:7080`,
105
+ bnbMainnet: `${a}:7076`,
106
+ avalanche: `${a}:7078`,
107
+ optimism: `${a}:7082`,
108
+ base: `${a}:7084`,
109
+ blast: `${a}:7086`,
110
+ localhost: "http://localhost:7072"
111
+ }, $ = {
112
+ polygon: "https://polygon.relayer.hinkal.pro",
113
+ arbMainnet: "https://arbMainnet.relayer.hinkal.pro",
114
+ ethMainnet: "https://ethMainnet.relayer.hinkal.pro",
115
+ bnbMainnet: "https://bnbMainnet.relayer.hinkal.pro",
116
+ avalanche: "https://avalanche.relayer.hinkal.pro",
117
+ optimism: "https://optimism.relayer.hinkal.pro",
118
+ base: "https://base.relayer.hinkal.pro",
119
+ blast: "https://blast.relayer.hinkal.pro",
120
+ localhost: "http://localhost:7073"
121
+ }, m = {
122
+ polygon: `${t}:7073`,
123
+ arbMainnet: `${t}:7071`,
124
+ ethMainnet: `${t}:7081`,
125
+ bnbMainnet: `${t}:7077`,
126
+ avalanche: `${t}:7079`,
127
+ optimism: `${t}:7083`,
128
+ base: `${t}:7085`,
129
+ blast: `${t}:7087`,
130
+ localhost: "http://localhost:7073"
131
+ }, S = {
132
+ polygon: `${a}:7073`,
133
+ arbMainnet: `${a}:7071`,
134
+ ethMainnet: `${a}:7081`,
135
+ bnbMainnet: `${a}:7077`,
136
+ avalanche: `${a}:7079`,
137
+ optimism: `${a}:7083`,
138
+ base: `${a}:7085`,
139
+ blast: `${a}:7087`,
140
+ localhost: "http://localhost:7073"
141
+ };
142
+ export {
143
+ l as API_CONFIG,
144
+ p as DATA_SERVER_CONFIG,
145
+ k as DATA_SERVER_PORT,
146
+ h as DATA_SERVER_URL_LOCAL,
147
+ c as DATA_SERVER_URL_PRODUCTION,
148
+ S as PLAYGROUND_RELAYER_URLS,
149
+ u as PLAYGROUND_SERVER_URLS,
150
+ a as PLAYGROUND_URL,
151
+ d as RELAYER_CONFIG,
152
+ $ as RELAYER_URLS,
153
+ g as SERVER_URLS,
154
+ m as STAGING_RELAYER_URLS,
155
+ y as STAGING_SERVER_URLS,
156
+ t as STAGING_URL
157
+ };