Overview
Foundations
The building blocks of the Compose platform. Master these concepts to unlock the full power of diamond-based smart contract development.
Core Concepts
Understanding these fundamental concepts will help you build robust, scalable smart contract systems with Compose.
AUTHENTICATION
Access control and permission management for your diamond contracts. Learn how to implement role-based access control with composable facets.
FACETS & LIBRARIES
Understanding the core architecture: how facets and libraries work together through shared storage to build powerful systems.
DIAMOND STANDARD
Deep dive into ERC-2535 Diamonds and how Compose leverages this standard for upgradeable, modular smart contracts.
STORAGE PATTERNS
Master the shared storage architecture that enables seamless integration between standard facets and your custom logic.
Advanced Topics
Smart Contract Oriented Programming
Learn the SCOP philosophy: prioritizing readability, simplicity, and composability in your smart contract code.
Security Best Practices
Essential security patterns and practices when building with Compose and the Diamond standard.
We recommend starting with Facets & Libraries to understand the core architecture, then moving to Storage Patterns to see how it all works together.
Why These Matter
The concepts in this section form the foundation of everything you'll build with Compose:
- Authentication ensures your contracts have proper access control
- Facets & Libraries explain how to structure your code
- Diamond Standard provides the underlying architecture
- Storage Patterns enable the shared state that makes it all work
Don't rush through these concepts. Taking time to understand the foundations will make everything else much easier and prevent common mistakes.