Home

Awesome

Solidity Smart Contracts: Building DeFi DApps and Protocols for the Ethereum Blockchain

The Companion Dapp Learning Repo

This repo is part of the Certified Web 3.0 and Metaverse Developer Training Program

This repository will provide a latest updated learning resource for Solidity developers.

Digital assets to replace fiat in ten years – Deloitte Survey

DeFi can be 100 times larger than today in 5 years

How DeFi Hopes to Disrupt Traditional Finance

Crypto Job Postings Jumped 395% in 2021: LinkedIn

DeFi and NFT Scaled to New Heights in 2021: CoinGecko Report

The 5 Promising Blockchain Projects Leading The Way Forward For Decentralized Technology In 2022

DeFi – Reflections on 2021 and the Road Ahead

Class Videos

Class 1: Steps 00 and 01: Blockchain, Ethereum Smart Contract, and Hardhat Intro in English on Facebook

Class 1: Steps 00 and 01: Blockchain, Ethereum Smart Contract, and Hardhat Intro in English on YouTube

Class 1: Step 00 and 01: Blockchain, Ethereum Smart Contract, and Hardhat Intro in Urdu on Facebook

Class 1: Step 00 and 01: Blockchain, Ethereum Smart Contract, and Hardhat Intro in Urdu on YouTube

Class 2: Step 03 Part 1 - Solidity Tutorial in English on Facebook

Class 2: Step 03 Part 1 - Solidity Tutorial in English on YouTube

Class 2: Step 03 Part 1 - Solidity Tutorial in Urdu on Facebook

Class 2: Step 03 Part 1 - Solidity Tutorial in Urdu on YouTube

Class 3: Step 03 Part 2 - Solidity Tutorial in English on Facebook

Class 3: Step 03 Part 2 - Solidity Tutorial in English on YouTube

Class 3: Step 03 Part 2 - Solidity Tutorial in Urdu on Facebook

Class 3: Step 03 Part 2 - Solidity Tutorial in Urdu on YouTube

Class 3 Part 2: Step 03 Part 2B - Solidity Tutorial in Urdu on YouTube

Class 4: Step 03 Part 3 - Solidity Tutorial in English on Facebook

Class 4: Step 03 Part 3 - Solidity Tutorial in English on YouTube

Class 4: Step 03 Part 3 - Solidity Tutorial in Urdu on Facebook

Class 4: Step 03 Part 3 - Solidity Tutorial in Urdu on YouTube

Class 5: Step 03 Part 4 - Solidity Tutorial in English on Facebook

Class 5: Step 03 Part 4 - Solidity Tutorial in English on YouTube

Class 5: Step 03 Part 4 - Solidity Tutorial in Urdu on Facebook

Class 5: Step 03 Part 4 - Solidity Tutorial in Urdu on YouTube

Class 6: Step 03 Part 5 - Solidity Tutorial in English on Facebook

Class 6: Step 03 Part 5 - Solidity Tutorial in English on YouTube

Class 6: Step 03 Part 5 - Solidity Tutorial in Urdu on Facebook

Class 6: Step 03 Part 5 - Solidity Tutorial in Urdu on YouTube

Class 7: Step 03 Part 6 - Solidity Tutorial in English on Facebook

Class 7: Step 03 Part 6 - Solidity Tutorial in English on YouTube

Class 7: Step 03 Part 6 - Solidity Tutorial in Urdu on Facebook

Class 7: Step 03 Part 6 - Solidity Tutorial in Urdu on YouTube

Class 8: Step 04 - Chapter 02 Textbook in English on Facebook

Class 8: Step 04 - Chapter 02 Textbook in English on YouTube

Class 8: Step 04 - Chapter 02 Textbook in Urdu on Facebook

Class 8: Step 04 - Chapter 02 Textbook in Urdu on YouTube

Class 9: Step 04 and 05 - Chapter 02 and 03 Textbook in English on Facebook

Class 9: Step 04 and 05 - Chapter 02 and 03 Textbook in English on YouTube

Class 9: Step 04 and 05 - Chapter 02 and 03 Textbook in Urdu on Facebook

Class 9: Step 04 and 05 - Chapter 02 and 03 Textbook in Urdu on YouTube

Class 10: Step 6A - Chapter 07 Textbook in English on Facebook

Class 10: SStep 6A - Chapter 07 Textbook in English on YouTube

Class 10: Step 6A - Chapter 07 Textbook in Urdu on Facebook

Class 10: Step 6A - Chapter 07 Textbook in Urdu on YouTube

Class 11: Step 6B - Vacation Project Assignment in English on Facebook

Class 11: SStep 6B - Vacation Project Assignment in English on YouTube

Class 11: Step 6B - Vacation Project Assignment in Urdu on Facebook

Class 11: Step 6B - Vacation Project Assignment in Urdu on YouTube

We will take a 1 month Ramdan/Summer Vacation and do the following project during this vacation. The project is due after Eid. Classes will also continue after Eid.

Project 1: Create a Token and Launch ICO/IEO/IDO

As you probably know, the ICO ("Initial Coin Offering") industry has been booming, and it's completely reinventing the way new startups kickstart themselves. In fact, go have a look at Wikipedia's list of highest crowdfunding projects, and you'll notice that blockchain projects absolutely dominate the list.

Understand the difference between IDO vs. IEO vs. ICO

Also check these links for latest listings:

ICO list at ICO Drops.

ICO List of Best New Initial Coin Offerings.

Top-Rated Crypto Token Sales: List of New ICOs, STOs, IEOs and IDOsTop-Rated Crypto Token Sales: List of New ICOs, STOs, IEOs and IDOs

ICO List Online

Binance IEO List

Binance Launchpad

IEO List

Polkastarter

Project Part 1: How to Launch a IEO on Binance Lauchpad

Read how to Lauch an IEO

Your first task of the project is to make a google slides presentation on how to start a IEO on the Binance Launch Pad.

Note: Also document the alternatives to Binance Launchpad.

Project Part 2: How to Launch a IDO on Polkastarter

Review the list of top fundraising platforms

Your second task of the project is to make a google slides presentation on how to start a IDO on the Polkastarter.

Project Part 3: Create a Pako Token

By creating an token and related contracts, you'll also learn how to handle money sent to to your contracts, which should come in handy if you want to create some kind of paid decentralised service in the future.

Therefore, for the sake of this chapter, let's imagine that our Pako DApp uses its own coin – the Pako Token. We will create two contracts – one for the token itself and one for the token crowd sale (the ICO).

Now Create your own Pako ERC20 Token and deploy it on a testnet. The Token should be to use openzeppelin contracts. You will use Harkhat development envirnoment. Also, write at least 20 automated tests. We will be using the Solidity and Typescript for dvelopment.

Project Part 4: Develop Crowd Sale Contract

Now the next decision you have to make is "how do I get these tokens to users?". This is usually done in one of three ways:

Owned Crowdsale — The Crowdsale contract owns tokens and simply transfers tokens from its own ownership to users that purchase them.

Minted Crowdsale — The Crowdsale mints tokens when a purchase is made.

Allowance Crowdsale — The Crowdsale is granted an allowance to another wallet (like a Multisig) that already owns the tokens to be sold in the crowdsale.

Other option is that we let an exchange handles this process.

In this part of the project we will implement the Owned Crowdsale strategy.

This contract will be responsible to allow users to exchange ETH for our Pako Token. In order to do that we need to Set a price for our token (1 ETH = 100 Pako Token)

Implement a payable buyToken() function.

Also may also see payable example.

Emit a BuyTokens event that will log who’s the buyer, the amount of ETH sent and the amount of Token bought

Transfer 75% the Tokens to the Crowd Sale contract at deployment time. i.e. Right after the contract is deployed, we want the token contract to send 75% of our token supply to it. While 25% remain in our personal "owner" account.

Transfer the ownership of the Crowd Sale contract (at deploy time) to our frontend address so that we are able to withdraw the ETH.

You can use the openzeppelin crowd sale contracts, however you will have to update the code to the latest solidity version.

Also write exentisive tests, for example we will simply send a transaction of 1 ETH from a random account to the contract. After the transaction, we should expect the account to have received Pako, while the contract's balance should have been reduced.

Note: Before you get started writing the token contract we suggest you review access control.

Project Part 5: Trying it with MetaMask

While it's always good to test your code, it's often more satisfying to see the results of your work wrapped in a nice UI. Let's see how we can deploy our contracts and get some Pako tokens into our MetaMask wallet!

We start by running our deployment scripts for the test network so that the new token contracts are uploaded and deployed.

When it's done, take note of what addresses the contracts was uploaded to and copy it!

Now head to MetaMask, and send a transaction of 1 ETH to the crowd sale contract address. If your MetaMask wallet doesn't have any ethers, remember that you can use any faucet.

After the transaction has confirmed, you might be confused about why you can't see any tokens in your wallet. It turns out that you need to manually add the token address in MetaMask in order to "register" it – after all, there are so many tokens out there, there's no way MetaMask could list them all by default!

To do this, open the side menu and click on the "Add token" button to get started:

Once you're on the token page, click on "Add custom token" and paste in the token contract's address in the address field.

After confirming that you want to add the token, you should be able to see your Pako balance right next to your ETH balance in the wallet. How cool!

Project Part 6: Trying it with Multisignature Wallets

Read

Now use [Gnosis Safe]{https://gnosis-safe.io/) with multi-sigs to do what you did in the last part.

Project Part 7: Sending Tokens using Ethers.js

Write a Typescript program to send Pako Token to some friend's address using Ethers.js.

You may follow this tutorial

Project Part 8 Advance: Create, Deploy, Mint, and Sell a NFT

Read this NFT tutorial series

Create a NFT contract using the OpenZepplen ERC721 NFT Standard.

You may use the Preset ERC721 contract.

Deploy your NFT contract on a testnet, mint it, and view it on the MetaMask wallet and list it on OpenSea Marketplace for sale.

Implement a ERC721 Market

Internet's Value Layer

The world of finance and software development is fusing. DeFi, Serverless, AI and IoT have merged. Our plan is to create the quintessential Unicorn Developer for this new age, who have a unique and rare skillset. They are basically individuals who on one hand can develop software and on the other mint money. They will be experts not only in serverless cloud computing technologies but also ninjas of the new token economy and decentralised finance. They will know not only to develop AI and IoT APIs but create a economic system where everyone can participate. In this repo we will focus on learning DeFi.

Our Text Books

Mastering Blockchain Programming with Solidity

Book Code

To Get Started

Zero to Hero: Web3.0 and Solidity Development Roadmap 2021

Read The Book: The Wisdom of Finance - Discovering Humanity in the World of Risk and Return

Watch “The Big Short” Movie

For complete details about this course visit Operation Unicorn website

Blockchain and Serverless

How blockchain and serverless processing are impacting event-driven architectures

Blockchain is the Ultimate Serverless Platform

On the Serverless Nature of Blockchains and Smart Contracts

DeFi

How to DeFi for Beginners

How to DeFi for Advanced

DeFi and the Future of Finance

Ethereum Book

How to Become a DeFi Developer

DeFi Developer Road Map

Ultimate DeFi & Blockchain Research Base

Comparing Centralized to Decentralized Finance

Finding Alpha in DeFi

6 Reasons DeFi Will Stay Inefficient (and Profitable)

Metamask

How To Build A Blockchain App with Ethereum, Web3.js & Solidity Smart Contracts

How to Build Ethereum Dapp with React.js · Complete Step-By-Step Guide

Send ETH payments using React.js / MetaMask

web3-react: Connect Users to MetaMask (or any wallet) From Your Frontend

MetaMask (or any wallet) From Your Frontend

Tokens

What Is a ‘Semi-Fungible’ Crypto Token?

DeFi 2.0

What's DeFi 2.0? - Full Explanation

What is DeFi 2.0, and how can you invest in it?

What Is DeFi 2.0 and Why Does it Matter?

DeFi 2.0: A beginner's guide to the second generation of DeFi protocols