-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
65 lines (61 loc) · 1.35 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
import "@nomicfoundation/hardhat-toolbox";
require('dotenv').config()
require("hardhat-contract-sizer");
import "@typechain/hardhat";
const config: any = {
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200
},
viaIR: true,
},
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
},
etherscan: {
apiKey: "RX2H5QQVMY18Q49HDBDC9UTDWES1VNSHEZ",
customChains: [
{
network: "solaris",
chainId: 39,
urls: {
apiURL: "https://u2uscan.xyz/api",
browserURL: "https://u2uscan.xyz"
}
},
{
network: "nebulas",
chainId: 2484,
urls: {
apiURL: "https://testnet.u2uscan.xyz/api",
browserURL: "https://testnet.u2uscan.xyz"
}
}
]
},
networks: {
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [`${process.env.PRIVATE_KEY}`],
},
solaris: {
url: 'https://rpc-mainnet.uniultra.xyz/',
accounts: [`${process.env.PRIVATE_KEY}`],
},
nebulas: {
url: 'https://rpc-nebulas-testnet.uniultra.xyz/',
accounts: [
`${process.env.PRIVATE_KEY}`
]
},
},
defaultNetwork: "hardhat"
};
export default config;