Skip to content

Commit

Permalink
chore: hardhat dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisGD committed Jun 25, 2023
1 parent 4339ec0 commit cec83d8
Show file tree
Hide file tree
Showing 5 changed files with 5,519 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ docs/

# Dotenv file
.env

# Node modules
/node_modules

# Hardhat
/types
/cache_hardhat
/artifacts
53 changes: 53 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import * as dotenv from "dotenv";
import "ethers-maths";
import "hardhat-deal";
import "hardhat-gas-reporter";
import "hardhat-tracer";
import { HardhatUserConfig } from "hardhat/config";
import "solidity-coverage";

import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-foundry";
import "@nomicfoundation/hardhat-network-helpers";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";

dotenv.config();

const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1,
gasPrice: 0,
initialBaseFeePerGas: 0,
},
},
solidity: {
compilers: [
{
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
],
},
mocha: {
timeout: 3000000,
},
typechain: {
outDir: "types/",
externalArtifacts: ["deps/**/*.json"],
},
tracer: {
defaultVerbosity: 1,
gasCost: true,
},
};

export default config;
49 changes: 49 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"scripts": {
"postinstall": "husky install",
"compile": "npx hardhat compile --force",
"test": "npx hardhat test"
},
"dependencies": {
"@ethersproject/abi": "^5.7.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"ethers": "^5.7.2",
"ethers-maths": "^3.5.1",
"lodash": "^4.17.21",
"openzeppelin-contracts": "^4.0.0"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^1.0.6",
"@nomicfoundation/hardhat-foundry": "^1.0.1",
"@nomicfoundation/hardhat-network-helpers": "^1.0.8",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@typechain/ethers-v5": "^10.2.1",
"@typechain/hardhat": "^6.1.6",
"@types/chai": "^4.3.5",
"@types/lodash": "^4.14.195",
"@types/mocha": "^10.0.1",
"@types/node": "^20.2.5",
"chai": "^4.3.7",
"dotenv": "^16.1.3",
"hardhat": "^2.14.1",
"hardhat-deal": "^1.3.0",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-tracer": "2.3.2",
"husky": "8.0.3",
"lint-staged": "13.2.2",
"prettier": "^2.8.8",
"solidity-coverage": "^0.8.2",
"ts-node": "^10.9.1",
"typechain": "^8.2.0",
"typescript": "5.0.4"
},
"lint-staged": {
"*.sol": "forge fmt",
"*.js": "yarn prettier",
"*.ts": "yarn prettier",
"*.json": "yarn prettier",
"*.yml": "yarn prettier"
}
}
15 changes: 15 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "esnext",
"strict": true,
"esModuleInterop": true,
"rootDir": ".",
"baseUrl": ".",
"outDir": "dist",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"declaration": true
},
"include": ["types", "test/hardhat"],
"files": ["./hardhat.config.ts"]
}
Loading

0 comments on commit cec83d8

Please sign in to comment.