edge-currency-accountbased 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 3.2.1 (2024-03-01)
6
+
7
+ - changed: Update Algorand explorer urls
8
+ - fixed: (PLS) fix transaction history date parsing from pulsechain-scan network adapter
9
+
5
10
  ## 3.2.0 (2024-02-27)
6
11
 
7
12
  - added: Cosmos IBC transaction support
@@ -1,2 +1,2 @@
1
1
  (function(){var H0={77591:function(S,g,t){"use strict";var n=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(g,"__esModule",{value:!0}),g.round=g.ceil=g.floor=g.abs=g.toFixed=g.log10=g.max=g.min=g.eq=g.lte=g.gte=g.lt=g.gt=g.div=g.mul=g.sub=g.add=void 0;const P=n(t(13550));function b(w){return!!(w.startsWith("0x")||w.startsWith("-0x")||w.toLowerCase().includes("a")||w.toLowerCase().includes("b")||w.toLowerCase().includes("c")||w.toLowerCase().includes("d")||w.toLowerCase().includes("e")||w.toLowerCase().includes("f"))}function T(w){return w.replace("0x","")}function p(w,E){let d=w;for(let e=0;e<E;e++)d+="0";return d}function M(w){let E=w.replace(/^0+/,"");return E=E.replace(/^\.+/,"0."),E.includes(".")&&(E=E.replace(/0+$/,""),E=E.replace(/\.+$/,""),E===""&&(E="0")),E===""&&(E="0"),E}function Y(w,E){if(E===0)return w;let d=!1;w.slice(0,1)==="-"&&(d=!0,w=w.slice(1));let e;return E>w.length?e="0."+p("",E-w.length)+w:e=w.substr(0,w.length-E)+"."+w.substr(w.length-E,w.length),e=M(e),d&&(e=`-${e}`),e}function U(w,E,d){let e=w,o=E;K(e,o);let r=e.indexOf("."),i=o.indexOf(".");const s=b(e),u=b(o);if(r!==-1&&(e=M(e),r=e.indexOf(".")),i!==-1&&(o=M(o),i=o.indexOf(".")),r!==-1||i!==-1||typeof d=="number"){if(s||u)throw new Error("Cannot operate on base16 float values");let h=0,c=0;r!==-1&&(h=e.length-r-1),i!==-1&&(c=o.length-i-1);const a=h>c?h:c;let f=0;return typeof d=="number"&&(f=d),e=p(e.replace(".",""),a+f-h),o=p(o.replace(".",""),a-c),{x:e,y:o,shift:a}}else return{x:e,y:o,shift:0}}function K(...w){for(const E of w){if(E.split(".").length-1>1)throw new Error("Invalid number: more than one decimal point");if(E.split("-").length-1>1)throw new Error("Invalid number: more than one negative sign")}}function $(w,E,d=10){if(d!==10&&d!==16)throw new Error("Unsupported base");let{x:e,y:o,shift:r}=U(w,E);const i=b(e)?16:10,s=b(o)?16:10;e=T(e),o=T(o);const u=new P.default(e,i),h=new P.default(o,s);let c=u.add(h).toString(d);return c=Y(c,r),d===10?c:c.replace(/^(-)?/,"$10x")}g.add=$;function q(w,E,d=10){if(d!==10&&d!==16)throw new Error("Unsupported base");let{x:e,y:o,shift:r}=U(w,E);const i=b(e)?16:10,s=b(o)?16:10;e=T(e),o=T(o);const u=new P.default(e,i),h=new P.default(o,s);let c=u.mul(h).toString(d);return c=Y(c,r*2),d===10?c:c.replace(/^(-)?/,"$10x")}g.mul=q;function de(w,E,d=10){if(d!==10&&d!==16)throw new Error("Unsupported base");let{x:e,y:o,shift:r}=U(w,E);const i=b(e)?16:10,s=b(o)?16:10;e=T(e),o=T(o);const u=new P.default(e,i),h=new P.default(o,s);let c=u.sub(h).toString(d);return c=Y(c,r),d===10?c:c.replace(/^(-)?/,"$10x")}g.sub=de;function Z(w,E,d=0,e=10){if(e!==10&&d>0)throw new Error("Cannot operate on floating point hex values");if(e!==10&&e!==16)throw new Error("Unsupported base");let{x:o,y:r}=U(w,E,d);const i=b(o)?16:10,s=b(r)?16:10;o=T(o),r=T(r);const u=new P.default(o,i),h=new P.default(r,s);let c=u.div(h).toString(e);return c=Y(c,d),e===10?c:c.replace(/^(-)?/,"$10x")}g.div=Z;function D(w,E){let{x:d,y:e}=U(w,E);const o=b(d)?16:10,r=b(e)?16:10;d=T(d),e=T(e);const i=new P.default(d,o),s=new P.default(e,r);return i.lt(s)}g.lt=D;function N(w,E){let{x:d,y:e}=U(w,E);const o=b(d)?16:10,r=b(e)?16:10;d=T(d),e=T(e);const i=new P.default(d,o),s=new P.default(e,r);return i.lte(s)}g.lte=N;function k(w,E){let{x:d,y:e}=U(w,E);const o=b(d)?16:10,r=b(e)?16:10;d=T(d),e=T(e);const i=new P.default(d,o),s=new P.default(e,r);return i.gt(s)}g.gt=k;function ee(w,E){let{x:d,y:e}=U(w,E);const o=b(d)?16:10,r=b(e)?16:10;d=T(d),e=T(e);const i=new P.default(d,o),s=new P.default(e,r);return i.gte(s)}g.gte=ee;function te(w,E){let{x:d,y:e}=U(w,E);const o=b(d)?16:10,r=b(e)?16:10;d=T(d),e=T(e);const i=new P.default(d,o),s=new P.default(e,r);return i.eq(s)}g.eq=te;function re(w,E,d=10){let{x:e,y:o,shift:r}=U(w,E);const i=b(e)?16:10,s=b(o)?16:10;e=T(e),o=T(o);const u=new P.default(e,i),h=new P.default(o,s);let c;return u.lte(h)?c=u.toString(d):c=h.toString(d),c=Y(c,r),d===10?c:c.replace(/^(-)?/,"$10x")}g.min=re;function fe(w,E=10){if(E!==10&&E!==16)throw new Error("Unsupported base");let{x:d,shift:e}=U(w,"0");const o=b(w)?16:10;d=T(d);let i=new P.default(d,o).abs().toString(E);return i=Y(i,e),E===10?i:i.replace(/^(-)?/,"$10x")}g.abs=fe;function F(w,E,d=10){let{x:e,y:o,shift:r}=U(w,E);const i=b(e)?16:10,s=b(o)?16:10;e=T(e),o=T(o);const u=new P.default(e,i),h=new P.default(o,s);let c;return u.gte(h)?c=u.toString(d):c=h.toString(d),c=Y(c,r),d===10?c:c.replace(/^(-)?/,"$10x")}g.max=F;function x(w,E,d=0){var e,o;K(E);let r=!1,i="",s=E;s.includes("-")&&(r=!0,s=s.replace(/^-+/,""));const[u,h=""]=s.split("."),c=s.indexOf("."),a=c!==-1?c-d:s.length-d,f=u+h;if(w==="round"){const pe=(e=f[a])!==null&&e!==void 0?e:"0";ee(pe,"5")?w="ceil":w="floor"}const R=Math.max(f.length-a+1,0),X=new Array(R).join("0");let z=f.substring(0,a)+X;const _=k(f.substring(a),"0");if(w==="ceil"&&_){const pe="1"+X,qe=((o=z.match(/^0+/))!==null&&o!==void 0?o:[""])[0].length;z=new Array(qe).join("0")+$(z,pe)}const ce=c+(z.length-f.length);return c!==-1?i=z.substring(0,ce)+"."+z.substring(ce):i=z,i=M(i),r&&i!=="0"&&(i="-"+i),i}const L=(w,E)=>x("floor",w,E);g.floor=L;const V=(w,E)=>x("ceil",w,E);g.ceil=V;const ie=(w,E)=>x("round",w,E);g.round=ie;function le(w,E=2,d=8){K(w);let e=!1,o="",r=w;r.includes("-")&&(e=!0,r=r.replace(/^-+/,"")),r=M(r);const i=r.indexOf(".");if(i===-1)o=r+"."+p("",E);else{const s=r.length-i-1;s>d?o=r.substr(0,r.length-(s-d)):s<E?o=r+p("",E-s):o=r}return o=o.replace(/\.+$/,""),e&&o!=="0"&&(o="-"+o),o}g.toFixed=le;function se(w){if(w.match(/^[0-1]+$/g)===null)throw new Error("InvalidLogInputValue: Must be a power of 10");if(!w.startsWith("1"))throw new Error("InvalidLogInputValue: Must not have leading zeros");if((w.match(/1/g)||[]).length>1)throw new Error("InvalidLogInputValue: Must be power of 10.");return(w.match(/0/g)||[]).length}g.log10=se},13550:function(S,g,t){S=t.nmd(S),function(n,P){"use strict";function b(d,e){if(!d)throw new Error(e||"Assertion failed")}function T(d,e){d.super_=e;var o=function(){};o.prototype=e.prototype,d.prototype=new o,d.prototype.constructor=d}function p(d,e,o){if(p.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((e==="le"||e==="be")&&(o=e,e=10),this._init(d||0,e||10,o||"be"))}typeof n=="object"?n.exports=p:P.BN=p,p.BN=p,p.wordSize=26;var M;try{typeof window<"u"&&typeof window.Buffer<"u"?M=window.Buffer:M=t(46601).Buffer}catch{}p.isBN=function(e){return e instanceof p?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===p.wordSize&&Array.isArray(e.words)},p.max=function(e,o){return e.cmp(o)>0?e:o},p.min=function(e,o){return e.cmp(o)<0?e:o},p.prototype._init=function(e,o,r){if(typeof e=="number")return this._initNumber(e,o,r);if(typeof e=="object")return this._initArray(e,o,r);o==="hex"&&(o=16),b(o===(o|0)&&o>=2&&o<=36),e=e.toString().replace(/\s+/g,"");var i=0;e[0]==="-"&&(i++,this.negative=1),i<e.length&&(o===16?this._parseHex(e,i,r):(this._parseBase(e,o,i),r==="le"&&this._initArray(this.toArray(),o,r)))},p.prototype._initNumber=function(e,o,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(b(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),r==="le"&&this._initArray(this.toArray(),o,r)},p.prototype._initArray=function(e,o,r){if(b(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var s,u,h=0;if(r==="be")for(i=e.length-1,s=0;i>=0;i-=3)u=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=u<<h&67108863,this.words[s+1]=u>>>26-h&67108863,h+=24,h>=26&&(h-=26,s++);else if(r==="le")for(i=0,s=0;i<e.length;i+=3)u=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=u<<h&67108863,this.words[s+1]=u>>>26-h&67108863,h+=24,h>=26&&(h-=26,s++);return this._strip()};function Y(d,e){var o=d.charCodeAt(e);if(o>=48&&o<=57)return o-48;if(o>=65&&o<=70)return o-55;if(o>=97&&o<=102)return o-87;b(!1,"Invalid character in "+d)}function U(d,e,o){var r=Y(d,o);return o-1>=e&&(r|=Y(d,o-1)<<4),r}p.prototype._parseHex=function(e,o,r){this.length=Math.ceil((e.length-o)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var s=0,u=0,h;if(r==="be")for(i=e.length-1;i>=o;i-=2)h=U(e,o,i)<<s,this.words[u]|=h&67108863,s>=18?(s-=18,u+=1,this.words[u]|=h>>>26):s+=8;else{var c=e.length-o;for(i=c%2===0?o+1:o;i<e.length;i+=2)h=U(e,o,i)<<s,this.words[u]|=h&67108863,s>=18?(s-=18,u+=1,this.words[u]|=h>>>26):s+=8}this._strip()};function K(d,e,o,r){for(var i=0,s=0,u=Math.min(d.length,o),h=e;h<u;h++){var c=d.charCodeAt(h)-48;i*=r,c>=49?s=c-49+10:c>=17?s=c-17+10:s=c,b(c>=0&&s<r,"Invalid character"),i+=s}return i}p.prototype._parseBase=function(e,o,r){this.words=[0],this.length=1;for(var i=0,s=1;s<=67108863;s*=o)i++;i--,s=s/o|0;for(var u=e.length-r,h=u%i,c=Math.min(u,u-h)+r,a=0,f=r;f<c;f+=i)a=K(e,f,f+i,o),this.imuln(s),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(h!==0){var R=1;for(a=K(e,f,e.length,o),f=0;f<h;f++)R*=o;this.imuln(R),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this._strip()},p.prototype.copy=function(e){e.words=new Array(this.length);for(var o=0;o<this.length;o++)e.words[o]=this.words[o];e.length=this.length,e.negative=this.negative,e.red=this.red};function $(d,e){d.words=e.words,d.length=e.length,d.negative=e.negative,d.red=e.red}if(p.prototype._move=function(e){$(e,this)},p.prototype.clone=function(){var e=new p(null);return this.copy(e),e},p.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},p.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{p.prototype[Symbol.for("nodejs.util.inspect.custom")]=q}catch{p.prototype.inspect=q}else p.prototype.inspect=q;function q(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var de=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Z=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];p.prototype.toString=function(e,o){e=e||10,o=o|0||1;var r;if(e===16||e==="hex"){r="";for(var i=0,s=0,u=0;u<this.length;u++){var h=this.words[u],c=((h<<i|s)&16777215).toString(16);s=h>>>24-i&16777215,i+=2,i>=26&&(i-=26,u--),s!==0||u!==this.length-1?r=de[6-c.length]+c+r:r=c+r}for(s!==0&&(r=s.toString(16)+r);r.length%o!==0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}if(e===(e|0)&&e>=2&&e<=36){var a=Z[e],f=D[e];r="";var R=this.clone();for(R.negative=0;!R.isZero();){var X=R.modrn(f).toString(e);R=R.idivn(f),R.isZero()?r=X+r:r=de[a-X.length]+X+r}for(this.isZero()&&(r="0"+r);r.length%o!==0;)r="0"+r;return this.negative!==0&&(r="-"+r),r}b(!1,"Base should be between 2 and 36")},p.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&b(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},p.prototype.toJSON=function(){return this.toString(16,2)},M&&(p.prototype.toBuffer=function(e,o){return this.toArrayLike(M,e,o)}),p.prototype.toArray=function(e,o){return this.toArrayLike(Array,e,o)};var N=function(e,o){return e.allocUnsafe?e.allocUnsafe(o):new e(o)};p.prototype.toArrayLike=function(e,o,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);b(i<=s,"byte array longer than desired length"),b(s>0,"Requested array length <= 0");var u=N(e,s),h=o==="le"?"LE":"BE";return this["_toArrayLike"+h](u,i),u},p.prototype._toArrayLikeLE=function(e,o){for(var r=0,i=0,s=0,u=0;s<this.length;s++){var h=this.words[s]<<u|i;e[r++]=h&255,r<e.length&&(e[r++]=h>>8&255),r<e.length&&(e[r++]=h>>16&255),u===6?(r<e.length&&(e[r++]=h>>24&255),i=0,u=0):(i=h>>>24,u+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},p.prototype._toArrayLikeBE=function(e,o){for(var r=e.length-1,i=0,s=0,u=0;s<this.length;s++){var h=this.words[s]<<u|i;e[r--]=h&255,r>=0&&(e[r--]=h>>8&255),r>=0&&(e[r--]=h>>16&255),u===6?(r>=0&&(e[r--]=h>>24&255),i=0,u=0):(i=h>>>24,u+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?p.prototype._countBits=function(e){return 32-Math.clz32(e)}:p.prototype._countBits=function(e){var o=e,r=0;return o>=4096&&(r+=13,o>>>=13),o>=64&&(r+=7,o>>>=7),o>=8&&(r+=4,o>>>=4),o>=2&&(r+=2,o>>>=2),r+o},p.prototype._zeroBits=function(e){if(e===0)return 26;var o=e,r=0;return(o&8191)===0&&(r+=13,o>>>=13),(o&127)===0&&(r+=7,o>>>=7),(o&15)===0&&(r+=4,o>>>=4),(o&3)===0&&(r+=2,o>>>=2),(o&1)===0&&r++,r},p.prototype.bitLength=function(){var e=this.words[this.length-1],o=this._countBits(e);return(this.length-1)*26+o};function k(d){for(var e=new Array(d.bitLength()),o=0;o<e.length;o++){var r=o/26|0,i=o%26;e[o]=d.words[r]>>>i&1}return e}p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,o=0;o<this.length;o++){var r=this._zeroBits(this.words[o]);if(e+=r,r!==26)break}return e},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},p.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var o=0;o<e.length;o++)this.words[o]=this.words[o]|e.words[o];return this._strip()},p.prototype.ior=function(e){return b((this.negative|e.negative)===0),this.iuor(e)},p.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},p.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},p.prototype.iuand=function(e){var o;this.length>e.length?o=e:o=this;for(var r=0;r<o.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=o.length,this._strip()},p.prototype.iand=function(e){return b((this.negative|e.negative)===0),this.iuand(e)},p.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},p.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},p.prototype.iuxor=function(e){var o,r;this.length>e.length?(o=this,r=e):(o=e,r=this);for(var i=0;i<r.length;i++)this.words[i]=o.words[i]^r.words[i];if(this!==o)for(;i<o.length;i++)this.words[i]=o.words[i];return this.length=o.length,this._strip()},p.prototype.ixor=function(e){return b((this.negative|e.negative)===0),this.iuxor(e)},p.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},p.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},p.prototype.inotn=function(e){b(typeof e=="number"&&e>=0);var o=Math.ceil(e/26)|0,r=e%26;this._expand(o),r>0&&o--;for(var i=0;i<o;i++)this.words[i]=~this.words[i]&67108863;return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},p.prototype.notn=function(e){return this.clone().inotn(e)},p.prototype.setn=function(e,o){b(typeof e=="number"&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),o?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},p.prototype.iadd=function(e){var o;if(this.negative!==0&&e.negative===0)return this.negative=0,o=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,o=this.isub(e),e.negative=1,o._normSign();var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var s=0,u=0;u<i.length;u++)o=(r.words[u]|0)+(i.words[u]|0)+s,this.words[u]=o&67108863,s=o>>>26;for(;s!==0&&u<r.length;u++)o=(r.words[u]|0)+s,this.words[u]=o&67108863,s=o>>>26;if(this.length=r.length,s!==0)this.words[this.length]=s,this.length++;else if(r!==this)for(;u<r.length;u++)this.words[u]=r.words[u];return this},p.prototype.add=function(e){var o;return e.negative!==0&&this.negative===0?(e.negative=0,o=this.sub(e),e.negative^=1,o):e.negative===0&&this.negative!==0?(this.negative=0,o=e.sub(this),this.negative=1,o):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},p.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var o=this.iadd(e);return e.negative=1,o._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(r===0)return this.negative=0,this.length=1,this.words[0]=0,this;var i,s;r>0?(i=this,s=e):(i=e,s=this);for(var u=0,h=0;h<s.length;h++)o=(i.words[h]|0)-(s.words[h]|0)+u,u=o>>26,this.words[h]=o&67108863;for(;u!==0&&h<i.length;h++)o=(i.words[h]|0)+u,u=o>>26,this.words[h]=o&67108863;if(u===0&&h<i.length&&i!==this)for(;h<i.length;h++)this.words[h]=i.words[h];return this.length=Math.max(this.length,h),i!==this&&(this.negative=1),this._strip()},p.prototype.sub=function(e){return this.clone().isub(e)};function ee(d,e,o){o.negative=e.negative^d.negative;var r=d.length+e.length|0;o.length=r,r=r-1|0;var i=d.words[0]|0,s=e.words[0]|0,u=i*s,h=u&67108863,c=u/67108864|0;o.words[0]=h;for(var a=1;a<r;a++){for(var f=c>>>26,R=c&67108863,X=Math.min(a,e.length-1),z=Math.max(0,a-d.length+1);z<=X;z++){var _=a-z|0;i=d.words[_]|0,s=e.words[z]|0,u=i*s+R,f+=u/67108864|0,R=u&67108863}o.words[a]=R|0,c=f|0}return c!==0?o.words[a]=c|0:o.length--,o._strip()}var te=function(e,o,r){var i=e.words,s=o.words,u=r.words,h=0,c,a,f,R=i[0]|0,X=R&8191,z=R>>>13,_=i[1]|0,ce=_&8191,pe=_>>>13,qe=i[2]|0,ye=qe&8191,ve=qe>>>13,a0=i[3]|0,Je=a0&8191,Ce=a0>>>13,A0=i[4]|0,De=A0&8191,ke=A0>>>13,w0=i[5]|0,Ae=w0&8191,Be=w0>>>13,I0=i[6]|0,be=I0&8191,Oe=I0>>>13,F0=i[7]|0,ge=F0&8191,$e=F0>>>13,r0=i[8]|0,we=r0&8191,Re=r0>>>13,E0=i[9]|0,Ue=E0&8191,Ie=E0>>>13,N0=s[0]|0,Xe=N0&8191,Fe=N0>>>13,P0=s[1]|0,Ke=P0&8191,Ee=P0>>>13,k0=s[2]|0,Ne=k0&8191,Pe=k0>>>13,T0=s[3]|0,He=T0&8191,Ge=T0>>>13,i0=s[4]|0,Te=i0&8191,We=i0>>>13,s0=s[5]|0,ze=s0&8191,Ze=s0>>>13,c0=s[6]|0,Qe=c0&8191,xe=c0>>>13,x0=s[7]|0,Ve=x0&8191,Me=x0>>>13,M0=s[8]|0,je=M0&8191,Le=M0>>>13,L0=s[9]|0,Ye=L0&8191,Se=L0>>>13;r.negative=e.negative^o.negative,r.length=19,c=Math.imul(X,Xe),a=Math.imul(X,Fe),a=a+Math.imul(z,Xe)|0,f=Math.imul(z,Fe);var d0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(d0>>>26)|0,d0&=67108863,c=Math.imul(ce,Xe),a=Math.imul(ce,Fe),a=a+Math.imul(pe,Xe)|0,f=Math.imul(pe,Fe),c=c+Math.imul(X,Ke)|0,a=a+Math.imul(X,Ee)|0,a=a+Math.imul(z,Ke)|0,f=f+Math.imul(z,Ee)|0;var l0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(l0>>>26)|0,l0&=67108863,c=Math.imul(ye,Xe),a=Math.imul(ye,Fe),a=a+Math.imul(ve,Xe)|0,f=Math.imul(ve,Fe),c=c+Math.imul(ce,Ke)|0,a=a+Math.imul(ce,Ee)|0,a=a+Math.imul(pe,Ke)|0,f=f+Math.imul(pe,Ee)|0,c=c+Math.imul(X,Ne)|0,a=a+Math.imul(X,Pe)|0,a=a+Math.imul(z,Ne)|0,f=f+Math.imul(z,Pe)|0;var _e=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,c=Math.imul(Je,Xe),a=Math.imul(Je,Fe),a=a+Math.imul(Ce,Xe)|0,f=Math.imul(Ce,Fe),c=c+Math.imul(ye,Ke)|0,a=a+Math.imul(ye,Ee)|0,a=a+Math.imul(ve,Ke)|0,f=f+Math.imul(ve,Ee)|0,c=c+Math.imul(ce,Ne)|0,a=a+Math.imul(ce,Pe)|0,a=a+Math.imul(pe,Ne)|0,f=f+Math.imul(pe,Pe)|0,c=c+Math.imul(X,He)|0,a=a+Math.imul(X,Ge)|0,a=a+Math.imul(z,He)|0,f=f+Math.imul(z,Ge)|0;var S0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(S0>>>26)|0,S0&=67108863,c=Math.imul(De,Xe),a=Math.imul(De,Fe),a=a+Math.imul(ke,Xe)|0,f=Math.imul(ke,Fe),c=c+Math.imul(Je,Ke)|0,a=a+Math.imul(Je,Ee)|0,a=a+Math.imul(Ce,Ke)|0,f=f+Math.imul(Ce,Ee)|0,c=c+Math.imul(ye,Ne)|0,a=a+Math.imul(ye,Pe)|0,a=a+Math.imul(ve,Ne)|0,f=f+Math.imul(ve,Pe)|0,c=c+Math.imul(ce,He)|0,a=a+Math.imul(ce,Ge)|0,a=a+Math.imul(pe,He)|0,f=f+Math.imul(pe,Ge)|0,c=c+Math.imul(X,Te)|0,a=a+Math.imul(X,We)|0,a=a+Math.imul(z,Te)|0,f=f+Math.imul(z,We)|0;var e0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(e0>>>26)|0,e0&=67108863,c=Math.imul(Ae,Xe),a=Math.imul(Ae,Fe),a=a+Math.imul(Be,Xe)|0,f=Math.imul(Be,Fe),c=c+Math.imul(De,Ke)|0,a=a+Math.imul(De,Ee)|0,a=a+Math.imul(ke,Ke)|0,f=f+Math.imul(ke,Ee)|0,c=c+Math.imul(Je,Ne)|0,a=a+Math.imul(Je,Pe)|0,a=a+Math.imul(Ce,Ne)|0,f=f+Math.imul(Ce,Pe)|0,c=c+Math.imul(ye,He)|0,a=a+Math.imul(ye,Ge)|0,a=a+Math.imul(ve,He)|0,f=f+Math.imul(ve,Ge)|0,c=c+Math.imul(ce,Te)|0,a=a+Math.imul(ce,We)|0,a=a+Math.imul(pe,Te)|0,f=f+Math.imul(pe,We)|0,c=c+Math.imul(X,ze)|0,a=a+Math.imul(X,Ze)|0,a=a+Math.imul(z,ze)|0,f=f+Math.imul(z,Ze)|0;var f0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(f0>>>26)|0,f0&=67108863,c=Math.imul(be,Xe),a=Math.imul(be,Fe),a=a+Math.imul(Oe,Xe)|0,f=Math.imul(Oe,Fe),c=c+Math.imul(Ae,Ke)|0,a=a+Math.imul(Ae,Ee)|0,a=a+Math.imul(Be,Ke)|0,f=f+Math.imul(Be,Ee)|0,c=c+Math.imul(De,Ne)|0,a=a+Math.imul(De,Pe)|0,a=a+Math.imul(ke,Ne)|0,f=f+Math.imul(ke,Pe)|0,c=c+Math.imul(Je,He)|0,a=a+Math.imul(Je,Ge)|0,a=a+Math.imul(Ce,He)|0,f=f+Math.imul(Ce,Ge)|0,c=c+Math.imul(ye,Te)|0,a=a+Math.imul(ye,We)|0,a=a+Math.imul(ve,Te)|0,f=f+Math.imul(ve,We)|0,c=c+Math.imul(ce,ze)|0,a=a+Math.imul(ce,Ze)|0,a=a+Math.imul(pe,ze)|0,f=f+Math.imul(pe,Ze)|0,c=c+Math.imul(X,Qe)|0,a=a+Math.imul(X,xe)|0,a=a+Math.imul(z,Qe)|0,f=f+Math.imul(z,xe)|0;var t0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(t0>>>26)|0,t0&=67108863,c=Math.imul(ge,Xe),a=Math.imul(ge,Fe),a=a+Math.imul($e,Xe)|0,f=Math.imul($e,Fe),c=c+Math.imul(be,Ke)|0,a=a+Math.imul(be,Ee)|0,a=a+Math.imul(Oe,Ke)|0,f=f+Math.imul(Oe,Ee)|0,c=c+Math.imul(Ae,Ne)|0,a=a+Math.imul(Ae,Pe)|0,a=a+Math.imul(Be,Ne)|0,f=f+Math.imul(Be,Pe)|0,c=c+Math.imul(De,He)|0,a=a+Math.imul(De,Ge)|0,a=a+Math.imul(ke,He)|0,f=f+Math.imul(ke,Ge)|0,c=c+Math.imul(Je,Te)|0,a=a+Math.imul(Je,We)|0,a=a+Math.imul(Ce,Te)|0,f=f+Math.imul(Ce,We)|0,c=c+Math.imul(ye,ze)|0,a=a+Math.imul(ye,Ze)|0,a=a+Math.imul(ve,ze)|0,f=f+Math.imul(ve,Ze)|0,c=c+Math.imul(ce,Qe)|0,a=a+Math.imul(ce,xe)|0,a=a+Math.imul(pe,Qe)|0,f=f+Math.imul(pe,xe)|0,c=c+Math.imul(X,Ve)|0,a=a+Math.imul(X,Me)|0,a=a+Math.imul(z,Ve)|0,f=f+Math.imul(z,Me)|0;var u0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(u0>>>26)|0,u0&=67108863,c=Math.imul(we,Xe),a=Math.imul(we,Fe),a=a+Math.imul(Re,Xe)|0,f=Math.imul(Re,Fe),c=c+Math.imul(ge,Ke)|0,a=a+Math.imul(ge,Ee)|0,a=a+Math.imul($e,Ke)|0,f=f+Math.imul($e,Ee)|0,c=c+Math.imul(be,Ne)|0,a=a+Math.imul(be,Pe)|0,a=a+Math.imul(Oe,Ne)|0,f=f+Math.imul(Oe,Pe)|0,c=c+Math.imul(Ae,He)|0,a=a+Math.imul(Ae,Ge)|0,a=a+Math.imul(Be,He)|0,f=f+Math.imul(Be,Ge)|0,c=c+Math.imul(De,Te)|0,a=a+Math.imul(De,We)|0,a=a+Math.imul(ke,Te)|0,f=f+Math.imul(ke,We)|0,c=c+Math.imul(Je,ze)|0,a=a+Math.imul(Je,Ze)|0,a=a+Math.imul(Ce,ze)|0,f=f+Math.imul(Ce,Ze)|0,c=c+Math.imul(ye,Qe)|0,a=a+Math.imul(ye,xe)|0,a=a+Math.imul(ve,Qe)|0,f=f+Math.imul(ve,xe)|0,c=c+Math.imul(ce,Ve)|0,a=a+Math.imul(ce,Me)|0,a=a+Math.imul(pe,Ve)|0,f=f+Math.imul(pe,Me)|0,c=c+Math.imul(X,je)|0,a=a+Math.imul(X,Le)|0,a=a+Math.imul(z,je)|0,f=f+Math.imul(z,Le)|0;var m0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(m0>>>26)|0,m0&=67108863,c=Math.imul(Ue,Xe),a=Math.imul(Ue,Fe),a=a+Math.imul(Ie,Xe)|0,f=Math.imul(Ie,Fe),c=c+Math.imul(we,Ke)|0,a=a+Math.imul(we,Ee)|0,a=a+Math.imul(Re,Ke)|0,f=f+Math.imul(Re,Ee)|0,c=c+Math.imul(ge,Ne)|0,a=a+Math.imul(ge,Pe)|0,a=a+Math.imul($e,Ne)|0,f=f+Math.imul($e,Pe)|0,c=c+Math.imul(be,He)|0,a=a+Math.imul(be,Ge)|0,a=a+Math.imul(Oe,He)|0,f=f+Math.imul(Oe,Ge)|0,c=c+Math.imul(Ae,Te)|0,a=a+Math.imul(Ae,We)|0,a=a+Math.imul(Be,Te)|0,f=f+Math.imul(Be,We)|0,c=c+Math.imul(De,ze)|0,a=a+Math.imul(De,Ze)|0,a=a+Math.imul(ke,ze)|0,f=f+Math.imul(ke,Ze)|0,c=c+Math.imul(Je,Qe)|0,a=a+Math.imul(Je,xe)|0,a=a+Math.imul(Ce,Qe)|0,f=f+Math.imul(Ce,xe)|0,c=c+Math.imul(ye,Ve)|0,a=a+Math.imul(ye,Me)|0,a=a+Math.imul(ve,Ve)|0,f=f+Math.imul(ve,Me)|0,c=c+Math.imul(ce,je)|0,a=a+Math.imul(ce,Le)|0,a=a+Math.imul(pe,je)|0,f=f+Math.imul(pe,Le)|0,c=c+Math.imul(X,Ye)|0,a=a+Math.imul(X,Se)|0,a=a+Math.imul(z,Ye)|0,f=f+Math.imul(z,Se)|0;var h0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(h0>>>26)|0,h0&=67108863,c=Math.imul(Ue,Ke),a=Math.imul(Ue,Ee),a=a+Math.imul(Ie,Ke)|0,f=Math.imul(Ie,Ee),c=c+Math.imul(we,Ne)|0,a=a+Math.imul(we,Pe)|0,a=a+Math.imul(Re,Ne)|0,f=f+Math.imul(Re,Pe)|0,c=c+Math.imul(ge,He)|0,a=a+Math.imul(ge,Ge)|0,a=a+Math.imul($e,He)|0,f=f+Math.imul($e,Ge)|0,c=c+Math.imul(be,Te)|0,a=a+Math.imul(be,We)|0,a=a+Math.imul(Oe,Te)|0,f=f+Math.imul(Oe,We)|0,c=c+Math.imul(Ae,ze)|0,a=a+Math.imul(Ae,Ze)|0,a=a+Math.imul(Be,ze)|0,f=f+Math.imul(Be,Ze)|0,c=c+Math.imul(De,Qe)|0,a=a+Math.imul(De,xe)|0,a=a+Math.imul(ke,Qe)|0,f=f+Math.imul(ke,xe)|0,c=c+Math.imul(Je,Ve)|0,a=a+Math.imul(Je,Me)|0,a=a+Math.imul(Ce,Ve)|0,f=f+Math.imul(Ce,Me)|0,c=c+Math.imul(ye,je)|0,a=a+Math.imul(ye,Le)|0,a=a+Math.imul(ve,je)|0,f=f+Math.imul(ve,Le)|0,c=c+Math.imul(ce,Ye)|0,a=a+Math.imul(ce,Se)|0,a=a+Math.imul(pe,Ye)|0,f=f+Math.imul(pe,Se)|0;var n0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(n0>>>26)|0,n0&=67108863,c=Math.imul(Ue,Ne),a=Math.imul(Ue,Pe),a=a+Math.imul(Ie,Ne)|0,f=Math.imul(Ie,Pe),c=c+Math.imul(we,He)|0,a=a+Math.imul(we,Ge)|0,a=a+Math.imul(Re,He)|0,f=f+Math.imul(Re,Ge)|0,c=c+Math.imul(ge,Te)|0,a=a+Math.imul(ge,We)|0,a=a+Math.imul($e,Te)|0,f=f+Math.imul($e,We)|0,c=c+Math.imul(be,ze)|0,a=a+Math.imul(be,Ze)|0,a=a+Math.imul(Oe,ze)|0,f=f+Math.imul(Oe,Ze)|0,c=c+Math.imul(Ae,Qe)|0,a=a+Math.imul(Ae,xe)|0,a=a+Math.imul(Be,Qe)|0,f=f+Math.imul(Be,xe)|0,c=c+Math.imul(De,Ve)|0,a=a+Math.imul(De,Me)|0,a=a+Math.imul(ke,Ve)|0,f=f+Math.imul(ke,Me)|0,c=c+Math.imul(Je,je)|0,a=a+Math.imul(Je,Le)|0,a=a+Math.imul(Ce,je)|0,f=f+Math.imul(Ce,Le)|0,c=c+Math.imul(ye,Ye)|0,a=a+Math.imul(ye,Se)|0,a=a+Math.imul(ve,Ye)|0,f=f+Math.imul(ve,Se)|0;var D0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(D0>>>26)|0,D0&=67108863,c=Math.imul(Ue,He),a=Math.imul(Ue,Ge),a=a+Math.imul(Ie,He)|0,f=Math.imul(Ie,Ge),c=c+Math.imul(we,Te)|0,a=a+Math.imul(we,We)|0,a=a+Math.imul(Re,Te)|0,f=f+Math.imul(Re,We)|0,c=c+Math.imul(ge,ze)|0,a=a+Math.imul(ge,Ze)|0,a=a+Math.imul($e,ze)|0,f=f+Math.imul($e,Ze)|0,c=c+Math.imul(be,Qe)|0,a=a+Math.imul(be,xe)|0,a=a+Math.imul(Oe,Qe)|0,f=f+Math.imul(Oe,xe)|0,c=c+Math.imul(Ae,Ve)|0,a=a+Math.imul(Ae,Me)|0,a=a+Math.imul(Be,Ve)|0,f=f+Math.imul(Be,Me)|0,c=c+Math.imul(De,je)|0,a=a+Math.imul(De,Le)|0,a=a+Math.imul(ke,je)|0,f=f+Math.imul(ke,Le)|0,c=c+Math.imul(Je,Ye)|0,a=a+Math.imul(Je,Se)|0,a=a+Math.imul(Ce,Ye)|0,f=f+Math.imul(Ce,Se)|0;var p0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(p0>>>26)|0,p0&=67108863,c=Math.imul(Ue,Te),a=Math.imul(Ue,We),a=a+Math.imul(Ie,Te)|0,f=Math.imul(Ie,We),c=c+Math.imul(we,ze)|0,a=a+Math.imul(we,Ze)|0,a=a+Math.imul(Re,ze)|0,f=f+Math.imul(Re,Ze)|0,c=c+Math.imul(ge,Qe)|0,a=a+Math.imul(ge,xe)|0,a=a+Math.imul($e,Qe)|0,f=f+Math.imul($e,xe)|0,c=c+Math.imul(be,Ve)|0,a=a+Math.imul(be,Me)|0,a=a+Math.imul(Oe,Ve)|0,f=f+Math.imul(Oe,Me)|0,c=c+Math.imul(Ae,je)|0,a=a+Math.imul(Ae,Le)|0,a=a+Math.imul(Be,je)|0,f=f+Math.imul(Be,Le)|0,c=c+Math.imul(De,Ye)|0,a=a+Math.imul(De,Se)|0,a=a+Math.imul(ke,Ye)|0,f=f+Math.imul(ke,Se)|0;var y0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(y0>>>26)|0,y0&=67108863,c=Math.imul(Ue,ze),a=Math.imul(Ue,Ze),a=a+Math.imul(Ie,ze)|0,f=Math.imul(Ie,Ze),c=c+Math.imul(we,Qe)|0,a=a+Math.imul(we,xe)|0,a=a+Math.imul(Re,Qe)|0,f=f+Math.imul(Re,xe)|0,c=c+Math.imul(ge,Ve)|0,a=a+Math.imul(ge,Me)|0,a=a+Math.imul($e,Ve)|0,f=f+Math.imul($e,Me)|0,c=c+Math.imul(be,je)|0,a=a+Math.imul(be,Le)|0,a=a+Math.imul(Oe,je)|0,f=f+Math.imul(Oe,Le)|0,c=c+Math.imul(Ae,Ye)|0,a=a+Math.imul(Ae,Se)|0,a=a+Math.imul(Be,Ye)|0,f=f+Math.imul(Be,Se)|0;var v0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(v0>>>26)|0,v0&=67108863,c=Math.imul(Ue,Qe),a=Math.imul(Ue,xe),a=a+Math.imul(Ie,Qe)|0,f=Math.imul(Ie,xe),c=c+Math.imul(we,Ve)|0,a=a+Math.imul(we,Me)|0,a=a+Math.imul(Re,Ve)|0,f=f+Math.imul(Re,Me)|0,c=c+Math.imul(ge,je)|0,a=a+Math.imul(ge,Le)|0,a=a+Math.imul($e,je)|0,f=f+Math.imul($e,Le)|0,c=c+Math.imul(be,Ye)|0,a=a+Math.imul(be,Se)|0,a=a+Math.imul(Oe,Ye)|0,f=f+Math.imul(Oe,Se)|0;var b0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(b0>>>26)|0,b0&=67108863,c=Math.imul(Ue,Ve),a=Math.imul(Ue,Me),a=a+Math.imul(Ie,Ve)|0,f=Math.imul(Ie,Me),c=c+Math.imul(we,je)|0,a=a+Math.imul(we,Le)|0,a=a+Math.imul(Re,je)|0,f=f+Math.imul(Re,Le)|0,c=c+Math.imul(ge,Ye)|0,a=a+Math.imul(ge,Se)|0,a=a+Math.imul($e,Ye)|0,f=f+Math.imul($e,Se)|0;var o0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(o0>>>26)|0,o0&=67108863,c=Math.imul(Ue,je),a=Math.imul(Ue,Le),a=a+Math.imul(Ie,je)|0,f=Math.imul(Ie,Le),c=c+Math.imul(we,Ye)|0,a=a+Math.imul(we,Se)|0,a=a+Math.imul(Re,Ye)|0,f=f+Math.imul(Re,Se)|0;var g0=(h+c|0)+((a&8191)<<13)|0;h=(f+(a>>>13)|0)+(g0>>>26)|0,g0&=67108863,c=Math.imul(Ue,Ye),a=Math.imul(Ue,Se),a=a+Math.imul(Ie,Ye)|0,f=Math.imul(Ie,Se);var C0=(h+c|0)+((a&8191)<<13)|0;return h=(f+(a>>>13)|0)+(C0>>>26)|0,C0&=67108863,u[0]=d0,u[1]=l0,u[2]=_e,u[3]=S0,u[4]=e0,u[5]=f0,u[6]=t0,u[7]=u0,u[8]=m0,u[9]=h0,u[10]=n0,u[11]=D0,u[12]=p0,u[13]=y0,u[14]=v0,u[15]=b0,u[16]=o0,u[17]=g0,u[18]=C0,h!==0&&(u[19]=h,r.length++),r};Math.imul||(te=ee);function re(d,e,o){o.negative=e.negative^d.negative,o.length=d.length+e.length;for(var r=0,i=0,s=0;s<o.length-1;s++){var u=i;i=0;for(var h=r&67108863,c=Math.min(s,e.length-1),a=Math.max(0,s-d.length+1);a<=c;a++){var f=s-a,R=d.words[f]|0,X=e.words[a]|0,z=R*X,_=z&67108863;u=u+(z/67108864|0)|0,_=_+h|0,h=_&67108863,u=u+(_>>>26)|0,i+=u>>>26,u&=67108863}o.words[s]=h,r=u,u=i}return r!==0?o.words[s]=r:o.length--,o._strip()}function fe(d,e,o){return re(d,e,o)}p.prototype.mulTo=function(e,o){var r,i=this.length+e.length;return this.length===10&&e.length===10?r=te(this,e,o):i<63?r=ee(this,e,o):i<1024?r=re(this,e,o):r=fe(this,e,o),r};function F(d,e){this.x=d,this.y=e}F.prototype.makeRBT=function(e){for(var o=new Array(e),r=p.prototype._countBits(e)-1,i=0;i<e;i++)o[i]=this.revBin(i,r,e);return o},F.prototype.revBin=function(e,o,r){if(e===0||e===r-1)return e;for(var i=0,s=0;s<o;s++)i|=(e&1)<<o-s-1,e>>=1;return i},F.prototype.permute=function(e,o,r,i,s,u){for(var h=0;h<u;h++)i[h]=o[e[h]],s[h]=r[e[h]]},F.prototype.transform=function(e,o,r,i,s,u){this.permute(u,e,o,r,i,s);for(var h=1;h<s;h<<=1)for(var c=h<<1,a=Math.cos(2*Math.PI/c),f=Math.sin(2*Math.PI/c),R=0;R<s;R+=c)for(var X=a,z=f,_=0;_<h;_++){var ce=r[R+_],pe=i[R+_],qe=r[R+_+h],ye=i[R+_+h],ve=X*qe-z*ye;ye=X*ye+z*qe,qe=ve,r[R+_]=ce+qe,i[R+_]=pe+ye,r[R+_+h]=ce-qe,i[R+_+h]=pe-ye,_!==c&&(ve=a*X-f*z,z=a*z+f*X,X=ve)}},F.prototype.guessLen13b=function(e,o){var r=Math.max(o,e)|1,i=r&1,s=0;for(r=r/2|0;r;r=r>>>1)s++;return 1<<s+1+i},F.prototype.conjugate=function(e,o,r){if(!(r<=1))for(var i=0;i<r/2;i++){var s=e[i];e[i]=e[r-i-1],e[r-i-1]=s,s=o[i],o[i]=-o[r-i-1],o[r-i-1]=-s}},F.prototype.normalize13b=function(e,o){for(var r=0,i=0;i<o/2;i++){var s=Math.round(e[2*i+1]/o)*8192+Math.round(e[2*i]/o)+r;e[i]=s&67108863,s<67108864?r=0:r=s/67108864|0}return e},F.prototype.convert13b=function(e,o,r,i){for(var s=0,u=0;u<o;u++)s=s+(e[u]|0),r[2*u]=s&8191,s=s>>>13,r[2*u+1]=s&8191,s=s>>>13;for(u=2*o;u<i;++u)r[u]=0;b(s===0),b((s&-8192)===0)},F.prototype.stub=function(e){for(var o=new Array(e),r=0;r<e;r++)o[r]=0;return o},F.prototype.mulp=function(e,o,r){var i=2*this.guessLen13b(e.length,o.length),s=this.makeRBT(i),u=this.stub(i),h=new Array(i),c=new Array(i),a=new Array(i),f=new Array(i),R=new Array(i),X=new Array(i),z=r.words;z.length=i,this.convert13b(e.words,e.length,h,i),this.convert13b(o.words,o.length,f,i),this.transform(h,u,c,a,i,s),this.transform(f,u,R,X,i,s);for(var _=0;_<i;_++){var ce=c[_]*R[_]-a[_]*X[_];a[_]=c[_]*X[_]+a[_]*R[_],c[_]=ce}return this.conjugate(c,a,i),this.transform(c,a,z,u,i,s),this.conjugate(z,u,i),this.normalize13b(z,i),r.negative=e.negative^o.negative,r.length=e.length+o.length,r._strip()},p.prototype.mul=function(e){var o=new p(null);return o.words=new Array(this.length+e.length),this.mulTo(e,o)},p.prototype.mulf=function(e){var o=new p(null);return o.words=new Array(this.length+e.length),fe(this,e,o)},p.prototype.imul=function(e){return this.clone().mulTo(e,this)},p.prototype.imuln=function(e){var o=e<0;o&&(e=-e),b(typeof e=="number"),b(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(this.words[i]|0)*e,u=(s&67108863)+(r&67108863);r>>=26,r+=s/67108864|0,r+=u>>>26,this.words[i]=u&67108863}return r!==0&&(this.words[i]=r,this.length++),o?this.ineg():this},p.prototype.muln=function(e){return this.clone().imuln(e)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(e){var o=k(e);if(o.length===0)return new p(1);for(var r=this,i=0;i<o.length&&o[i]===0;i++,r=r.sqr());if(++i<o.length)for(var s=r.sqr();i<o.length;i++,s=s.sqr())o[i]!==0&&(r=r.mul(s));return r},p.prototype.iushln=function(e){b(typeof e=="number"&&e>=0);var o=e%26,r=(e-o)/26,i=67108863>>>26-o<<26-o,s;if(o!==0){var u=0;for(s=0;s<this.length;s++){var h=this.words[s]&i,c=(this.words[s]|0)-h<<o;this.words[s]=c|u,u=h>>>26-o}u&&(this.words[s]=u,this.length++)}if(r!==0){for(s=this.length-1;s>=0;s--)this.words[s+r]=this.words[s];for(s=0;s<r;s++)this.words[s]=0;this.length+=r}return this._strip()},p.prototype.ishln=function(e){return b(this.negative===0),this.iushln(e)},p.prototype.iushrn=function(e,o,r){b(typeof e=="number"&&e>=0);var i;o?i=(o-o%26)/26:i=0;var s=e%26,u=Math.min((e-s)/26,this.length),h=67108863^67108863>>>s<<s,c=r;if(i-=u,i=Math.max(0,i),c){for(var a=0;a<u;a++)c.words[a]=this.words[a];c.length=u}if(u!==0)if(this.length>u)for(this.length-=u,a=0;a<this.length;a++)this.words[a]=this.words[a+u];else this.words[0]=0,this.length=1;var f=0;for(a=this.length-1;a>=0&&(f!==0||a>=i);a--){var R=this.words[a]|0;this.words[a]=f<<26-s|R>>>s,f=R&h}return c&&f!==0&&(c.words[c.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},p.prototype.ishrn=function(e,o,r){return b(this.negative===0),this.iushrn(e,o,r)},p.prototype.shln=function(e){return this.clone().ishln(e)},p.prototype.ushln=function(e){return this.clone().iushln(e)},p.prototype.shrn=function(e){return this.clone().ishrn(e)},p.prototype.ushrn=function(e){return this.clone().iushrn(e)},p.prototype.testn=function(e){b(typeof e=="number"&&e>=0);var o=e%26,r=(e-o)/26,i=1<<o;if(this.length<=r)return!1;var s=this.words[r];return!!(s&i)},p.prototype.imaskn=function(e){b(typeof e=="number"&&e>=0);var o=e%26,r=(e-o)/26;if(b(this.negative===0,"imaskn works only with positive numbers"),this.length<=r)return this;if(o!==0&&r++,this.length=Math.min(r,this.length),o!==0){var i=67108863^67108863>>>o<<o;this.words[this.length-1]&=i}return this._strip()},p.prototype.maskn=function(e){return this.clone().imaskn(e)},p.prototype.iaddn=function(e){return b(typeof e=="number"),b(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<=e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},p.prototype._iaddn=function(e){this.words[0]+=e;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},p.prototype.isubn=function(e){if(b(typeof e=="number"),b(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this._strip()},p.prototype.addn=function(e){return this.clone().iaddn(e)},p.prototype.subn=function(e){return this.clone().isubn(e)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(e,o,r){var i=e.length+r,s;this._expand(i);var u,h=0;for(s=0;s<e.length;s++){u=(this.words[s+r]|0)+h;var c=(e.words[s]|0)*o;u-=c&67108863,h=(u>>26)-(c/67108864|0),this.words[s+r]=u&67108863}for(;s<this.length-r;s++)u=(this.words[s+r]|0)+h,h=u>>26,this.words[s+r]=u&67108863;if(h===0)return this._strip();for(b(h===-1),h=0,s=0;s<this.length;s++)u=-(this.words[s]|0)+h,h=u>>26,this.words[s]=u&67108863;return this.negative=1,this._strip()},p.prototype._wordDiv=function(e,o){var r=this.length-e.length,i=this.clone(),s=e,u=s.words[s.length-1]|0,h=this._countBits(u);r=26-h,r!==0&&(s=s.ushln(r),i.iushln(r),u=s.words[s.length-1]|0);var c=i.length-s.length,a;if(o!=="mod"){a=new p(null),a.length=c+1,a.words=new Array(a.length);for(var f=0;f<a.length;f++)a.words[f]=0}var R=i.clone()._ishlnsubmul(s,1,c);R.negative===0&&(i=R,a&&(a.words[c]=1));for(var X=c-1;X>=0;X--){var z=(i.words[s.length+X]|0)*67108864+(i.words[s.length+X-1]|0);for(z=Math.min(z/u|0,67108863),i._ishlnsubmul(s,z,X);i.negative!==0;)z--,i.negative=0,i._ishlnsubmul(s,1,X),i.isZero()||(i.negative^=1);a&&(a.words[X]=z)}return a&&a._strip(),i._strip(),o!=="div"&&r!==0&&i.iushrn(r),{div:a||null,mod:i}},p.prototype.divmod=function(e,o,r){if(b(!e.isZero()),this.isZero())return{div:new p(0),mod:new p(0)};var i,s,u;return this.negative!==0&&e.negative===0?(u=this.neg().divmod(e,o),o!=="mod"&&(i=u.div.neg()),o!=="div"&&(s=u.mod.neg(),r&&s.negative!==0&&s.iadd(e)),{div:i,mod:s}):this.negative===0&&e.negative!==0?(u=this.divmod(e.neg(),o),o!=="mod"&&(i=u.div.neg()),{div:i,mod:u.mod}):(this.negative&e.negative)!==0?(u=this.neg().divmod(e.neg(),o),o!=="div"&&(s=u.mod.neg(),r&&s.negative!==0&&s.isub(e)),{div:u.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new p(0),mod:this}:e.length===1?o==="div"?{div:this.divn(e.words[0]),mod:null}:o==="mod"?{div:null,mod:new p(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new p(this.modrn(e.words[0]))}:this._wordDiv(e,o)},p.prototype.div=function(e){return this.divmod(e,"div",!1).div},p.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},p.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},p.prototype.divRound=function(e){var o=this.divmod(e);if(o.mod.isZero())return o.div;var r=o.div.negative!==0?o.mod.isub(e):o.mod,i=e.ushrn(1),s=e.andln(1),u=r.cmp(i);return u<0||s===1&&u===0?o.div:o.div.negative!==0?o.div.isubn(1):o.div.iaddn(1)},p.prototype.modrn=function(e){var o=e<0;o&&(e=-e),b(e<=67108863);for(var r=(1<<26)%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(this.words[s]|0))%e;return o?-i:i},p.prototype.modn=function(e){return this.modrn(e)},p.prototype.idivn=function(e){var o=e<0;o&&(e=-e),b(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(this.words[i]|0)+r*67108864;this.words[i]=s/e|0,r=s%e}return this._strip(),o?this.ineg():this},p.prototype.divn=function(e){return this.clone().idivn(e)},p.prototype.egcd=function(e){b(e.negative===0),b(!e.isZero());var o=this,r=e.clone();o.negative!==0?o=o.umod(e):o=o.clone();for(var i=new p(1),s=new p(0),u=new p(0),h=new p(1),c=0;o.isEven()&&r.isEven();)o.iushrn(1),r.iushrn(1),++c;for(var a=r.clone(),f=o.clone();!o.isZero();){for(var R=0,X=1;(o.words[0]&X)===0&&R<26;++R,X<<=1);if(R>0)for(o.iushrn(R);R-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(a),s.isub(f)),i.iushrn(1),s.iushrn(1);for(var z=0,_=1;(r.words[0]&_)===0&&z<26;++z,_<<=1);if(z>0)for(r.iushrn(z);z-- >0;)(u.isOdd()||h.isOdd())&&(u.iadd(a),h.isub(f)),u.iushrn(1),h.iushrn(1);o.cmp(r)>=0?(o.isub(r),i.isub(u),s.isub(h)):(r.isub(o),u.isub(i),h.isub(s))}return{a:u,b:h,gcd:r.iushln(c)}},p.prototype._invmp=function(e){b(e.negative===0),b(!e.isZero());var o=this,r=e.clone();o.negative!==0?o=o.umod(e):o=o.clone();for(var i=new p(1),s=new p(0),u=r.clone();o.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;(o.words[0]&c)===0&&h<26;++h,c<<=1);if(h>0)for(o.iushrn(h);h-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);for(var a=0,f=1;(r.words[0]&f)===0&&a<26;++a,f<<=1);if(a>0)for(r.iushrn(a);a-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);o.cmp(r)>=0?(o.isub(r),i.isub(s)):(r.isub(o),s.isub(i))}var R;return o.cmpn(1)===0?R=i:R=s,R.cmpn(0)<0&&R.iadd(e),R},p.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var o=this.clone(),r=e.clone();o.negative=0,r.negative=0;for(var i=0;o.isEven()&&r.isEven();i++)o.iushrn(1),r.iushrn(1);do{for(;o.isEven();)o.iushrn(1);for(;r.isEven();)r.iushrn(1);var s=o.cmp(r);if(s<0){var u=o;o=r,r=u}else if(s===0||r.cmpn(1)===0)break;o.isub(r)}while(!0);return r.iushln(i)},p.prototype.invm=function(e){return this.egcd(e).a.umod(e)},p.prototype.isEven=function(){return(this.words[0]&1)===0},p.prototype.isOdd=function(){return(this.words[0]&1)===1},p.prototype.andln=function(e){return this.words[0]&e},p.prototype.bincn=function(e){b(typeof e=="number");var o=e%26,r=(e-o)/26,i=1<<o;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,u=r;s!==0&&u<this.length;u++){var h=this.words[u]|0;h+=s,s=h>>>26,h&=67108863,this.words[u]=h}return s!==0&&(this.words[u]=s,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(e){var o=e<0;if(this.negative!==0&&!o)return-1;if(this.negative===0&&o)return 1;this._strip();var r;if(this.length>1)r=1;else{o&&(e=-e),b(e<=67108863,"Number is too big");var i=this.words[0]|0;r=i===e?0:i<e?-1:1}return this.negative!==0?-r|0:r},p.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var o=this.ucmp(e);return this.negative!==0?-o|0:o},p.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var o=0,r=this.length-1;r>=0;r--){var i=this.words[r]|0,s=e.words[r]|0;if(i!==s){i<s?o=-1:i>s&&(o=1);break}}return o},p.prototype.gtn=function(e){return this.cmpn(e)===1},p.prototype.gt=function(e){return this.cmp(e)===1},p.prototype.gten=function(e){return this.cmpn(e)>=0},p.prototype.gte=function(e){return this.cmp(e)>=0},p.prototype.ltn=function(e){return this.cmpn(e)===-1},p.prototype.lt=function(e){return this.cmp(e)===-1},p.prototype.lten=function(e){return this.cmpn(e)<=0},p.prototype.lte=function(e){return this.cmp(e)<=0},p.prototype.eqn=function(e){return this.cmpn(e)===0},p.prototype.eq=function(e){return this.cmp(e)===0},p.red=function(e){return new w(e)},p.prototype.toRed=function(e){return b(!this.red,"Already a number in reduction context"),b(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},p.prototype.fromRed=function(){return b(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(e){return this.red=e,this},p.prototype.forceRed=function(e){return b(!this.red,"Already a number in reduction context"),this._forceRed(e)},p.prototype.redAdd=function(e){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},p.prototype.redIAdd=function(e){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},p.prototype.redSub=function(e){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},p.prototype.redISub=function(e){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},p.prototype.redShl=function(e){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},p.prototype.redMul=function(e){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},p.prototype.redIMul=function(e){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},p.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(e){return b(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function L(d,e){this.name=d,this.p=new p(e,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var e=new p(null);return e.words=new Array(Math.ceil(this.n/13)),e},L.prototype.ireduce=function(e){var o=e,r;do this.split(o,this.tmp),o=this.imulK(o),o=o.iadd(this.tmp),r=o.bitLength();while(r>this.n);var i=r<this.n?-1:o.ucmp(this.p);return i===0?(o.words[0]=0,o.length=1):i>0?o.isub(this.p):o.strip!==void 0?o.strip():o._strip(),o},L.prototype.split=function(e,o){e.iushrn(this.n,0,o)},L.prototype.imulK=function(e){return e.imul(this.k)};function V(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}T(V,L),V.prototype.split=function(e,o){for(var r=4194303,i=Math.min(e.length,9),s=0;s<i;s++)o.words[s]=e.words[s];if(o.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var u=e.words[9];for(o.words[o.length++]=u&r,s=10;s<e.length;s++){var h=e.words[s]|0;e.words[s-10]=(h&r)<<4|u>>>22,u=h}u>>>=22,e.words[s-10]=u,u===0&&e.length>10?e.length-=10:e.length-=9},V.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var o=0,r=0;r<e.length;r++){var i=e.words[r]|0;o+=i*977,e.words[r]=o&67108863,o=i*64+(o/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function ie(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}T(ie,L);function le(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}T(le,L);function se(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}T(se,L),se.prototype.imulK=function(e){for(var o=0,r=0;r<e.length;r++){var i=(e.words[r]|0)*19+o,s=i&67108863;i>>>=26,e.words[r]=s,o=i}return o!==0&&(e.words[e.length++]=o),e},p._prime=function(e){if(x[e])return x[e];var o;if(e==="k256")o=new V;else if(e==="p224")o=new ie;else if(e==="p192")o=new le;else if(e==="p25519")o=new se;else throw new Error("Unknown prime "+e);return x[e]=o,o};function w(d){if(typeof d=="string"){var e=p._prime(d);this.m=e.p,this.prime=e}else b(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}w.prototype._verify1=function(e){b(e.negative===0,"red works only with positives"),b(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,o){b((e.negative|o.negative)===0,"red works only with positives"),b(e.red&&e.red===o.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):($(e,e.umod(this.m)._forceRed(this)),e)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,o){this._verify2(e,o);var r=e.add(o);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,o){this._verify2(e,o);var r=e.iadd(o);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(e,o){this._verify2(e,o);var r=e.sub(o);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,o){this._verify2(e,o);var r=e.isub(o);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(e,o){return this._verify1(e),this.imod(e.ushln(o))},w.prototype.imul=function(e,o){return this._verify2(e,o),this.imod(e.imul(o))},w.prototype.mul=function(e,o){return this._verify2(e,o),this.imod(e.mul(o))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var o=this.m.andln(3);if(b(o%2===1),o===3){var r=this.m.add(new p(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&i.andln(1)===0;)s++,i.iushrn(1);b(!i.isZero());var u=new p(1).toRed(this),h=u.redNeg(),c=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new p(2*a*a).toRed(this);this.pow(a,c).cmp(h)!==0;)a.redIAdd(h);for(var f=this.pow(a,i),R=this.pow(e,i.addn(1).iushrn(1)),X=this.pow(e,i),z=s;X.cmp(u)!==0;){for(var _=X,ce=0;_.cmp(u)!==0;ce++)_=_.redSqr();b(ce<z);var pe=this.pow(f,new p(1).iushln(z-ce-1));R=R.redMul(pe),f=pe.redSqr(),X=X.redMul(f),z=ce}return R},w.prototype.invm=function(e){var o=e._invmp(this.m);return o.negative!==0?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},w.prototype.pow=function(e,o){if(o.isZero())return new p(1).toRed(this);if(o.cmpn(1)===0)return e.clone();var r=4,i=new Array(1<<r);i[0]=new p(1).toRed(this),i[1]=e;for(var s=2;s<i.length;s++)i[s]=this.mul(i[s-1],e);var u=i[0],h=0,c=0,a=o.bitLength()%26;for(a===0&&(a=26),s=o.length-1;s>=0;s--){for(var f=o.words[s],R=a-1;R>=0;R--){var X=f>>R&1;if(u!==i[0]&&(u=this.sqr(u)),X===0&&h===0){c=0;continue}h<<=1,h|=X,c++,!(c!==r&&(s!==0||R!==0))&&(u=this.mul(u,i[h]),c=0,h=0)}a=26}return u},w.prototype.convertTo=function(e){var o=e.umod(this.m);return o===e?o.clone():o},w.prototype.convertFrom=function(e){var o=e.clone();return o.red=null,o},p.mont=function(e){return new E(e)};function E(d){w.call(this,d),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new p(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T(E,w),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var o=this.imod(e.mul(this.rinv));return o.red=null,o},E.prototype.imul=function(e,o){if(e.isZero()||o.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(o),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=r.isub(i).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):s.cmpn(0)<0&&(u=s.iadd(this.m)),u._forceRed(this)},E.prototype.mul=function(e,o){if(e.isZero()||o.isZero())return new p(0)._forceRed(this);var r=e.mul(o),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=r.isub(i).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):s.cmpn(0)<0&&(u=s.iadd(this.m)),u._forceRed(this)},E.prototype.invm=function(e){var o=this.imod(e._invmp(this.m).mul(this.r2));return o._forceRed(this)}}(S,this)},47630:function(S,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0});function t(F,x){return function(V){return V!=null?F(V):typeof x=="function"?x():x}}function n(){for(var F=arguments.length,x=new Array(F),L=0;L<F;L++)x[L]=arguments[L];return function(ie){for(var le=0;le<x.length;++le)if(ie===x[le])return ie;var se="Expected ";x.length!==1&&(se+="one of: ");for(var w=0;w<x.length;++w)w>0&&(se+=" | "),se+=JSON.stringify(x[w]);throw new TypeError(se)}}function P(F){if(typeof F!="boolean")throw new TypeError("Expected a boolean");return F}function b(F){if(typeof F!="number")throw new TypeError("Expected a number");return F}function T(F){if(typeof F!="string")throw new TypeError("Expected a string");return F}var p=n(null),M=n(void 0);function Y(F){return F}var U=t(p);function K(F,x,L){return F instanceof Error&&(F.insertStepAt==null&&(F.message+=" at ",F.insertStepAt=F.message.length),F.message=F.message.slice(0,F.insertStepAt)+x+F.message.slice(F.insertStepAt),F.insertStepAt+=L),F}function $(F){return function(L){if(!Array.isArray(L))throw new TypeError("Expected an array");for(var V=[],ie=0;ie<L.length;++ie)try{V[ie]=F(L[ie])}catch(le){throw K(le,"["+ie+"]",0)}return V}}function q(F){if(typeof F=="function")return function(le){if(typeof le!="object"||le==null)throw new TypeError("Expected an object");for(var se={},w=Object.keys(le),E=0;E<w.length;++E){var d=w[E];if(d!=="__proto__")try{se[d]=F(le[d])}catch(e){throw K(e,"["+JSON.stringify(d)+"]",0)}}return se};var x=Object.keys(F);function L(ie){return function(se){if(typeof se!="object"||se==null)throw new TypeError("Expected an object");var w,E={};if(ie){var d=Object.keys(se);for(w=0;w<d.length;++w){var e=d[w];e!=="__proto__"&&(E[e]=se[e])}}for(w=0;w<x.length;++w){var o=x[w];try{E[o]=F[o](se[o])}catch(r){throw K(r,"."+o,0)}}return E}}var V=L(!1);return V.shape=F,V.withRest=L(!0),V}var de=q;function Z(){for(var F=arguments.length,x=new Array(F),L=0;L<F;L++)x[L]=arguments[L];function V(ie){if(!Array.isArray(ie))throw new TypeError("Expected an array");for(var le=[],se=0;se<x.length;++se)try{le[se]=x[se](ie[se])}catch(w){throw K(w,"["+se+"]")}return le}return V}function D(){for(var F=arguments.length,x=new Array(F),L=0;L<F;L++)x[L]=arguments[L];return function(ie){for(var le=0;le<x.length;le++)try{return x[le](ie)}catch(se){if(le+1>=x.length)throw se}}}function N(F,x){return function(V){try{return F(V)}catch{return typeof x=="function"?x():x}}}var k=0;function ee(F,x){return function(V){return k>0?x(V):F(V)}}function te(F){return function(L){try{return++k,F(L)}finally{--k}}}var re=ee(function(x){if(typeof x!="string"&&!(x instanceof Date))throw new TypeError("Expected a date string");var L=new Date(x);if(L.toJSON()==null)throw new TypeError("Invalid date format");return L},function(x){return x.toISOString()});function fe(F){return ee(function(L){var V=JSON.parse(T(L));try{return F(V)}catch(ie){throw K(ie,"JSON.parse()",11)}},function(L){return JSON.stringify(F(L))})}g.asArray=$,g.asBoolean=P,g.asCodec=ee,g.asDate=re,g.asEither=D,g.asJSON=fe,g.asMap=de,g.asMaybe=N,g.asNone=U,g.asNull=p,g.asNumber=b,g.asObject=q,g.asOptional=t,g.asString=T,g.asTuple=Z,g.asUndefined=M,g.asUnknown=Y,g.asValue=n,g.uncleaner=te},24224:function(S,g,t){"use strict";t.d(g,{P:function(){return q}});var n=Object.defineProperty,P=Object.defineProperties,b=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,Y=(Z,D,N)=>D in Z?n(Z,D,{enumerable:!0,configurable:!0,writable:!0,value:N}):Z[D]=N,U=(Z,D)=>{for(var N in D||(D={}))p.call(D,N)&&Y(Z,N,D[N]);if(T)for(var N of T(D))M.call(D,N)&&Y(Z,N,D[N]);return Z},K=(Z,D)=>P(Z,b(D)),$=(Z,D,N)=>new Promise((k,ee)=>{var te=F=>{try{fe(N.next(F))}catch(x){ee(x)}},re=F=>{try{fe(N.throw(F))}catch(x){ee(x)}},fe=F=>F.done?k(F.value):Promise.resolve(F.value).then(te,re);fe((N=N.apply(Z,D)).next())});function q(Z){return D=>{const{builtinTokens:N={},currencyInfo:k,networkInfo:ee,otherMethodNames:te=[],checkEnvironment:re=()=>{}}=Z,fe=K(U({},D),{builtinTokens:N,currencyInfo:k,networkInfo:ee});let F,x;function L(){return $(this,null,function*(){re(),F==null&&(F=Z.getInnerPlugin());const w=yield F;x==null&&(x=w.makeCurrencyTools(fe));const E=yield x;return{plugin:w,tools:E}})}function V(){return $(this,null,function*(){return N})}function ie(){return $(this,null,function*(){const{tools:w}=yield L();return w})}function le(w,E){return $(this,null,function*(){const{tools:d,plugin:e}=yield L();return yield e.makeCurrencyEngine(fe,d,w,E)})}const se=de(ie,te);return{currencyInfo:k,getBuiltinTokens:V,makeCurrencyTools:ie,makeCurrencyEngine:le,otherMethods:se}}}function de(Z,D){const N={};for(const k of D)N[k]=(...ee)=>$(this,null,function*(){const te=yield Z(),re=te[k];if(typeof re!="function")throw new Error(`Method ${k} is not implemented`);return re.apply(te,ee)});return N}},20918:function(S,g,t){"use strict";t.d(g,{Oj:function(){return T},Rp:function(){return Y},ZS:function(){return p},dK:function(){return M}});var n=t(77591),P=t.n(n),b=t(82448);const T=(0,b.Vk)((0,b.su)({contractAddress:b.XC}));function p(K){const $=[];for(const q of Object.keys(K)){const{currencyCode:de,displayName:Z,denominations:D,networkLocation:N}=K[q],k=T(N);k!=null&&$.push({currencyCode:de,currencyName:Z,denominations:D,contractAddress:k.contractAddress})}return $}const M=(K,$)=>{for(const q of Object.keys($))if($[q].currencyCode===K)return q},Y=K=>{if(!U(K.currencyCode))throw new Error(`Invalid currency code "${K.currencyCode}"`);for(const $ of K.denominations){if(!U($.name))throw new Error(`Invalid denomination name "${$.name}"`);if((0,n.lt)($.multiplier,"1")||(0,n.gt)($.multiplier,"100000000000000000000000000000000"))throw new Error("ErrorInvalidMultiplier")}},U=K=>/^[a-zA-Z0-9]+([.-][a-zA-Z0-9]+)?$/.test(K)},62177:function(S,g,t){"use strict";t.d(g,{BQ:function(){return q},DZ:function(){return T},O2:function(){return K},Pe:function(){return b},TD:function(){return p},Tt:function(){return U},jD:function(){return Z},jd:function(){return $},rS:function(){return de},tC:function(){return M},tM:function(){return Y}});var n=t(82448),P=t(79325);const b="txEngineFolder/walletLocalData.json",T="txEngineFolder/txidMap.json",p="txEngineFolder/txidList.json",M="txEngineFolder/transactionList.json",Y=D=>D,U=(0,n.su)({message:n.XC}),K=(0,n.su)({blockHeight:(0,n.Vk)(n.mH,0),lastAddressQueryHeight:(0,n.Vk)(n.mH,0),lastTransactionQueryHeight:(0,n.Vk)((0,n.su)(n.mH),()=>({})),lastTransactionDate:(0,n.Vk)((0,n.su)(n.mH),()=>({})),publicKey:(0,n.Vk)(n.XC,""),totalBalances:(0,n.Vk)((0,n.su)((0,n._C)(n.XC,n.zv)),()=>({})),lastCheckedTxsDropped:(0,n.Vk)(n.mH,0),numUnconfirmedSpendTxs:(0,n.Vk)(n.mH,0),numTransactions:(0,n.Vk)((0,n.su)(n.mH),()=>({})),unactivatedTokenIds:(0,n.Vk)((0,n._2)(n.XC),()=>[]),otherData:(0,n.Zz)(n.JC,()=>({}))}),$=D=>(0,n.su)({id:n.XC,type:n.XC,keys:D}),q=$((0,n.su)({publicKey:n.XC})),de=(0,n.W1)(D=>P.YU.parse((0,n.XC)(D)),D=>P.YU.stringify(D).toLowerCase());function Z(D){const N=(0,n.XC)(D);if(!/^\d+$/.test(N))throw new Error("Expected an integer string");return N}},83718:function(S,g,t){"use strict";t.d(g,{Fc:function(){return b},Vo:function(){return M},fz:function(){return p},sr:function(){return T}});var n=t(82448),P=t(62177);const b=["getActivationCost","getActivationSupportedCurrencies","validateAccount"],T=(0,n.su)({accountName:(0,n.Vk)(n.XC,""),lastQueryActionSeq:(0,n.Vk)((0,n.su)(n.mH),()=>({})),highestTxHeight:(0,n.Vk)((0,n.su)(n.mH),()=>({})),lastFreePowerUp:(0,n.Vk)(n.mH,0)}),p=(0,P.jd)((0,n.su)({publicKey:n.XC,ownerPublicKey:(0,n.Zz)(n.XC)})),M=(0,n.su)({eosOwnerKey:(0,n.Zz)(n.XC),eosKey:n.XC})},40571:function(S,g,t){"use strict";t.d(g,{s:function(){return En}});var n=t(24224),P=t(20918),b=t(96283),T=Object.defineProperty,p=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,U=(C,y,m)=>y in C?T(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,K=(C,y)=>{for(var m in y||(y={}))M.call(y,m)&&U(C,m,y[m]);if(p)for(var m of p(y))Y.call(y,m)&&U(C,m,y[m]);return C},$=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const q={af88d065e77c8cc2239327c5edb3a432268e5831:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},ff970a61a04b1ca14834a43f5de4533ebddb5cc8:{currencyCode:"USDC.e",displayName:"USD Coin",denominations:[{name:"USDC.e",multiplier:"1000000"}],networkLocation:{contractAddress:"0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8"}},fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9:{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},f97f4df75117a78c1a5a0dbb814af92458539fb4:{currencyCode:"LINK",displayName:"Chainlink",denominations:[{name:"LINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xf97f4df75117a78c1A5a0DBb814Af92458539FB4"}},da10009cbd5d07dd0cecc66161fc93d7c9000da1:{currencyCode:"DAI",displayName:"Dai Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"}},fa7f8980b0f1e64a2062791cc3b0871572f1f7f0:{currencyCode:"UNI",displayName:"Uniswap",denominations:[{name:"UNI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0"}},"912ce59144191c1204e64559fe8253a0e49e6548":{currencyCode:"ARB",displayName:"Arbitrum",denominations:[{name:"ARB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x912CE59144191C1204E64559FE8253a0e49E6548"}},"4d15a3a2286d883af0aa1b3f21367843fac63e07":{currencyCode:"TUSD",displayName:"TrueUSD",denominations:[{name:"TUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4D15a3A2286D883AF0AA1B3f21367843FAc63E07"}},"2f2a2543b76a4166549f7aab2e75bef0aefc5b0f":{currencyCode:"WBTC",displayName:"Wrapped BTC",denominations:[{name:"WBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f"}},fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a:{currencyCode:"GMX",displayName:"GMX",denominations:[{name:"GMX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a"}},"82af49447d8a07e3bd95bd0d56f35241523fbab1":{currencyCode:"WETH",displayName:"Wrapped Ether",denominations:[{name:"WETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}}},Z={networkAdapterConfigs:[{type:"rpc",servers:["https://arb1.arbitrum.io/rpc","https://arbitrum-one.public.blastapi.io","https://rpc.ankr.com/arbitrum","https://arbitrum-one.rpc.grove.city/v1/lb/{{poktPortalApiKey}}"],ethBalCheckerContract:"0x151E24A486D7258dd7C33Fb67E4bB01919B7B32c"},{type:"evmscan",servers:["https://api.arbiscan.io"]},{type:"blockchair",servers:["https://api.blockchair.com"]}],uriNetworks:["arbitrum"],ercTokenStandard:"ERC20",chainParams:{chainId:42161,name:"Arbitrum One"},arbitrumRollupParams:{nodeInterfaceAddress:"0x00000000000000000000000000000000000000C8"},hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"arbitrumMnemonic",pluginRegularKeyName:"arbitrumKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"}}},D={customFeeSettings:["gasLimit","gasPrice"],otherSettings:K({},Z)},N={canReplaceByFee:!0,currencyCode:"ETH",displayName:"Arbitrum One",memoOptions:b.u,pluginId:"arbitrum",walletType:"wallet:arbitrum",addressExplorer:"https://arbiscan.io/address/%s",transactionExplorer:"https://arbiscan.io/tx/%s",denominations:[{name:"ETH",multiplier:"1000000000000000000",symbol:"\u039E"}],defaultSettings:D,memoType:"hex",metaTokens:(0,P.ZS)(q)},k=(0,n.P)({builtinTokens:q,currencyInfo:N,networkInfo:Z,getInnerPlugin(){return $(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var ee=Object.defineProperty,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,F=(C,y,m)=>y in C?ee(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,x=(C,y)=>{for(var m in y||(y={}))re.call(y,m)&&F(C,m,y[m]);if(te)for(var m of te(y))fe.call(y,m)&&F(C,m,y[m]);return C},L=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const V={"60781c2586d68229fde47564546784ab3faca982":{currencyCode:"PNG",displayName:"Pangolin",denominations:[{name:"PNG",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x60781C2586D68229fde47564546784ab3fACA982"}},e896cdeaac9615145c0ca09c8cd5c25bced6384c:{currencyCode:"PEFI",displayName:"Penguin Finance",denominations:[{name:"PEFI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xe896CDeaAC9615145c0cA09C8Cd5C25bced6384c"}},d1c3f94de7e5b45fa4edbba472491a9f4b166fc4:{currencyCode:"XAVA",displayName:"Avalaunch",denominations:[{name:"XAVA",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd1c3f94DE7e5B45fa4eDBBA472491a9f4B166FC4"}},d6070ae98b8069de6b494332d1a1a81b6179d960:{currencyCode:"BIFI",displayName:"Beefy Finance",denominations:[{name:"BIFI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd6070ae98b8069de6B494332d1A1a81B6179D960"}},"264c1383ea520f73dd837f915ef3a732e204a493":{currencyCode:"BNB",displayName:"Binance",denominations:[{name:"BNB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x264c1383EA520f73dd837F915ef3a732e204a493"}},"59414b3089ce2af0010e7523dea7e2b35d776ec7":{currencyCode:"YAK",displayName:"Yield Yak",denominations:[{name:"YAK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x59414b3089ce2AF0010e7523Dea7E2b35d776ec7"}},"6e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd":{currencyCode:"JOE",displayName:"Joe Token",denominations:[{name:"JOE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd"}},"214db107654ff987ad859f34125307783fc8e387":{currencyCode:"FXS",displayName:"Frax Share",denominations:[{name:"FXS",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x214DB107654fF987AD859F34125307783fC8e387"}},"19860ccb0a68fd4213ab9d8266f7bbf05a8dde98":{currencyCode:"BUSD.e",displayName:"Binance USD",denominations:[{name:"BUSD.e",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x19860CCB0A68fd4213aB9D8266F7bBf05A8dDe98"}},d586e7f844cea2f87f50152665bcbc2c279d8d70:{currencyCode:"DAI.e",displayName:"Dai Stablecoin",denominations:[{name:"DAI.e",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70"}},"5947bb275c521040051d82396192181b413227a3":{currencyCode:"LINK.e",displayName:"ChainLink Token",denominations:[{name:"LINK.e",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x5947BB275c521040051D82396192181b413227A3"}},"8ebaf22b6f053dffeaf46f4dd9efa95d89ba8580":{currencyCode:"UNI.e",displayName:"Uniswap",denominations:[{name:"UNI.e",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8eBAf22B6F053dFFeaf46f4Dd9eFA95D89ba8580"}},b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},a7d7079b0fead91f3e65f86e8915cb59c1a4c664:{currencyCode:"USDC.e",displayName:"USD Coin",denominations:[{name:"USDC.e",multiplier:"1000000"}],networkLocation:{contractAddress:"0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664"}},"9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7":{currencyCode:"USDT",displayName:"Tether USD",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},c7198437980c041c805a1edcba50c1ce5db95118:{currencyCode:"USDT.e",displayName:"Tether USD",denominations:[{name:"USDT.e",multiplier:"1000000"}],networkLocation:{contractAddress:"0xc7198437980c041c805A1EDcbA50c1Ce5db95118"}},"50b7545627a5162f82a992c33b87adc75187b218":{currencyCode:"WBTC.e",displayName:"Wrapped BTC",denominations:[{name:"WBTC.e",multiplier:"100000000"}],networkLocation:{contractAddress:"0x50b7545627a5162F82A992c33b87aDc75187B218"}}},le={networkAdapterConfigs:[{type:"rpc",servers:["https://api.avax.network/ext/bc/C/rpc","https://rpc.ankr.com/avalanche"],ethBalCheckerContract:"0xd023d153a0dfa485130ecfde2faa7e612ef94818"},{type:"evmscan",servers:["https://api.avascan.info/v2/network/mainnet/evm/43114/etherscan"]}],uriNetworks:["avalanche"],ercTokenStandard:"ERC20",chainParams:{chainId:43114,name:"AVAX Mainnet"},supportsEIP1559:!0,hdPathCoinType:9e3,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"avalancheMnemonic",pluginRegularKeyName:"avalancheKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"25000000000",standardFeeLow:"27000000000",standardFeeHigh:"30000000000",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"50000000000",minGasPrice:"25000000000"},minPriorityFee:"25000000000"}}},se={customFeeSettings:["gasLimit","gasPrice"],otherSettings:x({},le)},w={canReplaceByFee:!0,currencyCode:"AVAX",displayName:"Avalanche",memoOptions:b.u,pluginId:"avalanche",walletType:"wallet:avalanche",addressExplorer:"https://avascan.info/blockchain/c/address/%s",transactionExplorer:"https://avascan.info/blockchain/c/tx/%s",denominations:[{name:"AVAX",multiplier:"1000000000000000000",symbol:"AVAX"}],defaultSettings:se,memoType:"hex",metaTokens:(0,P.ZS)(V)},E=(0,n.P)({builtinTokens:V,currencyInfo:w,networkInfo:le,getInnerPlugin(){return L(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var d=Object.defineProperty,e=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(C,y,m)=>y in C?d(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,s=(C,y)=>{for(var m in y||(y={}))o.call(y,m)&&i(C,m,y[m]);if(e)for(var m of e(y))r.call(y,m)&&i(C,m,y[m]);return C},u=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const h={"833589fcd6edb6e08f4c7c32d4f71b54bda02913":{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}},a={networkAdapterConfigs:[{type:"rpc",servers:["https://base-mainnet.public.blastapi.io","https://rpc.ankr.com/base"],ethBalCheckerContract:"0x3ba5A41eA17fd4950a641a057dC0bEb8E8ff1521"},{type:"evmscan",servers:["https://api.basescan.org"]},{type:"blockchair",servers:["https://api.blockchair.com"]}],uriNetworks:["base"],ercTokenStandard:"ERC20",chainParams:{chainId:8453,name:"Base"},optimismRollupParams:{gasPriceL1Wei:"1000000000",gasPricel1BaseFeeMethod:"0x519b4bd3",maxGasPriceL1Multiplier:"1.25",fixedOverhead:"2100",dynamicOverhead:"1000000",oracleContractAddress:"0x420000000000000000000000000000000000000F",dynamicOverheadMethod:"0xf45e65d800000000000000000000000000000000000000000000000000000000"},hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"baseMnemonic",pluginRegularKeyName:"baseKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"100000"},minPriorityFee:"2000000000"}}},f={customFeeSettings:["gasLimit","gasPrice"],otherSettings:s({},a)},R={canReplaceByFee:!0,currencyCode:"ETH",displayName:"Base",memoOptions:b.u,pluginId:"base",walletType:"wallet:base",addressExplorer:"https://basescan.org/address/%s",transactionExplorer:"https://basescan.org/tx/%s",denominations:[{name:"ETH",multiplier:"1000000000000000000",symbol:"\u039E"}],defaultSettings:f,memoType:"hex",metaTokens:(0,P.ZS)(h)},X=(0,n.P)({builtinTokens:h,currencyInfo:R,networkInfo:a,getInnerPlugin(){return u(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var z=Object.defineProperty,_=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,qe=(C,y,m)=>y in C?z(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,ye=(C,y)=>{for(var m in y||(y={}))ce.call(y,m)&&qe(C,m,y[m]);if(_)for(var m of _(y))pe.call(y,m)&&qe(C,m,y[m]);return C},ve=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const a0={e9e7cea3dedca5984780bafc599bd69add087d56:{currencyCode:"BUSD",displayName:"Binance USD",denominations:[{name:"BUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56"}},"8ac76a51cc950d9822d68b83fe1ad97b32cd580d":{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},"55d398326f99059ff775485246999027b3197955":{currencyCode:"BSC-USD",displayName:"Binance-Peg BSC-USD",denominations:[{name:"BSC-USD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x55d398326f99059fF775485246999027B3197955"}},ba2ae424d960c26247dd6c32edc70b295c744c43:{currencyCode:"DOGE",displayName:"Binance-Peg Dogecoin Token",denominations:[{name:"DOGE",multiplier:"100000000"}],networkLocation:{contractAddress:"0xbA2aE424d960c26247Dd6c32edC70B295c744C43"}},"7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c":{currencyCode:"BTCB",displayName:"Bitcoin BEP2",denominations:[{name:"BTCB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"}},"2170ed0880ac9a755fd29b2688956bd959f933f8":{currencyCode:"ETH",displayName:"Binance-Peg Ethereum Token",denominations:[{name:"ETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},"40af3827f39d0eacbf4a168f8d4ee67c121d11c9":{currencyCode:"TUSD",displayName:"TrueUSD",denominations:[{name:"TUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x40af3827F39D0EAcBF4A168f8D4ee67c121D11c9"}},"7083609fce4d1d8dc0c979aab8c869ea2c873402":{currencyCode:"DOT",displayName:"Binance-Peg Polkadot Token",denominations:[{name:"DOT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x7083609fCE4d1d8Dc0C979AAb8c869Ea2C873402"}},bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c:{currencyCode:"WBNB",displayName:"Wrapped BNB",denominations:[{name:"BNB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},f8a0bf9cf54bb92f17374d9e9a321e6a111a51bd:{currencyCode:"LINK",displayName:"Binance-Peg ChainLink Token",denominations:[{name:"LINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD"}},cc42724c6683b7e57334c4e856f4c9965ed682bd:{currencyCode:"MATIC",displayName:"Matic Token",denominations:[{name:"MATIC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xCC42724C6683B7E57334c4E856f4c9965ED682bD"}}},Ce={networkAdapterConfigs:[{type:"rpc",servers:["https://rpc.ankr.com/bsc","https://bsc-dataseed.binance.org","https://bsc-dataseed1.defibit.io","https://bsc-dataseed1.ninicoin.io"],ethBalCheckerContract:"0x2352c63A83f9Fd126af8676146721Fa00924d7e4"},{type:"evmscan",servers:["https://api.bscscan.com"]}],uriNetworks:["smartchain"],ercTokenStandard:"ERC20",chainParams:{chainId:56,name:"Binance Smart Chain"},hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"binancesmartchainMnemonic",pluginRegularKeyName:"binancesmartchainKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21000",tokenTransaction:"200000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:void 0}}},A0={customFeeSettings:["gasLimit","gasPrice"],otherSettings:ye({},Ce)},De={canReplaceByFee:!0,currencyCode:"BNB",displayName:"BNB Smart Chain",memoOptions:b.u,pluginId:"binancesmartchain",walletType:"wallet:binancesmartchain",addressExplorer:"https://bscscan.com/address/%s",transactionExplorer:"https://bscscan.com/tx/%s",denominations:[{name:"BNB",multiplier:"1000000000000000000",symbol:"BNB"}],defaultSettings:A0,memoType:"hex",metaTokens:(0,P.ZS)(a0)},ke=(0,n.P)({builtinTokens:a0,currencyInfo:De,networkInfo:Ce,getInnerPlugin(){return ve(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var w0=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,I0=Object.prototype.propertyIsEnumerable,be=(C,y,m)=>y in C?w0(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,Oe=(C,y)=>{for(var m in y||(y={}))Be.call(y,m)&&be(C,m,y[m]);if(Ae)for(var m of Ae(y))I0.call(y,m)&&be(C,m,y[m]);return C},F0=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const ge={"765de816845861e75a25fca122bb6898b8b1282a":{currencyCode:"CUSD",displayName:"Celo Dollar",denominations:[{name:"CUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x765DE816845861e75A25fCA122bb6898B8B1282a"}},d8763cba276a3738e6de85b4b3bf5fded6d6ca73:{currencyCode:"CEUR",displayName:"Celo Euro",denominations:[{name:"CEUR",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xD8763CBa276a3738E6DE85b4b3bF5FDed6D6cA73"}}},r0={networkAdapterConfigs:[{type:"rpc",servers:["https://forno.celo.org","https://rpc.ankr.com/celo","https://celo-mainnet-rpc.allthatnode.com"]},{type:"evmscan",servers:["https://explorer.celo.org/mainnet"]}],uriNetworks:["celo"],ercTokenStandard:"ERC20",chainParams:{chainId:42220,name:"Celo Mainnet"},hdPathCoinType:52752,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"celoMnemonic",pluginRegularKeyName:"celoKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"25000000000",standardFeeLow:"27000000000",standardFeeHigh:"30000000000",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"50000000000",minGasPrice:"25000000000"},minPriorityFee:"25000000000"}}},we={customFeeSettings:["gasLimit","gasPrice"],otherSettings:Oe({},r0)},Re={canReplaceByFee:!0,currencyCode:"CELO",displayName:"Celo",memoOptions:b.u,pluginId:"celo",walletType:"wallet:celo",addressExplorer:"https://explorer.celo.org/address/%s",transactionExplorer:"https://explorer.celo.org/tx/%s",denominations:[{name:"CELO",multiplier:"1000000000000000000",symbol:"CELO"}],defaultSettings:we,memoType:"hex",metaTokens:(0,P.ZS)(ge)},E0=(0,n.P)({builtinTokens:ge,currencyInfo:Re,networkInfo:r0,getInnerPlugin(){return F0(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var Ue=Object.defineProperty,Ie=Object.getOwnPropertySymbols,N0=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Fe=(C,y,m)=>y in C?Ue(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,P0=(C,y)=>{for(var m in y||(y={}))N0.call(y,m)&&Fe(C,m,y[m]);if(Ie)for(var m of Ie(y))Xe.call(y,m)&&Fe(C,m,y[m]);return C},Ke=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const Ee={ff795577d9ac8bd7d90ee22b6c1703490b6512fd:{currencyCode:"DAI",displayName:"Dai Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xff795577d9ac8bd7d90ee22b6c1703490b6512fd"}},d0a1e359811322d97991e03f863a0c30c2cf029c:{currencyCode:"WETH",displayName:"Wrapped ETH",denominations:[{name:"WETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd0a1e359811322d97991e03f863a0c30c2cf029c"}},d1b98b6607330172f1d991521145a22bce793277:{currencyCode:"WBTC",displayName:"Wrapped Bitcoin",denominations:[{name:"WBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0xD1B98B6607330172f1D991521145A22BCe793277"}}},Ne={networkAdapterConfigs:[{type:"rpc",servers:["http://localhost:8545"]}],uriNetworks:["ethereum","ether"],ercTokenStandard:"ERC20",chainParams:{chainId:42,name:"ethereum"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:{native:"ether",token:"token"},amberDataBlockchainId:"",pluginMnemonicKeyName:"ethDevMnemonic",pluginRegularKeyName:"ethDevKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"},"1983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:{lowFee:"1000000002",standardFeeLow:"40000000002",standardFeeHigh:"300000000002",standardFeeLowAmount:"200000000000000000",standardFeeHighAmount:"20000000000000000000",highFee:"40000000002"},minPriorityFee:void 0},"2983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:void 0,minPriorityFee:void 0}}},Pe={customFeeSettings:["gasLimit","gasPrice"],otherSettings:P0({},Ne)},T0={canReplaceByFee:!0,currencyCode:"ETH",displayName:"Dev Ethereum",memoOptions:b.u,pluginId:"ethDev",walletType:"wallet:ethDev",addressExplorer:"https://etherscan.io/address/%s",transactionExplorer:"https://etherscan.io/tx/%s",denominations:[{name:"ETH",multiplier:"1000000000000000000",symbol:"\u039E"},{name:"mETH",multiplier:"1000000000000000",symbol:"m\u039E"}],defaultSettings:Pe,memoType:"hex",metaTokens:(0,P.ZS)(Ee)},He=(0,n.P)({builtinTokens:Ee,currencyInfo:T0,networkInfo:Ne,getInnerPlugin(){return Ke(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var Ge=Object.defineProperty,i0=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,s0=(C,y,m)=>y in C?Ge(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,ze=(C,y)=>{for(var m in y||(y={}))Te.call(y,m)&&s0(C,m,y[m]);if(i0)for(var m of i0(y))We.call(y,m)&&s0(C,m,y[m]);return C},Ze=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const c0={"2c78f1b70ccf63cdee49f9233e9faa99d43aa07e":{currencyCode:"DAI",displayName:"Dai Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x2c78f1b70ccf63cdee49f9233e9faa99d43aa07e"}}},xe={networkAdapterConfigs:[{type:"rpc",servers:["https://etc.rivet.link","https://geth-de.etc-network.info","https://geth-at.etc-network.info","https://etc.etcdesktop.com"]},{type:"evmscan",servers:[]},{type:"blockbook",servers:["https://etcbook.guarda.co","https://etc1.trezor.io"]}],uriNetworks:["ethereumclassic","etherclass"],ercTokenStandard:"ERC20",chainParams:{chainId:61,name:"Ethereum Classic"},hdPathCoinType:61,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"ethereumclassicMnemonic",pluginRegularKeyName:"ethereumclassicKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21000",tokenTransaction:"200000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:void 0},"1983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:{lowFee:"1000000002",standardFeeLow:"40000000002",standardFeeHigh:"300000000002",standardFeeLowAmount:"200000000000000000",standardFeeHighAmount:"20000000000000000000",highFee:"40000000002"},minPriorityFee:void 0},"2983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:void 0,minPriorityFee:void 0}}},x0={customFeeSettings:["gasLimit","gasPrice"],otherSettings:ze({},xe)},Ve={canReplaceByFee:!0,currencyCode:"ETC",displayName:"Ethereum Classic",memoOptions:b.u,pluginId:"ethereumclassic",walletType:"wallet:ethereumclassic",addressExplorer:"https://blockscout.com/etc/mainnet/address/%s",transactionExplorer:"https://blockscout.com/etc/mainnet/tx/%s",denominations:[{name:"ETC",multiplier:"1000000000000000000",symbol:"\u039E"},{name:"mETC",multiplier:"1000000000000000",symbol:"m\u039E"}],defaultSettings:x0,memoType:"hex",metaTokens:(0,P.ZS)(c0)},Me=(0,n.P)({builtinTokens:c0,currencyInfo:Ve,networkInfo:xe,getInnerPlugin(){return Ze(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var M0=t(77611),je=Object.defineProperty,Le=Object.getOwnPropertySymbols,L0=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Se=(C,y,m)=>y in C?je(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,d0=(C,y)=>{for(var m in y||(y={}))L0.call(y,m)&&Se(C,m,y[m]);if(Le)for(var m of Le(y))Ye.call(y,m)&&Se(C,m,y[m]);return C},l0=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const _e={"2ad7868ca212135c6119fd7ad1ce51cfc5702892":{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0x2ad7868ca212135c6119fd7ad1ce51cfc5702892"}}},e0={networkAdapterConfigs:[{type:"rpc",servers:["https://mainnet.ethereumpow.org"]},{type:"evmscan",servers:[]}],uriNetworks:["ethereumpow"],ercTokenStandard:"ERC20",chainParams:{chainId:10001,name:"ETHW-mainnet"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"ethereumpowMnemonic",pluginRegularKeyName:"ethereumpowKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"}}},f0={customFeeSettings:["gasLimit","gasPrice"],otherSettings:d0({},e0)},t0={canReplaceByFee:!0,currencyCode:"ETHW",displayName:"EthereumPoW",memoOptions:b.u,pluginId:"ethereumpow",walletType:"wallet:ethereumpow",addressExplorer:"https://www.oklink.com/en/ethw/address/%s",transactionExplorer:"https://www.oklink.com/en/ethw/tx/%s",denominations:[{name:"ETHW",multiplier:"1000000000000000000",symbol:"\u039E"},{name:"mETHW",multiplier:"1000000000000000",symbol:"m\u039E"}],defaultSettings:f0,memoType:"hex",metaTokens:(0,P.ZS)(_e)},u0=(0,n.P)({builtinTokens:_e,currencyInfo:t0,networkInfo:e0,getInnerPlugin(){return l0(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var m0=t(61737),h0=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const n0={"8c97f94b2cdbf7dc0098057334d9908c4dc0a885":{currencyCode:"iFIL",displayName:"iFIL Inifinity Pool",denominations:[{name:"iFIL",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8c97F94b2cDbF7Dc0098057334d9908C4dC0a885"}},ac26a4ab9cf2a8c5dbab6fb4351ec0f4b07356c4:{currencyCode:"WFIL",displayName:"Wrapped FIL",denominations:[{name:"wFIL",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xaC26a4Ab9cF2A8c5DBaB6fb4351ec0F4b07356c4"}}},p0={networkAdapterConfigs:[{type:"rpc",servers:["https://api.calibration.node.glif.io/rpc/v0"]},{type:"filfox",servers:["https://calibration.filfox.info/api/v1"]}],uriNetworks:["filecoin"],ercTokenStandard:"ERC20",chainParams:{chainId:314159,name:"Filecoin"},hdPathCoinType:461,feeUpdateFrequencyMs:2e4,supportsEIP1559:!0,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"filecoinfevmcalibrationMnemonic",pluginRegularKeyName:"filecoinfevmcalibrationKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"7569963",tokenTransaction:"7569963",minGasLimit:"7569963"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:void 0}}},y0={currencyCode:"tFIL",displayName:"Filecoin FEVM (Calibration Testnet)",memoOptions:b.u,pluginId:"filecoinfevmcalibration",requiredConfirmations:900,walletType:"wallet:filecoinfevmcalibration",addressExplorer:"https://calibration.filfox.info/en/address/%s",transactionExplorer:"https://calibration.filfox.info/en/message/%s",denominations:[{name:"tFIL",multiplier:"1000000000000000000",symbol:"\u2A0E"},{name:"millitFIL",multiplier:"1000000000000000",symbol:"m\u2A0E"},{name:"microtFIL",multiplier:"1000000000000",symbol:"\xB5\u2A0E"},{name:"nanotFIL",multiplier:"1000000000",symbol:"n\u2A0E"},{name:"picotFIL",multiplier:"1000000",symbol:"p\u2A0E"},{name:"femtotFIL",multiplier:"1000",symbol:"f\u2A0E"},{name:"attotFIL",multiplier:"1",symbol:"a\u2A0E"}],defaultSettings:{},metaTokens:(0,P.ZS)(n0)},v0=(0,n.P)({builtinTokens:n0,currencyInfo:y0,networkInfo:p0,getInnerPlugin(){return h0(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var b0=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const o0={"690908f7fa93afc040cfbd9fe1ddd2c2668aa0e0":{currencyCode:"iFIL",displayName:"iFIL Inifinity Pool",denominations:[{name:"iFIL",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x690908f7fa93afC040CFbD9fE1dDd2C2668Aa0e0"}},"60e1773636cf5e4a227d9ac24f20feca034ee25a":{currencyCode:"WFIL",displayName:"Wrapped FIL",denominations:[{name:"wFIL",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x60E1773636CF5E4A227d9AC24F20fEca034ee25A"}}},C0={networkAdapterConfigs:[{type:"rpc",servers:["https://api.node.glif.io/"]},{type:"filfox",servers:["https://filfox.info/api/v1"]}],uriNetworks:["filecoin"],ercTokenStandard:"ERC20",chainParams:{chainId:314,name:"Filecoin"},hdPathCoinType:461,feeUpdateFrequencyMs:2e4,supportsEIP1559:!0,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"filecoinfevmMnemonic",pluginRegularKeyName:"filecoinfevmKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"7569963",tokenTransaction:"7569963",minGasLimit:"7569963"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:void 0}}},U0={currencyCode:"FIL",displayName:"Filecoin FEVM",memoOptions:b.u,pluginId:"filecoinfevm",requiredConfirmations:900,walletType:"wallet:filecoinfevm",addressExplorer:"https://filfox.info/en/address/%s",transactionExplorer:"https://filfox.info/en/message/%s",denominations:[{name:"FIL",multiplier:"1000000000000000000",symbol:"\u2A0E"},{name:"milliFIL",multiplier:"1000000000000000",symbol:"m\u2A0E"},{name:"microFIL",multiplier:"1000000000000",symbol:"\xB5\u2A0E"},{name:"nanoFIL",multiplier:"1000000000",symbol:"n\u2A0E"},{name:"picoFIL",multiplier:"1000000",symbol:"p\u2A0E"},{name:"femtoFIL",multiplier:"1000",symbol:"f\u2A0E"},{name:"attoFIL",multiplier:"1",symbol:"a\u2A0E"}],defaultSettings:{},metaTokens:(0,P.ZS)(o0)},O0=(0,n.P)({builtinTokens:o0,currencyInfo:U0,networkInfo:C0,getInnerPlugin(){return b0(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var B0=Object.defineProperty,R0=Object.getOwnPropertySymbols,X0=Object.prototype.hasOwnProperty,W0=Object.prototype.propertyIsEnumerable,J=(C,y,m)=>y in C?B0(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,W=(C,y)=>{for(var m in y||(y={}))X0.call(y,m)&&J(C,m,y[m]);if(R0)for(var m of R0(y))W0.call(y,m)&&J(C,m,y[m]);return C},I=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const ne={"07865c6e87b9f70255377e024ace6630c1eaa37f":{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0x07865c6E87B9F70255377e024ace6630C1Eaa37F"}},"6ad196dbcd43996f17638b924d2fdedff6fdd677":{currencyCode:"USDT",displayName:"Tether USD",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0x6AD196dBcd43996F17638B924d2fdEDFF6Fdd677"}},c04b0d3107736c32e19f1c62b2af67be61d63a05:{currencyCode:"WBTC",displayName:"Wrapped Bitcoin",denominations:[{name:"WBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}}},oe={networkAdapterConfigs:[{type:"rpc",servers:["https://eth-goerli.gateway.pokt.network/v1/lb/{{poktPortalApiKey}}","https://eth-goerli.alchemyapi.io/v2/-{{alchemyApiKey}}","https://goerli.infura.io/v3/{{infuraProjectId}}"]},{type:"evmscan",servers:["https://api-goerli.etherscan.io"]}],uriNetworks:["ethereum","ether"],ercTokenStandard:"ERC20",chainParams:{chainId:5,name:"Goerli"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:{native:"ether",token:"token"},amberDataBlockchainId:"",pluginMnemonicKeyName:"goerliMnemonic",pluginRegularKeyName:"goerliKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"},"1983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:{lowFee:"1000000002",standardFeeLow:"40000000002",standardFeeHigh:"300000000002",standardFeeLowAmount:"200000000000000000",standardFeeHighAmount:"20000000000000000000",highFee:"40000000002"},minPriorityFee:void 0},"2983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:void 0,minPriorityFee:void 0}}},ae={customFeeSettings:["gasLimit","gasPrice"],otherSettings:W({},oe)},B={canReplaceByFee:!0,currencyCode:"GOR",displayName:"Goerli Testnet",memoOptions:b.u,pluginId:"goerli",walletType:"wallet:goerli",addressExplorer:"https://etherscan.io/address/%s",transactionExplorer:"https://etherscan.io/tx/%s",denominations:[{name:"GOR",multiplier:"1000000000000000000",symbol:"G"},{name:"mGOR",multiplier:"1000000000000000",symbol:"mG"}],defaultSettings:ae,memoType:"hex",metaTokens:(0,P.ZS)(ne)},v=(0,n.P)({builtinTokens:ne,currencyInfo:B,networkInfo:oe,getInnerPlugin(){return I(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var O=Object.defineProperty,z0=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Z0=(C,y,m)=>y in C?O(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,At=(C,y)=>{for(var m in y||(y={}))gt.call(y,m)&&Z0(C,m,y[m]);if(z0)for(var m of z0(y))Ct.call(y,m)&&Z0(C,m,y[m]);return C},wt=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const V0={b597cd8d3217ea6477232f9217fa70837ff667af:{currencyCode:"AAVE",displayName:"Aave",denominations:[{name:"AAVE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb597cd8d3217ea6477232f9217fa70837ff667af"}},"3e0437898a5667a4769b1ca5a34aab1ae7e81377":{currencyCode:"AMPL",displayName:"Ampleforth",denominations:[{name:"AMPL",multiplier:"1000000000"}],networkLocation:{contractAddress:"0x3e0437898a5667a4769b1ca5a34aab1ae7e81377"}},"4c6e1efc12fdfd568186b7baec0a43fffb4bcccf":{currencyCode:"BUSD",displayName:"Binance USD",denominations:[{name:"BUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4c6e1efc12fdfd568186b7baec0a43fffb4bcccf"}},c64f90cd7b564d3ab580eb20a102a8238e218be2:{currencyCode:"ENJ",displayName:"Enjin Coin",denominations:[{name:"ENJ",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc64f90cd7b564d3ab580eb20a102a8238e218be2"}},"99b267b9d96616f906d53c26decf3c5672401282":{currencyCode:"sUSD",displayName:"Synth sUSD",denominations:[{name:"sUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x99b267b9d96616f906d53c26decf3c5672401282"}},ad5ce863ae3e4e9394ab43d4ba0d80f419f61789:{currencyCode:"LINK",displayName:"ChainLink",denominations:[{name:"LINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xAD5ce863aE3E4E9394Ab43d4ba0D80f419F61789"}},"738dc6380157429e957d223e6333dc385c85fec7":{currencyCode:"MANA",displayName:"Decentraland",denominations:[{name:"MANA",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x738dc6380157429e957d223e6333dc385c85fec7"}},"016750ac630f711882812f24dba6c95b9d35856d":{currencyCode:"TUSD",displayName:"TrueUSD",denominations:[{name:"TUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x016750ac630f711882812f24dba6c95b9d35856d"}},"7fdb81b0b8a010dd4ffc57c3fecbf145ba8bd947":{currencyCode:"SNX",displayName:"Synthetix",denominations:[{name:"SNX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x7fdb81b0b8a010dd4ffc57c3fecbf145ba8bd947"}},"5eebf65a6746eed38042353ba84c8e37ed58ac6f":{currencyCode:"REN",displayName:"Republic Token",denominations:[{name:"REN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x5eebf65a6746eed38042353ba84c8e37ed58ac6f"}},"61e4cae3da7fd189e52a4879c7b8067d7c2cc0fa":{currencyCode:"MKR",displayName:"Maker",denominations:[{name:"MKR",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x61e4cae3da7fd189e52a4879c7b8067d7c2cc0fa"}},b7c325266ec274feb1354021d27fa3e3379d840d:{currencyCode:"YFI",displayName:"yearn.finance",denominations:[{name:"YFI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb7c325266ec274feb1354021d27fa3e3379d840d"}},d0d76886cf8d952ca26177eb7cfdf83bad08c00c:{currencyCode:"ZRX",displayName:"ZRX",denominations:[{name:"ZRX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd0d76886cf8d952ca26177eb7cfdf83bad08c00c"}},ff795577d9ac8bd7d90ee22b6c1703490b6512fd:{currencyCode:"DAI",displayName:"Dai Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xff795577d9ac8bd7d90ee22b6c1703490b6512fd"}},e22da380ee6b445bb8273c81944adeb6e8450422:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0xe22da380ee6b445bb8273c81944adeb6e8450422"}},"13512979ade267ab5100878e2e0f485b568328a4":{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0x13512979ade267ab5100878e2e0f485b568328a4"}},d0a1e359811322d97991e03f863a0c30c2cf029c:{currencyCode:"WETH",displayName:"Wrapped ETH",denominations:[{name:"WETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd0a1e359811322d97991e03f863a0c30c2cf029c"}},d1b98b6607330172f1d991521145a22bce793277:{currencyCode:"WBTC",displayName:"Wrapped Bitcoin",denominations:[{name:"WBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0xD1B98B6607330172f1D991521145A22BCe793277"}}},j0={networkAdapterConfigs:[{type:"rpc",servers:["https://kovan.poa.network","https://eth-kovan.alchemyapi.io/v2/-{{alchemyApiKey}}","https://kovan.infura.io/v3/{{infuraProjectId}}"]},{type:"evmscan",servers:["https://api-kovan.etherscan.io"]}],uriNetworks:["ethereum","ether"],ercTokenStandard:"ERC20",chainParams:{chainId:42,name:"Kovan"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:{native:"ether",token:"token"},amberDataBlockchainId:"",pluginMnemonicKeyName:"kovanMnemonic",pluginRegularKeyName:"kovanKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"},"1983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:{lowFee:"1000000002",standardFeeLow:"40000000002",standardFeeHigh:"300000000002",standardFeeLowAmount:"200000000000000000",standardFeeHighAmount:"20000000000000000000",highFee:"40000000002"},minPriorityFee:void 0},"2983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:void 0,minPriorityFee:void 0}}},It={customFeeSettings:["gasLimit","gasPrice"],otherSettings:At({},j0)},Ft={canReplaceByFee:!0,currencyCode:"KOV",displayName:"Kovan Testnet",memoOptions:b.u,pluginId:"kovan",walletType:"wallet:kovan",addressExplorer:"https://etherscan.io/address/%s",transactionExplorer:"https://etherscan.io/tx/%s",denominations:[{name:"KOV",multiplier:"1000000000000000000",symbol:"K"},{name:"mKOV",multiplier:"1000000000000000",symbol:"mK"}],defaultSettings:It,memoType:"hex",metaTokens:(0,P.ZS)(V0)},Et=(0,n.P)({builtinTokens:V0,currencyInfo:Ft,networkInfo:j0,getInnerPlugin(){return wt(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var Nt=Object.defineProperty,Y0=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,J0=(C,y,m)=>y in C?Nt(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,xt=(C,y)=>{for(var m in y||(y={}))Pt.call(y,m)&&J0(C,m,y[m]);if(Y0)for(var m of Y0(y))Tt.call(y,m)&&J0(C,m,y[m]);return C},Mt=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const $0={"4200000000000000000000000000000000000006":{currencyCode:"WETH",displayName:"Wrapped ETH",denominations:[{name:"WETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4200000000000000000000000000000000000006"}},"3c8b650257cfb5f272f799f5e2b4e65093a11a05":{currencyCode:"VELOV1",displayName:"Velodrome",denominations:[{name:"VELOV1",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x3c8B650257cFb5f272f799F5e2b4e65093a11a05"}},"9560e827af36c94d2ac33a39bce1fe78631088db":{currencyCode:"VELO",displayName:"Velodrome",denominations:[{name:"VELO",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db"}},"4200000000000000000000000000000000000042":{currencyCode:"OP",displayName:"Optimism",denominations:[{name:"OP",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4200000000000000000000000000000000000042"}},"94b008aa00579c1307b0ef2c499ad98a8ce58e58":{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},"7f5c764cbc14f9669b88837ca1490cca17c31607":{currencyCode:"USDC.e",displayName:"USD Coin",denominations:[{name:"USDC.e",multiplier:"1000000"}],networkLocation:{contractAddress:"0x7F5c764cBc14f9669B88837ca1490cCa17c31607"}},"0b2c639c533813f4aa9d7837caf62653d097ff85":{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},da10009cbd5d07dd0cecc66161fc93d7c9000da1:{currencyCode:"DAI",displayName:"Dai Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"}},"6fd9d7ad17242c41f7131d257212c54a0e816691":{currencyCode:"UNI",displayName:"Uniswap",denominations:[{name:"UNI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6fd9d7AD17242c41f7131d257212c54A0e816691"}},"68f180fcce6836688e9084f035309e29bf0a2095":{currencyCode:"WBTC",displayName:"Wrapped Bitcoin",denominations:[{name:"WBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x68f180fcCe6836688e9084f035309E29Bf0A2095"}},"350a791bfc2c21f9ed5d10980dad2e2638ffa7f6":{currencyCode:"LINK",displayName:"Chainlink",denominations:[{name:"LINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6"}},fdb794692724153d1488ccdbe0c56c252596735f:{currencyCode:"LDO",displayName:"Lido DAO",denominations:[{name:"LDO",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xFdb794692724153d1488CcdBE0C56c252596735F"}},"76fb31fb4af56892a25e32cfc43de717950c9278":{currencyCode:"AAVE",displayName:"Aave",denominations:[{name:"AAVE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x76FB31fb4af56892A25e32cFC43De717950c9278"}},"2e3d870790dc77a83dd1d18184acc7439a53f475":{currencyCode:"FRAX",displayName:"Frax",denominations:[{name:"FRAX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x2E3D870790dC77A83DD1d18184Acc7439A53f475"}},bfc044a234e45412ecfec2cd6aae2dd0c083a7cd:{currencyCode:"CRV",displayName:"Curve DAO",denominations:[{name:"CRV",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xbfC044a234E45412eCfeC2Cd6aAe2dd0C083a7cd"}},"1f514a61bcde34f94bc39731235690ab9da737f7":{currencyCode:"TAROT",displayName:"Tarot",denominations:[{name:"TAROT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x1f514a61bcde34f94bc39731235690ab9da737f7"}}},Q0={networkAdapterConfigs:[{type:"rpc",servers:["https://mainnet.optimism.io","https://rpc.ankr.com/optimism"],ethBalCheckerContract:"0xb1c568e9c3e6bdaf755a60c7418c269eb11524fc"},{type:"evmscan",servers:["https://api-optimistic.etherscan.io"]}],uriNetworks:["optimism"],ercTokenStandard:"ERC20",chainParams:{chainId:10,name:"Optimism"},optimismRollupParams:{gasPriceL1Wei:"1000000000",gasPricel1BaseFeeMethod:"0x519b4bd3",maxGasPriceL1Multiplier:"1.25",fixedOverhead:"2100",dynamicOverhead:"1000000",oracleContractAddress:"0x420000000000000000000000000000000000000F",dynamicOverheadMethod:"0xf45e65d800000000000000000000000000000000000000000000000000000000"},hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"optimismMnemonic",pluginRegularKeyName:"optimismKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"100000"},minPriorityFee:"2000000000"}}},Lt={customFeeSettings:["gasLimit","gasPrice"],otherSettings:xt({},Q0)},St={canReplaceByFee:!0,currencyCode:"ETH",displayName:"Optimism",memoOptions:b.u,pluginId:"optimism",walletType:"wallet:optimism",addressExplorer:"https://optimistic.etherscan.io/address/%s",transactionExplorer:"https://optimistic.etherscan.io/tx/%s",denominations:[{name:"ETH",multiplier:"1000000000000000000",symbol:"\u039E"}],defaultSettings:Lt,memoType:"hex",metaTokens:(0,P.ZS)($0)},Dt=(0,n.P)({builtinTokens:$0,currencyInfo:St,networkInfo:Q0,getInnerPlugin(){return Mt(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var kt=Object.defineProperty,q0=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,_0=(C,y,m)=>y in C?kt(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,Rt=(C,y)=>{for(var m in y||(y={}))Bt.call(y,m)&&_0(C,m,y[m]);if(q0)for(var m of q0(y))Ot.call(y,m)&&_0(C,m,y[m]);return C},Ut=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const et={"2791bca1f2de4661ed88a30c99a7a9449aa84174":{currencyCode:"USDC.e",displayName:"USD Coin",denominations:[{name:"USDC.e",multiplier:"1000000"}],networkLocation:{contractAddress:"0x2791bca1f2de4661ed88a30c99a7a9449aa84174"}},"3c499c542cef5e3811e1192ce70d8cc03d5c3359":{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}},"8f3cf7ad23cd3cadbd9735aff958023239c6a063":{currencyCode:"DAI",displayName:"Dai Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8f3cf7ad23cd3cadbd9735aff958023239c6a063"}},c2132d05d31c914a87c6611c10748aeb04b58e8f:{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f"}},d6df932a45c0f255f85145f286ea0b292b21c90b:{currencyCode:"AAVE",displayName:"Aave",denominations:[{name:"AAVE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd6df932a45c0f255f85145f286ea0b292b21c90b"}},"1bfd67037b42cf73acf2047067bd4f2c47d9bfd6":{currencyCode:"WBTC",displayName:"Wrapped Bitcoin",denominations:[{name:"WBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6"}},da537104d6a5edd53c6fbba9a898708e465260b6:{currencyCode:"YFI",displayName:"Yearn Finance",denominations:[{name:"YFI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xda537104d6a5edd53c6fbba9a898708e465260b6"}},"7ceb23fd6bc0add59e62ac25578270cff1b9f619":{currencyCode:"WETH",displayName:"Wrapped ETH",denominations:[{name:"WETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x7ceb23fd6bc0add59e62ac25578270cff1b9f619"}},"9c9e5fd8bbc25984b178fdce6117defa39d2db39":{currencyCode:"BUSD",displayName:"Binance USD",denominations:[{name:"BUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x9c9e5fd8bbc25984b178fdce6117defa39d2db39"}},b33eaad8d922b1083446dc23f610c2567fb5180f:{currencyCode:"UNI",displayName:"Uniswap",denominations:[{name:"UNI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb33eaad8d922b1083446dc23f610c2567fb5180f"}},c9c1c1c20b3658f8787cc2fd702267791f224ce1:{currencyCode:"FTM",displayName:"Fantom",denominations:[{name:"FTM",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc9c1c1c20b3658f8787cc2fd702267791f224ce1"}},"6f7c932e7684666c9fd1d44527765433e01ff61d":{currencyCode:"MKR",displayName:"Maker",denominations:[{name:"MKR",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6f7C932e7684666C9fd1d44527765433e01fF61d"}},"2e1ad108ff1d8c782fcbbb89aad783ac49586756":{currencyCode:"TUSD",displayName:"TrueUSD",denominations:[{name:"TUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x2e1ad108ff1d8c782fcbbb89aad783ac49586756"}},"3ba4c387f786bfee076a58914f5bd38d668b42c3":{currencyCode:"BNB",displayName:"Binance",denominations:[{name:"BNB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x3BA4c387f786bFEE076A58914F5Bd38d668B42c3"}},a1c57f48f0deb89f569dfbe6e2b7f46d33606fd4:{currencyCode:"MANA",displayName:"Decentraland",denominations:[{name:"MANA",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xa1c57f48f0deb89f569dfbe6e2b7f46d33606fd4"}},"53e0bca35ec356bd5dddfebbd1fc0fd03fabad39":{currencyCode:"LINK",displayName:"Chainlink",denominations:[{name:"LINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39"}}},tt={networkAdapterConfigs:[{type:"rpc",servers:["https://polygon-rpc.com/","https://rpc.polycat.finance","https://rpc-mainnet.maticvigil.com","https://matic-mainnet.chainstacklabs.com","https://rpc.ankr.com/polygon","https://poly-mainnet.gateway.pokt.network/v1/lb/{{poktPortalApiKey}}","https://rpc-mainnet.matic.quiknode.pro/{{quiknodeApiKey}}/"],ethBalCheckerContract:"0x2352c63A83f9Fd126af8676146721Fa00924d7e4"},{type:"evmscan",servers:["https://api.polygonscan.com"]}],uriNetworks:["polygon"],ercTokenStandard:"ERC20",chainParams:{chainId:137,name:"MATIC Mainnet"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"polygonMnemonic",pluginRegularKeyName:"polygonKey",ethGasStationUrl:"https://gasstation-mainnet.matic.network/",defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"30000000001",standardFeeLow:"36000000000",standardFeeHigh:"100000000000",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"216000000000",minGasPrice:"30000000000"},minPriorityFee:void 0}}},Xt={customFeeSettings:["gasLimit","gasPrice"],otherSettings:Rt({},tt)},Kt={canReplaceByFee:!0,currencyCode:"MATIC",displayName:"Polygon",memoOptions:b.u,pluginId:"polygon",walletType:"wallet:polygon",addressExplorer:"https://polygonscan.com/address/%s",transactionExplorer:"https://polygonscan.com/tx/%s",denominations:[{name:"MATIC",multiplier:"1000000000000000000",symbol:"MATIC"},{name:"mMATIC",multiplier:"1000000000000000",symbol:"mMATIC"}],defaultSettings:Xt,memoType:"hex",metaTokens:(0,P.ZS)(et)},Ht=(0,n.P)({builtinTokens:et,currencyInfo:Kt,networkInfo:tt,getInnerPlugin(){return Ut(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var Gt=Object.defineProperty,nt=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,ot=(C,y,m)=>y in C?Gt(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,Zt=(C,y)=>{for(var m in y||(y={}))Wt.call(y,m)&&ot(C,m,y[m]);if(nt)for(var m of nt(y))zt.call(y,m)&&ot(C,m,y[m]);return C},Vt=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const at={a1077a294dde1b09bb078844df40758a5d0f9a27:{currencyCode:"WPLS",displayName:"Wrapped Pulse",denominations:[{name:"WPLS",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xA1077a294dDE1B09bB078844df40758a5D0f9a27"}}},rt={networkAdapterConfigs:[{type:"rpc",servers:["https://rpc.pulsechain.com/"]},{type:"evmscan",servers:["https://api.scan.pulsechain.com"]},{type:"pulsechain-scan",servers:["https://api.scan.pulsechain.com"]}],uriNetworks:["pulsechain"],ercTokenStandard:"ERC20",chainParams:{chainId:369,name:"PulseChain"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"pulsechainMnemonic",pluginRegularKeyName:"pulsechainKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"}}},jt={customFeeSettings:["gasLimit","gasPrice"],otherSettings:Zt({},rt)},Yt={canReplaceByFee:!0,currencyCode:"PLS",displayName:"PulseChain",memoOptions:b.u,pluginId:"pulsechain",walletType:"wallet:pulsechain",addressExplorer:"https://beacon.pulsechain.com/address/%s",transactionExplorer:"https://beacon.pulsechain.com/tx/%s",denominations:[{name:"PLS",multiplier:"1000000000000000000",symbol:"PLS"},{name:"mPLS",multiplier:"1000000000000000",symbol:"mPLS"}],defaultSettings:jt,memoType:"hex",metaTokens:(0,P.ZS)(at)},Jt=(0,n.P)({builtinTokens:at,currencyInfo:Yt,networkInfo:rt,getInnerPlugin(){return Vt(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var $t=Object.defineProperty,it=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,st=(C,y,m)=>y in C?$t(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,_t=(C,y)=>{for(var m in y||(y={}))Qt.call(y,m)&&st(C,m,y[m]);if(it)for(var m of it(y))qt.call(y,m)&&st(C,m,y[m]);return C},en=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const ct={},dt={networkAdapterConfigs:[{type:"rpc",servers:["https://eth-rinkeby.alchemyapi.io/v2/-{{alchemyApiKey}}","https://rinkeby.infura.io/v3/{{infuraProjectId}}"]},{type:"evmscan",servers:["https://api-rinkeby.etherscan.io"]}],uriNetworks:["ethereum","ether"],ercTokenStandard:"ERC20",chainParams:{chainId:4,name:"Rinkeby"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:{native:"ether",token:"token"},amberDataBlockchainId:"",pluginMnemonicKeyName:"rinkebyMnemonic",pluginRegularKeyName:"rinkebyKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"},"1983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:{lowFee:"1000000002",standardFeeLow:"40000000002",standardFeeHigh:"300000000002",standardFeeLowAmount:"200000000000000000",standardFeeHighAmount:"20000000000000000000",highFee:"40000000002"},minPriorityFee:void 0},"2983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:void 0,minPriorityFee:void 0}}},tn={customFeeSettings:["gasLimit","gasPrice"],otherSettings:_t({},dt)},nn={canReplaceByFee:!0,currencyCode:"RIN",displayName:"Rinkeby Testnet",memoOptions:b.u,pluginId:"rinkeby",walletType:"wallet:rinkeby",addressExplorer:"https://etherscan.io/address/%s",transactionExplorer:"https://etherscan.io/tx/%s",denominations:[{name:"RIN",multiplier:"1000000000000000000",symbol:"\u039E"},{name:"mRIN",multiplier:"1000000000000000",symbol:"m\u039E"}],defaultSettings:tn,memoType:"hex",metaTokens:(0,P.ZS)(ct)},on=(0,n.P)({builtinTokens:ct,currencyInfo:nn,networkInfo:dt,getInnerPlugin(){return en(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var an=Object.defineProperty,lt=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,ft=(C,y,m)=>y in C?an(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,cn=(C,y)=>{for(var m in y||(y={}))rn.call(y,m)&&ft(C,m,y[m]);if(lt)for(var m of lt(y))sn.call(y,m)&&ft(C,m,y[m]);return C},dn=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const ut={},mt={networkAdapterConfigs:[{type:"rpc",servers:["https://eth-ropsten.alchemyapi.io/v2/-{{alchemyApiKey}}","https://ropsten.infura.io/v3/{{infuraProjectId}}"]},{type:"evmscan",servers:["https://api-ropsten.etherscan.io"]},{type:"blockbook",servers:["https://ropsten1.trezor.io","https://ropsten2.trezor.io"]}],uriNetworks:["ethereum","ether"],ercTokenStandard:"ERC20",chainParams:{chainId:3,name:"Ropsten"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:{native:"ether",token:"token"},amberDataBlockchainId:"",pluginMnemonicKeyName:"ropstenMnemonic",pluginRegularKeyName:"ropstenKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"},"1983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:{lowFee:"1000000002",standardFeeLow:"40000000002",standardFeeHigh:"300000000002",standardFeeLowAmount:"200000000000000000",standardFeeHighAmount:"20000000000000000000",highFee:"40000000002"},minPriorityFee:void 0},"2983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:void 0,minPriorityFee:void 0}}},ln={customFeeSettings:["gasLimit","gasPrice"],otherSettings:cn({},mt)},fn={canReplaceByFee:!0,currencyCode:"ROP",displayName:"Ropsten Testnet",memoOptions:b.u,pluginId:"ropsten",walletType:"wallet:ropsten",addressExplorer:"https://etherscan.io/address/%s",transactionExplorer:"https://etherscan.io/tx/%s",denominations:[{name:"ROP",multiplier:"1000000000000000000",symbol:"R"},{name:"mROP",multiplier:"1000000000000000",symbol:"mR"}],defaultSettings:ln,memoType:"hex",metaTokens:(0,P.ZS)(ut)},un=(0,n.P)({builtinTokens:ut,currencyInfo:fn,networkInfo:mt,getInnerPlugin(){return dn(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var mn=Object.defineProperty,ht=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,pt=(C,y,m)=>y in C?mn(C,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[y]=m,yn=(C,y)=>{for(var m in y||(y={}))hn.call(y,m)&&pt(C,m,y[m]);if(ht)for(var m of ht(y))pn.call(y,m)&&pt(C,m,y[m]);return C},vn=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const yt={"2acc95758f8b5f583470ba265eb685a8f45fc9d5":{currencyCode:"RIF",displayName:"RIF Token",denominations:[{name:"RIF",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x2acc95758f8b5f583470ba265eb685a8f45fc9d5"}}},vt={networkAdapterConfigs:[{type:"rpc",servers:["https://public-node.rsk.co"]},{type:"evmscan",servers:["https://blockscout.com/rsk/mainnet"]}],alethioCurrencies:null,amberDataBlockchainId:"",uriNetworks:["rsk","rbtc"],ercTokenStandard:"RRC20",chainParams:{chainId:30,name:"Rootstock Mainnet"},hdPathCoinType:137,pluginMnemonicKeyName:"rskMnemonic",pluginRegularKeyName:"rskKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21000",tokenTransaction:"200000",minGasLimit:"21000"},gasPrice:{lowFee:"59240000",standardFeeLow:"59240000",standardFeeHigh:"59240000",standardFeeLowAmount:"59240000",standardFeeHighAmount:"59240000",highFee:"59240000",minGasPrice:"59240000"},minPriorityFee:void 0}}},bn={customFeeSettings:["gasLimit","gasPrice"],otherSettings:yn({},vt)},gn={canReplaceByFee:!0,currencyCode:"RBTC",displayName:"Rootstock",memoOptions:b.u,pluginId:"rsk",walletType:"wallet:rsk",addressExplorer:"https://explorer.rsk.co/address/%s",transactionExplorer:"https://explorer.rsk.co/tx/%s",denominations:[{name:"RBTC",multiplier:"1000000000000000000",symbol:"RBTC"}],defaultSettings:bn,memoType:"hex",metaTokens:(0,P.ZS)(yt)},Cn=(0,n.P)({builtinTokens:yt,currencyInfo:gn,networkInfo:vt,getInnerPlugin(){return vn(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});var An=(C,y,m)=>new Promise((ue,Q)=>{var me=A=>{try{H(m.next(A))}catch(G){Q(G)}},he=A=>{try{H(m.throw(A))}catch(G){Q(G)}},H=A=>A.done?ue(A.value):Promise.resolve(A.value).then(me,he);H((m=m.apply(C,y)).next())});const bt={"3355df6d4c9c3035724fd0e3914de96a5a83aaf4":{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4"}}},K0={networkAdapterConfigs:[{type:"rpc",servers:["https://mainnet.era.zksync.io"]},{type:"evmscan",servers:["https://block-explorer-api.mainnet.zksync.io"]}],uriNetworks:["zksync"],ercTokenStandard:"ERC20",chainParams:{chainId:324,name:"zkSync"},hdPathCoinType:60,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"zksyncMnemonic",pluginRegularKeyName:"zksyncKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:void 0,gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"10000000"},minPriorityFee:"2000000000"}}},wn={customFeeSettings:["gasLimit","gasPrice"],otherSettings:{chainParams:K0.chainParams,ercTokenStandard:K0.ercTokenStandard}},In={canReplaceByFee:!0,currencyCode:"ETH",displayName:"zkSync",memoOptions:b.u,pluginId:"zksync",walletType:"wallet:zksync",addressExplorer:"https://explorer.zksync.io/address/%s",transactionExplorer:"https://explorer.zksync.io/tx/%s",denominations:[{name:"ETH",multiplier:"1000000000000000000",symbol:"\u039E"}],defaultSettings:wn,memoType:"hex",metaTokens:(0,P.ZS)(bt)},Fn=(0,n.P)({builtinTokens:bt,currencyInfo:In,networkInfo:K0,getInnerPlugin(){return An(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}}),En={arbitrum:k,avalanche:E,base:X,binancesmartchain:ke,celo:E0,ethDev:He,ethereum:M0.t,ethereumclassic:Me,ethereumpow:u0,fantom:m0.Q,filecoinfevm:O0,filecoinfevmcalibration:v0,goerli:v,kovan:Et,optimism:Dt,polygon:Ht,pulsechain:Jt,rinkeby:on,ropsten:un,rsk:Cn,zksync:Fn}},28363:function(S,g,t){"use strict";t.d(g,{Al:function(){return ee},EV:function(){return Z},EX:function(){return re},OM:function(){return fe},T0:function(){return de},TI:function(){return N},TP:function(){return E},VX:function(){return d},aB:function(){return x},b6:function(){return q},cc:function(){return V},dp:function(){return b},gF:function(){return te},hZ:function(){return F},jq:function(){return p},sh:function(){return e},tI:function(){return M},tT:function(){return le},x4:function(){return L},xF:function(){return D},zv:function(){return se}});var n=t(82448),P=t(62177);const b=(0,n.su)({evmScanApiKey:(0,n.Zz)((0,n._C)(n.XC,(0,n._2)(n.XC))),blockcypherApiKey:(0,n.Zz)(n.XC),infuraProjectId:(0,n.Zz)(n.XC),blockchairApiKey:(0,n.Zz)(n.XC),alethioApiKey:(0,n.Zz)(n.XC),amberdataApiKey:(0,n.Zz)(n.XC),gasStationApiKey:(0,n.Zz)(n.XC),quiknodeApiKey:(0,n.Zz)(n.XC),alchemyApiKey:(0,n.Zz)(n.XC),poktPortalApiKey:(0,n.Zz)(n.XC)});function T(o){return o in b.shape}const p=o=>{if(typeof o!="string")throw new Error("key must be a string");if(T(o))return o;throw new Error(`${o} not a key of EthereumInitOptions`)},M=["resolveEnsName"],Y=(0,n.su)({minGasLimit:(0,n.Zz)(n.XC),regularTransaction:n.XC,tokenTransaction:n.XC}),U=(0,n.su)({highFee:n.XC,lowFee:n.XC,minGasPrice:(0,n.Zz)(n.XC),standardFeeLow:n.XC,standardFeeHigh:n.XC,standardFeeLowAmount:n.XC,standardFeeHighAmount:n.XC}),K=(0,n.su)({lowFee:n.XC,standardFeeLow:n.XC,standardFeeHigh:n.XC,highFee:n.XC}),$=(0,n.su)({baseFee:(0,n.Zz)(n.XC),baseFeeMultiplier:(0,n.Zz)(K),gasLimit:(0,n.Zz)(Y),gasPrice:(0,n.Zz)(U),minPriorityFee:(0,n.Zz)(n.XC)}),q=(0,n.su)($),de=(0,n.su)({blockNumber:n.XC,timeStamp:n.XC,hash:(0,n.Zz)(n.XC),transactionHash:(0,n.Zz)(n.XC),to:n.XC,from:n.XC,value:n.XC,nonce:n.XC,gasPrice:n.XC,gas:n.XC,gasUsed:n.XC,confirmations:n.XC,contractAddress:n.XC,tokenName:n.XC,tokenSymbol:n.XC,tokenDecimal:n.XC}),Z=(0,n.su)({hash:(0,n.Zz)(n.XC),transactionHash:(0,n.Zz)(n.XC),blockNumber:n.XC,timeStamp:n.XC,gasPrice:n.XC,gasUsed:n.XC,value:n.XC,nonce:n.XC,from:n.XC,to:n.XC,gas:n.XC,isError:n.XC,confirmations:(0,n.Zz)(n.XC)}),D=(0,n.su)({hash:(0,n.Zz)(n.XC),transactionHash:(0,n.Zz)(n.XC),blockNumber:n.XC,timeStamp:n.XC,gasUsed:n.XC,value:n.XC,from:n.XC,to:n.XC,gas:n.XC,isError:n.XC,contractAddress:(0,n.Zz)(n.XC)}),N=(0,n.su)({LastBlock:n.XC,SafeGasPrice:n.XC,ProposeGasPrice:n.XC,FastGasPrice:n.XC,suggestBaseFee:(0,n.Vk)(n.XC),gasUsedRatio:(0,n.Vk)((0,n._2)(n.XC))}),k=(0,n.su)({status:n.XC,message:n.XC,result:(0,n._C)(n.XC,(0,n.su)(N))}),ee=(0,n.su)({from:(0,n._2)(n.XC),to:(0,n._2)(n.XC),gas:n.XC,gasPrice:n.XC,gasUsed:n.XC,minerTip:(0,n.Zz)(n.XC),tokenRecipientAddress:(0,n.Zz)(n.XC),nonceUsed:(0,n.Zz)(n.XC),replacedTxid:(0,n.Zz)(n.XC),data:(0,n.Zz)((0,n._C)(n.XC,n.gu)),isFromMakeSpend:(0,n.Zz)(n.jK,!1)}),te=(0,n.su)({nextNonce:(0,n.Vk)(n.XC,"0"),unconfirmedNextNonce:(0,n.Vk)(n.XC,"0")}),re=(0,n.su)({blockbook:(0,n.su)({bestHeight:n.mH})}),fe=(0,n.su)({symbol:n.XC,contract:n.XC,balance:n.XC}),F=(0,n.su)({balance:n.XC,unconfirmedBalance:n.XC,unconfirmedTxs:n.mH,nonce:n.XC,tokens:(0,n.Vk)((0,n._2)(fe),()=>[])}),x=(0,n.su)({balance:n.XC,token_address:n.XC,token_symbol:n.XC}),L=(0,n.su)({data:(0,n.su)((0,n.su)({address:(0,n.su)({balance:n.XC}),layer_2:(0,n.su)({erc_20:(0,n._2)((0,n.Zz)(n.XC))})}))}),V=(0,n.su)({data:(0,n.su)({blocks:n.mH})}),ie=(0,n.su)({hash:n.XC,timestamp:n.XC,blockNumber:n.XC,value:n.XC,fee:n.XC,gasLimit:n.XC,gasPrice:n.XC,gasUsed:n.XC,from:(0,n._2)((0,n.su)({address:n.XC})),to:(0,n._2)((0,n.su)({address:n.XC}))}),le=(0,n.su)({result:n.XC}),se=(0,n.su)({l1Fee:n.XC}),w=(0,n.su)({id:(0,n._C)(n.XC,n.mH),method:(0,n.Wf)("personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","eth_sendTransaction","eth_signTransaction","eth_sendRawTransaction"),params:(0,n._2)(n.JC)}),E=(0,n.Zz)((0,n.su)({typedData:(0,n.Zz)(n.jK,!1)}),{typedData:!1}),d=P.BQ,e=o=>{const r=o,i=(0,n.su)({[`${r}Mnemonic`]:(0,n.Zz)(n.XC),[`${r}Key`]:n.XC}),s=(0,n.su)({keys:i});return(0,n.W1)(u=>{const h=(0,n.Vk)(s)(u);if(h!=null)return{mnemonic:h.keys[`${r}Mnemonic`],privateKey:h.keys[`${r}Key`]};const c=i(u);return{mnemonic:c[`${r}Mnemonic`],privateKey:c[`${r}Key`]}},u=>({[`${r}Mnemonic`]:u.mnemonic,[`${r}Key`]:u.privateKey}))}},96283:function(S,g,t){"use strict";t.d(g,{u:function(){return n}});const n=[{type:"hex",hidden:!0,memoName:"data"}]},77611:function(S,g,t){"use strict";t.d(g,{t:function(){return F}});var n=t(24224),P=t(20918),b=t(28363),T=t(96283);S=t.hmd(S);var p=t(34155),M=Object.defineProperty,Y=Object.defineProperties,U=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,de=(x,L,V)=>L in x?M(x,L,{enumerable:!0,configurable:!0,writable:!0,value:V}):x[L]=V,Z=(x,L)=>{for(var V in L||(L={}))$.call(L,V)&&de(x,V,L[V]);if(K)for(var V of K(L))q.call(L,V)&&de(x,V,L[V]);return x},D=(x,L)=>Y(x,U(L)),N=(x,L,V)=>new Promise((ie,le)=>{var se=d=>{try{E(V.next(d))}catch(e){le(e)}},w=d=>{try{E(V.throw(d))}catch(e){le(e)}},E=d=>d.done?ie(d.value):Promise.resolve(d.value).then(se,w);E((V=V.apply(x,L)).next())});const k={"111111111117dc0aa78b770fa6a738034120c302":{currencyCode:"1INCH",displayName:"1inch",denominations:[{name:"1INCH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x111111111117dc0aa78b770fa6a738034120c302"}},"7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9":{currencyCode:"AAVE",displayName:"Aave",denominations:[{name:"AAVE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9"}},"05ec93c0365baaeabf7aeffb0972ea7ecdd39cf1":{currencyCode:"ABAT",displayName:"Aave Interest Bearing BAT",denominations:[{name:"ABAT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x05ec93c0365baaeabf7aeffb0972ea7ecdd39cf1"}},"028171bca77440897b824ca71d1c56cac55b68a3":{currencyCode:"ADAI",displayName:"Aave Interest Bearing Dai",denominations:[{name:"ADAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x028171bCA77440897B824Ca71D1c56caC55b68A3"}},"39c6b3e42d6a679d7d776778fe880bc9487c2eda":{currencyCode:"AKNC",displayName:"Aave Interest Bearing KNC",denominations:[{name:"AKNC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x39c6b3e42d6a679d7d776778fe880bc9487c2eda"}},a06bc25b5805d5f8d82847d191cb4af5a3e873e0:{currencyCode:"ALINK",displayName:"Aave Interest Bearing LINK",denominations:[{name:"ALINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xa06bc25b5805d5f8d82847d191cb4af5a3e873e0"}},a685a61171bb30d4072b338c80cb7b2c865c873e:{currencyCode:"AMANA",displayName:"Aave Interest Bearing MANA",denominations:[{name:"AMANA",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xa685a61171bb30d4072b338c80cb7b2c865c873e"}},c713e5e149d5d0715dcd1c156a020976e7e56b88:{currencyCode:"AMKR",displayName:"Aave Interest Bearing MKR",denominations:[{name:"AMKR",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc713e5e149d5d0715dcd1c156a020976e7e56b88"}},d46ba6d942050d489dbd938a2c909a5d5039a161:{currencyCode:"AMPL",displayName:"Ampleforth",denominations:[{name:"AMPL",multiplier:"1000000000"}],networkLocation:{contractAddress:"0xd46ba6d942050d489dbd938a2c909a5d5039a161"}},a117000000f279d81a1d3cc75430faa017fa5a2e:{currencyCode:"ANT",displayName:"Aragon",denominations:[{name:"ANT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xa117000000f279D81A1D3cc75430fAA017FA5A2e"}},"960b236a07cf122663c4303350609a66a7b288c0":{currencyCode:"ANTV1",displayName:"Aragon",denominations:[{name:"ANTV1",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x960b236A07cf122663c4303350609A66A7B288C0"}},b50721bcf8d664c30412cfbc6cf7a15145234ad1:{currencyCode:"ARB",displayName:"Arbitrum DAO",denominations:[{name:"ARB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xB50721BCf8d664c30412Cfbc6cf7a15145234ad1"}},cc12abe4ff81c9378d670de1b57f8e0dd228d77a:{currencyCode:"AREN",displayName:"Aave Interest Bearing REN",denominations:[{name:"AREN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xcc12abe4ff81c9378d670de1b57f8e0dd228d77a"}},"35f6b052c598d933d69a4eec4d04c73a191fe6c2":{currencyCode:"ASNX",displayName:"Aave Interest Bearing SNX",denominations:[{name:"ASNX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x35f6b052c598d933d69a4eec4d04c73a191fe6c2"}},"6c5024cd4f8a59110119c56f8933403a539555eb":{currencyCode:"ASUSD",displayName:"Aave Interest Bearing SUSD",denominations:[{name:"ASUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6c5024cd4f8a59110119c56f8933403a539555eb"}},b9d7cb55f463405cdfbe4e90a6d2df01c2b92bf1:{currencyCode:"AUNI",displayName:"Aave Interest Bearing UNI",denominations:[{name:"AUNI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb9d7cb55f463405cdfbe4e90a6d2df01c2b92bf1"}},bcca60bb61934080951369a648fb03df4f96263c:{currencyCode:"AUSDC",displayName:"Aave Interest Bearing USDC",denominations:[{name:"AUSDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0xbcca60bb61934080951369a648fb03df4f96263c"}},"3ed3b47dd13ec9a98b44e6204a523e766b225811":{currencyCode:"AUSDT",displayName:"Aave Interest Bearing USDT",denominations:[{name:"AUSDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0x3ed3b47dd13ec9a98b44e6204a523e766b225811"}},"9ff58f4ffb29fa2266ab25e75e2a8b3503311656":{currencyCode:"AWBTC",displayName:"Aave Interest Bearing Wrapped BTC",denominations:[{name:"AWBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x9ff58f4ffb29fa2266ab25e75e2a8b3503311656"}},"030ba81f1c18d280636f32af80b9aad02cf0854e":{currencyCode:"AWETH",displayName:"Aave Interest Bearing Wrapped ETH",denominations:[{name:"AWETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x030ba81f1c18d280636f32af80b9aad02cf0854e"}},"5165d24277cd063f5ac44efd447b27025e888f37":{currencyCode:"AYFI",displayName:"Aave Interest Bearing YFI",denominations:[{name:"AYFI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x5165d24277cd063f5ac44efd447b27025e888f37"}},df7ff54aacacbff42dfe29dd6144a69b629f8c9e:{currencyCode:"AZRX",displayName:"Aave Interest Bearing ZRX",denominations:[{name:"AZRX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xdf7ff54aacacbff42dfe29dd6144a69b629f8c9e"}},"3472a5a71965499acd81997a54bba8d852c6e53d":{currencyCode:"BADGER",displayName:"Badger",denominations:[{name:"BADGER",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x3472A5A71965499acd81997a54BBA8D852C6E53d"}},ba100000625a3754423978a60c9317c58a424e3d:{currencyCode:"BAL",displayName:"Balancer",denominations:[{name:"BAL",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xba100000625a3754423978a60c9317c58a424e3d"}},ba11d00c5f74255f56a5e366f4f77f5a186d7f55:{currencyCode:"BAND",displayName:"BAND",denominations:[{name:"BAND",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xba11d00c5f74255f56a5e366f4f77f5a186d7f55"}},"0d8775f648430679a709e98d2b0cb6250d2887ef":{currencyCode:"BAT",displayName:"Basic Attention Token",denominations:[{name:"BAT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x0D8775F648430679A709E98d2b0Cb6250d2887EF"}},b8c77482e45f1f44de1745f52c74426c631bdd52:{currencyCode:"BNB",displayName:"Binance",denominations:[{name:"BNB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xB8c77482e45F1F44dE1745F52C74426C631bDD52"}},"1f573d6fb3f13d689ff844b4ce37794d79a7ff1c":{currencyCode:"BNT",displayName:"Bancor",denominations:[{name:"BNT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C"}},"420412e765bfa6d85aaac94b4f7b708c89be2e2b":{currencyCode:"BRZ",displayName:"BRZ Token",denominations:[{name:"BRZ",multiplier:"10000"}],networkLocation:{contractAddress:"0x420412E765BFa6d85aaaC94b4f7b708C89be2e2B"}},"4fabb145d64652a948d72533023f6e7a623c7c53":{currencyCode:"BUSD",displayName:"Binance USD",denominations:[{name:"BUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},"6c8c6b02e7b2be14d4fa6022dfd6d75921d90e4e":{currencyCode:"CBAT",displayName:"Compound BAT",denominations:[{name:"CBAT",multiplier:"100000000"}],networkLocation:{contractAddress:"0x6c8c6b02e7b2be14d4fa6022dfd6d75921d90e4e"}},"5d3a536e4d6dbd6114cc1ead35777bab948e3643":{currencyCode:"CDAI",displayName:"Compound DAI",denominations:[{name:"CDAI",multiplier:"100000000"}],networkLocation:{contractAddress:"0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643"}},"4ddc2d193948926d02f9b1fe9e1daa0718270ed5":{currencyCode:"CETH",displayName:"Compound ETH",denominations:[{name:"CETH",multiplier:"100000000"}],networkLocation:{contractAddress:"0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5"}},ffffffff2ba8f66d4e51811c5190992176930278:{currencyCode:"COMBO",displayName:"COMBO",denominations:[{name:"COMBO",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xffffffff2ba8f66d4e51811c5190992176930278"}},c00e94cb662c3520282e6f5717214004a7f26888:{currencyCode:"COMP",displayName:"Compound",denominations:[{name:"COMP",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc00e94cb662c3520282e6f5717214004a7f26888"}},"2ba592f78db6436527729929aaf6c908497cb200":{currencyCode:"CREAM",displayName:"Cream",denominations:[{name:"CREAM",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x2ba592F78dB6436527729929AAf6c908497cB200"}},"158079ee67fce2f58472a96584a73c7ab9ac95c1":{currencyCode:"CREP",displayName:"Compound Augur",denominations:[{name:"CREP",multiplier:"100000000"}],networkLocation:{contractAddress:"0x158079ee67fce2f58472a96584a73c7ab9ac95c1"}},d533a949740bb3306d119cc777fa900ba034cd52:{currencyCode:"CRV",displayName:"Curve DAO Token",denominations:[{name:"CRV",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xD533a949740bb3306d119CC777fa900bA034cd52"}},f5dce57282a584d2746faf1593d3121fcac444dc:{currencyCode:"CSAI",displayName:"Compound SAI",denominations:[{name:"CSAI",multiplier:"100000000"}],networkLocation:{contractAddress:"0xf5dce57282a584d2746faf1593d3121fcac444dc"}},"39aa39c021dfbae8fac545936693ac917d5e7563":{currencyCode:"CUSDC",displayName:"Compound USDC",denominations:[{name:"CUSDC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x39aa39c021dfbae8fac545936693ac917d5e7563"}},"38e4adb44ef08f22f5b5b76a8f0c2d0dcbe7dca1":{currencyCode:"CVP",displayName:"Concentrated Voting Power",denominations:[{name:"CVP",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x38e4adb44ef08f22f5b5b76a8f0c2d0dcbe7dca1"}},c11b1268c1a384e55c48c2391d8d480264a3a7f4:{currencyCode:"CWBTC",displayName:"Compound WBTC",denominations:[{name:"CWBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0xc11b1268c1a384e55c48c2391d8d480264a3a7f4"}},b3319f5d18bc0d84dd1b4825dcde5d5f7266d407:{currencyCode:"CZRX",displayName:"Compound ZRX",denominations:[{name:"CZRX",multiplier:"100000000"}],networkLocation:{contractAddress:"0xb3319f5d18bc0d84dd1b4825dcde5d5f7266d407"}},"6b175474e89094c44da98b954eedeac495271d0f":{currencyCode:"DAI",displayName:"Dai Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},ad32a8e6220741182940c5abf610bde99e737b2d:{currencyCode:"DOUGH",displayName:"PieDAO",denominations:[{name:"DOUGH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xad32a8e6220741182940c5abf610bde99e737b2d"}},"1494ca1f11d487c2bbe4543e90080aeba4ba3c2b":{currencyCode:"DPI",displayName:"DefiPulse Index",denominations:[{name:"DPI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b"}},b1cd6e4153b2a390cf00a6556b0fc1458c4a5533:{currencyCode:"ETHBNT",displayName:"BNT Smart Token Relay",denominations:[{name:"ETHBNT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb1CD6e4153B2a390Cf00A6556b0fC1458C4A5533"}},"4e15361fd6b4bb609fa63c81a2be19d873717870":{currencyCode:"FTM",displayName:"Fantom",denominations:[{name:"FTM",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4e15361fd6b4bb609fa63c81a2be19d873717870"}},"419d0d8bdd9af5e606ae2232ed285aff190e711b":{currencyCode:"FUN",displayName:"FunFair",denominations:[{name:"FUN",multiplier:"100000000"}],networkLocation:{contractAddress:"0x419D0d8BdD9aF5e606Ae2232ed285Aff190E711b"}},"7dd9c5cba05e151c895fde1cf355c9a1d5da6429":{currencyCode:"GLM",displayName:"Golem",denominations:[{name:"GLM",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x7DD9c5Cba05E151C895FDe1CF355C9A1D5DA6429"}},"6810e776880c02933d47db1b9fc05908e5386b96":{currencyCode:"GNO",displayName:"Gnosis",denominations:[{name:"GNO",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6810e776880C02933D47DB1b9fc05908e5386b96"}},a74476443119a942de498590fe1f2454d7d4ac0d:{currencyCode:"GNT",displayName:"Golem (old)",denominations:[{name:"GNT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xa74476443119A942dE498590Fe1f2454d7D4aC0d"}},"056fd409e1d7a124bd7017459dfea2f387b6d5cd":{currencyCode:"GUSD",displayName:"Gemini Dollar",denominations:[{name:"GUSD",multiplier:"100"}],networkLocation:{contractAddress:"0x056fd409e1d7a124bd7017459dfea2f387b6d5cd"}},"2e91e3e54c5788e9fdd6a181497fdcea1de1bcc1":{currencyCode:"HERC",displayName:"Hercules",denominations:[{name:"HERC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x2e91E3e54C5788e9FdD6A181497FDcEa1De1bcc1"}},cdb7ecfd3403eef3882c65b761ef9b5054890a47:{currencyCode:"HUR",displayName:"Hurify",denominations:[{name:"HUR",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xCDB7eCFd3403Eef3882c65B761ef9B5054890a47"}},"875773784af8135ea0ef43b5a374aad105c5d39e":{currencyCode:"IDLE",displayName:"Idle Finance",denominations:[{name:"IDLE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x875773784Af8135eA0ef43b5a374AaD105c5D39e"}},f8e386eda857484f5a12e4b5daa9984e06e73705:{currencyCode:"IND",displayName:"Indorse",denominations:[{name:"IND",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xf8e386EDa857484f5a12e4B5DAa9984E06E73705"}},"0954906da0bf32d5479e25f46056d22f08464cab":{currencyCode:"INDEX",displayName:"INDEX COOP",denominations:[{name:"INDEX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x0954906da0Bf32d5479e25f46056d22f08464cab"}},"818fc6c2ec5986bc6e2cbf00939d90556ab12ce5":{currencyCode:"KIN",displayName:"Kin",denominations:[{name:"KIN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x818Fc6C2Ec5986bc6E2CBf00939d90556aB12ce5"}},dd974d5c2e2928dea5f71b9825b8b646686bd200:{currencyCode:"KNCV1",displayName:"Kyber Network",denominations:[{name:"KNCV1",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xdd974D5C2e2928deA5F71b9825b8b646686BD200"}},defa4e8a7bcba345f687a2f1456f5edd9ce97202:{currencyCode:"KNC",displayName:"Kyber Network",denominations:[{name:"KNC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xdeFA4e8a7bcBA345F687a2f1456F5Edd9CE97202"}},"514910771af9ca656af840dff83e8264ecf986ca":{currencyCode:"LINK",displayName:"Chainlink",denominations:[{name:"LINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x514910771af9ca656af840dff83e8264ecf986ca"}},"0f5d2fb29fb7d3cfee444a200298f468908cc942":{currencyCode:"MANA",displayName:"Decentraland",denominations:[{name:"MANA",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x0F5D2fB29fb7d3CFeE444a200298f468908cC942"}},"7d1afa7b718fb893db30a3abc0cfc608aacfebb0":{currencyCode:"MATIC",displayName:"Polygon",denominations:[{name:"MATIC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"}},a3d58c4e56fedcae3a7c43a725aee9a71f0ece4e:{currencyCode:"MET",displayName:"Metronome",denominations:[{name:"MET",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xa3d58c4e56fedcae3a7c43a725aee9a71f0ece4e"}},"9f8f72aa9304c8b593d555f12ef6589cc3a579a2":{currencyCode:"MKR",displayName:"Maker",denominations:[{name:"MKR",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2"}},b62132e35a6c13ee1ee0f84dc5d40bad8d815206:{currencyCode:"NEXO",displayName:"Nexo",denominations:[{name:"NEXO",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb62132e35a6c13ee1ee0f84dc5d40bad8d815206"}},"1776e1f26f98b1a5df9cd347953a26dd3cb46671":{currencyCode:"NMR",displayName:"Numeraire",denominations:[{name:"NMR",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671"}},e9a95d175a5f4c9369f3b74222402eb1b837693b:{currencyCode:"NOW",displayName:"NOW Token",denominations:[{name:"NOW",multiplier:"100000000"}],networkLocation:{contractAddress:"0xe9a95d175a5f4c9369f3b74222402eb1b837693b"}},d7c49cee7e9188cca6ad8ff264c1da2e69d4cf3b:{currencyCode:"NXM",displayName:"Nexus Mutual",denominations:[{name:"NXM",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd7c49cee7e9188cca6ad8ff264c1da2e69d4cf3b"}},"967da4048cd07ab37855c090aaf366e4ce1b9f48":{currencyCode:"OCEAN",displayName:"OCEAN",denominations:[{name:"OCEAN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x967da4048cD07aB37855c090aAF366e4ce1b9F48"}},"8207c1ffc5b6804f6024322ccf34f29c3541ae26":{currencyCode:"OGN",displayName:"Origin",denominations:[{name:"OGN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8207c1ffc5b6804f6024322ccf34f29c3541ae26"}},d26114cd6ee289accf82350c8d8487fedb8a0c07:{currencyCode:"OMG",displayName:"OmiseGO",denominations:[{name:"OMG",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd26114cd6EE289AccF82350c8d8487fedB8A0C07"}},"4575f41308ec1483f3d399aa9a2826d74da13deb":{currencyCode:"OXT",displayName:"Orchid",denominations:[{name:"OXT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4575f41308EC1483f3d399aa9a2826d74Da13Deb"}},"45804880de22913dafe09f4980848ece6ecbaf78":{currencyCode:"PAXG",displayName:"Paxos Gold",denominations:[{name:"PAXG",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x45804880De22913dAFE09f4980848ECE6EcbAf78"}},"6982508145454ce325ddbe47a25d4ec3d2311933":{currencyCode:"PEPE",displayName:"Pepe",denominations:[{name:"PEPE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6982508145454Ce325dDbE47a25d4ec3d2311933"}},"429881672b9ae42b8eba0e26cd9c73711b891ca5":{currencyCode:"PICKLE",displayName:"PickleToken",denominations:[{name:"PICKLE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5"}},"9992ec3cf6a55b00978cddf2b27bc6882d88d1ec":{currencyCode:"POLY",displayName:"Polymath Network",denominations:[{name:"POLY",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x9992eC3cF6A55b00978cdDF2b27BC6882d88D1eC"}},"408e41876cccdc0f92210600ef50372656052a38":{currencyCode:"REN",displayName:"Ren",denominations:[{name:"REN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x408e41876cccdc0f92210600ef50372656052a38"}},"459086f2376525bdceba5bdda135e4e9d3fef5bf":{currencyCode:"RENBCH",displayName:"Ren BCH",denominations:[{name:"RENBCH",multiplier:"100000000"}],networkLocation:{contractAddress:"0x459086f2376525bdceba5bdda135e4e9d3fef5bf"}},eb4c2781e4eba804ce9a9803c67d0893436bb27d:{currencyCode:"RENBTC",displayName:"Ren BTC",denominations:[{name:"RENBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0xeb4c2781e4eba804ce9a9803c67d0893436bb27d"}},"1c5db575e2ff833e46a2e9864c22f4b22e0b37c2":{currencyCode:"RENZEC",displayName:"Ren ZEC",denominations:[{name:"RENZEC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x1c5db575e2ff833e46a2e9864c22f4b22e0b37c2"}},"1985365e9f78359a9b6ad760e32412f4a445e862":{currencyCode:"REP",displayName:"Augur",denominations:[{name:"REP",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x1985365e9f78359a9B6AD760e32412f4a445E862"}},"221657776846890989a759ba2973e427dff5c9bb":{currencyCode:"REPV2",displayName:"Augur v2",denominations:[{name:"REPV2",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x221657776846890989a759BA2973e427DfF5C9bB"}},fa5047c9c78b8877af97bdcb85db743fd7313d4a:{currencyCode:"ROOK",displayName:"Keeper DAO",denominations:[{name:"ROOK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xfA5047c9c78B8877af97BDcb85Db743fD7313d4a"}},"89d24a6b4ccb1b6faa2625fe562bdd9a23260359":{currencyCode:"SAI",displayName:"Sai Stablecoin",denominations:[{name:"SAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359"}},"4156d3342d5c385a87d264f90653733592000581":{currencyCode:"SALT",displayName:"SALT",denominations:[{name:"SALT",multiplier:"100000000"}],networkLocation:{contractAddress:"0x4156D3342D5c385a87D264F90653733592000581"}},fe18be6b3bd88a2d2a7f928d00292e7a9963cfc6:{currencyCode:"SBTC",displayName:"Synthetix BTC",denominations:[{name:"SBTC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6"}},c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f:{currencyCode:"SNX",displayName:"Synthetix Network",denominations:[{name:"SNX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f"}},b64ef51c888972c908cfacf59b47c1afbc0ab8ac:{currencyCode:"STORJ",displayName:"Storj",denominations:[{name:"STORJ",multiplier:"100000000"}],networkLocation:{contractAddress:"0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC"}},"57ab1ec28d129707052df4df418d58a2d46d5f51":{currencyCode:"SUSD",displayName:"Synthetix USD",denominations:[{name:"SUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x57Ab1ec28D129707052df4dF418D58a2D46d5f51"}},"6b3595068778dd592e39a122f4f5a5cf09c90fe2":{currencyCode:"SUSHI",displayName:"Sushi Token",denominations:[{name:"SUSHI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6b3595068778dd592e39a122f4f5a5cf09c90fe2"}},"8daebade922df735c38c80c7ebd708af50815faa":{currencyCode:"TBTC",displayName:"tBTC",denominations:[{name:"TBTC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa"}},"0000000000085d4780b73119b644ae5ecd22b376":{currencyCode:"TUSD",displayName:"TrueUSD",denominations:[{name:"TUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x0000000000085d4780B73119b644AE5ecd22b376"}},"04fa0d235c4abf4bcf4787af4cf447de572ef828":{currencyCode:"UMA",displayName:"UMA",denominations:[{name:"UMA",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828"}},"1f9840a85d5af5bf1d1762f925bdaddc4201f984":{currencyCode:"UNI",displayName:"Uniswap",denominations:[{name:"UNI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}},a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}},"8e870d67f660d95d5be530380d0ec0bd388289e1":{currencyCode:"USDP",displayName:"Pax Dollar",denominations:[{name:"USDP",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8e870d67f660d95d5be530380d0ec0bd388289e1"}},a4bdb11dc0a2bec88d24a3aa1e6bb17201112ebe:{currencyCode:"USDS",displayName:"StableUSD",denominations:[{name:"USDS",multiplier:"1000000"}],networkLocation:{contractAddress:"0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe"}},dac17f958d2ee523a2206206994597c13d831ec7:{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0xdac17f958d2ee523a2206206994597c13d831ec7"}},"2260fac5e5542a773aa44fbcfedf7c193bc2c599":{currencyCode:"WBTC",displayName:"Wrapped Bitcoin",denominations:[{name:"WBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:{currencyCode:"WETH",displayName:"Wrapped ETH",denominations:[{name:"WETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}},bea269038eb75bdab47a9c04d0f5c572d94b93d5:{currencyCode:"WFIO",displayName:"Wrapped FIO",denominations:[{name:"WFIO",multiplier:"1000000000"}],networkLocation:{contractAddress:"0xbEA269038Eb75BdAB47a9C04D0F5c572d94b93D5"}},"667088b212ce3d06a1b553a7221e1fd19000d9af":{currencyCode:"WINGS",displayName:"Wings",denominations:[{name:"WINGS",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x667088b212ce3d06a1b553a7221E1fD19000d9aF"}},b4bebd34f6daafd808f73de0d10235a92fbb6c3d:{currencyCode:"YETI",displayName:"Yearn Ecosystem Token Index",denominations:[{name:"YETI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb4bebd34f6daafd808f73de0d10235a92fbb6c3d"}},"0bc529c00c6401aef6d220be8c6ea1667f6ad93e":{currencyCode:"YFI",displayName:"Yearn Finance",denominations:[{name:"YFI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e"}},e41d2489571d322189246dafa5ebde1f4699f498:{currencyCode:"ZRX",displayName:"0x",denominations:[{name:"ZRX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xE41d2489571d322189246DaFA5ebDe1F4699F498"}},ff20817765cb7f73d4bde2e66e067e58d11095c2:{currencyCode:"AMP",displayName:"Amp",denominations:[{name:"AMP",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xff20817765cb7f73d4bde2e66e067e58d11095c2"}},"4d224452801aced8b2f0aebe155379bb5d594381":{currencyCode:"APE",displayName:"ApeCoin",denominations:[{name:"APE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4d224452801aced8b2f0aebe155379bb5d594381"}},a0b73e1ff0b80914ab6fe0444e65848c4c34450b:{currencyCode:"CRO",displayName:"Cronos Coin",denominations:[{name:"CRO",multiplier:"100000000"}],networkLocation:{contractAddress:"0xa0b73e1ff0b80914ab6fe0444e65848c4c34450b"}},f629cbd94d3791c9250152bd8dfbdf380e2a3b9c:{currencyCode:"ENJ",displayName:"EnjinCoin",denominations:[{name:"ENJ",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c"}},d1d2eb1b1e90b638588728b4130137d262c87cae:{currencyCode:"GALA",displayName:"Gala",denominations:[{name:"GALA",multiplier:"100000000"}],networkLocation:{contractAddress:"0xd1d2Eb1B1e90B638588728b4130137D262C87cae"}},"15d4c048f83bd7e37d49ea4c83a07267ec4203da":{currencyCode:"GALAV1",displayName:"Gala (old)",denominations:[{name:"GALAV1",multiplier:"100000000"}],networkLocation:{contractAddress:"0x15D4c048F83bd7e37d49eA4C83a07267Ec4203dA"}},d567b5f02b9073ad3a982a099a23bf019ff11d1c:{currencyCode:"GAME",displayName:"Game Coin",denominations:[{name:"GAME",multiplier:"100000"}],networkLocation:{contractAddress:"0xd567b5f02b9073ad3a982a099a23bf019ff11d1c"}},bbbbca6a901c926f240b89eacb641d8aec7aeafd:{currencyCode:"LRC",displayName:"LoopringCoin V2",denominations:[{name:"LRC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xbbbbca6a901c926f240b89eacb641d8aec7aeafd"}},"3a4f40631a4f906c2bad353ed06de7a5d3fcb430":{currencyCode:"PLA",displayName:"PlayDapp Token",denominations:[{name:"PLA",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x3a4f40631a4f906c2BaD353Ed06De7A5D3fCb430"}},"6c3ea9036406852006290770bedfcaba0e23a0e8":{currencyCode:"PYUSD",displayName:"PayPal USD",denominations:[{name:"PYUSD",multiplier:"1000000"}],networkLocation:{contractAddress:"0x6c3ea9036406852006290770bedfcaba0e23a0e8"}},"4a220e6096b25eadb88358cb44068a3248254675":{currencyCode:"QNT",displayName:"Quant",denominations:[{name:"QNT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4a220e6096b25eadb88358cb44068a3248254675"}},"0763fdccf1ae541a5961815c0872a8c5bc6de4d7":{currencyCode:"SUKU",displayName:"SUKU",denominations:[{name:"SUKU",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x0763fdCCF1aE541A5961815C0872A8c5Bc6DE4d7"}},"95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce":{currencyCode:"SHIB",displayName:"SHIBA INU",denominations:[{name:"SHIB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce"}},"446c9033e7516d820cc9a2ce2d0b7328b579406f":{currencyCode:"SOLVE",displayName:"Healthcare Administration Token",denominations:[{name:"SOLVE",multiplier:"100000000"}],networkLocation:{contractAddress:"0x446c9033e7516d820cc9a2ce2d0b7328b579406f"}},"74232704659ef37c08995e386a2e26cc27a8d7b1":{currencyCode:"STRK",displayName:"Strike Token",denominations:[{name:"STRK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x74232704659ef37c08995e386a2e26cc27a8d7b1"}},c944e90c64b2c07662a292be6244bdf05cda44a7:{currencyCode:"GRT",displayName:"Graph Token",denominations:[{name:"GRT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc944e90c64b2c07662a292be6244bdf05cda44a7"}},"3845badade8e6dff049820680d1f14bd3903a5d0":{currencyCode:"SAND",displayName:"SAND",denominations:[{name:"SAND",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x3845badAde8e6dFF049820680d1F14bD3903a5d0"}}},te={networkAdapterConfigs:[{type:"rpc",servers:["https://eth-mainnet.alchemyapi.io/v2/-{{alchemyApiKey}}","https://mainnet.infura.io/v3/{{infuraProjectId}}","https://rpc.ankr.com/eth","https://eth-mainnet.gateway.pokt.network/v1/lb/{{poktPortalApiKey}}","https://cloudflare-eth.com"],ethBalCheckerContract:"0xb1f8e55c7f64d203c1400b9d8555d050f94adf39"},{type:"amberdata-rpc",servers:["https://rpc.web3api.io"]},{type:"evmscan",servers:["https://api.etherscan.io"]},{type:"blockbook",servers:["https://ethbook.guarda.co","https://eth1.trezor.io","https://eth2.trezor.io"]},{type:"blockchair",servers:["https://api.blockchair.com"]},{type:"blockcypher",servers:["https://api.blockcypher.com"]}],uriNetworks:["ethereum","ether"],ercTokenStandard:"ERC20",chainParams:{chainId:1,name:"Ethereum Mainnet"},supportsEIP1559:!0,hdPathCoinType:60,alethioCurrencies:{native:"ether",token:"token"},amberDataBlockchainId:"1c9c969065fcd1cf",pluginMnemonicKeyName:"ethereumMnemonic",pluginRegularKeyName:"ethereumKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:{lowFee:"1",standardFeeLow:"1.25",standardFeeHigh:"1.5",highFee:"1.75"},gasLimit:{regularTransaction:"21000",tokenTransaction:"300000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:"2000000000"},"1983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:{lowFee:"1000000002",standardFeeLow:"40000000002",standardFeeHigh:"300000000002",standardFeeLowAmount:"200000000000000000",standardFeeHighAmount:"20000000000000000000",highFee:"40000000002"},minPriorityFee:void 0},"2983987abc9837fbabc0982347ad828":{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21002",tokenTransaction:"37124"},gasPrice:void 0,minPriorityFee:void 0}}},re={customFeeSettings:["gasLimit","gasPrice"],otherSettings:Z({},te)},fe={canReplaceByFee:!0,currencyCode:"ETH",displayName:"Ethereum",memoOptions:T.u,pluginId:"ethereum",walletType:"wallet:ethereum",addressExplorer:"https://etherscan.io/address/%s",transactionExplorer:"https://etherscan.io/tx/%s",denominations:[{name:"ETH",multiplier:"1000000000000000000",symbol:"\u039E"},{name:"mETH",multiplier:"1000000000000000",symbol:"m\u039E"}],defaultSettings:re,memoType:"hex",metaTokens:(0,P.ZS)(k)},F=(0,n.P)({builtinTokens:k,currencyInfo:fe,networkInfo:te,otherMethodNames:b.tI,getInnerPlugin(){return N(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});p.env.npm_lifecycle_event==="test"&&(S.exports=D(Z({},S.exports),{currencyInfo:fe}))},61737:function(S,g,t){"use strict";t.d(g,{Q:function(){return fe}});var n=t(24224),P=t(20918),b=t(96283);S=t.hmd(S);var T=t(34155),p=Object.defineProperty,M=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,q=(F,x,L)=>x in F?p(F,x,{enumerable:!0,configurable:!0,writable:!0,value:L}):F[x]=L,de=(F,x)=>{for(var L in x||(x={}))K.call(x,L)&&q(F,L,x[L]);if(U)for(var L of U(x))$.call(x,L)&&q(F,L,x[L]);return F},Z=(F,x)=>M(F,Y(x)),D=(F,x,L)=>new Promise((V,ie)=>{var le=E=>{try{w(L.next(E))}catch(d){ie(d)}},se=E=>{try{w(L.throw(E))}catch(d){ie(d)}},w=E=>E.done?V(E.value):Promise.resolve(E.value).then(le,se);w((L=L.apply(F,x)).next())});const N={"511d35c52a3c244e7b8bd92c0c297755fbd89212":{currencyCode:"AVAX",displayName:"Avalanche",denominations:[{name:"AVAX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x511d35c52a3c244e7b8bd92c0c297755fbd89212"}},"1b6382dbdea11d97f24495c9a90b7c88469134a4":{currencyCode:"AXLUSDC",displayName:"Axelar Wrapped USDC",denominations:[{name:"AXLUSDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0x1B6382DBDEa11d97f24495C9A90b7c88469134a4"}},d226392c23fb3476274ed6759d4a478db3197d82:{currencyCode:"AXLUSDT",displayName:"Axelar Wrapped USDT",denominations:[{name:"AXLUSDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0xd226392C23fb3476274ED6759D4a478db3197d82"}},fe7eda5f2c56160d406869a8aa4b2f365d544c7b:{currencyCode:"AXLETH",displayName:"Axelar Wrapped ETH",denominations:[{name:"AXLETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xfe7eDa5F2c56160d406869A8aA4B2F365d544C7B"}},"448d59b4302ab5d2dadf9611bed9457491926c8e":{currencyCode:"AXLWBTC",displayName:"Axelar Wrapped WBTC",denominations:[{name:"AXLWBTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x448d59B4302aB5d2dadf9611bED9457491926c8e"}},d67de0e0a0fd7b15dc8348bb9be742f3c5850454:{currencyCode:"BNB",displayName:"Binance",denominations:[{name:"BNB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xd67de0e0a0fd7b15dc8348bb9be742f3c5850454"}},"841fad6eae12c286d1fd18d1d525dffa75c7effe":{currencyCode:"BOO",displayName:"SpookyToken",denominations:[{name:"BOO",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x841fad6eae12c286d1fd18d1d525dffa75c7effe"}},"321162cd933e2be498cd2267a90534a804051b11":{currencyCode:"BTC",displayName:"Bitcoin",denominations:[{name:"BTC",multiplier:"100000000"}],networkLocation:{contractAddress:"0x321162cd933e2be498cd2267a90534a804051b11"}},"1e4f97b9f9f913c46f1632781732927b9019c68b":{currencyCode:"CRV",displayName:"Curve",denominations:[{name:"CRV",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x1e4f97b9f9f913c46f1632781732927b9019c68b"}},"8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e":{currencyCode:"DAI",displayName:"DAI Stablecoin",denominations:[{name:"DAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e"}},"74b23882a30290451a17c44f4f05243b6b58c76d":{currencyCode:"ETH",displayName:"Ethereum",denominations:[{name:"ETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x74b23882a30290451a17c44f4f05243b6b58c76d"}},e1146b9ac456fcbb60644c36fd3f868a9072fc6e:{currencyCode:"FBTC",displayName:"Frapped Bitcoin",denominations:[{name:"FBTC",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xe1146b9ac456fcbb60644c36fd3f868a9072fc6e"}},"658b0c7613e890ee50b8c4bc6a3f41ef411208ad":{currencyCode:"FETH",displayName:"Frapped Ethereum",denominations:[{name:"FETH",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x658b0c7613e890ee50b8c4bc6a3f41ef411208ad"}},ad84341756bf337f5a0164515b1f6f993d194e1f:{currencyCode:"FUSD",displayName:"Fantom USD",denominations:[{name:"FUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xad84341756bf337f5a0164515b1f6f993d194e1f"}},"049d68029688eabf473097a2fc38ef61633a3c7a":{currencyCode:"FUSDT",displayName:"Frapped Tether",denominations:[{name:"FUSDT",multiplier:"1000000"}],networkLocation:{contractAddress:"0x049d68029688eabf473097a2fc38ef61633a3c7a"}},"5f0456f728e2d59028b4f5b8ad8c604100724c6a":{currencyCode:"L3USD",displayName:"L3USD",denominations:[{name:"L3USD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x5f0456f728e2d59028b4f5b8ad8c604100724c6a"}},bf60e7414ef09026733c1e7de72e7393888c64da:{currencyCode:"LIF3",displayName:"LIF3",denominations:[{name:"LIF3",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xbf60e7414ef09026733c1e7de72e7393888c64da"}},b3654dc3d10ea7645f8319668e8f54d2574fbdc8:{currencyCode:"LINK",displayName:"Chainlink",denominations:[{name:"LINK",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xb3654dc3d10ea7645f8319668e8f54d2574fbdc8"}},cbe0ca46399af916784cadf5bcc3aed2052d6c45:{currencyCode:"LSHARE",displayName:"LIF3 LSHARE",denominations:[{name:"LSHARE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xcbe0ca46399af916784cadf5bcc3aed2052d6c45"}},fb98b335551a418cd0737375a2ea0ded62ea213b:{currencyCode:"MAI",displayName:"miMATIC",denominations:[{name:"MAI",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xfB98B335551a418cD0737375a2ea0ded62Ea213b"}},"82f0b8b456c1a451378467398982d4834b6829c1":{currencyCode:"MIM",displayName:"Magic Internet Money",denominations:[{name:"MIM",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x82f0b8b456c1a451378467398982d4834b6829c1"}},"66eed5ff1701e6ed8470dc391f05e27b1d0657eb":{currencyCode:"MPX",displayName:"MPX",denominations:[{name:"MPX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x66eEd5FF1701E6ed8470DC391F05e27B1d0657eb"}},"24248cd1747348bdc971a5395f4b3cd7fee94ea0":{currencyCode:"TBOND",displayName:"Tomb Bonds",denominations:[{name:"TBOND",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x24248CD1747348bDC971a5395f4b3cd7feE94ea0"}},"6c021ae822bea943b2e66552bde1d2696a53fbb7":{currencyCode:"TOMB",displayName:"Tomb",denominations:[{name:"TOMB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x6c021Ae822BEa943b2E66552bDe1D2696a53fbB7"}},c60d7067dfbc6f2caf30523a064f416a5af52963:{currencyCode:"TREEB",displayName:"Retreeb",denominations:[{name:"TREEB",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xc60d7067dfbc6f2caf30523a064f416a5af52963"}},"4cdf39285d7ca8eb3f090fda0c069ba5f4145b37":{currencyCode:"TSHARE",displayName:"Tomb Shares",denominations:[{name:"TSHARE",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x4cdf39285d7ca8eb3f090fda0c069ba5f4145b37"}},"04068da6c83afcfa0e13ba15a6696662335d5b75":{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"0x04068da6c83afcfa0e13ba15a6696662335d5b75"}},"21be370d5312f44cb42ce377bc9b8a0cef1a4c83":{currencyCode:"WFTM",displayName:"Wrapped Fantom",denominations:[{name:"WFTM",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}},a48d959ae2e88f1daa7d5f611e01908106de7598:{currencyCode:"xBOO",displayName:"Boo MirrorWorld",denominations:[{name:"xBOO",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"0xa48d959AE2E88f1dAA7D5F611E01908106dE7598"}},"09e145a1d53c0045f41aeef25d8ff982ae74dd56":{currencyCode:"ZOO",displayName:"Zookeeper",denominations:[{name:"ZOO",multiplier:"1"}],networkLocation:{contractAddress:"0x09e145a1d53c0045f41aeef25d8ff982ae74dd56"}}},ee={networkAdapterConfigs:[{type:"rpc",servers:["https://fantom-mainnet.gateway.pokt.network/v1/lb/{{poktPortalApiKey}}","https://polished-empty-cloud.fantom.quiknode.pro/{{quiknodeApiKey}}/","https://rpc.ankr.com/fantom","https://rpc.ftm.tools"],ethBalCheckerContract:"0x07f697424abe762bb808c109860c04ea488ff92b"},{type:"evmscan",servers:["https://api.ftmscan.com"]}],uriNetworks:["fantom"],ercTokenStandard:"ERC20",chainParams:{chainId:250,name:"Fantom Opera"},hdPathCoinType:60,feeUpdateFrequencyMs:6e4,supportsEIP1559:!0,alethioCurrencies:null,amberDataBlockchainId:"",pluginMnemonicKeyName:"fantomMnemonic",pluginRegularKeyName:"fantomKey",ethGasStationUrl:null,defaultNetworkFees:{default:{baseFee:void 0,baseFeeMultiplier:void 0,gasLimit:{regularTransaction:"21000",tokenTransaction:"200000",minGasLimit:"21000"},gasPrice:{lowFee:"1000000001",standardFeeLow:"40000000001",standardFeeHigh:"300000000001",standardFeeLowAmount:"100000000000000000",standardFeeHighAmount:"10000000000000000000",highFee:"40000000001",minGasPrice:"1000000000"},minPriorityFee:void 0}}},te={customFeeSettings:["gasLimit","gasPrice"],otherSettings:de({},ee)},re={canReplaceByFee:!0,currencyCode:"FTM",displayName:"Fantom",memoOptions:b.u,pluginId:"fantom",walletType:"wallet:fantom",addressExplorer:"https://ftmscan.com/address/%s",transactionExplorer:"https://ftmscan.com/tx/%s",denominations:[{name:"FTM",multiplier:"1000000000000000000",symbol:"F"}],defaultSettings:te,memoType:"hex",metaTokens:(0,P.ZS)(N)},fe=(0,n.P)({builtinTokens:N,currencyInfo:re,networkInfo:ee,getInnerPlugin(){return D(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(9669),t.e(4431),t.e(6291),t.e(780),t.e(7221),t.e(8367),t.e(1964),t.e(1094),t.e(7202),t.e(533),t.e(2784),t.e(9612),t.e(1513)]).then(t.bind(t,44535))})}});T.env.npm_lifecycle_event==="test"&&(S.exports=Z(de({},S.exports),{currencyInfo:re,networkInfo:ee}))},5607:function(S,g,t){"use strict";t.d(g,{BB:function(){return $},BP:function(){return K},CL:function(){return fe},K1:function(){return Y},Mi:function(){return F},Nd:function(){return de},OT:function(){return q},VW:function(){return U},V_:function(){return k},WX:function(){return p},aO:function(){return M},d9:function(){return x},dm:function(){return Z},kE:function(){return L},n3:function(){return b},pg:function(){return T},qj:function(){return D}});var n=t(82448),P=t(62177);const b={buyAddress:"buy-address",getDomains:"get-domains",isDomainPublic:"is-domain-public"},T={getActions:"get_actions"},p=20,M={transferTokens:"transferTokens",addPublicAddress:"addPublicAddress",addPublicAddresses:"addPublicAddresses",removePublicAddresses:"removePublicAddresses",setFioDomainPublic:"setFioDomainVisibility",rejectFundsRequest:"rejectFundsRequest",cancelFundsRequest:"cancelFundsRequest",requestFunds:"requestFunds",recordObtData:"recordObtData",registerFioAddress:"registerFioAddress",registerFioDomain:"registerFioDomain",renewFioDomain:"renewFioDomain",transferFioAddress:"transferFioAddress",transferFioDomain:"transferFioDomain",pushTransaction:"pushTransaction",addBundledTransactions:"addBundledTransactions",stakeFioTokens:"stakeFioTokens",unStakeFioTokens:"unStakeFioTokens"},Y={[M.recordObtData]:!0,[M.requestFunds]:!0,[M.rejectFundsRequest]:!0,[M.cancelFundsRequest]:!0,[M.registerFioAddress]:!0,[M.registerFioDomain]:!0,[M.renewFioDomain]:!0,[M.transferTokens]:!0,[M.addPublicAddresses]:!0,[M.removePublicAddresses]:!0,[M.transferFioAddress]:!0,[M.transferFioDomain]:!0,[M.addBundledTransactions]:!0,[M.setFioDomainPublic]:!0,[M.stakeFioTokens]:!0,[M.unStakeFioTokens]:!0},U={[M.requestFunds]:"newFundsRequest",[M.registerFioAddress]:"registerFioAddress",[M.registerFioDomain]:"registerFioDomain",[M.renewFioDomain]:"renewFioDomain",[M.addPublicAddresses]:"addPubAddress",[M.removePublicAddresses]:"removePubAddress",[M.setFioDomainPublic]:"setFioDomainPublic",[M.rejectFundsRequest]:"rejectFundsRequest",[M.cancelFundsRequest]:"cancelFundsRequest",[M.recordObtData]:"recordObtData",[M.transferTokens]:"transferTokens",[M.pushTransaction]:"pushTransaction",[M.transferFioAddress]:"transferFioAddress",[M.transferFioDomain]:"transferFioDomain",[M.stakeFioTokens]:"pushTransaction",[M.unStakeFioTokens]:"pushTransaction",addBundledTransactions:"addBundledTransactions"},K={[M.transferTokens]:"trnsfiopubky",[M.stakeFioTokens]:"stakefio",[M.unStakeFioTokens]:"unstakefio",transfer:"transfer"},$=100,q=450,de="Paying Staking Rewards",Z=1e3*60*60*24*7,D=1e3*60*60*24,N=(0,n.su)({fio_request_id:n.XC,payer_fio_address:n.XC,payee_fio_address:n.XC,payee_fio_public_key:n.XC,payer_fio_public_key:n.XC,amount:n.XC,token_code:n.XC,metadata:n.XC,time_stamp:n.XC,content:n.XC}),k=(0,n.su)({fio_request_id:n.mH,payer_fio_address:n.XC,payee_fio_address:n.XC,payer_fio_public_key:n.XC,payee_fio_public_key:n.XC,content:n.XC,time_stamp:n.XC,status:(0,n.Zz)((0,n.Wf)("cancelled","rejected","requested","sent_to_blockchain"))}),ee=(0,n.su)({name:n.XC,bundledTxs:(0,n.Zz)(n.mH)}),te=(0,n.su)({name:n.XC,expiration:n.XC,isPublic:n.jK}),re=(0,n.su)({stakedAmounts:(0,n._2)((0,n.su)({nativeAmount:n.XC,unlockDate:(0,n.Zz)(n.qF),otherParams:(0,n.Zz)(P.tM)}))}),fe=(0,n.su)({highestTxHeight:(0,n.Vk)(n.mH,0),fioAddresses:(0,n.Vk)((0,n._2)(ee),()=>[]),fioDomains:(0,n.Vk)((0,n._2)(te),()=>[]),fioRequests:(0,n.Vk)((0,n.su)({PENDING:(0,n._2)(N),SENT:(0,n._2)(N)}),()=>({SENT:[],PENDING:[]})),srps:(0,n.Vk)(n.mH,0),stakingRoe:(0,n.Vk)(n.XC,""),lockedBalances:(0,n.Vk)((0,n.su)({staked:n.XC,locked:n.XC}),{staked:"0",locked:"0"}),stakingStatus:(0,n.Vk)(re,()=>({stakedAmounts:[]}))}),F="No FIO names",x="Public key not found",L="Unexpected number of results found for main net locks"},24827:function(S,g,t){"use strict";t.d(g,{FK:function(){return P},OU:function(){return b},lI:function(){return n}});const n=[400,404],P={INVALID_FIO_ADDRESS:"INVALID_FIO_ADDRESS",ALREADY_REGISTERED:"ALREADY_REGISTERED",FIO_ADDRESS_IS_NOT_EXIST:"FIO_ADDRESS_IS_NOT_EXIST",FIO_DOMAIN_IS_NOT_EXIST:"FIO_DOMAIN_IS_NOT_EXIST",FIO_DOMAIN_IS_NOT_PUBLIC:"FIO_DOMAIN_IS_NOT_PUBLIC",IS_DOMAIN_PUBLIC_ERROR:"IS_DOMAIN_PUBLIC_ERROR",FIO_ADDRESS_IS_NOT_LINKED:"FIO_ADDRESS_IS_NOT_LINKED",SERVER_ERROR:"SERVER_ERROR",ALREADY_SENT_REGISTRATION_REQ_FOR_DOMAIN:"ALREADY_SENT_REGISTRATION_REQ_FOR_DOMAIN"};class b extends Error{constructor(p,M,Y,U){super(p),Error.captureStackTrace!=null&&Error.captureStackTrace(this,b),this.name="FioError",M!=null&&(this.errorCode=M),Y!=null&&(this.labelCode=Y),U!=null&&(this.json=U)}}},3559:function(S,g,t){"use strict";t.d(g,{$K:function(){return w},AJ:function(){return $},B3:function(){return M},Ej:function(){return Z},L2:function(){return q},NB:function(){return K},OR:function(){return N},PH:function(){return de},Pq:function(){return fe},RB:function(){return V},S_:function(){return F},UW:function(){return ie},Vd:function(){return te},XB:function(){return ee},Yd:function(){return re},_v:function(){return L},e1:function(){return le},h0:function(){return Y},iR:function(){return p},lZ:function(){return U},mO:function(){return k},oY:function(){return D},pq:function(){return T},sq:function(){return se}});var n=t(82448),P=t(62177),b=t(5607);const T=["getConnectedPublicAddress","isFioAddressValid","validateAccount","isDomainPublic","doesAccountExist","buyAddressRequest","getDomains","getStakeEstReturn"],p=(0,n.su)({name:n.XC,params:(0,n.su)(n.JC)}),M=(0,n.su)({action:n.XC,account:n.XC,data:(0,n.su)(n.JC)}),Y=(0,n.su)({compression:n.mH,packed_context_free_data:n.XC,packed_trx:n.XC,signatures:(0,n._2)(n.XC)}),U=(0,n.su)({fee:n.mH}),K=(0,n.su)({fioAddress:n.XC}),$=(0,n.su)({fioDomain:n.XC}),q=(0,n.su)({fioDomain:n.XC}),de=(0,n.su)({fioAddress:n.XC,publicAddresses:(0,n._2)((0,n.su)({token_code:n.XC,chain_code:n.XC,public_address:n.XC}))}),Z=(0,n.su)({fioAddress:n.XC,bundleSets:n.mH}),D=(0,n.su)({fioDomain:n.XC,isPublic:n.jK}),N=(0,n.su)({payerFioAddress:n.XC,fioRequestId:n.mH}),k=(0,n.su)({fioAddress:n.XC,fioRequestId:n.mH}),ee=(0,n.su)({payerFioAddress:n.XC,payeeFioAddress:n.XC,payerPublicAddress:n.XC,payeePublicAddress:n.XC,amount:n.XC,tokenCode:n.XC,chainCode:n.XC,obtId:n.XC,memo:n.XC,status:(0,n.Zz)((0,n.Wf)("cancelled","rejected","requested","sent_to_blockchain")),fioRequestId:(0,n.Zz)(n.mH)}),te=(0,n.su)({payerFioAddress:n.XC,payerFioPublicKey:n.XC,payeeFioAddress:n.XC,payeeTokenPublicAddress:n.XC,amount:n.XC,chainCode:n.XC,tokenCode:n.XC,memo:n.XC}),re=(0,n.su)({block_num:n.mH,block_time:n.XC,transaction_id:n.XC}).withRest,fe=(0,n.su)({message:n.XC}),F=(0,n.su)({requests:(0,n._2)(b.V_),more:n.mH}),x=(0,n.su)({payer_fio_address:n.XC,payee_fio_address:n.XC,payer_fio_public_key:n.XC,payee_fio_public_key:n.XC,content:n.XC,fio_request_id:n.mH,status:n.XC,time_stamp:n.XC}),L=(0,n.su)({obt_data_records:(0,n._2)(x),more:n.mH}),V=(0,P.jd)((0,n.su)({publicKey:n.XC})),ie=(0,n.su)({fioKey:n.XC}),le=E=>{const d=[];return E.fio_domains.forEach(e=>d.push(e.fio_domain)),E.fio_addresses.forEach(e=>d.push(e.fio_address)),d.sort((e,o)=>e<o?-1:1).join()},se=E=>{const d=[];return d.push(E.balance),d.push(E.available),d.push(E.staked),d.push(E.srps),d.push(E.roe),d.join()},w=E=>(0,n.Vk)((0,n.su)({data:(0,n.su)({json:(0,n.su)({message:(0,n.Wf)(E)})})}))},825:function(S,g,t){"use strict";t.d(g,{DP:function(){return M},LZ:function(){return K},NV:function(){return p},Vf:function(){return U},cG:function(){return de},nG:function(){return b},ni:function(){return T},qv:function(){return $},sd:function(){return Y},y_:function(){return q}});var n=t(82448),P=t(62177);const b=(0,n.su)({activationRequestId:(0,n.Vk)(n.XC),accountActivationQuoteAddress:(0,n.Vk)(n.XC),accountActivationQuoteAmount:(0,n.Vk)(n.XC),hederaAccount:(0,n.Vk)(n.XC),latestTimestamp:(0,n.Vk)(n.XC,"1535068800"),paymentSubmitted:(0,n.Vk)(n.jK)}),T=["getActivationSupportedCurrencies","getActivationCost","validateAccount"],p=(0,n.su)({hbar:n.XC}),M=(0,n.su)({accounts:(0,n._2)((0,n.su)({account:n.XC,key:(0,n.su)({key:n.XC})}))}),Y=(0,n.su)({balances:(0,n._2)((0,n.su)({account:n.XC,balance:n.mH}))}),U=(0,n.su)({transactions:(0,n._2)((0,n.su)({transaction_hash:n.XC,transaction_id:n.XC,valid_start_timestamp:n.XC,transfers:(0,n._2)((0,n.su)({account:n.XC,amount:n.mH})),memo_base64:n.XC,result:n.XC,name:n.XC,consensus_timestamp:n.XC,charged_tx_fee:n.mH}))}),K=(0,n.su)({amount:n.XC,address:n.XC,request_id:n.XC}),$=(0,n.su)({status:n.XC,account_id:(0,n.Zz)(n.XC)}),q=P.BQ,de=Z=>{const D=(0,n.su)({[`${Z}Mnemonic`]:(0,n.Zz)(n.XC),[`${Z}Key`]:n.XC});return(0,n.W1)(N=>{const k=D(N);return{mnemonic:k[`${Z}Mnemonic`],privateKey:k[`${Z}Key`]}},N=>({[`${Z}Mnemonic`]:N.mnemonic,[`${Z}Key`]:N.privateKey}))}},49349:function(S,g,t){"use strict";t.d(g,{H$:function(){return U},u7:function(){return T},w7:function(){return b}});var n=t(24224),P=(K,$,q)=>new Promise((de,Z)=>{var D=ee=>{try{k(q.next(ee))}catch(te){Z(te)}},N=ee=>{try{k(q.throw(ee))}catch(te){Z(te)}},k=ee=>ee.done?de(ee.value):Promise.resolve(ee.value).then(D,N);k((q=q.apply(K,$)).next())});const b=18,T=3500,p={rippledServers:["wss://s2.ripple.com","wss://xrplcluster.com"],defaultFee:"10",baseReserve:"10000000",baseReservePerToken:"2000000"},M={currencyCode:"XRP",displayName:"XRP",pluginId:"ripple",walletType:"wallet:ripple",addressExplorer:"https://xrpscan.com/account/%s",transactionExplorer:"https://xrpscan.com/tx/%s",denominations:[{name:"XRP",multiplier:"1000000",symbol:"X"}],memoOptions:[{type:"number",memoName:"destination tag",maxValue:"4294967295"},{type:"text",memoName:"memo",maxLength:990}],multipleMemos:!0,defaultSettings:{},memoMaxLength:10,memoMaxValue:"4294967295",memoType:"number",metaTokens:[]},Y={"USD-rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq":{currencyCode:"USD.gh",displayName:"Gatehub USD",denominations:[{name:"USD.gh",multiplier:"1000000000000000000"}],networkLocation:{currency:"USD",issuer:"rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"}},"EUR-rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq":{currencyCode:"EUR.gh",displayName:"Gatehub EUR",denominations:[{name:"EUR.gh",multiplier:"1000000000000000000"}],networkLocation:{currency:"EUR",issuer:"rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"}},"USD-rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B":{currencyCode:"USD.bs",displayName:"Bitstamp USD",denominations:[{name:"USD.bs",multiplier:"1000000000000000000"}],networkLocation:{currency:"USD",issuer:"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"}},"EUR-rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B":{currencyCode:"EUR.bs",displayName:"Bitstamp EUR",denominations:[{name:"EUR.bs",multiplier:"1000000000000000000"}],networkLocation:{currency:"EUR",issuer:"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"}},"USD-rEn9eRkX25wfGPLysUMAvZ84jAzFNpT5fL":{currencyCode:"USD.st",displayName:"Stably USD",denominations:[{name:"USD.st",multiplier:"1000000000000000000"}],networkLocation:{currency:"USD",issuer:"rEn9eRkX25wfGPLysUMAvZ84jAzFNpT5fL"}}},U=(0,n.P)({builtinTokens:Y,currencyInfo:M,networkInfo:p,getInnerPlugin(){return P(this,null,function*(){return yield Promise.all([t.e(7428),t.e(246),t.e(2153),t.e(6266),t.e(5835),t.e(9539),t.e(4431),t.e(6291),t.e(3978),t.e(7786),t.e(5836),t.e(8726),t.e(9612),t.e(8603)]).then(t.bind(t,60814))})}})},34155:function(S){var g=S.exports={},t,n;function P(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=P}catch{t=P}try{typeof clearTimeout=="function"?n=clearTimeout:n=b}catch{n=b}})();function T(D){if(t===setTimeout)return setTimeout(D,0);if((t===P||!t)&&setTimeout)return t=setTimeout,setTimeout(D,0);try{return t(D,0)}catch{try{return t.call(null,D,0)}catch{return t.call(this,D,0)}}}function p(D){if(n===clearTimeout)return clearTimeout(D);if((n===b||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(D);try{return n(D)}catch{try{return n.call(null,D)}catch{return n.call(this,D)}}}var M=[],Y=!1,U,K=-1;function $(){!Y||!U||(Y=!1,U.length?M=U.concat(M):K=-1,M.length&&q())}function q(){if(!Y){var D=T($);Y=!0;for(var N=M.length;N;){for(U=M,M=[];++K<N;)U&&U[K].run();K=-1,N=M.length}U=null,Y=!1,p(D)}}g.nextTick=function(D){var N=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)N[k-1]=arguments[k];M.push(new de(D,N)),M.length===1&&!Y&&T(q)};function de(D,N){this.fun=D,this.array=N}de.prototype.run=function(){this.fun.apply(null,this.array)},g.title="browser",g.browser=!0,g.env={},g.argv=[],g.version="",g.versions={};function Z(){}g.on=Z,g.addListener=Z,g.once=Z,g.off=Z,g.removeListener=Z,g.removeAllListeners=Z,g.emit=Z,g.prependListener=Z,g.prependOnceListener=Z,g.listeners=function(D){return[]},g.binding=function(D){throw new Error("process.binding is not supported")},g.cwd=function(){return"/"},g.chdir=function(D){throw new Error("process.chdir is not supported")},g.umask=function(){return 0}},35666:function(S){var g=function(t){"use strict";var n=Object.prototype,P=n.hasOwnProperty,b=Object.defineProperty||function(r,i,s){r[i]=s.value},T,p=typeof Symbol=="function"?Symbol:{},M=p.iterator||"@@iterator",Y=p.asyncIterator||"@@asyncIterator",U=p.toStringTag||"@@toStringTag";function K(r,i,s){return Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}),r[i]}try{K({},"")}catch{K=function(i,s,u){return i[s]=u}}function $(r,i,s,u){var h=i&&i.prototype instanceof ee?i:ee,c=Object.create(h.prototype),a=new d(u||[]);return b(c,"_invoke",{value:le(r,s,a)}),c}t.wrap=$;function q(r,i,s){try{return{type:"normal",arg:r.call(i,s)}}catch(u){return{type:"throw",arg:u}}}var de="suspendedStart",Z="suspendedYield",D="executing",N="completed",k={};function ee(){}function te(){}function re(){}var fe={};K(fe,M,function(){return this});var F=Object.getPrototypeOf,x=F&&F(F(e([])));x&&x!==n&&P.call(x,M)&&(fe=x);var L=re.prototype=ee.prototype=Object.create(fe);te.prototype=re,b(L,"constructor",{value:re,configurable:!0}),b(re,"constructor",{value:te,configurable:!0}),te.displayName=K(re,U,"GeneratorFunction");function V(r){["next","throw","return"].forEach(function(i){K(r,i,function(s){return this._invoke(i,s)})})}t.isGeneratorFunction=function(r){var i=typeof r=="function"&&r.constructor;return i?i===te||(i.displayName||i.name)==="GeneratorFunction":!1},t.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,re):(r.__proto__=re,K(r,U,"GeneratorFunction")),r.prototype=Object.create(L),r},t.awrap=function(r){return{__await:r}};function ie(r,i){function s(c,a,f,R){var X=q(r[c],r,a);if(X.type==="throw")R(X.arg);else{var z=X.arg,_=z.value;return _&&typeof _=="object"&&P.call(_,"__await")?i.resolve(_.__await).then(function(ce){s("next",ce,f,R)},function(ce){s("throw",ce,f,R)}):i.resolve(_).then(function(ce){z.value=ce,f(z)},function(ce){return s("throw",ce,f,R)})}}var u;function h(c,a){function f(){return new i(function(R,X){s(c,a,R,X)})}return u=u?u.then(f,f):f()}b(this,"_invoke",{value:h})}V(ie.prototype),K(ie.prototype,Y,function(){return this}),t.AsyncIterator=ie,t.async=function(r,i,s,u,h){h===void 0&&(h=Promise);var c=new ie($(r,i,s,u),h);return t.isGeneratorFunction(i)?c:c.next().then(function(a){return a.done?a.value:c.next()})};function le(r,i,s){var u=de;return function(c,a){if(u===D)throw new Error("Generator is already running");if(u===N){if(c==="throw")throw a;return o()}for(s.method=c,s.arg=a;;){var f=s.delegate;if(f){var R=se(f,s);if(R){if(R===k)continue;return R}}if(s.method==="next")s.sent=s._sent=s.arg;else if(s.method==="throw"){if(u===de)throw u=N,s.arg;s.dispatchException(s.arg)}else s.method==="return"&&s.abrupt("return",s.arg);u=D;var X=q(r,i,s);if(X.type==="normal"){if(u=s.done?N:Z,X.arg===k)continue;return{value:X.arg,done:s.done}}else X.type==="throw"&&(u=N,s.method="throw",s.arg=X.arg)}}}function se(r,i){var s=i.method,u=r.iterator[s];if(u===T)return i.delegate=null,s==="throw"&&r.iterator.return&&(i.method="return",i.arg=T,se(r,i),i.method==="throw")||s!=="return"&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),k;var h=q(u,r.iterator,i.arg);if(h.type==="throw")return i.method="throw",i.arg=h.arg,i.delegate=null,k;var c=h.arg;if(!c)return i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,k;if(c.done)i[r.resultName]=c.value,i.next=r.nextLoc,i.method!=="return"&&(i.method="next",i.arg=T);else return c;return i.delegate=null,k}V(L),K(L,U,"Generator"),K(L,M,function(){return this}),K(L,"toString",function(){return"[object Generator]"});function w(r){var i={tryLoc:r[0]};1 in r&&(i.catchLoc=r[1]),2 in r&&(i.finallyLoc=r[2],i.afterLoc=r[3]),this.tryEntries.push(i)}function E(r){var i=r.completion||{};i.type="normal",delete i.arg,r.completion=i}function d(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(w,this),this.reset(!0)}t.keys=function(r){var i=Object(r),s=[];for(var u in i)s.push(u);return s.reverse(),function h(){for(;s.length;){var c=s.pop();if(c in i)return h.value=c,h.done=!1,h}return h.done=!0,h}};function e(r){if(r){var i=r[M];if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var s=-1,u=function h(){for(;++s<r.length;)if(P.call(r,s))return h.value=r[s],h.done=!1,h;return h.value=T,h.done=!0,h};return u.next=u}}return{next:o}}t.values=e;function o(){return{value:T,done:!0}}return d.prototype={constructor:d,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=T,this.done=!1,this.delegate=null,this.method="next",this.arg=T,this.tryEntries.forEach(E),!r)for(var i in this)i.charAt(0)==="t"&&P.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=T)},stop:function(){this.done=!0;var r=this.tryEntries[0],i=r.completion;if(i.type==="throw")throw i.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var i=this;function s(R,X){return c.type="throw",c.arg=r,i.next=R,X&&(i.method="next",i.arg=T),!!X}for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u],c=h.completion;if(h.tryLoc==="root")return s("end");if(h.tryLoc<=this.prev){var a=P.call(h,"catchLoc"),f=P.call(h,"finallyLoc");if(a&&f){if(this.prev<h.catchLoc)return s(h.catchLoc,!0);if(this.prev<h.finallyLoc)return s(h.finallyLoc)}else if(a){if(this.prev<h.catchLoc)return s(h.catchLoc,!0)}else if(f){if(this.prev<h.finallyLoc)return s(h.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(r,i){for(var s=this.tryEntries.length-1;s>=0;--s){var u=this.tryEntries[s];if(u.tryLoc<=this.prev&&P.call(u,"finallyLoc")&&this.prev<u.finallyLoc){var h=u;break}}h&&(r==="break"||r==="continue")&&h.tryLoc<=i&&i<=h.finallyLoc&&(h=null);var c=h?h.completion:{};return c.type=r,c.arg=i,h?(this.method="next",this.next=h.finallyLoc,k):this.complete(c)},complete:function(r,i){if(r.type==="throw")throw r.arg;return r.type==="break"||r.type==="continue"?this.next=r.arg:r.type==="return"?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):r.type==="normal"&&i&&(this.next=i),k},finish:function(r){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.finallyLoc===r)return this.complete(s.completion,s.afterLoc),E(s),k}},catch:function(r){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.tryLoc===r){var u=s.completion;if(u.type==="throw"){var h=u.arg;E(s)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(r,i,s){return this.delegate={iterator:e(r),resultName:i,nextLoc:s},this.method==="next"&&(this.arg=T),k}},t}(S.exports);try{regeneratorRuntime=g}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=g:Function("r","regeneratorRuntime = r")(g)}},46601:function(){},82448:function(S,g,t){"use strict";t.d(g,{$e:function(){return Y},JC:function(){return te},Vk:function(){return K},W1:function(){return T},Wf:function(){return re},XC:function(){return N},Zz:function(){return D},_2:function(){return P},_C:function(){return M},gu:function(){return q},jK:function(){return b},mH:function(){return de},qF:function(){return p},su:function(){return Z},vq:function(){return k},zv:function(){return ee}});var n=t(47630);const P=n.asArray,b=n.asBoolean,T=n.asCodec,p=n.asDate,M=n.asEither,Y=n.asJSON,U=n.asMap,K=n.asMaybe,$=n.asNone,q=n.asNull,de=n.asNumber,Z=n.asObject,D=n.asOptional,N=n.asString,k=n.asTuple,ee=n.asUndefined,te=n.asUnknown,re=n.asValue,fe=n.uncleaner},79325:function(S,g,t){"use strict";t.d(g,{US:function(){return q},YU:function(){return U}});function n(D,N,k){var ee;if(k===void 0&&(k={}),!N.codes){N.codes={};for(var te=0;te<N.chars.length;++te)N.codes[N.chars[te]]=te}if(!k.loose&&D.length*N.bits&7)throw new SyntaxError("Invalid padding");for(var re=D.length;D[re-1]==="=";)if(--re,!k.loose&&!((D.length-re)*N.bits&7))throw new SyntaxError("Invalid padding");for(var fe=new((ee=k.out)!=null?ee:Uint8Array)(re*N.bits/8|0),F=0,x=0,L=0,V=0;V<re;++V){var ie=N.codes[D[V]];if(ie===void 0)throw new SyntaxError("Invalid character "+D[V]);x=x<<N.bits|ie,F+=N.bits,F>=8&&(F-=8,fe[L++]=255&x>>F)}if(F>=N.bits||255&x<<8-F)throw new SyntaxError("Unexpected end of data");return fe}function P(D,N,k){k===void 0&&(k={});for(var ee=k,te=ee.pad,re=te===void 0?!0:te,fe=(1<<N.bits)-1,F="",x=0,L=0,V=0;V<D.length;++V)for(L=L<<8|255&D[V],x+=8;x>N.bits;)x-=N.bits,F+=N.chars[fe&L>>x];if(x&&(F+=N.chars[fe&L<<N.bits-x]),re)for(;F.length*N.bits&7;)F+="=";return F}var b={chars:"0123456789ABCDEF",bits:4},T={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bits:5},p={chars:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bits:5},M={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bits:6},Y={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bits:6},U={parse:function(N,k){return n(N.toUpperCase(),b,k)},stringify:function(N,k){return P(N,b,k)}},K={parse:function(N,k){return k===void 0&&(k={}),n(k.loose?N.toUpperCase().replace(/0/g,"O").replace(/1/g,"L").replace(/8/g,"B"):N,T,k)},stringify:function(N,k){return P(N,T,k)}},$={parse:function(N,k){return n(N,p,k)},stringify:function(N,k){return P(N,p,k)}},q={parse:function(N,k){return n(N,M,k)},stringify:function(N,k){return P(N,M,k)}},de={parse:function(N,k){return n(N,Y,k)},stringify:function(N,k){return P(N,Y,k)}},Z={parse:n,stringify:P}}},G0={};function l(S){var g=G0[S];if(g!==void 0)return g.exports;var t=G0[S]={id:S,loaded:!1,exports:{}};return H0[S].call(t.exports,t,t.exports,l),t.loaded=!0,t.exports}l.m=H0,function(){l.amdO={}}(),function(){l.n=function(S){var g=S&&S.__esModule?function(){return S.default}:function(){return S};return l.d(g,{a:g}),g}}(),function(){var S=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},g;l.t=function(t,n){if(n&1&&(t=this(t)),n&8||typeof t=="object"&&t&&(n&4&&t.__esModule||n&16&&typeof t.then=="function"))return t;var P=Object.create(null);l.r(P);var b={};g=g||[null,S({}),S([]),S(S)];for(var T=n&2&&t;typeof T=="object"&&!~g.indexOf(T);T=S(T))Object.getOwnPropertyNames(T).forEach(function(p){b[p]=function(){return t[p]}});return b.default=function(){return t},l.d(P,b),P}}(),function(){l.d=function(S,g){for(var t in g)l.o(g,t)&&!l.o(S,t)&&Object.defineProperty(S,t,{enumerable:!0,get:g[t]})}}(),function(){l.f={},l.e=function(S){return Promise.all(Object.keys(l.f).reduce(function(g,t){return l.f[t](S,g),g},[]))}}(),function(){l.u=function(S){return""+({1513:"ethereum",2005:"tron",2159:"zcash",2805:"fio",3591:"polkadot",4026:"bnb",4092:"tezos",4870:"stellar",5679:"eos",7741:"algorand",8222:"axelar",8518:"filecoin",8601:"solana",8603:"ripple",9894:"hedera"}[S]||S)+".chunk.js"}}(),function(){l.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){l.hmd=function(S){return S=Object.create(S),S.children||(S.children=[]),Object.defineProperty(S,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+S.id)}}),S}}(),function(){l.o=function(S,g){return Object.prototype.hasOwnProperty.call(S,g)}}(),function(){var S={},g="edge-currency-accountbased:";l.l=function(t,n,P,b){if(S[t]){S[t].push(n);return}var T,p;if(P!==void 0)for(var M=document.getElementsByTagName("script"),Y=0;Y<M.length;Y++){var U=M[Y];if(U.getAttribute("src")==t||U.getAttribute("data-webpack")==g+P){T=U;break}}T||(p=!0,T=document.createElement("script"),T.charset="utf-8",T.timeout=120,l.nc&&T.setAttribute("nonce",l.nc),T.setAttribute("data-webpack",g+P),T.src=t),S[t]=[n];var K=function(q,de){T.onerror=T.onload=null,clearTimeout($);var Z=S[t];if(delete S[t],T.parentNode&&T.parentNode.removeChild(T),Z&&Z.forEach(function(D){return D(de)}),q)return q(de)},$=setTimeout(K.bind(null,void 0,{type:"timeout",target:T}),12e4);T.onerror=K.bind(null,T.onerror),T.onload=K.bind(null,T.onload),p&&document.head.appendChild(T)}}(),function(){l.r=function(S){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})}}(),function(){l.nmd=function(S){return S.paths=[],S.children||(S.children=[]),S}}(),function(){var S;l.g.importScripts&&(S=l.g.location+"");var g=l.g.document;if(!S&&g&&(g.currentScript&&(S=g.currentScript.src),!S)){var t=g.getElementsByTagName("script");t.length&&(S=t[t.length-1].src)}if(!S)throw new Error("Automatic publicPath is not supported in this browser");S=S.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=S}(),function(){var S={179:0};l.f.j=function(n,P){var b=l.o(S,n)?S[n]:void 0;if(b!==0)if(b)P.push(b[2]);else{var T=new Promise(function(U,K){b=S[n]=[U,K]});P.push(b[2]=T);var p=l.p+l.u(n),M=new Error,Y=function(U){if(l.o(S,n)&&(b=S[n],b!==0&&(S[n]=void 0),b)){var K=U&&(U.type==="load"?"missing":U.type),$=U&&U.target&&U.target.src;M.message="Loading chunk "+n+` failed.
2
- (`+K+": "+$+")",M.name="ChunkLoadError",M.type=K,M.request=$,b[1](M)}};l.l(p,Y,"chunk-"+n,n)}};var g=function(n,P){var b=P[0],T=P[1],p=P[2],M,Y,U=0;if(b.some(function($){return S[$]!==0})){for(M in T)l.o(T,M)&&(l.m[M]=T[M]);if(p)var K=p(l)}for(n&&n(P);U<b.length;U++)Y=b[U],l.o(S,Y)&&S[Y]&&S[Y][0](),S[Y]=0},t=self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[];t.forEach(g.bind(null,0)),t.push=g.bind(null,t.push.bind(t))}();var Nn={};(function(){"use strict";var S=l(35666),g=l(24224),t=l(20918),n=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const P={31566704:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"31566704"}}},b={algodServers:["https://mainnet-api.algonode.cloud","http://node.algoexplorerapi.io","https://xna-mainnet-api.algonode.cloud"],indexerServers:["https://mainnet-idx.algonode.cloud","https://algoindexer.algoexplorerapi.io"],genesisID:"mainnet-v1.0",genesisHash:"wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",minimumTxFee:1e3,minimumAddressBalance:"100000"},T={currencyCode:"ALGO",displayName:"Algorand",pluginId:"algorand",walletType:"wallet:algorand",addressExplorer:"https://algoexplorer.io/address/%s",transactionExplorer:"https://algoexplorer.io/tx/%s",denominations:[{name:"ALGO",multiplier:"1000000",symbol:"\u023A"}],memoOptions:[{type:"text",memoName:"note",maxLength:1e3}],defaultSettings:{customFeeSettings:["fee"]},memoType:"text",metaTokens:(0,t.ZS)(P)},p=(0,g.P)({builtinTokens:P,currencyInfo:T,networkInfo:b,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Algorand requires bigint support")},getInnerPlugin(){return n(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(4431),l.e(780),l.e(8814),l.e(9612),l.e(7741)]).then(l.bind(l,37011))})}});var M=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Y={binanceApiServers:["https://dex.binance.org","https://dex-atlantic.binance.org","https://dex-asiapacific.binance.org","https://dex-european.binance.org"],beaconChainApiServers:["https://api.binance.org"]},U={currencyCode:"BNB",displayName:"BNB Beacon Chain",pluginId:"binance",walletType:"wallet:binance",addressExplorer:"https://explorer.binance.org/address/%s",transactionExplorer:"https://explorer.binance.org/tx/%s",blockExplorer:"https://explorer.binance.org/block/%s",denominations:[{name:"BNB",multiplier:"100000000",symbol:"B"}],memoOptions:[{type:"text",memoName:"memo",maxLength:128}],defaultSettings:{},memoMaxLength:128,memoType:"text",metaTokens:[]},K=(0,g.P)({currencyInfo:U,networkInfo:Y,getInnerPlugin(){return M(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(9669),l.e(8367),l.e(3978),l.e(7786),l.e(6341),l.e(9612),l.e(4026)]).then(l.bind(l,89662))})}});var $=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const q={bech32AddressPrefix:"axelar",bip39Path:"m/44'/118'/0'/0/0",chainInfo:{chainId:"axelar-dojo-1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/chain.json"},nativeDenom:"uaxl",pluginMnemonicKeyName:"axelarMnemonic",rpcNode:{url:"https://axelar-rpc.publicnode.com:443",headers:{}},archiveNode:{url:"https://axelararchive-rpc.quickapi.com:443",headers:{}}},de={currencyCode:"AXL",displayName:"Axelar",pluginId:"axelar",walletType:"wallet:axelar",addressExplorer:"https://www.mintscan.io/axelar/address/%s",transactionExplorer:"https://www.mintscan.io/axelar/tx/%s",denominations:[{name:"AXL",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:[]},Z=(0,g.P)({currencyInfo:de,networkInfo:q,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Axelar requires BigInt support")},getInnerPlugin(){return $(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var D=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const N={"usara-core1r9gc0rnxnzpq33u82f44aufgdwvyxv4wyepyck98m9v2pxua6naqr8h03z":{currencyCode:"SARA",displayName:"Pulsara",denominations:[{name:"SARA",multiplier:"1000000"}],networkLocation:{contractAddress:"usara-core1r9gc0rnxnzpq33u82f44aufgdwvyxv4wyepyck98m9v2pxua6naqr8h03z"}},ibce1e3674a0e4e1ef9c69646f9af8d9497173821826074622d831bab73ccb99a2d:{currencyCode:"USDC",displayName:"USDC from Noble",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/E1E3674A0E4E1EF9C69646F9AF8D9497173821826074622D831BAB73CCB99A2D"}},ibc13b2c536bb057ac79d5616b8ea1b9540ec1f2170718caff6f0083c966fffed0b:{currencyCode:"OSMO",displayName:"Osmosis",denominations:[{name:"OSMO",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F2170718CAFF6F0083C966FFFED0B"}},ibc45c001a5ae212d09879be4627c45b64d5636086285590d5145a51e18e9d16722:{currencyCode:"ATOM",displayName:"Cosmos Hub",denominations:[{name:"ATOM",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/45C001A5AE212D09879BE4627C45B64D5636086285590D5145A51E18E9D16722"}},ibc64ada1661e3c1a4293e3bb15d5bd13012d0db3d9002c117c30d7c429a32f4d51:{currencyCode:"GRAV",displayName:"Gravity Bridge",denominations:[{name:"GRAV",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/64ADA1661E3C1A4293E3BB15D5BD13012D0DB3D9002C117C30D7C429A32F4D51"}},ibcab305490f17eccae3f2b0398a572e0efb3af394b90c3a1663da28c1f0869f624:{currencyCode:"KUJI",displayName:"Kujira",denominations:[{name:"KUJI",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/AB305490F17ECCAE3F2B0398A572E0EFB3AF394B90C3A1663DA28C1F0869F624"}},ibc6d42727c323c8af2821966c83e0708f0c17fb0b0de38ba5e4d23f2ee7c0e9ddc:{currencyCode:"BAND",displayName:"Band Protocol",denominations:[{name:"BAND",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/6D42727C323C8AF2821966C83E0708F0C17FB0B0DE38BA5E4D23F2EE7C0E9DDC"}},ibc078eaf11288a47609fd894070ca8a1bfcebd9e08745ea7030f95d7adee2e22ca:{currencyCode:"EVMOS",displayName:"Evmos",denominations:[{name:"EVMOS",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"ibc/078EAF11288A47609FD894070CA8A1BFCEBD9E08745EA7030F95D7ADEE2E22CA"}},ibc3e35008738ac049c9c1a1e37f785e947a8daa9811b3ea3b25580664294056151:{currencyCode:"AXL",displayName:"Axelar",denominations:[{name:"AXL",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/3E35008738AC049C9C1A1E37F785E947A8DAA9811B3EA3B25580664294056151"}},ibc81bd95b0890b8d0130755e8338cf4aa48c7cbbd149c1d66ec9f9b62afae5c4f3:{currencyCode:"SEI",displayName:"Sei Network",denominations:[{name:"SEI",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/81BD95B0890B8D0130755E8338CF4AA48C7CBBD149C1D66EC9F9B62AFAE5C4F3"}},ibc12b178a885fc6891e0e09e1fb013973c5632b7093ce52d8f33b32e76e3bb6ea1:{currencyCode:"KAVA",displayName:"Kava",denominations:[{name:"KAVA",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/12B178A885FC6891E0E09E1FB013973C5632B7093CE52D8F33B32E76E3BB6EA1"}},ibc6c00e4aa0cc7618370f81f7378638ae6c48eff8c9203ce1c2357012b440ebdb7:{currencyCode:"USDT",displayName:"USDT from Kava",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/6C00E4AA0CC7618370F81F7378638AE6C48EFF8C9203CE1C2357012B440EBDB7"}},ibcf8ca5236869f819bc006eef088e67889a26e4140339757878f0f4e229cdda858:{currencyCode:"DYDX",displayName:"dYdX",denominations:[{name:"DYDX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"ibc/F8CA5236869F819BC006EEF088E67889A26E4140339757878F0F4E229CDDA858"}}},k={bech32AddressPrefix:"core",bip39Path:"m/44'/990'/0'/0/0",chainInfo:{chainId:"coreum-mainnet-1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/coreum/chain.json"},nativeDenom:"ucore",pluginMnemonicKeyName:"coreumMnemonic",rpcNode:{url:"https://full-node.mainnet-1.coreum.dev:26657",headers:{}},archiveNode:{url:"https://full-node.mainnet-1.coreum.dev:26657",headers:{}}},ee={currencyCode:"COREUM",displayName:"Coreum",pluginId:"coreum",walletType:"wallet:coreum",addressExplorer:"https://explorer.coreum.com/coreum/accounts/%s",transactionExplorer:"https://explorer.coreum.com/coreum/transactions/%s",denominations:[{name:"COREUM",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:(0,t.ZS)(N)},te=(0,g.P)({builtinTokens:N,currencyInfo:ee,networkInfo:k,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Coreum requires BigInt support")},getInnerPlugin(){return D(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var re=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const fe={bech32AddressPrefix:"cosmos",bip39Path:"m/44'/118'/0'/0/0",chainInfo:{chainId:"cosmoshub-4",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/chain.json"},nativeDenom:"uatom",pluginMnemonicKeyName:"cosmoshubMnemonic",rpcNode:{url:"https://cosmos-rpc.publicnode.com:443",headers:{}},archiveNode:{url:"https://cosmosarchive-rpc.quickapi.com:443",headers:{}}},F={currencyCode:"ATOM",displayName:"Cosmos Hub",pluginId:"cosmoshub",walletType:"wallet:cosmoshub",addressExplorer:"https://www.mintscan.io/cosmos/address/%s",transactionExplorer:"https://www.mintscan.io/cosmos/tx/%s",denominations:[{name:"ATOM",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:[]},x=(0,g.P)({currencyInfo:F,networkInfo:fe,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Cosmos Hub requires BigInt support")},getInnerPlugin(){return re(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var L=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const V={uion:{currencyCode:"ION",displayName:"Ion",denominations:[{name:"ION",multiplier:"1000000"}],networkLocation:{contractAddress:"uion"}}},ie={bech32AddressPrefix:"osmo",bip39Path:"m/44'/118'/0'/0/0",chainInfo:{chainId:"osmosis-1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/chain.json"},nativeDenom:"uosmo",pluginMnemonicKeyName:"osmosisMnemonic",rpcNode:{url:"https://rpc.osmosis.zone:443",headers:{}},archiveNode:{url:"https://osmosisarchive-rpc.quickapi.com:443",headers:{}}},le={currencyCode:"OSMO",displayName:"Osmosis",pluginId:"osmosis",walletType:"wallet:osmosis",addressExplorer:"https://www.mintscan.io/osmosis/address/%s",transactionExplorer:"https://www.mintscan.io/osmosis/tx/%s",denominations:[{name:"OSMO",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:(0,t.ZS)(V)},se=(0,g.P)({currencyInfo:le,networkInfo:ie,builtinTokens:V,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Osmosis requires BigInt support")},getInnerPlugin(){return L(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var w=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const E={bech32AddressPrefix:"thor",bip39Path:"m/44'/931'/0'/0/0",chainInfo:{chainId:"thorchain-mainnet-v1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/thorchain/chain.json"},defaultTransactionFeeUrl:{url:"https://thornode.ninerealms.com/thorchain/network",headers:{"x-client-id":"{{ninerealmsClientId}}"}},nativeDenom:"rune",pluginMnemonicKeyName:"thorchainruneMnemonic",rpcNode:{url:"https://rpc.ninerealms.com",headers:{"x-client-id":"{{ninerealmsClientId}}"}},archiveNode:{url:"https://rpc-v1.ninerealms.com",headers:{"x-client-id":"{{ninerealmsClientId}}"}}},d={currencyCode:"RUNE",displayName:"THORChain",pluginId:"thorchainrune",walletType:"wallet:thorchainrune",addressExplorer:"https://viewblock.io/thorchain/address/%s",transactionExplorer:"https://viewblock.io/thorchain/tx/%s",denominations:[{name:"RUNE",multiplier:"100000000",symbol:"\u16B1"}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:[]},e=(0,g.P)({currencyInfo:d,networkInfo:E,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Thorchain requires BigInt support")},getInnerPlugin(){return w(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}}),o={axelar:Z,coreum:te,cosmoshub:x,osmosis:se,thorchainrune:e};var r=l(83718);const i=[{type:"text",memoName:"memo",maxLength:256}];var s=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const u={chainId:"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",eosActivationServers:["https://eospay.edge.app"],eosHyperionNodes:["https://api.eossweden.org"],eosNodes:["https://api.eoseoul.io","https://api.eoslaomao.com","https://mainnet.eoscannon.io","https://api.eos.wiki","https://mainnet.eosio.sg","https://eos.newdex.one","https://api.bitmars.one","https://node1.zbeos.com","https://api.eosn.io"],eosDfuseServers:["https://eos.dfuse.eosnation.io"],powerUpServers:["https://api.eospowerup.io/freePowerup"],uriProtocol:"eos"},h={currencyCode:"EOS",displayName:"EOS",memoOptions:i,pluginId:"eos",unsafeBroadcastTx:!0,walletType:"wallet:eos",addressExplorer:"https://bloks.io/account/%s",transactionExplorer:"https://bloks.io/transaction/%s",denominations:[{name:"EOS",multiplier:"10000",symbol:"E"}],defaultSettings:{},memoMaxLength:256,metaTokens:[]},c=(0,g.P)({currencyInfo:h,networkInfo:u,otherMethodNames:r.Fc,getInnerPlugin(){return s(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(6266),l.e(5234),l.e(4663),l.e(9612),l.e(5679)]).then(l.bind(l,58684))})}});var a=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const f={chainId:"4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11",eosActivationServers:["https://eospay.edge.app","https://account.teloscrew.com"],eosHyperionNodes:["https://telos.caleos.io"],eosNodes:["https://telos.caleos.io"],powerUpServers:[],eosDfuseServers:[],uriProtocol:"telos"},R={currencyCode:"TLOS",displayName:"Telos",memoOptions:i,pluginId:"telos",walletType:"wallet:telos",addressExplorer:"https://telos.bloks.io/account/%s",transactionExplorer:"https://telos.bloks.io/transaction/%s",denominations:[{name:"TLOS",multiplier:"10000",symbol:"T"}],defaultSettings:{},memoMaxLength:256,metaTokens:[]},X=(0,g.P)({currencyInfo:R,networkInfo:f,otherMethodNames:r.Fc,getInnerPlugin(){return a(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(6266),l.e(5234),l.e(4663),l.e(9612),l.e(5679)]).then(l.bind(l,58684))})}});var z=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const _={chainId:"1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4",eosActivationServers:[],eosDfuseServers:[],eosHyperionNodes:["https://api.waxsweden.org"],eosNodes:["https://api.waxsweden.org"],powerUpServers:[],uriProtocol:"wax"},ce={currencyCode:"WAX",displayName:"Wax",memoOptions:i,pluginId:"wax",walletType:"wallet:wax",addressExplorer:"https://wax.bloks.io/account/%s",transactionExplorer:"https://wax.bloks.io/transaction/%s",denominations:[{name:"WAX",multiplier:"100000000",symbol:"W"}],defaultSettings:{},memoMaxLength:256,metaTokens:[]},pe=(0,g.P)({currencyInfo:ce,networkInfo:_,otherMethodNames:r.Fc,getInnerPlugin(){return z(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(6266),l.e(5234),l.e(4663),l.e(9612),l.e(5679)]).then(l.bind(l,58684))})}}),qe={eos:c,telos:X,wax:pe};var ye=l(40571),ve=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const a0={filfoxUrl:"https://calibration.filfox.info/api/v1",filscanUrl:"https://api-cali.filscan.io/api/v1",hdPathCoinType:461,networkPrefix:"Testnet",rpcNode:{networkName:"Calibration",url:"https://api.calibration.node.glif.io/"}},Je={currencyCode:"tFIL",displayName:"Filecoin Testnet (Calibration)",pluginId:"calibration",requiredConfirmations:900,unsafeBroadcastTx:!0,walletType:"wallet:calibration",addressExplorer:"https://calibration.filfox.info/en/address/%s",transactionExplorer:"https://calibration.filfox.info/en/message/%s",denominations:[{name:"tFIL",multiplier:"1000000000000000000",symbol:"\u2A0E"},{name:"milliFIL",multiplier:"1000000000000000",symbol:"m\u2A0E"},{name:"microFIL",multiplier:"1000000000000",symbol:"\xB5\u2A0E"},{name:"nanoFIL",multiplier:"1000000000",symbol:"n\u2A0E"},{name:"picoFIL",multiplier:"1000000",symbol:"p\u2A0E"},{name:"femtoFIL",multiplier:"1000",symbol:"f\u2A0E"},{name:"attoFIL",multiplier:"1",symbol:"a\u2A0E"}],defaultSettings:{},metaTokens:[]},Ce=(0,g.P)({currencyInfo:Je,networkInfo:a0,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Filecoin requires BigInt support")},getInnerPlugin(){return ve(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(9539),l.e(9669),l.e(6291),l.e(7221),l.e(1964),l.e(7786),l.e(3839),l.e(6642),l.e(9612),l.e(8518)]).then(l.bind(l,59677))})}});var A0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const De={filfoxUrl:"https://filfox.info/api/v1",filscanUrl:"https://api-v2.filscan.io/api/v1",hdPathCoinType:461,networkPrefix:"Mainnet",rpcNode:{networkName:"Mainnet",url:"https://api.node.glif.io/"}},ke={currencyCode:"FIL",displayName:"Filecoin",pluginId:"filecoin",requiredConfirmations:900,walletType:"wallet:filecoin",addressExplorer:"https://filfox.info/en/address/%s",transactionExplorer:"https://filfox.info/en/message/%s",denominations:[{name:"FIL",multiplier:"1000000000000000000",symbol:"\u2A0E"},{name:"milliFIL",multiplier:"1000000000000000",symbol:"m\u2A0E"},{name:"microFIL",multiplier:"1000000000000",symbol:"\xB5\u2A0E"},{name:"nanoFIL",multiplier:"1000000000",symbol:"n\u2A0E"},{name:"picoFIL",multiplier:"1000000",symbol:"p\u2A0E"},{name:"femtoFIL",multiplier:"1000",symbol:"f\u2A0E"},{name:"attoFIL",multiplier:"1",symbol:"a\u2A0E"}],defaultSettings:{},metaTokens:[]},w0=(0,g.P)({currencyInfo:ke,networkInfo:De,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Filecoin requires BigInt support")},getInnerPlugin(){return A0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(9539),l.e(9669),l.e(6291),l.e(7221),l.e(1964),l.e(7786),l.e(3839),l.e(6642),l.e(9612),l.e(8518)]).then(l.bind(l,59677))})}});var Ae=l(24827),Be=l(3559),I0=Object.defineProperty,be=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,F0=Object.prototype.propertyIsEnumerable,ge=(J,W,I)=>W in J?I0(J,W,{enumerable:!0,configurable:!0,writable:!0,value:I}):J[W]=I,$e=(J,W)=>{for(var I in W||(W={}))Oe.call(W,I)&&ge(J,I,W[I]);if(be)for(var I of be(W))F0.call(W,I)&&ge(J,I,W[I]);return J},r0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const we={apiUrls:["https://fio.eu.eosamsterdam.net/v1/","https://fio.eosdac.io/v1/","https://fio.eosrio.io/v1/","https://fio.eos.barcelona/v1/","https://api.fio.alohaeos.com/v1/","https://fio.eosargentina.io/v1/","https://fio.cryptolions.io/v1/","https://api.fio.currencyhub.io/v1/","https://fio.eostribe.io/v1/","https://api.fio.services/v1/","https://fio.eosusa.news/v1/","https://fio.eosphere.io/v1/"],historyNodeUrls:["https://fio.eosphere.io/v1/","https://api.fio.detroitledger.tech/v1/","https://api.fiosweden.org/v1/","https://fio.blockpane.com/v1/","https://fio.greymass.com/v1/"],fioRegApiUrl:"https://reg.fioprotocol.io/public-api/",fioDomainRegUrl:"https://reg.fioprotocol.io/domain/",fioAddressRegUrl:"https://reg.fioprotocol.io/address/",fioStakingApyUrl:"https://fioprotocol.io/staking",defaultRef:"edge",fallbackRef:"edge",freeAddressRef:"edgefree",errorCodes:Ae.FK,chainId:"21dcae42c0182200e93f954a074011f9048a7624c6fe81d3c9541a614a88bd1c"},Re={currencyCode:"FIO",displayName:"FIO",pluginId:"fio",unsafeSyncNetwork:!0,walletType:"wallet:fio",addressExplorer:"https://fio.bloks.io/key/%s",transactionExplorer:"https://fio.bloks.io/transaction/%s",denominations:[{name:"FIO",multiplier:"1000000000",symbol:"\u1D6E"}],memoOptions:[],defaultSettings:$e({},we),metaTokens:[]},E0=(0,g.P)({currencyInfo:Re,networkInfo:we,otherMethodNames:Be.pq,getInnerPlugin(){return r0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(6291),l.e(7221),l.e(3720),l.e(5234),l.e(3491),l.e(9612),l.e(2805)]).then(l.bind(l,44285))})}});var Ue=l(825),Ie=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const N0={creatorApiServers:["https://creator.myhbarwallet.com"],mirrorNodes:["https://mainnet-public.mirrornode.hedera.com"],client:"Mainnet",checksumNetworkID:"0",maxFee:9e5},Xe={currencyCode:"HBAR",displayName:"Hedera",pluginId:"hedera",walletType:"wallet:hedera",addressExplorer:"https://hashscan.io/mainnet/account/%s",transactionExplorer:"https://hashscan.io/mainnet/transaction/%s",denominations:[{name:"HBAR",multiplier:"100000000",symbol:"\u210F"},{name:"tHBAR",multiplier:"1",symbol:"t\u210F"}],memoOptions:[{type:"text",memoName:"memo",maxLength:100}],defaultSettings:{},memoMaxLength:100,memoType:"text",metaTokens:[]},Fe=(0,g.P)({currencyInfo:Xe,networkInfo:N0,otherMethodNames:Ue.ni,getInnerPlugin(){return Ie(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(4431),l.e(780),l.e(1094),l.e(7481),l.e(9612),l.e(9894)]).then(l.bind(l,20212))})}});var P0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Ke={rpcNode:{networkName:"mainnet",defaultHost:"lightd1.pirate.black",defaultPort:443},defaultBirthday:204e4,defaultNetworkFee:"10000",transactionQueryLimit:999},Ee={currencyCode:"ARRR",displayName:"Pirate Chain",pluginId:"piratechain",requiredConfirmations:10,unsafeBroadcastTx:!0,unsafeSyncNetwork:!0,walletType:"wallet:piratechain",addressExplorer:"",transactionExplorer:"https://explorer.pirate.black/tx/%s",denominations:[{name:"ARRR",multiplier:"100000000",symbol:"P"}],memoOptions:[{type:"text",maxLength:512}],defaultSettings:{},memoType:"text",metaTokens:[]},k0=(0,g.P)({currencyInfo:Ee,networkInfo:Ke,getInnerPlugin(){return P0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(9612),l.e(4843)]).then(l.bind(l,80504))})}});var Ne=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Pe={1:{currencyCode:"LLM",displayName:"Liberland Merit",denominations:[{name:"LLM",multiplier:"1000000000000"}],networkLocation:{contractAddress:"1"}}},T0={rpcNodes:["wss://mainnet.liberland.org/"],subscanBaseUrl:void 0,subscanQueryLimit:100,partialFeeOffsetMultiplier:"2",lengthFeePerByte:"76800000"},He={currencyCode:"LLD",displayName:"Liberland",pluginId:"liberland",walletType:"wallet:liberland",addressExplorer:"",transactionExplorer:"https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Fmainnet.liberland.org%%2F#/explorer/query/%s",denominations:[{name:"LLD",multiplier:"1000000000000",symbol:""}],defaultSettings:{},metaTokens:(0,t.ZS)(Pe)},Ge=(0,g.P)({builtinTokens:Pe,currencyInfo:He,networkInfo:T0,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Liberland requires bigint support")},getInnerPlugin(){return Ne(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(533),l.e(5336),l.e(9612),l.e(3591)]).then(l.bind(l,34765))})}});var i0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Te={1:{currencyCode:"LKN",displayName:"Liberland Merit Testnet",denominations:[{name:"LKN",multiplier:"1000000000000"}],networkLocation:{contractAddress:"1"}}},We={rpcNodes:["wss://testchain.liberland.org/"],subscanBaseUrl:void 0,subscanQueryLimit:100,partialFeeOffsetMultiplier:"2",lengthFeePerByte:"76800000"},s0={currencyCode:"LDN",displayName:"Liberland Testnet",pluginId:"liberlandtestnet",walletType:"wallet:liberlandtestnet",addressExplorer:"",transactionExplorer:"https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Ftestchain.liberland.org%%2F#/explorer/query/%s",denominations:[{name:"LDN",multiplier:"1000000000000",symbol:""}],defaultSettings:{},metaTokens:(0,t.ZS)(Te)},ze=(0,g.P)({builtinTokens:Te,currencyInfo:s0,networkInfo:We,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Liberland Testnet requires bigint support")},getInnerPlugin(){return i0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(533),l.e(5336),l.e(9612),l.e(3591)]).then(l.bind(l,34765))})}});var Ze=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const c0={rpcNodes:["wss://rpc.polkadot.io"],subscanBaseUrl:"https://polkadot.api.subscan.io/api",subscanQueryLimit:100,partialFeeOffsetMultiplier:"1",lengthFeePerByte:"1000000"},Qe={currencyCode:"DOT",displayName:"Polkadot",pluginId:"polkadot",walletType:"wallet:polkadot",addressExplorer:"https://polkadot.subscan.io/account/%s",transactionExplorer:"https://polkadot.subscan.io/extrinsic/%s",denominations:[{name:"DOT",multiplier:"10000000000",symbol:""}],memoOptions:[],defaultSettings:{},metaTokens:[]},xe=(0,g.P)({currencyInfo:Qe,networkInfo:c0,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Polkadot requires bigint support")},getInnerPlugin(){return Ze(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(533),l.e(5336),l.e(9612),l.e(3591)]).then(l.bind(l,34765))})}});var x0=l(49349),Ve=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Me={DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263:{currencyCode:"BONK",displayName:"Bonk",denominations:[{name:"BONK",multiplier:"100000"}],networkLocation:{contractAddress:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"}},kshrEkxuc7zPAvLxvabxoERKxK6BfariPcjBoiHvM7B:{currencyCode:"GMT",displayName:"STEPN",denominations:[{name:"GMT",multiplier:"1000000000"}],networkLocation:{contractAddress:"kshrEkxuc7zPAvLxvabxoERKxK6BfariPcjBoiHvM7B"}},CWE8jPTUYhdCTZYWPTe1o5DFqfdjzWKc9WKz6rSjQUdG:{currencyCode:"LINK",displayName:"Wrapped Chainlink",denominations:[{name:"LINK",multiplier:"1000000"}],networkLocation:{contractAddress:"CWE8jPTUYhdCTZYWPTe1o5DFqfdjzWKc9WKz6rSjQUdG"}},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{currencyCode:"PYTH",displayName:"Pyth Network",denominations:[{name:"PYTH",multiplier:"1000000"}],networkLocation:{contractAddress:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}},rndrizKT3MK1iimdxRdWabcF7Zg7AR5T4nud4EkHBof:{currencyCode:"RNDR",displayName:"Render Token",denominations:[{name:"RNDR",multiplier:"100000000"}],networkLocation:{contractAddress:"rndrizKT3MK1iimdxRdWabcF7Zg7AR5T4nud4EkHBof"}},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}},Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB:{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}}},M0={rpcNodes:["https://api.mainnet-beta.solana.com","https://solana-mainnet.gateway.pokt.network/v1/lb/{{poktPortalApiKey}}"],rpcNodesArchival:["https://api.mainnet-beta.solana.com","https://solana-mainnet.g.alchemy.com/v2/{{alchemyApiKey}}"],commitment:"confirmed",txQueryLimit:1e3,derivationPath:"m/44'/501'/0'/0'",memoPublicKey:"MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr",tokenPublicKey:"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",associatedTokenPublicKey:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"},je={currencyCode:"SOL",displayName:"Solana",pluginId:"solana",walletType:"wallet:solana",addressExplorer:"https://explorer.solana.com/address/%s",transactionExplorer:"https://explorer.solana.com/tx/%s",denominations:[{name:"SOL",multiplier:"1000000000",symbol:"\u25CE"}],memoOptions:[{type:"text",memoName:"memo",maxLength:32}],defaultSettings:{},memoType:"text",metaTokens:(0,t.ZS)(Me)},Le=(0,g.P)({currencyInfo:je,networkInfo:M0,builtinTokens:Me,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Solana requires bigint support")},getInnerPlugin(){return Ve(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(780),l.e(8193),l.e(9612),l.e(8601)]).then(l.bind(l,18226))})}});var L0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Ye={baseReserve:"10000000",stellarServers:["https://horizon.stellar.org"]},Se={currencyCode:"XLM",displayName:"Stellar",pluginId:"stellar",walletType:"wallet:stellar",addressExplorer:"https://stellarchain.io/address/%s",transactionExplorer:"https://stellarchain.io/tx/%s",denominations:[{name:"XLM",multiplier:"10000000",symbol:"*"}],memoOptions:[{type:"text",maxLength:28},{type:"number",maxValue:"18446744073709551615"},{type:"hex",maxBytes:32,minBytes:32}],multipleMemos:!0,defaultSettings:{},memoMaxLength:19,memoType:"text",metaTokens:[]},d0=(0,g.P)({currencyInfo:Se,networkInfo:Ye,getInnerPlugin(){return L0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(9669),l.e(780),l.e(3978),l.e(3720),l.e(5836),l.e(2428),l.e(9612),l.e(4870)]).then(l.bind(l,85309))})}});var l0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const _e={tezosRpcNodes:["https://rpc.tzbeta.net","https://mainnet.tezrpc.me"],tezosApiServers:["https://api.tzkt.io"],fee:{transaction:"1350",reveal:"1300",burn:"257000"},limit:{gas:"10600",storage:"277"}},S0={currencyCode:"XTZ",displayName:"Tezos",pluginId:"tezos",walletType:"wallet:tezos",addressExplorer:"https://tzstats.com/%s",transactionExplorer:"https://tzstats.com/%s",denominations:[{name:"XTZ",multiplier:"1000000",symbol:"t"}],memoOptions:[],defaultSettings:{},metaTokens:[]},e0=(0,g.P)({currencyInfo:S0,networkInfo:_e,getInnerPlugin(){return l0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(2153),l.e(6266),l.e(5835),l.e(4618),l.e(9612),l.e(4092)]).then(l.bind(l,19156))})}});var f0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const t0={TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn:{currencyCode:"USDD",displayName:"Decentralized USD",denominations:[{name:"USDD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn"}},TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t:{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"}},TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8"}},TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR:{currencyCode:"WTRX",displayName:"Wrapped TRX",denominations:[{name:"WTRX",multiplier:"1000000"}],networkLocation:{contractAddress:"TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR"}},TUpMhErZL2fhh4sVNULAbNKLokS4GjC1F4:{currencyCode:"TUSD",displayName:"TrueUSD",denominations:[{name:"TUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TUpMhErZL2fhh4sVNULAbNKLokS4GjC1F4"}},TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4:{currencyCode:"BTT",displayName:"BitTorrent",denominations:[{name:"BTT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4"}},TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9:{currencyCode:"JST",displayName:"JUST",denominations:[{name:"JST",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9"}},TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7:{currencyCode:"WIN",displayName:"WINkLink",denominations:[{name:"WIN",multiplier:"1000000"}],networkLocation:{contractAddress:"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7"}},TFczxzPhnThNSqr5by8tvxsdCFRRz6cPNq:{currencyCode:"NFT",displayName:"APENFT",denominations:[{name:"NFT",multiplier:"1000000"}],networkLocation:{contractAddress:"TFczxzPhnThNSqr5by8tvxsdCFRRz6cPNq"}},TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S:{currencyCode:"SUN",displayName:"SUN",denominations:[{name:"SUN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S"}},TMwFHYXLJaRUPeW6421aqXL4ZEzPRFGkGT:{currencyCode:"USDJ",displayName:"JUST Stablecoin",denominations:[{name:"USDJ",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TMwFHYXLJaRUPeW6421aqXL4ZEzPRFGkGT"}}},u0={tronApiServers:["https://api.trongrid.io"],tronNodeServers:["https://rpc.ankr.com/http/tron","https://rpc.coinsdo.net/trx-api","http://3.225.171.164:8090","http://52.53.189.99:8090","http://18.196.99.16:8090","http://34.253.187.192:8090","http://54.252.224.209:8090","http://3.218.137.187:8090","http://34.237.210.82:8090"],defaultDerivationPath:"m/44'/195'/0'/0/0",defaultFeeLimit:1e9,defaultFreezeDurationInDays:3},m0={currencyCode:"TRX",displayName:"Tron",pluginId:"tron",walletType:"wallet:tron",addressExplorer:"https://tronscan.org/#/address/%s",transactionExplorer:"https://tronscan.org/#/transaction/%s",denominations:[{name:"TRX",multiplier:"1000000",symbol:"T"}],memoOptions:[{type:"text",memoName:"note"}],defaultSettings:{},memoType:"text",metaTokens:(0,t.ZS)(t0)},h0=(0,g.P)({builtinTokens:t0,currencyInfo:m0,networkInfo:u0,getInnerPlugin(){return f0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(9669),l.e(4431),l.e(6291),l.e(7221),l.e(8367),l.e(1964),l.e(1094),l.e(7202),l.e(9612),l.e(2005)]).then(l.bind(l,74227))})}});var n0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const D0={rpcNode:{networkName:"mainnet",defaultHost:"mainnet.lightwalletd.com",defaultPort:9067},defaultBirthday:131e4,defaultNetworkFee:"10000"},p0={currencyCode:"ZEC",displayName:"Zcash",pluginId:"zcash",requiredConfirmations:10,unsafeBroadcastTx:!0,unsafeSyncNetwork:!0,walletType:"wallet:zcash",addressExplorer:"https://zcashblockexplorer.com/ua/%s",transactionExplorer:"https://blockchair.com/zcash/transaction/%s?from=edgeapp",denominations:[{name:"ZEC",multiplier:"100000000",symbol:"Z"}],memoOptions:[{type:"text",maxLength:512}],defaultSettings:{},memoType:"text",metaTokens:[]},y0=(0,g.P)({currencyInfo:p0,networkInfo:D0,getInnerPlugin(){return n0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(9612),l.e(2159)]).then(l.bind(l,62560))})}});var v0=Object.defineProperty,b0=Object.defineProperties,o0=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,C0=Object.prototype.hasOwnProperty,U0=Object.prototype.propertyIsEnumerable,O0=(J,W,I)=>W in J?v0(J,W,{enumerable:!0,configurable:!0,writable:!0,value:I}):J[W]=I,B0=(J,W)=>{for(var I in W||(W={}))C0.call(W,I)&&O0(J,I,W[I]);if(g0)for(var I of g0(W))U0.call(W,I)&&O0(J,I,W[I]);return J},R0=(J,W)=>b0(J,o0(W));const X0=R0(B0(B0(B0({},qe),ye.s),o),{algorand:p,binance:K,filecoin:w0,calibration:Ce,fio:E0,hedera:Fe,liberland:Ge,liberlandtestnet:ze,piratechain:k0,polkadot:xe,ripple:x0.H$,solana:Le,stellar:d0,tezos:e0,tron:h0,zcash:y0});typeof window<"u"&&typeof window.addEdgeCorePlugins=="function"&&window.addEdgeCorePlugins(X0);var W0=null})()})();
2
+ (`+K+": "+$+")",M.name="ChunkLoadError",M.type=K,M.request=$,b[1](M)}};l.l(p,Y,"chunk-"+n,n)}};var g=function(n,P){var b=P[0],T=P[1],p=P[2],M,Y,U=0;if(b.some(function($){return S[$]!==0})){for(M in T)l.o(T,M)&&(l.m[M]=T[M]);if(p)var K=p(l)}for(n&&n(P);U<b.length;U++)Y=b[U],l.o(S,Y)&&S[Y]&&S[Y][0](),S[Y]=0},t=self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[];t.forEach(g.bind(null,0)),t.push=g.bind(null,t.push.bind(t))}();var Nn={};(function(){"use strict";var S=l(35666),g=l(24224),t=l(20918),n=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const P={31566704:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"31566704"}}},b={algodServers:["https://mainnet-api.algonode.cloud","http://node.algoexplorerapi.io","https://xna-mainnet-api.algonode.cloud"],indexerServers:["https://mainnet-idx.algonode.cloud","https://algoindexer.algoexplorerapi.io"],genesisID:"mainnet-v1.0",genesisHash:"wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",minimumTxFee:1e3,minimumAddressBalance:"100000"},T={currencyCode:"ALGO",displayName:"Algorand",pluginId:"algorand",walletType:"wallet:algorand",addressExplorer:"https://explorer.bitquery.io/algorand/address/%s",transactionExplorer:"https://explorer.bitquery.io/algorand/tx/%s",denominations:[{name:"ALGO",multiplier:"1000000",symbol:"\u023A"}],memoOptions:[{type:"text",memoName:"note",maxLength:1e3}],defaultSettings:{customFeeSettings:["fee"]},memoType:"text",metaTokens:(0,t.ZS)(P)},p=(0,g.P)({builtinTokens:P,currencyInfo:T,networkInfo:b,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Algorand requires bigint support")},getInnerPlugin(){return n(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(4431),l.e(780),l.e(8814),l.e(9612),l.e(7741)]).then(l.bind(l,37011))})}});var M=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Y={binanceApiServers:["https://dex.binance.org","https://dex-atlantic.binance.org","https://dex-asiapacific.binance.org","https://dex-european.binance.org"],beaconChainApiServers:["https://api.binance.org"]},U={currencyCode:"BNB",displayName:"BNB Beacon Chain",pluginId:"binance",walletType:"wallet:binance",addressExplorer:"https://explorer.binance.org/address/%s",transactionExplorer:"https://explorer.binance.org/tx/%s",blockExplorer:"https://explorer.binance.org/block/%s",denominations:[{name:"BNB",multiplier:"100000000",symbol:"B"}],memoOptions:[{type:"text",memoName:"memo",maxLength:128}],defaultSettings:{},memoMaxLength:128,memoType:"text",metaTokens:[]},K=(0,g.P)({currencyInfo:U,networkInfo:Y,getInnerPlugin(){return M(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(9669),l.e(8367),l.e(3978),l.e(7786),l.e(6341),l.e(9612),l.e(4026)]).then(l.bind(l,89662))})}});var $=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const q={bech32AddressPrefix:"axelar",bip39Path:"m/44'/118'/0'/0/0",chainInfo:{chainId:"axelar-dojo-1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/chain.json"},nativeDenom:"uaxl",pluginMnemonicKeyName:"axelarMnemonic",rpcNode:{url:"https://axelar-rpc.publicnode.com:443",headers:{}},archiveNode:{url:"https://axelararchive-rpc.quickapi.com:443",headers:{}}},de={currencyCode:"AXL",displayName:"Axelar",pluginId:"axelar",walletType:"wallet:axelar",addressExplorer:"https://www.mintscan.io/axelar/address/%s",transactionExplorer:"https://www.mintscan.io/axelar/tx/%s",denominations:[{name:"AXL",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:[]},Z=(0,g.P)({currencyInfo:de,networkInfo:q,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Axelar requires BigInt support")},getInnerPlugin(){return $(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var D=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const N={"usara-core1r9gc0rnxnzpq33u82f44aufgdwvyxv4wyepyck98m9v2pxua6naqr8h03z":{currencyCode:"SARA",displayName:"Pulsara",denominations:[{name:"SARA",multiplier:"1000000"}],networkLocation:{contractAddress:"usara-core1r9gc0rnxnzpq33u82f44aufgdwvyxv4wyepyck98m9v2pxua6naqr8h03z"}},ibce1e3674a0e4e1ef9c69646f9af8d9497173821826074622d831bab73ccb99a2d:{currencyCode:"USDC",displayName:"USDC from Noble",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/E1E3674A0E4E1EF9C69646F9AF8D9497173821826074622D831BAB73CCB99A2D"}},ibc13b2c536bb057ac79d5616b8ea1b9540ec1f2170718caff6f0083c966fffed0b:{currencyCode:"OSMO",displayName:"Osmosis",denominations:[{name:"OSMO",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F2170718CAFF6F0083C966FFFED0B"}},ibc45c001a5ae212d09879be4627c45b64d5636086285590d5145a51e18e9d16722:{currencyCode:"ATOM",displayName:"Cosmos Hub",denominations:[{name:"ATOM",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/45C001A5AE212D09879BE4627C45B64D5636086285590D5145A51E18E9D16722"}},ibc64ada1661e3c1a4293e3bb15d5bd13012d0db3d9002c117c30d7c429a32f4d51:{currencyCode:"GRAV",displayName:"Gravity Bridge",denominations:[{name:"GRAV",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/64ADA1661E3C1A4293E3BB15D5BD13012D0DB3D9002C117C30D7C429A32F4D51"}},ibcab305490f17eccae3f2b0398a572e0efb3af394b90c3a1663da28c1f0869f624:{currencyCode:"KUJI",displayName:"Kujira",denominations:[{name:"KUJI",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/AB305490F17ECCAE3F2B0398A572E0EFB3AF394B90C3A1663DA28C1F0869F624"}},ibc6d42727c323c8af2821966c83e0708f0c17fb0b0de38ba5e4d23f2ee7c0e9ddc:{currencyCode:"BAND",displayName:"Band Protocol",denominations:[{name:"BAND",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/6D42727C323C8AF2821966C83E0708F0C17FB0B0DE38BA5E4D23F2EE7C0E9DDC"}},ibc078eaf11288a47609fd894070ca8a1bfcebd9e08745ea7030f95d7adee2e22ca:{currencyCode:"EVMOS",displayName:"Evmos",denominations:[{name:"EVMOS",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"ibc/078EAF11288A47609FD894070CA8A1BFCEBD9E08745EA7030F95D7ADEE2E22CA"}},ibc3e35008738ac049c9c1a1e37f785e947a8daa9811b3ea3b25580664294056151:{currencyCode:"AXL",displayName:"Axelar",denominations:[{name:"AXL",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/3E35008738AC049C9C1A1E37F785E947A8DAA9811B3EA3B25580664294056151"}},ibc81bd95b0890b8d0130755e8338cf4aa48c7cbbd149c1d66ec9f9b62afae5c4f3:{currencyCode:"SEI",displayName:"Sei Network",denominations:[{name:"SEI",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/81BD95B0890B8D0130755E8338CF4AA48C7CBBD149C1D66EC9F9B62AFAE5C4F3"}},ibc12b178a885fc6891e0e09e1fb013973c5632b7093ce52d8f33b32e76e3bb6ea1:{currencyCode:"KAVA",displayName:"Kava",denominations:[{name:"KAVA",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/12B178A885FC6891E0E09E1FB013973C5632B7093CE52D8F33B32E76E3BB6EA1"}},ibc6c00e4aa0cc7618370f81f7378638ae6c48eff8c9203ce1c2357012b440ebdb7:{currencyCode:"USDT",displayName:"USDT from Kava",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"ibc/6C00E4AA0CC7618370F81F7378638AE6C48EFF8C9203CE1C2357012B440EBDB7"}},ibcf8ca5236869f819bc006eef088e67889a26e4140339757878f0f4e229cdda858:{currencyCode:"DYDX",displayName:"dYdX",denominations:[{name:"DYDX",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"ibc/F8CA5236869F819BC006EEF088E67889A26E4140339757878F0F4E229CDDA858"}}},k={bech32AddressPrefix:"core",bip39Path:"m/44'/990'/0'/0/0",chainInfo:{chainId:"coreum-mainnet-1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/coreum/chain.json"},nativeDenom:"ucore",pluginMnemonicKeyName:"coreumMnemonic",rpcNode:{url:"https://full-node.mainnet-1.coreum.dev:26657",headers:{}},archiveNode:{url:"https://full-node.mainnet-1.coreum.dev:26657",headers:{}}},ee={currencyCode:"COREUM",displayName:"Coreum",pluginId:"coreum",walletType:"wallet:coreum",addressExplorer:"https://explorer.coreum.com/coreum/accounts/%s",transactionExplorer:"https://explorer.coreum.com/coreum/transactions/%s",denominations:[{name:"COREUM",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:(0,t.ZS)(N)},te=(0,g.P)({builtinTokens:N,currencyInfo:ee,networkInfo:k,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Coreum requires BigInt support")},getInnerPlugin(){return D(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var re=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const fe={bech32AddressPrefix:"cosmos",bip39Path:"m/44'/118'/0'/0/0",chainInfo:{chainId:"cosmoshub-4",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/chain.json"},nativeDenom:"uatom",pluginMnemonicKeyName:"cosmoshubMnemonic",rpcNode:{url:"https://cosmos-rpc.publicnode.com:443",headers:{}},archiveNode:{url:"https://cosmosarchive-rpc.quickapi.com:443",headers:{}}},F={currencyCode:"ATOM",displayName:"Cosmos Hub",pluginId:"cosmoshub",walletType:"wallet:cosmoshub",addressExplorer:"https://www.mintscan.io/cosmos/address/%s",transactionExplorer:"https://www.mintscan.io/cosmos/tx/%s",denominations:[{name:"ATOM",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:[]},x=(0,g.P)({currencyInfo:F,networkInfo:fe,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Cosmos Hub requires BigInt support")},getInnerPlugin(){return re(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var L=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const V={uion:{currencyCode:"ION",displayName:"Ion",denominations:[{name:"ION",multiplier:"1000000"}],networkLocation:{contractAddress:"uion"}}},ie={bech32AddressPrefix:"osmo",bip39Path:"m/44'/118'/0'/0/0",chainInfo:{chainId:"osmosis-1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/chain.json"},nativeDenom:"uosmo",pluginMnemonicKeyName:"osmosisMnemonic",rpcNode:{url:"https://rpc.osmosis.zone:443",headers:{}},archiveNode:{url:"https://osmosisarchive-rpc.quickapi.com:443",headers:{}}},le={currencyCode:"OSMO",displayName:"Osmosis",pluginId:"osmosis",walletType:"wallet:osmosis",addressExplorer:"https://www.mintscan.io/osmosis/address/%s",transactionExplorer:"https://www.mintscan.io/osmosis/tx/%s",denominations:[{name:"OSMO",multiplier:"1000000",symbol:""}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:(0,t.ZS)(V)},se=(0,g.P)({currencyInfo:le,networkInfo:ie,builtinTokens:V,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Osmosis requires BigInt support")},getInnerPlugin(){return L(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}});var w=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const E={bech32AddressPrefix:"thor",bip39Path:"m/44'/931'/0'/0/0",chainInfo:{chainId:"thorchain-mainnet-v1",url:"https://raw.githubusercontent.com/cosmos/chain-registry/master/thorchain/chain.json"},defaultTransactionFeeUrl:{url:"https://thornode.ninerealms.com/thorchain/network",headers:{"x-client-id":"{{ninerealmsClientId}}"}},nativeDenom:"rune",pluginMnemonicKeyName:"thorchainruneMnemonic",rpcNode:{url:"https://rpc.ninerealms.com",headers:{"x-client-id":"{{ninerealmsClientId}}"}},archiveNode:{url:"https://rpc-v1.ninerealms.com",headers:{"x-client-id":"{{ninerealmsClientId}}"}}},d={currencyCode:"RUNE",displayName:"THORChain",pluginId:"thorchainrune",walletType:"wallet:thorchainrune",addressExplorer:"https://viewblock.io/thorchain/address/%s",transactionExplorer:"https://viewblock.io/thorchain/tx/%s",denominations:[{name:"RUNE",multiplier:"100000000",symbol:"\u16B1"}],memoOptions:[{type:"text",maxLength:250}],defaultSettings:{},memoMaxLength:250,memoType:"text",metaTokens:[]},e=(0,g.P)({currencyInfo:d,networkInfo:E,checkEnvironment(){if(l.g.BigInt==null)throw new Error("Thorchain requires BigInt support")},getInnerPlugin(){return w(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9669),l.e(8367),l.e(3720),l.e(3839),l.e(2701),l.e(9612),l.e(8222)]).then(l.bind(l,94831))})}}),o={axelar:Z,coreum:te,cosmoshub:x,osmosis:se,thorchainrune:e};var r=l(83718);const i=[{type:"text",memoName:"memo",maxLength:256}];var s=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const u={chainId:"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",eosActivationServers:["https://eospay.edge.app"],eosHyperionNodes:["https://api.eossweden.org"],eosNodes:["https://api.eoseoul.io","https://api.eoslaomao.com","https://mainnet.eoscannon.io","https://api.eos.wiki","https://mainnet.eosio.sg","https://eos.newdex.one","https://api.bitmars.one","https://node1.zbeos.com","https://api.eosn.io"],eosDfuseServers:["https://eos.dfuse.eosnation.io"],powerUpServers:["https://api.eospowerup.io/freePowerup"],uriProtocol:"eos"},h={currencyCode:"EOS",displayName:"EOS",memoOptions:i,pluginId:"eos",unsafeBroadcastTx:!0,walletType:"wallet:eos",addressExplorer:"https://bloks.io/account/%s",transactionExplorer:"https://bloks.io/transaction/%s",denominations:[{name:"EOS",multiplier:"10000",symbol:"E"}],defaultSettings:{},memoMaxLength:256,metaTokens:[]},c=(0,g.P)({currencyInfo:h,networkInfo:u,otherMethodNames:r.Fc,getInnerPlugin(){return s(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(6266),l.e(5234),l.e(4663),l.e(9612),l.e(5679)]).then(l.bind(l,58684))})}});var a=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const f={chainId:"4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11",eosActivationServers:["https://eospay.edge.app","https://account.teloscrew.com"],eosHyperionNodes:["https://telos.caleos.io"],eosNodes:["https://telos.caleos.io"],powerUpServers:[],eosDfuseServers:[],uriProtocol:"telos"},R={currencyCode:"TLOS",displayName:"Telos",memoOptions:i,pluginId:"telos",walletType:"wallet:telos",addressExplorer:"https://telos.bloks.io/account/%s",transactionExplorer:"https://telos.bloks.io/transaction/%s",denominations:[{name:"TLOS",multiplier:"10000",symbol:"T"}],defaultSettings:{},memoMaxLength:256,metaTokens:[]},X=(0,g.P)({currencyInfo:R,networkInfo:f,otherMethodNames:r.Fc,getInnerPlugin(){return a(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(6266),l.e(5234),l.e(4663),l.e(9612),l.e(5679)]).then(l.bind(l,58684))})}});var z=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const _={chainId:"1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4",eosActivationServers:[],eosDfuseServers:[],eosHyperionNodes:["https://api.waxsweden.org"],eosNodes:["https://api.waxsweden.org"],powerUpServers:[],uriProtocol:"wax"},ce={currencyCode:"WAX",displayName:"Wax",memoOptions:i,pluginId:"wax",walletType:"wallet:wax",addressExplorer:"https://wax.bloks.io/account/%s",transactionExplorer:"https://wax.bloks.io/transaction/%s",denominations:[{name:"WAX",multiplier:"100000000",symbol:"W"}],defaultSettings:{},memoMaxLength:256,metaTokens:[]},pe=(0,g.P)({currencyInfo:ce,networkInfo:_,otherMethodNames:r.Fc,getInnerPlugin(){return z(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(6266),l.e(5234),l.e(4663),l.e(9612),l.e(5679)]).then(l.bind(l,58684))})}}),qe={eos:c,telos:X,wax:pe};var ye=l(40571),ve=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const a0={filfoxUrl:"https://calibration.filfox.info/api/v1",filscanUrl:"https://api-cali.filscan.io/api/v1",hdPathCoinType:461,networkPrefix:"Testnet",rpcNode:{networkName:"Calibration",url:"https://api.calibration.node.glif.io/"}},Je={currencyCode:"tFIL",displayName:"Filecoin Testnet (Calibration)",pluginId:"calibration",requiredConfirmations:900,unsafeBroadcastTx:!0,walletType:"wallet:calibration",addressExplorer:"https://calibration.filfox.info/en/address/%s",transactionExplorer:"https://calibration.filfox.info/en/message/%s",denominations:[{name:"tFIL",multiplier:"1000000000000000000",symbol:"\u2A0E"},{name:"milliFIL",multiplier:"1000000000000000",symbol:"m\u2A0E"},{name:"microFIL",multiplier:"1000000000000",symbol:"\xB5\u2A0E"},{name:"nanoFIL",multiplier:"1000000000",symbol:"n\u2A0E"},{name:"picoFIL",multiplier:"1000000",symbol:"p\u2A0E"},{name:"femtoFIL",multiplier:"1000",symbol:"f\u2A0E"},{name:"attoFIL",multiplier:"1",symbol:"a\u2A0E"}],defaultSettings:{},metaTokens:[]},Ce=(0,g.P)({currencyInfo:Je,networkInfo:a0,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Filecoin requires BigInt support")},getInnerPlugin(){return ve(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(9539),l.e(9669),l.e(6291),l.e(7221),l.e(1964),l.e(7786),l.e(3839),l.e(6642),l.e(9612),l.e(8518)]).then(l.bind(l,59677))})}});var A0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const De={filfoxUrl:"https://filfox.info/api/v1",filscanUrl:"https://api-v2.filscan.io/api/v1",hdPathCoinType:461,networkPrefix:"Mainnet",rpcNode:{networkName:"Mainnet",url:"https://api.node.glif.io/"}},ke={currencyCode:"FIL",displayName:"Filecoin",pluginId:"filecoin",requiredConfirmations:900,walletType:"wallet:filecoin",addressExplorer:"https://filfox.info/en/address/%s",transactionExplorer:"https://filfox.info/en/message/%s",denominations:[{name:"FIL",multiplier:"1000000000000000000",symbol:"\u2A0E"},{name:"milliFIL",multiplier:"1000000000000000",symbol:"m\u2A0E"},{name:"microFIL",multiplier:"1000000000000",symbol:"\xB5\u2A0E"},{name:"nanoFIL",multiplier:"1000000000",symbol:"n\u2A0E"},{name:"picoFIL",multiplier:"1000000",symbol:"p\u2A0E"},{name:"femtoFIL",multiplier:"1000",symbol:"f\u2A0E"},{name:"attoFIL",multiplier:"1",symbol:"a\u2A0E"}],defaultSettings:{},metaTokens:[]},w0=(0,g.P)({currencyInfo:ke,networkInfo:De,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Filecoin requires BigInt support")},getInnerPlugin(){return A0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(9539),l.e(9669),l.e(6291),l.e(7221),l.e(1964),l.e(7786),l.e(3839),l.e(6642),l.e(9612),l.e(8518)]).then(l.bind(l,59677))})}});var Ae=l(24827),Be=l(3559),I0=Object.defineProperty,be=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,F0=Object.prototype.propertyIsEnumerable,ge=(J,W,I)=>W in J?I0(J,W,{enumerable:!0,configurable:!0,writable:!0,value:I}):J[W]=I,$e=(J,W)=>{for(var I in W||(W={}))Oe.call(W,I)&&ge(J,I,W[I]);if(be)for(var I of be(W))F0.call(W,I)&&ge(J,I,W[I]);return J},r0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const we={apiUrls:["https://fio.eu.eosamsterdam.net/v1/","https://fio.eosdac.io/v1/","https://fio.eosrio.io/v1/","https://fio.eos.barcelona/v1/","https://api.fio.alohaeos.com/v1/","https://fio.eosargentina.io/v1/","https://fio.cryptolions.io/v1/","https://api.fio.currencyhub.io/v1/","https://fio.eostribe.io/v1/","https://api.fio.services/v1/","https://fio.eosusa.news/v1/","https://fio.eosphere.io/v1/"],historyNodeUrls:["https://fio.eosphere.io/v1/","https://api.fio.detroitledger.tech/v1/","https://api.fiosweden.org/v1/","https://fio.blockpane.com/v1/","https://fio.greymass.com/v1/"],fioRegApiUrl:"https://reg.fioprotocol.io/public-api/",fioDomainRegUrl:"https://reg.fioprotocol.io/domain/",fioAddressRegUrl:"https://reg.fioprotocol.io/address/",fioStakingApyUrl:"https://fioprotocol.io/staking",defaultRef:"edge",fallbackRef:"edge",freeAddressRef:"edgefree",errorCodes:Ae.FK,chainId:"21dcae42c0182200e93f954a074011f9048a7624c6fe81d3c9541a614a88bd1c"},Re={currencyCode:"FIO",displayName:"FIO",pluginId:"fio",unsafeSyncNetwork:!0,walletType:"wallet:fio",addressExplorer:"https://fio.bloks.io/key/%s",transactionExplorer:"https://fio.bloks.io/transaction/%s",denominations:[{name:"FIO",multiplier:"1000000000",symbol:"\u1D6E"}],memoOptions:[],defaultSettings:$e({},we),metaTokens:[]},E0=(0,g.P)({currencyInfo:Re,networkInfo:we,otherMethodNames:Be.pq,getInnerPlugin(){return r0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(6291),l.e(7221),l.e(3720),l.e(5234),l.e(3491),l.e(9612),l.e(2805)]).then(l.bind(l,44285))})}});var Ue=l(825),Ie=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const N0={creatorApiServers:["https://creator.myhbarwallet.com"],mirrorNodes:["https://mainnet-public.mirrornode.hedera.com"],client:"Mainnet",checksumNetworkID:"0",maxFee:9e5},Xe={currencyCode:"HBAR",displayName:"Hedera",pluginId:"hedera",walletType:"wallet:hedera",addressExplorer:"https://hashscan.io/mainnet/account/%s",transactionExplorer:"https://hashscan.io/mainnet/transaction/%s",denominations:[{name:"HBAR",multiplier:"100000000",symbol:"\u210F"},{name:"tHBAR",multiplier:"1",symbol:"t\u210F"}],memoOptions:[{type:"text",memoName:"memo",maxLength:100}],defaultSettings:{},memoMaxLength:100,memoType:"text",metaTokens:[]},Fe=(0,g.P)({currencyInfo:Xe,networkInfo:N0,otherMethodNames:Ue.ni,getInnerPlugin(){return Ie(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(4431),l.e(780),l.e(1094),l.e(7481),l.e(9612),l.e(9894)]).then(l.bind(l,20212))})}});var P0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Ke={rpcNode:{networkName:"mainnet",defaultHost:"lightd1.pirate.black",defaultPort:443},defaultBirthday:204e4,defaultNetworkFee:"10000",transactionQueryLimit:999},Ee={currencyCode:"ARRR",displayName:"Pirate Chain",pluginId:"piratechain",requiredConfirmations:10,unsafeBroadcastTx:!0,unsafeSyncNetwork:!0,walletType:"wallet:piratechain",addressExplorer:"",transactionExplorer:"https://explorer.pirate.black/tx/%s",denominations:[{name:"ARRR",multiplier:"100000000",symbol:"P"}],memoOptions:[{type:"text",maxLength:512}],defaultSettings:{},memoType:"text",metaTokens:[]},k0=(0,g.P)({currencyInfo:Ee,networkInfo:Ke,getInnerPlugin(){return P0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(9612),l.e(4843)]).then(l.bind(l,80504))})}});var Ne=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Pe={1:{currencyCode:"LLM",displayName:"Liberland Merit",denominations:[{name:"LLM",multiplier:"1000000000000"}],networkLocation:{contractAddress:"1"}}},T0={rpcNodes:["wss://mainnet.liberland.org/"],subscanBaseUrl:void 0,subscanQueryLimit:100,partialFeeOffsetMultiplier:"2",lengthFeePerByte:"76800000"},He={currencyCode:"LLD",displayName:"Liberland",pluginId:"liberland",walletType:"wallet:liberland",addressExplorer:"",transactionExplorer:"https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Fmainnet.liberland.org%%2F#/explorer/query/%s",denominations:[{name:"LLD",multiplier:"1000000000000",symbol:""}],defaultSettings:{},metaTokens:(0,t.ZS)(Pe)},Ge=(0,g.P)({builtinTokens:Pe,currencyInfo:He,networkInfo:T0,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Liberland requires bigint support")},getInnerPlugin(){return Ne(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(533),l.e(5336),l.e(9612),l.e(3591)]).then(l.bind(l,34765))})}});var i0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Te={1:{currencyCode:"LKN",displayName:"Liberland Merit Testnet",denominations:[{name:"LKN",multiplier:"1000000000000"}],networkLocation:{contractAddress:"1"}}},We={rpcNodes:["wss://testchain.liberland.org/"],subscanBaseUrl:void 0,subscanQueryLimit:100,partialFeeOffsetMultiplier:"2",lengthFeePerByte:"76800000"},s0={currencyCode:"LDN",displayName:"Liberland Testnet",pluginId:"liberlandtestnet",walletType:"wallet:liberlandtestnet",addressExplorer:"",transactionExplorer:"https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Ftestchain.liberland.org%%2F#/explorer/query/%s",denominations:[{name:"LDN",multiplier:"1000000000000",symbol:""}],defaultSettings:{},metaTokens:(0,t.ZS)(Te)},ze=(0,g.P)({builtinTokens:Te,currencyInfo:s0,networkInfo:We,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Liberland Testnet requires bigint support")},getInnerPlugin(){return i0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(533),l.e(5336),l.e(9612),l.e(3591)]).then(l.bind(l,34765))})}});var Ze=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const c0={rpcNodes:["wss://rpc.polkadot.io"],subscanBaseUrl:"https://polkadot.api.subscan.io/api",subscanQueryLimit:100,partialFeeOffsetMultiplier:"1",lengthFeePerByte:"1000000"},Qe={currencyCode:"DOT",displayName:"Polkadot",pluginId:"polkadot",walletType:"wallet:polkadot",addressExplorer:"https://polkadot.subscan.io/account/%s",transactionExplorer:"https://polkadot.subscan.io/extrinsic/%s",denominations:[{name:"DOT",multiplier:"10000000000",symbol:""}],memoOptions:[],defaultSettings:{},metaTokens:[]},xe=(0,g.P)({currencyInfo:Qe,networkInfo:c0,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Polkadot requires bigint support")},getInnerPlugin(){return Ze(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(533),l.e(5336),l.e(9612),l.e(3591)]).then(l.bind(l,34765))})}});var x0=l(49349),Ve=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Me={DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263:{currencyCode:"BONK",displayName:"Bonk",denominations:[{name:"BONK",multiplier:"100000"}],networkLocation:{contractAddress:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"}},kshrEkxuc7zPAvLxvabxoERKxK6BfariPcjBoiHvM7B:{currencyCode:"GMT",displayName:"STEPN",denominations:[{name:"GMT",multiplier:"1000000000"}],networkLocation:{contractAddress:"kshrEkxuc7zPAvLxvabxoERKxK6BfariPcjBoiHvM7B"}},CWE8jPTUYhdCTZYWPTe1o5DFqfdjzWKc9WKz6rSjQUdG:{currencyCode:"LINK",displayName:"Wrapped Chainlink",denominations:[{name:"LINK",multiplier:"1000000"}],networkLocation:{contractAddress:"CWE8jPTUYhdCTZYWPTe1o5DFqfdjzWKc9WKz6rSjQUdG"}},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{currencyCode:"PYTH",displayName:"Pyth Network",denominations:[{name:"PYTH",multiplier:"1000000"}],networkLocation:{contractAddress:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}},rndrizKT3MK1iimdxRdWabcF7Zg7AR5T4nud4EkHBof:{currencyCode:"RNDR",displayName:"Render Token",denominations:[{name:"RNDR",multiplier:"100000000"}],networkLocation:{contractAddress:"rndrizKT3MK1iimdxRdWabcF7Zg7AR5T4nud4EkHBof"}},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}},Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB:{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}}},M0={rpcNodes:["https://api.mainnet-beta.solana.com","https://solana-mainnet.gateway.pokt.network/v1/lb/{{poktPortalApiKey}}"],rpcNodesArchival:["https://api.mainnet-beta.solana.com","https://solana-mainnet.g.alchemy.com/v2/{{alchemyApiKey}}"],commitment:"confirmed",txQueryLimit:1e3,derivationPath:"m/44'/501'/0'/0'",memoPublicKey:"MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr",tokenPublicKey:"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",associatedTokenPublicKey:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"},je={currencyCode:"SOL",displayName:"Solana",pluginId:"solana",walletType:"wallet:solana",addressExplorer:"https://explorer.solana.com/address/%s",transactionExplorer:"https://explorer.solana.com/tx/%s",denominations:[{name:"SOL",multiplier:"1000000000",symbol:"\u25CE"}],memoOptions:[{type:"text",memoName:"memo",maxLength:32}],defaultSettings:{},memoType:"text",metaTokens:(0,t.ZS)(Me)},Le=(0,g.P)({currencyInfo:je,networkInfo:M0,builtinTokens:Me,checkEnvironment:()=>{if(l.g.BigInt==null)throw new Error("Solana requires bigint support")},getInnerPlugin(){return Ve(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(780),l.e(8193),l.e(9612),l.e(8601)]).then(l.bind(l,18226))})}});var L0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const Ye={baseReserve:"10000000",stellarServers:["https://horizon.stellar.org"]},Se={currencyCode:"XLM",displayName:"Stellar",pluginId:"stellar",walletType:"wallet:stellar",addressExplorer:"https://stellarchain.io/address/%s",transactionExplorer:"https://stellarchain.io/tx/%s",denominations:[{name:"XLM",multiplier:"10000000",symbol:"*"}],memoOptions:[{type:"text",maxLength:28},{type:"number",maxValue:"18446744073709551615"},{type:"hex",maxBytes:32,minBytes:32}],multipleMemos:!0,defaultSettings:{},memoMaxLength:19,memoType:"text",metaTokens:[]},d0=(0,g.P)({currencyInfo:Se,networkInfo:Ye,getInnerPlugin(){return L0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(9669),l.e(780),l.e(3978),l.e(3720),l.e(5836),l.e(2428),l.e(9612),l.e(4870)]).then(l.bind(l,85309))})}});var l0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const _e={tezosRpcNodes:["https://rpc.tzbeta.net","https://mainnet.tezrpc.me"],tezosApiServers:["https://api.tzkt.io"],fee:{transaction:"1350",reveal:"1300",burn:"257000"},limit:{gas:"10600",storage:"277"}},S0={currencyCode:"XTZ",displayName:"Tezos",pluginId:"tezos",walletType:"wallet:tezos",addressExplorer:"https://tzstats.com/%s",transactionExplorer:"https://tzstats.com/%s",denominations:[{name:"XTZ",multiplier:"1000000",symbol:"t"}],memoOptions:[],defaultSettings:{},metaTokens:[]},e0=(0,g.P)({currencyInfo:S0,networkInfo:_e,getInnerPlugin(){return l0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(2153),l.e(6266),l.e(5835),l.e(4618),l.e(9612),l.e(4092)]).then(l.bind(l,19156))})}});var f0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const t0={TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn:{currencyCode:"USDD",displayName:"Decentralized USD",denominations:[{name:"USDD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn"}},TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t:{currencyCode:"USDT",displayName:"Tether",denominations:[{name:"USDT",multiplier:"1000000"}],networkLocation:{contractAddress:"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"}},TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8:{currencyCode:"USDC",displayName:"USD Coin",denominations:[{name:"USDC",multiplier:"1000000"}],networkLocation:{contractAddress:"TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8"}},TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR:{currencyCode:"WTRX",displayName:"Wrapped TRX",denominations:[{name:"WTRX",multiplier:"1000000"}],networkLocation:{contractAddress:"TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR"}},TUpMhErZL2fhh4sVNULAbNKLokS4GjC1F4:{currencyCode:"TUSD",displayName:"TrueUSD",denominations:[{name:"TUSD",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TUpMhErZL2fhh4sVNULAbNKLokS4GjC1F4"}},TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4:{currencyCode:"BTT",displayName:"BitTorrent",denominations:[{name:"BTT",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4"}},TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9:{currencyCode:"JST",displayName:"JUST",denominations:[{name:"JST",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9"}},TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7:{currencyCode:"WIN",displayName:"WINkLink",denominations:[{name:"WIN",multiplier:"1000000"}],networkLocation:{contractAddress:"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7"}},TFczxzPhnThNSqr5by8tvxsdCFRRz6cPNq:{currencyCode:"NFT",displayName:"APENFT",denominations:[{name:"NFT",multiplier:"1000000"}],networkLocation:{contractAddress:"TFczxzPhnThNSqr5by8tvxsdCFRRz6cPNq"}},TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S:{currencyCode:"SUN",displayName:"SUN",denominations:[{name:"SUN",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S"}},TMwFHYXLJaRUPeW6421aqXL4ZEzPRFGkGT:{currencyCode:"USDJ",displayName:"JUST Stablecoin",denominations:[{name:"USDJ",multiplier:"1000000000000000000"}],networkLocation:{contractAddress:"TMwFHYXLJaRUPeW6421aqXL4ZEzPRFGkGT"}}},u0={tronApiServers:["https://api.trongrid.io"],tronNodeServers:["https://rpc.ankr.com/http/tron","https://rpc.coinsdo.net/trx-api","http://3.225.171.164:8090","http://52.53.189.99:8090","http://18.196.99.16:8090","http://34.253.187.192:8090","http://54.252.224.209:8090","http://3.218.137.187:8090","http://34.237.210.82:8090"],defaultDerivationPath:"m/44'/195'/0'/0/0",defaultFeeLimit:1e9,defaultFreezeDurationInDays:3},m0={currencyCode:"TRX",displayName:"Tron",pluginId:"tron",walletType:"wallet:tron",addressExplorer:"https://tronscan.org/#/address/%s",transactionExplorer:"https://tronscan.org/#/transaction/%s",denominations:[{name:"TRX",multiplier:"1000000",symbol:"T"}],memoOptions:[{type:"text",memoName:"note"}],defaultSettings:{},memoType:"text",metaTokens:(0,t.ZS)(t0)},h0=(0,g.P)({builtinTokens:t0,currencyInfo:m0,networkInfo:u0,getInnerPlugin(){return f0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(6266),l.e(5835),l.e(9539),l.e(9669),l.e(4431),l.e(6291),l.e(7221),l.e(8367),l.e(1964),l.e(1094),l.e(7202),l.e(9612),l.e(2005)]).then(l.bind(l,74227))})}});var n0=(J,W,I)=>new Promise((ne,j)=>{var oe=v=>{try{B(I.next(v))}catch(O){j(O)}},ae=v=>{try{B(I.throw(v))}catch(O){j(O)}},B=v=>v.done?ne(v.value):Promise.resolve(v.value).then(oe,ae);B((I=I.apply(J,W)).next())});const D0={rpcNode:{networkName:"mainnet",defaultHost:"mainnet.lightwalletd.com",defaultPort:9067},defaultBirthday:131e4,defaultNetworkFee:"10000"},p0={currencyCode:"ZEC",displayName:"Zcash",pluginId:"zcash",requiredConfirmations:10,unsafeBroadcastTx:!0,unsafeSyncNetwork:!0,walletType:"wallet:zcash",addressExplorer:"https://zcashblockexplorer.com/ua/%s",transactionExplorer:"https://blockchair.com/zcash/transaction/%s?from=edgeapp",denominations:[{name:"ZEC",multiplier:"100000000",symbol:"Z"}],memoOptions:[{type:"text",maxLength:512}],defaultSettings:{},memoType:"text",metaTokens:[]},y0=(0,g.P)({currencyInfo:p0,networkInfo:D0,getInnerPlugin(){return n0(this,null,function*(){return yield Promise.all([l.e(7428),l.e(246),l.e(2153),l.e(9612),l.e(2159)]).then(l.bind(l,62560))})}});var v0=Object.defineProperty,b0=Object.defineProperties,o0=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,C0=Object.prototype.hasOwnProperty,U0=Object.prototype.propertyIsEnumerable,O0=(J,W,I)=>W in J?v0(J,W,{enumerable:!0,configurable:!0,writable:!0,value:I}):J[W]=I,B0=(J,W)=>{for(var I in W||(W={}))C0.call(W,I)&&O0(J,I,W[I]);if(g0)for(var I of g0(W))U0.call(W,I)&&O0(J,I,W[I]);return J},R0=(J,W)=>b0(J,o0(W));const X0=R0(B0(B0(B0({},qe),ye.s),o),{algorand:p,binance:K,filecoin:w0,calibration:Ce,fio:E0,hedera:Fe,liberland:Ge,liberlandtestnet:ze,piratechain:k0,polkadot:xe,ripple:x0.H$,solana:Le,stellar:d0,tezos:e0,tron:h0,zcash:y0});typeof window<"u"&&typeof window.addEdgeCorePlugins=="function"&&window.addEdgeCorePlugins(X0);var W0=null})()})();
@@ -6,6 +6,6 @@ Invalid return value ${JSON.stringify(e)}
6
6
  ${(0,y.oX)(n)}`),new Error("Invalid return value on transaction send")}logError(e,t){(0,y.HY)(t).includes("rateLimited")?this.ethEngine.log(e,t):this.ethEngine.error(e,t)}serialServers(e){return be(this,null,function*(){var t;const n=((t=this.config.servers)!=null?t:[]).map(r=>()=>be(this,null,function*(){return yield e(r)}));return yield(0,y.QJ)((0,y.Sy)(n))})}parallelServers(e){return be(this,null,function*(){var t;const n=((t=this.config.servers)!=null?t:[]).map(r=>be(this,null,function*(){return yield e(r)}));return yield(0,y.Wp)(n)})}throwError(e,t,n){switch(e.status){case 402:case 429:case 432:throw new Error("rateLimited");default:throw new Error(`${t} The server returned error code ${e.status} for ${n}`)}}}var ye=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class rt extends he{constructor(){super(...arguments),this.broadcast=null,this.fetchTokenBalance=null,this.fetchTokenBalances=null,this.fetchTxs=null,this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchBlockheight=()=>ye(this,null,function*(){try{const e=yield this.fetchPostAmberdataRpc("eth_blockNumber",[]);return{blockHeight:parseInt((0,P.tT)(e).result,16),server:"amberdata"}}catch(e){throw this.logError("checkBlockHeightAmberdata",e),new Error("checkTxsAmberdata (regular tx) response is invalid")}}),this.fetchNonce=()=>ye(this,null,function*(){const e=this.ethEngine.walletLocalData.publicKey;try{const t=yield this.fetchPostAmberdataRpc("eth_getTransactionCount",[e,"latest"]);return{newNonce:`${parseInt((0,P.tT)(t).result,16)}`,server:"amberdata"}}catch(t){throw this.logError("checkNonceAmberdata",t),new Error("Amberdata returned invalid JSON")}})}fetchPostAmberdataRpc(e){return ye(this,arguments,function*(t,n=[]){const{amberdataApiKey:r=""}=this.ethEngine.initOptions;return yield this.serialServers(a=>ye(this,null,function*(){const i=`${this.config.servers[0]}`,o={jsonrpc:"2.0",method:t,params:n,id:1},s=yield this.ethEngine.fetchCors(i,{headers:{"x-amberdata-blockchain-id":this.ethEngine.networkInfo.amberDataBlockchainId,"x-api-key":r,"Content-Type":"application/json"},method:"POST",body:JSON.stringify(o)}),l=ie()(i,{},!0);return s.ok||this.throwError(s,"fetchPostAmberdataRpc",l),yield s.json()}))})}fetchGetAmberdataApi(e){return ye(this,null,function*(){const{amberdataApiKey:t=""}=this.ethEngine.initOptions;return yield this.serialServers(n=>ye(this,null,function*(){const r=`${st._E}${e}`,a=yield this.ethEngine.fetchCors(r,{headers:{"x-amberdata-blockchain-id":this.ethEngine.networkInfo.amberDataBlockchainId,"x-api-key":t}});return a.ok||this.throwError(a,"fetchGetAmberdata",r),yield a.json()}))})}}var ae=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class ot extends he{constructor(){super(...arguments),this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchTokenBalances=null,this.fetchTxs=null,this.fetchBlockheight=()=>ae(this,null,function*(){try{const{result:e,server:t}=yield this.serialServers(r=>ae(this,null,function*(){const a=yield this.fetchGetBlockbook(r,"/api/v2");return{server:r,result:a}}));return{blockHeight:(0,P.EX)(e).blockbook.bestHeight,server:t}}catch(e){throw this.ethEngine.log("checkBlockHeightBlockbook blockHeight ",e),new Error("checkBlockHeightBlockbook returned invalid JSON")}}),this.broadcast=e=>ae(this,null,function*(){return yield this.parallelServers(t=>ae(this,null,function*(){const n=yield this.fetchGetBlockbook(t,`/api/v2/sendtx/${e.signedTx}`);return{result:this.broadcastResponseHandler(n,t,e),server:"blockbook"}}))}),this.fetchNonce=()=>ae(this,null,function*(){return yield this.checkAddressBlockbook()}),this.fetchTokenBalance=()=>ae(this,null,function*(){return yield this.checkAddressBlockbook()})}checkAddressBlockbook(){return ae(this,null,function*(){const e=this.ethEngine.walletLocalData.publicKey.toLowerCase(),t={newNonce:"0",tokenBal:{},server:""},n="/api/v2/address/"+e+"?&details=tokenBalances",{result:r,server:a}=yield this.serialServers(u=>ae(this,null,function*(){const h=yield this.fetchGetBlockbook(u,n);return{server:u,result:h}}));let i;try{i=(0,P.hZ)(r)}catch{throw this.ethEngine.error(`checkTxsBlockbook ${a} error BlockbookAddress ${JSON.stringify(r)}`),new Error(`checkTxsBlockbook ${a} returned invalid JSON for BlockbookAddress`)}const{nonce:o,tokens:s,balance:l}=i;t.newNonce=o,t.tokenBal!=null&&(t.tokenBal[this.ethEngine.currencyInfo.currencyCode]=l),t.server=a;for(const u of s)try{const{symbol:h,balance:f}=(0,P.OM)(u);t.tokenBal[h]=f}catch{throw this.ethEngine.error(`checkTxsBlockbook ${a} BlockbookTokenBalance ${JSON.stringify(u)}`),new Error(`checkTxsBlockbook ${a} returned invalid JSON for BlockbookTokenBalance`)}return t})}fetchGetBlockbook(e,t){return ae(this,null,function*(){const n=e+t;return yield(e.includes("trezor")?yield this.ethEngine.fetchCors(n,{headers:{"User-Agent":"http.agent"}}):yield this.ethEngine.fetchCors(n)).json()})}}var Te=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class it extends he{constructor(){super(...arguments),this.broadcast=null,this.fetchNonce=null,this.fetchTokenBalances=null,this.fetchTxs=null,this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchBlockheight=()=>Te(this,null,function*(){try{const e=yield this.fetchGetBlockchair(`/${this.ethEngine.currencyInfo.pluginId}/stats`,!1);return{blockHeight:parseInt((0,P.cc)(e).data.blocks.toString(),10),server:"blockchair"}}catch(e){throw this.logError(e),new Error("checkBlockHeightBlockchair returned invalid JSON")}}),this.fetchTokenBalance=e=>Te(this,null,function*(){let t;const n=this.ethEngine.walletLocalData.publicKey,r=`/${this.ethEngine.currencyInfo.pluginId}/dashboards/address/${n}?erc_20=true`;try{const i=yield this.fetchGetBlockchair(r,!1);t=(0,P.x4)(i)}catch(i){throw this.logError("checkTokenBalBlockchair",i),new Error("checkTokenBalBlockchair response is invalid")}const a={[this.ethEngine.currencyInfo.currencyCode]:t.data[n].address.balance};for(const i of t.data[n].layer_2.erc_20)try{const o=(0,P.aB)(i),s=o.balance,l=o.token_address,u=o.token_symbol,h=this.ethEngine.getTokenInfo(u);h!=null&&h.contractAddress===l&&(a[u]=s)}catch(o){throw this.ethEngine.error(`checkTokenBalBlockchair tokenData ${(0,y.HY)(o)}
7
7
  ${JSON.stringify(i)}`),new Error("checkTokenBalBlockchair tokenData is invalid")}return{tokenBal:a,server:"blockchair"}})}fetchGetBlockchair(e,t=!1){return Te(this,null,function*(){const{blockchairApiKey:n}=this.ethEngine.initOptions;return yield this.serialServers(r=>Te(this,null,function*(){const a=t&&n!=null?`&key=${n}`:"",i=`${r}${e}`,o=yield this.ethEngine.fetchCors(`${i}${a}`);return o.ok||this.throwError(o,"fetchGetBlockchair",i),yield o.json()}))})}}var Le=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class at extends he{constructor(){super(...arguments),this.fetchNonce=null,this.fetchBlockheight=null,this.fetchTokenBalance=null,this.fetchTokenBalances=null,this.fetchTxs=null,this.getBaseFeePerGas=null,this.multicastRpc=null,this.broadcast=e=>Le(this,null,function*(){return yield this.parallelServers(t=>Le(this,null,function*(){const n=`v1/${this.ethEngine.currencyInfo.currencyCode.toLowerCase()}/main/txs/push`,r=e.signedTx.replace("0x",""),a=yield this.fetchPostBlockcypher(n,{tx:r},t);return{result:this.broadcastResponseHandler(a,t,e),server:"blockcypher"}}))})}fetchPostBlockcypher(e,t,n){return Le(this,null,function*(){const{blockcypherApiKey:r}=this.ethEngine.initOptions;let a="";r!=null&&r.length>5&&(a="&token="+r);const i=`${n}/${e}${a}`,o=yield this.ethEngine.fetchCors(i,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify(t)}),s=ie()(i,{},!0);return o.ok||this.throwError(o,"fetchPostBlockcypher",s.hostname),yield o.json()})}}var lt=E(62177);const ct=d=>{const e=(0,p.XC)(d);if(/0[xX][0-9a-fA-F]+/.test(e))return parseInt(e,16);throw new TypeError("Expected a hex number")},ut=d=>{const e=(0,p.XC)(d);if(/0[xX][0-9a-fA-F]+/.test(e))return(0,c.add)(d,"0");throw new TypeError("Expected a hex number")},Be=(0,p.su)({result:ct}),ht=(0,p.su)({result:ut}),dt=(0,p.su)({safeLow:p.mH,average:p.mH,fast:p.mH,fastest:p.mH}),ft=(0,p.su)({types:(0,p.su)((0,p._2)((0,p.su)({name:p.XC,type:p.XC}))),primaryType:p.XC,domain:p.JC,message:p.JC});var pt=E(86352),ge=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});const Ce=(d,e)=>{const t=Object.keys(e);for(const n of t){const r=e[n];typeof r=="string"&&d(` ${n}: ${(0,c.div)(r,"1000000000",18)} gwei`)}},mt=(d,e,t,n,r)=>({infoFeeProvider:()=>ge(void 0,null,function*(){return yield wt(d,e)}),externalFeeProviders:[gt,vt,yt].map(i=>()=>ge(void 0,null,function*(){return yield i(d,e,t,n,r)}))}),yt=(d,e,t,n,r)=>ge(void 0,null,function*(){const{networkAdapterConfigs:a,supportsEIP1559:i=!1}=r;if(i)return;const o=a.find(w=>w.type==="rpc");if(o==null)return;const s=o.servers,l=(0,y.sD)(s,1)[0],u={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({method:"eth_gasPrice",params:[],id:1,jsonrpc:"2.0"})},h=yield d(l,u);if(!h.ok){const w=yield h.text();throw new Error(`fetchFeesFromRpc fetch error: ${w}`)}const f=yield h.json(),m=(0,p.Vk)(P.tT)(f);if(m==null)throw new Error(`fetchFeesFromRpc ${l} returned invalid json: ${f}`);const{result:g}=m,v=(0,y.Z8)(g),b={lowFee:(0,c.mul)(v,"1"),standardFeeLow:(0,c.mul)(v,"1.06"),standardFeeHigh:(0,c.mul)(v,"1.12"),highFee:(0,c.mul)(v,"1.25")};return n(`fetchFeesFromRpc: ${e.currencyCode}`),Ce(n,b),b}),gt=(d,e,t,n,r)=>ge(void 0,null,function*(){const{networkAdapterConfigs:a}=r,i=a.find(N=>N.type==="evmscan");if(i==null)return;const o=i.servers,s=Ne(t,e,n);if(o==null||s==null)return;const l=`&apikey=${Array.isArray(s)?(0,y.sD)(s,1)[0]:s!=null?s:""}`,u=`${(0,y.sD)(o,1)[0]}/api?module=gastracker&action=gasoracle${l}`,h=yield d(u);if(!h.ok)throw new Error(`EvmScan fetch error: ${JSON.stringify(h)}`);const f=yield h.json(),m=f.message.includes("NOTOK");if(!(f!=null&&!m))throw new Error(`fetchFeesFromEvmScan unrecognized response message: ${f.message}`);const{SafeGasPrice:v,ProposeGasPrice:b,FastGasPrice:w}=(0,P.TI)(f.result),k=parseFloat(v);let C=parseFloat(b),S=parseFloat(w);C<=k&&(C=k+1),S<=C&&(S=C+1);const G=`${k*Y}`,B=`${(k+C)/2*Y}`,Q=`${S*Y}`,x=`${S*Y/Pe}`,$={lowFee:G,standardFeeLow:B,standardFeeHigh:Q,highFee:x};return n(`fetchFeesFromEvmScan: ${e.currencyCode}`),Ce(n,$),$}),vt=(d,e,t,n,r)=>ge(void 0,null,function*(){const{ethGasStationUrl:a}=r,i=Et(t,e,n);if(a==null||i==null)return;const o=i?`?api-key=${i||""}`:"",l=yield(yield d(`${a}${o}`)).json(),u=dt(l);if(e.currencyCode==="MATIC"&&(u.safeLow*=10,u.average=(l.fast+l.safeLow)/2*10,u.fast=l.standard*10,u.fastest*=10),u.safeLow<=0||u.safeLow>ue)throw new Error("Invalid safeLow value from Gas Station");if(u.average<1||u.average>ue)throw new Error("Invalid average value from Gas Station");if(u.fast<1||u.fast>ue)throw new Error("Invalid fastest value from Gas Station");if(u.fastest<1||u.fastest>ue)throw new Error("Invalid fastest value from Gas Station");u.average<=u.safeLow&&(u.average=u.safeLow+1),u.fast<=u.average&&(u.fast=u.average+1),u.fastest<=u.fast&&(u.fastest=u.fast+1);let h=u.safeLow,f=u.fast,m=((u.fast+u.fastest)*.5+u.fastest)*.5,g=m>u.fastest?m:u.fastest;h=Math.round(h)*pe,f=Math.round(f)*pe,m=Math.round(m)*pe,g=Math.round(g)*pe;const v={lowFee:h.toString(),standardFeeLow:f.toString(),standardFeeHigh:m.toString(),highFee:g.toString()};return n(`fetchFeesFromEvmGasStation: ${e.currencyCode}`),Ce(n,v),v}),wt=(d,e,...t)=>ge(void 0,[d,e,...t],function*(n,{pluginId:r},a={}){const o=yield(yield(0,pt.Vn)(`v1/networkFees/${r}`,void 0,a.timeout,n)).json();return(0,P.b6)(o)}),Ne=(d,e,t)=>{const{evmScanApiKey:n,etherscanApiKey:r,ftmscanApiKey:a,bscscanApiKey:i,polygonscanApiKey:o}=d;if(n!=null)return n;const{currencyCode:s}=e;if(s==="ETH"&&r!=null)return t.warn("INIT OPTION 'etherscanApiKey' IS DEPRECATED. USE 'evmScanApiKey' INSTEAD"),r;if(s==="FTM"&&a!=null)return t.warn("INIT OPTION 'ftmscanApiKey' IS DEPRECATED. USE 'evmScanApiKey' INSTEAD"),a;if(s==="BNB"&&i!=null)return t.warn("INIT OPTION 'bscscanApiKey' IS DEPRECATED. USE 'evmScanApiKey' INSTEAD"),i;if(s==="MATIC"&&o!=null)return t.warn("INIT OPTION 'polygonscanApiKey' IS DEPRECATED. USE 'evmScanApiKey' INSTEAD"),o},Et=(d,e,t)=>{const{gasStationApiKey:n,ethGasStationApiKey:r}=d;if(n!=null)return n;const{currencyCode:a}=e;if(a==="ETH"&&r!=null)return t.warn("INIT OPTION 'ethGasStationApiKey' IS DEPRECATED. USE 'gasStationApiKey' INSTEAD"),r};var V=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});const kt=50;class Pt extends he{constructor(){super(...arguments),this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchTokenBalances=null,this.fetchBlockheight=()=>V(this,null,function*(){const{result:e,server:t}=yield this.serialServers(r=>V(this,null,function*(){if(!r.includes("etherscan")&&!r.includes("blockscout"))throw new Error(`Unsupported command eth_blockNumber in ${r}`);let a="?module=proxy&action=eth_blockNumber";r.includes("blockscout")&&(a="?module=block&action=eth_block_number");const i=yield this.fetchGetEtherscan(r,a);if(typeof i.result!="string"){const o=`Invalid return value eth_blockNumber in ${r}`;throw this.ethEngine.error(o),new Error(o)}return{server:r,result:i}}));return{blockHeight:Be(e).result,server:t}}),this.broadcast=e=>V(this,null,function*(){return yield this.parallelServers(t=>V(this,null,function*(){const n=`?module=proxy&action=eth_sendRawTransaction&hex=${e.signedTx}`,r=yield this.fetchGetEtherscan(t,n);return{result:this.broadcastResponseHandler(r,t,e),server:"etherscan"}}))}),this.fetchNonce=()=>V(this,null,function*(){const t=`?module=proxy&action=eth_getTransactionCount&address=${this.ethEngine.walletLocalData.publicKey}&tag=latest`,{result:n,server:r}=yield this.serialServers(i=>V(this,null,function*(){if(!i.includes("etherscan")&&!i.includes("blockscout"))throw new Error(`Unsupported command eth_getTransactionCount in ${i}`);const o=yield this.fetchGetEtherscan(i,t);if(typeof o.result!="string"){const s=`Invalid return value eth_getTransactionCount in ${i}`;throw this.ethEngine.error(s),new Error(s)}return{server:i,result:o}}));return{newNonce:ht(n).result,server:r}}),this.fetchTokenBalance=e=>V(this,null,function*(){const t=this.ethEngine.walletLocalData.publicKey;let n,r,a,i;try{if(e===this.ethEngine.currencyInfo.currencyCode){const o=`?module=account&action=balance&address=${t}&tag=latest`;n=yield this.serialServers(s=>V(this,null,function*(){const l=yield this.fetchGetEtherscan(s,o);if(typeof l.result!="string"||l.result===""){const u=`Invalid return value eth_getBalance in ${s}`;throw this.ethEngine.error(u),new Error(u)}return(0,lt.jD)(l.result),{server:s,result:l}})),r=n.result,a=n.server}else{const o=this.ethEngine.getTokenInfo(e);if(o!=null&&typeof o.contractAddress=="string"){const l=`?module=account&action=tokenbalance&contractaddress=${o.contractAddress}&address=${t}&tag=latest`,u=yield this.serialServers(h=>V(this,null,function*(){const f=yield this.fetchGetEtherscan(h,l);if(typeof f.result!="string"||f.result===""){const m=`Invalid return value getTokenBalance in ${h}`;throw this.ethEngine.error(m),new Error(m)}return{server:h,result:f}}));r=u.result,a=u.server}}i=(0,P.tT)(r)}catch(o){throw this.ethEngine.error(`checkTokenBalEthscan token ${e} response ${String(n!=null?n:"")} `,o),new Error(`checkTokenBalEthscan invalid ${e} response ${JSON.stringify(r)}`)}if(/^\d+$/.test(i.result)){const o=i.result;return{tokenBal:{[e]:o},server:a}}else throw new Error(`checkTokenBalEthscan returned invalid JSON for ${e}`)}),this.fetchTxs=e=>V(this,null,function*(){var t,n,r;const{startBlock:a,currencyCode:i}=e;let o,s;if(i===this.ethEngine.currencyInfo.currencyCode){const u=yield this.getAllTxsEthscan(a,i,P.EV,{searchRegularTxs:!0}),h=yield this.getAllTxsEthscan(a,i,P.xF,{searchRegularTxs:!1});o=(n=(t=u.server)!=null?t:h.server)!=null?n:"",s=[...u.allTransactions,...h.allTransactions]}else{const u=this.ethEngine.getTokenInfo(i);if(u!=null&&typeof u.contractAddress=="string"){const h=u.contractAddress,f=yield this.getAllTxsEthscan(a,i,P.T0,{contractAddress:h});o=(r=f.server)!=null?r:"",s=f.allTransactions}else return{}}const l={blockHeight:a,edgeTransactions:s};return{tokenTxs:{[i]:l},server:o}})}fetchGetEtherscan(e,t){return V(this,null,function*(){const n=Ne(this.ethEngine.initOptions,this.ethEngine.currencyInfo,this.ethEngine.log);e.indexOf("cors-http")===0&&(e=e.replace(/^cors-http/,"http"));const a=Array.isArray(n)?(0,y.sD)(n,1)[0]:n!=null?n:"",i=a!==""?`&apikey=${a}`:"",o=`${e}/api${t}`,s=yield this.ethEngine.fetchCors(`${o}${i}`);return s.ok||this.throwError(s,"fetchGetEtherscan",o),yield s.json()})}getAllTxsEthscan(e,t,n,r){return V(this,null,function*(){const a=this.ethEngine.walletLocalData.publicKey;let i=1;const o=[];let s;const l=r.contractAddress,u=r.searchRegularTxs;for(;;){const h=kt;let f;t===this.ethEngine.currencyInfo.currencyCode?f=`?action=${u?"txlist":"txlistinternal"}&module=account`:f=`?action=tokentx&contractaddress=${l}&module=account`;const m=`${f}&address=${a}&startblock=${e}&endblock=999999999&sort=asc&page=${i}&offset=${h}`,g=this.config.servers.length===0?{result:{result:[]},server:void 0}:yield this.serialServers(b=>V(this,null,function*(){const w=yield this.fetchGetEtherscan(b,m);if(typeof w.result!="object"||typeof w.result.length!="number"){const k=`Invalid return value getTransactions in ${b}`;throw w.result!=="Max rate limit reached"&&this.ethEngine.error(k),new Error(k)}return{server:b,result:w}}));s=g.server;const v=g.result.result;for(let b=0;b<v.length;b++)try{const w=n(v[b]),k=yield this.processEvmScanTransaction(w,t);o.push(k)}catch(w){throw this.ethEngine.error(`getAllTxsEthscan ${n.name}
8
8
  ${(0,y.HY)(w)}
9
- ${JSON.stringify(v[b])}`),new Error(`getAllTxsEthscan ${n.name} is invalid`)}if(v.length===0)break;i++}return{allTransactions:o,server:s}})}processEvmScanTransaction(e,t){return V(this,null,function*(){var n;const r=[],a=(n=e.hash)!=null?n:e.transactionHash;if(a==null)throw new Error("Invalid transaction result format");const i=e.from.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase(),o=t!==this.ethEngine.currencyInfo.currencyCode,s="gasPrice"in e?e.gasPrice:void 0,l=s!=null?(0,c.mul)(s,e.gasUsed):"0";let u="0";if(i&&this.ethEngine.networkInfo.optimismRollupParams!=null){const w=yield this.ethEngine.ethNetwork.multicastRpc("eth_getTransactionReceipt",[a]),k=(0,P.zv)(w.result.result);u=(0,c.add)(u,(0,y.X0)(k.l1Fee))}let h,f,m;i?o?(h=(0,c.sub)("0",e.value),f="0",m=(0,c.add)(l,u)):e.from.toLowerCase()===e.to.toLowerCase()?(h=(0,c.sub)((0,c.sub)("0",l),u),f=(0,c.add)(l,u)):(h=(0,c.sub)((0,c.sub)((0,c.sub)("0",e.value),l),u),f=(0,c.add)(l,u)):(h=e.value,f="0",r.push(this.ethEngine.walletLocalData.publicKey));const g={from:[e.from],to:[e.to],gas:e.gas,gasPrice:s!=null?s:"",gasUsed:e.gasUsed,isFromMakeSpend:!1};let v=parseInt(e.blockNumber);return v<0&&(v=0),{blockHeight:v,currencyCode:t,date:parseInt(e.timeStamp),feeRateUsed:s!=null?Ie(s,e.gas,e.gasUsed):void 0,isSend:h.startsWith("-"),memos:[],nativeAmount:h,networkFee:f,otherParams:g,ourReceiveAddresses:r,parentNetworkFee:m,signedTx:"",txid:a,walletId:this.ethEngine.walletId}})}}var bt=E(77258),me=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Tt extends he{constructor(){super(...arguments),this.fetchBlockheight=null,this.broadcast=null,this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchNonce=null,this.fetchTokenBalance=null,this.fetchTokenBalances=null,this.fetchTxs=e=>me(this,null,function*(){try{return this.currentScan!=null?yield this.currentScan:(this.currentScan=this.checkTransactions(e),yield this.currentScan)}catch(t){throw console.error(t),t}finally{this.currentScan=void 0}}),this.filfoxMessageToEdgeTransaction=(e,t)=>{const n=[],r=t.transfers.filter(o=>o.type==="miner-fee"||o.type==="burner-fee").reduce((o,s)=>(0,c.add)(o,s.value),"0");let a;return t.from===e?(a=`-${r}`,t.to!==e&&(a=(0,c.sub)(a,t.value))):(a=t.value,n.push(e)),{blockHeight:t.height,currencyCode:this.ethEngine.currencyInfo.currencyCode,date:t.timestamp,isSend:a.startsWith("-"),memos:[],nativeAmount:a,networkFee:r,otherParams:{},ourReceiveAddresses:n,signedTx:"",txid:t.cid,walletId:this.ethEngine.walletId}}}checkTransactions(e){return me(this,null,function*(){const{startBlock:t,currencyCode:n}=e,{publicAddress:r}=yield this.ethEngine.getFreshAddress(),a=s=>{const l=this.ethEngine.tokenCheckTransactionsStatus[this.ethEngine.currencyInfo.currencyCode],u=s;l<1&&(u>=1||u>l*1.1)&&(this.ethEngine.tokenCheckTransactionsStatus[this.ethEngine.currencyInfo.currencyCode]=u,this.ethEngine.updateOnAddressesChecked())},i=({tx:s,progress:l})=>{s!=null&&(this.ethEngine.addTransaction(n,s),this.onUpdateTransactions(),this.ethEngine.walletLocalData.blockHeight<s.blockHeight&&this.onUpdateBlockHeight(s.blockHeight)),a(l)},o=[this.scanTransactionsFromFilfox(r,i)];return yield Promise.all(o),this.ethEngine.walletLocalData.lastAddressQueryHeight=this.ethEngine.walletLocalData.blockHeight,this.ethEngine.walletLocalDataDirty=!0,a(1),{tokenTxs:{[n]:{blockHeight:t,edgeTransactions:[]}},server:this.config.servers.join(",")}})}makeFilfoxApi(e){return new bt.V7(e,this.ethEngine.fetchCors)}onUpdateBlockHeight(e){this.ethEngine.walletLocalData.blockHeight!==e&&(this.ethEngine.walletLocalData.blockHeight=e,this.ethEngine.walletLocalDataDirty=!0,this.ethEngine.currencyEngineCallbacks.onBlockHeightChanged(this.ethEngine.walletLocalData.blockHeight))}onUpdateTransactions(){this.ethEngine.transactionsChangedArray.length>0&&(this.ethEngine.currencyEngineCallbacks.onTransactionsChanged(this.ethEngine.transactionsChangedArray),this.ethEngine.transactionsChangedArray=[])}scanTransactionsFromFilfox(e,t){return me(this,null,function*(){const n=new Set;let a=(yield this.serialServers(l=>me(this,null,function*(){return yield this.makeFilfoxApi(l).getAccountTransfers(e,0,1)}))).totalCount;const i=20;let o=Math.ceil(a/i),s=0;for(let l=o-1;l>=0;l--){const u=yield this.serialServers(f=>me(this,null,function*(){return yield this.makeFilfoxApi(f).getAccountTransfers(e,l,i)}));let h=u.transfers;if(u.totalCount!==a){const f=u.totalCount-a,g=(l+1)*(i/f),v=yield this.serialServers(b=>me(this,null,function*(){return yield this.makeFilfoxApi(b).getAccountTransfers(e,g,f)}));h=[...h,...v.transfers],a=u.totalCount,o=Math.ceil(a/i)}for(let f=h.length-1;f>=0;f--){if(!this.ethEngine.engineOn)return;const m=h[f];let g;if(m.height>=this.ethEngine.walletLocalData.lastAddressQueryHeight&&!n.has(m.message)){m.height>this.ethEngine.walletLocalData.lastAddressQueryHeight&&(this.ethEngine.walletLocalData.lastAddressQueryHeight=m.height,this.ethEngine.walletLocalDataDirty=!0);const b=yield this.serialServers(w=>me(this,null,function*(){return yield this.makeFilfoxApi(w).getMessageDetails(m.message)}));g=this.filfoxMessageToEdgeTransaction(e,b)}const v=a===0?1:++s/a;t({tx:g,progress:v}),n.add(m.message)}}})}}var Ae=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Ct extends he{constructor(){super(...arguments),this.fetchBlockheight=null,this.broadcast=null,this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchNonce=null,this.fetchTokenBalance=null,this.fetchTokenBalances=null,this.fetchTxs=e=>Ae(this,null,function*(){try{return this.currentScan!=null?yield this.currentScan:(this.currentScan=this.checkTransactions(e),yield this.currentScan)}catch(t){throw console.error(t),t}finally{this.currentScan=void 0}})}checkTransactions(e){return Ae(this,null,function*(){const{startBlock:t,currencyCode:n}=e,r=this.ethEngine.walletLocalData.publicKey,a=[];let i;for(;;){const s=yield this.queryTransactions(r,i);if(a.push(...s.items),i=s.next_page_params,s.items.some(l=>l.block<=t)||i==null)break}const o=a.map(s=>this.processScanTransaction(s,n));return{tokenTxs:{[n]:{blockHeight:t,edgeTransactions:o}},server:this.config.servers.join(",")}})}processScanTransaction(e,t){const n=[],r=e.hash;if(r==null)throw new Error("Invalid transaction result format");const a=e.from.hash.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase(),i=t!==this.ethEngine.currencyInfo.currencyCode,o=e.gas_price,s=o!=null?(0,c.mul)(o,e.gas_used):"0";let l,u,h;a?i?(l=(0,c.sub)("0",e.value),u="0",h=s):e.from.hash.toLowerCase()===e.to.hash.toLowerCase()?(l=(0,c.sub)("0",s),u=s):(l=(0,c.sub)((0,c.sub)("0",e.value),s),u=s):(l=e.value,u="0",n.push(this.ethEngine.walletLocalData.publicKey));const f={from:[e.from.hash],to:[e.to.hash],gas:e.gas_limit,gasPrice:o!=null?o:"",gasUsed:e.gas_used,isFromMakeSpend:!1};let m=e.block;return m<0&&(m=0),{blockHeight:m,currencyCode:t,date:parseInt(e.timestamp),feeRateUsed:o!=null?Ie(o,e.gas_limit,e.gas_used):void 0,isSend:l.startsWith("-"),memos:[],nativeAmount:l,networkFee:u,otherParams:f,ourReceiveAddresses:n,parentNetworkFee:h,signedTx:"",txid:r,walletId:this.ethEngine.walletId}}queryTransactions(e,t){return Ae(this,null,function*(){return yield this.serialServers(n=>Ae(this,null,function*(){const r=`addresses/${e}/transactions`,a=t!=null?new URLSearchParams(t).toString():"",i=`${n}/api/v2/${r}?${a}`,s=yield(yield this.ethEngine.fetchCors(i,{method:"GET",headers:{"content-type":"application/json"}})).text();return St(s)}))})}}const Re=(0,p.su)({hash:p.XC,is_contract:(0,p.Zz)(p.jK),is_verified:(0,p.Zz)(p.jK)}),At=(0,p.su)({timestamp:p.XC,gas_limit:p.XC,block:p.mH,to:Re,from:Re,hash:p.XC,gas_price:p.XC,gas_used:p.XC,value:p.XC}),It=(0,p.su)({block_number:p.mH,fee:p.XC,hash:p.XC,index:p.mH,inserted_at:p.XC,items_count:p.mH,value:p.XC}),St=(0,p.$e)((0,p.su)({items:(0,p._2)(At),next_page_params:(0,p.Zz)(It)}));var $e=E(96519),Ft=E(2593),Lt=E(21046),xt=JSON.parse('[{"constant":true,"inputs":[{"name":"user","type":"address"},{"name":"token","type":"address"}],"name":"tokenBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"users","type":"address[]"},{"name":"tokens","type":"address[]"}],"name":"balances","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]'),W=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Ot extends he{constructor(e,t){super(e,t),this.fetchTxs=null,this.fetchBlockheight=()=>W(this,null,function*(){const{chainParams:{chainId:n}}=this.ethEngine.networkInfo,{result:r,server:a}=yield this.serialServers(o=>W(this,null,function*(){const s=yield this.fetchPostRPC("eth_blockNumber",[],n,o);if(s.error!=null)throw this.ethEngine.error(`Successful eth_blockNumber response object from ${o} included an error ${JSON.stringify(s.error)}`),new Error("Successful eth_blockNumber response object included an error");return{server:ie()(o).hostname,result:s}}));return{blockHeight:Be(r).result,server:a}}),this.broadcast=n=>W(this,null,function*(){const{chainParams:{chainId:r}}=this.ethEngine.networkInfo;return yield this.parallelServers(a=>W(this,null,function*(){const i="eth_sendRawTransaction",o=[n.signedTx],s=yield this.fetchPostRPC(i,o,r,a),l=ie()(a,{},!0);return{result:this.broadcastResponseHandler(s,l.toString(),n),server:l.hostname}}))}),this.getBaseFeePerGas=this.ethEngine.networkInfo.supportsEIP1559!==!0?null:()=>W(this,null,function*(){const{chainParams:{chainId:n}}=this.ethEngine.networkInfo;return yield this.serialServers(r=>W(this,null,function*(){return yield this.fetchPostRPC("eth_getBlockByNumber",["latest",!1],n,r).then(a=>{if(a.error!=null){const o=`multicast get_baseFeePerGas error response from ${r}: ${JSON.stringify(a.error)}`;throw this.ethEngine.warn(o),new Error(o)}return a.result.baseFeePerGas})}))}),this.multicastRpc=(n,r)=>W(this,null,function*(){const{chainParams:{chainId:a}}=this.ethEngine.networkInfo;return yield this.serialServers(i=>W(this,null,function*(){const o=yield this.fetchPostRPC(n,r,a,i);if(o.error!=null)throw this.ethEngine.error(`Successful ${n} response object from ${i} included an error ${JSON.stringify(o.error)}`),new Error(`Successful ${n} response object included an error`);return{server:ie()(i).hostname,result:o}}))}),this.fetchNonce=()=>W(this,null,function*(){const{chainParams:{chainId:n}}=this.ethEngine.networkInfo,r=this.ethEngine.walletLocalData.publicKey,{result:a,server:i}=yield this.serialServers(s=>W(this,null,function*(){const l=yield this.fetchPostRPC("eth_getTransactionCount",[r,"latest"],n,s);if(l.error!=null)throw this.ethEngine.error(`Successful eth_getTransactionCount_RPC response object from ${s} included an error ${JSON.stringify(l.error)}`),new Error("Successful eth_getTransactionCount_RPC response object included an error");return{server:ie()(s).hostname,result:l}})),o=(0,P.tT)(a);if(/0[xX][0-9a-fA-F]+/.test(o.result))return{newNonce:(0,c.add)("0",o.result),server:i};throw new Error("checkNonceRpc returned invalid JSON")}),this.fetchTokenBalance=n=>W(this,null,function*(){const{chainParams:{chainId:r}}=this.ethEngine.networkInfo;let a,i,o,s;const l=this.ethEngine.walletLocalData.publicKey;try{if(n===this.ethEngine.currencyInfo.currencyCode)i=yield this.serialServers(u=>W(this,null,function*(){const h=yield this.fetchPostRPC("eth_getBalance",[l,"latest"],r,u);if(h.error!=null)throw this.ethEngine.error(`Successful eth_getBalance response object from ${u} included an error ${JSON.stringify(h.error)}`),new Error("Successful eth_getBalance response object included an error");if(!(0,y.vq)(h.result))throw new Error(`eth_getBalance not hex for ${ie()(u).hostname}`);return h.result=(0,y.Z8)(h.result),{server:ie()(u).hostname,result:h}})),o=i.result,s=i.server;else{const u=this.ethEngine.getTokenInfo(n);if(u!=null&&typeof u.contractAddress=="string"){const h={data:`0x70a08231${(0,y.gc)((0,y.KT)(l),32)}`,to:u.contractAddress},f=yield this.ethEngine.ethNetwork.multicastRpc("eth_call",[h,"pending"]),m=f.result.result;if(!m.startsWith("0x"))throw new Error("Invalid return value. Result not hex");f.result.result=(0,y.Z8)(m),o=f.result,s=f.server}}a=(0,P.tT)(o)}catch(u){throw this.ethEngine.error(`checkTokenBalRpc token ${n} response ${String(i!=null?i:"")} `,u),new Error(`checkTokenBalRpc invalid ${n} response ${JSON.stringify(o)}`)}return{tokenBal:{[n]:a.result},server:s}}),this.fetchTokenBalances=this.config.ethBalCheckerContract==null?null:()=>W(this,null,function*(){const{allTokensMap:n,networkInfo:r,walletLocalData:a,currencyInfo:i}=this.ethEngine,{chainParams:o}=r,s={},l=[],u=this.config.ethBalCheckerContract;if(u==null)return s;const h="0x0000000000000000000000000000000000000000",f=[h];for(const g of Object.values(this.ethEngine.allTokensMap)){const v=(0,H.Oj)(g.networkLocation);v!=null&&f.unshift(v.contractAddress)}const m=yield this.serialServers(g=>W(this,null,function*(){const v=new ee.r(g,o.chainId),w=yield new $e.CH(u,xt,v).balances([a.publicKey],f);if(w.length!==f.length)throw new Error("checkEthBalChecker balances length mismatch");return w})).catch(g=>{throw new Error(`All rpc servers failed eth balance checks: ${String(g)}`)});for(let g=0;g<m.length;g++){const v=f[g].toLowerCase(),b=Ft.O$.from(m[g]);let w;if(v===h){const{currencyCode:k}=i;w=k}else{const k=v.replace("0x","");b.gt(Lt._Y)&&l.push(k);const C=n[k];if(C==null){this.logError("checkEthBalChecker",new Error(`checkEthBalChecker missing builtinToken: ${v}`));continue}const{currencyCode:S}=C;w=S}s[w]=b.toString()}return{tokenBal:s,detectedTokenIds:l,server:"ethBalChecker"}}),this.config.servers=this.config.servers.map(n=>{try{return this.addRpcApiKey(n)}catch{}}).filter(n=>n!=null)}addRpcApiKey(e){const n=/{{(.*?)}}/g.exec(e);if(n!=null){const r=n[1],a=(0,P.jq)(r),i=this.ethEngine.initOptions[a];if(typeof i=="string")e=e.replace(n[0],i);else throw i==null?new Error(`Missing ${a} in 'initOptions' for ${this.ethEngine.currencyInfo.pluginId}`):new Error("Incorrect apikey type for RPC")}return e}fetchPostRPC(e,t,n,r){return W(this,null,function*(){const a={id:n,jsonrpc:"2.0",method:e,params:t};r=this.addRpcApiKey(r);const i=yield this.ethEngine.fetchCors(r,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify(a)}),o=ie()(r,{},!0);return i.ok||this.throwError(i,"fetchPostRPC",o.hostname),yield i.json()})}}var Bt=Object.defineProperty,Nt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,_e=(d,e,t)=>e in d?Bt(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,Ge=(d,e)=>{for(var t in e||(e={}))$t.call(e,t)&&_e(d,t,e[t]);if(De)for(var t of De(e))Dt.call(e,t)&&_e(d,t,e[t]);return d},_t=(d,e)=>Nt(d,Rt(e)),J=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});const Gt=2e4,Ht=2e4,He=2e4,Mt=2e4,Kt=4*2,jt=2*60,Ie=(d,e,t,n)=>{let r={};return r=_t(Ge(Ge({gasPrice:(0,c.div)((0,c.add)(d,"0",10),Y.toString(),Y.toString().length-1,10)},t!==void 0?{gasUsed:t}:{}),n!==void 0?{minerTip:(0,c.div)((0,c.add)(n,"0",10),Y.toString(),Y.toString().length-1,10)}:{}),{gasLimit:e}),r};class Ut{constructor(e){this.multicastRpc=(t,n)=>J(this,null,function*(){const r=this.qualifyNetworkAdapters("multicastRpc").map(i=>()=>J(this,null,function*(){return yield i.multicastRpc(t,n)}));return yield(0,y.QJ)(r)}),this.getBaseFeePerGas=()=>J(this,null,function*(){const t=this.qualifyNetworkAdapters("getBaseFeePerGas").map(n=>()=>J(this,null,function*(){return yield n.getBaseFeePerGas()}));return yield(0,y.QJ)(t)}),this.processEthereumNetworkUpdate=(t,n,r)=>{var a,i,o,s,l;if(n!=null){if(n.blockHeight!=null){this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate blockHeight ${(a=n.server)!=null?a:"no server"} won`);const u=n.blockHeight;this.ethEngine.log(`Got block height ${u}`),typeof u=="number"&&this.ethEngine.walletLocalData.blockHeight!==u&&(this.ethNeeds.blockHeightLastChecked=t,this.ethEngine.checkDroppedTransactionsThrottled(),this.ethEngine.walletLocalData.blockHeight=u,this.ethEngine.walletLocalDataDirty=!0,this.ethEngine.currencyEngineCallbacks.onBlockHeightChanged(this.ethEngine.walletLocalData.blockHeight))}if(n.newNonce!=null&&(this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate nonce ${(i=n.server)!=null?i:"no server"} won`),this.ethNeeds.nonceLastChecked=t,this.ethEngine.otherData.nextNonce=n.newNonce,this.ethEngine.walletLocalDataDirty=!0),n.tokenBal!=null){const u=n.tokenBal;this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate tokenBal ${(o=n.server)!=null?o:"no server"} won`);for(const h of Object.keys(u))this.ethNeeds.tokenBalLastChecked[h]=t,this.ethEngine.updateBalance(h,u[h]);this.ethEngine.currencyEngineCallbacks.onNewTokens((s=n.detectedTokenIds)!=null?s:[]),this.ethNeeds.tokenBalsLastChecked=t}if(n.tokenTxs!=null){const u=n.tokenTxs;this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate tokenTxs ${(l=n.server)!=null?l:"no server"} won`);for(const h of Object.keys(u)){this.ethNeeds.tokenTxsLastChecked[h]=t,this.ethEngine.tokenCheckTransactionsStatus[h]=1;const f=u[h];for(const m of f.edgeTransactions)this.ethEngine.addTransaction(h,m);this.ethEngine.walletLocalData.lastTransactionQueryHeight[h]=r,this.ethEngine.walletLocalData.lastTransactionDate[h]=t}this.ethEngine.updateOnAddressesChecked()}this.ethEngine.transactionsChangedArray.length>0&&(this.ethEngine.currencyEngineCallbacks.onTransactionsChanged(this.ethEngine.transactionsChangedArray),this.ethEngine.transactionsChangedArray=[])}},this.ethEngine=e,this.ethNeeds={blockHeightLastChecked:0,nonceLastChecked:0,tokenBalsLastChecked:0,tokenBalLastChecked:{},tokenTxsLastChecked:{}},this.networkAdapters=this.buildNetworkAdapters(this.ethEngine.networkInfo),this.walletId=e.walletInfo.id}processAlethioTransaction(e,t){let n;const r=[];let a;const i=t!==this.ethEngine.currencyInfo.currencyCode,o=e.attributes.value,s=e.attributes.fee!=null&&e.attributes.fee!==""?e.attributes.fee:"0",l=e.relationships.from.data.id,u=e.relationships.to.data.id;t===this.ethEngine.currencyInfo.currencyCode?a=s:a="0";const h=l.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase();if(h)l.toLowerCase()===u.toLowerCase()?n=(0,c.mul)(a,"-1"):(n=(0,c.sub)("0",o),i||(n=(0,c.sub)(n,a)));else if(u.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase())n=o,r.push(this.ethEngine.walletLocalData.publicKey.toLowerCase());else return null;const f={from:[l],to:[u],gas:"0",gasPrice:"0",gasUsed:"0",isFromMakeSpend:!1};let m=e.attributes.globalRank[0];m<0&&(m=0);let g,v="0";return i&&h?g=a:v=a,{blockHeight:m,currencyCode:t,date:e.attributes.blockCreationTime,isSend:n.startsWith("-"),memos:[],nativeAmount:n,networkFee:v,otherParams:f,ourReceiveAddresses:r,parentNetworkFee:g,signedTx:"",txid:e.relationships.transaction.data.id,walletId:this.walletId}}broadcastTx(e){return J(this,null,function*(){const t=this.qualifyNetworkAdapters("broadcast").map(r=>J(this,null,function*(){return yield r.broadcast(e)})),n=yield(0,y.Wp)(t);return this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} broadcastTx ${n.server} won`),n})}check(e,...t){return J(this,null,function*(){return yield(0,y.QJ)(this.qualifyNetworkAdapters(e).map(n=>()=>J(this,null,function*(){return yield n[e](...t)}))).catch(n=>({}))})}getTokenCurrencyCode(e){const t=this.ethEngine.walletLocalData.publicKey;if(e.toLowerCase()===t.toLowerCase())return this.ethEngine.currencyInfo.currencyCode;for(const n of this.ethEngine.enabledTokens){const r=this.ethEngine.getTokenInfo(n);if(r!=null){const a=r.contractAddress;if(e!=null&&typeof a=="string"&&a.toLowerCase()===e.toLowerCase())return n}}}checkAndUpdate(e,t,n,r){return J(this,null,function*(){const a=Date.now();if(a-e>t)try{const i=yield r();this.processEthereumNetworkUpdate(a,i,n)}catch(i){this.ethEngine.error("checkAndUpdate ",i)}})}needsLoop(){return J(this,null,function*(){for(var e,t;this.ethEngine.engineOn;){const n=this.ethEngine.walletLocalData.blockHeight;yield this.checkAndUpdate(this.ethNeeds.blockHeightLastChecked,Gt,n,()=>J(this,null,function*(){return yield this.check("fetchBlockheight")})),yield this.checkAndUpdate(this.ethNeeds.nonceLastChecked,Ht,n,()=>J(this,null,function*(){return yield this.check("fetchNonce")}));const{currencyCode:r}=this.ethEngine.currencyInfo,a=this.ethEngine.enabledTokens;a.includes(r)||a.push(r);const i=this.networkAdapters.find(o=>o.fetchTokenBalances!=null)!=null;i&&(yield this.checkAndUpdate(this.ethNeeds.tokenBalsLastChecked,He,n,()=>J(this,null,function*(){return yield this.check("fetchTokenBalances")})));for(const o of a)i||(yield this.checkAndUpdate((e=this.ethNeeds.tokenBalLastChecked[o])!=null?e:0,He,n,()=>J(this,null,function*(){return yield this.check("fetchTokenBalance",o)}))),yield this.checkAndUpdate((t=this.ethNeeds.tokenTxsLastChecked[o])!=null?t:0,Mt,n,()=>J(this,null,function*(){var s,l;const u=(s=this.ethEngine.walletLocalData.lastTransactionQueryHeight[o])!=null?s:0,h=(l=this.ethEngine.walletLocalData.lastTransactionDate[o])!=null?l:0,f={startBlock:Math.max(u-Kt,0),startDate:Math.max(h-jt,0),currencyCode:o};return this.qualifyNetworkAdapters("fetchTxs").length===0?{tokenTxs:{[this.ethEngine.currencyInfo.currencyCode]:{blockHeight:f.startBlock,edgeTransactions:[]}},server:"none"}:yield this.check("fetchTxs",f)}));yield(0,y.HB)(1e3)}})}buildNetworkAdapters(e){const{networkAdapterConfigs:t}=e;return t.map(r=>Xt(r,this.ethEngine))}qualifyNetworkAdapters(...e){return this.networkAdapters.filter(t=>e.every(n=>t[n]!=null))}}const Xt=(d,e)=>{switch(d.type){case"amberdata-rpc":return new rt(e,d);case"blockbook":return new ot(e,d);case"blockchair":return new it(e,d);case"blockcypher":return new at(e,d);case"evmscan":return new Pt(e,d);case"filfox":return new Tt(e,d);case"pulsechain-scan":return new Ct(e,d);case"rpc":return new Ot(e,d)}};var Wt=E(93901),Jt=E(79325),Vt=JSON.parse('[{"inputs":[{"internalType":"uint64","name":"size","type":"uint64"},{"internalType":"uint64","name":"leaf","type":"uint64"}],"name":"constructOutboxProof","outputs":[{"internalType":"bytes32","name":"send","type":"bytes32"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"deposit","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"l2CallValue","type":"uint256"},{"internalType":"address","name":"excessFeeRefundAddress","type":"address"},{"internalType":"address","name":"callValueRefundAddress","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"estimateRetryableTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"blockNum","type":"uint64"}],"name":"findBatchContainingBlock","outputs":[{"internalType":"uint64","name":"batch","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"contractCreation","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"gasEstimateComponents","outputs":[{"internalType":"uint64","name":"gasEstimate","type":"uint64"},{"internalType":"uint64","name":"gasEstimateForL1","type":"uint64"},{"internalType":"uint256","name":"baseFee","type":"uint256"},{"internalType":"uint256","name":"l1BaseFeeEstimate","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"contractCreation","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"gasEstimateL1Component","outputs":[{"internalType":"uint64","name":"gasEstimateForL1","type":"uint64"},{"internalType":"uint256","name":"baseFee","type":"uint256"},{"internalType":"uint256","name":"l1BaseFeeEstimate","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"name":"getL1Confirmations","outputs":[{"internalType":"uint64","name":"confirmations","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"batchNum","type":"uint256"},{"internalType":"uint64","name":"index","type":"uint64"}],"name":"legacyLookupMessageBatchProof","outputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"path","type":"uint256"},{"internalType":"address","name":"l2Sender","type":"address"},{"internalType":"address","name":"l1Dest","type":"address"},{"internalType":"uint256","name":"l2Block","type":"uint256"},{"internalType":"uint256","name":"l1Block","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"calldataForL1","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nitroGenesisBlock","outputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"stateMutability":"pure","type":"function"}]'),Se=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});const Qt="low",Zt="standard",zt="high",Me="custom",Ke="1000000000";function je(d,e,t,n){var r,a,i,o,s,l,u,h,f;let m=!0,g,v;const{customNetworkFee:b}=d!=null?d:{};if(d.networkFeeOption===Me&&b!=null){const{gasLimit:N,gasPrice:O}=b;if((isNaN(N)||N==="")&&(isNaN(O)||O==="")){const R=new Error("Custom Fee must have at least gasLimit or gasPrice specified");throw R.name="ErrorBelowMinimumFee",R}if(O!=null&&O!==""){const R=(o=(a=(r=e.default)==null?void 0:r.gasPrice)==null?void 0:a.minGasPrice)!=null?o:(i=n.defaultNetworkFees.default.gasPrice)==null?void 0:i.minGasPrice;if(R!=null){const j=(0,c.mul)(O,Ke);if((0,c.lt)(j,R)||/^\s*$/.test(O)){const fe=new Error(`Gas price ${j} wei below minimum ${R} wei`);throw fe.name="ErrorBelowMinimumFee",fe}}v=(0,c.mul)(O,Ke)}if(N!=null&&N!==""){const R=(h=(l=(s=e.default)==null?void 0:s.gasLimit)==null?void 0:l.minGasLimit)!=null?h:(u=n.defaultNetworkFees.default.gasLimit)==null?void 0:u.minGasLimit;if(R!=null&&(0,c.lt)(N,R)||/^\s*$/.test(N)){const j=new Error(`Gas limit ${N} below minimum ${R}`);throw j.name="ErrorBelowMinimumFee",j}g=N,m=!1}}if(g!=null&&v!=null)return{gasLimit:g,gasPrice:v,useEstimatedGasLimit:!1};let w=e.default,k=e.default;if(typeof((f=d.spendTargets[0])==null?void 0:f.publicAddress)=="string"){const N=(0,y.f0)(d.spendTargets[0].publicAddress);typeof e[N]<"u"&&(k=e[N],m=!1,typeof k.gasPrice<"u"&&(w=k))}let C="regularTransaction";d.currencyCode!=null&&d.currencyCode!==t.currencyCode&&(C="tokenTransaction");let S="standard";typeof d.networkFeeOption=="string"&&d.networkFeeOption!==Me&&(S=d.networkFeeOption);const G=k.gasLimit!=null?k.gasLimit[C]:"21000";let B="";if(d.spendTargets[0].nativeAmount==null)throw new Error("ErrorInvalidNativeAmount");let Q=d.spendTargets[0].nativeAmount;if(C==="tokenTransaction"&&(Q=(0,c.div)(Q,"10")),w.gasPrice==null)throw new Error("ErrorInvalidGasPrice");const x=w.gasPrice;switch(S){case Qt:B=x.lowFee;break;case Zt:{if((0,c.gte)(Q,w.gasPrice.standardFeeHighAmount)){B=x.standardFeeHigh;break}if((0,c.lte)(Q,x.standardFeeLowAmount)){if(w.gasPrice==null)throw new Error("ErrorInvalidGasPrice");B=w.gasPrice.standardFeeLow;break}const N=(0,c.sub)(x.standardFeeHighAmount,x.standardFeeLowAmount),O=(0,c.sub)(x.standardFeeHigh,x.standardFeeLow),R=(0,c.sub)(Q,x.standardFeeLowAmount),j=(0,c.mul)(R,O),fe=(0,c.div)(j,N);B=(0,c.add)(x.standardFeeLow,fe);break}case zt:B=w.gasPrice.highFee;break;default:throw new Error("Invalid networkFeeOption")}return{gasLimit:g!=null?g:G,gasPrice:v!=null?v:B,useEstimatedGasLimit:m}}const Yt="1040",Ue=d=>{const{chainParams:e,data:t,dynamicOverhead:n,fixedOverhead:r,gasPriceL1Wei:a,gasLimit:i,nonce:o,to:s,value:l="0x0"}=d,u=D.Gn.custom(e),f=T.nL.fromTxData({nonce:o!=null?(0,y.X0)(o):void 0,gasPrice:(0,y.X0)(a),gasLimit:(0,y.X0)(i),to:s,value:l,data:t===null?void 0:t},{common:u}).raw(),v=Xe(f).map(S=>S==null?"":Jt.YU.stringify(S).toLowerCase()).join().match(/(.{1,2})/g);if(v==null)throw new Error("Invalid rawTx string");let b=0;for(let S=0;S<v.length;S++)v[S]==="00"?b+=4:b+=16;const w=(0,c.add)((0,c.add)(b.toString(),r),Yt),k=(0,c.div)(n,"1000000",18);return(0,c.ceil)((0,c.mul)((0,c.mul)(a,w),k),0)};function Xe(d,e=[]){return d.forEach(t=>{if(t!=null){if(Array.isArray(t))return Xe(t,e);e.push(t)}}),e}function We(d,e,t){return Se(this,null,function*(){if(d<2)return{gasPrice:(0,c.mul)("1",e,16)};{const n=e;let r=(0,c.sub)(n,t);return(0,c.lte)(r,"0")&&(r=(0,c.div)(n,"10",0)),{gasPrice:(0,c.mul)("1",n,16),minerTip:(0,c.mul)("1",r,16)}}})}let Fe={destinationAddress:"",l1Gas:"0",l1GasPrice:"10000000000"};const Je=d=>Se(void 0,null,function*(){const{rpcServers:e,nodeInterfaceAddress:t,destinationAddress:n,txData:r}=d;if(n===Fe.destinationAddress)return{l1Gas:Fe.l1Gas,l1GasPrice:Fe.l1GasPrice};const a=o=>Se(void 0,null,function*(){const s=new Wt.c(o),u=yield new $e.CH(t,Vt,s).callStatic.gasEstimateL1Component(n,!1,r,{blockTag:"latest"});return{l1Gas:u.gasEstimateForL1.toString(),l1GasPrice:u.baseFee.toString()}}),i=yield(0,y.QJ)(e.map(o=>()=>Se(void 0,null,function*(){return yield a(o)})));return Fe={destinationAddress:n,l1Gas:i.l1Gas,l1GasPrice:i.l1GasPrice},i});var le=E(48764).Buffer,qt=Object.defineProperty,en=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,nn=Object.getPrototypeOf,sn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,on=Reflect.get,Qe=(d,e,t)=>e in d?qt(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,te=(d,e)=>{for(var t in e||(e={}))sn.call(e,t)&&Qe(d,t,e[t]);if(Ve)for(var t of Ve(e))rn.call(e,t)&&Qe(d,t,e[t]);return d},de=(d,e)=>en(d,tn(e)),xe=(d,e,t)=>on(nn(d),t,e),K=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Ee extends re.P{constructor(e,t,n,r,a,i){super(e,t,n,a),this.updateNetworkFeesFromBaseFeePerGas=()=>K(this,null,function*(){var l;const{supportsEIP1559:u=!1}=this.networkInfo;if(!u)return;const h=yield this.ethNetwork.getBaseFeePerGas();if(h==null)return;const f=(0,y.Z8)(h),m=this.networkFees;if(m.default==null||m.default.gasPrice==null)return;const g=this.networkInfo.defaultNetworkFees.default,v=m.default.minPriorityFee||g.minPriorityFee,b=(l=m.default.baseFeeMultiplier)!=null?l:g.baseFeeMultiplier;if(v==null||b==null)return;const w={lowFee:"",standardFeeLow:"",standardFeeHigh:"",highFee:""};for(const k of Object.keys(b)){const C=(0,c.mul)(b[k],f),S=(0,c.add)(C,v);w[k]=(0,c.div)(S,"1")}return this.log(`updateNetworkFeesFromBaseFeePerGas ${this.currencyInfo.currencyCode}`),Ce(this.log,w),w}),this.initOptions=r,this.networkInfo=e.networkInfo,this.ethNetwork=new Ut(this),this.lastEstimatedGasLimit={publicAddress:"",contractAddress:"",gasLimit:""},this.networkInfo.optimismRollupParams!=null&&(this.optimismRollupParams=this.networkInfo.optimismRollupParams),this.networkFees=this.networkInfo.defaultNetworkFees,this.fetchCors=(0,y.zR)(e.io);const{infoFeeProvider:o,externalFeeProviders:s}=mt(this.fetchCors,this.currencyInfo,this.initOptions,this.log,this.networkInfo);this.infoFeeProvider=o,this.externalFeeProviders=[...s,this.updateNetworkFeesFromBaseFeePerGas],this.utils={signMessage:(l,u)=>{if(!(0,y.vq)(l))throw new Error("ErrorInvalidMessage");const h=le.from(u.privateKey,"hex"),f=(0,y.ah)(l),m=F().hashPersonalMessage(f),{v:g,r:v,s:b}=F().ecsign(m,h);return F().toRpcSig(g,v,b)},signTypedData:(l,u)=>{const h=ft(l),f=le.from(u.privateKey,"hex"),{types:m}=h;function g(x,$=[]){if($.includes(x)||m[x]===void 0)return $;$.push(x);for(const N of m[x])for(const O of g(N.type,$))$.includes(O)||$.push(O);return $}function v(x){let $=g(x);$=$.filter(O=>O!==x),$=[x].concat($.sort());let N="";for(const O of $)N+=`${O}(${m[O].map(({name:R,type:j})=>`${j} ${R}`).join(",")})`;return N}function b(x){return F().keccak256(v(x))}function w(x,$){const N=[],O=[];N.push("bytes32"),O.push(b(x));for(const R of m[x]){let j=$[R.name];if(R.type==="string"||R.type==="bytes")N.push("bytes32"),j=F().keccak256(j),O.push(j);else if(m[R.type]!==void 0)N.push("bytes32"),j=F().keccak256(w(R.type,j)),O.push(j);else{if(R.type.lastIndexOf("]")===R.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");N.push(R.type),O.push(j)}}return I().rawEncode(N,O)}function k(x,$){return F().keccak256(w(x,$))}function C(){return F().keccak256(le.concat([le.from("1901","hex"),k("EIP712Domain",h.domain),k(h.primaryType,h.message)]))}const S=F().ecsign(C(),f),{v:G,r:B,s:Q}=S;return F().bufferToHex(le.concat([F().setLengthLeft(B,32),F().setLengthLeft(Q,32),F().toBuffer(G)]))},txRpcParamsToSpendInfo:l=>{const u={otherParams:l};l.to!=null&&(u.publicAddress=l.to),l.value!=null?u.nativeAmount=(0,y.Z8)(l.value):u.nativeAmount="0";let h,f,m;return l.gas!=null&&(f=(0,y.Z8)(l.gas),h="custom"),l.gasPrice!=null&&(m=(0,c.div)((0,y.Z8)(l.gasPrice),Y.toString(),18),h="custom"),{currencyCode:this.currencyInfo.currencyCode,spendTargets:[u],memos:[{type:"hex",value:(0,y.KT)(l.data),hidden:!0,memoName:"data"}],networkFeeOption:h,customNetworkFee:{gasLimit:f,gasPrice:m},otherParams:l}}},this.otherMethods={parseWalletConnectV2Payload:l=>K(this,null,function*(){var u,h;try{let f="0",m="0";switch(l.method){case"eth_sendTransaction":case"eth_signTransaction":{const g=(0,p.su)({from:p.XC,to:(0,p.Zz)(p.XC),data:p.XC,gas:(0,p.Zz)(p.XC),gasPrice:(0,p.Zz)(p.XC),value:(0,p.Zz)(p.XC)})(l.params[0]),{gas:v,gasPrice:b,value:w}=g,k=C=>{var S,G;v==null?g.gas=(0,y.X0)(C):C=(0,y.Z8)(v);let B=(G=(S=this.networkFees.default.gasPrice)==null?void 0:S.standardFeeHigh)!=null?G:"0";b==null?g.gasPrice=(0,y.X0)(B):B=(0,y.Z8)(b),m=(0,c.mul)(C,B)};w!=null&&(f=(0,y.Z8)(w)),((u=this.networkFees.default.gasLimit)==null?void 0:u.tokenTransaction)==null?this.ethNetwork.multicastRpc("eth_estimateGas",[g]).then(C=>{const S=(0,c.add)(parseInt(C.result.result,16).toString(),"0");k(S)}).catch(C=>{this.warn("Wallet connect call_request failed to get gas limit",C)}):k((h=this.networkFees.default.gasLimit)==null?void 0:h.tokenTransaction);break}}return{nativeAmount:f,networkFee:m,tokenId:null}}catch(f){throw this.warn("Wallet connect call_request ",f),f}}),txRpcParamsToSpendInfo:l=>K(this,null,function*(){return this.utils.txRpcParamsToSpendInfo(l)})}}estimateGasLimit(e){return K(this,null,function*(){var t,n;const{contractAddress:r,estimateGasParams:a,miningFees:i,publicAddress:o}=e,s=a[0].data!=null;if(this.lastEstimatedGasLimit.gasLimit!==""&&this.lastEstimatedGasLimit.publicAddress===o&&this.lastEstimatedGasLimit.contractAddress===r)return this.lastEstimatedGasLimit.gasLimit;let l=i.gasLimit;try{const h=(yield this.ethNetwork.multicastRpc("eth_getCode",[a[0].to,"latest"])).result.result!=="0x",f=(m=0)=>K(this,null,function*(){const g=this.networkInfo.defaultNetworkFees.default.gasLimit;try{if(g!=null&&!h&&!s)l=g.regularTransaction;else{const v=yield this.ethNetwork.multicastRpc("eth_estimateGas",a);l=(0,c.add)(parseInt(v.result.result,16).toString(),"0"),h&&(l=(0,c.mul)(l,"2"))}this.lastEstimatedGasLimit={publicAddress:o,contractAddress:r,gasLimit:l}}catch{if(g==null){if(m>5)throw new Error("Unable to estimate gas limit after 5 tries. Please try again later");return yield f(m+1)}if(s)throw new Error("Unable to estimate gas limit. Please try again later");g.tokenTransaction!=null&&(l=g.tokenTransaction)}});if(yield f(),(0,c.lt)(l,(n=(t=this.networkFees.default.gasLimit)==null?void 0:t.minGasLimit)!=null?n:"21000"))throw l=i.gasLimit,this.lastEstimatedGasLimit.gasLimit="",new Error("Calculated gasLimit less than minimum")}catch(u){this.error("makeSpend Error determining gas limit ",u)}return l})}setOtherData(e){this.otherData=(0,P.gF)(e)}updateNetworkFees(){return K(this,null,function*(){for(const e of this.externalFeeProviders)try{const t=yield e();if(t==null)continue;const n={};Object.keys(t).forEach(r=>{const a=r;n[a]=(0,y.Y7)(t[a])}),this.networkFees.default.gasPrice!=null&&(this.networkFees.default.gasPrice=te(te({},this.networkFees.default.gasPrice),n));break}catch(t){this.error(`Error fetching fees from ${e.name}. ${JSON.stringify(t)}`)}if(this.networkInfo.supportsEIP1559===!0)try{const e=yield this.ethNetwork.getBaseFeePerGas();if(e==null)return;this.networkFees.default.baseFee=e}catch(e){this.error(`Error fetching base fee: ${JSON.stringify(e)}`)}})}updateOptimismRollupParams(){return K(this,null,function*(){if(this.optimismRollupParams!=null){try{const e={to:this.optimismRollupParams.oracleContractAddress,data:this.optimismRollupParams.gasPricel1BaseFeeMethod},t=yield this.ethNetwork.multicastRpc("eth_call",[e,"latest"]),n=(0,P.tT)(t.result);this.optimismRollupParams=de(te({},this.optimismRollupParams),{gasPriceL1Wei:(0,c.ceil)((0,c.mul)((0,y.Z8)(n.result),this.optimismRollupParams.maxGasPriceL1Multiplier),0)})}catch(e){this.log.warn("Failed to update l1GasPrice",e)}try{const e={to:this.optimismRollupParams.oracleContractAddress,data:this.optimismRollupParams.dynamicOverheadMethod},t=yield this.ethNetwork.multicastRpc("eth_call",[e,"latest"]),n=(0,P.tT)(t.result);this.optimismRollupParams=de(te({},this.optimismRollupParams),{dynamicOverhead:(0,y.Z8)(n.result)})}catch(e){this.log.warn("Failed to update dynamicOverhead",e)}}})}clearBlockchainCache(){return K(this,null,function*(){yield xe(Ee.prototype,this,"clearBlockchainCache").call(this),this.otherData.nextNonce="0",this.otherData.unconfirmedNextNonce="0"})}startEngine(){return K(this,null,function*(){var e;this.engineOn=!0;const t=(e=this.networkInfo.feeUpdateFrequencyMs)!=null?e:we;this.infoFeeProvider().then(n=>K(this,null,function*(){if(this.log.warn("infoFeeProvider:",JSON.stringify(n,null,2)),this.networkFees=(0,y.nu)(this.networkFees,n),this.networkInfo.supportsEIP1559===!0)try{const r=yield this.ethNetwork.getBaseFeePerGas();if(r==null)return;this.networkFees.default.baseFee=r}catch(r){this.error(`Error fetching base fee: ${JSON.stringify(r)}`)}})).catch(()=>this.warn("Error fetching fees from Info Server")).finally(()=>{this.addToLoop("updateNetworkFees",t).catch(n=>this.warn(`Error setting up updateNetworkFees addToLoop: ${String(n)}`))}),this.addToLoop("updateOptimismRollupParams",tt).catch(()=>{}),this.ethNetwork.needsLoop(),xe(Ee.prototype,this,"startEngine").call(this)})}resyncBlockchain(){return K(this,null,function*(){yield this.killEngine(),yield this.clearBlockchainCache(),yield this.startEngine()})}getFreshAddress(){return K(this,null,function*(){const{publicKey:e}=this.walletLocalData;return{publicAddress:/[A-F]/.test(e)?e:F().toChecksumAddress(e.replace("0x",""))}})}getMaxSpendable(e){return K(this,null,function*(){e=(0,ve.s)(e,this.currencyInfo);const{edgeSpendInfo:t,currencyCode:n}=this.makeSpendCheck(e),r=this.getBalance({currencyCode:e.currencyCode}),i=e.spendTargets[0].publicAddress;if(i==null)throw new Error("makeSpend Missing publicAddress");const{contractAddress:o,data:s,value:l}=this.getTxParameterInformation(t,n,this.currencyInfo);if(e.currencyCode===this.currencyInfo.currencyCode){const u=(h,f)=>K(this,null,function*(){const m=(0,c.sub)(f,h);if((0,c.lte)(m,"1"))return h;const g=(0,c.add)(h,(0,c.div)(m,"2"));e.spendTargets[0].nativeAmount=g;const v=je(e,this.networkFees,this.currencyInfo,this.networkInfo);v.useEstimatedGasLimit&&(v.gasLimit=yield this.estimateGasLimit({contractAddress:o,estimateGasParams:[{to:o!=null?o:i,from:this.walletLocalData.publicKey,gas:"0xffffff",value:l,data:s},"latest"],miningFees:v,publicAddress:i}));const b=(0,c.mul)(v.gasPrice,v.gasLimit);let w="0";if(this.optimismRollupParams!=null){const C={nonce:this.otherData.unconfirmedNextNonce,gasPriceL1Wei:this.optimismRollupParams.gasPriceL1Wei,gasLimit:v.gasLimit,to:i,value:(0,y.X0)(g),chainParams:this.networkInfo.chainParams,dynamicOverhead:this.optimismRollupParams.dynamicOverhead,fixedOverhead:this.optimismRollupParams.fixedOverhead};w=Ue(C)}else if(this.networkInfo.arbitrumRollupParams!=null){const C=this.ethNetwork.networkAdapters.filter(B=>B.config.type==="rpc").map(B=>B.config.servers).flat(),{l1Gas:S,l1GasPrice:G}=yield Je({destinationAddress:i,nodeInterfaceAddress:this.networkInfo.arbitrumRollupParams.nodeInterfaceAddress,rpcServers:C,txData:s!=null?s:"0x"});w=(0,c.mul)((0,c.mul)(S,G),"1.1")}const k=(0,c.add)((0,c.add)(g,b),w);return(0,c.gt)(k,r)?yield u(h,g):yield u(g,f)});return yield u("0",(0,c.add)(r,"1"))}else return e.spendTargets[0].nativeAmount=r,yield this.makeSpend(e),this.getBalance({currencyCode:e.currencyCode})})}getTxParameterInformation(e,t,n){var r;const{memos:a=[]}=e,{spendTargets:i}=e,o=i[0],{publicAddress:s,nativeAmount:l}=o;let u=((r=a[0])==null?void 0:r.type)==="hex"?a[0].value:void 0;u!=null&&!u.startsWith("0x")&&(u=`0x${u}`);let h;if(t===n.currencyCode)return h=l==null?void 0:(0,y.X0)(l),{data:u,value:h};{let f;if(u!=null)f=s;else{const m=this.getTokenInfo(t);if(m==null||typeof m.contractAddress!="string")throw new Error("Error: Token not supported or invalid contract address");f=m.contractAddress;const g=I().simpleEncode("transfer(address,uint256):(uint256)",s,(0,y.X0)(l!=null?l:"0"));h="0x0",u="0x"+le.from(g).toString("hex")}return{contractAddress:f,data:u,value:h}}}makeSpend(e){return K(this,null,function*(){var t,n,r;e=(0,ve.s)(e,this.currencyInfo);const{edgeSpendInfo:a,currencyCode:i,skipChecks:o}=this.makeSpendCheck(e),{memos:s=[]}=a,{pendingTxs:l=[]}=a;if(a.spendTargets.length!==1)throw new Error("Error: only one output allowed");const u=a.spendTargets[0],{publicAddress:h}=u;let{nativeAmount:f}=u;if(h==null)throw new Error("makeSpend Missing publicAddress");if(f==null)throw new A.$D;if(!F().isValidAddress(h))throw new TypeError(`Invalid ${this.currencyInfo.pluginId} address`);let m;const g=je(a,this.networkFees,this.currencyInfo,this.networkInfo),v=this.networkInfo.supportsEIP1559===!0?2:0,b=yield We(v,g.gasPrice,(t=this.networkFees.default.baseFee)!=null?t:yield this.ethNetwork.getBaseFeePerGas());let w;if(l.length>0){const O=this.walletLocalData.otherData,R=this.walletLocalData.numUnconfirmedSpendTxs>0?O.unconfirmedNextNonce:O.nextNonce;w=(0,c.add)(R,l.length.toString())}const{contractAddress:k,data:C,value:S}=this.getTxParameterInformation(a,i,this.currencyInfo);k==null?m=de(te({from:[this.walletLocalData.publicKey],to:[h]},b),{gas:g.gasLimit,gasUsed:"0",nonceUsed:w,data:C,isFromMakeSpend:!0}):m=de(te({from:[this.walletLocalData.publicKey],to:[k]},b),{gas:g.gasLimit,gasUsed:"0",tokenRecipientAddress:h,nonceUsed:w,data:C,isFromMakeSpend:!0}),g.useEstimatedGasLimit&&(m.gas=yield this.estimateGasLimit({contractAddress:k,estimateGasParams:[{to:k!=null?k:h,from:this.walletLocalData.publicKey,gas:"0xffffff",value:S,data:C},"latest"],miningFees:g,publicAddress:h}));const G=(n=this.walletLocalData.totalBalances[this.currencyInfo.currencyCode])!=null?n:"0";let B=(0,c.mul)(g.gasPrice,m.gas),Q="0",x=null,$="0";if(this.optimismRollupParams!=null){const O={nonce:m.nonceUsed,gasPriceL1Wei:this.optimismRollupParams.gasPriceL1Wei,gasLimit:m.gas,to:m.to[0],value:S,data:m.data,chainParams:this.networkInfo.chainParams,dynamicOverhead:this.optimismRollupParams.dynamicOverhead,fixedOverhead:this.optimismRollupParams.fixedOverhead};$=Ue(O)}else if(this.networkInfo.arbitrumRollupParams!=null){const O=this.ethNetwork.networkAdapters.filter(fe=>fe.config.type==="rpc").map(fe=>fe.config.servers).flat(),{l1Gas:R,l1GasPrice:j}=yield Je({destinationAddress:h,nodeInterfaceAddress:this.networkInfo.arbitrumRollupParams.nodeInterfaceAddress,rpcServers:O,txData:C!=null?C:"0x"});$=(0,c.mul)((0,c.mul)(R,j),"1.1"),m.gas=(0,c.add)(m.gas,R)}if(i===this.currencyInfo.currencyCode){if(B=(0,c.add)(B,$),Q=(0,c.add)(B,f),!o&&(0,c.gt)(Q,G))throw new A.C_;f=(0,c.mul)(Q,"-1")}else{if(x=(0,c.add)(B,$),!o&&(0,c.gt)(x,G))throw new A.C_({currencyCode:this.currencyInfo.currencyCode,networkFee:x});const O=(r=this.walletLocalData.totalBalances[i])!=null?r:"0";if(!o&&(0,c.gt)(f,O))throw new A.C_;B="0",f=(0,c.mul)(f,"-1")}const N={blockHeight:0,currencyCode:i,date:0,feeRateUsed:Ie(g.gasPrice,m.gas,void 0,b.minerTip),isSend:f.startsWith("-"),memos:s,nativeAmount:f,networkFee:B,otherParams:m,ourReceiveAddresses:[],signedTx:"",txid:"",walletId:this.walletId};return x&&(N.parentNetworkFee=x),N})}signMessage(e,t,n){return K(this,null,function*(){const r=(0,P.sh)(this.currencyInfo.pluginId)(t);if((0,P.TP)(n.otherParams).typedData){const i=JSON.parse(e);try{return this.utils.signTypedData(i,r)}catch{return(0,L.signTypedData_v4)(le.from(r.privateKey,"hex"),{data:i})}}return this.utils.signMessage(e,r)})}signTx(e,t){return K(this,null,function*(){const n=(0,P.sh)(this.currencyInfo.pluginId)(t),r=(0,y.Xp)(e),a=(0,y.NC)(r.gas);let i;if(e.currencyCode===this.currencyInfo.currencyCode){const C=(0,c.add)(e.nativeAmount,e.networkFee);i=(0,c.mul)("-1",C,16)}else i=(0,c.mul)("-1",e.nativeAmount,16);(0,c.lt)(i,"0")&&(i="0x00");let o=r.nonceUsed;o==null&&(this.walletLocalData.numUnconfirmedSpendTxs!=null&&(0,c.gt)(this.otherData.unconfirmedNextNonce,this.otherData.nextNonce)?(o=this.otherData.unconfirmedNextNonce,this.walletLocalDataDirty=!0):o=this.otherData.nextNonce);const s=(0,y.NC)(o);let l;if(r.data!=null)l=r.data,e.currencyCode!==this.currencyInfo.currencyCode&&(i="0x00");else if(e.currencyCode===this.currencyInfo.currencyCode)l="";else{const C=I().simpleEncode("transfer(address,uint256):(uint256)",r.tokenRecipientAddress,i);l="0x"+le.from(C).toString("hex"),i="0x00"}const{chainParams:u}=this.networkInfo,h=D.Gn.custom(u),f=this.networkInfo.supportsEIP1559===!0?2:0,m=this.networkInfo.supportsEIP1559===!0?{maxFeePerGas:r.gasPrice,maxPriorityFeePerGas:r.minerTip}:{gasPrice:r.gasPrice},g=de(te({nonce:s},m),{gasLimit:a,to:r.to[0],value:i,data:l,type:f}),v=le.from(n.privateKey,"hex"),b=Oe().fromPrivateKey(v);this.warn(`signTx getAddressString ${b.getAddressString()}`);const k=T.nL.fromTxData(g,{common:h}).sign(v);return e.signedTx=(0,y.dg)(k.serialize()),e.txid=(0,y.dg)(k.hash()),e.date=Date.now()/1e3,e.otherParams!=null&&(e.otherParams.nonceUsed=o),this.warn(`signTx
9
+ ${JSON.stringify(v[b])}`),new Error(`getAllTxsEthscan ${n.name} is invalid`)}if(v.length===0)break;i++}return{allTransactions:o,server:s}})}processEvmScanTransaction(e,t){return V(this,null,function*(){var n;const r=[],a=(n=e.hash)!=null?n:e.transactionHash;if(a==null)throw new Error("Invalid transaction result format");const i=e.from.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase(),o=t!==this.ethEngine.currencyInfo.currencyCode,s="gasPrice"in e?e.gasPrice:void 0,l=s!=null?(0,c.mul)(s,e.gasUsed):"0";let u="0";if(i&&this.ethEngine.networkInfo.optimismRollupParams!=null){const w=yield this.ethEngine.ethNetwork.multicastRpc("eth_getTransactionReceipt",[a]),k=(0,P.zv)(w.result.result);u=(0,c.add)(u,(0,y.X0)(k.l1Fee))}let h,f,m;i?o?(h=(0,c.sub)("0",e.value),f="0",m=(0,c.add)(l,u)):e.from.toLowerCase()===e.to.toLowerCase()?(h=(0,c.sub)((0,c.sub)("0",l),u),f=(0,c.add)(l,u)):(h=(0,c.sub)((0,c.sub)((0,c.sub)("0",e.value),l),u),f=(0,c.add)(l,u)):(h=e.value,f="0",r.push(this.ethEngine.walletLocalData.publicKey));const g={from:[e.from],to:[e.to],gas:e.gas,gasPrice:s!=null?s:"",gasUsed:e.gasUsed,isFromMakeSpend:!1};let v=parseInt(e.blockNumber);return v<0&&(v=0),{blockHeight:v,currencyCode:t,date:parseInt(e.timeStamp),feeRateUsed:s!=null?Ie(s,e.gas,e.gasUsed):void 0,isSend:h.startsWith("-"),memos:[],nativeAmount:h,networkFee:f,otherParams:g,ourReceiveAddresses:r,parentNetworkFee:m,signedTx:"",txid:a,walletId:this.ethEngine.walletId}})}}var bt=E(77258),me=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Tt extends he{constructor(){super(...arguments),this.fetchBlockheight=null,this.broadcast=null,this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchNonce=null,this.fetchTokenBalance=null,this.fetchTokenBalances=null,this.fetchTxs=e=>me(this,null,function*(){try{return this.currentScan!=null?yield this.currentScan:(this.currentScan=this.checkTransactions(e),yield this.currentScan)}catch(t){throw console.error(t),t}finally{this.currentScan=void 0}}),this.filfoxMessageToEdgeTransaction=(e,t)=>{const n=[],r=t.transfers.filter(o=>o.type==="miner-fee"||o.type==="burner-fee").reduce((o,s)=>(0,c.add)(o,s.value),"0");let a;return t.from===e?(a=`-${r}`,t.to!==e&&(a=(0,c.sub)(a,t.value))):(a=t.value,n.push(e)),{blockHeight:t.height,currencyCode:this.ethEngine.currencyInfo.currencyCode,date:t.timestamp,isSend:a.startsWith("-"),memos:[],nativeAmount:a,networkFee:r,otherParams:{},ourReceiveAddresses:n,signedTx:"",txid:t.cid,walletId:this.ethEngine.walletId}}}checkTransactions(e){return me(this,null,function*(){const{startBlock:t,currencyCode:n}=e,{publicAddress:r}=yield this.ethEngine.getFreshAddress(),a=s=>{const l=this.ethEngine.tokenCheckTransactionsStatus[this.ethEngine.currencyInfo.currencyCode],u=s;l<1&&(u>=1||u>l*1.1)&&(this.ethEngine.tokenCheckTransactionsStatus[this.ethEngine.currencyInfo.currencyCode]=u,this.ethEngine.updateOnAddressesChecked())},i=({tx:s,progress:l})=>{s!=null&&(this.ethEngine.addTransaction(n,s),this.onUpdateTransactions(),this.ethEngine.walletLocalData.blockHeight<s.blockHeight&&this.onUpdateBlockHeight(s.blockHeight)),a(l)},o=[this.scanTransactionsFromFilfox(r,i)];return yield Promise.all(o),this.ethEngine.walletLocalData.lastAddressQueryHeight=this.ethEngine.walletLocalData.blockHeight,this.ethEngine.walletLocalDataDirty=!0,a(1),{tokenTxs:{[n]:{blockHeight:t,edgeTransactions:[]}},server:this.config.servers.join(",")}})}makeFilfoxApi(e){return new bt.V7(e,this.ethEngine.fetchCors)}onUpdateBlockHeight(e){this.ethEngine.walletLocalData.blockHeight!==e&&(this.ethEngine.walletLocalData.blockHeight=e,this.ethEngine.walletLocalDataDirty=!0,this.ethEngine.currencyEngineCallbacks.onBlockHeightChanged(this.ethEngine.walletLocalData.blockHeight))}onUpdateTransactions(){this.ethEngine.transactionsChangedArray.length>0&&(this.ethEngine.currencyEngineCallbacks.onTransactionsChanged(this.ethEngine.transactionsChangedArray),this.ethEngine.transactionsChangedArray=[])}scanTransactionsFromFilfox(e,t){return me(this,null,function*(){const n=new Set;let a=(yield this.serialServers(l=>me(this,null,function*(){return yield this.makeFilfoxApi(l).getAccountTransfers(e,0,1)}))).totalCount;const i=20;let o=Math.ceil(a/i),s=0;for(let l=o-1;l>=0;l--){const u=yield this.serialServers(f=>me(this,null,function*(){return yield this.makeFilfoxApi(f).getAccountTransfers(e,l,i)}));let h=u.transfers;if(u.totalCount!==a){const f=u.totalCount-a,g=(l+1)*(i/f),v=yield this.serialServers(b=>me(this,null,function*(){return yield this.makeFilfoxApi(b).getAccountTransfers(e,g,f)}));h=[...h,...v.transfers],a=u.totalCount,o=Math.ceil(a/i)}for(let f=h.length-1;f>=0;f--){if(!this.ethEngine.engineOn)return;const m=h[f];let g;if(m.height>=this.ethEngine.walletLocalData.lastAddressQueryHeight&&!n.has(m.message)){m.height>this.ethEngine.walletLocalData.lastAddressQueryHeight&&(this.ethEngine.walletLocalData.lastAddressQueryHeight=m.height,this.ethEngine.walletLocalDataDirty=!0);const b=yield this.serialServers(w=>me(this,null,function*(){return yield this.makeFilfoxApi(w).getMessageDetails(m.message)}));g=this.filfoxMessageToEdgeTransaction(e,b)}const v=a===0?1:++s/a;t({tx:g,progress:v}),n.add(m.message)}}})}}var Ae=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Ct extends he{constructor(){super(...arguments),this.fetchBlockheight=null,this.broadcast=null,this.getBaseFeePerGas=null,this.multicastRpc=null,this.fetchNonce=null,this.fetchTokenBalance=null,this.fetchTokenBalances=null,this.fetchTxs=e=>Ae(this,null,function*(){try{return this.currentScan!=null?yield this.currentScan:(this.currentScan=this.checkTransactions(e),yield this.currentScan)}catch(t){throw console.error(t),t}finally{this.currentScan=void 0}})}checkTransactions(e){return Ae(this,null,function*(){const{startBlock:t,currencyCode:n}=e,r=this.ethEngine.walletLocalData.publicKey,a=[];let i;for(;;){const s=yield this.queryTransactions(r,i);if(a.push(...s.items),i=s.next_page_params,s.items.some(l=>l.block<=t)||i==null)break}const o=a.map(s=>this.processScanTransaction(s,n));return{tokenTxs:{[n]:{blockHeight:t,edgeTransactions:o}},server:this.config.servers.join(",")}})}processScanTransaction(e,t){const n=[],r=e.hash;if(r==null)throw new Error("Invalid transaction result format");const a=e.from.hash.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase(),i=t!==this.ethEngine.currencyInfo.currencyCode,o=e.gas_price,s=o!=null?(0,c.mul)(o,e.gas_used):"0";let l,u,h;a?i?(l=(0,c.sub)("0",e.value),u="0",h=s):e.from.hash.toLowerCase()===e.to.hash.toLowerCase()?(l=(0,c.sub)("0",s),u=s):(l=(0,c.sub)((0,c.sub)("0",e.value),s),u=s):(l=e.value,u="0",n.push(this.ethEngine.walletLocalData.publicKey));const f={from:[e.from.hash],to:[e.to.hash],gas:e.gas_limit,gasPrice:o!=null?o:"",gasUsed:e.gas_used,isFromMakeSpend:!1};let m=e.block;return m<0&&(m=0),{blockHeight:m,currencyCode:t,date:new Date(e.timestamp).getTime()/1e3,feeRateUsed:o!=null?Ie(o,e.gas_limit,e.gas_used):void 0,isSend:l.startsWith("-"),memos:[],nativeAmount:l,networkFee:u,otherParams:f,ourReceiveAddresses:n,parentNetworkFee:h,signedTx:"",txid:r,walletId:this.ethEngine.walletId}}queryTransactions(e,t){return Ae(this,null,function*(){return yield this.serialServers(n=>Ae(this,null,function*(){const r=`addresses/${e}/transactions`,a=t!=null?new URLSearchParams(t).toString():"",i=`${n}/api/v2/${r}?${a}`,s=yield(yield this.ethEngine.fetchCors(i,{method:"GET",headers:{"content-type":"application/json"}})).text();return St(s)}))})}}const Re=(0,p.su)({hash:p.XC,is_contract:(0,p.Zz)(p.jK),is_verified:(0,p.Zz)(p.jK)}),At=(0,p.su)({timestamp:p.XC,gas_limit:p.XC,block:p.mH,to:Re,from:Re,hash:p.XC,gas_price:p.XC,gas_used:p.XC,value:p.XC}),It=(0,p.su)({block_number:p.mH,fee:p.XC,hash:p.XC,index:p.mH,inserted_at:p.XC,items_count:p.mH,value:p.XC}),St=(0,p.$e)((0,p.su)({items:(0,p._2)(At),next_page_params:(0,p.Zz)(It)}));var $e=E(96519),Ft=E(2593),Lt=E(21046),xt=JSON.parse('[{"constant":true,"inputs":[{"name":"user","type":"address"},{"name":"token","type":"address"}],"name":"tokenBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"users","type":"address[]"},{"name":"tokens","type":"address[]"}],"name":"balances","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]'),W=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Ot extends he{constructor(e,t){super(e,t),this.fetchTxs=null,this.fetchBlockheight=()=>W(this,null,function*(){const{chainParams:{chainId:n}}=this.ethEngine.networkInfo,{result:r,server:a}=yield this.serialServers(o=>W(this,null,function*(){const s=yield this.fetchPostRPC("eth_blockNumber",[],n,o);if(s.error!=null)throw this.ethEngine.error(`Successful eth_blockNumber response object from ${o} included an error ${JSON.stringify(s.error)}`),new Error("Successful eth_blockNumber response object included an error");return{server:ie()(o).hostname,result:s}}));return{blockHeight:Be(r).result,server:a}}),this.broadcast=n=>W(this,null,function*(){const{chainParams:{chainId:r}}=this.ethEngine.networkInfo;return yield this.parallelServers(a=>W(this,null,function*(){const i="eth_sendRawTransaction",o=[n.signedTx],s=yield this.fetchPostRPC(i,o,r,a),l=ie()(a,{},!0);return{result:this.broadcastResponseHandler(s,l.toString(),n),server:l.hostname}}))}),this.getBaseFeePerGas=this.ethEngine.networkInfo.supportsEIP1559!==!0?null:()=>W(this,null,function*(){const{chainParams:{chainId:n}}=this.ethEngine.networkInfo;return yield this.serialServers(r=>W(this,null,function*(){return yield this.fetchPostRPC("eth_getBlockByNumber",["latest",!1],n,r).then(a=>{if(a.error!=null){const o=`multicast get_baseFeePerGas error response from ${r}: ${JSON.stringify(a.error)}`;throw this.ethEngine.warn(o),new Error(o)}return a.result.baseFeePerGas})}))}),this.multicastRpc=(n,r)=>W(this,null,function*(){const{chainParams:{chainId:a}}=this.ethEngine.networkInfo;return yield this.serialServers(i=>W(this,null,function*(){const o=yield this.fetchPostRPC(n,r,a,i);if(o.error!=null)throw this.ethEngine.error(`Successful ${n} response object from ${i} included an error ${JSON.stringify(o.error)}`),new Error(`Successful ${n} response object included an error`);return{server:ie()(i).hostname,result:o}}))}),this.fetchNonce=()=>W(this,null,function*(){const{chainParams:{chainId:n}}=this.ethEngine.networkInfo,r=this.ethEngine.walletLocalData.publicKey,{result:a,server:i}=yield this.serialServers(s=>W(this,null,function*(){const l=yield this.fetchPostRPC("eth_getTransactionCount",[r,"latest"],n,s);if(l.error!=null)throw this.ethEngine.error(`Successful eth_getTransactionCount_RPC response object from ${s} included an error ${JSON.stringify(l.error)}`),new Error("Successful eth_getTransactionCount_RPC response object included an error");return{server:ie()(s).hostname,result:l}})),o=(0,P.tT)(a);if(/0[xX][0-9a-fA-F]+/.test(o.result))return{newNonce:(0,c.add)("0",o.result),server:i};throw new Error("checkNonceRpc returned invalid JSON")}),this.fetchTokenBalance=n=>W(this,null,function*(){const{chainParams:{chainId:r}}=this.ethEngine.networkInfo;let a,i,o,s;const l=this.ethEngine.walletLocalData.publicKey;try{if(n===this.ethEngine.currencyInfo.currencyCode)i=yield this.serialServers(u=>W(this,null,function*(){const h=yield this.fetchPostRPC("eth_getBalance",[l,"latest"],r,u);if(h.error!=null)throw this.ethEngine.error(`Successful eth_getBalance response object from ${u} included an error ${JSON.stringify(h.error)}`),new Error("Successful eth_getBalance response object included an error");if(!(0,y.vq)(h.result))throw new Error(`eth_getBalance not hex for ${ie()(u).hostname}`);return h.result=(0,y.Z8)(h.result),{server:ie()(u).hostname,result:h}})),o=i.result,s=i.server;else{const u=this.ethEngine.getTokenInfo(n);if(u!=null&&typeof u.contractAddress=="string"){const h={data:`0x70a08231${(0,y.gc)((0,y.KT)(l),32)}`,to:u.contractAddress},f=yield this.ethEngine.ethNetwork.multicastRpc("eth_call",[h,"pending"]),m=f.result.result;if(!m.startsWith("0x"))throw new Error("Invalid return value. Result not hex");f.result.result=(0,y.Z8)(m),o=f.result,s=f.server}}a=(0,P.tT)(o)}catch(u){throw this.ethEngine.error(`checkTokenBalRpc token ${n} response ${String(i!=null?i:"")} `,u),new Error(`checkTokenBalRpc invalid ${n} response ${JSON.stringify(o)}`)}return{tokenBal:{[n]:a.result},server:s}}),this.fetchTokenBalances=this.config.ethBalCheckerContract==null?null:()=>W(this,null,function*(){const{allTokensMap:n,networkInfo:r,walletLocalData:a,currencyInfo:i}=this.ethEngine,{chainParams:o}=r,s={},l=[],u=this.config.ethBalCheckerContract;if(u==null)return s;const h="0x0000000000000000000000000000000000000000",f=[h];for(const g of Object.values(this.ethEngine.allTokensMap)){const v=(0,H.Oj)(g.networkLocation);v!=null&&f.unshift(v.contractAddress)}const m=yield this.serialServers(g=>W(this,null,function*(){const v=new ee.r(g,o.chainId),w=yield new $e.CH(u,xt,v).balances([a.publicKey],f);if(w.length!==f.length)throw new Error("checkEthBalChecker balances length mismatch");return w})).catch(g=>{throw new Error(`All rpc servers failed eth balance checks: ${String(g)}`)});for(let g=0;g<m.length;g++){const v=f[g].toLowerCase(),b=Ft.O$.from(m[g]);let w;if(v===h){const{currencyCode:k}=i;w=k}else{const k=v.replace("0x","");b.gt(Lt._Y)&&l.push(k);const C=n[k];if(C==null){this.logError("checkEthBalChecker",new Error(`checkEthBalChecker missing builtinToken: ${v}`));continue}const{currencyCode:S}=C;w=S}s[w]=b.toString()}return{tokenBal:s,detectedTokenIds:l,server:"ethBalChecker"}}),this.config.servers=this.config.servers.map(n=>{try{return this.addRpcApiKey(n)}catch{}}).filter(n=>n!=null)}addRpcApiKey(e){const n=/{{(.*?)}}/g.exec(e);if(n!=null){const r=n[1],a=(0,P.jq)(r),i=this.ethEngine.initOptions[a];if(typeof i=="string")e=e.replace(n[0],i);else throw i==null?new Error(`Missing ${a} in 'initOptions' for ${this.ethEngine.currencyInfo.pluginId}`):new Error("Incorrect apikey type for RPC")}return e}fetchPostRPC(e,t,n,r){return W(this,null,function*(){const a={id:n,jsonrpc:"2.0",method:e,params:t};r=this.addRpcApiKey(r);const i=yield this.ethEngine.fetchCors(r,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify(a)}),o=ie()(r,{},!0);return i.ok||this.throwError(i,"fetchPostRPC",o.hostname),yield i.json()})}}var Bt=Object.defineProperty,Nt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,_e=(d,e,t)=>e in d?Bt(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,Ge=(d,e)=>{for(var t in e||(e={}))$t.call(e,t)&&_e(d,t,e[t]);if(De)for(var t of De(e))Dt.call(e,t)&&_e(d,t,e[t]);return d},_t=(d,e)=>Nt(d,Rt(e)),J=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});const Gt=2e4,Ht=2e4,He=2e4,Mt=2e4,Kt=4*2,jt=2*60,Ie=(d,e,t,n)=>{let r={};return r=_t(Ge(Ge({gasPrice:(0,c.div)((0,c.add)(d,"0",10),Y.toString(),Y.toString().length-1,10)},t!==void 0?{gasUsed:t}:{}),n!==void 0?{minerTip:(0,c.div)((0,c.add)(n,"0",10),Y.toString(),Y.toString().length-1,10)}:{}),{gasLimit:e}),r};class Ut{constructor(e){this.multicastRpc=(t,n)=>J(this,null,function*(){const r=this.qualifyNetworkAdapters("multicastRpc").map(i=>()=>J(this,null,function*(){return yield i.multicastRpc(t,n)}));return yield(0,y.QJ)(r)}),this.getBaseFeePerGas=()=>J(this,null,function*(){const t=this.qualifyNetworkAdapters("getBaseFeePerGas").map(n=>()=>J(this,null,function*(){return yield n.getBaseFeePerGas()}));return yield(0,y.QJ)(t)}),this.processEthereumNetworkUpdate=(t,n,r)=>{var a,i,o,s,l;if(n!=null){if(n.blockHeight!=null){this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate blockHeight ${(a=n.server)!=null?a:"no server"} won`);const u=n.blockHeight;this.ethEngine.log(`Got block height ${u}`),typeof u=="number"&&this.ethEngine.walletLocalData.blockHeight!==u&&(this.ethNeeds.blockHeightLastChecked=t,this.ethEngine.checkDroppedTransactionsThrottled(),this.ethEngine.walletLocalData.blockHeight=u,this.ethEngine.walletLocalDataDirty=!0,this.ethEngine.currencyEngineCallbacks.onBlockHeightChanged(this.ethEngine.walletLocalData.blockHeight))}if(n.newNonce!=null&&(this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate nonce ${(i=n.server)!=null?i:"no server"} won`),this.ethNeeds.nonceLastChecked=t,this.ethEngine.otherData.nextNonce=n.newNonce,this.ethEngine.walletLocalDataDirty=!0),n.tokenBal!=null){const u=n.tokenBal;this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate tokenBal ${(o=n.server)!=null?o:"no server"} won`);for(const h of Object.keys(u))this.ethNeeds.tokenBalLastChecked[h]=t,this.ethEngine.updateBalance(h,u[h]);this.ethEngine.currencyEngineCallbacks.onNewTokens((s=n.detectedTokenIds)!=null?s:[]),this.ethNeeds.tokenBalsLastChecked=t}if(n.tokenTxs!=null){const u=n.tokenTxs;this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} processEthereumNetworkUpdate tokenTxs ${(l=n.server)!=null?l:"no server"} won`);for(const h of Object.keys(u)){this.ethNeeds.tokenTxsLastChecked[h]=t,this.ethEngine.tokenCheckTransactionsStatus[h]=1;const f=u[h];for(const m of f.edgeTransactions)this.ethEngine.addTransaction(h,m);this.ethEngine.walletLocalData.lastTransactionQueryHeight[h]=r,this.ethEngine.walletLocalData.lastTransactionDate[h]=t}this.ethEngine.updateOnAddressesChecked()}this.ethEngine.transactionsChangedArray.length>0&&(this.ethEngine.currencyEngineCallbacks.onTransactionsChanged(this.ethEngine.transactionsChangedArray),this.ethEngine.transactionsChangedArray=[])}},this.ethEngine=e,this.ethNeeds={blockHeightLastChecked:0,nonceLastChecked:0,tokenBalsLastChecked:0,tokenBalLastChecked:{},tokenTxsLastChecked:{}},this.networkAdapters=this.buildNetworkAdapters(this.ethEngine.networkInfo),this.walletId=e.walletInfo.id}processAlethioTransaction(e,t){let n;const r=[];let a;const i=t!==this.ethEngine.currencyInfo.currencyCode,o=e.attributes.value,s=e.attributes.fee!=null&&e.attributes.fee!==""?e.attributes.fee:"0",l=e.relationships.from.data.id,u=e.relationships.to.data.id;t===this.ethEngine.currencyInfo.currencyCode?a=s:a="0";const h=l.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase();if(h)l.toLowerCase()===u.toLowerCase()?n=(0,c.mul)(a,"-1"):(n=(0,c.sub)("0",o),i||(n=(0,c.sub)(n,a)));else if(u.toLowerCase()===this.ethEngine.walletLocalData.publicKey.toLowerCase())n=o,r.push(this.ethEngine.walletLocalData.publicKey.toLowerCase());else return null;const f={from:[l],to:[u],gas:"0",gasPrice:"0",gasUsed:"0",isFromMakeSpend:!1};let m=e.attributes.globalRank[0];m<0&&(m=0);let g,v="0";return i&&h?g=a:v=a,{blockHeight:m,currencyCode:t,date:e.attributes.blockCreationTime,isSend:n.startsWith("-"),memos:[],nativeAmount:n,networkFee:v,otherParams:f,ourReceiveAddresses:r,parentNetworkFee:g,signedTx:"",txid:e.relationships.transaction.data.id,walletId:this.walletId}}broadcastTx(e){return J(this,null,function*(){const t=this.qualifyNetworkAdapters("broadcast").map(r=>J(this,null,function*(){return yield r.broadcast(e)})),n=yield(0,y.Wp)(t);return this.ethEngine.log(`${this.ethEngine.currencyInfo.currencyCode} broadcastTx ${n.server} won`),n})}check(e,...t){return J(this,null,function*(){return yield(0,y.QJ)(this.qualifyNetworkAdapters(e).map(n=>()=>J(this,null,function*(){return yield n[e](...t)}))).catch(n=>({}))})}getTokenCurrencyCode(e){const t=this.ethEngine.walletLocalData.publicKey;if(e.toLowerCase()===t.toLowerCase())return this.ethEngine.currencyInfo.currencyCode;for(const n of this.ethEngine.enabledTokens){const r=this.ethEngine.getTokenInfo(n);if(r!=null){const a=r.contractAddress;if(e!=null&&typeof a=="string"&&a.toLowerCase()===e.toLowerCase())return n}}}checkAndUpdate(e,t,n,r){return J(this,null,function*(){const a=Date.now();if(a-e>t)try{const i=yield r();this.processEthereumNetworkUpdate(a,i,n)}catch(i){this.ethEngine.error("checkAndUpdate ",i)}})}needsLoop(){return J(this,null,function*(){for(var e,t;this.ethEngine.engineOn;){const n=this.ethEngine.walletLocalData.blockHeight;yield this.checkAndUpdate(this.ethNeeds.blockHeightLastChecked,Gt,n,()=>J(this,null,function*(){return yield this.check("fetchBlockheight")})),yield this.checkAndUpdate(this.ethNeeds.nonceLastChecked,Ht,n,()=>J(this,null,function*(){return yield this.check("fetchNonce")}));const{currencyCode:r}=this.ethEngine.currencyInfo,a=this.ethEngine.enabledTokens;a.includes(r)||a.push(r);const i=this.networkAdapters.find(o=>o.fetchTokenBalances!=null)!=null;i&&(yield this.checkAndUpdate(this.ethNeeds.tokenBalsLastChecked,He,n,()=>J(this,null,function*(){return yield this.check("fetchTokenBalances")})));for(const o of a)i||(yield this.checkAndUpdate((e=this.ethNeeds.tokenBalLastChecked[o])!=null?e:0,He,n,()=>J(this,null,function*(){return yield this.check("fetchTokenBalance",o)}))),yield this.checkAndUpdate((t=this.ethNeeds.tokenTxsLastChecked[o])!=null?t:0,Mt,n,()=>J(this,null,function*(){var s,l;const u=(s=this.ethEngine.walletLocalData.lastTransactionQueryHeight[o])!=null?s:0,h=(l=this.ethEngine.walletLocalData.lastTransactionDate[o])!=null?l:0,f={startBlock:Math.max(u-Kt,0),startDate:Math.max(h-jt,0),currencyCode:o};return this.qualifyNetworkAdapters("fetchTxs").length===0?{tokenTxs:{[this.ethEngine.currencyInfo.currencyCode]:{blockHeight:f.startBlock,edgeTransactions:[]}},server:"none"}:yield this.check("fetchTxs",f)}));yield(0,y.HB)(1e3)}})}buildNetworkAdapters(e){const{networkAdapterConfigs:t}=e;return t.map(r=>Xt(r,this.ethEngine))}qualifyNetworkAdapters(...e){return this.networkAdapters.filter(t=>e.every(n=>t[n]!=null))}}const Xt=(d,e)=>{switch(d.type){case"amberdata-rpc":return new rt(e,d);case"blockbook":return new ot(e,d);case"blockchair":return new it(e,d);case"blockcypher":return new at(e,d);case"evmscan":return new Pt(e,d);case"filfox":return new Tt(e,d);case"pulsechain-scan":return new Ct(e,d);case"rpc":return new Ot(e,d)}};var Wt=E(93901),Jt=E(79325),Vt=JSON.parse('[{"inputs":[{"internalType":"uint64","name":"size","type":"uint64"},{"internalType":"uint64","name":"leaf","type":"uint64"}],"name":"constructOutboxProof","outputs":[{"internalType":"bytes32","name":"send","type":"bytes32"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"deposit","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"l2CallValue","type":"uint256"},{"internalType":"address","name":"excessFeeRefundAddress","type":"address"},{"internalType":"address","name":"callValueRefundAddress","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"estimateRetryableTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"blockNum","type":"uint64"}],"name":"findBatchContainingBlock","outputs":[{"internalType":"uint64","name":"batch","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"contractCreation","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"gasEstimateComponents","outputs":[{"internalType":"uint64","name":"gasEstimate","type":"uint64"},{"internalType":"uint64","name":"gasEstimateForL1","type":"uint64"},{"internalType":"uint256","name":"baseFee","type":"uint256"},{"internalType":"uint256","name":"l1BaseFeeEstimate","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"contractCreation","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"gasEstimateL1Component","outputs":[{"internalType":"uint64","name":"gasEstimateForL1","type":"uint64"},{"internalType":"uint256","name":"baseFee","type":"uint256"},{"internalType":"uint256","name":"l1BaseFeeEstimate","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"name":"getL1Confirmations","outputs":[{"internalType":"uint64","name":"confirmations","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"batchNum","type":"uint256"},{"internalType":"uint64","name":"index","type":"uint64"}],"name":"legacyLookupMessageBatchProof","outputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"path","type":"uint256"},{"internalType":"address","name":"l2Sender","type":"address"},{"internalType":"address","name":"l1Dest","type":"address"},{"internalType":"uint256","name":"l2Block","type":"uint256"},{"internalType":"uint256","name":"l1Block","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"calldataForL1","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nitroGenesisBlock","outputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"stateMutability":"pure","type":"function"}]'),Se=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});const Qt="low",Zt="standard",zt="high",Me="custom",Ke="1000000000";function je(d,e,t,n){var r,a,i,o,s,l,u,h,f;let m=!0,g,v;const{customNetworkFee:b}=d!=null?d:{};if(d.networkFeeOption===Me&&b!=null){const{gasLimit:N,gasPrice:O}=b;if((isNaN(N)||N==="")&&(isNaN(O)||O==="")){const R=new Error("Custom Fee must have at least gasLimit or gasPrice specified");throw R.name="ErrorBelowMinimumFee",R}if(O!=null&&O!==""){const R=(o=(a=(r=e.default)==null?void 0:r.gasPrice)==null?void 0:a.minGasPrice)!=null?o:(i=n.defaultNetworkFees.default.gasPrice)==null?void 0:i.minGasPrice;if(R!=null){const j=(0,c.mul)(O,Ke);if((0,c.lt)(j,R)||/^\s*$/.test(O)){const fe=new Error(`Gas price ${j} wei below minimum ${R} wei`);throw fe.name="ErrorBelowMinimumFee",fe}}v=(0,c.mul)(O,Ke)}if(N!=null&&N!==""){const R=(h=(l=(s=e.default)==null?void 0:s.gasLimit)==null?void 0:l.minGasLimit)!=null?h:(u=n.defaultNetworkFees.default.gasLimit)==null?void 0:u.minGasLimit;if(R!=null&&(0,c.lt)(N,R)||/^\s*$/.test(N)){const j=new Error(`Gas limit ${N} below minimum ${R}`);throw j.name="ErrorBelowMinimumFee",j}g=N,m=!1}}if(g!=null&&v!=null)return{gasLimit:g,gasPrice:v,useEstimatedGasLimit:!1};let w=e.default,k=e.default;if(typeof((f=d.spendTargets[0])==null?void 0:f.publicAddress)=="string"){const N=(0,y.f0)(d.spendTargets[0].publicAddress);typeof e[N]<"u"&&(k=e[N],m=!1,typeof k.gasPrice<"u"&&(w=k))}let C="regularTransaction";d.currencyCode!=null&&d.currencyCode!==t.currencyCode&&(C="tokenTransaction");let S="standard";typeof d.networkFeeOption=="string"&&d.networkFeeOption!==Me&&(S=d.networkFeeOption);const G=k.gasLimit!=null?k.gasLimit[C]:"21000";let B="";if(d.spendTargets[0].nativeAmount==null)throw new Error("ErrorInvalidNativeAmount");let Q=d.spendTargets[0].nativeAmount;if(C==="tokenTransaction"&&(Q=(0,c.div)(Q,"10")),w.gasPrice==null)throw new Error("ErrorInvalidGasPrice");const x=w.gasPrice;switch(S){case Qt:B=x.lowFee;break;case Zt:{if((0,c.gte)(Q,w.gasPrice.standardFeeHighAmount)){B=x.standardFeeHigh;break}if((0,c.lte)(Q,x.standardFeeLowAmount)){if(w.gasPrice==null)throw new Error("ErrorInvalidGasPrice");B=w.gasPrice.standardFeeLow;break}const N=(0,c.sub)(x.standardFeeHighAmount,x.standardFeeLowAmount),O=(0,c.sub)(x.standardFeeHigh,x.standardFeeLow),R=(0,c.sub)(Q,x.standardFeeLowAmount),j=(0,c.mul)(R,O),fe=(0,c.div)(j,N);B=(0,c.add)(x.standardFeeLow,fe);break}case zt:B=w.gasPrice.highFee;break;default:throw new Error("Invalid networkFeeOption")}return{gasLimit:g!=null?g:G,gasPrice:v!=null?v:B,useEstimatedGasLimit:m}}const Yt="1040",Ue=d=>{const{chainParams:e,data:t,dynamicOverhead:n,fixedOverhead:r,gasPriceL1Wei:a,gasLimit:i,nonce:o,to:s,value:l="0x0"}=d,u=D.Gn.custom(e),f=T.nL.fromTxData({nonce:o!=null?(0,y.X0)(o):void 0,gasPrice:(0,y.X0)(a),gasLimit:(0,y.X0)(i),to:s,value:l,data:t===null?void 0:t},{common:u}).raw(),v=Xe(f).map(S=>S==null?"":Jt.YU.stringify(S).toLowerCase()).join().match(/(.{1,2})/g);if(v==null)throw new Error("Invalid rawTx string");let b=0;for(let S=0;S<v.length;S++)v[S]==="00"?b+=4:b+=16;const w=(0,c.add)((0,c.add)(b.toString(),r),Yt),k=(0,c.div)(n,"1000000",18);return(0,c.ceil)((0,c.mul)((0,c.mul)(a,w),k),0)};function Xe(d,e=[]){return d.forEach(t=>{if(t!=null){if(Array.isArray(t))return Xe(t,e);e.push(t)}}),e}function We(d,e,t){return Se(this,null,function*(){if(d<2)return{gasPrice:(0,c.mul)("1",e,16)};{const n=e;let r=(0,c.sub)(n,t);return(0,c.lte)(r,"0")&&(r=(0,c.div)(n,"10",0)),{gasPrice:(0,c.mul)("1",n,16),minerTip:(0,c.mul)("1",r,16)}}})}let Fe={destinationAddress:"",l1Gas:"0",l1GasPrice:"10000000000"};const Je=d=>Se(void 0,null,function*(){const{rpcServers:e,nodeInterfaceAddress:t,destinationAddress:n,txData:r}=d;if(n===Fe.destinationAddress)return{l1Gas:Fe.l1Gas,l1GasPrice:Fe.l1GasPrice};const a=o=>Se(void 0,null,function*(){const s=new Wt.c(o),u=yield new $e.CH(t,Vt,s).callStatic.gasEstimateL1Component(n,!1,r,{blockTag:"latest"});return{l1Gas:u.gasEstimateForL1.toString(),l1GasPrice:u.baseFee.toString()}}),i=yield(0,y.QJ)(e.map(o=>()=>Se(void 0,null,function*(){return yield a(o)})));return Fe={destinationAddress:n,l1Gas:i.l1Gas,l1GasPrice:i.l1GasPrice},i});var le=E(48764).Buffer,qt=Object.defineProperty,en=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,nn=Object.getPrototypeOf,sn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,on=Reflect.get,Qe=(d,e,t)=>e in d?qt(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,te=(d,e)=>{for(var t in e||(e={}))sn.call(e,t)&&Qe(d,t,e[t]);if(Ve)for(var t of Ve(e))rn.call(e,t)&&Qe(d,t,e[t]);return d},de=(d,e)=>en(d,tn(e)),xe=(d,e,t)=>on(nn(d),t,e),K=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class Ee extends re.P{constructor(e,t,n,r,a,i){super(e,t,n,a),this.updateNetworkFeesFromBaseFeePerGas=()=>K(this,null,function*(){var l;const{supportsEIP1559:u=!1}=this.networkInfo;if(!u)return;const h=yield this.ethNetwork.getBaseFeePerGas();if(h==null)return;const f=(0,y.Z8)(h),m=this.networkFees;if(m.default==null||m.default.gasPrice==null)return;const g=this.networkInfo.defaultNetworkFees.default,v=m.default.minPriorityFee||g.minPriorityFee,b=(l=m.default.baseFeeMultiplier)!=null?l:g.baseFeeMultiplier;if(v==null||b==null)return;const w={lowFee:"",standardFeeLow:"",standardFeeHigh:"",highFee:""};for(const k of Object.keys(b)){const C=(0,c.mul)(b[k],f),S=(0,c.add)(C,v);w[k]=(0,c.div)(S,"1")}return this.log(`updateNetworkFeesFromBaseFeePerGas ${this.currencyInfo.currencyCode}`),Ce(this.log,w),w}),this.initOptions=r,this.networkInfo=e.networkInfo,this.ethNetwork=new Ut(this),this.lastEstimatedGasLimit={publicAddress:"",contractAddress:"",gasLimit:""},this.networkInfo.optimismRollupParams!=null&&(this.optimismRollupParams=this.networkInfo.optimismRollupParams),this.networkFees=this.networkInfo.defaultNetworkFees,this.fetchCors=(0,y.zR)(e.io);const{infoFeeProvider:o,externalFeeProviders:s}=mt(this.fetchCors,this.currencyInfo,this.initOptions,this.log,this.networkInfo);this.infoFeeProvider=o,this.externalFeeProviders=[...s,this.updateNetworkFeesFromBaseFeePerGas],this.utils={signMessage:(l,u)=>{if(!(0,y.vq)(l))throw new Error("ErrorInvalidMessage");const h=le.from(u.privateKey,"hex"),f=(0,y.ah)(l),m=F().hashPersonalMessage(f),{v:g,r:v,s:b}=F().ecsign(m,h);return F().toRpcSig(g,v,b)},signTypedData:(l,u)=>{const h=ft(l),f=le.from(u.privateKey,"hex"),{types:m}=h;function g(x,$=[]){if($.includes(x)||m[x]===void 0)return $;$.push(x);for(const N of m[x])for(const O of g(N.type,$))$.includes(O)||$.push(O);return $}function v(x){let $=g(x);$=$.filter(O=>O!==x),$=[x].concat($.sort());let N="";for(const O of $)N+=`${O}(${m[O].map(({name:R,type:j})=>`${j} ${R}`).join(",")})`;return N}function b(x){return F().keccak256(v(x))}function w(x,$){const N=[],O=[];N.push("bytes32"),O.push(b(x));for(const R of m[x]){let j=$[R.name];if(R.type==="string"||R.type==="bytes")N.push("bytes32"),j=F().keccak256(j),O.push(j);else if(m[R.type]!==void 0)N.push("bytes32"),j=F().keccak256(w(R.type,j)),O.push(j);else{if(R.type.lastIndexOf("]")===R.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");N.push(R.type),O.push(j)}}return I().rawEncode(N,O)}function k(x,$){return F().keccak256(w(x,$))}function C(){return F().keccak256(le.concat([le.from("1901","hex"),k("EIP712Domain",h.domain),k(h.primaryType,h.message)]))}const S=F().ecsign(C(),f),{v:G,r:B,s:Q}=S;return F().bufferToHex(le.concat([F().setLengthLeft(B,32),F().setLengthLeft(Q,32),F().toBuffer(G)]))},txRpcParamsToSpendInfo:l=>{const u={otherParams:l};l.to!=null&&(u.publicAddress=l.to),l.value!=null?u.nativeAmount=(0,y.Z8)(l.value):u.nativeAmount="0";let h,f,m;return l.gas!=null&&(f=(0,y.Z8)(l.gas),h="custom"),l.gasPrice!=null&&(m=(0,c.div)((0,y.Z8)(l.gasPrice),Y.toString(),18),h="custom"),{currencyCode:this.currencyInfo.currencyCode,spendTargets:[u],memos:[{type:"hex",value:(0,y.KT)(l.data),hidden:!0,memoName:"data"}],networkFeeOption:h,customNetworkFee:{gasLimit:f,gasPrice:m},otherParams:l}}},this.otherMethods={parseWalletConnectV2Payload:l=>K(this,null,function*(){var u,h;try{let f="0",m="0";switch(l.method){case"eth_sendTransaction":case"eth_signTransaction":{const g=(0,p.su)({from:p.XC,to:(0,p.Zz)(p.XC),data:p.XC,gas:(0,p.Zz)(p.XC),gasPrice:(0,p.Zz)(p.XC),value:(0,p.Zz)(p.XC)})(l.params[0]),{gas:v,gasPrice:b,value:w}=g,k=C=>{var S,G;v==null?g.gas=(0,y.X0)(C):C=(0,y.Z8)(v);let B=(G=(S=this.networkFees.default.gasPrice)==null?void 0:S.standardFeeHigh)!=null?G:"0";b==null?g.gasPrice=(0,y.X0)(B):B=(0,y.Z8)(b),m=(0,c.mul)(C,B)};w!=null&&(f=(0,y.Z8)(w)),((u=this.networkFees.default.gasLimit)==null?void 0:u.tokenTransaction)==null?this.ethNetwork.multicastRpc("eth_estimateGas",[g]).then(C=>{const S=(0,c.add)(parseInt(C.result.result,16).toString(),"0");k(S)}).catch(C=>{this.warn("Wallet connect call_request failed to get gas limit",C)}):k((h=this.networkFees.default.gasLimit)==null?void 0:h.tokenTransaction);break}}return{nativeAmount:f,networkFee:m,tokenId:null}}catch(f){throw this.warn("Wallet connect call_request ",f),f}}),txRpcParamsToSpendInfo:l=>K(this,null,function*(){return this.utils.txRpcParamsToSpendInfo(l)})}}estimateGasLimit(e){return K(this,null,function*(){var t,n;const{contractAddress:r,estimateGasParams:a,miningFees:i,publicAddress:o}=e,s=a[0].data!=null;if(this.lastEstimatedGasLimit.gasLimit!==""&&this.lastEstimatedGasLimit.publicAddress===o&&this.lastEstimatedGasLimit.contractAddress===r)return this.lastEstimatedGasLimit.gasLimit;let l=i.gasLimit;try{const h=(yield this.ethNetwork.multicastRpc("eth_getCode",[a[0].to,"latest"])).result.result!=="0x",f=(m=0)=>K(this,null,function*(){const g=this.networkInfo.defaultNetworkFees.default.gasLimit;try{if(g!=null&&!h&&!s)l=g.regularTransaction;else{const v=yield this.ethNetwork.multicastRpc("eth_estimateGas",a);l=(0,c.add)(parseInt(v.result.result,16).toString(),"0"),h&&(l=(0,c.mul)(l,"2"))}this.lastEstimatedGasLimit={publicAddress:o,contractAddress:r,gasLimit:l}}catch{if(g==null){if(m>5)throw new Error("Unable to estimate gas limit after 5 tries. Please try again later");return yield f(m+1)}if(s)throw new Error("Unable to estimate gas limit. Please try again later");g.tokenTransaction!=null&&(l=g.tokenTransaction)}});if(yield f(),(0,c.lt)(l,(n=(t=this.networkFees.default.gasLimit)==null?void 0:t.minGasLimit)!=null?n:"21000"))throw l=i.gasLimit,this.lastEstimatedGasLimit.gasLimit="",new Error("Calculated gasLimit less than minimum")}catch(u){this.error("makeSpend Error determining gas limit ",u)}return l})}setOtherData(e){this.otherData=(0,P.gF)(e)}updateNetworkFees(){return K(this,null,function*(){for(const e of this.externalFeeProviders)try{const t=yield e();if(t==null)continue;const n={};Object.keys(t).forEach(r=>{const a=r;n[a]=(0,y.Y7)(t[a])}),this.networkFees.default.gasPrice!=null&&(this.networkFees.default.gasPrice=te(te({},this.networkFees.default.gasPrice),n));break}catch(t){this.error(`Error fetching fees from ${e.name}. ${JSON.stringify(t)}`)}if(this.networkInfo.supportsEIP1559===!0)try{const e=yield this.ethNetwork.getBaseFeePerGas();if(e==null)return;this.networkFees.default.baseFee=e}catch(e){this.error(`Error fetching base fee: ${JSON.stringify(e)}`)}})}updateOptimismRollupParams(){return K(this,null,function*(){if(this.optimismRollupParams!=null){try{const e={to:this.optimismRollupParams.oracleContractAddress,data:this.optimismRollupParams.gasPricel1BaseFeeMethod},t=yield this.ethNetwork.multicastRpc("eth_call",[e,"latest"]),n=(0,P.tT)(t.result);this.optimismRollupParams=de(te({},this.optimismRollupParams),{gasPriceL1Wei:(0,c.ceil)((0,c.mul)((0,y.Z8)(n.result),this.optimismRollupParams.maxGasPriceL1Multiplier),0)})}catch(e){this.log.warn("Failed to update l1GasPrice",e)}try{const e={to:this.optimismRollupParams.oracleContractAddress,data:this.optimismRollupParams.dynamicOverheadMethod},t=yield this.ethNetwork.multicastRpc("eth_call",[e,"latest"]),n=(0,P.tT)(t.result);this.optimismRollupParams=de(te({},this.optimismRollupParams),{dynamicOverhead:(0,y.Z8)(n.result)})}catch(e){this.log.warn("Failed to update dynamicOverhead",e)}}})}clearBlockchainCache(){return K(this,null,function*(){yield xe(Ee.prototype,this,"clearBlockchainCache").call(this),this.otherData.nextNonce="0",this.otherData.unconfirmedNextNonce="0"})}startEngine(){return K(this,null,function*(){var e;this.engineOn=!0;const t=(e=this.networkInfo.feeUpdateFrequencyMs)!=null?e:we;this.infoFeeProvider().then(n=>K(this,null,function*(){if(this.log.warn("infoFeeProvider:",JSON.stringify(n,null,2)),this.networkFees=(0,y.nu)(this.networkFees,n),this.networkInfo.supportsEIP1559===!0)try{const r=yield this.ethNetwork.getBaseFeePerGas();if(r==null)return;this.networkFees.default.baseFee=r}catch(r){this.error(`Error fetching base fee: ${JSON.stringify(r)}`)}})).catch(()=>this.warn("Error fetching fees from Info Server")).finally(()=>{this.addToLoop("updateNetworkFees",t).catch(n=>this.warn(`Error setting up updateNetworkFees addToLoop: ${String(n)}`))}),this.addToLoop("updateOptimismRollupParams",tt).catch(()=>{}),this.ethNetwork.needsLoop(),xe(Ee.prototype,this,"startEngine").call(this)})}resyncBlockchain(){return K(this,null,function*(){yield this.killEngine(),yield this.clearBlockchainCache(),yield this.startEngine()})}getFreshAddress(){return K(this,null,function*(){const{publicKey:e}=this.walletLocalData;return{publicAddress:/[A-F]/.test(e)?e:F().toChecksumAddress(e.replace("0x",""))}})}getMaxSpendable(e){return K(this,null,function*(){e=(0,ve.s)(e,this.currencyInfo);const{edgeSpendInfo:t,currencyCode:n}=this.makeSpendCheck(e),r=this.getBalance({currencyCode:e.currencyCode}),i=e.spendTargets[0].publicAddress;if(i==null)throw new Error("makeSpend Missing publicAddress");const{contractAddress:o,data:s,value:l}=this.getTxParameterInformation(t,n,this.currencyInfo);if(e.currencyCode===this.currencyInfo.currencyCode){const u=(h,f)=>K(this,null,function*(){const m=(0,c.sub)(f,h);if((0,c.lte)(m,"1"))return h;const g=(0,c.add)(h,(0,c.div)(m,"2"));e.spendTargets[0].nativeAmount=g;const v=je(e,this.networkFees,this.currencyInfo,this.networkInfo);v.useEstimatedGasLimit&&(v.gasLimit=yield this.estimateGasLimit({contractAddress:o,estimateGasParams:[{to:o!=null?o:i,from:this.walletLocalData.publicKey,gas:"0xffffff",value:l,data:s},"latest"],miningFees:v,publicAddress:i}));const b=(0,c.mul)(v.gasPrice,v.gasLimit);let w="0";if(this.optimismRollupParams!=null){const C={nonce:this.otherData.unconfirmedNextNonce,gasPriceL1Wei:this.optimismRollupParams.gasPriceL1Wei,gasLimit:v.gasLimit,to:i,value:(0,y.X0)(g),chainParams:this.networkInfo.chainParams,dynamicOverhead:this.optimismRollupParams.dynamicOverhead,fixedOverhead:this.optimismRollupParams.fixedOverhead};w=Ue(C)}else if(this.networkInfo.arbitrumRollupParams!=null){const C=this.ethNetwork.networkAdapters.filter(B=>B.config.type==="rpc").map(B=>B.config.servers).flat(),{l1Gas:S,l1GasPrice:G}=yield Je({destinationAddress:i,nodeInterfaceAddress:this.networkInfo.arbitrumRollupParams.nodeInterfaceAddress,rpcServers:C,txData:s!=null?s:"0x"});w=(0,c.mul)((0,c.mul)(S,G),"1.1")}const k=(0,c.add)((0,c.add)(g,b),w);return(0,c.gt)(k,r)?yield u(h,g):yield u(g,f)});return yield u("0",(0,c.add)(r,"1"))}else return e.spendTargets[0].nativeAmount=r,yield this.makeSpend(e),this.getBalance({currencyCode:e.currencyCode})})}getTxParameterInformation(e,t,n){var r;const{memos:a=[]}=e,{spendTargets:i}=e,o=i[0],{publicAddress:s,nativeAmount:l}=o;let u=((r=a[0])==null?void 0:r.type)==="hex"?a[0].value:void 0;u!=null&&!u.startsWith("0x")&&(u=`0x${u}`);let h;if(t===n.currencyCode)return h=l==null?void 0:(0,y.X0)(l),{data:u,value:h};{let f;if(u!=null)f=s;else{const m=this.getTokenInfo(t);if(m==null||typeof m.contractAddress!="string")throw new Error("Error: Token not supported or invalid contract address");f=m.contractAddress;const g=I().simpleEncode("transfer(address,uint256):(uint256)",s,(0,y.X0)(l!=null?l:"0"));h="0x0",u="0x"+le.from(g).toString("hex")}return{contractAddress:f,data:u,value:h}}}makeSpend(e){return K(this,null,function*(){var t,n,r;e=(0,ve.s)(e,this.currencyInfo);const{edgeSpendInfo:a,currencyCode:i,skipChecks:o}=this.makeSpendCheck(e),{memos:s=[]}=a,{pendingTxs:l=[]}=a;if(a.spendTargets.length!==1)throw new Error("Error: only one output allowed");const u=a.spendTargets[0],{publicAddress:h}=u;let{nativeAmount:f}=u;if(h==null)throw new Error("makeSpend Missing publicAddress");if(f==null)throw new A.$D;if(!F().isValidAddress(h))throw new TypeError(`Invalid ${this.currencyInfo.pluginId} address`);let m;const g=je(a,this.networkFees,this.currencyInfo,this.networkInfo),v=this.networkInfo.supportsEIP1559===!0?2:0,b=yield We(v,g.gasPrice,(t=this.networkFees.default.baseFee)!=null?t:yield this.ethNetwork.getBaseFeePerGas());let w;if(l.length>0){const O=this.walletLocalData.otherData,R=this.walletLocalData.numUnconfirmedSpendTxs>0?O.unconfirmedNextNonce:O.nextNonce;w=(0,c.add)(R,l.length.toString())}const{contractAddress:k,data:C,value:S}=this.getTxParameterInformation(a,i,this.currencyInfo);k==null?m=de(te({from:[this.walletLocalData.publicKey],to:[h]},b),{gas:g.gasLimit,gasUsed:"0",nonceUsed:w,data:C,isFromMakeSpend:!0}):m=de(te({from:[this.walletLocalData.publicKey],to:[k]},b),{gas:g.gasLimit,gasUsed:"0",tokenRecipientAddress:h,nonceUsed:w,data:C,isFromMakeSpend:!0}),g.useEstimatedGasLimit&&(m.gas=yield this.estimateGasLimit({contractAddress:k,estimateGasParams:[{to:k!=null?k:h,from:this.walletLocalData.publicKey,gas:"0xffffff",value:S,data:C},"latest"],miningFees:g,publicAddress:h}));const G=(n=this.walletLocalData.totalBalances[this.currencyInfo.currencyCode])!=null?n:"0";let B=(0,c.mul)(g.gasPrice,m.gas),Q="0",x=null,$="0";if(this.optimismRollupParams!=null){const O={nonce:m.nonceUsed,gasPriceL1Wei:this.optimismRollupParams.gasPriceL1Wei,gasLimit:m.gas,to:m.to[0],value:S,data:m.data,chainParams:this.networkInfo.chainParams,dynamicOverhead:this.optimismRollupParams.dynamicOverhead,fixedOverhead:this.optimismRollupParams.fixedOverhead};$=Ue(O)}else if(this.networkInfo.arbitrumRollupParams!=null){const O=this.ethNetwork.networkAdapters.filter(fe=>fe.config.type==="rpc").map(fe=>fe.config.servers).flat(),{l1Gas:R,l1GasPrice:j}=yield Je({destinationAddress:h,nodeInterfaceAddress:this.networkInfo.arbitrumRollupParams.nodeInterfaceAddress,rpcServers:O,txData:C!=null?C:"0x"});$=(0,c.mul)((0,c.mul)(R,j),"1.1"),m.gas=(0,c.add)(m.gas,R)}if(i===this.currencyInfo.currencyCode){if(B=(0,c.add)(B,$),Q=(0,c.add)(B,f),!o&&(0,c.gt)(Q,G))throw new A.C_;f=(0,c.mul)(Q,"-1")}else{if(x=(0,c.add)(B,$),!o&&(0,c.gt)(x,G))throw new A.C_({currencyCode:this.currencyInfo.currencyCode,networkFee:x});const O=(r=this.walletLocalData.totalBalances[i])!=null?r:"0";if(!o&&(0,c.gt)(f,O))throw new A.C_;B="0",f=(0,c.mul)(f,"-1")}const N={blockHeight:0,currencyCode:i,date:0,feeRateUsed:Ie(g.gasPrice,m.gas,void 0,b.minerTip),isSend:f.startsWith("-"),memos:s,nativeAmount:f,networkFee:B,otherParams:m,ourReceiveAddresses:[],signedTx:"",txid:"",walletId:this.walletId};return x&&(N.parentNetworkFee=x),N})}signMessage(e,t,n){return K(this,null,function*(){const r=(0,P.sh)(this.currencyInfo.pluginId)(t);if((0,P.TP)(n.otherParams).typedData){const i=JSON.parse(e);try{return this.utils.signTypedData(i,r)}catch{return(0,L.signTypedData_v4)(le.from(r.privateKey,"hex"),{data:i})}}return this.utils.signMessage(e,r)})}signTx(e,t){return K(this,null,function*(){const n=(0,P.sh)(this.currencyInfo.pluginId)(t),r=(0,y.Xp)(e),a=(0,y.NC)(r.gas);let i;if(e.currencyCode===this.currencyInfo.currencyCode){const C=(0,c.add)(e.nativeAmount,e.networkFee);i=(0,c.mul)("-1",C,16)}else i=(0,c.mul)("-1",e.nativeAmount,16);(0,c.lt)(i,"0")&&(i="0x00");let o=r.nonceUsed;o==null&&(this.walletLocalData.numUnconfirmedSpendTxs!=null&&(0,c.gt)(this.otherData.unconfirmedNextNonce,this.otherData.nextNonce)?(o=this.otherData.unconfirmedNextNonce,this.walletLocalDataDirty=!0):o=this.otherData.nextNonce);const s=(0,y.NC)(o);let l;if(r.data!=null)l=r.data,e.currencyCode!==this.currencyInfo.currencyCode&&(i="0x00");else if(e.currencyCode===this.currencyInfo.currencyCode)l="";else{const C=I().simpleEncode("transfer(address,uint256):(uint256)",r.tokenRecipientAddress,i);l="0x"+le.from(C).toString("hex"),i="0x00"}const{chainParams:u}=this.networkInfo,h=D.Gn.custom(u),f=this.networkInfo.supportsEIP1559===!0?2:0,m=this.networkInfo.supportsEIP1559===!0?{maxFeePerGas:r.gasPrice,maxPriorityFeePerGas:r.minerTip}:{gasPrice:r.gasPrice},g=de(te({nonce:s},m),{gasLimit:a,to:r.to[0],value:i,data:l,type:f}),v=le.from(n.privateKey,"hex"),b=Oe().fromPrivateKey(v);this.warn(`signTx getAddressString ${b.getAddressString()}`);const k=T.nL.fromTxData(g,{common:h}).sign(v);return e.signedTx=(0,y.dg)(k.serialize()),e.txid=(0,y.dg)(k.hash()),e.date=Date.now()/1e3,e.otherParams!=null&&(e.otherParams.nonceUsed=o),this.warn(`signTx
10
10
  ${(0,y.oX)(e)}`),e})}broadcastTx(e){return K(this,null,function*(){return yield this.ethNetwork.broadcastTx(e),this.warn(`SUCCESS broadcastTx
11
11
  ${(0,y.oX)(e)}`),e})}accelerate(e){return K(this,null,function*(){var t,n,r,a;const{currencyCode:i}=e,o=(0,p.Vk)(P.Al)(e.otherParams);let s=e.txid,l=yield this.findTransaction(i,(0,y.f0)(s));if(l===-1&&((o==null?void 0:o.replacedTxid)!=null&&o.replacedTxid!==""&&(s=o.replacedTxid,l=yield this.findTransaction(i,(0,y.f0)(s))),l===-1))return null;const u=this.transactionList[i][l],h=(0,p.Vk)(P.Al)(u.otherParams);if(u==null||u.blockHeight!==0||h==null||h.nonceUsed==null||!h.isFromMakeSpend)return null;const f=((t=u.spendTargets)!=null?t:[])[0];if(f==null)return null;const m=this.networkInfo.supportsEIP1559===!0?2:0,g=yield We(m,(0,c.mul)(h.gasPrice,"2"),(n=this.networkFees.default.baseFee)!=null?n:yield this.ethNetwork.getBaseFeePerGas()),v=h.gas,b=de(te(te({},h),g),{gas:v,replacedTxid:s});let{nativeAmount:w}=f,k=(0,c.mul)(g.gasPrice,v),C="0",S;const G=(r=this.walletLocalData.totalBalances[this.currencyInfo.currencyCode])!=null?r:"0";if(i===this.currencyInfo.currencyCode){if(C=(0,c.add)(k,w),(0,c.gt)(C,G))throw new A.C_;w=(0,c.mul)(C,"-1")}else{if(S=k,(0,c.gt)(k,G))throw new A.C_({currencyCode:this.currencyInfo.currencyCode,networkFee:k});const B=(a=this.walletLocalData.totalBalances[i])!=null?a:"0";if((0,c.gt)(w,B))throw new A.C_;k="0",w=(0,c.mul)(w,"-1")}return de(te({},e),{txid:"",feeRateUsed:Ie(g.gasPrice,v,h.gasUsed,g.minerTip),nativeAmount:w,networkFee:k,otherParams:b,parentNetworkFee:S})})}saveTx(e){return K(this,null,function*(){var t;const n=(0,p.Vk)(P.Al)(e.otherParams);if((n==null?void 0:n.replacedTxid)!=null){const{currencyCode:r}=e,a=(0,y.f0)(n.replacedTxid),i=this.findTransaction(r,a);if(i!==-1){const o=this.transactionList[r][i],s=e.metadata,l=de(te({},o),{metadata:s,blockHeight:-1});this.addTransaction(r,l)}}if(e.blockHeight===0){const r=(t=e.otherParams)==null?void 0:t.nonceUsed;r!=null&&(this.otherData.unconfirmedNextNonce=(0,c.add)(r,"1"))}xe(Ee.prototype,this,"saveTx").call(this,e)})}}function an(d,e,t,n){return K(this,null,function*(){const{currencyInfo:r,initOptions:a}=d,i=(0,P.VX)(t),o=new Ee(d,e,i,(0,P.dp)(a),n,r);return yield o.loadEngine(),o})}var ln=Object.defineProperty,cn=Object.defineProperties,un=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,ze=(d,e,t)=>e in d?ln(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,Ye=(d,e)=>{for(var t in e||(e={}))hn.call(e,t)&&ze(d,t,e[t]);if(Ze)for(var t of Ze(e))dn.call(e,t)&&ze(d,t,e[t]);return d},qe=(d,e)=>cn(d,un(e)),q=(d,e,t)=>new Promise((n,r)=>{var a=s=>{try{o(t.next(s))}catch(l){r(l)}},i=s=>{try{o(t.throw(s))}catch(l){r(l)}},o=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);o((t=t.apply(d,e)).next())});class et{constructor(e){const{builtinTokens:t,currencyInfo:n,io:r,networkInfo:a,initOptions:i}=e;this.builtinTokens=t,this.currencyInfo=n,this.io=r,this.networkInfo=a,this.initOptions=i}getDisplayPrivateKey(e){return q(this,null,function*(){const{pluginId:t}=this.currencyInfo;return(0,P.sh)(t)(e.keys).privateKey})}getDisplayPublicKey(e){return q(this,null,function*(){const{keys:t}=(0,P.VX)(e);return t.publicKey})}importPrivateKey(e){return q(this,null,function*(){const{pluginId:t}=this.currencyInfo,{pluginMnemonicKeyName:n,pluginRegularKeyName:r}=this.networkInfo;if(/^(0x)?[0-9a-fA-F]{64}$/.test(e)){const a=Z.Buffer.from(e.replace(/^0x/,""),"hex");if(!F().isValidPrivate(a))throw new Error("Invalid private key");const i=a.toString("hex"),o={[r]:i};return this.derivePublicKey({type:`wallet:${t}`,id:"fake",keys:o}),o}else{if(!(0,X.validateMnemonic)(e))throw new Error("Invalid input");const a=yield this._mnemonicToHex(e);return{[n]:e,[r]:a}}})}createPrivateKey(e){return q(this,null,function*(){const{pluginMnemonicKeyName:t,pluginRegularKeyName:n}=this.networkInfo;if(e.replace("wallet:","")!==this.currencyInfo.pluginId)throw new Error("InvalidWalletType");const a=Z.Buffer.from(this.io.random(32)),i=(0,X.entropyToMnemonic)(a),o=yield this._mnemonicToHex(i);return{[t]:i,[n]:o}})}derivePublicKey(e){return q(this,null,function*(){const{pluginId:t}=this.currencyInfo,{hdPathCoinType:n,pluginMnemonicKeyName:r,pluginRegularKeyName:a}=this.networkInfo;if(e.type!==`wallet:${t}`)throw new Error("Invalid wallet type");let i;if(e.keys[r]!=null){const o=(0,X.mnemonicToSeedSync)(e.keys[r]),s=se().fromMasterSeed(o),l=`m/44'/${n}'/0'/0`,f=s.derivePath(`${l}/0`).getWallet().getPublicKey(),m=F().pubToAddress(f).toString("hex");i=F().toChecksumAddress(m)}else{const o=Z.Buffer.from(e.keys[a].replace(/^0x/,""),"hex");if(!F().isValidPrivate(o))throw new Error("Invalid private key");i=`0x${F().privateToAddress(o).toString("hex")}`}if(!F().isValidAddress(i))throw new Error("Invalid address");return{publicKey:i}})}_mnemonicToHex(e){return q(this,null,function*(){const{hdPathCoinType:t}=this.networkInfo,n=se().fromMasterSeed((0,X.mnemonicToSeedSync)(e)),r=`m/44'/${t}'/0'/0`;return n.derivePath(`${r}/0`).getWallet().getPrivateKeyString().replace(/^0x/,"")})}parseUri(e,t,n){return q(this,null,function*(){var r,a,i,o,s;const l={};this.networkInfo.uriNetworks.forEach(v=>{l[v]=!0});const{parsedUri:u,edgeParsedUri:h}=(0,_.k)(this.currencyInfo,e,l,t||this.currencyInfo.currencyCode,n);let f="";h.publicAddress&&(f=h.publicAddress,h.publicAddress=h.publicAddress.toLowerCase());let[m,g]=f.split("-");if(g||(g=m,m="pay"),f=g,/[A-F]/.test(f)&&!F().isValidChecksumAddress(f))throw new Error("InvalidPublicAddressError");if(f=f.toLowerCase(),!F().isValidAddress(f||""))throw new Error("InvalidPublicAddressError");if(m==="token"||m==="token_info"){if(!u.query)throw new Error("InvalidUriError");const v=(r=u.query.symbol)!=null?r:"SYM";if(v.length<2||v.length>5)throw new Error("Wrong Token symbol");const b=(a=u.query.name)!=null?a:v,w=(i=u.query.decimals)!=null?i:"18";let k="1000000000000000000";const C=parseInt(w);if(C<0||C>18)throw new Error("Wrong number of decimals");k="1"+"0".repeat(C);const S=(o=u.query.type)!=null?o:this.networkInfo.ercTokenStandard;return{token:{currencyCode:v,contractAddress:g.toLowerCase(),currencyName:b,multiplier:k,denominations:[{name:v,multiplier:k}],type:S.toUpperCase()}}}if(m==="pay"){const v=f,b=u.pathname.split("/")[1],w=u.query;switch(b){case"transfer":{const k=(s=w.address)!=null?s:"",C=v!=null?v:"",S=w.uint256!=null?(0,y.EE)(w.uint256):h.nativeAmount,G=this.currencyInfo.metaTokens.find(B=>B.contractAddress===C);if(t!=null&&(G==null||G.currencyCode!==t))throw new Error("InternalErrorInvalidCurrencyCode");if(!F().isValidAddress(k))throw new Error("InvalidPublicAddressError");if(!F().isValidAddress(C))throw new Error("InvalidContractAddressError");return qe(Ye({},h),{currencyCode:G==null?void 0:G.currencyCode,nativeAmount:S,publicAddress:k})}case void 0:{const k=v,C=w.value!=null?(0,y.EE)(w.value):h.nativeAmount;return qe(Ye({},h),{publicAddress:k,nativeAmount:C})}default:throw new Error("UnsupportedContractFunction")}}throw new Error("InvalidUriError")})}encodeUri(e){return q(this,arguments,function*(t,n=[]){const{publicAddress:r,nativeAmount:a,currencyCode:i}=t;if(!F().isValidAddress(r))throw new Error("InvalidPublicAddressError");let s;if(typeof a=="string"){const u=(0,y.Qs)(i!=null?i:this.currencyInfo.currencyCode,this.currencyInfo,n);if(u==null)throw new Error("InternalErrorInvalidCurrencyCode");s=(0,c.div)(a,u.multiplier,18)}return(0,_.Q)(t,this.currencyInfo.pluginId,s)})}getSplittableTypes(e){return Object.keys(M.s).map(t=>`wallet:${t}`)}getTokenId(e){return q(this,null,function*(){(0,H.Rp)(e);const t=(0,H.Oj)(e.networkLocation);if(t==null||!F().isValidAddress(t.contractAddress))throw new Error("ErrorInvalidContractAddress");return t.contractAddress.toLowerCase().replace(/^0x/,"")})}resolveEnsName(e){return q(this,null,function*(){const{networkAdapterConfigs:t}=this.networkInfo,n=t.find(i=>i.type==="rpc");if(n==null)throw new Error("resolveEnsName: No RpcAdapterConfig");const a=n.servers.map(i=>new ee.r(i,1));return yield(0,y.a7)({func:i=>q(this,null,function*(){return yield i.resolveName(e)}),providers:a})})}}function fn(d){return q(this,null,function*(){return new et(d)})}},77258:function(ke,ne,E){"use strict";E.d(ne,{V7:function(){return y}});var c=E(82448),X=(M,P,D)=>new Promise((T,p)=>{var A=I=>{try{U(D.next(I))}catch(oe){p(oe)}},L=I=>{try{U(D.throw(I))}catch(oe){p(oe)}},U=I=>I.done?T(I.value):Promise.resolve(I.value).then(A,L);U((D=D.apply(M,P)).next())});const Z=(0,c.su)({statusCode:c.mH,message:c.XC,error:c.XC}),z=M=>(0,c.$e)((0,c._C)(Z,M)),F=(0,c.su)({cid:c.XC,from:c.XC,height:c.mH,method:c.XC,nonce:c.mH,receipt:(0,c.su)({exitCode:c.mH}),timestamp:c.mH,to:c.XC,value:c.XC}),ce=(0,c.su)({cid:c.XC,height:c.mH,timestamp:c.mH,from:c.XC,to:c.XC,value:c.XC,gasLimit:c.mH,gasFeeCap:c.XC,gasPremium:c.XC,receipt:(0,c.su)({exitCode:c.mH,return:c.XC,gasUsed:c.mH}),baseFee:c.XC,fee:(0,c.su)({baseFeeBurn:c.XC,overEstimationBurn:c.XC,minerPenalty:c.XC,minerTip:c.XC,refund:c.XC}),transfers:(0,c._2)((0,c.su)({from:c.XC,fromId:c.XC,to:c.XC,toId:c.XC,value:c.XC,type:c.XC}))}),se=(0,c.su)({from:c.XC,height:c.mH,message:c.XC,timestamp:c.mH,to:c.XC,type:c.XC,value:c.XC}),ee=(0,c.su)({messages:(0,c._2)(F),totalCount:c.mH}),H=ce,_=(0,c.su)({transfers:(0,c._2)(se),totalCount:c.mH});class y{constructor(P,D){this.baseUrl=P,this.fetch=D}getAccountMessages(P,D,T=20){return X(this,null,function*(){const p=new URL(`${this.baseUrl}/address/${P}/messages`),A=new URLSearchParams({page:D.toString(),pageSize:T.toString()});p.search=A.toString();const U=yield(yield this.fetch(p.toString(),{method:"GET",headers:{"content-type":"application/json"}})).text(),I=z(ee)(U);if("error"in I)throw new Error(`Error response code ${I.statusCode}: ${I.message} ${I.error}`);return I})}getAccountTransfers(P,D,T=20){return X(this,null,function*(){const p=new URL(`${this.baseUrl}/address/${P}/transfers`),A=new URLSearchParams({page:D.toString(),pageSize:T.toString()});p.search=A.toString();const U=yield(yield this.fetch(p.toString(),{method:"GET",headers:{"content-type":"application/json"}})).text(),I=z(_)(U);if("error"in I)throw new Error(`Error response code ${I.statusCode}: ${I.message} ${I.error}`);return I})}getMessageDetails(P){return X(this,null,function*(){const T=yield(yield this.fetch(`${this.baseUrl}/message/${P}`,{method:"GET",headers:{"content-type":"application/json"}})).text(),p=z(H)(T);if("error"in p)throw new Error(`Error response code ${p.statusCode}: ${p.message} ${p.error}`);return p})}}},44613:function(ke,ne,E){"use strict";E.d(ne,{_E:function(){return _},dh:function(){return D},wI:function(){return y}});var c=E(68142),X=E.n(c),Z=E(79325),z=E(3666),F=E.n(z),ce=E(76714),se=E(48764).Buffer;const{utils:{crypto:{decode58Check:ee,getBase58CheckAddress:H}}}=F(),_=T=>{const p=ee(T);return Z.YU.stringify(p)},y=T=>{const p=Z.YU.parse(T);return H(Array.from(p))},M="a9059cbb",P=T=>{if(!T.startsWith(M))throw new Error("Not a TRC20 data payload");const p=T.replace(M,""),A=`41${p.substring(24,64)}`,L=y(A),U=p.substring(64,128),I=hexToDecimal(U);return[L,I]},D=(T,p)=>{const A=_(T).replace(/^(41)/,"0x"),L=X().simpleEncode("transfer(address,uint256):(uint256)",A,p);return se.from(L).toString("hex")}},89214:function(){},52361:function(){},94616:function(){},88924:function(){},55024:function(){}}]);
@@ -39,8 +39,8 @@ const currencyInfo = {
39
39
  walletType: 'wallet:algorand',
40
40
 
41
41
  // Explorers:
42
- addressExplorer: 'https://algoexplorer.io/address/%s',
43
- transactionExplorer: 'https://algoexplorer.io/tx/%s',
42
+ addressExplorer: 'https://explorer.bitquery.io/algorand/address/%s',
43
+ transactionExplorer: 'https://explorer.bitquery.io/algorand/tx/%s',
44
44
 
45
45
  denominations: [
46
46
  {
@@ -146,7 +146,7 @@ var _types3 = require('./types');
146
146
  const edgeTransaction = {
147
147
  blockHeight,
148
148
  currencyCode,
149
- date: parseInt(scanTx.timestamp),
149
+ date: new Date(scanTx.timestamp).getTime() / 1000,
150
150
  feeRateUsed:
151
151
  gasPrice != null
152
152
  ? _EthereumNetwork.getFeeRateUsed.call(void 0, gasPrice, scanTx.gas_limit, scanTx.gas_used)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edge-currency-accountbased",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Edge currency plugin for account based currencies",
5
5
  "homepage": "https://edge.app/",
6
6
  "repository": {