import { Client } from 'viem'; import { AaveMarketInfo, AaveV3MarketData, AaveV3PositionData, AaveV3UsedAssets, EModeCategoryDataMapping, StakeAaveData } from '../types'; import { Blockish, EthAddress, EthereumProvider, NetworkNumber, PositionBalances } from '../types/common'; import { getMeritCampaigns } from './merit'; import { getMerkleCampaigns } from './merkl'; export declare const aaveV3EmodeCategoriesMapping: (extractedState: any, usedAssets: AaveV3UsedAssets) => { [key: number]: EModeCategoryDataMapping; }; export declare function _getAaveV3MarketData(provider: Client, network: NetworkNumber, market: AaveMarketInfo, blockNumber?: 'latest' | number): Promise; export declare function getAaveV3MarketData(provider: EthereumProvider, network: NetworkNumber, market: AaveMarketInfo, blockNumber?: 'latest' | number): Promise; export declare const EMPTY_AAVE_DATA: { usedAssets: {}; suppliedUsd: string; borrowedUsd: string; borrowLimitUsd: string; leftToBorrowUsd: string; ratio: string; minRatio: string; netApy: string; incentiveUsd: string; totalInterestUsd: string; isSubscribedToAutomation: boolean; automationResubscribeRequired: boolean; eModeCategory: number; isInIsolationMode: boolean; isInSiloedMode: boolean; totalSupplied: string; eModeCategories: never[]; collRatio: string; suppliedCollateralUsd: string; exposure: string; }; export declare const _getAaveV3AccountBalances: (provider: Client, network: NetworkNumber, block: Blockish, addressMapping: boolean, address: EthAddress) => Promise; export declare const getAaveV3AccountBalances: (provider: EthereumProvider, network: NetworkNumber, block: Blockish, addressMapping: boolean, address: EthAddress) => Promise; export interface AaveV3ReserveTokenAddresses { [symbol: string]: { symbol: string; underlyingAddress: EthAddress; aTokenAddress: EthAddress; stableDebtTokenAddress: EthAddress; variableDebtTokenAddress: EthAddress; }; } export interface AaveV3HistoricalBalance { block: number; suppliedUsd: string; borrowedUsd: string; netUsd: string; } /** * Fetches the aToken / stable-debt / variable-debt token addresses for every asset in the market. * These are effectively immutable per reserve, so fetch once and reuse across all history points. */ export declare const _getAaveV3ReserveTokenAddresses: (provider: Client, network: NetworkNumber, market: AaveMarketInfo) => Promise; export declare const getAaveV3ReserveTokenAddresses: (provider: EthereumProvider, network: NetworkNumber, market: AaveMarketInfo) => Promise; /** * Resolves the price oracle the market's addresses provider points at (at `block`, or latest). * Aave can rotate the oracle over time, so a caller hoisting one address across many historical * points must resolve it at both ends of its block range and only reuse it when the two agree — * otherwise leave `oracleAddress` unset on _getAaveV3HistoricalBalance and it resolves per block. */ export declare const _getAaveV3OracleAddress: (provider: Client, network: NetworkNumber, market: AaveMarketInfo, block?: Blockish) => Promise; export declare const getAaveV3OracleAddress: (provider: EthereumProvider, network: NetworkNumber, market: AaveMarketInfo, block?: Blockish) => Promise; /** * Computes a user's Aave v3 net USD balance (supplied collateral - borrowed debt) at a historical block, * without touching the AaveV3View contract. Pass `reserveTokens` (from getAaveV3ReserveTokenAddresses) * to avoid refetching token addresses for every point, and `oracleAddress` (from getAaveV3OracleAddress, * verified identical at both ends of the sampled range) to collapse the point into a single multicall — * with it the balances and all prices ride one request; without it the oracle is resolved at the block * inside the balance multicall and the active assets are priced in a second one. */ export declare const _getAaveV3HistoricalBalance: (provider: Client, network: NetworkNumber, market: AaveMarketInfo, address: EthAddress, block: number, reserveTokens?: AaveV3ReserveTokenAddresses, oracleAddress?: EthAddress) => Promise; export declare const getAaveV3HistoricalBalance: (provider: EthereumProvider, network: NetworkNumber, market: AaveMarketInfo, address: EthAddress, block: number, reserveTokens?: AaveV3ReserveTokenAddresses, oracleAddress?: EthAddress) => Promise; export declare const _getAaveV3AccountData: (provider: Client, network: NetworkNumber, address: EthAddress, extractedState: any, blockNumber?: "latest" | number) => Promise; export declare const getAaveV3AccountData: (provider: EthereumProvider, network: NetworkNumber, address: EthAddress, extractedState: any, blockNumber?: "latest" | number) => Promise; export declare const getAaveV3FullPositionData: (provider: EthereumProvider, network: NetworkNumber, address: EthAddress, market: AaveMarketInfo) => Promise; export declare const REWARDABLE_ASSETS: readonly ["0x028171bCA77440897B824Ca71D1c56caC55b68A3", "0x6C3c78838c761c6Ac7bE9F59fe808ea2A6E4379d", "0xD37EE7e4f452C6638c96536e68090De8cBcdb583", "0x279AF5b99540c1A3A7E3CDd326e19659401eF99e", "0xBcca60bB61934080951369a648Fb03DF4F96263C", "0x619beb58998eD2278e08620f97007e1116D5D25b", "0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811", "0x531842cEbbdD378f8ee36D171d6cC9C4fcf475Ec", "0x9ff58f4fFB29fA2266Ab25e75e2A8b3503311656", "0x9c39809Dec7F95F5e0713634a4D0701329B3b4d2", "0x030bA81f1c18d280636F32af80b9AAd02Cf0854e", "0xF63B34710400CAd3e044cFfDcAb00a0f32E33eCf", "0xa06bC25B5805d5F8d82847D191Cb4Af5A3e873E0", "0x0b8f12b1788BFdE65Aa1ca52E3e9F3Ba401be16D", "0x6C5024Cd4F8A59110119C56f8933403A539555EB", "0xdC6a3Ab17299D9C2A412B0e0a4C1f55446AE0817", "0x5165d24277cD063F5ac44Efd447B27025e888f37", "0x7EbD09022Be45AD993BAA1CEc61166Fcc8644d97", "0xF256CC7847E919FAc9B808cC216cAc87CCF2f47a", "0xfAFEDF95E21184E3d880bd56D4806c4b8d31c69A", "0xB9D7CB55f463405CDfBe4E90a6D2Df01C2B92BF1", "0x5BdB050A92CADcCfCDcCCBFC17204a1C9cC0Ab73", "0xc713e5E149D5D0715DcD1c156a020976e7E56B88", "0xba728eAd5e496BE00DCF66F650b6d7758eCB50f8", "0x101cc05f4A51C0319f570d5E146a8C625198e636", "0x01C0eb1f8c6F1C1bF74ae028697ce7AA2a8b0E92", "0xc9BC48c72154ef3e5425641a3c747242112a46AF", "0xB5385132EE8321977FfF44b60cDE9fE9AB0B4e6b", "0x272F97b7a56a387aE942350bBC7Df5700f8a4576", "0x13210D4Fe0d5402bd7Ecbc4B5bC5cFcA3b71adB0", "0x2e8f4bdbe3d47d7d7de490437aea9915d930f1a3", "0xfdb93b3b10936cf81fa59a02a7523b6e2149b2b7", "0xA361718326c15715591c299427c62086F69923D9", "0xbA429f7011c9fa04cDd46a2Da24dc0FF0aC6099c", "0xd4937682df3C8aEF4FE912A96A74121C0829E664", "0xfE8F19B17fFeF0fDbfe2671F248903055AFAA8Ca", "0x683923dB55Fead99A79Fa01A27EeC3cB19679cC3", "0xC2e10006AccAb7B45D9184FcF5b7EC7763f5BaAe", "0x8dAE6Cb04688C62d939ed9B68d32Bc62e49970b1", "0x00ad8eBF64F141f1C81e9f8f792d3d1631c6c684", "0x6F634c6135D2EBD550000ac92F494F9CB8183dAe", "0x4dDff5885a67E4EffeC55875a3977D7E60F82ae0"]; export declare const fetchYearlyMeritApyForStakingGho: () => Promise; export declare const getStakeAaveData: (provider: Client, network: NetworkNumber, address: EthAddress) => Promise; export { getMeritCampaigns, getMerkleCampaigns, }; export { getSghoData } from './sgho'; export type { SghoData, SghoUserData } from './sgho';