How el-tumero/graviola works
Main Components
a) Frontend Layer:
• React-based web application (indicated by the frontend/src structure)
• Redux state management (frontend/src/redux)
• Key features: NFT generation, voting system, keywords management
• Web3 integration components (frontend/src/web3.ts)
b) Smart Contract Layer:
• GraviolaCollection Contract
• GraviolaGenerator Contract
• GraviolaSeasonsArchive Contract
• Governance system (contracts/src/Graviola/seasons/governor)
c) External Services:
• ORA.io Integration (OAO for generation proofs)
• Stable Diffusion API
• IPFS for NFT storage
• Arbitrum One Sepolia network
[User Interface Layer]
• ↕
[Smart Contract Layer]
• ↕
[External Services Layer]
Component Relationships
• User interactions with the frontend
• Frontend interactions with smart contracts
• Smart contract interactions with external services
• Data flow for NFT generation and storage
Detailed Components
Frontend Section:
• Main pages (Generate, Voting, Keywords, etc.)
• Redux store
• Web3 connection handler
• Component hierarchy
Smart Contract Section:
• Contract interactions
• Governance system
• Archive system
• Generator logic
External Services Section:
• ORA.io integration
• IPFS storage
• Blockchain network
Technical Details
• Arbitrum One Sepolia testnet integration
• Smart contract addresses
• Key interfaces between components
• State management flow
• Authentication points
Remember to emphasize the unique aspects of Graviola, such as:
• The on-chain Stable Diffusion integration
• Proof of generation system through ORA
• The seasonal governance structure
• The keyword management system
This will create a comprehensive yet understandable representation of the Graviola system architecture that can be used for both development reference and system understanding.