require("dotenv").config() require("@nomicfoundation/hardhat-toolbox"); let mnemonic = process.env.MNEMONIC; if (!mnemonic) { // NOTE: this fallback is for development only! // When using other networks, set the secret in .env. // DO NOT commit or share your mnemonic with others! mnemonic = 'test test test test test test test test test test test test'; } let privateKey = process.env.PRIVATE_KEY const accounts = { mnemonic }; /** @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: "0.8.9", settings: { optimizer: { enabled: true, runs: 300 } }, networks: { hardhat: { accounts, gas: 10000000, gasPrice: 10000000000, }, testnet: { accounts: [privateKey], url: 'http://15.161.177.5:26658', gas: 110000000, gasLimit: 110000000, gasPrice: 10000000000, }, local: { accounts: [privateKey], url: 'http://192.168.1.120:7545', gas: 1100000, gasLimit: 11000000, gasPrice: 110000000, }, remote: { accounts: [privateKey], url: 'http://124.193.167.71:7545', gas: 11000000, gasLimit: 110000000, gasPrice: 1100000000, }, }, };