-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
63 lines (59 loc) · 1.39 KB
/
hardhat.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
import "dotenv/config";
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "./tasks/admin";
import "./tasks/verify";
import "./tasks/erc20token";
const deployerKey = process.env.DEPLOYER_KEY || "";
const accounts = deployerKey ? [deployerKey] : [];
const config: HardhatUserConfig = {
etherscan: {
apiKey: {
snowtrace: "snowtrace",
snowtraceFuji: "snowtraceFuji",
},
customChains: [
{
network: "snowtrace",
chainId: 43114,
urls: {
apiURL:
"https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan",
browserURL: "https://snowtrace.dev/",
},
},
{
network: "snowtraceFuji",
chainId: 43113,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/43113/etherscan",
browserURL: "https://testnet.snowtrace.io/",
},
},
],
},
solidity: {
version: "0.8.25",
settings: {
evmVersion: "paris",
optimizer: {
enabled: true,
runs: 1_000_000,
},
},
},
networks: {
avalanche: {
accounts,
chainId: 43114,
url: "https://api.avax.network/ext/bc/C/rpc",
},
avalancheFuji: {
accounts,
chainId: 43113,
url: "https://api.avax-test.network/ext/bc/C/rpc",
},
},
};
export default config;