GithubHelp home page GithubHelp logo

contracts-scheme's Introduction

Contracts-scheme

Scheme of smart-contracts organization Image alt

Structure of contracts:

  1. Migrations(Standard)
  2. Sonm Token
  3. DAO(Standard)
  4. Hub wallet factory
  5. Hub wallet
  6. Whitelist prototype
  7. RegApp (Simple React/Webpack App to work with hub registrations)
  8. PayOut App (already implemented for DD@H project) https://github.com/sonm-io/drugdiscovery-token

Abstract:

Outline of the smart-contracts system which will be implemented in SONM network is presented. More info about network and contracts interaction can be found in the whitepaper

Simple Data flow

HUB

Before hub started to payout tokens to miners and recive payments from buyers, he must create a hub wallet โ€” simple contract with fixed amount of frozen funds. If hub is caught on cheating, DAO can initiate process of blacklisting this hub and expropriate its frozen funds.

Those expropriated funds will also be frozen at the DAO account for some specified time. This is to protect against malicious descisions of the DAO: tokens can drop in price during freeze, therefore there is no motivation to 'raskulachivat' (expropriate) every hub.

HUB FACTORY

Hub wallet can be created only by Hub wallet factory (which is actually simplified replication factory), which create new hub wallet contract and register it in 'whitelist' contract.

WHITELIST

Whitelist contract is a registry contract containing info about hubs and their statuses. All hub wallet created by hub wallet factory are registered in this contract. It supposed to be simple registry with a special mapping for 'trusted' hubs. Initially, 'trusted' hubs will be checked by SONM developers manually / be official SONM hubs. Later, it supposed to be also a rating list โ€” everyone could check hub and rate it (betting some amount of SONM tokens to prevent rating fraud).

REGAPP

React.js application which is simple web application (web-page) with the purpose of user friendly hub registration process.

PAYOUT APP

Application to proceed miners token payout mechanism. For now it is implemented to work with BOINC statistic mechanism.

contracts-scheme's People

Contributors

jackbekket avatar jorpic avatar

Watchers

 avatar  avatar  avatar

Forkers

cryptobuks

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.