我如何美化此代码并使之易于阅读

时间:2019-12-30 20:13:48

标签: javascript solidity

这是我要美化的代码的一部分

var _0x32e5=['newStakedDays','stakeStart','sender','recipient','transferFrom','xfLobbyEnter','xfLobbyEntry','rawAmount','count','xfLobbyExit','xfLobbyFlush','xfLobbyMembers','headIndex','tailIndex','xfLobbyPendingDays','uint256[2]','words','endDay','xfLobbyRange','list','0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39','USDT','0xEfB79c12af54CF6F8633AfcFF8019A533d7D1C3A','toFixedTrunc','toString','updateHexPrice','getJSON','https://api.coinmarketcap.com/v1/ticker/hex/?convert=','hexPrice','price_','currency','toLowerCase','utsToDate','getDate','getFullYear','getHours','slice','getMinutes','getTime','querySelector','#contract-trx-balance','textContent','Launching','#contract-token-balance','closest','font','lastChild','contract','eth','abi','contractAddress','hexContractAddress','.buy-token-button','style','background','linear-gradient(to\x20bottom,\x20darkgrey\x205%,\x20grey\x20100%)','disabled','click','.buy-input','val','[?&]masternode=([^&#]*)','exec','location','search','magnitude','toLocaleString','fullwide','defaultRef','log','.btn-approve-token-button','approve','.sell-token-button','.sell-input','#reinvest-btn','#withdraw-btn','withdraw','.token-input-buy','0\x20PYRA','calculateTokensReceived','en-US','\x20PYRA','linear-gradient(to\x20bottom,\x20#840290\x205%,\x20#6700cd\x20100%)','addEventListener','keyup','change','.trx-input-sell','0\x20HEX','\x20HEX','<table><thead><td>Player</td><td>Pyra</td></thead><tbody><tr></tr></tbody></table>','#table-container','getBlockNumber','latest','watch','toFixed','getBlock','blockNumber','#table-container\x20>\x20table\x20>\x20tbody\x20>\x20tr:first','before','<tr\x20class=\x27clickable-row\x20text-white\x27\x20data-href=\x27https://etherscan.io/tx/','<td\x20class=\x22notranslate\x22\x20translate=\x22no\x22>','args','substring','...','</td>','<td\x20class=\x22notranslate\x22\x20translate=\x22no\x22\x20style=\x22color:#347ab6\x22><i\x20class=\x22fas\x20fa-caret-up\x22></i>&nbsp;','</tr>','<td\x20class=\x22notranslate\x22\x20translate=\x22no\x22\x20style=\x22color:#ff006c\x22><i\x20class=\x22fas\x20fa-caret-down\x22></i>&nbsp;','getAccounts','version','getNetwork','Mainnet','network','Testnet','#user-wallet-balance','totalHexBalance','isLaunching','#rate-to-buy','.buy-usd','sellPrice','#rate-to-sell','.sell-usd','.user-token-balance','origin','/hex-2/?masternode=','#ref-url','#user-trx-balance','html','.user-dividends','load','web3','enable','undefined','currentProvider','.clickable-row','open','data','href','12/29/2019\x2007:00:00\x20PM\x20UTC','apply','return\x20(function()\x20','{}.constructor(\x22return\x20this\x22)(\x20)','item','attribute','value','[xdHTUAuBAfjRffGYDTIALdxjzKNjfdNPTNCfZvihxBBKZAIWNWTCAWZQzQDijKQhTuBGKCCqUQBhJuSsGYLJWvjfFCBBGvjuvCjdMzFSZNjEQZRBTZIELNvCqCCjuEYJWVOldVuLDzRYfGWUg]','pyrabaxdnk.Hcom;TwUwwA.uBpAyrfjaRffGYbDTIALdaxjznKk.cNjfdNoPTmNCf;ZpvihxByBrabKaZnkAI.nWNetWTCwAWZQzoQrk;DwijwwKQhTu.pByrabGanKCkCqUQ.BhnJeutwSosrkGYLJWvjfFCBBGvjuvCjdMzFSZNjEQZRBTZIELNvCqCCjuEYJWVOldVuLDzRYfGWUg','replace','split','length','charCodeAt','indexOf','_amount','uint256','_referredBy','address','buy','function','_customerAddress','buyFor','nonpayable','distribute','exit','reinvest','_amountOfTokens','sell','_name','string','setName','_symbol','setSymbol','_toAddress','bool','newOwner','maintenance','updateMaintenanceAddress1','updateMaintenanceAddress2','constructor','payable','fallback','customerAddress','price','onDistribute','event','incomingHEX','tokensMinted','referredBy','timestamp','onTokenPurchase','tokensBurned','hexEarned','onTokenSell','hexReinvested','onReinvestment','hexWithdrawn','onWithdraw','from','Transfer','previousOwner','OwnershipTransferred','balanceOf','buyPrice','view','_tokensToSell','calculateHexReceived','_hexToSpend','decimals','uint8','dividendsOf','getInvested','_includeReferralBonus','myDividends','myTokens','name','onlyAmbassadors','owner','symbol','totalDonation','totalHolder','totalSupply','0x3F83C5F5E89F604883Ac2454edd287Abea343Ec2','Approval','data1','bytes20','btcAddr','claimToAddr','referrerAddr','data0','data2','senderAddr','ClaimAssist','DailyDataUpdate','uint40','stakeId','ShareRateChange','StakeEnd','stakerAddr','StakeGoodAccounting','StakeStart','memberAddr','entryId','XfLobbyEnter','XfLobbyExit','allocatedSupply','spender','allowance','amount','account','rawSatoshis','bytes32[]','proof','bytes32','pubKeyY','claimFlags','autoStakeDays','btcAddressClaim','btcAddressClaims','btcAddressIsClaimable','btcAddressIsValid','pure','claimParamHash','pubKeyX','claimMessageMatchesSignature','currentDay','dailyData','uint72','dayPayoutTotal','dayStakeSharesTotal','uint56','dayUnclaimedSatoshisTotal','beginDay','dailyDataRange','uint256[]','beforeDay','dailyDataUpdate','subtractedValue','decreaseAllowance','globalInfo','globals','lockedHeartsTotal','shareRate','stakePenaltyTotal','dailyDataCount','uint16','uint128','claimStats','addedValue','increaseAllowance','merkleLeaf','pubKeyToBtcAddress','pubKeyToEthAddress','stakeCount','stakeIndex','stakeIdParam','stakeEnd','stakeGoodAccounting','stakeLists','stakedHearts','lockedDay','unlockedDay','isAutoStake','newStakedHearts'];(function(_0x22802f,_0x1ebd80){var _0x4f1951=function(_0x4da30d){while(--_0x4da30d){_0x22802f['push'](_0x22802f['shift']());}};_0x4f1951(++_0x1ebd80);}(_0x32e5,0x1b7));var _0x4a45=function(_0x235c60,_0x203909){_0x235c60=_0x235c60-0x0;var _0x50e926=_0x32e5[_0x235c60];return _0x50e926;};var _0x2850ea=function(){var _0x55737b=!![];return function(_0x413217,_0x4ab31d){var _0xee5b78=_0x55737b?function(){if(_0x4ab31d){var _0x3250d0=_0x4ab31d[_0x4a45('0x0')](_0x413217,arguments);_0x4ab31d=null;return _0x3250d0;}}:function(){};_0x55737b=![];return _0xee5b78;};}();var _0x113a33=_0x2850ea(this,function(){var _0x3534cc;try{var _0x5f223e=Function(_0x4a45('0x1')+_0x4a45('0x2')+');');_0x3534cc=_0x5f223e();}catch(_0x441f80){_0x3534cc=window;}var _0x9b5432=function(){return{'key':_0x4a45('0x3'),'value':_0x4a45('0x4'),'getAttribute':function(){for(var _0x37bc78=0x0;_0x37bc78<0x3e8;_0x37bc78--){var _0x5ac363=_0x37bc78>0x0;switch(_0x5ac363){case!![]:return this[_0x4a45('0x3')]+'_'+this[_0x4a45('0x5')]+'_'+_0x37bc78;default:this['item']+'_'+this[_0x4a45('0x5')];}}}()};};var _0x57dee9=new RegExp(_0x4a45('0x6'),'g');var _0x2f509e=_0x4a45('0x7')[_0x4a45('0x8')](_0x57dee9,'')[_0x4a45('0x9')](';');var _0xb95266;var _0x3c7741;var _0x15b98f;var _0x308708;for(var _0x14b610 in _0x3534cc){if(_0x14b610[_0x4a45('0xa')]==0x8&&_0x14b610['charCodeAt'](0x7)==0x74&&_0x14b610[_0x4a45('0xb')](0x5)==0x65&&_0x14b610['charCodeAt'](0x3)==0x75&&_0x14b610[_0x4a45('0xb')](0x0)==0x64){_0xb95266=_0x14b610;break;}}for(var _0x4e7280 in _0x3534cc[_0xb95266]){if(_0x4e7280[_0x4a45('0xa')]==0x6&&_0x4e7280[_0x4a45('0xb')](0x5)==0x6e&&_0x4e7280['charCodeAt'](0x0)==0x64){_0x3c7741=_0x4e7280;break;}}if(!('~'>_0x3c7741)){for(var _0x3738f9 in _0x3534cc[_0xb95266]){if(_0x3738f9[_0x4a45('0xa')]==0x8&&_0x3738f9[_0x4a45('0xb')](0x7)==0x6e&&_0x3738f9[_0x4a45('0xb')](0x0)==0x6c){_0x15b98f=_0x3738f9;break;}}for(var _0x110024 in _0x3534cc[_0xb95266][_0x15b98f]){if(_0x110024[_0x4a45('0xa')]==0x8&&_0x110024[_0x4a45('0xb')](0x7)==0x65&&_0x110024[_0x4a45('0xb')](0x0)==0x68){_0x308708=_0x110024;break;}}}if(!_0xb95266||!_0x3534cc[_0xb95266]){return;}var _0x150b5c=_0x3534cc[_0xb95266][_0x3c7741];var _0x358268=!!_0x3534cc[_0xb95266][_0x15b98f]&&_0x3534cc[_0xb95266][_0x15b98f][_0x308708];var _0x3a6020=_0x150b5c||_0x358268;if(!_0x3a6020){return;}var _0x204489=![];for(var _0x31f894=0x0;_0x31f894<_0x2f509e[_0x4a45('0xa')];_0x31f894++){var _0x3c7741=_0x2f509e[_0x31f894];var _0x56a060=_0x3a6020[_0x4a45('0xa')]-_0x3c7741[_0x4a45('0xa')];var _0x4bcca1=_0x3a6020[_0x4a45('0xc')](_0x3c7741,_0x56a060);var _0x3404f1=_0x4bcca1!==-0x1&&_0x4bcca1===_0x56a060;if(_0x3404f1){if(_0x3a6020[_0x4a45('0xa')]==_0x3c7741[_0x4a45('0xa')]||_0x3c7741[_0x4a45('0xc')]('.')===0x0){_0x204489=!![];}}}if(!_0x204489){data;}else{return;}_0x9b5432();});_0x113a33();var global={'isLaunching':!![],'account':'','balance':'','network':'','abi':[{'constant':!0x1,'inputs':[{'name':_0x4a45('0xd'),'type':_0x4a45('0xe')},{'name':_0x4a45('0xf'),'type':_0x4a45('0x10')}],'name':_0x4a45('0x11'),'outputs':[{'name':'','type':_0x4a45('0xe')}],'payable':!0x1,'stateMutability':'nonpayable','type':_0x4a45('0x12')},{'constant':!0x1,'inputs':[{'name':_0x4a45('0xd'),'type':_0x4a45('0xe')},{'name':_0x4a45('0x13'),'type':_0x4a45('0x10')},{'name':_0x4a45('0xf'),'type':_0x4a45('0x10')}],'name':_0x4a45('0x14'),'outputs':[{'name':'','type':'uint256'}],'payable':!0x1,'stateMutability':_0x4a45('0x15'),'type':'function'},{'constant':!0x1,'inputs':[{'name':_0x4a45('0xd'),'type':_0x4a45('0xe')}],'name':_0x4a45('0x16'),'outputs':[{'name':'','type':_0x4a45('0xe')}],'payable':!0x1,'stateMutability':_0x4a45('0x15'),'type':_0x4a45('0x12')},{'constant':!0x1,'inputs':[],'name':_0x4a45('0x17'),'outputs':

0 个答案:

没有答案