Skip to content

A Token creation and sale dapp with mintable tokens (unfixed supply) and whitelist approval by the deployer. Disclaimer: educational purposes, not to use in production environment.

License

Notifications You must be signed in to change notification settings

matheusrosendo/TokenizationLabMintableToken

Repository files navigation

TokenizationLabMintableToken

Licence

⚠️ Disclaimer: That project is for educational purposes only, it was not tested enough for production!

Screenshots

alt text alt text

Live testnet

Overview

Blockchain Dapp Prototype - Tokenization Lab Mintable Token - Based on pratical lab of the course https://www.udemy.com/course/blockchain-developer/

Description

A Token creation and sale dapp with mintable tokens (unfixed supply) and whitelist approval by the deployer

Requirements

  • Create and setup an infura project (https://infura.io)
  • Install Ganache
  • Install Node Package Manager

Prerequisites

  • Clone this repository: git clone
  • Install dependencies going to main folder of the project using powershell and typing: npm install
  • Do the same in the client folder: npm install
  • Create an .env file with the following variables:

RATE_TO_WEI=1
MNEMONIC_LOCALDEV_ACCOUNT=your mnemonic phrase (take from the first account (show keys) of your ganache instance)
MNEMONIC_TESTNET_ACCOUNT= your mnemonic phrase - create or use one and take some faucets of eth goerli and/or eth ropsten according to the network you are going to > deploy
INFURA_ROPSTEN_URL=your infura ropsten url
INFURA_GOERLI_URL=your infura goerli url

How to deploy and run on ganache

  • start ganache.
  • in main folder run truffle tests: truffle test --network ganache
  • migrate smart contracts to Ganache: truffle migrate --reset --network ganache
  • in client folder: npm start
  • add your local ganache network on metamask and connect to it
  • change account on metamask to your deploy account (mnemonic informed on .env)
  • refresh page (default is localhost:3000)

How to deploy and run on testnet ropsten using infura

  • create a project in Infura, copy address of ropsten and goerli urls and paste it on .env file
  • in main folder run truffle tests: truffle test --network ropsten_infura
  • migrate smart contracts to Ropsten testnet: truffle migrate --reset --network ropsten_infura
  • in client folder: npm start
  • change metamask network to Ropsten and connect to it
  • change account on metamask to your deploy account (mnemonic informed on .env)

About

A Token creation and sale dapp with mintable tokens (unfixed supply) and whitelist approval by the deployer. Disclaimer: educational purposes, not to use in production environment.

Resources

License

Stars

Watchers

Forks

Packages

No packages published