Commit 7017a693 authored by Indeavr's avatar Indeavr

feat: moved code to a separate npm package

parent 609926f2
......@@ -22,7 +22,7 @@ import './tasks/whitelist'
import './tasks/withdraw-fees'
import 'hardhat-gas-reporter'
import '@primitivefi/hardhat-dodoc'
import './tasks/validate-output'
import 'hardhat-output-validator'
// Load environment variables from .env
dotenv.config()
......@@ -30,37 +30,6 @@ dotenv.config()
const enableGasReport = !!process.env.ENABLE_GAS_REPORT
const privateKey = process.env.PRIVATE_KEY || '0x' + '11'.repeat(32) // this is to avoid hardhat error
// Will be moved to a separate package
export interface Checks {
title?: boolean // default: true,
details?: boolean // default: true,
compilationWarnings?: boolean // default: true,
missingUserDoc?: boolean // default: true,
missingDevDoc?: boolean // default: true,
}
declare module 'hardhat/types/config' {
export interface HardhatUserConfig {
outputChecks?: {
include?: string[]
exclude?: string[]
runOnCompile?: boolean
errorMode?: boolean
checks?: Checks
}
}
export interface HardhatConfig {
outputChecks: {
include: string[]
exclude: string[]
runOnCompile: boolean
errorMode: boolean
checks: Checks
}
}
}
const config: HardhatUserConfig = {
networks: {
hardhat: {
......@@ -160,7 +129,7 @@ const config: HardhatUserConfig = {
'TestLib_MerkleTree',
],
},
outputChecks: {
outputValidator: {
runOnCompile: true,
errorMode: true,
exclude: ['contracts/test-helpers', 'contracts/test-libraries'],
......
......@@ -64,7 +64,7 @@
"@ethersproject/abstract-signer": "^5.4.1",
"@ethersproject/hardware-wallets": "^5.4.0",
"@primitivefi/hardhat-dodoc": "^0.1.3",
"chalk": "^4.1.2"
"hardhat-output-validator": "^0.1.0"
},
"devDependencies": {
"@codechecks/client": "^0.1.11",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment