GithubHelp home page GithubHelp logo

kustomzone / monorepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from statechannels/statechannels

0.0 1.0 0.0 59.41 MB

Development monorepo for the State Channels project.

Home Page: https://statechannels.org

License: MIT License

HTML 1.10% TypeScript 58.77% CSS 3.51% JavaScript 29.06% Solidity 6.63% Dockerfile 0.22% Shell 0.20% Ruby 0.37% Python 0.14%

monorepo's Introduction


State Channels

Simple off-chain applications framework for Ethereum.

circleci license


statechannels is a simple off-chain framework for building state channel applications on top of the Ethereum blockchain. It aims to make it simpler to build permissionless applications that have instant finality with zero-fee transactions.

You can learn more about what state channels are by reading one or other of the whitepapers underpinning the project, or a less technical written description.

Packages

This repository is a monorepo, and contains the following packages maintained with lerna and yarn workspaces:

  • client-api-docs : API docs for the interface betwen a state channel Dapp and the wallet
  • channel-client : A JavaScript object interface for the state channels client API
  • channel-provider : Thin wrapper around PostMessage communication between an App and a Wallet
  • client-api-schema : JSON-RPC based schema definitions for the Client API with TypeScript typings
  • e2e-tests : End-to-end browser tests of all packages with puppeteer
  • devtools : Developer tooling
  • jest-gas-reporter : Reports the gas used by various calls to ethereum contracts
  • nitro-protocol : Smart contracts and documentation website
  • rps : Rock paper scissors DApp
  • simple-hub : Simple server wallet for mediating virtual channels
  • tic-tac-toe : Tic-tac-toe DApp
  • web3torrent : DApp extension of webtorrent including micropayments
  • wire-format : Format of messages that are sent over the wire between wallets
  • xstate-wallet : A browser wallet implementation

Contributing

Installing dependencies

Make sure you have Yarn v1.17.3 installed. For easy management of specific Yarn versions, we recommend using Yarn Version Manager (YVM).

To install the dependencies:

yarn

from the monorepo root.

Building packages

To build all packages:

yarn build

Clean

To clean all packages:

yarn clean

Lint

To lint all packages:

yarn lint:check

To also apply automatic fixes:

yarn lint:write

Tests

To run all tests:

yarn test

Development Flow

The rps, nitro-protocol, wallet, and hub packages will need to interact with a local blockchain when running and testing locally.

Running locally

Run

SC_ENV=virtual-funding yarn start-servers $APP

where APP is either web3torrent or rps. This will start a ganache instance on port 8545, and subsequently start servers for

  • the wallet
  • the app
  • the simple-hub (used for virtual-funding)

These servers use a common set of contracts deployed against the shared ganache instance.

Community

State Channels Forums: https://research.statechannels.org/

monorepo's People

Contributors

alonski avatar amhunt avatar andrewgordstewart avatar cf19drofxots avatar dependabot[bot] avatar ebryn avatar geoknee avatar joelalejandro avatar junjizhi avatar kerzhner avatar lalexgap avatar mmun avatar n-white avatar philsalesses avatar renovate-bot avatar renovate[bot] avatar sebastianst avatar snario avatar spersico avatar tomclose avatar

Watchers

 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.