-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
78 lines (76 loc) · 2.08 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
require("@nomicfoundation/hardhat-toolbox");
require("@openzeppelin/hardhat-upgrades");
require("hardhat-contract-sizer");
require("solidity-docgen");
require("hardhat-abi-exporter");
// Tasks
require("./tasks/manager");
require("./tasks/account");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
evmVersion: "paris",
},
},
contractSizer: {
runOnCompile: true,
},
ignition: {
requiredConfirmations: 1,
},
networks: {
localhost: {
url: "http://127.0.0.1:8545",
},
columbus: {
url: vars.get("COLUMBUS_URL", "https://columbus.camino.network/ext/bc/C/rpc"),
accounts: vars.has("COLUMBUS_DEPLOYER_PRIVATE_KEY") ? [vars.get("COLUMBUS_DEPLOYER_PRIVATE_KEY")] : [],
},
camino: {
url: vars.get("CAMINO_URL", "https://api.camino.network/ext/bc/C/rpc"),
accounts: vars.has("CAMINO_DEPLOYER_PRIVATE_KEY") ? [vars.get("CAMINO_DEPLOYER_PRIVATE_KEY")] : [],
},
},
etherscan: {
apiKey: {
columbus: "abc",
camino: "abc",
},
customChains: [
{
network: "columbus",
chainId: 501,
urls: {
apiURL: "https://columbus.caminoscan.com/api",
browserURL: "https://columbus.caminoscan.com",
},
},
{
network: "camino",
chainId: 500,
urls: {
apiURL: "https://caminoscan.com/api",
browserURL: "https://caminoscan.com",
},
},
],
},
docgen: {
path: "./docs",
pages: "single",
runOnCompile: true,
},
abiExporter: {
path: "./abi",
runOnCompile: false,
format: "json",
clear: true,
except: ["test"],
},
};