@gearbox-protocol/sdk 3.0.0-vfour.210 → 3.0.0-vfour.212
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/dist/cjs/sdk/index.cjs +49 -8
- package/dist/cjs/sdk/index.d.ts +7 -1
- package/dist/esm/sdk/index.d.mts +7 -1
- package/dist/esm/sdk/index.mjs +49 -8
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -65617,6 +65617,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65617
65617
|
*/
|
|
65618
65618
|
#markets = new AddressMap();
|
|
65619
65619
|
#zappers = [];
|
|
65620
|
+
#marketFilter;
|
|
65620
65621
|
constructor(sdk, markets) {
|
|
65621
65622
|
super(sdk);
|
|
65622
65623
|
this.#logger = childLogger("MarketRegister", sdk.logger);
|
|
@@ -65658,6 +65659,32 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65658
65659
|
this.sdk.provider.addressLabels.set(t.addr, t.symbol);
|
|
65659
65660
|
}
|
|
65660
65661
|
}
|
|
65662
|
+
async getGauges(staker) {
|
|
65663
|
+
const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
|
|
65664
|
+
if (!this.#marketFilter) {
|
|
65665
|
+
throw new Error("market filter is not set");
|
|
65666
|
+
}
|
|
65667
|
+
const resp = await this.provider.publicClient.readContract({
|
|
65668
|
+
abi: iGaugeCompressorAbi,
|
|
65669
|
+
address: gcAddr,
|
|
65670
|
+
functionName: "getGauges",
|
|
65671
|
+
args: [this.#marketFilter, staker]
|
|
65672
|
+
});
|
|
65673
|
+
return [...resp];
|
|
65674
|
+
}
|
|
65675
|
+
async getGauge(gauge, staker) {
|
|
65676
|
+
const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
|
|
65677
|
+
if (!this.#marketFilter) {
|
|
65678
|
+
throw new Error("market filter is not set");
|
|
65679
|
+
}
|
|
65680
|
+
const resp = await this.provider.publicClient.readContract({
|
|
65681
|
+
abi: iGaugeCompressorAbi,
|
|
65682
|
+
address: gcAddr,
|
|
65683
|
+
functionName: "getGauge",
|
|
65684
|
+
args: [gauge, staker]
|
|
65685
|
+
});
|
|
65686
|
+
return resp;
|
|
65687
|
+
}
|
|
65661
65688
|
async syncState() {
|
|
65662
65689
|
const pools = this.markets.filter((m) => m.dirty).map((m) => m.pool.pool.address);
|
|
65663
65690
|
if (pools.length) {
|
|
@@ -65666,6 +65693,11 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65666
65693
|
}
|
|
65667
65694
|
}
|
|
65668
65695
|
async #loadMarkets(configurators, pools, ignoreUpdateablePrices) {
|
|
65696
|
+
this.#marketFilter = {
|
|
65697
|
+
configurators,
|
|
65698
|
+
pools,
|
|
65699
|
+
underlying: ADDRESS_0X0
|
|
65700
|
+
};
|
|
65669
65701
|
const marketCompressorAddress = this.sdk.addressProvider.getAddress(
|
|
65670
65702
|
AP_MARKET_COMPRESSOR,
|
|
65671
65703
|
310
|
|
@@ -65679,7 +65711,10 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65679
65711
|
const updates = await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs();
|
|
65680
65712
|
txs = updates.txs;
|
|
65681
65713
|
}
|
|
65682
|
-
this.#logger?.debug(
|
|
65714
|
+
this.#logger?.debug(
|
|
65715
|
+
{ configurators, pools },
|
|
65716
|
+
`calling getMarkets with ${txs.length} price updates`
|
|
65717
|
+
);
|
|
65683
65718
|
const resp = await simulateMulticall(this.provider.publicClient, {
|
|
65684
65719
|
contracts: [
|
|
65685
65720
|
...txs.map(rawTxToMulticallPriceUpdate),
|
|
@@ -65687,13 +65722,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65687
65722
|
abi: iMarketCompressorAbi,
|
|
65688
65723
|
address: marketCompressorAddress,
|
|
65689
65724
|
functionName: "getMarkets",
|
|
65690
|
-
args: [
|
|
65691
|
-
{
|
|
65692
|
-
configurators,
|
|
65693
|
-
pools,
|
|
65694
|
-
underlying: ADDRESS_0X0
|
|
65695
|
-
}
|
|
65696
|
-
]
|
|
65725
|
+
args: [this.#marketFilter]
|
|
65697
65726
|
}
|
|
65698
65727
|
],
|
|
65699
65728
|
allowFailure: false,
|
|
@@ -66394,6 +66423,15 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66394
66423
|
});
|
|
66395
66424
|
return [...rewards];
|
|
66396
66425
|
}
|
|
66426
|
+
async getActiveBots(marketConfigurator, account) {
|
|
66427
|
+
const botsData = await this.provider.publicClient.readContract({
|
|
66428
|
+
abi: iPeripheryCompressorAbi,
|
|
66429
|
+
address: this.peripheryCompressor,
|
|
66430
|
+
functionName: "getActiveBots",
|
|
66431
|
+
args: [marketConfigurator, account]
|
|
66432
|
+
});
|
|
66433
|
+
return [...botsData];
|
|
66434
|
+
}
|
|
66397
66435
|
/**
|
|
66398
66436
|
* Generates transaction to liquidate credit account
|
|
66399
66437
|
* @param account
|
|
@@ -66983,6 +67021,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66983
67021
|
get rewardCompressor() {
|
|
66984
67022
|
return this.sdk.addressProvider.getLatestVersion(AP_REWARDS_COMPRESSOR);
|
|
66985
67023
|
}
|
|
67024
|
+
get peripheryCompressor() {
|
|
67025
|
+
return this.sdk.addressProvider.getLatestVersion(AP_PERIPHERY_COMPRESSOR);
|
|
67026
|
+
}
|
|
66986
67027
|
};
|
|
66987
67028
|
|
|
66988
67029
|
// src/sdk/bots/BotsService.ts
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -91590,6 +91590,8 @@ declare class MarketRegister extends SDKConstruct {
|
|
|
91590
91590
|
constructor(sdk: GearboxSDK, markets?: MarketData[]);
|
|
91591
91591
|
loadMarkets(marketConfigurators: Address[], ignoreUpdateablePrices?: boolean): Promise<void>;
|
|
91592
91592
|
loadZappers(): Promise<void>;
|
|
91593
|
+
getGauges(staker: Address): Promise<GaugeData[]>;
|
|
91594
|
+
getGauge(gauge: Address, staker: Address): Promise<GaugeData>;
|
|
91593
91595
|
syncState(): Promise<void>;
|
|
91594
91596
|
/**
|
|
91595
91597
|
* Loads new prices and price feeds for given oracles from PriceFeedCompressor, defaults to all oracles
|
|
@@ -92373,10 +92375,12 @@ interface BaseParams {
|
|
|
92373
92375
|
contractType: Hex;
|
|
92374
92376
|
serializedParams: Hex;
|
|
92375
92377
|
}
|
|
92378
|
+
type MarketFilter = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iMarketCompressorAbi, "getMarkets">["inputs"]>[0];
|
|
92376
92379
|
type CreditAccountData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iCreditAccountCompressorAbi, "getCreditAccountData">["outputs"]>>;
|
|
92377
92380
|
type RewardInfo = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iRewardsCompressorAbi, "getRewards">["outputs"]>>;
|
|
92378
92381
|
type MarketData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iMarketCompressorAbi, "getMarkets">["outputs"]>>;
|
|
92379
92382
|
type ZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iPeripheryCompressorAbi, "getZappers">["outputs"]>>;
|
|
92383
|
+
type GaugeData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iGaugeCompressorAbi, "getGauge">["outputs"]>>;
|
|
92380
92384
|
type BotData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iPeripheryCompressorAbi, "getActiveBots">["outputs"]>>;
|
|
92381
92385
|
type CreditManagerData = Unarray<MarketData["creditManagers"]>;
|
|
92382
92386
|
type CreditManagerState = CreditManagerData["creditManager"];
|
|
@@ -92886,6 +92890,7 @@ declare class CreditAccountsService extends SDKConstruct {
|
|
|
92886
92890
|
*/
|
|
92887
92891
|
getCreditAccounts(args?: CreditAccountFilter, options?: ReadContractOptions): Promise<Array<CreditAccountData>>;
|
|
92888
92892
|
getRewards(account: Address): Promise<RewardInfo[]>;
|
|
92893
|
+
getActiveBots(marketConfigurator: Address, account: Address): Promise<BotData[]>;
|
|
92889
92894
|
/**
|
|
92890
92895
|
* Generates transaction to liquidate credit account
|
|
92891
92896
|
* @param account
|
|
@@ -92958,6 +92963,7 @@ declare class CreditAccountsService extends SDKConstruct {
|
|
|
92958
92963
|
*/
|
|
92959
92964
|
private get marketConfigurators();
|
|
92960
92965
|
private get rewardCompressor();
|
|
92966
|
+
private get peripheryCompressor();
|
|
92961
92967
|
}
|
|
92962
92968
|
|
|
92963
92969
|
type BotBaseType = "liquidationProtection";
|
|
@@ -98780,4 +98786,4 @@ type MulticallErrorType = GetChainContractAddressErrorType | ReadContractErrorTy
|
|
|
98780
98786
|
*/
|
|
98781
98787
|
declare function simulateMulticall<const contracts extends readonly unknown[], chain extends Chain | undefined, allowFailure extends boolean = true>(client: Client<Transport, chain>, parameters: MulticallParameters<contracts, allowFailure>): Promise<MulticallReturnType<contracts, allowFailure>>;
|
|
98782
98788
|
|
|
98783
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, 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_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_POOL_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotData, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, EQUALIZER_DEFAULT_FACTORY, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, type EqualizerParams, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetExtraRewardsProps, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, MarketRegister, type MarketStateHuman, MarketSuite, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, type RetryOptions, RewardClaimer, type RewardInfo, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SHADOW_QUOTER, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, type Unarray, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, extractTokenData, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrETH, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAdapterCompressorAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iErc4626AdapterAbi, iExceptionsAbi, iFarmingPoolAbi, iGaugeCompressorAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPeripheryCompressorAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRewardsCompressorAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iTokenCompressorAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, retry, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
|
98789
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, 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_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_POOL_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotData, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, EQUALIZER_DEFAULT_FACTORY, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, type EqualizerParams, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeData, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetExtraRewardsProps, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, type MarketFilter, MarketRegister, type MarketStateHuman, MarketSuite, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, type RetryOptions, RewardClaimer, type RewardInfo, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SHADOW_QUOTER, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, type Unarray, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, extractTokenData, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrETH, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAdapterCompressorAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iErc4626AdapterAbi, iExceptionsAbi, iFarmingPoolAbi, iGaugeCompressorAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPeripheryCompressorAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRewardsCompressorAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iTokenCompressorAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, retry, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -91590,6 +91590,8 @@ declare class MarketRegister extends SDKConstruct {
|
|
|
91590
91590
|
constructor(sdk: GearboxSDK, markets?: MarketData[]);
|
|
91591
91591
|
loadMarkets(marketConfigurators: Address[], ignoreUpdateablePrices?: boolean): Promise<void>;
|
|
91592
91592
|
loadZappers(): Promise<void>;
|
|
91593
|
+
getGauges(staker: Address): Promise<GaugeData[]>;
|
|
91594
|
+
getGauge(gauge: Address, staker: Address): Promise<GaugeData>;
|
|
91593
91595
|
syncState(): Promise<void>;
|
|
91594
91596
|
/**
|
|
91595
91597
|
* Loads new prices and price feeds for given oracles from PriceFeedCompressor, defaults to all oracles
|
|
@@ -92373,10 +92375,12 @@ interface BaseParams {
|
|
|
92373
92375
|
contractType: Hex;
|
|
92374
92376
|
serializedParams: Hex;
|
|
92375
92377
|
}
|
|
92378
|
+
type MarketFilter = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iMarketCompressorAbi, "getMarkets">["inputs"]>[0];
|
|
92376
92379
|
type CreditAccountData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iCreditAccountCompressorAbi, "getCreditAccountData">["outputs"]>>;
|
|
92377
92380
|
type RewardInfo = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iRewardsCompressorAbi, "getRewards">["outputs"]>>;
|
|
92378
92381
|
type MarketData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iMarketCompressorAbi, "getMarkets">["outputs"]>>;
|
|
92379
92382
|
type ZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iPeripheryCompressorAbi, "getZappers">["outputs"]>>;
|
|
92383
|
+
type GaugeData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iGaugeCompressorAbi, "getGauge">["outputs"]>>;
|
|
92380
92384
|
type BotData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof iPeripheryCompressorAbi, "getActiveBots">["outputs"]>>;
|
|
92381
92385
|
type CreditManagerData = Unarray<MarketData["creditManagers"]>;
|
|
92382
92386
|
type CreditManagerState = CreditManagerData["creditManager"];
|
|
@@ -92886,6 +92890,7 @@ declare class CreditAccountsService extends SDKConstruct {
|
|
|
92886
92890
|
*/
|
|
92887
92891
|
getCreditAccounts(args?: CreditAccountFilter, options?: ReadContractOptions): Promise<Array<CreditAccountData>>;
|
|
92888
92892
|
getRewards(account: Address): Promise<RewardInfo[]>;
|
|
92893
|
+
getActiveBots(marketConfigurator: Address, account: Address): Promise<BotData[]>;
|
|
92889
92894
|
/**
|
|
92890
92895
|
* Generates transaction to liquidate credit account
|
|
92891
92896
|
* @param account
|
|
@@ -92958,6 +92963,7 @@ declare class CreditAccountsService extends SDKConstruct {
|
|
|
92958
92963
|
*/
|
|
92959
92964
|
private get marketConfigurators();
|
|
92960
92965
|
private get rewardCompressor();
|
|
92966
|
+
private get peripheryCompressor();
|
|
92961
92967
|
}
|
|
92962
92968
|
|
|
92963
92969
|
type BotBaseType = "liquidationProtection";
|
|
@@ -98780,4 +98786,4 @@ type MulticallErrorType = GetChainContractAddressErrorType | ReadContractErrorTy
|
|
|
98780
98786
|
*/
|
|
98781
98787
|
declare function simulateMulticall<const contracts extends readonly unknown[], chain extends Chain | undefined, allowFailure extends boolean = true>(client: Client<Transport, chain>, parameters: MulticallParameters<contracts, allowFailure>): Promise<MulticallReturnType<contracts, allowFailure>>;
|
|
98782
98788
|
|
|
98783
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, 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_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_POOL_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotData, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, EQUALIZER_DEFAULT_FACTORY, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, type EqualizerParams, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetExtraRewardsProps, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, MarketRegister, type MarketStateHuman, MarketSuite, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, type RetryOptions, RewardClaimer, type RewardInfo, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SHADOW_QUOTER, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, type Unarray, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, extractTokenData, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrETH, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAdapterCompressorAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iErc4626AdapterAbi, iExceptionsAbi, iFarmingPoolAbi, iGaugeCompressorAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPeripheryCompressorAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRewardsCompressorAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iTokenCompressorAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, retry, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
|
98789
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, 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_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_POOL_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotData, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, EQUALIZER_DEFAULT_FACTORY, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, type EqualizerParams, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeData, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetExtraRewardsProps, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, type MarketFilter, MarketRegister, type MarketStateHuman, MarketSuite, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, type RetryOptions, RewardClaimer, type RewardInfo, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SHADOW_QUOTER, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, type Unarray, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, extractTokenData, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrETH, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAdapterCompressorAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iErc4626AdapterAbi, iExceptionsAbi, iFarmingPoolAbi, iGaugeCompressorAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPeripheryCompressorAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRewardsCompressorAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iTokenCompressorAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, retry, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -65610,6 +65610,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65610
65610
|
*/
|
|
65611
65611
|
#markets = new AddressMap();
|
|
65612
65612
|
#zappers = [];
|
|
65613
|
+
#marketFilter;
|
|
65613
65614
|
constructor(sdk, markets) {
|
|
65614
65615
|
super(sdk);
|
|
65615
65616
|
this.#logger = childLogger("MarketRegister", sdk.logger);
|
|
@@ -65651,6 +65652,32 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65651
65652
|
this.sdk.provider.addressLabels.set(t.addr, t.symbol);
|
|
65652
65653
|
}
|
|
65653
65654
|
}
|
|
65655
|
+
async getGauges(staker) {
|
|
65656
|
+
const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
|
|
65657
|
+
if (!this.#marketFilter) {
|
|
65658
|
+
throw new Error("market filter is not set");
|
|
65659
|
+
}
|
|
65660
|
+
const resp = await this.provider.publicClient.readContract({
|
|
65661
|
+
abi: iGaugeCompressorAbi,
|
|
65662
|
+
address: gcAddr,
|
|
65663
|
+
functionName: "getGauges",
|
|
65664
|
+
args: [this.#marketFilter, staker]
|
|
65665
|
+
});
|
|
65666
|
+
return [...resp];
|
|
65667
|
+
}
|
|
65668
|
+
async getGauge(gauge, staker) {
|
|
65669
|
+
const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
|
|
65670
|
+
if (!this.#marketFilter) {
|
|
65671
|
+
throw new Error("market filter is not set");
|
|
65672
|
+
}
|
|
65673
|
+
const resp = await this.provider.publicClient.readContract({
|
|
65674
|
+
abi: iGaugeCompressorAbi,
|
|
65675
|
+
address: gcAddr,
|
|
65676
|
+
functionName: "getGauge",
|
|
65677
|
+
args: [gauge, staker]
|
|
65678
|
+
});
|
|
65679
|
+
return resp;
|
|
65680
|
+
}
|
|
65654
65681
|
async syncState() {
|
|
65655
65682
|
const pools = this.markets.filter((m) => m.dirty).map((m) => m.pool.pool.address);
|
|
65656
65683
|
if (pools.length) {
|
|
@@ -65659,6 +65686,11 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65659
65686
|
}
|
|
65660
65687
|
}
|
|
65661
65688
|
async #loadMarkets(configurators, pools, ignoreUpdateablePrices) {
|
|
65689
|
+
this.#marketFilter = {
|
|
65690
|
+
configurators,
|
|
65691
|
+
pools,
|
|
65692
|
+
underlying: ADDRESS_0X0
|
|
65693
|
+
};
|
|
65662
65694
|
const marketCompressorAddress = this.sdk.addressProvider.getAddress(
|
|
65663
65695
|
AP_MARKET_COMPRESSOR,
|
|
65664
65696
|
310
|
|
@@ -65672,7 +65704,10 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65672
65704
|
const updates = await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs();
|
|
65673
65705
|
txs = updates.txs;
|
|
65674
65706
|
}
|
|
65675
|
-
this.#logger?.debug(
|
|
65707
|
+
this.#logger?.debug(
|
|
65708
|
+
{ configurators, pools },
|
|
65709
|
+
`calling getMarkets with ${txs.length} price updates`
|
|
65710
|
+
);
|
|
65676
65711
|
const resp = await simulateMulticall(this.provider.publicClient, {
|
|
65677
65712
|
contracts: [
|
|
65678
65713
|
...txs.map(rawTxToMulticallPriceUpdate),
|
|
@@ -65680,13 +65715,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65680
65715
|
abi: iMarketCompressorAbi,
|
|
65681
65716
|
address: marketCompressorAddress,
|
|
65682
65717
|
functionName: "getMarkets",
|
|
65683
|
-
args: [
|
|
65684
|
-
{
|
|
65685
|
-
configurators,
|
|
65686
|
-
pools,
|
|
65687
|
-
underlying: ADDRESS_0X0
|
|
65688
|
-
}
|
|
65689
|
-
]
|
|
65718
|
+
args: [this.#marketFilter]
|
|
65690
65719
|
}
|
|
65691
65720
|
],
|
|
65692
65721
|
allowFailure: false,
|
|
@@ -66387,6 +66416,15 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66387
66416
|
});
|
|
66388
66417
|
return [...rewards];
|
|
66389
66418
|
}
|
|
66419
|
+
async getActiveBots(marketConfigurator, account) {
|
|
66420
|
+
const botsData = await this.provider.publicClient.readContract({
|
|
66421
|
+
abi: iPeripheryCompressorAbi,
|
|
66422
|
+
address: this.peripheryCompressor,
|
|
66423
|
+
functionName: "getActiveBots",
|
|
66424
|
+
args: [marketConfigurator, account]
|
|
66425
|
+
});
|
|
66426
|
+
return [...botsData];
|
|
66427
|
+
}
|
|
66390
66428
|
/**
|
|
66391
66429
|
* Generates transaction to liquidate credit account
|
|
66392
66430
|
* @param account
|
|
@@ -66976,6 +67014,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66976
67014
|
get rewardCompressor() {
|
|
66977
67015
|
return this.sdk.addressProvider.getLatestVersion(AP_REWARDS_COMPRESSOR);
|
|
66978
67016
|
}
|
|
67017
|
+
get peripheryCompressor() {
|
|
67018
|
+
return this.sdk.addressProvider.getLatestVersion(AP_PERIPHERY_COMPRESSOR);
|
|
67019
|
+
}
|
|
66979
67020
|
};
|
|
66980
67021
|
|
|
66981
67022
|
// src/sdk/bots/BotsService.ts
|