-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
87 lines (85 loc) · 1.92 KB
/
hardhat.config.ts
File metadata and controls
87 lines (85 loc) · 1.92 KB
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
const { HardhatUserConfig, vars } = require("hardhat/config");
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
const AMOY_API_KEY = process.env.AMOY_API_KEY;
const config = {
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}
},
networks: {
// for mainnet polygon
"base-polygon": {
url: "https://polygon.drpc.org",
accounts: [process.env.PRIVATE_KEY],
gasPrice: 3000000000,
},
// for mainnet binance
"base-etherum": {
url: "https://rpc.flashbots.net",
accounts: [process.env.PRIVATE_KEY],
gasPrice: 3000000000,
},
// for mainnet binance
"base-binance": {
url: "https://mainnet.base.org",
accounts: [process.env.PRIVATE_KEY],
gasPrice: 3000000000,
},
// for testnet
sepolia: {
url: "https://rpc.sepolia.org",
accounts: [process.env.PRIVATE_KEY],
gas: 8000000,
gasPrice: 3000000000,
},
// for local dev environment
"base-local": {
url: "http://localhost:8545",
accounts: [process.env.PRIVATE_KEY],
gasPrice: 3000000000,
},
//for polygon Amoy
"base-amoy": {
url: "https://polygon-amoy.drpc.org",
accounts: [process.env.PRIVATE_KEY],
gasPrice: 30000000000,
timeout: 20000
},
hardhat: {
allowUnlimitedContractSize: true
}
},
etherscan: {
apiKey: {
sepolia: ETHERSCAN_API_KEY,
polygonAmoy: AMOY_API_KEY
},
},
sourcify: {
enabled: true,
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
mocha: {
timeout: 20000,
},
ignition: {
root: "./src/ignition",
modules: "./modules",
output: "./output",
clean: true,
},
defaultNetwork: "hardhat",
};
module.exports = config;