Skip to content

Commit 37b2981

Browse files
authored
Initial commit
0 parents  commit 37b2981

31 files changed

+6665
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.yml]
11+
indent_style = space

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MNEMONIC='Mnemonic'
2+
INFURA_KEY=''
3+
ETHERSCAN_KEY=''
4+
ARBISCAN_KEY=''
5+
POLYGONSCAN_KEY=''

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
types/
3+
typechain-types/

.eslintrc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"env": {
3+
"mocha": true
4+
},
5+
"parser": "@typescript-eslint/parser",
6+
"parserOptions": {
7+
"project": "./tsconfig.json",
8+
"tsconfigRootDir": "."
9+
},
10+
"plugins": ["@typescript-eslint"],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/eslint-recommended",
14+
"plugin:@typescript-eslint/recommended",
15+
"xo",
16+
"xo-typescript",
17+
"prettier"
18+
],
19+
"rules": {
20+
"@typescript-eslint/prefer-readonly-parameter-types": "warn"
21+
},
22+
"overrides": [
23+
{
24+
"files": ["test/**/*.ts"],
25+
"rules": {
26+
"@typescript-eslint/no-unsafe-call": "off",
27+
"@typescript-eslint/no-unsafe-assignment": "off"
28+
}
29+
}
30+
]
31+
}

.github/workflows/nodejs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [16.x]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
21+
- name: install deps
22+
run: yarn
23+
24+
- name: build
25+
run: yarn build
26+
27+
- name: lint
28+
run: yarn lint
29+
30+
- name: test
31+
run: yarn test

.gitignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
.env.gpg
60+
61+
# next.js build output
62+
.next
63+
64+
# output of typechain
65+
build
66+
types
67+
68+
# output of tsc
69+
*.js
70+
!truffle-config.js
71+
72+
# use yarn
73+
package-lock.json
74+
75+
# outout of hardhat
76+
artifacts
77+
cache
78+
typechain-types

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
artifacts
2+
cache
3+
artifacts/
4+
typechain-types/
5+
cache/

.prettierrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"useTabs": true,
5+
"overrides": [
6+
{
7+
"files": ["*.sol"],
8+
"options": {
9+
"singleQuote": false
10+
}
11+
}
12+
]
13+
}

.solhint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "solhint:recommended",
3+
"rules": {
4+
"no-empty-blocks": "off",
5+
"compiler-version": ["error", "0.8.9"],
6+
"func-visibility": ["warn", { "ignoreConstructors": true }]
7+
}
8+
}

0 commit comments

Comments
 (0)