-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
46 lines (44 loc) · 1.01 KB
/
hardhat.config.js
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
require('@nomiclabs/hardhat-etherscan');
require('@nomiclabs/hardhat-ethers');
const dotenv = require("dotenv")
dotenv.config()
module.exports = {
solidity: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 500
}
},
etherscan: {
apiKey: 'no-api-key-needed',
customChains: [
{
network: 'testnet',
chainId: 4201,
urls: {
apiURL: 'https://explorer.execution.testnet.lukso.network/api',
browserURL: 'https://explorer.execution.testnet.lukso.network/',
},
},
],
},
networks: {
hardhat: {
chainId: 31337,
loggingEnabled: true,
accounts: [{
privateKey: process.env.PRIVATEKEY || '',
balance: "100000000000000000000" //100ETH
}]
},
testnet: {
url: "https://rpc.testnet.lukso.network",
accounts: [process.env.PRIVATEKEY || '']
},
mainnet: {
url: "https://rpc.mainnet.lukso.network",
accounts: [process.env.PRIVATEKEY || '']
},
},
};