-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.base.config.ts
72 lines (71 loc) · 2.17 KB
/
hardhat.base.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const path = require("path");
const config = require('dotenv').config({path: path.resolve(__dirname, '.env')});
const {
ETHERSCAN_API_KEY,
BSCSCAN_API_KEY,
POLYGONSCAN_API_KEY,
MNEMONIC,
DEPLOY_GAS_LIMIT_MAX,
DEPLOY_GAS_PRICE,
INFURA_ID_PROJECT
} = config.parsed || {};
export default {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
loggingEnabled: false
},
hhnode: {
url: `http://127.0.0.1:8545`,
accounts: [`0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80`],
allowUnlimitedContractSize: true,
//gasPrice: 8,
gas: 10000000,
loggingEnabled: false
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_ID_PROJECT}`,
},
ropsten: {
url: `https://ropsten.infura.io/v3/${INFURA_ID_PROJECT}`,
chainId: 3,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_ID_PROJECT}`,
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_ID_PROJECT}`,
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_ID_PROJECT}`,
chainId: 42,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
gasPrice: 8000000000
},
bscTestnet: {
url: `https://data-seed-prebsc-2-s3.binance.org:8545`,
chainId: 97,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`]
},
bsc: {
url: `https://bsc-dataseed3.binance.org`,
},
maticTestnet: {
url: `https://rpc-mumbai.maticvigil.com`,
chainId: 80001,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
maticMainnet: {
url: `https://rpc-mainnet.matic.quiknode.pro`,
chainId: 137,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
gasPrice: 50_000_000_000
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: `${POLYGONSCAN_API_KEY}`,
},
}