Module artifact

Module artifact 

Source
Expand description

Tools for loading artifacts that contain compiled contracts.

Artifacts come in various shapes and sizes, but usually they are JSON files containing one or multiple compiled contracts as well as their deployment information.

This module provides trait Artifact that encapsulates different artifact models. It also provides tools to load artifacts from different sources, and parse them using different formats.

Modules§

hardhat
Implements artifact format generated by hardhat-deploy plugin.
truffle
Implements the most common artifact format used in Truffle, Waffle and some other libraries.

Structs§

Artifact
An entity that contains compiled contracts.
ContractMut
A wrapper that allows mutating contract but doesn’t allow changing its name.
InsertResult
Result of inserting a nre contract into an artifact.