-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
61 lines (58 loc) · 1.62 KB
/
hardhat.config.ts
File metadata and controls
61 lines (58 loc) · 1.62 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
50
51
52
53
54
55
56
57
58
59
60
61
import "@nomiclabs/hardhat-waffle";
import '@openzeppelin/hardhat-upgrades'
import { config } from "dotenv";
config();
config({ path: `.env.${process.env.NODE_ENV}` });
import '@typechain/hardhat';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
const { utils } = require("ethers");
const mnemonic = process.env.MNEMONIC;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: "0.4.0",
},
{
version: "0.6.2",
},
{
version: "0.6.12",
},
{
version: "0.8.2",
},
],
},
networks: {
crotestnet: {
url: "https://cronos-testnet-3.crypto.org:8545",
chainId: 338,
accounts: {mnemonic, path: "m/44'/60'/0'/0", inittialIndex: 0, count: 10},
},
localhost: {
url: `http://localhost:8545`,
accounts: {mnemonic, path: "m/44'/60'/0'/0", inittialIndex: 0, count: 10},
timeout: 150000,
gasPrice: parseInt(utils.parseUnits("132", "gwei")),
},
cromainnet: {
url: "https://rpc.nebkas.ro/",
chainId: 25,
accounts: {mnemonic, path: "m/44'/60'/0'/0", inittialIndex: 0, count: 10},
},
},
mocha: {
timeout: 200000
},
typechain: {
outDir: 'src/types',
target: 'ethers-v5',
alwaysGenerateOverloads: false, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
externalArtifacts: ['externalArtifacts/*.json'], // optional array of glob patterns with external artifacts to process (for example external libs from node_modules)
},
};