forked from jheavejimenez/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
48 lines (44 loc) · 1.02 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
43
44
45
46
47
48
/**
* @type import('hardhat/config').HardhatUserConfig
*/
import 'dotenv/config'
import '@typechain/hardhat';
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import glob from 'glob';
import path from "path";
const { API_URL, PRIVATE_KEY, PRIVATE_KEY2, PRIVATE_KEY3, PRIVATE_KEY4, POLYGONSCAN_API } = process.env;
if (!process.env.SKIP_LOAD) {
glob.sync('./tasks/**/*.ts').forEach(function (file) {
require(path.resolve(file));
});
}
export const solidity = {
version: '0.8.10',
settings: {
optimizer: {
enabled: true,
runs: 200,
details: {
yul: true,
},
}
}
};
export const defaultNetwork = "polygon_mumbai";
export const networks = {
hardhat: {},
polygon_mumbai: {
url: API_URL,
accounts: [`0x${PRIVATE_KEY}`, `0x${PRIVATE_KEY2}`, `0x${PRIVATE_KEY3}`, `0x${PRIVATE_KEY4}`]
}
};
export const spdxLicenseIdentifier = {
overwrite: false,
runOnCompile: false,
};
export const etherscan = {
apiKey: {
polygonMumbai: POLYGONSCAN_API
}
};