Code Monkey home page Code Monkey logo

kasei-coin's Introduction

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

kasei-coin's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.