-
Notifications
You must be signed in to change notification settings - Fork 1
/
21.8bc2c9df0f1d31cc9645.js
1 lines (1 loc) · 3.39 KB
/
21.8bc2c9df0f1d31cc9645.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{xmaS:function(n,e,t){"use strict";t.r(e),t("ls82");var r=t("zkZy");function o(n,e,t,r,o,i,a){try{var c=n[i](a),s=c.value}catch(u){return void t(u)}c.done?e(s):Promise.resolve(s).then(r,o)}t("Nwb1"),t("sdcv"),t("9/5/"),t("M39V"),e.default=function(n){var e,i,a=n.apiKey,c=n.networkId,s=n.preferred;return{name:n.label||"Squarelink",svg:n.svg||'\n <svg width="88px" height="88px" viewBox="0 0 88 88" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="Identity" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Artboard" transform="translate(-11.000000, -220.000000)">\n <g id="Group" transform="translate(11.508925, 220.556971)">\n <circle id="Oval" fill="#313D53" cx="43.4910749" cy="43.4910749" r="43.4910749"></circle>\n <path d="M26.9807751,53.5120539 L26.9807751,56.7049531 C26.9807751,58.9140921 28.7716361,60.7049531 30.9807751,60.7049531 L56.0422363,60.7049531 C58.2513753,60.7049531 60.0422363,58.9140921 60.0422363,56.7049531 L60.0422363,30.2473297 C60.0422363,28.0381907 58.2513753,26.2473297 56.0422363,26.2473297 L26.9807751,26.2473297 L26.9807751,47.8897807 L26.9807751,53.5120539 Z M20.4910749,20.4430293 L56.4910749,20.4430293 C62.0139224,20.4430293 66.4910749,24.9201818 66.4910749,30.4430293 L66.4910749,56.5391205 C66.4910749,62.061968 62.0139224,66.5391205 56.4910749,66.5391205 L30.4910749,66.5391205 C24.9682274,66.5391205 20.4910749,62.061968 20.4910749,56.5391205 L20.4910749,20.4430293 Z M33.9720552,26.2473297 L40.419051,26.2473297 L40.419051,41.0316245 L40.419051,49.5120539 C40.419051,51.7211929 38.62819,53.5120539 36.419051,53.5120539 L26.9807751,53.5120539 L26.9807751,47.8897807 L33.9720552,47.8897807 L33.9720552,26.2473297 Z M33.9720552,26.2473297 L40.419051,26.2473297 L33.9720552,26.2473297 Z M53.0509562,60.7049531 L46.6039605,60.7049531 L46.6039605,45.9206584 L46.6039605,37.4402289 C46.6039605,35.2310899 48.3948215,33.4402289 50.6039605,33.4402289 L60.0422363,33.4402289 L60.0422363,39.0625021 L53.0509562,39.0625021 L53.0509562,60.7049531 Z M46.6039605,60.7049531 L53.0509562,60.7049531 L46.6039605,60.7049531 Z M60.0422363,39.0625021 L60.0422363,33.4402289 L60.0422363,39.0625021 Z" id="Icon-Blue" fill="#E8EEFF"></path>\n </g>\n </g>\n </g>\n </svg>\n',iconSrc:n.iconSrc,wallet:(e=regeneratorRuntime.mark((function n(e){var o,i,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.e(26).then(t.t.bind(null,"j8LT",7));case 2:return o=new(0,n.sent.default)(a,Object(r.c)(c),{useSync:!0}),i=o.getProviderSync(),s=e.BigNumber,n.abrupt("return",{provider:i,instance:o,interface:{name:"Squarelink",connect:i.enable,address:{get:function(){return Promise.resolve(o.accounts[0])}},network:{get:function(){return Promise.resolve(Object(r.a)(o.network))}},balance:{get:function(){return new Promise((function(n){o.accounts.length?i.sendAsync({method:"eth_getBalance",params:[o.accounts[0],"latest"],id:1},(function(e,t){n(s(t.result).toString(10))})):n(null)}))}}}});case 8:case"end":return n.stop()}}),n)})),i=function(){var n=this,t=arguments;return new Promise((function(r,i){var a=e.apply(n,t);function c(n){o(a,r,i,c,s,"next",n)}function s(n){o(a,r,i,c,s,"throw",n)}c(void 0)}))},function(n){return i.apply(this,arguments)}),desktop:!0,mobile:!0,url:"https://app.squarelink.com/",preferred:s}}}}]);