A tutorial worth gold. You will learn how to build a full ERC-20 lottery game, Including Frontend, Backend and smart contract!
A lottery game that pays prizes with your own ERC-20 token. Users will choose 6 numbers and at every draw interval winning numbers will be obtained and a jackpot offered for anyone that matches the right numbers.
Lets write the smart contract that will bring the Lottery to life. We will code all the functions in the lottery smart contract.
You will learn so many amazing blockchain smart contract techniques!!
░█▀▀▄░█▀▀░▀█▀░█▀█░█▀▄░█▀▀░▄░░░▄
░█░▒█░█▀▀░░█░░▒▄▀░█░█░█▀▀░░█▄█░
░▀░░▀░▀▀▀░░▀░░█▄▄░▀▀░░▀▀▀░░░▀░░
Github Repo:
https://github.com/net2devcrypto/N2DL...
👑 Looking for Web3 / DeFI / Blockchain Development Services ?
https://net2dev.io
👌Want to get your hands on the most secure cold wallet ??
HIT THE LINK FOR A SPECIAL PROMO - Keystone Wallet
https://bit.ly/42Omys3
👍HIT The Like Button and Subscribe for more amazing content!
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⡟⠁⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⢹⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⢠⣴⣾⣵⣶⣶⣾⣿⣦⡄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⢀⣾⣿⣿⢿⣿⣿⣿⣿⣿⣿⡄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⢸⣿⣿⣧⣀⣼⣿⣄⣠⣿⣿⣿⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠘⠻⢷⡯⠛⠛⠛⠛⢫⣿⠟⠛⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⣧⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢡⣀⠄⠄⢸⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣆⣸⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
Join Net2Dev Official Discord!
/ discord
THIS VIDEO IS NOT FINANCIAL ADVISE!
FOR EDUCATIONAL PURPOSES ONLY!
@chainlink
#web3 #blockchain #erc20
▬▬▬▬▬
SECTIONS 💬 (Watch to the end!)
00:00 - Intro
06:53 - Deploy the ERC-20 Token Smart Contract
08:05 - Lottery Smart Contract - Add required dependencies
11:32 - Lottery Smart Contract - Declare Global Variables.
19:01 - Lottery Smart Contract - Build the Lotto Draw Struct.
27:00 - Lottery Smart Contract - Build the Tickets Struct.
34:50 - Lottery Smart Contract - Add the ERC-20 Contract to the Constructor.
35:48 - Lottery Smart Contract - Create the Open Lottery Draw Function.
44:06 - Lottery Smart Contract - Create the Buy Tickets Function.
52:41 - Lottery Smart Contract - Create the Close Lottery Draw Function.
54:56 - Lottery Smart Contract - Create the Draw Numbers Function.
58:54 - Lottery Smart Contract - Create the Sort Array Numbers Function.
01:00:12 - Lottery Smart Contract - Create the Count Winners Function.
01:07:40 - Lottery Smart Contract - Create the Claim Prize Function.
01:10:31 - Lottery Smart Contract - Add the View Tickets Function.
01:11:00 - Lottery Smart Contract - Add the View Lottery Function.
01:11:24 - Lottery Smart Contract - Add the Get Token Balance Function.
01:12:00 - Lottery Smart Contract - Add the Withdraw Token Balance Function.
01:13:07 - Deploy and Test the Lottery Smart Contract.
01:35:15 - Simulate Winning a Jackpot and Claiming the Prize.
01:40:29 - Ending.
▬▬▬▬▬
** NOT FINANCIAL ADVISE **
USE IT AT YOUR OWN RISK* **I'M NOT RESPONSIBLE FOR ANY USE, ISSUES ETC.. **