From a1c3f6cdc07f0afa6be1a1e8a800bb69ba192cb8 Mon Sep 17 00:00:00 2001 From: weiqiushi Date: Mon, 6 May 2024 17:21:22 +0800 Subject: [PATCH] Update hardhat config --- hardhat.config.ts | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index b4f773e..022c4d1 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -1,8 +1,9 @@ import { HardhatUserConfig } from "hardhat/config"; import "@nomicfoundation/hardhat-toolbox"; import 'hardhat-abi-exporter'; -import "hardhat-gas-reporter" +import "hardhat-gas-reporter"; import '@openzeppelin/hardhat-upgrades'; +import "@nomicfoundation/hardhat-verify"; const config: HardhatUserConfig = { solidity: { @@ -12,7 +13,8 @@ const config: HardhatUserConfig = { enabled: true, runs: 200, }, - viaIR: true + viaIR: true, + } }, abiExporter: { @@ -20,20 +22,40 @@ const config: HardhatUserConfig = { clear: true, }, gasReporter: { - currency: 'USD', - gasPrice: 21, - enabled: true + enabled: false, }, networks: { - x1test: { - url: "https://testrpc.x1.tech", + ethereum: { + url: "", + accounts: [ + + ] + }, + xtest: { + url: "https://testrpc.xlayer.tech", accounts: [ // add your private keys here ] + }, + xlayer: { + url: "https://rpc.xlayer.tech" + }, + hardhat: { + mining: { + auto: true, + interval: 15000, + } + }, + localhost: { + gas: "auto" } }, + sourcify: { + enabled: true + }, mocha: { bail: true, + timeout: 24*60*60*1000 } };