@hinkal/common 0.1.17 → 0.1.19

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 (48) hide show
  1. package/addGlobals.cjs +1 -0
  2. package/addGlobals.d.ts +1 -0
  3. package/addGlobals.mjs +9 -0
  4. package/crypto/preProcessing.cjs +1 -1
  5. package/crypto/preProcessing.mjs +7 -9
  6. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  7. package/data-structures/Hinkal/Hinkal.mjs +2 -4
  8. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  9. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +2 -4
  10. package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +1 -1
  11. package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +2 -4
  12. package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +1 -1
  13. package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +10 -12
  14. package/data-structures/snapshot/ClientAccessTokenSnapshotService.cjs +1 -1
  15. package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +8 -10
  16. package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
  17. package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +8 -10
  18. package/data-structures/snapshot/ClientNullifierSnapshotService.cjs +1 -1
  19. package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +2 -4
  20. package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  21. package/functions/pre-transaction/outputUtxoProcessing.mjs +4 -6
  22. package/functions/pre-transaction/processAmountChanges.cjs +1 -1
  23. package/functions/pre-transaction/processAmountChanges.mjs +9 -11
  24. package/functions/protocols/pendle.helpers.cjs +1 -1
  25. package/functions/protocols/pendle.helpers.mjs +10 -12
  26. package/functions/staking/index.cjs +1 -1
  27. package/functions/staking/index.mjs +21 -23
  28. package/functions/web3/odosAPI.cjs +1 -1
  29. package/functions/web3/odosAPI.mjs +8 -10
  30. package/functions/web3/oneInchAPI.cjs +1 -1
  31. package/functions/web3/oneInchAPI.mjs +6 -8
  32. package/functions/web3/runContractFunction.cjs +1 -1
  33. package/functions/web3/runContractFunction.mjs +18 -20
  34. package/functions/web3/uniswapAPI.cjs +1 -1
  35. package/functions/web3/uniswapAPI.mjs +2 -4
  36. package/index.cjs +1 -1
  37. package/index.mjs +639 -638
  38. package/package.json +1 -1
  39. package/providers/prepareEthersHinkal.cjs +1 -1
  40. package/providers/prepareEthersHinkal.mjs +24 -7
  41. package/providers/prepareWagmiv1Hinkal.cjs +1 -1
  42. package/providers/prepareWagmiv1Hinkal.mjs +27 -10
  43. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
  44. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
  45. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  46. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
  47. package/data-structures/index.cjs +0 -1
  48. package/data-structures/index.mjs +0 -26
package/index.mjs CHANGED
@@ -1,642 +1,643 @@
1
- import { getDataServerURL as t, getServerURL as a } from "./API/getServerURL.mjs";
2
- import { getCoingeckoPrice as s, getCoingeckoPrice2 as n, getCoingeckoPrices as p, getCoingeckoTokenList as m } from "./API/getCoingeckoPrice.mjs";
3
- import { callOneInchAPI as f } from "./API/callOneInchAPI.mjs";
4
- import { getBeefyHistoricalChartData as d } from "./API/callBeefyGraphAPI.mjs";
5
- import { callRelayerTransactAPI as g } from "./API/callRelayer.mjs";
6
- import { getAxelarGasEstimate as A } from "./API/getAxelarGasEstimate.mjs";
7
- import { getGasEstimates as R } from "./API/getGasEstimates.mjs";
8
- import { getTokenPrice as P, getTokenPriceEth as k, getTokenPrices as S } from "./API/getTokenPrice.mjs";
9
- import { checkRisk as C } from "./API/checkRisk.mjs";
10
- import { getIdleRelay as h } from "./API/relayCalls.mjs";
11
- import { API as D } from "./API/API.mjs";
12
- import { getCurvePools as L, getCurvePoolsforPriceFetching as w, getExtendedPoolInfo as U, lpTokens as B, lpTokensToBasePool as F } from "./API/callCurveAPI.mjs";
13
- import { getRelayerURL as M } from "./API/getRelayerURL.mjs";
14
- import { getPublicWalletBalance as O } from "./API/duneAPI.mjs";
15
- import { IMAGE_PATHS as W } from "./constants/assets.constants.mjs";
16
- import { urlForBeefyVaultTokens as G, urlForBeefyVaultTotalInUSD as K, urlForRegularTokenPricesInBeefy as Y } from "./constants/token-data/tokenPricing.consts.mjs";
17
- import { networkRegistry as Z } from "./constants/token-data/ethMainnetRegistryFixed.json.mjs";
18
- import { networkRegistry as Q } from "./constants/token-data/arbMainnetRegistryFixed.json.mjs";
19
- import { networkRegistry as X } from "./constants/token-data/bnbMainnetRegistryFixed.json.mjs";
20
- import { networkRegistry as $ } from "./constants/token-data/polygonRegistryFixed.json.mjs";
21
- import { networkRegistry as re } from "./constants/token-data/avalancheRegistryFixed.json.mjs";
22
- import { networkRegistry as te } from "./constants/token-data/optimismRegistryFixed.json.mjs";
23
- import { networkRegistry as ie } from "./constants/token-data/baseRegistryFixed.json.mjs";
24
- import { networkRegistry as ne } from "./constants/token-data/ethMainnetRegistry.json.mjs";
25
- import { networkRegistry as me } from "./constants/token-data/arbMainnetRegistry.json.mjs";
26
- import { networkRegistry as fe } from "./constants/token-data/bnbMainnetRegistry.json.mjs";
27
- import { networkRegistry as de } from "./constants/token-data/polygonRegistry.json.mjs";
28
- import { networkRegistry as ge } from "./constants/token-data/avalancheRegistry.json.mjs";
29
- import { networkRegistry as Ae } from "./constants/token-data/optimismRegistry.json.mjs";
30
- import { networkRegistry as Re } from "./constants/token-data/baseRegistry.json.mjs";
31
- import { networkRegistry as Pe } from "./constants/token-data/localhostRegistry.json.mjs";
32
- import { PopularTokenSymbols as Se } from "./constants/token-data/popularTokens.constants.mjs";
33
- import { getERC20Registry as Ce, getFixedRegistry as Ee } from "./constants/token-data/ERC20Registry.mjs";
34
- import { default as be } from "./constants/deploy-data/deploy-data-bnbMainnet.json.mjs";
35
- import { default as ve } from "./constants/deploy-data/deploy-data-arbMainnet.json.mjs";
36
- import { default as we } from "./constants/deploy-data/deploy-data-ethMainnet.json.mjs";
37
- import { default as Be } from "./constants/deploy-data/deploy-data-optimism.json.mjs";
38
- import { default as _e } from "./constants/deploy-data/deploy-data-polygon.json.mjs";
39
- import { default as Ne } from "./constants/deploy-data/deploy-data-avalanche.json.mjs";
40
- import { default as Ve } from "./constants/deploy-data/deploy-data-base.json.mjs";
41
- import { default as He } from "./constants/deploy-data/deploy-data-localhost.json.mjs";
42
- import { default as Ke } from "./constants/deploy-data/deploy-data-axelar1.json.mjs";
43
- import { default as ze } from "./constants/deploy-data/deploy-data-axelar2.json.mjs";
44
- import { EthereumNetworkType as qe, chainIds as Qe, chainIdsByType as je, crossChainAccessTokenNetworks as Xe, getNonLocalhostChainId as Je, isLocalNetwork as $e, isOptimismBedrockLike as er, isOptimismEcotoneLike as rr, isOptimismLike as or, localhostNetwork as tr, networkRegistry as ar } from "./constants/chains.constants.mjs";
45
- import { HINKAL_EXTERNAL_ACTION_FEE as sr, HINKAL_UNIVERSAL_FEE as nr, getAmountAfterRelayAndFlatFees as pr, getAmountAfterRelayAndFlatFeesAndSlippage as mr, getAmountAfterRelayFee as lr, getAmountAfterSlippage as fr, getAmountWithoutFee as cr, getHinkalFeeRateInBeeps as dr, getRelayFee as xr, getSlippageFee as gr } from "./constants/fees.constants.mjs";
46
- import { contractMetadataMapping as Ar, getHinkalParameters as yr, uniswapV2PoolData as Rr, uniswapV3FactoryData as Tr, uniswapV3PoolData as Pr, uniswapV3QuoterData as kr } from "./constants/contracts.constants.mjs";
47
- import { AIPRISE_KYB_TEMPLATE_ID_PROD as Ir, AIPRISE_KYC_TEMPLATE_ID_PROD as Cr, SupportedPassports as Er, aipriseBaseOnboardingProductionUrl as hr, aipriseBaseOnboardingSandboxUrl as br, supportedPassportLinks as Dr } from "./constants/kyc.constants.mjs";
48
- import { API_CONFIG as Lr, DATA_SERVER_CONFIG as wr, DATA_SERVER_PORT as Ur, DATA_SERVER_URL_LOCAL as Br, DATA_SERVER_URL_PRODUCTION as Fr, PLAYGROUND_RELAYER_URLS as _r, PLAYGROUND_SERVER_URLS as Mr, PLAYGROUND_URL as Nr, RELAYER_CONFIG as Or, RELAYER_URLS as Vr, SERVER_URLS as Wr, STAGING_RELAYER_URLS as Hr, STAGING_SERVER_URLS as Gr, STAGING_URL as Kr } from "./constants/server.constants.mjs";
49
- import { DEPLOYMENT_MODE as zr, deploymentMode as Zr, isDevelopment as qr, isNode as Qr, isNotProduction as jr, isPlayground as Xr, isStaging as Jr, isWebpack as $r } from "./constants/vite.constants.mjs";
50
- import { CIRCOM_P as ro, CIRCOM_P_HALF as oo, beefyChainIds as to, crvSymbol as ao, curveWithdrawGasTokenAddress as io, curveZeroAddress as so, cvxSymbol as no, ethVolatileAddress as po, oneInchZeroAddress as mo, ownerPublicKey as lo, permitSignatureValidFor as fo, signaturePhrase as co, threePoolSymbol as xo, zeroAddress as go } from "./constants/protocol.constants.mjs";
51
- import { COINGECKO_API_KEY as Ao, CoinGeckoChainLabels as yo, coingeckoPriceUrl as Ro, coingeckoPriceUrl2 as To, coingeckoTokenListUrl as Po, getCoingeckoIdForNativeTokens as ko, getCoingeckoPlatform as So, proCoingeckoUrl as Io, proHeader as Co } from "./constants/coingecko.constants.mjs";
52
- import { AxelarRegistry as ho } from "./constants/axelar.constants.mjs";
53
- import { NETWORKS as Do, getGasStationUrl as vo } from "./constants/backend.constants.mjs";
54
- import { arbMainnetCrvCvxRegistry as wo, avalancheCrvCvxRegistry as Uo, baseCrvCvxRegistry as Bo, ethCrvCvxRegistry as Fo, getCrvCvxWithChainId as _o, optimismCrvCvxRegistry as Mo, polygonCrvCvxRegistry as No } from "./constants/crvCvx.registry.mjs";
55
- import { getCalcTokenAmountWithDynamicArray as Vo } from "./constants/crvDynamic.registry.mjs";
56
- import { ethSymbol as Ho, lidoStEthContractAddress as Go, lidoStMaticAddress as Ko, lidoStakeManagerAddress as Yo, lidoWithdrawalQueueERC721Address as zo, lidoWstEthContractAddress as Zo, maticSymbol as qo, poLidoNftAddress as Qo, stMaticSymbol as jo, wstEthSymbol as Xo } from "./constants/lido.constants.mjs";
57
- import { ACCESS_TOKEN_MINTING_POINTS as $o, CERTIFICATION_DISABLE_WEEK as et, REWARD_RECEIVABLE_TOKEN_SYMBOLS as rt, RafflePrizePoints as ot, boostAmounts as tt, lpLink as at, lpProgramStartWeek as it, pointsLink as st, raffleProgramStartWeek as nt, referralLink as pt } from "./constants/rewards.constants.mjs";
58
- import { blockReorgDepth as lt } from "./constants/reorg-depths.constants.mjs";
59
- import { ethBeefyRegistry as ct, getBeefyRegistryWithChainId as dt } from "./constants/beefy.registry.mjs";
60
- import { arbPendleRegistry as gt, bnbPendleRegistry as ut, ethPendleRegistry as At, findSyAddress as yt, getPendleRegistryWithChainId as Rt, getYtTokensWithChainId as Tt, isYtToken as Pt, optimismPendleRegistry as kt } from "./constants/pendle.registry.mjs";
61
- import { poseidonFunction as It, poseidonHash as Ct, poseidonHolder as Et } from "./crypto/poseidon.mjs";
62
- import { babyJubInstance as bt, jubHolder as Dt } from "./crypto/babyJub.mjs";
63
- import { preProcessing as Lt } from "./crypto/preProcessing.mjs";
64
- import "./data-structures/index.mjs";
65
- import { FeeOverTransactionValueError as Ut } from "./error-handling/customErrors/FeeOverTransactionValueError.mjs";
66
- import { getGenericFeeOverTransactionValueErrorMessage as Ft, rethrowKnownGasErrorIfPossible as _t } from "./error-handling/customErrors/customErrors.helpers.mjs";
67
- import { UserFriendlyErrorCodes as Nt, transactionErrorCodes as Ot } from "./error-handling/error-codes.constants.mjs";
68
- import { extractMessage as Wt, getErrorMessage as Ht } from "./error-handling/get-error.message.mjs";
69
- import { checkErrorForSnapshotRestore as Kt } from "./error-handling/handleErrorRestore.mjs";
70
- import { logError as zt } from "./error-handling/logError.mjs";
71
- import { ErrorCategory as qt } from "./error-handling/types.mjs";
72
- import { abi as jt } from "./externalABIs/amToken.mjs";
73
- import { abi as Jt } from "./externalABIs/BeefyVaultAbi.json.mjs";
74
- import { abi as ea } from "./externalABIs/BUSD.mjs";
75
- import { abi as oa } from "./externalABIs/CurveReadingWrapperAbi.json.mjs";
76
- import { abi as aa } from "./externalABIs/CurveWrappedMainPool.json.mjs";
77
- import { abi as sa } from "./externalABIs/DAI.mjs";
78
- import { abi as pa } from "./externalABIs/ERC20.json.mjs";
79
- import { abi as la } from "./externalABIs/IQuoterV2.json.mjs";
80
- import { abi as ca } from "./externalABIs/IUniswapV3Factory.json.mjs";
81
- import { abi as xa } from "./externalABIs/SanctionsList.mjs";
82
- import { abi as ua } from "./externalABIs/USDC.mjs";
83
- import { abi as ya } from "./externalABIs/USDR.mjs";
84
- import { abi as Ta } from "./externalABIs/USDR3CRV.mjs";
85
- import { abi as ka } from "./externalABIs/USDT.mjs";
86
- import { abi as Ia } from "./externalABIs/WETH.mjs";
87
- import { abi as Ea } from "./externalABIs/ISwapRouter.json.mjs";
88
- import { default as ba } from "./externalABIs/LidoStEthAbi.json.mjs";
89
- import { default as va } from "./externalABIs/LidoStMaticAbi.json.mjs";
90
- import { default as wa } from "./externalABIs/LidoWithdrawalQueueERC721Abi.json.mjs";
91
- import { default as Ba } from "./externalABIs/PoLidoNftAbi.json.mjs";
92
- import { default as _a } from "./externalABIs/LidoWstEthAbi.json.mjs";
93
- import { default as Na } from "./externalABIs/LidoStakeManagerAbi.json.mjs";
94
- import { abi as Va } from "./externalABIs/transactionsProver.json.mjs";
95
- import { abi as Ha } from "./externalABIs/BabPassport.json.mjs";
96
- import { abi as Ka } from "./externalABIs/GalxePassport.json.mjs";
97
- import { default as za } from "./externalABIs/OptimismGasPriceOracle.json.mjs";
98
- import { checkHinkalAccessToken as qa, mintAccessToken as Qa, mintTokenCrossChain as ja } from "./functions/web3/functionCalls/accessTokenCalls.mjs";
99
- import { openPassportWindow as Ja } from "./functions/kyc/passportHelper.mjs";
100
- import { openDefaultPassportWindow as ei } from "./functions/kyc/openDefaultPassportWindow.mjs";
101
- import { absBigInt as oi, beepsToPercentage as ti, bigintApplySugar as ai, bigintMax as ii, calculateAmountUsingBeeps as si, calculateSum as ni, fixDecimalsAmount as pi, getValueFirstNDigit as mi, minBigInt as li, toBigInt as fi, toBigIntOrUndefined as ci, toCommaSeparatedNumberString as di, toInt as xi, toNumberOrUndefined as gi, trimLeadingZeros as ui, truncateTo18DecimalPlaces as Ai } from "./functions/utils/amounts.utils.mjs";
102
- import { getHinkalCache as Ri, loadTxsCache as Ti, resetCache as Pi, saveTxsCache as ki, setHinkalCache as Si } from "./functions/utils/cacheFunctions.mjs";
103
- import { createProvider as Ci } from "./functions/utils/create-provider.mjs";
104
- import { decodeMetadata as hi, getActionFromMetadata as bi, getExternalActionIdFromNumber as Di, getExternalActionIdHash as vi, getExternalMetadataHash as Li } from "./functions/utils/external-action.utils.mjs";
105
- import { getERC20Token as Ui, getERC20TokenBySymbol as Bi, getHToken as Fi } from "./functions/utils/erc20tokenFunctions.mjs";
106
- import { requireEnv as Mi } from "./functions/utils/requireEnv.mjs";
107
- import { getSequence as Oi, resolveSync as Vi } from "./functions/utils/resolve-sync.utils.mjs";
108
- import { convertIntegrationProviderToExternalActionId as Hi } from "./functions/utils/convertIntegrationProviderToExternalActionId.mjs";
109
- import { getInteractionFromAction as Ki } from "./functions/pre-transaction/interaction-to-action.mjs";
110
- import { outputUtxoProcessing as zi } from "./functions/pre-transaction/outputUtxoProcessing.mjs";
111
- import { processGasEstimates as qi } from "./functions/pre-transaction/process-gas-estimates.mjs";
112
- import { processAmountChanges as ji } from "./functions/pre-transaction/processAmountChanges.mjs";
113
- import { getFlatFees as Ji } from "./functions/pre-transaction/getFlatFees.mjs";
114
- import { getNetworkObject as es, getNetworkType as rs } from "./functions/utils/evmNetworkFunctions.mjs";
115
- import { getAxelarMigrationInfo as ts } from "./functions/utils/axelar.utils.mjs";
116
- import { browserSupported as is, walletSupported as ss } from "./functions/utils/userAgent.mjs";
117
- import { decodeTxInput as ps, decodeTxLogs as ms, deserializeDecodedTxs as ls, serializeDecodedTxs as fs } from "./functions/utils/getDataFromTransaction.mjs";
118
- import { reloadPage as ds } from "./functions/utils/reloadPage.mjs";
119
- import { capitalizeFirstLetter as gs, isNullOrEmpty as us, toTitleCase as As } from "./functions/utils/string.utils.mjs";
120
- import { isNicknameValid as Rs } from "./functions/utils/nickname.utils.mjs";
121
- import { caseInsensitiveEqual as Ps, lowerCaseIncludes as ks, lowerCaseStartsWith as Ss } from "./functions/utils/caseInsensitive.utils.mjs";
122
- import { waitLittle as Cs } from "./functions/utils/time.utils.mjs";
123
- import { patchRegistry as hs } from "./functions/utils/volatile-patcher.utils.mjs";
124
- import { Buffer as Ds, ProcessPolyfill as vs } from "./functions/utils/polyfills.mjs";
125
- import { calculateDollarValue as ws, ethToWei as Us, getAmountInToken as Bs, getAmountInWei as Fs, getAmountInWeiOrZero as _s, getAmountWithPrecision as Ms, getAmountWithPrecisionOrZero as Ns, randomBigInt as Os, toBigIntWithDecimals as Vs } from "./functions/web3/etherFunctions.mjs";
126
- import { getInputUtxoAndBalance as Hs, getInputUtxosFromEncryptedOutputs as Gs } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
127
- import { addPaddingToUtxos as Ys, getShieldedBalance as zs } from "./functions/web3/events/getShieldedBalance.mjs";
128
- import { getDepositEvents as qs, retrieveEvents as Qs } from "./functions/web3/events/web3RetrieveEvents.mjs";
129
- import { balanceChangedHandler as Xs } from "./functions/web3/events/balanceChangedHandler.mjs";
130
- import { getUniswapFee as $s, getUniswapPrice as en, getUniswapPriceHelper as rn, searchPoolAndFee as on } from "./functions/web3/uniswapAPI.mjs";
131
- import { getOdosPrice as an } from "./functions/web3/odosAPI.mjs";
132
- import { getOneInchPrice as nn } from "./functions/web3/oneInchAPI.mjs";
133
- import { runContractFunction as mn } from "./functions/web3/runContractFunction.mjs";
134
- import { constructZkProof as fn } from "./functions/snarkjs/constructGeneralZkProof.mjs";
135
- import { constructEmporiumProof as dn } from "./functions/snarkjs/constructEmporiumProof.mjs";
136
- import { buildInNullifiers as gn, buildOutCommitments as un, calcAccessTokenSiblingsAndSides as An, calcAmountChanges as yn, calcCommitmentsSiblingAndSides as Rn, calcEncryptedOutputs as Tn, calcPublicSignalCount as Pn, calcStealthAddressStructure as kn, createCallDataHash as Sn, deserializeCircomData as In, serializeCircomData as Cn } from "./functions/snarkjs/common.snarkjs.mjs";
137
- import { generateZkProof as hn } from "./functions/snarkjs/generateZkProof.mjs";
138
- import { getCRV as Dn } from "./functions/protocols/curve.protocols.mjs";
139
- import { getCVX as Ln } from "./functions/protocols/convex.protocols.mjs";
140
- import { determinePendleSwapType as Un, determinePendleSwapTypeApiRoute as Bn, erc20TokenFromPendleAsset as Fn, getAssetTypeFromPendleMarket as _n, getTokenIndexForPendleFlatFee as Mn } from "./functions/protocols/pendle.helpers.mjs";
141
- import { calculateStakeNullifier as On, createStakeCommitment as Vn, decryptStake as Wn, encodeHStakeMetadata as Hn, encryptStake as Gn } from "./functions/staking/index.mjs";
142
- import { emporiumOp as Yn, encodeEmporiumMetadata as zn } from "./functions/private-wallet/emporium.helpers.mjs";
143
- import { OpType as qn, produceOp as Qn } from "./functions/private-wallet/opProducer.mjs";
144
- import { dataBeefyApiConfig as Xn, isBeefyDeposit as Jn } from "./types/beefy.types.mjs";
145
- import { defaultHookData as ep, defaultHookDataArray as rp, defaultStealthAddressStructure as op, emptyStealthAddressStructure as tp } from "./types/circom-data.types.mjs";
146
- import { ContractType as ip } from "./types/ethereum-network.types.mjs";
147
- import { ExternalActionId as np } from "./types/external-action.types.mjs";
148
- import { BeefyAction as mp, ConvexAction as lp, CurveAction as fp, EventType as cp, INTERACTION as dp, IntegrationProvider as xp, LidoAction as gp, LidoVariant as up, PendleAction as Ap, PendleLPAction as yp, StakeProvider as Rp, VolatileAction as Tp } from "./types/hinkal.types.mjs";
149
- import { KycVerificationResult as kp, KycVerificationStatus as Sp, Passports as Ip, VERIFICATION_TYPE as Cp, VerificationTypes as Ep } from "./types/kyc.types.mjs";
150
- import { ApprovalType as bp } from "./types/token.types.mjs";
151
- import { SlippageType as vp, slippageLevels as Lp } from "./types/slippage.types.mjs";
152
- import { emptyDecodedTx as Up } from "./types/transactions.types.mjs";
153
- import { MONTHS as Fp, dayInMilliseconds as _p, divideMonthOnIntervals as Mp, getCurrentWeek as Np, getDateFromWeek as Op, getNextDay as Vp, getWeekTimestamps as Wp, hasCertificationPeriodExpired as Hp, hourInMilliseconds as Gp, isWeekCurrent as Kp, minuteInMilliseconds as Yp, parseWeek as zp, secondInMilliseconds as Zp, toDateString as qp, weekInMilliseconds as Qp } from "./types/time.types.mjs";
154
- import { BonusType as Xp, CertifyType as Jp, LP_TIER as $p, PaymentStatus as em, PointType as rm, RafflePrizeType as om, RewardPage as tm, RewardsHistoryDistribution as am, RewardsHistoryEligibility as im, RewardsHistorySnapshots as sm, RewardsHistoryStatuses as nm, RewardsPageTabs as pm, TIER_LEVEL as mm, Timeline as lm, emptyUserPointsBreakdown as fm, emptyUserPointsResponse as cm } from "./types/rewards.types.mjs";
155
- import { PendleAssetType as xm, PendleChains as gm, PendleDashboardTabs as um, PendleEarnTabs as Am, PendleMarketTransactionTypes as ym, PendlePoolManualTabs as Rm, PendlePoolTabs as Tm, PendlePoolZapTabs as Pm, PendleSwapType as km, PendleTabs as Sm, PendleTradeGeneralTabs as Im, PendleTradeTabs as Cm } from "./types/pendle.types.mjs";
156
- import { StatType as hm, UpperTabPossibleValues as bm, curveNetworkNames as Dm, curvePools as vm } from "./types/curve.types.mjs";
157
- import { HinkalStakeMode as wm } from "./types/hinkal.stake.types.mjs";
158
- import { ValueCache as Bm } from "./data-structures/ValueCache/ValueCache.mjs";
159
- import { abiDecodeUtxo as _m, checkUtxoSignature as Mm, decodeUtxo as Nm, decodeUtxoConstructorArgs as Om } from "./data-structures/crypto-keys/decodeUTXO.mjs";
160
- import { decryptUtxo as Wm, decryptUtxoConstructorArgs as Hm, encryptUtxo as Gm } from "./data-structures/crypto-keys/encryptDecryptUtxo.mjs";
161
- import { EncryptionKeyPairDefaultValue as Ym, UserKeys as zm } from "./data-structures/crypto-keys/keys.mjs";
162
- import { getCircomSign as qm, isCircomNegative as Qm } from "./data-structures/crypto-keys/keyUtils.mjs";
163
- import { Hinkal as Xm } from "./data-structures/Hinkal/Hinkal.mjs";
164
- import { hinkalActionBeefy as $m } from "./data-structures/Hinkal/hinkalActionBeefy.mjs";
165
- import { hinkalActionConvex as rl } from "./data-structures/Hinkal/hinkalActionConvex.mjs";
166
- import { hinkalActionCurve as tl } from "./data-structures/Hinkal/hinkalActionCurve.mjs";
167
- import { hinkalActionPendle as il } from "./data-structures/Hinkal/hinkalActionPendle.mjs";
168
- import { hinkalDeposit as nl, hinkalDepositForOther as pl } from "./data-structures/Hinkal/hinkalDeposit.mjs";
169
- import { hinkalSwap as ll } from "./data-structures/Hinkal/hinkalSwap.mjs";
170
- import { hinkalTransfer as cl } from "./data-structures/Hinkal/hinkalTransfer.mjs";
171
- import { hinkalWithdraw as xl } from "./data-structures/Hinkal/hinkalWithdraw.mjs";
172
- import { hinkalPrivateWallet as ul } from "./data-structures/Hinkal/hinkalPrivateWallet.mjs";
173
- import { resetMerkleTrees as yl } from "./data-structures/Hinkal/resetMerkleTrees.mjs";
174
- import { MerkleTree as Tl } from "./data-structures/merkle-tree/MerkleTree.mjs";
175
- import { MerkleTreeIncompleteError as kl } from "./data-structures/merkle-tree/MerkleTreeIncompleteError.mjs";
176
- import { AbstractAccessTokenSnapshotService as Il } from "./data-structures/event-service/AbstractAccessTokenSnapshotService.mjs";
177
- import { AbstractCommitmentsSnapshotService as El } from "./data-structures/event-service/AbstractCommitmentsSnapshotService.mjs";
178
- import { AbstractNullifierSnapshotService as bl } from "./data-structures/event-service/AbstractNullifierSnapshotService.mjs";
179
- import { AbstractSnapshotService as vl } from "./data-structures/event-service/AbstractSnapshotService.mjs";
180
- import { AbstractEventService as wl } from "./data-structures/event-service/AbstractEventService.mjs";
181
- import { Utxo as Bl } from "./data-structures/utxo/Utxo.mjs";
182
- import { customTokenRegistry as _l } from "./data-structures/custom-token-registry/CustomTokenRegistry.mjs";
183
- import { TokenChecker as Nl } from "./data-structures/token-price-fetcher/TokenChecker.mjs";
184
- import { TransactionsManager as Vl } from "./data-structures/transactions-manager/TransactionsManager.mjs";
185
- import { TransactionType as Hl, externalActionToTransactionType as Gl } from "./data-structures/transactions-manager/history/history.types.mjs";
186
- import { VolatileHelper as Yl } from "./data-structures/volatile-helper/VolatileHelper.mjs";
187
- import { MultiThreadedUtxoUtils as Zl, multiThreadedUtxoUtils as ql } from "./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs";
1
+ import { addGlobals as e } from "./addGlobals.mjs";
2
+ import { getDataServerURL as a, getServerURL as i } from "./API/getServerURL.mjs";
3
+ import { getCoingeckoPrice as n, getCoingeckoPrice2 as p, getCoingeckoPrices as m, getCoingeckoTokenList as l } from "./API/getCoingeckoPrice.mjs";
4
+ import { callOneInchAPI as d } from "./API/callOneInchAPI.mjs";
5
+ import { getBeefyHistoricalChartData as x } from "./API/callBeefyGraphAPI.mjs";
6
+ import { callRelayerTransactAPI as u } from "./API/callRelayer.mjs";
7
+ import { getAxelarGasEstimate as y } from "./API/getAxelarGasEstimate.mjs";
8
+ import { getGasEstimates as T } from "./API/getGasEstimates.mjs";
9
+ import { getTokenPrice as k, getTokenPriceEth as S, getTokenPrices as I } from "./API/getTokenPrice.mjs";
10
+ import { checkRisk as E } from "./API/checkRisk.mjs";
11
+ import { getIdleRelay as b } from "./API/relayCalls.mjs";
12
+ import { API as v } from "./API/API.mjs";
13
+ import { getCurvePools as w, getCurvePoolsforPriceFetching as U, getExtendedPoolInfo as B, lpTokens as F, lpTokensToBasePool as _ } from "./API/callCurveAPI.mjs";
14
+ import { getRelayerURL as N } from "./API/getRelayerURL.mjs";
15
+ import { getPublicWalletBalance as V } from "./API/duneAPI.mjs";
16
+ import { IMAGE_PATHS as H } from "./constants/assets.constants.mjs";
17
+ import { urlForBeefyVaultTokens as K, urlForBeefyVaultTotalInUSD as Y, urlForRegularTokenPricesInBeefy as z } from "./constants/token-data/tokenPricing.consts.mjs";
18
+ import { networkRegistry as q } from "./constants/token-data/ethMainnetRegistryFixed.json.mjs";
19
+ import { networkRegistry as j } from "./constants/token-data/arbMainnetRegistryFixed.json.mjs";
20
+ import { networkRegistry as J } from "./constants/token-data/bnbMainnetRegistryFixed.json.mjs";
21
+ import { networkRegistry as ee } from "./constants/token-data/polygonRegistryFixed.json.mjs";
22
+ import { networkRegistry as oe } from "./constants/token-data/avalancheRegistryFixed.json.mjs";
23
+ import { networkRegistry as ae } from "./constants/token-data/optimismRegistryFixed.json.mjs";
24
+ import { networkRegistry as se } from "./constants/token-data/baseRegistryFixed.json.mjs";
25
+ import { networkRegistry as pe } from "./constants/token-data/ethMainnetRegistry.json.mjs";
26
+ import { networkRegistry as le } from "./constants/token-data/arbMainnetRegistry.json.mjs";
27
+ import { networkRegistry as de } from "./constants/token-data/bnbMainnetRegistry.json.mjs";
28
+ import { networkRegistry as xe } from "./constants/token-data/polygonRegistry.json.mjs";
29
+ import { networkRegistry as ue } from "./constants/token-data/avalancheRegistry.json.mjs";
30
+ import { networkRegistry as ye } from "./constants/token-data/optimismRegistry.json.mjs";
31
+ import { networkRegistry as Te } from "./constants/token-data/baseRegistry.json.mjs";
32
+ import { networkRegistry as ke } from "./constants/token-data/localhostRegistry.json.mjs";
33
+ import { PopularTokenSymbols as Ie } from "./constants/token-data/popularTokens.constants.mjs";
34
+ import { getERC20Registry as Ee, getFixedRegistry as he } from "./constants/token-data/ERC20Registry.mjs";
35
+ import { default as De } from "./constants/deploy-data/deploy-data-bnbMainnet.json.mjs";
36
+ import { default as Le } from "./constants/deploy-data/deploy-data-arbMainnet.json.mjs";
37
+ import { default as Ue } from "./constants/deploy-data/deploy-data-ethMainnet.json.mjs";
38
+ import { default as Fe } from "./constants/deploy-data/deploy-data-optimism.json.mjs";
39
+ import { default as Me } from "./constants/deploy-data/deploy-data-polygon.json.mjs";
40
+ import { default as Oe } from "./constants/deploy-data/deploy-data-avalanche.json.mjs";
41
+ import { default as We } from "./constants/deploy-data/deploy-data-base.json.mjs";
42
+ import { default as Ge } from "./constants/deploy-data/deploy-data-localhost.json.mjs";
43
+ import { default as Ye } from "./constants/deploy-data/deploy-data-axelar1.json.mjs";
44
+ import { default as Ze } from "./constants/deploy-data/deploy-data-axelar2.json.mjs";
45
+ import { EthereumNetworkType as Qe, chainIds as je, chainIdsByType as Xe, crossChainAccessTokenNetworks as Je, getNonLocalhostChainId as $e, isLocalNetwork as er, isOptimismBedrockLike as rr, isOptimismEcotoneLike as or, isOptimismLike as tr, localhostNetwork as ar, networkRegistry as ir } from "./constants/chains.constants.mjs";
46
+ import { HINKAL_EXTERNAL_ACTION_FEE as nr, HINKAL_UNIVERSAL_FEE as pr, getAmountAfterRelayAndFlatFees as mr, getAmountAfterRelayAndFlatFeesAndSlippage as lr, getAmountAfterRelayFee as fr, getAmountAfterSlippage as dr, getAmountWithoutFee as cr, getHinkalFeeRateInBeeps as xr, getRelayFee as gr, getSlippageFee as ur } from "./constants/fees.constants.mjs";
47
+ import { contractMetadataMapping as yr, getHinkalParameters as Rr, uniswapV2PoolData as Tr, uniswapV3FactoryData as Pr, uniswapV3PoolData as kr, uniswapV3QuoterData as Sr } from "./constants/contracts.constants.mjs";
48
+ import { AIPRISE_KYB_TEMPLATE_ID_PROD as Cr, AIPRISE_KYC_TEMPLATE_ID_PROD as Er, SupportedPassports as hr, aipriseBaseOnboardingProductionUrl as br, aipriseBaseOnboardingSandboxUrl as Dr, supportedPassportLinks as vr } from "./constants/kyc.constants.mjs";
49
+ import { API_CONFIG as wr, DATA_SERVER_CONFIG as Ur, DATA_SERVER_PORT as Br, DATA_SERVER_URL_LOCAL as Fr, DATA_SERVER_URL_PRODUCTION as _r, PLAYGROUND_RELAYER_URLS as Mr, PLAYGROUND_SERVER_URLS as Nr, PLAYGROUND_URL as Or, RELAYER_CONFIG as Vr, RELAYER_URLS as Wr, SERVER_URLS as Hr, STAGING_RELAYER_URLS as Gr, STAGING_SERVER_URLS as Kr, STAGING_URL as Yr } from "./constants/server.constants.mjs";
50
+ import { DEPLOYMENT_MODE as Zr, deploymentMode as qr, isDevelopment as Qr, isNode as jr, isNotProduction as Xr, isPlayground as Jr, isStaging as $r, isWebpack as eo } from "./constants/vite.constants.mjs";
51
+ import { CIRCOM_P as oo, CIRCOM_P_HALF as to, beefyChainIds as ao, crvSymbol as io, curveWithdrawGasTokenAddress as so, curveZeroAddress as no, cvxSymbol as po, ethVolatileAddress as mo, oneInchZeroAddress as lo, ownerPublicKey as fo, permitSignatureValidFor as co, signaturePhrase as xo, threePoolSymbol as go, zeroAddress as uo } from "./constants/protocol.constants.mjs";
52
+ import { COINGECKO_API_KEY as yo, CoinGeckoChainLabels as Ro, coingeckoPriceUrl as To, coingeckoPriceUrl2 as Po, coingeckoTokenListUrl as ko, getCoingeckoIdForNativeTokens as So, getCoingeckoPlatform as Io, proCoingeckoUrl as Co, proHeader as Eo } from "./constants/coingecko.constants.mjs";
53
+ import { AxelarRegistry as bo } from "./constants/axelar.constants.mjs";
54
+ import { NETWORKS as vo, getGasStationUrl as Lo } from "./constants/backend.constants.mjs";
55
+ import { arbMainnetCrvCvxRegistry as Uo, avalancheCrvCvxRegistry as Bo, baseCrvCvxRegistry as Fo, ethCrvCvxRegistry as _o, getCrvCvxWithChainId as Mo, optimismCrvCvxRegistry as No, polygonCrvCvxRegistry as Oo } from "./constants/crvCvx.registry.mjs";
56
+ import { getCalcTokenAmountWithDynamicArray as Wo } from "./constants/crvDynamic.registry.mjs";
57
+ import { ethSymbol as Go, lidoStEthContractAddress as Ko, lidoStMaticAddress as Yo, lidoStakeManagerAddress as zo, lidoWithdrawalQueueERC721Address as Zo, lidoWstEthContractAddress as qo, maticSymbol as Qo, poLidoNftAddress as jo, stMaticSymbol as Xo, wstEthSymbol as Jo } from "./constants/lido.constants.mjs";
58
+ import { ACCESS_TOKEN_MINTING_POINTS as et, CERTIFICATION_DISABLE_WEEK as rt, REWARD_RECEIVABLE_TOKEN_SYMBOLS as ot, RafflePrizePoints as tt, boostAmounts as at, lpLink as it, lpProgramStartWeek as st, pointsLink as nt, raffleProgramStartWeek as pt, referralLink as mt } from "./constants/rewards.constants.mjs";
59
+ import { blockReorgDepth as ft } from "./constants/reorg-depths.constants.mjs";
60
+ import { ethBeefyRegistry as ct, getBeefyRegistryWithChainId as xt } from "./constants/beefy.registry.mjs";
61
+ import { arbPendleRegistry as ut, bnbPendleRegistry as At, ethPendleRegistry as yt, findSyAddress as Rt, getPendleRegistryWithChainId as Tt, getYtTokensWithChainId as Pt, isYtToken as kt, optimismPendleRegistry as St } from "./constants/pendle.registry.mjs";
62
+ import { poseidonFunction as Ct, poseidonHash as Et, poseidonHolder as ht } from "./crypto/poseidon.mjs";
63
+ import { babyJubInstance as Dt, jubHolder as vt } from "./crypto/babyJub.mjs";
64
+ import { preProcessing as wt } from "./crypto/preProcessing.mjs";
65
+ import { ValueCache as Bt } from "./data-structures/ValueCache/ValueCache.mjs";
66
+ import { abiDecodeUtxo as _t, checkUtxoSignature as Mt, decodeUtxo as Nt, decodeUtxoConstructorArgs as Ot } from "./data-structures/crypto-keys/decodeUTXO.mjs";
67
+ import { decryptUtxo as Wt, decryptUtxoConstructorArgs as Ht, encryptUtxo as Gt } from "./data-structures/crypto-keys/encryptDecryptUtxo.mjs";
68
+ import { EncryptionKeyPairDefaultValue as Yt, UserKeys as zt } from "./data-structures/crypto-keys/keys.mjs";
69
+ import { getCircomSign as qt, isCircomNegative as Qt } from "./data-structures/crypto-keys/keyUtils.mjs";
70
+ import { Hinkal as Xt } from "./data-structures/Hinkal/Hinkal.mjs";
71
+ import { hinkalActionBeefy as $t } from "./data-structures/Hinkal/hinkalActionBeefy.mjs";
72
+ import { hinkalActionConvex as ra } from "./data-structures/Hinkal/hinkalActionConvex.mjs";
73
+ import { hinkalActionCurve as ta } from "./data-structures/Hinkal/hinkalActionCurve.mjs";
74
+ import { hinkalActionPendle as ia } from "./data-structures/Hinkal/hinkalActionPendle.mjs";
75
+ import { hinkalDeposit as na, hinkalDepositForOther as pa } from "./data-structures/Hinkal/hinkalDeposit.mjs";
76
+ import { hinkalSwap as la } from "./data-structures/Hinkal/hinkalSwap.mjs";
77
+ import { hinkalTransfer as da } from "./data-structures/Hinkal/hinkalTransfer.mjs";
78
+ import { hinkalWithdraw as xa } from "./data-structures/Hinkal/hinkalWithdraw.mjs";
79
+ import { hinkalPrivateWallet as ua } from "./data-structures/Hinkal/hinkalPrivateWallet.mjs";
80
+ import { resetMerkleTrees as ya } from "./data-structures/Hinkal/resetMerkleTrees.mjs";
81
+ import { MerkleTree as Ta } from "./data-structures/merkle-tree/MerkleTree.mjs";
82
+ import { MerkleTreeIncompleteError as ka } from "./data-structures/merkle-tree/MerkleTreeIncompleteError.mjs";
83
+ import { AbstractAccessTokenSnapshotService as Ia } from "./data-structures/event-service/AbstractAccessTokenSnapshotService.mjs";
84
+ import { AbstractCommitmentsSnapshotService as Ea } from "./data-structures/event-service/AbstractCommitmentsSnapshotService.mjs";
85
+ import { AbstractNullifierSnapshotService as ba } from "./data-structures/event-service/AbstractNullifierSnapshotService.mjs";
86
+ import { AbstractSnapshotService as va } from "./data-structures/event-service/AbstractSnapshotService.mjs";
87
+ import { AbstractEventService as wa } from "./data-structures/event-service/AbstractEventService.mjs";
88
+ import { Utxo as Ba } from "./data-structures/utxo/Utxo.mjs";
89
+ import { customTokenRegistry as _a } from "./data-structures/custom-token-registry/CustomTokenRegistry.mjs";
90
+ import { TokenChecker as Na } from "./data-structures/token-price-fetcher/TokenChecker.mjs";
91
+ import { TransactionsManager as Va } from "./data-structures/transactions-manager/TransactionsManager.mjs";
92
+ import { TransactionType as Ha, externalActionToTransactionType as Ga } from "./data-structures/transactions-manager/history/history.types.mjs";
93
+ import { VolatileHelper as Ya } from "./data-structures/volatile-helper/VolatileHelper.mjs";
94
+ import { MultiThreadedUtxoUtils as Za, multiThreadedUtxoUtils as qa } from "./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs";
95
+ import { FeeOverTransactionValueError as ja } from "./error-handling/customErrors/FeeOverTransactionValueError.mjs";
96
+ import { getGenericFeeOverTransactionValueErrorMessage as Ja, rethrowKnownGasErrorIfPossible as $a } from "./error-handling/customErrors/customErrors.helpers.mjs";
97
+ import { UserFriendlyErrorCodes as ri, transactionErrorCodes as oi } from "./error-handling/error-codes.constants.mjs";
98
+ import { extractMessage as ai, getErrorMessage as ii } from "./error-handling/get-error.message.mjs";
99
+ import { checkErrorForSnapshotRestore as ni } from "./error-handling/handleErrorRestore.mjs";
100
+ import { logError as mi } from "./error-handling/logError.mjs";
101
+ import { ErrorCategory as fi } from "./error-handling/types.mjs";
102
+ import { abi as ci } from "./externalABIs/amToken.mjs";
103
+ import { abi as gi } from "./externalABIs/BeefyVaultAbi.json.mjs";
104
+ import { abi as Ai } from "./externalABIs/BUSD.mjs";
105
+ import { abi as Ri } from "./externalABIs/CurveReadingWrapperAbi.json.mjs";
106
+ import { abi as Pi } from "./externalABIs/CurveWrappedMainPool.json.mjs";
107
+ import { abi as Si } from "./externalABIs/DAI.mjs";
108
+ import { abi as Ci } from "./externalABIs/ERC20.json.mjs";
109
+ import { abi as hi } from "./externalABIs/IQuoterV2.json.mjs";
110
+ import { abi as Di } from "./externalABIs/IUniswapV3Factory.json.mjs";
111
+ import { abi as Li } from "./externalABIs/SanctionsList.mjs";
112
+ import { abi as Ui } from "./externalABIs/USDC.mjs";
113
+ import { abi as Fi } from "./externalABIs/USDR.mjs";
114
+ import { abi as Mi } from "./externalABIs/USDR3CRV.mjs";
115
+ import { abi as Oi } from "./externalABIs/USDT.mjs";
116
+ import { abi as Wi } from "./externalABIs/WETH.mjs";
117
+ import { abi as Gi } from "./externalABIs/ISwapRouter.json.mjs";
118
+ import { default as Yi } from "./externalABIs/LidoStEthAbi.json.mjs";
119
+ import { default as Zi } from "./externalABIs/LidoStMaticAbi.json.mjs";
120
+ import { default as Qi } from "./externalABIs/LidoWithdrawalQueueERC721Abi.json.mjs";
121
+ import { default as Xi } from "./externalABIs/PoLidoNftAbi.json.mjs";
122
+ import { default as $i } from "./externalABIs/LidoWstEthAbi.json.mjs";
123
+ import { default as rs } from "./externalABIs/LidoStakeManagerAbi.json.mjs";
124
+ import { abi as ts } from "./externalABIs/transactionsProver.json.mjs";
125
+ import { abi as is } from "./externalABIs/BabPassport.json.mjs";
126
+ import { abi as ns } from "./externalABIs/GalxePassport.json.mjs";
127
+ import { default as ms } from "./externalABIs/OptimismGasPriceOracle.json.mjs";
128
+ import { checkHinkalAccessToken as fs, mintAccessToken as ds, mintTokenCrossChain as cs } from "./functions/web3/functionCalls/accessTokenCalls.mjs";
129
+ import { openPassportWindow as gs } from "./functions/kyc/passportHelper.mjs";
130
+ import { openDefaultPassportWindow as As } from "./functions/kyc/openDefaultPassportWindow.mjs";
131
+ import { absBigInt as Rs, beepsToPercentage as Ts, bigintApplySugar as Ps, bigintMax as ks, calculateAmountUsingBeeps as Ss, calculateSum as Is, fixDecimalsAmount as Cs, getValueFirstNDigit as Es, minBigInt as hs, toBigInt as bs, toBigIntOrUndefined as Ds, toCommaSeparatedNumberString as vs, toInt as Ls, toNumberOrUndefined as ws, trimLeadingZeros as Us, truncateTo18DecimalPlaces as Bs } from "./functions/utils/amounts.utils.mjs";
132
+ import { getHinkalCache as _s, loadTxsCache as Ms, resetCache as Ns, saveTxsCache as Os, setHinkalCache as Vs } from "./functions/utils/cacheFunctions.mjs";
133
+ import { createProvider as Hs } from "./functions/utils/create-provider.mjs";
134
+ import { decodeMetadata as Ks, getActionFromMetadata as Ys, getExternalActionIdFromNumber as zs, getExternalActionIdHash as Zs, getExternalMetadataHash as qs } from "./functions/utils/external-action.utils.mjs";
135
+ import { getERC20Token as js, getERC20TokenBySymbol as Xs, getHToken as Js } from "./functions/utils/erc20tokenFunctions.mjs";
136
+ import { requireEnv as en } from "./functions/utils/requireEnv.mjs";
137
+ import { getSequence as on, resolveSync as tn } from "./functions/utils/resolve-sync.utils.mjs";
138
+ import { convertIntegrationProviderToExternalActionId as sn } from "./functions/utils/convertIntegrationProviderToExternalActionId.mjs";
139
+ import { getInteractionFromAction as pn } from "./functions/pre-transaction/interaction-to-action.mjs";
140
+ import { outputUtxoProcessing as ln } from "./functions/pre-transaction/outputUtxoProcessing.mjs";
141
+ import { processGasEstimates as dn } from "./functions/pre-transaction/process-gas-estimates.mjs";
142
+ import { processAmountChanges as xn } from "./functions/pre-transaction/processAmountChanges.mjs";
143
+ import { getFlatFees as un } from "./functions/pre-transaction/getFlatFees.mjs";
144
+ import { getNetworkObject as yn, getNetworkType as Rn } from "./functions/utils/evmNetworkFunctions.mjs";
145
+ import { getAxelarMigrationInfo as Pn } from "./functions/utils/axelar.utils.mjs";
146
+ import { browserSupported as Sn, walletSupported as In } from "./functions/utils/userAgent.mjs";
147
+ import { decodeTxInput as En, decodeTxLogs as hn, deserializeDecodedTxs as bn, serializeDecodedTxs as Dn } from "./functions/utils/getDataFromTransaction.mjs";
148
+ import { reloadPage as Ln } from "./functions/utils/reloadPage.mjs";
149
+ import { capitalizeFirstLetter as Un, isNullOrEmpty as Bn, toTitleCase as Fn } from "./functions/utils/string.utils.mjs";
150
+ import { isNicknameValid as Mn } from "./functions/utils/nickname.utils.mjs";
151
+ import { caseInsensitiveEqual as On, lowerCaseIncludes as Vn, lowerCaseStartsWith as Wn } from "./functions/utils/caseInsensitive.utils.mjs";
152
+ import { waitLittle as Gn } from "./functions/utils/time.utils.mjs";
153
+ import { patchRegistry as Yn } from "./functions/utils/volatile-patcher.utils.mjs";
154
+ import { Buffer as Zn, ProcessPolyfill as qn } from "./functions/utils/polyfills.mjs";
155
+ import { calculateDollarValue as jn, ethToWei as Xn, getAmountInToken as Jn, getAmountInWei as $n, getAmountInWeiOrZero as ep, getAmountWithPrecision as rp, getAmountWithPrecisionOrZero as op, randomBigInt as tp, toBigIntWithDecimals as ap } from "./functions/web3/etherFunctions.mjs";
156
+ import { getInputUtxoAndBalance as sp, getInputUtxosFromEncryptedOutputs as np } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
157
+ import { addPaddingToUtxos as mp, getShieldedBalance as lp } from "./functions/web3/events/getShieldedBalance.mjs";
158
+ import { getDepositEvents as dp, retrieveEvents as cp } from "./functions/web3/events/web3RetrieveEvents.mjs";
159
+ import { balanceChangedHandler as gp } from "./functions/web3/events/balanceChangedHandler.mjs";
160
+ import { getUniswapFee as Ap, getUniswapPrice as yp, getUniswapPriceHelper as Rp, searchPoolAndFee as Tp } from "./functions/web3/uniswapAPI.mjs";
161
+ import { getOdosPrice as kp } from "./functions/web3/odosAPI.mjs";
162
+ import { getOneInchPrice as Ip } from "./functions/web3/oneInchAPI.mjs";
163
+ import { runContractFunction as Ep } from "./functions/web3/runContractFunction.mjs";
164
+ import { constructZkProof as bp } from "./functions/snarkjs/constructGeneralZkProof.mjs";
165
+ import { constructEmporiumProof as vp } from "./functions/snarkjs/constructEmporiumProof.mjs";
166
+ import { buildInNullifiers as wp, buildOutCommitments as Up, calcAccessTokenSiblingsAndSides as Bp, calcAmountChanges as Fp, calcCommitmentsSiblingAndSides as _p, calcEncryptedOutputs as Mp, calcPublicSignalCount as Np, calcStealthAddressStructure as Op, createCallDataHash as Vp, deserializeCircomData as Wp, serializeCircomData as Hp } from "./functions/snarkjs/common.snarkjs.mjs";
167
+ import { generateZkProof as Kp } from "./functions/snarkjs/generateZkProof.mjs";
168
+ import { getCRV as zp } from "./functions/protocols/curve.protocols.mjs";
169
+ import { getCVX as qp } from "./functions/protocols/convex.protocols.mjs";
170
+ import { determinePendleSwapType as jp, determinePendleSwapTypeApiRoute as Xp, erc20TokenFromPendleAsset as Jp, getAssetTypeFromPendleMarket as $p, getTokenIndexForPendleFlatFee as em } from "./functions/protocols/pendle.helpers.mjs";
171
+ import { calculateStakeNullifier as om, createStakeCommitment as tm, decryptStake as am, encodeHStakeMetadata as im, encryptStake as sm } from "./functions/staking/index.mjs";
172
+ import { emporiumOp as pm, encodeEmporiumMetadata as mm } from "./functions/private-wallet/emporium.helpers.mjs";
173
+ import { OpType as fm, produceOp as dm } from "./functions/private-wallet/opProducer.mjs";
174
+ import { dataBeefyApiConfig as xm, isBeefyDeposit as gm } from "./types/beefy.types.mjs";
175
+ import { defaultHookData as Am, defaultHookDataArray as ym, defaultStealthAddressStructure as Rm, emptyStealthAddressStructure as Tm } from "./types/circom-data.types.mjs";
176
+ import { ContractType as km } from "./types/ethereum-network.types.mjs";
177
+ import { ExternalActionId as Im } from "./types/external-action.types.mjs";
178
+ import { BeefyAction as Em, ConvexAction as hm, CurveAction as bm, EventType as Dm, INTERACTION as vm, IntegrationProvider as Lm, LidoAction as wm, LidoVariant as Um, PendleAction as Bm, PendleLPAction as Fm, StakeProvider as _m, VolatileAction as Mm } from "./types/hinkal.types.mjs";
179
+ import { KycVerificationResult as Om, KycVerificationStatus as Vm, Passports as Wm, VERIFICATION_TYPE as Hm, VerificationTypes as Gm } from "./types/kyc.types.mjs";
180
+ import { ApprovalType as Ym } from "./types/token.types.mjs";
181
+ import { SlippageType as Zm, slippageLevels as qm } from "./types/slippage.types.mjs";
182
+ import { emptyDecodedTx as jm } from "./types/transactions.types.mjs";
183
+ import { MONTHS as Jm, dayInMilliseconds as $m, divideMonthOnIntervals as el, getCurrentWeek as rl, getDateFromWeek as ol, getNextDay as tl, getWeekTimestamps as al, hasCertificationPeriodExpired as il, hourInMilliseconds as sl, isWeekCurrent as nl, minuteInMilliseconds as pl, parseWeek as ml, secondInMilliseconds as ll, toDateString as fl, weekInMilliseconds as dl } from "./types/time.types.mjs";
184
+ import { BonusType as xl, CertifyType as gl, LP_TIER as ul, PaymentStatus as Al, PointType as yl, RafflePrizeType as Rl, RewardPage as Tl, RewardsHistoryDistribution as Pl, RewardsHistoryEligibility as kl, RewardsHistorySnapshots as Sl, RewardsHistoryStatuses as Il, RewardsPageTabs as Cl, TIER_LEVEL as El, Timeline as hl, emptyUserPointsBreakdown as bl, emptyUserPointsResponse as Dl } from "./types/rewards.types.mjs";
185
+ import { PendleAssetType as Ll, PendleChains as wl, PendleDashboardTabs as Ul, PendleEarnTabs as Bl, PendleMarketTransactionTypes as Fl, PendlePoolManualTabs as _l, PendlePoolTabs as Ml, PendlePoolZapTabs as Nl, PendleSwapType as Ol, PendleTabs as Vl, PendleTradeGeneralTabs as Wl, PendleTradeTabs as Hl } from "./types/pendle.types.mjs";
186
+ import { StatType as Kl, UpperTabPossibleValues as Yl, curveNetworkNames as zl, curvePools as Zl } from "./types/curve.types.mjs";
187
+ import { HinkalStakeMode as Ql } from "./types/hinkal.stake.types.mjs";
188
+ e();
188
189
  export {
189
- $o as ACCESS_TOKEN_MINTING_POINTS,
190
- Ir as AIPRISE_KYB_TEMPLATE_ID_PROD,
191
- Cr as AIPRISE_KYC_TEMPLATE_ID_PROD,
192
- D as API,
193
- Lr as API_CONFIG,
194
- Il as AbstractAccessTokenSnapshotService,
195
- El as AbstractCommitmentsSnapshotService,
196
- wl as AbstractEventService,
197
- bl as AbstractNullifierSnapshotService,
198
- vl as AbstractSnapshotService,
199
- jt as AmTokenABI,
200
- bp as ApprovalType,
201
- ho as AxelarRegistry,
202
- ea as BUSDABI,
203
- Ha as BabABI,
204
- mp as BeefyAction,
205
- Jt as BeefyVaultABI,
206
- Xp as BonusType,
207
- Ds as Buffer,
208
- et as CERTIFICATION_DISABLE_WEEK,
209
- ro as CIRCOM_P,
210
- oo as CIRCOM_P_HALF,
211
- Ao as COINGECKO_API_KEY,
212
- Jp as CertifyType,
213
- yo as CoinGeckoChainLabels,
214
- ip as ContractType,
215
- lp as ConvexAction,
216
- fp as CurveAction,
217
- oa as CurveReadingWrapperABI,
218
- aa as CurveWrappedMainPoolABI,
219
- wr as DATA_SERVER_CONFIG,
220
- Ur as DATA_SERVER_PORT,
221
- Br as DATA_SERVER_URL_LOCAL,
222
- Fr as DATA_SERVER_URL_PRODUCTION,
223
- zr as DEPLOYMENT_MODE,
224
- pa as ERC20ABI,
225
- Ym as EncryptionKeyPairDefaultValue,
226
- qt as ErrorCategory,
227
- qe as EthereumNetworkType,
228
- cp as EventType,
229
- np as ExternalActionId,
230
- Ut as FeeOverTransactionValueError,
231
- Ka as GalxeABI,
232
- sr as HINKAL_EXTERNAL_ACTION_FEE,
233
- nr as HINKAL_UNIVERSAL_FEE,
234
- Xm as Hinkal,
235
- wm as HinkalStakeMode,
236
- W as IMAGE_PATHS,
237
- dp as INTERACTION,
238
- Ea as ISwapRouterABI,
239
- xp as IntegrationProvider,
240
- kp as KycVerificationResult,
241
- Sp as KycVerificationStatus,
242
- $p as LP_TIER,
243
- gp as LidoAction,
244
- up as LidoVariant,
245
- Fp as MONTHS,
246
- Tl as MerkleTree,
247
- kl as MerkleTreeIncompleteError,
248
- Zl as MultiThreadedUtxoUtils,
249
- Do as NETWORKS,
250
- qn as OpType,
251
- _r as PLAYGROUND_RELAYER_URLS,
252
- Mr as PLAYGROUND_SERVER_URLS,
253
- Nr as PLAYGROUND_URL,
254
- Ip as Passports,
255
- em as PaymentStatus,
256
- Ap as PendleAction,
257
- xm as PendleAssetType,
258
- gm as PendleChains,
259
- um as PendleDashboardTabs,
260
- Am as PendleEarnTabs,
261
- yp as PendleLPAction,
262
- ym as PendleMarketTransactionTypes,
263
- Rm as PendlePoolManualTabs,
264
- Tm as PendlePoolTabs,
265
- Pm as PendlePoolZapTabs,
266
- km as PendleSwapType,
267
- Sm as PendleTabs,
268
- Im as PendleTradeGeneralTabs,
269
- Cm as PendleTradeTabs,
270
- rm as PointType,
271
- Se as PopularTokenSymbols,
272
- vs as ProcessPolyfill,
273
- Or as RELAYER_CONFIG,
274
- Vr as RELAYER_URLS,
275
- rt as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
276
- ot as RafflePrizePoints,
277
- om as RafflePrizeType,
278
- tm as RewardPage,
279
- am as RewardsHistoryDistribution,
280
- im as RewardsHistoryEligibility,
281
- sm as RewardsHistorySnapshots,
282
- nm as RewardsHistoryStatuses,
283
- pm as RewardsPageTabs,
284
- Wr as SERVER_URLS,
285
- Hr as STAGING_RELAYER_URLS,
286
- Gr as STAGING_SERVER_URLS,
287
- Kr as STAGING_URL,
288
- vp as SlippageType,
289
- Rp as StakeProvider,
290
- hm as StatType,
291
- Er as SupportedPassports,
292
- mm as TIER_LEVEL,
293
- lm as Timeline,
294
- Nl as TokenChecker,
295
- Hl as TransactionType,
296
- Vl as TransactionsManager,
297
- ua as USDCABI,
298
- Ta as USDR3CRVABI,
299
- ya as USDRABI,
300
- ka as USDTABI,
301
- bm as UpperTabPossibleValues,
302
- Nt as UserFriendlyErrorCodes,
303
- zm as UserKeys,
304
- Bl as Utxo,
305
- Cp as VERIFICATION_TYPE,
306
- Bm as ValueCache,
307
- Ep as VerificationTypes,
308
- Tp as VolatileAction,
309
- Yl as VolatileHelper,
310
- Ia as WETHABI,
311
- _m as abiDecodeUtxo,
312
- oi as absBigInt,
313
- Ys as addPaddingToUtxos,
314
- hr as aipriseBaseOnboardingProductionUrl,
315
- br as aipriseBaseOnboardingSandboxUrl,
316
- wo as arbMainnetCrvCvxRegistry,
317
- ve as arbMainnetData,
318
- me as arbMainnetRegistry,
319
- Q as arbMainnetRegistryFixed,
320
- gt as arbPendleRegistry,
321
- Uo as avalancheCrvCvxRegistry,
322
- Ne as avalancheData,
323
- ge as avalancheRegistry,
324
- re as avalancheRegistryFixed,
325
- Ke as axelar1Data,
326
- ze as axelar2Data,
327
- bt as babyJubInstance,
328
- Xs as balanceChangedHandler,
329
- Bo as baseCrvCvxRegistry,
330
- Ve as baseData,
331
- Re as baseRegistry,
332
- ie as baseRegistryFixed,
333
- to as beefyChainIds,
334
- ti as beepsToPercentage,
335
- ai as bigintApplySugar,
336
- ii as bigintMax,
337
- lt as blockReorgDepth,
338
- be as bnbMainnetData,
339
- fe as bnbMainnetRegistry,
340
- X as bnbMainnetRegistryFixed,
341
- ut as bnbPendleRegistry,
342
- tt as boostAmounts,
343
- is as browserSupported,
344
- gn as buildInNullifiers,
345
- un as buildOutCommitments,
346
- An as calcAccessTokenSiblingsAndSides,
347
- yn as calcAmountChanges,
348
- Rn as calcCommitmentsSiblingAndSides,
349
- Tn as calcEncryptedOutputs,
350
- Pn as calcPublicSignalCount,
351
- kn as calcStealthAddressStructure,
352
- si as calculateAmountUsingBeeps,
353
- ws as calculateDollarValue,
354
- On as calculateStakeNullifier,
355
- ni as calculateSum,
356
- f as callOneInchAPI,
357
- g as callRelayerTransactAPI,
358
- gs as capitalizeFirstLetter,
359
- Ps as caseInsensitiveEqual,
360
- Qe as chainIds,
361
- je as chainIdsByType,
362
- Kt as checkErrorForSnapshotRestore,
363
- qa as checkHinkalAccessToken,
364
- C as checkRisk,
365
- Mm as checkUtxoSignature,
366
- Ro as coingeckoPriceUrl,
367
- To as coingeckoPriceUrl2,
368
- Po as coingeckoTokenListUrl,
369
- dn as constructEmporiumProof,
370
- fn as constructZkProof,
371
- Ar as contractMetadataMapping,
372
- Hi as convertIntegrationProviderToExternalActionId,
373
- Sn as createCallDataHash,
374
- Ci as createProvider,
375
- Vn as createStakeCommitment,
376
- Xe as crossChainAccessTokenNetworks,
377
- ao as crvSymbol,
378
- Dm as curveNetworkNames,
379
- vm as curvePools,
380
- io as curveWithdrawGasTokenAddress,
381
- so as curveZeroAddress,
382
- _l as customTokenRegistry,
383
- no as cvxSymbol,
384
- sa as daiABI,
385
- Xn as dataBeefyApiConfig,
386
- _p as dayInMilliseconds,
387
- hi as decodeMetadata,
388
- ps as decodeTxInput,
389
- ms as decodeTxLogs,
390
- Nm as decodeUtxo,
391
- Om as decodeUtxoConstructorArgs,
392
- Wn as decryptStake,
393
- Wm as decryptUtxo,
394
- Hm as decryptUtxoConstructorArgs,
395
- ep as defaultHookData,
396
- rp as defaultHookDataArray,
397
- op as defaultStealthAddressStructure,
398
- Zr as deploymentMode,
399
- In as deserializeCircomData,
400
- ls as deserializeDecodedTxs,
401
- Un as determinePendleSwapType,
402
- Bn as determinePendleSwapTypeApiRoute,
403
- Mp as divideMonthOnIntervals,
404
- Yn as emporiumOp,
405
- Up as emptyDecodedTx,
406
- tp as emptyStealthAddressStructure,
407
- fm as emptyUserPointsBreakdown,
408
- cm as emptyUserPointsResponse,
409
- zn as encodeEmporiumMetadata,
410
- Hn as encodeHStakeMetadata,
411
- Gn as encryptStake,
412
- Gm as encryptUtxo,
413
- Fn as erc20TokenFromPendleAsset,
190
+ et as ACCESS_TOKEN_MINTING_POINTS,
191
+ Cr as AIPRISE_KYB_TEMPLATE_ID_PROD,
192
+ Er as AIPRISE_KYC_TEMPLATE_ID_PROD,
193
+ v as API,
194
+ wr as API_CONFIG,
195
+ Ia as AbstractAccessTokenSnapshotService,
196
+ Ea as AbstractCommitmentsSnapshotService,
197
+ wa as AbstractEventService,
198
+ ba as AbstractNullifierSnapshotService,
199
+ va as AbstractSnapshotService,
200
+ ci as AmTokenABI,
201
+ Ym as ApprovalType,
202
+ bo as AxelarRegistry,
203
+ Ai as BUSDABI,
204
+ is as BabABI,
205
+ Em as BeefyAction,
206
+ gi as BeefyVaultABI,
207
+ xl as BonusType,
208
+ Zn as Buffer,
209
+ rt as CERTIFICATION_DISABLE_WEEK,
210
+ oo as CIRCOM_P,
211
+ to as CIRCOM_P_HALF,
212
+ yo as COINGECKO_API_KEY,
213
+ gl as CertifyType,
214
+ Ro as CoinGeckoChainLabels,
215
+ km as ContractType,
216
+ hm as ConvexAction,
217
+ bm as CurveAction,
218
+ Ri as CurveReadingWrapperABI,
219
+ Pi as CurveWrappedMainPoolABI,
220
+ Ur as DATA_SERVER_CONFIG,
221
+ Br as DATA_SERVER_PORT,
222
+ Fr as DATA_SERVER_URL_LOCAL,
223
+ _r as DATA_SERVER_URL_PRODUCTION,
224
+ Zr as DEPLOYMENT_MODE,
225
+ Ci as ERC20ABI,
226
+ Yt as EncryptionKeyPairDefaultValue,
227
+ fi as ErrorCategory,
228
+ Qe as EthereumNetworkType,
229
+ Dm as EventType,
230
+ Im as ExternalActionId,
231
+ ja as FeeOverTransactionValueError,
232
+ ns as GalxeABI,
233
+ nr as HINKAL_EXTERNAL_ACTION_FEE,
234
+ pr as HINKAL_UNIVERSAL_FEE,
235
+ Xt as Hinkal,
236
+ Ql as HinkalStakeMode,
237
+ H as IMAGE_PATHS,
238
+ vm as INTERACTION,
239
+ Gi as ISwapRouterABI,
240
+ Lm as IntegrationProvider,
241
+ Om as KycVerificationResult,
242
+ Vm as KycVerificationStatus,
243
+ ul as LP_TIER,
244
+ wm as LidoAction,
245
+ Um as LidoVariant,
246
+ Jm as MONTHS,
247
+ Ta as MerkleTree,
248
+ ka as MerkleTreeIncompleteError,
249
+ Za as MultiThreadedUtxoUtils,
250
+ vo as NETWORKS,
251
+ fm as OpType,
252
+ Mr as PLAYGROUND_RELAYER_URLS,
253
+ Nr as PLAYGROUND_SERVER_URLS,
254
+ Or as PLAYGROUND_URL,
255
+ Wm as Passports,
256
+ Al as PaymentStatus,
257
+ Bm as PendleAction,
258
+ Ll as PendleAssetType,
259
+ wl as PendleChains,
260
+ Ul as PendleDashboardTabs,
261
+ Bl as PendleEarnTabs,
262
+ Fm as PendleLPAction,
263
+ Fl as PendleMarketTransactionTypes,
264
+ _l as PendlePoolManualTabs,
265
+ Ml as PendlePoolTabs,
266
+ Nl as PendlePoolZapTabs,
267
+ Ol as PendleSwapType,
268
+ Vl as PendleTabs,
269
+ Wl as PendleTradeGeneralTabs,
270
+ Hl as PendleTradeTabs,
271
+ yl as PointType,
272
+ Ie as PopularTokenSymbols,
273
+ qn as ProcessPolyfill,
274
+ Vr as RELAYER_CONFIG,
275
+ Wr as RELAYER_URLS,
276
+ ot as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
277
+ tt as RafflePrizePoints,
278
+ Rl as RafflePrizeType,
279
+ Tl as RewardPage,
280
+ Pl as RewardsHistoryDistribution,
281
+ kl as RewardsHistoryEligibility,
282
+ Sl as RewardsHistorySnapshots,
283
+ Il as RewardsHistoryStatuses,
284
+ Cl as RewardsPageTabs,
285
+ Hr as SERVER_URLS,
286
+ Gr as STAGING_RELAYER_URLS,
287
+ Kr as STAGING_SERVER_URLS,
288
+ Yr as STAGING_URL,
289
+ Zm as SlippageType,
290
+ _m as StakeProvider,
291
+ Kl as StatType,
292
+ hr as SupportedPassports,
293
+ El as TIER_LEVEL,
294
+ hl as Timeline,
295
+ Na as TokenChecker,
296
+ Ha as TransactionType,
297
+ Va as TransactionsManager,
298
+ Ui as USDCABI,
299
+ Mi as USDR3CRVABI,
300
+ Fi as USDRABI,
301
+ Oi as USDTABI,
302
+ Yl as UpperTabPossibleValues,
303
+ ri as UserFriendlyErrorCodes,
304
+ zt as UserKeys,
305
+ Ba as Utxo,
306
+ Hm as VERIFICATION_TYPE,
307
+ Bt as ValueCache,
308
+ Gm as VerificationTypes,
309
+ Mm as VolatileAction,
310
+ Ya as VolatileHelper,
311
+ Wi as WETHABI,
312
+ _t as abiDecodeUtxo,
313
+ Rs as absBigInt,
314
+ mp as addPaddingToUtxos,
315
+ br as aipriseBaseOnboardingProductionUrl,
316
+ Dr as aipriseBaseOnboardingSandboxUrl,
317
+ Uo as arbMainnetCrvCvxRegistry,
318
+ Le as arbMainnetData,
319
+ le as arbMainnetRegistry,
320
+ j as arbMainnetRegistryFixed,
321
+ ut as arbPendleRegistry,
322
+ Bo as avalancheCrvCvxRegistry,
323
+ Oe as avalancheData,
324
+ ue as avalancheRegistry,
325
+ oe as avalancheRegistryFixed,
326
+ Ye as axelar1Data,
327
+ Ze as axelar2Data,
328
+ Dt as babyJubInstance,
329
+ gp as balanceChangedHandler,
330
+ Fo as baseCrvCvxRegistry,
331
+ We as baseData,
332
+ Te as baseRegistry,
333
+ se as baseRegistryFixed,
334
+ ao as beefyChainIds,
335
+ Ts as beepsToPercentage,
336
+ Ps as bigintApplySugar,
337
+ ks as bigintMax,
338
+ ft as blockReorgDepth,
339
+ De as bnbMainnetData,
340
+ de as bnbMainnetRegistry,
341
+ J as bnbMainnetRegistryFixed,
342
+ At as bnbPendleRegistry,
343
+ at as boostAmounts,
344
+ Sn as browserSupported,
345
+ wp as buildInNullifiers,
346
+ Up as buildOutCommitments,
347
+ Bp as calcAccessTokenSiblingsAndSides,
348
+ Fp as calcAmountChanges,
349
+ _p as calcCommitmentsSiblingAndSides,
350
+ Mp as calcEncryptedOutputs,
351
+ Np as calcPublicSignalCount,
352
+ Op as calcStealthAddressStructure,
353
+ Ss as calculateAmountUsingBeeps,
354
+ jn as calculateDollarValue,
355
+ om as calculateStakeNullifier,
356
+ Is as calculateSum,
357
+ d as callOneInchAPI,
358
+ u as callRelayerTransactAPI,
359
+ Un as capitalizeFirstLetter,
360
+ On as caseInsensitiveEqual,
361
+ je as chainIds,
362
+ Xe as chainIdsByType,
363
+ ni as checkErrorForSnapshotRestore,
364
+ fs as checkHinkalAccessToken,
365
+ E as checkRisk,
366
+ Mt as checkUtxoSignature,
367
+ To as coingeckoPriceUrl,
368
+ Po as coingeckoPriceUrl2,
369
+ ko as coingeckoTokenListUrl,
370
+ vp as constructEmporiumProof,
371
+ bp as constructZkProof,
372
+ yr as contractMetadataMapping,
373
+ sn as convertIntegrationProviderToExternalActionId,
374
+ Vp as createCallDataHash,
375
+ Hs as createProvider,
376
+ tm as createStakeCommitment,
377
+ Je as crossChainAccessTokenNetworks,
378
+ io as crvSymbol,
379
+ zl as curveNetworkNames,
380
+ Zl as curvePools,
381
+ so as curveWithdrawGasTokenAddress,
382
+ no as curveZeroAddress,
383
+ _a as customTokenRegistry,
384
+ po as cvxSymbol,
385
+ Si as daiABI,
386
+ xm as dataBeefyApiConfig,
387
+ $m as dayInMilliseconds,
388
+ Ks as decodeMetadata,
389
+ En as decodeTxInput,
390
+ hn as decodeTxLogs,
391
+ Nt as decodeUtxo,
392
+ Ot as decodeUtxoConstructorArgs,
393
+ am as decryptStake,
394
+ Wt as decryptUtxo,
395
+ Ht as decryptUtxoConstructorArgs,
396
+ Am as defaultHookData,
397
+ ym as defaultHookDataArray,
398
+ Rm as defaultStealthAddressStructure,
399
+ qr as deploymentMode,
400
+ Wp as deserializeCircomData,
401
+ bn as deserializeDecodedTxs,
402
+ jp as determinePendleSwapType,
403
+ Xp as determinePendleSwapTypeApiRoute,
404
+ el as divideMonthOnIntervals,
405
+ pm as emporiumOp,
406
+ jm as emptyDecodedTx,
407
+ Tm as emptyStealthAddressStructure,
408
+ bl as emptyUserPointsBreakdown,
409
+ Dl as emptyUserPointsResponse,
410
+ mm as encodeEmporiumMetadata,
411
+ im as encodeHStakeMetadata,
412
+ sm as encryptStake,
413
+ Gt as encryptUtxo,
414
+ Jp as erc20TokenFromPendleAsset,
414
415
  ct as ethBeefyRegistry,
415
- Fo as ethCrvCvxRegistry,
416
- we as ethMainnetData,
417
- ne as ethMainnetRegistry,
418
- Z as ethMainnetRegistryFixed,
419
- At as ethPendleRegistry,
420
- Ho as ethSymbol,
421
- Us as ethToWei,
422
- po as ethVolatileAddress,
423
- Gl as externalActionToTransactionType,
424
- Wt as extractMessage,
425
- ca as factoryABI,
426
- yt as findSyAddress,
427
- pi as fixDecimalsAmount,
428
- hn as generateZkProof,
429
- bi as getActionFromMetadata,
430
- pr as getAmountAfterRelayAndFlatFees,
431
- mr as getAmountAfterRelayAndFlatFeesAndSlippage,
432
- lr as getAmountAfterRelayFee,
433
- fr as getAmountAfterSlippage,
434
- Bs as getAmountInToken,
435
- Fs as getAmountInWei,
436
- _s as getAmountInWeiOrZero,
437
- Ms as getAmountWithPrecision,
438
- Ns as getAmountWithPrecisionOrZero,
416
+ _o as ethCrvCvxRegistry,
417
+ Ue as ethMainnetData,
418
+ pe as ethMainnetRegistry,
419
+ q as ethMainnetRegistryFixed,
420
+ yt as ethPendleRegistry,
421
+ Go as ethSymbol,
422
+ Xn as ethToWei,
423
+ mo as ethVolatileAddress,
424
+ Ga as externalActionToTransactionType,
425
+ ai as extractMessage,
426
+ Di as factoryABI,
427
+ Rt as findSyAddress,
428
+ Cs as fixDecimalsAmount,
429
+ Kp as generateZkProof,
430
+ Ys as getActionFromMetadata,
431
+ mr as getAmountAfterRelayAndFlatFees,
432
+ lr as getAmountAfterRelayAndFlatFeesAndSlippage,
433
+ fr as getAmountAfterRelayFee,
434
+ dr as getAmountAfterSlippage,
435
+ Jn as getAmountInToken,
436
+ $n as getAmountInWei,
437
+ ep as getAmountInWeiOrZero,
438
+ rp as getAmountWithPrecision,
439
+ op as getAmountWithPrecisionOrZero,
439
440
  cr as getAmountWithoutFee,
440
- _n as getAssetTypeFromPendleMarket,
441
- A as getAxelarGasEstimate,
442
- ts as getAxelarMigrationInfo,
443
- d as getBeefyHistoricalChartData,
444
- dt as getBeefyRegistryWithChainId,
445
- Dn as getCRV,
446
- Ln as getCVX,
447
- Vo as getCalcTokenAmountWithDynamicArray,
448
- qm as getCircomSign,
449
- ko as getCoingeckoIdForNativeTokens,
450
- So as getCoingeckoPlatform,
451
- s as getCoingeckoPrice,
452
- n as getCoingeckoPrice2,
453
- p as getCoingeckoPrices,
454
- m as getCoingeckoTokenList,
455
- _o as getCrvCvxWithChainId,
456
- Np as getCurrentWeek,
457
- L as getCurvePools,
458
- w as getCurvePoolsforPriceFetching,
459
- t as getDataServerURL,
460
- Op as getDateFromWeek,
461
- qs as getDepositEvents,
462
- Ce as getERC20Registry,
463
- Ui as getERC20Token,
464
- Bi as getERC20TokenBySymbol,
465
- Ht as getErrorMessage,
466
- U as getExtendedPoolInfo,
467
- Di as getExternalActionIdFromNumber,
468
- vi as getExternalActionIdHash,
469
- Li as getExternalMetadataHash,
470
- Ee as getFixedRegistry,
471
- Ji as getFlatFees,
472
- R as getGasEstimates,
473
- vo as getGasStationUrl,
474
- Ft as getGenericFeeOverTransactionValueErrorMessage,
475
- Fi as getHToken,
476
- Ri as getHinkalCache,
477
- dr as getHinkalFeeRateInBeeps,
478
- yr as getHinkalParameters,
479
- h as getIdleRelay,
480
- Hs as getInputUtxoAndBalance,
481
- Gs as getInputUtxosFromEncryptedOutputs,
482
- Ki as getInteractionFromAction,
483
- es as getNetworkObject,
484
- rs as getNetworkType,
485
- Vp as getNextDay,
486
- Je as getNonLocalhostChainId,
487
- an as getOdosPrice,
488
- nn as getOneInchPrice,
489
- Rt as getPendleRegistryWithChainId,
490
- O as getPublicWalletBalance,
491
- xr as getRelayFee,
492
- M as getRelayerURL,
493
- Oi as getSequence,
494
- a as getServerURL,
495
- zs as getShieldedBalance,
496
- gr as getSlippageFee,
497
- Mn as getTokenIndexForPendleFlatFee,
498
- P as getTokenPrice,
499
- k as getTokenPriceEth,
500
- S as getTokenPrices,
501
- $s as getUniswapFee,
502
- en as getUniswapPrice,
503
- rn as getUniswapPriceHelper,
504
- mi as getValueFirstNDigit,
505
- Wp as getWeekTimestamps,
506
- Tt as getYtTokensWithChainId,
507
- Hp as hasCertificationPeriodExpired,
508
- $m as hinkalActionBeefy,
509
- rl as hinkalActionConvex,
510
- tl as hinkalActionCurve,
511
- il as hinkalActionPendle,
512
- nl as hinkalDeposit,
513
- pl as hinkalDepositForOther,
514
- ul as hinkalPrivateWallet,
515
- ll as hinkalSwap,
516
- cl as hinkalTransfer,
517
- xl as hinkalWithdraw,
518
- Gp as hourInMilliseconds,
519
- Jn as isBeefyDeposit,
520
- Qm as isCircomNegative,
521
- qr as isDevelopment,
522
- $e as isLocalNetwork,
523
- Rs as isNicknameValid,
524
- Qr as isNode,
525
- jr as isNotProduction,
526
- us as isNullOrEmpty,
527
- er as isOptimismBedrockLike,
528
- rr as isOptimismEcotoneLike,
529
- or as isOptimismLike,
530
- Xr as isPlayground,
531
- Jr as isStaging,
532
- $r as isWebpack,
533
- Kp as isWeekCurrent,
534
- Pt as isYtToken,
535
- Dt as jubHolder,
536
- ba as lidoStEthAbi,
537
- Go as lidoStEthContractAddress,
538
- va as lidoStMaticAbi,
539
- Ko as lidoStMaticAddress,
540
- Na as lidoStakeManagerAbi,
541
- Yo as lidoStakeManagerAddress,
542
- wa as lidoWithdrawalQueueERC721Abi,
543
- zo as lidoWithdrawalQueueERC721Address,
544
- _a as lidoWstEthAbi,
545
- Zo as lidoWstEthContractAddress,
546
- Ti as loadTxsCache,
547
- He as localhostData,
548
- tr as localhostNetwork,
549
- Pe as localhostRegistry,
550
- zt as logError,
551
- ks as lowerCaseIncludes,
552
- Ss as lowerCaseStartsWith,
553
- at as lpLink,
554
- it as lpProgramStartWeek,
555
- B as lpTokens,
556
- F as lpTokensToBasePool,
557
- qo as maticSymbol,
558
- li as minBigInt,
559
- Qa as mintAccessToken,
560
- ja as mintTokenCrossChain,
561
- Yp as minuteInMilliseconds,
562
- ql as multiThreadedUtxoUtils,
563
- ar as networkRegistry,
564
- mo as oneInchZeroAddress,
565
- ei as openDefaultPassportWindow,
566
- Ja as openPassportWindow,
567
- Mo as optimismCrvCvxRegistry,
568
- Be as optimismData,
569
- za as optimismGasPriceOracleAbi,
570
- kt as optimismPendleRegistry,
571
- Ae as optimismRegistry,
572
- te as optimismRegistryFixed,
573
- zi as outputUtxoProcessing,
574
- lo as ownerPublicKey,
575
- zp as parseWeek,
576
- hs as patchRegistry,
577
- fo as permitSignatureValidFor,
578
- Ba as poLidoNftAbi,
579
- Qo as poLidoNftAddress,
580
- st as pointsLink,
581
- No as polygonCrvCvxRegistry,
582
- _e as polygonData,
583
- de as polygonRegistry,
584
- $ as polygonRegistryFixed,
585
- It as poseidonFunction,
586
- Ct as poseidonHash,
587
- Et as poseidonHolder,
588
- Lt as preProcessing,
589
- Io as proCoingeckoUrl,
590
- Co as proHeader,
591
- ji as processAmountChanges,
592
- qi as processGasEstimates,
593
- Qn as produceOp,
594
- la as quoterV2ABI,
595
- nt as raffleProgramStartWeek,
596
- Os as randomBigInt,
597
- pt as referralLink,
598
- ds as reloadPage,
599
- Mi as requireEnv,
600
- Pi as resetCache,
601
- yl as resetMerkleTrees,
602
- Vi as resolveSync,
603
- _t as rethrowKnownGasErrorIfPossible,
604
- Qs as retrieveEvents,
605
- mn as runContractFunction,
606
- xa as sanctionsListABI,
607
- ki as saveTxsCache,
608
- on as searchPoolAndFee,
609
- Zp as secondInMilliseconds,
610
- Cn as serializeCircomData,
611
- fs as serializeDecodedTxs,
612
- Si as setHinkalCache,
613
- co as signaturePhrase,
614
- Lp as slippageLevels,
615
- jo as stMaticSymbol,
616
- Dr as supportedPassportLinks,
617
- xo as threePoolSymbol,
618
- fi as toBigInt,
619
- ci as toBigIntOrUndefined,
620
- Vs as toBigIntWithDecimals,
621
- di as toCommaSeparatedNumberString,
622
- qp as toDateString,
623
- xi as toInt,
624
- gi as toNumberOrUndefined,
625
- As as toTitleCase,
626
- Ot as transactionErrorCodes,
627
- Va as transactionProverABI,
628
- ui as trimLeadingZeros,
629
- Ai as truncateTo18DecimalPlaces,
630
- Rr as uniswapV2PoolData,
631
- Tr as uniswapV3FactoryData,
632
- Pr as uniswapV3PoolData,
633
- kr as uniswapV3QuoterData,
634
- G as urlForBeefyVaultTokens,
635
- K as urlForBeefyVaultTotalInUSD,
636
- Y as urlForRegularTokenPricesInBeefy,
637
- Cs as waitLittle,
638
- ss as walletSupported,
639
- Qp as weekInMilliseconds,
640
- Xo as wstEthSymbol,
641
- go as zeroAddress
441
+ $p as getAssetTypeFromPendleMarket,
442
+ y as getAxelarGasEstimate,
443
+ Pn as getAxelarMigrationInfo,
444
+ x as getBeefyHistoricalChartData,
445
+ xt as getBeefyRegistryWithChainId,
446
+ zp as getCRV,
447
+ qp as getCVX,
448
+ Wo as getCalcTokenAmountWithDynamicArray,
449
+ qt as getCircomSign,
450
+ So as getCoingeckoIdForNativeTokens,
451
+ Io as getCoingeckoPlatform,
452
+ n as getCoingeckoPrice,
453
+ p as getCoingeckoPrice2,
454
+ m as getCoingeckoPrices,
455
+ l as getCoingeckoTokenList,
456
+ Mo as getCrvCvxWithChainId,
457
+ rl as getCurrentWeek,
458
+ w as getCurvePools,
459
+ U as getCurvePoolsforPriceFetching,
460
+ a as getDataServerURL,
461
+ ol as getDateFromWeek,
462
+ dp as getDepositEvents,
463
+ Ee as getERC20Registry,
464
+ js as getERC20Token,
465
+ Xs as getERC20TokenBySymbol,
466
+ ii as getErrorMessage,
467
+ B as getExtendedPoolInfo,
468
+ zs as getExternalActionIdFromNumber,
469
+ Zs as getExternalActionIdHash,
470
+ qs as getExternalMetadataHash,
471
+ he as getFixedRegistry,
472
+ un as getFlatFees,
473
+ T as getGasEstimates,
474
+ Lo as getGasStationUrl,
475
+ Ja as getGenericFeeOverTransactionValueErrorMessage,
476
+ Js as getHToken,
477
+ _s as getHinkalCache,
478
+ xr as getHinkalFeeRateInBeeps,
479
+ Rr as getHinkalParameters,
480
+ b as getIdleRelay,
481
+ sp as getInputUtxoAndBalance,
482
+ np as getInputUtxosFromEncryptedOutputs,
483
+ pn as getInteractionFromAction,
484
+ yn as getNetworkObject,
485
+ Rn as getNetworkType,
486
+ tl as getNextDay,
487
+ $e as getNonLocalhostChainId,
488
+ kp as getOdosPrice,
489
+ Ip as getOneInchPrice,
490
+ Tt as getPendleRegistryWithChainId,
491
+ V as getPublicWalletBalance,
492
+ gr as getRelayFee,
493
+ N as getRelayerURL,
494
+ on as getSequence,
495
+ i as getServerURL,
496
+ lp as getShieldedBalance,
497
+ ur as getSlippageFee,
498
+ em as getTokenIndexForPendleFlatFee,
499
+ k as getTokenPrice,
500
+ S as getTokenPriceEth,
501
+ I as getTokenPrices,
502
+ Ap as getUniswapFee,
503
+ yp as getUniswapPrice,
504
+ Rp as getUniswapPriceHelper,
505
+ Es as getValueFirstNDigit,
506
+ al as getWeekTimestamps,
507
+ Pt as getYtTokensWithChainId,
508
+ il as hasCertificationPeriodExpired,
509
+ $t as hinkalActionBeefy,
510
+ ra as hinkalActionConvex,
511
+ ta as hinkalActionCurve,
512
+ ia as hinkalActionPendle,
513
+ na as hinkalDeposit,
514
+ pa as hinkalDepositForOther,
515
+ ua as hinkalPrivateWallet,
516
+ la as hinkalSwap,
517
+ da as hinkalTransfer,
518
+ xa as hinkalWithdraw,
519
+ sl as hourInMilliseconds,
520
+ gm as isBeefyDeposit,
521
+ Qt as isCircomNegative,
522
+ Qr as isDevelopment,
523
+ er as isLocalNetwork,
524
+ Mn as isNicknameValid,
525
+ jr as isNode,
526
+ Xr as isNotProduction,
527
+ Bn as isNullOrEmpty,
528
+ rr as isOptimismBedrockLike,
529
+ or as isOptimismEcotoneLike,
530
+ tr as isOptimismLike,
531
+ Jr as isPlayground,
532
+ $r as isStaging,
533
+ eo as isWebpack,
534
+ nl as isWeekCurrent,
535
+ kt as isYtToken,
536
+ vt as jubHolder,
537
+ Yi as lidoStEthAbi,
538
+ Ko as lidoStEthContractAddress,
539
+ Zi as lidoStMaticAbi,
540
+ Yo as lidoStMaticAddress,
541
+ rs as lidoStakeManagerAbi,
542
+ zo as lidoStakeManagerAddress,
543
+ Qi as lidoWithdrawalQueueERC721Abi,
544
+ Zo as lidoWithdrawalQueueERC721Address,
545
+ $i as lidoWstEthAbi,
546
+ qo as lidoWstEthContractAddress,
547
+ Ms as loadTxsCache,
548
+ Ge as localhostData,
549
+ ar as localhostNetwork,
550
+ ke as localhostRegistry,
551
+ mi as logError,
552
+ Vn as lowerCaseIncludes,
553
+ Wn as lowerCaseStartsWith,
554
+ it as lpLink,
555
+ st as lpProgramStartWeek,
556
+ F as lpTokens,
557
+ _ as lpTokensToBasePool,
558
+ Qo as maticSymbol,
559
+ hs as minBigInt,
560
+ ds as mintAccessToken,
561
+ cs as mintTokenCrossChain,
562
+ pl as minuteInMilliseconds,
563
+ qa as multiThreadedUtxoUtils,
564
+ ir as networkRegistry,
565
+ lo as oneInchZeroAddress,
566
+ As as openDefaultPassportWindow,
567
+ gs as openPassportWindow,
568
+ No as optimismCrvCvxRegistry,
569
+ Fe as optimismData,
570
+ ms as optimismGasPriceOracleAbi,
571
+ St as optimismPendleRegistry,
572
+ ye as optimismRegistry,
573
+ ae as optimismRegistryFixed,
574
+ ln as outputUtxoProcessing,
575
+ fo as ownerPublicKey,
576
+ ml as parseWeek,
577
+ Yn as patchRegistry,
578
+ co as permitSignatureValidFor,
579
+ Xi as poLidoNftAbi,
580
+ jo as poLidoNftAddress,
581
+ nt as pointsLink,
582
+ Oo as polygonCrvCvxRegistry,
583
+ Me as polygonData,
584
+ xe as polygonRegistry,
585
+ ee as polygonRegistryFixed,
586
+ Ct as poseidonFunction,
587
+ Et as poseidonHash,
588
+ ht as poseidonHolder,
589
+ wt as preProcessing,
590
+ Co as proCoingeckoUrl,
591
+ Eo as proHeader,
592
+ xn as processAmountChanges,
593
+ dn as processGasEstimates,
594
+ dm as produceOp,
595
+ hi as quoterV2ABI,
596
+ pt as raffleProgramStartWeek,
597
+ tp as randomBigInt,
598
+ mt as referralLink,
599
+ Ln as reloadPage,
600
+ en as requireEnv,
601
+ Ns as resetCache,
602
+ ya as resetMerkleTrees,
603
+ tn as resolveSync,
604
+ $a as rethrowKnownGasErrorIfPossible,
605
+ cp as retrieveEvents,
606
+ Ep as runContractFunction,
607
+ Li as sanctionsListABI,
608
+ Os as saveTxsCache,
609
+ Tp as searchPoolAndFee,
610
+ ll as secondInMilliseconds,
611
+ Hp as serializeCircomData,
612
+ Dn as serializeDecodedTxs,
613
+ Vs as setHinkalCache,
614
+ xo as signaturePhrase,
615
+ qm as slippageLevels,
616
+ Xo as stMaticSymbol,
617
+ vr as supportedPassportLinks,
618
+ go as threePoolSymbol,
619
+ bs as toBigInt,
620
+ Ds as toBigIntOrUndefined,
621
+ ap as toBigIntWithDecimals,
622
+ vs as toCommaSeparatedNumberString,
623
+ fl as toDateString,
624
+ Ls as toInt,
625
+ ws as toNumberOrUndefined,
626
+ Fn as toTitleCase,
627
+ oi as transactionErrorCodes,
628
+ ts as transactionProverABI,
629
+ Us as trimLeadingZeros,
630
+ Bs as truncateTo18DecimalPlaces,
631
+ Tr as uniswapV2PoolData,
632
+ Pr as uniswapV3FactoryData,
633
+ kr as uniswapV3PoolData,
634
+ Sr as uniswapV3QuoterData,
635
+ K as urlForBeefyVaultTokens,
636
+ Y as urlForBeefyVaultTotalInUSD,
637
+ z as urlForRegularTokenPricesInBeefy,
638
+ Gn as waitLittle,
639
+ In as walletSupported,
640
+ dl as weekInMilliseconds,
641
+ Jo as wstEthSymbol,
642
+ uo as zeroAddress
642
643
  };