-
Notifications
You must be signed in to change notification settings - Fork 88
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
530aeb5
commit 0bebea3
Showing
1 changed file
with
43 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,43 @@ | ||
import {DeployFunction} from 'hardhat-deploy/types'; | ||
import {HardhatRuntimeEnvironment} from 'hardhat/types'; | ||
|
||
const func: DeployFunction = async function ( | ||
hre: HardhatRuntimeEnvironment | ||
): Promise<void> { | ||
const {deployments, getNamedAccounts} = hre; | ||
const {execute, catchUnknownSigner, log} = deployments; | ||
const {catalystMinter} = await getNamedAccounts(); | ||
|
||
// TODO Clarify whether the below is the correct contract name | ||
const GiveawayContract = await deployments.get('MultiGiveawayV1'); | ||
|
||
// TODO Specify amounts | ||
const amounts = { | ||
Common: 100, | ||
Uncommon: 200, | ||
Rare: 300, | ||
Epic: 400, | ||
Legendary: 500, | ||
Mythic: 600, | ||
}; | ||
await catchUnknownSigner( | ||
execute('Catalyst', {from: catalystMinter, log: true}, 'mintBatch', [ | ||
GiveawayContract.address, | ||
[1, 2, 3, 4, 5, 6], | ||
[ | ||
amounts.Common, | ||
amounts.Uncommon, | ||
amounts.Rare, | ||
amounts.Epic, | ||
amounts.Legendary, | ||
amounts.Mythic, | ||
], | ||
[], | ||
]) | ||
); | ||
log(`Minted 6 NFTs to ${GiveawayContract.address}`); | ||
}; | ||
|
||
export default func; | ||
func.tags = ['Catalyst_mint', 'L2']; | ||
func.dependencies = ['Catalyst_deploy']; |
0bebea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage for this commit
Coverage Report