dagger-contracts/hardhat.config.js
Mark Spanbroek cc69f3a3ae Add workaround for websocket subscription issues
Mine a block every 4 minutes, to keep hardhat from
forgetting about websocket subscriptions after 5
minutes.
2024-11-08 16:19:18 +01:00

50 lines
1010 B
JavaScript

require("@nomiclabs/hardhat-waffle")
require("hardhat-deploy")
require("hardhat-deploy-ethers")
module.exports = {
solidity: {
version: "0.8.23",
settings: {
evmVersion: "paris",
optimizer: {
enabled: true,
runs: 1000,
},
},
},
mocha: {
bail: true,
slow: 200,
timeout: 30 * 1000,
},
namedAccounts: {
deployer: { default: 0 },
},
networks: {
hardhat: {
tags: ["local"],
mining: {
auto: true,
// Workaround for https://github.com/NomicFoundation/hardhat/issues/2053
interval: 4 * 60 * 1000
}
},
codexdisttestnetwork: {
url: `${process.env.DISTTEST_NETWORK_URL}`,
},
codex_devnet: {
url: `${process.env.CODEX_DEVNET_URL}`,
},
codex_testnet: {
url: `${process.env.CODEX_TESTNET_URL}`,
},
taiko_test: {
url: "https://rpc.test.taiko.xyz",
accounts: [
// "<YOUR_SEPOLIA_TEST_WALLET_PRIVATE_KEY_HERE>"
],
},
},
}