索引器与浏览器
本页补充 Secure Lock 参考文档,重点介绍索引器设计与数据一致性。
数据来源
On-chain
- Secure Lock (CheeseLock) contract reads
- Contract events (lock creation, updates, vesting/unlock)
Off-chain (optional)
- Project metadata (branding, descriptions, links)
- Audit token reports and status
索引策略
Event-driven indexing
- Subscribe to contract events.
- Store normalized records keyed by lock id and chain.
State reconciliation
- Periodically reconcile stored state with on-chain reads to handle reorgs or missed events.
UI 一致性要求
- Always link to the source transaction and token/LP address.
- Display lock schedule clearly (single unlock vs vesting).
- Show “remaining” vs “unlocked” amounts.
安全注意事项
- Use official contract addresses only.
- Validate token addresses and beware of impersonation patterns.