# TZ 進度 ## 0104 進度 - [x] UTXO Model vs Account/Balance Model - [x] 側鏈是什麼 - [x] 閃電網路 - [x] AMM - [x] VSCode 環境建置v1 - [x] upload HelloWorld contract ## 0105 進度 - [x] VSCode 環境建置v2(remixd, vscode extension) - [ ] DApp TodoList 教學影片看完並照著做(版本不符,需改寫) https://www.youtube.com/watch?v=coQ5dg8wM2o&t=32s - [x] Remixd -> npm package for remix 介面但是獲取本地合約資料 ## 0106 進度 1630 sync - [x] learning-solidity 1-5 https://github.com/willitscale/learning-solidity - [x] fix DApp TodoList(version bug cause too old) - [x] write test by mocha and chai - [x] migrates contract and related library by use link func ## UnDone - [ ] learning-solidity 6-9 - [ ] solidity leek contract rewrite - [ ] 使用 truffle, ethers.js 重寫一次 todo list - [ ] auto truffle compile when code update - [ ] link list 資料結構 - [ ] a 帳號轉 b 帳號 ### 學習筆記 [learning-solidity note tz](/x1XldjVBQIiVqm5v3sB_tQ) ### 問題 1. 測試鏈有模擬 gwei 的功能嘛? ### 心得 **O:Done, see, observed** 1. 用 mocha, chai 寫測試 2. 部屬合約完整跑過一輪, debug 3. learning solidity 課程 4. 教學本地部屬 5. migrate contract 6. 原本預計進度1-9,但只到5 **R:Feeling** 1. 知道完整開發流程的感覺蠻專業的,可以保持頭腦清楚 2. 擴展未知變成已知,讓之後可以已知推未知 3. 英文苦手,加上版本的關係,進度緩慢 4. 應該可以教的更好 5. 特殊問題,使用google 6. 想要追進度,但是沒體力了 **I:analysis and explain** 1. 這個策略目前正確 2. 策略正確,大家也需要環境建置,我可以先教 3. 堅持影片正常速度播,想要反覆聽,聽懂,然後寫上,發現版本太舊,錯誤,這邊浪費很多時間 4. 對方在過程中會迷失 **D:next step** 1. 上測試鏈前要過testing 2. 早上需要獨處的時間,可以鑽的夠深 3. 先看一遍程式碼,上網爬文,再看影片 4. 先提流程綱要,一邊講解,一邊提示目前進度,等於同時有兩套說明流程在跑 5. 沒體力問題:1830 需要安排一次休息時間,如果還有預計要繼續的話 ## 0107 進度 - [x] learning-solidity 6-9 - [x] learning-solidity-by-example - [x] 轉帳功能(到合約,到其他錢包) # 0110 - 0114 本週規劃 - [x] react typescript 環境建置 - [x] learn solidity by example 完成(進hack) - [x] scaffold-eth-typscript 跑通 - [x] 凍結合約 ## 上週 ORID 1. 環境建置可以暫時不用再優化,以練習語法為主 2. 能解決版本問題的學習資源(已找到) 3. 1000 - 1300 flow time 4. 英文 - version0107.action 先懂概念,再看影片 5. solidity - version0107.action 去除雜訊,刻意練習 ## 0110 進度 - [x] LSBE application 前所有章節 - [x] 影片英文聽力 1600 - 1700 - [x] 本日學習班進度預習 ### Daily scrum - 昨天完成什麼 - 錢包轉帳 - 查看交易內容 - 找學習資源解決版本問題 - 今天預計完成什麼 - LSBE application 前所有章節 - 學習班進度預習 - 遇到什麼問題需不需要其他人協助 ### 問題 ### 心得 **O:Done, see, observed** 1. 看程式碼以及實作今日學習班的練習 **R:Feeling** 1. 直接看程式碼跟上網搜尋比看英文影片快 **I:analysis and explain** 1. 明天開始進實作 **D:next step** ## 0111 進度 - [x] 09 yolo cat article - [x] Homework2 - [x] application https://www.frank.hk/blog/nft-smart-contract/ ### Daily scrum - 昨天完成什麼 - LSBE application 前所有章節 - 影片英文聽力 1600 - 1700 - 本日學習班進度預習 - 今天預計完成什麼 - 09 yolo cat article - https://www.facebook.com/1124191179/videos/352975032907200/ - https://medium.com/@b1995/yolo-cat-%E5%BE%A9%E7%9B%A4-1-956565334642 - LSBE application - Homework2 - 遇到什麼問題需不需要其他人協助 無 ### 問題 1. 快照是什麼? 2. 領取空投代幣之後,有哪些方式可以台升幣價? ### 心得 **O:Done, see, observed** **R:Feeling** **I:analysis and explain** **D:next step** ## 0112 進度 - [x] 今日學習班進度預習 - [x] uniswap 中的 LP token 概念 - https://www.bitwellex.com/article/9128/ - [x] 預言機的概念,可以為智能合約提供外部數據的系統 - https://blog.csdn.net/wuzhengfei1112/article/details/113784102 - https://segmentfault.com/a/1190000022775687 - [x] ERC 827 - https://kknews.cc/zh-tw/finance/qbqombb.html - [x] 狀態機的概念,pure function,上帝協議... - [x] POAP 概念 - https://www.abmedia.io/20210803-how-to-claim-poap-nft ### Daily scrum - 昨天完成什麼 - LSBE application 章節閱讀 - 09 yolo cat article - Homework2 - 今天預計完成什麼 - 實作 Dapp Mint NFT by react-typescrip-eth scaffold https://www.frank.hk/blog/nft-smart-contract/ - LSBE application - 本日學習班進度預習 - 遇到什麼問題需不需要其他人協助 想要詢問問題: 1. 快照是什麼?v 2. 項目方發送空投代幣之後,有哪些方式可以台升幣價?v 3. 需要紙筆 ### 問題 去中心化 -> 分散式帳本 區塊鏈 -> 代幣化 資產具有流動性,可交易性 審計,盡職調查 投資組合估值 token utility ### 心得 **O:Done, see, observed** **R:Feeling** **I:analysis and explain** **D:next step** ## 0113 進度 - [x] 預言機的應用場景 - https://cypherpunks-core.github.io/ethereumbook_zh/12.html - [x] scaffold https://docs.scaffoldeth.io/scaffold-eth/getting-started/quick-start - [x] ChainLink 原理 - https://upyun-assets.ethfans.org/posts/chainlink-oracle-basics - https://upyun-assets.ethfans.org/posts/chainlink-oracle-basics - https://blog.csdn.net/ChainlinkO/article/details/112799366 - https://zhuanlan.zhihu.com/p/107468462 - [x] DelegateCall: Calling Another Contract Function in Solidity https://iter01.com/356222.html ### Daily scrum - 昨天完成什麼 - 學習班進度預習 - uniswap 中的 LP token 概念: 給在 AMM 協定上運行的去中心化交易所(DEX)的流動性提供者發行的代幣,本來中心化是用 order book 機制 - https://www.bitwellex.com/article/9128/ - 預言機的概念,可以為智能合約提供外部數據的系統 - https://blog.csdn.net/wuzhengfei1112/article/details/113784102 - https://segmentfault.com/a/1190000022775687 - ERC 827:更省的ERC20 - https://kknews.cc/zh-tw/finance/qbqombb.html - 狀態機的概念,pure function,上帝協議... - POAP 概念 - https://www.abmedia.io/20210803-how-to-claim-poap-nft - 今天預計完成什麼 - [x] scaffold 跑一次 https://docs.scaffoldeth.io/scaffold-eth/getting-started/quick-start - [x] ChainLink 原理 - https://upyun-assets.ethfans.org/posts/chainlink-oracle-basics - https://blog.csdn.net/ChainlinkO/article/details/112799366 - https://zhuanlan.zhihu.com/p/107468462 - [ ] DelegateCall: Calling Another Contract Function in Solidity https://medium.com/coinmonks/delegatecall-calling-another-contract-function-in-solidity-b579f804178c - [ ] OpenZeppelin - Writing Upgradeable Contracts - 遇到什麼問題需不需要其他人協助 ### 筆記 [ChainLink 原理](/hlGBI4OtRC6tfwlZERF9EQ) [Solidity - 調用其他合約機制](/LjcvQGutQAS-tBYtAW0RiA) [Solidity - 撰寫可升級合約](/F5DAG8g9QQ-MXxMlFO4xWA) ### 問題 ### 心得 **O:Done, see, observed** **R:Feeling** **I:analysis and explain** **D:next step** ## 0114 進度 ### Daily scrum - 昨天完成什麼 - eth-scaffold 跑一次 - ChainLink 原理 - DelegateCall: Calling Another Contract Function in Solidity - OpenZeppelin - Writing Upgradeable Contracts [ChainLink 原理](/hlGBI4OtRC6tfwlZERF9EQ) [Solidity - 調用其他合約機制](/LjcvQGutQAS-tBYtAW0RiA) [Solidity - 撰寫可升級合約](/F5DAG8g9QQ-MXxMlFO4xWA) - 今天預計完成什麼 - OpenZeppelin - Proxy mode https://medium.com/coinmonks/delegatecall-calling-another-contract-function-in-solidity-b579f804178c - Upgrade smart contract: https://www.youtube.com/watch?v=bdXJmWajZRY https://www.youtube.com/watch?v=bdXJmWajZRY - 今日学习班进度 - Compound - Curve - Uniswap - MakerDAO - 使用 uniswap kovan 換取 DAI - IPFS 的工作原理 - 使用 openzeppelin wizard 客製 ERC721 合約部署到 rinkeby ,並且 mint nft - 在 opensea testnet 看到自己的 nft 。( 每個 transaction 需在 etherscan 觀察 ) - 遇到什麼問題需不需要其他人協助 ### 筆記 [ChainLink 原理](/hlGBI4OtRC6tfwlZERF9EQ) [Solidity - 調用其他合約機制](/LjcvQGutQAS-tBYtAW0RiA) [Solidity - 撰寫可升級合約](/F5DAG8g9QQ-MXxMlFO4xWA) ### 問題 ### 心得 **O:Done, see, observed** **R:Feeling** **I:analysis and explain** **D:next step** ## 0117 進度 ### Daily scrum - 昨天完成什麼 - OpenZeppelin - Proxy mode https://medium.com/coinmonks/delegatecall-calling-another-contract-function-in-solidity-b579f804178c - Upgrade smart contract: https://www.youtube.com/watch?v=bdXJmWajZRY https://www.youtube.com/watch?v=bdXJmWajZRY - 今日学习班进度 - 使用 uniswap kovan 換取 DAI - IPFS 的工作原理 - 使用 openzeppelin wizard 客製 ERC721 合約部署到 rinkeby ,並且 mint nft - 在 opensea testnet 看到自己的 nft 。( 每個 transaction 需在 etherscan 觀察 ) - 今天預計完成什麼 作業 - 荷蘭式拍賣 明天 Eric 的 office hours upgradeable contract by proxy mode of UUPS https://forum.openzeppelin.com/t/uups-proxies-tutorial-solidity-javascript/7786 https://hackmd.io/@ChiHaoLu/HymtJS_oF https://www.youtube.com/watch?v=kWUDTZhxKZI ### 筆記 <!-- chainshot --> ### 問題 ### 心得 **O:Done, see, observed** **R:Feeling** **I:analysis and explain** **D:next step** ## 0118 進度 ### Daily scrum - 昨天完成什麼 - eth-scaffold-typescript 了解使用的hook, 如何操作合約方法 - 學習班課程預習 - 今天預計完成什麼 作業 - 荷蘭式拍賣 Eric 的 office hours ### 筆記 <!-- chainshot --> [工具使用 typechain](https://github.com/dethcrypto/TypeChain) [upgradeable contract by proxy mode of UUPS](https://forum.openzeppelin.com/t/uups-proxies-tutorial-solidity-javascript/7786 ) [All in One Solidity](https://hackmd.io/@ChiHaoLu/HymtJS_oF) [Office Hour 2](https://www.youtube.com/watch?v=kWUDTZhxKZI) ### 問題 ### 心得 **O:Done, see, observed** **R:Feeling** **I:analysis and explain** **D:next step** ## Idea TODO - 自動生成合約,結束銷燬 - https://solidity-by-example.org/new-contract/ - 預言機 ## 專案發想 1. 偷跑 Mint Pool 2. SolidCademy DAO - 補充防禦說明,獲得貢獻點,空投 - NFT 白名單 ## TEMPLATE [scaffold-eth-typescript](https://github.com/scaffold-eth/scaffold-eth-typescript) ## 0111 進度 - [ ] ### Daily scrum - 昨天完成什麼 - 今天預計完成什麼 - 遇到什麼問題需不需要其他人協助 ### 問題 ### 心得 **O:Done, see, observed** **R:Feeling** **I:analysis and explain** **D:next step** ## UnDone Solidity 安全:已知攻擊方法和常見防禦模式綜合列表 https://iter01.com/356222.html UniswapV2核心合約學習(1)— UniswapV2Factory.sol https://www.gushiciku.cn/pl/p3Nb/zh-tw Uniswap 白皮书(中文版) https://hearrain.com/uniswap-bai-pi-shu-zhong-wen-ban Uniswap 白皮书(英文版) https://hackmd.io/@HaydenAdams/HJ9jLsfTz ### 學習筆記 [learning-solidity note tz](/x1XldjVBQIiVqm5v3sB_tQ) ### 問題 -[tz 0103-0107週報](/MDyIBH_UQY-d1wm5SnRtQg) ## TODO 專案 NFT 產生 Mint NFT Dapp 猜拳 ## 學習資源 --- ### truffle react typescript boilerplate `git clone https://github.com/YutaSugimura/truffle-react-typescript.git` ### Ethereum Smart Contract Best Practices https://consensys.github.io/smart-contract-best-practices/general_philosophy/ - [learning-solidity](https://github.com/willitscale/learning-solidity) - [smart-contract-best-practices](https://github.com/ConsenSys/smart-contract-best-practices) asdf