@nomicfoundation/hardhat-ignition-ethers
Advanced tools
Comparing version 0.15.8 to 0.15.9
@@ -7,2 +7,16 @@ # Changelog | ||
## 0.15.9 - 2024-12-18 | ||
### Added | ||
- Standard Ignition UI can now be enabled when deploying via Hardhat scripts by setting `displayUi: true` in the `deploy` function options, @zoeyTM ([#843](https://github.com/NomicFoundation/hardhat-ignition/pull/843)) | ||
- Ignition modules can now be set as a dependency in the `after` option of futures, @zoeyTM ([#828](https://github.com/NomicFoundation/hardhat-ignition/pull/828)) | ||
- The `ignition transactions` command output will now include a link to view each transaction on the configured block explorer, @zoeyTM ([#849](https://github.com/NomicFoundation/hardhat-ignition/pull/849)) | ||
- Module parameters can now be directly imported from a JSON file when deploying via Hardhat scripts by passing an absolute path to the file to the `parameters` option, @zoeyTM ([#850](https://github.com/NomicFoundation/hardhat-ignition/pull/850)) | ||
### Fixed | ||
- Properly handle errors when verifying deployments that use external artifacts, @zoeyTM ([#848](https://github.com/NomicFoundation/hardhat-ignition/pull/848)) | ||
- Fix issue with `ignition status` command not working with deployments that use external artifacts, @zoeyTM ([#846](https://github.com/NomicFoundation/hardhat-ignition/pull/846)) | ||
## 0.15.8 - 2024-11-22 | ||
@@ -9,0 +23,0 @@ |
@@ -23,4 +23,4 @@ import { DeployConfig, DeploymentParameters, EIP1193Provider, IgnitionModule, IgnitionModuleResult, NamedArtifactContractAtFuture, NamedArtifactContractDeploymentFuture, StrategyConfig } from "@nomicfoundation/ignition-core"; | ||
*/ | ||
deploy<ModuleIdT extends string, ContractNameT extends string, IgnitionModuleResultsT extends IgnitionModuleResult<ContractNameT>, StrategyT extends keyof StrategyConfig = "basic">(ignitionModule: IgnitionModule<ModuleIdT, ContractNameT, IgnitionModuleResultsT>, { parameters, config: perDeployConfig, defaultSender, strategy, strategyConfig, deploymentId: givenDeploymentId, }?: { | ||
parameters?: DeploymentParameters; | ||
deploy<ModuleIdT extends string, ContractNameT extends string, IgnitionModuleResultsT extends IgnitionModuleResult<ContractNameT>, StrategyT extends keyof StrategyConfig = "basic">(ignitionModule: IgnitionModule<ModuleIdT, ContractNameT, IgnitionModuleResultsT>, { parameters, config: perDeployConfig, defaultSender, strategy, strategyConfig, deploymentId: givenDeploymentId, displayUi, }?: { | ||
parameters?: DeploymentParameters | string; | ||
config?: Partial<DeployConfig>; | ||
@@ -31,2 +31,3 @@ defaultSender?: string; | ||
deploymentId?: string; | ||
displayUi?: boolean; | ||
}): Promise<IgnitionModuleResultsTToEthersContracts<ContractNameT, IgnitionModuleResultsT>>; | ||
@@ -33,0 +34,0 @@ private static _toEthersContracts; |
@@ -30,3 +30,3 @@ "use strict"; | ||
*/ | ||
async deploy(ignitionModule, { parameters = {}, config: perDeployConfig = {}, defaultSender = undefined, strategy, strategyConfig, deploymentId: givenDeploymentId = undefined, } = { | ||
async deploy(ignitionModule, { parameters = {}, config: perDeployConfig = {}, defaultSender = undefined, strategy, strategyConfig, deploymentId: givenDeploymentId = undefined, displayUi = false, } = { | ||
parameters: {}, | ||
@@ -38,2 +38,3 @@ config: {}, | ||
deploymentId: undefined, | ||
displayUi: undefined, | ||
}) { | ||
@@ -56,2 +57,12 @@ const accounts = (await this._hre.network.provider.request({ | ||
: path_1.default.join(this._hre.config.paths.ignition, "deployments", deploymentId); | ||
const executionEventListener = displayUi | ||
? new helpers_1.PrettyEventHandler() | ||
: undefined; | ||
let deploymentParameters; | ||
if (typeof parameters === "string") { | ||
deploymentParameters = await (0, helpers_1.readDeploymentParameters)(parameters); | ||
} | ||
else { | ||
deploymentParameters = parameters; | ||
} | ||
const result = await (0, ignition_core_1.deploy)({ | ||
@@ -61,5 +72,6 @@ config: resolvedConfig, | ||
deploymentDir, | ||
executionEventListener, | ||
artifactResolver, | ||
ignitionModule, | ||
deploymentParameters: parameters, | ||
deploymentParameters, | ||
accounts, | ||
@@ -66,0 +78,0 @@ defaultSender, |
{ | ||
"name": "@nomicfoundation/hardhat-ignition-ethers", | ||
"version": "0.15.8", | ||
"version": "0.15.9", | ||
"license": "MIT", | ||
@@ -33,4 +33,4 @@ "author": "Nomic Foundation", | ||
"hardhat": "^2.18.0", | ||
"@nomicfoundation/hardhat-ignition": "^0.15.8", | ||
"@nomicfoundation/ignition-core": "^0.15.8" | ||
"@nomicfoundation/ignition-core": "^0.15.9", | ||
"@nomicfoundation/hardhat-ignition": "^0.15.9" | ||
}, | ||
@@ -37,0 +37,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29676
194