# WTF Solidity

我最近在重新学solidity,巩固一下细节,也写一个“Solidity极简入门”,供小白们使用(编程大佬可以另找教程),每周更新1-3讲。

路线图根据本仓库star数量来定:

# 入门

第1讲:三行代码HelloWeb3:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第2讲:数值类型:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第3讲:函数类型 (external/internal/public/private, pure/view, payable):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第4讲:函数输出(returns/return):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第5讲:变量作用域和数据存储 (storage/memory/calldata):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第6讲:数组(array)和结构体(struct):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第7讲:映射(mapping):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第8讲:变量初始值:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第9讲:常量(constant/immutable):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第10讲:控制流和插入排序:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第11讲:构造函数(constructor)和修饰器(modifier):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第12讲:事件(events):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第13讲:继承:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第14讲:抽象合约(abstract)和接口(interface):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第15讲:异常(errors):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

# 进阶

第16讲:函数重载:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第17讲:库合约(library):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第18讲:Import:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第19讲:接收ETH(fallback/receive):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第20讲:发送ETH(transfer/send/call):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第21讲:调用其他合约:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第22讲:Call:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第23讲:Delegatecall:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第24讲:在合约中创建新合约:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第25讲:Create2:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第26讲:删除合约:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第27讲:ABI编码解码:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第28讲:Hash:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第29讲:函数选择器(selector):代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第30讲:Try-Catch:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

# 应用

第31讲:ERC20:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第32讲:代币水龙头:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第33讲:空投:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第34讲:ERC721:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第35讲:荷兰拍卖:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第36讲:Merkle Tree:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第37讲:数字签名:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第38讲:NFT交易所:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第39讲:随机数:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第40讲:ERC1155:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第41讲:WETH:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

第42讲:分账:代码 (opens new window) | 文章 (opens new window) | Mirror (opens new window)

# Topics

# 工具

第1讲:Remix, 最易用的Solidity IDE 【代码 (opens new window)】 【文章 (opens new window)】

第2讲:Infura, 连接链下与链上的桥梁 【文章 (opens new window)】

第3讲:Ganache,搭建本地测试网络 【文章 (opens new window)】

第4讲:Alchemy, 区块链API和节点基础设施 【文章 (opens new window)】

# ERC721

第1讲:ERC721库:Address, Strings, Context 【代码 (opens new window)】 【文章 (opens new window)】

第2讲:ERC721相关接口 【代码 (opens new window)】 【文章 (opens new window)】

第3讲:ERC721主合约 【代码 (opens new window)】 【文章 (opens new window)】

第4讲:BAYC主合约和严重漏洞【代码 (opens new window)】 【文章 (opens new window)】

第5讲:Loot【代码 (opens new window)】 【文章 (opens new window)】

# 合约安全

第1讲:Metamask项目方给Solidity程序员的16个安全建议【代码 (opens new window)】 【文章 (opens new window)】

# WTF贡献者

贡献者是WTF学院的基石

Last Updated: 8/4/2022, 4:00:12 PM