-
Notifications
You must be signed in to change notification settings - Fork 25
/
hardhat.config.ts
42 lines (41 loc) · 1.09 KB
/
hardhat.config.ts
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
import '@nomicfoundation/hardhat-toolbox'
import '@openzeppelin/hardhat-upgrades'
import { ChainId } from './libs/blockchain/src/types/ChainId'
require('dotenv').config()
module.exports = {
solidity: '0.8.17',
networks: {
...(process.env.PRIVATE_KEY_DEV
? {
ethereum: {
chainId: ChainId.ETHEREUM,
url: process.env.ETHEREUM_RPC_URL,
accounts: [process.env.PRIVATE_KEY_DEV],
},
goerli: {
chainId: ChainId.GOERLI,
url: process.env.GOERLI_RPC_URL,
accounts: [process.env.PRIVATE_KEY_DEV],
},
polygon: {
chainId: ChainId.POLYGON,
url: process.env.POLYGON_RPC_URL,
accounts: [process.env.PRIVATE_KEY_DEV],
},
}
: {}),
},
etherscan: {
apiKey: {
ethereum: process.env.ETHERSCAN_KEY,
goerli: process.env.ETHERSCAN_KEY,
polygon: process.env.POLYGONSCAN_KEY,
},
},
paths: {
sources: './contracts',
tests: './test-contracts',
cache: './cache',
artifacts: './artifacts',
},
}