-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhardhat.config.js
More file actions
49 lines (46 loc) · 1.01 KB
/
hardhat.config.js
File metadata and controls
49 lines (46 loc) · 1.01 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
46
47
48
49
require("dotenv").config();
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require("hardhat-interface-generator");
require("hardhat-contract-sizer");
require("solidity-coverage");
require('@openzeppelin/hardhat-upgrades');
const PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
const FTMSCAN_KEY = process.env.FTMSCAN_API_KEY;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: "0.8.11",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
mainnet: {
url: `https://rpc.ftm.tools`,
chainId: 250,
accounts: [`0x${PRIVATE_KEY}`],
},
testnet: {
url: `https://rpcapi-tracing.testnet.fantom.network`,
chainId: 4002,
accounts: [`0x${PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: FTMSCAN_KEY,
},
mocha: {
timeout: 1200000,
},
};