• Post category:StudyBullet-10
  • Reading time:8 mins read


Build a Cargo unit test for transfer in Rust contract

What you will learn

01 Build a Cargo unit test to get total supply in Rust contract

02 Build a unit test for counter Rust smart contract with Cargo

03 Build unit tests for chatboard Rust smart contract with Cargo

04 Build unit tests for fungible cryptocurrency token Rust smart contract with Cargo

Description

What is the NEAR blockchain?

  • built to be simple, secure and scalable.
  • Low cost. High speed. Effortless scale.
  • <0.01USD Transaction Cost
  • 18M+ Active Accounts
  • 400K Daily Transactions
  • ~2.4s Time to Finality
  • Contracts, DAOs, dapps, funding
  • Layer 1 blockchain

    not dependent on other chains.

uses a unique scaling mechanism

  • Nightshade sharding
  • Scales infinitely
  • resists short-term usage spikes

Proof of stake

  • More efficient than Bitcoin and Ethereum

web-based wallet

  • no need for users to install programs or browser extensions
  • makes it especially easy to onboard new users (e.g. through named accounts)

Certified carbon neutral

  • consumes in a year the same energy bitcoin consumes in 3 minutes

Interoperable with Ethereum

  • using Rainbow Bridge

Your Instructor

Alexandra Kropova is a software developer with extensive experience in smart contract and decentralized app development. She has helped produce courses for Mammoth Interactive since 2016, including many blockchain and Web3 courses.


Get Instant Notification of New Courses on our Telegram channel.


Mammoth Interactive is a leading online course provider in everything from learning to code to becoming a YouTube star. Mammoth Interactive courses have been featured on Harvard’s edX, Business Insider and more.

Over 11 years, Mammoth Interactive has built a global student community with 1.1 million courses sold. Mammoth Interactive has released over 250 courses and 2,500 hours of video content.

Founder and CEO John Bura has been programming since 1997 and teaching since 2002. John has created top-selling applications for iOS, Xbox and more. John also runs SaaS company Devonian Apps, building efficiency-minded software for technology workers like you.

Join 1.3+ million students in high-quality courses featured at Harvard

  • Lifetime access that never expires
  • Project-based curriculum to superboost your portfolio
  • Graduation certificate for every course
  • Absolute beginner-friendly
  • 90% off today
  • Use any computer
  • Satisfaction guarantee
  • Get all source code
  • Popular bundle by Mammoth students
  • Perfected over years of training

Reviews from the Mammoth Community

“This is AMAZING I just learned how to code without breaking a sweat, this is really easy and fun!” -Shalonda Lewis

“This course so far is by far amazing! The instructor is very encouraging and up beat.” -Moiz Saqib

“It was informative and definitely covered the basics. Easy to understand and to follow.” -Colin Mooney

English
language

Content

Introduction

00 Project Preview

00b Mammoth Interactive Courses Introduction

00 About Mammoth Interactive
01 How To Learn Online Effectively

00c (Prerequisite) Blockchain and Smart Contracts Overview

00 Blockchain Introduction
02 What is a Smart Contract
03 What is the NEAR blockchain

00d (Prerequisite) Command Line Fundamentals

01 Why All Developers Need To Know The Command Line
02 Install Linux Command Line On Windows
03 What Are Linux And Unix Terminals
01 Build Your First Command In The Command Line
02 Navigate Directories In The Command Line
03 Build And Edit A New File In The Command Line
04 Move Files In The Command Line

00e (Prerequisite) Install Node and npm

00 What Is Node JS
01 Install Node And NPM On Mac Or Windows
02 How to Install Node and NPM on Windows

00e1 (Prerequisite) Build a Hello World NEAR smart contract with Rust

00 What is Rust
01 Set Up NEAR Smart Contract Project with Rust
02 Build a Hello World Rust smart contract

00e2 (Prerequisite) Rust programming fundamentals for NEAR smart contracts

01 Rust String vs str explained
02 What is a Rust struct with attributes
03 What is Rust Default trait
04 What is mut in Rust

00f Install curl (for Mac or Linux Unix Terminals only)

01 Install curl

00g (Prerequisite) Install Rust and Cargo

00 Install Rust and Cargo on Mac (Bash and ZShell) or Windows

Build simple unit tests for greeting Rust smart contract with Cargo

01 Test a greeting Rust contract

Build unit tests for counter Rust smart contract with Cargo

01 Build a unit test to get state of Rust contract
02 Build Cargo unit test to change state of Rust contract

Build unit tests for chatboard Rust smart contract with Cargo

01 Build a unit test to get total message length in Rust contract
02 Build a unit test to add entry to Vec in Rust contract

Build unit tests for fungible cryptocurrency token Rust smart contract w/ Cargo

01 Build a Cargo unit test to get total supply in Rust contract
02 Build a Cargo unit test to get balance of account in Rust contract
03 Build a Cargo unit test for transfer in Rust contract