Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
7017a693
Commit
7017a693
authored
Dec 19, 2021
by
Indeavr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: moved code to a separate npm package
parent
609926f2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
461 deletions
+3
-461
hardhat.config.ts
packages/contracts/hardhat.config.ts
+2
-33
package.json
packages/contracts/package.json
+1
-1
validate-output.ts
packages/contracts/tasks/validate-output.ts
+0
-427
No files found.
packages/contracts/hardhat.config.ts
View file @
7017a693
...
...
@@ -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
'
,
],
},
output
Checks
:
{
output
Validator
:
{
runOnCompile
:
true
,
errorMode
:
true
,
exclude
:
[
'
contracts/test-helpers
'
,
'
contracts/test-libraries
'
],
...
...
packages/contracts/package.json
View file @
7017a693
...
...
@@ -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"
,
...
...
packages/contracts/tasks/validate-output.ts
deleted
100644 → 0
View file @
609926f2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment