forked from droplinked/droplinked-contracts-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
45 lines (41 loc) · 1.02 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
import { HardhatUserConfig } from "hardhat/config";
import "@openzeppelin/hardhat-upgrades"
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-interface-generator";
require("dotenv").config();
const config: HardhatUserConfig = {
networks: {
RedbellyTestNet:{
url: "https://governors.testnet.redbelly.network",
chainId: 153,
accounts: [process.env.PRIVATE_KEY as string]
}
},
solidity: {
version: "0.8.20",
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 200
}
}
},
etherscan:{
apiKey:{
bscTestnet: (process.env.BINANCE_API_KEY) as string,
polygonAmoy: (process.env.POLYGON_API_KEY) as string,
},
customChains:[
{
network: "RedbellyTestNet",
chainId: 153,
urls: {
apiURL: "https://www.oklink.com/api/explorer/v1/contract/verify/async/api/polygonAmoy",
browserURL: "https://explorer.testnet.redbelly.network"
},
}
]
},
};
export default config;