Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
791db8b
docs: create organized documentation directory structure
1nonlypiece Aug 10, 2025
46ac689
docs: move API_DOCUMENTATION.md to docs/api/
1nonlypiece Aug 10, 2025
75fda9b
docs: move ATTACK-VECTORS.md to docs/security/
1nonlypiece Aug 10, 2025
85e0c0a
docs: move AUDIT_CHECKLIST.md to docs/security/
1nonlypiece Aug 10, 2025
921abec
docs: move SECURITY_BEST_PRACTICES.md to docs/security/
1nonlypiece Aug 10, 2025
0687e44
docs: move SECURITY_CONSIDERATIONS.md to docs/security/
1nonlypiece Aug 10, 2025
e976e46
docs: move SECURITY_TESTING_GUIDE.md to docs/security/
1nonlypiece Aug 10, 2025
c22d8ab
docs: move GAS_BENCHMARKING.md to docs/gas/
1nonlypiece Aug 10, 2025
a60c0d3
docs: move GAS_CASE_STUDIES.md to docs/gas/
1nonlypiece Aug 10, 2025
252a573
docs: move GAS_COST_ANALYSIS.md to docs/gas/
1nonlypiece Aug 10, 2025
e099597
docs: move GAS_MONITORING.md to docs/gas/
1nonlypiece Aug 10, 2025
d575d65
docs: move GAS_OPTIMIZATION.md to docs/gas/
1nonlypiece Aug 10, 2025
f2ca062
docs: move GAS_TESTING_GUIDELINES.md to docs/gas/
1nonlypiece Aug 10, 2025
82d8a06
docs: move GAS_TROUBLESHOOTING.md to docs/gas/
1nonlypiece Aug 10, 2025
1b0afff
docs: move INCIDENT_RESPONSE.md to docs/operations/
1nonlypiece Aug 10, 2025
2591dda
docs: update README.md to reference new organized documentation struc…
1nonlypiece Aug 10, 2025
6082c04
docs: add contracts documentation directory with TYPES_SYSTEM.md and …
1nonlypiece Aug 10, 2025
1ff4414
docs: remove TYPES_SYSTEM.md from contract folder (moved to docs/cont…
1nonlypiece Aug 10, 2025
4876514
docs: remove VOTING_SYSTEM.md from contract folder (moved to docs/con…
1nonlypiece Aug 10, 2025
e9a7ac5
docs: update docs README.md to include contracts documentation section
1nonlypiece Aug 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 14 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,27 @@ This repository contains smart contracts for Stellar's Soroban platform, organiz

---

## πŸ“š API Documentation
## πŸ“š Documentation

For comprehensive API documentation, including versioning information, integration examples, and troubleshooting guides, please refer to:
For comprehensive documentation, please refer to our organized documentation structure:

**πŸ“– [API_DOCUMENTATION.md](./API_DOCUMENTATION.md)**
**πŸ“– [Documentation Index](./docs/README.md)**

This dedicated documentation file contains:
- **API Versioning**: Semantic versioning, compatibility matrix, upgrade strategies
- **Core API Reference**: Function signatures, parameters, and examples
- **Data Structures**: Complete type definitions and usage
- **Error Codes**: Comprehensive error reference with solutions
- **Integration Examples**: Real-world usage patterns and best practices
- **Troubleshooting Guide**: Common issues and debugging tools
- **Support Resources**: Community channels and getting help
### πŸš€ API Documentation
Complete API reference and integration guides: **[API Documentation](./docs/api/API_DOCUMENTATION.md)**

---
### β›½ Gas Optimization
Performance optimization and cost analysis: **[Gas Documentation](./docs/gas/)**

### πŸ”’ Security
Security audits, best practices, and threat analysis: **[Security Documentation](./docs/security/)**

## ⚑ Gas Optimization Documentation
### πŸ› οΈ Operations
Deployment, maintenance, and incident management: **[Operations Documentation](./docs/operations/)**

---

- Gas Guide and Best Practices: [GAS_OPTIMIZATION.md](./GAS_OPTIMIZATION.md)
- Per-Function Cost Analysis (catalog + templates): [GAS_COST_ANALYSIS.md](./GAS_COST_ANALYSIS.md)
- Benchmarking Procedures: [GAS_BENCHMARKING.md](./GAS_BENCHMARKING.md)
- Testing Guidelines (prevent regressions): [GAS_TESTING_GUIDELINES.md](./GAS_TESTING_GUIDELINES.md)
- Usage Monitoring & Ops: [GAS_MONITORING.md](./GAS_MONITORING.md)
- Case Studies (Predictify-specific): [GAS_CASE_STUDIES.md](./GAS_CASE_STUDIES.md)
- Troubleshooting Guide: [GAS_TROUBLESHOOTING.md](./GAS_TROUBLESHOOTING.md)

These documents provide practical steps to measure, monitor, and reduce fees for Soroban contracts in this repo.

---

Expand Down
1 change: 0 additions & 1 deletion contracts/predictify-hybrid/VOTING_SYSTEM.md

This file was deleted.

79 changes: 79 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# πŸ“š 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

### πŸš€ [API Documentation](./api/API_DOCUMENTATION.md)
Complete API reference for the Predictify Hybrid contract, including:
- Contract functions and their parameters
- Return types and error handling
- Integration examples
- Client usage patterns

### πŸ”’ [Security Documentation](./security/)
Comprehensive security documentation and guidelines:

- **[Attack Vectors](./security/ATTACK-VECTORS.md)** - Known attack vectors and mitigation strategies
- **[Audit Checklist](./security/AUDIT_CHECKLIST.md)** - Security audit requirements and checklist
- **[Security Best Practices](./security/SECURITY_BEST_PRACTICES.md)** - Development and deployment security guidelines
- **[Security Considerations](./security/SECURITY_CONSIDERATIONS.md)** - Important security considerations for the system
- **[Security Testing Guide](./security/SECURITY_TESTING_GUIDE.md)** - Security testing procedures and tools

### β›½ [Gas Optimization Documentation](./gas/)
Complete gas optimization and cost analysis:

- **[Gas Benchmarking](./gas/GAS_BENCHMARKING.md)** - Performance benchmarks and metrics
- **[Gas Case Studies](./gas/GAS_CASE_STUDIES.md)** - Real-world gas optimization examples
- **[Gas Cost Analysis](./gas/GAS_COST_ANALYSIS.md)** - Detailed cost breakdown and analysis
- **[Gas Monitoring](./gas/GAS_MONITORING.md)** - Tools and techniques for monitoring gas usage
- **[Gas Optimization](./gas/GAS_OPTIMIZATION.md)** - Strategies and best practices for gas optimization
- **[Gas Testing Guidelines](./gas/GAS_TESTING_GUIDELINES.md)** - Testing procedures for gas optimization
- **[Gas Troubleshooting](./gas/GAS_TROUBLESHOOTING.md)** - Common gas-related issues and solutions

### πŸ› οΈ [Operations Documentation](./operations/)
Operational procedures and incident management:

- **[Incident Response](./operations/INCIDENT_RESPONSE.md)** - Incident response procedures and protocols

### πŸ“‹ [Contract Documentation](./contracts/)
Implementation-specific documentation for the Predictify Hybrid contract:

- **[Types System](./contracts/TYPES_SYSTEM.md)** - Comprehensive type system and data structures
- **[Voting System](./contracts/VOTING_SYSTEM.md)** - Voting mechanism and dispute resolution

## 🎯 Quick Start

1. **For Developers**: Start with [API Documentation](./api/API_DOCUMENTATION.md)
2. **For Contract Contributors**: Review [Contract Documentation](./contracts/)
3. **For Security Auditors**: Review [Security Documentation](./security/)
4. **For Gas Optimization**: Check [Gas Optimization](./gas/GAS_OPTIMIZATION.md)
5. **For Operations**: Read [Incident Response](./operations/INCIDENT_RESPONSE.md)

## πŸ”— Related Resources

- **[Main Project README](../README.md)** - Project overview and setup instructions
- **[Contracts Directory](../contracts/)** - Source code for all smart contracts
- **[GitHub Repository](https://github.com/your-org/predictify-contracts)** - Source code repository

## πŸ“ 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: $(date)*
*For questions or suggestions about documentation, please open an issue in the repository.*
2 changes: 1 addition & 1 deletion API_DOCUMENTATION.md β†’ docs/api/API_DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const getContractVersion = async (contractId: string): Promise<string> => {
**Documentation:**
- [v1.0.x API Reference](./docs/api/v1.0/)
- [v0.9.x Legacy Docs](./docs/api/v0.9/)
- [Migration Guide v0.9 β†’ v1.0](./docs/migration/v0.9-to-v1.0.md)
- [Migration Guide v0.9 β†’ v1.0](./migration/v0.9-to-v1.0.md)

**Contract Addresses:**
- **v1.0.x Mainnet**: `CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQAHHAGK3HGU`
Expand Down
Loading
Loading