Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project #32

Merged
merged 10 commits into from
May 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 2 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,10 @@ language: node_js
sudo: required
node_js:
- "8"

cache:
directories:
- "node_modules"

before_install:
- sudo apt-get update -qq
- sudo apt-get install software-properties-common -y -qq
- npm i -g ganache-cli truffle
- ganache-cli &>/dev/null &

install:
- npm install
- npm run ganache >/dev/null &

script:
- NODE_ENV='test' npm run test

after_script:
- npm run coverage && cat coverage/lcov.info | coveralls
- npm run coverage && cat coverage/lcov.info | coveralls
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# Transmute Network Contracts [![Build Status](https://travis-ci.org/transmute-industries/network-contracts.svg?branch=master)](https://travis-ci.org/transmute-industries/network-contracts) [![Coverage Status](https://coveralls.io/repos/github/transmute-industries/network-contracts/badge.svg?branch=master)](https://coveralls.io/github/transmute-industries/network-contracts?branch=master)

This repo contains smart contracts that are under development.
This repo contains the smart contracts that are under development for the **Delegated Proof of Stake** layer of the Transmute Platform: A marketplace for decentralized storage. For more information about the Platorm check out our [Whitepaper](https://www.transmute.industries/whitepaper.pdf)

Check out the [wiki](https://github.com/transmute-industries/network-contracts/wiki) for more info!
![Transmute Network Diagram](./transmute_network_diagram.png)


Check out the [wiki](https://github.com/transmute-industries/network-contracts/wiki) for more information about the contracts and the DPOS implementation.

- [Delegator States](https://github.com/transmute-industries/network-contracts/wiki/Delegator-States): What are the different states a `Delegator` can be in
- [DPOS Rounds debate](https://github.com/transmute-industries/network-contracts/wiki/DPOS-Rounds-debate): Possible implementations of the DPOS Rounds, and the motivation behind the choice we made for Transmute
- [DPOS Specs](https://github.com/transmute-industries/network-contracts/wiki/DPOS-Specs): The mechanisms of Transmute DPOS with detailed steps and explanations of their implication.
- [Provider Pool](https://github.com/transmute-industries/network-contracts/wiki/Provider-Pool): What data structure is used to store `Providers`
- [Provider States](https://github.com/transmute-industries/network-contracts/wiki/Provider-States): What are the different states a `Provider` can be in
- [Testing internal methods](https://github.com/transmute-industries/network-contracts/wiki/Testing-internal-methods): How we test contracts' internal methods

# Run the project locally

## Install the project

Expand All @@ -13,8 +25,17 @@ npm install
## Run the tests

```
npm install -g ganache-cli
ganache-cli
npm run ganache # in a separate shell
```

### Running the unit tests of every smart contract

```
npm run test:unit
```

### Running the integration test of the Delegated Proof of Stake consensus in action

```
npm run test:integration
```