🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

hardhat-artifactor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat-artifactor

Dynamically generate deployable Hardhat artifacts

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
301
-24.18%
Maintainers
1
Weekly downloads
 
Created
Source

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);

Keywords

hardhat

FAQs

Package last updated on 28 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts