This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
12,965 additions
and
16,459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FORK_RPC= | ||
DEV_PRIVATE_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import "dotenv/config"; | ||
import { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomiclabs/hardhat-waffle"; | ||
import "@nomiclabs/hardhat-ethers"; | ||
import "@openzeppelin/hardhat-upgrades"; | ||
import "./tasks/accounts"; | ||
import { parseEther } from "@ethersproject/units"; | ||
|
||
// You need to export an object to set up your config | ||
// Go to https://hardhat.org/config/ to learn more | ||
|
||
/** | ||
* @type import('hardhat/config').HardhatUserConfig | ||
*/ | ||
const compilerSettings = { | ||
metadata: { | ||
// Not including the metadata hash | ||
// https://github.com/paulrberg/solidity-template/issues/31 | ||
bytecodeHash: "none", | ||
}, | ||
// You should disable the optimizer when debugging | ||
// https://hardhat.org/hardhat-network/#solidity-optimizer-support | ||
optimizer: { | ||
enabled: true, | ||
runs: 800, | ||
}, | ||
}; | ||
const config: HardhatUserConfig = { | ||
solidity: { | ||
compilers: [ | ||
{ | ||
version: "0.6.12", | ||
settings: compilerSettings, | ||
}, | ||
{ | ||
version: "0.7.0", | ||
settings: compilerSettings, | ||
}, | ||
], | ||
}, | ||
|
||
networks: { | ||
hardhat: { | ||
// forking: { | ||
// url: process.env.FORK_RPC!, | ||
// }, | ||
accounts: [ | ||
{ | ||
privateKey: process.env.DEV_PRIVATE_KEY!, | ||
balance: parseEther("1000").toString(), | ||
}, | ||
], | ||
}, | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.