2.7 out of 5
2.7
105 reviews on Udemy

Create a Smart Contract on WAX blockchain including NFT RNG

Learn how to interact with blockchain Oracles to create RNG and also create NFT's on WAX with smart contracts in C++
Instructor:
Icaro Lavrador
618 students enrolled
English [Auto]
How to setup a environment in Docker to develop Smart Contract on WAX
How to create a basic Smart Contract on WAX
How to interact with Blockchain Oracles on WAX to generate random numbers
How to create NFT on the WAX blockchain

Note: This course is on PRE-RELEASE more classes are been added weekly until the full course is finished, I expect the full course to have something between 6 and 8 hours.

What is WAX? WAX stands for Worldwide Asset eXchange and is a blockchain specifically made for trading virtual items such as rare and collectible items in video games and virtual worlds.

WAX is fully compatible with EOS smart contracts and offers free blockchain accounts and cheaper fees. This course will provide you with an overview of how to deploy your EOS/WAX dApps to our local test network, them to the WAX Testnet where we will interact with other contracts such as a blockchain Oracle for Random number generator and the contact for Simple Assets to create NFTs and finally after that to the WAX mainnet.

This course will use C++ to write the contract, contracts on the WAX network can be written in any language that compiles to WebAssembler, however, I decide to use C++ as it is the language with more support at the moment.

Even the course has been in C++ if you have any understanding of programming you should be able to follow the course along without problems, I take the student step by step while writing and reading the contract, explaining every command and comparing it to other languages more common such as JavaScript or C# so don’t be intimidated by it, also I’m always around helping students and answering questions.

Course overview

1
Quick course overview, documentation and how to find help

Using docker for development in WAX

1
Understand the tool available to us and the Wax blockchain fork from EOS
2
Installing Docker images for Development and WAX Contract Development Toolkit
3
Learning how to use the Docker images (start, stop, attach, list)
4
Using cleos to connect to the WAX test network
5
Starting Keosd and Nodeos and have our local WAX blockchain running locally

Setting up our local environment on the WAX blockchain

1
Connecting to our Wax Blockchain using culr and cleos

How to create a Wax wallet, open and unlock and import private keys

1
Creating a Wax wallet, opening and unlocking and importing eosio private key

Smart Contract Development on Wax using the CDT (Contract Development Toolkit)

1
Overview in how to create a smart contract on WAX/EOS
2
How the Resources work on the WAX blockchain (CPU, NET, RAM)
3
Creating our first smart contract on WAX and understanding the files structure
4
Compiling the smart contract using cmake/make to create the ABI and WASM files
5
Differences between Primary Account, Smart Contract Account, Customer Account
6
Deploying our first smart contract to the Wax local blockchain

Deploying and testing our project on the Wax Testnet

1
Section introduction, deploying smart contract to the Wax Testnet
2
Creating an account on the Wax Testnet and getting some FREE (Fake) Wax
3
Creating a wallet on the Testnet, buying RAM and staking CPU and NET
4
Deploying our contract to the Wax Testnet
5
Sending actions to the Wax Blockchain Testnet and checking on the block explorer

Blockchain Oracles and Random Number Generator (RNG)

1
What is a Blockchain Oracle and how can it help us to create our RNG Action
2
Creating our new Random Number Generator (RNG) project
3
Understand the HPP file and adding a new function to our contract
4
Understand the CPP file and adding a new function to our contract
5
Compiling our new Contract using cmake and make to get our wasm and abi files
6
Creating our first table on the WAX network
7
Creating our type definition for the WAX table
8
Initializing our contract and our table
9
Compiling the contract and fixing some small mistakes
10
Creating a new account with staked WAX for CPU and NET and buying some run
11
Checking the account details and deploying our new contract to the Wax Testnet
12
Getting the table values on the Wax Testnet using cleos and Bloks.io

Adding Actions to our blockchain smart contract

1
Adding actions to our new Smart Contract
2
Implementing the function to broadcast the request to the blockchain oracle
3
Implementing a function to receive the Oracle response
4
Compiling the code and applying small fixes
5
Compiling the code and applying small fixes
6
Interacting with the smart contract on WAX to get a random number and check

NFT, how to create new NETs on WAX blockchain using simple assets smart contract

1
Creating NFT using Simple Assets
2
Creating an Action to create an NFT using Simple Assets
3
Sending the action to Simple Assets to create our new NFTs
4
Compiling and deploying the contract to create new NFTs
5
Restarting the docker container and recreating a wallet if needed
6
Creating and reading the NFT from the WAX network
7
Understand Account, Scope and the table name on our get table command

Interacting with a Wax smart contract using React and WasJS

1
Create our React app to interact with our contract
2
A quick react overview and some clean up on the code
3
Importing WaxJS from WaxIo
4
Create a login button and function
5
Getting the Wax wallet name and public key
6
Initialising the Wax connection with the component using useEffect hook
7
Displaying the wallet name and public key on the screen using the useState
8
Creating a auto login for users already registered
9
Adding a new component with user actions
10
Refactoring the code to use Wax as a state and run useEffect when it is set
11
More coming really soon...
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
2.7
2.7 out of 5
105 Ratings

Detailed Rating

Stars 5
45
Stars 4
29
Stars 3
17
Stars 2
6
Stars 1
8