This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58aef13
commit df11037
Showing
3 changed files
with
1,120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.