Git Product home page Git Product logo

nemsupernodes-crowdfunding-system's Introduction

NEM SuperNode CrowdFunding System

This system is an autonomous NEM account that manages the crowdfunding of NEM supernodes. This project was made for the NEM Global Hackaton 2018.

Interacting with the system

Access NEM Supernodes Crowdfunding website to use this application.

Installation

  1. Clone this repo
  2. Run: npm install
  3. Rename file src/app/config.ts.bkp to src/app/config.ts
  4. Edit src/app/config.ts:
    1. Configure the network and active supernode variables
    2. Configure mongodb connection variables
    3. Configure app signature key variable
  5. Run: tsc
  6. Run: npm run mongo-install
  7. Open your mongo blocks_service collection and set block.first and block.last to the same block number you want to start tracking
  8. Create a multisigned account to serve as your supernode account, do some transactions to get a public key.
  9. Open your mongo supernodes collection and set all variables of your supernode account

Running the services

After compiling the code with the tsc command, you can run the following services on the ./scripts directory:

bash blocks-reader

Reads every block and adds it to mongo db server. All transactions are analysed on the database, not relying on sockets incoming transactions for now.

bash payments-incoming

Analyses new blocks searching for incoming transactions for the supernode account, and creates payments or messages actions according to each transaction.

bash payments-outgoing

Announces each payment to the supernode account, splits transactions if needed, control balances, locks and unlocks supernodes accounts.

bash payments-confirmations

Confirms outgoing payments that were waiting to be signed

bash map-xsn

Map all the accounts holding XSN to distribute profits and for community representative decision.

TODO: bash payments-profits-distribution

Sends profits distribution payments to all XSN holders

nemsupernodes-crowdfunding-system's People

Contributors

mateuslopes avatar

Stargazers

 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.