Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hardhat-deploy

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat-deploy - npm Package Compare versions

Comparing version 0.11.9 to 0.11.10

6

CHANGELOG.md
# 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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc