hardhat-artifactor

0.2.0 • Public • Published

Hardhat Artifactor

Dynamically generate deployable Hardhat contract artifacts.

Installation

yarn add --dev hardhat-artifactor

Usage

Load plugin in Hardhat config:

require('hardhat-artifactor');

Create Artifact from Template

Call the createArtifactFromTemplate function available in the Hardhat Runtime Environment to create an artifact with an ABI matching an existing artifact but with custom bytecode:

await createArtifactFromTemplate('TemplateContract', 'GeneratedContract', bytecode);

Overwrite Artifact

Call the overwriteArtifact function available in the Hardhat Runtime Environment to replace the bytecode of an existing artifact with custom bytecode:

await overwriteArtifact('Contract', bytecode);

Package Sidebar

Install

npm i hardhat-artifactor

Weekly Downloads

268

Version

0.2.0

License

MIT

Unpacked Size

4.11 kB

Total Files

5

Last publish

Collaborators

  • itsnickbarry