GithubHelp home page GithubHelp logo

isabella232 / _erc20_voting_app_eth_ny Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peppersec/_erc20_voting_app_eth_ny

0.0 0.0 0.0 2.3 MB

ERC20 Voting Dapp

JavaScript 74.54% CSS 14.15% Vue 11.31%

_erc20_voting_app_eth_ny's Introduction

Demo

http://voting.peppersec.com/ Use ThunderToken RPC endpoint (rpcUrl: 'https://mainnet-rpc.thundercore.com') with Metamask

Deployment

  1. Go to thegraph.com and index any ERC20 token with Transfer events
  2. go to address_list_generator folder, install npm i
  3. Get SKALE.com RPC endpoint
  4. Set Skale RPC endpoint and private key in address_list_generator/.env file
  5. Set THEGRAPH_ENDPOINT in address_list_generator/.env file
  6. Run address_list_generator/generate.js - it generates merkle tree root hash, uploads it to Skale FileStorage.
  7. Deploy Smart contract:
  • npm i in contracts/ folder
  • npm run flat
  • flats/FLAT_ERC20Voting.sol - deploy in REMIX with params from step # 6:
    • merkleTreeHashRoot
    • SkaleLinkUrl
    • expirationdate(unix)
    • ballot question
  1. Open frontend/
  2. npm i
  3. open networkConfig.js, set your contract address
  4. yarn dev -o - opens localhost:3000

_erc20_voting_app_eth_ny's People

Contributors

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