\n )\n }\n\n {message}\n {domains.length > 0 && !isOwner ? (\n To return the deposit, you need to connect to the wallet which auctioned off the names\n ): ''}\n > \n )\n }\n\n\n \n
\n { statsEntity && <>\n There are currently {statsEntity.numOfDeeds} deeds holding {(statsEntity.currentValue / Math.pow(10,18)).toFixed(2)} ETH \n To understand more about these unclaimed deposits, read the blog post.\n \n Bootstrapped with Create Eth App\n >}\n
\n
\n );\n}\n\nexport default App;\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport ApolloClient from \"apollo-boost\";\nimport { ApolloProvider } from \"@apollo/react-hooks\";\nimport \"./index.css\";\nimport App from \"./App\";\n\n// You should replace this url with your own and put it into a .env file\n// See all subgraphs: https://thegraph.com/explorer/\nconsole.log({ENV:process.env})\n\nlet stage, reclaimUri, ensUri, registryAddress, registrarAddress\n// if (process.env.REACT_APP_STAGE === 'live'){\n stage = 'live'\n reclaimUri = process.env.REACT_APP_RECLAIM_GRAPH_URI || \"http://127.0.0.1:8000/subgraphs/name/makoto/ens-reclaim-deposit-subgraph\"\n ensUri = process.env.REACT_APP_ENS_GRAPH_URI || \"http://127.0.0.1:8000/subgraphs/name/graphprotocol/ens\"\n registrarAddress = '0x6090a6e47849629b7245dfa1ca21d94cd15878ef'\n registryAddress = '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e'\n// }else{\n// stage = 'dev'\n// reclaimUri = \"http://127.0.0.1:8000/subgraphs/name/makoto/ens-reclaim-deposit-subgraph\"\n// ensUri = \"http://127.0.0.1:8000/subgraphs/name/graphprotocol/ens\"\n// registrarAddress = '0xA47b9D846D03E74C736D650dfb23D085C773AFCE'\n// registryAddress = '0x7F90FA6F67Aa366D8ca17d36a1B2E5A06C647151'\n// }\n\nconst client = new ApolloClient({ uri: reclaimUri });\nconst ensClient = new ApolloClient({ uri: ensUri });\n\nReactDOM.render(\n \n \n ,\n document.getElementById(\"root\"),\n);\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/static/js/main.78879c6a.chunk.js b/static/js/main.e0bcbb9e.chunk.js
similarity index 63%
rename from static/js/main.78879c6a.chunk.js
rename to static/js/main.e0bcbb9e.chunk.js
index 4b5c83c..42553b9 100644
--- a/static/js/main.78879c6a.chunk.js
+++ b/static/js/main.e0bcbb9e.chunk.js
@@ -1,2 +1,2 @@
-(this["webpackJsonp@project/react-app"]=this["webpackJsonp@project/react-app"]||[]).push([[0],{100:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"label","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setSubnodeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"ttl","type":"uint64"}],"name":"setTTL","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"ttl","outputs":[{"name":"","type":"uint64"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"resolver","type":"address"}],"name":"setResolver","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"label","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"resolver","type":"address"}],"name":"NewResolver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"ttl","type":"uint64"}],"name":"NewTTL","type":"event"}]')},101:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"creationDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"destroyDeed","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"registrar","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"value","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"previousOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newValue","type":"uint256"},{"name":"throwOnFailure","type":"bool"}],"name":"setBalance","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"refundRatio","type":"uint256"}],"name":"closeDeed","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newRegistrar","type":"address"}],"name":"setRegistrar","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_owner","type":"address"}],"payable":true,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"DeedClosed","type":"event"}]')},107:function(e,t,n){e.exports=n(161)},112:function(e,t,n){},114:function(e,t){},118:function(e,t){},120:function(e,t){},134:function(e,t){},157:function(e,t,n){},161:function(e,t,n){"use strict";n.r(t);var a=n(9),s=n.n(a),u=n(92),r=n.n(u),i=n(43),o=n(23),c=(n(112),n(4)),p=n.n(c),l=n(40),y=n(33),d=n(62),m=n(53),b=n(63),f=n(71),I=n.n(f),h=n(52),g=n(99),M=n(100),j={deed:n(101),registrar:g,registry:M},w=n(102);n(157);function N(){var e=Object(d.a)(["\nquery Account($account: String!){\n account(id:$account){\n id\n deeds(first:500) {\n id\n value\n name {\n id\n }\n }\n }\n}\n"]);return N=function(){return e},e}function x(){var e=Object(d.a)(['\nquery {\n\tstatsEntity(id:""){\n id\n numOfDeeds\n currentValue\n accumValue\n }\n}\n']);return x=function(){return e},e}function A(){var e=Object(d.a)(["\nquery Account($account: String!){\n account(id:$account){\n\t\tid\n domains{\n id\n labelhash\n labelName\n }\n }\n}\n"]);return A=function(){return e},e}var L=n(56).keccak_256,v=Object(i.b)(A()),D=Object(i.b)(x()),S=Object(i.b)(N());var O=function(e){var t,n=e.ensClient,u=e.registrarAddress,r=e.registryAddress,i=e.stage,o=Object(a.useState)(!1),c=Object(y.a)(o,2),d=c[0],f=c[1],g=Object(a.useState)(""),M=Object(y.a)(g,2),N=M[0],x=M[1],A=Object(a.useState)(""),O=Object(y.a)(A,2),T=O[0],E=O[1],C=Object(a.useState)(!1),z=Object(y.a)(C,2),k=z[0],Y=z[1],P=Object(a.useState)(""),U=Object(y.a)(P,2),G=U[0],W=U[1],Z=Object(a.useState)(),R=Object(y.a)(Z,2),B=R[0],_=R[1],H=Object(a.useState)(!1),Q=Object(y.a)(H,2),V=Q[0],J=Q[1],F=Object(a.useState)(!1),X=Object(y.a)(F,2),K=X[0],q=X[1],$=Object(a.useState)(!1),ee=Object(y.a)($,2),te=ee[0],ne=ee[1],ae=Object(h.a)(S,{variables:{account:N}}).data,se=Object(h.a)(v,{variables:{account:N},client:n}).data,ue=Object(h.a)(D).data,re=(ue=void 0===ue?{}:ue).statsEntity,ie=Object(a.useRef)(Object(w.throttle)((function(e,t){return t(e)}),1e3)),oe=function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.getAddress();case 3:n=e.sent,Y(n.toLowerCase()),W(n.toLowerCase()),x(n.toLowerCase()),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),ne("Your wallet is not connected");case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),ce=function(){var e=Object(l.a)(p.a.mark((function e(t,n){var a,s,u;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("***lookupName1",{label:n}),n.match(/\.eth/)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,a=I.a.hash(n),console.log("***lookupName2",{encoded:a,registryAddress:r}),s=new m.a(r,j.registry,t),console.log("***lookupName3",{registry:s}),e.next=10,s.owner(a);case 10:return u=e.sent,console.log("***lookupName4",{res:u}),e.abrupt("return",u);case 15:return e.prev=15,e.t0=e.catch(3),q("Problem looking up the name"),e.abrupt("return",!1);case 19:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(t,n){return e.apply(this,arguments)}}(),pe=function(){var e=Object(l.a)(p.a.mark((function e(t,n){var a,s,r,i,o,c,l,d,b,f,h,g;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.match(/\.eth/)){e.next=2;break}return e.abrupt("return",!1);case 2:return e.prev=2,I.a.hash(n),r=n.replace(/\.eth$/,""),s="0x"+L(r),a=new m.a(u,j.registrar,t),console.log("***lookupDeed1",{registrarAddress:u,labelhash:s}),e.next=10,a.entries(s);case 10:if(c=e.sent,l=Object(y.a)(c,5),d=l[0],b=l[1],f=l[2],h=l[3],g=l[4],console.log("***lookupDeed2",{label:n,bid:d,deedAddress:b,registrationDate:f,value:h,highestBid:g}),!(d>0)){e.next=24;break}return o=new m.a(b,j.deed,t),e.next=22,o.owner();case 22:return i=e.sent,e.abrupt("return",{value:h/Math.pow(10,18),labelhash:s,deedOwner:i});case 24:e.next=30;break;case 26:return e.prev=26,e.t0=e.catch(2),q("Problem looking up the deed"),e.abrupt("return",!1);case 30:case"end":return e.stop()}}),e,null,[[2,26]])})));return function(t,n){return e.apply(this,arguments)}}(),le=function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.target.value.toLowerCase(),W(n),ie.current(n,function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce(d,t);case 2:return n=e.sent,e.t0=_,e.next=6,pe(d,t);case 6:e.t1=e.sent,(0,e.t0)(e.t1),x(n&&"0x0000000000000000000000000000000000000000"!==n?n.toLowerCase():t.toLowerCase());case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=Object(l.a)(p.a.mark((function e(t,n){var a,s,r;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.getSigner(),s=new m.a(u,j.registrar,t),r=s.connect(a),e.next=5,r.releaseDeed(n);case 5:e.sent,q("Transaction has been sent");case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),de=function(){var e=Object(l.a)(p.a.mark((function e(t){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.request({method:"eth_requestAccounts"});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=5;break}return e.next=4,t.getNetwork();case 4:e.t0=e.sent;case 5:n=e.t0,E(n.chainId);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(a.useEffect)((function(){window&&window.ethereum?(de(window.ethereum),f(new b.c(window.ethereum)),t=d&&d.getSigner(),V?k||t&&oe(t):J(!0)):f("live"===i?new b.a:new b.b("http://localhost:8545")),me(d),ne(V?1!==T&&"You are connected to the wrong network(only mainnet is supported)":"Your browser is not connected to wallet (eg: Metamask)")}),[window,N,V,k,T,te]);var be=(k&&k.toLowerCase())===(N&&N.toLowerCase()),fe=(k&&k.toLowerCase())===(B&&B.deedOwner.toLowerCase()),Ie=[];ae&&ae.account&&(Ie=ae.account.deeds);var he=Ie.map((function(e){var t,n=(null===se||void 0===se?void 0:se.account)&&se.account.domains.filter((function(t){var n;return t.labelhash===(null===e||void 0===e||null===(n=e.name)||void 0===n?void 0:n.id)}))[0];return{id:e.id,name:null===n||void 0===n?void 0:n.labelName,labelhash:null===(t=e.name)||void 0===t?void 0:t.id,value:e.value/Math.pow(10,18)}})),ge=he.map((function(e){return e.value})).reduce((function(e,t){return parseFloat(e)+parseFloat(t)}),0);return s.a.createElement("div",{className:"App"},s.a.createElement("header",{className:"App-header"},s.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzIuNTIgODAuOTUiPjxkZWZzPjxzdHlsZT4uY2xzLTN7ZmlsbDojYTBhOGQ0fTwvc3R5bGU+PGxpbmVhckdyYWRpZW50IGlkPSJsaW5lYXItZ3JhZGllbnQiIHgxPSI0MS45NSIgeTE9IjIuNTciIHgyPSIxMi41NyIgeTI9IjM0LjQyIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuNTgiIHN0b3AtY29sb3I9IiNhMGE4ZDQiLz48c3RvcCBvZmZzZXQ9Ii43MyIgc3RvcC1jb2xvcj0iIzg3OTFjNyIvPjxzdG9wIG9mZnNldD0iLjkxIiBzdG9wLWNvbG9yPSIjNjQ3MGI0Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImxpbmVhci1ncmFkaWVudC0yIiB4MT0iNDIuNTciIHkxPSI4MS42NiIgeDI9IjcxLjk2IiB5Mj0iNDkuODEiIHhsaW5rOmhyZWY9IiNsaW5lYXItZ3JhZGllbnQiLz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yLjI4IDAgMCAwIC4wOCA5LjQzem02MyAzYy0uOC0xLjcxLTIuNzgtNS4wOS0yLjc4LTUuMDlMNDMuNTggODIuNTkgNjUuOTIgNjdhOS43NSA5Ljc1IDAgMCAwIDMuMTgtMy41IDE2LjE5IDE2LjE5IDAgMCAwIC4xNS0xMy42NnptOS4wNy0xMi40NmEyNS40NyAyNS40NyAwIDAgMC0xMC0xOC41MUw0My42MSAxLjY0czE1LjQ1IDIyLjI4IDI4LjUgNDQuNDVhMjIuMzkgMjIuMzkgMCAwIDEgMi42MSA3LjU2IDEyLjEgMTIuMSAwIDAgMSAwIDMuNjNjLjM0LS42MyAxLTEuOTIgMS0xLjkyYTI5LjM1IDI5LjM1IDAgMCAwIDIuNjctOC41NSA1Mi4yOCA1Mi4yOCAwIDAgMC0uMDctOS40M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02IC0xLjY0KSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOmNvbG9yIiBmaWxsPSJ1cmwoI2xpbmVhci1ncmFkaWVudC0zKSIvPjwvZz48L2c+PC9zdmc+",className:"App-logo",alt:"react-logo"}),s.a.createElement("h2",null,"Unclaimed deposit search"),te?s.a.createElement("span",{style:{color:"yellow",marginBottom:"5px"}},te):s.a.createElement("span",null,"\xa0"),s.a.createElement("input",{onChange:le,placeholder:"Enter ENS name or ETH address",value:G}),he&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{style:{marginTop:"5px"}},N),G&&s.a.createElement("div",null,"owns ",100===he.length?"more than":""," ",he.length," (worth ",ge.toFixed(2)," ETH) name",1===he.length?"":"s"," to claim deposit"),s.a.createElement("div",{className:"App-domains"},he.map((function(e){var t=e.name?"".concat(e.name,".eth"):e.labelhash?"".concat(e.labelhash&&e.labelhash.slice(0,5),"..."):"unknown";return s.a.createElement(s.a.Fragment,null,s.a.createElement("span",null,t," has ",e.value," ETH deposit"),V&&be&&e.value>0?s.a.createElement("button",{onClick:function(){return ye(d,e.labelhash)}},"Claim"):s.a.createElement("span",null))}))),B&&s.a.createElement("div",null,s.a.createElement("p",null,G," has ",B.value.toFixed(2)," ETH deposit"),V&&fe?s.a.createElement("button",{onClick:function(){return ye(d,B.labelhash)}},"Claim"):s.a.createElement("span",null)),s.a.createElement("span",{style:{width:"60%",marginBottom:"1em",color:"yellow"}},K),he.length>0&&!be?s.a.createElement("span",{style:{width:"60%",marginBottom:"1em"}},"To return the deposit, you need to connect to the wallet which auctioned off the names"):"")),s.a.createElement("div",{className:"App-body"},re&&s.a.createElement(s.a.Fragment,null,"There are currently ",re.numOfDeeds," deeds holding ",(re.currentValue/Math.pow(10,18)).toFixed(2)," ETH ",s.a.createElement("br",null),"To understand more about these unclaimed deposits, ",s.a.createElement("a",{href:"https://medium.com/@makoto_inoue/how-to-get-back-the-unclaimed-deposit-1e2b1767b930"},"read the blog post"),".",s.a.createElement("br",null),"Bootstrapped with ",s.a.createElement("a",{href:"https://github.com/PaulRBerg/create-eth-app"},"Create Eth App"))))};console.log({ENV:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_RECLAIM_GRAPH_URI:"",REACT_APP_STAGE:"live",REACT_APP_ENS_GRAPH_URI:""})});var T=new i.a({uri:"http://127.0.0.1:8000/subgraphs/name/makoto/ens-reclaim-deposit-subgraph"}),E=new i.a({uri:"http://127.0.0.1:8000/subgraphs/name/graphprotocol/ens"});r.a.render(s.a.createElement(o.a,{client:T},s.a.createElement(O,{ensClient:E,registrarAddress:"0x6090a6e47849629b7245dfa1ca21d94cd15878ef",registryAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",stage:"live"})),document.getElementById("root"))},99:function(e){e.exports=JSON.parse('[{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"releaseDeed","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"getAllowedTime","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"unhashedName","type":"string"}],"name":"invalidateName","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"hash","type":"bytes32"},{"name":"owner","type":"address"},{"name":"value","type":"uint256"},{"name":"salt","type":"bytes32"}],"name":"shaBid","outputs":[{"name":"sealedBid","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"bidder","type":"address"},{"name":"seal","type":"bytes32"}],"name":"cancelBid","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"entries","outputs":[{"name":"","type":"uint8"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_value","type":"uint256"},{"name":"_salt","type":"bytes32"}],"name":"unsealBid","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"transferRegistrars","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"sealedBids","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"state","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"newOwner","type":"address"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_timestamp","type":"uint256"}],"name":"isAllowed","outputs":[{"name":"allowed","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"finalizeAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"registryStarted","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"launchLength","outputs":[{"name":"","type":"uint32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"sealedBid","type":"bytes32"}],"name":"newBid","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"labels","type":"bytes32[]"}],"name":"eraseNode","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hashes","type":"bytes32[]"}],"name":"startAuctions","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hash","type":"bytes32"},{"name":"deed","type":"address"},{"name":"registrationDate","type":"uint256"}],"name":"acceptRegistrarTransfer","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"startAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"rootNode","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hashes","type":"bytes32[]"},{"name":"sealedBid","type":"bytes32"}],"name":"startAuctionsAndBid","outputs":[],"payable":true,"type":"function"},{"inputs":[{"name":"_ens","type":"address"},{"name":"_rootNode","type":"bytes32"},{"name":"_startDate","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"AuctionStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"bidder","type":"address"},{"indexed":false,"name":"deposit","type":"uint256"}],"name":"NewBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"status","type":"uint8"}],"name":"BidRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"}],"name":"HashReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"name","type":"string"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashInvalidated","type":"event"}]')}},[[107,1,2]]]);
-//# sourceMappingURL=main.78879c6a.chunk.js.map
\ No newline at end of file
+(this["webpackJsonp@project/react-app"]=this["webpackJsonp@project/react-app"]||[]).push([[0],{100:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"label","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setSubnodeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"ttl","type":"uint64"}],"name":"setTTL","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"ttl","outputs":[{"name":"","type":"uint64"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"resolver","type":"address"}],"name":"setResolver","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"label","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"resolver","type":"address"}],"name":"NewResolver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"ttl","type":"uint64"}],"name":"NewTTL","type":"event"}]')},101:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"creationDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"destroyDeed","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"registrar","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"value","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"previousOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newValue","type":"uint256"},{"name":"throwOnFailure","type":"bool"}],"name":"setBalance","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"refundRatio","type":"uint256"}],"name":"closeDeed","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newRegistrar","type":"address"}],"name":"setRegistrar","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_owner","type":"address"}],"payable":true,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"DeedClosed","type":"event"}]')},107:function(e,t,n){e.exports=n(161)},112:function(e,t,n){},114:function(e,t){},118:function(e,t){},120:function(e,t){},134:function(e,t){},157:function(e,t,n){},161:function(e,t,n){"use strict";n.r(t);var a=n(9),s=n.n(a),u=n(92),r=n.n(u),i=n(43),o=n(23),c=(n(112),n(4)),p=n.n(c),l=n(40),y=n(33),d=n(62),m=n(53),b=n(63),f=n(71),I=n.n(f),h=n(52),g=n(99),j=n(100),M={deed:n(101),registrar:g,registry:j},w=n(102);n(157);function N(){var e=Object(d.a)(["\nquery Account($account: String!){\n account(id:$account){\n id\n deeds(first:500) {\n id\n value\n name {\n id\n }\n }\n }\n}\n"]);return N=function(){return e},e}function x(){var e=Object(d.a)(['\nquery {\n\tstatsEntity(id:""){\n id\n numOfDeeds\n currentValue\n accumValue\n }\n}\n']);return x=function(){return e},e}function A(){var e=Object(d.a)(["\nquery Account($account: String!){\n account(id:$account){\n\t\tid\n domains{\n id\n labelhash\n labelName\n }\n }\n}\n"]);return A=function(){return e},e}var L=n(56).keccak_256,v=Object(i.b)(A()),D=Object(i.b)(x()),S=Object(i.b)(N());var O=function(e){var t,n=e.ensClient,u=e.registrarAddress,r=e.registryAddress,i=e.stage,o=Object(a.useState)(!1),c=Object(y.a)(o,2),d=c[0],f=c[1],g=Object(a.useState)(""),j=Object(y.a)(g,2),N=j[0],x=j[1],A=Object(a.useState)(""),O=Object(y.a)(A,2),T=O[0],E=O[1],C=Object(a.useState)(!1),k=Object(y.a)(C,2),z=k[0],P=k[1],Y=Object(a.useState)(""),W=Object(y.a)(Y,2),U=W[0],G=W[1],R=Object(a.useState)(),Z=Object(y.a)(R,2),B=Z[0],H=Z[1],_=Object(a.useState)(!1),Q=Object(y.a)(_,2),J=Q[0],F=Q[1],V=Object(a.useState)(!1),X=Object(y.a)(V,2),q=X[0],K=X[1],$=Object(a.useState)(!1),ee=Object(y.a)($,2),te=ee[0],ne=ee[1],ae=Object(h.a)(S,{variables:{account:N}}).data,se=Object(h.a)(v,{variables:{account:N},client:n}).data,ue=Object(h.a)(D).data,re=(ue=void 0===ue?{}:ue).statsEntity,ie=Object(a.useRef)(Object(w.throttle)((function(e,t){return t(e)}),1e3)),oe=function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.getAddress();case 3:n=e.sent,P(n.toLowerCase()),G(n.toLowerCase()),x(n.toLowerCase()),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),ne("Your wallet is not connected");case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),ce=function(){var e=Object(l.a)(p.a.mark((function e(t,n){var a,s,u;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("***lookupName1",{label:n}),n.match(/\.eth/)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,a=I.a.hash(n),console.log("***lookupName2",{encoded:a,registryAddress:r}),s=new m.a(r,M.registry,t),console.log("***lookupName3",{registry:s}),e.next=10,s.owner(a);case 10:return u=e.sent,console.log("***lookupName4",{res:u}),e.abrupt("return",u);case 15:return e.prev=15,e.t0=e.catch(3),K("Problem looking up the name"),e.abrupt("return",!1);case 19:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(t,n){return e.apply(this,arguments)}}(),pe=function(){var e=Object(l.a)(p.a.mark((function e(t,n){var a,s,r,i,o,c,l,d,b,f,h,g;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.match(/\.eth/)){e.next=2;break}return e.abrupt("return",!1);case 2:return e.prev=2,I.a.hash(n),r=n.replace(/\.eth$/,""),s="0x"+L(r),a=new m.a(u,M.registrar,t),console.log("***lookupDeed1",{registrarAddress:u,labelhash:s}),e.next=10,a.entries(s);case 10:if(c=e.sent,l=Object(y.a)(c,5),d=l[0],b=l[1],f=l[2],h=l[3],g=l[4],console.log("***lookupDeed2",{label:n,bid:d,deedAddress:b,registrationDate:f,value:h,highestBid:g}),!(d>0)){e.next=24;break}return o=new m.a(b,M.deed,t),e.next=22,o.owner();case 22:return i=e.sent,e.abrupt("return",{value:h/Math.pow(10,18),labelhash:s,deedOwner:i});case 24:e.next=30;break;case 26:return e.prev=26,e.t0=e.catch(2),K("Problem looking up the deed"),e.abrupt("return",!1);case 30:case"end":return e.stop()}}),e,null,[[2,26]])})));return function(t,n){return e.apply(this,arguments)}}(),le=function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.target.value.toLowerCase(),G(n),ie.current(n,function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce(d,t);case 2:return n=e.sent,e.t0=H,e.next=6,pe(d,t);case 6:e.t1=e.sent,(0,e.t0)(e.t1),x(n&&"0x0000000000000000000000000000000000000000"!==n?n.toLowerCase():t.toLowerCase());case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=Object(l.a)(p.a.mark((function e(t,n){var a,s,r;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.getSigner(),s=new m.a(u,M.registrar,t),r=s.connect(a),e.next=5,r.releaseDeed(n);case 5:e.sent,K("Transaction has been sent");case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),de=function(){var e=Object(l.a)(p.a.mark((function e(t){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.request({method:"eth_requestAccounts"});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=Object(l.a)(p.a.mark((function e(t){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=5;break}return e.next=4,t.getNetwork();case 4:e.t0=e.sent;case 5:n=e.t0,E(n.chainId);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(a.useEffect)((function(){window&&window.ethereum?(de(window.ethereum),f(new b.c(window.ethereum)),t=d&&d.getSigner(),J?z||t&&oe(t):F(!0)):f("live"===i?new b.a:new b.b("http://localhost:8545")),me(d),ne(J?1!==T&&"You are connected to the wrong network(only mainnet is supported)":"Your browser is not connected to wallet (eg: Metamask)")}),[window,N,J,z,T,te]);var be=(z&&z.toLowerCase())===(N&&N.toLowerCase()),fe=(z&&z.toLowerCase())===(B&&B.deedOwner.toLowerCase()),Ie=[];ae&&ae.account&&(Ie=ae.account.deeds);var he=Ie.map((function(e){var t,n=(null===se||void 0===se?void 0:se.account)&&se.account.domains.filter((function(t){var n;return t.labelhash===(null===e||void 0===e||null===(n=e.name)||void 0===n?void 0:n.id)}))[0];return{id:e.id,name:null===n||void 0===n?void 0:n.labelName,labelhash:null===(t=e.name)||void 0===t?void 0:t.id,value:e.value/Math.pow(10,18)}})),ge=he.map((function(e){return e.value})).reduce((function(e,t){return parseFloat(e)+parseFloat(t)}),0);return s.a.createElement("div",{className:"App"},s.a.createElement("header",{className:"App-header"},s.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzIuNTIgODAuOTUiPjxkZWZzPjxzdHlsZT4uY2xzLTN7ZmlsbDojYTBhOGQ0fTwvc3R5bGU+PGxpbmVhckdyYWRpZW50IGlkPSJsaW5lYXItZ3JhZGllbnQiIHgxPSI0MS45NSIgeTE9IjIuNTciIHgyPSIxMi41NyIgeTI9IjM0LjQyIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIuNTgiIHN0b3AtY29sb3I9IiNhMGE4ZDQiLz48c3RvcCBvZmZzZXQ9Ii43MyIgc3RvcC1jb2xvcj0iIzg3OTFjNyIvPjxzdG9wIG9mZnNldD0iLjkxIiBzdG9wLWNvb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yNC43MSAxNy4yM3MtMTUuNDYtMjIuMjgtMjguNS00NC40NWEyMi4zOSAyMi4zOSAwIDAgMS0yLjYyLTcuNTYgMTIuMSAxMi4xIDAgMCAxIDAtMy42M2MtLjM0LjYzLTEgMS45Mi0xIDEuOTJhMjkuMzUgMjkuMzUgMCAwIDAtMi42NyA4LjU1IDUyLjI4IDUyLjI4IDAgMCAwIC4wOCA5LjQzem02MyAzYy0uOC0xLjcxLTIuNzgtNS4wOS0yLjc4LTUuMDlMNDMuNTggODIuNTkgNjUuOTIgNjdhOS43NSA5Ljc1IDAgMCAwIDMuMTgtMy41IDE2LjE5IDE2LjE5IDAgMCAwIC4xNS0xMy42NnptOS4wNy0xMi40NmEyNS40NyAyNS40NyAwIDAgMC0xMC0xOC41MUw0My42MSAxLjY0czE1LjQ1IDIyLjI4IDI4LjUgNDQuNDVhMjIuMzkgMjIuMzkgMCAwIDEgMi42MSA3LjU2IDEyLjEgMTIuMSAwIDAgMSAwIDMuNjNjLjM0LS42MyAxLTEuOTIgMS0xLjkyYTI5LjM1IDI5LjM1IDAgMCAwIDIuNjctOC41NSA1Mi4yOCA1Mi4yOCAwIDAgMC0uMDctOS40M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02IC0xLjY0KSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOmNvbG9yIiBmaWxsPSJ1cmwoI2xpbmVhci1ncmFkaWVudC0zKSIvPjwvZz48L2c+PC9zdmc+",className:"App-logo",alt:"react-logo"}),s.a.createElement("h2",null,"Unclaimed deposit search"),te?s.a.createElement("span",{style:{color:"yellow",marginBottom:"5px"}},te):s.a.createElement("span",null,"\xa0"),s.a.createElement("input",{onChange:le,placeholder:"Enter ENS name or ETH address",value:U}),he&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{style:{marginTop:"5px"}},N),U&&s.a.createElement("div",null,"owns ",100===he.length?"more than":""," ",he.length," (worth ",ge.toFixed(2)," ETH) name",1===he.length?"":"s"," to claim deposit"),s.a.createElement("div",{className:"App-domains"},he.map((function(e){var t=e.name?"".concat(e.name,".eth"):e.labelhash?"".concat(e.labelhash&&e.labelhash.slice(0,5),"..."):"unknown";return s.a.createElement(s.a.Fragment,null,s.a.createElement("span",null,t," has ",e.value," ETH deposit"),J&&be&&e.value>0?s.a.createElement("button",{onClick:function(){return ye(d,e.labelhash)}},"Claim"):s.a.createElement("span",null))}))),B&&s.a.createElement("div",null,s.a.createElement("p",null,U," has ",B.value.toFixed(2)," ETH deposit"),J&&fe?s.a.createElement("button",{onClick:function(){return ye(d,B.labelhash)}},"Claim"):s.a.createElement("span",null)),s.a.createElement("span",{style:{width:"60%",marginBottom:"1em",color:"yellow"}},q),he.length>0&&!be?s.a.createElement("span",{style:{width:"60%",marginBottom:"1em"}},"To return the deposit, you need to connect to the wallet which auctioned off the names"):"")),s.a.createElement("div",{className:"App-body"},re&&s.a.createElement(s.a.Fragment,null,"There are currently ",re.numOfDeeds," deeds holding ",(re.currentValue/Math.pow(10,18)).toFixed(2)," ETH ",s.a.createElement("br",null),"To understand more about these unclaimed deposits, ",s.a.createElement("a",{href:"https://medium.com/@makoto_inoue/how-to-get-back-the-unclaimed-deposit-1e2b1767b930"},"read the blog post"),".",s.a.createElement("br",null),"Bootstrapped with ",s.a.createElement("a",{href:"https://github.com/PaulRBerg/create-eth-app"},"Create Eth App"))))};console.log({ENV:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_RECLAIM_GRAPH_URI:"https://gateway-arbitrum.network.thegraph.com/api/0c6b11be1a0c8b6f626fb2d9a9de03c5/subgraphs/id/8zhr2kf1ka6B4sLmuhEzo8gQ7FTjay6DXQrefmRtNb8W",REACT_APP_STAGE:"live",REACT_APP_ENS_GRAPH_URI:"https://gateway-arbitrum.network.thegraph.com/api/13ef776c0372f7c14eb7c019a0f80272/subgraphs/id/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH"})});var T=new i.a({uri:"https://gateway-arbitrum.network.thegraph.com/api/0c6b11be1a0c8b6f626fb2d9a9de03c5/subgraphs/id/8zhr2kf1ka6B4sLmuhEzo8gQ7FTjay6DXQrefmRtNb8W"}),E=new i.a({uri:"https://gateway-arbitrum.network.thegraph.com/api/13ef776c0372f7c14eb7c019a0f80272/subgraphs/id/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH"});r.a.render(s.a.createElement(o.a,{client:T},s.a.createElement(O,{ensClient:E,registrarAddress:"0x6090a6e47849629b7245dfa1ca21d94cd15878ef",registryAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",stage:"live"})),document.getElementById("root"))},99:function(e){e.exports=JSON.parse('[{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"releaseDeed","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"getAllowedTime","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"unhashedName","type":"string"}],"name":"invalidateName","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"hash","type":"bytes32"},{"name":"owner","type":"address"},{"name":"value","type":"uint256"},{"name":"salt","type":"bytes32"}],"name":"shaBid","outputs":[{"name":"sealedBid","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"bidder","type":"address"},{"name":"seal","type":"bytes32"}],"name":"cancelBid","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"entries","outputs":[{"name":"","type":"uint8"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_value","type":"uint256"},{"name":"_salt","type":"bytes32"}],"name":"unsealBid","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"transferRegistrars","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"sealedBids","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"state","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"newOwner","type":"address"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_timestamp","type":"uint256"}],"name":"isAllowed","outputs":[{"name":"allowed","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"finalizeAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"registryStarted","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"launchLength","outputs":[{"name":"","type":"uint32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"sealedBid","type":"bytes32"}],"name":"newBid","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"labels","type":"bytes32[]"}],"name":"eraseNode","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hashes","type":"bytes32[]"}],"name":"startAuctions","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hash","type":"bytes32"},{"name":"deed","type":"address"},{"name":"registrationDate","type":"uint256"}],"name":"acceptRegistrarTransfer","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"startAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"rootNode","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hashes","type":"bytes32[]"},{"name":"sealedBid","type":"bytes32"}],"name":"startAuctionsAndBid","outputs":[],"payable":true,"type":"function"},{"inputs":[{"name":"_ens","type":"address"},{"name":"_rootNode","type":"bytes32"},{"name":"_startDate","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"AuctionStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"bidder","type":"address"},{"indexed":false,"name":"deposit","type":"uint256"}],"name":"NewBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"status","type":"uint8"}],"name":"BidRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"}],"name":"HashReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"name","type":"string"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashInvalidated","type":"event"}]')}},[[107,1,2]]]);
+//# sourceMappingURL=main.e0bcbb9e.chunk.js.map
\ No newline at end of file
diff --git a/static/js/main.e0bcbb9e.chunk.js.map b/static/js/main.e0bcbb9e.chunk.js.map
new file mode 100644
index 0000000..0e7a952
--- /dev/null
+++ b/static/js/main.e0bcbb9e.chunk.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../contracts/src/abis.js","App.js","index.js"],"names":["abis","deed","registrar","registrarAbi","registry","registryAbi","sha3","require","keccak_256","GET_LABEL_NAME","gql","GET_STATS","GET_ACCOUNTS","App","signer","ensClient","registrarAddress","registryAddress","stage","useState","provider","setProvider","account","setAccount","network","setNetwork","address","setAddress","value","setValue","setDeed","connected","setConnected","message","setMessage","warning","setWarning","accountData","useQuery","variables","data","labelData","client","statsEntity","throttled","useRef","throttle","label","callback","checkAccount","a","getAddress","res","toLowerCase","lookupName","console","log","match","encoded","namehash","hash","Contract","owner","lookupDeed","childDomain","replace","labelhash","entries","bid","deedAddress","registrationDate","highestBid","deedOwner","Math","pow","handleInput","event","target","current","name","releaseDeed","getSigner","registrarWithSigner","connect","ethereum","request","method","checkNetwork","getNetwork","ret","chainId","useEffect","window","Web3Provider","InfuraProvider","JsonRpcProvider","isOwner","isDeedOwner","deeds","domains","map","filter","domain","id","labelName","sum","d","reduce","b","parseFloat","className","src","alt","style","color","marginBottom","onChange","placeholder","marginTop","length","toFixed","displayName","slice","onClick","width","numOfDeeds","currentValue","href","ENV","process","ApolloClient","uri","ReactDOM","render","document","getElementById"],"mappings":"u3HAUeA,EANF,CACXC,K,OACAC,UAAWC,EACXC,SAAUC,G,ynBCEZ,IAAMC,EAAOC,EAAQ,IAAWC,WAG1BC,EAAiBC,YAAH,KAadC,EAAYD,YAAH,KAWTE,EAAeF,YAAH,KAgPHG,MAjOf,YAEI,IA0GEC,EA3GJC,EACC,EADDA,UAAWC,EACV,EADUA,iBAAkBC,EAC5B,EAD4BA,gBAAiBC,EAC7C,EAD6CA,MAC7C,EAC+BC,oBAAS,GADxC,mBACMC,EADN,KACgBC,EADhB,OAE6BF,mBAAS,IAFtC,mBAEMG,EAFN,KAEeC,EAFf,OAG6BJ,mBAAS,IAHtC,mBAGMK,EAHN,KAGeC,EAHf,OAI6BN,oBAAS,GAJtC,mBAIMO,EAJN,KAIeC,EAJf,OAKyBR,mBAAS,IALlC,mBAKMS,EALN,KAKaC,EALb,OAMuBV,qBANvB,mBAMMlB,EANN,KAMY6B,E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AKL,UAAU,YACXnE,IAAe,2DACMA,GAAYkF,WADlB,mBAC8ClF,GAAYmF,aAAerD,KAAKC,IAAI,GAAG,KAAK8C,QAAQ,GADlG,QAC0G,6BAD1G,sDAEoC,uBAAGO,KAAK,uFAAR,sBAFpC,IAGf,6BAHe,qBAIG,uBAAGA,KAAK,+CAAR,sBCpQ5BxE,QAAQC,IAAI,CAACwE,IAAIC,8dAiBjB,IAAMvF,EAAS,IAAIwF,IAAa,CAAEC,IAZnBF,iJAaTlH,EAAY,IAAImH,IAAa,CAAEC,IAZ1BF,iJAcXG,IAASC,OACP,kBAAC,IAAD,CAAgB3F,OAAQA,GACtB,kBAAC,EAAD,CAAK3B,UAAWA,EAAWC,iBAfV,6CAe8CC,gBAd/C,6CAciFC,MAlB3F,UAoBRoH,SAASC,eAAe,U","file":"static/js/main.e0bcbb9e.chunk.js","sourcesContent":["import registrarAbi from \"./abis/registrar.json\";\nimport registryAbi from \"./abis/registry.json\";\nimport deedAbi from \"./abis/deed.json\";\n\nconst abis = {\n deed: deedAbi,\n registrar: registrarAbi,\n registry: registryAbi,\n};\n\nexport default abis;\n","import React, { useState, useEffect, useRef } from \"react\";\nimport { Contract } from \"@ethersproject/contracts\";\nimport { JsonRpcProvider, Web3Provider, InfuraProvider } from \"@ethersproject/providers\";\nimport namehash from 'eth-ens-namehash';\nimport { gql } from \"apollo-boost\";\nimport { useQuery } from \"@apollo/react-hooks\";\nimport { abis } from \"@project/contracts\";\nimport { throttle } from 'lodash';\nimport \"./App.css\";\nconst sha3 = require('js-sha3').keccak_256\n\nconst imgData = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzIuNTIgODAuOTUiPjxkZWZzPjxzdHlsZT4uY2xzLTN7ZmlsbDojYTBhOGQ0fTwvc3R5bGU+PG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PC9zdmc+'\nconst GET_LABEL_NAME = gql`\nquery Account($account: String!){\n account(id:$account){\n\t\tid\n domains{\n id\n labelhash\n labelName\n }\n }\n}\n`;\n\nconst GET_STATS = gql`\nquery {\n\tstatsEntity(id:\"\"){\n id\n numOfDeeds\n currentValue\n accumValue\n }\n}\n`\n\nconst GET_ACCOUNTS = gql`\nquery Account($account: String!){\n account(id:$account){\n id\n deeds(first:500) {\n id\n value\n name {\n id\n }\n }\n }\n}\n`\n\nfunction App({\n ensClient, registrarAddress, registryAddress, stage\n}) {\n const [provider, setProvider] = useState(false)\n const [account, setAccount] = useState('')\n const [network, setNetwork] = useState('')\n const [address, setAddress] = useState(false)\n const [value, setValue] = useState('')\n const [deed, setDeed] = useState()\n const [connected, setConnected] = useState(false)\n const [message, setMessage] = useState(false)\n const [warning, setWarning] = useState(false)\n const { data:accountData } = useQuery(GET_ACCOUNTS, {variables: { account }});\n const { data:labelData } = useQuery(GET_LABEL_NAME, {variables: { account }, client:ensClient});\n const { data:{ statsEntity } = {} } = useQuery(GET_STATS);\n const throttled = useRef(throttle((label, callback) => callback(label), 1000))\n\n const checkAccount = async(signer) =>{\n let res\n try{\n res = await signer.getAddress()\n setAddress(res.toLowerCase())\n setValue(res.toLowerCase())\n setAccount(res.toLowerCase())\n }catch(c){\n setWarning('Your wallet is not connected')\n }\n }\n const lookupName = async(provider, label) => {\n console.log('***lookupName1', {label})\n if (!label.match(/\\.eth/)) {\n return false\n }\n let encoded, registry\n try{\n encoded = namehash.hash(label)\n console.log('***lookupName2', {encoded, registryAddress})\n registry = new Contract(registryAddress, abis.registry, provider);\n console.log('***lookupName3', {registry})\n const res = await registry.owner(encoded)\n console.log('***lookupName4', {res})\n return res\n }catch(e){\n setMessage('Problem looking up the name')\n return false\n }\n }\n\n const lookupDeed = async(provider, label) => {\n if (!label.match(/\\.eth/)) {\n return false\n }\n let encoded, registrar, labelhash, childDomain, deedOwner, deed\n try{\n encoded = namehash.hash(label)\n childDomain = label.replace(/\\.eth$/, '')\n labelhash = '0x' + sha3(childDomain)\n registrar = new Contract(registrarAddress, abis.registrar, provider);\n console.log('***lookupDeed1', {registrarAddress, labelhash})\n const [bid, deedAddress, registrationDate, value, highestBid] = await registrar.entries(labelhash)\n console.log('***lookupDeed2', {label, bid, deedAddress, registrationDate, value, highestBid})\n if(bid > 0){\n deed = new Contract(deedAddress, abis.deed, provider);\n deedOwner = await deed.owner()\n return {\n value: (value / Math.pow(10,18)),\n labelhash,\n deedOwner\n }\n }\n }catch(e){\n setMessage('Problem looking up the deed')\n return false\n }\n }\n\n const handleInput = async(event)=>{\n const label = event.target.value.toLowerCase()\n setValue(label)\n throttled.current(label, async (label)=>{\n const name = await lookupName(provider, label)\n setDeed(await lookupDeed(provider, label))\n if(!name || name === '0x0000000000000000000000000000000000000000'){\n setAccount(label.toLowerCase())\n }else{\n setAccount(name.toLowerCase())\n }\n })\n }\n\n const releaseDeed = async(provider, label) =>{\n const signer = provider.getSigner() \n const registrar = new Contract(registrarAddress, abis.registrar, provider);\n const registrarWithSigner = registrar.connect(signer)\n // A pre-defined address that owns some CEAERC20 tokens\n const tx = await registrarWithSigner.releaseDeed(label)\n setMessage('Transaction has been sent')\n }\n \n const connect = async(ethereum) =>{\n await ethereum.request({ method: 'eth_requestAccounts' })\n }\n \n const checkNetwork = async(provider) => {\n let ret = provider && await provider.getNetwork()\n setNetwork(ret.chainId)\n }\n\n let signer\n useEffect(() => {\n\n if (window && window.ethereum) {\n connect(window.ethereum)\n setProvider(new Web3Provider(window.ethereum))\n signer = provider && provider.getSigner()\n if(connected){\n if(!address){\n if (signer) checkAccount(signer)\n }\n }else{\n setConnected(true)\n } \n }else{\n if(stage === 'live'){\n setProvider(new InfuraProvider())\n }else{\n setProvider(new JsonRpcProvider('http://localhost:8545'))\n }\n }\n checkNetwork(provider)\n if(connected){\n if(network !== 1){\n setWarning('You are connected to the wrong network(only mainnet is supported)')\n }else{\n setWarning(false)\n }\n }else{\n setWarning('Your browser is not connected to wallet (eg: Metamask)')\n }\n }, [window, account, connected, address, network, warning])\n const isOwner = (address && address.toLowerCase()) === (account && account.toLowerCase())\n const isDeedOwner = (address && address.toLowerCase()) === (deed && deed.deedOwner.toLowerCase())\n let deeds = []\n if(accountData && accountData.account){\n deeds = accountData.account.deeds\n }\n const domains = deeds.map(deed => {\n const label = labelData?.account && labelData.account.domains.filter((domain) => domain.labelhash === deed?.name?.id )[0]\n return {\n id:deed.id,\n name:label?.labelName,\n labelhash:deed.name?.id,\n value:(deed.value / Math.pow(10,18))\n }\n })\n const sum = domains.map(d => d.value).reduce((a,b)=> parseFloat(a)+parseFloat(b), 0)\n return (\n
\n )\n }\n\n {message}\n {domains.length > 0 && !isOwner ? (\n To return the deposit, you need to connect to the wallet which auctioned off the names\n ): ''}\n > \n )\n }\n\n\n \n
\n { statsEntity && <>\n There are currently {statsEntity.numOfDeeds} deeds holding {(statsEntity.currentValue / Math.pow(10,18)).toFixed(2)} ETH \n To understand more about these unclaimed deposits, read the blog post.\n \n Bootstrapped with Create Eth App\n >}\n
\n
\n );\n}\n\nexport default App;\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport ApolloClient from \"apollo-boost\";\nimport { ApolloProvider } from \"@apollo/react-hooks\";\nimport \"./index.css\";\nimport App from \"./App\";\n\n// You should replace this url with your own and put it into a .env file\n// See all subgraphs: https://thegraph.com/explorer/\nconsole.log({ENV:process.env})\n\nlet stage, reclaimUri, ensUri, registryAddress, registrarAddress\n// if (process.env.REACT_APP_STAGE === 'live'){\n stage = 'live'\n reclaimUri = process.env.REACT_APP_RECLAIM_GRAPH_URI || \"http://127.0.0.1:8000/subgraphs/name/makoto/ens-reclaim-deposit-subgraph\"\n ensUri = process.env.REACT_APP_ENS_GRAPH_URI || \"http://127.0.0.1:8000/subgraphs/name/graphprotocol/ens\"\n registrarAddress = '0x6090a6e47849629b7245dfa1ca21d94cd15878ef'\n registryAddress = '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e'\n// }else{\n// stage = 'dev'\n// reclaimUri = \"http://127.0.0.1:8000/subgraphs/name/makoto/ens-reclaim-deposit-subgraph\"\n// ensUri = \"http://127.0.0.1:8000/subgraphs/name/graphprotocol/ens\"\n// registrarAddress = '0xA47b9D846D03E74C736D650dfb23D085C773AFCE'\n// registryAddress = '0x7F90FA6F67Aa366D8ca17d36a1B2E5A06C647151'\n// }\n\nconst client = new ApolloClient({ uri: reclaimUri });\nconst ensClient = new ApolloClient({ uri: ensUri });\n\nReactDOM.render(\n \n \n ,\n document.getElementById(\"root\"),\n);\n"],"sourceRoot":""}
\ No newline at end of file