Skip to content

Commit

Permalink
Contracts: Implement Arbitrable (#1)
Browse files Browse the repository at this point in the history
* Add Arbitrable contract

* Minor fixes to contract

Address PR #1 comments.

* Change error message

Address PR #1 comments.

* Add method to change owner
  • Loading branch information
ßingen authored Feb 13, 2020
1 parent c231c39 commit f01ab12
Show file tree
Hide file tree
Showing 13 changed files with 1,312 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"env": {
"node": true,
"mocha": true
},
"globals": {
"artifacts": "readonly",
"assert": "readonly",
"contract": "readonly",
"web3": "readonly"
},
"extends": ["standard"],
"plugins": ["unused-imports"],
"rules": {
"semi": "error",
"one-var": "off",
"key-spacing": "off",
"no-var": "error",
"no-multi-spaces": "off",
"no-return-assign": "off",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"unused-imports/no-unused-imports": "error",
"linebreak-style": ["error", "unix"],
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }],
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sol linguist-language=Solidity
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# Dependencies
node_modules/
package-lock.json

# Production
build/
abi/

# coverage
coverage/
coverageEnv/
coverage.json
allFiredEvents
scTopics

# Logs
yarn-debug.log*
yarn-error.log*

# Editors
.vscode/
.idea/*

# Misc
.DS_Store

bytecode
12 changes: 12 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const skipFiles = [
'lib',
'test',
'standards'
]

module.exports = {
norpc: true,
compileCommand: '../node_modules/.bin/truffle compile',
testCommand: 'node --max-old-space-size=4096 ../node_modules/.bin/truffle test --network coverage',
skipFiles,
}
2 changes: 2 additions & 0 deletions .soliumignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
contracts/test
40 changes: 40 additions & 0 deletions .soliumrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"extends": "solium:all",
"plugins": ["security"],
"rules": {
"security/no-low-level-calls": "off",
"security/no-inline-assembly": "off",
"imports-on-top": "error",
"variable-declarations": "error",
"array-declarations": "error",
"operator-whitespace": "error",
"conditionals-whitespace": "error",
"comma-whitespace": "error",
"semicolon-whitespace": "error",
"function-whitespace": "error",
"lbrace": "error",
"mixedcase": "error",
"camelcase": "error",
"uppercase": "error",
"no-empty-blocks": "error",
"no-unused-vars": "error",
"quotes": ["error", "double"],
"blank-lines": "error",
"indentation": ["error", 4],
"arg-overflow": ["error", 8],
"whitespace": "error",
"deprecated-suicide": "error",
"pragma-on-top": "error",
"function-order": "error",
"emit": "error",
"no-constant": "error",
"value-in-payable": "error",
"no-experimental": "off",
"max-len": ["error", 145],
"error-reason": "error",
"visibility-first": "error",
"linebreak-style": "error",
"constructor": "error",
"no-trailing-whitespace": "error"
}
}
Loading

0 comments on commit f01ab12

Please sign in to comment.