Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
feat: 🎸 add hardhat + typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDaksh committed Aug 5, 2021
1 parent d06493b commit eab9c8e
Show file tree
Hide file tree
Showing 10 changed files with 12,965 additions and 16,459 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FORK_RPC=
DEV_PRIVATE_KEY=
57 changes: 57 additions & 0 deletions hardhat.config.ts
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;
Loading

0 comments on commit eab9c8e

Please sign in to comment.