This repository has been archived by the owner on Feb 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from OpenSTFoundation/release-1.0
Merging release-1.0 to master
- Loading branch information
Showing
256 changed files
with
203,109 additions
and
5,263 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,280 @@ | ||
module.exports = { | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2017 | ||
}, | ||
"rules": { | ||
"accessor-pairs": "error", | ||
"array-bracket-newline": "error", | ||
"array-bracket-spacing": "error", | ||
"array-callback-return": "error", | ||
"array-element-newline": "off", | ||
"arrow-body-style": "off", | ||
"arrow-parens": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"arrow-spacing": [ | ||
"error", | ||
{ | ||
"after": true, | ||
"before": true | ||
} | ||
], | ||
"block-scoped-var": "error", | ||
"block-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"callback-return": "error", | ||
"camelcase": "error", | ||
"capitalized-comments": "off", | ||
"class-methods-use-this": "error", | ||
"comma-dangle": "error", | ||
"comma-spacing": [ | ||
"error", | ||
{ | ||
"after": true, | ||
"before": false | ||
} | ||
], | ||
"comma-style": "warn", | ||
"complexity": "error", | ||
"computed-property-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"consistent-return": "error", | ||
"consistent-this": "warn", | ||
"curly": "error", | ||
"default-case": "error", | ||
"dot-location": "off", | ||
"dot-notation": [ | ||
"error", | ||
{ | ||
"allowKeywords": true | ||
} | ||
], | ||
"eol-last": "error", | ||
"eqeqeq": "error", | ||
"for-direction": "error", | ||
"func-call-spacing": "error", | ||
"func-name-matching": "error", | ||
"func-names": [ | ||
"error", | ||
"never" | ||
], | ||
"func-style": [ | ||
"error", | ||
"declaration" | ||
], | ||
"function-paren-newline": "off", | ||
"generator-star-spacing": "error", | ||
"getter-return": "error", | ||
"global-require": "error", | ||
"guard-for-in": "off", | ||
"handle-callback-err": "error", | ||
"id-blacklist": "error", | ||
"id-length": "off", | ||
"id-match": "error", | ||
"indent": [2,2], | ||
"indent-legacy": "off", | ||
"init-declarations": "error", | ||
"jsx-quotes": "error", | ||
"key-spacing": "error", | ||
"keyword-spacing": "error", | ||
"line-comment-position": "error", | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"lines-around-comment": "error", | ||
"lines-around-directive": "error", | ||
"max-depth": "error", | ||
"max-len": "off", | ||
"max-lines": "warn", | ||
"max-nested-callbacks": "error", | ||
"max-params": "off", | ||
"max-statements": "off", | ||
"max-statements-per-line": "off", | ||
"new-parens": "off", | ||
"newline-after-var": "off", | ||
"newline-before-return": "off", | ||
"newline-per-chained-call": "error", | ||
"no-alert": "error", | ||
"no-array-constructor": "error", | ||
"no-await-in-loop": "error", | ||
"no-bitwise": [ | ||
"error", | ||
{ | ||
"int32Hint": true | ||
} | ||
], | ||
"no-buffer-constructor": "error", | ||
"no-caller": "error", | ||
"no-catch-shadow": "error", | ||
"no-confusing-arrow": "off", | ||
"no-console": "warn", | ||
"no-continue": "error", | ||
"no-div-regex": "error", | ||
"no-duplicate-imports": "error", | ||
"no-else-return": "off", | ||
"no-empty-function": "error", | ||
"no-eq-null": "error", | ||
"no-eval": "error", | ||
"no-extend-native": "error", | ||
"no-extra-bind": "error", | ||
"no-extra-label": "error", | ||
"no-extra-parens": "error", | ||
"no-floating-decimal": "error", | ||
"no-implicit-coercion": "error", | ||
"no-implicit-globals": "error", | ||
"no-implied-eval": "error", | ||
"no-inline-comments": "error", | ||
"no-invalid-this": "error", | ||
"no-iterator": "error", | ||
"no-label-var": "error", | ||
"no-labels": "error", | ||
"no-lone-blocks": "error", | ||
"no-lonely-if": "error", | ||
"no-loop-func": "error", | ||
"no-magic-numbers": "off", | ||
"no-mixed-operators": "error", | ||
"no-mixed-requires": "error", | ||
"no-multi-assign": "off", | ||
"no-multi-spaces": "error", | ||
"no-multi-str": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-native-reassign": "error", | ||
"no-negated-condition": "error", | ||
"no-negated-in-lhs": "error", | ||
"no-nested-ternary": "error", | ||
"no-new": "error", | ||
"no-new-func": "error", | ||
"no-new-object": "error", | ||
"no-new-require": "error", | ||
"no-new-wrappers": "error", | ||
"no-octal-escape": "error", | ||
"no-param-reassign": "error", | ||
"no-path-concat": "error", | ||
"no-plusplus": "error", | ||
"no-process-env": "off", | ||
"no-process-exit": "warn", | ||
"no-proto": "error", | ||
"no-prototype-builtins": "error", | ||
"no-restricted-globals": "error", | ||
"no-restricted-imports": "error", | ||
"no-restricted-modules": "error", | ||
"no-restricted-properties": "error", | ||
"no-restricted-syntax": "error", | ||
"no-return-assign": "off", | ||
"no-return-await": "error", | ||
"no-script-url": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-shadow": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-spaced-func": "error", | ||
"no-sync": "warn", | ||
"no-tabs": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-ternary": "off", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef-init": "error", | ||
"no-undef":"error", | ||
"no-undefined": "off", | ||
"no-underscore-dangle": "off", | ||
"no-unmodified-loop-condition": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-unreachable": "warn", | ||
"no-unused-expressions": "error", | ||
"no-unused-vars": [ | ||
"error", | ||
{ "vars": "all", "args": "none"} | ||
], | ||
"no-use-before-define": "error", | ||
"no-useless-call": "error", | ||
"no-useless-computed-key": "error", | ||
"no-useless-concat": "error", | ||
"no-useless-constructor": "error", | ||
"no-useless-rename": "error", | ||
"no-useless-return": "error", | ||
"no-var": "off", | ||
"no-void": "error", | ||
"no-warning-comments": "warn", | ||
"no-whitespace-before-property": "error", | ||
"no-with": "error", | ||
"nonblock-statement-body-position": "error", | ||
"object-curly-newline": "error", | ||
"object-curly-spacing": "off", | ||
"object-property-newline": [ | ||
"error", | ||
{ | ||
"allowMultiplePropertiesPerLine": true | ||
} | ||
], | ||
"object-shorthand": "off", | ||
"one-var": "off", | ||
"one-var-declaration-per-line": "error", | ||
"operator-assignment": "error", | ||
"operator-linebreak": "error", | ||
"padded-blocks": "off", | ||
"padding-line-between-statements": "error", | ||
"prefer-arrow-callback": "off", | ||
"prefer-const": "error", | ||
"prefer-destructuring": "off", | ||
"prefer-numeric-literals": "error", | ||
"prefer-promise-reject-errors": "error", | ||
"prefer-reflect": "off", | ||
"prefer-rest-params": "error", | ||
"prefer-spread": "error", | ||
"prefer-template": "off", | ||
"quote-props": "off", | ||
"quotes": "off", | ||
"radix": "error", | ||
"require-await": "error", | ||
"require-jsdoc": "off", | ||
"rest-spread-spacing": "error", | ||
"semi": ["error", "always"], | ||
"semi-spacing": "error", | ||
"semi-style": [ | ||
"error", | ||
"last" | ||
], | ||
"sort-imports": "error", | ||
"sort-keys": "off", | ||
"sort-vars": "off", | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": "off", | ||
"space-in-parens": "off", | ||
"space-infix-ops": "off", | ||
"space-unary-ops": "error", | ||
"spaced-comment": "off", | ||
"strict": "warn", | ||
"switch-colon-spacing": "error", | ||
"symbol-description": "error", | ||
"template-curly-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"template-tag-spacing": "error", | ||
"unicode-bom": [ | ||
"error", | ||
"never" | ||
], | ||
"valid-jsdoc": "off", | ||
"wrap-iife": "error", | ||
"wrap-regex": "error", | ||
"yield-star-spacing": "error", | ||
"yoda": [ | ||
"error", | ||
"never" | ||
] | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
# OSX | ||
.DS_Store | ||
|
||
.idea/ | ||
|
||
# Vagrant | ||
.vagrant/ | ||
ubuntu-xenial-16.04-cloudimg-console.log | ||
|
||
# don't commit contract binaries in protocol | ||
# we do commit the contract binaries in platform | ||
contracts/bin/ | ||
contracts/abi/ | ||
|
||
# don't commit node_modules | ||
node_modules | ||
|
||
mocha_test/scripts/env_vars.sh | ||
mocha_test/scripts/ost-price-oracle/ | ||
mocha_test/scripts/poa-genesis.json | ||
mocha_test/scripts/pw | ||
mocha_test/scripts/st-poa/ | ||
|
||
package-lock.json |
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,37 @@ | ||
{ | ||
"tags": { | ||
"allowUnknownTags": true | ||
}, | ||
"source": { | ||
"include": ["config/", "helpers/", "lib/", "tools"], | ||
"exclude": [], | ||
"includePattern": ".+\\.js(doc|x)?$", | ||
"excludePattern": "(^|\\/|\\\\)_" | ||
}, | ||
"plugins": [ | ||
"jsdoc-route-plugin" | ||
], | ||
"recurseDepth": 5, | ||
"templates": { | ||
"systemName" : "OpenST Payments", | ||
"footer" : "<style>.copyright, .jsdoc-message, footer { color: #555555;} footer { border-color:#eeeeee;} }</style>", | ||
"copyright" : "OpenST Foundation Ltd.", | ||
"includeDate" : false, | ||
"theme" : "lumen", | ||
"navType" : "vertical", | ||
"linenums" : true, | ||
"cleverLinks" : true, | ||
"monospaceLinks" : true, | ||
"default": { | ||
"outputSourceFiles": true | ||
} | ||
}, | ||
"opts": { | ||
"destination": "./docs/", | ||
"encoding": "utf8", | ||
"private": true, | ||
"recurse": true, | ||
"template": "./node_modules/ink-docstrap/template", | ||
"readme": "./README.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,24 +8,33 @@ branches: | |
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
on_success: always | ||
on_failure: always | ||
node_js: | ||
- "8" | ||
- "8" | ||
services: | ||
- mysql | ||
before_install: | ||
- mysql -e 'CREATE DATABASE payment_development;' | ||
- sudo apt-get update | ||
- sudo apt-get install nodejs | ||
- sudo apt-get install npm | ||
- sudo apt-get install software-properties-common | ||
- sudo add-apt-repository -y ppa:ethereum/ethereum | ||
- sudo apt-get update | ||
- sudo bash mocha_test/scripts/install_geth_1_7_3.sh | ||
- sudo apt-get install solc | ||
- geth version | ||
install: | ||
- npm install | ||
- npm install | ||
before_script: | ||
- nohup sh tools/runTestRpc.sh </dev/null >/dev/null 2>&1 & | ||
- bash contracts/compile.sh | ||
script: | ||
- truffle test | ||
- truffle test | ||
- cd mocha_test/scripts/ | ||
- bash travis_test.sh | ||
after_script: | ||
- kill $(ps aux | grep 'testrpc' | awk '{print $2}') | ||
- kill $(ps aux | grep 'geth' | awk '{print $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,3 @@ | ||
## OpenST-Payments v1.0.0 (14 March 2018) | ||
|
||
OpenST-Payments 1.0.0 is the first release of OpenST-Payments. It provides `Airdrop` and `Pricer` contracts for token transfers, defines a `PriceOracle` interface, and introduces the concept of `Workers`. |
Oops, something went wrong.