Skip to content

Commit d9430e0

Browse files
committed
Add study notes for 2025-08-15
1 parent 95e03fc commit d9430e0

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Weipi666.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,46 @@ timezone: UTC+8
1515
## Notes
1616

1717
<!-- Content_START -->
18+
# 2025-08-15
19+
20+
# ==============================================
21+
# Solidity 智能合约开发完全指南 - 知识点速查手册
22+
# ==============================================
23+
24+
"1. 基础概念"
25+
"-----------------------------------------"
26+
"智能合约 | 运行在区块链上的自执行代码"
27+
"EVM | 以太坊虚拟机执行环境"
28+
"Gas | 执行操作的计算费用单位"
29+
"ABI | 应用二进制接口规范"
30+
""
31+
32+
"2. 合约结构要素"
33+
"-----------------------------------------"
34+
"SPDX许可证标识 | // SPDX-License-Identifier: MIT"
35+
"pragma声明 | 编译器版本要求"
36+
"状态变量 | 持久化存储在链上的数据"
37+
"构造函数 | 初始化合约状态"
38+
"事件日志 | 可索引的链上记录"
39+
"函数修饰器 | 可复用的前置条件检查"
40+
""
41+
42+
"3. 数据类型系统"
43+
"-----------------------------------------"
44+
"值类型: bool, uint/int, address, bytes, enum"
45+
"引用类型: array, struct, mapping, string"
46+
"特殊类型: function, bytes calldata"
47+
"存储位置: storage, memory, calldata"
48+
""
49+
50+
"4. 函数关键特性"
51+
"-----------------------------------------"
52+
"可见性: public, private, internal, external"
53+
"状态修饰: pure, view, payable"
54+
"函数选择器: bytes4(keccak256('func(params)'))"
55+
"回退函数: fallback(), receive()"
56+
""
57+
1858
# 2025-08-13
1959

2060
# 智能合约开发 | Web3 实习手册笔记

0 commit comments

Comments
 (0)