/WTF-Cairo

WTF Cairo Tutorials, learn to write smart contracts on Starknet. Based on Cairo 1.0.

Primary LanguageCairoMIT LicenseMIT

WTF Cairo

We are learning Cairo, and writing WTF Cairo Tutorials for Starknet newbies. The tutorials are based on Cairo 1.0. We support both English and 中文.

Twitter: @0xAA_Science@WTFAcademy_

WTF Academy Community:DiscordWechatWebsite


Intro

Chapter 1:Hello Cairo:【Code】|【Tutorial】|【教程

Chapter 2:Primitive Types 基础数据类型:【Code】|【Tutorial】|【教程

Chapter 3: Local and Storage Variables 局部和状态变量:【Code】|【Tutorial】|【教程

Chapter 4: Varible Mutability 变量可变性:【Code】|【Tutorial】|【教程

Chapter 5: Function 函数:【Code】|【Tutorial】|【教程

Chapter 6: Tuple 元组:【Code】|【Tutorial】|【教程

Chapter 7: Array 数组:【Code】|【Tutorial】|【教程

Chapter 8: Struct 结构体:【Code】|【Tutorial】|【教程

Chapter 9: Enum 枚举:【Code】|【Tutorial】|【教程

Chapter 10: Mapping 映射:【Code】|【Tutorial】|【教程

Chapter 11: Control Flow 控制流:【Code】|【Tutorial】|【教程

Chapter 12: Pattern Matching 模式匹配:【Code】|【Tutorial】|【教程

Chapter 13: Option:【Code】|【Tutorial】|【教程

Chapter 14: Type Conversion:【Code】|【Tutorial】|【教程

Chapter 15: Constructor 构造函数:【Code】|【Tutorial】|【教程

Chapter 16: Events 事件:【Code】|【Tutorial】|【教程

Chapter 17: Error Handling 异常处理:【Code】|【Tutorial】|【教程

Chapter 18: Ownership I Scope 范围:【Code】|【Tutorial】|【教程

Chapter 19: Ownership II Move 移动:【Code】|【Tutorial】|【教程

Chapter 20: Ownership III Preserve 保留所有权:【Code】|【Tutorial】|【教程

Chapter 21: Ownership IV Reference 引用:【Code】|【Tutorial】|【教程

Chapter 22: Ownership V Snapshot 快照:【Code】|【Tutorial】|【教程

Chapter 23: Trait & Implementation 特质和实现:【Code】|【Tutorial】|【教程

WTF Cairo Contributors

Contributors are the Basis of WTF Academy

Reference

  1. Cairo Docs
  2. Starkling Cairo1
  3. Starknet Cairo 101
  4. Cairo tutorial by Starknet Africa Edu
  5. Rust Book
  6. Cairo Book