forked from sourlodine/Pump.fun-EVM-Smart-Contract
-
Notifications
You must be signed in to change notification settings - Fork 3
/
hardhat.config.js
80 lines (71 loc) · 1.8 KB
/
hardhat.config.js
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
require("@nomiclabs/hardhat-waffle")
require("@nomiclabs/hardhat-etherscan")
require("hardhat-contract-sizer")
require('@typechain/hardhat')
const {
MAINNET_URL,
MAINNET_DEPLOY_KEY
} = require("./env.json")
const getEnvAccounts = (DEFAULT_DEPLOYER_KEY) => {
return [DEFAULT_DEPLOYER_KEY];
};
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners()
for (const account of accounts) {
console.info(account.address)
}
})
task("balance", "Prints an account's balance")
.addParam("account", "The account's address")
.setAction(async (taskArgs) => {
const balance = await ethers.provider.getBalance(taskArgs.account);
console.log(ethers.utils.formatEther(balance), "ETH");
});
task("processFees", "Processes fees")
.addParam("steps", "The steps to run")
.setAction(async (taskArgs) => {
const { processFees } = require("./scripts/core/processFees")
await processFees(taskArgs)
})
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
localhost: {
timeout: 120000
},
hardhat: {
allowUnlimitedContractSize: true
},
mainnet: {
url: MAINNET_URL,
accounts: [MAINNET_DEPLOY_KEY],
gasLimit: 30000000,
gasPrice: 101000000000,
}
},
etherscan: {
apiKey: {
mainnet: MAINNET_DEPLOY_KEY,
}
},
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200
},
viaIR: true
}
},
typechain: {
outDir: "typechain",
target: "ethers-v5",
},
}