LGPL-3.0 License
yarn add github://rmeissner/hardhat-safe-deployer
import { setupSafeDeployer } from "hardhat-safe-deployer";
in your hardhat.config.ts
setupSafeDeployer
. The methods expects the following parameter
import { setupSafeDeployer } from "hardhat-safe-deployer";
import dotenv from "dotenv";
// Load environment variables.
dotenv.config();
const { INFURA_KEY, MNEMONIC, MNEMONIC_PATH, ETHERSCAN_API_KEY, SAFE_SERVICE_URL, DEPLOYER_SAFE } = process.env;
setupSafeDeployer(
Wallet.fromMnemonic(MNEMONIC!!, MNEMONIC_PATH),
DEPLOYER_SAFE,
SAFE_SERVICE_URL
)
An example project can be found at: https://github.com/rmeissner/hardhat-safe-deployer-example