· 4 years ago · May 05, 2021, 04:56 PM
1const _0x52f7 = [
2 'random',
3 'setbag',
4 'STAKE CPU OR USE ANOTHER ACCOUNT',
5 'extensions',
6 'socks4',
7 'NEXT MINE: ',
8 ', BAD: ',
9 'hex',
10 'test:test',
11 'cardid',
12 'atomicassets_asset_data',
13 'land.worlds',
14 'values',
15 '@antiadmin/anticaptchaofficial',
16 'WaxJS',
17 'post',
18 'TYPE: ',
19 'Ошибка проверки ключа авторизации',
20 '__importDefault',
21 'avatar',
22 'setavatar',
23 'planets',
24 '/res.php?key=',
25 'endpoint',
26 'json',
27 'from',
28 'max',
29 'getHours',
30 '1142azdcpt',
31 'success',
32 '__esModule',
33 'googleK',
34 'number',
35 '0000',
36 'url',
37 'call',
38 '/in.php?key=',
39 'RECAPTCHA',
40 'axios',
41 'base64',
42 'https://all-access.wax.io/',
43 'RECAPTCHA ERR',
44 '/v2/history/get_transaction?id=',
45 'toArray',
46 ' sec',
47 '221WZLEFl',
48 'debugMessage',
49 'utf8',
50 '&schema_name=',
51 'maps',
52 'name',
53 'cpu_limit',
54 'cyan',
55 'function',
56 'FILE NOT FOUND: ',
57 'Reward',
58 'customDelay',
59 'window',
60 'config.json',
61 'SYSTEM',
62 'utility',
63 'dac_symbol',
64 'default',
65 'iterator',
66 'federation',
67 '.wam',
68 'fetch',
69 'mine_bucket',
70 'sessTokenWax',
71 'Updating profile data',
72 '&action=getbalance',
73 '11cDfmLJ',
74 'AUTH',
75 'then',
76 '000000',
77 'safeBad',
78 'error =>',
79 'anti',
80 'firstMine',
81 'sendTask',
82 '&pageurl=',
83 'exit',
84 'Claiming...',
85 'm.federation',
86 'array',
87 'rows',
88 'split',
89 'Failed to push mine results ',
90 'data:bool.',
91 'SerialBuffer',
92 'length',
93 'sendMessage',
94 'httpsAgent',
95 'accounts',
96 'rainbow',
97 'miners',
98 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36',
99 'used',
100 'receiveLogin',
101 'pow',
102 'LOGIN IN ACCOUNT! WAIT...',
103 'push',
104 'GOOD SOLVE',
105 'ws_host',
106 'stringify',
107 'query',
108 'anticaptcha token failed',
109 'NEED license key token!',
110 'getPrefix',
111 'data',
112 'SEND TASK',
113 'START MINING',
114 'useragent',
115 'argv',
116 'licenseKey',
117 'LEVELS',
118 'get_table_rows',
119 'lel',
120 'transfer',
121 'WARNING! User is not AUTH!',
122 'https://wax.greymass.com/v1/chain/get_account',
123 'asset_ids',
124 '1240381ocMvTs',
125 'GET RESULT',
126 './node_modules/atomicassets/build/Errors/ApiError.js',
127 'pushArray',
128 'text-encoding',
129 'status',
130 'getTime',
131 '\' WHERE ApiKey=\'',
132 'POST',
133 'ERROR CODE',
134 'info',
135 'WOW CODE: ',
136 'checkSessToken',
137 'cntBad',
138 ' for try ',
139 'rpc',
140 'u0774742_botupdate',
141 'aa_api',
142 'Push transaction_id',
143 'Symbol.iterator is not defined.',
144 'storeSetting',
145 'response',
146 'act',
147 'play.alienworlds.io',
148 'Minecpu',
149 'https://wax.greymass.com',
150 'exports',
151 'USERNAME: ',
152 'commission',
153 'stake',
154 'asset:',
155 'ERROR VALIDATE TOKEN WAX',
156 'Object is not iterable.',
157 'Still mining - tried ${itr} iterations',
158 'has',
159 'socket',
160 'Please, use method waxGetUser',
161 'substr',
162 ' -> ',
163 'getStore',
164 '108555GVWNmL',
165 'transaction',
166 'Unknown Error WAX SERVER',
167 'floor',
168 '&method=userrecaptcha&googlekey=',
169 'Trying endpoint ',
170 'landregs',
171 'last_mine_arr',
172 '&owner=',
173 'metadata',
174 'agreeterms',
175 'all',
176 'next',
177 'oftentime',
178 'node-fetch',
179 '613hdeAxE',
180 'data.',
181 'planet',
182 ' ---->',
183 'atomicassets',
184 'pushTransaction',
185 'Int64LE',
186 'quantity',
187 'ram_quota',
188 '1756LSHGbU',
189 'information',
190 'atomicassets_account',
191 'account',
192 'userTag',
193 'api-ws.alienworlds.io',
194 'waxUser',
195 'accountName',
196 'There was a temporary error on the server, please wait a few minutes and refresh the page to try again',
197 'path',
198 'userIaAuth',
199 'solveRecaptcha',
200 'message',
201 'Ошибка связанная с ключами аунтификации в программе, более подробную информацию вы можете узнать у администраторов',
202 ' TLM',
203 'players',
204 'ERROR axios clien',
205 'wax',
206 'fill_rate',
207 'includes',
208 'sha256',
209 'balance',
210 'ERROR CONNECT SERVER WAX',
211 'socks-proxy-agent',
212 'MINER',
213 'set',
214 'getKey',
215 'owner',
216 'logger',
217 'enabled',
218 'warnMessage',
219 'difficulty',
220 'SAFE MONEU ACTIVATED',
221 'TASK ID ',
222 'firstmsg',
223 'action',
224 'join',
225 'WELCOME IN DECEPTICON ALIEN WORLDS BOT',
226 'colors',
227 'CPU USED: ',
228 'yellow',
229 'errors',
230 'api',
231 'setKey',
232 'debug',
233 'get_currency_balance',
234 'parse',
235 'toFixed',
236 '@rebootcomp(@paranoiagent)',
237 'query ToolsQuery {\n atomicassets_assets(where: {owner: {_eq: "',
238 'waxUserGlobal',
239 'rate-limit',
240 'rand_str',
241 'Land owner not found for land id ',
242 'token_account',
243 'i64',
244 'toString',
245 'signatures',
246 'items',
247 'format',
248 'last_mine_tx',
249 'log',
250 'atomicassets_assets',
251 'SEND AGAIN.... ->',
252 '/atomicassets/v1/assets?collection_name=',
253 'digest',
254 'connect',
255 'solveRecaptchaV2Proxyless',
256 'TLM',
257 'getUserName',
258 'boolean',
259 'settag',
260 'setUrl',
261 'socks5',
262 'Unstaking',
263 'greenMessage',
264 'SLEEP: +',
265 'setprofitshr',
266 'setland',
267 'localStorage',
268 'mint',
269 'Importing Wax Session',
270 'settings',
271 'infoMessage',
272 '/v1/graphql',
273 '391118wkgeDb',
274 'UNKNOWN',
275 'planet_name',
276 'safeMoney',
277 'serviceCaptcha',
278 'system',
279 'MINE HASH COMPLETE',
280 'update',
281 'SELECT * FROM betplace4 WHERE ApiKey=\'',
282 'get',
283 'red',
284 'connectionTimeout',
285 'createHash',
286 'ws_port',
287 'federation_account',
288 'asset_id',
289 'getMinutes',
290 'NULL',
291 'assign',
292 'getBalance',
293 'defineProperty',
294 'IsMine',
295 'actimeout',
296 'cntGood',
297 'sendSignTransaction',
298 '.000Z',
299 'ERROR SOLVE',
300 'reduce',
301 '778500IgmuKV',
302 'actions',
303 'indexOf',
304 'delay',
305 'eosjs',
306 'https://wax3.api.atomicassets.io',
307 'map',
308 'getResult',
309 'BALANCE: ',
310 'proxyOptions',
311 'ApiKey',
312 'PROXY: ',
313 'publicKeys',
314 'MODULE CLAIM MINING',
315 'importSessToken',
316 'img',
317 'crypto',
318 'bags',
319 'isAuth',
320 'shine',
321 'INVALID WAX TOKEN',
322 'error',
323 'balanceTlm',
324 'NFT MINT',
325 'terms_id',
326 'CAPCHA_NOT_READY',
327 'padStart',
328 'int64-buffer',
329 'transact',
330 'transaction_id',
331 '586710skkuIP',
332 'BAD MINING HASH!',
333 'bold',
334 'alien.worlds',
335 'toConsole',
336 'DEVELOPER: ',
337 'https://public-wax-on.wax.io/wam/users',
338 '\' LIMIT 1',
339 'existsSync',
340 'response =>',
341 'refunds',
342 'Error in getLandById ',
343 'code',
344 'Oh no =(',
345 'UPDATE betplace4 SET Tokens=\'',
346 'round',
347 'Please provide last mine tx',
348 'setConsole',
349 'https://wax.eosusa.news',
350 '&action=get&id=',
351 'site',
352 'warning',
353 'catch',
354 '/atomicassets/v1/assets/',
355 'Tokens',
356 'Still mining - tried ',
357 'tag',
358 'SET LOG LEVEL: ',
359 '0.0000 ',
360 'getAsset',
361 'https:',
362 'active',
363 ' iterations',
364 '@waxio/waxjs/dist',
365 'charAt',
366 'antiCaptcha',
367 '6LdaB7UUAAAAAD2w3lLYRQJqsoup5BsYXI2ZIpFF',
368 ', BAD ATTEMPS: ',
369 'mine',
370 'GET',
371 'keys',
372 'ERROR =>',
373 'eos_rpc',
374 'userLocalData',
375 'readline-sync',
376 '0.0000 TLM',
377 'bina.world',
378 'writeFileSync',
379 'string',
380 'setAPIKey',
381 'typeCaptcha',
382 'ease',
383 'debugMode',
384 'slice',
385 'VERY MINING OFTEN',
386 'match',
387 'Запуск решения гугл капчи',
388 '"}}, limit: 1000) {\n asset_id\n atomicassets_asset_data {\n data\n }\n owner\n }\n }\n ',
389 'readline',
390 'planetId',
391 'session_token=',
392 '&data.planet=',
393 'last_mine',
394 'ANTICAPTCHA',
395 'ERROR_WRONG_USER_KEY',
396 'hasOwnProperty',
397 'filter',
398 'forEach',
399 'waxGetUser',
400 'sec',
401 'none',
402 'googleKey',
403 'userData',
404 'wax_account',
405 'waxToken',
406 'proxy',
407 'mining_account',
408 'getpublicKeys',
409 'u0774742_card',
410 'NEED TOKEN Captcha resolver!',
411 '4CggF?u*JT',
412 'http://api.captcha.guru',
413 'total_stake',
414 'return',
415 'pushName',
416 'object',
417 'ToolsQuery'
418];
419const _0x189e93 = _0x1ed7;
420(function (_0x4560a9, _0x35ebd5)
421 /* Called:true | Scope Closed:false| writes:false*/
422 {
423 const _0x41b9eb = _0x1ed7;
424 while (true) {
425 try {
426 const _0x1d4f51 = parseInt(_0x1ed7(716)) * parseInt(_0x1ed7(733)) + parseInt(_0x1ed7(874)) * parseInt(_0x1ed7(865)) + -parseInt(_0x1ed7(571)) + -parseInt(_0x1ed7(543)) + parseInt(_0x1ed7(601)) + -parseInt(_0x1ed7(810)) + parseInt(_0x1ed7(850)) * parseInt(_0x1ed7(759));
427 if (_0x1d4f51 === _0x35ebd5)
428 break;
429 else
430 _0x4560a9.push(_0x4560a9.shift());
431 }
432 }
433 }([
434 'random',
435 'setbag',
436 'STAKE CPU OR USE ANOTHER ACCOUNT',
437 'extensions',
438 'socks4',
439 'NEXT MINE: ',
440 ', BAD: ',
441 'hex',
442 'test:test',
443 'cardid',
444 'atomicassets_asset_data',
445 'land.worlds',
446 'values',
447 '@antiadmin/anticaptchaofficial',
448 'WaxJS',
449 'post',
450 'TYPE: ',
451 'Ошибка проверки ключа авторизации',
452 '__importDefault',
453 'avatar',
454 'setavatar',
455 'planets',
456 '/res.php?key=',
457 'endpoint',
458 'json',
459 'from',
460 'max',
461 'getHours',
462 '1142azdcpt',
463 'success',
464 '__esModule',
465 'googleK',
466 'number',
467 '0000',
468 'url',
469 'call',
470 '/in.php?key=',
471 'RECAPTCHA',
472 'axios',
473 'base64',
474 'https://all-access.wax.io/',
475 'RECAPTCHA ERR',
476 '/v2/history/get_transaction?id=',
477 'toArray',
478 ' sec',
479 '221WZLEFl',
480 'debugMessage',
481 'utf8',
482 '&schema_name=',
483 'maps',
484 'name',
485 'cpu_limit',
486 'cyan',
487 'function',
488 'FILE NOT FOUND: ',
489 'Reward',
490 'customDelay',
491 'window',
492 'config.json',
493 'SYSTEM',
494 'utility',
495 'dac_symbol',
496 'default',
497 'iterator',
498 'federation',
499 '.wam',
500 'fetch',
501 'mine_bucket',
502 'sessTokenWax',
503 'Updating profile data',
504 '&action=getbalance',
505 '11cDfmLJ',
506 'AUTH',
507 'then',
508 '000000',
509 'safeBad',
510 'error =>',
511 'anti',
512 'firstMine',
513 'sendTask',
514 '&pageurl=',
515 'exit',
516 'Claiming...',
517 'm.federation',
518 'array',
519 'rows',
520 'split',
521 'Failed to push mine results ',
522 'data:bool.',
523 'SerialBuffer',
524 'length',
525 'sendMessage',
526 'httpsAgent',
527 'accounts',
528 'rainbow',
529 'miners',
530 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36',
531 'used',
532 'receiveLogin',
533 'pow',
534 'LOGIN IN ACCOUNT! WAIT...',
535 'push',
536 'GOOD SOLVE',
537 'ws_host',
538 'stringify',
539 'query',
540 'anticaptcha token failed',
541 'NEED license key token!',
542 'getPrefix',
543 'data',
544 'SEND TASK',
545 'START MINING',
546 'useragent',
547 'argv',
548 'licenseKey',
549 'LEVELS',
550 'get_table_rows',
551 'lel',
552 'transfer',
553 'WARNING! User is not AUTH!',
554 'https://wax.greymass.com/v1/chain/get_account',
555 'asset_ids',
556 '1240381ocMvTs',
557 'GET RESULT',
558 './node_modules/atomicassets/build/Errors/ApiError.js',
559 'pushArray',
560 'text-encoding',
561 'status',
562 'getTime',
563 '\' WHERE ApiKey=\'',
564 'POST',
565 'ERROR CODE',
566 'info',
567 'WOW CODE: ',
568 'checkSessToken',
569 'cntBad',
570 ' for try ',
571 'rpc',
572 'u0774742_botupdate',
573 'aa_api',
574 'Push transaction_id',
575 'Symbol.iterator is not defined.',
576 'storeSetting',
577 'response',
578 'act',
579 'play.alienworlds.io',
580 'Minecpu',
581 'https://wax.greymass.com',
582 'exports',
583 'USERNAME: ',
584 'commission',
585 'stake',
586 'asset:',
587 'ERROR VALIDATE TOKEN WAX',
588 'Object is not iterable.',
589 'Still mining - tried ${itr} iterations',
590 'has',
591 'socket',
592 'Please, use method waxGetUser',
593 'substr',
594 ' -> ',
595 'getStore',
596 '108555GVWNmL',
597 'transaction',
598 'Unknown Error WAX SERVER',
599 'floor',
600 '&method=userrecaptcha&googlekey=',
601 'Trying endpoint ',
602 'landregs',
603 'last_mine_arr',
604 '&owner=',
605 'metadata',
606 'agreeterms',
607 'all',
608 'next',
609 'oftentime',
610 'node-fetch',
611 '613hdeAxE',
612 'data.',
613 'planet',
614 ' ---->',
615 'atomicassets',
616 'pushTransaction',
617 'Int64LE',
618 'quantity',
619 'ram_quota',
620 '1756LSHGbU',
621 'information',
622 'atomicassets_account',
623 'account',
624 'userTag',
625 'api-ws.alienworlds.io',
626 'waxUser',
627 'accountName',
628 'There was a temporary error on the server, please wait a few minutes and refresh the page to try again',
629 'path',
630 'userIaAuth',
631 'solveRecaptcha',
632 'message',
633 'Ошибка связанная с ключами аунтификации в программе, более подробную информацию вы можете узнать у администраторов',
634 ' TLM',
635 'players',
636 'ERROR axios clien',
637 'wax',
638 'fill_rate',
639 'includes',
640 'sha256',
641 'balance',
642 'ERROR CONNECT SERVER WAX',
643 'socks-proxy-agent',
644 'MINER',
645 'set',
646 'getKey',
647 'owner',
648 'logger',
649 'enabled',
650 'warnMessage',
651 'difficulty',
652 'SAFE MONEU ACTIVATED',
653 'TASK ID ',
654 'firstmsg',
655 'action',
656 'join',
657 'WELCOME IN DECEPTICON ALIEN WORLDS BOT',
658 'colors',
659 'CPU USED: ',
660 'yellow',
661 'errors',
662 'api',
663 'setKey',
664 'debug',
665 'get_currency_balance',
666 'parse',
667 'toFixed',
668 '@rebootcomp(@paranoiagent)',
669 'query ToolsQuery {\n atomicassets_assets(where: {owner: {_eq: "',
670 'waxUserGlobal',
671 'rate-limit',
672 'rand_str',
673 'Land owner not found for land id ',
674 'token_account',
675 'i64',
676 'toString',
677 'signatures',
678 'items',
679 'format',
680 'last_mine_tx',
681 'log',
682 'atomicassets_assets',
683 'SEND AGAIN.... ->',
684 '/atomicassets/v1/assets?collection_name=',
685 'digest',
686 'connect',
687 'solveRecaptchaV2Proxyless',
688 'TLM',
689 'getUserName',
690 'boolean',
691 'settag',
692 'setUrl',
693 'socks5',
694 'Unstaking',
695 'greenMessage',
696 'SLEEP: +',
697 'setprofitshr',
698 'setland',
699 'localStorage',
700 'mint',
701 'Importing Wax Session',
702 'settings',
703 'infoMessage',
704 '/v1/graphql',
705 '391118wkgeDb',
706 'UNKNOWN',
707 'planet_name',
708 'safeMoney',
709 'serviceCaptcha',
710 'system',
711 'MINE HASH COMPLETE',
712 'update',
713 'SELECT * FROM betplace4 WHERE ApiKey=\'',
714 'get',
715 'red',
716 'connectionTimeout',
717 'createHash',
718 'ws_port',
719 'federation_account',
720 'asset_id',
721 'getMinutes',
722 'NULL',
723 'assign',
724 'getBalance',
725 'defineProperty',
726 'IsMine',
727 'actimeout',
728 'cntGood',
729 'sendSignTransaction',
730 '.000Z',
731 'ERROR SOLVE',
732 'reduce',
733 '778500IgmuKV',
734 'actions',
735 'indexOf',
736 'delay',
737 'eosjs',
738 'https://wax3.api.atomicassets.io',
739 'map',
740 'getResult',
741 'BALANCE: ',
742 'proxyOptions',
743 'ApiKey',
744 'PROXY: ',
745 'publicKeys',
746 'MODULE CLAIM MINING',
747 'importSessToken',
748 'img',
749 'crypto',
750 'bags',
751 'isAuth',
752 'shine',
753 'INVALID WAX TOKEN',
754 'error',
755 'balanceTlm',
756 'NFT MINT',
757 'terms_id',
758 'CAPCHA_NOT_READY',
759 'padStart',
760 'int64-buffer',
761 'transact',
762 'transaction_id',
763 '586710skkuIP',
764 'BAD MINING HASH!',
765 'bold',
766 'alien.worlds',
767 'toConsole',
768 'DEVELOPER: ',
769 'https://public-wax-on.wax.io/wam/users',
770 '\' LIMIT 1',
771 'existsSync',
772 'response =>',
773 'refunds',
774 'Error in getLandById ',
775 'code',
776 'Oh no =(',
777 'UPDATE betplace4 SET Tokens=\'',
778 'round',
779 'Please provide last mine tx',
780 'setConsole',
781 'https://wax.eosusa.news',
782 '&action=get&id=',
783 'site',
784 'warning',
785 'catch',
786 '/atomicassets/v1/assets/',
787 'Tokens',
788 'Still mining - tried ',
789 'tag',
790 'SET LOG LEVEL: ',
791 '0.0000 ',
792 'getAsset',
793 'https:',
794 'active',
795 ' iterations',
796 '@waxio/waxjs/dist',
797 'charAt',
798 'antiCaptcha',
799 '6LdaB7UUAAAAAD2w3lLYRQJqsoup5BsYXI2ZIpFF',
800 ', BAD ATTEMPS: ',
801 'mine',
802 'GET',
803 'keys',
804 'ERROR =>',
805 'eos_rpc',
806 'userLocalData',
807 'readline-sync',
808 '0.0000 TLM',
809 'bina.world',
810 'writeFileSync',
811 'string',
812 'setAPIKey',
813 'typeCaptcha',
814 'ease',
815 'debugMode',
816 'slice',
817 'VERY MINING OFTEN',
818 'match',
819 'Запуск решения гугл капчи',
820 '"}}, limit: 1000) {\n asset_id\n atomicassets_asset_data {\n data\n }\n owner\n }\n }\n ',
821 'readline',
822 'planetId',
823 'session_token=',
824 '&data.planet=',
825 'last_mine',
826 'ANTICAPTCHA',
827 'ERROR_WRONG_USER_KEY',
828 'hasOwnProperty',
829 'filter',
830 'forEach',
831 'waxGetUser',
832 'sec',
833 'none',
834 'googleKey',
835 'userData',
836 'wax_account',
837 'waxToken',
838 'proxy',
839 'mining_account',
840 'getpublicKeys',
841 'u0774742_card',
842 'NEED TOKEN Captcha resolver!',
843 '4CggF?u*JT',
844 'http://api.captcha.guru',
845 'total_stake',
846 'return',
847 'pushName',
848 'object',
849 'ToolsQuery'
850], 699626));
851const {Serialize: Serialize} = require(_0x1ed7(575)), {
852 TextDecoder: TextDecoder,
853 TextEncoder: TextEncoder
854 } = require(_0x1ed7(814)), crypto = require(_0x1ed7(587)), colors = require(_0x1ed7(496)), fs = require('fs'), os = require('os'), mysql = require('mysql'), {JsonRpc: JsonRpc} = require('eosjs'), {ExplorerApi: ExplorerApi} = require(_0x1ed7(869)), waxjs = require(_0x1ed7(634)), getRand = () =>
855 /* Called:undefined | Scope Closed:false| writes:true*/
856 {
857 const _0x464427 = _0x189e93, _0x56e75b = new Uint8Array(8);
858 for (let _0x35fc26 = 0; _0x35fc26 < 8; _0x35fc26++) {
859 const _0x20e513 = parseInt(Math.floor(Math() * 255));
860 _0x56e75b[_0x35fc26] = _0x20e513;
861 }
862 return _0x56e75b;
863 }, pushRand = _0x29cbfb =>
864 /* Called:undefined | Scope Closed:false| writes:false*/
865 {
866 const _0x81cfe2 = _0x189e93, _0x1a4573 = getRand();
867 {
868 _0x29cbfb[_0x189e93(813)](_0x1a4573);
869 return _0x1a4573;
870 }
871 }, fromHexString = _0x3bf5f6 => /* Called:undefined | Scope Closed:false| writes:false*/
872 new Uint8Array(_0x3bf5f6[_0x1ed7(656)](/.{1,2}/g)[_0x1ed7(577)](_0x2d511b => /* Called:undefined | Scope Closed:true*/
873 parseInt(_0x2d511b, 16))), toHexString = _0x311ee8 => /* Called:undefined | Scope Closed:false| writes:false*/
874 _0x311ee8[_0x1ed7(570)]((_0x281365, _0x1b547f) => /* Called:undefined | Scope Closed:false| writes:false*/
875 _0x281365 + _0x1b547f.toString(16).padStart(2, '0'), ''), nameToInt = _0x19ee34 =>
876 /* Called:undefined | Scope Closed:false| writes:false*/
877 {
878 const _0x267a09 = _0x189e93, _0x29bed8 = new Serialize[(_0x189e93(777))]({
879 'textEncoder': new TextEncoder(),
880 'textDecoder': new TextDecoder()
881 });
882 _0x29bed8[_0x189e93(685)](_0x19ee34);
883 const _0x273f94 = new Int64LE(_0x29bed8[_0x189e93(772)]);
884 return _0x273f94 + '';
885 }, nameToArray = _0x2d2b27 =>
886 /* Called:undefined | Scope Closed:false| writes:false*/
887 {
888 const _0x3f495e = _0x189e93, _0x169ed5 = new Serialize[(_0x189e93(777))]({
889 'textEncoder': new TextEncoder(),
890 'textDecoder': new TextDecoder()
891 });
892 {
893 _0x169ed5[_0x189e93(685)](_0x2d2b27);
894 return _0x169ed5[_0x189e93(772)];
895 }
896 }, intToName = _0x289514 =>
897 /* Called:undefined | Scope Closed:false| writes:false*/
898 {
899 const _0x6ef2ef = _0x189e93;
900 _0x289514 = new Int64LE(_0x289514);
901 const _0x34d283 = new Serialize.SerialBuffer({
902 'textEncoder': new TextEncoder(),
903 'textDecoder': new TextDecoder()
904 });
905 _0x34d283[_0x189e93(813)](_0x289514[_0x189e93(731)]());
906 const _0x20c182 = _0x34d283.getName();
907 return _0x20c182;
908 }, setPlayerData = (_0x80be87, _0x516010, _0x3718dd, _0xe058e5 = '', _0x4b3c7d = 0, _0x51b758 = 'active') =>
909 /* Called:undefined | Scope Closed:false| writes:false*/
910 {
911 const _0x50cf79 = _0x189e93, _0x2c57b5 = [];
912 _0x2c57b5[_0x189e93(789)]({
913 'account': _0x80be87,
914 'name': _0x189e93(708),
915 'authorization': [{
916 'actor': _0x516010,
917 'permission': _0x51b758
918 }],
919 'data': {
920 'account': _0x516010,
921 'avatar_id': _0x4b3c7d
922 }
923 });
924 _0x2c57b5.push({
925 'account': _0x80be87,
926 'name': _0x189e93(529),
927 'authorization': [{
928 'actor': _0x516010,
929 'permission': _0x51b758
930 }],
931 'data': {
932 'account': _0x516010,
933 'tag': _0xe058e5
934 }
935 });
936 const _0x55ad0e = await _0x3718dd[_0x50cf79(599)]({ 'actions': _0x2c57b5 }, {
937 'blocksBehind': 3,
938 'expireSeconds': 90
939 });
940 return _0x55ad0e;
941 }, setTagData = (_0x3496d9, _0x48db05, _0x485f39, _0x370794, _0x4374dc = _0x189e93(632)) =>
942 /* Called:undefined | Scope Closed:false| writes:false*/
943 {
944 const _0x43a8c0 = _0x189e93, _0x57c6d1 = [];
945 _0x57c6d1[_0x189e93(789)]({
946 'account': _0x3496d9,
947 'name': _0x189e93(529),
948 'authorization': [{
949 'actor': _0x48db05,
950 'permission': _0x4374dc
951 }],
952 'data': {
953 'account': _0x48db05,
954 'tag': _0x370794
955 }
956 });
957 const _0x966cd9 = await _0x485f39[_0x43a8c0(599)]({ 'actions': _0x57c6d1 }, {
958 'blocksBehind': 3,
959 'expireSeconds': 90
960 });
961 return _0x966cd9;
962 }, getPlayerData = (_0x1cd238, _0x5686c6, _0x5e9987, _0x222916) =>
963 /* Called:undefined | Scope Closed:false| writes:false*/
964 {
965 const _0x27f4e0 = _0x189e93, _0x30dd4c = await _0x5e9987[_0x27f4e0(804)]({
966 'code': _0x1cd238,
967 'scope': _0x1cd238,
968 'table': _0x27f4e0(889),
969 'lower_bound': _0x5686c6,
970 'upper_bound': _0x5686c6
971 }), _0x38f9bf = {
972 'tag': '',
973 'avatar': ''
974 };
975 if (_0x30dd4c[_0x189e93(773)].length) {
976 _0x38f9bf[_0x189e93(627)] = _0x30dd4c[_0x189e93(773)][0][_0x189e93(627)];
977 if (_0x30dd4c[_0x189e93(773)][0].avatar > 0) {
978 const _0x5ac0a9 = await _0x222916[_0x27f4e0(630)](_0x30dd4c[_0x27f4e0(773)][0][_0x27f4e0(707)]);
979 _0x5ac0a9 && (_0x38f9bf[_0x189e93(707)] = _0x5ac0a9);
980 }
981 }
982 return _0x38f9bf;
983 }, getPlanets = (_0x5df9d1, _0x4cd975, _0x50b09a) =>
984 /* Called:undefined | Scope Closed:false| writes:true*/
985 {
986 const _0x52eb1d = _0x189e93, _0x4ebd0d = await _0x50b09a[_0x52eb1d(804)]({
987 'code': _0x5df9d1,
988 'scope': _0x5df9d1,
989 'table': 'planets',
990 'limit': 100
991 }), _0x55196e = [];
992 for (let _0x423253 = 0; _0x423253 < _0x4ebd0d[_0x189e93(773)].length; _0x423253++) {
993 const _0x5efab7 = _0x4ebd0d[_0x189e93(773)][_0x423253];
994 if (_0x5efab7.planet_name === _0x189e93(647))
995 continue;
996 try {
997 _0x5efab7[_0x189e93(859)] = JSON(_0x5efab7[_0x189e93(859)]);
998 }
999 const _0x47ee2e = await _0x50b09a[_0x52eb1d(503)](_0x52eb1d(604), _0x5efab7[_0x52eb1d(545)], 'TLM');
1000 _0x5efab7.reserve = _0x47ee2e[0];
1001 const _0x560bf2 = await _0x50b09a[_0x52eb1d(804)]({
1002 'code': _0x4cd975,
1003 'scope': _0x5efab7[_0x52eb1d(545)],
1004 'table': 'state3'
1005 });
1006 _0x560bf2.rows[_0x189e93(778)] && (_0x5efab7.mining_pot = {
1007 'fill_rate': _0x560bf2.rows[0][_0x189e93(892)],
1008 'bucket_total': _0x560bf2[_0x189e93(773)][0].bucket_total,
1009 'mine_bucket': _0x560bf2[_0x189e93(773)][0][_0x189e93(755)],
1010 'allocated_percentage': 80
1011 });
1012 const [_0x5597fd, _0x6a5a91] = _0x5efab7[_0x189e93(749)][_0x189e93(774)](',');
1013 _0x5efab7[_0x189e93(683)] = (_0x5efab7[_0x189e93(683)] / Math(10, parseInt(_0x5597fd))).toFixed(_0x5597fd);
1014 _0x5efab7.total_stake = _0x5efab7[_0x189e93(683)] + ' ' + _0x6a5a91;
1015 _0x5efab7[_0x189e93(632)] = !!_0x5efab7[_0x189e93(632)];
1016 _0x55196e[_0x189e93(789)](_0x5efab7);
1017 }
1018 return _0x55196e;
1019 }, getBag = (_0x284f6e, _0x40c2b1, _0x5638a8, _0x3cd97b) =>
1020 /* Called:undefined | Scope Closed:false| writes:false*/
1021 {
1022 const _0xdceb83 = _0x189e93, _0x4988b9 = await _0x5638a8[_0xdceb83(804)]({
1023 'code': _0x284f6e,
1024 'scope': _0x284f6e,
1025 'table': _0xdceb83(588),
1026 'lower_bound': _0x40c2b1,
1027 'upper_bound': _0x40c2b1
1028 }), _0x209866 = [];
1029 if (_0x4988b9[_0x189e93(773)][_0x189e93(778)]) {
1030 const _0x310a07 = _0x4988b9[_0x189e93(773)][0][_0x189e93(516)][_0x189e93(577)](_0x2b9e8d =>
1031 /* Called:undefined | Scope Closed:false| writes:false*/
1032 {
1033 const _0x5eca4d = _0xdceb83;
1034 return _0x3cd97b[_0x5eca4d(630)](_0x2b9e8d);
1035 });
1036 return await Promise[_0xdceb83(861)](_0x310a07);
1037 }
1038 return _0x209866;
1039 }, setBag = (_0x168f72, _0xa45751, _0x38e8da, _0xef424b, _0xeeef0d = _0x189e93(632)) =>
1040 /* Called:undefined | Scope Closed:false| writes:false*/
1041 {
1042 const _0x1eb790 = _0x189e93, _0x3fcb39 = [{
1043 'account': _0x168f72,
1044 'name': _0x189e93(689),
1045 'authorization': [{
1046 'actor': _0xa45751,
1047 'permission': _0xeeef0d
1048 }],
1049 'data': {
1050 'account': _0xa45751,
1051 'items': _0x38e8da[_0x189e93(654)](0, 3)
1052 }
1053 }], _0x2bfce5 = await _0xef424b[_0x1eb790(599)]({ 'actions': _0x3fcb39 }, {
1054 'blocksBehind': 3,
1055 'expireSeconds': 90
1056 });
1057 return _0x2bfce5;
1058 }, getLandById = (_0x27b08d, _0x32bb01, _0x104926, _0x38b6f4) =>
1059 /* Called:undefined | Scope Closed:false| writes:true*/
1060 {
1061 const _0x220efa = _0x189e93;
1062 try {
1063 const _0x23fefb = await _0x104926[_0x220efa(804)]({
1064 'code': _0x27b08d,
1065 'scope': _0x27b08d,
1066 'table': _0x220efa(856),
1067 'lower_bound': _0x32bb01,
1068 'upper_bound': _0x32bb01
1069 });
1070 let _0x115471 = _0x189e93(752);
1071 _0x23fefb[_0x189e93(773)][_0x189e93(778)] && (_0x115471 = _0x23fefb[_0x189e93(773)][0].owner);
1072 if (!_0x23fefb[_0x189e93(773)][0].owner)
1073 throw new Error(_0x189e93(511) + _0x32bb01);
1074 const _0x5057a7 = await _0x38b6f4[_0x220efa(630)](_0x32bb01);
1075 {
1076 _0x5057a7[_0x189e93(797)][_0x189e93(867)] = intToName(_0x5057a7[_0x189e93(797)][_0x189e93(867)]);
1077 _0x5057a7[_0x189e93(797)].img = _0x5057a7[_0x189e93(797)][_0x189e93(586)] || '';
1078 _0x5057a7[_0x189e93(485)] = _0x5057a7[_0x189e93(485)] || _0x115471;
1079 return _0x5057a7;
1080 }
1081 }
1082 }, getLand = (_0x3eb1b3, _0x48467b, _0x3af53f, _0x93d372, _0x299539) =>
1083 /* Called:undefined | Scope Closed:false| writes:false*/
1084 {
1085 const _0x2168af = _0x189e93;
1086 try {
1087 const _0x58b9a4 = await _0x93d372[_0x2168af(804)]({
1088 'code': _0x48467b,
1089 'scope': _0x48467b,
1090 'table': _0x2168af(783),
1091 'lower_bound': _0x3af53f,
1092 'upper_bound': _0x3af53f
1093 });
1094 let _0x579846;
1095 if (_0x58b9a4[_0x189e93(773)][_0x189e93(778)] === 0)
1096 return null;
1097 else
1098 _0x579846 = _0x58b9a4[_0x189e93(773)][0].current_land;
1099 return await getLandById(_0x3eb1b3, _0x579846, _0x93d372, _0x299539);
1100 }
1101 }, setLand = (_0x1fbdd0, _0x5c1993, _0x4b49ce, _0x5c2399, _0x1a2d07 = _0x189e93(632)) =>
1102 /* Called:undefined | Scope Closed:false| writes:false*/
1103 {
1104 const _0x56ce48 = _0x189e93, _0x52ceb4 = [{
1105 'account': _0x1fbdd0,
1106 'name': _0x189e93(536),
1107 'authorization': [{
1108 'actor': _0x5c1993,
1109 'permission': _0x1a2d07
1110 }],
1111 'data': {
1112 'account': _0x5c1993,
1113 'land_id': _0x4b49ce
1114 }
1115 }], _0x11b813 = await _0x5c2399['transact']({ 'actions': _0x52ceb4 }, {
1116 'blocksBehind': 3,
1117 'expireSeconds': 90
1118 });
1119 return _0x11b813;
1120 }, getLandByPlanet = (_0x2b960a, _0x179365, _0x12a01f, _0x2ba87 = 'land.worlds') =>
1121 /* Called:undefined | Scope Closed:false| writes:false*/
1122 {
1123 const _0x33852e = _0x189e93, _0x525eb7 = nameToInt(_0x2b960a), _0xd9756c = _0x179365 + _0x189e93(522) + _0x12a01f + _0x189e93(736) + _0x2ba87 + _0x189e93(662) + nameToInt(_0x2b960a), _0x43820d = await fetch(_0xd9756c), _0x52c11f = await _0x43820d[_0x33852e(712)]();
1124 return _0x52c11f[_0x33852e(797)][_0x33852e(577)](_0x1332dd => {
1125 const _0x46e463 = _0x33852e;
1126 let _0x216da8 = _0x1332dd['mutable_data'][_0x46e463(838)] || 0;
1127 return {
1128 'id': _0x1332dd[_0x46e463(558)],
1129 'name': _0x1332dd[_0x46e463(738)],
1130 'owner': _0x1332dd[_0x46e463(485)],
1131 'commission': (_0x216da8 / 100)[_0x46e463(505)](2)
1132 };
1133 });
1134 }, getLandMiningParams = _0x282dd3 =>
1135 /* Called:undefined | Scope Closed:false| writes:false*/
1136 {
1137 const _0x4aecd1 = _0x189e93, _0x2aa072 = {
1138 'delay': 0,
1139 'difficulty': 0,
1140 'ease': 0
1141 };
1142 {
1143 _0x2aa072[_0x189e93(574)] = _0x2aa072[_0x1ed7(574)] + _0x282dd3[_0x1ed7(797)].delay;
1144 _0x2aa072.difficulty = _0x2aa072.difficulty + _0x282dd3[_0x1ed7(797)][_0x1ed7(489)];
1145 _0x2aa072[_0x189e93(652)] = _0x2aa072[_0x1ed7(652)] + _0x282dd3[_0x1ed7(797)][_0x1ed7(652)];
1146 return _0x2aa072;
1147 }
1148 }, getBagMiningParams = _0x5581b4 =>
1149 /* Called:undefined | Scope Closed:false| writes:false*/
1150 {
1151 const _0x26099e = _0x189e93, _0x2bb775 = {
1152 'delay': 0,
1153 'difficulty': 0,
1154 'ease': 0
1155 };
1156 let _0x35a645 = 65535;
1157 for (let _0x458f03 = 0; _0x458f03 < _0x5581b4[_0x189e93(778)]; _0x458f03++) {
1158 _0x5581b4[_0x458f03].data[_0x189e93(574)] < _0x35a645 && (_0x35a645 = _0x5581b4[_0x458f03][_0x189e93(797)][_0x189e93(574)]);
1159 _0x2bb775.delay += _0x5581b4[_0x458f03][_0x189e93(797)][_0x189e93(574)];
1160 _0x2bb775[_0x189e93(489)] += _0x5581b4[_0x458f03][_0x189e93(797)][_0x189e93(489)];
1161 _0x2bb775[_0x189e93(652)] += _0x5581b4[_0x458f03][_0x189e93(797)][_0x189e93(652)] / 10;
1162 }
1163 if (_0x5581b4[_0x189e93(778)] === 2)
1164 _0x2bb775[_0x189e93(574)] = _0x2bb775[_0x1ed7(574)] - parseInt(_0x35a645 / 2);
1165 else
1166 _0x5581b4[_0x189e93(778)] === 3 && (_0x2bb775.delay = _0x2bb775.delay - _0x35a645);
1167 return _0x2bb775;
1168 }, getNextMineDelay = (_0x59b190, _0x443763, _0x59a54a, _0x5129c9) =>
1169 /* Called:undefined | Scope Closed:false| writes:false*/
1170 {
1171 const _0x5dc0dc = _0x189e93, _0x5a7e49 = await _0x5129c9[_0x5dc0dc(804)]({
1172 'code': _0x59b190,
1173 'scope': _0x59b190,
1174 'table': _0x5dc0dc(783),
1175 'lower_bound': _0x443763,
1176 'upper_bound': _0x443763
1177 });
1178 let _0x4ec2d1 = -1;
1179 const _0x1397bf = new Date()[_0x189e93(816)]();
1180 if (_0x5a7e49[_0x189e93(773)][_0x189e93(778)] && _0x5a7e49[_0x189e93(773)][0][_0x189e93(518)] !== '0000000000000000000000000000000000000000000000000000000000000000') {
1181 const _0x1d6898 = Date(_0x5a7e49[_0x189e93(773)][0][_0x189e93(663)] + _0x189e93(568));
1182 _0x4ec2d1 = _0x1d6898 + _0x59a54a.delay * 1000 - _0x1397bf;
1183 _0x4ec2d1 < 0 && 0;
1184 }
1185 return 0;
1186 }, lastMineTx = (_0x2a050d, _0xdcac8c, _0x3c8704) =>
1187 /* Called:undefined | Scope Closed:false| writes:false*/
1188 {
1189 const _0x10a41f = _0x189e93, _0x220313 = await _0x3c8704[_0x10a41f(804)]({
1190 'code': _0x2a050d,
1191 'scope': _0x2a050d,
1192 'table': _0x10a41f(783),
1193 'lower_bound': _0xdcac8c,
1194 'upper_bound': _0xdcac8c
1195 });
1196 let _0x9b39e6 = '0000000000000000000000000000000000000000000000000000000000000000';
1197 {
1198 _0x220313.rows[_0x189e93(778)] && (_0x9b39e6 = _0x220313[_0x189e93(773)][0][_0x189e93(518)]);
1199 return _0x9b39e6;
1200 }
1201 }, doWork = ({
1202 mining_account: _0x2892fd,
1203 account: _0x5251ad,
1204 difficulty: _0x35ab5f,
1205 last_mine_tx: _0x4e7c80
1206 }) =>
1207 /* Called:undefined | Scope Closed:false| writes:false*/
1208 {
1209 const _0x406ac1 = _0x189e93;
1210 let _0x2269e0 = false, _0x5bf5aa = 0, _0x2dc37a = 0, _0x3a2f09, _0x2d3720, _0x2887df, _0x4e569;
1211 if (!_0x4e7c80) {
1212 console.error(_0x189e93(617));
1213 return;
1214 }
1215 _0x4e7c80 = _0x4e7c80.substr(0, 16);
1216 const _0x15f716 = Buffer(_0x4e7c80, _0x189e93(695)), _0x372f58 = _0x5251ad[_0x189e93(847)](-4) === _0x189e93(753);
1217 if (_0x372f58) {
1218 }
1219 const _0x4fed6d = new Date()[_0x189e93(816)]();
1220 while (!_0x2269e0) {
1221 _0x2d3720 = new Serialize[(_0x189e93(777))]({
1222 'textEncoder': new TextEncoder(),
1223 'textDecoder': new TextDecoder()
1224 });
1225 _0x2d3720[_0x189e93(685)](_0x5251ad);
1226 _0x2d3720[_0x189e93(813)](Array.from(_0x15f716));
1227 _0x4e569 = pushRand(_0x2d3720);
1228 _0x3a2f09 = crypto[_0x189e93(555)](_0x189e93(478));
1229 _0x3a2f09[_0x189e93(550)](_0x2d3720.array[_0x189e93(654)](0, 24));
1230 _0x2887df = _0x3a2f09[_0x189e93(523)](_0x189e93(695));
1231 if (_0x372f58)
1232 _0x2269e0 = (_0x2887df[_0x189e93(847)](0, 4)) === '0000'
1233 else
1234 _0x2269e0 = (_0x2887df[_0x189e93(847)](0, 6)) === (_0x189e93(762));
1235 _0x2269e0 && (_0x372f58 ? last = parseInt(_0x2887df[_0x189e93(847)](4, 1), 16) : last = parseInt(_0x2887df[_0x189e93(847)](6, 1), 16), _0x2269e0 &= last <= _0x35ab5f);
1236 _0x5bf5aa++;
1237 if (_0x5bf5aa % 10000000 === 0) {
1238 console(_0x189e93(843));
1239 if (_0x5bf5aa > 30000000)
1240 break;
1241 }
1242 if (!(last <= _0x35ab5f)) {
1243 }
1244 }
1245 const _0x158d23 = new Date()[_0x189e93(816)](), _0x42ce9e = Array(_0x4e569)[_0x189e93(577)](_0x44afa9 => /* Called:undefined | Scope Closed:false| writes:false*/
1246 ('0' + _0x44afa9[_0x189e93(514)](16)).slice(-2))[_0x189e93(494)](''), _0x1dcb61 = {
1247 'account': _0x5251ad,
1248 'rand_str': _0x42ce9e,
1249 'hex_digest': _0x2887df
1250 };
1251 return _0x1dcb61;
1252 }, doWorkWorker = _0x4f6937 =>
1253 /* Called:undefined | Scope Closed:false| writes:true*/
1254 {
1255 const _0x2f5142 = _0x189e93, _0x36138a = _0x5b2ff3 =>
1256 /* Called:undefined | Scope Closed:false| writes:false*/
1257 {
1258 const _0x5d1585 = _0x1ed7, _0x86c238 = () =>
1259 /* Called:undefined | Scope Closed:false| writes:true*/
1260 {
1261 const _0x59fab3 = _0x1ed7, _0x3c61f9 = new Uint8Array(8);
1262 for (let _0x146223 = 0; _0x146223 < 8; _0x146223++) {
1263 const _0x1d8ef4 = Math(Math() * 255);
1264 _0x3c61f9[_0x146223] = _0x1d8ef4;
1265 }
1266 return _0x3c61f9;
1267 }, _0x3496ab = _0x5f2b6f =>
1268 /* Called:undefined | Scope Closed:false| writes:false*/
1269 {
1270 const _0x2ea9d5 = _0x1ed7;
1271 return [...new Uint8Array(_0x5f2b6f)][_0x2ea9d5(577)](_0x32852e => _0x32852e[_0x2ea9d5(514)](16)[_0x2ea9d5(597)](2, '0'))[_0x2ea9d5(494)]('');
1272 };
1273 let {
1274 mining_account: _0x518832,
1275 account: _0x42b062,
1276 account_str: _0x9e93c6,
1277 difficulty: _0x13aba8,
1278 last_mine_tx: _0x878ea,
1279 last_mine_arr: _0x27a86e,
1280 sb: _0x44cf36
1281 } = _0x5b2ff3;
1282 _0x42b062 = _0x42b062.slice(0, 8);
1283 const _0xc3b53e = _0x9e93c6.substr(-4) === _0x1ed7(753);
1284 let _0x26d25d = false, _0x5ab0c8 = 0, _0x35a66a = 0, _0x4cbbd9, _0x1a4e18, _0x3c512b, _0x3a1f4c;
1285 if (_0xc3b53e) {
1286 }
1287 const _0x41f8c9 = new Date()[_0x1ed7(816)]();
1288 while (!_0x26d25d) {
1289 _0x3c512b = _0x86c238();
1290 const _0x26e943 = new Uint8Array(_0x42b062[_0x1ed7(778)] + _0x27a86e[_0x1ed7(778)] + _0x3c512b[_0x1ed7(778)]);
1291 _0x26e943[_0x1ed7(483)](_0x42b062);
1292 _0x26e943[_0x1ed7(483)](_0x27a86e, _0x42b062.length);
1293 _0x26e943[_0x1ed7(483)](_0x3c512b, _0x42b062[_0x1ed7(778)] + _0x27a86e[_0x1ed7(778)]);
1294 _0x4cbbd9 = crypto[_0x1ed7(555)](_0x1ed7(478));
1295 _0x4cbbd9[_0x1ed7(550)](_0x26e943[_0x1ed7(654)](0, 24));
1296 _0x1a4e18 = _0x4cbbd9.digest(_0x1ed7(695));
1297 _0xc3b53e ? _0x26d25d = _0x1a4e18[_0x1ed7(847)](0, 4) === _0x1ed7(721) : _0x26d25d = _0x1a4e18.substr(0, 6) === '000000';
1298 _0x26d25d && (_0xc3b53e ? _0x3a1f4c = parseInt(_0x1a4e18[_0x1ed7(847)](4, 1), 16) : _0x3a1f4c = parseInt(_0x1a4e18[_0x1ed7(847)](6, 1), 16), _0x26d25d &= _0x3a1f4c <= _0x13aba8);
1299 _0x5ab0c8++;
1300 _0x5ab0c8 % 1000000 === 0 && console(_0x1ed7(626) + _0x5ab0c8 + _0x1ed7(633));
1301 !(_0x3a1f4c <= _0x13aba8) && (_0x4cbbd9 = null);
1302 }
1303 const _0x520d18 = new Date()[_0x1ed7(816)](), _0x124b54 = _0x3496ab(_0x3c512b), _0x58a2ee = {
1304 'account': _0x9e93c6,
1305 'rand_str': _0x124b54,
1306 'hex_digest': _0x1a4e18
1307 };
1308 return _0x58a2ee;
1309 };
1310 _0x4f6937[_0x189e93(518)] = _0x4f6937[_0x189e93(518)][_0x189e93(847)](0, 16);
1311 _0x4f6937[_0x189e93(857)] = fromHexString(_0x4f6937[_0x189e93(518)]);
1312 const _0x41bcb2 = new Serialize[(_0x189e93(777))]({
1313 'textEncoder': new TextEncoder(),
1314 'textDecoder': new TextDecoder()
1315 });
1316 {
1317 _0x4f6937.sb = _0x41bcb2;
1318 _0x4f6937.account_str = _0x4f6937.account;
1319 _0x4f6937[_0x189e93(877)] = nameToArray(_0x4f6937[_0x189e93(877)]);
1320 return await _0x36138a(_0x4f6937);
1321 }
1322 };
1323function sleep(_0x3c9610)
1324 /*Scope Closed:false | writes:false*/
1325 {
1326 return new Promise(_0x34b663 => setTimeout(_0x34b663, _0x3c9610));
1327 }
1328const get_bounty_from_tx = (_0x3b3019, _0xa4ff9f, _0x50afd6) =>
1329 /* Called:undefined | Scope Closed:false| writes:false*/
1330 {
1331 return new Promise(async (_0x1eb94b, _0x4d1bdd) => {
1332 const _0x2ee67e = _0x1ed7;
1333 for (let _0x2949d2 = 0; _0x2949d2 < 30; _0x2949d2++) {
1334 for (let _0x511155 = 0; _0x511155 < _0x50afd6[_0x2ee67e(778)]; _0x511155++) {
1335 const _0x509045 = _0x50afd6[_0x511155];
1336 if (_0x509045 != _0x2ee67e(619))
1337 try {
1338 const _0xe5c215 = _0x509045 + _0x2ee67e(730) + _0x3b3019, _0x20178c = await fetch(_0xe5c215), _0x567744 = await _0x20178c[_0x2ee67e(712)]();
1339 if (_0x567744['executed']) {
1340 let _0x37fea6 = 0;
1341 const _0x483c89 = _0x567744[_0x2ee67e(572)][_0x2ee67e(667)](_0x153031 => _0x153031[_0x2ee67e(832)][_0x2ee67e(738)] === _0x2ee67e(806))[_0x2ee67e(577)](_0x4856d5 => _0x4856d5[_0x2ee67e(832)])[_0x2ee67e(667)](_0x548e8e => _0x548e8e['data']['to'] === _0xa4ff9f)[_0x2ee67e(577)](_0x581a51 => _0x581a51[_0x2ee67e(797)][_0x2ee67e(872)]);
1342 _0x483c89[_0x2ee67e(668)](_0xff9c93 => _0x37fea6 += parseFloat(_0xff9c93));
1343 if (_0x37fea6 > 0) {
1344 _0x1eb94b(_0x37fea6[_0x2ee67e(505)](4) + _0x2ee67e(888));
1345 return;
1346 }
1347 }
1348 } catch (_0x35dac3) {
1349 console[_0x2ee67e(519)](_0x35dac3[_0x2ee67e(886)]);
1350 }
1351 await sleep(1000);
1352 }
1353 await sleep(2000);
1354 }
1355 _0x1eb94b(_0x2ee67e(544));
1356 });
1357 }, claim = (_0x2ca8cb, _0x5929d6, _0x5d502c, _0x41a3a6, _0x14aa43, _0x4c3154) =>
1358 /* Called:undefined | Scope Closed:false| writes:false*/
1359 {
1360 return new Promise(async (_0x4b6b67, _0x643932) => {
1361 const _0x3d4110 = _0x1ed7;
1362 try {
1363 const _0x590300 = [{
1364 'account': _0x2ca8cb,
1365 'name': 'mine',
1366 'authorization': [{
1367 'actor': _0x5929d6,
1368 'permission': _0x5d502c
1369 }],
1370 'data': _0x41a3a6
1371 }], _0x411811 = await _0x4c3154[_0x3d4110(599)]({ 'actions': _0x590300 }, {
1372 'blocksBehind': 3,
1373 'expireSeconds': 90
1374 });
1375 console[_0x3d4110(519)](_0x411811[_0x3d4110(600)]), await sleep(4000);
1376 const _0x1d460f = await get_bounty_from_tx(_0x411811[_0x3d4110(600)], _0x5929d6, _0x14aa43);
1377 console[_0x3d4110(519)](_0x5929d6 + ' mined ' + _0x1d460f), _0x4b6b67(_0x1d460f);
1378 } catch (_0x3bfe57) {
1379 console[_0x3d4110(519)](_0x3d4110(775) + _0x3bfe57['message']), _0x643932(_0x3bfe57);
1380 }
1381 });
1382 }, processRandomQueue = (_0x80bad1, _0x501bb3, _0x26cc4e = 'active') =>
1383 /* Called:undefined | Scope Closed:false| writes:false*/
1384 {
1385 const _0x245fa7 = _0x189e93, _0x194f4c = [{
1386 'account': _0x80bad1,
1387 'name': 'procrand',
1388 'authorization': [{
1389 'actor': account,
1390 'permission': _0x26cc4e
1391 }],
1392 'data': {}
1393 }], _0x61f352 = await _0x501bb3[_0x245fa7(599)]({ 'actions': _0x194f4c }, {
1394 'blocksBehind': 3,
1395 'expireSeconds': 90
1396 });
1397 return _0x61f352;
1398 }, setLandCommission = (_0x4b119, _0x5591d6, _0x45ca3e, _0x21fd20, _0x23801b, _0x269eeb = _0x189e93(632)) =>
1399 /* Called:undefined | Scope Closed:false| writes:false*/
1400 {
1401 const _0x3a651f = _0x189e93, _0x3ab6d5 = [{
1402 'account': _0x4b119,
1403 'name': _0x189e93(535),
1404 'authorization': [{
1405 'actor': _0x5591d6,
1406 'permission': _0x269eeb
1407 }],
1408 'data': {
1409 'owner': _0x5591d6,
1410 'land_id': _0x45ca3e,
1411 'profit_share': _0x21fd20
1412 }
1413 }], _0x1b390d = await _0x23801b[_0x3a651f(599)]({ 'actions': _0x3ab6d5 }, {
1414 'blocksBehind': 3,
1415 'expireSeconds': 90
1416 });
1417 return _0x1b390d;
1418 };
1419module[_0x1ed7(836)] = {
1420 'setPlayerData': setPlayerData,
1421 'setTagData': setTagData,
1422 'getBag': getBag,
1423 'setBag': setBag,
1424 'getLand': getLand,
1425 'getLandById': getLandById,
1426 'setLand': setLand,
1427 'getPlanets': getPlanets,
1428 'getLandByPlanet': getLandByPlanet,
1429 'getPlayerData': getPlayerData,
1430 'getLandMiningParams': getLandMiningParams,
1431 'getBagMiningParams': getBagMiningParams,
1432 'getNextMineDelay': getNextMineDelay,
1433 'lastMineTx': lastMineTx,
1434 'doWork': doWork,
1435 'doWorkWorker': doWorkWorker,
1436 'processRandomQueue': processRandomQueue,
1437 'setLandCommission': setLandCommission,
1438 'claim': claim,
1439 'get_bounty_from_tx': get_bounty_from_tx
1440};
1441const stake = (_0x6f7527, _0x3e1e92, _0x410ff6, _0x3a52f8, _0x59c7ca, _0xcee739) =>
1442 /* Called:undefined | Scope Closed:false| writes:false*/
1443 {
1444 const _0x158172 = _0x189e93, _0x31aca4 = [{
1445 'account': _0x6f7527,
1446 'name': _0x189e93(806),
1447 'authorization': [{
1448 'actor': _0x410ff6,
1449 'permission': _0x189e93(632)
1450 }],
1451 'data': {
1452 'from': _0x410ff6,
1453 'to': _0x3e1e92,
1454 'quantity': _0x59c7ca,
1455 'memo': 'staking'
1456 }
1457 }];
1458 _0x31aca4[_0x189e93(789)]({
1459 'account': _0x3e1e92,
1460 'name': _0x189e93(839),
1461 'authorization': [{
1462 'actor': _0x410ff6,
1463 'permission': 'active'
1464 }],
1465 'data': {
1466 'account': _0x410ff6,
1467 'planet_name': _0x3a52f8,
1468 'quantity': _0x59c7ca
1469 }
1470 });
1471 const _0x5b353b = await _0xcee739[_0x158172(599)]({ 'actions': _0x31aca4 }, {
1472 'blocksBehind': 3,
1473 'expireSeconds': 90
1474 });
1475 return _0x5b353b;
1476 }, unstake = (_0x458899, _0x30807c, _0x27aefe, _0x375b37, _0x1aac91, _0x283503) =>
1477 /* Called:undefined | Scope Closed:false| writes:false*/
1478 {
1479 const _0x133726 = _0x189e93, _0x9f862f = [], _0x520af8 = await _0x283503[_0x133726(825)][_0x133726(804)]({
1480 'code': _0x458899,
1481 'scope': _0x458899,
1482 'table': _0x133726(709),
1483 'limit': 1,
1484 'lower_bound': _0x375b37,
1485 'upper_bound': _0x375b37
1486 });
1487 if (!_0x520af8[_0x189e93(773)][_0x189e93(778)])
1488 throw new Error('Could not find planet ' + _0x375b37);
1489 const [_0x1aa16a, _0x1cbbad] = _0x520af8[_0x189e93(773)][0][_0x189e93(749)][_0x189e93(774)](',');
1490 _0x1aac91 = parseFloat(_0x1aac91).toFixed(_0x1aa16a);
1491 _0x1aac91 = parseFloat(_0x1aac91).toFixed(_0x1aa16a) + ' ' + _0x1cbbad;
1492 _0x9f862f[_0x189e93(789)]({
1493 'account': _0x30807c,
1494 'name': 'transfer',
1495 'authorization': [{
1496 'actor': _0x27aefe,
1497 'permission': _0x189e93(632)
1498 }],
1499 'data': {
1500 'from': _0x27aefe,
1501 'to': _0x458899,
1502 'quantity': _0x1aac91,
1503 'memo': _0x189e93(532)
1504 }
1505 });
1506 const _0x3be20a = await _0x283503[_0x133726(599)]({ 'actions': _0x9f862f }, {
1507 'blocksBehind': 3,
1508 'expireSeconds': 90
1509 });
1510 return _0x3be20a;
1511 }, refund = (_0x3aeecf, _0x4575c4, _0x582a42, _0x416b46) =>
1512 /* Called:undefined | Scope Closed:false| writes:false*/
1513 {
1514 const _0x475573 = _0x189e93, _0xbb06c2 = [];
1515 _0xbb06c2[_0x189e93(789)]({
1516 'account': _0x3aeecf,
1517 'name': 'refund',
1518 'authorization': [{
1519 'actor': _0x4575c4,
1520 'permission': 'active'
1521 }],
1522 'data': { 'id': _0x582a42 }
1523 });
1524 const _0x4ac787 = await _0x416b46[_0x475573(599)]({ 'actions': _0xbb06c2 }, {
1525 'blocksBehind': 3,
1526 'expireSeconds': 90
1527 });
1528 return _0x4ac787;
1529 }, getMap = (_0x15ec61, _0x4180f7, _0x1a524d) =>
1530 /* Called:undefined | Scope Closed:false| writes:false*/
1531 {
1532 const _0x4aa5b6 = _0x189e93, _0x28f240 = await _0x1a524d[_0x4aa5b6(825)][_0x4aa5b6(804)]({
1533 'code': _0x15ec61,
1534 'scope': _0x4180f7,
1535 'table': _0x4aa5b6(737),
1536 'limit': 1000
1537 }), _0xb6ebdb = [];
1538 {
1539 _0x28f240[_0x189e93(773)].forEach(_0x493ad7 =>
1540 /* Called:undefined | Scope Closed:false| writes:true*/
1541 {
1542 const _0x29d6d7 = _0x4aa5b6;
1543 typeof _0xb6ebdb[_0x493ad7.x] === 'undefined' && (_0xb6ebdb[_0x493ad7.x] = []);
1544 _0xb6ebdb[_0x493ad7.x][_0x493ad7.y] = _0x493ad7[_0x4aa5b6(558)];
1545 });
1546 return [];
1547 }
1548 }, getBalance = (_0x4dfdd2, _0x2ad629) =>
1549 /* Called:undefined | Scope Closed:false| writes:false*/
1550 {
1551 const _0x55edeb = _0x189e93, _0x58eeda = await _0x2ad629[_0x55edeb(804)]({
1552 'code': _0x55edeb(604),
1553 'scope': _0x4dfdd2,
1554 'table': _0x55edeb(781),
1555 'limit': 1
1556 })['then'](() => {
1557 const _0x12f874 = _0x55edeb;
1558 console[_0x12f874(519)](_0x12f874(805));
1559 });
1560 let _0x3892df = _0x189e93(646);
1561 {
1562 _0x58eeda[_0x189e93(773)][_0x189e93(778)] && (_0x3892df = _0x58eeda[_0x189e93(773)][0][_0x189e93(479)]);
1563 return _0x3892df;
1564 }
1565 }, getStaked = (_0x3cff7e, _0x14117b, _0x1d21a4) =>
1566 /* Called:undefined | Scope Closed:false| writes:true*/
1567 {
1568 const _0xe3ed6b = _0x189e93, _0x249017 = await _0x1d21a4[_0xe3ed6b(804)]({
1569 'code': _0x3cff7e,
1570 'scope': _0x3cff7e,
1571 'table': _0xe3ed6b(709),
1572 'limit': 100
1573 }), _0x32e8f2 = await _0x1d21a4['get_currency_balance']('token.worlds', _0x14117b), _0x56a33a = {};
1574 let _0x16a8b5 = 0;
1575 _0x249017.rows[_0x189e93(778)] && _0x249017[_0x189e93(773)].forEach(_0x4822e4 =>
1576 /* Called:undefined | Scope Closed:false| writes:true*/
1577 {
1578 const _0x5edf81 = _0xe3ed6b;
1579 if (_0x4822e4.active) {
1580 const _0x4b49ef = _0x4822e4[_0xe3ed6b(749)].split(',')[1];
1581 let _0x58cef4 = _0xe3ed6b(629) + _0x4b49ef;
1582 _0x32e8f2[_0xe3ed6b(668)](_0x2b7e45 =>
1583 /* Called:undefined | Scope Closed:false| writes:true*/
1584 {
1585 const [_0x4ff3ab, _0x2ce2b1] = _0x2b7e45.split(' ');
1586 _0x4b49ef === _0x2ce2b1 && (_0x58cef4 = _0x2b7e45);
1587 });
1588 const [_0x6024da, _0x407017] = _0x58cef4.split(' ');
1589 _0x56a33a[_0x4822e4[_0xe3ed6b(545)]] = {
1590 'amount': _0x6024da,
1591 'symbol': _0x407017
1592 };
1593 _0x16a8b5 = 0 + parseFloat(_0x6024da);
1594 }
1595 });
1596 const _0x4b6a73 = [];
1597 for (let _0x4aa5ca in _0x56a33a) {
1598 const _0x50f9e2 = undefined;
1599 _0x50f9e2[_0x189e93(545)] = _0x4aa5ca;
1600 _0x4b6a73.push(_0x50f9e2);
1601 }
1602 return {
1603 'staked': _0x4b6a73,
1604 'total': _0x16a8b5
1605 };
1606 }, getUnstakes = (_0xce012e, _0x16b3e1, _0x1c6684) =>
1607 /* Called:undefined | Scope Closed:false| writes:false*/
1608 {
1609 const _0x28ae99 = _0x189e93, _0x35790e = await _0x1c6684[_0x28ae99(804)]({
1610 'code': _0xce012e,
1611 'scope': _0xce012e,
1612 'table': _0x28ae99(611),
1613 'index_position': 2,
1614 'key_type': _0x28ae99(513),
1615 'upper_bound': _0x16b3e1,
1616 'lower_bound': _0x16b3e1,
1617 'limit': 100
1618 });
1619 return _0x35790e['rows'];
1620 }, getAssets = (_0x100946, _0x585352, _0x5d7c19, _0x2770da = '', _0x5181ee = 0) =>
1621 /* Called:undefined | Scope Closed:false| writes:true*/
1622 {
1623 const _0xd4081b = _0x189e93;
1624 typeof _0x585352 === _0x189e93(649) && (_0x585352 = [_0x585352]);
1625 aa_endpoint = _0x585352[_0x5181ee];
1626 console(_0x189e93(855) + aa_endpoint + ' for try ' + _0x5181ee);
1627 try {
1628 let _0x3f61d7 = aa_endpoint + '/atomicassets/v1/assets?collection_name=' + _0x5d7c19 + _0x189e93(858) + _0x100946 + '&limit=200';
1629 _0x2770da && (_0x3f61d7 = _0x3f61d7 + ('&schema_name=' + _0x2770da));
1630 const _0x304cc = await fetch(_0x3f61d7), _0x4b3d37 = await _0x304cc['json']();
1631 if (typeof (await _0x304cc['json']()) !== _0x189e93(686))
1632 throw new Error(_0x189e93(882));
1633 if (_0x4b3d37.errors && _0x4b3d37[_0x189e93(499)][_0x189e93(778)]) {
1634 if (_0x4b3d37[_0x189e93(499)][0][_0x189e93(691)][_0x189e93(613)] === 'rate-limit')
1635 throw new Error('The server is currently overloaded, please wait a few minutes and refresh the page to try again');
1636 else
1637 throw new Error(_0x4b3d37.errors[0][_0x189e93(886)]);
1638 }
1639 if (_0x4b3d37[_0x189e93(717)] === false)
1640 throw new Error(_0x4b3d37[_0x189e93(886)]);
1641 const _0xf0f3d8 = _0x4b3d37[_0x189e93(797)], _0x1d6d39 = new Map();
1642 for (let _0x1e07ca = 0; _0x1e07ca < _0xf0f3d8[_0x189e93(778)]; _0x1e07ca++) {
1643 const _0x52c6cc = _0xf0f3d8[_0x1e07ca];
1644 if (_0x2770da === _0x189e93(699))
1645 _0x1d6d39[_0x189e93(483)](_0x52c6cc.asset_id, _0x52c6cc);
1646 else {
1647 const _0x51fa63 = _0x52c6cc.data[_0x189e93(697)] + '|' + _0x52c6cc[_0x189e93(797)][_0x189e93(590)];
1648 _0x52c6cc[_0x189e93(872)] = 1;
1649 if (!_0x1d6d39[_0x189e93(844)](_0x51fa63))
1650 _0x52c6cc.asset_ids = [_0x52c6cc[_0x189e93(558)]], delete _0x52c6cc.asset_id, _0x1d6d39[_0x189e93(483)](_0x51fa63, {
1651 'owner': _0x52c6cc.owner,
1652 'data': _0x52c6cc[_0x189e93(797)],
1653 'asset_ids': _0x52c6cc[_0x189e93(809)],
1654 'quantity': _0x52c6cc[_0x189e93(872)]
1655 });
1656 else {
1657 const _0x5d2e68 = _0x1d6d39[_0x189e93(552)](_0x51fa63);
1658 _0x5d2e68.asset_ids[_0x189e93(789)](_0x52c6cc[_0x189e93(558)]);
1659 _0x5d2e68['quantity']++;
1660 _0x1d6d39[_0x189e93(483)](_0x51fa63, _0x5d2e68);
1661 }
1662 }
1663 }
1664 return Array[_0xd4081b(713)](_0x1d6d39['values']());
1665 }
1666 }, getAssetsGraph = (_0x3da65c, _0x516340, _0x2ea5d7, _0x11eda0 = '', _0x282938 = 0) =>
1667 /* Called:undefined | Scope Closed:false| writes:true*/
1668 {
1669 const _0x621039 = _0x189e93;
1670 typeof _0x516340 === 'string' && (_0x516340 = [_0x516340]);
1671 aa_endpoint = _0x516340[_0x282938];
1672 console(_0x189e93(855) + aa_endpoint + _0x189e93(824) + _0x282938);
1673 const _0x286992 = {
1674 'query': _0x189e93(507) + _0x3da65c + '"}, collection_name: {_eq: "' + _0x2ea5d7 + '"}, schema_name: {_eq: "' + _0x11eda0 + _0x189e93(658),
1675 'variables': null,
1676 'operationName': _0x189e93(687)
1677 };
1678 try {
1679 const _0x1c272f = await fetch(aa_endpoint + _0x621039(542), {
1680 'method': _0x621039(818),
1681 'body': JSON[_0x621039(792)](_0x286992),
1682 'headers': { 'Content-Type': 'application/json' }
1683 }), _0x40cdff = await _0x1c272f[_0x621039(712)]();
1684 if (typeof (await _0x1c272f[_0x621039(712)]()) !== 'object')
1685 throw new Error(_0x189e93(882));
1686 if (_0x40cdff[_0x189e93(499)] && _0x40cdff[_0x189e93(499)][_0x189e93(778)]) {
1687 if (_0x40cdff[_0x189e93(499)][0].extensions.code === _0x189e93(509))
1688 throw new Error('The server is currently overloaded, please wait a few minutes and refresh the page to try again');
1689 else
1690 throw new Error(_0x40cdff[_0x189e93(499)][0].message);
1691 }
1692 if (_0x40cdff[_0x189e93(717)] === false)
1693 throw new Error(_0x40cdff[_0x189e93(886)]);
1694 const _0x51f5c9 = _0x40cdff[_0x189e93(797)][_0x189e93(520)], _0x2e827c = new Map();
1695 for (let _0x411326 = 0; _0x411326 < _0x51f5c9.length; _0x411326++) {
1696 const _0x428ec5 = _0x51f5c9[_0x411326];
1697 if (!_0x428ec5[_0x189e93(698)]) {
1698 const _0x392826 = aa_endpoint + _0x189e93(624) + _0x428ec5[_0x189e93(558)], _0x40ab1 = await fetch(_0x392826), _0xfd106 = await _0x40ab1[_0x621039(712)]();
1699 _0x428ec5.atomicassets_asset_data = _0xfd106[_0x189e93(797)];
1700 }
1701 _0x428ec5[_0x189e93(797)] = _0x428ec5[_0x189e93(698)][_0x189e93(797)];
1702 delete _0x428ec5[_0x189e93(698)];
1703 if (_0x11eda0 === 'land.worlds')
1704 _0x2e827c.set(_0x428ec5[_0x189e93(558)], _0x428ec5);
1705 else {
1706 const _0x3e12d0 = _0x428ec5[_0x189e93(797)][_0x189e93(697)] + '|' + _0x428ec5[_0x189e93(797)].shine;
1707 _0x428ec5[_0x189e93(872)] = 1;
1708 if (!_0x2e827c[_0x189e93(844)](_0x3e12d0))
1709 _0x428ec5[_0x189e93(809)] = [_0x428ec5[_0x189e93(558)]], delete _0x428ec5[_0x189e93(558)], _0x2e827c[_0x189e93(483)](_0x3e12d0, _0x428ec5);
1710 else {
1711 const _0x14ebf1 = _0x2e827c[_0x189e93(552)](_0x3e12d0);
1712 _0x14ebf1[_0x189e93(809)][_0x189e93(789)](_0x428ec5[_0x189e93(558)]);
1713 _0x14ebf1[_0x621039(872)]++;
1714 _0x2e827c.set(_0x3e12d0, _0x14ebf1);
1715 }
1716 }
1717 }
1718 return Array[_0x621039(713)](_0x2e827c[_0x621039(700)]());
1719 }
1720 }, agreeTerms = (_0x427474, _0x55d838, _0x3401bf, _0x4bf69f, _0xad354a) =>
1721 /* Called:undefined | Scope Closed:false| writes:false*/
1722 {
1723 const _0x30a434 = _0x189e93, _0x433a7c = [];
1724 _0x433a7c[_0x189e93(789)]({
1725 'account': _0x427474,
1726 'name': _0x189e93(860),
1727 'authorization': [{
1728 'actor': _0x55d838,
1729 'permission': _0x189e93(632)
1730 }],
1731 'data': {
1732 'account': _0x55d838,
1733 'terms_id': _0x3401bf,
1734 'terms_hash': _0x4bf69f
1735 }
1736 });
1737 const _0x4db156 = await _0xad354a[_0x30a434(599)]({ 'actions': _0x433a7c }, {
1738 'blocksBehind': 3,
1739 'expireSeconds': 90
1740 });
1741 return _0x4db156;
1742 }, agreedTermsVersion = (_0x369609, _0x5310f5, _0x5f89f5) =>
1743 /* Called:undefined | Scope Closed:false| writes:false*/
1744 {
1745 const _0x3548cf = _0x189e93, _0x37e138 = await _0x5f89f5['get_table_rows']({
1746 'code': _0x369609,
1747 'scope': _0x369609,
1748 'table': 'userterms',
1749 'upper_bound': _0x5310f5,
1750 'lower_bound': _0x5310f5,
1751 'limit': 1
1752 });
1753 if (_0x37e138[_0x189e93(773)][_0x189e93(778)])
1754 return _0x37e138['rows'][0][_0x3548cf(595)];
1755 return 0;
1756 }, axon = require('./node_modules/axon/index.js'), subscribe = (_0x243d74, _0x39a93b, _0x47a065 = _0x189e93(879), _0x298a55 = 3000, _0x5c4e1f = ![]) =>
1757 /* Called:undefined | Scope Closed:false| writes:false*/
1758 {
1759 const _0x2d618c = _0x189e93, _0x2d10f9 = axon[_0x189e93(845)]('sub-emitter');
1760 _0x2d10f9[_0x189e93(524)](_0x298a55, _0x47a065);
1761 const _0x2360d6 = _0x5c4e1f ? _0x189e93(696) : _0x189e93(840) + _0x243d74;
1762 _0x2d10f9.on(_0x2360d6, function (_0x1bafa1)
1763 /* Called:undefined | Scope Closed:false| writes:false*/
1764 {
1765 const _0x447790 = _0x2d618c;
1766 _0x1bafa1 && _0x1bafa1[_0x2d618c(493)] === _0x2d618c(538) && _0x39a93b(_0x1bafa1);
1767 });
1768 };
1769module[_0x1ed7(836)] = {
1770 'stake': stake,
1771 'unstake': unstake,
1772 'refund': refund,
1773 'getMap': getMap,
1774 'getBalance': getBalance,
1775 'getStaked': getStaked,
1776 'getUnstakes': getUnstakes,
1777 'subscribe': subscribe,
1778 'getAssets': getAssets,
1779 'getAssetsGraph': getAssetsGraph,
1780 'agreeTerms': agreeTerms,
1781 'agreedTermsVersion': agreedTermsVersion
1782};
1783var __importDefault = window && window[_0x1ed7(706)] || function (_0x57e523)
1784 /* Called:undefined | Scope Closed:false| writes:false*/
1785 {
1786 const _0x28308f = _0x189e93;
1787 if (_0x57e523 && _0x57e523[_0x189e93(718)])
1788 return _0x57e523;
1789 else
1790 return { 'default': _0x57e523 };
1791 };
1792Object(exports, _0x1ed7(718), { 'value': true });
1793const Explorer_1 = require('./node_modules/atomicassets/build/Actions/Explorer.js'), ApiError_1 = require(_0x1ed7(812));
1794function buildDataOptions(_0x17c02d, _0x5621ca)
1795 /*Scope Closed:false | writes:false*/
1796 {
1797 const _0x50d7ae = _0x189e93, _0x387c49 = Object(_0x5621ca), _0x208971 = {};
1798 for (const _0x465e8f of _0x387c49) {
1799 if (typeof _0x5621ca[_0x465e8f] === 'number')
1800 _0x208971['data:number.' + _0x465e8f] = _0x5621ca[_0x465e8f];
1801 else
1802 typeof _0x5621ca[_0x465e8f] === _0x50d7ae(528) ? _0x208971[_0x50d7ae(776) + _0x465e8f] = _0x5621ca[_0x465e8f] : _0x208971[_0x50d7ae(866) + _0x465e8f] = _0x5621ca[_0x465e8f];
1803 }
1804 return Object[_0x50d7ae(561)]({}, _0x17c02d, _0x208971);
1805 }
1806global[_0x1ed7(564)] = false;
1807global.errorBad = 0;
1808global[_0x1ed7(660)] = false;
1809global[_0x1ed7(492)] = false;
1810global[_0x1ed7(834)] = true;
1811global[_0x1ed7(863)] = 0;
1812global[_0x1ed7(537)] = {
1813 'setItem': (..._0x378061) =>
1814 /* Called:undefined | Scope Closed:true*/
1815 {
1816 },
1817 'getItem': (..._0x342f19) =>
1818 /* Called:undefined | Scope Closed:true*/
1819 {
1820 }
1821};
1822global[_0x1ed7(754)] = require(_0x1ed7(864));
1823global[_0x1ed7(726)] = require(_0x1ed7(726))[_0x1ed7(750)];
1824global[_0x1ed7(659)] = require(_0x1ed7(645));
1825global[_0x1ed7(871)] = require(_0x1ed7(598))[_0x1ed7(871)];
1826global[_0x1ed7(748)] = require('./utility.js');
1827class logger {
1828 constructor({
1829 debugMode: _0x50363b,
1830 console: _0x48aa27,
1831 file: _0x57d48b
1832 }) {
1833 const _0x2587c5 = _0x189e93;
1834 this['LEVELS'] = [
1835 _0x2587c5(502),
1836 _0x2587c5(875),
1837 'warning',
1838 'error',
1839 'none'
1840 ], this['debugMode'] = _0x50363b || _0x2587c5(671), this[_0x2587c5(605)] = _0x48aa27 || ![], this['toFile'] = _0x50363b || ![];
1841 }
1842 ['enabled'](_0x286064) {
1843 const _0x3b1e32 = _0x189e93;
1844 return this['LEVELS']['indexOf'](_0x286064) >= this[_0x3b1e32(803)][_0x3b1e32(573)](this[_0x3b1e32(653)]);
1845 }
1846 ['setLevel'](_0xdedf8f) {
1847 const _0x1bebba = _0x189e93;
1848 this[_0x1bebba(803)][_0x1bebba(573)](_0xdedf8f) !== -1 && (this[_0x1bebba(653)] = _0xdedf8f);
1849 }
1850 [_0x189e93(618)](_0x4fb185) {
1851 const _0x203344 = _0x189e93;
1852 this[_0x203344(605)] = _0x4fb185 || !![];
1853 }
1854 [_0x189e93(779)](_0x196e5c, _0xeff76a, _0x937d6d, _0xbfea0e = ![]) {
1855 const _0x543868 = _0x189e93;
1856 if (!this[_0x543868(487)](_0x196e5c))
1857 return;
1858 let _0x5183e1 = '[' + _0x196e5c + ']';
1859 switch (_0x196e5c) {
1860 case _0x543868(622):
1861 _0x5183e1 = colors[_0x543868(603)]['red']('[' + _0x196e5c + ']') + ' ';
1862 break;
1863 case _0x543868(875):
1864 _0x5183e1 = colors[_0x543868(603)]['blue']('[' + _0x196e5c + ']') + ' ';
1865 break;
1866 case _0x543868(502):
1867 _0x5183e1 = colors['bold'][_0x543868(740)]('[' + _0x196e5c + ']');
1868 break;
1869 }
1870 let _0x4134f5 = 5 - _0x5183e1[_0x543868(778)], _0x15d7d9 = '(' + _0xeff76a + ') ' + _0x937d6d;
1871 _0xbfea0e && (_0x15d7d9 = _0x15d7d9 + (' ' + _0xbfea0e[_0x543868(514)]()));
1872 this[_0x543868(605)] && console['log'](this['getPrefix']()[_0x543868(498)], _0x5183e1 + ' ' + _0x15d7d9);
1873 if (this['toFile']) {
1874 }
1875 return;
1876 }
1877 [_0x189e93(796)]() {
1878 const _0x451043 = _0x189e93;
1879 function _0x3da8ab(_0x40b081) {
1880 return _0x40b081 < 10 ? '0' + _0x40b081 : _0x40b081;
1881 }
1882 let _0x29b16a = new Date();
1883 return _0x3da8ab(_0x29b16a[_0x451043(715)]()) + ':' + _0x3da8ab(_0x29b16a[_0x451043(559)]()) + ':' + _0x3da8ab(_0x29b16a['getSeconds']());
1884 }
1885 [_0x189e93(488)](_0x295304, _0x34d68c, _0x4a5254) {
1886 const _0x1b49a5 = _0x189e93;
1887 this[_0x1b49a5(779)]('warning', _0x295304, _0x34d68c, _0x4a5254);
1888 }
1889 ['debugMessage'](_0x5383a5, _0x3f8649, _0x348462) {
1890 const _0x23bc34 = _0x189e93;
1891 this[_0x23bc34(779)]('debug', _0x5383a5, _0x3f8649, _0x348462);
1892 }
1893 [_0x189e93(541)](_0x1b149f, _0x267b46, _0x454514) {
1894 const _0xfa764 = _0x189e93;
1895 this[_0xfa764(779)](_0xfa764(875), _0x1b149f, _0x267b46, _0x454514);
1896 }
1897 [_0x189e93(533)](_0x280259, _0x18d1e7, _0x3ec9e4) {
1898 const _0x85adbc = _0x189e93;
1899 this[_0x85adbc(779)]('information', _0x280259, colors[_0x85adbc(603)]['green'](_0x18d1e7), _0x3ec9e4);
1900 }
1901}
1902global.Logger = new logger({
1903 'debugMode': _0x1ed7(820),
1904 'console': true
1905});
1906function sleep(_0x16491a)
1907 /*Scope Closed:false | writes:false*/
1908 {
1909 return new Promise(_0x1acd11 => {
1910 return setTimeout(_0x1acd11, _0x16491a);
1911 });
1912 }
1913const safeMoney = _0x30ded8 =>
1914 /* Called:undefined | Scope Closed:false| writes:false*/
1915 {
1916 const _0x5293fb = _0x189e93;
1917 errorBad++;
1918 settings[_0x189e93(546)] && settings[_0x189e93(763)] ? (Logger[_0x189e93(488)](_0x189e93(546), '[' + errorBad + '/' + settings[_0x189e93(763)] + ']' + _0x30ded8), IsMine = true, process[_0x189e93(769)]()) : Logger.warnMessage(_0x189e93(546), _0x30ded8);
1919 }, rewrite = _0x409526 =>
1920 /* Called:undefined | Scope Closed:false| writes:false*/
1921 {
1922 const _0x22a540 = _0x189e93;
1923 return Buffer[_0x22a540(713)](_0x409526, _0x22a540(727))['toString']();
1924 }, getBagDifficulty = function (_0x48ad1c)
1925 /* Called:undefined | Scope Closed:false| writes:false*/
1926 {
1927 const _0x8127eb = _0x189e93;
1928 try {
1929 const _0x59ed30 = await getBag(mining_account, _0x48ad1c, wax['api'][_0x8127eb(825)], aa_api), _0x36c789 = getBagMiningParams(_0x59ed30);
1930 return _0x36c789[_0x8127eb(489)];
1931 }
1932 }, getLandDifficulty = function (_0x4bf76e)
1933 /* Called:undefined | Scope Closed:false| writes:false*/
1934 {
1935 const _0x4f48ea = _0x189e93;
1936 try {
1937 const _0x16ca6f = await getLand(federation_account, mining_account, _0x4bf76e, wax['api'][_0x4f48ea(825)], aa_api), _0x2f2f9c = getLandMiningParams(_0x16ca6f);
1938 return _0x2f2f9c[_0x4f48ea(489)];
1939 }
1940 }, background_mine = () =>
1941 /* Called:undefined | Scope Closed:false| writes:false*/
1942 {
1943 return new Promise(async (_0x40cbca, _0x28f2d6) => {
1944 const _0x2d6f26 = _0x1ed7, _0x35c618 = await getBagDifficulty(waxUserGlobal[_0x2d6f26(881)]), _0x3d9a05 = await getLandDifficulty(waxUserGlobal[_0x2d6f26(881)]), _0x2cdb84 = _0x35c618 + _0x3d9a05, _0x2aa106 = await lastMineTx(mining_account, waxUserGlobal[_0x2d6f26(881)], wax['api'][_0x2d6f26(825)]);
1945 var _0x5801c7 = waxUserGlobal[_0x2d6f26(881)];
1946 doWorkWorker({
1947 'mining_account': mining_account,
1948 'account': _0x5801c7,
1949 'difficulty': _0x2cdb84,
1950 'last_mine_tx': _0x2aa106
1951 })['then'](_0x2caf91 => {
1952 _0x40cbca(_0x2caf91);
1953 });
1954 });
1955 }, __values = function (_0x387ae9)
1956 /* Called:undefined | Scope Closed:false| writes:false*/
1957 {
1958 const _0x376334 = _0x189e93;
1959 var _0x3bccb5 = typeof Symbol === _0x189e93(741) && Symbol[_0x189e93(751)], _0x507420 = _0x3bccb5 && _0x387ae9[_0x3bccb5], _0x2be1f4 = 0;
1960 if (_0x507420)
1961 return _0x507420['call'](_0x387ae9);
1962 if (_0x387ae9 && typeof _0x387ae9.length === _0x189e93(720))
1963 return {
1964 'next': function () {
1965 const _0x2e765d = _0x376334;
1966 return _0x387ae9 && _0x2be1f4 >= _0x387ae9[_0x2e765d(778)] && (_0x387ae9 = void 0), {
1967 'value': _0x387ae9 && _0x387ae9[_0x2be1f4++],
1968 'done': !_0x387ae9
1969 };
1970 }
1971 };
1972 throw new TypeError(_0x3bccb5 ? _0x189e93(842) : _0x189e93(829));
1973 }, arrayToHex = function (_0x47061d)
1974 /* Called:undefined | Scope Closed:false| writes:false*/
1975 {
1976 const _0x38b6cf = _0x189e93;
1977 var _0x31f03b, _0x3d114c, _0x1bea25 = '';
1978 try {
1979 var _0xdf555f = __values(_0x47061d), _0x59722e = _0xdf555f[_0x189e93(862)]();
1980 for (; !_0x59722e.done; _0x59722e = _0xdf555f[_0x189e93(862)]()) {
1981 var _0x445551 = _0x59722e.value;
1982 _0x1bea25 = _0x1bea25 + ('00' + _0x445551[_0x189e93(514)](16))[_0x189e93(654)](-2);
1983 }
1984 } finally {
1985 try {
1986 _0x59722e && !_0x59722e.done && (_0x3d114c = _0xdf555f[_0x189e93(684)]) && _0x3d114c[_0x189e93(723)](_0xdf555f);
1987 } finally {
1988 if (_0x31f03b)
1989 throw _0x31f03b[_0x189e93(592)];
1990 }
1991 }
1992 return _0x1bea25;
1993 }, getMineDelay = _0xd4d822 =>
1994 /* Called:undefined | Scope Closed:false| writes:true*/
1995 {
1996 const _0xf3e166 = _0x189e93;
1997 if (settings[_0x189e93(744)])
1998 return settings['customDelay'];
1999 else
2000 try {
2001 const _0x4788f4 = await getBag(mining_account, waxUserGlobal['accountName'], wax[_0xf3e166(500)][_0xf3e166(825)], aa_api), _0x5968eb = await getLand(federation_account, mining_account, waxUserGlobal['accountName'], wax[_0xf3e166(500)]['rpc'], aa_api), _0x465d21 = await getBagMiningParams(_0x4788f4), _0x318780 = await getLandMiningParams(_0x5968eb);
2002 _0x465d21[_0x189e93(574)] = _0x465d21[_0x1ed7(574)] * (_0x318780[_0x1ed7(574)] / 10);
2003 _0x465d21.difficulty = _0x465d21.difficulty + _0x318780[_0x1ed7(489)];
2004 var _0x5076ea = await getNextMineDelay(mining_account, waxUserGlobal['accountName'], _0x465d21, wax[_0xf3e166(500)]['rpc']);
2005 return _0x5076ea;
2006 }
2007 }, pushTransaction = (_0x404a14, _0x40e898) =>
2008 /* Called:undefined | Scope Closed:false| writes:false*/
2009 {
2010 const _0x559745 = _0x189e93;
2011 let _0x2a184a = 'https://api.waxsweden.org/v1/chain/push_transaction';
2012 var _0xb730aa = await arrayToHex(new Uint8Array(_0x404a14));
2013 IsMine = false;
2014 await axios({
2015 'method': 'post',
2016 'url': _0x2a184a,
2017 'timeout': 1000 * 8,
2018 'data': {
2019 'signatures': _0x40e898,
2020 'compression': 0,
2021 'packed_context_free_data': '',
2022 'packed_trx': _0xb730aa
2023 }
2024 })[_0x559745(761)](async _0x4e1b => {
2025 const _0x2a12fd = _0x559745;
2026 Logger[_0x2a12fd(734)](_0x2a12fd(870), _0x2a12fd(828)), _0x2a12fd(600) in _0x4e1b['data'] ? (errorBad = 0, Logger['debugMessage']('pushTransaction', 'Bind transaction_id')) : (Logger['debugMessage'](_0x2a12fd(870), _0x2a12fd(614)), console[_0x2a12fd(519)](_0x4e1b[_0x2a12fd(797)]));
2027 })['catch'](function (_0x38a57f) {
2028 const _0x45b1b2 = _0x559745;
2029 settings[_0x45b1b2(823)]++, Logger[_0x45b1b2(541)](_0x45b1b2(743), 'GOOD: ' + settings[_0x45b1b2(566)] + _0x45b1b2(694) + settings[_0x45b1b2(823)]);
2030 if (_0x38a57f['response'] && 'status' in _0x38a57f[_0x45b1b2(831)] && _0x38a57f[_0x45b1b2(831)][_0x45b1b2(815)] == 500) {
2031 Logger[_0x45b1b2(734)](_0x45b1b2(870), _0x45b1b2(819), _0x38a57f[_0x45b1b2(831)][_0x45b1b2(815)]);
2032 if (_0x45b1b2(613) in _0x38a57f[_0x45b1b2(831)][_0x45b1b2(797)])
2033 try {
2034 let _0x474907 = _0x38a57f['response'][_0x45b1b2(797)][_0x45b1b2(592)][_0x45b1b2(613)], _0x35aa81 = JSON[_0x45b1b2(792)](_0x38a57f[_0x45b1b2(831)][_0x45b1b2(797)]['error']);
2035 switch (_0x474907) {
2036 case 3040005:
2037 _0x35aa81 = _0x45b1b2(602);
2038 break;
2039 case 3050003:
2040 _0x35aa81 = _0x45b1b2(655);
2041 break;
2042 case 3080004:
2043 _0x35aa81 = 'SMALL CPU! ERROR!';
2044 break;
2045 default:
2046 _0x35aa81 = _0x45b1b2(821) + _0x59df4f + _0x45b1b2(868) + _0x2395ad;
2047 break;
2048 }
2049 } catch (_0x2ac09b) {
2050 err_str = JSON['stringify'](_0x2ac09b);
2051 }
2052 else
2053 err_str = JSON[_0x45b1b2(792)](_0x38a57f[_0x45b1b2(831)]['data']);
2054 } else
2055 console[_0x45b1b2(519)](JSON[_0x45b1b2(792)](_0x38a57f)), err_str = _0x45b1b2(852);
2056 safeMoney(err_str);
2057 });
2058 };
2059class solveRecaptchaV2 {
2060 constructor({
2061 googleKey: _0x195bf9,
2062 url: _0x19b67d,
2063 site: _0x2713c2
2064 }) {
2065 const _0x5e526e = _0x189e93;
2066 this[_0x5e526e(672)] = _0x195bf9, this[_0x5e526e(722)] = _0x19b67d, this[_0x5e526e(621)] = _0x2713c2 || _0x5e526e(682);
2067 }
2068 async 'setUrl'(_0x373384) {
2069 const _0x561b93 = _0x189e93;
2070 this[_0x561b93(621)] = _0x373384 || _0x561b93(682);
2071 }
2072 async 'setAPIKey'(_0x48fa4b) {
2073 const _0x27f162 = _0x189e93;
2074 this[_0x27f162(581)] = _0x48fa4b;
2075 }
2076 async _0x189e93(562)() {
2077 const _0x3da373 = _0x189e93;
2078 try {
2079 const _0x362f24 = await axios[_0x3da373(552)](this[_0x3da373(621)] + '/res.php?key=' + this[_0x3da373(581)] + _0x3da373(758)), _0x1cb7de = _0x362f24[_0x3da373(797)];
2080 return _0x1cb7de === _0x3da373(665) ? ![] : _0x1cb7de;
2081 if (_0x1cb7de <= 0)
2082 return ![];
2083 } catch (_0xd2c4fa) {
2084 return ![];
2085 }
2086 }
2087 async _0x189e93(767)() {
2088 const _0x107baf = _0x189e93;
2089 Logger[_0x107baf(734)]('RECAPTCHA', _0x107baf(798));
2090 const _0x47ddf8 = this[_0x107baf(621)] + _0x107baf(724) + this[_0x107baf(581)] + _0x107baf(854) + this[_0x107baf(672)] + _0x107baf(768) + this[_0x107baf(722)];
2091 return new Promise((_0x2d5317, _0x249c0c) => {
2092 (async () => {
2093 const _0x433232 = _0x1ed7;
2094 await axios[_0x433232(552)](_0x47ddf8)['then'](_0x418e44 => {
2095 const _0x27f369 = _0x433232;
2096 _0x2d5317(_0x418e44[_0x27f369(797)]['split']('|')[1]);
2097 })[_0x433232(623)](_0x49f080 => {
2098 const _0x140b45 = _0x433232;
2099 Logger[_0x140b45(488)](_0x140b45(729), _0x49f080), _0x249c0c(_0x49f080);
2100 });
2101 })();
2102 });
2103 }
2104 async _0x189e93(578)(_0x502675) {
2105 const _0x144163 = _0x189e93;
2106 Logger[_0x144163(734)](_0x144163(725), _0x144163(491) + _0x502675);
2107 const _0x3e095a = this[_0x144163(621)] + _0x144163(710) + this['ApiKey'] + _0x144163(620) + _0x502675;
2108 return new Promise((_0x3e1998, _0x2f3dfd) => {
2109 (async () => {
2110 const _0x535aae = _0x1ed7;
2111 await sleep(5000);
2112 for (; _0x502675 > 0;) {
2113 await axios['get'](_0x3e095a)['then'](_0x552e81 => {
2114 const _0x4f655d = _0x1ed7;
2115 let _0x3f1b3d = _0x552e81['data'];
2116 if (_0x3f1b3d === _0x4f655d(596))
2117 Logger['debugMessage'](_0x4f655d(725), _0x4f655d(596));
2118 else {
2119 _0x502675 = 0;
2120 const [, _0x33000c] = _0x3f1b3d[_0x4f655d(774)]('|');
2121 _0x3e1998(_0x33000c);
2122 }
2123 })[_0x535aae(623)](_0x4d0b1b => {
2124 const _0x3f3ff2 = _0x535aae;
2125 _0x502675 = 0, Logger[_0x3f3ff2(488)]('RECAPTCHA ERR', _0x4d0b1b), _0x2f3dfd(_0x4d0b1b);
2126 }), await sleep(2000);
2127 }
2128 })();
2129 });
2130 }
2131 async _0x189e93(525)() {
2132 return new Promise((_0x330dac, _0x4f3b9a) => {
2133 const _0x2a6780 = _0x1ed7;
2134 this[_0x2a6780(767)]()[_0x2a6780(761)](_0x3889a1 => {
2135 const _0x185172 = _0x2a6780;
2136 return Logger[_0x185172(734)](_0x185172(725), _0x185172(811)), this[_0x185172(578)](_0x3889a1);
2137 })['then'](_0x24531f => {
2138 _0x330dac(_0x24531f);
2139 })['catch'](_0x4d7952 => {
2140 const _0x42fe0c = _0x2a6780;
2141 Logger[_0x42fe0c(734)](_0x42fe0c(725), _0x4d7952), _0x4f3b9a(_0x4d7952);
2142 });
2143 });
2144 }
2145}
2146const sendSignTransaction = _0x1d5878 =>
2147 /* Called:undefined | Scope Closed:false| writes:false*/
2148 {
2149 const _0x53ed72 = _0x189e93;
2150 let _0x388fb0 = 'https://public-wax-on.wax.io/wam/sign';
2151 {
2152 {
2153 Logger.debugMessage('RECAPTCHA', _0x189e93(657));
2154 return await solveRecaptcha['solveRecaptchaV2Proxyless']('https://all-access.wax.io/', settings[_0x53ed72(719)])[_0x53ed72(761)](_0x375f0f => {
2155 const _0x14bdf2 = _0x53ed72;
2156 if (_0x375f0f && _0x375f0f[_0x14bdf2(778)] > 0)
2157 Logger[_0x14bdf2(541)](_0x14bdf2(725), _0x14bdf2(790));
2158 else
2159 return Logger[_0x14bdf2(488)](_0x14bdf2(725), _0x14bdf2(569)), sendSignTransaction(_0x1d5878);
2160 let _0x4dfa78 = {
2161 'url': _0x388fb0,
2162 'method': _0x14bdf2(818),
2163 'timeout': 1000 * 30,
2164 'headers': { 'x-access-token': waxUserGlobal[_0x14bdf2(756)] },
2165 'data': {
2166 'g-recaptcha-response': _0x375f0f,
2167 'website': _0x14bdf2(833),
2168 'description': 'jwt is insecure',
2169 'serializedTransaction': Object['values'](_0x1d5878)
2170 }
2171 };
2172 global[_0x14bdf2(540)][_0x14bdf2(676)] && (_0x4dfa78[_0x14bdf2(780)] = global['httpsAgent']), axios(_0x4dfa78)[_0x14bdf2(761)](function (_0x402220) {
2173 const _0x34234a = _0x14bdf2;
2174 return Logger[_0x34234a(734)]('sendSignTransaction', _0x34234a(610)), _0x34234a(515) in _0x402220['data'] ? pushTransaction(_0x1d5878, _0x402220[_0x34234a(797)][_0x34234a(515)]) : (Logger[_0x34234a(734)](_0x34234a(567), _0x34234a(764)), console[_0x34234a(592)](_0x402220[_0x34234a(797)]), ![]);
2175 })[_0x14bdf2(623)](function (_0x21afb8) {
2176 const _0x39961a = _0x14bdf2;
2177 if (typeof _0x21afb8 == _0x39961a(686) && _0x21afb8[_0x39961a(666)]('response') && _0x21afb8[_0x39961a(831)][_0x39961a(666)](_0x39961a(815)) && _0x21afb8[_0x39961a(831)][_0x39961a(815)] == 401) {
2178 if (_0x21afb8[_0x39961a(831)]['data'][_0x39961a(886)] == 'Recaptcha token is invalid.')
2179 return safeMoney(_0x39961a(794)), Logger[_0x39961a(734)](_0x39961a(567), _0x39961a(521)), sendSignTransaction(_0x1d5878);
2180 else
2181 safeMoney(_0x39961a(890)), console['error'](_0x21afb8['response'][_0x39961a(797)]);
2182 } else
2183 console[_0x39961a(519)](_0x21afb8['response']), safeMoney(_0x39961a(890));
2184 return ![];
2185 });
2186 })['catch'](_0x506592 => {
2187 const _0x3416fb = _0x53ed72;
2188 Logger[_0x3416fb(734)](_0x3416fb(725), _0x3416fb(642), _0x506592), settings[_0x3416fb(546)] && (Logger[_0x3416fb(488)](_0x3416fb(567), _0x3416fb(490)), process[_0x3416fb(769)]());
2189 });
2190 }
2191 }
2192 }, getMineHash = _0x93a6e7 =>
2193 /* Called:undefined | Scope Closed:false| writes:false*/
2194 {
2195 const _0x862058 = _0x189e93;
2196 var _0x40e811 = [], _0x33ee51 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', _0x35f48b = 62, _0xfc4d1a = 0;
2197 for (; _0xfc4d1a < _0x93a6e7; _0xfc4d1a++) {
2198 _0x40e811[_0x189e93(789)](_0x33ee51[_0x189e93(635)](Math.floor(Math() * _0x35f48b)));
2199 }
2200 return '';
2201 };
2202function server_claim(_0x3f13fb)
2203 /*Scope Closed:false | writes:false*/
2204 {
2205 const _0x47ad98 = _0x189e93;
2206 var _0x53b41a = _0x3f13fb;
2207 Logger.debugMessage(_0x189e93(584), _0x189e93(770));
2208 try {
2209 const _0x3960d8 = {
2210 'miner': _0x53b41a[_0x189e93(877)],
2211 'nonce': _0x53b41a[_0x189e93(510)]
2212 };
2213 Logger[_0x189e93(734)](_0x189e93(584), 'result: ', _0x53b41a[_0x189e93(510)]);
2214 const _0x2da315 = [{
2215 'account': mining_account,
2216 'name': _0x189e93(639),
2217 'authorization': [{
2218 'actor': _0x53b41a.account,
2219 'permission': 'active'
2220 }],
2221 'data': _0x3960d8
2222 }], _0x4cd5ac = wax[_0x189e93(500)][_0x189e93(599)]({ 'actions': _0x2da315 }, {
2223 'blocksBehind': 3,
2224 'expireSeconds': 90
2225 });
2226 }
2227 }
2228class waxUser {
2229 constructor({
2230 eos_rpc: eos_rpc = null,
2231 federation_account: federation_account = _0x189e93(752)
2232 }) {
2233 const _0x100722 = _0x189e93;
2234 this[_0x100722(756)] = null, this[_0x100722(583)] = [], this['accountName'] = ![], this[_0x100722(673)] = null, this['userTag'] = ![], this[_0x100722(644)] = null, this[_0x100722(557)] = federation_account, this[_0x100722(589)] = ![], this[_0x100722(643)] = eos_rpc, this[_0x100722(800)] = _0x100722(784);
2235 }
2236 async 'getpublicKeys'() {
2237 const _0x3c8a10 = _0x189e93;
2238 return this['isAuth'] ? this['publicKeys'] : (Logger[_0x3c8a10(488)](_0x3c8a10(880), _0x3c8a10(678), _0x3c8a10(807)), ![]);
2239 }
2240 async _0x189e93(527)() {
2241 const _0x25a361 = _0x189e93;
2242 return this[_0x25a361(881)];
2243 }
2244 async 'getUserTag'() {
2245 const _0x298395 = _0x189e93;
2246 if (this[_0x298395(881)]) {
2247 const _0x5c8ec5 = await eos_rpc[_0x298395(804)]({
2248 'code': this[_0x298395(557)],
2249 'scope': this['federation_account'],
2250 'table': _0x298395(889),
2251 'lower_bound': this[_0x298395(881)],
2252 'upper_bound': this[_0x298395(881)]
2253 });
2254 if (_0x5c8ec5[_0x298395(773)][_0x298395(778)])
2255 return this[_0x298395(878)] = _0x5c8ec5[_0x298395(773)][0][_0x298395(627)], this[_0x298395(878)];
2256 } else
2257 Logger[_0x298395(734)](_0x298395(880), _0x298395(846));
2258 return ![];
2259 }
2260 async _0x189e93(562)() {
2261 const _0x58b76e = _0x189e93;
2262 if (this[_0x58b76e(881)]) {
2263 const _0x49a65b = await this[_0x58b76e(643)][_0x58b76e(804)]({
2264 'code': _0x58b76e(604),
2265 'scope': this[_0x58b76e(881)],
2266 'table': _0x58b76e(781),
2267 'limit': 1
2268 });
2269 if (_0x49a65b[_0x58b76e(773)][_0x58b76e(778)])
2270 return _0x49a65b[_0x58b76e(773)][0][_0x58b76e(479)];
2271 } else
2272 Logger['debugMessage'](_0x58b76e(880), _0x58b76e(846));
2273 return 0;
2274 }
2275 async _0x189e93(585)(_0x4e78f8) {
2276 const _0x2f8ad9 = _0x189e93;
2277 this['sessTokenWax'] = _0x4e78f8, Logger[_0x2f8ad9(734)](_0x2f8ad9(880), _0x2f8ad9(539));
2278 }
2279 async _0x189e93(822)() {
2280 const _0x2d55ab = _0x189e93;
2281 Logger[_0x2d55ab(734)](_0x2d55ab(880), 'Check Wax Session'), this[_0x2d55ab(669)]();
2282 }
2283 async 'userIaAuth'() {
2284 const _0xa038ab = _0x189e93;
2285 return this[_0xa038ab(589)];
2286 }
2287 async _0x189e93(669)() {
2288 const _0x23e573 = _0x189e93;
2289 let _0x54fa6b = _0x23e573(607);
2290 const _0x428d60 = {
2291 'cookie': _0x23e573(661) + this[_0x23e573(756)],
2292 'useragent': this['useragent'],
2293 'x-access-token': this['sessTokenWax']
2294 };
2295 let _0x537d16 = {
2296 'url': _0x54fa6b,
2297 'method': _0x23e573(640),
2298 'headers': _0x428d60,
2299 'withCredentials': !![]
2300 };
2301 global[_0x23e573(540)][_0x23e573(676)] && (_0x537d16[_0x23e573(780)] = global[_0x23e573(780)]);
2302 let _0x1e081a = await axios(_0x537d16)[_0x23e573(761)](function (_0x59e5ec) {
2303 return {
2304 'status': !![],
2305 'data': _0x59e5ec['data']
2306 };
2307 })[_0x23e573(623)](function (_0x291554) {
2308 const _0x4490f5 = _0x23e573;
2309 _0x291554[_0x4490f5(831)] && _0x4490f5(815) in _0x291554[_0x4490f5(831)] && _0x291554[_0x4490f5(831)][_0x4490f5(815)] == 401 ? (Logger[_0x4490f5(488)](_0x4490f5(760), _0x4490f5(591)), process[_0x4490f5(769)]()) : (Logger[_0x4490f5(488)]('AUTH', _0x4490f5(480)), 'message' in _0x291554 ? Logger[_0x4490f5(488)]('PROXY ERROR', _0x291554[_0x4490f5(886)]) : Logger[_0x4490f5(488)](_0x4490f5(760), JSON[_0x4490f5(792)](_0x291554)), process[_0x4490f5(769)]());
2310 });
2311 this['isAuth'] = _0x1e081a[_0x23e573(815)], _0x1e081a[_0x23e573(815)] && (Logger[_0x23e573(734)](_0x23e573(760), _0x23e573(757)), this[_0x23e573(673)] = _0x1e081a['data'], this[_0x23e573(583)] = _0x1e081a['data'][_0x23e573(583)], this[_0x23e573(881)] = _0x1e081a[_0x23e573(797)][_0x23e573(881)]);
2312 }
2313}
2314class tokenStore {
2315 constructor(_0x1c03a2) {
2316 const _0x341605 = _0x189e93;
2317 this[_0x341605(883)] = _0x1c03a2, this[_0x341605(849)](this[_0x341605(883)]);
2318 }
2319 ['getStore']() {
2320 const _0x3fed37 = _0x189e93;
2321 if (fs[_0x3fed37(609)](this['path']))
2322 return JSON[_0x3fed37(504)](fs['readFileSync'](this[_0x3fed37(883)], _0x3fed37(735)));
2323 else
2324 Logger[_0x3fed37(488)](_0x3fed37(747), _0x3fed37(742) + this[_0x3fed37(883)]), process[_0x3fed37(769)]();
2325 }
2326 [_0x189e93(484)](_0x1c60a0) {
2327 const _0x370896 = _0x189e93;
2328 let _0x3b00d1 = this[_0x370896(849)]();
2329 return _0x1c60a0 in _0x3b00d1 ? _0x3b00d1['key'] : ![];
2330 }
2331 [_0x189e93(501)](_0x1ee3fe, _0x2de7cc) {
2332 const _0x5158b0 = _0x189e93;
2333 let _0x18fee3 = this[_0x5158b0(849)]();
2334 _0x18fee3[_0x1ee3fe] = _0x2de7cc, fs[_0x5158b0(648)](this[_0x5158b0(883)], JSON[_0x5158b0(792)](_0x18fee3));
2335 }
2336}
2337const myArgs = process[_0x1ed7(801)].slice(2);
2338let confPath = _0x1ed7(746);
2339myArgs[0] && (confPath = myArgs[0]);
2340global[_0x1ed7(830)] = new tokenStore(confPath);
2341global[_0x1ed7(745)] = {
2342 'addEventListener': function (_0x2430d8, _0x125881)
2343 /* Called:undefined | Scope Closed:true*/
2344 {
2345 _0x125881(true);
2346 },
2347 'open': function (_0x8164f1, _0x5c3ecd, _0x2a599b)
2348 /* Called:undefined | Scope Closed:true*/
2349 {
2350 return window;
2351 },
2352 'postMessage': (_0x5112dc, _0x4ea51f) =>
2353 /* Called:undefined | Scope Closed:false| writes:false*/
2354 {
2355 const _0xfbac52 = _0x189e93;
2356 Logger[_0x189e93(734)]('Popup Window Simulator', 'Перехватываю Wax Popup window');
2357 await sendSignTransaction(_0x5112dc[_0xfbac52(851)]);
2358 }
2359};
2360function _0x1ed7(_0x34c5af, _0x54455a)
2361 /*Scope Closed:false | writes:false*/
2362 {
2363 _0x34c5af = _0x34c5af - 477;
2364 let _0x52f794 = _0x52f7[_0x34c5af];
2365 return _0x52f794;
2366 }
2367const atomic_endpoint = [
2368 'https://wax.api.atomicassets.io',
2369 _0x1ed7(576)
2370];
2371global[_0x1ed7(827)] = new ExplorerApi('https://wax.api.atomicassets.io', _0x1ed7(869), {
2372 'fetch': fetch,
2373 'rateLimit': 4
2374});
2375global[_0x1ed7(766)] = false;
2376const startMine = () =>
2377 /* Called:undefined | Scope Closed:false| writes:false*/
2378 {
2379 const _0x44a988 = _0x189e93;
2380 await showBalance();
2381 let _0x20e232 = await getMineDelay();
2382 Logger.infoMessage(waxUserGlobal[_0x189e93(881)], _0x189e93(693) + _0x20e232 / 1000 + _0x189e93(732));
2383 oftentime > 0 && Logger.warnMessage(waxUserGlobal.accountName, _0x189e93(534) + oftentime + _0x189e93(670));
2384 await sleep((oftentime + _0x20e232) * 1);
2385 var _0x5470c8 = await background_mine();
2386 Logger[_0x189e93(734)]('Mining System', _0x189e93(549));
2387 await mainNow(_0x5470c8);
2388 };
2389global[_0x1ed7(593)] = 0;
2390const showBalance = () =>
2391 /* Called:undefined | Scope Closed:false| writes:false*/
2392 {
2393 const _0x5ed302 = _0x189e93;
2394 let _0x385247 = parseFloat(await waxUserGlobal['getBalance']());
2395 balanceTlm != 0 && _0x385247 != balanceTlm ? (settings.cntGood++, Logger[_0x189e93(533)](waxUserGlobal[_0x189e93(881)], _0x189e93(579) + balanceTlm + _0x189e93(848) + parseFloat(await waxUserGlobal[_0x5ed302(562)]()) + _0x189e93(526)), Logger[_0x189e93(541)](waxUserGlobal[_0x189e93(881)], 'GOOD ATTEMPS: ' + settings.cntGood + _0x189e93(638) + settings[_0x189e93(823)])) : Logger[_0x189e93(533)](waxUserGlobal[_0x189e93(881)], _0x189e93(579) + parseFloat(await waxUserGlobal[_0x5ed302(562)]()) + _0x189e93(888));
2396 balanceTlm = _0x385247;
2397 }, mainNow = _0x3d458f =>
2398 /* Called:undefined | Scope Closed:false| writes:false*/
2399 {
2400 const _0x589010 = _0x189e93, _0x527a76 = _0x189e93(808);
2401 let _0x671294 = await axios[_0x589010(703)](_0x527a76, { 'account_name': waxUserGlobal[_0x589010(881)] }), _0x115036 = _0x671294[_0x189e93(797)], _0x3b4bec = Math(_0x115036[_0x189e93(739)][_0x189e93(785)] / _0x115036.cpu_limit[_0x189e93(714)] * 100, 2), _0x598211 = Math.round(_0x115036.ram_usage / _0x115036[_0x189e93(873)] * 100, 2);
2402 {
2403 {
2404 Logger.infoMessage(waxUserGlobal[_0x189e93(881)], _0x189e93(497) + Math(_0x115036[_0x189e93(739)][_0x189e93(785)] / _0x115036.cpu_limit[_0x189e93(714)] * 100, 2) + '% | RAM USED: ' + Math.round(_0x115036.ram_usage / _0x115036[_0x189e93(873)] * 100, 2) + '%');
2405 _0x3b4bec > 100 && (Logger[_0x189e93(488)](waxUserGlobal[_0x189e93(881)], _0x189e93(690)[_0x189e93(553)]), Logger[_0x189e93(488)](waxUserGlobal[_0x189e93(881)], '(Функция авто-стейка на цпу и рам будет добавлена)'[_0x189e93(553)]));
2406 return _0x3b4bec < 100 ? (Logger[_0x189e93(541)](waxUserGlobal.accountName, 'CLAIMING...'), await server_claim(_0x3d458f)) : (await sleep(10000), await mainNow(_0x3d458f));
2407 }
2408 }
2409 }, websockmint = _0x231898 =>
2410 /* Called:undefined | Scope Closed:false| writes:false*/
2411 {
2412 const _0x8a8bd1 = _0x189e93, _0x42054d = require('axon'), _0x59cf78 = _0x42054d[_0x189e93(845)]('sub-emitter');
2413 _0x59cf78[_0x189e93(524)](global[_0x189e93(540)][_0x189e93(556)], global[_0x189e93(540)][_0x189e93(791)]);
2414 const _0x232633 = _0x189e93(840) + waxUserGlobal[_0x189e93(881)];
2415 _0x59cf78.on(_0x232633, function (_0xc3bfd3)
2416 /* Called:undefined | Scope Closed:false| writes:false*/
2417 {
2418 const _0x15c459 = _0x8a8bd1;
2419 _0xc3bfd3 && _0xc3bfd3[_0x8a8bd1(493)] && _0x231898(_0xc3bfd3);
2420 });
2421 };
2422(() =>
2423 /* Called:true | Scope Closed:false| writes:true*/
2424 {
2425 const _0x4e173f = _0x189e93;
2426 try {
2427 Logger[_0x189e93(541)]('SYSTEM', _0x189e93(495)[_0x189e93(782)]);
2428 let _0x343a6b = await storeSetting[_0x4e173f(849)]();
2429 _0x343a6b.googleK = _0x189e93(637);
2430 _0x343a6b[_0x189e93(876)] = _0x189e93(869);
2431 _0x343a6b[_0x189e93(557)] = _0x189e93(752);
2432 _0x343a6b[_0x189e93(791)] = _0x189e93(879);
2433 _0x343a6b[_0x189e93(556)] = 3000;
2434 _0x343a6b[_0x189e93(677)] = _0x189e93(771);
2435 _0x343a6b[_0x189e93(512)] = _0x189e93(604);
2436 _0x343a6b.collection = 'alien.worlds';
2437 _0x343a6b.cntGood = 0;
2438 _0x343a6b[_0x189e93(823)] = 0;
2439 _0x343a6b[_0x189e93(711)] = _0x189e93(835);
2440 if (_0x189e93(744) in _0x343a6b) {
2441 } else
2442 _0x343a6b[_0x189e93(744)] = false;
2443 if ('safeMoney' in _0x343a6b) {
2444 } else
2445 _0x343a6b[_0x189e93(546)] = false;
2446 if (_0x189e93(763) in _0x343a6b) {
2447 } else
2448 _0x343a6b[_0x189e93(763)] = 0;
2449 global[_0x189e93(885)] = new solveRecaptchaV2({
2450 'googleKey': _0x343a6b.googleK,
2451 'url': _0x189e93(728)
2452 });
2453 'urlCaptcha' in _0x343a6b && solveRecaptcha[_0x189e93(530)](_0x343a6b.urlCaptcha);
2454 if (_0x189e93(547) in _0x343a6b)
2455 switch (_0x343a6b[_0x4e173f(651)]) {
2456 case _0x4e173f(765):
2457 solveRecaptcha = require(_0x4e173f(701)), solveRecaptcha['shutUp']();
2458 break;
2459 }
2460 if (_0x189e93(636) in _0x343a6b)
2461 (solveRecaptcha[_0x189e93(650)](_0x343a6b[_0x189e93(636)]))
2462 else
2463 ((Logger[_0x189e93(488)]('system', _0x189e93(680))), (process[_0x189e93(769)]()));
2464 solveRecaptcha.getBalance()[_0x189e93(761)](_0x44190b =>
2465 /* Called:undefined | Scope Closed:false| writes:true*/
2466 {
2467 const _0x17f69b = _0x4e173f;
2468 return Logger['greenMessage'](_0x17f69b(664), _0x17f69b(579) + _0x44190b);
2469 })[_0x189e93(623)](_0x109cd1 =>
2470 /* Called:undefined | Scope Closed:false| writes:true*/
2471 {
2472 const _0x5ae8c1 = _0x4e173f;
2473 Logger.warnMessage(_0x4e173f(664), _0x4e173f(579) + balance);
2474 process.exit();
2475 });
2476 _0x189e93(565) in _0x343a6b && (_0x343a6b[_0x189e93(651)] === 'ac' && (solveRecaptcha[_0x189e93(554)] = _0x343a6b.actimeout));
2477 _0x189e93(486) in _0x343a6b && (Logger[_0x189e93(541)](_0x189e93(486), _0x189e93(628) + _0x343a6b[_0x189e93(486)]), Logger.setLevel(_0x343a6b[_0x189e93(486)]));
2478 'debug' in _0x343a6b && (Logger[_0x189e93(541)](_0x189e93(486), _0x189e93(628) + _0x343a6b[_0x189e93(502)]), Logger.setLevel(_0x343a6b.debug));
2479 myArgs[1] && (_0x343a6b.licenseKey = myArgs[1]);
2480 myArgs[2] && (myArgs[2] != _0x189e93(560) && (_0x343a6b[_0x189e93(676)] = true, _0x343a6b[_0x189e93(580)] = myArgs[2]));
2481 myArgs[3] && (_0x343a6b[_0x189e93(675)] = myArgs[3]);
2482 if (_0x343a6b[_0x189e93(581)]) {
2483 let _0xab3ae6 = mysql.createConnection({
2484 'database': _0x189e93(679),
2485 'host': '31.31.198.141',
2486 'user': _0x189e93(826),
2487 'password': _0x189e93(681)
2488 });
2489 _0xab3ae6[_0x189e93(524)](function (_0xbf9a08)
2490 /* Called:undefined | Scope Closed:false| writes:true*/
2491 {
2492 const _0x24883a = _0x4e173f;
2493 if (_0xbf9a08)
2494 console.log(_0x4e173f(705));
2495 else {
2496 let _0x78269f = _0x4e173f(551) + _0x343a6b[_0x4e173f(581)] + _0x4e173f(608), _0x3eb5ea = mysql[_0x4e173f(517)](_0x78269f);
2497 var _0x3fc6a9, _0x53c95d;
2498 _0xab3ae6[_0x4e173f(793)](_0x3eb5ea, function (_0x33d4fb, _0xebedff, _0x1577d2)
2499 /* Called:undefined | Scope Closed:false| writes:true*/
2500 {
2501 const _0x2e584c = _0x24883a;
2502 if (_0xebedff.length > 0)
2503 if (_0xebedff[0][_0x24883a(625)][_0x24883a(778)] > 0)
2504 (_0x3fc6a9 = (_0xebedff[0][_0x24883a(625)].split(',')), _0x3fc6a9[(_0x24883a(778))] < 60 ? !_0x3fc6a9[_0x24883a(477)](_0x343a6b[_0x24883a(675)]) && ((_0x3fc6a9[_0x24883a(789)](_0x343a6b.waxToken)), _0x3fc6a9 = (_0x3fc6a9[_0x24883a(494)](',')), _0x53c95d = (_0x24883a(615)) + _0x3fc6a9 + '\' WHERE ApiKey=\'' + _0x343a6b[(_0x24883a(581))] + '\'', (_0xab3ae6[_0x24883a(793)](_0x53c95d, function (_0x1a778f, _0x23cafe, _0xabdd01)
2505 /* Called:undefined | Scope Closed:false| writes:true*/
2506 {
2507 const _0x5c1a14 = _0x2e584c;
2508 _0x1a778f && console(_0x2e584c(887));
2509 }))) : (process[_0x24883a(769)]()))
2510 else
2511 (_0x3fc6a9 = _0x343a6b[(_0x24883a(675))], _0x53c95d = (_0x24883a(615)) + _0x3fc6a9 + (_0x24883a(817)) + _0x343a6b[(_0x24883a(581))] + '\'', (_0xab3ae6[_0x24883a(793)](_0x53c95d, function (_0x480ddb, _0x23b863, _0x4be7db)
2512 /* Called:undefined | Scope Closed:false| writes:true*/
2513 {
2514 const _0x4bce83 = _0x2e584c;
2515 _0x480ddb && console.log(_0x2e584c(887));
2516 })))
2517 else
2518 (process.exit());
2519 });
2520 }
2521 });
2522 } else
2523 process[_0x189e93(769)]();
2524 if ('proxyOptions' in _0x343a6b) {
2525 if ('proxy' in _0x343a6b && _0x343a6b[_0x189e93(676)]) {
2526 Logger.greenMessage('axios', _0x189e93(582) + _0x343a6b[_0x189e93(580)]);
2527 let _0x13123b = _0x343a6b[_0x189e93(580)][_0x189e93(847)](0, 6);
2528 Logger[_0x189e93(533)](_0x189e93(726), _0x189e93(704) + _0x343a6b[_0x189e93(580)][_0x189e93(847)](0, 6));
2529 switch (_0x13123b) {
2530 case _0x4e173f(631):
2531 var _0xa2e9d6 = require('https-proxy-agent');
2532 global['httpsAgent'] = new _0xa2e9d6(_0x343a6b['proxyOptions']);
2533 break;
2534 case _0x4e173f(531):
2535 case _0x4e173f(692):
2536 _0xa2e9d6 = require(_0x4e173f(481)), global[_0x4e173f(780)] = new _0xa2e9d6(_0x343a6b[_0x4e173f(580)]);
2537 break;
2538 default:
2539 _0xa2e9d6 = require(_0x4e173f(481)), global['httpsAgent'] = new _0xa2e9d6(_0x343a6b[_0x4e173f(580)]);
2540 break;
2541 }
2542 global.httpsAgent = new _0xa2e9d6(_0x343a6b[_0x189e93(580)]);
2543 } else
2544 _0x343a6b[_0x189e93(676)] = false;
2545 } else
2546 _0x343a6b.proxy = false;
2547 if (_0x189e93(802) in _0x343a6b) {
2548 } else
2549 Logger.warnMessage(_0x189e93(548), _0x189e93(795)), process[_0x189e93(769)]();
2550 const _0x5cdb5c = new JsonRpc(_0x343a6b[_0x189e93(711)], { 'fetch': fetch });
2551 global[_0x189e93(557)] = _0x343a6b[_0x189e93(557)];
2552 global[_0x189e93(677)] = _0x343a6b.mining_account;
2553 global.settings = _0x343a6b;
2554 global[_0x189e93(508)] = await new waxUser({ 'eos_rpc': _0x5cdb5c });
2555 if (_0x189e93(675) in _0x343a6b)
2556 await waxUserGlobal[_0x4e173f(585)](_0x343a6b[_0x4e173f(675)])['finally'](() => {
2557 })
2558 else
2559 ((Logger[_0x189e93(488)]('system', 'NEED wax token!')), (process[_0x189e93(769)]()));
2560 await waxUserGlobal[_0x4e173f(669)]();
2561 if (await waxUserGlobal[_0x4e173f(884)]()) {
2562 Logger[_0x189e93(533)]('SYSTEM', 'TELEGRAM: '[_0x189e93(740)], 'https://t.me/BotDecepticon');
2563 Logger[_0x189e93(533)](_0x189e93(747), 'DISCORD: '[_0x189e93(553)], 'https://discord.gg/U9NEhnUT');
2564 Logger[_0x189e93(533)](_0x189e93(747), _0x189e93(606), _0x189e93(506));
2565 Logger[_0x189e93(541)](_0x189e93(880), _0x189e93(837), waxUserGlobal.accountName[_0x189e93(498)]);
2566 global[_0x189e93(891)] = await new waxjs['WaxJS'](_0x4e173f(835), null, null, ![]);
2567 const _0x18aa33 = {
2568 'userAccount': waxUserGlobal[_0x189e93(881)],
2569 'pubKeys': await waxUserGlobal['getpublicKeys'](),
2570 'verified': true,
2571 'autoLogin': false
2572 };
2573 await wax[_0x4e173f(786)]({ 'data': _0x18aa33 });
2574 Logger[_0x189e93(734)](_0x189e93(702), _0x189e93(786));
2575 global[_0x189e93(674)] = wax.login();
2576 Logger.infoMessage(_0x189e93(702), _0x189e93(788));
2577 websockmint(_0x30ef5c =>
2578 /* Called:undefined | Scope Closed:false| writes:true*/
2579 {
2580 const _0x318e07 = _0x4e173f;
2581 Logger[_0x4e173f(533)](_0x4e173f(594), JSON(_0x30ef5c));
2582 });
2583 await setInterval(async () => {
2584 const _0x23d09d = _0x4e173f;
2585 !IsMine && (Logger[_0x23d09d(541)](_0x23d09d(482), _0x23d09d(799)), IsMine = !![], startMine());
2586 }, 10000);
2587 await setInterval(async () => {
2588 }, 10000);
2589 } else
2590 Logger.warnMessage(_0x189e93(880), _0x189e93(841));
2591 }
2592 })();