@hinkal/common 0.0.114 → 0.0.116
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.js → API.mjs} +10 -10
- package/API/HinkalPointsCalls.mjs +38 -0
- package/API/callBeefyGraphAPI.mjs +37 -0
- package/API/{callCurveAPI.js → callCurveAPI.mjs} +9 -9
- package/API/callMonitor.mjs +30 -0
- package/API/callOdosAPI.mjs +44 -0
- package/API/{callOneInchAPI.js → callOneInchAPI.mjs} +22 -22
- package/API/callRelayer.mjs +32 -0
- package/API/checkRisk.mjs +30 -0
- package/API/dataServerCalls.mjs +32 -0
- package/API/fetchCommitmentsCache.mjs +31 -0
- package/API/fetchNullifiers.mjs +30 -0
- package/API/getAxelarGasEstimate.mjs +37 -0
- package/API/{getCoingeckoPrice.js → getCoingeckoPrice.mjs} +1 -1
- package/API/getConnextReceiveFee.mjs +30 -0
- package/API/getGasEstimates.mjs +38 -0
- package/API/getRelayerURL.mjs +32 -0
- package/API/{getServerURL.js → getServerURL.mjs} +21 -21
- package/API/getTokenPrice.mjs +41 -0
- package/API/{kycCalls.js → kycCalls.mjs} +2 -2
- package/API/passwordCalls.mjs +36 -0
- package/API/{referralProgramCalls.js → referralProgramCalls.mjs} +22 -22
- package/API/relayCalls.mjs +30 -0
- package/API/restoreSnapshots.mjs +32 -0
- package/API/rewardsPointsCalls.mjs +40 -0
- package/API/userVerifyTransactions.mjs +45 -0
- package/constants/{axelar.constants.js → axelar.constants.mjs} +9 -9
- package/constants/{beefy.registry.js → beefy.registry.mjs} +1 -1
- package/constants/{chains.constants.js → chains.constants.mjs} +12 -12
- package/constants/{coingecko.constants.js → coingecko.constants.mjs} +1 -1
- package/constants/{contracts.constants.js → contracts.constants.mjs} +30 -30
- package/constants/{crvCvx.registry.js → crvCvx.registry.mjs} +1 -1
- package/constants/{crvDynamic.registry.js → crvDynamic.registry.mjs} +1 -1
- package/constants/{fees.constants.js → fees.constants.mjs} +22 -22
- package/constants/{kyc.constants.js → kyc.constants.mjs} +3 -3
- package/constants/{pendle.registry.js → pendle.registry.mjs} +2 -2
- package/constants/{reorg-depths.constants.js → reorg-depths.constants.mjs} +1 -1
- package/constants/{rewards.constants.js → rewards.constants.mjs} +4 -4
- package/constants/token-data/{ERC20Registry.js → ERC20Registry.mjs} +18 -18
- package/constants/token-data/index.mjs +6 -0
- package/constants/{vite.constants.js → vite.constants.mjs} +2 -2
- package/crypto/{poseidon.js → poseidon.mjs} +1 -1
- package/crypto/{preProcessing.js → preProcessing.mjs} +2 -2
- package/data-structures/Hinkal/{Hinkal.js → Hinkal.mjs} +46 -46
- package/data-structures/Hinkal/{hinkalActionBeefy.js → hinkalActionBeefy.mjs} +29 -29
- package/data-structures/Hinkal/{hinkalActionConvex.js → hinkalActionConvex.mjs} +29 -29
- package/data-structures/Hinkal/{hinkalActionCurve.js → hinkalActionCurve.mjs} +32 -32
- package/data-structures/Hinkal/{hinkalActionLidoEth.js → hinkalActionLidoEth.mjs} +29 -29
- package/data-structures/Hinkal/{hinkalActionPendle.js → hinkalActionPendle.mjs} +33 -33
- package/data-structures/Hinkal/{hinkalActionPendleLP.js → hinkalActionPendleLP.mjs} +29 -29
- package/data-structures/Hinkal/{hinkalActionStake.js → hinkalActionStake.mjs} +31 -31
- package/data-structures/Hinkal/{hinkalActionVolatile.js → hinkalActionVolatile.mjs} +32 -32
- package/data-structures/Hinkal/{hinkalDeposit.js → hinkalDeposit.mjs} +27 -27
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +47 -0
- package/data-structures/Hinkal/{hinkalPrivateWallet.js → hinkalPrivateWallet.mjs} +27 -27
- package/data-structures/Hinkal/{hinkalSwap.js → hinkalSwap.mjs} +28 -28
- package/data-structures/Hinkal/{hinkalWithdraw.js → hinkalWithdraw.mjs} +31 -31
- package/data-structures/Hinkal/{resetMerkleTrees.js → resetMerkleTrees.mjs} +25 -25
- package/data-structures/MultiThreadedUtxoUtils/{MultiThreadedUtxoUtils.js → MultiThreadedUtxoUtils.mjs} +23 -23
- package/data-structures/crypto-keys/{decodeUTXO.js → decodeUTXO.mjs} +2 -2
- package/data-structures/crypto-keys/{encryptDecryptUtxo.js → encryptDecryptUtxo.mjs} +2 -2
- package/data-structures/crypto-keys/{keyUtils.js → keyUtils.mjs} +1 -1
- package/data-structures/crypto-keys/{keys.js → keys.mjs} +5 -5
- package/data-structures/event-service/{AbstractAccessTokenSnapshotService.js → AbstractAccessTokenSnapshotService.mjs} +25 -25
- package/data-structures/event-service/{AbstractCommitmentsSnapshotService.js → AbstractCommitmentsSnapshotService.mjs} +24 -24
- package/data-structures/event-service/{AbstractEventService.js → AbstractEventService.mjs} +21 -21
- package/data-structures/event-service/{AbstractNullifierSnapshotService.js → AbstractNullifierSnapshotService.mjs} +1 -1
- package/data-structures/event-service/{AbstractSnapshotService.js → AbstractSnapshotService.mjs} +1 -1
- package/data-structures/merkle-tree/{MerkleTree.js → MerkleTree.mjs} +22 -22
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +48 -0
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +47 -0
- package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +44 -0
- package/data-structures/token-price-fetcher/{TokenChecker.js → TokenChecker.mjs} +3 -3
- package/data-structures/token-price-fetcher/{TokenPriceFetcher.js → TokenPriceFetcher.mjs} +32 -32
- package/data-structures/transactions-manager/{TransactionsManager.js → TransactionsManager.mjs} +27 -27
- package/data-structures/transactions-manager/history/{getBeefyData.js → getBeefyData.mjs} +23 -23
- package/data-structures/transactions-manager/history/getConvexData.mjs +57 -0
- package/data-structures/transactions-manager/history/{getCurveData.js → getCurveData.mjs} +23 -23
- package/data-structures/transactions-manager/history/getDepositData.mjs +36 -0
- package/data-structures/transactions-manager/history/getLidoData.mjs +44 -0
- package/data-structures/transactions-manager/history/{getPendleData.js → getPendleData.mjs} +27 -27
- package/data-structures/transactions-manager/history/getSwapData.mjs +43 -0
- package/data-structures/transactions-manager/history/getTxDetails.mjs +74 -0
- package/data-structures/transactions-manager/history/{getVolatileData.js → getVolatileData.mjs} +25 -25
- package/data-structures/transactions-manager/history/{history.types.js → history.types.mjs} +21 -21
- package/data-structures/utxo/{Utxo.js → Utxo.mjs} +4 -4
- package/data-structures/volatile-helper/{VolatileHelper.js → VolatileHelper.mjs} +25 -25
- package/error-handling/customErrors/{FeeOverTransactionValueError.js → FeeOverTransactionValueError.mjs} +1 -1
- package/error-handling/customErrors/{customErrors.helpers.js → customErrors.helpers.mjs} +5 -5
- package/error-handling/{get-error.message.js → get-error.message.mjs} +5 -5
- package/error-handling/handleErrorRestore.mjs +35 -0
- package/error-handling/{logError.js → logError.mjs} +1 -1
- package/functions/kyc/authentoHelper.mjs +42 -0
- package/functions/kyc/passportHelper.mjs +39 -0
- package/functions/kyc/{zkMeHelper.js → zkMeHelper.mjs} +4 -4
- package/functions/pre-transaction/{getFlatFees.js → getFlatFees.mjs} +25 -25
- package/functions/pre-transaction/{interaction-to-action.js → interaction-to-action.mjs} +5 -5
- package/functions/pre-transaction/outputUtxoProcessing.mjs +45 -0
- package/functions/pre-transaction/process-gas-estimates.mjs +57 -0
- package/functions/pre-transaction/{processAmountChanges.js → processAmountChanges.mjs} +27 -27
- package/functions/private-wallet/{opProducer.js → opProducer.mjs} +3 -3
- package/functions/protocols/convex.protocols.mjs +41 -0
- package/functions/protocols/curve.protocols.mjs +45 -0
- package/functions/protocols/{pendle.helpers.js → pendle.helpers.mjs} +26 -26
- package/functions/snarkjs/{common.snarkjs.js → common.snarkjs.mjs} +5 -5
- package/functions/snarkjs/{constant.js → constant.mjs} +21 -21
- package/functions/snarkjs/{constructEmporiumProof.js → constructEmporiumProof.mjs} +13 -13
- package/functions/snarkjs/{constructGeneralZkProof.js → constructGeneralZkProof.mjs} +29 -29
- package/functions/snarkjs/{generateCircomData.js → generateCircomData.mjs} +24 -24
- package/functions/snarkjs/{generateZkProof.js → generateZkProof.mjs} +4 -4
- package/functions/snarkjs/getZKFiles.mjs +30 -0
- package/functions/staking/{index.js → index.mjs} +2 -2
- package/functions/utils/axelar.utils.mjs +38 -0
- package/functions/utils/{cacheFunctions.js → cacheFunctions.mjs} +22 -22
- package/functions/utils/{convertIntegrationProviderToExternalActionId.js → convertIntegrationProviderToExternalActionId.mjs} +5 -5
- package/functions/utils/{erc20tokenFunctions.js → erc20tokenFunctions.mjs} +2 -2
- package/functions/utils/evmNetworkFunctions.mjs +29 -0
- package/functions/utils/{external-action.utils.js → external-action.utils.mjs} +6 -6
- package/functions/utils/{getDataFromTransaction.js → getDataFromTransaction.mjs} +21 -21
- package/functions/utils/{memoize.utils.js → memoize.utils.mjs} +1 -1
- package/functions/utils/volatile-patcher.utils.mjs +40 -0
- package/functions/web3/{etherFunctions.js → etherFunctions.mjs} +1 -1
- package/functions/web3/events/balanceChangedHandler.mjs +10 -0
- package/functions/web3/events/{getInputUtxoAndBalance.js → getInputUtxoAndBalance.mjs} +6 -6
- package/functions/web3/events/{getShieldedBalance.js → getShieldedBalance.mjs} +27 -27
- package/functions/web3/functionCalls/{accessTokenCalls.js → accessTokenCalls.mjs} +22 -22
- package/functions/web3/functionCalls/{approveToken.js → approveToken.mjs} +23 -23
- package/functions/web3/functionCalls/{estimateGasRelayer.js → estimateGasRelayer.mjs} +4 -4
- package/functions/web3/functionCalls/{transactCallDirect.js → transactCallDirect.mjs} +24 -24
- package/functions/web3/functionCalls/transactCallRelayer.mjs +42 -0
- package/functions/web3/{odosAPI.js → odosAPI.mjs} +24 -24
- package/functions/web3/{oneInchAPI.js → oneInchAPI.mjs} +25 -25
- package/functions/web3/{runContractFunction.js → runContractFunction.mjs} +22 -22
- package/functions/web3/{uniswapAPI.js → uniswapAPI.mjs} +25 -25
- package/{index.js → index.mjs} +188 -188
- package/package.json +3 -3
- package/types/{curve.types.js → curve.types.mjs} +1 -1
- package/webworker/{performTaskWithWorker.js → performTaskWithWorker.mjs} +20 -20
- package/webworker/snarkjsWorker/{snarkjsWorkerLogic.js → snarkjsWorkerLogic.mjs} +1 -1
- package/webworker/utxoWorker/{utxoWorkerLogic.js → utxoWorkerLogic.mjs} +8 -8
- package/webworker/{workerFactory.js → workerFactory.mjs} +4 -4
- package/webworker/zkProofWorker/{zkProofWorkerLogic.js → zkProofWorkerLogic.mjs} +8 -8
- package/API/HinkalPointsCalls.js +0 -38
- package/API/callBeefyGraphAPI.js +0 -37
- package/API/callMonitor.js +0 -30
- package/API/callOdosAPI.js +0 -44
- package/API/callRelayer.js +0 -32
- package/API/checkRisk.js +0 -30
- package/API/dataServerCalls.js +0 -32
- package/API/fetchCommitmentsCache.js +0 -31
- package/API/fetchNullifiers.js +0 -30
- package/API/getAxelarGasEstimate.js +0 -37
- package/API/getConnextReceiveFee.js +0 -30
- package/API/getGasEstimates.js +0 -38
- package/API/getRelayerURL.js +0 -32
- package/API/getTokenPrice.js +0 -41
- package/API/passwordCalls.js +0 -36
- package/API/relayCalls.js +0 -30
- package/API/restoreSnapshots.js +0 -32
- package/API/rewardsPointsCalls.js +0 -40
- package/API/userVerifyTransactions.js +0 -45
- package/constants/token-data/index.js +0 -6
- package/data-structures/Hinkal/hinkalGetZkMeProvider.js +0 -47
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.js +0 -48
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.js +0 -47
- package/data-structures/snapshot/ClientNullifierSnapshotService.js +0 -44
- package/data-structures/transactions-manager/history/getConvexData.js +0 -57
- package/data-structures/transactions-manager/history/getDepositData.js +0 -36
- package/data-structures/transactions-manager/history/getLidoData.js +0 -44
- package/data-structures/transactions-manager/history/getSwapData.js +0 -43
- package/data-structures/transactions-manager/history/getTxDetails.js +0 -74
- package/error-handling/handleErrorRestore.js +0 -35
- package/functions/kyc/authentoHelper.js +0 -42
- package/functions/kyc/passportHelper.js +0 -39
- package/functions/pre-transaction/outputUtxoProcessing.js +0 -45
- package/functions/pre-transaction/process-gas-estimates.js +0 -57
- package/functions/protocols/convex.protocols.js +0 -41
- package/functions/protocols/curve.protocols.js +0 -45
- package/functions/snarkjs/getZKFiles.js +0 -30
- package/functions/utils/axelar.utils.js +0 -38
- package/functions/utils/evmNetworkFunctions.js +0 -29
- package/functions/utils/volatile-patcher.utils.js +0 -40
- package/functions/web3/events/balanceChangedHandler.js +0 -10
- package/functions/web3/functionCalls/transactCallRelayer.js +0 -42
- /package/constants/{assets.constants.js → assets.constants.mjs} +0 -0
- /package/constants/{backend.constants.js → backend.constants.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-arbMainnet.json.js → deploy-data-arbMainnet.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-avalanche.json.js → deploy-data-avalanche.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-axelar1.json.js → deploy-data-axelar1.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-axelar2.json.js → deploy-data-axelar2.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-base.json.js → deploy-data-base.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-blast.json.js → deploy-data-blast.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-bnbMainnet.json.js → deploy-data-bnbMainnet.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-ethMainnet.json.js → deploy-data-ethMainnet.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-localhost.json.js → deploy-data-localhost.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-optimism.json.js → deploy-data-optimism.json.mjs} +0 -0
- /package/constants/deploy-data/{deploy-data-polygon.json.js → deploy-data-polygon.json.mjs} +0 -0
- /package/constants/{lido.constants.js → lido.constants.mjs} +0 -0
- /package/constants/{protocol.constants.js → protocol.constants.mjs} +0 -0
- /package/constants/{server.constants.js → server.constants.mjs} +0 -0
- /package/constants/token-data/{arbMainnetRegistry.json.js → arbMainnetRegistry.json.mjs} +0 -0
- /package/constants/token-data/{arbMainnetRegistryFixed.json.js → arbMainnetRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{avalancheRegistry.json.js → avalancheRegistry.json.mjs} +0 -0
- /package/constants/token-data/{avalancheRegistryFixed.json.js → avalancheRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{baseRegistry.json.js → baseRegistry.json.mjs} +0 -0
- /package/constants/token-data/{baseRegistryFixed.json.js → baseRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{blastRegistry.json.js → blastRegistry.json.mjs} +0 -0
- /package/constants/token-data/{blastRegistryFixed.json.js → blastRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{bnbMainnetRegistry.json.js → bnbMainnetRegistry.json.mjs} +0 -0
- /package/constants/token-data/{bnbMainnetRegistryFixed.json.js → bnbMainnetRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{coingeckoRegistry.json.js → coingeckoRegistry.json.mjs} +0 -0
- /package/constants/token-data/{ethMainnetRegistry.json.js → ethMainnetRegistry.json.mjs} +0 -0
- /package/constants/token-data/{ethMainnetRegistryFixed.json.js → ethMainnetRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{localhostRegistry.json.js → localhostRegistry.json.mjs} +0 -0
- /package/constants/token-data/{optimismRegistry.json.js → optimismRegistry.json.mjs} +0 -0
- /package/constants/token-data/{optimismRegistryFixed.json.js → optimismRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{polygonRegistry.json.js → polygonRegistry.json.mjs} +0 -0
- /package/constants/token-data/{polygonRegistryFixed.json.js → polygonRegistryFixed.json.mjs} +0 -0
- /package/constants/token-data/{popularTokens.constants.js → popularTokens.constants.mjs} +0 -0
- /package/constants/token-data/{tokenPricing.consts.js → tokenPricing.consts.mjs} +0 -0
- /package/crypto/{babyJub.js → babyJub.mjs} +0 -0
- /package/data-structures/Hinkal/{hinkalTransfer.js → hinkalTransfer.mjs} +0 -0
- /package/data-structures/ValueCache/{ValueCache.js → ValueCache.mjs} +0 -0
- /package/data-structures/custom-token-registry/{CustomTokenRegistry.js → CustomTokenRegistry.mjs} +0 -0
- /package/data-structures/merkle-tree/{MerkleTreeIncompleteError.js → MerkleTreeIncompleteError.mjs} +0 -0
- /package/data-structures/transactions-manager/history/{history.utils.js → history.utils.mjs} +0 -0
- /package/error-handling/customErrors/{ErrorWithAmount.js → ErrorWithAmount.mjs} +0 -0
- /package/error-handling/{error-codes.constants.js → error-codes.constants.mjs} +0 -0
- /package/error-handling/{types.js → types.mjs} +0 -0
- /package/externalABIs/{BUSD.js → BUSD.mjs} +0 -0
- /package/externalABIs/{BabPassport.json.js → BabPassport.json.mjs} +0 -0
- /package/externalABIs/{BeefyRouterAbi.json.js → BeefyRouterAbi.json.mjs} +0 -0
- /package/externalABIs/{BeefyStrategyAbi.json.js → BeefyStrategyAbi.json.mjs} +0 -0
- /package/externalABIs/{BeefyVaultAbi.json.js → BeefyVaultAbi.json.mjs} +0 -0
- /package/externalABIs/{BeefyZapAbi.json.js → BeefyZapAbi.json.mjs} +0 -0
- /package/externalABIs/{BeefyZapOneInchAbi.json.js → BeefyZapOneInchAbi.json.mjs} +0 -0
- /package/externalABIs/{ConvexBoosterAbi.json.js → ConvexBoosterAbi.json.mjs} +0 -0
- /package/externalABIs/{ConvexBoosterAbiMainnet.json.js → ConvexBoosterAbiMainnet.json.mjs} +0 -0
- /package/externalABIs/{ConvexRewardPoolAbi.json.js → ConvexRewardPoolAbi.json.mjs} +0 -0
- /package/externalABIs/{CurveReadingWrapperAbi.json.js → CurveReadingWrapperAbi.json.mjs} +0 -0
- /package/externalABIs/{CurveWrappedMainPool.json.js → CurveWrappedMainPool.json.mjs} +0 -0
- /package/externalABIs/{CurveZap.json.js → CurveZap.json.mjs} +0 -0
- /package/externalABIs/{CvxCrvUtilities.json.js → CvxCrvUtilities.json.mjs} +0 -0
- /package/externalABIs/{DAI.js → DAI.mjs} +0 -0
- /package/externalABIs/{ERC20.json.js → ERC20.json.mjs} +0 -0
- /package/externalABIs/{GalxePassport.json.js → GalxePassport.json.mjs} +0 -0
- /package/externalABIs/{IQuoterV2.json.js → IQuoterV2.json.mjs} +0 -0
- /package/externalABIs/{ISwapRouter.json.js → ISwapRouter.json.mjs} +0 -0
- /package/externalABIs/{IUniswapV3Factory.json.js → IUniswapV3Factory.json.mjs} +0 -0
- /package/externalABIs/{IUniswapV3Pool.json.js → IUniswapV3Pool.json.mjs} +0 -0
- /package/externalABIs/{LidoStEthAbi.json.js → LidoStEthAbi.json.mjs} +0 -0
- /package/externalABIs/{LidoStMaticAbi.json.js → LidoStMaticAbi.json.mjs} +0 -0
- /package/externalABIs/{LidoStakeManagerAbi.json.js → LidoStakeManagerAbi.json.mjs} +0 -0
- /package/externalABIs/{LidoWithdrawalQueueERC721Abi.json.js → LidoWithdrawalQueueERC721Abi.json.mjs} +0 -0
- /package/externalABIs/{LidoWstEthAbi.json.js → LidoWstEthAbi.json.mjs} +0 -0
- /package/externalABIs/{OptimismGasPriceOracle.json.js → OptimismGasPriceOracle.json.mjs} +0 -0
- /package/externalABIs/{PendleRouterAbi.json.js → PendleRouterAbi.json.mjs} +0 -0
- /package/externalABIs/{PoLidoNftAbi.json.js → PoLidoNftAbi.json.mjs} +0 -0
- /package/externalABIs/{SanctionsList.js → SanctionsList.mjs} +0 -0
- /package/externalABIs/{USDC.js → USDC.mjs} +0 -0
- /package/externalABIs/{USDR.js → USDR.mjs} +0 -0
- /package/externalABIs/{USDR3CRV.js → USDR3CRV.mjs} +0 -0
- /package/externalABIs/{USDT.js → USDT.mjs} +0 -0
- /package/externalABIs/{UniswapV2PoolAbi.json.js → UniswapV2PoolAbi.json.mjs} +0 -0
- /package/externalABIs/{WETH.js → WETH.mjs} +0 -0
- /package/externalABIs/{amToken.js → amToken.mjs} +0 -0
- /package/externalABIs/{transactionsProver.json.js → transactionsProver.json.mjs} +0 -0
- /package/functions/private-wallet/{emporium.helpers.js → emporium.helpers.mjs} +0 -0
- /package/functions/utils/{amounts.utils.js → amounts.utils.mjs} +0 -0
- /package/functions/utils/{caseInsensitive.utils.js → caseInsensitive.utils.mjs} +0 -0
- /package/functions/utils/{create-provider.js → create-provider.mjs} +0 -0
- /package/functions/utils/{enum.utils.js → enum.utils.mjs} +0 -0
- /package/functions/utils/{nickname.utils.js → nickname.utils.mjs} +0 -0
- /package/functions/utils/{process.utils.js → process.utils.mjs} +0 -0
- /package/functions/utils/{reloadPage.js → reloadPage.mjs} +0 -0
- /package/functions/utils/{requireEnv.js → requireEnv.mjs} +0 -0
- /package/functions/utils/{resolve-sync.utils.js → resolve-sync.utils.mjs} +0 -0
- /package/functions/utils/{serialize.utils.js → serialize.utils.mjs} +0 -0
- /package/functions/utils/{string.utils.js → string.utils.mjs} +0 -0
- /package/functions/utils/{time.utils.js → time.utils.mjs} +0 -0
- /package/functions/utils/{userAgent.js → userAgent.mjs} +0 -0
- /package/functions/web3/events/{web3RetrieveEvents.js → web3RetrieveEvents.mjs} +0 -0
- /package/types/{beefy.types.js → beefy.types.mjs} +0 -0
- /package/types/{circom-data.types.js → circom-data.types.mjs} +0 -0
- /package/types/{ethereum-network.types.js → ethereum-network.types.mjs} +0 -0
- /package/types/{external-action.types.js → external-action.types.mjs} +0 -0
- /package/types/{hinkal.stake.types.js → hinkal.stake.types.mjs} +0 -0
- /package/types/{hinkal.types.js → hinkal.types.mjs} +0 -0
- /package/types/{kyc.types.js → kyc.types.mjs} +0 -0
- /package/types/{pendle.types.js → pendle.types.mjs} +0 -0
- /package/types/{rewards.types.js → rewards.types.mjs} +0 -0
- /package/types/{slippage.types.js → slippage.types.mjs} +0 -0
- /package/types/{time.types.js → time.types.mjs} +0 -0
- /package/types/{token.types.js → token.types.mjs} +0 -0
- /package/types/{transactions.types.js → transactions.types.mjs} +0 -0
- /package/webworker/snarkjsWorker/{snarkjsWorker.types.js → snarkjsWorker.types.mjs} +0 -0
- /package/webworker/utxoWorker/{utxoWorker.types.js → utxoWorker.types.mjs} +0 -0
- /package/webworker/{worker.registry.js → worker.registry.mjs} +0 -0
- /package/webworker/{workerProxy.js → workerProxy.mjs} +0 -0
- /package/webworker/zkProofWorker/{zkProofWorker.types.js → zkProofWorker.types.mjs} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import o from "axios";
|
|
2
|
+
import "../constants/chains.constants.mjs";
|
|
3
|
+
import "../types/circom-data.types.mjs";
|
|
4
|
+
import "../types/transactions.types.mjs";
|
|
5
|
+
import "../types/curve.types.mjs";
|
|
6
|
+
import "ethers";
|
|
7
|
+
import "circomlibjs";
|
|
8
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
9
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
10
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
11
|
+
import "../webworker/workerFactory.mjs";
|
|
12
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
13
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
14
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
15
|
+
import "../constants/coingecko.constants.mjs";
|
|
16
|
+
import { getRelayerURL as i } from "./getRelayerURL.mjs";
|
|
17
|
+
import { RELAYER_CONFIG as p } from "../constants/server.constants.mjs";
|
|
18
|
+
import "../constants/vite.constants.mjs";
|
|
19
|
+
import "../functions/utils/userAgent.mjs";
|
|
20
|
+
import "../constants/reorg-depths.constants.mjs";
|
|
21
|
+
import "../constants/kyc.constants.mjs";
|
|
22
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "../constants/contracts.constants.mjs";
|
|
25
|
+
import "../constants/axelar.constants.mjs";
|
|
26
|
+
import "../constants/rewards.constants.mjs";
|
|
27
|
+
async function N(t, r, m) {
|
|
28
|
+
return (await o.post(`${i(t)}${p.getTokenPrice}`, {
|
|
29
|
+
erc20Address: r,
|
|
30
|
+
id: m
|
|
31
|
+
})).data;
|
|
32
|
+
}
|
|
33
|
+
async function O(t, r) {
|
|
34
|
+
return (await o.get(`${i(t)}${p.getTokenPriceEth(r)}`)).data;
|
|
35
|
+
}
|
|
36
|
+
const U = async (t, r) => (await o.post(`${i(t)}${p.getTokenPrices}`, { erc20Addresses: r })).data;
|
|
37
|
+
export {
|
|
38
|
+
N as getTokenPrice,
|
|
39
|
+
O as getTokenPriceEth,
|
|
40
|
+
U as getTokenPrices
|
|
41
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from "axios";
|
|
2
|
-
import { API_CONFIG as s } from "../constants/server.constants.
|
|
3
|
-
import { getServerURL as r } from "./getServerURL.
|
|
2
|
+
import { API_CONFIG as s } from "../constants/server.constants.mjs";
|
|
3
|
+
import { getServerURL as r } from "./getServerURL.mjs";
|
|
4
4
|
async function T(t, e) {
|
|
5
5
|
return (await a.post(`${r(t)}${s.ROUTES.checkKycStatus}`, {
|
|
6
6
|
ethereumAddress: e
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import p from "axios";
|
|
2
|
+
import "../constants/chains.constants.mjs";
|
|
3
|
+
import "../types/circom-data.types.mjs";
|
|
4
|
+
import "../types/transactions.types.mjs";
|
|
5
|
+
import "../types/curve.types.mjs";
|
|
6
|
+
import "ethers";
|
|
7
|
+
import "circomlibjs";
|
|
8
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
9
|
+
import { getServerURL as s } from "./getServerURL.mjs";
|
|
10
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
11
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
12
|
+
import "../webworker/workerFactory.mjs";
|
|
13
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
14
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
15
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
16
|
+
import "../constants/coingecko.constants.mjs";
|
|
17
|
+
import { API_CONFIG as i } from "../constants/server.constants.mjs";
|
|
18
|
+
import "../constants/vite.constants.mjs";
|
|
19
|
+
import "../functions/utils/userAgent.mjs";
|
|
20
|
+
import "../constants/reorg-depths.constants.mjs";
|
|
21
|
+
import "../constants/kyc.constants.mjs";
|
|
22
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "../constants/contracts.constants.mjs";
|
|
25
|
+
import "../constants/axelar.constants.mjs";
|
|
26
|
+
import "../constants/rewards.constants.mjs";
|
|
27
|
+
const L = async (r, o) => (await p.get(
|
|
28
|
+
`${s(r)}${i.ROUTES.userHasPassword(o)}`
|
|
29
|
+
)).data, N = async (r, o, t) => (await p.post(`${s(r)}${i.ROUTES.userRegisterPassword}`, {
|
|
30
|
+
ethereumAddress: o,
|
|
31
|
+
passwordHash: t
|
|
32
|
+
})).data;
|
|
33
|
+
export {
|
|
34
|
+
L as userHasPassword,
|
|
35
|
+
N as userRegisterPassword
|
|
36
|
+
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import o from "axios";
|
|
2
|
-
import "../constants/chains.constants.
|
|
3
|
-
import "../types/circom-data.types.
|
|
4
|
-
import "../types/transactions.types.
|
|
5
|
-
import "../types/curve.types.
|
|
2
|
+
import "../constants/chains.constants.mjs";
|
|
3
|
+
import "../types/circom-data.types.mjs";
|
|
4
|
+
import "../types/transactions.types.mjs";
|
|
5
|
+
import "../types/curve.types.mjs";
|
|
6
6
|
import "ethers";
|
|
7
7
|
import "circomlibjs";
|
|
8
|
-
import "../data-structures/crypto-keys/keys.
|
|
9
|
-
import { getServerURL as s } from "./getServerURL.
|
|
10
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.
|
|
11
|
-
import "../functions/web3/events/getShieldedBalance.
|
|
12
|
-
import "../webworker/workerFactory.
|
|
13
|
-
import "../functions/utils/external-action.utils.
|
|
14
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.
|
|
15
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.
|
|
16
|
-
import "../constants/coingecko.constants.
|
|
17
|
-
import { API_CONFIG as a } from "../constants/server.constants.
|
|
18
|
-
import "../constants/vite.constants.
|
|
19
|
-
import "../functions/utils/userAgent.
|
|
20
|
-
import "../constants/reorg-depths.constants.
|
|
21
|
-
import "../constants/kyc.constants.
|
|
22
|
-
import "../data-structures/volatile-helper/VolatileHelper.
|
|
8
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
9
|
+
import { getServerURL as s } from "./getServerURL.mjs";
|
|
10
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
11
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
12
|
+
import "../webworker/workerFactory.mjs";
|
|
13
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
14
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
15
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
16
|
+
import "../constants/coingecko.constants.mjs";
|
|
17
|
+
import { API_CONFIG as a } from "../constants/server.constants.mjs";
|
|
18
|
+
import "../constants/vite.constants.mjs";
|
|
19
|
+
import "../functions/utils/userAgent.mjs";
|
|
20
|
+
import "../constants/reorg-depths.constants.mjs";
|
|
21
|
+
import "../constants/kyc.constants.mjs";
|
|
22
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
23
23
|
import "libsodium-wrappers";
|
|
24
|
-
import "../constants/contracts.constants.
|
|
25
|
-
import "../constants/axelar.constants.
|
|
26
|
-
import "../constants/rewards.constants.
|
|
24
|
+
import "../constants/contracts.constants.mjs";
|
|
25
|
+
import "../constants/axelar.constants.mjs";
|
|
26
|
+
import "../constants/rewards.constants.mjs";
|
|
27
27
|
const I = async (e, t) => (await o.get(`${s(e)}${a.ROUTES.getActiveCode(t)}`)).data, W = async (e, t, r) => (await o.post(`${s(e)}${a.ROUTES.updateActiveCode}`, {
|
|
28
28
|
ethereumAddress: t,
|
|
29
29
|
activeCode: r
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import o from "axios";
|
|
2
|
+
import { getRelayerURL as r } from "./getRelayerURL.mjs";
|
|
3
|
+
import "../constants/chains.constants.mjs";
|
|
4
|
+
import "../types/circom-data.types.mjs";
|
|
5
|
+
import "../types/transactions.types.mjs";
|
|
6
|
+
import "../types/curve.types.mjs";
|
|
7
|
+
import "ethers";
|
|
8
|
+
import "circomlibjs";
|
|
9
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
10
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
11
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
12
|
+
import "../webworker/workerFactory.mjs";
|
|
13
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
14
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
15
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
16
|
+
import "../constants/coingecko.constants.mjs";
|
|
17
|
+
import { RELAYER_CONFIG as m } from "../constants/server.constants.mjs";
|
|
18
|
+
import "../constants/vite.constants.mjs";
|
|
19
|
+
import "../functions/utils/userAgent.mjs";
|
|
20
|
+
import "../constants/reorg-depths.constants.mjs";
|
|
21
|
+
import "../constants/kyc.constants.mjs";
|
|
22
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "../constants/contracts.constants.mjs";
|
|
25
|
+
import "../constants/axelar.constants.mjs";
|
|
26
|
+
import "../constants/rewards.constants.mjs";
|
|
27
|
+
const Y = async (t) => (await o.get(`${r(t)}${m.getIdleRelay}`)).data;
|
|
28
|
+
export {
|
|
29
|
+
Y as getIdleRelay
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import o from "axios";
|
|
2
|
+
import "../constants/chains.constants.mjs";
|
|
3
|
+
import "../types/circom-data.types.mjs";
|
|
4
|
+
import "../types/transactions.types.mjs";
|
|
5
|
+
import "../types/curve.types.mjs";
|
|
6
|
+
import "ethers";
|
|
7
|
+
import "circomlibjs";
|
|
8
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
9
|
+
import { getServerURL as t } from "./getServerURL.mjs";
|
|
10
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
11
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
12
|
+
import "../webworker/workerFactory.mjs";
|
|
13
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
14
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
15
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
16
|
+
import "../constants/coingecko.constants.mjs";
|
|
17
|
+
import { API_CONFIG as p } from "../constants/server.constants.mjs";
|
|
18
|
+
import "../constants/vite.constants.mjs";
|
|
19
|
+
import "../functions/utils/userAgent.mjs";
|
|
20
|
+
import "../constants/reorg-depths.constants.mjs";
|
|
21
|
+
import "../constants/kyc.constants.mjs";
|
|
22
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "../constants/contracts.constants.mjs";
|
|
25
|
+
import "../constants/axelar.constants.mjs";
|
|
26
|
+
import "../constants/rewards.constants.mjs";
|
|
27
|
+
async function G(r) {
|
|
28
|
+
return (await o.post(`${t(r)}${p.ROUTES.restoreSnapshots}`)).data;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
G as restoreSnapshots
|
|
32
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import e from "axios";
|
|
2
|
+
import "../constants/chains.constants.mjs";
|
|
3
|
+
import "../types/circom-data.types.mjs";
|
|
4
|
+
import "../types/transactions.types.mjs";
|
|
5
|
+
import "../types/curve.types.mjs";
|
|
6
|
+
import "ethers";
|
|
7
|
+
import "circomlibjs";
|
|
8
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
9
|
+
import { getServerURL as s } from "./getServerURL.mjs";
|
|
10
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
11
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
12
|
+
import "../webworker/workerFactory.mjs";
|
|
13
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
14
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
15
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
16
|
+
import "../constants/coingecko.constants.mjs";
|
|
17
|
+
import { API_CONFIG as a } from "../constants/server.constants.mjs";
|
|
18
|
+
import "../constants/vite.constants.mjs";
|
|
19
|
+
import "../functions/utils/userAgent.mjs";
|
|
20
|
+
import "../constants/reorg-depths.constants.mjs";
|
|
21
|
+
import "../constants/kyc.constants.mjs";
|
|
22
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "../constants/contracts.constants.mjs";
|
|
25
|
+
import "../constants/axelar.constants.mjs";
|
|
26
|
+
import "../constants/rewards.constants.mjs";
|
|
27
|
+
const F = async (t, o, r, p) => (await e.post(`${s(t)}${a.ROUTES.addNickname}`, {
|
|
28
|
+
ethereumAddress: o,
|
|
29
|
+
nickname: r,
|
|
30
|
+
action: p
|
|
31
|
+
})).data, G = async (t, o) => (await e.get(`${s(t)}${a.ROUTES.getNickname(o)}`)).data, P = async (t, o, r) => (await e.get(`${s(o)}${a.ROUTES.points(t, r)}`)).data, _ = async (t, o) => (await e.get(`${s(t)}${a.ROUTES.leaderboard(o)}`)).data, h = async (t, o) => (await e.get(
|
|
32
|
+
`${s(t)}${a.ROUTES.seasonLeaderboard(o)}`
|
|
33
|
+
)).data;
|
|
34
|
+
export {
|
|
35
|
+
F as addNickname,
|
|
36
|
+
G as getNickname,
|
|
37
|
+
_ as leaderboard,
|
|
38
|
+
P as points,
|
|
39
|
+
h as seasonLeaderboard
|
|
40
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import i from "axios";
|
|
2
|
+
import { getServerURL as a } from "./getServerURL.mjs";
|
|
3
|
+
import "../constants/chains.constants.mjs";
|
|
4
|
+
import "../types/circom-data.types.mjs";
|
|
5
|
+
import "../types/transactions.types.mjs";
|
|
6
|
+
import "../types/curve.types.mjs";
|
|
7
|
+
import "ethers";
|
|
8
|
+
import "circomlibjs";
|
|
9
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
10
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
11
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
12
|
+
import "../webworker/workerFactory.mjs";
|
|
13
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
14
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
15
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
16
|
+
import "../constants/coingecko.constants.mjs";
|
|
17
|
+
import { API_CONFIG as m } from "../constants/server.constants.mjs";
|
|
18
|
+
import "../constants/vite.constants.mjs";
|
|
19
|
+
import "../functions/utils/userAgent.mjs";
|
|
20
|
+
import "../constants/reorg-depths.constants.mjs";
|
|
21
|
+
import "../constants/kyc.constants.mjs";
|
|
22
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "../constants/contracts.constants.mjs";
|
|
25
|
+
import "../constants/axelar.constants.mjs";
|
|
26
|
+
import "../constants/rewards.constants.mjs";
|
|
27
|
+
const P = async (t, r) => {
|
|
28
|
+
const { data: o } = await i.get(
|
|
29
|
+
`${a(t)}${m.ROUTES.verificationStartDate(r)}`
|
|
30
|
+
);
|
|
31
|
+
return o;
|
|
32
|
+
}, _ = async (t, r, o) => (await i.get(
|
|
33
|
+
`${a(t)}${m.ROUTES.userGetTransactions(r, o)}`
|
|
34
|
+
)).data, b = async (t, r, o, s, p, n) => (await i.post(`${a(t)}${m.ROUTES.userVerifyTransactions}`, {
|
|
35
|
+
transactionHashes: r,
|
|
36
|
+
zkCallDataArray: o,
|
|
37
|
+
backendToken: s,
|
|
38
|
+
ethereumAddress: p,
|
|
39
|
+
week: n
|
|
40
|
+
})).data;
|
|
41
|
+
export {
|
|
42
|
+
_ as userGetTransactions,
|
|
43
|
+
b as userVerifyTransactions,
|
|
44
|
+
P as verificationStartDate
|
|
45
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CHAINS as s } from "@axelar-network/axelarjs-sdk";
|
|
2
|
-
import { chainIds as r } from "./chains.constants.
|
|
3
|
-
import e from "./deploy-data/deploy-data-bnbMainnet.json.
|
|
4
|
-
import a from "./deploy-data/deploy-data-arbMainnet.json.
|
|
5
|
-
import o from "./deploy-data/deploy-data-ethMainnet.json.
|
|
6
|
-
import c from "./deploy-data/deploy-data-optimism.json.
|
|
7
|
-
import n from "./deploy-data/deploy-data-polygon.json.
|
|
8
|
-
import i from "./deploy-data/deploy-data-avalanche.json.
|
|
9
|
-
import d from "./deploy-data/deploy-data-base.json.
|
|
10
|
-
import A from "./deploy-data/deploy-data-blast.json.
|
|
2
|
+
import { chainIds as r } from "./chains.constants.mjs";
|
|
3
|
+
import e from "./deploy-data/deploy-data-bnbMainnet.json.mjs";
|
|
4
|
+
import a from "./deploy-data/deploy-data-arbMainnet.json.mjs";
|
|
5
|
+
import o from "./deploy-data/deploy-data-ethMainnet.json.mjs";
|
|
6
|
+
import c from "./deploy-data/deploy-data-optimism.json.mjs";
|
|
7
|
+
import n from "./deploy-data/deploy-data-polygon.json.mjs";
|
|
8
|
+
import i from "./deploy-data/deploy-data-avalanche.json.mjs";
|
|
9
|
+
import d from "./deploy-data/deploy-data-base.json.mjs";
|
|
10
|
+
import A from "./deploy-data/deploy-data-blast.json.mjs";
|
|
11
11
|
const E = [
|
|
12
12
|
{
|
|
13
13
|
chainId: r.ethMainnet,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import s from "./deploy-data/deploy-data-bnbMainnet.json.
|
|
2
|
-
import o from "./deploy-data/deploy-data-arbMainnet.json.
|
|
3
|
-
import c from "./deploy-data/deploy-data-ethMainnet.json.
|
|
4
|
-
import i from "./deploy-data/deploy-data-optimism.json.
|
|
5
|
-
import p from "./deploy-data/deploy-data-polygon.json.
|
|
6
|
-
import l from "./deploy-data/deploy-data-avalanche.json.
|
|
7
|
-
import d from "./deploy-data/deploy-data-base.json.
|
|
8
|
-
import b from "./deploy-data/deploy-data-blast.json.
|
|
9
|
-
import m from "./deploy-data/deploy-data-localhost.json.
|
|
10
|
-
import h from "./deploy-data/deploy-data-axelar1.json.
|
|
11
|
-
import f from "./deploy-data/deploy-data-axelar2.json.
|
|
12
|
-
import { isDevelopment as n } from "./vite.constants.
|
|
1
|
+
import s from "./deploy-data/deploy-data-bnbMainnet.json.mjs";
|
|
2
|
+
import o from "./deploy-data/deploy-data-arbMainnet.json.mjs";
|
|
3
|
+
import c from "./deploy-data/deploy-data-ethMainnet.json.mjs";
|
|
4
|
+
import i from "./deploy-data/deploy-data-optimism.json.mjs";
|
|
5
|
+
import p from "./deploy-data/deploy-data-polygon.json.mjs";
|
|
6
|
+
import l from "./deploy-data/deploy-data-avalanche.json.mjs";
|
|
7
|
+
import d from "./deploy-data/deploy-data-base.json.mjs";
|
|
8
|
+
import b from "./deploy-data/deploy-data-blast.json.mjs";
|
|
9
|
+
import m from "./deploy-data/deploy-data-localhost.json.mjs";
|
|
10
|
+
import h from "./deploy-data/deploy-data-axelar1.json.mjs";
|
|
11
|
+
import f from "./deploy-data/deploy-data-axelar2.json.mjs";
|
|
12
|
+
import { isDevelopment as n } from "./vite.constants.mjs";
|
|
13
13
|
const a = {
|
|
14
14
|
polygon: 137,
|
|
15
15
|
arbMainnet: 42161,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { chainIds as e, getNonLocalhostChainId as c } from "./chains.constants.
|
|
1
|
+
import { chainIds as e, getNonLocalhostChainId as c } from "./chains.constants.mjs";
|
|
2
2
|
const r = "https://api.coingecko.com/api/v3", o = "https://pro-api.coingecko.com/api/v3", i = process.env.COINGECKO_API_KEY, h = "x-cg-pro-api-key", a = i ? o : r, l = (n) => `${a}/simple/price?ids=${n}&vs_currencies=USD,ETH`, m = (n, t) => `${a}/simple/token_price/${t}?contract_addresses=${n}&vs_currencies=USD`, p = `${o}/coins/list`, u = {
|
|
3
3
|
[e.arbMainnet]: "ethereum",
|
|
4
4
|
[e.localhost]: "ethereum",
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { ethers as t, utils as c } from "ethers";
|
|
2
|
-
import { abi as u } from "../externalABIs/BeefyVaultAbi.json.
|
|
3
|
-
import { abi as b } from "../externalABIs/CurveReadingWrapperAbi.json.
|
|
4
|
-
import { abi as p } from "../externalABIs/CurveWrappedMainPool.json.
|
|
5
|
-
import { abi as m } from "../externalABIs/ERC20.json.
|
|
6
|
-
import { abi as A } from "../externalABIs/IQuoterV2.json.
|
|
7
|
-
import { abi as f } from "../externalABIs/IUniswapV3Factory.json.
|
|
8
|
-
import C from "../externalABIs/LidoStEthAbi.json.
|
|
9
|
-
import k from "../externalABIs/LidoStMaticAbi.json.
|
|
10
|
-
import I from "../externalABIs/LidoWithdrawalQueueERC721Abi.json.
|
|
11
|
-
import v from "../externalABIs/PoLidoNftAbi.json.
|
|
12
|
-
import x from "../externalABIs/LidoWstEthAbi.json.
|
|
13
|
-
import w from "../externalABIs/LidoStakeManagerAbi.json.
|
|
14
|
-
import { abi as h } from "../externalABIs/BeefyRouterAbi.json.
|
|
15
|
-
import { abi as B } from "../externalABIs/BeefyStrategyAbi.json.
|
|
16
|
-
import { abi as P } from "../externalABIs/BeefyZapAbi.json.
|
|
17
|
-
import { abi as S } from "../externalABIs/BeefyZapOneInchAbi.json.
|
|
18
|
-
import { abi as W } from "../externalABIs/ConvexBoosterAbi.json.
|
|
19
|
-
import { abi as E } from "../externalABIs/ConvexBoosterAbiMainnet.json.
|
|
20
|
-
import { abi as L } from "../externalABIs/ConvexRewardPoolAbi.json.
|
|
21
|
-
import { abi as T } from "../externalABIs/CurveZap.json.
|
|
22
|
-
import { abi as g } from "../externalABIs/CvxCrvUtilities.json.
|
|
23
|
-
import { abi as y } from "../externalABIs/PendleRouterAbi.json.
|
|
24
|
-
import { abi as $ } from "../externalABIs/IUniswapV3Pool.json.
|
|
25
|
-
import { abi as V } from "../externalABIs/UniswapV2PoolAbi.json.
|
|
26
|
-
import { networkRegistry as H, getNonLocalhostChainId as _ } from "./chains.constants.
|
|
27
|
-
import "../types/circom-data.types.
|
|
28
|
-
import { ContractType as a } from "../types/ethereum-network.types.
|
|
29
|
-
import "../types/transactions.types.
|
|
30
|
-
import "../types/curve.types.
|
|
31
|
-
import { lidoWstEthContractAddress as M, lidoStEthContractAddress as R, lidoWithdrawalQueueERC721Address as N, poLidoNftAddress as O, lidoStMaticAddress as Q, lidoStakeManagerAddress as U } from "./lido.constants.
|
|
2
|
+
import { abi as u } from "../externalABIs/BeefyVaultAbi.json.mjs";
|
|
3
|
+
import { abi as b } from "../externalABIs/CurveReadingWrapperAbi.json.mjs";
|
|
4
|
+
import { abi as p } from "../externalABIs/CurveWrappedMainPool.json.mjs";
|
|
5
|
+
import { abi as m } from "../externalABIs/ERC20.json.mjs";
|
|
6
|
+
import { abi as A } from "../externalABIs/IQuoterV2.json.mjs";
|
|
7
|
+
import { abi as f } from "../externalABIs/IUniswapV3Factory.json.mjs";
|
|
8
|
+
import C from "../externalABIs/LidoStEthAbi.json.mjs";
|
|
9
|
+
import k from "../externalABIs/LidoStMaticAbi.json.mjs";
|
|
10
|
+
import I from "../externalABIs/LidoWithdrawalQueueERC721Abi.json.mjs";
|
|
11
|
+
import v from "../externalABIs/PoLidoNftAbi.json.mjs";
|
|
12
|
+
import x from "../externalABIs/LidoWstEthAbi.json.mjs";
|
|
13
|
+
import w from "../externalABIs/LidoStakeManagerAbi.json.mjs";
|
|
14
|
+
import { abi as h } from "../externalABIs/BeefyRouterAbi.json.mjs";
|
|
15
|
+
import { abi as B } from "../externalABIs/BeefyStrategyAbi.json.mjs";
|
|
16
|
+
import { abi as P } from "../externalABIs/BeefyZapAbi.json.mjs";
|
|
17
|
+
import { abi as S } from "../externalABIs/BeefyZapOneInchAbi.json.mjs";
|
|
18
|
+
import { abi as W } from "../externalABIs/ConvexBoosterAbi.json.mjs";
|
|
19
|
+
import { abi as E } from "../externalABIs/ConvexBoosterAbiMainnet.json.mjs";
|
|
20
|
+
import { abi as L } from "../externalABIs/ConvexRewardPoolAbi.json.mjs";
|
|
21
|
+
import { abi as T } from "../externalABIs/CurveZap.json.mjs";
|
|
22
|
+
import { abi as g } from "../externalABIs/CvxCrvUtilities.json.mjs";
|
|
23
|
+
import { abi as y } from "../externalABIs/PendleRouterAbi.json.mjs";
|
|
24
|
+
import { abi as $ } from "../externalABIs/IUniswapV3Pool.json.mjs";
|
|
25
|
+
import { abi as V } from "../externalABIs/UniswapV2PoolAbi.json.mjs";
|
|
26
|
+
import { networkRegistry as H, getNonLocalhostChainId as _ } from "./chains.constants.mjs";
|
|
27
|
+
import "../types/circom-data.types.mjs";
|
|
28
|
+
import { ContractType as a } from "../types/ethereum-network.types.mjs";
|
|
29
|
+
import "../types/transactions.types.mjs";
|
|
30
|
+
import "../types/curve.types.mjs";
|
|
31
|
+
import { lidoWstEthContractAddress as M, lidoStEthContractAddress as R, lidoWithdrawalQueueERC721Address as N, poLidoNftAddress as O, lidoStMaticAddress as Q, lidoStakeManagerAddress as U } from "./lido.constants.mjs";
|
|
32
32
|
const G = {
|
|
33
33
|
abi: f
|
|
34
34
|
}, F = {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import "./chains.constants.
|
|
2
|
-
import "../types/circom-data.types.
|
|
3
|
-
import { slippageLevels as A } from "../types/slippage.types.
|
|
4
|
-
import "../types/transactions.types.
|
|
5
|
-
import "../types/curve.types.
|
|
6
|
-
import { isDevelopment as m } from "./vite.constants.
|
|
7
|
-
import "./contracts.constants.
|
|
8
|
-
import "./kyc.constants.
|
|
9
|
-
import "./coingecko.constants.
|
|
10
|
-
import "./axelar.constants.
|
|
11
|
-
import "./rewards.constants.
|
|
12
|
-
import "./reorg-depths.constants.
|
|
1
|
+
import "./chains.constants.mjs";
|
|
2
|
+
import "../types/circom-data.types.mjs";
|
|
3
|
+
import { slippageLevels as A } from "../types/slippage.types.mjs";
|
|
4
|
+
import "../types/transactions.types.mjs";
|
|
5
|
+
import "../types/curve.types.mjs";
|
|
6
|
+
import { isDevelopment as m } from "./vite.constants.mjs";
|
|
7
|
+
import "./contracts.constants.mjs";
|
|
8
|
+
import "./kyc.constants.mjs";
|
|
9
|
+
import "./coingecko.constants.mjs";
|
|
10
|
+
import "./axelar.constants.mjs";
|
|
11
|
+
import "./rewards.constants.mjs";
|
|
12
|
+
import "./reorg-depths.constants.mjs";
|
|
13
13
|
import "ethers";
|
|
14
14
|
import "circomlibjs";
|
|
15
|
-
import { absBigInt as s } from "../functions/utils/amounts.utils.
|
|
16
|
-
import "../data-structures/crypto-keys/keys.
|
|
15
|
+
import { absBigInt as s } from "../functions/utils/amounts.utils.mjs";
|
|
16
|
+
import "../data-structures/crypto-keys/keys.mjs";
|
|
17
17
|
import "axios";
|
|
18
|
-
import "../data-structures/crypto-keys/encryptDecryptUtxo.
|
|
19
|
-
import "../functions/web3/events/getShieldedBalance.
|
|
20
|
-
import "../webworker/workerFactory.
|
|
21
|
-
import "../functions/utils/external-action.utils.
|
|
22
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.
|
|
23
|
-
import "../functions/utils/convertIntegrationProviderToExternalActionId.
|
|
24
|
-
import "../functions/utils/userAgent.
|
|
25
|
-
import "../data-structures/volatile-helper/VolatileHelper.
|
|
18
|
+
import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
19
|
+
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
20
|
+
import "../webworker/workerFactory.mjs";
|
|
21
|
+
import "../functions/utils/external-action.utils.mjs";
|
|
22
|
+
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
23
|
+
import "../functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
24
|
+
import "../functions/utils/userAgent.mjs";
|
|
25
|
+
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
26
26
|
import "libsodium-wrappers";
|
|
27
27
|
const c = 8n, u = 3n, a = (t) => t ? c : u, i = (t, o = !1) => {
|
|
28
28
|
const e = s(t);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { zkMeKycHandler as r } from "../functions/kyc/zkMeHelper.
|
|
2
|
-
import { authentoKycHandler as s } from "../functions/kyc/authentoHelper.
|
|
3
|
-
import { chainIds as o } from "./chains.constants.
|
|
1
|
+
import { zkMeKycHandler as r } from "../functions/kyc/zkMeHelper.mjs";
|
|
2
|
+
import { authentoKycHandler as s } from "../functions/kyc/authentoHelper.mjs";
|
|
3
|
+
import { chainIds as o } from "./chains.constants.mjs";
|
|
4
4
|
const u = "https://onboard.aiprise.com", l = "https://onboard-sandbox.aiprise.com";
|
|
5
5
|
var i = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e))(i || {});
|
|
6
6
|
const n = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { caseInsensitiveEqual as r } from "../functions/utils/caseInsensitive.utils.
|
|
2
|
-
import { chainIds as c, getNonLocalhostChainId as C } from "./chains.constants.
|
|
1
|
+
import { caseInsensitiveEqual as r } from "../functions/utils/caseInsensitive.utils.mjs";
|
|
2
|
+
import { chainIds as c, getNonLocalhostChainId as C } from "./chains.constants.mjs";
|
|
3
3
|
const s = [
|
|
4
4
|
{
|
|
5
5
|
name: "Pendle-WEETH-JUNE2024",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../types/circom-data.types.
|
|
2
|
-
import "../types/transactions.types.
|
|
3
|
-
import { RafflePrizeType as t } from "../types/rewards.types.
|
|
4
|
-
import "../types/curve.types.
|
|
1
|
+
import "../types/circom-data.types.mjs";
|
|
2
|
+
import "../types/transactions.types.mjs";
|
|
3
|
+
import { RafflePrizeType as t } from "../types/rewards.types.mjs";
|
|
4
|
+
import "../types/curve.types.mjs";
|
|
5
5
|
const i = ["USDC"], a = "https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program", n = "https://hinkal-team.gitbook.io/hinkal/users/rewards/points", l = "https://hinkal-team.gitbook.io/hinkal/users/rebates/lp-program", p = 3, k = 9, m = {
|
|
6
6
|
10: 2,
|
|
7
7
|
// if in the top 10
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { networkRegistry as o } from "./arbMainnetRegistry.json.
|
|
2
|
-
import { networkRegistry as i } from "./arbMainnetRegistryFixed.json.
|
|
3
|
-
import { networkRegistry as n } from "./avalancheRegistry.json.
|
|
4
|
-
import { networkRegistry as a } from "./avalancheRegistryFixed.json.
|
|
5
|
-
import { networkRegistry as k } from "./bnbMainnetRegistry.json.
|
|
6
|
-
import { networkRegistry as g } from "./bnbMainnetRegistryFixed.json.
|
|
7
|
-
import { networkRegistry as m } from "./ethMainnetRegistry.json.
|
|
8
|
-
import { networkRegistry as s } from "./ethMainnetRegistryFixed.json.
|
|
9
|
-
import { networkRegistry as y } from "./localhostRegistry.json.
|
|
10
|
-
import { networkRegistry as R } from "./optimismRegistry.json.
|
|
11
|
-
import { networkRegistry as w } from "./optimismRegistryFixed.json.
|
|
12
|
-
import { networkRegistry as c } from "./baseRegistry.json.
|
|
13
|
-
import { networkRegistry as p } from "./baseRegistryFixed.json.
|
|
14
|
-
import { networkRegistry as f } from "./polygonRegistry.json.
|
|
15
|
-
import { networkRegistry as b } from "./polygonRegistryFixed.json.
|
|
16
|
-
import { networkRegistry as $ } from "./blastRegistry.json.
|
|
17
|
-
import { networkRegistry as u } from "./blastRegistryFixed.json.
|
|
18
|
-
import { chainIds as r } from "../chains.constants.
|
|
1
|
+
import { networkRegistry as o } from "./arbMainnetRegistry.json.mjs";
|
|
2
|
+
import { networkRegistry as i } from "./arbMainnetRegistryFixed.json.mjs";
|
|
3
|
+
import { networkRegistry as n } from "./avalancheRegistry.json.mjs";
|
|
4
|
+
import { networkRegistry as a } from "./avalancheRegistryFixed.json.mjs";
|
|
5
|
+
import { networkRegistry as k } from "./bnbMainnetRegistry.json.mjs";
|
|
6
|
+
import { networkRegistry as g } from "./bnbMainnetRegistryFixed.json.mjs";
|
|
7
|
+
import { networkRegistry as m } from "./ethMainnetRegistry.json.mjs";
|
|
8
|
+
import { networkRegistry as s } from "./ethMainnetRegistryFixed.json.mjs";
|
|
9
|
+
import { networkRegistry as y } from "./localhostRegistry.json.mjs";
|
|
10
|
+
import { networkRegistry as R } from "./optimismRegistry.json.mjs";
|
|
11
|
+
import { networkRegistry as w } from "./optimismRegistryFixed.json.mjs";
|
|
12
|
+
import { networkRegistry as c } from "./baseRegistry.json.mjs";
|
|
13
|
+
import { networkRegistry as p } from "./baseRegistryFixed.json.mjs";
|
|
14
|
+
import { networkRegistry as f } from "./polygonRegistry.json.mjs";
|
|
15
|
+
import { networkRegistry as b } from "./polygonRegistryFixed.json.mjs";
|
|
16
|
+
import { networkRegistry as $ } from "./blastRegistry.json.mjs";
|
|
17
|
+
import { networkRegistry as u } from "./blastRegistryFixed.json.mjs";
|
|
18
|
+
import { chainIds as r } from "../chains.constants.mjs";
|
|
19
19
|
const J = (t) => {
|
|
20
20
|
switch (t) {
|
|
21
21
|
case r.polygon:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toEnumValue as u } from "../functions/utils/enum.utils.
|
|
2
|
-
import { isOnServer as r } from "../functions/utils/process.utils.
|
|
1
|
+
import { toEnumValue as u } from "../functions/utils/enum.utils.mjs";
|
|
2
|
+
import { isOnServer as r } from "../functions/utils/process.utils.mjs";
|
|
3
3
|
var i = /* @__PURE__ */ ((n) => (n.DEVELOPMENT = "development", n.STAGING = "staging", n.PLAYGROUND = "playground", n.PRODUCTION = "production", n))(i || {});
|
|
4
4
|
const e = {
|
|
5
5
|
development: ["localhost", "192.", "127."],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buildPoseidon as t } from "circomlibjs";
|
|
2
2
|
import { BigNumber as e } from "ethers";
|
|
3
|
-
import { toBigInt as s } from "../functions/utils/amounts.utils.
|
|
3
|
+
import { toBigInt as s } from "../functions/utils/amounts.utils.mjs";
|
|
4
4
|
class r {
|
|
5
5
|
poseidon = void 0;
|
|
6
6
|
async init() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jubHolder as e } from "./babyJub.
|
|
2
|
-
import { poseidonHolder as i } from "./poseidon.
|
|
1
|
+
import { jubHolder as e } from "./babyJub.mjs";
|
|
2
|
+
import { poseidonHolder as i } from "./poseidon.mjs";
|
|
3
3
|
let r = !1;
|
|
4
4
|
const s = async () => {
|
|
5
5
|
r || (await i.init(), await e.init(), r = !0);
|