-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
115 lines (113 loc) · 2.84 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import "solidity-coverage";
import "hardhat-gas-reporter";
import "@nomiclabs/hardhat-etherscan";
import "./tasks/getSocialTokenDetails";
import "./tasks/factory";
import "./tasks/social";
import "./tasks/mint";
import "./tasks/burn";
import { HardhatUserConfig } from "hardhat/config";
require("dotenv").config();
require("hardhat-abi-exporter");
const config: HardhatUserConfig = {
// defaultNetwork: "goerli",
defaultNetwork: "hardhat",
networks: {
// hardhat: {
// forking: {
// url: "https://eth-mainnet.alchemyapi.io/v2/6crZyzd6pmy54K5s1A8uCmWQP-Z7I7BC",
// blockNumber: 12400000,
// },
// },
/**Run hardhat network:
* npx hardhat node
* ex: npx hardhat run --network localhost scripts/deploy.ts
*/
hardhat: {
forking: {
url: "http://127.0.0.1:8545/",
},
accounts: [
{
privateKey: process.env.DEV_PRIVATE_KEY_LOCALHOST as string,
balance: "10000",
},
],
gas: 3000000,
gasPrice: 8000000000,
},
// matic: {
// url: "https://matic-mumbai.chainstacklabs.com",
// accounts: [`${process.env.DEV_PRIVATE_KEY}`]
// },
// mumbai: {
// url: "https://rpc-mumbai.maticvigil.com",
// // accounts: [process.env.DEV_PRIVATE_KEY as string],
// },
// },
mainnet: {
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [process.env.DEV_PRIVATE_KEY as string],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [
process.env.DEV_PRIVATE_KEY as string,
],
gas: 3000000,
gasPrice: 8000000000,
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [
process.env.DEV_PRIVATE_KEY as string,
],
gas: 3000000,
gasPrice: 8000000000,
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [
process.env.DEV_PRIVATE_KEY as string,
],
gas: 3000000,
gasPrice: 8000000000,
},
},
solidity: {
compilers: [
{
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
metadata: {
bytecodeHash: "none",
},
},
},
],
},
gasReporter: {
currency: "USD",
enabled: process.env.REPORT_GAS ? true : false,
coinmarketcap: process.env.COINMARKETCAP,
},
// abiExporter: {
// path: './data/abi',
// clear: true,
// flat: true,
// only: [],
// spacing: 2,
// pretty: true,
// },
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};
export default config;