# 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