إنتقل إلى المحتوى الرئيسي

المفهرسات والمستكشفات

تكمل هذه الصفحة مرجع 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.

متطلبات اتساق الواجهة

  • 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.