Skip to content

Commit 9aebdce

Browse files
shunkakinokiattente
authored andcommitted
feat: ini hardhat
1 parent 9b119c9 commit 9aebdce

File tree

6 files changed

+2256
-90
lines changed

6 files changed

+2256
-90
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Compiler files
22
cache/
3+
cache_hardhat/
34
out/
45

56
# Ignore all broadcast logs

hardhat.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { HardhatUserConfig } from 'hardhat/config'
2+
import "@nomicfoundation/hardhat-foundry";
3+
4+
const config: HardhatUserConfig = {
5+
solidity: {
6+
version: '0.8.27',
7+
settings: {
8+
optimizer: {
9+
enabled: true,
10+
runs: 500000
11+
}
12+
}
13+
},
14+
}
15+
16+
export default config

package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
{
2-
"devDependencies": {
3-
"lefthook": "^1.6.1",
4-
"prettier": "^3.2.5"
5-
},
62
"scripts": {
3+
"build": "hardhat compile",
74
"postinstall": "lefthook install",
85
"format:prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",
96
"format:forge": "forge fmt"
7+
},
8+
"dependencies": {
9+
"hardhat": "^2.22.18"
10+
},
11+
"devDependencies": {
12+
"@nomicfoundation/hardhat-foundry": "^1.1.3",
13+
"lefthook": "^1.6.1",
14+
"prettier": "^3.2.5",
15+
"ts-node": "^10.9.2",
16+
"typescript": "^5.7.3"
1017
}
11-
}
18+
}

0 commit comments

Comments
 (0)