-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
45 lines (42 loc) · 1.03 KB
/
hardhat.config.ts
File metadata and controls
45 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import type { HardhatUserConfig } from "hardhat/config"
import '@openzeppelin/hardhat-upgrades'
import '@nomicfoundation/hardhat-toolbox-viem'
import '@foundry-rs/hardhat-anvil'
import '@kodex-data/hardhat-ipfs'
import * as dotenv from 'dotenv'
dotenv.config()
const ZERO_PRIVATE_KEY ='0x0000000000000000000000000000000000000000000000000000000000000000'
const MAINNET_PRIVATE_KEY = process.env.MAINNET_PRIVATE_KEY ?? ZERO_PRIVATE_KEY
const TESTNET_PRIVATE_KEY = process.env.TESTNET_PRIVATE_KEY ?? ZERO_PRIVATE_KEY
const config: HardhatUserConfig = {
networks: {
testnet: {
chainId: 31337,
url: 'http://localhost:8545/',
accounts: [TESTNET_PRIVATE_KEY]
}
},
ipfs: {
host: 'localhost',
port: 5001,
protocol: 'http'
},
solidity: {
compilers: [
{
version: '0.8.19',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
typechain: {
outDir: "typechain",
target: "ethers-v6",
}
};
export default config;