forked from m8s-lab/pump-fun-bundler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
57 lines (50 loc) · 1.39 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
import { createKeypairs } from "./src/createKeys";
import { buyBundle } from "./src/jitoPool";
import { sender } from "./src/senderUI";
import { sellXPercentagePF } from "./src/sellFunc";
import promptSync from "prompt-sync";
import { sellXPercentageRAY } from "./src/sellRay";
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("solana-scripts.com");
console.log("\nMenu:");
console.log("1. Create Keypairs");
console.log("2. Pre Launch Checklist");
console.log("3. Create Pool Bundle");
console.log("4. Sell % of Supply on Pump.Fun");
console.log("5. Sell % of Supply on Raydium");
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 sellXPercentagePF();
break;
case "5":
await sellXPercentageRAY();
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);
});