Skip to content

Latest commit

Β 

History

History
110 lines (75 loc) Β· 5.8 KB

File metadata and controls

110 lines (75 loc) Β· 5.8 KB

πŸ“š Predictify Contracts Documentation

Welcome to the Predictify Contracts documentation! This directory contains comprehensive documentation for the Predictify Hybrid prediction market smart contract system.

πŸ“ Documentation Structure

Complete API reference for Predictify Hybrid contract, including:

  • Contract functions and their parameters
  • Return types and error handling
  • Integration examples
  • Client usage patterns
  • ReflectorAsset Coverage Matrix - Comprehensive asset testing and validation
  • Token and Asset Management - Multi-asset and SAC Token support documentation
  • Query Implementation Guide - Paginated query API, PagedResult<T>, security notes, and integrator quick-start

Comprehensive security documentation and guidelines:

Complete gas optimization and cost analysis:

Operational procedures and incident management:

Implementation-specific documentation for the Predictify Hybrid contract:

Claim idempotency and payout tracking:

🎯 Quick Start

  1. For Developers: Start with API Documentation
  2. For Dashboard Integrators: Review Dashboard Statistics Queries in the Query Implementation Guide
  3. For Contract Contributors: Review Contract Documentation
  4. For Security Auditors: Review Security Documentation
  5. For Gas Optimization: Check Gas Optimization
  6. For Operations: Read Incident Response

πŸ“Š Dashboard Statistics Queries

NEW: The Query Implementation Guide now includes comprehensive Dashboard Statistics Queries with:

  • Platform-Level Aggregates - get_dashboard_statistics() for TVL, active users, and total metrics
  • Per-Market Metrics - get_market_statistics() for consensus strength and volatility
  • Category Analytics - get_category_statistics() for filtered market data
  • User Leaderboards - get_top_users_by_winnings() and get_top_users_by_win_rate() for rankings

All response types use stable V1 versioning for forward compatibility without breaking changes.

Use cases: Dashboard display, analytics filtering, leaderboard rendering, TVL tracking

πŸ”— Related Resources

πŸ“ Contributing to Documentation

When adding new documentation:

  1. Choose the appropriate category based on the content type
  2. Follow the naming convention (UPPERCASE_WITH_UNDERSCORES.md)
  3. Update this index to include the new document
  4. Add cross-references to related documents where appropriate

🏷️ Documentation Categories

  • API: Contract interfaces, function references, and integration guides
  • Contracts: Implementation-specific documentation for contract systems
  • Security: Security audits, best practices, and threat analysis
  • Gas: Performance optimization, cost analysis, and monitoring
  • Operations: Deployment, maintenance, and incident management

Last updated: 2026-03-30 For questions or suggestions about documentation, please open an issue in the repository.