-
Notifications
You must be signed in to change notification settings - Fork 365
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 #219 from ethereum-ts/kk/new-architecture
- Loading branch information
Showing
323 changed files
with
15,044 additions
and
11,452 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 |
---|---|---|
@@ -1,31 +1,37 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:8.11.2-stretch | ||
|
||
working_directory: ~/repo | ||
version: 2.1 | ||
|
||
commands: | ||
install_dependencies: | ||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
name: Restore Yarn Package Cache | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
|
||
- run: yarn install --frozen-lockfile | ||
|
||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Install Dependencies | ||
command: yarn install --frozen-lockfile | ||
- save_cache: | ||
name: Save Yarn Package Cache | ||
key: yarn-packages-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
|
||
- run: yarn test:coverage | ||
- ~/.cache/yarn | ||
|
||
jobs: | ||
build_and_test: | ||
docker: | ||
- image: circleci/node:11.15 | ||
steps: | ||
- checkout | ||
- install_dependencies | ||
- run: yarn build | ||
|
||
- run: yarn test:package-bundle | ||
|
||
- run: ./scripts/no-git-changes.sh | ||
- run: yarn typecheck | ||
- run: yarn lint | ||
- run: yarn test | ||
- run: yarn format # do it at the very end because test can generate types (which should be formatted) | ||
- run: yarn check-examples | ||
|
||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- build_and_test |
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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,253 @@ | ||
{ | ||
"env": { | ||
"es6": true | ||
}, | ||
"extends": ["typestrict"], | ||
"plugins": [ | ||
"no-only-tests" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-useless-constructor": "error", | ||
"accessor-pairs": "error", | ||
"constructor-super": "error", | ||
"eqeqeq": [ | ||
"error", | ||
"always", | ||
{ | ||
"null": "ignore" | ||
} | ||
], | ||
"handle-callback-err": [ | ||
"error", | ||
"^(err|error)$" | ||
], | ||
"new-parens": "error", | ||
"no-array-constructor": "error", | ||
"no-async-promise-executor": "error", | ||
"no-caller": "error", | ||
"no-class-assign": "error", | ||
"no-compare-neg-zero": "error", | ||
"no-cond-assign": "error", | ||
"no-const-assign": "error", | ||
"no-constant-condition": [ | ||
"error", | ||
{ | ||
"checkLoops": false | ||
} | ||
], | ||
"no-control-regex": "error", | ||
"no-debugger": "error", | ||
"no-delete-var": "error", | ||
"no-dupe-args": "error", | ||
"no-dupe-keys": "error", | ||
"no-duplicate-case": "error", | ||
"no-empty-character-class": "error", | ||
"no-empty-pattern": "error", | ||
"no-eval": "error", | ||
"no-ex-assign": "error", | ||
"no-extend-native": "error", | ||
"no-extra-bind": "error", | ||
"no-extra-boolean-cast": "error", | ||
"no-extra-parens": [ | ||
"error", | ||
"functions" | ||
], | ||
"no-fallthrough": "error", | ||
"no-floating-decimal": "error", | ||
"no-func-assign": "error", | ||
"no-global-assign": "error", | ||
"no-implied-eval": "error", | ||
"no-inner-declarations": [ | ||
"error", | ||
"functions" | ||
], | ||
"no-invalid-regexp": "error", | ||
"no-iterator": "error", | ||
"no-label-var": "error", | ||
"no-labels": [ | ||
"error", | ||
{ | ||
"allowLoop": false, | ||
"allowSwitch": false | ||
} | ||
], | ||
"no-lone-blocks": "error", | ||
"no-misleading-character-class": "error", | ||
"no-mixed-operators": [ | ||
"error", | ||
{ | ||
"allowSamePrecedence": true, | ||
"groups": [ | ||
[ | ||
"==", | ||
"!=", | ||
"===", | ||
"!==", | ||
">", | ||
">=", | ||
"<", | ||
"<=" | ||
], | ||
[ | ||
"&&", | ||
"||" | ||
], | ||
[ | ||
"in", | ||
"instanceof" | ||
] | ||
] | ||
} | ||
], | ||
"no-multi-str": "error", | ||
"no-multiple-empty-lines": [ | ||
"error", | ||
{ | ||
"max": 1, | ||
"maxEOF": 0 | ||
} | ||
], | ||
"no-negated-in-lhs": "error", | ||
"no-new": "error", | ||
"no-new-func": "error", | ||
"no-new-object": "error", | ||
"no-new-require": "error", | ||
"no-new-symbol": "error", | ||
"no-new-wrappers": "error", | ||
"no-obj-calls": "error", | ||
"no-octal": "error", | ||
"no-octal-escape": "error", | ||
"no-path-concat": "error", | ||
"no-proto": "error", | ||
"no-prototype-builtins": "error", | ||
"no-redeclare": [ | ||
"error", | ||
{ | ||
"builtinGlobals": false | ||
} | ||
], | ||
"no-regex-spaces": "error", | ||
"no-return-assign": [ | ||
"error", | ||
"except-parens" | ||
], | ||
"no-self-assign": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-sparse-arrays": "error", | ||
"no-tabs": "error", | ||
"no-this-before-super": "error", | ||
"no-throw-literal": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unmodified-loop-condition": "error", | ||
"no-unneeded-ternary": [ | ||
"error", | ||
{ | ||
"defaultAssignment": false | ||
} | ||
], | ||
"no-unreachable": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unsafe-negation": "error", | ||
"no-restricted-imports": [ | ||
"error" | ||
], | ||
"no-use-before-define": [ | ||
"error", | ||
{ | ||
"classes": false, | ||
"functions": false, | ||
"variables": false | ||
} | ||
], | ||
"no-useless-call": "error", | ||
"no-useless-catch": "error", | ||
"no-useless-computed-key": "error", | ||
"no-useless-escape": "error", | ||
"no-useless-rename": "error", | ||
"no-useless-return": "error", | ||
"no-with": "error", | ||
"object-curly-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"object-property-newline": [ | ||
"error", | ||
{ | ||
"allowMultiplePropertiesPerLine": true | ||
} | ||
], | ||
"one-var": [ | ||
"error", | ||
{ | ||
"initialized": "never" | ||
} | ||
], | ||
"operator-linebreak": [ | ||
"error", | ||
"after", | ||
{ | ||
"overrides": { | ||
":": "before", | ||
"?": "before" | ||
} | ||
} | ||
], | ||
"padded-blocks": [ | ||
"error", | ||
{ | ||
"blocks": "never", | ||
"classes": "never", | ||
"switches": "never" | ||
} | ||
], | ||
"prefer-const": [ | ||
"error", | ||
{ | ||
"destructuring": "all" | ||
} | ||
], | ||
"prefer-promise-reject-errors": "error", | ||
"symbol-description": "error", | ||
"unicode-bom": [ | ||
"error", | ||
"never" | ||
], | ||
"use-isnan": "error", | ||
"valid-typeof": [ | ||
"error", | ||
{ | ||
"requireStringLiterals": true | ||
} | ||
], | ||
"wrap-iife": [ | ||
"error", | ||
"any", | ||
{ | ||
"functionPrototypeMethods": true | ||
} | ||
], | ||
"yoda": [ | ||
"error", | ||
"never" | ||
], | ||
"no-only-tests/no-only-tests": "error" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"test/**/*.{js,ts,tsx}" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
} | ||
} | ||
] | ||
} |
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 @@ | ||
*.sol linguist-language=Solidity |
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,9 +1,16 @@ | ||
node_modules | ||
dist | ||
test/integration/abis | ||
test-tmp | ||
.nyc_output | ||
coverage | ||
test/integration/targets/truffle/build | ||
test/package-test/types | ||
packages/core/README.md | ||
*.tsbuildinfo | ||
build | ||
contracts/compiled | ||
packages/target-truffle-v4-test/contracts | ||
packages/target-truffle-v5-test/contracts | ||
packages/typechain/README.md | ||
examples/web3-v1/types | ||
examples/truffle-v4/types | ||
examples/truffle-v4/migrations | ||
examples/truffle-v5/types | ||
examples/truffle-v5/migrations |
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,8 @@ | ||
process.env.NODE_ENV = 'test' | ||
|
||
module.exports = { | ||
require: ['ts-node/register/transpile-only'], | ||
extension: ['ts'], | ||
watchExtensions: ['ts'], | ||
spec: ['test/**/*.test.ts'], | ||
} |
This file was deleted.
Oops, something went wrong.
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,2 +1,4 @@ | ||
dist/ | ||
**/*.d.ts | ||
package.json | ||
**/dist/** | ||
**/types/** | ||
**/build/** # truffle artifacts |
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,7 +1,8 @@ | ||
{ | ||
"printWidth": 100, | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": false, | ||
"trailingComma": "all" | ||
} | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"proseWrap": "always" | ||
} |
Oops, something went wrong.