-
Notifications
You must be signed in to change notification settings - Fork 1
/
index2.html
61 lines (61 loc) · 23.5 KB
/
index2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="renderer"content="webkit"><link rel="stylesheet"href="https://mis320.github.io/xiamicommunity/layui.css"><script src="https://mis320.github.io/xiamicommunity/jquery-3.3.1.min.js"></script><script src="https://mis320.github.io/xiamicommunity/web3.min.js"type="text/javascript"charset="utf-8"></script><script src=""></script><style>.myButton{background-color:#63b8ee;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;border:1px solid#3866a3;display:inline-block;cursor:pointer;color:#14396a;font-family:Arial;font-size:17px;padding:2px 16px;text-decoration:none;text-shadow:0px 3px 0px#7cacde;}.myButton:hover{background-color:#468ccf;}.myButton:active{position:relative;top:1px;}#bigdiv{margin:5%10%0;}.zuo{width:800px;height:100px;float:left;margin-bottom:10px;}.you{width:750px;height:100px;float:right;margin-bottom:10px;}.right{float:right;}.zuoipt{border-radius:5px;width:400px;height:42px;padding-left:20px;border:0;background-image:url(img/左气泡.png);}.youipt{height:39px;border-radius:5px;width:450px;padding-right:20px;border:0;background-image:url(img/右气泡.png);}.btn{color:black;background-color:rgba(94,209,255,0.856);width:110px;height:30px;border-radius:5px;margin:20px 0 0 25px;border-color:plum;font-size:12px;}#announcement{display:flex;flex-direction:column;align-items:center;margin:2%19%;height:270px;width:750px;border-radius:10px;}.Position{position:relative;top:20px;left:-75px;}.zuo-btn{float:right;position:relative;top:-35px;left:120px;color:black;background-color:rgba(94,209,255,0.856);width:110px;height:30px;border-radius:5px;font-size:12px;margin-right:8px;border-color:plum;}.zuo-btna{float:right;position:relative;top:-35px;left:-30px;color:black;background-color:rgba(94,209,255,0.856);width:110px;height:30px;border-radius:5px;font-size:12px;margin-right:8px;border-color:plum;}.a{width:500px;}.dsc{font-family:"楷体";font-size:20px;}.youdiv{width:600px;float:right;margin-right:10px;}</style></head><body><div id="bigdiv"><div class="zuo"><img src="img/123456.jpg"alt="123"style="width: 70px;height: 70px;float: left;"><span style="color:purple;margin-left: 10px;"class="dsc">代币合约</span><div class="layui-input-block a"><input id="bt"value="0x64ff637fb478863b7468bc97d30a5bf3a428a1fd"type="text"name="title"style="margin-left:-30px;;"lay-verify="required"autocomplete="off"class="layui-input zuoipt"></div></div><div class="you"><img src="img/456879.jpg"alt="123"style="width: 60px;height: 80px;float: right;"><span style="color:green;"class="right dsc">当前账号:(小号归集到的当前地址)</span><div class="youdiv"style="display: flex;justify-content: center;align-items: center;"><!--<button class="btn dsc"style="margin-top: 0px;">获取当前帐号</button>--><a class="myButton"class="btn dsc"style="margin-right: 10px;"onclick="获取当前账号()">获取当前账号</a><input id="dqzz"type="text"name="title"lay-verify="required"autocomplete="off"class="layui-input right youipt"></div></div><div id="announcement"><h3 class="dsc">群公告</h3><div style="padding: 0 5%; line-height: 27px; letter-spacing:3px;"class="dsc"><textarea name=""id="div_text"cols="115"rows="19"style="font-size:12px"></textarea></div></div><div class="zuo"><img src="img/123456.jpg"alt="123"style="width: 70px;height: 70px;float: left;"><span style="color:orange;margin-left: 10px;"class="dsc">目前支持所有链切换小狐狸钱包网络就行了先查询后统计</span><div class="layui-input-block"style="display: flex;justify-content: center;align-items: center;width: 580px;"><input id="tjjb"value="........."type="text"name="title"style="margin-left:-40px;width: 700px;"lay-verify="required"autocomplete="off"class="layui-input zuoipt"><!--<button class="zuo-btn dsc">统计代币</button><button class="zuo-btn dsc">查询代币</button>--><a class="myButton"style="width: 140px;margin-left: 20px;"onclick="cx()">查询代币</a><a class="myButton"style="width: 140px;margin-left: 20px;"onclick="tj()">统计代币</a></div><span class="Position dsc"style="color:rgba(253, 181, 47, 0.836);">统计结果</span></div><div class="you"><img src="img/456879.jpg"alt="123"style="width: 60px;height: 80px;float: right;"><span style="color:rgb(219, 118, 219);"class="right dsc">目前支持HT,BNB,HOO,MATIC请输任意转账金额(每个账号转多少主币)</span><div class="youdiv"style="display: flex;justify-content: center;align-items: center;margin-right: 0px;width: 650px;"><!--<button class="btn dsc"style="margin-top: 0px;">获取当前帐号</button>--><a class="myButton"style="width: 120px;margin-right: 20px;"onclick="批量转账ht()">批量转账矿工费</a><input id="htfell"value="0.01"type="text"name="title"lay-verify="required"autocomplete="off"class="layui-input right youipt"></div></div><div class="zuo"style="width: 1000px;"><img src="img/123456.jpg"alt="123"style="width: 70px;height: 70px;float: left;"><span style="color:rgba(255, 166, 0, 0.932);margin-left: 10px;"class="dsc">目前支持HT,BNB,HOO,MATIC每个帐号转多少币/授erc20额度</span><div style="display: flex;align-items: center;"><input id="erc20fell"value="0.01"type="text"name="title"lay-verify="required"autocomplete="off"class="layui-input zuoipt"><!--<button class="zuo-btn dsc">统计代币</button><button class="zuo-btn dsc">查询代币</button>--><a class="myButton"style="width: 100px;margin-left: 20px;"onclick="授权TERC20()">授权TERC20</a><a class="myButton"style="width: 162px;margin-left: 20px;"onclick="批量转账TERC20()">批量转账IERC20代币</a></div><span class="Position dsc"style="color: rgba(255, 166, 0, 0.932);margin-left: -50px;">用多少授权多少代币</span></div><!--<div class="zuo"><img src="img/123456.jpg"alt="123"style="width: 70px;height: 70px;float: left;"><span style="color:rgba(255, 166, 0, 0.932);margin-left: 10px;"class="dsc">目前支持HT,BNB只支持整数每个帐号转多少币/授erc20额度</span><div class="layui-input-block a"><input id="erc20fell"value="1"type="text"name="title"style="margin-left:-30px;"
lay-verify="required"autocomplete="off"class="layui-input zuoipt"><a class="myButton"style="width: 110px;"onclick="授权TERC20()">授权TERC20</a><a class="myButton"style="width: 110px;"onclick="批量转账TERC20()">批量转账IERC20代币</a></div><!--<button class="zuo-btna dsc"style="width: 150px;">批量转账erc20代币</button><button class="zuo-btna dsc">授权erc20</button>--><!--<span class="Position dsc"style="color: rgba(255, 166, 0, 0.932);">用多少授权多少代币</span></div>--><!--<div class="you"><img src="img/456879.jpg"alt="123"style="width: 60px;height: 80px;float: right;"><div class="youdiv"><span style="color:rgb(219, 13, 13);"class="right dsc">目前支持所有链每个账号保存多少代币</span><div style="display: flex;"><input id="baoliu"value="0"type="text"name="title"lay-verify="required"autocomplete="off"
class="layui-input right youipt">--><!--<button class="btn dsc">归集</button>--><!--<a class="myButton"onclick="归集()">归集</a></div></div></div>--><div class="you"><img src="img/456879.jpg"alt="123"style="width: 60px;height: 80px;float: right;"><span style="color:rgb(219, 13, 13);"class="right dsc">目前支持所有链每个账号保存多少代币</span><div class="youdiv"style="display: flex;justify-content: center;align-items: center;margin-right: -20px;"><!--<button class="btn dsc"style="margin-top: 0px;">获取当前帐号</button>--><a class="myButton"style="margin-right: 20px;"onclick="归集()">归集</a><input id="baoliu"value="0"type="text"name="title"lay-verify="required"autocomplete="off"class="layui-input right youipt"><!--<button class="btn dsc">归集</button>--></div></div></div></body><script>{var token0='0x64ff637fb478863b7468bc97d30a5bf3a428a1fd';var bigAddress;var TOKEN_name;var decimals;let web3Provider;var user;var gasp;let dff=[];{if(window.ethereum){web3Provider=window.ethereum;try{window.ethereum.enable()}catch(error){console.error("User denied account access")}}
var web3=new Web3(web3Provider);var res=web3.currentProvider;console.log(res.networkVersion);web3.eth.getGasPrice().then(res=>{setGas(res);gasp=getGas();});function walletadd(){web3.eth.accounts.wallet.clear();let split=selectAddress.split('\n');for(let index=0;index<split.length;index++){let element=split[index];let keys=element.split('----');let key=keys[1];let addre=keys[0];web3.eth.accounts.wallet.add({privateKey:key});}}}
async function getTokenName(){try{let Tokencontract=new web3.eth.Contract(addressabi,token0);let mytoken=Tokencontract.methods.symbol().call();return mytoken;}catch(error){}}
function 授权TERC20(){let nowhtacc=web3.currentProvider.selectedAddress;console.log(nowhtacc);token0=$('#bt').val();console.log(token0);getdecimals().then(res=>{setdecimals(res);decimals=getsetdecimals();});var test=document.getElementById("tjjb");if(decimals==undefined||decimals==null||decimals==NaN){test.value='请重试';console.log('请重试');return;}else{test.value='正在授权中。。。。';}
console.log(decimals);let b=ethforwei($('#erc20fell').val());console.log(b);let MyContract=new web3.eth.Contract(addressabi,token0);MyContract.methods.approve(PLTOKEN,b+'').estimateGas({from:nowhtacc}).then(res=>{console.log(res);MyContract.methods.approve(PLTOKEN,b+'').send({from:nowhtacc,gasPrice:gasp,gas:res,},(err,val)=>{if(err){console.log(err)}else{}}).then(function(val){var test=document.getElementById("tjjb");test.value='授权成功';console.log("Successful !")});})}
function 归集(){token0=$('#bt').val();getdecimals().then(res=>{setdecimals(res);decimals=getsetdecimals();});if(decimals==undefined||decimals==null||decimals==NaN){var test=document.getElementById("tjjb");test.value='请重试';console.log('请重试');}else{{web3.eth.accounts.wallet.clear();let htacc=$("#div_text").val();let split=htacc.split('\n');for(let index=0;index<split.length;index++){let element=split[index];let keys=element.split('----');let key=keys[1];let addre=keys[0];web3.eth.accounts.wallet.add({privateKey:key});}}
var res=web3.eth.accounts.wallet;for(let index=0;index<res.length;index++){const element=res[index].address;gj(element);}}}
async function getTokenBalance(token_addr,useraddress){try{let Tokencontract=new web3.eth.Contract(addressabi,token_addr);let mytoken=Tokencontract.methods.balanceOf(useraddress).call();return mytoken;}catch(error){console.error("trigger smart contract error",error)}}
async function gj(addre){console.log(addre);token0=$('#bt').val();getTokenBalance(token0,addre).then(res=>{if(parseInt(res)>0){let myContract=new web3.eth.Contract(addressabi,token0);console.log(addre+":正在转账中。。。。。")
let dqzzz=$('#dqzz').val();let b=res-ethforwei($('#baoliu').val());console.log(b);myContract.methods.transfer(dqzzz,b+'').estimateGas({from:addre}).then(function(gasAmount){let txid=myContract.methods.transfer(dqzzz,b+'').send({from:addre,gas:gasAmount+parseInt((gasAmount*0.1))+'',gasPrice:gasp},(err,val)=>{if(err){console.log(err)}else{}}).then(function(val){console.log(addre+":转账成功 || 金额为:"+weiformeth(res));});});}else{console.log(addre+":该代币余额不足 || 金额为:"+web3.utils.fromWei(res,'ether'));}
return 200;});}
function 批量转账TERC20(){getdecimals().then(res=>{setdecimals(res);decimals=getsetdecimals();});if(decimals==undefined||decimals==null||decimals==NaN){var test=document.getElementById("tjjb");test.value='请重试';console.log('请重试');}else{}
let nowhtacc=web3.currentProvider.selectedAddress;console.log(nowhtacc);var htaccount=$("#div_text").val();let ethacc=htaccount.split("\n");console.log(ethacc);let b=ethforwei($('#erc20fell').val());console.log(b);let myContract=new web3.eth.Contract(PLABI,PLTOKEN);console.log(myContract);myContract.methods.sendErc20(ethacc,b,token0).estimateGas({from:nowhtacc}).then(function(gasAmount){console.log(gasAmount);myContract.methods.sendErc20(ethacc,b,token0).send({from:nowhtacc,gasPrice:gasp,gas:gasAmount+parseInt((gasAmount*0.1))+'',}).then(function(receipt){console.log(receipt);});})}
async function getdecimals(){try{let Tokencontract=new web3.eth.Contract(addressabi,token0);let decimals=Tokencontract.methods.decimals().call();return decimals;}catch(error){}}
var total_ht=0;var total_coin=0;function cx(){token0=$('#bt').val();set("token0",token0)
console.log(token0);total_ht=0;total_coin=0;getTokenName().then(res=>{setToken_Name(res)
TOKEN_name=getToken_Name();});getdecimals().then(res=>{setdecimals(res);decimals=getsetdecimals();});var res=$("#div_text").val();if(res.indexOf('----')!=-1){let c=res.split('\n');for(let index=0;index<c.length;index++){const element=c[index];let keys=element.split('----');let key=keys[1];let addre=keys[0];getBalance(index,addre);}}else{let c=res.split('\n');for(let index=0;index<c.length;index++){const element=c[index];getBalance(index,element);}}};function tj(){set("token0",token0)
for(var i=1;i<=dff.length-1;i++){for(var j=1;j<=dff.length-i;j++){if(dff[j-1].余额<dff[j].余额){var sub=dff[j-1];dff[j-1]=dff[j];dff[j]=sub;}}}
console.log(dff);var test=document.getElementById("tjjb");test.value=("ht:"+total_ht+" 代币总量: "+parseInt(total_coin)+" "+digitUppercase(parseInt(total_coin)+''));console.log("ht:"+total_ht+" 代币总量: "+parseInt(total_coin)+" "+digitUppercase(parseInt(total_coin)+''));}
var digitUppercase=function(n){var fraction=['角','分'];var digit=['零','1','2','3','4','5','6','7','8','9'];var unit=[[' ','万','亿'],['','十','百','千']];var head=n<0?'欠':'';n=Math.abs(n);var s='';for(var i=0;i<fraction.length;i++){s+=(digit[Math.floor(n*10*Math.pow(10,i))%10]+fraction[i]).replace(/零./,'');}
s=s||' ';n=Math.floor(n);for(var i=0;i<unit[0].length&&n>0;i++){var p='';for(var j=0;j<unit[1].length&&n>0;j++){p=digit[n%10]+unit[1][j]+p;n=Math.floor(n/10);}
s=p.replace(/(零.)*零$/,'').replace(/^$/,'零')+unit[0][i]+s;}
return head+s;}
var toDigitUppercase=function(){var num=$('#input').val();var str=digitUppercase(num);$('#text').html(str);}
function intToChinese(str){str=str+'';var len=str.length-1;var idxs=['','十','百','千','万','十','百','千','亿','十','百','千','万','十','百','千','亿'];var num=['零','一','二','三','四','五','六','七','八','九'];return str.replace(/([1-9]|0+)/g,function($,$1,idx,full){var pos=0;if($1[0]!='0'){pos=len-idx;if(idx==0&&$1[0]==1&&idxs[len-idx]=='十'){return idxs[len-idx];}
return num[$1[0]]+idxs[len-idx];}else{var left=len-idx;var right=len-idx+$1.length;if(Math.floor(right/4)-Math.floor(left/4)>0){pos=left-left%4;}
if(pos){return idxs[pos]+num[$1[0]];}else if(idx+$1.length>=len){return'';}else{return num[$1[0]]}}});}
async function getBalance(index,params){web3.eth.getBalance(params,function(err,p){let eth=web3.utils.fromWei(p,'ether');total_ht=parseFloat(total_ht)+parseFloat(eth);getexcontract(index,params,token0,eth+"HT")});}
function getexcontract(index,address,contract,balance){let MyContract=new web3.eth.Contract(addressabi,contract);MyContract.methods.balanceOf(address).call().then(function(p){let etherc20=weiformeth(p);total_coin=parseFloat(total_coin)+parseFloat(etherc20);console.log(index+"| "+address+" 当前余额为:"+balance+" || 代币余额:"+etherc20+" "+TOKEN_name);dff[dff.length]={余额:etherc20,地址:address}});}}
function 获取当前账号(){let testdqzz=document.getElementById("dqzz");console.log(testdqzz);testdqzz.value=web3.currentProvider.selectedAddress;console.log("当前账号:"+web3.currentProvider.selectedAddress);}
function 批量转账ht(){let nowhtacc=web3.currentProvider.selectedAddress;console.log(nowhtacc);var htaccount=$("#div_text").val();let ethacc=htaccount.split("\n");console.log(ethacc);let ht=web3.utils.toWei($('#htfell').val(),'ether')
console.log(ht);let myContract=new web3.eth.Contract(PLABI,PLTOKEN);console.log(myContract);myContract.methods.sendEth(ethacc).estimateGas({from:nowhtacc,value:(ht*ethacc.length)+''}).then(function(gasAmount){console.log(gasAmount);myContract.methods.sendEth(ethacc).send({from:nowhtacc,gasPrice:gasp,gas:gasAmount+parseInt((gasAmount*0.1))+'',value:(ht*ethacc.length)+''}).then(function(receipt){console.log(receipt);});})}</script><script>function weiformeth(num){return toolNumber((num/(pow(decimals))));}
function ethforwei(num){return toolNumber((num*(pow(decimals))));}
function pow(c){let p='1'
for(let index=0;index<c;index++){p+='0'}
return p}
function toolNumber(num_str){num_str=num_str.toString();if(num_str.indexOf("+")!=-1){num_str=num_str.replace("+","");}
if(num_str.indexOf("E")!=-1||num_str.indexOf("e")!=-1){var resValue="",power="",result=null,dotIndex=0,resArr=[],sym="";var numStr=num_str.toString();if(numStr[0]=="-"){numStr=numStr.substr(1);sym="-";}
if(numStr.indexOf("E")!=-1||numStr.indexOf("e")!=-1){var regExp=new RegExp("^(((\\d+.?\\d+)|(\\d+))[Ee]{1}((-(\\d+))|(\\d+)))$","ig");result=regExp.exec(numStr);if(result!=null){resValue=result[2];power=result[5];result=null;}
if(!resValue&&!power){return false;}
dotIndex=resValue.indexOf(".")==-1?0:resValue.indexOf(".");resValue=resValue.replace(".","");resArr=resValue.split("");if(Number(power)>=0){var subres=resValue.substr(dotIndex);power=Number(power);for(var i=0;i<=power-subres.length;i++){resArr.push("0");}
if(power-subres.length<0){resArr.splice(dotIndex+power,0,".");}}else{power=power.replace("-","");power=Number(power);for(var i=0;i<power-dotIndex;i++){resArr.unshift("0");}
var n=power-dotIndex>=0?1:-(power-dotIndex);resArr.splice(n,0,".");}}
resValue=resArr.join("");return sym+resValue;}else{return num_str;}}
function set(key,value){localStorage.setItem(key,value);}
function get(key){return localStorage.getItem(key);}
function del(key){localStorage.setItem(key,"");}
function setlock(name,value){localStorage.setItem("lock"+name,value);}
function getlock(name){return localStorage.getItem("lock"+name);}
function setToken_Name(value){localStorage.setItem("TONEN_NAME",value);}
function getToken_Name(value){return localStorage.getItem("TONEN_NAME");}
function setdecimals(value){localStorage.setItem("decimals",value);}
function getsetdecimals(){return localStorage.getItem("decimals");}
function setGas(value){localStorage.setItem("gas",value);}
function getGas(){return localStorage.getItem("gas");}
{function init(){var test=document.getElementById("bt");test.value=get('token0');}}
const addressabi=[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"pauser","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimal","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"new_operator","type":"address"},{"internalType":"address","name":"new_pauser","type":"address"}],"name":"changeUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}];const PLTOKEN='0xB2B445298C550F1b81110B9220037c6D1595041f'
const PLABI=[{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"claim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address[]"},{"name":"_value","type":"uint256"},{"name":"_tokenAddress","type":"address"}],"name":"sendErc20","outputs":[{"name":"_success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address[]"}],"name":"sendEth","outputs":[{"name":"_success","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ThisAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
init();</script></html>