2024-01-31 15:04:44 +03:00
|
|
|
require("@nomicfoundation/hardhat-toolbox");
|
|
|
|
require("hardhat-gas-reporter");
|
|
|
|
require("dotenv").config();
|
|
|
|
|
|
|
|
/** @type import('hardhat/config').HardhatUserConfig */
|
|
|
|
module.exports = {
|
|
|
|
solidity: {
|
|
|
|
compilers: [
|
|
|
|
{
|
|
|
|
version: "0.8.20",
|
2024-02-12 12:27:34 +03:00
|
|
|
}
|
2024-01-31 15:04:44 +03:00
|
|
|
],
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mocha: {
|
|
|
|
timeout: 100000000,
|
|
|
|
},
|
|
|
|
networks: {
|
|
|
|
mainnet: {
|
|
|
|
url: "https://ethereum.publicnode.com",
|
|
|
|
accounts: [process.env.REAL_PK],
|
|
|
|
},
|
|
|
|
testnet: {
|
|
|
|
url: "https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",
|
|
|
|
accounts: [process.env.TEST_PK],
|
|
|
|
},
|
|
|
|
hardhat: {
|
|
|
|
forking: {
|
2024-02-10 21:43:54 +03:00
|
|
|
url: "https://rpc.mevblocker.io",
|
2024-01-31 15:04:44 +03:00
|
|
|
enabled: true,
|
2024-02-10 21:43:54 +03:00
|
|
|
blockNumber: 19195278,
|
2024-01-31 15:04:44 +03:00
|
|
|
accounts: [process.env.REAL_PK],
|
|
|
|
},
|
2024-02-10 21:43:54 +03:00
|
|
|
timeout: 100000000,
|
2024-01-31 15:04:44 +03:00
|
|
|
chainId: 1,
|
|
|
|
accounts: [
|
|
|
|
{
|
|
|
|
privateKey: process.env.REAL_PK,
|
|
|
|
balance: "10000000000000000000000000000000",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
etherscan: {
|
|
|
|
apiKey: process.env.ETHERSCAN_KEY,
|
|
|
|
},
|
|
|
|
gasReporter: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
};
|