Coder Social home page Coder Social logo

michal-komora / matchchannels Goto Github PK

View Code? Open in Web Editor NEW

This project forked from decenterapps/matchchannels

0.0 0.0 1.0 2.96 MB

A generalized state channel implementation for 1 on 1 communication

Home Page: https://decenter.com/

License: GNU General Public License v3.0

JavaScript 83.70% HTML 0.56% Vue 3.09% CSS 12.64%

matchchannels's Introduction

MatchChannels

Overview

A generalized state channel implementation for 1 on 1 communication and state resolvement.

This is a state channel implementation focused primarily on games but can be used for any direct state resolving between 2 participants.

The framework is generalized and extendable allowing users to integrate it with their own systems, both the smart contracts and a frontend library to interface with them is provided.

Build procedure

Code consists of 2 main parts the solidity code located in /solidity folder and the library code located in /library.

To run the smart contract, navigate to /solidity and run truffle develop (you'll need the latest version of truffle installed)

In the truffle develop console run migrate --reset to compile and deploy the contracts to local testnet. To deploy on the kovan testnet run migrate --network kovan --reset

In order to run tests first run yarn install or npm install and then test in truffle develop console.

To run the frontend library code, navigate to /library folde and run the following:

  • yarn install or npm install
  • yarn dev or npm run dev

Contracts

  • StakeManager (holds your stake and creates a channel for 2 users)
  • ResolverInterface (an interface for resolver contracts to handle state disputes)
  • CfResolverRegistry (counter factual registry and creation of resolver contracts)
  • TicTacToeResolver (an example of a resolver that handles the state of a tic tac toe game)
  • ECTools (utility contract for signature verification)

Etherships

We wrote article about this, if you want to read more, go to: Introducing Etherships โ€“ Using state channels to scale Ethereum games

matchchannels's People

Contributors

yippee-ki-yay avatar nklipa13 avatar sterlu avatar matko95 avatar nebojsa94 avatar andrejc avatar

Forkers

misosviso

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.