Skip to content

Commit f201110

Browse files
committed
refactored scripts
1 parent 996850d commit f201110

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

script/Deployments/DeployLocker.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const fs = require("fs");
2+
const path = require("path");
3+
const { ethers } = require("hardhat");
4+
5+
async function main() {
6+
const TOKEN_ADDRESS = "0x37c779a1564DCc0e3914aB130e0e787d93e21804"; // PUSH Token
7+
8+
const [deployer] = await ethers.getSigners();
9+
console.log("Deployer:", deployer.address);
10+
11+
// Deploy MigrationLocker
12+
const Locker = await ethers.getContractFactory("MigrationLocker");
13+
const locker = await Locker.deploy(TOKEN_ADDRESS, deployer.address);
14+
await locker.waitForDeployment();
15+
console.log("MigrationLocker deployed at:", await locker.getAddress());
16+
}
17+
18+
main().catch((err) => {
19+
console.error("Error in deploy script:", err);
20+
process.exit(1);
21+
});
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ async function main() {
2222
const tx = await release.setMerkleRoot(root);
2323
await tx.wait();
2424
console.log("Merkle Root set in contract:", await release.merkleRoot());
25-
26-
2725
}
2826

2927
main().catch((err) => {

script/FetchAndClaims/ClaimTokensOnPush.js renamed to script/TestRuns/ClaimTokensOnPush.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ async function main() {
2828
await tx.wait();
2929
console.log("📌 Merkle root updated:", root);
3030

31+
32+
// Uncomment the following lines to test the instant release phase
33+
3134
// Instant release phase
3235
// for (const { address, amount, id } of claims) {
3336
// const proof = getProof(address, amount, id, claims);
File renamed without changes.

0 commit comments

Comments
 (0)