-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
48 lines (44 loc) · 954 Bytes
/
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
43
44
45
46
47
48
import '@nomiclabs/hardhat-waffle'
import '@nomiclabs/hardhat-truffle5'
import '@nomiclabs/hardhat-etherscan'
import '@nomiclabs/hardhat-web3'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-vyper'
import 'hardhat-contract-sizer'
import 'solidity-coverage'
import '@typechain/hardhat'
import dotenv from 'dotenv'
dotenv.config()
const accounts = process.env.PRIVATE_KEY
? { accounts: [`0x${process.env.PRIVATE_KEY}`] }
: {}
const config = {
solidity: {
compilers: [
{
version: '0.8.1',
settings: {
optimizer: {
runs: 9999,
enabled: true,
},
},
},
],
},
vyper: {
compilers: [{ version: '0.2.7' }, { version: '0.3.1' }],
},
networks: {
hardhat: {},
spark: {
url: 'https://rpc.fusespark.io',
...accounts,
},
fuse: {
url: 'https://rpc.fuse.io',
...accounts,
},
},
}
export default config