-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
94 lines (88 loc) · 2.02 KB
/
hardhat.config.ts
File metadata and controls
94 lines (88 loc) · 2.02 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import * as dotenv from "dotenv";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-toolbox";
import "@openzeppelin/hardhat-upgrades";
import { HardhatUserConfig } from "hardhat/config";
import "hardhat-contract-sizer";
dotenv.config();
export const TAC_TESTNET_SPB_URL = process.env.TAC_TESTNET_SPB_URL || "https://spb.rpc.tac.build";
export const TAC_MAINNET_URL = process.env.TAC_MAINNET_URL || "https://rpc.tac.build";
const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
if (!DEPLOYER_PRIVATE_KEY) {
throw new Error("DEPLOYER_PRIVATE_KEY is not defined");
}
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
runs: 200,
}
}
},
{
version: "0.8.18",
},
],
},
networks: {
hardhat: {
chainId: 1337,
accounts: {
count: 50
},
allowBlocksWithSameTimestamp: true,
},
localhost: {
url: "http://127.0.0.1:8545",
timeout: 3600000
},
tac_testnet_spb: {
chainId: 2391,
url: TAC_TESTNET_SPB_URL,
accounts: [DEPLOYER_PRIVATE_KEY]
},
tac_mainnet: {
chainId: 239,
url: TAC_MAINNET_URL,
accounts: [DEPLOYER_PRIVATE_KEY]
}
},
etherscan: {
apiKey: {
tac_testnet: 'empty',
tac_testnet_spb: 'empty',
tac_mainnet: 'empty'
},
customChains: [
{
network: "tac_testnet_spb",
chainId: 2391,
urls: {
apiURL: "https://spb.explorer.tac.build/api",
browserURL: "https://spb.explorer.tac.build"
}
},
{
network: "tac_mainnet",
chainId: 239,
urls: {
apiURL: "https://explorer.tac.build/api",
browserURL: "https://explorer.tac.build"
}
},
]
},
gasReporter: {
enabled: false,
currency: 'ETH',
gasPrice: 1
},
mocha: {
timeout: 10000000
}
};
export default config;