Skip to content

Commit 05c57f5

Browse files
committed
refactor(cli-template-contracts-hardhat): update cli contracts hardhat template
1 parent 6f1b279 commit 05c57f5

File tree

17 files changed

+2413
-123
lines changed

17 files changed

+2413
-123
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#root = true
2+
3+
[*]
4+
indent_style = space
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
max_line_length = 120
10+
indent_size = 4
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

packages/cli-template-contracts-hardhat/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ INFURA_API_KEY=
22
ETHEREUM_PRIVATE_KEY=
33
REPORT_GAS=false
44
ETHERSCAN_API_KEY=
5-
COINMARKETCAP_API_KEY=
5+
COINMARKETCAP_API_KEY=
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# dependencies
2+
node_modules
3+
package-lock.json
4+
yarn.lock
5+
.yarn
6+
7+
# testing
8+
coverage
9+
coverage.json
10+
11+
# hardhat
12+
artifacts
13+
cache
14+
typechain-types
15+
16+
# types
17+
types
18+
19+
# circuits
20+
circuits
21+
22+
# production
23+
dist
24+
build
25+
docs
26+
27+
# misc
28+
.DS_Store
29+
*.pem
30+
31+
# debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
35+
36+
# packages
37+
cli-template-*
38+
39+
snark-artifacts
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"es6": true
5+
},
6+
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"ecmaVersion": 6,
10+
"sourceType": "module",
11+
"project": ["./tsconfig.json", "./packages/**/tsconfig.json"]
12+
},
13+
"plugins": ["@typescript-eslint"],
14+
"rules": {
15+
"no-underscore-dangle": "off",
16+
"import/no-extraneous-dependencies": "off",
17+
"no-bitwise": "off",
18+
"no-await-in-loop": "off",
19+
"no-restricted-syntax": "off",
20+
"no-console": ["warn", { "allow": ["info", "warn", "error", "log"] }],
21+
"@typescript-eslint/lines-between-class-members": "off",
22+
"no-param-reassign": "off"
23+
}
24+
}
Lines changed: 67 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,71 @@
11
node_modules
22
.env
3-
coverage
4-
coverage.json
5-
typechain
6-
typechain-types
73

84
# Hardhat files
9-
cache
10-
artifacts
5+
/cache
6+
/artifacts
7+
8+
# TypeChain files
9+
/typechain
10+
/typechain-types
11+
12+
# solidity-coverage files
13+
/coverage
14+
/coverage.json
15+
16+
# Logs
17+
logs
18+
*.log
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
lerna-debug.log*
23+
.pnpm-debug.log*
24+
25+
# Diagnostic reports (https://nodejs.org/api/report.html)
26+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
27+
28+
# Runtime data
29+
pids
30+
*.pid
31+
*.seed
32+
*.pid.lock
33+
34+
# IDE
35+
.vscode
36+
.idea
37+
38+
# Dependency directories
39+
node_modules/
40+
41+
# Output of 'npm pack'
42+
*.tgz
43+
44+
# Microbundle cache
45+
.rpt2_cache/
46+
.rts2_cache_cjs/
47+
.rts2_cache_es/
48+
.rts2_cache_umd/
49+
50+
# Yarn Integrity file
51+
.yarn-integrity
52+
53+
# vercel
54+
.vercel
55+
56+
# dotenv environment variable files
57+
.env
58+
59+
# Optional npm cache directory
60+
.npm
61+
.DS_Store
62+
63+
# yarn v3
64+
.pnp.*
65+
.pnp.js
66+
.yarn/*
67+
!.yarn/patches
68+
!.yarn/plugins
69+
!.yarn/releases
70+
!.yarn/sdks
71+
!.yarn/versions
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# dependencies
2+
node_modules
3+
package-lock.json
4+
yarn.lock
5+
.yarn
6+
7+
8+
# debug
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# testing
14+
coverage
15+
coverage.json
16+
17+
# hardhat
18+
artifacts
19+
cache
20+
typechain-types
21+
packages/contracts/deployed-contracts/undefined.json
22+
packages/contracts/deployed-contracts/hardhat.json
23+
packages/contracts/deployed-contracts/localhost.json
24+
25+
# contracts
26+
Verifier*.sol
27+
28+
# misc
29+
.DS_Store
30+
*.pem
31+
32+
# debug
33+
npm-debug.log*
34+
yarn-debug.log*
35+
yarn-error.log*
36+
37+
zk-artifacts
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "always",
4+
"trailingComma": "none"
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "solhint:default"
3+
}

packages/cli-template-contracts-hardhat/.yarn/releases/yarn-4.1.0.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
5+
nodeLinker: node-modules
6+
7+
yarnPath: .yarn/releases/yarn-4.1.0.cjs

0 commit comments

Comments
 (0)