-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.ts
60 lines (53 loc) · 1.42 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { createKeypairs } from "./src/createKeys";
import { buyBundle } from "./src/jitoPool";
import { sender } from "./src/senderUI";
import { createWalletSells, sellXPercentage } from "./src/sellFunc";
import { remove } from "./src/removeLiq";
import promptSync from "prompt-sync";
const prompt = promptSync();
async function main() {
let running = true;
while (running) {
console.log("DM me for support");
console.log("https://t.me/benorizz0");
console.log("\nMenu:");
console.log("1. Create Keypairs");
console.log("2. Pre Launch Checklist");
console.log("3. Create Pool Bundle");
console.log("4. Sell All Buyers");
console.log("5. Sell % of Supply");
console.log("6. Remove Liquidity");
console.log("Type 'exit' to quit.");
const answer = prompt("Choose an option or 'exit': "); // Use prompt-sync for user input
switch (answer) {
case "1":
await createKeypairs();
break;
case "2":
await sender();
break;
case "3":
await buyBundle();
break;
case "4":
await createWalletSells();
break;
case "5":
await sellXPercentage();
break;
case "6":
await remove();
break;
case "exit":
running = false;
break;
default:
console.log("Invalid option, please choose again.");
}
}
console.log("Exiting...");
process.exit(0);
}
main().catch((err) => {
console.error("Error:", err);
});