Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
NEAR Blockchain Smart Contract Development
Rating: 4.3 out of 5(82 ratings)
2,729 students

NEAR Blockchain Smart Contract Development

with introduction to Rust language
Created byEugene Luzgin
Last updated 5/2021
English

What you'll learn

  • Rust language overview
  • Overview of NEAR smart contract for fungible token
  • Compile, deploy and interact with smart contract on Near blockchain

Course content

1 section5 lectures51m total length
  • Introduction to Rust language pt. 112:31

    Explore Rust, a safe-by-default language popular for blockchain smart contracts, with memory safety, borrowing rules, and a straightforward setup using Cargo.

  • Introduction to Rust language pt. 211:13

    Explore Rust fundamentals including modules, vectors, hash maps, error handling with panic and Result, traits, file I/O, command line args, and concurrency via threads, channels, and mutexes, plus testing.

  • Overview of NEAR smart contract for fungible token4:42

    Explore a Rust-based Near smart contract for fungible tokens, including account structures, allowances, initialization, transfers, tests, and a testnet deployment with near-sdk setup.

  • Deployment of sample NEAR smart contract on Testnet account9:31

    Learn to deploy a NEAR smart contract on testnet by building with npm, creating example1.testnet, logging in, deploying, and validating token creation, transfers, and escrow operations.

  • Follow instructions from Lecture 2 to compile and deploy smart contract
  • Review of NEAR Blockchain and Ethereum Bridge features13:54

    Explore NEAR blockchain's proof-of-stake efficiency, climate-neutral design, and high-throughput capabilities, and learn how Aurora bridges Ethereum and Near with EVM compatibility and lower gas fees.

Requirements

  • Basic programming experience

Description

Become familiar with Rust language, its main features and syntax.

Topics covered include in Section 1:

  • Rust installation and basics

  • Cargo - build system and package manager

  • Crates and packages

  • Variables, Constants and Mutability

  • Data Types: Scalar and Compound

  • Functions

  • Control Flows: If, Loops, If let

  • Ownership (Scope)

  • References and Borrowing

  • Mutable references

  • Define and initialize Structs

  • Defining and calling methods

  • Defining an Enum

  • The “match” control flow

  • Defining modules

  • Vector and HashMap

  • Recoverable and unrecoverable errors

  • Traits - defining shared behavior (interface)

  • Reading command line arguments

  • Reading a file

  • Printing to standard error - eprintln!

  • Iterator Trait and next method

  • Using Box<T> to store data on the Heap

  • Running code in Threads simultaneously

  • Message passing between Threads

  • Using Mutexes to allow access data on one thread

  • Writing tests

  • Summary with references:

Gentle Introduction to Rust and "The Book" on Rust programming language.

Refer to “The Book” for deeper coverage of each topic and more advanced features.

Section 2 is dedicated to using knowledge obtained in Section 1 to read and understand NEAR smart contract implemented in Rust.

Learn how to create Testnet accounts on Near blockchain using a web wallet.

Learn how to compile and deploy Near smart contract on NEAR Testnet account using Gitpod environment.

Learn how to interact with deployed Near smart contract by using command line commands.

Get hands on experience compiling and deploying a sample counter smart contract on your own account - all in under 20 mins.

Who this course is for:

  • Beginner developers curious about smart contract development