Skip to content

Commit

Permalink
Merge pull request #1 from DistributedCollective/initial
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
Franklin Richards committed Jul 23, 2021
2 parents f664691 + a02c686 commit ddf3112
Show file tree
Hide file tree
Showing 98 changed files with 56,973 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
mocha: true, // for test files
"truffle/globals": true, // same as "truffle/truffle": true
},
extends: "prettier",
parserOptions: {
ecmaVersion: 2020,
},
rules: {},
plugins: ["truffle"],
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sol linguist-language=Solidity
33 changes: 33 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Installing Packages
run: npm ci
- name: Checking Formatting
run: npm run lint && npm run prettier-check
- name: Code Coverage
run: npm run coverage
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,14 @@ dist

# TernJS port file
.tern-port

# Custom
cache
build
artifacts
.vscode
coverage
coverage.json
.DS_Store
ORIGINS.code-workspace
__pycache__
18 changes: 18 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
__pycache__
.DS_Store
.history
.hypothesis/
artifacts/
build/
reports/
node_modules/
!.solhint.json
package-lock.json
coverage
coverage.json
docs
truffle-config.js
package.json
cache
brownie-config.yaml
.vscode
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"overrides": [
{
"files": ["*.sol", "*.js", "*.test.js", "*.json"],
"options": {
"printWidth": 140,
"tabWidth": 4,
"useTabs": true,
"singleQuote": false,
"bracketSpacing": true,
"explicitTypes": "always"
}
}
]
}
3 changes: 3 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
skipFiles: ["Sovryn", "Openzeppelin", "Interfaces"],
};
9 changes: 9 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "solhint:recommended",
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"max-line-length": ["warn", 140],
"compiler-version": ["warn"]
}
}
2 changes: 2 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
contracts/Openzeppelin
contracts/Sovryn

0 comments on commit ddf3112

Please sign in to comment.