基础常识
White Papers & Yellow Papers
Avalanche
- WhitePaper
- Consensus
- Snowball
- DAG
- 有一个坑:
- https://docs.avax.network/build/tutorials/platform/create-a-local-test-network/
- Avash is Deprecated. 不要用Avash!!!!
- 用这个 https://docs.avax.network/build/tools/network-runner/
- Postman Collection
- Start local network with Avalanche go
avalanchego --network-id=local --staking-enabled=false --snow-sample-size=1 --snow-quorum-size=1
Deco
参考资料
- 参考书目
- 《精通以太坊》Gavin Wood
- 《以太坊Solidity—智能合约开发》
- 参考视频
- Youtuber Finematics
- 《北大肖臻区块链公开课》— B站
学习路径
JavaScripts
Solidity Basics
- https://www.youtube.com/watch?v=M576WGiDBdQ 从开头到Fund Me看完,我们要用hardhat所以视频里介绍的brownie部分不用学
Hardhat + Ethers.js
- Hardhat Documentation: https://hardhat.org/getting-started/
- Full Stack Ethereum Development/Depp : https://www.youtube.com/watch?v=a0osIaAOFSE
- Upgrade with Hardhat: https://www.youtube.com/watch?v=huTX9pO8gPw
- Testing with Hardhat : https://www.youtube.com/watch?v=0r7mgJTeoD0&t=5s
OpenZeppelin
- ERC20Upgrade
- ERC721
- Upgradeable Contracts
- Transparent Proxies
Data Structures
Gas Optimization
踩过的坑
- 遇到问题尽量自己google解决
- yarn下载时需要在terminal里copy shell command翻墙
- ethersjs不要用callStatic!!!其实只是模拟调用,并没有改变链的状态,在运行中出错了也没有错误提示,根本找不到在哪里
- no
await
whenexpect.to.be.reverted
- 视频3hr10min的withdraw函数代码书写有误,需要在前面加上payable.