From 42d9bf64b8c5df3b39f26dbe94c021b1c082d530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Thu, 28 Nov 2024 10:04:53 +0200 Subject: [PATCH] add learning-rust section --- chapters/rust/content/cryptozombies.md | 11 +++++++++++ chapters/rust/content/rust.md | 16 ++++++++++++++++ chapters/rust/content/tour-of-rust.md | 15 +++++++++++++++ chapters/smart-contracts/lab/content/neversea.md | 2 -- config.yaml | 6 ++++++ 5 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 chapters/rust/content/cryptozombies.md create mode 100644 chapters/rust/content/rust.md create mode 100644 chapters/rust/content/tour-of-rust.md diff --git a/chapters/rust/content/cryptozombies.md b/chapters/rust/content/cryptozombies.md new file mode 100644 index 00000000..cdd25ed0 --- /dev/null +++ b/chapters/rust/content/cryptozombies.md @@ -0,0 +1,11 @@ +# CryptoZombies + +CryptoZombies is an interactive and gamified platform designed to teach blockchain and Smart Contract development using the Rust or Solidity programming language. +It uses a series of coding lessons where you will build your own blockchain-based zombie-themed game step by step. +Each lesson adds elements to a zombie game, making the learning process engaging and fun. + +Please follow the [MultiversX CryptoZombie](https://cryptozombies.io/en/multiversx) tutorial. + +## Bonus + +If you wish to learn [other blockchains](https://cryptozombies.io/en/course), please follow courses for Solidity, Optimism, zkSync, Tron, Chainlink, etc. \ No newline at end of file diff --git a/chapters/rust/content/rust.md b/chapters/rust/content/rust.md new file mode 100644 index 00000000..f02dca5f --- /dev/null +++ b/chapters/rust/content/rust.md @@ -0,0 +1,16 @@ +# Learning Rust and Rust in Smart Contracts + +## Objectives +In this section you will learn about Rust: +* The Basics; +* Basic Control Flow; +* Basic Data Structure Types; +* Generic Types; +* Ownership & Borrowing Data; +* Object Oriented Programming - Traits; +* Cryptozombies - learn SC development via an interactive and gamified platform. + + +There will be 2 approaches: +1. Tour of Rust - a step by step guide through the features of the Rust programming language; +2. Cryptozombies - learn Rust and Smart Contract programming in a fun and easy way; \ No newline at end of file diff --git a/chapters/rust/content/tour-of-rust.md b/chapters/rust/content/tour-of-rust.md new file mode 100644 index 00000000..33c8a9c6 --- /dev/null +++ b/chapters/rust/content/tour-of-rust.md @@ -0,0 +1,15 @@ +# Tour of Rust + +In this section you will learn Rust via [Tour of Rust](https://tourofrust.com/index.html) tutorial. +You can find this guide in multiple languages including English and Romanian. + +The following sections are useful for Smart Contract programming: +* Chapter 1 - [The Basics](https://tourofrust.com/chapter_1_en.html); +* Chapter 2 - [Basic Control Flow](https://tourofrust.com/chapter_2_en.html); +* Chapter 3 - [Basic Data Structure Types](https://tourofrust.com/chapter_3_en.html); +* Chapter 4 - [Generic Types](https://tourofrust.com/chapter_4_en.html); +* Chapter 5 - [Ownership & Borrowing Data](https://tourofrust.com/chapter_5_en.html); +* Chapter 7 - [Object Oriented Programming](https://tourofrust.com/chapter_7_en.html) (Traits). + +We recommend going through the whole [Tour of Rust](https://tourofrust.com/index.html) tutorial. +Moreover, to fully understand the Rust Progamming Language, please go through the [Rust Programming Language book](https://doc.rust-lang.org/book/). \ No newline at end of file diff --git a/chapters/smart-contracts/lab/content/neversea.md b/chapters/smart-contracts/lab/content/neversea.md index 427cecf0..1e277a89 100644 --- a/chapters/smart-contracts/lab/content/neversea.md +++ b/chapters/smart-contracts/lab/content/neversea.md @@ -72,8 +72,6 @@ Add a `update_registration_fees` endpoint where the owner can update the fee. Us * BONUS: Create a feature to enable 50% discount vouchers for friends and partners. Create a list of hardcoded discount codes. Create a new endpoint that receives a discount code as a parameter and registers a user with 50% discount. - - --- **Hint** diff --git a/config.yaml b/config.yaml index e2f8d858..5654b646 100644 --- a/config.yaml +++ b/config.yaml @@ -110,6 +110,12 @@ docusaurus: - Neversea SC: neversea.md extra: - ../media/ + - Learning Rust: + path: chapters/rust/content + subsections: + - Objectives: rust.md + - Tour of Rust: tour-of-rust.md + - CryptoZombies: cryptozombies.md - Observer: path: chapters/introduction/lab/content/observer/ extra: