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