forked from 88-mph/88mphlandingpage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
58.16dd9db32001dc747462.js
1 lines (1 loc) · 9.13 KB
/
58.16dd9db32001dc747462.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{WFe9:function(e,n,r){"use strict";function t(e,n,r,t,a,u,c){try{var i=e[u](c),s=i.value}catch(o){return void r(o)}i.done?n(s):Promise.resolve(s).then(t,a)}function a(e){return function(){var n=this,r=arguments;return new Promise(function(a,u){var c=e.apply(n,r);function i(e){t(c,a,u,i,s,"next",e)}function s(e){t(c,a,u,i,s,"throw",e)}i(void 0)})}}function u(e){return c.apply(this,arguments)}function c(){return(c=a(regeneratorRuntime.mark(function e(n){var t,u,c,i,s,o,p,l,f,A,g,w,h,d,m,x,v,b,k,y,R,L,X,C,P,B,D,N,J,q,M,O,S;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return S=function(){return(S=a(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==w.length){e.next=3;break}return e.next=3,y();case 3:return e.prev=3,e.next=6,A.signPersonalMessage(w[0],n.data);case 6:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(3),e.t0;case 13:case"end":return e.stop()}},e,null,[[3,10]])}))).apply(this,arguments)},O=function(e){return S.apply(this,arguments)},M=function(){return(M=a(regeneratorRuntime.mark(function e(n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==w.length){e.next=3;break}return e.next=3,y();case 3:return r=new u.Transaction(n,{chain:l(s)}),e.prev=4,e.next=7,A.signTransaction(w[0],r);case 7:return e.abrupt("return","0x".concat(e.sent.serialize().toString("hex")));case 11:throw e.prev=11,e.t0=e.catch(4),e.t0;case 14:case"end":return e.stop()}},e,null,[[4,11]])}))).apply(this,arguments)},q=function(e){return M.apply(this,arguments)},J=function(e){return new Promise(function(n,r){m.sendAsync({jsonrpc:"2.0",method:"eth_getBalance",params:[e,"latest"],id:42},function(e,t){e&&r(e);var a=t&&t.result;n(null!=a?new p(a).toString(10):null)})})},N=function(e){return Promise.all(e.map(function(e){return new Promise(function(){var n=a(regeneratorRuntime.mark(function n(r){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,J(e);case 2:r({address:e,balance:n.sent});case 4:case"end":return n.stop()}},n)}));return function(e){return n.apply(this,arguments)}}())}))},D=function(){return(D=a(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return",[]);case 2:if(!(w.length>0)||n){e.next=4;break}return e.abrupt("return",w);case 4:return e.prev=4,e.next=7,A.addAccounts();case 7:w=e.sent,e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(4),e.t0;case 13:return e.abrupt("return",w);case 14:case"end":return e.stop()}},e,null,[[4,10]])}))).apply(this,arguments)},B=function(e){return D.apply(this,arguments)},P=function(){return(P=a(regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("Lattice only supports one exported account per wallet. Checking for new wallet."),e.next=4,B(!0);case 4:return e.abrupt("return",(n=e.sent)&&N(n));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)},C=function(){return P.apply(this,arguments)},X=function(){return h?R()[0]:void 0},L=function(){},R=function(){return w},y=function(){return h=!0,B()},k=function(){return d},b=function(){return(b=a(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n===i){e.next=2;break}throw new Error("Lattice only supports standard path: m/44'/0'/0'/0/x");case 2:return d=!1,g=n,e.abrupt("return",!0);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)},v=function(e){return b.apply(this,arguments)},x=function(){g="",h=!1,m.stop()},e.next=20,Promise.all([r.e(14),r.e(18),r.e(29)]).then(r.t.bind(null,"aFzb",7));case 20:return t=e.sent.default,e.next=24,Promise.all([r.e(1),r.e(32)]).then(r.t.bind(null,"jSND",7));case 24:return u=e.sent,e.next=27,Promise.all([r.e(1),r.e(2),r.e(3),r.e(4),r.e(5),r.e(6)]).then(r.bind(null,"CYPU"));case 27:return c=e.sent.default,i="m/44'/60'/0'/0",o=n.rpcUrl,p=n.BigNumber,f={name:n.appName,network:(l=n.networkName)(s=n.networkId)},A=new t(f),g="",w=Array.from([]),h=!1,d=!1,(m=c({getAccounts:function(e){B().then(function(n){return e(null,n)}).catch(function(n){return e(n,null)})},signTransaction:function(e,n){q(e).then(function(e){return n(null,e)}).catch(function(e){return n(e,null)})},processMessage:function(e,n){O(e).then(function(e){return n(null,e)}).catch(function(e){return n(e,null)})},processPersonalMessage:function(e,n){O(e).then(function(e){return n(null,e)}).catch(function(e){return n(e,null)})},signMessage:function(e,n){O(e).then(function(e){return n(null,e)}).catch(function(e){return n(e,null)})},signPersonalMessage:function(e,n){O(e).then(function(e){return n(null,e)}).catch(function(e){return n(e,null)})},rpcUrl:o})).setPath=v,m.dPath=g,m.enable=y,m.setPrimaryAccount=L,m.getPrimaryAddress=X,m.getAccounts=B,m.getMoreAccounts=C,m.getBalance=J,m.getBalances=N,m.send=m.sendAsync,m.disconnect=x,m.isCustomPath=k,e.abrupt("return",m);case 51:case"end":return e.stop()}},e)}))).apply(this,arguments)}r.r(n),n.default=function(e){var n,r=e.appName,t=e.rpcUrl,c=e.networkId,i=e.preferred;return{name:e.label||"Lattice",svg:e.svg||'\n <svg width="41px" height="41px" viewBox="0 0 41 41" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">\n \x3c!-- Generated by Pixelmator Pro 1.8 --\x3e\n <defs>\n <image id="image" width="41px" height="41px" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAA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Cenp6dF1J0+elKNHj8r+/fvn6Xgq3BkZke7ubt00MzKkp3ViuF9N3L4ljrmyqZ++xXNNakWMiGAwpLm52aTjW/bQoUOCkZH+fp4H/ssvFW9bnNM8tj0LdzfPa02QKTeLWfbt3SsOjJr7KKXt2iWc5qamJjl37pwMDAzI6dOnzV3n5zEAnsRqtcpAt12qK095auZ/lJ7uPqS29vZ2vfOysrIEm8DVwQLST0REuMhztLnPEmw2Qs8CNpjk5+dLR0eHq99DPVfx3wwiglkyMjJk48aNOoqY6+fy5KbjJH875fLly1qRa7KqqkrS09MlJSVFhyO2u0tDQ4MOQyUlJTo9dqzAXcVjOTY2VrAhZTfsFxcXS11dnQwODsrFS5c86WtubDgC6OHZsGGDDhsMP4bMINTAiELc1DqJiYmIAPdVfX29LiNe6j7UP3L4sELsVAxBiJnzQ1B2tg5Bhl2mhu1XDxx4OD1zPAw+SN8D9HT/iZT/xesYjPfs2SOpqanCL6YMDQ0JlwLXnFEuLCxyBXcG84MHDwrClDgmJ2XVqlWCWChFRUUyPkazD6Xz2jXLiRMndAH8BAS1bS6R4eFhQ82cOlBwrR/e3/i6sNDXBKue61Ff17iV+fTxLbDS5HsQ4r+5Sziag0CwRs3dL8nxFqTFCIoczS/n6lZCwksFb+ePyFbU8Avcv+pxlxnAbY+wM1XwasTz6XETM/xNw3eOic+C2ZogkvwCvucfSQvQ5OMRdxafPowvDHQ6C1+NQATgs/AX9zwQaHKG/Sb40tcynxnOKYYj5dsMn+cMY8udcg1yiv0aQejPE66PfcBdYLkJchdnA8smcbBUBfCQXSpZhrla4D/DDNoXLfxZ58vCDcCf1zfqss/ngN/vTT5tdxh2F5Llo8IOgLH1eYCHgbH4OZX8l7gGXAF4m+El5g7AmfBL/gFhgZO179JGyAAAAABJRU5ErkJggg=="/>\n </defs>\n <use id="image-1" xlink:href="#image" x="0px" y="0px" width="41px" height="41px"/>\n </svg>\n',iconSrc:e.iconSrc,wallet:(n=a(regeneratorRuntime.mark(function e(n){var i,s,o,p;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.BigNumber,s=n.networkName,o=n.resetWalletState,e.next=3,u({appName:r,rpcUrl:t,networkId:c,BigNumber:i,networkName:s,resetWalletState:o});case 3:return e.abrupt("return",{provider:p=e.sent,interface:{name:"Lattice",connect:p.enable,disconnect:p.disconnect,address:{get:function(){var e=a(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p.getPrimaryAddress());case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},network:{get:function(){var e=a(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c);case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},balance:{get:function(){var e=a(regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.getPrimaryAddress(),e.abrupt("return",n&&p.getBalance(n));case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}}});case 5:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),type:"hardware",desktop:!0,mobile:!0,osExclusions:["iOS"],preferred:i}}}}]);