-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
48 lines (43 loc) · 958 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
require("dotenv").config()
import { HardhatUserConfig } from "hardhat/config"
import "@nomiclabs/hardhat-truffle5"
import "@nomicfoundation/hardhat-toolbox"
import "@nomiclabs/hardhat-web3"
import "./tsutil/cli"
import "hardhat-gas-reporter"
const accounts = JSON.parse(process.env.PRIVATE_KEYS!)
const config: HardhatUserConfig = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
gasReporter: {
enabled: true
},
mocha: {
timeout: 100000000
},
networks: {
coston: {
url: "https://coston-api.flare.network/ext/C/rpc",
accounts: accounts,
chainId: 16
},
costwo: {
url: "https://coston2-api.flare.network/ext/C/rpc",
accounts: accounts,
chainId: 114
},
fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
accounts: accounts,
chainId: 43113
}
}
}
export default config