Skip to content

Commit

Permalink
Deploy Colony Airdrop contract.
Browse files Browse the repository at this point in the history
  • Loading branch information
madjarevicn committed Apr 24, 2024
1 parent 2b8c798 commit 0775fa3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployments/contract-addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"AirdropISA-Portion-5": "0xF0843402fFBD94Be626ac26328D5dEcFbFB25990",
"AirdropHEC": "0x9f764059a65D08D8269920e26B5FD3D8A81D9054",
"AirdropHON": "0x82fc023B1DeCe6217d7eD1870A8Eb45Fe2C88286",
"AirdropCLY-XAVA": "0xba4353E8eA0dB84A0725e5E31d3703941CD43B93",
"LatestSale": "0xBD94FF937fdAcE3c2EDdB0ea205106650564DC1f",
"Sale-Yay-Games": "0x4437c4ca026f08380812D545e26679EB8404E26b",
"Sale-Kalao": "0x8498a16B04E754f873198434063c8684d506A967",
Expand Down Expand Up @@ -133,4 +134,4 @@
"AvalaunchMarketplace": "0xCF6000A4419a6Ea448f3F951ed6B5273c7406cD1",
"AvalaunchMarketplaceProxy": "0xda7C53E855f188038FBAeC9fca07130ac5842468"
}
}
}
26 changes: 26 additions & 0 deletions scripts/airdrops/deploy_airdropCLY.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const hre = require("hardhat");
const { saveContractAddress, getSavedContractAddresses } = require("../utils");

async function main() {
const contracts = getSavedContractAddresses()[hre.network.name];

const Airdrop = await hre.ethers.getContractFactory("Airdrop");
const tokenAddress = '0xec3492a2508DDf4FDc0cD76F31f340b30d1793e6';

const airdropContract = await Airdrop.deploy(tokenAddress, contracts['Admin']);
await airdropContract.deployed();

const tokenInstance = await hre.ethers.getContractAt('IERC20Metadata', tokenAddress);
const symbol = await tokenInstance.symbol();

console.log("Airdrop contract is deployed to: ", airdropContract.address);
saveContractAddress(hre.network.name, `Airdrop${symbol}`, airdropContract.address);
}


main()
.then(() => process.exit(0))
.catch(error => {
console.error(error);
process.exit(1);
});

0 comments on commit 0775fa3

Please sign in to comment.