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

@nomicfoundation/hardhat-ignition

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nomicfoundation/hardhat-ignition - npm Package Compare versions

Comparing version 0.15.5 to 0.15.6

14

CHANGELOG.md

@@ -7,2 +7,16 @@ # Changelog

## 0.15.6 - 2024-09-25
### Added
- Updates to the visualization UI, including the ability to zoom and pan the mermaid diagram ([#810](https://github.com/NomicFoundation/hardhat-ignition/pull/810))
- `gasPrice` and `disableFeeBumping` config fields added as part of our L2 gas logic update ([#808](https://github.com/NomicFoundation/hardhat-ignition/pull/808))
- Debug logging for communication errors with Hardhat Ledger ([#792](https://github.com/NomicFoundation/hardhat-ignition/pull/792))
- JSON5 support for module parameters, thanks @erhant ([#800](https://github.com/NomicFoundation/hardhat-ignition/pull/800))
- Add `writeLocalhostDeployment` flag to allow saving deployment artifacts when deploying to the ephemeral Hardhat network, thanks @SebastienGllmt ([#816](https://github.com/NomicFoundation/hardhat-ignition/pull/816))
### Fixed
- Replace `this` with the class itself in `ViemIgnitionHelper`, thanks @iosh ([#796](https://github.com/NomicFoundation/hardhat-ignition/pull/796))
## 0.15.5 - 2024-06-17

@@ -9,0 +23,0 @@

28

dist/src/index.js

@@ -32,5 +32,7 @@ "use strict";

const ignition_core_1 = require("@nomicfoundation/ignition-core");
const debug_1 = __importDefault(require("debug"));
const fs_extra_1 = require("fs-extra");
const config_1 = require("hardhat/config");
const plugins_1 = require("hardhat/plugins");
const json5_1 = require("json5");
const path_1 = __importDefault(require("path"));

@@ -47,2 +49,3 @@ require("./type-extensions");

const ignitionScope = (0, config_1.scope)("ignition", "Deploy your smart contracts using Hardhat Ignition");
const log = (0, debug_1.default)("hardhat:ignition");
(0, config_1.extendConfig)((config, userConfig) => {

@@ -60,2 +63,4 @@ /* setup path configs */

maxPriorityFeePerGas: userNetworkConfig.ignition?.maxPriorityFeePerGas,
gasPrice: userNetworkConfig.ignition?.gasPrice,
disableFeeBumping: userNetworkConfig.ignition?.disableFeeBumping,
};

@@ -89,4 +94,5 @@ });

.addFlag("verify", "Verify the deployment on Etherscan")
.addFlag("writeLocalhostDeployment", "Write deployment information to disk when deploying to the in-memory network")
.setDescription("Deploy a module to the specified network")
.setAction(async ({ modulePath, parameters: parametersInput, deploymentId: givenDeploymentId, defaultSender, reset, verify, strategy: strategyName, }, hre) => {
.setAction(async ({ modulePath, parameters: parametersInput, deploymentId: givenDeploymentId, defaultSender, reset, verify, strategy: strategyName, writeLocalhostDeployment, }, hre) => {
const { default: chalk } = await Promise.resolve().then(() => __importStar(require("chalk")));

@@ -109,3 +115,3 @@ const { default: Prompt } = await Promise.resolve().then(() => __importStar(require("prompts")));

const deploymentId = (0, resolve_deployment_id_1.resolveDeploymentId)(givenDeploymentId, chainId);
const deploymentDir = hre.network.name === "hardhat"
const deploymentDir = hre.network.name === "hardhat" && !writeLocalhostDeployment
? undefined

@@ -177,3 +183,4 @@ : path_1.default.join(hre.config.paths.ignition, "deployments", deploymentId);

}
else if (parametersInput.endsWith(".json")) {
else if (parametersInput.endsWith(".json") ||
parametersInput.endsWith(".json5")) {
parameters = await resolveParametersFromFileName(parametersInput);

@@ -208,3 +215,5 @@ }

}
catch { }
catch (error) {
log(error);
}
const result = await deploy({

@@ -225,2 +234,5 @@ config: hre.config.ignition,

.maxPriorityFeePerGas,
gasPrice: hre.config.networks[hre.network.name]?.ignition.gasPrice,
disableFeeBumping: hre.config.ignition.disableFeeBumping ??
hre.config.networks[hre.network.name]?.ignition.disableFeeBumping,
});

@@ -238,3 +250,5 @@ try {

}
catch { }
catch (error) {
log(error);
}
if (result.type === "SUCCESSFUL_DEPLOYMENT" && verify) {

@@ -415,3 +429,3 @@ console.log("");

const rawFile = await (0, fs_extra_1.readFile)(filepath);
return JSON.parse(rawFile.toString(), bigintReviver_1.bigintReviver);
return await (0, json5_1.parse)(rawFile.toString(), bigintReviver_1.bigintReviver);
}

@@ -430,3 +444,3 @@ catch (e) {

try {
return JSON.parse(paramString, bigintReviver_1.bigintReviver);
return (0, json5_1.parse)(paramString, bigintReviver_1.bigintReviver);
}

@@ -433,0 +447,0 @@ catch (e) {

@@ -15,2 +15,4 @@ import "hardhat/types/config";

maxPriorityFeePerGas?: bigint;
gasPrice?: bigint;
disableFeeBumping?: boolean;
};

@@ -22,2 +24,4 @@ }

maxPriorityFeePerGas?: bigint;
gasPrice?: bigint;
disableFeeBumping?: boolean;
};

@@ -29,2 +33,4 @@ }

maxPriorityFeePerGas?: bigint;
gasPrice?: bigint;
disableFeeBumping?: boolean;
};

@@ -36,2 +42,4 @@ }

maxPriorityFeePerGas?: bigint;
gasPrice?: bigint;
disableFeeBumping?: boolean;
};

@@ -38,0 +46,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateBatchDisplay = void 0;
exports.calculateBatchDisplay = calculateBatchDisplay;
const types_1 = require("../types");

@@ -19,3 +19,2 @@ function calculateBatchDisplay(state) {

}
exports.calculateBatchDisplay = calculateBatchDisplay;
function _futureStatus(future, gasBumps, maxFeeBumps) {

@@ -22,0 +21,0 @@ switch (future.status.type) {

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateDeployingModulePanel = void 0;
exports.calculateDeployingModulePanel = calculateDeployingModulePanel;
const chalk_1 = __importDefault(require("chalk"));

@@ -30,3 +30,2 @@ const cwd_relative_path_1 = require("./cwd-relative-path");

}
exports.calculateDeployingModulePanel = calculateDeployingModulePanel;
function _calculateStrategySuffix(state) {

@@ -33,0 +32,0 @@ if (state.strategy === "basic") {

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateDeploymentCompleteDisplay = void 0;
exports.calculateDeploymentCompleteDisplay = calculateDeploymentCompleteDisplay;
const ignition_core_1 = require("@nomicfoundation/ignition-core");

@@ -38,3 +38,2 @@ const chalk_1 = __importDefault(require("chalk"));

}
exports.calculateDeploymentCompleteDisplay = calculateDeploymentCompleteDisplay;
function _displaySuccessfulDeployment(result, { moduleName, isRerunWithNoChanges, deploymentDir, }) {

@@ -41,0 +40,0 @@ const fillerText = isRerunWithNoChanges

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateDeploymentStatusDisplay = void 0;
exports.calculateDeploymentStatusDisplay = calculateDeploymentStatusDisplay;
const chalk_1 = __importDefault(require("chalk"));

@@ -20,3 +20,2 @@ function calculateDeploymentStatusDisplay(deploymentId, statusResult) {

}
exports.calculateDeploymentStatusDisplay = calculateDeploymentStatusDisplay;
function _calculateSuccess(deploymentId, statusResult) {

@@ -23,0 +22,0 @@ let successText = `Deployment ${deploymentId} (chainId: ${statusResult.chainId}) was successful\n\n`;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateStartingMessage = void 0;
exports.calculateStartingMessage = calculateStartingMessage;
const chalk_1 = __importDefault(require("chalk"));

@@ -23,3 +23,2 @@ /**

}
exports.calculateStartingMessage = calculateStartingMessage;
//# sourceMappingURL=calculate-starting-message.js.map

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.pathFromCwd = void 0;
exports.pathFromCwd = pathFromCwd;
const path_1 = __importDefault(require("path"));

@@ -17,3 +17,2 @@ const process_1 = __importDefault(require("process"));

}
exports.pathFromCwd = pathFromCwd;
//# sourceMappingURL=cwd-relative-path.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wasAnythingExecuted = void 0;
exports.wasAnythingExecuted = wasAnythingExecuted;
/**

@@ -11,3 +11,2 @@ * Was anything executed during the deployment. We determine this based

}
exports.wasAnythingExecuted = wasAnythingExecuted;
//# sourceMappingURL=was-anything-executed.js.map

@@ -29,2 +29,3 @@ "use strict";

maxFeeBumps: 0,
disableFeeBumping: null,
gasBumps: {},

@@ -54,2 +55,3 @@ strategy: null,

maxFeeBumps: event.maxFeeBumps,
disableFeeBumping: event.disableFeeBumping,
};

@@ -56,0 +58,0 @@ process.stdout.write((0, calculate_starting_message_1.calculateStartingMessage)(this.state));

@@ -51,2 +51,3 @@ import { DeploymentResult } from "@nomicfoundation/ignition-core";

gasBumps: Record<string, number>;
disableFeeBumping: boolean | null;
strategy: string | null;

@@ -53,0 +54,0 @@ ledger: boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bigintReviver = void 0;
exports.bigintReviver = bigintReviver;
const plugins_1 = require("hardhat/plugins");

@@ -14,3 +14,2 @@ function bigintReviver(key, value) {

}
exports.bigintReviver = bigintReviver;
//# sourceMappingURL=bigintReviver.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorDeploymentResultToExceptionMessage = void 0;
exports.errorDeploymentResultToExceptionMessage = errorDeploymentResultToExceptionMessage;
const ignition_core_1 = require("@nomicfoundation/ignition-core");

@@ -25,3 +25,2 @@ const plugins_1 = require("hardhat/plugins");

}
exports.errorDeploymentResultToExceptionMessage = errorDeploymentResultToExceptionMessage;
function _convertValidationError(result) {

@@ -28,0 +27,0 @@ const errorsList = Object.entries(result.errors).flatMap(([futureId, errors]) => errors.map((err) => ` * ${futureId}: ${err}`));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getApiKeyAndUrls = void 0;
exports.getApiKeyAndUrls = getApiKeyAndUrls;
const plugins_1 = require("hardhat/plugins");

@@ -14,3 +14,2 @@ function getApiKeyAndUrls(etherscanApiKey, chainConfig) {

}
exports.getApiKeyAndUrls = getApiKeyAndUrls;
//# sourceMappingURL=getApiKeyAndUrls.js.map

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.loadModule = void 0;
exports.loadModule = loadModule;
const ignition_core_1 = require("@nomicfoundation/ignition-core");

@@ -52,3 +52,2 @@ const debug_1 = __importDefault(require("debug"));

}
exports.loadModule = loadModule;
function isInModuleDirectory(modulesDirectory, modulePath) {

@@ -55,0 +54,0 @@ const resolvedModulesDirectory = path_1.default.resolve(modulesDirectory);

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.open = void 0;
exports.open = open;
const child_process_1 = require("child_process");

@@ -29,3 +29,2 @@ const os_1 = __importDefault(require("os"));

}
exports.open = open;
//# sourceMappingURL=open.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports._isValidDeploymentIdentifier = exports.resolveDeploymentId = void 0;
exports.resolveDeploymentId = resolveDeploymentId;
exports._isValidDeploymentIdentifier = _isValidDeploymentIdentifier;
const plugins_1 = require("hardhat/plugins");

@@ -29,3 +30,2 @@ /**

}
exports.resolveDeploymentId = resolveDeploymentId;
/**

@@ -37,3 +37,2 @@ * Determine if the given identifier the rules for a valid deployment id.

}
exports._isValidDeploymentIdentifier = _isValidDeploymentIdentifier;
//# sourceMappingURL=resolve-deployment-id.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldBeHardhatPluginError = void 0;
exports.shouldBeHardhatPluginError = shouldBeHardhatPluginError;
/**

@@ -21,3 +21,2 @@ * This is a whitelist of error codes that should be rethrown as NomicLabsHardhatPluginError.

}
exports.shouldBeHardhatPluginError = shouldBeHardhatPluginError;
//# sourceMappingURL=shouldBeHardhatPluginError.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.verifyEtherscanContract = void 0;
exports.verifyEtherscanContract = verifyEtherscanContract;
async function verifyEtherscanContract(etherscanInstance, { address, compilerVersion, sourceCode, name, args }) {

@@ -26,3 +26,2 @@ try {

}
exports.verifyEtherscanContract = verifyEtherscanContract;
//# sourceMappingURL=verifyEtherscanContract.js.map

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.writeVisualization = void 0;
exports.writeVisualization = writeVisualization;
const fs_extra_1 = require("fs-extra");

@@ -25,3 +25,2 @@ const plugins_1 = require("hardhat/plugins");

}
exports.writeVisualization = writeVisualization;
//# sourceMappingURL=write-visualization.js.map
{
"name": "@nomicfoundation/hardhat-ignition",
"version": "0.15.5",
"version": "0.15.6",
"license": "MIT",

@@ -53,4 +53,5 @@ "author": "Nomic Foundation",

"prompts": "^2.4.2",
"@nomicfoundation/ignition-core": "^0.15.5",
"@nomicfoundation/ignition-ui": "^0.15.5"
"json5": "^2.2.3",
"@nomicfoundation/ignition-core": "^0.15.6",
"@nomicfoundation/ignition-ui": "^0.15.6"
},

@@ -57,0 +58,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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