-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.js
111 lines (110 loc) · 5.19 KB
/
utils.js
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.aff_settings_menu = exports.aff_sniper_menu = exports.aff_main_menu = exports.aff_guide = exports.aff_sell_option = exports.aff_snipe_option = exports.aff_title = exports.aff_logo = void 0;
const chalk_1 = __importDefault(require("chalk"));
const logo = '';
const title = `
\t
\t
\t _____ _____ _ _
\t| _ |_ _ _____ ___| __ |_ _ ___ _| | |___
\t| __| | | | . | __ -| | | | . | | -_|
\t|__| |___|_|_|_| _|_____|___|_|_|___|_|___|
\t |_|
\t
\t
\t`;
function aff_logo() {
for (let i = 0; i < logo.length; i++) {
if (logo[i] == '@') {
process.stdout.write(chalk_1.default.black(logo[i]));
}
else {
process.stdout.write(chalk_1.default.magenta(logo[i]));
}
}
}
exports.aff_logo = aff_logo;
function aff_title() {
for (let i = 0; i < title.length; i++) {
if (title[i] == '▓') {
process.stdout.write(chalk_1.default.black(title[i]));
}
else {
process.stdout.write(chalk_1.default.magenta(title[i]));
}
}
}
exports.aff_title = aff_title;
function aff_snipe_option() {
console.log(chalk_1.default.cyanBright('\tDisclaimer: \t- the tool will start sniping if all inputs are valid!'));
console.log(chalk_1.default.cyanBright('\t \t- double check the amount and pool details in the monitor'));
console.log(chalk_1.default.cyanBright('\t \t to avoid miss-inputs and big price impact'));
}
exports.aff_snipe_option = aff_snipe_option;
function aff_sell_option() {
console.log(chalk_1.default.cyanBright('\tDisclaimer: \t- the tool will sell supplied balance if all inputs are valid!'));
console.log(chalk_1.default.cyanBright('\t \t- double check the held balance and pool details in the monitor'));
console.log(chalk_1.default.cyanBright('\t \t to avoid miss-inputs and big price impact'));
}
exports.aff_sell_option = aff_sell_option;
function aff_guide() {
console.log(chalk_1.default.white('\tUSAGE: '));
console.log(chalk_1.default.white('\n'));
console.log(chalk_1.default.white('\tsniper option \t - requires AMM pool ID and amount of token in as input'));
console.log(chalk_1.default.white('\t \t - Amount in should be the Quote of the pair (from on-chain monitor)'));
console.log(chalk_1.default.white('\t \t - make sure to have the supplied amount of token in or the transaction will not go through'));
console.log(chalk_1.default.white('\n'));
console.log(chalk_1.default.white('\texit position option\t - requires AMM pool ID and amount of token out as input'));
console.log(chalk_1.default.white('\t \t - Amount in should be the Base of the pair (from on-chain monitor)'));
console.log(chalk_1.default.white('\t \t - make sure to have the supplied amount of token out or the transactions will not got through'));
console.log(chalk_1.default.white('\n'));
console.log(chalk_1.default.white('\tdefault slippage \t - 10%'));
console.log(chalk_1.default.white('\tsuggested slippage \t - between 10% and 30%'));
console.log(chalk_1.default.white("\tRPCs \t - Custom RPC's are highly suggested for fast transaction commitment speed"));
console.log(chalk_1.default.white('\n'));
}
exports.aff_guide = aff_guide;
function aff_main_menu() {
console.log('\n');
console.log(chalk_1.default.white('\t[1] - 🤖 Snipe on pump'));
console.log(chalk_1.default.white('\t[2] - ✅ Spam tx'));
console.log(chalk_1.default.white('\t[3] - ⚙️ Settings'));
console.log(chalk_1.default.white('\t[4] - 📕 Comment Bot'));
console.log(chalk_1.default.white('\t[5] - 💊 Create token'));
console.log(chalk_1.default.white('\t[6] - ❌ Exit token'));
console.log("\n");
}
exports.aff_main_menu = aff_main_menu;
function aff_sniper_menu() {
console.log(chalk_1.default.blueBright('\t[1] - Snipe on pump'));
console.log(chalk_1.default.greenBright('\t[2] - Exit Position'));
console.log(chalk_1.default.white('\t[3] - Usage'));
console.log(chalk_1.default.white('\t[4] - return'));
console.log("\n");
}
exports.aff_sniper_menu = aff_sniper_menu;
function aff_settings_menu() {
console.log(chalk_1.default.white('\t[1] - Change RPC'));
console.log(chalk_1.default.white('\t[2] - Change Webhook'));
console.log(chalk_1.default.white('\t[3] - Change Slippage'));
console.log(chalk_1.default.white('\t[4] - Change Wallet'));
console.log(chalk_1.default.white('\t[5] - Show Current Settings'));
console.log(chalk_1.default.white('\t[6] - Back'));
console.log("\n");
}
exports.aff_settings_menu = aff_settings_menu;
const default_export = {
aff_logo,
aff_title,
aff_main_menu,
aff_settings_menu,
aff_sniper_menu,
aff_snipe_option,
aff_sell_option,
aff_guide,
};
exports.default = default_export;