nigsdev / token-vendor

An unstoppable vending machine that will buy and sell the currency

Home Page:http://token-vendor-nigsdev.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🏵 Token Vendor 🤖

🤖 Smart contracts are kind of like "always on" vending machines that anyone can access. Let's make a decentralized, digital currency. Then, let's build an unstoppable vending machine that will buy and sell the currency. We'll learn about the "approve" pattern for ERC20s and how contract to contract interactions work.

🏵 Created YourToken.sol smart contract that inherits the ERC20 token standard from OpenZeppelin. Set your token to _mint() 1000 (* 10 ** 18) tokens to the msg.sender. Then created a Vendor.sol contract that sells your token using a payable buyTokens() function.

About

An unstoppable vending machine that will buy and sell the currency

http://token-vendor-nigsdev.surge.sh/

License:MIT License


Languages

Language:TypeScript 84.3%Language:JavaScript 7.6%Language:Shell 4.3%Language:Dockerfile 1.2%Language:Solidity 0.9%Language:HTML 0.8%Language:CSS 0.6%Language:Less 0.3%