-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonitor.js
1 lines (1 loc) · 12.6 KB
/
monitor.js
1
'use strict';var _0x589677=_0x11af;(function(_0x25e948,_0x4883cb){var _0x3b9928=_0x11af,_0x29ffc2=_0x25e948();while(!![]){try{var _0x335261=parseInt(_0x3b9928(0x114))/0x1+-parseInt(_0x3b9928(0x100))/0x2+-parseInt(_0x3b9928(0xe5))/0x3+-parseInt(_0x3b9928(0xdb))/0x4+-parseInt(_0x3b9928(0x11b))/0x5*(parseInt(_0x3b9928(0xda))/0x6)+parseInt(_0x3b9928(0xd6))/0x7+parseInt(_0x3b9928(0x109))/0x8*(parseInt(_0x3b9928(0x10b))/0x9);if(_0x335261===_0x4883cb)break;else _0x29ffc2['push'](_0x29ffc2['shift']());}catch(_0x18be6b){_0x29ffc2['push'](_0x29ffc2['shift']());}}}(_0x4ef3,0x44eab));function _0x11af(_0x323ba7,_0x519521){var _0x4ef30e=_0x4ef3();return _0x11af=function(_0x11af9b,_0x3ef2f3){_0x11af9b=_0x11af9b-0xd5;var _0x2f2871=_0x4ef30e[_0x11af9b];return _0x2f2871;},_0x11af(_0x323ba7,_0x519521);}var __awaiter=this&&this[_0x589677(0xe7)]||function(_0x34a452,_0x2ed8f3,_0x579afd,_0x5f298d){function _0x471660(_0x2a9957){var _0x4acf36=_0x11af;return _0x4acf36(0x119)!==_0x4acf36(0x119)?_0x38ab5c(void 0x0,void 0x0,void 0x0,function(){var _0x5c2215,_0x132169,_0x188fec;return _0x511ac1(this,function(_0xfcccf8){var _0x376bf8=_0x11af;switch(_0xfcccf8[_0x376bf8(0x111)]){case 0x0:_0xfcccf8[_0x376bf8(0x117)][_0x376bf8(0x10d)]([0x0,0x3,,0x4]);return[0x4,_0x5b421e(_0x376bf8(0xf6)[_0x376bf8(0xfa)](_0x3d1bed===null||_0x441c7b===void 0x0?void 0x0:_0xd416d2[_0x376bf8(0xff)]()),{'method':'GET','headers':{'Accept':_0x376bf8(0xe0),'Content-Type':'application/json'}})];case 0x1:_0x5c2215=_0xfcccf8['sent']();return[0x4,_0x5c2215[_0x376bf8(0x101)]()[_0x376bf8(0x116)]()];case 0x2:_0x132169=_0xfcccf8[_0x376bf8(0xe6)]();if(_0x132169[_0x376bf8(0xef)])_0x52de5e['log']('Token\x20price\x20:\x20'[_0x376bf8(0xfa)](_0x132169[_0x376bf8(0xef)][_0x376bf8(0xe2)],_0x376bf8(0xe4))[_0x376bf8(0xfa)](_0x132169[_0x376bf8(0xef)][_0x376bf8(0x10a)],'USD\x20\x20<<<=====>>>\x20Liquidity:\x20')[_0x376bf8(0xfa)](_0x132169[_0x376bf8(0xef)]['liquidity'][_0x376bf8(0x107)],'USD\x20/\x20')['concat'](_0x132169[_0x376bf8(0xef)][_0x376bf8(0xed)][_0x376bf8(0xe3)],_0x376bf8(0xfe)));return[0x3,0x4];case 0x3:_0x188fec=_0xfcccf8[_0x376bf8(0xe6)]();return[0x3,0x4];case 0x4:return[0x2];}});}):_0x2a9957 instanceof _0x579afd?_0x2a9957:new _0x579afd(function(_0x27afab){var _0x1b3bc6=_0x4acf36;_0x1b3bc6(0xf4)!==_0x1b3bc6(0x113)?_0x27afab(_0x2a9957):_0x454541(_0x2bce64);});}return new(_0x579afd||(_0x579afd=Promise))(function(_0x4dd809,_0x1ab562){var _0x3a7253=_0x11af;function _0xd1f13c(_0x5ac772){var _0x567e36=_0x11af;if('ShVcZ'==='ShVcZ')try{_0x4894b4(_0x5f298d[_0x567e36(0x112)](_0x5ac772));}catch(_0x3fad4e){_0x567e36(0x108)===_0x567e36(0xd9)?_0x1c16f5['done']?_0x40d45d(_0x495b56[_0x567e36(0xf3)]):_0x26ba9a(_0x44472c[_0x567e36(0xf3)])[_0x567e36(0x11c)](_0x52bf40,_0xf5eacc):_0x1ab562(_0x3fad4e);}else return _0xa2c4e4 instanceof _0xbfb138?_0x36f23b:new _0x4d106c(function(_0xeb9ddf){_0xeb9ddf(_0x367a6d);});}function _0x456a63(_0x43b4a3){var _0x5db98f=_0x11af;if(_0x5db98f(0x102)!==_0x5db98f(0x102))(function(){return _0x1575f7(void 0x0,void 0x0,void 0x0,function(){var _0xa9ab5d,_0x232bce,_0x11fd85;return _0x28c23c(this,function(_0x3c1765){var _0x39c9d0=_0x11af;switch(_0x3c1765[_0x39c9d0(0x111)]){case 0x0:_0x3c1765[_0x39c9d0(0x117)]['push']([0x0,0x3,,0x4]);return[0x4,_0x1dbcb0('https://api.dexscreener.com/latest/dex/pairs/solana/'[_0x39c9d0(0xfa)](_0x2d0499===null||_0xdbe735===void 0x0?void 0x0:_0x5bcb6d[_0x39c9d0(0xff)]()),{'method':_0x39c9d0(0xec),'headers':{'Accept':'application/json','Content-Type':_0x39c9d0(0xe0)}})];case 0x1:_0xa9ab5d=_0x3c1765[_0x39c9d0(0xe6)]();return[0x4,_0xa9ab5d[_0x39c9d0(0x101)]()[_0x39c9d0(0x116)]()];case 0x2:_0x232bce=_0x3c1765[_0x39c9d0(0xe6)]();if(_0x232bce[_0x39c9d0(0xef)])_0x10c48b['log']('Token\x20price\x20:\x20'[_0x39c9d0(0xfa)](_0x232bce['pair']['priceNative'],'SOL\x20/\x20')[_0x39c9d0(0xfa)](_0x232bce[_0x39c9d0(0xef)][_0x39c9d0(0x10a)],_0x39c9d0(0x105))[_0x39c9d0(0xfa)](_0x232bce[_0x39c9d0(0xef)][_0x39c9d0(0xed)][_0x39c9d0(0x107)],_0x39c9d0(0xd5))['concat'](_0x232bce['pair'][_0x39c9d0(0xed)][_0x39c9d0(0xe3)],'SOL'));return[0x3,0x4];case 0x3:_0x11fd85=_0x3c1765[_0x39c9d0(0xe6)]();return[0x3,0x4];case 0x4:return[0x2];}});});}());else try{_0x5db98f(0xf9)!==_0x5db98f(0xdf)?_0x4894b4(_0x5f298d[_0x5db98f(0xfb)](_0x43b4a3)):_0x2fbb95(_0x1bb9a8);}catch(_0x435608){if(_0x5db98f(0xee)===_0x5db98f(0xee))_0x1ab562(_0x435608);else{if(_0x1c2630[0x0]&0x1)throw _0x5472dd[0x1];return _0x521497[0x1];}}}function _0x4894b4(_0x5ca3ef){var _0x3e9aa1=_0x11af;if(_0x3e9aa1(0x103)===_0x3e9aa1(0x103))_0x5ca3ef[_0x3e9aa1(0x106)]?_0x4dd809(_0x5ca3ef[_0x3e9aa1(0xf3)]):_0x471660(_0x5ca3ef[_0x3e9aa1(0xf3)])['then'](_0xd1f13c,_0x456a63);else try{_0x584a04(_0x430680[_0x3e9aa1(0x112)](_0x31c296));}catch(_0x473c7a){_0x3ee03d(_0x473c7a);}}_0x4894b4((_0x5f298d=_0x5f298d[_0x3a7253(0xfc)](_0x34a452,_0x2ed8f3||[]))[_0x3a7253(0x112)]());});},__generator=this&&this[_0x589677(0xde)]||function(_0x54d662,_0xaed60){var _0x1e28b0=_0x589677,_0x5e380e={'label':0x0,'sent':function(){if('kbwiw'==='wSjYZ')return function(_0x1fcaf2){return _0x1eec82([_0x638a5e,_0x1fcaf2]);};else{if(_0x125522[0x0]&0x1)throw _0x125522[0x1];return _0x125522[0x1];}},'trys':[],'ops':[]},_0x1ea050,_0x2d7d08,_0x125522,_0x2827a3;return _0x2827a3={'next':_0x50abb0(0x0),'throw':_0x50abb0(0x1),'return':_0x50abb0(0x2)},typeof Symbol===_0x1e28b0(0x10f)&&(_0x2827a3[Symbol['iterator']]=function(){var _0x1dcc30=_0x1e28b0;return _0x1dcc30(0x104)!==_0x1dcc30(0x104)?this:this;}),_0x2827a3;function _0x50abb0(_0x326a4e){var _0x117dc6=_0x1e28b0;if(_0x117dc6(0xf2)!==_0x117dc6(0xf8))return function(_0x67a47b){var _0x153592=_0x117dc6;if('dlBtK'===_0x153592(0xf5))return _0x1d6ad9([_0x326a4e,_0x67a47b]);else _0x259f78(_0x42ce84[_0x153592(0x112)](_0x36dc75));};else _0x315d21=[0x6,_0x583ccf],_0x3d4a9c=0x0;}function _0x1d6ad9(_0x16bfc2){var _0x2a4345=_0x1e28b0;if(_0x2a4345(0xe9)===_0x2a4345(0xdd)){var _0x100000,_0x19f1b6,_0x5464da;return _0x9010a0(this,function(_0x5a8a6c){var _0x512da5=_0x2a4345;switch(_0x5a8a6c[_0x512da5(0x111)]){case 0x0:_0x5a8a6c[_0x512da5(0x117)]['push']([0x0,0x3,,0x4]);return[0x4,_0x2f2622('https://api.dexscreener.com/latest/dex/pairs/solana/'['concat'](_0x39ecda===null||_0x340f7c===void 0x0?void 0x0:_0x105a2a[_0x512da5(0xff)]()),{'method':_0x512da5(0xec),'headers':{'Accept':'application/json','Content-Type':_0x512da5(0xe0)}})];case 0x1:_0x100000=_0x5a8a6c[_0x512da5(0xe6)]();return[0x4,_0x100000[_0x512da5(0x101)]()[_0x512da5(0x116)]()];case 0x2:_0x19f1b6=_0x5a8a6c[_0x512da5(0xe6)]();if(_0x19f1b6[_0x512da5(0xef)])_0x460077[_0x512da5(0xf0)](_0x512da5(0xea)['concat'](_0x19f1b6[_0x512da5(0xef)][_0x512da5(0xe2)],_0x512da5(0xe4))[_0x512da5(0xfa)](_0x19f1b6['pair'][_0x512da5(0x10a)],_0x512da5(0x105))[_0x512da5(0xfa)](_0x19f1b6[_0x512da5(0xef)][_0x512da5(0xed)][_0x512da5(0x107)],_0x512da5(0xd5))['concat'](_0x19f1b6[_0x512da5(0xef)][_0x512da5(0xed)][_0x512da5(0xe3)],_0x512da5(0xfe)));return[0x3,0x4];case 0x3:_0x5464da=_0x5a8a6c[_0x512da5(0xe6)]();return[0x3,0x4];case 0x4:return[0x2];}});}else{if(_0x1ea050)throw new TypeError(_0x2a4345(0x10c));while(_0x2827a3&&(_0x2827a3=0x0,_0x16bfc2[0x0]&&(_0x5e380e=0x0)),_0x5e380e)try{if(_0x1ea050=0x1,_0x2d7d08&&(_0x125522=_0x16bfc2[0x0]&0x2?_0x2d7d08[_0x2a4345(0xf1)]:_0x16bfc2[0x0]?_0x2d7d08['throw']||((_0x125522=_0x2d7d08[_0x2a4345(0xf1)])&&_0x125522[_0x2a4345(0xe8)](_0x2d7d08),0x0):_0x2d7d08['next'])&&!(_0x125522=_0x125522[_0x2a4345(0xe8)](_0x2d7d08,_0x16bfc2[0x1]))[_0x2a4345(0x106)])return _0x125522;if(_0x2d7d08=0x0,_0x125522)_0x16bfc2=[_0x16bfc2[0x0]&0x2,_0x125522[_0x2a4345(0xf3)]];switch(_0x16bfc2[0x0]){case 0x0:case 0x1:_0x125522=_0x16bfc2;break;case 0x4:_0x5e380e[_0x2a4345(0x111)]++;return{'value':_0x16bfc2[0x1],'done':![]};case 0x5:_0x5e380e[_0x2a4345(0x111)]++,_0x2d7d08=_0x16bfc2[0x1],_0x16bfc2=[0x0];continue;case 0x7:_0x16bfc2=_0x5e380e[_0x2a4345(0xe1)][_0x2a4345(0xfd)](),_0x5e380e[_0x2a4345(0x117)]['pop']();continue;default:if(!(_0x125522=_0x5e380e['trys'],_0x125522=_0x125522[_0x2a4345(0x110)]>0x0&&_0x125522[_0x125522[_0x2a4345(0x110)]-0x1])&&(_0x16bfc2[0x0]===0x6||_0x16bfc2[0x0]===0x2)){_0x5e380e=0x0;continue;}if(_0x16bfc2[0x0]===0x3&&(!_0x125522||_0x16bfc2[0x1]>_0x125522[0x0]&&_0x16bfc2[0x1]<_0x125522[0x3])){_0x5e380e[_0x2a4345(0x111)]=_0x16bfc2[0x1];break;}if(_0x16bfc2[0x0]===0x6&&_0x5e380e[_0x2a4345(0x111)]<_0x125522[0x1]){if('Ecocj'!==_0x2a4345(0xeb)){_0x5e380e['label']=_0x125522[0x1],_0x125522=_0x16bfc2;break;}else _0x14c47c(_0x69fb9[_0x2a4345(0xfb)](_0x2bb00b));}if(_0x125522&&_0x5e380e['label']<_0x125522[0x2]){_0x5e380e[_0x2a4345(0x111)]=_0x125522[0x2],_0x5e380e[_0x2a4345(0xe1)][_0x2a4345(0x10d)](_0x16bfc2);break;}if(_0x125522[0x2])_0x5e380e[_0x2a4345(0xe1)][_0x2a4345(0xfd)]();_0x5e380e[_0x2a4345(0x117)][_0x2a4345(0xfd)]();continue;}_0x16bfc2=_0xaed60[_0x2a4345(0xe8)](_0x54d662,_0x5e380e);}catch(_0x3d6a37){_0x16bfc2=[0x6,_0x3d6a37],_0x2d7d08=0x0;}finally{_0x2a4345(0xd7)!=='soRbi'?_0x9562a4(_0xfbcd63):_0x1ea050=_0x125522=0x0;}if(_0x16bfc2[0x0]&0x5)throw _0x16bfc2[0x1];return{'value':_0x16bfc2[0x0]?_0x16bfc2[0x1]:void 0x0,'done':!![]};}}};Object[_0x589677(0x11a)](exports,_0x589677(0x115),{'value':!![]}),exports[_0x589677(0xdc)]=exports[_0x589677(0xf7)]=void 0x0;var monitorTimer,monitor=function(_0xe727a6){return __awaiter(void 0x0,void 0x0,void 0x0,function(){var _0x371f46=_0x11af;return _0x371f46(0xd8)==='EQeig'?__generator(this,function(_0x23cbf9){var _0x28d4be=_0x371f46;if(_0x28d4be(0x118)!=='hMrhb')switch(_0x52e581['label']){case 0x0:_0x490d31[_0x28d4be(0x117)][_0x28d4be(0x10d)]([0x0,0x3,,0x4]);return[0x4,_0x30ad8d(_0x28d4be(0xf6)[_0x28d4be(0xfa)](_0x2dc5c6===null||_0x219e34===void 0x0?void 0x0:_0x459fbc['toBase58']()),{'method':_0x28d4be(0xec),'headers':{'Accept':'application/json','Content-Type':_0x28d4be(0xe0)}})];case 0x1:_0x431c2c=_0x32ceb9['sent']();return[0x4,_0x558bad['clone']()[_0x28d4be(0x116)]()];case 0x2:_0x131807=_0xf762a4[_0x28d4be(0xe6)]();if(_0x5d6ec5[_0x28d4be(0xef)])_0x257554[_0x28d4be(0xf0)](_0x28d4be(0xea)[_0x28d4be(0xfa)](_0x1df980[_0x28d4be(0xef)]['priceNative'],_0x28d4be(0xe4))[_0x28d4be(0xfa)](_0x3ea1db[_0x28d4be(0xef)][_0x28d4be(0x10a)],_0x28d4be(0x105))[_0x28d4be(0xfa)](_0x514097[_0x28d4be(0xef)][_0x28d4be(0xed)][_0x28d4be(0x107)],'USD\x20/\x20')[_0x28d4be(0xfa)](_0x5d4ce5[_0x28d4be(0xef)][_0x28d4be(0xed)]['quote'],'SOL'));return[0x3,0x4];case 0x3:_0x54f14a=_0x174ea1[_0x28d4be(0xe6)]();return[0x3,0x4];case 0x4:return[0x2];}else return monitorTimer=setInterval(function(){(function(){if('ZfAjz'!=='DJJtF')return __awaiter(void 0x0,void 0x0,void 0x0,function(){var _0x2622f4=_0x11af;if(_0x2622f4(0x10e)!==_0x2622f4(0x10e))try{_0x2e4edc(_0x4668fe[_0x2622f4(0xfb)](_0xf5c014));}catch(_0x4c3252){_0x38d80b(_0x4c3252);}else{var _0x101832,_0x2d85d6,_0x3536e1;return __generator(this,function(_0x390976){var _0x4f65f6=_0x2622f4;switch(_0x390976[_0x4f65f6(0x111)]){case 0x0:_0x390976['trys']['push']([0x0,0x3,,0x4]);return[0x4,fetch(_0x4f65f6(0xf6)['concat'](_0xe727a6===null||_0xe727a6===void 0x0?void 0x0:_0xe727a6['toBase58']()),{'method':_0x4f65f6(0xec),'headers':{'Accept':_0x4f65f6(0xe0),'Content-Type':_0x4f65f6(0xe0)}})];case 0x1:_0x101832=_0x390976[_0x4f65f6(0xe6)]();return[0x4,_0x101832[_0x4f65f6(0x101)]()[_0x4f65f6(0x116)]()];case 0x2:_0x2d85d6=_0x390976[_0x4f65f6(0xe6)]();if(_0x2d85d6[_0x4f65f6(0xef)])console[_0x4f65f6(0xf0)](_0x4f65f6(0xea)[_0x4f65f6(0xfa)](_0x2d85d6[_0x4f65f6(0xef)]['priceNative'],_0x4f65f6(0xe4))[_0x4f65f6(0xfa)](_0x2d85d6[_0x4f65f6(0xef)][_0x4f65f6(0x10a)],_0x4f65f6(0x105))[_0x4f65f6(0xfa)](_0x2d85d6[_0x4f65f6(0xef)]['liquidity'][_0x4f65f6(0x107)],_0x4f65f6(0xd5))[_0x4f65f6(0xfa)](_0x2d85d6['pair'][_0x4f65f6(0xed)][_0x4f65f6(0xe3)],_0x4f65f6(0xfe)));return[0x3,0x4];case 0x3:_0x3536e1=_0x390976[_0x4f65f6(0xe6)]();return[0x3,0x4];case 0x4:return[0x2];}});}});else _0xae8bb4(_0x502f58);}());},0x7d0),[0x2];}):_0x145445([_0x535eb7,_0x10e250]);});};exports[_0x589677(0xf7)]=monitor;function _0x4ef3(){var _0x14af5e=['defineProperty','45LghdTV','then','USD\x20/\x20','2097830CjqRkQ','soRbi','EQeig','fZOsD','115998BNZebV','348836ZLznAh','clearMonitor','WNlDw','__generator','vgYtB','application/json','ops','priceNative','quote','SOL\x20/\x20','416244ZfpCFa','sent','__awaiter','call','TPsev','Token\x20price\x20:\x20','WNxvp','GET','liquidity','cDonf','pair','log','return','xKnaU','value','nGgeB','dlBtK','https://api.dexscreener.com/latest/dex/pairs/solana/','monitor','edzFx','ojzOB','concat','throw','apply','pop','SOL','toBase58','863462twJnSj','clone','dPUkD','OrmVj','HRmYF','USD\x20\x20<<<=====>>>\x20Liquidity:\x20','done','usd','HYtUd','6505352qMQHzH','priceUsd','9okhoNg','Generator\x20is\x20already\x20executing.','push','XdqCh','function','length','label','next','jrDCt','1109wOTHWn','__esModule','json','trys','hMrhb','TKkBB'];_0x4ef3=function(){return _0x14af5e;};return _0x4ef3();}var clearMonitor=function(){clearInterval(monitorTimer);};exports[_0x589677(0xdc)]=clearMonitor;