@hinkal/common 0.1.62 → 0.1.64
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 +36 -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 +4 -3
- package/functions/utils/cacheFunctions.mjs +31 -33
- package/functions/utils/index.d.ts +1 -0
- package/index.cjs +1 -1
- package/index.mjs +387 -380
- 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
|
@@ -5,12 +5,12 @@ import { getBeefyHistoricalChartData as c } from "./API/callBeefyGraphAPI.mjs";
|
|
|
5
5
|
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
|
-
import { getTokenPrice as
|
|
9
|
-
import { checkRisk as
|
|
8
|
+
import { getTokenPrice as P, getTokenPriceEth as T, getTokenPrices as k } from "./API/getTokenPrice.mjs";
|
|
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";
|
|
@@ -28,40 +28,40 @@ import { networkRegistry as ce } from "./constants/token-data/polygonRegistry.js
|
|
|
28
28
|
import { networkRegistry as xe } from "./constants/token-data/avalancheRegistry.json.mjs";
|
|
29
29
|
import { networkRegistry as Ae } from "./constants/token-data/optimismRegistry.json.mjs";
|
|
30
30
|
import { networkRegistry as ye } from "./constants/token-data/baseRegistry.json.mjs";
|
|
31
|
-
import { networkRegistry as
|
|
31
|
+
import { networkRegistry as Pe } 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";
|
|
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 cr, getRelayFee as dr, getSlippageFee as xr } from "./constants/fees.constants.mjs";
|
|
46
|
-
import { contractMetadataMapping as Ar, getHinkalParameters as ur, uniswapV2PoolData as yr, uniswapV3FactoryData as Rr, uniswapV3PoolData as
|
|
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
|
|
46
|
+
import { contractMetadataMapping as Ar, getHinkalParameters as ur, uniswapV2PoolData as yr, uniswapV3FactoryData as Rr, uniswapV3PoolData as Pr, uniswapV3QuoterData as Tr } from "./constants/contracts.constants.mjs";
|
|
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
|
|
51
|
+
import { COINGECKO_API_KEY as Po, CoinGeckoChainLabels as To, 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
|
|
60
|
+
import { arbPendleRegistry as yt, bnbPendleRegistry as Rt, ethPendleRegistry as Pt, findSyAddress as Tt, 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";
|
|
@@ -76,436 +76,443 @@ import { hinkalSwap as ca } from "./data-structures/Hinkal/hinkalSwap.mjs";
|
|
|
76
76
|
import { hinkalTransfer as xa } from "./data-structures/Hinkal/hinkalTransfer.mjs";
|
|
77
77
|
import { hinkalWithdraw as Aa } from "./data-structures/Hinkal/hinkalWithdraw.mjs";
|
|
78
78
|
import { hinkalPrivateWallet as ya } from "./data-structures/Hinkal/hinkalPrivateWallet.mjs";
|
|
79
|
-
import { resetMerkleTrees as
|
|
79
|
+
import { resetMerkleTrees as Pa } 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
|
|
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 Pi } 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 Ps } 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 { getFilePath as Ws, getHinkalCache as Hs, loadTxsCache as Gs, resetCache as Ks, saveTxsCache as Ys, setHinkalCache as zs } from "./functions/utils/cacheFunctions.mjs";
|
|
134
|
+
import { createProvider as qs } from "./functions/utils/create-provider.mjs";
|
|
135
|
+
import { decodeMetadata as js, getActionFromMetadata as Xs, getExternalActionIdFromNumber as Js, getExternalActionIdHash as $s, getExternalMetadataHash as en } from "./functions/utils/external-action.utils.mjs";
|
|
136
|
+
import { getERC20Token as on, getERC20TokenBySymbol as tn, getHToken as an } from "./functions/utils/erc20tokenFunctions.mjs";
|
|
137
|
+
import { requireEnv as nn } from "./functions/utils/requireEnv.mjs";
|
|
138
|
+
import { getSequence as mn, promisify as ln, resolveSync as fn } from "./functions/utils/resolve-sync.utils.mjs";
|
|
139
|
+
import { convertIntegrationProviderToExternalActionId as dn } from "./functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
140
|
+
import { getInteractionFromAction as gn } from "./functions/pre-transaction/interaction-to-action.mjs";
|
|
141
|
+
import { outputUtxoProcessing as un } from "./functions/pre-transaction/outputUtxoProcessing.mjs";
|
|
142
|
+
import { processGasEstimates as Rn } from "./functions/pre-transaction/process-gas-estimates.mjs";
|
|
143
|
+
import { processAmountChanges as Tn } from "./functions/pre-transaction/processAmountChanges.mjs";
|
|
144
|
+
import { getFlatFees as Sn } from "./functions/pre-transaction/getFlatFees.mjs";
|
|
145
|
+
import { getNetworkObject as In, getNetworkType as En } from "./functions/utils/evmNetworkFunctions.mjs";
|
|
146
|
+
import { getAxelarMigrationInfo as bn } from "./functions/utils/axelar.utils.mjs";
|
|
147
|
+
import { browserSupported as vn, walletSupported as Ln } from "./functions/utils/userAgent.mjs";
|
|
148
|
+
import { decodeTxInput as _n, decodeTxLogs as Fn, deserializeDecodedTxs as Mn, serializeDecodedTxs as Un } from "./functions/utils/getDataFromTransaction.mjs";
|
|
149
|
+
import { reloadPage as Nn } from "./functions/utils/reloadPage.mjs";
|
|
150
|
+
import { capitalizeFirstLetter as Vn, isNullOrEmpty as Wn, toTitleCase as Hn } from "./functions/utils/string.utils.mjs";
|
|
151
|
+
import { isNicknameValid as Kn } from "./functions/utils/nickname.utils.mjs";
|
|
152
|
+
import { caseInsensitiveEqual as zn, lowerCaseIncludes as Zn, lowerCaseStartsWith as qn } from "./functions/utils/caseInsensitive.utils.mjs";
|
|
153
|
+
import { waitLittle as jn } from "./functions/utils/time.utils.mjs";
|
|
154
|
+
import { patchRegistry as Jn } from "./functions/utils/volatile-patcher.utils.mjs";
|
|
155
|
+
import { createCacheDevice as ep } from "./functions/utils/cacheDevice.utils.mjs";
|
|
156
|
+
import { debounce as op, wait as tp } from "./functions/utils/process.utils.mjs";
|
|
157
|
+
import { calculateDollarValue as ip, ethToWei as sp, getAmountInToken as np, getAmountInWei as pp, getAmountInWeiOrZero as mp, getAmountWithPrecision as lp, getAmountWithPrecisionOrZero as fp, randomBigInt as cp, toBigIntWithDecimals as dp } from "./functions/web3/etherFunctions.mjs";
|
|
158
|
+
import { getInputUtxoAndBalance as gp, getInputUtxosFromEncryptedOutputs as Ap } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
|
|
159
|
+
import { addPaddingToUtxos as yp, getShieldedBalance as Rp } from "./functions/web3/events/getShieldedBalance.mjs";
|
|
160
|
+
import { getDepositEvents as Tp, retrieveEvents as kp } from "./functions/web3/events/web3RetrieveEvents.mjs";
|
|
161
|
+
import { balanceChangedHandler as Cp } from "./functions/web3/events/balanceChangedHandler.mjs";
|
|
162
|
+
import { getUniswapFee as Ep, getUniswapPrice as hp, getUniswapPriceHelper as bp, searchPoolAndFee as Dp } from "./functions/web3/uniswapAPI.mjs";
|
|
163
|
+
import { getOdosPrice as Lp } from "./functions/web3/odosAPI.mjs";
|
|
164
|
+
import { getOneInchPrice as _p } from "./functions/web3/oneInchAPI.mjs";
|
|
165
|
+
import { runContractFunction as Mp } from "./functions/web3/runContractFunction.mjs";
|
|
166
|
+
import { constructZkProof as Bp } from "./functions/snarkjs/constructGeneralZkProof.mjs";
|
|
167
|
+
import { constructEmporiumProof as Op } from "./functions/snarkjs/constructEmporiumProof.mjs";
|
|
168
|
+
import { buildInNullifiers as Wp, buildOutCommitments as Hp, calcAccessTokenSiblingsAndSides as Gp, calcAmountChanges as Kp, calcCommitmentsSiblingAndSides as Yp, calcEncryptedOutputs as zp, calcPublicSignalCount as Zp, calcStealthAddressStructure as qp, createCallDataHash as Qp, deserializeCircomData as jp, serializeCircomData as Xp } from "./functions/snarkjs/common.snarkjs.mjs";
|
|
169
|
+
import { generateZkProof as $p } from "./functions/snarkjs/generateZkProof.mjs";
|
|
170
|
+
import { getCRV as rm } from "./functions/protocols/curve.protocols.mjs";
|
|
171
|
+
import { getCVX as tm } from "./functions/protocols/convex.protocols.mjs";
|
|
172
|
+
import { determinePendleSwapType as im, determinePendleSwapTypeApiRoute as sm, erc20TokenFromPendleAsset as nm, getAssetTypeFromPendleMarket as pm, getTokenIndexForPendleFlatFee as mm } from "./functions/protocols/pendle.helpers.mjs";
|
|
173
|
+
import { calculateStakeNullifier as fm, createStakeCommitment as cm, decryptStake as dm, encodeHStakeMetadata as xm, encryptStake as gm } from "./functions/staking/index.mjs";
|
|
174
|
+
import { emporiumOp as um, encodeEmporiumMetadata as ym } from "./functions/private-wallet/emporium.helpers.mjs";
|
|
175
|
+
import { OpType as Pm, produceOp as Tm } from "./functions/private-wallet/opProducer.mjs";
|
|
176
|
+
import { dataBeefyApiConfig as Sm, isBeefyDeposit as Cm } from "./types/beefy.types.mjs";
|
|
177
|
+
import { defaultHookData as Em, defaultHookDataArray as hm, defaultStealthAddressStructure as bm, emptyStealthAddressStructure as Dm } from "./types/circom-data.types.mjs";
|
|
178
|
+
import { ContractType as Lm } from "./types/ethereum-network.types.mjs";
|
|
179
|
+
import { ExternalActionId as _m } from "./types/external-action.types.mjs";
|
|
180
|
+
import { BeefyAction as Mm, ConvexAction as Um, CurveAction as Bm, EventType as Nm, INTERACTION as Om, IntegrationProvider as Vm, LidoAction as Wm, LidoVariant as Hm, PendleAction as Gm, PendleLPAction as Km, StakeProvider as Ym, VolatileAction as zm } from "./types/hinkal.types.mjs";
|
|
181
|
+
import { KycVerificationResult as qm, KycVerificationStatus as Qm, Passports as jm, VERIFICATION_TYPE as Xm, VerificationTypes as Jm } from "./types/kyc.types.mjs";
|
|
182
|
+
import { ApprovalType as el } from "./types/token.types.mjs";
|
|
183
|
+
import { SlippageType as ol, slippageLevels as tl } from "./types/slippage.types.mjs";
|
|
184
|
+
import { emptyDecodedTx as il } from "./types/transactions.types.mjs";
|
|
185
|
+
import { MONTHS as nl, dayInMilliseconds as pl, divideMonthOnIntervals as ml, getCurrentWeek as ll, getDateFromWeek as fl, getNextDay as cl, getWeekTimestamps as dl, hasCertificationPeriodExpired as xl, hourInMilliseconds as gl, isWeekCurrent as Al, minuteInMilliseconds as ul, parseWeek as yl, secondInMilliseconds as Rl, toDateString as Pl, weekInMilliseconds as Tl } from "./types/time.types.mjs";
|
|
186
|
+
import { BonusType as Sl, CertifyType as Cl, LP_TIER as Il, PaymentStatus as El, PointType as hl, RafflePrizeType as bl, RewardPage as Dl, RewardsHistoryDistribution as vl, RewardsHistoryEligibility as Ll, RewardsHistorySnapshots as wl, RewardsHistoryStatuses as _l, RewardsPageTabs as Fl, TIER_LEVEL as Ml, Timeline as Ul, emptyUserPointsBreakdown as Bl, emptyUserPointsResponse as Nl } from "./types/rewards.types.mjs";
|
|
187
|
+
import { PendleAssetType as Vl, PendleChains as Wl, PendleDashboardTabs as Hl, PendleEarnTabs as Gl, PendleMarketTransactionTypes as Kl, PendlePoolManualTabs as Yl, PendlePoolTabs as zl, PendlePoolZapTabs as Zl, PendleSwapType as ql, PendleTabs as Ql, PendleTradeGeneralTabs as jl, PendleTradeTabs as Xl } from "./types/pendle.types.mjs";
|
|
188
|
+
import { StatType as $l, UpperTabPossibleValues as ef, curveNetworkNames as rf, curvePools as of } from "./types/curve.types.mjs";
|
|
189
|
+
import { HinkalStakeMode as af } 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
|
+
el as ApprovalType,
|
|
200
203
|
vo as AxelarRegistry,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
ki as BUSDABI,
|
|
205
|
+
ls as BabABI,
|
|
206
|
+
Mm as BeefyAction,
|
|
207
|
+
Pi as BeefyVaultABI,
|
|
208
|
+
Sl as BonusType,
|
|
206
209
|
tt as CERTIFICATION_DISABLE_WEEK,
|
|
207
210
|
ao as CIRCOM_P,
|
|
208
211
|
io as CIRCOM_P_HALF,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
212
|
+
Po as COINGECKO_API_KEY,
|
|
213
|
+
Cl as CertifyType,
|
|
214
|
+
To as CoinGeckoChainLabels,
|
|
215
|
+
Lm as ContractType,
|
|
216
|
+
Um as ConvexAction,
|
|
217
|
+
Bm 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
|
+
Nm as EventType,
|
|
230
|
+
_m 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
|
+
af as HinkalStakeMode,
|
|
234
238
|
V as IMAGE_PATHS,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
Om as INTERACTION,
|
|
240
|
+
qi as ISwapRouterABI,
|
|
241
|
+
Vm as IntegrationProvider,
|
|
242
|
+
qm as KycVerificationResult,
|
|
243
|
+
Qm as KycVerificationStatus,
|
|
244
|
+
Il as LP_TIER,
|
|
245
|
+
Wm as LidoAction,
|
|
246
|
+
Hm as LidoVariant,
|
|
247
|
+
$a as LocalStorageCacheDevice,
|
|
248
|
+
nl as MONTHS,
|
|
244
249
|
ka as MerkleTree,
|
|
245
|
-
|
|
250
|
+
Ca as MerkleTreeIncompleteError,
|
|
246
251
|
Qa as MultiThreadedUtxoUtils,
|
|
247
252
|
wo as NETWORKS,
|
|
248
|
-
|
|
253
|
+
Pm 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
|
+
jm as Passports,
|
|
258
|
+
El as PaymentStatus,
|
|
259
|
+
Gm as PendleAction,
|
|
260
|
+
Vl as PendleAssetType,
|
|
261
|
+
Wl as PendleChains,
|
|
262
|
+
Hl as PendleDashboardTabs,
|
|
263
|
+
Gl as PendleEarnTabs,
|
|
264
|
+
Km as PendleLPAction,
|
|
265
|
+
Kl as PendleMarketTransactionTypes,
|
|
266
|
+
Yl as PendlePoolManualTabs,
|
|
267
|
+
zl as PendlePoolTabs,
|
|
268
|
+
Zl as PendlePoolZapTabs,
|
|
269
|
+
ql as PendleSwapType,
|
|
270
|
+
Ql as PendleTabs,
|
|
271
|
+
jl as PendleTradeGeneralTabs,
|
|
272
|
+
Xl as PendleTradeTabs,
|
|
273
|
+
hl 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
|
+
bl as RafflePrizeType,
|
|
276
281
|
Er as ReclaimPassports,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
Dl as RewardPage,
|
|
283
|
+
vl as RewardsHistoryDistribution,
|
|
284
|
+
Ll as RewardsHistoryEligibility,
|
|
285
|
+
wl as RewardsHistorySnapshots,
|
|
286
|
+
_l as RewardsHistoryStatuses,
|
|
287
|
+
Fl 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
|
+
ol as SlippageType,
|
|
293
|
+
Ym as StakeProvider,
|
|
289
294
|
hr as StandardPassports,
|
|
290
|
-
|
|
295
|
+
$l as StatType,
|
|
291
296
|
br as SupportedPassports,
|
|
292
|
-
|
|
293
|
-
|
|
297
|
+
Ml as TIER_LEVEL,
|
|
298
|
+
Ul 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
|
+
ef as UpperTabPossibleValues,
|
|
307
|
+
si as UserFriendlyErrorCodes,
|
|
303
308
|
qt as UserKeys,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
+
Ua as Utxo,
|
|
310
|
+
Xm as VERIFICATION_TYPE,
|
|
311
|
+
Ut as ValueCache,
|
|
312
|
+
Jm as VerificationTypes,
|
|
313
|
+
zm as VolatileAction,
|
|
309
314
|
Za as VolatileHelper,
|
|
310
|
-
|
|
315
|
+
zi as WETHABI,
|
|
311
316
|
Nt as abiDecodeUtxo,
|
|
312
|
-
|
|
313
|
-
|
|
317
|
+
Cs as absBigInt,
|
|
318
|
+
yp 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
|
+
Cp 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
|
+
vn as browserSupported,
|
|
349
|
+
Wp as buildInNullifiers,
|
|
350
|
+
Hp as buildOutCommitments,
|
|
351
|
+
Gp as calcAccessTokenSiblingsAndSides,
|
|
352
|
+
Kp as calcAmountChanges,
|
|
353
|
+
Yp as calcCommitmentsSiblingAndSides,
|
|
354
|
+
zp as calcEncryptedOutputs,
|
|
355
|
+
Zp as calcPublicSignalCount,
|
|
356
|
+
qp as calcStealthAddressStructure,
|
|
357
|
+
bs as calculateAmountUsingBeeps,
|
|
358
|
+
ip as calculateDollarValue,
|
|
359
|
+
fm as calculateStakeNullifier,
|
|
360
|
+
Ds as calculateSum,
|
|
356
361
|
l as callOneInchAPI,
|
|
357
362
|
x as callRelayerTransactAPI,
|
|
358
|
-
|
|
359
|
-
|
|
363
|
+
Vn as capitalizeFirstLetter,
|
|
364
|
+
zn 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
|
+
Op as constructEmporiumProof,
|
|
375
|
+
Bp as constructZkProof,
|
|
371
376
|
Ar as contractMetadataMapping,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
377
|
+
dn as convertIntegrationProviderToExternalActionId,
|
|
378
|
+
ep as createCacheDevice,
|
|
379
|
+
Qp as createCallDataHash,
|
|
380
|
+
qs as createProvider,
|
|
381
|
+
cm as createStakeCommitment,
|
|
376
382
|
je as crossChainAccessTokenNetworks,
|
|
377
383
|
no as crvSymbol,
|
|
378
|
-
|
|
379
|
-
|
|
384
|
+
rf as curveNetworkNames,
|
|
385
|
+
of 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
|
+
Sm as dataBeefyApiConfig,
|
|
392
|
+
pl as dayInMilliseconds,
|
|
393
|
+
op as debounce,
|
|
394
|
+
js as decodeMetadata,
|
|
395
|
+
_n as decodeTxInput,
|
|
396
|
+
Fn as decodeTxLogs,
|
|
391
397
|
Vt as decodeUtxo,
|
|
392
398
|
Wt as decodeUtxoConstructorArgs,
|
|
393
|
-
|
|
399
|
+
dm as decryptStake,
|
|
394
400
|
Gt as decryptUtxo,
|
|
395
401
|
Kt as decryptUtxoConstructorArgs,
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
402
|
+
Em as defaultHookData,
|
|
403
|
+
hm as defaultHookDataArray,
|
|
404
|
+
bm as defaultStealthAddressStructure,
|
|
399
405
|
Qr as deploymentMode,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
406
|
+
jp as deserializeCircomData,
|
|
407
|
+
Mn as deserializeDecodedTxs,
|
|
408
|
+
im as determinePendleSwapType,
|
|
409
|
+
sm as determinePendleSwapTypeApiRoute,
|
|
410
|
+
ml as divideMonthOnIntervals,
|
|
411
|
+
um as emporiumOp,
|
|
412
|
+
il as emptyDecodedTx,
|
|
413
|
+
Dm as emptyStealthAddressStructure,
|
|
414
|
+
Bl as emptyUserPointsBreakdown,
|
|
415
|
+
Nl as emptyUserPointsResponse,
|
|
416
|
+
ym as encodeEmporiumMetadata,
|
|
417
|
+
xm as encodeHStakeMetadata,
|
|
418
|
+
gm as encryptStake,
|
|
413
419
|
Yt as encryptUtxo,
|
|
414
|
-
|
|
420
|
+
nm as erc20TokenFromPendleAsset,
|
|
415
421
|
gt as ethBeefyRegistry,
|
|
416
422
|
No as ethCrvCvxRegistry,
|
|
417
423
|
Le as ethMainnetData,
|
|
418
424
|
se as ethMainnetRegistry,
|
|
419
425
|
z as ethMainnetRegistryFixed,
|
|
420
|
-
|
|
426
|
+
Pt as ethPendleRegistry,
|
|
421
427
|
Yo as ethSymbol,
|
|
422
|
-
|
|
428
|
+
sp as ethToWei,
|
|
423
429
|
fo as ethVolatileAddress,
|
|
424
430
|
Ya as externalActionToTransactionType,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
+
mi as extractMessage,
|
|
432
|
+
Fi as factoryABI,
|
|
433
|
+
Tt as findSyAddress,
|
|
434
|
+
vs as fixDecimalsAmount,
|
|
435
|
+
$p as generateZkProof,
|
|
436
|
+
Xs 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
|
+
np as getAmountInToken,
|
|
442
|
+
pp as getAmountInWei,
|
|
443
|
+
mp as getAmountInWeiOrZero,
|
|
444
|
+
lp as getAmountWithPrecision,
|
|
445
|
+
fp as getAmountWithPrecisionOrZero,
|
|
440
446
|
fr as getAmountWithoutFee,
|
|
441
|
-
|
|
447
|
+
pm as getAssetTypeFromPendleMarket,
|
|
442
448
|
A as getAxelarGasEstimate,
|
|
443
|
-
|
|
449
|
+
bn as getAxelarMigrationInfo,
|
|
444
450
|
c as getBeefyHistoricalChartData,
|
|
445
451
|
At as getBeefyRegistryWithChainId,
|
|
446
|
-
|
|
447
|
-
|
|
452
|
+
rm as getCRV,
|
|
453
|
+
tm 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
|
+
ll as getCurrentWeek,
|
|
458
464
|
v as getCurvePools,
|
|
459
465
|
L as getCurvePoolsforPriceFetching,
|
|
460
466
|
o as getDataServerURL,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
+
fl as getDateFromWeek,
|
|
468
|
+
Tp as getDepositEvents,
|
|
469
|
+
Ce as getERC20Registry,
|
|
470
|
+
on as getERC20Token,
|
|
471
|
+
tn as getERC20TokenBySymbol,
|
|
472
|
+
li as getErrorMessage,
|
|
467
473
|
w as getExtendedPoolInfo,
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
474
|
+
Js as getExternalActionIdFromNumber,
|
|
475
|
+
$s as getExternalActionIdHash,
|
|
476
|
+
en as getExternalMetadataHash,
|
|
477
|
+
Ws as getFilePath,
|
|
478
|
+
Ie as getFixedRegistry,
|
|
479
|
+
Sn as getFlatFees,
|
|
473
480
|
y as getGasEstimates,
|
|
474
481
|
_o as getGasStationUrl,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
482
|
+
ti as getGenericFeeOverTransactionValueErrorMessage,
|
|
483
|
+
an as getHToken,
|
|
484
|
+
Hs as getHinkalCache,
|
|
478
485
|
cr as getHinkalFeeRateInBeeps,
|
|
479
486
|
ur as getHinkalParameters,
|
|
480
487
|
E as getIdleRelay,
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
488
|
+
gp as getInputUtxoAndBalance,
|
|
489
|
+
Ap as getInputUtxosFromEncryptedOutputs,
|
|
490
|
+
gn as getInteractionFromAction,
|
|
491
|
+
In as getNetworkObject,
|
|
492
|
+
En as getNetworkType,
|
|
493
|
+
cl as getNextDay,
|
|
487
494
|
Xe as getNonLocalhostChainId,
|
|
488
|
-
|
|
489
|
-
|
|
495
|
+
Lp as getOdosPrice,
|
|
496
|
+
_p as getOneInchPrice,
|
|
490
497
|
kt as getPendleRegistryWithChainId,
|
|
491
498
|
N as getPublicWalletBalance,
|
|
492
499
|
dr as getRelayFee,
|
|
493
|
-
|
|
494
|
-
|
|
500
|
+
U as getRelayerURL,
|
|
501
|
+
mn as getSequence,
|
|
495
502
|
t as getServerURL,
|
|
496
|
-
|
|
503
|
+
Rp as getShieldedBalance,
|
|
497
504
|
xr as getSlippageFee,
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
505
|
+
mm as getTokenIndexForPendleFlatFee,
|
|
506
|
+
P as getTokenPrice,
|
|
507
|
+
T as getTokenPriceEth,
|
|
501
508
|
k as getTokenPrices,
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
509
|
+
Ep as getUniswapFee,
|
|
510
|
+
hp as getUniswapPrice,
|
|
511
|
+
bp as getUniswapPriceHelper,
|
|
512
|
+
Ls as getValueFirstNDigit,
|
|
513
|
+
dl as getWeekTimestamps,
|
|
507
514
|
St as getYtTokensWithChainId,
|
|
508
|
-
|
|
515
|
+
xl as hasCertificationPeriodExpired,
|
|
509
516
|
ra as hinkalActionBeefy,
|
|
510
517
|
ta as hinkalActionConvex,
|
|
511
518
|
ia as hinkalActionCurve,
|
|
@@ -516,130 +523,130 @@ export {
|
|
|
516
523
|
ca as hinkalSwap,
|
|
517
524
|
xa as hinkalTransfer,
|
|
518
525
|
Aa as hinkalWithdraw,
|
|
519
|
-
|
|
520
|
-
|
|
526
|
+
gl as hourInMilliseconds,
|
|
527
|
+
Cm as isBeefyDeposit,
|
|
521
528
|
Xt as isCircomNegative,
|
|
522
529
|
jr as isDevelopment,
|
|
523
530
|
Je as isLocalNetwork,
|
|
524
|
-
|
|
531
|
+
Kn as isNicknameValid,
|
|
525
532
|
Xr as isNode,
|
|
526
533
|
Jr as isNotClientProduction,
|
|
527
534
|
$r as isNotProduction,
|
|
528
|
-
|
|
535
|
+
Wn as isNullOrEmpty,
|
|
529
536
|
$e as isOptimismBedrockLike,
|
|
530
537
|
er as isOptimismEcotoneLike,
|
|
531
538
|
rr as isOptimismLike,
|
|
532
539
|
eo as isPlayground,
|
|
533
540
|
ro as isStaging,
|
|
534
541
|
oo as isWebpack,
|
|
535
|
-
|
|
536
|
-
|
|
542
|
+
Al as isWeekCurrent,
|
|
543
|
+
Ct as isYtToken,
|
|
537
544
|
wt as jubHolder,
|
|
538
|
-
|
|
545
|
+
ji as lidoStEthAbi,
|
|
539
546
|
zo as lidoStEthContractAddress,
|
|
540
|
-
|
|
547
|
+
Ji as lidoStMaticAbi,
|
|
541
548
|
Zo as lidoStMaticAddress,
|
|
542
|
-
|
|
549
|
+
ss as lidoStakeManagerAbi,
|
|
543
550
|
qo as lidoStakeManagerAddress,
|
|
544
|
-
|
|
551
|
+
es as lidoWithdrawalQueueERC721Abi,
|
|
545
552
|
Qo as lidoWithdrawalQueueERC721Address,
|
|
546
|
-
|
|
553
|
+
as as lidoWstEthAbi,
|
|
547
554
|
jo as lidoWstEthContractAddress,
|
|
548
|
-
|
|
555
|
+
Gs as loadTxsCache,
|
|
549
556
|
We as localhostData,
|
|
550
557
|
or as localhostNetwork,
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
558
|
+
Pe as localhostRegistry,
|
|
559
|
+
xi as logError,
|
|
560
|
+
Zn as lowerCaseIncludes,
|
|
561
|
+
qn as lowerCaseStartsWith,
|
|
555
562
|
nt as lpLink,
|
|
556
563
|
pt as lpProgramStartWeek,
|
|
557
564
|
_ as lpTokens,
|
|
558
|
-
|
|
565
|
+
F as lpTokensToBasePool,
|
|
559
566
|
Xo as maticSymbol,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
567
|
+
ws as minBigInt,
|
|
568
|
+
us as mintAccessToken,
|
|
569
|
+
ys as mintTokenCrossChain,
|
|
570
|
+
ul as minuteInMilliseconds,
|
|
564
571
|
tr as networkRegistry,
|
|
565
572
|
co as oneInchZeroAddress,
|
|
566
|
-
|
|
567
|
-
|
|
573
|
+
ks as openDefaultPassportWindow,
|
|
574
|
+
Ps as openPassportWindow,
|
|
568
575
|
Vo as optimismCrvCvxRegistry,
|
|
569
576
|
_e as optimismData,
|
|
570
|
-
|
|
571
|
-
|
|
577
|
+
xs as optimismGasPriceOracleAbi,
|
|
578
|
+
It as optimismPendleRegistry,
|
|
572
579
|
Ae as optimismRegistry,
|
|
573
580
|
oe as optimismRegistryFixed,
|
|
574
|
-
|
|
581
|
+
un as outputUtxoProcessing,
|
|
575
582
|
xo as ownerPublicKey,
|
|
576
|
-
|
|
577
|
-
|
|
583
|
+
yl as parseWeek,
|
|
584
|
+
Jn as patchRegistry,
|
|
578
585
|
go as permitSignatureValidFor,
|
|
579
|
-
|
|
586
|
+
os as poLidoNftAbi,
|
|
580
587
|
Jo as poLidoNftAddress,
|
|
581
588
|
mt as pointsLink,
|
|
582
589
|
Wo as polygonCrvCvxRegistry,
|
|
583
|
-
|
|
590
|
+
Me as polygonData,
|
|
584
591
|
ce as polygonRegistry,
|
|
585
592
|
J as polygonRegistryFixed,
|
|
586
593
|
ht as poseidonFunction,
|
|
587
594
|
bt as poseidonHash,
|
|
588
595
|
Dt as poseidonHolder,
|
|
589
|
-
|
|
596
|
+
Ft as preProcessing,
|
|
590
597
|
ho as proCoingeckoUrl,
|
|
591
598
|
bo as proHeader,
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
599
|
+
Tn as processAmountChanges,
|
|
600
|
+
Rn as processGasEstimates,
|
|
601
|
+
Tm as produceOp,
|
|
602
|
+
ln as promisify,
|
|
603
|
+
wi as quoterV2ABI,
|
|
597
604
|
lt as raffleProgramStartWeek,
|
|
598
|
-
|
|
605
|
+
cp as randomBigInt,
|
|
599
606
|
ft as referralLink,
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
607
|
+
Nn as reloadPage,
|
|
608
|
+
nn as requireEnv,
|
|
609
|
+
Ks as resetCache,
|
|
610
|
+
Pa as resetMerkleTrees,
|
|
611
|
+
fn as resolveSync,
|
|
612
|
+
ai as rethrowKnownGasErrorIfPossible,
|
|
613
|
+
kp as retrieveEvents,
|
|
614
|
+
Mp as runContractFunction,
|
|
615
|
+
Ui as sanctionsListABI,
|
|
616
|
+
Ys as saveTxsCache,
|
|
617
|
+
Dp as searchPoolAndFee,
|
|
618
|
+
Rl as secondInMilliseconds,
|
|
619
|
+
Xp as serializeCircomData,
|
|
620
|
+
Un as serializeDecodedTxs,
|
|
621
|
+
zs as setHinkalCache,
|
|
615
622
|
Ao as signaturePhrase,
|
|
616
|
-
|
|
623
|
+
tl as slippageLevels,
|
|
617
624
|
$o as stMaticSymbol,
|
|
618
625
|
Lr as supportedPassportLinks,
|
|
619
626
|
uo as threePoolSymbol,
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
627
|
+
_s as toBigInt,
|
|
628
|
+
Fs as toBigIntOrUndefined,
|
|
629
|
+
dp as toBigIntWithDecimals,
|
|
630
|
+
Ms as toCommaSeparatedNumberString,
|
|
631
|
+
Pl as toDateString,
|
|
632
|
+
Us as toInt,
|
|
633
|
+
Bs as toNumberOrUndefined,
|
|
634
|
+
Hn as toTitleCase,
|
|
635
|
+
ni as transactionErrorCodes,
|
|
636
|
+
ps as transactionProverABI,
|
|
637
|
+
Ns as trimLeadingZeros,
|
|
638
|
+
Os as truncateTo18DecimalPlaces,
|
|
632
639
|
yr as uniswapV2PoolData,
|
|
633
640
|
Rr as uniswapV3FactoryData,
|
|
634
|
-
|
|
635
|
-
|
|
641
|
+
Pr as uniswapV3PoolData,
|
|
642
|
+
Tr as uniswapV3QuoterData,
|
|
636
643
|
H as urlForBeefyVaultTokens,
|
|
637
644
|
G as urlForBeefyVaultTotalInUSD,
|
|
638
645
|
K as urlForRegularTokenPricesInBeefy,
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
646
|
+
tp as wait,
|
|
647
|
+
jn as waitLittle,
|
|
648
|
+
Ln as walletSupported,
|
|
649
|
+
Tl as weekInMilliseconds,
|
|
643
650
|
et as wstEthSymbol,
|
|
644
651
|
yo as zeroAddress
|
|
645
652
|
};
|