-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhardhat.config.js
More file actions
91 lines (70 loc) · 1.86 KB
/
Copy pathhardhat.config.js
File metadata and controls
91 lines (70 loc) · 1.86 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
* Blockchain Domains
* @website github.com/bnsprotocol
* @author Team BNS <hello@bns.gg>
* @license SPDX-License-Identifier: MIT
*/
const { alchemyApiKey } = require("./.secrets");
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-contract-sizer', { runOnCompile: true });
require('hardhat-deploy');
require('@openzeppelin/hardhat-upgrades');
require('hardhat-abi-exporter',{ path: 'data/abi', clear: true });
const {
moralisApiKey,
accountPrivateKey,
etherscanAPIKey,
noderealApiKey
} = require(__dirname+'/.secrets.js');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
hardhat: {
accounts: [{privateKey: `0x${accountPrivateKey}`, balance: "91229544000000000000"}],
forking: {
url: `https://eth-goerli.nodereal.io/v1/${noderealApiKey}`,//`https://eth-goerli.g.alchemy.com/v2/${alchemyApiKey}`,
},
chainId: 1337
},
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${alchemyApiKey}`,
chainId: 5,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
bsc_testnet: {
url: `https://data-seed-prebsc-2-s1.binance.org:8545/`,
chainId: 97,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
bsc_mainnet: {
url: `https://bsc-dataseed4.binance.org/`,
chainId: 56,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: etherscanAPIKey
},
solidity: {
version: "0.8.16",
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 200
}
}
},
mocha: {
timeout: 1000000
}
};