Skip to content

⚖️ Ethereum smart contracts for the Counterfactual framework

License

Notifications You must be signed in to change notification settings

pawanjay176/contracts

 
 

Repository files navigation


Counterfactual
Counterfactual

Simple off-chain applications framework for Ethereum.

circleci license


Counterfactual 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 permisionless applications that have instant finality with zero-fee transactions.

You can learn more about what state channels are by reading our whitepaper or a less technical written description.

Contributing

Installing dependenciess

Make sure you have Yarn v1.10.1. Refer to Yarn's installation guide for setup instructions for your operating system.

To install the dependencies:

yarn

Building packages

To build all packages:

yarn build

Clean

To clean all packages:

yarn clean

Lint

To lint all packages:

yarn lint

To also apply automatic fixes:

yarn lint:fix

Tests

Presently for some of the tests to work, you need to have a ganache-cli instance running in the background. To do this, run using:

yarn ganache

You also need to migrate the contracts in the contracts package to generate a networks file which the machine and iframe-wallet-poc packages directly consume (for now).

cd packages/contracts
yarn migrate

Finally, to run all tests:

yarn test

About

⚖️ Ethereum smart contracts for the Counterfactual framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.7%
  • Solidity 15.9%
  • JavaScript 3.8%
  • Other 0.6%