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