-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.ts
50 lines (47 loc) · 1.08 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
import { task } from "hardhat/config";
import '@typechain/hardhat'
import '@nomiclabs/hardhat-ethers'
import "@nomiclabs/hardhat-waffle";
const dotenv = require("dotenv");
dotenv.config({path: __dirname + '/.env'});
const {HARMONY_PRIVATE_KEY} = process.env;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.4",
networks: {
hardhat: {
gas: 100000000,
blockGasLimit: 0x1fffffffffffff
},
testnet: {
url: "https://api.s0.b.hmny.io",
chainId: 1666700000,
accounts: [`${HARMONY_PRIVATE_KEY}`]
},
devnet: {
url: "https://api.s0.ps.hmny.io",
chainId: 1666900000,
accounts: [`${HARMONY_PRIVATE_KEY}`]
},
mainnet: {
url: "https://api.s0.t.hmny.io",
chainId: 1666600000,
accounts: [`${HARMONY_PRIVATE_KEY}`]
},
},
paths: {
sources: "./contracts",
tests: "./lib/test",
cache: "./cache",
artifacts: "./lib/artifacts",
},
typechain: {
outDir: './lib/types/typechain',
target: 'ethers-v5',
},
mocha: {
timeout: 100000000
},
};