Cheatsheet for Cairo smart contract language based on Cairo book. Consider reading the Book for yourself to learn more and better, may read this if need to refresh forgotten or understand some syntax features quickly.
- Variables, Data Types, Functions, Comments, Control Flow
- Arrays and Dictionaries
- Ownership
- Using Structs to Structure Related Data
- Enums and Pattern Matching
- Managing Cairo Projects with Packages, Crates and Modules
- Generic Types and Traits
- Error Handling
- Testing Cairo Programs
- Advances Cairo Features
- Starknet Smart Contracts
- Starknet Cross-Contract interactions
- Advanced Starknet Smart Contracts
- Starknet Smart Contracts Security