GithubHelp home page GithubHelp logo

ellojess / takk-token Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 4.05 MB

Blockchain app using Etherium Smart Contracts, Solidity, and ERC721 to represent moments of gratitude shared between two people.

Solidity 38.08% JavaScript 42.15% HTML 19.77%
blockchain etherium solidity solidity-contracts erc721 dapp development ganache metamask

takk-token's Introduction

Takk Token

Blockchain app using Etherium Smart Contracts, Solidity, and ERC721.

Takk is an ERC721 token that represents a moment of gratitude shared between two people.

A user(Q) who does a good deed receives 1 Takk as gratitude for the deed from another user(T). The user who did the good deed(Q) now has 1 Takk in their wallet and can use their Takk to pay other users as gratitude when the situation arises. (i.e. T paid Q 1 Takk for doing something good)

Features to Look Forward to:

  • Second token feature : Hafna can be sent to users who do bad deeds
  • Hafna will automatically remove 20% of user's Takk, then continues to remain in the user's account for 3 days
  • During the 3 days, if more Takk is recieved while Hafna is present, 50% of the Takk will automatically be sent to the user who originally sent the Hafna (i.e. Q received a Hafna from T, now Q pays T 50% of Takk recieved in the following 3 days)
  • Users can exchange x Takk to buy 1 Hafna to send to another

Prerequisites

  • npm
  • NodeJS
  • Ganache
  • MetaMask
  • Install OpenZeppelin with $ npm install @openzeppelin/contracts
  • Update Truffle using $ npm update -g truffle

Connecting Ganache to Metamask

Follow this tutorial to see how to properly connect Ganache to your Metamask. Click Here for the written tutorial.

To run the project code:

  • Run $ npm install
  • Run $ truffle migrate --reset
  • Run $ npm run dev

Demo

Example of a User's webpage with gratitude tokens in their wallet. Sending/transfering a gratitude token ID 3 in my wallet. Sending/transfering a gratitude token ID 5 in my wallet. My list of gratitude tokens after sending/transfering desired tokens. View of the receiver's webpage. Error message received upon attempting to create a token on your own account. (You are not allowed to create a token on your account, only on other users' account)

Steps for Setup & Contribution

  1. Clone this repo

    $ cd <location where you would like repo stored>
    
    $ git clone https://github.com/ellojess/Takk-Token.git
    
  2. Make sure it is setup correctly

    $ cd Takk-Token
    
    $ git remote -v
    

    You should see:

     origin    https://github.com/ellojess/Takk-Token.git (fetch)
     origin    https://github.com/ellojess/Takk-Token.git (push)
    
  3. Run the following command

    $ npm install
    
  4. Create your own branch to make edits on

    $ git checkout -b <your name/feature>
    
  5. Set upstream

    $  git push --set-upstream origin <branch name you setup in step 3 above>
    

You should now be able to push as you normally would through terminal

After you push from terminal, go to this repo and submit a pull request when you're ready.

Contributors

Cao Mai

Jessica Trinh

Kento Murata

takk-token's People

Contributors

caocmai avatar ellojess avatar kmurata798 avatar

Stargazers

 avatar  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.