feat: finish challenge
Some checks failed
Lint / ci (lts/*, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
han
2026-01-23 19:56:48 +07:00
parent e7b2a69f2a
commit 2ad0e8c238
9 changed files with 2413 additions and 20 deletions

View File

@@ -50,19 +50,19 @@ const deployYourContract: DeployFunction = async function (hre: HardhatRuntimeEn
const dex = (await hre.ethers.getContract("DEX", deployer)) as DEX;
// // paste in your front-end address here to get 10 balloons on deploy:
// await balloons.transfer("YOUR_FRONTEND_ADDRESS", "" + 10 * 10 ** 18);
await balloons.transfer("0x0d76b138023D1B901a155f491CE245736729893a", "" + 10 * 10 ** 18);
// // uncomment to init DEX on deploy:
// const dexAddress = await dex.getAddress();
// console.log("Approving DEX (" + dexAddress + ") to take Balloons from main account...");
// // If you are going to the testnet make sure your deployer account has enough ETH
// await balloons.approve(dexAddress, hre.ethers.parseEther("100"));
// console.log("INIT exchange...");
// await dex.init(hre.ethers.parseEther("5"), {
// value: hre.ethers.parseEther("5"),
// gasLimit: 200000,
// });
const dexAddress = await dex.getAddress();
console.log("Approving DEX (" + dexAddress + ") to take Balloons from main account...");
// If you are going to the testnet make sure your deployer account has enough ETH
await balloons.approve(dexAddress, hre.ethers.parseEther("100"));
console.log("INIT exchange...");
await dex.init(hre.ethers.parseEther("0.01"), {
value: hre.ethers.parseEther("0.01"),
gasLimit: 200000,
});
};
export default deployYourContract;