Skip to content

Commit

Permalink
Deploy Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifechukwudaniel committed Dec 13, 2023
1 parent 3f0b5ff commit caa4b1f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 52 deletions.
20 changes: 20 additions & 0 deletions packages/hardhat/deploy/00_deploy__ERC20_Factory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";

const deployERC20FactoryContract: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;

await deploy("FactoryERC20", {
from: deployer,
args: [],
log: true,
autoMine: true,
});
};

export default deployERC20FactoryContract;

// Tags are useful if you have multiple deploy files and only want to run one of them.
// e.g. yarn deploy --tags YourContract
deployERC20FactoryContract.tags = ["ERC20FactoryContract"];
52 changes: 0 additions & 52 deletions packages/hardhat/deploy/00_deploy_your_contract.ts

This file was deleted.

20 changes: 20 additions & 0 deletions packages/hardhat/deploy/01_deploy__ERC721_Factory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";

const deployERC721FactoryContract: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;

await deploy("FactoryERC721", {
from: deployer,
args: [],
log: true,
autoMine: true,
});
};

export default deployERC721FactoryContract;

// Tags are useful if you have multiple deploy files and only want to run one of them.
// e.g. yarn deploy --tags YourContract
deployERC721FactoryContract.tags = ["ERC721FactoryContract"];

0 comments on commit caa4b1f

Please sign in to comment.