8000 GitHub - napierfi/hardhat-deployer: Library for deploying contracts compiled with HardHat.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

napierfi/hardhat-deployer

Repository files navigation

HardHat Deployer

A foundry libary for deploying contracts compiled with HardHat.

Dependencies

  • Python 3
  • Foundry

Installing

forge install napierfi/hardhat-deployer
```

Add the following to your forge.toml file:

```toml
[profile.default]
# ...
ffi = true
fs_permissions = [{ access = "read", path = "./artifacts/" }] # or wherever your hardhat artifacts are

And then add the following to your hardhat.config.js file:

module.exports = {
  // ...
  // Avoid foundry cache conflict.
  paths: {
    sources: "src", // Use ./src rather than ./contracts as Hardhat expects
    cache: "hh-cache",
  },
};

Usage

import {HardHatDeployer} from "hardhat-deployer/HardHatDeployer.sol";

Ensure that your contract is compiled with HardHat and that the artifacts are in the artifacts directory before deploying with HardHatDeployer.

About

Library for deploying contracts compiled with HardHat.

Resources

Stars

Watchers

Forks

Releases

No releases published
0