Unit Testing Smart Contracts With Javascript For Near

Posted By: ELK1nG

Unit Testing Smart Contracts With Javascript For Near
Published 10/2022
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 3.84 GB | Duration: 9h 24m

Automated testing of call and view methods in smart contract

What you'll learn
01 Test a greeting smart contract
02 Test a counter smart contract
03 Test a chat smart contract
04 Test a fungible token smart contract
05 Test NFT NEAR smart contract with Ava JS
06 Test question answer smart contract with automated unit tests
07 Test social media smart contract
Requirements
Code editor (free)
No paid software required
No cryptocurrency required
No experience required
Description
What is the NEAR blockchain?built to be simple, secure and scalable. Low cost. High speed. Effortless scale. <0.01USD Transaction Cost18M+ Active Accounts400K Daily Transactions~2.4s Time to Finality  Contracts, DAOs, dapps, fundingLayer 1 blockchainnot 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 Ethereumweb-based walletno need for users to install programs or browser extensionsmakes 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 BridgeYour InstructorAlexandra 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.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 HarvardLifetime access that never expiresProject-based curriculum to superboost your portfolioGraduation certificate for every courseAbsolute beginner-friendly90% off todayUse any computerSatisfaction guaranteeGet all source codePopular bundle by Mammoth studentsPerfected over years of trainingReviews 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

Overview

Section 1: Introduction

Lecture 1 00 Project Preview

Section 2: 00b Mammoth Interactive Courses Introduction

Lecture 2 00 About Mammoth Interactive

Lecture 3 01 How To Learn Online Effectively

Section 3: 00c (Prerequisite) Blockchain and Smart Contracts Overview

Lecture 4 00 Blockchain Introduction

Lecture 5 02 What is a Smart Contract

Lecture 6 03 What is the NEAR blockchain

Section 4: 00d (Prerequisite) Command Line Fundamentals

Lecture 7 01 Why All Developers Need To Know The Command Line

Lecture 8 02 Install Linux Command Line On Windows

Lecture 9 03 What Are Linux And Unix Terminals

Lecture 10 01 Build Your First Command In The Command Line

Lecture 11 02 Navigate Directories In The Command Line

Lecture 12 03 Build And Edit A New File In The Command Line

Lecture 13 04 Move Files In The Command Line

Section 5: 00e (Prerequisite) Install Node and npm

Lecture 14 00 What Is Node JS

Lecture 15 01 Install Node And NPM On Mac Or Windows

Lecture 16 02 How to Install Node and NPM on Windows

Section 6: 00f (Prerequisite) Introduction to JavaScript

Lecture 17 01. Variables

Lecture 18 02. Javascript

Lecture 19 03. Numbers

Lecture 20 04. Booleans

Lecture 21 05. If Statements

Lecture 22 06. Arrays

Lecture 23 07. For Loops

Lecture 24 08. While Loops

Lecture 25 09. Objects

Lecture 26 10. Functions

Lecture 27 11. Foreach

Lecture 28 12. Map Functions

Lecture 29 13. Using Objects As Dictionary

Lecture 30 14. Switch Statements

Lecture 31 15. Destructuring

Lecture 32 16. Spread Operator

Lecture 33 17. String Templates

Lecture 34 18. Error Handling

Lecture 35 19. Let And Const Keywords

Lecture 36 20. Do-While

Lecture 37 21. Sets

Lecture 38 22. Maps

Lecture 39 23. Stacks

Lecture 40 24. Queues

Lecture 41 25. For Loop

Lecture 42 26. Recursive Functions

Lecture 43 27. Loop Labeling

Lecture 44 28. 2D Arrays

Lecture 45 29. Settimeout

Lecture 46 30. Sentimental

Lecture 47 31. Functions With Optional Parameters

Lecture 48 32. Basic Regular Expression

Lecture 49 33. Handle Keypress Events

Lecture 50 34. Priority Queue

Lecture 51 35. Add-delete Object Property

Lecture 52 36. Example With Sets Part 1

Lecture 53 36. Example With Sets Part 2

Lecture 54 37. Concat

Lecture 55 38. Flat And Flatmap

Section 7: 01 Test a greeting smart contract

Lecture 56 01 Build greeting smart contract project

Lecture 57 02 Run tests for greeting smart contract

Section 8: 02 Test a counter smart contract

Lecture 58 01 Build automated test to get state variable

Lecture 59 02 Automated testing of call and view methods in smart contract

Lecture 60 03 Automated testing of decrease state variable value

Section 9: 03 Test a chat smart contract

Lecture 61 01 Call contract function before each unit test

Lecture 62 02 Check deep equal with Ava JS

Lecture 63 03 Test total message count from NEAR contract

Section 10: 04 Test a fungible token smart contract

Lecture 64 01 Initialize contract before each unit test

Lecture 65 02 Test total supply of cryptocurrency token

Lecture 66 03 Test balance of crypto wallet account

Lecture 67 04 Test token transfer with test case

Section 11: 05 Test NFT NEAR smart contract with Ava JS

Lecture 68 01 Initialize and mint NFT before each unit test

Lecture 69 02 Test view minted tokens with Ava JS

Lecture 70 03 Build unit test to show all minted NFTs

Section 12: 06 Test question answer smart contract with automated unit tests

Lecture 71 01 Build unit test to check adding question

Lecture 72 02 Test answering question with Ava JS

Lecture 73 03 Test get entry by id with Ava JS

Lecture 74 04 Test get all entries in map with Ava JS

Section 13: 07 Test social media smart contract

Lecture 75 01 Add post before each unit test case

Lecture 76 02 Test adding social media post to smart contract

Lecture 77 03 Test getting all posts from smart contract

Section 14: 08 Test likes and tags in social media NEAR contract

Lecture 78 01 Test liking a post in a social media smart contract

Lecture 79 02 Test getting my liked posts from smart contract

Lecture 80 03 Test getting posts by tag in smart contract

Anyone who wants to learn to code,Anyone interested in building smart contracts for the NEAR blockchain