Indexer & explorer
Trang này bổ trợ cho tài liệu Secure Lock bằng cách tập trung vào thiết kế indexer và tính nhất quán dữ liệu.
Nguồn dữ liệu
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
Chiến lược indexing
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.
Yêu cầu nhất quán UI
- Always link to the source transaction and token/LP address.
- Display lock schedule clearly (single unlock vs vesting).
- Show “remaining” vs “unlocked” amounts.
Lưu ý bảo mật
- Use official contract addresses only.
- Validate token addresses and beware of impersonation patterns.