-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
102 lines (100 loc) · 2.17 KB
/
hardhat.config.js
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
95
96
97
98
99
100
101
102
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ethers");
require("hardhat-deploy");
require("hardhat-deploy-ethers");
require("hardhat-local-networks-config-plugin");
require("./tasks/createAlloc");
require("./tasks/debug");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
mocha: {
timeout: 600000,
},
solidity: {
compilers: [
{
version: "0.7.1",
settings: {
optimizer: {
enabled: true,
runs: 9999,
},
},
},
{
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 9999,
},
},
},
],
},
vyper: {
compilers: [{ version: "0.3.1" }, { version: "0.3.3" }],
},
warnings: {
"*": {
"shadowing-opcode": "off",
default: "error",
},
},
etherscan: {
apiKey: {
alfajores: process.env.ALFAJORES_API_KEY,
celo: process.env.CELO_API_KEY,
},
customChains: [
{
network: "zkemv",
chainId: 1101,
urls: {
apiURL: "https://api-zkevm.polygonscan.com/api",
browserURL: "https://zkevm.polygonscan.com/",
},
},
{
network: "base",
chainId: 8453,
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org/",
},
},
{
network: "fantom",
chainId: 250,
urls: {
apiURL: "https://api.ftmscan.com/api",
browserURL: "https://ftmscan.com",
},
},
{
network: "alfajores",
chainId: 44787,
urls: {
apiURL: "https://api-alfajores.celoscan.io/api",
browserURL: "https://alfajores.celoscan.io",
},
},
{
network: "celo",
chainId: 42220,
urls: {
apiURL: "https://api.celoscan.io/api",
browserURL: "https://celoscan.io",
},
},
],
},
networks: {
celo: {
url: "https://forno.celo.org",
accounts: [process.env.PRIVATE_KEY],
chainId: 42220,
},
},
};