-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
56 lines (51 loc) · 1.34 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
49
50
51
52
53
54
55
56
/**
* @type import('hardhat/config').HardhatUserConfig
*/
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-etherscan";
import { HardhatUserConfig } from "hardhat/config";
import "hardhat-gas-reporter";
require("dotenv").config({ path: ".env" });
const config: HardhatUserConfig = {
// Your type-safe config goes here
};
export default config;
const XINFIN_NETWORK_URL = "https://erpc.xinfin.network";
const APOTHEM_NETWORK_URL = "https://erpc.apothem.network";
const PRIVATE_KEY =
"202e3c9d30bbeca38d6578659919d4c3dc989ae18c16756690877fdc4dfa607f";
const XDC_ACCOUNT_2_PK =
"f3f7097ebda3883ecc6cf8bfb166cd3fa3ba6f8a9a54cf1873539a94e2827e9f";
module.exports = {
gasReporter: {
currency: "USD",
token: "ETH",
gasPrice: 20,
enabled: process.env.COINMARKETCAP_API_KEY ? true : false,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
},
solidity: {
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
typechain: {
outDir: "typechain-types",
target: "ethers-v5",
},
networks: {
xinfin: {
url: XINFIN_NETWORK_URL,
accounts: [XDC_ACCOUNT_2_PK],
},
apothem: {
url: APOTHEM_NETWORK_URL,
accounts: [XDC_ACCOUNT_2_PK],
},
},
};