euler-data
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEuler Lens & Data Agent Skill
Euler Lens & Data Agent 技能指南
Developer tools and data access guide for Euler Finance V2. Covers Lens contracts, subgraphs, interfaces, and deployment tools.
Euler Finance V2 开发者工具与数据访问指南,涵盖Lens合约、subgraph、接口及部署工具。
When to Apply
适用场景
Reference these guidelines when:
- Querying account positions and health using AccountLens
- Querying vault data using Lens contracts (VaultLens, OracleLens, IRMLens, UtilsLens)
- Tracking active accounts via Euler subgraph
- Looking up contract addresses and ABIs
- Building dashboards or analytics for Euler
- Integrating with Euler from frontends or bots
在以下场景中可参考本指南:
- 使用AccountLens查询账户持仓状况与健康度
- 使用Lens合约(VaultLens、OracleLens、IRMLens、UtilsLens)查询金库数据
- 通过Euler subgraph追踪活跃账户
- 查询合约地址与ABI
- 为Euler构建仪表盘或分析工具
- 从前端或机器人中与Euler进行集成
Rule Categories
规则分类
| Rule | Impact | Description |
|---|---|---|
| MEDIUM | Query vault, account, and oracle data via Lens contracts |
| MEDIUM | Track active accounts and vault factories via subgraph |
| MEDIUM | Contract addresses and ABI references |
| 规则 | 影响等级 | 描述 |
|---|---|---|
| 中等 | 通过Lens合约查询金库、账户及预言机数据 |
| 中等 | 通过subgraph追踪活跃账户与金库工厂 |
| 中等 | 合约地址与ABI参考 |
Quick Reference
快速参考
Lens Contracts
Lens合约
- AccountLens - Query account positions, liquidity, health factor, time to liquidation (TTL)
- VaultLens - Query vault state, configuration, LTVs, IRM info
- OracleLens - Check oracle configuration and prices
- IRMLens - Interest rate model details and calculations
- UtilsLens - Utility functions: APY calculations, token balances, allowances
- EulerEarnVaultLens - Query EulerEarn vault data and strategies
- AccountLens - 查询账户持仓、流动性、健康系数、清算倒计时(TTL)
- VaultLens - 查询金库状态、配置、LTV、IRM信息
- OracleLens - 查看预言机配置与价格
- IRMLens - 利率模型详情与计算
- UtilsLens - 实用函数:APY计算、代币余额、授权额度
- EulerEarnVaultLens - 查询EulerEarn金库数据与策略
Subgraphs
Subgraph
The subgraph is intentionally minimal - use Lens contracts for detailed data:
- Vault - Track which factory created each vault
- TrackingActiveAccount - Active accounts indexed by address prefix (first 19 bytes)
- TrackingVaultBalance - Per-account vault balances and debt (at the time of the last update)
Subgraph设计得较为精简——如需详细数据,请使用Lens合约:
- Vault - 追踪每个金库的创建工厂
- TrackingActiveAccount - 按地址前缀(前19字节)索引的活跃账户
- TrackingVaultBalance - 每个账户的金库余额与债务(基于上次更新时的数据)
Companion Skills
配套技能
- - Core vault operations, EVC, risk management
euler-vaults - - Oracle adapters and interest rate models
euler-irm-oracles - - Yield aggregation vaults
euler-earn - - Hooks, flash loans, fee flow
euler-advanced
- - 核心金库操作、EVC、风险管理
euler-vaults - - 预言机适配器与利率模型
euler-irm-oracles - - 收益聚合金库
euler-earn - - 钩子、闪电贷、费用流
euler-advanced
How to Use
使用方法
Read individual rule files for detailed explanations and code examples:
rules/tools-lens.md
rules/tools-subgraphs.md
rules/tools-interfaces.md阅读单个规则文件获取详细说明与代码示例:
rules/tools-lens.md
rules/tools-subgraphs.md
rules/tools-interfaces.mdFull Compiled Document
完整编译文档
For the complete guide with all rules expanded:
AGENTS.md如需包含所有扩展规则的完整指南,请查看:
AGENTS.md