@hinkal/common 0.0.114 → 0.0.115
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/{index.js → common.mjs} +188 -188
- package/common10.mjs +30 -0
- package/common11.mjs +30 -0
- package/common112.mjs +48 -0
- package/common113.mjs +39 -0
- package/{functions/utils/cacheFunctions.js → common115.mjs} +22 -22
- package/{functions/utils/external-action.utils.js → common117.mjs} +6 -6
- package/{functions/utils/erc20tokenFunctions.js → common118.mjs} +2 -2
- package/{API/API.js → common12.mjs} +10 -10
- package/common121.mjs +16 -0
- package/{functions/pre-transaction/interaction-to-action.js → common122.mjs} +5 -5
- package/common123.mjs +45 -0
- package/common124.mjs +57 -0
- package/{functions/pre-transaction/processAmountChanges.js → common125.mjs} +27 -27
- package/{functions/pre-transaction/getFlatFees.js → common126.mjs} +25 -25
- package/common127.mjs +29 -0
- package/common128.mjs +38 -0
- package/{API/callCurveAPI.js → common13.mjs} +9 -9
- package/{functions/utils/getDataFromTransaction.js → common130.mjs} +21 -21
- package/common136.mjs +40 -0
- package/{functions/web3/etherFunctions.js → common137.mjs} +1 -1
- package/{functions/web3/events/getInputUtxoAndBalance.js → common138.mjs} +6 -6
- package/{functions/web3/events/getShieldedBalance.js → common139.mjs} +27 -27
- package/common14.mjs +32 -0
- package/common141.mjs +10 -0
- package/{functions/web3/uniswapAPI.js → common142.mjs} +25 -25
- package/common143.mjs +65 -0
- package/common144.mjs +61 -0
- package/{functions/web3/runContractFunction.js → common145.mjs} +22 -22
- package/{functions/snarkjs/constructGeneralZkProof.js → common146.mjs} +29 -29
- package/{functions/snarkjs/constructEmporiumProof.js → common147.mjs} +13 -13
- package/{functions/snarkjs/common.snarkjs.js → common148.mjs} +5 -5
- package/{functions/snarkjs/generateZkProof.js → common149.mjs} +4 -4
- package/common150.mjs +45 -0
- package/common151.mjs +41 -0
- package/{functions/protocols/pendle.helpers.js → common152.mjs} +26 -26
- package/{functions/staking/index.js → common153.mjs} +2 -2
- package/{functions/private-wallet/opProducer.js → common155.mjs} +3 -3
- package/common16.mjs +6 -0
- package/{types/curve.types.js → common168.mjs} +1 -1
- package/common170.mjs +85 -0
- package/{webworker/workerFactory.js → common191.mjs} +7 -7
- package/{API/getServerURL.js → common2.mjs} +21 -21
- package/{functions/kyc/zkMeHelper.js → common204.mjs} +4 -4
- package/common205.mjs +42 -0
- package/common208.mjs +62 -0
- package/{API/referralProgramCalls.js → common211.mjs} +22 -22
- package/common212.mjs +40 -0
- package/common213.mjs +45 -0
- package/common214.mjs +36 -0
- package/{API/kycCalls.js → common215.mjs} +2 -2
- package/common216.mjs +44 -0
- package/common217.mjs +32 -0
- package/common218.mjs +38 -0
- package/common220.mjs +32 -0
- package/common221.mjs +47 -0
- package/{functions/utils/memoize.utils.js → common222.mjs} +1 -1
- package/common223.mjs +30 -0
- package/common224.mjs +91 -0
- package/{data-structures/Hinkal/hinkalActionVolatile.js → common225.mjs} +32 -32
- package/{data-structures/Hinkal/hinkalActionPendleLP.js → common226.mjs} +29 -29
- package/common227.mjs +30 -0
- package/{data-structures/Hinkal/hinkalActionStake.js → common228.mjs} +31 -31
- package/{functions/web3/functionCalls/estimateGasRelayer.js → common229.mjs} +4 -4
- package/common230.mjs +42 -0
- package/common231.mjs +60 -0
- package/common232.mjs +48 -0
- package/common233.mjs +47 -0
- package/common234.mjs +44 -0
- package/common235.mjs +74 -0
- package/common237.mjs +60 -0
- package/common239.mjs +30 -0
- package/{functions/web3/functionCalls/approveToken.js → common241.mjs} +23 -23
- package/common242.mjs +31 -0
- package/common243.mjs +30 -0
- package/common244.mjs +68 -0
- package/common245.mjs +57 -0
- package/{data-structures/transactions-manager/history/getCurveData.js → common246.mjs} +23 -23
- package/common247.mjs +36 -0
- package/common248.mjs +43 -0
- package/common249.mjs +44 -0
- package/common250.mjs +59 -0
- package/{data-structures/transactions-manager/history/getVolatileData.js → common251.mjs} +25 -25
- package/{webworker/snarkjsWorker/snarkjsWorkerLogic.js → common252.mjs} +1 -1
- package/{webworker/zkProofWorker/zkProofWorkerLogic.js → common253.mjs} +8 -8
- package/{webworker/utxoWorker/utxoWorkerLogic.js → common254.mjs} +8 -8
- package/{functions/snarkjs/constant.js → common255.mjs} +21 -21
- package/{constants/chains.constants.js → common28.mjs} +12 -12
- package/{constants/fees.constants.js → common29.mjs} +22 -22
- package/{API/getCoingeckoPrice.js → common3.mjs} +1 -1
- package/{constants/contracts.constants.js → common30.mjs} +30 -30
- package/{constants/kyc.constants.js → common31.mjs} +3 -3
- package/{constants/vite.constants.js → common33.mjs} +2 -2
- package/{constants/coingecko.constants.js → common35.mjs} +1 -1
- package/{constants/axelar.constants.js → common36.mjs} +9 -9
- package/{constants/crvCvx.registry.js → common38.mjs} +1 -1
- package/{constants/crvDynamic.registry.js → common39.mjs} +1 -1
- package/common4.mjs +37 -0
- package/{constants/rewards.constants.js → common41.mjs} +4 -4
- package/{constants/reorg-depths.constants.js → common42.mjs} +1 -1
- package/{constants/beefy.registry.js → common43.mjs} +1 -1
- package/{constants/pendle.registry.js → common44.mjs} +2 -2
- package/{crypto/poseidon.js → common45.mjs} +1 -1
- package/{crypto/preProcessing.js → common47.mjs} +2 -2
- package/{data-structures/crypto-keys/decodeUTXO.js → common49.mjs} +2 -2
- package/common5.mjs +37 -0
- package/{data-structures/crypto-keys/encryptDecryptUtxo.js → common50.mjs} +2 -2
- package/{data-structures/crypto-keys/keys.js → common51.mjs} +5 -5
- package/{data-structures/crypto-keys/keyUtils.js → common52.mjs} +1 -1
- package/{data-structures/Hinkal/Hinkal.js → common53.mjs} +46 -46
- package/{data-structures/Hinkal/hinkalActionBeefy.js → common54.mjs} +29 -29
- package/common55.mjs +83 -0
- package/{data-structures/Hinkal/hinkalActionCurve.js → common56.mjs} +32 -32
- package/{data-structures/Hinkal/hinkalActionPendle.js → common57.mjs} +33 -33
- package/{data-structures/Hinkal/hinkalDeposit.js → common58.mjs} +27 -27
- package/common59.mjs +98 -0
- package/common6.mjs +32 -0
- package/common61.mjs +91 -0
- package/common62.mjs +66 -0
- package/common63.mjs +49 -0
- package/{data-structures/merkle-tree/MerkleTree.js → common64.mjs} +22 -22
- package/{data-structures/event-service/AbstractAccessTokenSnapshotService.js → common66.mjs} +25 -25
- package/{data-structures/event-service/AbstractCommitmentsSnapshotService.js → common67.mjs} +24 -24
- package/{data-structures/event-service/AbstractNullifierSnapshotService.js → common68.mjs} +1 -1
- package/{data-structures/event-service/AbstractSnapshotService.js → common69.mjs} +1 -1
- package/common7.mjs +37 -0
- package/{data-structures/event-service/AbstractEventService.js → common70.mjs} +21 -21
- package/{data-structures/utxo/Utxo.js → common71.mjs} +4 -4
- package/{data-structures/token-price-fetcher/TokenChecker.js → common73.mjs} +3 -3
- package/{data-structures/token-price-fetcher/TokenPriceFetcher.js → common74.mjs} +32 -32
- package/{data-structures/transactions-manager/TransactionsManager.js → common75.mjs} +27 -27
- package/{data-structures/transactions-manager/history/history.types.js → common76.mjs} +21 -21
- package/{data-structures/volatile-helper/VolatileHelper.js → common77.mjs} +25 -25
- package/{data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.js → common78.mjs} +23 -23
- package/{error-handling/customErrors/FeeOverTransactionValueError.js → common79.mjs} +1 -1
- package/common8.mjs +38 -0
- package/{error-handling/customErrors/customErrors.helpers.js → common80.mjs} +5 -5
- package/{error-handling/get-error.message.js → common82.mjs} +5 -5
- package/common83.mjs +35 -0
- package/{error-handling/logError.js → common84.mjs} +1 -1
- package/common9.mjs +41 -0
- package/package.json +3 -3
- 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/callOneInchAPI.js +0 -37
- 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/ERC20Registry.js +0 -85
- package/constants/token-data/index.js +0 -6
- package/data-structures/Hinkal/hinkalActionConvex.js +0 -83
- package/data-structures/Hinkal/hinkalActionLidoEth.js +0 -91
- package/data-structures/Hinkal/hinkalGetZkMeProvider.js +0 -47
- package/data-structures/Hinkal/hinkalPrivateWallet.js +0 -66
- package/data-structures/Hinkal/hinkalSwap.js +0 -98
- package/data-structures/Hinkal/hinkalWithdraw.js +0 -91
- package/data-structures/Hinkal/resetMerkleTrees.js +0 -49
- 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/getBeefyData.js +0 -68
- 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/getPendleData.js +0 -59
- 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/generateCircomData.js +0 -60
- package/functions/snarkjs/getZKFiles.js +0 -30
- package/functions/utils/axelar.utils.js +0 -38
- package/functions/utils/convertIntegrationProviderToExternalActionId.js +0 -16
- 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/accessTokenCalls.js +0 -48
- package/functions/web3/functionCalls/transactCallDirect.js +0 -60
- package/functions/web3/functionCalls/transactCallRelayer.js +0 -42
- package/functions/web3/odosAPI.js +0 -65
- package/functions/web3/oneInchAPI.js +0 -61
- package/webworker/performTaskWithWorker.js +0 -62
- /package/{externalABIs/WETH.js → common100.mjs} +0 -0
- /package/{externalABIs/ISwapRouter.json.js → common101.mjs} +0 -0
- /package/{externalABIs/LidoStEthAbi.json.js → common102.mjs} +0 -0
- /package/{externalABIs/LidoStMaticAbi.json.js → common103.mjs} +0 -0
- /package/{externalABIs/LidoWithdrawalQueueERC721Abi.json.js → common104.mjs} +0 -0
- /package/{externalABIs/PoLidoNftAbi.json.js → common105.mjs} +0 -0
- /package/{externalABIs/LidoWstEthAbi.json.js → common106.mjs} +0 -0
- /package/{externalABIs/LidoStakeManagerAbi.json.js → common107.mjs} +0 -0
- /package/{externalABIs/transactionsProver.json.js → common108.mjs} +0 -0
- /package/{externalABIs/BabPassport.json.js → common109.mjs} +0 -0
- /package/{externalABIs/GalxePassport.json.js → common110.mjs} +0 -0
- /package/{externalABIs/OptimismGasPriceOracle.json.js → common111.mjs} +0 -0
- /package/{functions/utils/amounts.utils.js → common114.mjs} +0 -0
- /package/{functions/utils/create-provider.js → common116.mjs} +0 -0
- /package/{functions/utils/requireEnv.js → common119.mjs} +0 -0
- /package/{functions/utils/resolve-sync.utils.js → common120.mjs} +0 -0
- /package/{functions/utils/userAgent.js → common129.mjs} +0 -0
- /package/{functions/utils/reloadPage.js → common131.mjs} +0 -0
- /package/{functions/utils/string.utils.js → common132.mjs} +0 -0
- /package/{functions/utils/nickname.utils.js → common133.mjs} +0 -0
- /package/{functions/utils/caseInsensitive.utils.js → common134.mjs} +0 -0
- /package/{functions/utils/time.utils.js → common135.mjs} +0 -0
- /package/{functions/web3/events/web3RetrieveEvents.js → common140.mjs} +0 -0
- /package/{constants/assets.constants.js → common15.mjs} +0 -0
- /package/{functions/private-wallet/emporium.helpers.js → common154.mjs} +0 -0
- /package/{types/beefy.types.js → common156.mjs} +0 -0
- /package/{types/circom-data.types.js → common157.mjs} +0 -0
- /package/{types/ethereum-network.types.js → common158.mjs} +0 -0
- /package/{types/external-action.types.js → common159.mjs} +0 -0
- /package/{types/hinkal.types.js → common160.mjs} +0 -0
- /package/{types/kyc.types.js → common161.mjs} +0 -0
- /package/{types/token.types.js → common162.mjs} +0 -0
- /package/{types/slippage.types.js → common163.mjs} +0 -0
- /package/{types/transactions.types.js → common164.mjs} +0 -0
- /package/{types/time.types.js → common165.mjs} +0 -0
- /package/{types/rewards.types.js → common166.mjs} +0 -0
- /package/{types/pendle.types.js → common167.mjs} +0 -0
- /package/{types/hinkal.stake.types.js → common169.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-bnbMainnet.json.js → common17.mjs} +0 -0
- /package/{constants/token-data/ethMainnetRegistryFixed.json.js → common171.mjs} +0 -0
- /package/{constants/token-data/arbMainnetRegistryFixed.json.js → common172.mjs} +0 -0
- /package/{constants/token-data/bnbMainnetRegistry.json.js → common173.mjs} +0 -0
- /package/{constants/token-data/polygonRegistryFixed.json.js → common174.mjs} +0 -0
- /package/{constants/token-data/avalancheRegistry.json.js → common175.mjs} +0 -0
- /package/{constants/token-data/optimismRegistryFixed.json.js → common176.mjs} +0 -0
- /package/{constants/token-data/baseRegistryFixed.json.js → common177.mjs} +0 -0
- /package/{constants/token-data/blastRegistry.json.js → common178.mjs} +0 -0
- /package/{constants/token-data/ethMainnetRegistry.json.js → common179.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-arbMainnet.json.js → common18.mjs} +0 -0
- /package/{constants/token-data/arbMainnetRegistry.json.js → common180.mjs} +0 -0
- /package/{constants/token-data/bnbMainnetRegistryFixed.json.js → common181.mjs} +0 -0
- /package/{constants/token-data/polygonRegistry.json.js → common182.mjs} +0 -0
- /package/{constants/token-data/avalancheRegistryFixed.json.js → common183.mjs} +0 -0
- /package/{constants/token-data/optimismRegistry.json.js → common184.mjs} +0 -0
- /package/{constants/token-data/baseRegistry.json.js → common185.mjs} +0 -0
- /package/{constants/token-data/blastRegistryFixed.json.js → common186.mjs} +0 -0
- /package/{constants/token-data/localhostRegistry.json.js → common187.mjs} +0 -0
- /package/{constants/token-data/tokenPricing.consts.js → common188.mjs} +0 -0
- /package/{constants/token-data/popularTokens.constants.js → common189.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-ethMainnet.json.js → common19.mjs} +0 -0
- /package/{constants/token-data/coingeckoRegistry.json.js → common190.mjs} +0 -0
- /package/{externalABIs/BeefyRouterAbi.json.js → common192.mjs} +0 -0
- /package/{externalABIs/BeefyStrategyAbi.json.js → common193.mjs} +0 -0
- /package/{externalABIs/BeefyZapAbi.json.js → common194.mjs} +0 -0
- /package/{externalABIs/BeefyZapOneInchAbi.json.js → common195.mjs} +0 -0
- /package/{externalABIs/ConvexBoosterAbi.json.js → common196.mjs} +0 -0
- /package/{externalABIs/ConvexBoosterAbiMainnet.json.js → common197.mjs} +0 -0
- /package/{externalABIs/ConvexRewardPoolAbi.json.js → common198.mjs} +0 -0
- /package/{externalABIs/CurveZap.json.js → common199.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-optimism.json.js → common20.mjs} +0 -0
- /package/{externalABIs/CvxCrvUtilities.json.js → common200.mjs} +0 -0
- /package/{externalABIs/PendleRouterAbi.json.js → common201.mjs} +0 -0
- /package/{externalABIs/IUniswapV3Pool.json.js → common202.mjs} +0 -0
- /package/{externalABIs/UniswapV2PoolAbi.json.js → common203.mjs} +0 -0
- /package/{functions/utils/enum.utils.js → common206.mjs} +0 -0
- /package/{functions/utils/process.utils.js → common207.mjs} +0 -0
- /package/{webworker/worker.registry.js → common209.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-polygon.json.js → common21.mjs} +0 -0
- /package/{webworker/utxoWorker/utxoWorker.types.js → common210.mjs} +0 -0
- /package/{error-handling/customErrors/ErrorWithAmount.js → common219.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-avalanche.json.js → common22.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-base.json.js → common23.mjs} +0 -0
- /package/{webworker/zkProofWorker/zkProofWorker.types.js → common236.mjs} +0 -0
- /package/{webworker/snarkjsWorker/snarkjsWorker.types.js → common238.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-blast.json.js → common24.mjs} +0 -0
- /package/{functions/utils/serialize.utils.js → common240.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-localhost.json.js → common25.mjs} +0 -0
- /package/{data-structures/transactions-manager/history/history.utils.js → common256.mjs} +0 -0
- /package/{webworker/workerProxy.js → common257.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-axelar1.json.js → common26.mjs} +0 -0
- /package/{constants/deploy-data/deploy-data-axelar2.json.js → common27.mjs} +0 -0
- /package/{constants/server.constants.js → common32.mjs} +0 -0
- /package/{constants/protocol.constants.js → common34.mjs} +0 -0
- /package/{constants/backend.constants.js → common37.mjs} +0 -0
- /package/{constants/lido.constants.js → common40.mjs} +0 -0
- /package/{crypto/babyJub.js → common46.mjs} +0 -0
- /package/{data-structures/ValueCache/ValueCache.js → common48.mjs} +0 -0
- /package/{data-structures/Hinkal/hinkalTransfer.js → common60.mjs} +0 -0
- /package/{data-structures/merkle-tree/MerkleTreeIncompleteError.js → common65.mjs} +0 -0
- /package/{data-structures/custom-token-registry/CustomTokenRegistry.js → common72.mjs} +0 -0
- /package/{error-handling/error-codes.constants.js → common81.mjs} +0 -0
- /package/{error-handling/types.js → common85.mjs} +0 -0
- /package/{externalABIs/amToken.js → common86.mjs} +0 -0
- /package/{externalABIs/BeefyVaultAbi.json.js → common87.mjs} +0 -0
- /package/{externalABIs/BUSD.js → common88.mjs} +0 -0
- /package/{externalABIs/CurveReadingWrapperAbi.json.js → common89.mjs} +0 -0
- /package/{externalABIs/CurveWrappedMainPool.json.js → common90.mjs} +0 -0
- /package/{externalABIs/DAI.js → common91.mjs} +0 -0
- /package/{externalABIs/ERC20.json.js → common92.mjs} +0 -0
- /package/{externalABIs/IQuoterV2.json.js → common93.mjs} +0 -0
- /package/{externalABIs/IUniswapV3Factory.json.js → common94.mjs} +0 -0
- /package/{externalABIs/SanctionsList.js → common95.mjs} +0 -0
- /package/{externalABIs/USDC.js → common96.mjs} +0 -0
- /package/{externalABIs/USDR.js → common97.mjs} +0 -0
- /package/{externalABIs/USDR3CRV.js → common98.mjs} +0 -0
- /package/{externalABIs/USDT.js → common99.mjs} +0 -0
package/common249.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { utils as a } from "ethers";
|
|
2
|
+
import "./common28.mjs";
|
|
3
|
+
import "./common157.mjs";
|
|
4
|
+
import { ExternalActionId as i } from "./common159.mjs";
|
|
5
|
+
import { LidoAction as p } from "./common160.mjs";
|
|
6
|
+
import "./common164.mjs";
|
|
7
|
+
import "./common168.mjs";
|
|
8
|
+
import "circomlibjs";
|
|
9
|
+
import "./common51.mjs";
|
|
10
|
+
import "axios";
|
|
11
|
+
import "./common50.mjs";
|
|
12
|
+
import "./common139.mjs";
|
|
13
|
+
import "./common191.mjs";
|
|
14
|
+
import { getExternalActionIdHash as r } from "./common117.mjs";
|
|
15
|
+
import { getERC20TokenBySymbol as e } from "./common118.mjs";
|
|
16
|
+
import "./common121.mjs";
|
|
17
|
+
import "./common35.mjs";
|
|
18
|
+
import "./common33.mjs";
|
|
19
|
+
import "./common129.mjs";
|
|
20
|
+
import "./common42.mjs";
|
|
21
|
+
import "./common31.mjs";
|
|
22
|
+
import { TransactionType as d } from "./common76.mjs";
|
|
23
|
+
import { wstEthSymbol as l, stMaticSymbol as c, ethSymbol as s, maticSymbol as T } from "./common40.mjs";
|
|
24
|
+
import "./common77.mjs";
|
|
25
|
+
import "./common72.mjs";
|
|
26
|
+
import "libsodium-wrappers";
|
|
27
|
+
import "./common30.mjs";
|
|
28
|
+
import "./common36.mjs";
|
|
29
|
+
import "./common41.mjs";
|
|
30
|
+
const U = (t, A, o) => {
|
|
31
|
+
const n = a.defaultAbiCoder.decode(["uint8"], t.externalActionMetadata)[0];
|
|
32
|
+
let m;
|
|
33
|
+
return n === p.Request ? m = t.externalActionId.toBigInt() === r(i.LidoETH) || t.externalActionId.toBigInt() === r(i.LidoETHNFT) ? e(l, o) : e(c, o) : m = t.externalActionId.toBigInt() === r(i.LidoETH) || t.externalActionId.toBigInt() === r(i.LidoETHNFT) ? e(s, o) : e(T, o), {
|
|
34
|
+
lidoToken: {
|
|
35
|
+
token: m,
|
|
36
|
+
balance: t.amountChanges[1].toBigInt()
|
|
37
|
+
},
|
|
38
|
+
type: d.LIDO,
|
|
39
|
+
lidoAction: n
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
U as getLidoData
|
|
44
|
+
};
|
package/common250.mjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { TransactionType as P } from "./common76.mjs";
|
|
2
|
+
import "./common157.mjs";
|
|
3
|
+
import { ExternalActionId as h } from "./common159.mjs";
|
|
4
|
+
import { PendleAction as t } from "./common160.mjs";
|
|
5
|
+
import "./common164.mjs";
|
|
6
|
+
import "./common168.mjs";
|
|
7
|
+
import "./common28.mjs";
|
|
8
|
+
import "./common33.mjs";
|
|
9
|
+
import "./common30.mjs";
|
|
10
|
+
import "./common31.mjs";
|
|
11
|
+
import "./common35.mjs";
|
|
12
|
+
import "./common36.mjs";
|
|
13
|
+
import "./common41.mjs";
|
|
14
|
+
import "./common42.mjs";
|
|
15
|
+
import "ethers";
|
|
16
|
+
import "circomlibjs";
|
|
17
|
+
import "./common51.mjs";
|
|
18
|
+
import "axios";
|
|
19
|
+
import "./common50.mjs";
|
|
20
|
+
import "./common139.mjs";
|
|
21
|
+
import "./common191.mjs";
|
|
22
|
+
import { getActionFromMetadata as g } from "./common117.mjs";
|
|
23
|
+
import { getERC20Token as y } from "./common118.mjs";
|
|
24
|
+
import "./common121.mjs";
|
|
25
|
+
import "./common129.mjs";
|
|
26
|
+
import { toEnumValue as A } from "./common206.mjs";
|
|
27
|
+
import { txHistoryToBigInt as E } from "./common256.mjs";
|
|
28
|
+
import { TokenChecker as m } from "./common73.mjs";
|
|
29
|
+
import "./common77.mjs";
|
|
30
|
+
import "./common72.mjs";
|
|
31
|
+
import "libsodium-wrappers";
|
|
32
|
+
const oo = (r, p, T) => {
|
|
33
|
+
const k = g(h.Pendle, E(r)), e = A(t, k), s = [], a = [];
|
|
34
|
+
let c;
|
|
35
|
+
const l = p[0], f = p[1];
|
|
36
|
+
return r.amountChanges.forEach((u, d) => {
|
|
37
|
+
let n = u.toBigInt(), i = 0n;
|
|
38
|
+
(e === t.SwapToYt || e === t.Mint) && (n += l.amount, i = f.amount), e && [
|
|
39
|
+
t.Deposit,
|
|
40
|
+
t.Withdraw,
|
|
41
|
+
t.Redeem,
|
|
42
|
+
t.SwapFromYt,
|
|
43
|
+
t.Checkpoint
|
|
44
|
+
].includes(e) && (i = l.amount);
|
|
45
|
+
const o = y(r.erc20TokenAddresses[d], T) ?? {
|
|
46
|
+
erc20TokenAddress: r.erc20TokenAddresses[d]
|
|
47
|
+
};
|
|
48
|
+
"decimals" in o && m.isPendleToken(o) && !m.isPendleSyToken(o) ? a.push({ token: o, balance: n }) : "decimals" in o && m.isPendleSyToken(o) ? c = { token: o, balance: i } : s.push({ token: o, balance: n });
|
|
49
|
+
}), {
|
|
50
|
+
pendleTokens: a,
|
|
51
|
+
nonPendleTokens: s,
|
|
52
|
+
pendleAction: e,
|
|
53
|
+
syToken: c,
|
|
54
|
+
type: P.PENDLE
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
oo as getPendleData
|
|
59
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { TransactionType as d } from "./
|
|
2
|
-
import "
|
|
3
|
-
import { VolatileAction as A } from "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import { getERC20Registry as W } from "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import { caseInsensitiveEqual as a } from "
|
|
1
|
+
import { TransactionType as d } from "./common76.mjs";
|
|
2
|
+
import "./common157.mjs";
|
|
3
|
+
import { VolatileAction as A } from "./common160.mjs";
|
|
4
|
+
import "./common164.mjs";
|
|
5
|
+
import "./common168.mjs";
|
|
6
|
+
import { getERC20Registry as W } from "./common170.mjs";
|
|
7
|
+
import "./common28.mjs";
|
|
8
|
+
import "./common33.mjs";
|
|
9
|
+
import "./common30.mjs";
|
|
10
|
+
import "./common31.mjs";
|
|
11
|
+
import "./common35.mjs";
|
|
12
|
+
import "./common36.mjs";
|
|
13
|
+
import "./common41.mjs";
|
|
14
|
+
import "./common42.mjs";
|
|
15
|
+
import { caseInsensitiveEqual as a } from "./common134.mjs";
|
|
16
16
|
import "ethers";
|
|
17
17
|
import "circomlibjs";
|
|
18
|
-
import "
|
|
18
|
+
import "./common51.mjs";
|
|
19
19
|
import "axios";
|
|
20
|
-
import "
|
|
21
|
-
import "
|
|
22
|
-
import "
|
|
23
|
-
import "
|
|
24
|
-
import { getERC20Token as l } from "
|
|
25
|
-
import "
|
|
26
|
-
import "
|
|
27
|
-
import { VolatileHelper as g } from "
|
|
28
|
-
import "
|
|
20
|
+
import "./common50.mjs";
|
|
21
|
+
import "./common139.mjs";
|
|
22
|
+
import "./common191.mjs";
|
|
23
|
+
import "./common117.mjs";
|
|
24
|
+
import { getERC20Token as l } from "./common118.mjs";
|
|
25
|
+
import "./common121.mjs";
|
|
26
|
+
import "./common129.mjs";
|
|
27
|
+
import { VolatileHelper as g } from "./common77.mjs";
|
|
28
|
+
import "./common72.mjs";
|
|
29
29
|
import "libsodium-wrappers";
|
|
30
30
|
const _ = async (r, u, n) => {
|
|
31
31
|
const c = W(n), { externalActionMetadata: B } = r, { volatileAmounts: m, redirectActionId: E, volatileAction: p } = g.decodeVolatileMetadata(B);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkerProxy as k } from "
|
|
1
|
+
import { WorkerProxy as k } from "./common257.mjs";
|
|
2
2
|
import * as c from "snarkjs";
|
|
3
3
|
const $ = typeof process < "u" && process.versions != null && process.versions.node != null, i = (
|
|
4
4
|
// @ts-expect-error webpack check is done like this
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { preProcessing as u } from "
|
|
2
|
-
import { UserKeys as I } from "
|
|
3
|
-
import { Utxo as S } from "
|
|
4
|
-
import { poseidonFunction as g } from "
|
|
5
|
-
import { MerkleTree as T } from "
|
|
6
|
-
import { calcCommitmentsSiblingAndSides as k, calcAccessTokenSiblingsAndSides as C } from "
|
|
7
|
-
import { WorkerProxy as M } from "
|
|
8
|
-
import { ZKProofWorkerActionType as d } from "./
|
|
1
|
+
import { preProcessing as u } from "./common47.mjs";
|
|
2
|
+
import { UserKeys as I } from "./common51.mjs";
|
|
3
|
+
import { Utxo as S } from "./common71.mjs";
|
|
4
|
+
import { poseidonFunction as g } from "./common45.mjs";
|
|
5
|
+
import { MerkleTree as T } from "./common64.mjs";
|
|
6
|
+
import { calcCommitmentsSiblingAndSides as k, calcAccessTokenSiblingsAndSides as C } from "./common148.mjs";
|
|
7
|
+
import { WorkerProxy as M } from "./common257.mjs";
|
|
8
|
+
import { ZKProofWorkerActionType as d } from "./common236.mjs";
|
|
9
9
|
const l = new M(), f = (e) => {
|
|
10
10
|
const { inputUtxosSerialized: t, merkleTreeSerialized: n } = e.data, m = n.tree, r = new Map(
|
|
11
11
|
Object.entries(m).map(([a, c]) => [BigInt(a), BigInt(c)])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { preProcessing as f } from "
|
|
2
|
-
import { UserKeys as p } from "
|
|
3
|
-
import { Utxo as h } from "
|
|
4
|
-
import { decryptUtxoConstructorArgs as y, decryptUtxo as m } from "
|
|
5
|
-
import { decodeUtxoConstructorArgs as U, checkUtxoSignature as g } from "
|
|
6
|
-
import { logError as d } from "
|
|
7
|
-
import { WorkerProxy as x } from "
|
|
8
|
-
import { UtxoWorkerActionType as l } from "./
|
|
1
|
+
import { preProcessing as f } from "./common47.mjs";
|
|
2
|
+
import { UserKeys as p } from "./common51.mjs";
|
|
3
|
+
import { Utxo as h } from "./common71.mjs";
|
|
4
|
+
import { decryptUtxoConstructorArgs as y, decryptUtxo as m } from "./common50.mjs";
|
|
5
|
+
import { decodeUtxoConstructorArgs as U, checkUtxoSignature as g } from "./common49.mjs";
|
|
6
|
+
import { logError as d } from "./common84.mjs";
|
|
7
|
+
import { WorkerProxy as x } from "./common257.mjs";
|
|
8
|
+
import { UtxoWorkerActionType as l } from "./common210.mjs";
|
|
9
9
|
const a = new x(), T = async ({ data: e }) => {
|
|
10
10
|
const { utxos: t, nullifiers: o } = e, s = t.filter((r) => {
|
|
11
11
|
const c = new h(r);
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { chainIds as e } from "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
1
|
+
import { chainIds as e } from "./common28.mjs";
|
|
2
|
+
import "./common157.mjs";
|
|
3
|
+
import "./common164.mjs";
|
|
4
|
+
import "./common168.mjs";
|
|
5
5
|
import "ethers";
|
|
6
6
|
import "circomlibjs";
|
|
7
|
-
import "
|
|
7
|
+
import "./common51.mjs";
|
|
8
8
|
import "axios";
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import { logError as x } from "
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
9
|
+
import "./common50.mjs";
|
|
10
|
+
import "./common139.mjs";
|
|
11
|
+
import "./common191.mjs";
|
|
12
|
+
import "./common117.mjs";
|
|
13
|
+
import "./common72.mjs";
|
|
14
|
+
import "./common121.mjs";
|
|
15
|
+
import "./common35.mjs";
|
|
16
|
+
import { logError as x } from "./common84.mjs";
|
|
17
|
+
import "./common129.mjs";
|
|
18
|
+
import "./common42.mjs";
|
|
19
|
+
import "./common31.mjs";
|
|
20
|
+
import "./common77.mjs";
|
|
21
21
|
import "libsodium-wrappers";
|
|
22
|
-
import "
|
|
23
|
-
import "
|
|
24
|
-
import "
|
|
25
|
-
import "
|
|
22
|
+
import "./common33.mjs";
|
|
23
|
+
import "./common30.mjs";
|
|
24
|
+
import "./common36.mjs";
|
|
25
|
+
import "./common41.mjs";
|
|
26
26
|
const p = {
|
|
27
27
|
ethMainnet: "https://hinkal-zk-verifiers-may-2024.s3.us-west-1.amazonaws.com/",
|
|
28
28
|
polygon: "https://hinkal-zk-new-verifiers.s3.us-west-1.amazonaws.com/",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import s from "./
|
|
2
|
-
import o from "./
|
|
3
|
-
import c from "./
|
|
4
|
-
import i from "./
|
|
5
|
-
import p from "./
|
|
6
|
-
import l from "./
|
|
7
|
-
import d from "./
|
|
8
|
-
import b from "./
|
|
9
|
-
import m from "./
|
|
10
|
-
import h from "./
|
|
11
|
-
import f from "./
|
|
12
|
-
import { isDevelopment as n } from "./
|
|
1
|
+
import s from "./common17.mjs";
|
|
2
|
+
import o from "./common18.mjs";
|
|
3
|
+
import c from "./common19.mjs";
|
|
4
|
+
import i from "./common20.mjs";
|
|
5
|
+
import p from "./common21.mjs";
|
|
6
|
+
import l from "./common22.mjs";
|
|
7
|
+
import d from "./common23.mjs";
|
|
8
|
+
import b from "./common24.mjs";
|
|
9
|
+
import m from "./common25.mjs";
|
|
10
|
+
import h from "./common26.mjs";
|
|
11
|
+
import f from "./common27.mjs";
|
|
12
|
+
import { isDevelopment as n } from "./common33.mjs";
|
|
13
13
|
const a = {
|
|
14
14
|
polygon: 137,
|
|
15
15
|
arbMainnet: 42161,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "
|
|
3
|
-
import { slippageLevels as A } from "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import { isDevelopment as m } from "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
1
|
+
import "./common28.mjs";
|
|
2
|
+
import "./common157.mjs";
|
|
3
|
+
import { slippageLevels as A } from "./common163.mjs";
|
|
4
|
+
import "./common164.mjs";
|
|
5
|
+
import "./common168.mjs";
|
|
6
|
+
import { isDevelopment as m } from "./common33.mjs";
|
|
7
|
+
import "./common30.mjs";
|
|
8
|
+
import "./common31.mjs";
|
|
9
|
+
import "./common35.mjs";
|
|
10
|
+
import "./common36.mjs";
|
|
11
|
+
import "./common41.mjs";
|
|
12
|
+
import "./common42.mjs";
|
|
13
13
|
import "ethers";
|
|
14
14
|
import "circomlibjs";
|
|
15
|
-
import { absBigInt as s } from "
|
|
16
|
-
import "
|
|
15
|
+
import { absBigInt as s } from "./common114.mjs";
|
|
16
|
+
import "./common51.mjs";
|
|
17
17
|
import "axios";
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
21
|
-
import "
|
|
22
|
-
import "
|
|
23
|
-
import "
|
|
24
|
-
import "
|
|
25
|
-
import "
|
|
18
|
+
import "./common50.mjs";
|
|
19
|
+
import "./common139.mjs";
|
|
20
|
+
import "./common191.mjs";
|
|
21
|
+
import "./common117.mjs";
|
|
22
|
+
import "./common72.mjs";
|
|
23
|
+
import "./common121.mjs";
|
|
24
|
+
import "./common129.mjs";
|
|
25
|
+
import "./common77.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,5 +1,5 @@
|
|
|
1
1
|
import o from "axios";
|
|
2
|
-
import { coingeckoPriceUrl as c, proHeader as t, COINGECKO_API_KEY as i, coingeckoPriceUrl2 as a, coingeckoTokenListUrl as s } from "
|
|
2
|
+
import { coingeckoPriceUrl as c, proHeader as t, COINGECKO_API_KEY as i, coingeckoPriceUrl2 as a, coingeckoTokenListUrl as s } from "./common35.mjs";
|
|
3
3
|
async function u(e) {
|
|
4
4
|
return (await o.get(c(e), {
|
|
5
5
|
headers: { [t]: i || "" }
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { ethers as t, utils as c } from "ethers";
|
|
2
|
-
import { abi as u } from "
|
|
3
|
-
import { abi as b } from "
|
|
4
|
-
import { abi as p } from "
|
|
5
|
-
import { abi as m } from "
|
|
6
|
-
import { abi as A } from "
|
|
7
|
-
import { abi as f } from "
|
|
8
|
-
import C from "
|
|
9
|
-
import k from "
|
|
10
|
-
import I from "
|
|
11
|
-
import v from "
|
|
12
|
-
import x from "
|
|
13
|
-
import w from "
|
|
14
|
-
import { abi as h } from "
|
|
15
|
-
import { abi as B } from "
|
|
16
|
-
import { abi as P } from "
|
|
17
|
-
import { abi as S } from "
|
|
18
|
-
import { abi as W } from "
|
|
19
|
-
import { abi as E } from "
|
|
20
|
-
import { abi as L } from "
|
|
21
|
-
import { abi as T } from "
|
|
22
|
-
import { abi as g } from "
|
|
23
|
-
import { abi as y } from "
|
|
24
|
-
import { abi as $ } from "
|
|
25
|
-
import { abi as V } from "
|
|
26
|
-
import { networkRegistry as H, getNonLocalhostChainId as _ } from "./
|
|
27
|
-
import "
|
|
28
|
-
import { ContractType as a } from "
|
|
29
|
-
import "
|
|
30
|
-
import "
|
|
31
|
-
import { lidoWstEthContractAddress as M, lidoStEthContractAddress as R, lidoWithdrawalQueueERC721Address as N, poLidoNftAddress as O, lidoStMaticAddress as Q, lidoStakeManagerAddress as U } from "./
|
|
2
|
+
import { abi as u } from "./common87.mjs";
|
|
3
|
+
import { abi as b } from "./common89.mjs";
|
|
4
|
+
import { abi as p } from "./common90.mjs";
|
|
5
|
+
import { abi as m } from "./common92.mjs";
|
|
6
|
+
import { abi as A } from "./common93.mjs";
|
|
7
|
+
import { abi as f } from "./common94.mjs";
|
|
8
|
+
import C from "./common102.mjs";
|
|
9
|
+
import k from "./common103.mjs";
|
|
10
|
+
import I from "./common104.mjs";
|
|
11
|
+
import v from "./common105.mjs";
|
|
12
|
+
import x from "./common106.mjs";
|
|
13
|
+
import w from "./common107.mjs";
|
|
14
|
+
import { abi as h } from "./common192.mjs";
|
|
15
|
+
import { abi as B } from "./common193.mjs";
|
|
16
|
+
import { abi as P } from "./common194.mjs";
|
|
17
|
+
import { abi as S } from "./common195.mjs";
|
|
18
|
+
import { abi as W } from "./common196.mjs";
|
|
19
|
+
import { abi as E } from "./common197.mjs";
|
|
20
|
+
import { abi as L } from "./common198.mjs";
|
|
21
|
+
import { abi as T } from "./common199.mjs";
|
|
22
|
+
import { abi as g } from "./common200.mjs";
|
|
23
|
+
import { abi as y } from "./common201.mjs";
|
|
24
|
+
import { abi as $ } from "./common202.mjs";
|
|
25
|
+
import { abi as V } from "./common203.mjs";
|
|
26
|
+
import { networkRegistry as H, getNonLocalhostChainId as _ } from "./common28.mjs";
|
|
27
|
+
import "./common157.mjs";
|
|
28
|
+
import { ContractType as a } from "./common158.mjs";
|
|
29
|
+
import "./common164.mjs";
|
|
30
|
+
import "./common168.mjs";
|
|
31
|
+
import { lidoWstEthContractAddress as M, lidoStEthContractAddress as R, lidoWithdrawalQueueERC721Address as N, poLidoNftAddress as O, lidoStMaticAddress as Q, lidoStakeManagerAddress as U } from "./common40.mjs";
|
|
32
32
|
const G = {
|
|
33
33
|
abi: f
|
|
34
34
|
}, F = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { zkMeKycHandler as r } from "
|
|
2
|
-
import { authentoKycHandler as s } from "
|
|
3
|
-
import { chainIds as o } from "./
|
|
1
|
+
import { zkMeKycHandler as r } from "./common204.mjs";
|
|
2
|
+
import { authentoKycHandler as s } from "./common205.mjs";
|
|
3
|
+
import { chainIds as o } from "./common28.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 { toEnumValue as u } from "
|
|
2
|
-
import { isOnServer as r } from "
|
|
1
|
+
import { toEnumValue as u } from "./common206.mjs";
|
|
2
|
+
import { isOnServer as r } from "./common207.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,4 +1,4 @@
|
|
|
1
|
-
import { chainIds as e, getNonLocalhostChainId as c } from "./
|
|
1
|
+
import { chainIds as e, getNonLocalhostChainId as c } from "./common28.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,13 +1,13 @@
|
|
|
1
1
|
import { CHAINS as s } from "@axelar-network/axelarjs-sdk";
|
|
2
|
-
import { chainIds as r } from "./
|
|
3
|
-
import e from "./
|
|
4
|
-
import a from "./
|
|
5
|
-
import o from "./
|
|
6
|
-
import c from "./
|
|
7
|
-
import n from "./
|
|
8
|
-
import i from "./
|
|
9
|
-
import d from "./
|
|
10
|
-
import A from "./
|
|
2
|
+
import { chainIds as r } from "./common28.mjs";
|
|
3
|
+
import e from "./common17.mjs";
|
|
4
|
+
import a from "./common18.mjs";
|
|
5
|
+
import o from "./common19.mjs";
|
|
6
|
+
import c from "./common20.mjs";
|
|
7
|
+
import n from "./common21.mjs";
|
|
8
|
+
import i from "./common22.mjs";
|
|
9
|
+
import d from "./common23.mjs";
|
|
10
|
+
import A from "./common24.mjs";
|
|
11
11
|
const E = [
|
|
12
12
|
{
|
|
13
13
|
chainId: r.ethMainnet,
|
package/common4.mjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import r from "axios";
|
|
2
|
+
import { getNonLocalhostChainId as m } from "./common28.mjs";
|
|
3
|
+
import "./common157.mjs";
|
|
4
|
+
import "./common164.mjs";
|
|
5
|
+
import "./common168.mjs";
|
|
6
|
+
import "ethers";
|
|
7
|
+
import "circomlibjs";
|
|
8
|
+
import "./common51.mjs";
|
|
9
|
+
import { getServerURL as n } from "./common2.mjs";
|
|
10
|
+
import "./common50.mjs";
|
|
11
|
+
import "./common139.mjs";
|
|
12
|
+
import "./common191.mjs";
|
|
13
|
+
import "./common117.mjs";
|
|
14
|
+
import "./common72.mjs";
|
|
15
|
+
import "./common121.mjs";
|
|
16
|
+
import "./common35.mjs";
|
|
17
|
+
import { API_CONFIG as e } from "./common32.mjs";
|
|
18
|
+
import "./common33.mjs";
|
|
19
|
+
import "./common129.mjs";
|
|
20
|
+
import "./common42.mjs";
|
|
21
|
+
import "./common31.mjs";
|
|
22
|
+
import "./common77.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "./common30.mjs";
|
|
25
|
+
import "./common36.mjs";
|
|
26
|
+
import "./common41.mjs";
|
|
27
|
+
const N = async (i, o) => {
|
|
28
|
+
const t = m(i), p = new URLSearchParams();
|
|
29
|
+
p.append("fromTokenAddress", o.fromTokenAddress), p.append("toTokenAddress", o.toTokenAddress), p.append("amount", `${o.amount}`), p.append("fromAddress", o.fromAddress), p.append("slippage", `${o.slippage}`), o.destReceiver && p.append("destReceiver", o.destReceiver), o.disableEstimate && p.append("disableEstimate", `${o.disableEstimate}`), o.allowPartialFill && p.append("allowPartialFill", `${o.allowPartialFill}`);
|
|
30
|
+
const a = {
|
|
31
|
+
url: `https://api.1inch.dev/swap/v5.2/${t}/swap?${p}`
|
|
32
|
+
};
|
|
33
|
+
return (await r.post(`${n(i)}${e.ROUTES.callOneInchAPI}`, a)).data.oneInchResponse;
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
N as callOneInchAPI
|
|
37
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import { RafflePrizeType as t } from "
|
|
4
|
-
import "
|
|
1
|
+
import "./common157.mjs";
|
|
2
|
+
import "./common164.mjs";
|
|
3
|
+
import { RafflePrizeType as t } from "./common166.mjs";
|
|
4
|
+
import "./common168.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,5 +1,5 @@
|
|
|
1
|
-
import { caseInsensitiveEqual as r } from "
|
|
2
|
-
import { chainIds as c, getNonLocalhostChainId as C } from "./
|
|
1
|
+
import { caseInsensitiveEqual as r } from "./common134.mjs";
|
|
2
|
+
import { chainIds as c, getNonLocalhostChainId as C } from "./common28.mjs";
|
|
3
3
|
const s = [
|
|
4
4
|
{
|
|
5
5
|
name: "Pendle-WEETH-JUNE2024",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jubHolder as e } from "./
|
|
2
|
-
import { poseidonHolder as i } from "./
|
|
1
|
+
import { jubHolder as e } from "./common46.mjs";
|
|
2
|
+
import { poseidonHolder as i } from "./common45.mjs";
|
|
3
3
|
let r = !1;
|
|
4
4
|
const s = async () => {
|
|
5
5
|
r || (await i.init(), await e.init(), r = !0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ethers as m } from "ethers";
|
|
2
|
-
import { Utxo as g } from "
|
|
3
|
-
import { UserKeys as x } from "./
|
|
2
|
+
import { Utxo as g } from "./common71.mjs";
|
|
3
|
+
import { UserKeys as x } from "./common51.mjs";
|
|
4
4
|
const c = (o) => {
|
|
5
5
|
const t = m.utils.defaultAbiCoder.decode(
|
|
6
6
|
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|