Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Add and Deploy Based Berlin
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoyle81CB committed May 20, 2024
1 parent 58aef13 commit df11037
Show file tree
Hide file tree
Showing 3 changed files with 1,120 additions and 0 deletions.
44 changes: 44 additions & 0 deletions deploy/013_deploy_based_berlin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { ethers } from "hardhat";

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

const argumentValues = [
"Based Berlin 2024", // Name
"BB24", // Symbol
"QmNkVcVYzqDBrpR5k8mSZShWSZwc6LsJfpPVTEhQLLXta6", // IPFS Hash
"Base Berlin 2024", // Description
];

const DeployedContract = await deploy("BasedBerlin24", {
from: deployer,
contract: "HackathonMinter",
args: argumentValues,
});

const deployedContract = await ethers.getContractAt(
"HackathonMinter",
DeployedContract.address
);

await deployedContract.addAllowed(
"0x95e32ba428421a24d77ddcc882696330161963b2"
); // Taylor
await deployedContract.addAllowed(
"0x01658f5d899e03492dC832C8eE8839FFD80b7f09"
); // Carl
await deployedContract.addAllowed(
"0x836fa72d2af55d698e8767acbe88c042b8201036"
); // Ryan

await hre.run("verify:verify", {
address: DeployedContract.address,
constructorArguments: argumentValues,
contract: "contracts/HackathonMinter.sol:HackathonMinter",
});
};
export default func;
File renamed without changes.
Loading

0 comments on commit df11037

Please sign in to comment.