UNPKG

@agentek/tools

Version:

Blockchain tools for AI agents

93 lines 2.31 kB
import { Chain } from 'viem/chains'; export declare const SUPPORTED_CHAINS: Chain[]; export declare const SUPPORTED_YIELD_PROTOCOLS: readonly ["Aave", "Compound", "Morpho", "SparkLend", "Lido", "RocketPool", "DefiLlama"]; export type YieldProtocol = typeof SUPPORTED_YIELD_PROTOCOLS[number]; export type RiskLevel = 'low' | 'medium' | 'high'; export interface YieldData { protocol: YieldProtocol; asset: string; symbol: string; apy: number; tvl: number; chain: number; risk: RiskLevel; } export interface DefiLlamaPool { chain: string; project: string; symbol: string; tvlUsd: number; apyBase: number | null; apyReward: number | null; apy: number | null; rewardTokens: string[] | null; pool: string; apyPct1D?: number; apyPct7D?: number; apyPct30D?: number; stablecoin: boolean; ilRisk: string; exposure: string; predictions?: { predictedClass: string; predictedProbability: number; binnedConfidence: number; }; } export interface DefiLlamaResponse { status: string; data: DefiLlamaPool[]; } export interface DefiLlamaChartDataPoint { timestamp: string; tvlUsd: number; apy: number; apyBase: number | null; apyReward: number | null; il7d: number | null; apyBase7d: number | null; } export interface DefiLlamaChartResponse { status: string; data: DefiLlamaChartDataPoint[]; } export interface PoolComparisonResult { poolId: string; project: string; symbol: string; chain: string; current: { apy: string; tvl: string; }; statistics: { apy: { average: string; min: string; max: string; volatility: string; }; tvl: { average: string; min: string; max: string; }; }; performance: { apyChange30d?: string; apyRank?: number; volatilityRank?: number; stabilityScore?: number; }; } export declare const PROTOCOL_API_ENDPOINTS: { DefiLlama: string; DefiLlamaChart: string; DefiLlamaCoinsChart: string; }; export declare const RISK_THRESHOLDS: { low: number; medium: number; high: number; }; //# sourceMappingURL=constants.d.ts.map