Skip to content

Commit 8b7f7cc

Browse files
committed
feat: started v2.0.0 refactor
1 parent 319a920 commit 8b7f7cc

File tree

111 files changed

+8166
-21871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+8166
-21871
lines changed

.circleci/config.yml

-44
This file was deleted.

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true
10+
11+
[*.sol]
12+
indent_size = 4

.eslintignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export/
2+
deployments/
3+
artifacts/
4+
cache/
5+
coverage/
6+
node_modules/
7+
typechain/

.eslintrc.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
6+
sourceType: 'module', // Allows for the use of imports
7+
},
8+
env: {
9+
commonjs: true,
10+
},
11+
plugins: ['@typescript-eslint'],
12+
extends: [
13+
'eslint:recommended',
14+
'plugin:@typescript-eslint/recommended',
15+
'prettier',
16+
],
17+
rules: {
18+
'no-empty': 'off',
19+
'no-empty-function': 'off',
20+
'@typescript-eslint/no-empty-function': 'off',
21+
},
22+
};

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.sol linguist-language=Solidity
1+
* text=auto eol=lf

.github/ISSUE_TEMPLATE

-19
This file was deleted.

.github/PULL_REQUEST_TEMPLATE

-17
This file was deleted.

.github/workflows/main.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
on: push
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
with:
9+
fetch-depth: 1
10+
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: 12.18.0
15+
16+
- name: Get yarn cache directory path
17+
id: yarn-cache-dir-path
18+
run: echo "::set-output name=dir::$(yarn cache dir)"
19+
20+
- uses: actions/cache@v2
21+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+
with:
23+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
24+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-yarn-
27+
28+
- name: Installing dependencies
29+
run: yarn install --frozen-lockfile
30+
31+
- name: Linting
32+
run: yarn lint
33+
34+
- name: Formatting
35+
run: yarn format
36+
37+
- name: Running tests
38+
run: yarn test

.gitignore

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
# Node / NPM / Yarn
2-
node_modules
2+
node_modules/
33
npm-debug.log*
44
yarn-debug.log*
55
yarn-error.log*
66

77
# Build / test artifacts
8-
coverage
9-
build
10-
artifacts
11-
typechain
12-
cache
8+
coverage*
9+
artifacts*
1310
dist
1411
coverageEnv
1512
coverage.json
1613
.coveralls.yml
1714
.coverage_artifacts
1815
.coverage_contracts
1916
*output.log
17+
typechain/
18+
contractsInfo.json
19+
deployments/hardhat
20+
deployments/localhost
2021

2122
# Configuration files
2223
*.env
2324
.env*
24-
.vscode/
2525

2626
# OS files
2727
.DS_Store
@@ -31,7 +31,15 @@ coverage.json
3131
scTopics
3232
allFiredEvents
3333
in_complete_tests
34+
build/development
3435
local_*
3536
bindings.go
3637
types
37-
.output-logs
38+
39+
.vscode/*
40+
!.vscode/settings.json.default
41+
!.vscode/launch.json.default
42+
!.vscode/extensions.json.default
43+
44+
.yalc
45+
yalc.lock

.npmignore

-50
This file was deleted.

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export/
2+
deployments/
3+
artifacts/
4+
cache/
5+
coverage/
6+
node_modules/
7+
typechain/

.prettierrc.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
singleQuote: true,
3+
bracketSpacing: false,
4+
overrides: [
5+
{
6+
files: '*.sol',
7+
options: {
8+
printWidth: 120,
9+
tabWidth: 4,
10+
singleQuote: false,
11+
explicitTypes: 'always',
12+
},
13+
},
14+
],
15+
};

.solcover.js

-24
This file was deleted.

.solhint.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "solhint:recommended",
3+
"plugins": ["prettier"],
4+
"rules": {
5+
"prettier/prettier": [
6+
"error",
7+
{
8+
"endOfLine": "auto"
9+
}
10+
],
11+
"code-complexity": ["error", 7],
12+
"compiler-version": ["error", "^0.8.7"],
13+
"const-name-snakecase": "off",
14+
"func-name-mixedcase": "off",
15+
"constructor-syntax": "error",
16+
"func-visibility": ["error", {"ignoreConstructors": true}],
17+
"not-rely-on-time": "off",
18+
"reason-string": ["warn", {"maxLength": 64}]
19+
}
20+
}

.solhintignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export/
2+
deployments/
3+
artifacts/
4+
cache/
5+
coverage/
6+
node_modules/
7+
typechain/

.vscode/extensions.json.default

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"editorconfig.editorconfig",
5+
"esbenp.prettier-vscode",
6+
"hbenl.vscode-mocha-test-adapter",
7+
"juanblanco.solidity"
8+
],
9+
"unwantedRecommendations": []
10+
}

.vscode/launch.json.default

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "hardhat node",
8+
"skipFiles": ["<node_internals>/**"],
9+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/hardhat",
10+
"args": ["node"],
11+
"cwd": "${workspaceFolder}"
12+
}
13+
]
14+
}

.vscode/settings.json.default

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll": true
6+
},
7+
"solidity.linter": "solhint",
8+
"solidity.defaultCompiler": "remote",
9+
"solidity.compileUsingRemoteVersion": "v0.8.7+commit.e28d00a7",
10+
"solidity.packageDefaultDependenciesContractsDirectory": "",
11+
"solidity.enabledAsYouTypeCompilationErrorCheck": true,
12+
"solidity.validationDelay": 1500,
13+
"solidity.packageDefaultDependenciesDirectory": "node_modules",
14+
"mochaExplorer.env": {
15+
"HARDHAT_CONFIG": "hardhat.config.ts",
16+
"HARDHAT_COMPILE": "true"
17+
},
18+
"mochaExplorer.require": ["ts-node/register/transpile-only"]
19+
}

0 commit comments

Comments
 (0)