-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
60 lines (59 loc) · 1.59 KB
/
hardhat.config.js
File metadata and controls
60 lines (59 loc) · 1.59 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
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config();
require("@nomicfoundation/hardhat-verify");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
compilers: [
{
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
}
]
},
etherscan: {
apiKey: {
snowtrace: "snowtrace", // apiKey is not required, just set a placeholder
},
customChains: [
// * Avalanche Testnet verify 참고: https://testnet.snowtrace.io/documentation/recipes/hardhat-verification
{
network: "snowtrace",
chainId: 43113,
urls: {
apiURL: "https://api.routescan.io/v2/network/testnet/evm/43113/etherscan",
browserURL: "https://avalanche.testnet.localhost:8080"
}
},
// * Avalanche Mainnet verify 참고: https://snowtrace.io/documentation/recipes/hardhat-verification
// {
// network: "snowtrace",
// chainId: 43114,
// urls: {
// apiURL: "https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan",
// browserURL: "https://avalanche.routescan.io"
// }
// }
]
},
networks: {
snowtrace: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
accounts: [
process.env.PRIVATE_KEY || ''
],
},
// snowtrace: {
// url: "https://api.avax.network/ext/bc/C/rpc",
// chainId: 43114,
// accounts: [
// process.env.PRIVATE_KEY || ''
// ],
// },
}
};