Giter VIP home page Giter VIP logo

repo-token-ico-website's Introduction

REPO Token ICO Sale Sample Project

Use this command in terminal to get this project : git clone https://github.com/ishinu/REPO-Token-ICO-Website

Understand, implement and play with the logic for REPO Token and REPO Token Sale contract.

  • Token contract with all the basic functionalities built from scratch. ( transfer, approve, transferfrom functions...)
  • Token sale contract with buying tokens functionality.
  • Implement this project in truffle console through terminal :
    • Run Ganache in your system.
    • npx truffle migrate
    • npx truffle console

With that you can run JS commands in your truffle console and see the magic happen : ( few eg. commands )


- REPOToken.deployed().then(function(instance){tokenInstance=instance})
- REPOTokenSale.deployed().then(function(saleinstance){tokenSaleInstance=saleinstance})
- instance.balanceOf(tokenInstance.address)
- instance.transfer(tokenSaleInstance.address,20000)
- instance.balanceOf(tokenSaleInstance.address)
- instance.transfer(accounts[1],5000)
- instance.approve(accounts[2],2000,{from:accounts[1]})
- instance.allowance(accounts[1],accounts[2])
- instance.transferFrom(accounts[1],accounts[3],1000,{from:accounts[2]})
- instance.allowance(accounts[1],accounts[2])
- instance.balanceOf(accounts[3])

You can even build a front end and connect with metamask to test buying functionality from website directly!

  1. Adonis4framework ( Front-end + Solidity ) Project in Adonis.Js(v4) framework.
  2. JS&bootstrap4 ( Front-end + Solidity ) Project using jQuery and Bootstrap4.

With the help of truffle or deploying it to public testnet example Ropsten. guide

repo-token-ico-website's People

Contributors

ishinu avatar ishinu24 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

hermessecund

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.