Skip to content

Commit

Permalink
safekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 committed Sep 27, 2024
1 parent f2ca3b5 commit e644152
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
5 changes: 5 additions & 0 deletions packages/nfts/deployments/trailblazers-airdrop/hekla.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"AirdropVault": "0xBe27D457e92a37E159c0397162a8DbFCF94975De",
"ERC20Airdrop": "0x07A7c0139b1Ff67e61144CAFE177f83be1FB42FC",
"MerkleRoot": "0xea5b2299e76b4860965e9059388d021145269c96b816b07a808ff391cd80753e"
}
5 changes: 5 additions & 0 deletions packages/nfts/deployments/trailblazers-airdrop/mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"AirdropVault": "0xAd0F5A57fFb1B2D0A0848eb9725456388D37613F",
"ERC20Airdrop": "0x8e63810714666Dc9D4B73e6EC52Bb81aA1ca54bd",
"MerkleRoot": "0xea5b2299e76b4860965e9059388d021145269c96b816b07a808ff391cd80753e"
}
22 changes: 13 additions & 9 deletions packages/nfts/script/trailblazers-airdrop/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ contract DeployScript is Script {
deployerPrivateKey = utils.getPrivateKey();
deployerAddress = utils.getAddress();

vm.startBroadcast(deployerPrivateKey);
vm.startBroadcast(deployerPrivateKey);

// deploy the vault contract
vault = new AirdropVault(erc20);
console.log("Deployed AirdropVault to:", address(vault));


if (block.chainid != 167_000){

// not mainnet, create mock contracts
ERC20Mock mockERC20 = new ERC20Mock();

vault = new AirdropVault(mockERC20);
// mint the necessary funds
mockERC20.mint(address(vault), TOTAL_AVAILABLE_FUNDS);


erc20 = ERC20Upgradeable(address(mockERC20));
} else {
// deploy the mainnet vault
vault = new AirdropVault(erc20);

}
console.log("Deployed AirdropVault to:", address(vault));

vm.stopBroadcast();
vm.stopBroadcast();

}

Expand Down Expand Up @@ -93,6 +93,10 @@ contract DeployScript is Script {

console.log("Deployed ERC20Airdrop to:", address(airdrop));

vault.approveAirdropContractAsSpender(address(airdrop),
TOTAL_AVAILABLE_FUNDS);

console.log("Approved AirdropVault to spend", TOTAL_AVAILABLE_FUNDS, "to Airdrop contract");
vm.serializeBytes32(jsonRoot, "MerkleRoot", merkleRoot);
vm.serializeAddress(jsonRoot, "ERC20Airdrop", address(airdrop));

Expand Down

0 comments on commit e644152

Please sign in to comment.