hardhat-deploy
Advanced tools
Comparing version 0.11.9 to 0.11.10
# hardhat-deploy | ||
## 0.11.10 | ||
### Patch Changes | ||
- export-artifacts: do not export libraries or interfaces by defaults | ||
## 0.11.9 | ||
@@ -4,0 +10,0 @@ |
@@ -627,2 +627,4 @@ "use strict"; | ||
.addFlag('solcInput', 'if set, artifacts will have an associated solcInput files (required for old version of solidity to ensure verifiability') | ||
.addFlag('includingEmptyBytecode', 'if set, even contract without bytecode (like interfaces) will be exported') | ||
.addFlag('includingNoPublicFunctions', 'if set, even contract without public interface (like imternal libraries) will be exported') | ||
.addOptionalParam('exclude', 'list of contract names separated by commas to exclude', undefined, types.string) | ||
@@ -670,2 +672,13 @@ .addOptionalParam('include', 'list of contract names separated by commas to include. If specified, only these will be considered', undefined, types.string) | ||
const output = buildInfo.output.contracts[artifact.sourceName][artifactName]; | ||
if (!args.includingNoPublicFunctions) { | ||
if (!artifact.abi || | ||
artifact.abi.filter((v) => v.type !== 'event').length === 0) { | ||
continue; | ||
} | ||
} | ||
if (!args.includingEmptyBytecode) { | ||
if (!artifact.bytecode || artifact.bytecode === '0x') { | ||
continue; | ||
} | ||
} | ||
// TODO decide on ExtendedArtifact vs Artifact vs Deployment type | ||
@@ -672,0 +685,0 @@ // save space by not duplicating bytecodes |
{ | ||
"name": "hardhat-deploy", | ||
"version": "0.11.9", | ||
"version": "0.11.10", | ||
"description": "Hardhat Plugin For Replicable Deployments And Tests", | ||
@@ -5,0 +5,0 @@ "repository": "github:wighawag/hardhat-deploy", |
@@ -895,2 +895,10 @@ import './type-extensions'; | ||
) | ||
.addFlag( | ||
'includingEmptyBytecode', | ||
'if set, even contract without bytecode (like interfaces) will be exported' | ||
) | ||
.addFlag( | ||
'includingNoPublicFunctions', | ||
'if set, even contract without public interface (like imternal libraries) will be exported' | ||
) | ||
.addOptionalParam( | ||
@@ -972,2 +980,17 @@ 'exclude', | ||
if (!args.includingNoPublicFunctions) { | ||
if ( | ||
!artifact.abi || | ||
artifact.abi.filter((v) => v.type !== 'event').length === 0 | ||
) { | ||
continue; | ||
} | ||
} | ||
if (!args.includingEmptyBytecode) { | ||
if (!artifact.bytecode || artifact.bytecode === '0x') { | ||
continue; | ||
} | ||
} | ||
// TODO decide on ExtendedArtifact vs Artifact vs Deployment type | ||
@@ -974,0 +997,0 @@ // save space by not duplicating bytecodes |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12169387
164655