-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #151 as well as a a bunch of other stuff required for the new repo * remove a couple things * changed lintignore * changed package name
- Loading branch information
Showing
39 changed files
with
6,370 additions
and
920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": ["syntax-async-functions"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"semi": 2, | ||
"no-undef": "off", | ||
"object-curly-newline": [ "error", { "multiline": true } ], | ||
"no-trailing-spaces": [ "error", { "skipBlankLines": false, "ignoreComments": false} ], | ||
"no-tabs": 2, | ||
"no-var": 2, | ||
"prefer-const": 2, | ||
"prefer-spread": 2, | ||
"prefer-rest-params": 2, | ||
"prefer-arrow-callback": 2, | ||
"no-duplicate-imports": 2, | ||
"no-dupe-class-members": 2, | ||
"no-const-assign": 2, | ||
"no-confusing-arrow": 2, | ||
"no-lonely-if": 2, | ||
"no-continue": 2, | ||
"indent": ["error", 2] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
.node-xmlhttprequest-sync* | ||
*.tgz | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
dist: trusty | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "7.10.0" | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install software-properties-common -y -qq | ||
- sudo add-apt-repository -y ppa:ethereum/ethereum | ||
- sudo add-apt-repository -y ppa:ethereum/ethereum-dev | ||
- sudo apt-get update -qq | ||
- sudo apt-get install geth -y -qq | ||
|
||
install: | ||
- yarn | ||
- rm -rf build/ # remove any remaining artifacts from a previous build | ||
- nohup yarn run testrpc & | ||
- truffle version | ||
|
||
script: | ||
- yarn test | ||
- yarn lint | ||
notifications: | ||
slack: daostack:fGuaFPsiQiV5mgmzRcSzbYqw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
# Contributing | ||
|
||
Bug reports and pull requests very much welcomed. | ||
|
||
Please make sure test pass before submitting a PR. | ||
|
||
We try to follow the style guidelines from http://solidity.readthedocs.io/en/develop/style-guide.html | ||
|
||
The development id done on unix based systems. | ||
|
||
# Testing | ||
|
||
These contracts are tested using the truffle framework | ||
|
||
## Installation | ||
|
||
Make sure you have a recent version of [node.js](https://nodejs.org/) (7.6 and above) and [yarn](https://yarnpkg.com) package manager. | ||
|
||
Installation of dependencies. After cloning the repository run: | ||
|
||
yarn | ||
|
||
|
||
## Run tests | ||
|
||
To run the test locally use a local blockchain using testrpc, just run: | ||
|
||
testrpc | ||
|
||
On a second terminal, run the tests: | ||
|
||
yarn run test | ||
|
||
|
||
# Style | ||
|
||
For solidity, we are following the style guide here: http://solidity.readthedocs.io/en/develop/style-guide.html | ||
|
||
A Solidity linter (solium is installed, which can be run with: | ||
|
||
yarn run solium | ||
|
||
Code should survive Javascript linting as well: | ||
|
||
yarn run lint | ||
|
||
# Breakpoints | ||
|
||
if you run tests with: | ||
|
||
node debug ./node_modules/truffle/build/cli.bundled.js test | ||
|
||
it is possible to use `debugger` statemetns and inspect the state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
master: [![Build Status](https://travis-ci.org/daostack/daostack.svg?branch=master)](https://travis-ci.org/daostack/daostack) | ||
|
||
dev: [![Build Status](https://travis-ci.org/daostack/daostack.svg?branch=dev)](https://travis-ci.org/daostack/daostack) | ||
|
||
|
||
# Mission Statement | ||
|
||
DAOStack is a widely open collaboration to build the basic framework for [Decentralized Autonomous Organizations](https://en.wikipedia.org/wiki/Decentralized_autonomous_organization) (DAO) through bootstrap, or dogfooding. | ||
|
||
Meaning, firstly publish the minimal smart contract that distributes tokens and voting power (AKA reputation) for further token distribution. Then, collectively distribute more tokens and voting power to contributors of code and other contributions, according to the appreciation of current reputation holders. Anyone who disagrees with the current reputation alignment can always open a new contract, with new token and reputation systems (and be the initial reputation holder). | ||
|
||
Gradually, bit by bit, we aim to build the first decentralized corporation, an array of contracts that can hold the tokens and voting power of each other, interact and form a decentralized economy. | ||
|
||
|
||
|
||
# Contributing | ||
|
||
Contributions and pull requests are very welcome. Check out [The DAOStack roadmap](docs/roadmap.md), and join us on [Slack](daostack.slack.com). | ||
|
||
If you want to contribute to the code, check out [CONTRIBUTING.md](CONTRIBUTING.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.