-
Notifications
You must be signed in to change notification settings - Fork 1
/
50.42c82f6e1601cccdef17.js
1 lines (1 loc) · 3.18 KB
/
50.42c82f6e1601cccdef17.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{mASA:function(e,t,n){"use strict";n.r(t);var r=n("zfVJ");function o(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}t.default=function(e){var t,i,a=e.preferred,l=e.rpcUrl;return{name:e.label||"imToken",iconSrc:e.iconSrc,svg:e.svg||'\n\t<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 93 93">\n\t\t<defs>\n\t\t\t\t<linearGradient id="a" x1="97.185%" x2="-.038%" y1="3.105%" y2="99.699%">\n\t\t\t\t\t\t<stop offset="0%" stop-color="#11C4D1"/>\n\t\t\t\t\t\t<stop offset="100%" stop-color="#0062AD"/>\n\t\t\t\t</linearGradient>\n\t\t</defs>\n\t\t<g fill="none" fill-rule="nonzero">\n\t\t\t\t<path fill="url(#a)" d="M92.755 63.804s0 9.64-1.028 13.78c-1.028 4.187-2.985 7.06-5.09 9.202-2.154 2.142-4.993 4.09-9.3 5.112-4.356 1.023-13.754.974-13.754.974H29.417s-9.642 0-13.803-1.022c-4.16-1.071-7.097-2.97-9.25-5.113-2.155-2.142-4.112-4.966-5.091-9.3-1.028-4.333-.98-13.682-.98-13.682V29.671s0-9.64 1.029-13.78c1.027-4.187 2.985-7.06 5.09-9.202 2.154-2.142 4.993-4.09 9.3-5.113C20.068.554 29.466.603 29.466.603h34.166s9.642 0 13.803 1.022c4.16 1.071 7.097 2.97 9.25 5.113 2.154 2.142 4.112 4.966 5.091 9.3.98 4.333.98 13.682.98 13.682v34.084z"/>\n\t\t\t\t<path fill="#FFF" d="M78.267 28.795c1.909 26.244-15.614 38.71-31.326 40.073-14.587 1.265-28.292-7.304-29.467-20.597-.979-10.955 6.07-15.678 11.6-16.117 5.679-.486 10.427 3.263 10.867 7.84.392 4.382-2.447 6.427-4.454 6.573-1.566.146-3.524-.78-3.72-2.727-.147-1.704.538-1.899.342-3.7-.293-3.214-3.181-3.555-4.747-3.409-1.91.146-5.385 2.338-4.944 7.694.49 5.404 5.874 9.69 12.922 9.056 7.636-.682 12.971-6.378 13.363-14.412 0-.439.098-.828.293-1.218.098-.146.147-.292.294-.438.196-.292.392-.536.636-.779l.686-.682c3.328-3.019 15.37-10.225 26.676-7.985.098 0 .196.049.245.097.44 0 .685.341.734.73"/>\n\t\t</g>\n\t</svg>\n',wallet:(t=regeneratorRuntime.mark(function e(t){var r,o,i,a,s,c,u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.getProviderName,o=t.getBalance,i=window.ethereum,!(a="imToken"===r(i))||!l){e.next=7;break}return e.next=6,Promise.all([n.e(1),n.e(2),n.e(3),n.e(4),n.e(5)]).then(n.bind(null,"468V"));case 6:s=e.sent.default;case 7:return c=s?s({rpcUrl:l}):null,u=!1,e.abrupt("return",{provider:i,interface:a?{address:{get:function(){return Promise.resolve(i.selectedAddress)}},network:{get:function(){return Promise.resolve(Number(i.networkVersion))}},balance:{get:function(){return c?o(c,i.selectedAddress):(u||(console.warn('The imToken provider does not allow rpc calls preventing Onboard.js from getting the balance. You can pass in a "rpcUrl" to the imToken wallet initialization object to get the balance.'),u=!0),Promise.resolve(null))}},name:r(i),connect:function(){return i.enable()}}:null});case 10:case"end":return e.stop()}},e)}),i=function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function l(e){o(a,r,i,l,s,"next",e)}function s(e){o(a,r,i,l,s,"throw",e)}l(void 0)})},function(e){return i.apply(this,arguments)}),type:"injected",link:"imtokenv2://navigate?screen=DappView&url=".concat(window.location.href),installMessage:r.b,mobile:!0,preferred:a}}}}]);