-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhardhat.config.ts
59 lines (54 loc) · 1.04 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
import dotenv from "dotenv";
import "hardhat-deploy";
import "hardhat-deploy-ethers";
import "@typechain/hardhat";
import "./tasks/bridge-nft";
import "./tasks/get-nft";
import "./tasks/mint-nft";
import "./tasks/transfer-nft";
import "./tasks/configure";
dotenv.config({ path: __dirname + "/.env" });
const accounts = [process.env.PRIVATE_KEY];
const config: any = {
gasReporter: {
enabled: true,
token: "ETH",
coinmarketcap: process.env.CMC_API_KEY || "",
},
networks: {
"ethereum-sepolia": {
chainId: 11155111,
url: "https://eth-sepolia.public.blastapi.io",
live: false,
accounts: accounts,
},
"polygon-amoy": {
chainId: 80002,
url: 'https://rpc-amoy.polygon.technology/',
live: false,
accounts: accounts,
},
hardhat: {
live: false,
deploy: ["deploy/hardhat/"],
},
},
namedAccounts: {
deployer: 0,
accountant: 1,
},
solidity: {
compilers: [
{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
};
export default config;