Skip to content

Jovian-Dsouza/JoviTokenIco-contracts

Repository files navigation

JoviToken Smart Contracts


Logo

JoviToken

Checkout my new JoviToken built with Ethereum blockchain!
View Demo · Report Bug · Request Feature

About The Project

JoviToken

JoviToken is an ERC20 based token currently deployed on the Ethereum Goerli testnetwork. This token is for learning purposes only. ERC-20 is the technical standard for fungible tokens created using the Ethereum blockchain. A fungible token is one that is interchangeable with another token. This repo includes the Smart Contract files for the Presale and Initial Coin Offering (ICO) for JoviToken. This also includes the unit testing files for the solidity smart contracts.

For ICO Website 💻 implementation follow JoviTokenIco-contracts

Here are some cool features of this crowdsale:

  • Minted Crowdsale : Instead of having a fixed supply the tokens are minted according to the total purchase
  • Capped Crowdsale : adds a cap to your crowdsale, invalidating any purchases that would exceed that cap
  • Individually Capped Crowdsale : Caps an individual's contributions
  • Timed Crowdale : Allows buying of token in a certain time interval only
  • Refundable Crowdale : Refunds the buyer if the Goal is not reached
  • Token Time Vesting and Token Distribution
  • Testcases to make sure that the smart contract is working correctly

(back to top)

Built With

  • Solidity
  • OpenZeppelin
  • Hardhat
  • Mocha testing framework
  • Chai

(back to top)

Getting Started

Prerequisites

  • npm
    npm install npm@latest -g
  • hardhat
    npm install --save-dev hardhat

Installation

  1. Creat a free QuickNode Endpoint at https://www.quicknode.com/endpoints
  2. Clone the repo
    git clone https://github.com/Jovian-Dsouza/JoviTokenIco-contracts
  3. Install NPM packages
    npm install
  4. create a .env file in project root directory and copy
    QUICK_NODE_URL=ENTER_YOUR_QUICKNODE_HTTP_ENDPOINT
    GOERLI_PRIVATE_KEY=ENTER_WALLET_PRIVATE_KEY

Run Smart contract tests

npx hardhat test

Local Deployment

npx hardhat node
npx hardhat run scripts/deploy.js 

Testnet Deployment - Goerli

npx hardhat run scripts/deploy.js --network goerli

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License.

(back to top)

Contact

Your Name - @DsouzaJovian - dsouzajovian123@gmail.com

Project Link: https://github.com/Jovian-Dsouza/JoviTokenIco-contracts

(back to top)