这是wuwe1翻译的Solidity文档,基本按照solidity官方文档的顺序翻译,但是添加了诸如EVM和一些和安全相关的一些章节,这些章节会随着我的学习慢慢丰富起来。翻译力求通顺,我尽量做到指代是明确的。我认为不管是针对以太坊生态的安全还是开发的学习,solidity都是很重要的一个工具,solidity本身是对EVM的一层抽象,如果在阅读文档的时候读到了一些和EVM相关的知识无法理解,最好还是先去补充一下EVM的相关知识。
我推荐的EVM学习博客列在下面
- Diving Into The Ethereum VM Part 1 - Introduction to the EVM assembly code.
- Diving Into The Ethereum VM Part 2 - How fixed-length data types are represented.
- Diving Into The Ethereum VM Part 3 - How dynamic data types are represented.
- Diving Into The Ethereum VM Part 4 - How ABI Encodes External Method Calling.
- Diving Into The Ethereum VM Part 5 - The Smart Contract Creation Process
- Diving Into The Ethereum VM Part 6 - How Solidity Events Are Implemented
目前来说,文档翻译自0.8.0
版本的文档,其中每个条目的翻译情况如下
- BASICS 基本信息
- Introduction to Smart Contracts 智能合约简介: 不打算翻译
- Installing the Solidity Compiler 安装solidity编译器: 不打算翻译
- Solidity by Example 例子: 不打算翻译
- LANGUAGE DESCRIPTION 语言描述
- Layout of a Solidity Source File 源文件布局: 可能会翻译
- Structure of a Contract 合约的结构: 可能会翻译
- Types 类型: 完成翻译✅
- Uints and Globally Available Variables 单位和全局可用变量: 完成翻译✅
- Expressions and Control Structures 表达式和控制结构: 完成翻译✅
- Contract 合约: 完成翻译✅
- Inline Assembley 内联汇编: 完成翻译✅
- Cheatsheet: 可能加入notion参考手册大礼包
- Language Grammar 语言语法: 想写编译器的同学自己看吧
- INTERNALS 内部原理
- Layout of State Variables in Storage 状态变量的布局: 完成翻译✅
- Layout of Memory 内存的布局: 完成翻译✅
- Layout of Call Data 调用数据的布局: 完成翻译✅
- Cleaning Up Variables 清理变量: 完成翻译✅
- Source Mapping 源映射: 完成翻译✅
- The Optimiser 优化器: 完成翻译✅
- Contract Metadata 合约元信息: 完成翻译✅
- Contract ABI Specification 合约ABI规范: 完成翻译✅
- ADDITIONAL MATERIAL 额外资料
- Solidity v0.5.0 Breaking Changes: 准备翻
- Solidity v0.6.0 Breaking Changes: 准备翻
- Solidity v0.7.0 Breaking Changes: 准备翻
- Solidity v0.8.0 Breaking Changes: 准备翻
- NatSpec Format: 准备翻
- Security Considerations: 准备翻
- Resources: 不打算翻译
- Using the compiler: 准备翻
- Yul: 准备翻
- Style Guide: 准备翻
- Common Patterns: 准备翻
- List of Known Bugs: 准备翻
- Contributing: 准备翻
- Solidity Brand Guide: 不打算翻译
- Keyword Index: 不打算翻译