Skip to content

Commit 711160a

Browse files
committed
Add study notes for 2025-08-15
1 parent 93f4da1 commit 711160a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Plato333.md

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

1717
<!-- Content_START -->
18+
# 2025-08-15
19+
20+
今天学习了有关接口合约的知识:
21+
ERC20 代币标准:通过接口定义了 transfer、balanceOf 等函数,所有 ERC20 代币合约都实现这些函数,因此可以被交易所、钱包等统一处理。
22+
solidity
23+
interface IERC20 {
24+
function totalSupply() external view returns (uint256);
25+
function balanceOf(address account) external view returns (uint256);
26+
function transfer(address recipient, uint256 amount) external returns (bool);
27+
}
28+
这个合约任何实现了 IERC20 接口的代币,都能在支持 ERC20 的平台上通用。
29+
1830
# 2025-08-14
1931

2032
今天听了知识分享会收获很多,之后自己去深入了解了一下uinswapv1-v4的相关机制,然后就是本地部署了Hardhat。

0 commit comments

Comments
 (0)