forked from CamelotLabs/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
90 lines (87 loc) · 2.14 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
import "@nomicfoundation/hardhat-toolbox"
import "@nomiclabs/hardhat-truffle5"
import "@nomiclabs/hardhat-etherscan"
import "@nomiclabs/hardhat-ethers"
import "hardhat-abi-exporter"
import 'hardhat-deploy'
import dotenv from 'dotenv'
dotenv.config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
hardhat: {
allowUnlimitedContractSize: true
},
arbitrumSepolia: {
url: "https://sepolia-rollup.arbitrum.io/rpc",
chainId: 421614,
skipDryRun: true,
accounts: [process.env.DEPLOYER_PKEY.toString().trim()],
},
arbitrumOne: {
url: "https://arb1.arbitrum.io/rpc",
chainId: 42161,
skipDryRun: true,
accounts: [process.env.DEPLOYER_PKEY.toString().trim()],
},
xai: {
url: "https://xai-chain.net/rpc",
chainId: 660279,
skipDryRun: true,
accounts: [process.env.DEPLOYER_PKEY.toString().trim()],
}
},
solidity: {
compilers: [
{
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 0
}
}
}, {
version: "0.6.6",
settings: {
optimizer: {
enabled: true,
runs: 0
},
}
}]
},
namedAccounts: {
deployer: {
default: 0,
"arbitrumSepolia": process.env.DEPLOYER_ADDRESS.toString().trim(),
"arbitrumOne": process.env.DEPLOYER_ADDRESS.toString().trim(),
"xai": process.env.DEPLOYER_ADDRESS.toString().trim()
}
},
etherscan: {
apiKey: {
arbitrumOne: process.env.ARBISCAN_API_KEY.toString().trim(),
arbitrumSepolia: process.env.ARBISCAN_API_KEY.toString().trim(),
xai: process.env.ARBISCAN_API_KEY.toString().trim()
},
customChains: [{
network: "arbitrumSepolia",
chainId: 421614,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io"
}
},{
network: "xai",
chainId: 660279,
urls: {
apiURL: "https://explorer.xai-chain.net/api",
browserURL: "https://explorer.xai-chain.net/"
}
}]
},
abiExporter: {
clear: true
},
};