import { ILogger, LogFn } from "./types/logger.js"; import { AddressMap } from "./utils/AddressMap.js"; import { AddressSet } from "./utils/AddressSet.js"; import { GearboxChain, NetworkType, SUPPORTED_NETWORKS, chains, findCuratorMarketConfigurator, getAccountTargetCollateral, getAssetType, getChain, getCuratorName, getDirectTransferToken, getLegacyStrategyTarget, getNetworkType, isPublicNetwork, isRWAToken, isSunsetPool, isSunsetStrategy, isSupportedNetwork, toChainIds } from "./chain/chains.js"; import { BlockNumberProps, MultichainChainIdsProps, MultichainNetworkProps, WithBlock, WithMultichain } from "./types/multichain.js"; import { generateCastTraceCall, getCastTraceArgs } from "./utils/viem/cast.js"; import { DelegatedMulticall, executeDelegatedMulticalls } from "./utils/viem/executeDelegatedMulticalls.js"; import { ExecuteMulticallBatchesOptions, MulticallBatch, executeMulticallBatches } from "./utils/viem/executeMulticallBatches.js"; import { EstimateRawTxGasParameters, SendRawTxParameters, estimateRawTxGas, sendRawTx } from "./utils/viem/sendRawTx.js"; import { SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulationError, SimulationErrorType, simulateCall } from "./utils/viem/simulateCall.js"; import { SimulateMulticallParameters, SimulateMulticallReturnType, simulateMulticall } from "./utils/viem/simulateMulticall.js"; import { SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, getSimulateWithPriceUpdatesError, simulateWithPriceUpdates } from "./utils/viem/simulateWithPriceUpdates.js"; import { WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, watchBlocksAsync } from "./utils/viem/watchBlocksAsync.js"; import "./utils/viem/index.js"; import { ClaimableWithdrawal, CurrentWithdrawals, DelayedIntentExtended, GetExternalAccountCurrentWithdrawalsProps, GetWithdrawalRequestResultProps, IRedemptionLoggerContract, IWithdrawalCompressorContract, PendingWithdrawal, RedemptionLog, RequestableWithdrawal, WithdrawableAsset, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, toWithdrawalStatus } from "./accounts/withdrawal-compressor/types.js"; import { detectNetwork } from "./chain/detectNetwork.js"; import "./chain/index.js"; import { AdapterData, AssertAssignable, Asset, AssetWithAmountInTarget, BaseParams, BaseState, ConnectedBotData, CreditAccountData, CreditAccountDataPayload, CreditAccountTokensSlice, CreditConfiguratorState, CreditFacadeState, CreditManagerDebtParams, CreditManagerState, CreditSuiteState, GaugeData, IBaseContract, MarketData, MarketFilter, ParsedCall, ParsedCallArgs, ParsedCallV2, PermitResult, PoolState, PriceFeedAnswer, PriceFeedMapEntry, PriceFeedTreeNode, PriceOracleData, QuotaKeeperState, QuotaState, RateKeeperState, RelaxedBaseParams, RewardInfo, TokenInfo, Unarray, VotingContractStatus } from "./base/types.js"; import { AssetsMap } from "./utils/AssetsMap.js"; import { functionArgsToMap, functionArgsToRecord, getFunctionSignature } from "./utils/abi-decode.js"; import { BigIntMath } from "./utils/bigint-math.js"; import { bytes32ToString } from "./utils/bytes32ToString.js"; import { childLogger } from "./utils/childLogger.js"; import { createRawTx } from "./utils/createRawTx.js"; import { EtherscanURLParam, etherscanApiUrl, etherscanUrl } from "./utils/etherscan.js"; import { ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, NO_VERSION } from "./constants/address-provider.js"; import { ADDRESS_0X0, MULTICALL_ADDRESS, NATIVE_ADDRESS, NOT_DEPLOYED } from "./constants/addresses.js"; import { BotPermissions, botPermissionsToString } from "./constants/bot-permissions.js"; import { DUST_THRESHOLD, LEVERAGE_DECIMALS, MAX_INT, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_INT96, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PRICE_DECIMALS, PRICE_DECIMALS_POW, RAY, RAY_DECIMALS_POW, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, WAD, WAD_DECIMALS_POW, halfRAY, isZeroBalance } from "./constants/math.js"; import { BLOCKS_PER_WEEK_BY_NETWORK, RAMP_DURATION_BY_NETWORK } from "./constants/networks.js"; import { PERIPHERY_CONTRACTS, PeripheryContract } from "./constants/periphery.js"; import { VERSION_RANGE_310, VersionRange, isV310, isVersionRange } from "./constants/versions.js"; import "./constants/index.js"; import { DEGEN_NFT_MIDAS, PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS } from "./market/rwa/midas/constants.js"; import { DEGEN_NFT_SECURITIZE, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_LIQUIDATOR_SECURITIZE } from "./market/rwa/securitize/constants.js"; import { DStokenData, SecuritizeCreditAccountData, SecuritizeInvestorData, SecuritizeRWAFactoryStateHuman } from "./market/rwa/securitize/types.js"; import { SecuritizeRWAFactory } from "./market/rwa/securitize/SecuritizeRWAFactory.js"; import { SecuritizeDegenNFT } from "./market/rwa/securitize/SecuritizeDegenNFT.js"; import { SecuritizeLiquidatorContract } from "./market/rwa/securitize/SecuritizeLiquidatorContract.js"; import { GetInvestorOptions, GetOpenAccountRequirementsProps, IDegenNFT, IRWAFactory, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWAFactoryData, RWAFactoryProtocol, RWAFactoryStateHuman, RWAInvestorData, RWAState, RWAStateHuman, RWAUnderlyingData, isRWAFactory } from "./market/rwa/types.js"; import { MidasDegenNFT } from "./market/rwa/midas/MidasDegenNFT.js"; import { MidasLiquidatorContract } from "./market/rwa/midas/MidasLiquidatorContract.js"; import { RWARegistry, RWA_COMPRESSOR_ADDRESS } from "./market/rwa/RWARegistry.js"; import { AddressProviderV3StateHuman, AliasLossPolicyStateHuman, AssetPriceFeedStateHuman, BalancerWeightedPriceFeedStateHuman, BaseContractStateHuman, BasePriceFeedStateHuman, BotListStateHuman, BoundedOracleStateHuman, ConstantOracleStateHuman, CoreStateHuman, CreditConfiguratorStateHuman, CreditFacadeStateHuman, CreditManagerDebtParamsHuman, CreditManagerStateHuman, CreditSuiteStateHuman, GaugeParamsHuman, GaugeStateHuman, GearStakingV3StateHuman, GearboxStateHuman, InterestRateModelStateHuman, LPPriceFeedStateHuman, LinearInterestRateModelStateHuman, LossPolicyStateHuman, MarketStateHuman, MultichainStateHuman, PoolQuotaKeeperStateHuman, PoolStateHuman, PoolSuiteStateHuman, PriceFeedStateHuman, PriceOracleStateHuman, QuotaParamsHuman, RateKeeperStateHuman, RedstonePriceFeedStateHuman, TumblerStateHuman, ZapperStateHuman } from "./types/state-human.js"; import { AdapterContractStateHuman, AdapterContractType, AdapterProtocolOperation, AdapterType, DelayedWithdrawalClaim, DelayedWithdrawalRequest, IAdapterContract, VersionedAbi } from "./market/adapters/types.js"; import { adapterActionAbi, adapterActionSelectors, adapterActionSignatures } from "./market/adapters/abi/actionAbi.js"; import { erc4626ReferralAdapterAbi } from "./market/adapters/abi/adapters/erc4626ReferralAdapter.js"; import { iBalancerV3RouterAdapterAbi } from "./market/adapters/abi/adapters/iBalancerV3RouterAdapter.js"; import { iBalancerV3WrapperAdapterAbi } from "./market/adapters/abi/adapters/iBalancerV3WrapperAdapter.js"; import { iCamelotV3AdapterAbi } from "./market/adapters/abi/adapters/iCamelotV3Adapter.js"; import { iConvexV1BaseRewardPoolAdapterAbi } from "./market/adapters/abi/adapters/iConvexV1BaseRewardPoolAdapter.js"; import { iConvexV1BoosterAdapterAbi } from "./market/adapters/abi/adapters/iConvexV1BoosterAdapter.js"; import { iCurveV1_2AssetsAdapterAbi } from "./market/adapters/abi/adapters/iCurveV1_2AssetsAdapter.js"; import { iCurveV1_3AssetsAdapterAbi } from "./market/adapters/abi/adapters/iCurveV1_3AssetsAdapter.js"; import { iCurveV1_4AssetsAdapterAbi } from "./market/adapters/abi/adapters/iCurveV1_4AssetsAdapter.js"; import { iCurveV1StableNgAdapterAbi } from "./market/adapters/abi/adapters/iCurveV1StableNgAdapter.js"; import { iDaiUsdsAdapterAbi } from "./market/adapters/abi/adapters/iDaiUsdsAdapter.js"; import { iFluidDexAdapterAbi } from "./market/adapters/abi/adapters/iFluidDexAdapter.js"; import { iInfinifiGatewayAdapterAbi } from "./market/adapters/abi/adapters/iInfinifiGatewayAdapter.js"; import { iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi } from "./market/adapters/abi/adapters/iInfinifiUnwindingGateway.js"; import { iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi } from "./market/adapters/abi/adapters/iKelpLrtDepositPool.js"; import { iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi } from "./market/adapters/abi/adapters/iKelpLrtWithdrawalManager.js"; import { iLidoV1AdapterAbi } from "./market/adapters/abi/adapters/iLidoV1Adapter.js"; import { iMellow4626VaultAdapterAbi } from "./market/adapters/abi/adapters/iMellow4626VaultAdapter.js"; import { iMellowClaimerAdapterAbi } from "./market/adapters/abi/adapters/iMellowClaimerAdapter.js"; import { iMellowWrapperAdapterAbi } from "./market/adapters/abi/adapters/iMellowWrapperAdapter.js"; import { iMidasGatewayAdapterV311Abi } from "./market/adapters/abi/adapters/iMidasGatewayAdapterV311.js"; import { iMidasIssuanceVaultAdapterV310Abi } from "./market/adapters/abi/adapters/iMidasIssuanceVaultAdapterV310.js"; import { iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi } from "./market/adapters/abi/adapters/iMidasRedemptionVaultAdapterV310.js"; import { iPendleRouterAdapterAbi } from "./market/adapters/abi/adapters/iPendleRouterAdapter.js"; import { iSecuritizeOnRampAdapterV310Abi } from "./market/adapters/abi/adapters/iSecuritizeOnRampAdapterV310.js"; import { iSecuritizeRedemptionGatewayAdapterV311Abi } from "./market/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js"; import { iStakingRewardsAdapterAbi } from "./market/adapters/abi/adapters/iStakingRewardsAdapter.js"; import { iTraderJoeRouterAdapterAbi } from "./market/adapters/abi/adapters/iTraderJoeRouterAdapter.js"; import { iTreehouseFastlaneAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js"; import { iTreehouseRedemptionGatewayAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js"; import { iTreehouseRouterAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseRouterAdapter.js"; import { iUniswapV2AdapterAbi } from "./market/adapters/abi/adapters/iUniswapV2Adapter.js"; import { iUniswapV3AdapterAbi } from "./market/adapters/abi/adapters/iUniswapV3Adapter.js"; import { iUniswapV4AdapterAbi, iUniswapV4GatewayAbi } from "./market/adapters/abi/adapters/iUniswapV4Adapter.js"; import { iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi } from "./market/adapters/abi/adapters/iUpshiftVaultAdapter.js"; import { iVelodromeV2RouterAdapterAbi } from "./market/adapters/abi/adapters/iVelodromeV2RouterAdapter.js"; import { iwstEthv1AdapterAbi } from "./market/adapters/abi/adapters/iwstEthv1Adapter.js"; import { mellowDvvAdapterAbi } from "./market/adapters/abi/adapters/mellowDvvAdapter.js"; import { adapterConstructorAbi } from "./market/adapters/abi/conctructorAbi.js"; import { iMidasGatewayV311Abi } from "./market/adapters/abi/midas/iMidasGatewayV311.js"; import { iBaseOnRampAbi } from "./market/adapters/abi/securitize/iBaseOnRamp.js"; import { iSecuritizeOnRampAbi } from "./market/adapters/abi/securitize/iSecuritizeOnRamp.js"; import { iSecuritizeRedemptionGatewayV311Abi } from "./market/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js"; import { iBalancerV3RouterAbi, iBalancerV3WrapperAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3RouterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iDaiUsdsAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iInfinifiGatewayAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iMellowClaimerAbi, iMellowWrapperAbi, iMidasIssuanceVaultV310Abi, iPendleRouterAbi, iStakingRewardsAbi, iTraderJoeRouterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iVelodromeV2RouterAbi, iwstETHAbi, lidoV1_WETHGatewayAbi } from "./market/adapters/abi/targetContractAbi.js"; import { iTreehouseFastlaneAbi } from "./market/adapters/abi/treehouse/iTreehouseFastlane.js"; import { iTreehouseRedemptionGatewayAbi } from "./market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js"; import { iTreehouseRouterAbi } from "./market/adapters/abi/treehouse/iTreehouseRouter.js"; import { getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, parseAdapterAction, parseAdapterDeployParams } from "./market/adapters/abi/utils.js"; import { CallTrace, EXECUTE_BYTES_SELECTOR, collectTraces, findCallTo, findCallWithInput, findExecuteBytes, resolveProtocolCall } from "./utils/trace.js"; import { BalancerSwap, BasicSwapCall, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexWithdraw, ConvexWithdrawAndClaim, CurveAddLiquidity, CurveClaims, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveWithdrawal, GetReward, LegacyAdapterOperation, LidoSubmit, MakerDeposit, MakerRedeem, Swap, TokenAmount, Transfers, UniswapSwap, VaultDeposit, WithdrawCollateral, WstETHUnwrap, WstETHWrap } from "./market/adapters/legacyAdapterOperations.js"; import { AbstractAdapterContract, AbstractAdapterContractOptions, ConcreteAdapterContractOptions } from "./market/adapters/contracts/AbstractAdapter.js"; import { AccountMigratorAdapterContract } from "./market/adapters/contracts/AccountMigratorAdapterContract.js"; import { BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract } from "./market/adapters/contracts/BalancerV3RouterAdapterContract.js"; import { BalancerV3WrapperAdapterContract } from "./market/adapters/contracts/BalancerV3WrapperAdapterContract.js"; import { CamelotPool, CamelotV3AdapterContract } from "./market/adapters/contracts/CamelotV3AdapterContract.js"; import { ConvexV1BaseRewardPoolAdapterContract } from "./market/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js"; import { ConvexV1BoosterAdapterContract } from "./market/adapters/contracts/ConvexV1BoosterAdapterContract.js"; import { Curve2AssetsAdapterContract } from "./market/adapters/contracts/Curve2AssetsAdapterContract.js"; import { Curve3AssetsAdapterContract } from "./market/adapters/contracts/Curve3AssetsAdapterContract.js"; import { Curve4AssetsAdapterContract } from "./market/adapters/contracts/Curve4AssetsAdapterContract.js"; import { CurveV1AdapterStETHContract } from "./market/adapters/contracts/CurveV1AdapterStETHContract.js"; import { CurveV1StableNGAdapterContract } from "./market/adapters/contracts/CurveV1StableNGAdapterContract.js"; import { DaiUsdsAdapterContract } from "./market/adapters/contracts/DaiUsdsAdapterContract.js"; import { ERC4626AdapterContract } from "./market/adapters/contracts/ERC4626AdapterContract.js"; import { ERC4626ReferralAdapterContract } from "./market/adapters/contracts/ERC4626ReferralAdapterContract.js"; import { FluidDexAdapterContract } from "./market/adapters/contracts/FluidDexAdapterContract.js"; import { InfinifiGatewayAdapterContract } from "./market/adapters/contracts/InfinifiGatewayAdapterContract.js"; import { InfinifiUnwindingGatewayAdapterContract } from "./market/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js"; import { KelpLRTDepositPoolAdapterContract } from "./market/adapters/contracts/KelpLRTDepositPoolAdapterContract.js"; import { KelpLRTWithdrawalManagerAdapterContract } from "./market/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js"; import { LidoV1AdapterContract } from "./market/adapters/contracts/LidoV1AdapterContract.js"; import { MellowClaimerAdapterContract } from "./market/adapters/contracts/MellowClaimerAdapterContract.js"; import { MellowDVVAdapterContract } from "./market/adapters/contracts/MellowDVVAdapterContract.js"; import { MellowERC4626VaultAdapterContract } from "./market/adapters/contracts/MellowERC4626VaultAdapterContract.js"; import { MellowWrapperAdapterContract } from "./market/adapters/contracts/MellowWrapperAdapterContract.js"; import { MidasGatewayAdapterContract } from "./market/adapters/contracts/MidasGatewayAdapterContract.js"; import { MidasIssuanceVaultAdapterContract } from "./market/adapters/contracts/MidasIssuanceVaultAdapterContract.js"; import { MidasRedemptionVaultAdapterContract } from "./market/adapters/contracts/MidasRedemptionVaultAdapterContract.js"; import { PendlePair, PendlePairStatus, PendleRouterAdapterContract, PendleTokenType } from "./market/adapters/contracts/PendleRouterAdapterContract.js"; import { SecuritizeOnRampAdapterContract } from "./market/adapters/contracts/SecuritizeOnRampAdapterContract.js"; import { SecuritizeRedemptionGatewayAdapterContract } from "./market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js"; import { StakingRewardsAdapterContract } from "./market/adapters/contracts/StakingRewardsAdapterContract.js"; import { TraderJoePool, TraderJoePoolVersion, TraderJoeRouterAdapterContract } from "./market/adapters/contracts/TraderJoeRouterAdapterContract.js"; import { TreehouseFastlaneAdapterContract } from "./market/adapters/contracts/TreehouseFastlaneAdapterContract.js"; import { TreehouseRedemptionGatewayAdapterContract } from "./market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js"; import { TreehouseRouterAdapterContract } from "./market/adapters/contracts/TreehouseRouterAdapterContract.js"; import { UniswapV2AdapterContract } from "./market/adapters/contracts/UniswapV2AdapterContract.js"; import { UniswapV3AdapterContract } from "./market/adapters/contracts/UniswapV3AdapterContract.js"; import { UniswapV4AdapterContract } from "./market/adapters/contracts/UniswapV4AdapterContract.js"; import { UpshiftVaultAdapterContract } from "./market/adapters/contracts/UpshiftVaultAdapterContract.js"; import { VelodromeV2RouterAdapterContract } from "./market/adapters/contracts/VelodromeV2AdapterContract.js"; import { WstETHV1AdapterContract } from "./market/adapters/contracts/WstETHV1AdapterContract.js"; import { AdapterFactoryArgs, createAdapter } from "./market/adapters/createAdapter.js"; import { TokenTransfer } from "./market/adapters/transfers.js"; import { allTransfersAsTokenAmounts, classifyCurveOperation, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, fnSigToName, parsePosNegAmount, rewardsFromTransfers, swapFromTransfers, toNetTransfers } from "./market/adapters/transferHelpers.js"; import { IPriceFeedContract, PriceFeedContractType, PriceFeedUsageType, PriceUpdate } from "./market/pricefeeds/types.js"; import { PriceFeedRef } from "./market/pricefeeds/PriceFeedRef.js"; import { AbstractPriceFeedContract, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PriceFeedConstructorArgs } from "./market/pricefeeds/AbstractPriceFeed.js"; import { AbstractLPPriceFeedContract, isLPPriceFeed } from "./market/pricefeeds/AbstractLPPriceFeed.js"; import { BalancerStablePriceFeedContract } from "./market/pricefeeds/feeds/BalancerStablePriceFeed.js"; import { BalancerWeightedPriceFeedContract } from "./market/pricefeeds/feeds/BalancerWeightedPriceFeed.js"; import { BoundedPriceFeedContract } from "./market/pricefeeds/feeds/BoundedPriceFeed.js"; import { CompositePriceFeedContract } from "./market/pricefeeds/feeds/CompositePriceFeed.js"; import { ConstantPriceFeedContract } from "./market/pricefeeds/feeds/ConstantPriceFeed.js"; import { CurveCryptoPriceFeedContract } from "./market/pricefeeds/feeds/CurveCryptoPriceFeed.js"; import { CurveStablePriceFeedContract } from "./market/pricefeeds/feeds/CurveStablePriceFeed.js"; import { CurveUSDPriceFeedContract } from "./market/pricefeeds/feeds/CurveUSDPriceFeed.js"; import { Erc4626PriceFeedContract } from "./market/pricefeeds/feeds/Erc4626PriceFeed.js"; import { ExternalPriceFeedContract } from "./market/pricefeeds/feeds/ExternalPriceFeed.js"; import { MellowLRTPriceFeedContract } from "./market/pricefeeds/feeds/MellowLRTPriceFeed.js"; import { PendleTWAPPTPriceFeed } from "./market/pricefeeds/feeds/PendleTWAPPTPriceFeed.js"; import { PythPriceFeed } from "./market/pricefeeds/feeds/PythPriceFeed.js"; import { RedstonePriceFeedContract } from "./market/pricefeeds/feeds/RedstonePriceFeed.js"; import { WstETHPriceFeedContract } from "./market/pricefeeds/feeds/WstETHPriceFeed.js"; import { YearnPriceFeedContract } from "./market/pricefeeds/feeds/YearnPriceFeed.js"; import { ZeroPriceFeedContract } from "./market/pricefeeds/feeds/ZeroPriceFeed.js"; import { PriceFeedRegistry } from "./market/pricefeeds/PriceFeedRegistry.js"; import { IPriceUpdateTask, IPriceUpdater, IUpdatablePriceFeedContract, LatestUpdate, TimestampedCalldata, UpdatablePriceFeedRegistryHooks, UpdatePriceFeedsResult } from "./market/pricefeeds/updates/types.js"; import { getRawPriceUpdates } from "./market/pricefeeds/updates/getRawPriceUpdates.js"; import { isUpdatablePriceFeed } from "./market/pricefeeds/updates/isUpdatablePriceFeed.js"; import { PriceUpdatesCache } from "./market/pricefeeds/updates/PriceUpdatesCache.js"; import { UpdatablePriceFeedRegistry } from "./market/pricefeeds/updates/UpdatablePriceFeedRegistry.js"; import { updatableDependencies } from "./market/pricefeeds/updates/updatableDependencies.js"; import { BalanceDelta, CreditAccountTokenQuota, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, LiquidationFees, MaxBorrowAmount, PrepareUpdateQuotasProps, QuotaSlice } from "./market/credit/types.js"; import { CreditConfiguratorV310Contract, RampEvent } from "./market/credit/CreditConfiguratorV310Contract.js"; import { CreditFacadeV310Abi as abi, CreditFacadeV310BaseContract } from "./market/credit/CreditFacadeV310BaseContract.js"; import { CreditFacadeV310Contract } from "./market/credit/CreditFacadeV310Contract.js"; import { CreditManagerV310Contract } from "./market/credit/CreditManagerV310Contract.js"; import { ClosePathBalances, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, IRouterContract, OpenStrategyResult, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, SwapOperation } from "./router/types.js"; import { createRouter } from "./router/createRouter.js"; import { assetsMap } from "./router/helpers.js"; import { RouterV310Contract } from "./router/RouterV310Contract.js"; import "./router/index.js"; import { ConvertFn, IPriceOracleContract, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions } from "./market/oracle/types.js"; import { collateralPriceInUnderlying } from "./market/oracle/collateralPriceInUnderlying.js"; import { createPriceOracle } from "./market/oracle/createPriceOracle.js"; import { PriceOracleV310Contract } from "./market/oracle/PriceOracleV310Contract.js"; import { IInterestRateModelContract, IPoolContract, IRateKeeperContract, InterestRateModelType, PoolQuotaKeeperContract, RateKeeperType } from "./market/pool/types.js"; import { GaugeContract, GaugeParams } from "./market/pool/GaugeContract.js"; import { LinearInterestRateModelContract } from "./market/pool/LinearInterestRateModelContract.js"; import { PoolSuite } from "./market/pool/PoolSuite.js"; import { PoolV310Contract } from "./market/pool/PoolV310Contract.js"; import { MarketSuite } from "./market/MarketSuite.js"; import { CreditSuiteStrategy } from "./market/credit/CreditSuiteStrategy.js"; import { CreditSuite } from "./market/credit/CreditSuite.js"; import { StrategyCollateralProps, dominantCollateral, isStrategyCollateral, pickStrategyTargetCollateral } from "./market/credit/collateralUtils.js"; import { ExpectedBalanceDeltasProps, ExpectedOutput, expectedBalanceDeltas } from "./market/credit/expectedBalanceDeltas.js"; import { CompressorZapperData, ZapperData } from "./market/types.js"; import { IZapperContract, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem } from "./market/zapper/types.js"; import { createZapper } from "./market/zapper/createZapper.js"; import { ZapperContract } from "./market/zapper/ZapperContract.js"; import { IERC20ZapperContract } from "./market/zapper/IERC20ZapperContract.js"; import { IETHZapperContract } from "./market/zapper/IETHZapperContract.js"; import { MarketRegister, MarketRegistryState, MarketRegistryStateHuman } from "./market/MarketRegister.js"; import { DEFAULT_QUOTA_BUFFER_BPS, MAX_LEVERAGE_BUFFER_BPS, OptimalPartialLiquidationAmounts, OptimalPartialLiquidationAmountsProps, PARTIAL_LIQUIDATION_BUFFER_BPS, QuotaMode, StrategyRateInputs, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, calcUtilizationRaw, healthFactorBps, minSeizedAmount, optimalHFForPartialLiquidation, optimalPartialLiquidationAmounts, rayToBps, usdToNumber } from "./market/math.js"; import { strategyName } from "./market/strategyName.js"; import "./market/index.js"; import { BasePlugin } from "./plugins/BasePlugin.js"; import { IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, PluginFactoriesMap, PluginFactory, PluginState, PluginStatesMap, PluginsMap } from "./plugins/types.js"; import { PluginStateVersionError } from "./plugins/errors.js"; import "./plugins/index.js"; import { IMultichainOpportunitiesService } from "./opportunities/types.js"; import { MultichainOpportunitiesService } from "./opportunities/MultichainOpportunitiesService.js"; import { OpportunitiesService } from "./opportunities/OpportunitiesService.js"; import "./opportunities/index.js"; import { ContractMethod, IPriceUpdateTx, MultiCall, RawTx } from "./types/transactions.js"; import { AddLiquidityProps, DepositMetadata, IPoolsService, ListPoolPositionsProps, MarketType, PoolServiceCall, PoolServiceCallResult, PoolSimulation, RemoveLiquidityProps, SimulatePoolOperationProps, WithdrawalMetadata } from "./pools/types.js"; import { PoolService } from "./pools/PoolService.js"; import "./pools/index.js"; import { AccountSnapshot, GetCurrentWithdrawalsProps, GetCurrentWithdrawalsPropsBase, IMultichainPositionsService, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, accountSnapshotFromCreditAccountData } from "./positions/types.js"; import { CalcBorrowRateProps, calcBorrowRate } from "./positions/calcBorrowRate.js"; import { CalcHealthFactorProps, calcHealthFactor } from "./positions/calcHealthFactor.js"; import { CalcLiquidationPriceForTargetProps, CalcLiquidationPriceProps, calcLiquidationPriceForTarget } from "./positions/calcLiquidationPriceForTarget.js"; import { calcLiquidationPrice, soleNonUnderlyingCollateral } from "./positions/calcLiquidationPrice.js"; import { calcTimeToLiquidationMs } from "./positions/calcTimeToLiquidationMs.js"; import { MultichainPositionsService } from "./positions/MultichainPositionsService.js"; import { PositionsService, ProjectedPoolOptions } from "./positions/PositionsService.js"; import "./positions/index.js"; import { AttachOptions, ClientOptions, HydrateOptions, OnchainSDK, OnchainSDKOptions, STATE_VERSION, SyncStateOptions } from "./OnchainSDK.js"; import { FilterDustUSDOptions, filterDust, filterDustUSD } from "./utils/filterDust.js"; import { fmtBinaryMask, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, numberWithCommas, percentFmt, rayToNumber, shortAddress, shortHash, toBN, toBigInt, toSignificant } from "./utils/formatter.js"; import { hexEq } from "./utils/hex.js"; import { IsDustOptions, isDust } from "./utils/isDust.js"; import { json_parse, json_stringify } from "./utils/json.js"; import { Methods, PartialRecord, SupportedValue, TypedObjectUtils } from "./utils/mappers.js"; import { RetryOptions, retry } from "./utils/retry.js"; import { toAddress } from "./utils/toAddress.js"; import { PickSomeRequired } from "./utils/type-utils.js"; import { ZodAddress, ZodBigInt, ZodHex } from "./utils/zod.js"; import "./utils/index.js"; import { LPMonopolizedPoolMeta, NON_STRATEGY_PHANTOM_TOKEN_TYPES, PHANTOM_TOKEN_CONTRACT_TYPES, PhantomTokenContractType, PhantomTokenMeta, RWADefaultTokenMeta, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWATokenMeta, RWAUnderlyingContractType, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, SimpleTokenMeta, TokenMetaData } from "./base/token-types.js"; import { FormatBNOptions, RedemptionPhantomRename, TokensMeta, TokensMetaState } from "./base/TokensMeta.js"; import { ChainContractsRegister, ContractOrInterface } from "./base/ChainContractsRegister.js"; import { Construct, ConstructOptions } from "./base/Construct.js"; import { AddressProviderAddresses, AddressProviderState, IAddressProviderContract } from "./core/types.js"; import { AddressProviderV310Contract } from "./core/AddressProviderV310Contract.js"; import { createAddressProvider, hydrateAddressProvider } from "./core/createAddressProvider.js"; import { ChainNotConfiguredError, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError } from "./core/errors.js"; import "./core/index.js"; import { GearboxState, MultichainState } from "./types/state.js"; import "./types/index.js"; import { BaseContract, BaseContractArgs, ContractParseError, ContractParseErrorOptions } from "./base/BaseContract.js"; import { MissingSerializedParamsError } from "./base/errors.js"; import { ChainConfig, MultichainAttachOptions, MultichainHydrateOptions, MultichainSDK, MultichainSDKOptions, MultichainSyncStateOptions } from "./MultichainSDK.js"; import { ChainBlock, ChainBlockPin, ChainBlockSource, ChainQueryOneProps, ChainQueryProps, MultichainConstruct } from "./base/MultichainConstruct.js"; import { SDKConstruct } from "./base/SDKConstruct.js"; import "./base/index.js"; import { CreditAccountDataCall, CreditAccountFilter, CreditAccountReadOptions, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsTarget, CreditManagerFilter, GetCreditAccountsArgs, GetCreditAccountsOptions } from "./accounts/credit-account-compressor/types.js"; import { CreditAccountCompressor } from "./accounts/credit-account-compressor/CreditAccountCompressor.js"; import { CreditAccountCompressorV310Contract } from "./accounts/credit-account-compressor/CreditAccountCompressorV310Contract.js"; import { AbstractWithdrawalCompressorContract, OnchainRequestableWithdrawal, iCreditAccountAbi, toClaimableWithdrawal, toPendingWithdrawal, toRequestableWithdrawal } from "./accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js"; import { WithdrawalCompressorLocation, WithdrawalCompressorVersion, getWithdrawalCompressorAddress } from "./accounts/withdrawal-compressor/addresses.js"; import { createRedemptionLogger } from "./accounts/withdrawal-compressor/createRedemptionLogger.js"; import { createWithdrawalCompressor } from "./accounts/withdrawal-compressor/createWithdrawalCompressor.js"; import { DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, decodeDelayedIntent, encodeDelayedIntent } from "./accounts/withdrawal-compressor/intent-codec.js"; import { RedemptionLoggerV310Contract } from "./accounts/withdrawal-compressor/RedemptionLoggerV310Contract.js"; import { WithdrawalCompressorV310Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js"; import { WithdrawalCompressorV311Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js"; import { WithdrawalCompressorV313Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js"; import { AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, ClaimFarmRewardsProps, CreditAccountOperationResult, CreditManagerOperationResult, EncodableCreditAccountOperation, GetApprovalAddressProps, ICreditAccountsService, OpenCAProps, PreviewDelayedWithdrawalProps, Rewards } from "./accounts/types.js"; import { AccountToCheck, BotStatusCall, BotsDirectResponse, CMSlice, ConnectedBotsCall, ConnectedBotsPerAccount, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, MulticallWithFailure, SetBotProps, SetBotResult } from "./accounts/bots/types.js"; import { AccountBotsService } from "./accounts/bots/AccountBotsService.js"; import { PeripheryCompressorV310Contract } from "./accounts/bots/PeripheryCompressorV310Contract.js"; import { CreditAccountsServiceV310 } from "./accounts/CreditAccountsServiceV310.js"; import { IntentValidationError, raise } from "./validation/raise.js"; import { CalcDefaultQuotaProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, DIRECT_TRANSFERS_QUOTA, MaxAmountForQuotaProps, calcDefaultQuota, calcQuotaUpdate, calcRecommendedQuota, maxAmountForQuota, roundUpQuota } from "./accounts/quota-utils.js"; import { AccountCalculatorOperation } from "./accounts/intents/operations.js"; import { AddCollateralIntent, AdjustLeverageIntent, ClaimRemainder, CreditAccountSlice, DelayableIntent, DelayedRoute, DelayedStart, DelayedStartResult, DepositStrategyIntent, ExecutionCost, FinishIntentProps, FinishIntentResult, InstantRoute, IntentPreviewResult, IntentRoutesResult, OperationState, PathLossRate, RefusedIntent, RepayStrategyIntent, ResumableIntent, RouteErrors, StartIntent, UpdateQuotaIntent, WithPartialState, WithdrawAssetIntent, WithdrawCeilings, WithdrawStrategyIntent } from "./accounts/intents/types.js"; import { BorrowProps, BorrowState } from "./accounts/intents/borrow.js"; import { LeverageBand } from "./accounts/intents/leverage-band.js"; import { OpenStrategyProps, OpenStrategyState } from "./accounts/intents/open-strategy.js"; import { fetchCreditAccountSlice, toCreditAccountSlice } from "./accounts/intents/utils/credit-account-slice.js"; import { isPhantomToken } from "./accounts/intents/utils/pick-token.js"; import { BorrowPreviewResult, CreditAccountOperationsService, EmptyAccountPreviewResult, OpenStrategyPreviewResult } from "./accounts/intents/index.js"; import { LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS } from "./accounts/liquidations/constants.js"; import { BuildLiquidationTxProps, BuildLiquidationTxPropsBase, BuildPartialLiquidationTxProps, BuildPartialLiquidationTxPropsBase, FullyLiquidateProps, FullyLiquidateResult, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetPartialLiquidationDetailsProps, GetPartialLiquidationDetailsPropsBase, LoadRWALiquidatorsProps, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, PartialLiquidationParams, RWALiquidatorInfo } from "./accounts/liquidations/types.js"; import { OptimalPartialLiquidation, OptimalPartialLiquidationProps, PartialLiquidationParamsProps, optimalPartialLiquidation, partialLiquidationParams } from "./accounts/liquidations/partialLiquidation.js"; import { LiquidationsService } from "./accounts/liquidations/LiquidationsService.js"; import { MultichainLiquidationsService } from "./accounts/liquidations/MultichainLiquidationsService.js"; import "./accounts/index.js"; import { SDKOptions, attachOptionsSchema, onchainSDKOptionsSchema } from "./options.js"; import { AdapterOperation, AdapterOperationBase, TraceAdapterExt } from "./preview/parse/types-adapters.js"; import { AddCollateralOp, CloseCreditAccountOperation, CompareBalancesOp, CreditAccountOperation, DecreaseDebtOp, DirectTokenTransferOperation, FacadeOperationMetadata, IncreaseDebtOp, InnerFacadeOperation, InnerOperation, LiquidateCreditAccountOperation, MulticallOperation, OpenCreditAccountOperation, OperationMetadata, OuterFacadeOperation, PartialLiquidationOperation, StoreExpectedBalancesOp, UpdateQuotaOp, WithdrawCollateralOp } from "./preview/parse/types-facades.js"; import { PoolDepositOperation, PoolMintOperation, PoolOperation, PoolRedeemOperation, PoolWithdrawOperation } from "./preview/parse/types-pools.js"; import { RWAMulticallOperation, RWAOpenCreditAccountOperation, RWAOperation, RWAOperationMetadata } from "./preview/parse/types-rwa.js"; import { Operation, isPoolOperation, isRWAOperation } from "./preview/parse/types.js"; import { ClassifyInnerOperationsProps, classifyInnerOperations } from "./preview/parse/classifyInnerOperations.js"; import { parseFacadeOperationCalldata } from "./preview/parse/parseFacadeOperationCalldata.js"; import { parseOperationCalldata } from "./preview/parse/parseOperationCalldata.js"; import { parsePoolOperationCalldata } from "./preview/parse/parsePoolOperationCalldata.js"; import { parseRWAFactoryOperationCalldata } from "./preview/parse/parseRWAFactoryOperationCalldata.js"; import { CreditAccountState, CreditAccountStateProps } from "./preview/preview/CreditAccountState.js"; import { DetectedDelayedOperation, detectDelayedOperation } from "./preview/preview/detectDelayedOperation.js"; import { buildDelayedStrategyPositionOperationPreview } from "./preview/preview/buildDelayedStrategyPositionOperationPreview.js"; import { classifyCloseOrRepay, isCloseOrRepay } from "./preview/preview/detectCloseOrRepay.js"; import { DetectedDelayedClaim, detectDelayedClaim, resolveDelayedClaimIntent } from "./preview/preview/detectDelayedClaim.js"; import { estimateClaimableAt } from "./preview/preview/estimateClaimableAt.js"; import { midasGreenlistsAccount } from "./preview/preview/midasGreenlistsAccount.js"; import { ReplayState, makeReplayState, replayInnerOperations } from "./preview/preview/replayInnerOperations.js"; import { ReplayMulticallResult, ReplayableOperation, replayMulticall } from "./preview/preview/replayMulticall.js"; import { previewAdjustStrategyPosition } from "./preview/preview/previewAdjustStrategyPosition.js"; import { CloseOrRepayOperation, previewExitOrRepayStrategyPosition } from "./preview/preview/previewExitOrRepayStrategyPosition.js"; import { PreviewOperationError, previewOperation } from "./preview/preview/previewOperation.js"; import "./preview/index.js"; import { checkAccountQuotas } from "./validation/bundles/checkAccountQuotas.js"; import { CheckWalletInput, WalletFundingError, checkWallet } from "./validation/bundles/checkWallet.js"; import { CheckCollateralFundingInput, CollateralFundingPreview, checkCollateralFunding } from "./validation/bundles/checkCollateralFunding.js"; import { HealthFactorThresholds, WeighedFactors, checkHealthFactors } from "./validation/bundles/checkHealthFactors.js"; import { MarketStateError, checkMarket } from "./validation/bundles/checkMarket.js"; import { CreditOperationArgs, CreditOperationError, CreditOperationPreview, checkCreditOperation } from "./validation/bundles/checkCreditOperation.js"; import { checkIncreaseDebt } from "./validation/bundles/checkIncreaseDebt.js"; import { checkIncreaseQuota } from "./validation/bundles/checkIncreaseQuota.js"; import { CheckLiquidationEligibilityInput, LiquidationEligibilityError, checkLiquidationEligibility } from "./validation/bundles/checkLiquidationEligibility.js"; import { CheckLiquidationFundingInput, checkLiquidationFunding } from "./validation/bundles/checkLiquidationFunding.js"; import { CheckMidasAccountGreenlistInput, checkMidasAccountGreenlist } from "./validation/bundles/checkMidasAccountGreenlist.js"; import { checkObtained } from "./validation/bundles/checkObtained.js"; import { CheckPoolFundingInput, checkPoolFunding } from "./validation/bundles/checkPoolFunding.js"; import { PoolOperationArgs, PoolOperationError, checkPoolOperation } from "./validation/bundles/checkPoolOperation.js"; import { QuotaUpdateError, checkQuotaUpdates } from "./validation/bundles/checkQuotaUpdates.js"; import { CheckRWAOpeningInput, RWAOpeningError, checkRWAOpening } from "./validation/bundles/checkRWAOpening.js"; import { CheckRWAOpenRequirementsInput, checkRWAOpenRequirements } from "./validation/bundles/checkRWAOpenRequirements.js"; import { CheckWalletAllowanceInput, checkWalletAllowance } from "./validation/bundles/checkWalletAllowance.js"; import { CheckWalletBalanceInput, checkWalletBalance } from "./validation/bundles/checkWalletBalance.js"; import { CheckLiquidationInput, CheckLiquidationOptions, LiquidationValidationError, checkLiquidation } from "./validation/checkLiquidation.js"; import { CheckOperationInput, CheckOperationOptions, OperationValidationError, checkOperation } from "./validation/checkOperation.js"; import { CheckSimulationInput, CreditSimulationInput, SimulationValidationError, checkSimulation } from "./validation/checkSimulation.js"; import { BorrowLimitArgs, checkBorrowLimit } from "./validation/checks/checkBorrowLimit.js"; import { CollateralisedArgs, checkCollateralised } from "./validation/checks/checkCollateralised.js"; import { CreditAccountFrozenArgs, checkCreditAccountFrozen } from "./validation/checks/checkCreditAccountFrozen.js"; import { CreditManagerPausedArgs, checkCreditManagerPaused } from "./validation/checks/checkCreditManagerPaused.js"; import { DebtLimitsArgs, checkDebtLimits } from "./validation/checks/checkDebtLimits.js"; import { EmergencyLiquidatorArgs, checkEmergencyLiquidator } from "./validation/checks/checkEmergencyLiquidator.js"; import { ForbiddenTokenArgs, checkForbiddenToken } from "./validation/checks/checkForbiddenToken.js"; import { LeverageArgs, checkLeverage } from "./validation/checks/checkLeverage.js"; import { LiquidatorEligibleArgs, checkLiquidatorEligible } from "./validation/checks/checkLiquidatorEligible.js"; import { MarketExpiredArgs, checkMarketExpired } from "./validation/checks/checkMarketExpired.js"; import { MaxQuotaArgs, checkMaxQuota } from "./validation/checks/checkMaxQuota.js"; import { PartiallyLiquidatableArgs, checkPartiallyLiquidatable } from "./validation/checks/checkPartiallyLiquidatable.js"; import { PoolLiquidityArgs, checkPoolLiquidity } from "./validation/checks/checkPoolLiquidity.js"; import { PoolPausedArgs, checkPoolPaused } from "./validation/checks/checkPoolPaused.js"; import { PoolSunsetArgs, checkPoolSunset } from "./validation/checks/checkPoolSunset.js"; import { QuotaActiveArgs, checkQuotaActive } from "./validation/checks/checkQuotaActive.js"; import { QuotaChangeArgs, checkQuotaChange } from "./validation/checks/checkQuotaChange.js"; import { QuotaCountArgs, checkQuotaCount } from "./validation/checks/checkQuotaCount.js"; import { QuotaLimitArgs, checkQuotaLimit } from "./validation/checks/checkQuotaLimit.js"; import { ReservePriceLimitedArgs, checkReservePriceLimited } from "./validation/checks/checkReservePriceLimited.js"; import { amountOf } from "./validation/helpers/amount.js"; import { MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_SAFE_HEALTH_FACTOR_FORM } from "./validation/helpers/health-factor-limits.js"; import { toToken, toTokenAmount } from "./validation/helpers/token.js"; import "./validation/index.js"; export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractAdapterContract, AbstractAdapterContractOptions, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, type AccountCalculatorOperation, AccountMigratorAdapterContract, AccountSnapshot, AccountToCheck, AdapterContractStateHuman, AdapterContractType, AdapterData, AdapterFactoryArgs, AdapterOperation, AdapterOperationBase, AdapterProtocolOperation, AdapterType, type AddCollateralIntent, AddCollateralOp, AddLiquidityProps, AddressMap, AddressProviderAddresses, AddressProviderState, AddressProviderV310Contract, type AddressProviderV3StateHuman, AddressSet, type AdjustLeverageIntent, type AliasLossPolicyStateHuman, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, AssertAssignable, Asset, type AssetPriceFeedStateHuman, AssetWithAmountInTarget, AssetsMap, AttachOptions, BLOCKS_PER_WEEK_BY_NETWORK, BalanceDelta, BalancerStablePriceFeedContract, BalancerSwap, BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, BaseContractArgs, type BaseContractStateHuman, BaseParams, BasePlugin, type BasePriceFeedStateHuman, BaseState, BasicSwapCall, BigIntMath, type BlockNumberProps, BorrowLimitArgs, BorrowPreviewResult, type BorrowProps, type BorrowState, type BotListStateHuman, BotPermissions, BotStatusCall, BotsDirectResponse, type BoundedOracleStateHuman, BoundedPriceFeedContract, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, BuildPartialLiquidationTxProps, BuildPartialLiquidationTxPropsBase, CMSlice, CalcBorrowRateProps, CalcDefaultQuotaProps, CalcHealthFactorProps, CalcLiquidationPriceForTargetProps, CalcLiquidationPriceProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, CallTrace, CamelotPool, CamelotV3AdapterContract, ChainBlock, ChainBlockPin, ChainBlockSource, ChainConfig, ChainContractsRegister, ChainNotConfiguredError, ChainQueryOneProps, ChainQueryProps, CheckCollateralFundingInput, CheckLiquidationEligibilityInput, CheckLiquidationFundingInput, CheckLiquidationInput, CheckLiquidationOptions, CheckMidasAccountGreenlistInput, CheckOperationInput, CheckOperationOptions, CheckPoolFundingInput, CheckRWAOpenRequirementsInput, CheckRWAOpeningInput, CheckSimulationInput, CheckWalletAllowanceInput, CheckWalletBalanceInput, CheckWalletInput, ClaimFarmRewardsProps, type ClaimRemainder, ClaimableWithdrawal, ClassifyInnerOperationsProps, ClientOptions, CloseCreditAccountOperation, CloseOrRepayOperation, ClosePathBalances, CollateralFundingPreview, CollateralisedArgs, CompareBalancesOp, CompositePriceFeedContract, CompressorZapperData, ConcreteAdapterContractOptions, ConnectedBotData, ConnectedBotsCall, ConnectedBotsPerAccount, type ConstantOracleStateHuman, ConstantPriceFeedContract, Construct, ConstructOptions, type ContractMethod, ContractOrInterface, ContractParseError, ContractParseErrorOptions, ConvertFn, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, ConvexWithdraw, ConvexWithdrawAndClaim, type CoreStateHuman, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountData, CreditAccountDataCall, CreditAccountDataPayload, CreditAccountFilter, CreditAccountFrozenArgs, CreditAccountOperation, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountState, CreditAccountStateProps, CreditAccountTokenQuota, CreditAccountTokensSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV310Contract, CreditFacadeState, type CreditFacadeStateHuman, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerDebtParams, type CreditManagerDebtParamsHuman, CreditManagerFilter, CreditManagerOperationResult, CreditManagerPausedArgs, CreditManagerState, type CreditManagerStateHuman, CreditManagerV310Contract, CreditOperationArgs, CreditOperationError, CreditOperationPreview, CreditSimulationInput, CreditSuite, CreditSuiteState, type CreditSuiteStateHuman, CreditSuiteStrategy, CurrentWithdrawals, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveAddLiquidity, CurveClaims, CurveCryptoPriceFeedContract, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, CurveWithdrawal, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, DStokenData, DUST_THRESHOLD, DaiUsdsAdapterContract, DebtLimitsArgs, DecreaseDebtOp, type DelayableIntent, DelayedIntentExtended, type DelayedRoute, type DelayedStart, type DelayedStartResult, DelayedWithdrawalClaim, DelayedWithdrawalRequest, DelegatedMulticall, DepositMetadata, type DepositStrategyIntent, DetectedDelayedClaim, DetectedDelayedOperation, DirectTokenTransferOperation, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EXECUTE_BYTES_SELECTOR, EmergencyLiquidatorArgs, EmptyAccountPreviewResult, EncodableCreditAccountOperation, Erc4626PriceFeedContract, EstimateRawTxGasParameters, EtherscanURLParam, ExecuteMulticallBatchesOptions, type ExecutionCost, ExpectedBalanceDeltasProps, ExpectedOutput, ExternalPriceFeedContract, FacadeOperationMetadata, FilterDustUSDOptions, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, type FinishIntentProps, type FinishIntentResult, FluidDexAdapterContract, ForbiddenTokenArgs, FormatBNOptions, FullyLiquidateProps, FullyLiquidateResult, GaugeContract, GaugeData, GaugeParams, type GaugeParamsHuman, type GaugeStateHuman, type GearStakingV3StateHuman, GearboxChain, type GearboxState, type GearboxStateHuman, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetCurrentWithdrawalsProps, GetCurrentWithdrawalsPropsBase, GetExternalAccountCurrentWithdrawalsProps, GetInvestorOptions, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetOpenAccountRequirementsProps, GetPartialLiquidationDetailsProps, GetPartialLiquidationDetailsPropsBase, GetReward, GetWithdrawalRequestResultProps, HealthFactorThresholds, HydrateOptions, IAdapterContract, IAddressProviderContract, IBaseContract, ICreditAccountsService, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IDegenNFT, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, type ILogger, IMultichainOpportunitiesService, IMultichainPositionsService, IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, IPoolContract, IPoolsService, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTask, type IPriceUpdateTx, type IPriceUpdater, IRWAFactory, IRateKeeperContract, IRedemptionLoggerContract, IRouterContract, type IUpdatablePriceFeedContract, IWithdrawalCompressorContract, IZapperContract, IncreaseDebtOp, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, InnerFacadeOperation, InnerOperation, type InstantRoute, type IntentPreviewResult, type IntentRoutesResult, type IntentValidationError, type InterestRateModelStateHuman, InterestRateModelType, IsDustOptions, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LPMonopolizedPoolMeta, type LPPriceFeedStateHuman, type LatestUpdate, LegacyAdapterOperation, LeverageArgs, type LeverageBand, LidoSubmit, LidoV1AdapterContract, LinearInterestRateModelContract, type LinearInterestRateModelStateHuman, LiquidateCreditAccountOperation, LiquidationEligibilityError, LiquidationFees, LiquidationValidationError, LiquidationsService, LiquidatorEligibleArgs, ListPoolPositionsProps, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, LoadRWALiquidatorsProps, type LogFn, type LossPolicyStateHuman, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_INT96, MIN_SAFE_HEALTH_FACTOR_FORM, MULTICALL_ADDRESS, MakerDeposit, MakerRedeem, MarketData, MarketExpiredArgs, MarketFilter, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, MarketStateError, type MarketStateHuman, MarketSuite, MarketType, MaxAmountForQuotaProps, MaxBorrowAmount, MaxQuotaArgs, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, Methods, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, type MultiCall, MulticallBatch, MulticallOperation, MulticallWithFailure, MultichainAttachOptions, type MultichainChainIdsProps, MultichainConstruct, MultichainHydrateOptions, MultichainLiquidationsService, type MultichainNetworkProps, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, MultichainSDKOptions, type MultichainState, type MultichainStateHuman, MultichainSyncStateOptions, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OnchainSDK, OnchainSDKOptions, OpenCAProps, OpenCreditAccountOperation, OpenStrategyPreviewResult, type OpenStrategyProps, OpenStrategyResult, type OpenStrategyState, Operation, OperationMetadata, type OperationState, OperationValidationError, OpportunitiesService, OptimalPartialLiquidation, OptimalPartialLiquidationAmounts, OptimalPartialLiquidationAmountsProps, OptimalPartialLiquidationProps, OuterFacadeOperation, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, ParsedCall, ParsedCallArgs, ParsedCallV2, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationOperation, PartialLiquidationParams, PartialLiquidationParamsProps, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PartialRecord, PartiallyLiquidatableArgs, type PathLossRate, PendingWithdrawal, PendlePair, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PeripheryContract, PermitResult, PhantomTokenContractType, PhantomTokenMeta, PickSomeRequired, PluginFactoriesMap, PluginFactory, PluginState, PluginStateVersionError, PluginStatesMap, PluginsMap, PoolDepositOperation, PoolLiquidityArgs, PoolMintOperation, PoolOperation, PoolOperationArgs, PoolOperationError, PoolPausedArgs, PoolQuotaKeeperContract, type PoolQuotaKeeperStateHuman, PoolRedeemOperation, PoolService, PoolServiceCall, PoolServiceCallResult, PoolSimulation, PoolState, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, PoolSunsetArgs, PoolV310Contract, PoolWithdrawOperation, PositionsService, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, PreviewOperationError, PriceFeedAnswer, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedMapEntry, PriceFeedRef, PriceFeedRegistry, type PriceFeedStateHuman, PriceFeedTreeNode, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleData, type PriceOracleStateHuman, PriceOracleV310Contract, PriceUpdate, PriceUpdatesCache, ProjectedPoolOptions, PythPriceFeed, QuotaActiveArgs, QuotaChangeArgs, QuotaCountArgs, QuotaKeeperState, QuotaLimitArgs, QuotaMode, type QuotaParamsHuman, QuotaSlice, QuotaState, QuotaUpdateError, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWADefaultTokenMeta, RWAFactoryData, RWAFactoryProtocol, RWAFactoryStateHuman, RWAInvestorData, RWALiquidatorInfo, RWAMulticallOperation, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWAOpenCreditAccountOperation, RWAOpeningError, RWAOperation, RWAOperationMetadata, RWARegistry, RWAState, RWAStateHuman, RWATokenMeta, RWAUnderlyingContractType, RWAUnderlyingData, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RampEvent, RateKeeperState, type RateKeeperStateHuman, RateKeeperType, type RawTx, RedemptionLog, RedemptionLoggerV310Contract, RedemptionPhantomRename, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type RefusedIntent, RelaxedBaseParams, RemoveLiquidityProps, type RepayStrategyIntent, ReplayMulticallResult, ReplayState, ReplayableOperation, RequestableWithdrawal, ReservePriceLimitedArgs, type ResumableIntent, RetryOptions, RewardInfo, Rewards, type RouteErrors, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, RouterV310Contract, SDKConstruct, SDKOptions, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeCreditAccountData, SecuritizeDegenNFT, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRedemptionGatewayAdapterContract, SendRawTxParameters, SetBotProps, SetBotResult, SimpleTokenMeta, SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulateMulticallParameters, SimulateMulticallReturnType, SimulatePoolOperationProps, SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, SimulationError, SimulationErrorType, SimulationValidationError, StakingRewardsAdapterContract, type StartIntent, StoreExpectedBalancesOp, StrategyCollateralProps, StrategyRateInputs, SupportedValue, Swap, SwapOperation, SyncStateOptions, type TimestampedCalldata, TokenAmount, TokenInfo, TokenMetaData, TokenTransfer, TokensMeta, TokensMetaState, TraceAdapterExt, TraderJoePool, TraderJoePoolVersion, TraderJoeRouterAdapterContract, Transfers, TreehouseFastlaneAdapterContract, TreehouseRedemptionGatewayAdapterContract, TreehouseRouterAdapterContract, type TumblerStateHuman, TypedObjectUtils, Unarray, UniswapSwap, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, type UpdatablePriceFeedRegistryHooks, type UpdatePriceFeedsResult, type UpdateQuotaIntent, UpdateQuotaOp, UpshiftVaultAdapterContract, VERSION_RANGE_310, VaultDeposit, VelodromeV2RouterAdapterContract, VersionRange, VersionedAbi, VotingContractStatus, WAD, WAD_DECIMALS_POW, WalletFundingError, WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, WeighedFactors, type WithBlock, type WithMultichain, type WithPartialState, type WithdrawAssetIntent, type WithdrawCeilings, WithdrawCollateral, WithdrawCollateralOp, type WithdrawStrategyIntent, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalMetadata, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, WstETHPriceFeedContract, WstETHUnwrap, WstETHV1AdapterContract, WstETHWrap, YearnPriceFeedContract, ZapperContract, ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, amountOf, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, buildDelayedStrategyPositionOperationPreview, bytes32ToString, calcBorrowApy, calcBorrowRate, calcDefaultQuota, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcQuotaUpdate, calcRecommendedQuota, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, checkAccountQuotas, checkBorrowLimit, checkCollateralFunding, checkCollateralised, checkCreditAccountFrozen, checkCreditManagerPaused, checkCreditOperation, checkDebtLimits, checkEmergencyLiquidator, checkForbiddenToken, checkHealthFactors, checkIncreaseDebt, checkIncreaseQuota, checkLeverage, checkLiquidation, checkLiquidationEligibility, checkLiquidationFunding, checkLiquidatorEligible, checkMarket, checkMarketExpired, checkMaxQuota, checkMidasAccountGreenlist, checkObtained, checkOperation, checkPartiallyLiquidatable, checkPoolFunding, checkPoolLiquidity, checkPoolOperation, checkPoolPaused, checkPoolSunset, checkQuotaActive, checkQuotaChange, checkQuotaCount, checkQuotaLimit, checkQuotaUpdates, checkRWAOpenRequirements, checkRWAOpening, checkReservePriceLimited, checkSimulation, checkWallet, checkWalletAllowance, checkWalletBalance, childLogger, classifyCloseOrRepay, classifyCurveOperation, classifyInnerOperations, collateralPriceInUnderlying, collectTraces, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectDelayedClaim, detectDelayedOperation, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateClaimableAt, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, filterDust, filterDustUSD, findCallTo, findCallWithInput, findCuratorMarketConfigurator, findExecuteBytes, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getDirectTransferToken, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isCloseOrRepay, isDust, isLPPriceFeed, isPhantomToken, isPoolOperation, isPublicNetwork, isRWAFactory, isRWAOperation, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, isZeroBalance, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, makeReplayState, maxAmountForQuota, mellowDvvAdapterAbi, midasGreenlistsAccount, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parseFacadeOperationCalldata, parseOperationCalldata, parsePoolOperationCalldata, parsePosNegAmount, parseRWAFactoryOperationCalldata, partialLiquidationParams, percentFmt, pickStrategyTargetCollateral, previewAdjustStrategyPosition, previewExitOrRepayStrategyPosition, previewOperation, raise, rayToBps, rayToNumber, replayInnerOperations, replayMulticall, resolveDelayedClaimIntent, resolveProtocolCall, retry, rewardsFromTransfers, roundUpQuota, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, soleNonUnderlyingCollateral, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toToken, toTokenAmount, toWithdrawalStatus, updatableDependencies, usdToNumber, watchBlocksAsync };