This project creates a fungible token that is ERC-20 compliant and that will be minted by using a Crowdsale contract from the OpenZeppelin Solidity library.
This project leverages python 3.7.9 with the following packages:
-
Solidity - To help build a smart contract.
-
Remix IDE - Web based IDE for building Ethereum dApps using Solidity.
-
MetaMask - A crypto wallet & gateway to blockchain apps.
-
Ganache - Quickly fire up a personal Ethereum blockchain to run tests, execute commands, and inspect state while controlling how the chain operates.
-
OpenZeppelin - OpenZeppelin provides security products to build, automate, and operate decentralized applications.
Before running the application first open up the Remix IDE and:
-
Import
KaseiCoin.sol
andKaseeiCoinCrowdsale.sol
into the IDE -
Compile
KaseiCoin.sol
andKaseeiCoinCrowdsale.sol
-
Deploy
KaseiCoinCrowdsaleDeployer
-
Link the addresses provided by
KaseiCoinCrowdsaleDeployer
toKaseiCoin
andKaseiCoinCrrowdsale
Below is an example of how the crowdsale works.
- Compile the
KaseiCoin
Token Contract
- Compile the
KaseiCoinCrowdsale
Contract Part 1
- Compile the
KaseiCoinCrowdsale
Contract Part 2 withKaseiCoinCrowdsaleDeployer
- Connect two accounts to a local blockchain with Remix, MetaMask, and Ganache
- Deploy the
KaseiCoinCrowdsaleDeployer
to a local blockchain with Remix, MetaMask, and Ganache
- Test the functionality of the crowdsale by using test accounts to buy new tokens and then checking the balances associated with those accounts.
- After purchasing tokens with one or more test accounts, view the total supply of minted tokens and the amount of wei that has been raised in the crowdsale contract.
Nathan Patterson
Email: nathan.e.patterson@gmail.com
MIT License Copyright (c) [2021] [Nathan Patterson]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.