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