-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
81 lines (81 loc) · 1.8 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
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
require("@nomicfoundation/hardhat-toolbox")
require("@nomiclabs/hardhat-etherscan")
require("@openzeppelin/hardhat-upgrades")
require("dotenv").config()
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "hardhat",
etherscan: {
apiKey: {
avalanche: process.env.SNOWTRACE,
avalancheFujiTestnet: process.env.SNOWTRACE
},
apiUrl: "https://api.snowtrace.io"
},
solidity: {
compilers: [
{
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 200
}
},
}
],
overrides: {
"contracts/ArtMarketplace/ArtMarketplace.sol": {
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 100
}
}
}
},
settings: {
optimizer: {
enabled: true,
runs: 8000
}
}
},
networks: {
hardhat: {
chainId: 1337, // We set 1337 to make interacting with MetaMask simpler
accounts: {
mnemonic: process.env.WALLET_KEY,
initialIndex: 0,
count: 20
},
loggingEnabled: false
},
development: {
url: "http://127.0.0.1:8545/ext/bc/C/rpc", // Localhost (default: none)
accounts: [process.env.WALLET_PR_KEY],
chainId: 1337,
loggingEnabled: true
},
fuji: {
url: `https://api.avax-test.network/ext/bc/C/rpc`,
accounts: [process.env.WALLET_PR_KEY],
chainId: 43113,
loggingEnabled: true
},
mainnet: {
url: `https://api.avax.network/ext/bc/C/rpc`,
accounts: [process.env.WALLET_PR_KEY],
chainId: 43114,
loggingEnabled: true
}
},
paths: {
sources: "./contracts",
tests: "./test"
},
mocha: {
timeout: 40000
}
}