@hinkal/common 0.1.17 → 0.1.18

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