UNPKG

@nomicfoundation/hardhat-ignition-viem

Version:

The Viem extension to Hardhat Ignition. Hardhat Ignition is a declarative system for deploying smart contracts on Ethereum. It enables you to define smart contract instances you want to deploy, and any operation you want to run on them. By taking over the

16 lines 688 B
import { HardhatError } from "@nomicfoundation/hardhat-errors"; import { ViemIgnitionHelperImpl } from "../viem-ignition-helper.js"; export default async () => { const handlers = { async newConnection(context, next) { const connection = await next(context); if (connection.ignition !== undefined) { throw new HardhatError(HardhatError.ERRORS.IGNITION.INTERNAL.ONLY_ONE_IGNITION_EXTENSION_PLUGIN_ALLOWED); } connection.ignition = new ViemIgnitionHelperImpl(context.config, context.artifacts, connection); return connection; }, }; return handlers; }; //# sourceMappingURL=network.js.map