Socket
Socket
Sign inDemoInstall

hardhat-artifactor

Package Overview
Dependencies
278
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hardhat-artifactor

Dynamically generate deployable Hardhat artifacts


Version published
Weekly downloads
631
increased by60.56%
Maintainers
1
Install size
4.01 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 28 Feb 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc