Substrate學(xué)習(xí)涉及到的東西非常多,而且官網(wǎng)的學(xué)習(xí)思路自我感覺不是很明確矾兜,經(jīng)過一段時(shí)間的閱讀峡谊,現(xiàn)總結(jié)一下學(xué)習(xí)的思路恤煞;具體如下:
Rust學(xué)習(xí)
The Rust Programming Language:https://doc.rust-lang.org/book/
中文翻譯: https://kaisery.github.io/trpl-zh-cn/
Rust by Example:https://doc.rust-lang.org/rust-by-example/
中文翻譯: https://rustwiki.org/zh-CN/rust-by-example/
cargo:https://doc.rust-lang.org/cargo/index.html
Substate學(xué)習(xí)
1.https://substrate.dev/docs/en/getting-started/
2.https://substrate.dev/en/tutorials
其中【1.】和【2.】的內(nèi)容是相互關(guān)聯(lián)的趾撵,
但是【2.】中的Demo學(xué)習(xí)思路不是很明確侄柔,只是有Easy,Medium以及時(shí)間的分類占调;看到的時(shí)候感覺沒有什么關(guān)聯(lián)暂题,問了一下學(xué)習(xí)的朋友,以及將大部分文檔閱讀完究珊,總結(jié)如下:Substrate主要包括Runtime薪者,Smart Contract ,F(xiàn)ront-end三部分苦银;
Running a Network
1 - Start a Private Network with Substrate
https://substrate.dev/docs/en/tutorials/start-a-private-network-with-substrate
Runtime Development
1- Creating Your First Substrate Chain
https://substrate.dev/docs/en/tutorials/creating-your-first-substrate-chain
2- Substrate Verifiable Credentials Workshop
https://substrate.dev/substrate-verifiable-credentials/#/
3- Substrate Collectables Workshop
https://substrate.dev/substrate-collectables-workshop/
4- Substrate Token Curated Registry
https://substrate.dev/docs/en/tutorials/tcr/
5- Write a Runtime Module in its Own Crate(創(chuàng)建一個(gè)單獨(dú)的可復(fù)用的Module)
https://substrate.dev/docs/en/tutorials/creating-a-runtime-module
6- UTXO Workshop(UTXO模型實(shí)現(xiàn))
https://github.com/substrate-developer-hub/utxo-workshop
7- Adding a Module to Your Runtime(合約模塊)
https://substrate.dev/docs/en/tutorials/adding-a-module-to-your-runtime
備注:
其中【1,2赶站,3幔虏,4】都是Runtime相關(guān)的內(nèi)容實(shí)現(xiàn),包含了實(shí)現(xiàn)Runtime的必要步驟贝椿;【5想括,6,7】的關(guān)聯(lián)性不是很強(qiáng)烙博;
【4】TCR的實(shí)現(xiàn)瑟蜈,需要完全理解TCR是什么東西烟逊,才能更好的去理解和閱讀代碼;如果對(duì)TCR不感興趣铺根,可以先不看宪躯。
【5】可復(fù)用Runtime的Demo
【6】用substrate實(shí)現(xiàn)了UTXO的模型
【7】合約相關(guān)Module的實(shí)現(xiàn)
Smart Contract Development
1.Writing Your First Contract
https://substrate.dev/docs/en/tutorials/creating-your-first-contract
2.Deploying Your First Contract
https://substrate.dev/docs/en/contracts/deploying-a-contract
3.Substrate Contracts Workshop
https://substrate.dev/substrate-contracts-workshop/#/
Front-end Development
1.Build a Front-end with Polkadot-js API
https://substrate.dev/docs/en/tutorials/substrate-front-end/
有更好的思路和建議,請(qǐng)留言位迂;