@gearbox-protocol/sdk 3.0.0-vfour.168 → 3.0.0-vfour.169
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 +20 -77
- package/dist/cjs/sdk/index.d.ts +16 -15
- package/dist/esm/sdk/index.d.mts +16 -15
- package/dist/esm/sdk/index.mjs +20 -77
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -68819,12 +68819,15 @@ var GearboxBackendApi = class {
|
|
|
68819
68819
|
return `${LEADERBOARD_APIS[chainId]}${url}`;
|
|
68820
68820
|
};
|
|
68821
68821
|
static getReferralUrl = () => REFERRAL_API;
|
|
68822
|
-
static apyServerAllRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/all", {
|
|
68822
|
+
static apyServerAllRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/tokens/all", {
|
|
68823
68823
|
params: { chain_id: chainId }
|
|
68824
68824
|
});
|
|
68825
68825
|
static apyServerGearAPY = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/gear-apy", {
|
|
68826
68826
|
params: { chain_id: chainId }
|
|
68827
68827
|
});
|
|
68828
|
+
static apyServerAllPoolRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/pools/all", {
|
|
68829
|
+
params: { chain_id: chainId }
|
|
68830
|
+
});
|
|
68828
68831
|
};
|
|
68829
68832
|
var URLApi = class {
|
|
68830
68833
|
static getRelativeUrl = (url, options) => {
|
|
@@ -73210,73 +73213,15 @@ var GearboxRewardsApy = class {
|
|
|
73210
73213
|
return { token, balance, rewardInfo, apy: r };
|
|
73211
73214
|
}
|
|
73212
73215
|
};
|
|
73213
|
-
var POOL_POINTS = {
|
|
73214
|
-
Mainnet: {
|
|
73215
|
-
[poolByNetwork.Mainnet.WETH_V3_TRADE]: {
|
|
73216
|
-
rsETH: {
|
|
73217
|
-
amount: 7500n * 10000n,
|
|
73218
|
-
symbol: "rsETH",
|
|
73219
|
-
duration: "hour",
|
|
73220
|
-
name: "Kelp Mile",
|
|
73221
|
-
estimation: "relative"
|
|
73222
|
-
}
|
|
73223
|
-
},
|
|
73224
|
-
[poolByNetwork.Mainnet.WBTC_V3_TRADE]: {
|
|
73225
|
-
LBTC: {
|
|
73226
|
-
amount: 2000n * 10000n,
|
|
73227
|
-
symbol: "LBTC",
|
|
73228
|
-
duration: "day",
|
|
73229
|
-
name: "Lombard LUX",
|
|
73230
|
-
estimation: "absolute"
|
|
73231
|
-
},
|
|
73232
|
-
pumpBTC: {
|
|
73233
|
-
amount: 172800n * 10000n,
|
|
73234
|
-
symbol: "pumpBTC",
|
|
73235
|
-
duration: "day",
|
|
73236
|
-
name: "Pump BTC",
|
|
73237
|
-
estimation: "absolute"
|
|
73238
|
-
}
|
|
73239
|
-
}
|
|
73240
|
-
},
|
|
73241
|
-
Arbitrum: {},
|
|
73242
|
-
Optimism: {},
|
|
73243
|
-
Base: {}
|
|
73244
|
-
};
|
|
73245
|
-
var TOKENS = TypedObjectUtils.entries(POOL_POINTS).reduce(
|
|
73246
|
-
(acc, [network, pools]) => {
|
|
73247
|
-
const r = Object.values(pools).reduce(
|
|
73248
|
-
(acc2, tokens) => {
|
|
73249
|
-
const l = Object.keys(tokens);
|
|
73250
|
-
acc2.push(...l);
|
|
73251
|
-
return acc2;
|
|
73252
|
-
},
|
|
73253
|
-
[]
|
|
73254
|
-
);
|
|
73255
|
-
acc[network] = r;
|
|
73256
|
-
return acc;
|
|
73257
|
-
},
|
|
73258
|
-
{}
|
|
73259
|
-
);
|
|
73260
|
-
var CA_REWARDS = {
|
|
73261
|
-
Mainnet: [],
|
|
73262
|
-
Arbitrum: [],
|
|
73263
|
-
Optimism: ["ezETH"],
|
|
73264
|
-
Base: []
|
|
73265
|
-
};
|
|
73266
73216
|
var GearboxRewardsExtraApy = class {
|
|
73267
73217
|
static async getTotalTokensOnProtocol({
|
|
73268
|
-
|
|
73218
|
+
tokensToCheck,
|
|
73269
73219
|
tokensList,
|
|
73270
|
-
network
|
|
73271
|
-
extraTokens = []
|
|
73220
|
+
network
|
|
73272
73221
|
}) {
|
|
73273
|
-
const
|
|
73274
|
-
const caTokens = CA_REWARDS[network];
|
|
73275
|
-
const list = [.../* @__PURE__ */ new Set([...poolTokens, ...caTokens, ...extraTokens])];
|
|
73222
|
+
const list = [...new Set(tokensToCheck)];
|
|
73276
73223
|
const res = await Promise.allSettled(
|
|
73277
|
-
list.map(
|
|
73278
|
-
(s) => this.getTokenTotal(currentTokenData[s], network, tokensList)
|
|
73279
|
-
)
|
|
73224
|
+
list.map((t) => this.getTokenTotal(t, network, tokensList))
|
|
73280
73225
|
);
|
|
73281
73226
|
return res.map((r, i) => [
|
|
73282
73227
|
list[i],
|
|
@@ -73284,8 +73229,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
73284
73229
|
]);
|
|
73285
73230
|
}
|
|
73286
73231
|
static async getTokenTotal(token, network, tokensList) {
|
|
73287
|
-
const
|
|
73288
|
-
const url = GearboxBackendApi.getChartsUrl("getBalanceAt",
|
|
73232
|
+
const chainId = chains[network]?.id;
|
|
73233
|
+
const url = GearboxBackendApi.getChartsUrl("getBalanceAt", chainId, {
|
|
73289
73234
|
params: {
|
|
73290
73235
|
asset: token
|
|
73291
73236
|
}
|
|
@@ -73299,24 +73244,22 @@ var GearboxRewardsExtraApy = class {
|
|
|
73299
73244
|
return { token, balance: toBN(String(balance), decimals2) };
|
|
73300
73245
|
}
|
|
73301
73246
|
static getPointsByPool({
|
|
73247
|
+
poolRewards,
|
|
73302
73248
|
totalTokenBalances,
|
|
73303
73249
|
pools,
|
|
73304
|
-
tokensList
|
|
73305
|
-
currentTokenData,
|
|
73306
|
-
network
|
|
73250
|
+
tokensList
|
|
73307
73251
|
}) {
|
|
73308
73252
|
const r = pools.reduce((acc, p) => {
|
|
73309
|
-
const
|
|
73310
|
-
|
|
73311
|
-
|
|
73312
|
-
|
|
73313
|
-
|
|
73314
|
-
const tokenBalance = totalTokenBalances[currentTokenData[pointsInfo.symbol] || ""];
|
|
73253
|
+
const pointsInfo = Object.values(poolRewards[p.address] || {});
|
|
73254
|
+
const poolPointsList = pointsInfo.reduce(
|
|
73255
|
+
(acc2, pointsInfo2) => {
|
|
73256
|
+
const { address: tokenAddress } = tokensList[pointsInfo2.token];
|
|
73257
|
+
const tokenBalance = totalTokenBalances[tokenAddress || ""];
|
|
73315
73258
|
const points = this.getPoolTokenPoints(
|
|
73316
73259
|
tokenBalance,
|
|
73317
73260
|
p,
|
|
73318
73261
|
tokensList,
|
|
73319
|
-
|
|
73262
|
+
pointsInfo2
|
|
73320
73263
|
);
|
|
73321
73264
|
if (points !== null) {
|
|
73322
73265
|
acc2.push({ balance: points, token: tokenBalance.token });
|
|
@@ -73341,8 +73284,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
73341
73284
|
const points = pointsInfo.estimation === "absolute" ? defaultPoints : tokenBalanceInPool.balance * defaultPoints / (pool.expectedLiquidity * targetFactor / underlyingFactor);
|
|
73342
73285
|
return BigIntMath.min(points, defaultPoints);
|
|
73343
73286
|
}
|
|
73344
|
-
static getPoolPointsTip(
|
|
73345
|
-
const p =
|
|
73287
|
+
static getPoolPointsTip(poolRewards, pool, token) {
|
|
73288
|
+
const p = poolRewards[pool]?.[token];
|
|
73346
73289
|
return p;
|
|
73347
73290
|
}
|
|
73348
73291
|
};
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -93854,6 +93854,7 @@ declare class GearboxBackendApi {
|
|
|
93854
93854
|
static getReferralUrl: () => string;
|
|
93855
93855
|
static apyServerAllRewards: (chainId: number) => string;
|
|
93856
93856
|
static apyServerGearAPY: (chainId: number) => string;
|
|
93857
|
+
static apyServerAllPoolRewards: (chainId: number) => string;
|
|
93857
93858
|
}
|
|
93858
93859
|
interface Options {
|
|
93859
93860
|
params?: Record<string, string | number>;
|
|
@@ -94500,32 +94501,32 @@ declare class GearboxRewardsApy {
|
|
|
94500
94501
|
private static getCASingleExtraAPY_V3;
|
|
94501
94502
|
}
|
|
94502
94503
|
|
|
94504
|
+
interface PoolPointsInfo {
|
|
94505
|
+
pool: Address;
|
|
94506
|
+
token: Address;
|
|
94507
|
+
symbol: string;
|
|
94508
|
+
amount: bigint;
|
|
94509
|
+
duration: string;
|
|
94510
|
+
name: string;
|
|
94511
|
+
estimation: "absolute" | "relative";
|
|
94512
|
+
}
|
|
94503
94513
|
interface GetPointsByPoolProps {
|
|
94514
|
+
poolRewards: Record<Address, Record<Address, PoolPointsInfo>>;
|
|
94504
94515
|
totalTokenBalances: Record<Address, Asset>;
|
|
94505
94516
|
pools: Array<PoolData_Legacy>;
|
|
94506
|
-
currentTokenData: Record<SupportedToken, Address>;
|
|
94507
94517
|
tokensList: Record<Address, TokenData>;
|
|
94508
|
-
network: NetworkType;
|
|
94509
94518
|
}
|
|
94510
94519
|
interface GetTotalTokensOnProtocolProps {
|
|
94511
|
-
|
|
94520
|
+
tokensToCheck: Array<Address>;
|
|
94512
94521
|
tokensList: Record<Address, TokenData>;
|
|
94513
94522
|
network: NetworkType;
|
|
94514
|
-
extraTokens?: Array<SupportedToken>;
|
|
94515
|
-
}
|
|
94516
|
-
interface PoolPointsInfo {
|
|
94517
|
-
amount: bigint;
|
|
94518
|
-
symbol: SupportedToken;
|
|
94519
|
-
duration: string;
|
|
94520
|
-
name: string;
|
|
94521
|
-
estimation: "absolute" | "relative";
|
|
94522
94523
|
}
|
|
94523
94524
|
declare class GearboxRewardsExtraApy {
|
|
94524
|
-
static getTotalTokensOnProtocol({
|
|
94525
|
+
static getTotalTokensOnProtocol({ tokensToCheck, tokensList, network, }: GetTotalTokensOnProtocolProps): Promise<[`0x${string}`, PromiseSettledResult<Asset>][]>;
|
|
94525
94526
|
private static getTokenTotal;
|
|
94526
|
-
static getPointsByPool({ totalTokenBalances, pools, tokensList,
|
|
94527
|
+
static getPointsByPool({ poolRewards, totalTokenBalances, pools, tokensList, }: GetPointsByPoolProps): Record<`0x${string}`, Asset[]>;
|
|
94527
94528
|
private static getPoolTokenPoints;
|
|
94528
|
-
static getPoolPointsTip(
|
|
94529
|
+
static getPoolPointsTip(poolRewards: Record<Address, Record<Address, PoolPointsInfo>>, pool: Address, token: Address): PoolPointsInfo;
|
|
94529
94530
|
}
|
|
94530
94531
|
|
|
94531
94532
|
interface PathFinderResult {
|
|
@@ -97947,4 +97948,4 @@ type MulticallErrorType = GetChainContractAddressErrorType | ReadContractErrorTy
|
|
|
97947
97948
|
*/
|
|
97948
97949
|
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>>;
|
|
97949
97950
|
|
|
97950
|
-
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_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, 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_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, 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 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, CreditFactory, type CreditFactoryStateHuman, 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, 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, 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, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, 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 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, MarketFactory, MarketRegister, type MarketStateHuman, 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, PoolFactory, type PoolFactoryStateHuman, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, 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, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, 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, 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, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, 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, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, 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, poolByNetwork, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, 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 };
|
|
97951
|
+
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_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, 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_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, 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 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, CreditFactory, type CreditFactoryStateHuman, 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, 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, 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, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, 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 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, MarketFactory, MarketRegister, type MarketStateHuman, 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, PoolFactory, type PoolFactoryStateHuman, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, 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, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, 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, 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, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, 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, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, 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, poolByNetwork, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, 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
|
@@ -93854,6 +93854,7 @@ declare class GearboxBackendApi {
|
|
|
93854
93854
|
static getReferralUrl: () => string;
|
|
93855
93855
|
static apyServerAllRewards: (chainId: number) => string;
|
|
93856
93856
|
static apyServerGearAPY: (chainId: number) => string;
|
|
93857
|
+
static apyServerAllPoolRewards: (chainId: number) => string;
|
|
93857
93858
|
}
|
|
93858
93859
|
interface Options {
|
|
93859
93860
|
params?: Record<string, string | number>;
|
|
@@ -94500,32 +94501,32 @@ declare class GearboxRewardsApy {
|
|
|
94500
94501
|
private static getCASingleExtraAPY_V3;
|
|
94501
94502
|
}
|
|
94502
94503
|
|
|
94504
|
+
interface PoolPointsInfo {
|
|
94505
|
+
pool: Address;
|
|
94506
|
+
token: Address;
|
|
94507
|
+
symbol: string;
|
|
94508
|
+
amount: bigint;
|
|
94509
|
+
duration: string;
|
|
94510
|
+
name: string;
|
|
94511
|
+
estimation: "absolute" | "relative";
|
|
94512
|
+
}
|
|
94503
94513
|
interface GetPointsByPoolProps {
|
|
94514
|
+
poolRewards: Record<Address, Record<Address, PoolPointsInfo>>;
|
|
94504
94515
|
totalTokenBalances: Record<Address, Asset>;
|
|
94505
94516
|
pools: Array<PoolData_Legacy>;
|
|
94506
|
-
currentTokenData: Record<SupportedToken, Address>;
|
|
94507
94517
|
tokensList: Record<Address, TokenData>;
|
|
94508
|
-
network: NetworkType;
|
|
94509
94518
|
}
|
|
94510
94519
|
interface GetTotalTokensOnProtocolProps {
|
|
94511
|
-
|
|
94520
|
+
tokensToCheck: Array<Address>;
|
|
94512
94521
|
tokensList: Record<Address, TokenData>;
|
|
94513
94522
|
network: NetworkType;
|
|
94514
|
-
extraTokens?: Array<SupportedToken>;
|
|
94515
|
-
}
|
|
94516
|
-
interface PoolPointsInfo {
|
|
94517
|
-
amount: bigint;
|
|
94518
|
-
symbol: SupportedToken;
|
|
94519
|
-
duration: string;
|
|
94520
|
-
name: string;
|
|
94521
|
-
estimation: "absolute" | "relative";
|
|
94522
94523
|
}
|
|
94523
94524
|
declare class GearboxRewardsExtraApy {
|
|
94524
|
-
static getTotalTokensOnProtocol({
|
|
94525
|
+
static getTotalTokensOnProtocol({ tokensToCheck, tokensList, network, }: GetTotalTokensOnProtocolProps): Promise<[`0x${string}`, PromiseSettledResult<Asset>][]>;
|
|
94525
94526
|
private static getTokenTotal;
|
|
94526
|
-
static getPointsByPool({ totalTokenBalances, pools, tokensList,
|
|
94527
|
+
static getPointsByPool({ poolRewards, totalTokenBalances, pools, tokensList, }: GetPointsByPoolProps): Record<`0x${string}`, Asset[]>;
|
|
94527
94528
|
private static getPoolTokenPoints;
|
|
94528
|
-
static getPoolPointsTip(
|
|
94529
|
+
static getPoolPointsTip(poolRewards: Record<Address, Record<Address, PoolPointsInfo>>, pool: Address, token: Address): PoolPointsInfo;
|
|
94529
94530
|
}
|
|
94530
94531
|
|
|
94531
94532
|
interface PathFinderResult {
|
|
@@ -97947,4 +97948,4 @@ type MulticallErrorType = GetChainContractAddressErrorType | ReadContractErrorTy
|
|
|
97947
97948
|
*/
|
|
97948
97949
|
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>>;
|
|
97949
97950
|
|
|
97950
|
-
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_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, 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_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, 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 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, CreditFactory, type CreditFactoryStateHuman, 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, 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, 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, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, 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 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, MarketFactory, MarketRegister, type MarketStateHuman, 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, PoolFactory, type PoolFactoryStateHuman, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, 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, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, 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, 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, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, 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, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, 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, poolByNetwork, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, 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 };
|
|
97951
|
+
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_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, 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_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, 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 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, CreditFactory, type CreditFactoryStateHuman, 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, 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, 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, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, 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 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, MarketFactory, MarketRegister, type MarketStateHuman, 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, PoolFactory, type PoolFactoryStateHuman, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, 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, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, 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, 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, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, 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, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, 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, poolByNetwork, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, 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
|
@@ -68813,12 +68813,15 @@ var GearboxBackendApi = class {
|
|
|
68813
68813
|
return `${LEADERBOARD_APIS[chainId]}${url}`;
|
|
68814
68814
|
};
|
|
68815
68815
|
static getReferralUrl = () => REFERRAL_API;
|
|
68816
|
-
static apyServerAllRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/all", {
|
|
68816
|
+
static apyServerAllRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/tokens/all", {
|
|
68817
68817
|
params: { chain_id: chainId }
|
|
68818
68818
|
});
|
|
68819
68819
|
static apyServerGearAPY = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/gear-apy", {
|
|
68820
68820
|
params: { chain_id: chainId }
|
|
68821
68821
|
});
|
|
68822
|
+
static apyServerAllPoolRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/pools/all", {
|
|
68823
|
+
params: { chain_id: chainId }
|
|
68824
|
+
});
|
|
68822
68825
|
};
|
|
68823
68826
|
var URLApi = class {
|
|
68824
68827
|
static getRelativeUrl = (url, options) => {
|
|
@@ -73204,73 +73207,15 @@ var GearboxRewardsApy = class {
|
|
|
73204
73207
|
return { token, balance, rewardInfo, apy: r };
|
|
73205
73208
|
}
|
|
73206
73209
|
};
|
|
73207
|
-
var POOL_POINTS = {
|
|
73208
|
-
Mainnet: {
|
|
73209
|
-
[poolByNetwork.Mainnet.WETH_V3_TRADE]: {
|
|
73210
|
-
rsETH: {
|
|
73211
|
-
amount: 7500n * 10000n,
|
|
73212
|
-
symbol: "rsETH",
|
|
73213
|
-
duration: "hour",
|
|
73214
|
-
name: "Kelp Mile",
|
|
73215
|
-
estimation: "relative"
|
|
73216
|
-
}
|
|
73217
|
-
},
|
|
73218
|
-
[poolByNetwork.Mainnet.WBTC_V3_TRADE]: {
|
|
73219
|
-
LBTC: {
|
|
73220
|
-
amount: 2000n * 10000n,
|
|
73221
|
-
symbol: "LBTC",
|
|
73222
|
-
duration: "day",
|
|
73223
|
-
name: "Lombard LUX",
|
|
73224
|
-
estimation: "absolute"
|
|
73225
|
-
},
|
|
73226
|
-
pumpBTC: {
|
|
73227
|
-
amount: 172800n * 10000n,
|
|
73228
|
-
symbol: "pumpBTC",
|
|
73229
|
-
duration: "day",
|
|
73230
|
-
name: "Pump BTC",
|
|
73231
|
-
estimation: "absolute"
|
|
73232
|
-
}
|
|
73233
|
-
}
|
|
73234
|
-
},
|
|
73235
|
-
Arbitrum: {},
|
|
73236
|
-
Optimism: {},
|
|
73237
|
-
Base: {}
|
|
73238
|
-
};
|
|
73239
|
-
var TOKENS = TypedObjectUtils.entries(POOL_POINTS).reduce(
|
|
73240
|
-
(acc, [network, pools]) => {
|
|
73241
|
-
const r = Object.values(pools).reduce(
|
|
73242
|
-
(acc2, tokens) => {
|
|
73243
|
-
const l = Object.keys(tokens);
|
|
73244
|
-
acc2.push(...l);
|
|
73245
|
-
return acc2;
|
|
73246
|
-
},
|
|
73247
|
-
[]
|
|
73248
|
-
);
|
|
73249
|
-
acc[network] = r;
|
|
73250
|
-
return acc;
|
|
73251
|
-
},
|
|
73252
|
-
{}
|
|
73253
|
-
);
|
|
73254
|
-
var CA_REWARDS = {
|
|
73255
|
-
Mainnet: [],
|
|
73256
|
-
Arbitrum: [],
|
|
73257
|
-
Optimism: ["ezETH"],
|
|
73258
|
-
Base: []
|
|
73259
|
-
};
|
|
73260
73210
|
var GearboxRewardsExtraApy = class {
|
|
73261
73211
|
static async getTotalTokensOnProtocol({
|
|
73262
|
-
|
|
73212
|
+
tokensToCheck,
|
|
73263
73213
|
tokensList,
|
|
73264
|
-
network
|
|
73265
|
-
extraTokens = []
|
|
73214
|
+
network
|
|
73266
73215
|
}) {
|
|
73267
|
-
const
|
|
73268
|
-
const caTokens = CA_REWARDS[network];
|
|
73269
|
-
const list = [.../* @__PURE__ */ new Set([...poolTokens, ...caTokens, ...extraTokens])];
|
|
73216
|
+
const list = [...new Set(tokensToCheck)];
|
|
73270
73217
|
const res = await Promise.allSettled(
|
|
73271
|
-
list.map(
|
|
73272
|
-
(s) => this.getTokenTotal(currentTokenData[s], network, tokensList)
|
|
73273
|
-
)
|
|
73218
|
+
list.map((t) => this.getTokenTotal(t, network, tokensList))
|
|
73274
73219
|
);
|
|
73275
73220
|
return res.map((r, i) => [
|
|
73276
73221
|
list[i],
|
|
@@ -73278,8 +73223,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
73278
73223
|
]);
|
|
73279
73224
|
}
|
|
73280
73225
|
static async getTokenTotal(token, network, tokensList) {
|
|
73281
|
-
const
|
|
73282
|
-
const url = GearboxBackendApi.getChartsUrl("getBalanceAt",
|
|
73226
|
+
const chainId = chains[network]?.id;
|
|
73227
|
+
const url = GearboxBackendApi.getChartsUrl("getBalanceAt", chainId, {
|
|
73283
73228
|
params: {
|
|
73284
73229
|
asset: token
|
|
73285
73230
|
}
|
|
@@ -73293,24 +73238,22 @@ var GearboxRewardsExtraApy = class {
|
|
|
73293
73238
|
return { token, balance: toBN(String(balance), decimals2) };
|
|
73294
73239
|
}
|
|
73295
73240
|
static getPointsByPool({
|
|
73241
|
+
poolRewards,
|
|
73296
73242
|
totalTokenBalances,
|
|
73297
73243
|
pools,
|
|
73298
|
-
tokensList
|
|
73299
|
-
currentTokenData,
|
|
73300
|
-
network
|
|
73244
|
+
tokensList
|
|
73301
73245
|
}) {
|
|
73302
73246
|
const r = pools.reduce((acc, p) => {
|
|
73303
|
-
const
|
|
73304
|
-
|
|
73305
|
-
|
|
73306
|
-
|
|
73307
|
-
|
|
73308
|
-
const tokenBalance = totalTokenBalances[currentTokenData[pointsInfo.symbol] || ""];
|
|
73247
|
+
const pointsInfo = Object.values(poolRewards[p.address] || {});
|
|
73248
|
+
const poolPointsList = pointsInfo.reduce(
|
|
73249
|
+
(acc2, pointsInfo2) => {
|
|
73250
|
+
const { address: tokenAddress } = tokensList[pointsInfo2.token];
|
|
73251
|
+
const tokenBalance = totalTokenBalances[tokenAddress || ""];
|
|
73309
73252
|
const points = this.getPoolTokenPoints(
|
|
73310
73253
|
tokenBalance,
|
|
73311
73254
|
p,
|
|
73312
73255
|
tokensList,
|
|
73313
|
-
|
|
73256
|
+
pointsInfo2
|
|
73314
73257
|
);
|
|
73315
73258
|
if (points !== null) {
|
|
73316
73259
|
acc2.push({ balance: points, token: tokenBalance.token });
|
|
@@ -73335,8 +73278,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
73335
73278
|
const points = pointsInfo.estimation === "absolute" ? defaultPoints : tokenBalanceInPool.balance * defaultPoints / (pool.expectedLiquidity * targetFactor / underlyingFactor);
|
|
73336
73279
|
return BigIntMath.min(points, defaultPoints);
|
|
73337
73280
|
}
|
|
73338
|
-
static getPoolPointsTip(
|
|
73339
|
-
const p =
|
|
73281
|
+
static getPoolPointsTip(poolRewards, pool, token) {
|
|
73282
|
+
const p = poolRewards[pool]?.[token];
|
|
73340
73283
|
return p;
|
|
73341
73284
|
}
|
|
73342
73285
|
};
|