Skip to content

Fungible cryptocurrency built using Solidity smart contracts and deployed on Ganache blockchain using Metamask integrated environment in Remix

License

Notifications You must be signed in to change notification settings

ethansilvas/kasei-coin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kasei Coin - UW FinTech BootCamp Module 21 Challenge

This project is my cryptocurrency KaseiCoin which is a ERC-20 compliant fungible token. I implement an automated crowdsale for tokens through Solidity smart contracts and deploy them on a Ganache personal blockchain that is integrated into a Remix environment via MetaMask.


Summary

After successfully compiling the smart contracts using Remix, I deploy them by injecting my personal Ganache blockchain with the Metamask environment.

Screenshot of successful contract deployment in meta mask window alongside ganache blockchain used to deploy

The many functions that the contracts provide are then accessible through the Remix UI and supplied account addresses from Ganache are able to buy tokens that are automatically minted in the contracts. You are able to dynamically verify that a provided account address' balance has changed along with the total number of tokens minted and Ether wei raised.

The following gifs demonstrate using two different addresses to buy KeseiCoin tokens:

Account 1

Gif showing Remix UI usage of buyTokens, balanceOf, and totalSupply functions

Account 2

Gif showing Remix UI usage of buyTokens, balanceOf, and totalSupply functions


Evaluation Evidence

Videos of app usage can be found in the Videos folder, as well as in the Gifs folder.

Compiled contracts on Remix via Metamask and Ganache setup:

KaseiCoin

Image showing successful remix compilation of KaseiCoin.sol file

KaseiCoinCrowdsale

Image showing successful remix compilation of KaseiCoinCrowdsale.sol file

KaseiCoinCrowdsaleDeployer

Image showing successful remix compilation of KaseiCoinCrowdsale.sol file with deployer contract as well

Verifying that the contracts keep track of the amount of wei that the minted tokens represent:

balanceOf

Using balanceOf function to verify that account has 2 Ether in wei

weiRaised

Verify with weiRaised function that 2000000000000005003 wei have been minted in tokens

totalSupply

Verify with totalSupply function that 2000000000000005003 wei have been minted in tokens


Technologies

This is a Solidity project ran using the following dependencies:

  1. Solidity (^0.5.0) - Smart contract development
  2. Remix - Solidity development environment
  3. MetaMask - Connecting to injected Ethereum network
  4. Ganache - Personal blockchain environment

Installation and Usage

If you would like to use these contracts yourself you can upload KaseiCoin.sol and KaseiCoinCrowdSale.sol to Remix and compile them using the 0.5.0+commit.1d4f565a and 0.5.5+commit.1d4f565a compilers, respectively. You will then have to connect your Ganache HTTP://127.0.0.1:7545 blockchain to your Metamask test environment with the chain code of 1337.

Then with the "Injected Provider - MetaMask" environment selected in Remix, you can deploy the KaseiCoinCrowdsaleDeployer contract with any of your Ganache accounts. With the kasei_crowdsale_address button in Remix you can then deploy the KaseiCoinCrowdsale contract, and the same can be done with kasei_token_address and KaseiCoin.

You will then be able to use all of the functions as shown in the gifs shown in the Summary section.

Compile with 0.5.0+commit.1d4f565a compiler Deploy on Remix VM (London) EVM


Contributors

Ethan Silvas


License

This project uses the GNU General Public License

About

Fungible cryptocurrency built using Solidity smart contracts and deployed on Ganache blockchain using Metamask integrated environment in Remix

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published