This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
hardhat.config.ts
93 lines (88 loc) · 2.12 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
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
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomicfoundation/hardhat-foundry";
import "@nomicfoundation/hardhat-viem";
import "hardhat-deploy";
import { HardhatUserConfig } from "hardhat/config";
import { config as dotenv } from "dotenv";
import "./tasks";
dotenv();
(BigInt.prototype as any).toJSON = function () {
return this.toString();
};
const config: HardhatUserConfig = {
namedAccounts: {
deployer: { default: 0 },
multisig: {
34443: "0x8Fba84867Ba458E7c6E2c024D2DE3d0b5C3ea1C2"
}
},
solidity: {
compilers: [
{
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
external: {
contracts: [{ artifacts: "./out" }]
},
paths: {
sources: "./contracts",
tests: "./contracts/test",
artifacts: "./artifacts"
},
networks: {
local: {
accounts: [process.env.DEPLOYER!],
url: "http://localhost:8545",
saveDeployments: false
},
mode: {
url: process.env.OVERRIDE_RPC_URL ?? "https://mainnet.mode.network",
accounts: [process.env.DEPLOYER!]
},
base: {
url: process.env.OVERRIDE_RPC_URL ?? "https://base.meowrpc.com",
accounts: [process.env.DEPLOYER!],
verify: {
etherscan: {
apiUrl: "https://api.basescan.org/api?",
apiKey: process.env.ETHERSCAN_API_KEY_BASE
}
}
},
optimism: {
url: process.env.OVERRIDE_RPC_URL ?? "https://mainnet.optimism.io",
accounts: [process.env.DEPLOYER!]
},
bob: {
url: process.env.OVERRIDE_RPC_URL ?? "https://rpc.gobob.xyz",
accounts: [process.env.DEPLOYER!]
},
fraxtal: {
url: process.env.OVERRIDE_RPC_URL ?? "https://rpc.frax.com",
accounts: [process.env.DEPLOYER!],
verify: {
etherscan: {
apiUrl: "https://api.fraxscan.com/api?",
apiKey: process.env.ETHERSCAN_API_KEY_FRAXTAL
}
}
}
},
etherscan: {
apiKey: {
base: process.env.ETHERSCAN_API_KEY_BASE!
}
},
sourcify: {
enabled: true
}
};
export default config;