Repository navigation
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
executable file
·84 lines (78 loc) · 1.79 KB
/
Copy pathhardhat.config.ts
File metadata and controls
executable file
·84 lines (78 loc) · 1.79 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
import "@typechain/hardhat";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-ethers";
import { HardhatUserConfig } from "hardhat/config";
import {
ARBITRUM_RPC,
ETHERSCAN_API_KEY,
PRIVATE_KEY,
} from './.env.json'
// import * as tdly from "@tenderly/hardhat-tenderly";
// import { existsSync } from "fs";
// function getHomeDir() { return process.env[process.platform == "win32" ? "USERPROFILE" : "HOME"]; }
// if (existsSync(`${getHomeDir()}/.tenderly/config.yaml`)) {
// tdly.setup({
// automaticVerifications: true, // automatically verifies contracts !!
// });
// }
const config: HardhatUserConfig = {
networks: {
arbitrum: {
url: ARBITRUM_RPC,
accounts: [PRIVATE_KEY],
},
mainnet: {
url: ARBITRUM_RPC,
accounts: [PRIVATE_KEY],
},
ropsten: {
url: process.env["ROPSTEN_RPC"] || "https://ropsten.infura.io/v3/",
accounts: [PRIVATE_KEY],
},
metis: {
url: process.env["METIS_RPC"] || "https://andromeda.metis.io/?owner=1088",
accounts: [PRIVATE_KEY],
},
stardust: {
url: "https://stardust.metis.io/?owner=588",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
hardhat: {
allowUnlimitedContractSize: true,
forking: {
url: ARBITRUM_RPC,
enabled: true,
},
},
},
etherscan: {
apiKey: {
arbitrumOne: ETHERSCAN_API_KEY,
}
},
solidity: {
compilers: [
{
version: "0.8.10",
},
{
version: "0.6.12",
},
],
settings: {
optimizer: {
enabled: true,
runs: 20,
},
},
},
mocha: {
timeout: 100000000,
},
paths: {
tests: "tender/test",
},
};
export default config;