-
Notifications
You must be signed in to change notification settings - Fork 1
/
20.ebc5504ef2ac013694ed.js
1 lines (1 loc) · 1.91 KB
/
20.ebc5504ef2ac013694ed.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{"y/GZ":function(n,e,t){"use strict";t.r(e),t("ls82");var r=t("LBNH");function o(n,e,t,r,o,i,c){try{var a=n[i](c),u=a.value}catch(s){return void t(s)}a.done?e(u):Promise.resolve(u).then(r,o)}t("Nwb1"),t("sdcv"),t("9/5/"),t("M39V"),e.default=function(n){var e,i,c=n.apiKey,a=n.networkId,u=n.preferred;return{name:n.label||"Fortmatic",svg:n.svg||'\n <svg \n height="40" \n viewBox="0 0 40 40" \n width="40" \n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="m2744.99995 1155h9.99997 10.00008v9.98139h-10.00008-9.99997-9.99998v9.9814.64001 9.28323.05815 9.9234h-9.99997v-9.9234-.05815-9.28323-.64001-9.9814-9.98139h9.99997zm9.99961 29.88552h-9.94167v-9.92324h19.93595v10.27235c0 2.55359-1.01622 5.00299-2.82437 6.80909-1.80867 1.8061-4.26182 2.82181-6.82018 2.82335h-.34973z" \n fill="#617bff" \n fill-rule="evenodd" \n transform="translate(-2725 -1155)"/>\n </svg>\n',iconSrc:n.iconSrc,wallet:(e=regeneratorRuntime.mark((function n(e){var o,i,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.e(32).then(t.t.bind(null,"Tez3",7));case 2:return o=new(0,n.sent.default)(c,1===a?void 0:Object(r.c)(a)),i=o.getProvider(),u=e.BigNumber,n.abrupt("return",{provider:i,instance:o,interface:{name:"Fortmatic",connect:o.user.login,address:{get:function(){return Promise.resolve(i.account)}},network:{get:function(){return Promise.resolve(a)}},balance:{get:function(){return i.account&&o.user.getBalances().then((function(n){return n[0]?u(n[0].crypto_amount).times(u("1000000000000000000")).toString(10):null}))}}}});case 8:case"end":return n.stop()}}),n)})),i=function(){var n=this,t=arguments;return new Promise((function(r,i){var c=e.apply(n,t);function a(n){o(c,r,i,a,u,"next",n)}function u(n){o(c,r,i,a,u,"throw",n)}a(void 0)}))},function(n){return i.apply(this,arguments)}),type:"sdk",desktop:!0,mobile:!0,preferred:u}}}}]);