Skip to content

Commit

Permalink
deploy Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifechukwudaniel committed Dec 18, 2023
1 parent bd4c6a0 commit fb5e43d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/hardhat/deploy/02_deploy__Wrapped_NFT_Contract.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { parseEther } from "ethers/lib/utils";

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

await deploy("WrappedNFTBase", {
from: deployer,
args: ["Spotify Wrapped 2023", "WRAP2023"],
args: [" Premium Spotify Wrapped 2023", "WRAP2023", 1000, parseEther("0")],
log: true,
autoMine: true,
});

await deploy("WrappedNFTBase", {
from: deployer,
args: ["Spotify Wrapped Song", "SONGWRAP2023"],
args: ["Premium Spotify Wrapped Song", "SONGWRAP2023", 1000, parseEther("0")],
log: true,
autoMine: true,
});

await deploy("WrappedNFTBase", {
from: deployer,
args: ["Spotify Wrapped Artist", "ARTWRAP2023"],
args: ["Premium Spotify Wrapped Artist", "ARTWRAP2023", 1000, parseEther("0")],
log: true,
autoMine: true,
});

await deploy("WrappedNFTBase", {
from: deployer,
args: ["Spotify Wrapped Genre", "GENWRAP2023"],
args: ["Premium Spotify Wrapped Genre", "GENWRAP2023", 1000, parseEther("0")],
log: true,
autoMine: true,
});
Expand Down
20 changes: 20 additions & 0 deletions packages/hardhat/deploy/03_deploy__Wrapped_NFT_Contract_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 deployWrappedNFTFactory: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;

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

export default deployWrappedNFTFactory;

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

0 comments on commit fb5e43d

Please sign in to comment.