Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Chore: packages usage (#35)
Browse files Browse the repository at this point in the history
* remove unused packages

* update npm packages

* add typechain outdir config

* fix --legacy-peer-deps

* remove unused eslint plugins

* add npm-check-updates

* run npm update

Co-authored-by: nksazonov <nsazonov@openware.com>
  • Loading branch information
nksazonov and nksazonov authored Nov 1, 2022
1 parent ab312f0 commit 4233505
Show file tree
Hide file tree
Showing 4 changed files with 15,334 additions and 7,695 deletions.
7 changes: 7 additions & 0 deletions .ncurc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"dep": "dev,optional,peer,prod,bundle",
"deep": true,
"peer": true,
"removeRange": true,
"interactive": true
}
9 changes: 7 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import * as dotenv from 'dotenv';
import { HardhatUserConfig, task } from 'hardhat/config';

import '@typechain/hardhat';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import '@typechain/hardhat';
import 'hardhat-gas-reporter';
import 'solidity-coverage';
import '@openzeppelin/hardhat-upgrades';
import 'hardhat-abi-exporter';
import 'hardhat-deploy';
import type { TypechainUserConfig } from '@typechain/hardhat/dist/types';

dotenv.config();

Expand All @@ -23,7 +25,7 @@ task('accounts', 'Prints the list of accounts', async (_, hre) => {
const ACCOUNTS = process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [];
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY ?? '';

const config: HardhatUserConfig = {
const config: HardhatUserConfig & { typechain: TypechainUserConfig } = {
solidity: {
compilers: [
{
Expand All @@ -37,6 +39,9 @@ const config: HardhatUserConfig = {
},
],
},
typechain: {
outDir: 'typechain',
},
namedAccounts: {
deployer: {
default: 0,
Expand Down
Loading

0 comments on commit 4233505

Please sign in to comment.