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' ...@@ -22,7 +22,7 @@ import './tasks/whitelist'
import './tasks/withdraw-fees' import './tasks/withdraw-fees'
import 'hardhat-gas-reporter' import 'hardhat-gas-reporter'
import '@primitivefi/hardhat-dodoc' import '@primitivefi/hardhat-dodoc'
import './tasks/validate-output' import 'hardhat-output-validator'
// Load environment variables from .env // Load environment variables from .env
dotenv.config() dotenv.config()
...@@ -30,37 +30,6 @@ dotenv.config() ...@@ -30,37 +30,6 @@ dotenv.config()
const enableGasReport = !!process.env.ENABLE_GAS_REPORT const enableGasReport = !!process.env.ENABLE_GAS_REPORT
const privateKey = process.env.PRIVATE_KEY || '0x' + '11'.repeat(32) // this is to avoid hardhat error 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 = { const config: HardhatUserConfig = {
networks: { networks: {
hardhat: { hardhat: {
...@@ -160,7 +129,7 @@ const config: HardhatUserConfig = { ...@@ -160,7 +129,7 @@ const config: HardhatUserConfig = {
'TestLib_MerkleTree', 'TestLib_MerkleTree',
], ],
}, },
outputChecks: { outputValidator: {
runOnCompile: true, runOnCompile: true,
errorMode: true, errorMode: true,
exclude: ['contracts/test-helpers', 'contracts/test-libraries'], exclude: ['contracts/test-helpers', 'contracts/test-libraries'],
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
"@ethersproject/abstract-signer": "^5.4.1", "@ethersproject/abstract-signer": "^5.4.1",
"@ethersproject/hardware-wallets": "^5.4.0", "@ethersproject/hardware-wallets": "^5.4.0",
"@primitivefi/hardhat-dodoc": "^0.1.3", "@primitivefi/hardhat-dodoc": "^0.1.3",
"chalk": "^4.1.2" "hardhat-output-validator": "^0.1.0"
}, },
"devDependencies": { "devDependencies": {
"@codechecks/client": "^0.1.11", "@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