text: (this["webpackJsonplets-dice"]=this["webpackJsonplets-dice"]||[]).push([[0],{225:function(e,t){},23:function(e){e.exports=JSON.parse('{"r":96,"nextOwner":"","contractAddress":"0x4bECCB80fd4E35Aea2F6287126e5DCe92aAA17eF","chainid":56}')},240:function(e,t){},258:function(e,t){},260:function(e,t){},277:function(e,t){},278:function(e,t){},370:function(e,t){},371:function(e,t){},377:function(e,t){},38:function(e){e.exports=JSON.parse('{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint8","name":"gameType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dt","type":"uint256"}],"name":"Payment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint8","name":"gameType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"gNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dt","type":"uint256"}],"name":"placeBetEvent","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"aBets","outputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint256","name":"gnum","type":"uint256"},{"internalType":"address payable","name":"addr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aTimes","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptNextOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"bBets","outputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint256","name":"gnum","type":"uint256"},{"internalType":"address payable","name":"addr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bTimes","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"cBets","outputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint256","name":"gnum","type":"uint256"},{"internalType":"address payable","name":"addr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cTimes","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"new_owner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newR","type":"uint256"}],"name":"changeR","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_s","type":"uint256"},{"internalType":"uint256","name":"_g","type":"uint256"}],"name":"placeBetA","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_s","type":"uint256"},{"internalType":"uint256","name":"_g","type":"uint256"}],"name":"placeBetB","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_s","type":"uint256"},{"internalType":"uint256","name":"_g","type":"uint256"}],"name":"placeBetC","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"revealA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withDrawHourseEdge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]}')},415:function(e,t){},491:function(e,t,a){},494:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),l=a(67),s=a.n(l),c=(a(218),a(5)),i=a(7),u=a(11),o=a(10),m=a(207),p=a(49),d=a(498),h=a(507),E=function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){return r.a.createElement("div",{className:"container"},r.a.createElement("div",{id:"mainpage"},r.a.createElement("h1",null,"\u533a\u5757\u94fe\u4e0a\u8f7b\u677e\u516c\u5e73\u8d4c\u4e00\u628a"),r.a.createElement("h5",null," \u7b80\u5355\u7684\u3001\u516c\u5e73\u7684"),r.a.createElement("h5",null,"\u57fa\u4e8e\u5e01\u5b89\u667a\u80fd\u94fe\u3001\u66f4\u4f4e\u624b\u7eed\u8d39\u3001\u66f4\u5feb\u901f\u5ea6")),r.a.createElement(d.a,{id:"carddeck"},r.a.createElement(h.a,{border:"primary",style:{width:"18rem"}},r.a.createElement(h.a.Header,null,"\u8d4c\u5927\u5c0f"),r.a.createElement(h.a.Body,null,r.a.createElement(h.a.Title,null,"\u4e24\u4eba\u73a9"),r.a.createElement(h.a.Text,null,"\u8d4c\u5927\u5c0f\uff0c\u731c\u5bf9\u5373\u8d62\u53d6\u5bf9\u65b9\u8d4c\u6ce8\uff0c50%\u51e0\u7387\u6210\u529f\uff0c2\u500d\u7684\u56de\u62a5\u3002 \u7b80\u5355\u65b9\u4fbf\u5feb\u6377\uff0c0\u4ee3\u8868\u5c0f\uff0c1\u4ee3\u8868\u5927\uff01"),r.a.createElement(h.a.Link,{href:"/gameA"},"\u8d4c\u5927\u5c0f"))),r.a.createElement(h.a,{border:"success",style:{width:"18rem"}},r.a.createElement(h.a.Header,null,"\u73a9\u9ab0\u5b50"),r.a.createElement(h.a.Body,null,r.a.createElement(h.a.Title,null,"\u516d\u4eba\u73a9"),r.a.createElement(h.a.Text,null,"\u731c0\uff0c5\u4e4b\u95f4\u7684\u70b9\u6570\uff0c\u731c\u4e2d\u8005\u8d62\u53d6\u5176\u4ed6\u4eba\u7684\u8d4c\u6ce8\u30021/6\u7684\u731c\u4e2d\u51e0\u7387\u3002 6\u500d\u7684\u6536\u76ca\u3002\u51d1\u8db3\u516d\u4eba\u5373\u53ef\u70b9\u51fb\u5f00\u5956\u3002"),r.a.createElement(h.a.Link,{href:"/gameB"},"\u73a9\u9ab0\u5b50"))),r.a.createElement(h.a,{border:"info",style:{width:"18rem"}},r.a.createElement(h.a.Header,null,"\u731c\u70b9\u6570"),r.a.createElement(h.a.Body,null,r.a.createElement(h.a.Title,null,"\u5341\u4eba\u73a9"),r.a.createElement(h.a.Text,null,"\u5341\u4eba\u53c2\u4e0e\uff0c\u731c0-9\u4e4b\u95f4\u7684\u70b9\u6570\uff0c\u731c\u4e2d\u51e0\u738710%\uff0c10\u500d\u6536\u76ca\u3002 \u4eba\u5458\u53c2\u4e0e\u8d8a\u591a\uff0c\u4f60\u7b49\u5f85\u7684\u65f6\u95f4\u53ef\u80fd\u4f1a\u8d8a\u957f\u3002"),r.a.createElement(h.a.Link,{href:"/gameA"},"\u731c\u70b9\u6570")))))}}]),a}(n.Component),b=a(16),g=a.n(b),y=a(31),f=a(25),v=a(21),k=a(37),x=a.n(k),w=a(38);function T(e){return e?r.a.createElement("small",{fontSize:"15px"},r.a.createElement("a",{href:"https://bscscan.com/address/"+e,target:"_blank",rel:"noopener noreferrer"},e.substr(0,7)+"..."+e.substr(37,5))):"\u7a7a\u5730\u5740"}function O(e){switch(e){case"2":case 2:return"\u8d4c\u5927\u5c0f";case"6":case 6:return"\u73a9\u9ab0\u5b50";case"10":case 10:return"\u731c\u70b9\u6570"}}function N(e,t){switch(e){case"2":case 2:return r.a.createElement("img",{src:"./img/"+t+".svg",width:"35px",height:"35px",alt:t});case"6":case 6:return r.a.createElement("img",{src:"./img/dice"+t+".svg",width:"35px",height:"35px",alt:t});case"10":case 10:return r.a.createElement("img",{src:"./img/n"+t+".svg",width:"35px",height:"35px",alt:t})}}function B(e){return new Date(1e3*e).toLocaleString()}function C(e){var t=e.gameType,a=e.guessTable;switch(t){case"2":return a.map((function(t,a){return r.a.createElement("label",{key:a},r.a.createElement("input",{type:"radio",className:"input-hidden",name:"dice",onChange:e.controlFunc,id:"dice"+t,value:t,checked:e.options===t}),r.a.createElement("img",{src:"./img/"+t+".svg",width:"80px",height:"80px",alt:t}))}));case"6":return a.map((function(t,a){return r.a.createElement("label",{key:a},r.a.createElement("input",{type:"radio",className:"input-hidden",name:"dice",onChange:e.controlFunc,id:"dice"+t,value:t,checked:e.options===t}),r.a.createElement("img",{src:"./img/dice"+t+".svg",width:"50px",height:"50px",alt:t}))}));case"10":return a.map((function(t,a){return r.a.createElement("label",{key:a},r.a.createElement("input",{type:"radio",className:"input-hidden",name:"dice",onChange:e.controlFunc,id:"dice"+t,value:t,checked:e.options===t}),r.a.createElement("img",{src:"./img/n"+t+".svg",width:"50px",height:"50px",alt:t}))}))}}var j=a(501),M=a(502),S=a(206),D=a(505),_=a(503),A=a(23),R=a(500),I=function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).state={gameType:n.props.gameType,lastResult:[],finalNumber:null,reload:n.props.reload,loading:!0,errMsg:"\u6b63\u5728\u4ece\u667a\u80fd\u5408\u7ea6\u4e2d\u62c9\u53d6\u6570\u636e\uff0c\u8bf7\u7a0d\u7b49..."},n}return Object(i.a)(a,[{key:"componentWillMount",value:function(){this.loadData()}},{key:"componentWillReceiveProps",value:function(){this.props.reload&&this.loadData()}},{key:"loadData",value:function(){var e=Object(y.a)(g.a.mark((function e(){var t,a,n,l,s,c,i,u,o,m,p;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new x.a("https://bsc-dataseed1.binance.org:443"),a=new t.eth.Contract(w.abi,A.contractAddress),n=0,l=[],e.prev=4,e.t0=this.state.gameType,e.next="2"===e.t0?8:"6"===e.t0?20:"10"===e.t0?32:44;break;case 8:s=4;case 9:if(!(s<=6)){e.next=19;break}return e.next=12,a.methods.aBets(s).call();case 12:"0x0000000000000000000000000000000000000000"!==(c=e.sent).addr&&(c.seed=parseInt(c.seed),c.gnum=parseInt(c.gnum),l.push(c)),n+=c.seed,n%=2;case 16:s++,e.next=9;break;case 19:return e.abrupt("break",45);case 20:i=8;case 21:if(!(i<=14)){e.next=30;break}return e.next=24,a.methods.bBets(i).call();case 24:"0x0000000000000000000000000000000000000000"!==(u=e.sent).addr&&(u.seed=parseInt(u.seed),u.gnum=parseInt(u.gnum),l.push(u)),n+=u.seed;case 27:i++,e.next=21;break;case 30:return n%=6,e.abrupt("break",45);case 32:o=12;case 33:if(!(o<=22)){e.next=42;break}return e.next=36,a.methods.cBets(o).call();case 36:"0x0000000000000000000000000000000000000000"!==(m=e.sent).addr&&(m.seed=parseInt(m.seed),m.gnum=parseInt(m.gnum),l.push(m)),n+=m.seed;case 39:o++,e.next=33;break;case 42:return n%=10,e.abrupt("break",45);case 44:return e.abrupt("break",45);case 45:this.setState({lastResult:l,finalNumber:n,loading:!1}),e.next=53;break;case 48:return e.prev=48,e.t1=e.catch(4),p=r.a.createElement("div",{id:"error"},"\u6ca1\u80fd\u4ece\u5408\u7ea6\u5730\u5740\u4e0a\u627e\u5230\u6570\u636e\uff01"),this.setState({errorMsg:p}),e.abrupt("return");case 53:case"end":return e.stop()}}),e,this,[[4,48]])})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this;return r.a.createElement("div",null,this.state.loading?r.a.createElement("div",{id:"loading"},this.state.errMsg):r.a.createElement("div",{className:"tableContainer"},r.a.createElement(R.a,{hover:!0,size:"sm",variant:"dark"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("td",{colSpan:"3",className:"text-center"},"\u4e0a\u4e00\u8f6e\u7684\u5f00\u5956\u8fc7\u7a0b")),r.a.createElement("tr",{className:"text-center"},r.a.createElement("td",null,"\u7528\u6237\u5730\u5740"),r.a.createElement("td",null,"\u5e78\u8fd0\u6570\u5b57"),r.a.createElement("td",null,"\u7528\u6237\u968f\u673a\u6570"))),this.state.lastResult.map((function(t,a){return r.a.createElement("tbody",{key:a},parseInt(e.state.gameType)===a?r.a.createElement("tr",{className:"text-center"},r.a.createElement("td",null,r.a.createElement("small",null,"\u5f00\u5956\u4eba:"),r.a.createElement("br",null),T(t.addr)),r.a.createElement("td",null,r.a.createElement("small",null,"\u5f00\u5956\u7ed3\u679c\uff1a",r.a.createElement("br",null),e.state.finalNumber,r.a.createElement("br",null))),r.a.createElement("td",null,r.a.createElement("small",null,"\u5f00\u5956\u968f\u673a\u6570\uff1a"),r.a.createElement("br",null),t.seed)):r.a.createElement("tr",{className:"text-center"},t.gnum===e.state.finalNumber?r.a.createElement("td",{id:"win"},r.a.createElement("small",null,"(\u8d62\u5bb6)"),T(t.addr)):r.a.createElement("td",null,T(t.addr)),t.gnum===e.state.finalNumber?r.a.createElement("td",{id:"win"},N(e.state.gameType,t.gnum)):r.a.createElement("td",null,N(e.state.gameType,t.gnum)),t.gnum===e.state.finalNumber?r.a.createElement("td",{id:"win"},t.seed):r.a.createElement("td",null,t.seed)))}))),0!==this.state.lastResult.length?r.a.createElement("div",null,r.a.createElement("small",null,"\u4e0a\u6b21\u5f00\u5956\u65f6\u95f4\uff1a",B(this.state.lastResult[this.state.gameType].gnum),r.a.createElement("br",null),"\u5f00\u5956\u65f6\u95f4\u7684\u79d2\u6570\u9664\u4ee5",this.state.gameType,"\uff0c\u6240\u5f97\u4f59\u6570\u5c31\u662f\u5f00\u5956\u968f\u673a\u6570\u3002")):null))}}]),a}(n.Component),F=function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).state={account:n.props.account,PaymentEvents:[],reload:n.props.reload,loading:!0,errorMsg:"\u6b63\u5728\u83b7\u53d6\u5408\u540c\u7684\u6295\u6ce8\u8bb0\u5f55\uff0c\u8bf7\u7a0d\u7b49..."},n}return Object(i.a)(a,[{key:"componentWillMount",value:function(){this.loadData()}},{key:"componentWillReceiveProps",value:function(){this.props.reload&&this.loadData()}},{key:"loadData",value:function(){var e=Object(y.a)(g.a.mark((function e(){var t,a,n,l,s=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new x.a("https://bsc-dataseed1.binance.org:443"),a=new t.eth.Contract(w.abi,A.contractAddress),e.next=4,t.eth.getBlockNumber();case 4:n=e.sent,e.prev=5,a.getPastEvents("Payment",{fromBlock:n-1e3,toBlock:"latest"},(function(e,t){e?console.log(e):(t.reverse(),t.splice(5,t.length-5),s.setState({PaymentEvents:t,loading:!1}))})),e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(5),l=r.a.createElement("div",{id:"error"},"\u6ca1\u80fd\u4ece\u5408\u7ea6\u5730\u5740\u4e0a\u627e\u5230\u6570\u636e\uff01"),this.setState({errorMsg:l}),e.abrupt("return");case 14:case"end":return e.stop()}}),e,this,[[5,9]])})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){return r.a.createElement("div",null,this.state.loading?r.a.createElement("div",{id:"loading"},this.state.errorMsg):r.a.createElement("div",{className:"tableContainer"},r.a.createElement(R.a,{striped:!0,hover:!0,size:"sm",variant:"dark"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("td",{colSpan:"4",className:"text-right"},r.a.createElement("small",null,"\u4ee5\u4e0b\u663e\u793a\u6700\u8fd15\u4e2a\u4e2d\u5956\u4eba"))),r.a.createElement("tr",{className:"text-center"},r.a.createElement("td",null,"\u4e2d\u5956\u4eba"),r.a.createElement("td",null,"\u6e38\u620f\u7c7b\u578b"),r.a.createElement("td",null,"\u4e2d\u5956\u91d1\u989d"),r.a.createElement("td",null,"\u65f6\u95f4"))),r.a.createElement("tbody",null,this.state.PaymentEvents.map((function(e,t){return r.a.createElement("tr",{key:t,className:"text-center"},r.a.createElement("td",null,T(e.returnValues.beneficiary)),r.a.createElement("td",null,r.a.createElement("small",null,O(e.returnValues.gameType))),r.a.createElement("td",null,e.returnValues.amount/1e17),r.a.createElement("td",null,r.a.createElement("small",null,B(e.returnValues.dt))))}))))))}}]),a}(n.Component),L=function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).state={account:n.props.account,placeBetEvent:[],reload:n.props.reload,loading:!0,errorMsg:"\u6b63\u5728\u83b7\u53d6\u5408\u540c\u7684\u6295\u6ce8\u8bb0\u5f55\uff0c\u8bf7\u7a0d\u7b49..."},n}return Object(i.a)(a,[{key:"componentWillMount",value:function(){this.loadData()}},{key:"componentWillReceiveProps",value:function(){this.props.reload&&this.loadData()}},{key:"loadData",value:function(){var e=Object(y.a)(g.a.mark((function e(){var t,a,n,l,s=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new x.a("https://bsc-dataseed1.binance.org:443"),a=new t.eth.Contract(w.abi,A.contractAddress),e.next=4,t.eth.getBlockNumber();case 4:n=e.sent,e.prev=5,a.getPastEvents("placeBetEvent",{fromBlock:n-1e3,toBlock:"latest"},(function(e,t){e?console.log(e):(t.reverse(),t.splice(20,t.length-20),s.setState({placeBetEvent:t,loading:!1}))})),e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(5),l=r.a.createElement("div",{id:"error"},"\u6ca1\u80fd\u4ece\u5408\u7ea6\u5730\u5740\u4e0a\u627e\u5230\u6570\u636e\uff01"),this.setState({errorMsg:l}),e.abrupt("return");case 14:case"end":return e.stop()}}),e,this,[[5,9]])})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){return r.a.createElement("div",null,this.state.loading?r.a.createElement("div",{id:"loading"},this.state.errorMsg):r.a.createElement("div",{className:"tableContainer"},r.a.createElement(R.a,{striped:!0,hover:!0,size:"sm",variant:"dark"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("td",{colSpan:"4",className:"text-right"},r.a.createElement("small",null,"\u4ee5\u4e0b\u663e\u793a\u6700\u8fd120\u4e2a\u6295\u6ce8\u8bb0\u5f55"))),r.a.createElement("tr",{className:"text-center"},r.a.createElement("td",null,"\u6e38\u620f"),r.a.createElement("td",null,"\u7ade\u731c\u5730\u5740"),r.a.createElement("td",null,"\u731c\u6570"),r.a.createElement("td",null,"\u65f6\u95f4"))),r.a.createElement("tbody",null,this.state.placeBetEvent.map((function(e,t){return r.a.createElement("tr",{key:t,className:"text-center"},r.a.createElement("td",null,r.a.createElement("small",null,O(e.returnValues.gameType))),r.a.createElement("td",null,T(e.returnValues.addr)),r.a.createElement("td",null,N(e.returnValues.gameType,e.returnValues.gNumber)),r.a.createElement("td",null,r.a.createElement("small",null,B(e.returnValues.dt))))}))))))}}]),a}(n.Component),U=function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).state={gameType:n.props.gameType,Bets:[],reload:n.props.reload,loading:!0,errMsg:"\u6b63\u5728\u4ece\u667a\u80fd\u5408\u7ea6\u4e2d\u62c9\u53d6\u6570\u636e\uff0c\u8bf7\u7a0d\u7b49..."},n}return Object(i.a)(a,[{key:"componentWillMount",value:function(){this.loadData()}},{key:"componentWillReceiveProps",value:function(){this.props.reload&&this.loadData()}},{key:"loadData",value:function(){var e=Object(y.a)(g.a.mark((function e(){var t,a,n,l,s,c,i,u,o,m,p;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new x.a("https://bsc-dataseed1.binance.org:443"),a=new t.eth.Contract(w.abi,A.contractAddress),n=[],l=this.state.Times,e.prev=4,e.t0=this.state.gameType,e.next="2"===e.t0?8:"6"===e.t0?21:"10"===e.t0?34:47;break;case 8:return e.next=10,a.methods.aTimes().call();case 10:l=e.sent,s=1;case 12:if(!(s<=l)){e.next=20;break}return e.next=15,a.methods.aBets(s).call();case 15:c=e.sent,n.push(c);case 17:s++,e.next=12;break;case 20:return e.abrupt("break",48);case 21:return e.next=23,a.methods.bTimes().call();case 23:l=e.sent,i=1;case 25:if(!(i<=l)){e.next=33;break}return e.next=28,a.methods.bBets(i).call();case 28:u=e.sent,n.push(u);case 30:i++,e.next=25;break;case 33:return e.abrupt("break",48);case 34:return e.next=36,a.methods.cTimes().call();case 36:l=e.sent,o=1;case 38:if(!(o<=l)){e.next=46;break}return e.next=41,a.methods.cBets(o).call();case 41:m=e.sent,n.push(m);case 43:o++,e.next=38;break;case 46:case 47:return e.abrupt("break",48);case 48:e.next=55;break;case 50:return e.prev=50,e.t1=e.catch(4),p=r.a.createElement("div",{id:"error"},"\u6ca1\u80fd\u4ece\u5408\u7ea6\u5730\u5740\u4e0a\u627e\u5230\u6570\u636e\uff01"),this.setState({errorMsg:p}),e.abrupt("return");case 55:this.setState({Bets:n,loading:!1});case 56:case"end":return e.stop()}}),e,this,[[4,50]])})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this;return r.a.createElement("div",null,this.state.loading?r.a.createElement("div",{id:"loading"},this.state.errMsg):r.a.createElement("div",{className:"tableContainer"},r.a.createElement(R.a,{striped:!0,hover:!0,size:"sm",variant:"dark"},r.a.createElement("thead",{className:"thead-dark"},r.a.createElement("tr",null,r.a.createElement("td",{colSpan:"2",className:"text-center"},"\u672c\u8f6e\u5df2\u6295\u6ce8\u60c5\u51b5")),r.a.createElement("tr",{className:"text-center"},r.a.createElement("td",null,"\u5df2\u731c"),r.a.createElement("td",null,"\u7ade\u731c\u5730\u5740"))),r.a.createElement("tbody",null,this.state.Bets.map((function(t,a){return r.a.createElement("tr",{key:a},r.a.createElement("td",null,N(e.props.gameType,t.gnum)),r.a.createElement("td",null,T(t.addr)))}))))))}}]),a}(n.Component),W=function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).state={account:"",gcontract:"",gameType:n.props.gameType,Times:0,Bets:[],gt:[],r:A.r,nr:0,nextOwner:"",s:Math.round(Math.random()*(n.props.gameType-1)),g:0,contractAddress:"",owner:"",paidEvent:[],loading:!0,errorMsg:"\u6b63\u5728\u4ece\u667a\u80fd\u5408\u7ea6\u4e0a\u53d6\u5f97\u6570\u636e\uff0c\u8bf7\u7a0d\u7b49..."},n.handleChangeS=n.handleChangeS.bind(Object(f.a)(n)),n.handleChangeG=n.handleChangeG.bind(Object(f.a)(n)),n.placeBet=n.placeBet.bind(Object(f.a)(n)),n.loadBlockchainData=n.loadBlockchainData.bind(Object(f.a)(n)),n.reveal=n.reveal.bind(Object(f.a)(n)),n.submitNextOwner=n.submitNextOwner.bind(Object(f.a)(n)),n.changeNextOwner=n.changeNextOwner.bind(Object(f.a)(n)),n.changeNewR=n.changeNewR.bind(Object(f.a)(n)),n.submitNewR=n.submitNewR.bind(Object(f.a)(n)),n.acceptNextOwner=n.acceptNextOwner.bind(Object(f.a)(n)),n.getHouseFee=n.getHouseFee.bind(Object(f.a)(n)),n.killContract=n.killContract.bind(Object(f.a)(n)),n}return Object(i.a)(a,[{key:"componentWillMount",value:function(){this.loadBlockchainData()}},{key:"loadBlockchainData",value:function(){var e=Object(y.a)(g.a.mark((function e(){var t,a,n,l,s,c,i,u,o,m,p,d,h,E,b,y,f;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=[],"undefined"===typeof window.ethereum){e.next=9;break}return e.next=4,window.ethereum.request({method:"eth_requestAccounts"});case 4:t=e.sent,window.ethereum.on("accountsChanged",(function(e){window.location.reload()})),window.ethereum.on("chainChanged",(function(e){window.location.reload()})),e.next=12;break;case 9:return a=r.a.createElement("div",{id:"error"},"\u6ca1\u6709\u627e\u5230metamask\u63d2\u4ef6\uff0c\u8bf7\u67e5\u770b\u5e2e\u52a9\u9875\u9762\u3002"),this.setState({errorMsg:a}),e.abrupt("return");case 12:return e.next=14,window.ethereum.request({method:"eth_chainId"});case 14:if(n=e.sent,parseInt(n)===A.chainid){e.next=19;break}return l=r.a.createElement("div",{id:"error"},"\u8bf7\u5c06metamask\u5207\u6362\u5230\u4e3b\u7f51\u7edc\u6765\u6295\u6ce8\uff01"),this.setState({errorMsg:l}),e.abrupt("return");case 19:s=new x.a(window.ethereum),c=new s.eth.Contract(w.abi,A.contractAddress),i=this.state.Times,u=[],o=[],e.prev=24,e.t0=this.state.gameType,e.next="2"===e.t0?28:"6"===e.t0?44:"10"===e.t0?60:76;break;case 28:return e.next=30,c.methods.aTimes().call();case 30:i=e.sent,u=[0,1],m=1;case 33:if(!(m<=i)){e.next=43;break}return e.next=36,c.methods.aBets(m).call();case 36:(p=e.sent).gnum=parseInt(p.gnum),o.push(p),u.splice(u.indexOf(p.gnum),1);case 40:m++,e.next=33;break;case 43:return e.abrupt("break",77);case 44:return e.next=46,c.methods.bTimes().call();case 46:i=e.sent,u=[0,1,2,3,4,5],d=1;case 49:if(!(d<=i)){e.next=59;break}return e.next=52,c.methods.bBets(d).call();case 52:(h=e.sent).gnum=parseInt(h.gnum),o.push(h),u.splice(u.indexOf(h.gnum),1);case 56:d++,e.next=49;break;case 59:return e.abrupt("break",77);case 60:return e.next=62,c.methods.cTimes().call();case 62:i=e.sent,u=[0,1,2,3,4,5,6,7,8,9],E=1;case 65:if(!(E<=i)){e.next=75;break}return e.next=68,c.methods.cBets(E).call();case 68:(b=e.sent).gnum=parseInt(b.gnum),o.push(b),u.splice(u.indexOf(b.gnum),1);case 72:E++,e.next=65;break;case 75:case 76:return e.abrupt("break",77);case 77:e.next=84;break;case 79:return e.prev=79,e.t1=e.catch(24),y=r.a.createElement("div",{id:"error"},"ERROR:\u6ca1\u80fd\u4ece\u5408\u7ea6\u5730\u5740\u4e0a\u627e\u5230\u6570\u636e\uff01"),this.setState({errorMsg:y}),e.abrupt("return");case 84:return e.next=86,c.methods.owner().call();case 86:f=e.sent,this.setState({contractAddress:A.contractAddress,owner:f,account:t[0],Times:i,gcontract:c,Bets:o,gt:u,g:u[0],s:Math.round(Math.random()*(this.props.gameType-1)),loading:!1,reload:!1});case 88:case"end":return e.stop()}}),e,this,[[24,79]])})));return function(){return e.apply(this,arguments)}}()},{key:"handleChangeS",value:function(e){this.setState({s:e.target.value})}},{key:"handleChangeG",value:function(e){this.setState({g:parseInt(e.target.value)}),this.setState({s:Math.round(Math.random()*(this.props.gameType-1))})}},{key:"placeBet",value:function(){var e=Object(y.a)(g.a.mark((function e(t){var a,n,r,l=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),this.setState({loading:!0,errorMsg:"\u7b49\u5f85\u4ea4\u6613\u5b8c\u6210\u4e2d\uff0c\u5b8c\u6210\u540e\u4f1a\u81ea\u52a8\u5237\u65b0\uff0c\u4e0d\u8981\u5f3a\u5236\u5237\u65b0"}),a=this.state.g,n=this.state.s,r=v.toWei("0.1","ether"),n^=this.state.r,e.t0=this.state.gameType,e.next="2"===e.t0?9:"6"===e.t0?12:"10"===e.t0?15:18;break;case 9:return e.next=11,this.state.gcontract.methods.placeBetA(n,a).send({from:this.state.account,value:r}).on("confirmation",(function(e,t){3===e&&(l.setState({reload:!0}),l.loadBlockchainData())})).on("error",(function(e){l.setState({loading:!1})}));case 11:return e.abrupt("break",19);case 12:return e.next=14,this.state.gcontract.methods.placeBetB(n,a).send({from:this.state.account,value:r}).on("confirmation",(function(e,t){3===e&&(l.setState({reload:!0}),l.loadBlockchainData())})).on("error",(function(e){l.setState({loading:!1})}));case 14:return e.abrupt("break",19);case 15:return e.next=17,this.state.gcontract.methods.placeBetC(n,a).send({from:this.state.account,value:r}).on("confirmation",(function(e,t){3===e&&(l.setState({reload:!0}),l.loadBlockchainData())})).on("error",(function(e){l.setState({loading:!1})}));case 17:case 18:return e.abrupt("break",19);case 19:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"reveal",value:function(){var e=Object(y.a)(g.a.mark((function e(t){var a=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),this.setState({loading:!0,errorMsg:"\u7b49\u5f85\u4ea4\u6613\u5b8c\u6210\uff0c\u5b8c\u6210\u540e\u5c06\u81ea\u52a8\u5237\u65b0..."}),this.state.Times!==this.state.gameType){e.next=18;break}e.t0=this.state.gameType,e.next="2"===e.t0?6:"6"===e.t0?9:"10"===e.t0?12:15;break;case 6:return e.next=8,this.state.gcontract.methods.revealA().send({from:this.state.account}).on("confirmation",(function(e,t){3===e&&(a.setState({reload:!0}),a.loadBlockchainData())})).on("error",(function(e){a.setState({loading:!1})}));case 8:return e.abrupt("break",16);case 9:return e.next=11,this.state.gcontract.methods.revealB().send({from:this.state.account}).on("confirmation",(function(e,t){3===e&&(a.setState({reload:!0}),a.loadBlockchainData())})).on("error",(function(e){a.setState({loading:!1})}));case 11:return e.abrupt("break",16);case 12:return e.next=14,this.state.gcontract.methods.revealC().send({from:this.state.account}).on("confirmation",(function(e,t){3===e&&(a.setState({reload:!0}),a.loadBlockchainData())})).on("error",(function(e){a.setState({loading:!1})}));case 14:case 15:return e.abrupt("break",16);case 16:e.next=19;break;case 18:alert("\u76ee\u524d\u4eba\u6570\u8fd8\u4e0d\u8db3\u591f\u5f00\u5956!");case 19:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){return r.a.createElement(j.a,{md:"auto"},r.a.createElement(M.a,{id:"margin-top"},r.a.createElement(S.a,null,r.a.createElement("div",{className:"small-font"},"\u4f60\u5f53\u524d\u7684\u5730\u5740\u662f\uff1a",r.a.createElement("a",{href:"https://bscscan.com/address/"+this.state.account,target:"_blank",rel:"noopener noreferrer"},this.state.account))),r.a.createElement(S.a,{className:"text-right"},r.a.createElement("div",{className:"small-font"},"\u5408\u7ea6\u5f53\u524d\u5730\u5740\u662f\uff1a",r.a.createElement("a",{href:"https://bscscan.com/address/"+this.state.contractAddress,target:"_blank",rel:"noopener noreferrer"},this.state.contractAddress)))),r.a.createElement(M.a,null,r.a.createElement(S.a,{lg:!0},r.a.createElement("div",{id:"info"},r.a.createElement("h4",{className:"text-center"},O(this.state.gameType)),r.a.createElement("hr",null),r.a.createElement("small",null,"\u51d1\u591f",this.state.gameType,"\u4eba\u5c31\u5f00\u5956\u3002",r.a.createElement("br",null),"\u6bcf\u6ce8\u4ef7\u683c\uff1a",r.a.createElement("strong",null,"0.100 BNB"),r.a.createElement("br",null),"\u731c\u4e2d\u83b7\u5f97\uff1a",r.a.createElement("strong",null,Math.round(98*this.state.gameType)/1e3," BNB"),r.a.createElement("br",null),"\u731c\u4e2d\u51e0\u7387\uff1a",Math.round(1/this.state.gameType*1e4)/100+"%",r.a.createElement("br",null))),this.state.loading?r.a.createElement("div",{id:"loading"},this.state.errorMsg):this.state.Times!==this.state.gameType?r.a.createElement(D.a,{onSubmit:this.placeBet},r.a.createElement("div",null,r.a.createElement("small",null,"\u7b2c\u4e00\u6b65\uff1a\u9009\u4e00\u4e2a\u5e78\u8fd0\u6570\u5b57\uff1a"),r.a.createElement("br",null),r.a.createElement(C,{gameType:this.state.gameType,guessTable:this.state.gt,options:this.state.g,controlFunc:this.handleChangeG})),r.a.createElement("div",null,r.a.createElement("label",{htmlFor:"randomSeed"},r.a.createElement("small",null,"\u7b2c\u4e8c\u6b65\uff1a\u4ece0-",this.state.gameType-1,"\u4e4b\u95f4\u6311\u9009\u4e00\u4e2a\u968f\u673a\u6570\uff0c\u8fd9\u4e2a\u6570\u5f00\u5956\u65f6\u516c\u5e03\uff0c\u7528\u6765\u8ba1\u7b97\u6700\u7ec8\u5e78\u8fd0\u6570\u5b57\u7684\u3002"),r.a.createElement("br",null),r.a.createElement("input",{type:"number",onChange:this.handleChangeS,value:this.state.s,id:"randomSeed",placeholder:"0",min:"0",max:this.state.gameType-1,required:!0}))),r.a.createElement("div",null,r.a.createElement(_.a,{type:"submit",variant:"primary"},"\u6295\u6ce8"))):r.a.createElement("form",{onSubmit:this.reveal,className:"text-center"},r.a.createElement(_.a,{type:"submit",variant:"danger",size:"lg"},"\u5f00\u5956\uff01"),r.a.createElement("br",null),r.a.createElement("p",{className:"text-left"},"\u5f00\u5956\u65f6\u95f4\u4e5f\u662f\u968f\u673a\u6570\uff0c\u5c06\u6bcf\u4e2a\u4eba\u63d0\u4f9b\u7684\u79d8\u5bc6\u6570\u5b57\u52a0\u8d77\u6765\uff0c\u518d\u52a0\u4e0a\u5f00\u5956\u65f6\u95f4\uff0c\u5c31\u662f\u4e2d\u5956\u53f7\u7801\u3002")),r.a.createElement(U,{gameType:this.state.gameType,reload:this.state.reload})),r.a.createElement(S.a,{lg:!0},r.a.createElement(I,{gameType:this.state.gameType,reload:this.state.reload}),r.a.createElement(F,{reload:this.state.reload})),r.a.createElement(S.a,null,r.a.createElement(L,{reload:this.state.reload}))),r.a.createElement("hr",null),""!==this.state.account&&this.state.account.toUpperCase()===this.state.owner.toUpperCase()?r.a.createElement(j.a,{id:"manager"},"\u8fd9\u91cc\u662f\u7ba1\u7406\u533a\uff0c\u53ea\u6709\u5408\u540c\u7684owner\u53ef\u4ee5\u770b\u5230\uff1a",r.a.createElement("br",null),r.a.createElement("div",null,"\u5408\u7ea6\u5f53\u524dOwner\uff1a",r.a.createElement("small",null,this.state.owner)),r.a.createElement(M.a,null,r.a.createElement(S.a,{lg:!0},r.a.createElement(D.a,{onSubmit:this.submitNextOwner},r.a.createElement(D.a.Group,{controlId:"formNextOwner"},r.a.createElement(D.a.Label,null,"NextOwner"),r.a.createElement(D.a.Control,{type:"text",onChange:this.changeNextOwner,value:this.state.nextOwner}),r.a.createElement(D.a.Text,{className:"text-muted"},"\u4fee\u6539\u540e\u9700\u8981\u5c06param.json\u7684nextowner\u503c\u4e5f\u4e00\u8d77\u8bbe\u7f6e\uff0c\u4e0d\u7136nextowner\u770b\u4e0d\u5230\u63a5\u6536\u6309\u94ae\u3002")),r.a.createElement(_.a,{variant:"primary",type:"submit"},"\u5c06\u5408\u540c\u8f6c\u4ea4\u7ed9\u6b64\u5730\u5740"))),r.a.createElement(S.a,null,r.a.createElement(D.a,{onSubmit:this.submitNewR},r.a.createElement(D.a.Group,{controlId:"formNextOwner"},r.a.createElement(D.a.Label,null,"\u8fd9\u91cc\u53ef\u4ee5\u4fee\u6539\u4e0b\u4e00\u4e2a\u52a0\u5bc6\u7528\u7684r(0-999)\uff1a"),r.a.createElement(D.a.Control,{type:"number",min:"0",max:"999",step:"1",onChange:this.changeNewR,value:this.state.nr}),r.a.createElement(D.a.Text,{className:"text-muted"},"\u8f93\u5165\u7684\u6570\u5b57\u4ecb\u4e8e0-100\u4e4b\u95f4\u5373\u53ef\uff0c\u4fee\u6539\u5b8c\u8bb0\u5f97\u5c06param.json\u7684r\u624b\u52a8\u4fee\u6539\u3002")),r.a.createElement(_.a,{variant:"primary",type:"submit"},"\u5c06\u65b0\u7684r\u503c\u8bbe\u7f6e\u4e3a\u8fd9\u4e2a")))),r.a.createElement(M.a,null,r.a.createElement(S.a,{lg:!0},r.a.createElement(_.a,{variant:"primary",onClick:this.getHouseFee,id:"margin-top"},"\u5c06\u4f63\u91d1\u53d1\u7ed9\u5408\u7ea6Owner")),r.a.createElement(S.a,null,r.a.createElement(_.a,{variant:"primary",onClick:this.killContract,id:"margin-top"},"\u70b9\u51fb\u6b64\u6309\u94ae\u5c06\u5220\u9664\u5408\u540c\uff08\u8c28\u614e\uff09")))):null,""!==this.state.account&&this.state.account===A.nextOwner?r.a.createElement(_.a,{variant:"primary",onClick:this.acceptNextOwner},"NextOwner\u70b9\u51fb\u63a5\u53d7\u5408\u540c"):null)}},{key:"changeNextOwner",value:function(e){this.setState({nextOwner:e.target.value})}},{key:"submitNextOwner",value:function(e){e.preventDefault(),this.state.account.toUpperCase()===this.state.owner.toUpperCase()?v.isAddress(this.state.nextOwner)?this.state.gcontract.methods.changeOwner(this.state.nextOwner).send({from:this.state.account}).on("confirmation",(function(e,t){3===e&&alert("\u64cd\u4f5c\u6210\u529f\u4e86\u7b2c\u4e00\u6b65\uff0c\u4e0b\u4e00\u6b65\u9700\u8981\u65b0Owner\u63a5\u53d7\u624d\u80fd\u5b8c\u6210")})):alert("\u4f60\u63d0\u4f9b\u7684\u5730\u5740\u6ca1\u6709\u7ecf\u8fc7\u5408\u6cd5\u6027\u68c0\u67e5\uff0c\u8bf7\u518d\u4ed4\u7ec6\u6838\u5bf9"):alert("\u4f60\u4e0d\u662f\u5408\u540c\u7684\u62e5\u6709\u8005\uff0c\u5f3a\u5236\u6267\u884c\u667a\u80fd\u5408\u7ea6\u4e5f\u4f1a\u62d2\u7edd\uff0c\u8bf7\u56de\u5427\uff01")}},{key:"changeNewR",value:function(e){this.setState({nr:e.target.value})}},{key:"submitNewR",value:function(e){e.preventDefault(),this.state.account.toUpperCase()===this.state.owner.toUpperCase()?this.state.gcontract.methods.changeR(this.state.nr).send({from:this.state.account}).on("confirmation",(function(e,t){3===e&&alert("\u64cd\u4f5c\u6210\u529f\uff0c\u65b0\u7684r\u503c\u5df2\u4fee\u6539\uff0c\u52a1\u5fc5\u8bb0\u5f97\u4fee\u6539param.json\u6587\u4ef6\u4e2d\u7684r\uff01")})):alert("\u4f60\u4e0d\u662f\u5408\u540c\u7684\u62e5\u6709\u8005\uff0c\u5c31\u7b97\u7ed5\u8fc7\u8fd9\u4e00\u5173\u667a\u80fd\u5408\u7ea6\u4e5f\u4f1a\u62d2\u7edd\uff0c\u8bf7\u56de\u5427\uff01")}},{key:"acceptNextOwner",value:function(){this.state.account.toUpperCase()===A.nextOwner.toUpperCase()?this.state.gcontract.methods.acceptNextOwner().send({from:this.state.account}).on("confirmation",(function(){alert("\u64cd\u4f5c\u6210\u529f\uff0c\u606d\u559c\u4f60\u6210\u4e3a\u65b0\u7684Owner\uff01")})):alert("Sorry\uff0c\u4f60\u4e0d\u662f\u50a8\u541b\u3002")}},{key:"getHouseFee",value:function(){this.state.account.toUpperCase()===this.state.owner.toUpperCase()?this.state.gcontract.methods.withDrawHourseEdge().send({from:this.state.account}).on("confirmation",(function(e,t){3===e&&alert("\u64cd\u4f5c\u6210\u529f\uff0c\u4f63\u91d1\u5df2\u7ecf\u8f6c\u8d26\u7ed9\u4e86\u5408\u540c\u6240\u6709\u8005\uff01")})):alert("\u4f60\u4e0d\u662f\u5408\u540c\u7684\u62e5\u6709\u8005\uff0c\u5c31\u7b97\u7ed5\u8fc7\u8fd9\u4e00\u5173\u667a\u80fd\u5408\u7ea6\u4e5f\u4f1a\u62d2\u7edd\uff0c\u8bf7\u56de\u5427\uff01")}},{key:"killContract",value:function(){this.state.account.toUpperCase()===this.state.owner.toUpperCase()?0===this.state.Times?window.confirm("\u4f60\u786e\u5b9a\u8981\u5220\u9664\u5408\u540c\u5417\uff1f\u6ce8\u610f\u6b64\u64cd\u4f5c\u4e0d\u80fd\u64a4\u9500\uff0c\u5c06\u5220\u9664\u5408\u540c\uff0c\u5e76\u5c06\u5408\u540c\u4f59\u989d\u7ed9Owner")&&this.state.gcontract.methods.kill().send({from:this.state.account}):alert("\u76ee\u524d\u7684\u6e38\u620f\u672a\u5f00\u5956\uff0c\u8bf7\u7b49\u5f85\u4e00\u4e0b"):alert("\u522b\u95f9\uff0c\u4f60\u4e0d\u662f\u5408\u540c\u7684owner\uff01")}}]),a}(n.Component),z=function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){return r.a.createElement("div",{className:"container",id:"help"},r.a.createElement("h4",null,r.a.createElement("u",null,"\u5982\u4f55\u5b89\u88c5MetaMask\uff1f")),r.a.createElement("div",{id:"answer"},"\u672c\u7f51\u7ad9\u57fa\u4e8e\u5e01\u5b89\u94fe\u7684\u667a\u80fd\u5408\u7ea6\uff0c\u6240\u4ee5\u9700\u8981\u4f60\u7684\u6d4f\u89c8\u5668\u5b89\u88c5metamask\u63d2\u4ef6\u624d\u80fd\u8fd0\u884c\uff0c\u5177\u4f53\u539f\u6765\u53ef\u4ee5\u81ea\u884c\u7f51\u7edc\u67e5\u8be2\u5b66\u4e60\u3002",r.a.createElement("br",null),"metamask\u7684\u5b98\u65b9\u7f51\u7ad9\u662f:",r.a.createElement("a",{href:"https://metamask.io/",target:"_blank",rel:"noopener noreferrer"},"https://metamask.io/"),r.a.createElement("br",null),"\u4f60\u53ef\u4ee5\u5728\u5b98\u65b9\u7f51\u7ad9\u4e86\u89e3\u5b83\u7684\u4ecb\u7ecd\uff0c\u4ee5\u4e0b\u5217\u4e3e\u4e00\u4e9b\u4e3b\u8981\u7684\u5b89\u88c5\u65b9\u6cd5\u3002",r.a.createElement("br",null),r.a.createElement("ul",null,r.a.createElement("li",null,"Android\u624b\u673a\uff1a\u5efa\u8bae\u5b89\u88c5trust wallet\u5c31\u53ef\u4ee5\uff0c\u5b89\u88c5\u540e\u914d\u7f6e\u597d\u5e01\u5b89\u667a\u80fd\u94fe\uff0c\u7136\u540e\u5728Dapp\u9875\u9762\u8f93\u5165\u672c\u7f51\u7ad9",r.a.createElement("a",{href:"https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",target:"_blank",rel:"noopener noreferrer"},"google play\u4e0b\u8f7d\u5730\u5740"),r.a.createElement("br",null),"\u5982\u679c\u4f60\u8bbf\u95ee\u4e0d\u4e86google\uff0c\u672c\u7ad9\u4e5f\u6709\u4e2a\u5907\u4efd\uff0c\u4e0b\u8f7d\u5b89\u88c5\u5c31\u884c\uff0c\u6216\u8005\u4f60\u81ea\u884c\u67e5\u627e\u5b89\u88c5\u5747\u53ef\u4ee5\uff1a",r.a.createElement("a",{href:"./dl/trust_wallet_latest.apk",target:"_blank"},"\u70b9\u51fb\u4e0b\u8f7d")),r.a.createElement("li",null,"\u73b0\u5728android\u624b\u673a\u4e5f\u6709metamask\uff0c\u5b89\u88c5\u540e\u6253\u5f00\u6b64\u7f51\u7ad9\u5c31\u884c",r.a.createElement("a",{href:"https://play.google.com/apps/testing/io.metamask",target:"_blank",rel:"noopener noreferrer"},"google play\u4e0b\u8f7d\u5730\u5740")),r.a.createElement("li",null,"\u82f9\u679c\u624b\u673a\u4e5f\u53ef\u4ee5\u641c\u7d22trust wallet\u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u5e01\u5b89\u667a\u80fd\u94fe\uff1a",r.a.createElement("a",{href:"https://apps.apple.com/app/trust-ethereum-wallet/id1288339409",target:"_blank",rel:"noopener noreferrer"},"apple store\u4e0b\u8f7d\u5730\u5740")),r.a.createElement("li",null,"\u7535\u8111\u4e0aChrome\u6d4f\u89c8\u5668\u6269\u5c55\u4e0b\u8f7d\u94fe\u63a5\u5730\u5740\uff1a",r.a.createElement("a",{href:"https://chrome.google.com/webstore/detail/nkbihfbeogaeaoehlefnkodbefgpgknn",target:"_blank",rel:"noopener noreferrer"},"\u5546\u5e97\u5730\u5740")),r.a.createElement("li",null,"\u7535\u8111\u4e0a\u706b\u72d0\u6d4f\u89c8\u5668\u7684\u6269\u5c55\u4e0b\u8f7d\u94fe\u63a5\u5730\u5740\uff1a",r.a.createElement("a",{href:"https://addons.mozilla.org/en-US/firefox/addon/ether-metamask/",target:"_blank",rel:"noopener noreferrer"},"\u5546\u5e97\u5730\u5740")),r.a.createElement("li",null,"\u7535\u8111\u4e0aOpera\u6d4f\u89c8\u5668\u6269\u5c55\u4e0b\u8f7d\u94fe\u63a5\u5730\u5740\uff1a",r.a.createElement("a",{href:"https://addons.opera.com/en/extensions/details/metamask/",target:"_blank",rel:"noopener noreferrer"},"\u5546\u5e97\u5730\u5740")))," "),r.a.createElement("h4",null,r.a.createElement("u",null,"\u672c\u5e73\u53f0\u7684\u968f\u673a\u6570\u662f\u5982\u4f55\u4ea7\u751f\u7684\uff1f")),r.a.createElement("div",{id:"answer"},"1\u3001\u6bcf\u4e2a\u4eba\u6295\u6ce8\u7684\u65f6\u5019\u4f1a\u63d0\u4f9b\u4e00\u4e2a\u6570\u5b57\uff0c\u8fd9\u4e2a\u6570\u5b57\u4f60\u53ef\u4ee5\u968f\u4fbf\u6765\u9009\uff0c\u7136\u540e\u8fd9\u4e2a\u6570\u5b57\u4f1a\u52a0\u5bc6\u540e\u5b58\u50a8\u5230\u667a\u80fd\u5408\u7ea6\u4e0a\uff0c\u8c01\u4e5f\u4e0d\u80fd\u67e5\u770b\uff0c\u66f4\u4e0d\u80fd\u4fee\u6539\u3002",r.a.createElement("br",null),"2\u3001\u5f53\u6e38\u620f\u51d1\u8db3\u4e86\u5f00\u5956\u4eba\u6570\uff0c\u5c31\u53ef\u4ee5\u5f00\u5956\u3002",r.a.createElement("br",null),"3\u3001\u5f00\u5956\u65f6\uff0c\u6211\u4eec\u7528\u5f00\u5956\u65f6\u95f4\u7684\u79d2\u6570\u53d6\u4f59\uff0c\u7136\u540e\u548c\u667a\u80fd\u5408\u7ea6\u4e0a\u6240\u6709\u4eba\u63d0\u4f9b\u7684\u968f\u673a\u6570\u52a0\u8d77\u6765\uff0c\u5f97\u5230\u6700\u7ec8\u7684\u968f\u673a\u6570\u3002",r.a.createElement("br",null),"4\u3001\u5f00\u5956\u65f6\u95f4\u7531\u7528\u6237\u51b3\u5b9a\uff0c\u6240\u4ee5\u6211\u4eec\u628a\u6240\u6709\u968f\u673a\u6570\u7684\u4ea7\u751f\u90fd\u4ea4\u7ed9\u7528\u6237\uff0c\u5e76\u5728\u5f00\u5956\u540e\u5c55\u793a\u968f\u673a\u6570\u6765\u6e90\u8fc7\u7a0b\uff0c\u516c\u5e73\u516c\u6b63\u3002",r.a.createElement("br",null),"\u4f60\u53ef\u4ee5\u5728\u6295\u6ce8\u9875\u9762\u770b\u5230\u4e0a\u4e00\u6b21\u5f00\u5956\u7684\u8ba1\u7b97\u8fc7\u7a0b\uff0c\u4ee5\u4fbf\u5bf9\u4ee5\u4e0a\u8fc7\u7a0b\u8fdb\u4e00\u6b65\u7406\u89e3\u3002"),r.a.createElement("h4",null,r.a.createElement("u",null,"\u5e73\u53f0\u80fd\u51b3\u5b9a\u7ed3\u679c\u5417\uff1f")),r.a.createElement("div",{id:"answer"},r.a.createElement("strong",null,"\u5f53\u7136\u4e0d\u80fd\uff01"),"\u5373\u4f7f\u5e73\u53f0\u77e5\u9053\u4e86\u4f60\u7684\u968f\u673a\u6570\uff0c\u4e5f\u65e0\u6cd5\u9884\u6d4b\u5f00\u5956\u65f6\u95f4\uff0c\u6240\u4ee5\u65e0\u6cd5\u786e\u5b9a\u6700\u7ec8\u7684\u968f\u673a\u6570\uff0c\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u628a\u5f00\u5956\u529f\u80fd\u4ea4\u7ed9\u5ba2\u6237\u7684\u539f\u56e0\u3002\u6211\u4eec\u5c31\u662f\u8981\u5229\u7528\u667a\u80fd\u5408\u7ea6\uff0c\u505a\u4e00\u4e2a\u65e0\u6cd5\u4f5c\u5f0a\uff0c\u53c8\u7b80\u5355\u7684\u6d88\u9063\u7a0b\u5e8f\uff0c\u8ba9\u5927\u5bb6\u611f\u53d7\u5230\u7b80\u5355\u548c\u516c\u5e73\u3002"),r.a.createElement("h4",null,r.a.createElement("u",null,"\u65f7\u5de5\u80fd\u5426\u4f5c\u5f0a\uff1f")),r.a.createElement("div",{id:"answer"},"\u7406\u8bba\u4e0a\u975e\u5e38\u725b\u903c\u7684\u77ff\u5de5\u4e5f\u8bb8\u53ef\u4ee5\u63a7\u5236\u5f00\u5956\u65f6\u95f4\uff08\u4ea4\u6613\u65f6\u95f4\uff09\uff0c",r.a.createElement("strong",null,"\u4f46\u662f\uff1a"),r.a.createElement("br",null),"\u4e00\u3001\u65f7\u5de5\u9700\u8981\u77e5\u9053\u6bcf\u4e00\u4e2a\u4eba\u7684\u968f\u673a\u6570\uff0c\u8fd9\u4e0d\u53ef\u80fd\uff1b",r.a.createElement("br",null),"\u4e8c\u3001\u65f7\u5de5\u9700\u8981\u635f\u5931\u51fa\u5757\u5956\u52b1\u3002",r.a.createElement("br",null),"\u53e6\u5916\uff0c\u5bf9\u4e8e\u6700\u591a\u53ea\u80fd\u83b7\u5f970.9\u4e2a\u5e01\u5b89\u5e01\u7684\u6e38\u620f\uff0c\u53bb\u635f\u5931\u51fa\u5757\u5956\u52b1\uff0c\u660e\u663e\u662f\u4e0d\u5408\u7b97\u7684\u4e70\u5356\uff0c\u8fd9\u5c31\u662f\u672c\u6e38\u620f\u8ba9\u7528\u6237\u6311\u9009\u968f\u673a\u6570\uff0c\u540c\u65f6\u4e5f\u52a0\u5165\u5f00\u5956\u65f6\u95f4\u7684\u539f\u56e0\u3002\u8fd9\u6837\u4e0d\u7ba1\u7f51\u7ad9\u3001\u7528\u6237\u3001\u77ff\u5de5\u90fd\u65e0\u6cd5\u5728\u5f00\u5956\u524d\u786e\u5b9a\u6700\u7ec8\u968f\u673a\u6570\u3002"),r.a.createElement("h4",null,r.a.createElement("u",null,"\u6211\u9009\u4e86\u5e78\u8fd0\u6570\u5b57\uff0c\u4e3a\u4ec0\u4e48\u8fd8\u8981\u6211\u63d0\u4f9b\u968f\u673a\u6570\u5b57\uff1f")),r.a.createElement("div",{id:"answer"},"\u56e0\u4e3a\u4f60\u9009\u4e86\u5e78\u8fd0\u6570\u5b57\u4ee5\u540e\uff0c\u522b\u4eba\u5c31\u4e0d\u80fd\u9009\u8fd9\u4e2a\u6570\u5b57\uff0c\u4e5f\u5c31\u662f\u8bf4\u4f60\u9009\u7684\u5e78\u8fd0\u6570\u5b57\u662f\u516c\u5f00\u7684\uff0c\u8fd9\u5c31\u5c06\u6240\u6709\u7684\u968f\u673a\u6570\u90fd\u6307\u671b\u5728\u5f00\u5956\u533a\u5757\u7684\u65f6\u95f4\uff0c\u4e3a\u4e86\u9884\u9632\u90a3\u4e48\u4e00\u70b9\u70b9\u7684\u77ff\u5de5\u4f5c\u5f0a\u53ef\u80fd\uff0c\u6240\u4ee5\u6211\u4eec\u8ba9\u60a8\u518d\u9009\u4e2a\u6570\u5b57\uff0c\u6211\u4eec\u628a\u4ed6\u85cf\u5230\u5408\u7ea6\u91cc\uff0c\u7531\u4e8e\u77ff\u5de5\u4e0d\u77e5\u9053\u4f60\u7684\u968f\u673a\u968f\u673a\u6570\u5b57\uff0c\u6240\u4ee5\u4e5f\u5c31\u6ca1\u6cd5\u4f5c\u5f0a\u4e86\u3002\u603b\u4e4b\uff0c\u5c31\u662f\u4e3a\u4e86\u516c\u5e73\uff0c\u8ba9\u4efb\u4f55\u4eba\u90fd\u6ca1\u6709\u673a\u4f1a\u4f5c\u5f0a\u3002"),r.a.createElement("h4",null,r.a.createElement("u",null,"\u5982\u4f55\u9a8c\u8bc1\u6211\u8bf4\u7684\u662f\u771f\u7684\uff1f")),r.a.createElement("div",{id:"answer"},"\u6b64\u7f51\u7ad9\u4ec5\u662f\u667a\u80fd\u5408\u7ea6\u7684\u524d\u53f0\u7a0b\u5e8f\uff0c\u771f\u6b63\u7684\u7a0b\u5e8f\u8fd0\u884c\u7684\u4ee5\u592a\u574a\u4e0a\uff0c\u5408\u7ea6\u5730\u5740\u662f\uff1a",r.a.createElement("br",null),r.a.createElement("a",{href:"https://etherscan.io/address/0xF847141344c4DdeE0257E29c6206fd19823561b0",target:"_blank",rel:"noopener noreferrer"},"0xF847141344c4DdeE0257E29c6206fd19823561b0"),r.a.createElement("br",null),"\u4f60\u53ef\u4ee5\u70b9\u51fb\u4e0a\u65b9\u94fe\u63a5\uff0c\u53bbetherscan.io\u7f51\u7ad9\u67e5\u770b\u6b64\u5408\u7ea6\u7684\u6bcf\u4e00\u7b14\u4ea4\u6613\u7ec6\u8282\uff0c\u672c\u7f51\u7ad9\u6e90\u7801\u516c\u5f00\u3002\u5982\u679c\u4f60\u6709\u4e00\u5b9a\u7f16\u7a0b\u57fa\u7840\uff0c\u4e5f\u7f51\u7ad9\u4e5f\u63d0\u4f9b\u6b64\u524d\u53f0\u6e90\u7801\uff0c\u4f60\u4e0b\u8f7d\u540e\u81ea\u884c\u642d\u5efa\u670d\u52a1\u5668\uff0c\u5c31\u53ef\u4ee5\u4e0e\u667a\u80fd\u5408\u7ea6\u901a\u8baf\u3002"),r.a.createElement("h4",null,"\u4ea4\u6613\u51fa\u9519\u4e86\uff1f"),r.a.createElement("div",{id:"answer"},"\u6709\u51e0\u79cd\u53ef\u80fd\uff1a",r.a.createElement("br",null),r.a.createElement("ul",null,r.a.createElement("li",null,"\u4e0b\u6ce8\u73af\u8282\uff1a\u4f60\u53ef\u80fd\u4e0e\u5176\u4ed6\u4eba\u9009\u4e86\u540c\u4e00\u4e2a\u6570\u800c\u522b\u4eba\u5feb\uff0c\u51fa\u9519\u540e\u5237\u65b0\u9875\u9762\u770b\u662f\u5426\u4f60\u521a\u9009\u7684\u6570\u5b57\u5df2\u7ecf\u4e0d\u53ef\u9009\u4e86\u3002"),r.a.createElement("li",null,"\u5f00\u5956\u73af\u8282\uff1a\u6709\u53ef\u80fd\u51e0\u4e2a\u4eba\u540c\u65f6\u70b9\u51fb\u4e86\u5f00\u5956\uff0c\u6709\u4e9b\u4eba\u5feb\uff0c\u6240\u4ee5\u5237\u65b0\u9875\u9762\u770b\u770b\u3002"),r.a.createElement("li",null,"\u4ea4\u6613\u672a\u5b8c\u6210\u7684\u65f6\u5019\u4f60\u5237\u65b0\u4e86\u9875\u9762\uff0c\u7136\u540e\u91cd\u65b0\u63d0\u4ea4\u4e86\u4ea4\u6613\uff0c\u8fd9\u6837\u7684\u8bdd\u540e\u9762\u7684\u4ea4\u6613\u5c06\u5931\u8d25\u3002"))),r.a.createElement("h4",null,r.a.createElement("u",null,"\u672c\u7f51\u7ad9\u7684\u6e90\u7801\u4e0b\u8f7d\u53ca\u4f7f\u7528\u65b9\u6cd5\uff1a")),r.a.createElement("div",{id:"answer"},"\u7531\u4e8e\u6b64\u5408\u7ea6\u8fd0\u884c\u5728\u5e01\u5b89\u667a\u80fd\u94fe\u4e0a\uff0c\u6b64\u7f51\u7ad9\u53ea\u662f\u667a\u80fd\u5408\u7ea6\u7684\u524d\u53f0\uff0c\u7f51\u7ad9\u4ec5\u7531javascript\u6784\u6210\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u6e90\u7801\uff0c \u7136\u540e\u5728\u672c\u5730\u505a\u4e00\u4e2a\u670d\u52a1\u5668\u76f4\u63a5\u4e0e\u667a\u80fd\u5408\u7ea6\u901a\u8baf\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u5982\u679c\u4f60\u6709\u5174\u8da3\uff0c\u4e5f\u53ef\u4ee5\u67e5\u770b\u6e90\u7801\u3002\u4e0b\u9762\u63d0\u4f9b\u672c\u5730\u8fd0\u884c \u7684\u4e00\u4e9b\u7b80\u5355\u6b65\u9aa4\uff1a"),r.a.createElement("ul",null,r.a.createElement("li",null,"\u5b89\u88c5nodejs\uff0c\u7f51\u5740nodejs.org"),r.a.createElement("li",null,"\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u8b6c\u5982D:\\playnumbers"),r.a.createElement("li",null,"\u5c06\u672c\u7f51\u7ad9\u6e90\u7801\u4e0b\u8f7d\u89e3\u538b\u5230\u6b64\u6587\u4ef6\u5939",r.a.createElement("a",{href:"./dl/build.zip",target:"_blank"},"\u4e0b\u8f7d\u94fe\u63a5")),r.a.createElement("li",null,"\u5728\u6b64\u6587\u4ef6\u5939\u4e0b\u8fd0\u884c",r.a.createElement("code",null," npm install serve "),"\u6765\u5b89\u88c5\u7b80\u5355\u7684\u672c\u5730\u670d\u52a1\u5668"),r.a.createElement("li",null,"\u8b6c\u5982\u4f60\u4e0b\u8f7d\u7684\u6e90\u7801\u5728D:\\playNumbers\\build\uff0c\u5219\u5728D:\\playNumbers\u6587\u4ef6\u5939\u4e0b\u8fd0\u884c",r.a.createElement("code",null,"serve -s build")),r.a.createElement("li",null,"\u7528\u6d4f\u89c8\u5668\u6253\u5f00localhost:5000\uff0c\u5373\u53ef\u8fd0\u884c")),r.a.createElement("h4",null,r.a.createElement("u",null,"\u53d1\u73b0Bug\u6216\u8005\u597d\u7684\u5efa\u8bae\u600e\u4e48\u8054\u7cfb\uff1f")),r.a.createElement("div",{id:"answer"},"\u7535\u62a5\u7fa4\uff1a",r.a.createElement("a",{href:"https://t.me/letmeout_dot_xyz",target:"_blank",rel:"noopener noreferrer"},"t.me/playnumbers0xyz")," "))}}]),a}(n.Component),P=a(504),H=a(506),V=(a(491),function(e){Object(u.a)(a,e);var t=Object(o.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){return r.a.createElement(m.a,null,r.a.createElement(P.a,{className:"navbar-custom",expand:"lg",fixed:"top"},r.a.createElement(P.a.Brand,{href:"/main"},r.a.createElement("img",{src:"/logo.png",width:"60",height:"60",alt:"LOGO"})),r.a.createElement(P.a.Toggle,{"aria-controls":"basic-navbar-nav"}),r.a.createElement(P.a.Collapse,{id:"basic-navbar-nav"},r.a.createElement(H.a,{className:"mr-auto"},r.a.createElement(H.a.Link,{href:"/main"},"\u4e3b\u9875"),r.a.createElement(H.a.Link,{href:"/gameA"},"\u8d4c\u5927\u5c0f"),r.a.createElement(H.a.Link,{href:"/gameB"},"\u73a9\u9ab0\u5b50"),r.a.createElement(H.a.Link,{href:"/gameC"},"\u731c\u70b9\u6570"),r.a.createElement(H.a.Link,{href:"/help"},"\u5e2e\u52a9")),r.a.createElement("div",{className:"mr-sm-2"},r.a.createElement(H.a.Link,{href:"https://t.me/letmeout_dot_xyz",target:"_blank"},r.a.createElement("img",{src:"./img/tg.svg",width:"30",height:"30",alt:"telegram"}))))),r.a.createElement(p.a,{exact:!0,path:"/"},r.a.createElement(E,null)),r.a.createElement(p.a,{path:"/main"},r.a.createElement(E,null)),r.a.createElement(p.a,{path:"/gameA"},r.a.createElement(W,{gameType:"2"})),r.a.createElement(p.a,{path:"/gameB"},r.a.createElement(W,{gameType:"6"})),r.a.createElement(p.a,{path:"/gameC"},r.a.createElement(W,{gameType:"10"})),r.a.createElement(p.a,{path:"/help"},r.a.createElement(z,null)))}}]),a}(n.Component));Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));s.a.render(r.a.createElement(V,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[494,1,2]]]);