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

Contracts first version #13

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Dependencies
node_modules

# coverage
coverage
coverageEnv
coverage.json
scTopics
allFiredEvents

artifact.json

# truffle build artifacts
build
7 changes: 7 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
norpc: true,
// rsync is needed so symlinks are resolved on copy of lerna packages
testCommand: 'rsync --copy-links -r ../node_modules/@aragon node_modules && node --max-old-space-size=4096 ../node_modules/.bin/truffle test --network coverage',
copyNodeModules: true,
skipFiles: ['interfaces/IRegistry.sol', 'interfaces/IStaking.sol', 'interfaces/IVoting.sol'],
}
1 change: 1 addition & 0 deletions .soliumignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

23 changes: 23 additions & 0 deletions .soliumrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "solium:all",
"rules": {
"imports-on-top": ["error"],
"variable-declarations": ["error"],
"array-declarations": ["error"],
"operator-whitespace": ["error"],
"lbrace": ["error"],
"mixedcase": 0,
"camelcase": ["error"],
"uppercase": 0,
"no-empty-blocks": ["error"],
"no-unused-vars": ["error"],
"quotes": ["error"],
"indentation": 0,
"whitespace": ["error"],
"deprecated-suicide": ["error"],
"arg-overflow": ["error", 8],
"pragma-on-top": ["error"],
"security/enforce-explicit-visibility": ["error"],
"emit": 0
}
}
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: required
services:
- docker
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
env:
- TASK=test
- TASK=lint
- TASK=coverage
before_script:
- npm prune
script:
- npm run $TASK
after_success:
- ./node_modules/.bin/lcov-result-merger 'apps/*/coverage/lcov.info' | ./node_modules/.bin/coveralls
9 changes: 9 additions & 0 deletions arapp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"appName": "curation.aragonpm.eth",
"version": "1.0.0",
"roles": [
{ "name": "Change parameters", "id": "CHANGE_PARAMS_ROLE", "params": ["Param id", "Value"] },
{ "name": "Change Voting app", "id": "CHANGE_VOTING_APP_ROLE", "params": ["Old Voting app", "New Voting app"] }
],
"path": "contracts/Curation.sol"
}
Loading