Skip to content

Commit

Permalink
Update hardhat config
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiushi committed May 6, 2024
1 parent bd69a86 commit a1c3f6c
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -12,28 +13,49 @@ const config: HardhatUserConfig = {
enabled: true,
runs: 200,
},
viaIR: true
viaIR: true,

}
},
abiExporter: {
runOnCompile: true,
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
}
};

Expand Down

0 comments on commit a1c3f6c

Please sign in to comment.