Skip to content

Commit cce82d2

Browse files
authored
Merge branch 'Dapp-Learning-DAO:main' into main
2 parents 0bbf9de + eae2a32 commit cce82d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5223
-183
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ web3工具集锦:<https://www.useweb3.xyz/>
8888
- [Standford Online Course: CS 251 Bitcoin and Cryptocurrencies](https://cs251.stanford.edu/syllabus.html)
8989

9090
其他优质的课程也欢迎提 PR 在此文档[加密课程推荐](./docs/crypto-course.md) 中录入。
91-
我们也成立翻译小组翻译这些公开课程,总结课程笔记,节省小伙伴时间。中文笔记请查看:[MIT课程笔记整理](https://mp.weixin.qq.com/s/Y6fYmqrS9SpEw4Nd0ocUzg)
91+
我们也成立翻译小组翻译这些公开课程,总结课程笔记,节省小伙伴时间。中文笔记请查看:[MIT课程笔记整理](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzAwNTAxMzMzMA==&action=getalbum&album_id=2241099480056119298#wechat_redirect)
9292
对翻译小组感兴趣小伙伴欢迎加入,请关注我们公众号 Dapp-Learning 联系我们。
9393

9494

@@ -132,7 +132,7 @@ DAPP架构请参考文章--[从架构维度看Web2.0与Web3.0应用之别](https
132132
25. [multi-sig-wallet](basic/25-multi-sig-wallet/readme.md)
133133
26. [Quadratic vote & Gitcoin](basic/26-quadratic-vote/README.md)
134134
27. [Arbitrum layer2](basic/27-Arbitrum-layer2/README.md)
135-
28. [Optimism layer2](basic/28-optimism-layer2/readme.md)
135+
28. [Optimism layer2](basic/28-optimism-layer2/readme.md)
136136
29. [Polygon(matic) layer2](basic/29-Polygon(matic)-layer2/readme.md)
137137
30. [zksync layer2](basic/30-zksync-layer2/readme.md)
138138
31. [duneanalytics & nansen](basic/31-dune-analytics-nansen/readme.md)
@@ -143,7 +143,7 @@ DAPP架构请参考文章--[从架构维度看Web2.0与Web3.0应用之别](https
143143
36. [NFT FileCoin](basic/36-nft-ipfs/README.md)
144144
37. [Charm.fi](https://github.com/charmfinance/alpha-vaults-contracts)
145145
38. [Flashbots provider with ethers.js](https://github.com/flashbots/ethers-provider-flashbots-bundle)
146-
39. [Ethlend](https://www.youtube.com/watch?v=Pi-Qva6Fg3I)
146+
39. [Multicall](https://github.com/makerdao/multicall.js)
147147
40. [snapshot](basic/40-snapshot/README.md)
148148
41. [NFT farming](https://superfarm.com/farms)
149149
42. [merkle-distributor airdrop](https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol)
@@ -185,9 +185,15 @@ DAPP架构请参考文章--[从架构维度看Web2.0与Web3.0应用之别](https
185185
开发者可以在开发群里发起项目研究倡议,建立小组,进行协作。
186186

187187
## DeFi 进阶
188-
建议先阅读DEFI经典书籍:
188+
**建议先阅读DEFI经典书籍:**
189189
[How to DeFi](https://assets.coingecko.com/books/how-to-defi/How_to_DeFi_Chinese.pdf)
190190
[How to DeFi:Advanced](https://nigdaemon.gitbook.io/how-to-defi-advanced-zhogn-wen-b/)
191+
**DEFI学习路线图:**
192+
交易 -> 借贷 ->衍生品
193+
可以参考我们学习小组的学习路线图,配合视频学习更佳:
194+
- 交易: uniV1(task13) -> uniV2 -> uniV3 -> CurveV1 -> CurveV2
195+
- 借贷: Aave -> Compound -> Liquity -> Euler
196+
- 衍生品: SNX -> YFI -> Perpetual
191197
01. [UniswapV2](defi/Uniswap-V2/readme.md)
192198
02. [UniswapV3](defi/Uniswap-V3/readme.md)
193199
03. [Compound](defi/Compound/readme.md)

basic/08-hardhat-graph/scripts/deploy.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ async function main() {
2323

2424
const receiver = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266";
2525
console.log("Transfer 50 to receiver ",receiver);
26-
await token.transfer(receiver, 50);
26+
let transferReceipt = await token.transfer(receiver, 50);
27+
await transferReceipt.wait();
2728

2829
// Check the balance of receiver
2930
console.log("Account balance of receiver is: ", (await token.balanceOf(receiver)).toString());
3031

3132

3233
// approve transfer to receiver
33-
await token.approve(receiver, 1000);
34+
let approveRecipt = await token.approve(receiver, 1000);
35+
await approveRecipt.wait();
3436
console.log(`allowance of ${deployer.address} to ${receiver} is `, (await token.allowance(deployer.address,receiver)).toString());
3537
}
3638

basic/11-react-express-hardhat/frontend/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basic/22-zk-snarkjs/readme.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,5 @@ npx snarkjs zkey export soliditycalldata public.json proof.json
141141

142142
## 参考资料
143143

144-
https://learnblockchain.cn/article/1078
145-
https://iden3.io/blog/circom-and-snarkjs-tutorial2.html
146-
https://github.com/iden3/circom/blob/master/TUTORIAL.md
144+
- 创建第一个零知识 snark 电路: https://learnblockchain.cn/article/1078
145+
- circom2 doc:https://docs.circom.io/circom-language/basic-operators/

basic/28-optimism-layer2/.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PRIVATE_KEY=xxxxxxxxxxxxxxxx
2+
INFURA_ID=yyyyyyyy

basic/28-optimism-layer2/.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
.env
3+
coverage
4+
coverage.json
5+
typechain
6+
7+
#Hardhat files
8+
cache
9+
artifacts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity >0.5.0 <0.8.0;
3+
4+
interface DepositeProxy {
5+
6+
function depositETH(uint32 _l2Gas, bytes memory _data) external payable;
7+
}

0 commit comments

Comments
 (0)