edge-currency-accountbased 2.2.3 → 2.2.5

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/android/src/main/assets/edge-currency-accountbased/1944.chunk.js +4 -0
  3. package/android/src/main/assets/edge-currency-accountbased/2153.chunk.js +2 -0
  4. package/android/src/main/assets/edge-currency-accountbased/2821.chunk.js +2 -0
  5. package/android/src/main/assets/edge-currency-accountbased/2896.chunk.js +35 -0
  6. package/android/src/main/assets/edge-currency-accountbased/2945.chunk.js +25 -0
  7. package/android/src/main/assets/edge-currency-accountbased/3491.chunk.js +1 -0
  8. package/android/src/main/assets/edge-currency-accountbased/{620.chunk.js → 3620.chunk.js} +1 -1
  9. package/android/src/main/assets/edge-currency-accountbased/{666.chunk.js → 3666.chunk.js} +1 -1
  10. package/android/src/main/assets/edge-currency-accountbased/3720.chunk.js +1 -0
  11. package/android/src/main/assets/edge-currency-accountbased/{978.chunk.js → 3978.chunk.js} +1 -1
  12. package/android/src/main/assets/edge-currency-accountbased/4251.chunk.js +4 -0
  13. package/android/src/main/assets/edge-currency-accountbased/4431.chunk.js +1 -0
  14. package/android/src/main/assets/edge-currency-accountbased/4618.chunk.js +20 -0
  15. package/android/src/main/assets/edge-currency-accountbased/{627.chunk.js → 4627.chunk.js} +1 -1
  16. package/android/src/main/assets/edge-currency-accountbased/4650.chunk.js +1 -0
  17. package/android/src/main/assets/edge-currency-accountbased/{826.chunk.js → 5179.chunk.js} +1 -1
  18. package/android/src/main/assets/edge-currency-accountbased/{835.chunk.js → 5835.chunk.js} +1 -1
  19. package/android/src/main/assets/edge-currency-accountbased/5836.chunk.js +1 -0
  20. package/android/src/main/assets/edge-currency-accountbased/6266.chunk.js +1 -0
  21. package/android/src/main/assets/edge-currency-accountbased/6291.chunk.js +58 -0
  22. package/android/src/main/assets/edge-currency-accountbased/6341.chunk.js +44 -0
  23. package/android/src/main/assets/edge-currency-accountbased/7221.chunk.js +1 -0
  24. package/android/src/main/assets/edge-currency-accountbased/7428.chunk.js +6 -0
  25. package/android/src/main/assets/edge-currency-accountbased/{481.chunk.js → 7481.chunk.js} +1 -1
  26. package/android/src/main/assets/edge-currency-accountbased/7542.chunk.js +1 -0
  27. package/android/src/main/assets/edge-currency-accountbased/7786.chunk.js +2 -0
  28. package/android/src/main/assets/edge-currency-accountbased/8190.chunk.js +1 -0
  29. package/android/src/main/assets/edge-currency-accountbased/{689.chunk.js → 8689.chunk.js} +1 -1
  30. package/android/src/main/assets/edge-currency-accountbased/{726.chunk.js → 8726.chunk.js} +1 -1
  31. package/android/src/main/assets/edge-currency-accountbased/9068.chunk.js +1 -0
  32. package/android/src/main/assets/edge-currency-accountbased/{223.chunk.js → 9223.chunk.js} +2 -2
  33. package/android/src/main/assets/edge-currency-accountbased/9539.chunk.js +10 -0
  34. package/android/src/main/assets/edge-currency-accountbased/{645.chunk.js → 9645.chunk.js} +6 -6
  35. package/android/src/main/assets/edge-currency-accountbased/9669.chunk.js +7 -0
  36. package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +1 -1
  37. package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +2 -2
  38. package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +2 -18
  39. package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +5 -5
  40. package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +2 -2
  41. package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
  42. package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
  43. package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
  44. package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
  45. package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +2 -2
  46. package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +2 -2
  47. package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +2 -2
  48. package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +2 -2
  49. package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
  50. package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
  51. package/lib/ethereum/info/avalancheInfo.js +8 -0
  52. package/lib/ethereum/info/ethereumInfo.js +8 -0
  53. package/lib/filecoin/FilecoinEngine.js +112 -79
  54. package/lib/filecoin/Filfox.js +68 -1
  55. package/lib/filecoin/filecoinInfo.js +8 -3
  56. package/lib/filecoin/filecoinTypes.js +1 -6
  57. package/lib/zcash/ZcashEngine.js +11 -9
  58. package/package.json +1 -1
  59. package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
  60. package/android/src/main/assets/edge-currency-accountbased/17.chunk.js +0 -58
  61. package/android/src/main/assets/edge-currency-accountbased/190.chunk.js +0 -1
  62. package/android/src/main/assets/edge-currency-accountbased/221.chunk.js +0 -1
  63. package/android/src/main/assets/edge-currency-accountbased/298.chunk.js +0 -44
  64. package/android/src/main/assets/edge-currency-accountbased/431.chunk.js +0 -1
  65. package/android/src/main/assets/edge-currency-accountbased/491.chunk.js +0 -1
  66. package/android/src/main/assets/edge-currency-accountbased/539.chunk.js +0 -10
  67. package/android/src/main/assets/edge-currency-accountbased/542.chunk.js +0 -1
  68. package/android/src/main/assets/edge-currency-accountbased/618.chunk.js +0 -20
  69. package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
  70. package/android/src/main/assets/edge-currency-accountbased/68.chunk.js +0 -1
  71. package/android/src/main/assets/edge-currency-accountbased/720.chunk.js +0 -1
  72. package/android/src/main/assets/edge-currency-accountbased/786.chunk.js +0 -2
  73. package/android/src/main/assets/edge-currency-accountbased/836.chunk.js +0 -1
  74. package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +0 -1
  75. package/android/src/main/assets/edge-currency-accountbased/944.chunk.js +0 -4
  76. package/android/src/main/assets/edge-currency-accountbased/945.chunk.js +0 -25
@@ -1,3 +1,3 @@
1
- (self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[627],{74083:function(L,e,d){"use strict";var y=this&&this.__values||function(t){var p=typeof Symbol=="function"&&Symbol.iterator,a=p&&t[p],f=0;if(a)return a.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&f>=t.length&&(t=void 0),{value:t&&t[f++],done:!t}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.chains=e._getInitializedChains=void 0;var S=w(d(87295)),b=w(d(31227)),r=w(d(40439)),m=w(d(37098)),l=w(d(17687)),n=w(d(38531));function v(t){var p,a,f={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli",123:"calaveras"},u={mainnet:S.default,ropsten:b.default,rinkeby:r.default,kovan:m.default,goerli:l.default,calaveras:n.default};if(t)try{for(var h=y(t),c=h.next();!c.done;c=h.next()){var i=c.value,s=i.name;f[i.chainId.toString()]=s,u[s]=i}}catch(B){p={error:B}}finally{try{c&&!c.done&&(a=h.return)&&a.call(h)}finally{if(p)throw p.error}}return u.names=f,u}e._getInitializedChains=v,e.chains=v()},97616:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EIPs=void 0,e.EIPs={1559:d(77523),2315:d(83339),2537:d(26769),2565:d(17897),2718:d(62170),2929:d(88436),2930:d(96213),3198:d(25491),3529:d(20070),3541:d(21871),3554:d(47225)}},37459:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hardforks=void 0,e.hardforks=[["chainstart",d(60114)],["homestead",d(62800)],["dao",d(7197)],["tangerineWhistle",d(22302)],["spuriousDragon",d(90716)],["byzantium",d(26985)],["constantinople",d(35993)],["petersburg",d(4064)],["istanbul",d(83166)],["muirGlacier",d(42946)],["berlin",d(20015)],["london",d(61250)]]},2832:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__extends||function(){var h=function(c,i){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,B){s.__proto__=B}||function(s,B){for(var T in B)B.hasOwnProperty(T)&&(s[T]=B[T])},h(c,i)};return function(c,i){h(c,i);function s(){this.constructor=c}c.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}(),S=this&&this.__assign||function(){return S=Object.assign||function(h){for(var c,i=1,s=arguments.length;i<s;i++){c=arguments[i];for(var B in c)Object.prototype.hasOwnProperty.call(c,B)&&(h[B]=c[B])}return h},S.apply(this,arguments)},b=this&&this.__values||function(h){var c=typeof Symbol=="function"&&Symbol.iterator,i=c&&h[c],s=0;if(i)return i.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&s>=h.length&&(h=void 0),{value:h&&h[s++],done:!h}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Hardfork=e.Chain=e.CustomChain=void 0;var r=d(17187),m=d(34606),l=d(74370),n=d(74083),v=d(37459),t=d(97616),p;(function(h){h.PolygonMainnet="polygon-mainnet",h.PolygonMumbai="polygon-mumbai",h.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",h.xDaiChain="x-dai-chain"})(p=e.CustomChain||(e.CustomChain={}));var a;(function(h){h[h.Mainnet=1]="Mainnet",h[h.Ropsten=3]="Ropsten",h[h.Rinkeby=4]="Rinkeby",h[h.Kovan=42]="Kovan",h[h.Goerli=5]="Goerli",h[h.Calaveras=123]="Calaveras"})(a=e.Chain||(e.Chain={}));var f;(function(h){h.Chainstart="chainstart",h.Homestead="homestead",h.Dao="dao",h.TangerineWhistle="tangerineWhistle",h.SpuriousDragon="spuriousDragon",h.Byzantium="byzantium",h.Constantinople="constantinople",h.Petersburg="petersburg",h.Istanbul="istanbul",h.MuirGlacier="muirGlacier",h.Berlin="berlin",h.London="london"})(f=e.Hardfork||(e.Hardfork={}));var u=function(h){w(c,h);function c(i){var s,B,T=h.call(this)||this;return T._supportedHardforks=[],T._eips=[],T._customChains=(s=i.customChains)!==null&&s!==void 0?s:[],T._chainParams=T.setChain(i.chain),T.DEFAULT_HARDFORK=(B=T._chainParams.defaultHardfork)!==null&&B!==void 0?B:f.Istanbul,T._hardfork=T.DEFAULT_HARDFORK,i.supportedHardforks&&(T._supportedHardforks=i.supportedHardforks),i.hardfork&&T.setHardfork(i.hardfork),i.eips&&T.setEIPs(i.eips),T}return c.custom=function(i,s){var B;s===void 0&&(s={});var T=(B=s.baseChain)!==null&&B!==void 0?B:"mainnet",g=S({},c._getChainParams(T));if(g.name="custom-chain",typeof i!="string")return new c(S({chain:S(S({},g),i)},s));if(i===p.PolygonMainnet)return c.custom({name:p.PolygonMainnet,chainId:137,networkId:137});if(i===p.PolygonMumbai)return c.custom({name:p.PolygonMumbai,chainId:80001,networkId:80001});if(i===p.ArbitrumRinkebyTestnet)return c.custom({name:p.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611});if(i===p.xDaiChain)return c.custom({name:p.xDaiChain,chainId:100,networkId:100});throw new Error("Custom chain "+i+" not supported")},c.forCustomChain=function(i,s,B,T){var g=c._getChainParams(i);return new c({chain:S(S({},g),s),hardfork:B,supportedHardforks:T})},c.isSupportedChainId=function(i){var s=n._getInitializedChains();return Boolean(s.names[i.toString()])},c._getChainParams=function(i,s){var B=n._getInitializedChains(s);if(typeof i=="number"||l.BN.isBN(i)){if(i=i.toString(),B.names[i]){var T=B.names[i];return B[T]}throw new Error("Chain with ID "+i+" not supported")}if(B[i])return B[i];throw new Error("Chain with name "+i+" not supported")},c.prototype.setChain=function(i){var s,B;if(typeof i=="number"||typeof i=="string"||l.BN.isBN(i))this._chainParams=c._getChainParams(i,this._customChains);else if(typeof i=="object"){if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");var T=["networkId","genesis","hardforks","bootstrapNodes"];try{for(var g=b(T),A=g.next();!A.done;A=g.next()){var k=A.value;if(i[k]===void 0)throw new Error("Missing required chain parameter: "+k)}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}this._chainParams=i}else throw new Error("Wrong input format");return this._chainParams},c.prototype.setHardfork=function(i){var s,B;if(!this._isSupportedHardfork(i))throw new Error("Hardfork "+i+" not set as supported in supportedHardforks");var T=!1;try{for(var g=b(v.hardforks),A=g.next();!A.done;A=g.next()){var k=A.value;k[0]===i&&(this._hardfork!==i&&(this._hardfork=i,this.emit("hardforkChanged",i)),T=!0)}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}if(!T)throw new Error("Hardfork with name "+i+" not supported")},c.prototype.getHardforkByBlockNumber=function(i){var s,B;i=l.toType(i,l.TypeOutput.BN);var T=f.Chainstart;try{for(var g=b(this.hardforks()),A=g.next();!A.done;A=g.next()){var k=A.value;k.block!==null&&i.gte(new l.BN(k.block))&&(T=k.name)}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}return T},c.prototype.setHardforkByBlockNumber=function(i){i=l.toType(i,l.TypeOutput.BN);var s=this.getHardforkByBlockNumber(i);return this.setHardfork(s),s},c.prototype._chooseHardfork=function(i,s){if(s===void 0&&(s=!0),!i)i=this._hardfork;else if(s&&!this._isSupportedHardfork(i))throw new Error("Hardfork "+i+" not set as supported in supportedHardforks");return i},c.prototype._getHardfork=function(i){var s,B,T=this.hardforks();try{for(var g=b(T),A=g.next();!A.done;A=g.next()){var k=A.value;if(k.name===i)return k}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}throw new Error("Hardfork "+i+" not defined for chain "+this.chainName())},c.prototype._isSupportedHardfork=function(i){var s,B;if(this._supportedHardforks.length>0)try{for(var T=b(this._supportedHardforks),g=T.next();!g.done;g=T.next()){var A=g.value;if(i===A)return!0}}catch(k){s={error:k}}finally{try{g&&!g.done&&(B=T.return)&&B.call(T)}finally{if(s)throw s.error}}else return!0;return!1},c.prototype.setEIPs=function(i){var s,B,T=this;i===void 0&&(i=[]);var g=function(D){if(!(D in t.EIPs))throw new Error(D+" not supported");var P=A.gteHardfork(t.EIPs[D].minimumHardfork);if(!P)throw new Error(D+" cannot be activated on hardfork "+A.hardfork()+", minimumHardfork: "+P);t.EIPs[D].requiredEIPs&&t.EIPs[D].requiredEIPs.forEach(function(o){if(!(i.includes(o)||T.isActivatedEIP(o)))throw new Error(D+" requires EIP "+o+", but is not included in the EIP list")})},A=this;try{for(var k=b(i),C=k.next();!C.done;C=k.next()){var F=C.value;g(F)}}catch(D){s={error:D}}finally{try{C&&!C.done&&(B=k.return)&&B.call(k)}finally{if(s)throw s.error}}this._eips=i},c.prototype.param=function(i,s){var B,T,g=null;try{for(var A=b(this._eips),k=A.next();!k.done;k=A.next()){var C=k.value;if(g=this.paramByEIP(i,s,C),g!==null)return g}}catch(F){B={error:F}}finally{try{k&&!k.done&&(T=A.return)&&T.call(A)}finally{if(B)throw B.error}}return this.paramByHardfork(i,s,this._hardfork)},c.prototype.paramByHardfork=function(i,s,B){var T,g,A,k;B=this._chooseHardfork(B);var C=null;try{for(var F=b(v.hardforks),D=F.next();!D.done;D=F.next()){var P=D.value;if(P[1].hasOwnProperty("eips")){var o=P[1].eips;try{for(var E=(A=void 0,b(o)),O=E.next();!O.done;O=E.next()){var x=O.value,M=this.paramByEIP(i,s,x);C=M!==null?M:C}}catch(U){A={error:U}}finally{try{O&&!O.done&&(k=E.return)&&k.call(E)}finally{if(A)throw A.error}}}else{if(!P[1][i])throw new Error("Topic "+i+" not defined");P[1][i][s]!==void 0&&(C=P[1][i][s].v)}if(P[0]===B)break}}catch(U){T={error:U}}finally{try{D&&!D.done&&(g=F.return)&&g.call(F)}finally{if(T)throw T.error}}return C},c.prototype.paramByEIP=function(i,s,B){if(!(B in t.EIPs))throw new Error(B+" not supported");var T=t.EIPs[B];if(!(i in T))throw new Error("Topic "+i+" not defined");if(T[i][s]===void 0)return null;var g=T[i][s].v;return g},c.prototype.paramByBlock=function(i,s,B){var T=this.activeHardforks(B),g=T[T.length-1].name;return this.paramByHardfork(i,s,g)},c.prototype.isActivatedEIP=function(i){var s,B;if(this.eips().includes(i))return!0;try{for(var T=b(v.hardforks),g=T.next();!g.done;g=T.next()){var A=g.value,k=A[1];if(this.gteHardfork(k.name)&&"eips"in k&&k.eips.includes(i))return!0}}catch(C){s={error:C}}finally{try{g&&!g.done&&(B=T.return)&&B.call(T)}finally{if(s)throw s.error}}return!1},c.prototype.hardforkIsActiveOnBlock=function(i,s,B){var T;B===void 0&&(B={}),s=l.toType(s,l.TypeOutput.BN);var g=(T=B.onlySupported)!==null&&T!==void 0?T:!1;i=this._chooseHardfork(i,g);var A=this.hardforkBlockBN(i);return!!(A&&s.gte(A))},c.prototype.activeOnBlock=function(i,s){return this.hardforkIsActiveOnBlock(null,i,s)},c.prototype.hardforkGteHardfork=function(i,s,B){var T,g;B===void 0&&(B={});var A=B.onlyActive===void 0?!1:B.onlyActive;i=this._chooseHardfork(i,B.onlySupported);var k;A?k=this.activeHardforks(null,B):k=this.hardforks();var C=-1,F=-1,D=0;try{for(var P=b(k),o=P.next();!o.done;o=P.next()){var E=o.value;E.name===i&&(C=D),E.name===s&&(F=D),D+=1}}catch(O){T={error:O}}finally{try{o&&!o.done&&(g=P.return)&&g.call(P)}finally{if(T)throw T.error}}return C>=F&&F!==-1},c.prototype.gteHardfork=function(i,s){return this.hardforkGteHardfork(null,i,s)},c.prototype.hardforkIsActiveOnChain=function(i,s){var B,T,g;s===void 0&&(s={});var A=(g=s.onlySupported)!==null&&g!==void 0?g:!1;i=this._chooseHardfork(i,A);try{for(var k=b(this.hardforks()),C=k.next();!C.done;C=k.next()){var F=C.value;if(F.name===i&&F.block!==null)return!0}}catch(D){B={error:D}}finally{try{C&&!C.done&&(T=k.return)&&T.call(k)}finally{if(B)throw B.error}}return!1},c.prototype.activeHardforks=function(i,s){var B,T;s===void 0&&(s={});var g=[],A=this.hardforks();try{for(var k=b(A),C=k.next();!C.done;C=k.next()){var F=C.value;if(F.block!==null){if(i!=null&&i<F.block)break;s.onlySupported&&!this._isSupportedHardfork(F.name)||g.push(F)}}}catch(D){B={error:D}}finally{try{C&&!C.done&&(T=k.return)&&T.call(k)}finally{if(B)throw B.error}}return g},c.prototype.activeHardfork=function(i,s){s===void 0&&(s={});var B=this.activeHardforks(i,s);if(B.length>0)return B[B.length-1].name;throw new Error("No (supported) active hardfork found")},c.prototype.hardforkBlock=function(i){return l.toType(this.hardforkBlockBN(i),l.TypeOutput.Number)},c.prototype.hardforkBlockBN=function(i){return i=this._chooseHardfork(i,!1),new l.BN(this._getHardfork(i).block)},c.prototype.isHardforkBlock=function(i,s){return i=l.toType(i,l.TypeOutput.BN),s=this._chooseHardfork(s,!1),this.hardforkBlockBN(s).eq(i)},c.prototype.nextHardforkBlock=function(i){var s=this.nextHardforkBlockBN(i);return s===null?null:l.toType(s,l.TypeOutput.Number)},c.prototype.nextHardforkBlockBN=function(i){i=this._chooseHardfork(i,!1);var s=this.hardforkBlockBN(i),B=this.hardforks().reduce(function(T,g){var A=new l.BN(g.block);return A.gt(s)&&T===null?A:T},null);return B},c.prototype.isNextHardforkBlock=function(i,s){i=l.toType(i,l.TypeOutput.BN),s=this._chooseHardfork(s,!1);var B=this.nextHardforkBlockBN(s);return B===null?!1:B.eq(i)},c.prototype._calcForkHash=function(i){var s,B,T=y.from(this.genesis().hash.substr(2),"hex"),g=y.alloc(0),A=0;try{for(var k=b(this.hardforks()),C=k.next();!C.done;C=k.next()){var F=C.value,D=F.block;if(D!==0&&D!==null&&D!==A){var P=y.from(D.toString(16).padStart(16,"0"),"hex");g=y.concat([g,P])}if(F.name===i)break;A=D}}catch(O){s={error:O}}finally{try{C&&!C.done&&(B=k.return)&&B.call(k)}finally{if(s)throw s.error}}var o=y.concat([T,g]),E=l.intToBuffer(m.buf(o)>>>0).toString("hex");return"0x"+E},c.prototype.forkHash=function(i){i=this._chooseHardfork(i,!1);var s=this._getHardfork(i);if(s.block===null){var B="No fork hash calculation possible for non-applied or future hardfork";throw new Error(B)}return s.forkHash!==void 0?s.forkHash:this._calcForkHash(i)},c.prototype.hardforkForForkHash=function(i){var s=this.hardforks().filter(function(B){return B.forkHash===i});return s.length>=1?s[s.length-1]:null},c.prototype.genesis=function(){return this._chainParams.genesis},c.prototype.hardforks=function(){return this._chainParams.hardforks},c.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},c.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},c.prototype.hardfork=function(){return this._hardfork},c.prototype.chainId=function(){return l.toType(this.chainIdBN(),l.TypeOutput.Number)},c.prototype.chainIdBN=function(){return new l.BN(this._chainParams.chainId)},c.prototype.chainName=function(){return this._chainParams.name},c.prototype.networkId=function(){return l.toType(this.networkIdBN(),l.TypeOutput.Number)},c.prototype.networkIdBN=function(){return new l.BN(this._chainParams.networkId)},c.prototype.eips=function(){return this._eips},c.prototype.consensusType=function(){return this._chainParams.consensus.type},c.prototype.consensusAlgorithm=function(){return this._chainParams.consensus.algorithm},c.prototype.consensusConfig=function(){return this._chainParams.consensus[this.consensusAlgorithm()]},c.prototype.copy=function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)},c}(r.EventEmitter);e.default=u},1297:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__read||function(P,o){var E=typeof Symbol=="function"&&P[Symbol.iterator];if(!E)return P;var O=E.call(P),x,M=[],U;try{for(;(o===void 0||o-- >0)&&!(x=O.next()).done;)M.push(x.value)}catch(j){U={error:j}}finally{try{x&&!x.done&&(E=O.return)&&E.call(O)}finally{if(U)throw U.error}}return M},S=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(e,"__esModule",{value:!0}),e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;var b=S(d(69282)),r=d(7231),m=d(95053),l=d(92644),n=d(1797),v=d(10215),t=d(39529),p=d(46350),a=d(25309),f=function(){function P(o,E,O,x){o===void 0&&(o=new r.BN(0)),E===void 0&&(E=new r.BN(0)),O===void 0&&(O=n.KECCAK256_RLP),x===void 0&&(x=n.KECCAK256_NULL),this.nonce=o,this.balance=E,this.stateRoot=O,this.codeHash=x,this._validate()}return P.fromAccountData=function(o){var E=o.nonce,O=o.balance,x=o.stateRoot,M=o.codeHash;return new P(E?new r.BN((0,v.toBuffer)(E)):void 0,O?new r.BN((0,v.toBuffer)(O)):void 0,x?(0,v.toBuffer)(x):void 0,M?(0,v.toBuffer)(M):void 0)},P.fromRlpSerializedAccount=function(o){var E=r.rlp.decode(o);if(!Array.isArray(E))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(E)},P.fromValuesArray=function(o){var E=w(o,4),O=E[0],x=E[1],M=E[2],U=E[3];return new P(new r.BN(O),new r.BN(x),M,U)},P.prototype._validate=function(){if(this.nonce.lt(new r.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new r.BN(0)))throw new Error("balance must be greater than zero");if(this.stateRoot.length!==32)throw new Error("stateRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")},P.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},P.prototype.serialize=function(){return r.rlp.encode(this.raw())},P.prototype.isContract=function(){return!this.codeHash.equals(n.KECCAK256_NULL)},P.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(n.KECCAK256_NULL)},P}();e.Account=f;var u=function(P){try{(0,p.assertIsString)(P)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(P)};e.isValidAddress=u;var h=function(P,o){(0,p.assertIsHexString)(P);var E=(0,l.stripHexPrefix)(P).toLowerCase(),O="";if(o){var x=(0,a.toType)(o,a.TypeOutput.BN);O=x.toString()+"0x"}for(var M=(0,t.keccakFromString)(O+E).toString("hex"),U="0x",j=0;j<E.length;j++)parseInt(M[j],16)>=8?U+=E[j].toUpperCase():U+=E[j];return U};e.toChecksumAddress=h;var c=function(P,o){return(0,e.isValidAddress)(P)&&(0,e.toChecksumAddress)(P,o)===P};e.isValidChecksumAddress=c;var i=function(P,o){(0,p.assertIsBuffer)(P),(0,p.assertIsBuffer)(o);var E=new r.BN(o);return E.isZero()?(0,t.rlphash)([P,null]).slice(-20):(0,t.rlphash)([P,y.from(E.toArray())]).slice(-20)};e.generateAddress=i;var s=function(P,o,E){(0,p.assertIsBuffer)(P),(0,p.assertIsBuffer)(o),(0,p.assertIsBuffer)(E),(0,b.default)(P.length===20),(0,b.default)(o.length===32);var O=(0,t.keccak256)(y.concat([y.from("ff","hex"),P,o,(0,t.keccak256)(E)]));return O.slice(-20)};e.generateAddress2=s;var B=function(P){return(0,m.privateKeyVerify)(P)};e.isValidPrivate=B;var T=function(P,o){return o===void 0&&(o=!1),(0,p.assertIsBuffer)(P),P.length===64?(0,m.publicKeyVerify)(y.concat([y.from([4]),P])):o?(0,m.publicKeyVerify)(P):!1};e.isValidPublic=T;var g=function(P,o){return o===void 0&&(o=!1),(0,p.assertIsBuffer)(P),o&&P.length!==64&&(P=y.from((0,m.publicKeyConvert)(P,!1).slice(1))),(0,b.default)(P.length===64),(0,t.keccak)(P).slice(-20)};e.pubToAddress=g,e.publicToAddress=e.pubToAddress;var A=function(P){return(0,p.assertIsBuffer)(P),y.from((0,m.publicKeyCreate)(P,!1)).slice(1)};e.privateToPublic=A;var k=function(P){return(0,e.publicToAddress)((0,e.privateToPublic)(P))};e.privateToAddress=k;var C=function(P){return(0,p.assertIsBuffer)(P),P.length!==64&&(P=y.from((0,m.publicKeyConvert)(P,!1).slice(1))),P};e.importPublic=C;var F=function(){var P=20,o=(0,v.zeros)(P);return(0,v.bufferToHex)(o)};e.zeroAddress=F;var D=function(P){try{(0,p.assertIsString)(P)}catch{return!1}var o=(0,e.zeroAddress)();return o===P};e.isZeroAddress=D},9380:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;var S=w(d(69282)),b=d(7231),r=d(10215),m=d(1297),l=function(){function n(v){(0,S.default)(v.length===20,"Invalid address length"),this.buf=v}return n.zero=function(){return new n((0,r.zeros)(20))},n.fromString=function(v){return(0,S.default)((0,m.isValidAddress)(v),"Invalid address"),new n((0,r.toBuffer)(v))},n.fromPublicKey=function(v){(0,S.default)(y.isBuffer(v),"Public key should be Buffer");var t=(0,m.pubToAddress)(v);return new n(t)},n.fromPrivateKey=function(v){(0,S.default)(y.isBuffer(v),"Private key should be Buffer");var t=(0,m.privateToAddress)(v);return new n(t)},n.generate=function(v,t){return(0,S.default)(b.BN.isBN(t)),new n((0,m.generateAddress)(v.buf,t.toArrayLike(y)))},n.generate2=function(v,t,p){return(0,S.default)(y.isBuffer(t)),(0,S.default)(y.isBuffer(p)),new n((0,m.generateAddress2)(v.buf,t,p))},n.prototype.equals=function(v){return this.buf.equals(v.buf)},n.prototype.isZero=function(){return this.equals(n.zero())},n.prototype.isPrecompileOrSystemAddress=function(){var v=new b.BN(this.buf),t=new b.BN(0),p=new b.BN("ffff","hex");return v.gte(t)&&v.lte(p)},n.prototype.toString=function(){return"0x"+this.buf.toString("hex")},n.prototype.toBuffer=function(){return y.from(this.buf)},n}();e.Address=l},10215:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__values||function(o){var E=typeof Symbol=="function"&&Symbol.iterator,O=E&&o[E],x=0;if(O)return O.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&x>=o.length&&(o=void 0),{value:o&&o[x++],done:!o}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},S=this&&this.__read||function(o,E){var O=typeof Symbol=="function"&&o[Symbol.iterator];if(!O)return o;var x=O.call(o),M,U=[],j;try{for(;(E===void 0||E-- >0)&&!(M=x.next()).done;)U.push(M.value)}catch(I){j={error:I}}finally{try{M&&!M.done&&(O=x.return)&&O.call(x)}finally{if(j)throw j.error}}return U};Object.defineProperty(e,"__esModule",{value:!0}),e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;var b=d(7231),r=d(92644),m=d(46350),l=function(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("Received an invalid integer type: ".concat(o));return"0x".concat(o.toString(16))};e.intToHex=l;var n=function(o){var E=(0,e.intToHex)(o);return y.from((0,r.padToEven)(E.slice(2)),"hex")};e.intToBuffer=n;var v=function(o){return y.allocUnsafe(o).fill(0)};e.zeros=v;var t=function(o,E,O){var x=(0,e.zeros)(E);return O?o.length<E?(o.copy(x),x):o.slice(0,E):o.length<E?(o.copy(x,E-o.length),x):o.slice(-E)},p=function(o,E){return(0,m.assertIsBuffer)(o),t(o,E,!1)};e.setLengthLeft=p;var a=function(o,E){return(0,m.assertIsBuffer)(o),t(o,E,!0)};e.setLengthRight=a;var f=function(o){for(var E=o[0];o.length>0&&E.toString()==="0";)o=o.slice(1),E=o[0];return o},u=function(o){return(0,m.assertIsBuffer)(o),f(o)};e.unpadBuffer=u;var h=function(o){return(0,m.assertIsArray)(o),f(o)};e.unpadArray=h;var c=function(o){return(0,m.assertIsHexString)(o),o=(0,r.stripHexPrefix)(o),f(o)};e.unpadHexString=c;var i=function(o){if(o==null)return y.allocUnsafe(0);if(y.isBuffer(o)||Array.isArray(o)||o instanceof Uint8Array)return y.from(o);if(typeof o=="string"){if(!(0,r.isHexString)(o))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(o));return y.from((0,r.padToEven)((0,r.stripHexPrefix)(o)),"hex")}if(typeof o=="number")return(0,e.intToBuffer)(o);if(b.BN.isBN(o)){if(o.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(o));return o.toArrayLike(y)}if(o.toArray)return y.from(o.toArray());if(o.toBuffer)return y.from(o.toBuffer());throw new Error("invalid type")};e.toBuffer=i;var s=function(o){return new b.BN((0,e.toBuffer)(o)).toNumber()};e.bufferToInt=s;var B=function(o){return o=(0,e.toBuffer)(o),"0x"+o.toString("hex")};e.bufferToHex=B;var T=function(o){return new b.BN(o).fromTwos(256)};e.fromSigned=T;var g=function(o){return y.from(o.toTwos(256).toArray())};e.toUnsigned=g;var A=function(o){return typeof o!="string"||(0,r.isHexPrefixed)(o)?o:"0x"+o};e.addHexPrefix=A;var k=function(o){var E=/^(00)+|(00)+$/g;if(o=(0,r.stripHexPrefix)(o),o.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");var O=y.from(o.replace(E,""),"hex");return O.toString("utf8")};e.toUtf8=k;var C=function(o){if(y.isBuffer(o))return"0x".concat(o.toString("hex"));if(o instanceof Array){for(var E=[],O=0;O<o.length;O++)E.push((0,e.baToJSON)(o[O]));return E}};e.baToJSON=C;var F=function(o){var E,O;try{for(var x=w(Object.entries(o)),M=x.next();!M.done;M=x.next()){var U=S(M.value,2),j=U[0],I=U[1];if(I!==void 0&&I.length>0&&I[0]===0)throw new Error("".concat(j," cannot have leading zeroes, received: ").concat(I.toString("hex")))}}catch(H){E={error:H}}finally{try{M&&!M.done&&(O=x.return)&&O.call(x)}finally{if(E)throw E.error}}};e.validateNoLeadingZeroes=F;function D(o){return Array.isArray(o)?o.map(function(E){return D(E)}):y.from(o)}e.arrToBufArr=D;function P(o){return Array.isArray(o)?o.map(function(E){return P(E)}):Uint8Array.from(o!=null?o:[])}e.bufArrToArr=P},1797:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=e.MAX_UINT64=void 0;var y=d(48764),w=d(7231);e.MAX_UINT64=new w.BN("ffffffffffffffff",16),e.MAX_INTEGER=new w.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new w.BN("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=y.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=y.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=y.Buffer.from(e.KECCAK256_RLP_S,"hex")},7231:function(L,e,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(l,n,v,t){t===void 0&&(t=v);var p=Object.getOwnPropertyDescriptor(n,v);(!p||("get"in p?!n.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return n[v]}}),Object.defineProperty(l,t,p)}:function(l,n,v,t){t===void 0&&(t=v),l[t]=n[v]}),w=this&&this.__setModuleDefault||(Object.create?function(l,n){Object.defineProperty(l,"default",{enumerable:!0,value:n})}:function(l,n){l.default=n}),S=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var n={};if(l!=null)for(var v in l)v!=="default"&&Object.prototype.hasOwnProperty.call(l,v)&&y(n,l,v);return w(n,l),n},b=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.rlp=e.BN=void 0;var r=b(d(13550));e.BN=r.default;var m=S(d(51675));e.rlp=m},39529:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160FromArray=e.ripemd160FromString=e.ripemd160=e.sha256FromArray=e.sha256FromString=e.sha256=e.keccakFromArray=e.keccakFromHexString=e.keccakFromString=e.keccak256=e.keccak=void 0;var w=d(82192),S=d(23482),b=d(7231),r=d(10215),m=d(46350),l=function(g,A){switch(A===void 0&&(A=256),(0,m.assertIsBuffer)(g),A){case 224:return(0,w.keccak224)(g);case 256:return(0,w.keccak256)(g);case 384:return(0,w.keccak384)(g);case 512:return(0,w.keccak512)(g);default:throw new Error("Invald algorithm: keccak".concat(A))}};e.keccak=l;var n=function(g){return(0,e.keccak)(g)};e.keccak256=n;var v=function(g,A){A===void 0&&(A=256),(0,m.assertIsString)(g);var k=y.from(g,"utf8");return(0,e.keccak)(k,A)};e.keccakFromString=v;var t=function(g,A){return A===void 0&&(A=256),(0,m.assertIsHexString)(g),(0,e.keccak)((0,r.toBuffer)(g),A)};e.keccakFromHexString=t;var p=function(g,A){return A===void 0&&(A=256),(0,m.assertIsArray)(g),(0,e.keccak)((0,r.toBuffer)(g),A)};e.keccakFromArray=p;var a=function(g){return g=(0,r.toBuffer)(g),S("sha256").update(g).digest()},f=function(g){return(0,m.assertIsBuffer)(g),a(g)};e.sha256=f;var u=function(g){return(0,m.assertIsString)(g),a(g)};e.sha256FromString=u;var h=function(g){return(0,m.assertIsArray)(g),a(g)};e.sha256FromArray=h;var c=function(g,A){g=(0,r.toBuffer)(g);var k=S("rmd160").update(g).digest();return A===!0?(0,r.setLengthLeft)(k,32):k},i=function(g,A){return(0,m.assertIsBuffer)(g),c(g,A)};e.ripemd160=i;var s=function(g,A){return(0,m.assertIsString)(g),c(g,A)};e.ripemd160FromString=s;var B=function(g,A){return(0,m.assertIsArray)(g),c(g,A)};e.ripemd160FromArray=B;var T=function(g){return(0,e.keccak)(b.rlp.encode(g))};e.rlphash=T},46350:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;var w=d(92644),S=function(l){if(!(0,w.isHexString)(l)){var n="This method only supports 0x-prefixed hex strings but input was: ".concat(l);throw new Error(n)}};e.assertIsHexString=S;var b=function(l){if(!y.isBuffer(l)){var n="This method only supports Buffer but input was: ".concat(l);throw new Error(n)}};e.assertIsBuffer=b;var r=function(l){if(!Array.isArray(l)){var n="This method only supports number arrays but input was: ".concat(l);throw new Error(n)}};e.assertIsArray=r;var m=function(l){if(typeof l!="string"){var n="This method only supports strings but input was: ".concat(l);throw new Error(n)}};e.assertIsString=m},74370:function(L,e,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(b,r,m,l){l===void 0&&(l=m);var n=Object.getOwnPropertyDescriptor(r,m);(!n||("get"in n?!r.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return r[m]}}),Object.defineProperty(b,l,n)}:function(b,r,m,l){l===void 0&&(l=m),b[l]=r[m]}),w=this&&this.__exportStar||function(b,r){for(var m in b)m!=="default"&&!Object.prototype.hasOwnProperty.call(r,m)&&y(r,b,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,w(d(1797),e),w(d(1297),e),w(d(9380),e),w(d(39529),e),w(d(41612),e),w(d(10215),e),w(d(30499),e),w(d(7231),e),w(d(25309),e);var S=d(92644);Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return S.isHexPrefixed}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return S.stripHexPrefix}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return S.padToEven}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return S.getBinarySize}}),Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return S.arrayContainsArray}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return S.toAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return S.fromUtf8}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return S.fromAscii}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return S.getKeys}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return S.isHexString}})},92644:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0;function w(a){if(typeof a!="string")throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof a));return a[0]==="0"&&a[1]==="x"}e.isHexPrefixed=w;var S=function(a){if(typeof a!="string")throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof a));return w(a)?a.slice(2):a};e.stripHexPrefix=S;function b(a){var f=a;if(typeof f!="string")throw new Error("[padToEven] value must be type 'string', received ".concat(typeof f));return f.length%2&&(f="0".concat(f)),f}e.padToEven=b;function r(a){if(typeof a!="string")throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof a));return y.byteLength(a,"utf8")}e.getBinarySize=r;function m(a,f,u){if(Array.isArray(a)!==!0)throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof a,"'"));if(Array.isArray(f)!==!0)throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof f,"'"));return f[u?"some":"every"](function(h){return a.indexOf(h)>=0})}e.arrayContainsArray=m;function l(a){var f="",u=0,h=a.length;for(a.substring(0,2)==="0x"&&(u=2);u<h;u+=2){var c=parseInt(a.substr(u,2),16);f+=String.fromCharCode(c)}return f}e.toAscii=l;function n(a){var f=y.from(a,"utf8");return"0x".concat(b(f.toString("hex")).replace(/^0+|0+$/g,""))}e.fromUtf8=n;function v(a){for(var f="",u=0;u<a.length;u++){var h=a.charCodeAt(u),c=h.toString(16);f+=c.length<2?"0".concat(c):c}return"0x".concat(f)}e.fromAscii=v;function t(a,f,u){if(!Array.isArray(a))throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat(typeof a));if(typeof f!="string")throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat(typeof a));for(var h=[],c=0;c<a.length;c++){var i=a[c][f];if(u&&!i)i="";else if(typeof i!="string")throw new Error("invalid abi - expected type 'string', received ".concat(typeof i));h.push(i)}return h}e.getKeys=t;function p(a,f){return!(typeof a!="string"||!a.match(/^0x[0-9A-Fa-f]*$/)||f&&a.length!==2+2*f)}e.isHexString=p},30499:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var S=w(d(69282)),b=d(92644),r=d(7231),m=d(10215),l=function(n,v,t){if(n.raw=[],n._fields=[],n.toJSON=function(a){if(a===void 0&&(a=!1),a){var f={};return n._fields.forEach(function(u){f[u]="0x".concat(n[u].toString("hex"))}),f}return(0,m.baToJSON)(n.raw)},n.serialize=function(){return r.rlp.encode(n.raw)},v.forEach(function(a,f){n._fields.push(a.name);function u(){return n.raw[f]}function h(c){c=(0,m.toBuffer)(c),c.toString("hex")==="00"&&!a.allowZero&&(c=y.allocUnsafe(0)),a.allowLess&&a.length?(c=(0,m.unpadBuffer)(c),(0,S.default)(a.length>=c.length,"The field ".concat(a.name," must not have more ").concat(a.length," bytes"))):!(a.allowZero&&c.length===0)&&a.length&&(0,S.default)(a.length===c.length,"The field ".concat(a.name," must have byte length of ").concat(a.length)),n.raw[f]=c}Object.defineProperty(n,a.name,{enumerable:!0,configurable:!0,get:u,set:h}),a.default&&(n[a.name]=a.default),a.alias&&Object.defineProperty(n,a.alias,{enumerable:!1,configurable:!0,set:h,get:u})}),t)if(typeof t=="string"&&(t=y.from((0,b.stripHexPrefix)(t),"hex")),y.isBuffer(t)&&(t=r.rlp.decode(t)),Array.isArray(t)){if(t.length>n._fields.length)throw new Error("wrong number of fields in data");t.forEach(function(a,f){n[n._fields[f]]=(0,m.toBuffer)(a)})}else if(typeof t=="object"){var p=Object.keys(t);v.forEach(function(a){p.indexOf(a.name)!==-1&&(n[a.name]=t[a.name]),p.indexOf(a.alias)!==-1&&(n[a.alias]=t[a.alias])})}else throw new Error("invalid data")};e.defineProperties=l},41612:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var w=d(95053),S=d(7231),b=d(10215),r=d(39529),m=d(46350),l=d(25309);function n(i,s,B){var T=(0,w.ecdsaSign)(i,s),g=T.signature,A=T.recid,k=y.from(g.slice(0,32)),C=y.from(g.slice(32,64));if(!B||typeof B=="number"){if(B&&!Number.isSafeInteger(B))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var F=B?A+(B*2+35):A+27;return{r:k,s:C,v:F}}var D=(0,l.toType)(B,l.TypeOutput.BN),P=D.muln(2).addn(35).addn(A).toArrayLike(y);return{r:k,s:C,v:P}}e.ecsign=n;function v(i,s){var B=(0,l.toType)(i,l.TypeOutput.BN);if(B.eqn(0)||B.eqn(1))return(0,l.toType)(i,l.TypeOutput.BN);if(!s)return B.subn(27);var T=(0,l.toType)(s,l.TypeOutput.BN);return B.sub(T.muln(2).addn(35))}function t(i){var s=new S.BN(i);return s.eqn(0)||s.eqn(1)}var p=function(i,s,B,T,g){var A=y.concat([(0,b.setLengthLeft)(B,32),(0,b.setLengthLeft)(T,32)],64),k=v(s,g);if(!t(k))throw new Error("Invalid signature v value");var C=(0,w.ecdsaRecover)(A,k.toNumber(),i);return y.from((0,w.publicKeyConvert)(C,!1).slice(1))};e.ecrecover=p;var a=function(i,s,B,T){var g=v(i,T);if(!t(g))throw new Error("Invalid signature v value");return(0,b.bufferToHex)(y.concat([(0,b.setLengthLeft)(s,32),(0,b.setLengthLeft)(B,32),(0,b.toBuffer)(i)]))};e.toRpcSig=a;var f=function(i,s,B,T){var g=v(i,T);if(!t(g))throw new Error("Invalid signature v value");var A=(0,l.toType)(i,l.TypeOutput.Number),k=B;return(A>28&&A%2===1||A===1||A===28)&&(k=y.from(B),k[0]|=128),(0,b.bufferToHex)(y.concat([(0,b.setLengthLeft)(s,32),(0,b.setLengthLeft)(k,32)]))};e.toCompactSig=f;var u=function(i){var s=(0,b.toBuffer)(i),B,T,g;if(s.length>=65)B=s.slice(0,32),T=s.slice(32,64),g=(0,b.bufferToInt)(s.slice(64));else if(s.length===64)B=s.slice(0,32),T=s.slice(32,64),g=(0,b.bufferToInt)(s.slice(32,33))>>7,T[0]&=127;else throw new Error("Invalid signature length");return g<27&&(g+=27),{v:g,r:B,s:T}};e.fromRpcSig=u;var h=function(i,s,B,T,g){T===void 0&&(T=!0);var A=new S.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),k=new S.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(s.length!==32||B.length!==32||!t(v(i,g)))return!1;var C=new S.BN(s),F=new S.BN(B);return!(C.isZero()||C.gt(k)||F.isZero()||F.gt(k)||T&&F.cmp(A)===1)};e.isValidSignature=h;var c=function(i){(0,m.assertIsBuffer)(i);var s=y.from(`Ethereum Signed Message:
1
+ (self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[4627],{74083:function(L,e,d){"use strict";var y=this&&this.__values||function(t){var p=typeof Symbol=="function"&&Symbol.iterator,a=p&&t[p],f=0;if(a)return a.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&f>=t.length&&(t=void 0),{value:t&&t[f++],done:!t}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.chains=e._getInitializedChains=void 0;var S=w(d(87295)),b=w(d(31227)),r=w(d(40439)),m=w(d(37098)),l=w(d(17687)),n=w(d(38531));function v(t){var p,a,f={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli",123:"calaveras"},u={mainnet:S.default,ropsten:b.default,rinkeby:r.default,kovan:m.default,goerli:l.default,calaveras:n.default};if(t)try{for(var h=y(t),c=h.next();!c.done;c=h.next()){var i=c.value,s=i.name;f[i.chainId.toString()]=s,u[s]=i}}catch(B){p={error:B}}finally{try{c&&!c.done&&(a=h.return)&&a.call(h)}finally{if(p)throw p.error}}return u.names=f,u}e._getInitializedChains=v,e.chains=v()},97616:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EIPs=void 0,e.EIPs={1559:d(77523),2315:d(83339),2537:d(26769),2565:d(17897),2718:d(62170),2929:d(88436),2930:d(96213),3198:d(25491),3529:d(20070),3541:d(21871),3554:d(47225)}},37459:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hardforks=void 0,e.hardforks=[["chainstart",d(60114)],["homestead",d(62800)],["dao",d(7197)],["tangerineWhistle",d(22302)],["spuriousDragon",d(90716)],["byzantium",d(26985)],["constantinople",d(35993)],["petersburg",d(4064)],["istanbul",d(83166)],["muirGlacier",d(42946)],["berlin",d(20015)],["london",d(61250)]]},2832:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__extends||function(){var h=function(c,i){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,B){s.__proto__=B}||function(s,B){for(var T in B)B.hasOwnProperty(T)&&(s[T]=B[T])},h(c,i)};return function(c,i){h(c,i);function s(){this.constructor=c}c.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}(),S=this&&this.__assign||function(){return S=Object.assign||function(h){for(var c,i=1,s=arguments.length;i<s;i++){c=arguments[i];for(var B in c)Object.prototype.hasOwnProperty.call(c,B)&&(h[B]=c[B])}return h},S.apply(this,arguments)},b=this&&this.__values||function(h){var c=typeof Symbol=="function"&&Symbol.iterator,i=c&&h[c],s=0;if(i)return i.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&s>=h.length&&(h=void 0),{value:h&&h[s++],done:!h}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Hardfork=e.Chain=e.CustomChain=void 0;var r=d(17187),m=d(34606),l=d(74370),n=d(74083),v=d(37459),t=d(97616),p;(function(h){h.PolygonMainnet="polygon-mainnet",h.PolygonMumbai="polygon-mumbai",h.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",h.xDaiChain="x-dai-chain"})(p=e.CustomChain||(e.CustomChain={}));var a;(function(h){h[h.Mainnet=1]="Mainnet",h[h.Ropsten=3]="Ropsten",h[h.Rinkeby=4]="Rinkeby",h[h.Kovan=42]="Kovan",h[h.Goerli=5]="Goerli",h[h.Calaveras=123]="Calaveras"})(a=e.Chain||(e.Chain={}));var f;(function(h){h.Chainstart="chainstart",h.Homestead="homestead",h.Dao="dao",h.TangerineWhistle="tangerineWhistle",h.SpuriousDragon="spuriousDragon",h.Byzantium="byzantium",h.Constantinople="constantinople",h.Petersburg="petersburg",h.Istanbul="istanbul",h.MuirGlacier="muirGlacier",h.Berlin="berlin",h.London="london"})(f=e.Hardfork||(e.Hardfork={}));var u=function(h){w(c,h);function c(i){var s,B,T=h.call(this)||this;return T._supportedHardforks=[],T._eips=[],T._customChains=(s=i.customChains)!==null&&s!==void 0?s:[],T._chainParams=T.setChain(i.chain),T.DEFAULT_HARDFORK=(B=T._chainParams.defaultHardfork)!==null&&B!==void 0?B:f.Istanbul,T._hardfork=T.DEFAULT_HARDFORK,i.supportedHardforks&&(T._supportedHardforks=i.supportedHardforks),i.hardfork&&T.setHardfork(i.hardfork),i.eips&&T.setEIPs(i.eips),T}return c.custom=function(i,s){var B;s===void 0&&(s={});var T=(B=s.baseChain)!==null&&B!==void 0?B:"mainnet",g=S({},c._getChainParams(T));if(g.name="custom-chain",typeof i!="string")return new c(S({chain:S(S({},g),i)},s));if(i===p.PolygonMainnet)return c.custom({name:p.PolygonMainnet,chainId:137,networkId:137});if(i===p.PolygonMumbai)return c.custom({name:p.PolygonMumbai,chainId:80001,networkId:80001});if(i===p.ArbitrumRinkebyTestnet)return c.custom({name:p.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611});if(i===p.xDaiChain)return c.custom({name:p.xDaiChain,chainId:100,networkId:100});throw new Error("Custom chain "+i+" not supported")},c.forCustomChain=function(i,s,B,T){var g=c._getChainParams(i);return new c({chain:S(S({},g),s),hardfork:B,supportedHardforks:T})},c.isSupportedChainId=function(i){var s=n._getInitializedChains();return Boolean(s.names[i.toString()])},c._getChainParams=function(i,s){var B=n._getInitializedChains(s);if(typeof i=="number"||l.BN.isBN(i)){if(i=i.toString(),B.names[i]){var T=B.names[i];return B[T]}throw new Error("Chain with ID "+i+" not supported")}if(B[i])return B[i];throw new Error("Chain with name "+i+" not supported")},c.prototype.setChain=function(i){var s,B;if(typeof i=="number"||typeof i=="string"||l.BN.isBN(i))this._chainParams=c._getChainParams(i,this._customChains);else if(typeof i=="object"){if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");var T=["networkId","genesis","hardforks","bootstrapNodes"];try{for(var g=b(T),A=g.next();!A.done;A=g.next()){var k=A.value;if(i[k]===void 0)throw new Error("Missing required chain parameter: "+k)}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}this._chainParams=i}else throw new Error("Wrong input format");return this._chainParams},c.prototype.setHardfork=function(i){var s,B;if(!this._isSupportedHardfork(i))throw new Error("Hardfork "+i+" not set as supported in supportedHardforks");var T=!1;try{for(var g=b(v.hardforks),A=g.next();!A.done;A=g.next()){var k=A.value;k[0]===i&&(this._hardfork!==i&&(this._hardfork=i,this.emit("hardforkChanged",i)),T=!0)}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}if(!T)throw new Error("Hardfork with name "+i+" not supported")},c.prototype.getHardforkByBlockNumber=function(i){var s,B;i=l.toType(i,l.TypeOutput.BN);var T=f.Chainstart;try{for(var g=b(this.hardforks()),A=g.next();!A.done;A=g.next()){var k=A.value;k.block!==null&&i.gte(new l.BN(k.block))&&(T=k.name)}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}return T},c.prototype.setHardforkByBlockNumber=function(i){i=l.toType(i,l.TypeOutput.BN);var s=this.getHardforkByBlockNumber(i);return this.setHardfork(s),s},c.prototype._chooseHardfork=function(i,s){if(s===void 0&&(s=!0),!i)i=this._hardfork;else if(s&&!this._isSupportedHardfork(i))throw new Error("Hardfork "+i+" not set as supported in supportedHardforks");return i},c.prototype._getHardfork=function(i){var s,B,T=this.hardforks();try{for(var g=b(T),A=g.next();!A.done;A=g.next()){var k=A.value;if(k.name===i)return k}}catch(C){s={error:C}}finally{try{A&&!A.done&&(B=g.return)&&B.call(g)}finally{if(s)throw s.error}}throw new Error("Hardfork "+i+" not defined for chain "+this.chainName())},c.prototype._isSupportedHardfork=function(i){var s,B;if(this._supportedHardforks.length>0)try{for(var T=b(this._supportedHardforks),g=T.next();!g.done;g=T.next()){var A=g.value;if(i===A)return!0}}catch(k){s={error:k}}finally{try{g&&!g.done&&(B=T.return)&&B.call(T)}finally{if(s)throw s.error}}else return!0;return!1},c.prototype.setEIPs=function(i){var s,B,T=this;i===void 0&&(i=[]);var g=function(D){if(!(D in t.EIPs))throw new Error(D+" not supported");var P=A.gteHardfork(t.EIPs[D].minimumHardfork);if(!P)throw new Error(D+" cannot be activated on hardfork "+A.hardfork()+", minimumHardfork: "+P);t.EIPs[D].requiredEIPs&&t.EIPs[D].requiredEIPs.forEach(function(o){if(!(i.includes(o)||T.isActivatedEIP(o)))throw new Error(D+" requires EIP "+o+", but is not included in the EIP list")})},A=this;try{for(var k=b(i),C=k.next();!C.done;C=k.next()){var F=C.value;g(F)}}catch(D){s={error:D}}finally{try{C&&!C.done&&(B=k.return)&&B.call(k)}finally{if(s)throw s.error}}this._eips=i},c.prototype.param=function(i,s){var B,T,g=null;try{for(var A=b(this._eips),k=A.next();!k.done;k=A.next()){var C=k.value;if(g=this.paramByEIP(i,s,C),g!==null)return g}}catch(F){B={error:F}}finally{try{k&&!k.done&&(T=A.return)&&T.call(A)}finally{if(B)throw B.error}}return this.paramByHardfork(i,s,this._hardfork)},c.prototype.paramByHardfork=function(i,s,B){var T,g,A,k;B=this._chooseHardfork(B);var C=null;try{for(var F=b(v.hardforks),D=F.next();!D.done;D=F.next()){var P=D.value;if(P[1].hasOwnProperty("eips")){var o=P[1].eips;try{for(var E=(A=void 0,b(o)),O=E.next();!O.done;O=E.next()){var x=O.value,M=this.paramByEIP(i,s,x);C=M!==null?M:C}}catch(U){A={error:U}}finally{try{O&&!O.done&&(k=E.return)&&k.call(E)}finally{if(A)throw A.error}}}else{if(!P[1][i])throw new Error("Topic "+i+" not defined");P[1][i][s]!==void 0&&(C=P[1][i][s].v)}if(P[0]===B)break}}catch(U){T={error:U}}finally{try{D&&!D.done&&(g=F.return)&&g.call(F)}finally{if(T)throw T.error}}return C},c.prototype.paramByEIP=function(i,s,B){if(!(B in t.EIPs))throw new Error(B+" not supported");var T=t.EIPs[B];if(!(i in T))throw new Error("Topic "+i+" not defined");if(T[i][s]===void 0)return null;var g=T[i][s].v;return g},c.prototype.paramByBlock=function(i,s,B){var T=this.activeHardforks(B),g=T[T.length-1].name;return this.paramByHardfork(i,s,g)},c.prototype.isActivatedEIP=function(i){var s,B;if(this.eips().includes(i))return!0;try{for(var T=b(v.hardforks),g=T.next();!g.done;g=T.next()){var A=g.value,k=A[1];if(this.gteHardfork(k.name)&&"eips"in k&&k.eips.includes(i))return!0}}catch(C){s={error:C}}finally{try{g&&!g.done&&(B=T.return)&&B.call(T)}finally{if(s)throw s.error}}return!1},c.prototype.hardforkIsActiveOnBlock=function(i,s,B){var T;B===void 0&&(B={}),s=l.toType(s,l.TypeOutput.BN);var g=(T=B.onlySupported)!==null&&T!==void 0?T:!1;i=this._chooseHardfork(i,g);var A=this.hardforkBlockBN(i);return!!(A&&s.gte(A))},c.prototype.activeOnBlock=function(i,s){return this.hardforkIsActiveOnBlock(null,i,s)},c.prototype.hardforkGteHardfork=function(i,s,B){var T,g;B===void 0&&(B={});var A=B.onlyActive===void 0?!1:B.onlyActive;i=this._chooseHardfork(i,B.onlySupported);var k;A?k=this.activeHardforks(null,B):k=this.hardforks();var C=-1,F=-1,D=0;try{for(var P=b(k),o=P.next();!o.done;o=P.next()){var E=o.value;E.name===i&&(C=D),E.name===s&&(F=D),D+=1}}catch(O){T={error:O}}finally{try{o&&!o.done&&(g=P.return)&&g.call(P)}finally{if(T)throw T.error}}return C>=F&&F!==-1},c.prototype.gteHardfork=function(i,s){return this.hardforkGteHardfork(null,i,s)},c.prototype.hardforkIsActiveOnChain=function(i,s){var B,T,g;s===void 0&&(s={});var A=(g=s.onlySupported)!==null&&g!==void 0?g:!1;i=this._chooseHardfork(i,A);try{for(var k=b(this.hardforks()),C=k.next();!C.done;C=k.next()){var F=C.value;if(F.name===i&&F.block!==null)return!0}}catch(D){B={error:D}}finally{try{C&&!C.done&&(T=k.return)&&T.call(k)}finally{if(B)throw B.error}}return!1},c.prototype.activeHardforks=function(i,s){var B,T;s===void 0&&(s={});var g=[],A=this.hardforks();try{for(var k=b(A),C=k.next();!C.done;C=k.next()){var F=C.value;if(F.block!==null){if(i!=null&&i<F.block)break;s.onlySupported&&!this._isSupportedHardfork(F.name)||g.push(F)}}}catch(D){B={error:D}}finally{try{C&&!C.done&&(T=k.return)&&T.call(k)}finally{if(B)throw B.error}}return g},c.prototype.activeHardfork=function(i,s){s===void 0&&(s={});var B=this.activeHardforks(i,s);if(B.length>0)return B[B.length-1].name;throw new Error("No (supported) active hardfork found")},c.prototype.hardforkBlock=function(i){return l.toType(this.hardforkBlockBN(i),l.TypeOutput.Number)},c.prototype.hardforkBlockBN=function(i){return i=this._chooseHardfork(i,!1),new l.BN(this._getHardfork(i).block)},c.prototype.isHardforkBlock=function(i,s){return i=l.toType(i,l.TypeOutput.BN),s=this._chooseHardfork(s,!1),this.hardforkBlockBN(s).eq(i)},c.prototype.nextHardforkBlock=function(i){var s=this.nextHardforkBlockBN(i);return s===null?null:l.toType(s,l.TypeOutput.Number)},c.prototype.nextHardforkBlockBN=function(i){i=this._chooseHardfork(i,!1);var s=this.hardforkBlockBN(i),B=this.hardforks().reduce(function(T,g){var A=new l.BN(g.block);return A.gt(s)&&T===null?A:T},null);return B},c.prototype.isNextHardforkBlock=function(i,s){i=l.toType(i,l.TypeOutput.BN),s=this._chooseHardfork(s,!1);var B=this.nextHardforkBlockBN(s);return B===null?!1:B.eq(i)},c.prototype._calcForkHash=function(i){var s,B,T=y.from(this.genesis().hash.substr(2),"hex"),g=y.alloc(0),A=0;try{for(var k=b(this.hardforks()),C=k.next();!C.done;C=k.next()){var F=C.value,D=F.block;if(D!==0&&D!==null&&D!==A){var P=y.from(D.toString(16).padStart(16,"0"),"hex");g=y.concat([g,P])}if(F.name===i)break;A=D}}catch(O){s={error:O}}finally{try{C&&!C.done&&(B=k.return)&&B.call(k)}finally{if(s)throw s.error}}var o=y.concat([T,g]),E=l.intToBuffer(m.buf(o)>>>0).toString("hex");return"0x"+E},c.prototype.forkHash=function(i){i=this._chooseHardfork(i,!1);var s=this._getHardfork(i);if(s.block===null){var B="No fork hash calculation possible for non-applied or future hardfork";throw new Error(B)}return s.forkHash!==void 0?s.forkHash:this._calcForkHash(i)},c.prototype.hardforkForForkHash=function(i){var s=this.hardforks().filter(function(B){return B.forkHash===i});return s.length>=1?s[s.length-1]:null},c.prototype.genesis=function(){return this._chainParams.genesis},c.prototype.hardforks=function(){return this._chainParams.hardforks},c.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},c.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},c.prototype.hardfork=function(){return this._hardfork},c.prototype.chainId=function(){return l.toType(this.chainIdBN(),l.TypeOutput.Number)},c.prototype.chainIdBN=function(){return new l.BN(this._chainParams.chainId)},c.prototype.chainName=function(){return this._chainParams.name},c.prototype.networkId=function(){return l.toType(this.networkIdBN(),l.TypeOutput.Number)},c.prototype.networkIdBN=function(){return new l.BN(this._chainParams.networkId)},c.prototype.eips=function(){return this._eips},c.prototype.consensusType=function(){return this._chainParams.consensus.type},c.prototype.consensusAlgorithm=function(){return this._chainParams.consensus.algorithm},c.prototype.consensusConfig=function(){return this._chainParams.consensus[this.consensusAlgorithm()]},c.prototype.copy=function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)},c}(r.EventEmitter);e.default=u},1297:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__read||function(P,o){var E=typeof Symbol=="function"&&P[Symbol.iterator];if(!E)return P;var O=E.call(P),x,M=[],U;try{for(;(o===void 0||o-- >0)&&!(x=O.next()).done;)M.push(x.value)}catch(j){U={error:j}}finally{try{x&&!x.done&&(E=O.return)&&E.call(O)}finally{if(U)throw U.error}}return M},S=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(e,"__esModule",{value:!0}),e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;var b=S(d(69282)),r=d(7231),m=d(95053),l=d(92644),n=d(1797),v=d(10215),t=d(39529),p=d(46350),a=d(25309),f=function(){function P(o,E,O,x){o===void 0&&(o=new r.BN(0)),E===void 0&&(E=new r.BN(0)),O===void 0&&(O=n.KECCAK256_RLP),x===void 0&&(x=n.KECCAK256_NULL),this.nonce=o,this.balance=E,this.stateRoot=O,this.codeHash=x,this._validate()}return P.fromAccountData=function(o){var E=o.nonce,O=o.balance,x=o.stateRoot,M=o.codeHash;return new P(E?new r.BN((0,v.toBuffer)(E)):void 0,O?new r.BN((0,v.toBuffer)(O)):void 0,x?(0,v.toBuffer)(x):void 0,M?(0,v.toBuffer)(M):void 0)},P.fromRlpSerializedAccount=function(o){var E=r.rlp.decode(o);if(!Array.isArray(E))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(E)},P.fromValuesArray=function(o){var E=w(o,4),O=E[0],x=E[1],M=E[2],U=E[3];return new P(new r.BN(O),new r.BN(x),M,U)},P.prototype._validate=function(){if(this.nonce.lt(new r.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new r.BN(0)))throw new Error("balance must be greater than zero");if(this.stateRoot.length!==32)throw new Error("stateRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")},P.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},P.prototype.serialize=function(){return r.rlp.encode(this.raw())},P.prototype.isContract=function(){return!this.codeHash.equals(n.KECCAK256_NULL)},P.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(n.KECCAK256_NULL)},P}();e.Account=f;var u=function(P){try{(0,p.assertIsString)(P)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(P)};e.isValidAddress=u;var h=function(P,o){(0,p.assertIsHexString)(P);var E=(0,l.stripHexPrefix)(P).toLowerCase(),O="";if(o){var x=(0,a.toType)(o,a.TypeOutput.BN);O=x.toString()+"0x"}for(var M=(0,t.keccakFromString)(O+E).toString("hex"),U="0x",j=0;j<E.length;j++)parseInt(M[j],16)>=8?U+=E[j].toUpperCase():U+=E[j];return U};e.toChecksumAddress=h;var c=function(P,o){return(0,e.isValidAddress)(P)&&(0,e.toChecksumAddress)(P,o)===P};e.isValidChecksumAddress=c;var i=function(P,o){(0,p.assertIsBuffer)(P),(0,p.assertIsBuffer)(o);var E=new r.BN(o);return E.isZero()?(0,t.rlphash)([P,null]).slice(-20):(0,t.rlphash)([P,y.from(E.toArray())]).slice(-20)};e.generateAddress=i;var s=function(P,o,E){(0,p.assertIsBuffer)(P),(0,p.assertIsBuffer)(o),(0,p.assertIsBuffer)(E),(0,b.default)(P.length===20),(0,b.default)(o.length===32);var O=(0,t.keccak256)(y.concat([y.from("ff","hex"),P,o,(0,t.keccak256)(E)]));return O.slice(-20)};e.generateAddress2=s;var B=function(P){return(0,m.privateKeyVerify)(P)};e.isValidPrivate=B;var T=function(P,o){return o===void 0&&(o=!1),(0,p.assertIsBuffer)(P),P.length===64?(0,m.publicKeyVerify)(y.concat([y.from([4]),P])):o?(0,m.publicKeyVerify)(P):!1};e.isValidPublic=T;var g=function(P,o){return o===void 0&&(o=!1),(0,p.assertIsBuffer)(P),o&&P.length!==64&&(P=y.from((0,m.publicKeyConvert)(P,!1).slice(1))),(0,b.default)(P.length===64),(0,t.keccak)(P).slice(-20)};e.pubToAddress=g,e.publicToAddress=e.pubToAddress;var A=function(P){return(0,p.assertIsBuffer)(P),y.from((0,m.publicKeyCreate)(P,!1)).slice(1)};e.privateToPublic=A;var k=function(P){return(0,e.publicToAddress)((0,e.privateToPublic)(P))};e.privateToAddress=k;var C=function(P){return(0,p.assertIsBuffer)(P),P.length!==64&&(P=y.from((0,m.publicKeyConvert)(P,!1).slice(1))),P};e.importPublic=C;var F=function(){var P=20,o=(0,v.zeros)(P);return(0,v.bufferToHex)(o)};e.zeroAddress=F;var D=function(P){try{(0,p.assertIsString)(P)}catch{return!1}var o=(0,e.zeroAddress)();return o===P};e.isZeroAddress=D},9380:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;var S=w(d(69282)),b=d(7231),r=d(10215),m=d(1297),l=function(){function n(v){(0,S.default)(v.length===20,"Invalid address length"),this.buf=v}return n.zero=function(){return new n((0,r.zeros)(20))},n.fromString=function(v){return(0,S.default)((0,m.isValidAddress)(v),"Invalid address"),new n((0,r.toBuffer)(v))},n.fromPublicKey=function(v){(0,S.default)(y.isBuffer(v),"Public key should be Buffer");var t=(0,m.pubToAddress)(v);return new n(t)},n.fromPrivateKey=function(v){(0,S.default)(y.isBuffer(v),"Private key should be Buffer");var t=(0,m.privateToAddress)(v);return new n(t)},n.generate=function(v,t){return(0,S.default)(b.BN.isBN(t)),new n((0,m.generateAddress)(v.buf,t.toArrayLike(y)))},n.generate2=function(v,t,p){return(0,S.default)(y.isBuffer(t)),(0,S.default)(y.isBuffer(p)),new n((0,m.generateAddress2)(v.buf,t,p))},n.prototype.equals=function(v){return this.buf.equals(v.buf)},n.prototype.isZero=function(){return this.equals(n.zero())},n.prototype.isPrecompileOrSystemAddress=function(){var v=new b.BN(this.buf),t=new b.BN(0),p=new b.BN("ffff","hex");return v.gte(t)&&v.lte(p)},n.prototype.toString=function(){return"0x"+this.buf.toString("hex")},n.prototype.toBuffer=function(){return y.from(this.buf)},n}();e.Address=l},10215:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__values||function(o){var E=typeof Symbol=="function"&&Symbol.iterator,O=E&&o[E],x=0;if(O)return O.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&x>=o.length&&(o=void 0),{value:o&&o[x++],done:!o}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},S=this&&this.__read||function(o,E){var O=typeof Symbol=="function"&&o[Symbol.iterator];if(!O)return o;var x=O.call(o),M,U=[],j;try{for(;(E===void 0||E-- >0)&&!(M=x.next()).done;)U.push(M.value)}catch(I){j={error:I}}finally{try{M&&!M.done&&(O=x.return)&&O.call(x)}finally{if(j)throw j.error}}return U};Object.defineProperty(e,"__esModule",{value:!0}),e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;var b=d(7231),r=d(92644),m=d(46350),l=function(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("Received an invalid integer type: ".concat(o));return"0x".concat(o.toString(16))};e.intToHex=l;var n=function(o){var E=(0,e.intToHex)(o);return y.from((0,r.padToEven)(E.slice(2)),"hex")};e.intToBuffer=n;var v=function(o){return y.allocUnsafe(o).fill(0)};e.zeros=v;var t=function(o,E,O){var x=(0,e.zeros)(E);return O?o.length<E?(o.copy(x),x):o.slice(0,E):o.length<E?(o.copy(x,E-o.length),x):o.slice(-E)},p=function(o,E){return(0,m.assertIsBuffer)(o),t(o,E,!1)};e.setLengthLeft=p;var a=function(o,E){return(0,m.assertIsBuffer)(o),t(o,E,!0)};e.setLengthRight=a;var f=function(o){for(var E=o[0];o.length>0&&E.toString()==="0";)o=o.slice(1),E=o[0];return o},u=function(o){return(0,m.assertIsBuffer)(o),f(o)};e.unpadBuffer=u;var h=function(o){return(0,m.assertIsArray)(o),f(o)};e.unpadArray=h;var c=function(o){return(0,m.assertIsHexString)(o),o=(0,r.stripHexPrefix)(o),f(o)};e.unpadHexString=c;var i=function(o){if(o==null)return y.allocUnsafe(0);if(y.isBuffer(o)||Array.isArray(o)||o instanceof Uint8Array)return y.from(o);if(typeof o=="string"){if(!(0,r.isHexString)(o))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(o));return y.from((0,r.padToEven)((0,r.stripHexPrefix)(o)),"hex")}if(typeof o=="number")return(0,e.intToBuffer)(o);if(b.BN.isBN(o)){if(o.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(o));return o.toArrayLike(y)}if(o.toArray)return y.from(o.toArray());if(o.toBuffer)return y.from(o.toBuffer());throw new Error("invalid type")};e.toBuffer=i;var s=function(o){return new b.BN((0,e.toBuffer)(o)).toNumber()};e.bufferToInt=s;var B=function(o){return o=(0,e.toBuffer)(o),"0x"+o.toString("hex")};e.bufferToHex=B;var T=function(o){return new b.BN(o).fromTwos(256)};e.fromSigned=T;var g=function(o){return y.from(o.toTwos(256).toArray())};e.toUnsigned=g;var A=function(o){return typeof o!="string"||(0,r.isHexPrefixed)(o)?o:"0x"+o};e.addHexPrefix=A;var k=function(o){var E=/^(00)+|(00)+$/g;if(o=(0,r.stripHexPrefix)(o),o.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");var O=y.from(o.replace(E,""),"hex");return O.toString("utf8")};e.toUtf8=k;var C=function(o){if(y.isBuffer(o))return"0x".concat(o.toString("hex"));if(o instanceof Array){for(var E=[],O=0;O<o.length;O++)E.push((0,e.baToJSON)(o[O]));return E}};e.baToJSON=C;var F=function(o){var E,O;try{for(var x=w(Object.entries(o)),M=x.next();!M.done;M=x.next()){var U=S(M.value,2),j=U[0],I=U[1];if(I!==void 0&&I.length>0&&I[0]===0)throw new Error("".concat(j," cannot have leading zeroes, received: ").concat(I.toString("hex")))}}catch(H){E={error:H}}finally{try{M&&!M.done&&(O=x.return)&&O.call(x)}finally{if(E)throw E.error}}};e.validateNoLeadingZeroes=F;function D(o){return Array.isArray(o)?o.map(function(E){return D(E)}):y.from(o)}e.arrToBufArr=D;function P(o){return Array.isArray(o)?o.map(function(E){return P(E)}):Uint8Array.from(o!=null?o:[])}e.bufArrToArr=P},1797:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=e.MAX_UINT64=void 0;var y=d(48764),w=d(7231);e.MAX_UINT64=new w.BN("ffffffffffffffff",16),e.MAX_INTEGER=new w.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new w.BN("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=y.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=y.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=y.Buffer.from(e.KECCAK256_RLP_S,"hex")},7231:function(L,e,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(l,n,v,t){t===void 0&&(t=v);var p=Object.getOwnPropertyDescriptor(n,v);(!p||("get"in p?!n.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return n[v]}}),Object.defineProperty(l,t,p)}:function(l,n,v,t){t===void 0&&(t=v),l[t]=n[v]}),w=this&&this.__setModuleDefault||(Object.create?function(l,n){Object.defineProperty(l,"default",{enumerable:!0,value:n})}:function(l,n){l.default=n}),S=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var n={};if(l!=null)for(var v in l)v!=="default"&&Object.prototype.hasOwnProperty.call(l,v)&&y(n,l,v);return w(n,l),n},b=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.rlp=e.BN=void 0;var r=b(d(13550));e.BN=r.default;var m=S(d(51675));e.rlp=m},39529:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160FromArray=e.ripemd160FromString=e.ripemd160=e.sha256FromArray=e.sha256FromString=e.sha256=e.keccakFromArray=e.keccakFromHexString=e.keccakFromString=e.keccak256=e.keccak=void 0;var w=d(82192),S=d(23482),b=d(7231),r=d(10215),m=d(46350),l=function(g,A){switch(A===void 0&&(A=256),(0,m.assertIsBuffer)(g),A){case 224:return(0,w.keccak224)(g);case 256:return(0,w.keccak256)(g);case 384:return(0,w.keccak384)(g);case 512:return(0,w.keccak512)(g);default:throw new Error("Invald algorithm: keccak".concat(A))}};e.keccak=l;var n=function(g){return(0,e.keccak)(g)};e.keccak256=n;var v=function(g,A){A===void 0&&(A=256),(0,m.assertIsString)(g);var k=y.from(g,"utf8");return(0,e.keccak)(k,A)};e.keccakFromString=v;var t=function(g,A){return A===void 0&&(A=256),(0,m.assertIsHexString)(g),(0,e.keccak)((0,r.toBuffer)(g),A)};e.keccakFromHexString=t;var p=function(g,A){return A===void 0&&(A=256),(0,m.assertIsArray)(g),(0,e.keccak)((0,r.toBuffer)(g),A)};e.keccakFromArray=p;var a=function(g){return g=(0,r.toBuffer)(g),S("sha256").update(g).digest()},f=function(g){return(0,m.assertIsBuffer)(g),a(g)};e.sha256=f;var u=function(g){return(0,m.assertIsString)(g),a(g)};e.sha256FromString=u;var h=function(g){return(0,m.assertIsArray)(g),a(g)};e.sha256FromArray=h;var c=function(g,A){g=(0,r.toBuffer)(g);var k=S("rmd160").update(g).digest();return A===!0?(0,r.setLengthLeft)(k,32):k},i=function(g,A){return(0,m.assertIsBuffer)(g),c(g,A)};e.ripemd160=i;var s=function(g,A){return(0,m.assertIsString)(g),c(g,A)};e.ripemd160FromString=s;var B=function(g,A){return(0,m.assertIsArray)(g),c(g,A)};e.ripemd160FromArray=B;var T=function(g){return(0,e.keccak)(b.rlp.encode(g))};e.rlphash=T},46350:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;var w=d(92644),S=function(l){if(!(0,w.isHexString)(l)){var n="This method only supports 0x-prefixed hex strings but input was: ".concat(l);throw new Error(n)}};e.assertIsHexString=S;var b=function(l){if(!y.isBuffer(l)){var n="This method only supports Buffer but input was: ".concat(l);throw new Error(n)}};e.assertIsBuffer=b;var r=function(l){if(!Array.isArray(l)){var n="This method only supports number arrays but input was: ".concat(l);throw new Error(n)}};e.assertIsArray=r;var m=function(l){if(typeof l!="string"){var n="This method only supports strings but input was: ".concat(l);throw new Error(n)}};e.assertIsString=m},74370:function(L,e,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(b,r,m,l){l===void 0&&(l=m);var n=Object.getOwnPropertyDescriptor(r,m);(!n||("get"in n?!r.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return r[m]}}),Object.defineProperty(b,l,n)}:function(b,r,m,l){l===void 0&&(l=m),b[l]=r[m]}),w=this&&this.__exportStar||function(b,r){for(var m in b)m!=="default"&&!Object.prototype.hasOwnProperty.call(r,m)&&y(r,b,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,w(d(1797),e),w(d(1297),e),w(d(9380),e),w(d(39529),e),w(d(41612),e),w(d(10215),e),w(d(30499),e),w(d(7231),e),w(d(25309),e);var S=d(92644);Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return S.isHexPrefixed}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return S.stripHexPrefix}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return S.padToEven}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return S.getBinarySize}}),Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return S.arrayContainsArray}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return S.toAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return S.fromUtf8}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return S.fromAscii}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return S.getKeys}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return S.isHexString}})},92644:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0;function w(a){if(typeof a!="string")throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof a));return a[0]==="0"&&a[1]==="x"}e.isHexPrefixed=w;var S=function(a){if(typeof a!="string")throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof a));return w(a)?a.slice(2):a};e.stripHexPrefix=S;function b(a){var f=a;if(typeof f!="string")throw new Error("[padToEven] value must be type 'string', received ".concat(typeof f));return f.length%2&&(f="0".concat(f)),f}e.padToEven=b;function r(a){if(typeof a!="string")throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof a));return y.byteLength(a,"utf8")}e.getBinarySize=r;function m(a,f,u){if(Array.isArray(a)!==!0)throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof a,"'"));if(Array.isArray(f)!==!0)throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof f,"'"));return f[u?"some":"every"](function(h){return a.indexOf(h)>=0})}e.arrayContainsArray=m;function l(a){var f="",u=0,h=a.length;for(a.substring(0,2)==="0x"&&(u=2);u<h;u+=2){var c=parseInt(a.substr(u,2),16);f+=String.fromCharCode(c)}return f}e.toAscii=l;function n(a){var f=y.from(a,"utf8");return"0x".concat(b(f.toString("hex")).replace(/^0+|0+$/g,""))}e.fromUtf8=n;function v(a){for(var f="",u=0;u<a.length;u++){var h=a.charCodeAt(u),c=h.toString(16);f+=c.length<2?"0".concat(c):c}return"0x".concat(f)}e.fromAscii=v;function t(a,f,u){if(!Array.isArray(a))throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat(typeof a));if(typeof f!="string")throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat(typeof a));for(var h=[],c=0;c<a.length;c++){var i=a[c][f];if(u&&!i)i="";else if(typeof i!="string")throw new Error("invalid abi - expected type 'string', received ".concat(typeof i));h.push(i)}return h}e.getKeys=t;function p(a,f){return!(typeof a!="string"||!a.match(/^0x[0-9A-Fa-f]*$/)||f&&a.length!==2+2*f)}e.isHexString=p},30499:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var S=w(d(69282)),b=d(92644),r=d(7231),m=d(10215),l=function(n,v,t){if(n.raw=[],n._fields=[],n.toJSON=function(a){if(a===void 0&&(a=!1),a){var f={};return n._fields.forEach(function(u){f[u]="0x".concat(n[u].toString("hex"))}),f}return(0,m.baToJSON)(n.raw)},n.serialize=function(){return r.rlp.encode(n.raw)},v.forEach(function(a,f){n._fields.push(a.name);function u(){return n.raw[f]}function h(c){c=(0,m.toBuffer)(c),c.toString("hex")==="00"&&!a.allowZero&&(c=y.allocUnsafe(0)),a.allowLess&&a.length?(c=(0,m.unpadBuffer)(c),(0,S.default)(a.length>=c.length,"The field ".concat(a.name," must not have more ").concat(a.length," bytes"))):!(a.allowZero&&c.length===0)&&a.length&&(0,S.default)(a.length===c.length,"The field ".concat(a.name," must have byte length of ").concat(a.length)),n.raw[f]=c}Object.defineProperty(n,a.name,{enumerable:!0,configurable:!0,get:u,set:h}),a.default&&(n[a.name]=a.default),a.alias&&Object.defineProperty(n,a.alias,{enumerable:!1,configurable:!0,set:h,get:u})}),t)if(typeof t=="string"&&(t=y.from((0,b.stripHexPrefix)(t),"hex")),y.isBuffer(t)&&(t=r.rlp.decode(t)),Array.isArray(t)){if(t.length>n._fields.length)throw new Error("wrong number of fields in data");t.forEach(function(a,f){n[n._fields[f]]=(0,m.toBuffer)(a)})}else if(typeof t=="object"){var p=Object.keys(t);v.forEach(function(a){p.indexOf(a.name)!==-1&&(n[a.name]=t[a.name]),p.indexOf(a.alias)!==-1&&(n[a.alias]=t[a.alias])})}else throw new Error("invalid data")};e.defineProperties=l},41612:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var w=d(95053),S=d(7231),b=d(10215),r=d(39529),m=d(46350),l=d(25309);function n(i,s,B){var T=(0,w.ecdsaSign)(i,s),g=T.signature,A=T.recid,k=y.from(g.slice(0,32)),C=y.from(g.slice(32,64));if(!B||typeof B=="number"){if(B&&!Number.isSafeInteger(B))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var F=B?A+(B*2+35):A+27;return{r:k,s:C,v:F}}var D=(0,l.toType)(B,l.TypeOutput.BN),P=D.muln(2).addn(35).addn(A).toArrayLike(y);return{r:k,s:C,v:P}}e.ecsign=n;function v(i,s){var B=(0,l.toType)(i,l.TypeOutput.BN);if(B.eqn(0)||B.eqn(1))return(0,l.toType)(i,l.TypeOutput.BN);if(!s)return B.subn(27);var T=(0,l.toType)(s,l.TypeOutput.BN);return B.sub(T.muln(2).addn(35))}function t(i){var s=new S.BN(i);return s.eqn(0)||s.eqn(1)}var p=function(i,s,B,T,g){var A=y.concat([(0,b.setLengthLeft)(B,32),(0,b.setLengthLeft)(T,32)],64),k=v(s,g);if(!t(k))throw new Error("Invalid signature v value");var C=(0,w.ecdsaRecover)(A,k.toNumber(),i);return y.from((0,w.publicKeyConvert)(C,!1).slice(1))};e.ecrecover=p;var a=function(i,s,B,T){var g=v(i,T);if(!t(g))throw new Error("Invalid signature v value");return(0,b.bufferToHex)(y.concat([(0,b.setLengthLeft)(s,32),(0,b.setLengthLeft)(B,32),(0,b.toBuffer)(i)]))};e.toRpcSig=a;var f=function(i,s,B,T){var g=v(i,T);if(!t(g))throw new Error("Invalid signature v value");var A=(0,l.toType)(i,l.TypeOutput.Number),k=B;return(A>28&&A%2===1||A===1||A===28)&&(k=y.from(B),k[0]|=128),(0,b.bufferToHex)(y.concat([(0,b.setLengthLeft)(s,32),(0,b.setLengthLeft)(k,32)]))};e.toCompactSig=f;var u=function(i){var s=(0,b.toBuffer)(i),B,T,g;if(s.length>=65)B=s.slice(0,32),T=s.slice(32,64),g=(0,b.bufferToInt)(s.slice(64));else if(s.length===64)B=s.slice(0,32),T=s.slice(32,64),g=(0,b.bufferToInt)(s.slice(32,33))>>7,T[0]&=127;else throw new Error("Invalid signature length");return g<27&&(g+=27),{v:g,r:B,s:T}};e.fromRpcSig=u;var h=function(i,s,B,T,g){T===void 0&&(T=!0);var A=new S.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),k=new S.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(s.length!==32||B.length!==32||!t(v(i,g)))return!1;var C=new S.BN(s),F=new S.BN(B);return!(C.isZero()||C.gt(k)||F.isZero()||F.gt(k)||T&&F.cmp(A)===1)};e.isValidSignature=h;var c=function(i){(0,m.assertIsBuffer)(i);var s=y.from(`Ethereum Signed Message:
2
2
  `.concat(i.length),"utf-8");return(0,r.keccak)(y.concat([s,i]))};e.hashPersonalMessage=c},25309:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=e.bnToRlp=e.bnToUnpaddedBuffer=e.bnToHex=void 0;var w=d(7231),S=d(92644),b=d(10215);function r(t){return"0x".concat(t.toString(16))}e.bnToHex=r;function m(t){return(0,b.unpadBuffer)(t.toArrayLike(y))}e.bnToUnpaddedBuffer=m;function l(t){return m(t)}e.bnToRlp=l;var n;(function(t){t[t.Number=0]="Number",t[t.BN=1]="BN",t[t.Buffer=2]="Buffer",t[t.PrefixedHexString=3]="PrefixedHexString"})(n=e.TypeOutput||(e.TypeOutput={}));function v(t,p){if(t===null)return null;if(t!==void 0){if(typeof t=="string"&&!(0,S.isHexString)(t))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(t));if(typeof t=="number"&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var a=(0,b.toBuffer)(t);if(p===n.Buffer)return a;if(p===n.BN)return new w.BN(a);if(p===n.Number){var f=new w.BN(a),u=new w.BN(Number.MAX_SAFE_INTEGER.toString());if(f.gt(u))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return f.toNumber()}else return"0x".concat(a.toString("hex"))}}e.toType=v},36225:function(L,e,d){"use strict";var y=this&&this.__values||function(n){var v=typeof Symbol=="function"&&Symbol.iterator,t=v&&n[v],p=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&p>=n.length&&(n=void 0),{value:n&&n[p++],done:!n}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},w=this&&this.__read||function(n,v){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var p=t.call(n),a,f=[],u;try{for(;(v===void 0||v-- >0)&&!(a=p.next()).done;)f.push(a.value)}catch(h){u={error:h}}finally{try{a&&!a.done&&(t=p.return)&&t.call(p)}finally{if(u)throw u.error}}return f},S=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseTransaction=void 0;var b=S(d(2832)),r=d(77295),m=d(63458),l=function(){function n(v){this.activeCapabilities=[],this.DEFAULT_CHAIN="mainnet",this.DEFAULT_HARDFORK="istanbul";var t=v.nonce,p=v.gasLimit,a=v.to,f=v.value,u=v.data,h=v.v,c=v.r,i=v.s,s=v.type;this._type=new r.BN(r.toBuffer(s)).toNumber();var B=r.toBuffer(a===""?"0x":a),T=r.toBuffer(h===""?"0x":h),g=r.toBuffer(c===""?"0x":c),A=r.toBuffer(i===""?"0x":i);this.nonce=new r.BN(r.toBuffer(t===""?"0x":t)),this.gasLimit=new r.BN(r.toBuffer(p===""?"0x":p)),this.to=B.length>0?new r.Address(B):void 0,this.value=new r.BN(r.toBuffer(f===""?"0x":f)),this.data=r.toBuffer(u===""?"0x":u),this.v=T.length>0?new r.BN(T):void 0,this.r=g.length>0?new r.BN(g):void 0,this.s=A.length>0?new r.BN(A):void 0,this._validateCannotExceedMaxInteger({nonce:this.nonce,gasLimit:this.gasLimit,value:this.value,r:this.r,s:this.s})}return Object.defineProperty(n.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),n.prototype.supports=function(v){return this.activeCapabilities.includes(v)},n.prototype.validate=function(v){v===void 0&&(v=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given "+this.gasLimit+", need at least "+this.getBaseFee()),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),v?t:t.length===0},n.prototype.getBaseFee=function(){var v=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&v.iaddn(this.common.param("gasPrices","txCreation")),v},n.prototype.getDataFee=function(){for(var v=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),p=0,a=0;a<this.data.length;a++)this.data[a]===0?p+=v:p+=t;return new r.BN(p)},n.prototype.toCreationAddress=function(){return this.to===void 0||this.to.buf.length===0},n.prototype.isSigned=function(){var v=this,t=v.v,p=v.r,a=v.s;return this.type===0?!(!t||!p||!a):!(t===void 0||!p||!a)},n.prototype.verifySignature=function(){try{var v=this.getSenderPublicKey();return r.unpadBuffer(v).length!==0}catch{return!1}},n.prototype.getSenderAddress=function(){return new r.Address(r.publicToAddress(this.getSenderPublicKey()))},n.prototype.sign=function(v){if(v.length!==32)throw new Error("Private key must be 32 bytes in length.");var t=!1;this.type===0&&this.common.gteHardfork("spuriousDragon")&&!this.supports(m.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(m.Capability.EIP155ReplayProtection),t=!0);var p=this.getMessageToSign(!0),a=r.ecsign(p,v),f=a.v,u=a.r,h=a.s,c=this._processSignature(f,u,h);if(t){var i=this.activeCapabilities.indexOf(m.Capability.EIP155ReplayProtection);i>-1&&this.activeCapabilities.splice(i,1)}return c},n.prototype._getCommon=function(v,t){var p;if(t){var a=new r.BN(r.toBuffer(t));if(v){if(!v.chainIdBN().eq(a))throw new Error("The chain ID does not match the chain ID of Common");return v.copy()}else return b.default.isSupportedChainId(a)?new b.default({chain:a,hardfork:this.DEFAULT_HARDFORK}):b.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:a,chainId:a},this.DEFAULT_HARDFORK)}else return(p=v==null?void 0:v.copy())!==null&&p!==void 0?p:new b.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},n.prototype._validateCannotExceedMaxInteger=function(v,t){var p,a;t===void 0&&(t=53);try{for(var f=y(Object.entries(v)),u=f.next();!u.done;u=f.next()){var h=w(u.value,2),c=h[0],i=h[1];if(t===53){if(i!=null&&i.gt(r.MAX_INTEGER))throw new Error(c+" cannot exceed MAX_INTEGER, given "+i)}else if(t===256){if(i!=null&&i.gte(r.TWO_POW256))throw new Error(c+" must be less than 2^256, given "+i)}else throw new Error("unimplemented bits value")}}catch(s){p={error:s}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(p)throw p.error}}},n}();e.BaseTransaction=l},47669:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__extends||function(){var a=function(f,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,c){h.__proto__=c}||function(h,c){for(var i in c)c.hasOwnProperty(i)&&(h[i]=c[i])},a(f,u)};return function(f,u){a(f,u);function h(){this.constructor=f}f.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),S=this&&this.__assign||function(){return S=Object.assign||function(a){for(var f,u=1,h=arguments.length;u<h;u++){f=arguments[u];for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(a[c]=f[c])}return a},S.apply(this,arguments)},b=this&&this.__read||function(a,f){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var h=u.call(a),c,i=[],s;try{for(;(f===void 0||f-- >0)&&!(c=h.next()).done;)i.push(c.value)}catch(B){s={error:B}}finally{try{c&&!c.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}return i};Object.defineProperty(e,"__esModule",{value:!0});var r=d(77295),m=d(36225),l=d(63458),n=d(82942),v=2,t=y.from(v.toString(16).padStart(2,"0"),"hex"),p=function(a){w(f,a);function f(u,h){h===void 0&&(h={});var c,i,s=a.call(this,S(S({},u),{type:v}))||this;s.DEFAULT_HARDFORK="london";var B=u.chainId,T=u.accessList,g=u.maxFeePerGas,A=u.maxPriorityFeePerGas;if(s.common=s._getCommon(h.common,B),s.chainId=s.common.chainIdBN(),!s.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");s.activeCapabilities=s.activeCapabilities.concat([1559,2718,2930]);var k=n.AccessLists.getAccessListData(T!=null?T:[]);if(s.accessList=k.accessList,s.AccessListJSON=k.AccessListJSON,n.AccessLists.verifyAccessList(s.accessList),s.maxFeePerGas=new r.BN(r.toBuffer(g===""?"0x":g)),s.maxPriorityFeePerGas=new r.BN(r.toBuffer(A===""?"0x":A)),s._validateCannotExceedMaxInteger({maxFeePerGas:s.maxFeePerGas,maxPriorityFeePerGas:s.maxPriorityFeePerGas},256),s.maxFeePerGas.lt(s.maxPriorityFeePerGas))throw new Error("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");if(s.v&&!s.v.eqn(0)&&!s.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(s.common.gteHardfork("homestead")&&((c=s.s)===null||c===void 0?void 0:c.gt(l.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var C=(i=h==null?void 0:h.freeze)!==null&&i!==void 0?i:!0;return C&&Object.freeze(s),s}return Object.defineProperty(f.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),f.fromTxData=function(u,h){return h===void 0&&(h={}),new f(u,h)},f.fromSerializedTx=function(u,h){if(h===void 0&&(h={}),!u.slice(0,1).equals(t))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: "+v+", received: "+u.slice(0,1).toString("hex"));var c=r.rlp.decode(u.slice(1));if(!Array.isArray(c))throw new Error("Invalid serialized tx input: must be array");return f.fromValuesArray(c,h)},f.fromRlpSerializedTx=function(u,h){return h===void 0&&(h={}),f.fromSerializedTx(u,h)},f.fromValuesArray=function(u,h){if(h===void 0&&(h={}),u.length!==9&&u.length!==12)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var c=b(u,12),i=c[0],s=c[1],B=c[2],T=c[3],g=c[4],A=c[5],k=c[6],C=c[7],F=c[8],D=c[9],P=c[10],o=c[11];return new f({chainId:new r.BN(i),nonce:s,maxPriorityFeePerGas:B,maxFeePerGas:T,gasLimit:g,to:A,value:k,data:C,accessList:F!=null?F:[],v:D!==void 0?new r.BN(D):void 0,r:P,s:o},h)},f.prototype.getDataFee=function(){var u=a.prototype.getDataFee.call(this);return u.iaddn(n.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),u},f.prototype.getUpfrontCost=function(u){u===void 0&&(u=new r.BN(0));var h=r.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(u)),c=h.add(u);return this.gasLimit.mul(c).add(this.value)},f.prototype.raw=function(){return[r.bnToUnpaddedBuffer(this.chainId),r.bnToUnpaddedBuffer(this.nonce),r.bnToUnpaddedBuffer(this.maxPriorityFeePerGas),r.bnToUnpaddedBuffer(this.maxFeePerGas),r.bnToUnpaddedBuffer(this.gasLimit),this.to!==void 0?this.to.buf:y.from([]),r.bnToUnpaddedBuffer(this.value),this.data,this.accessList,this.v!==void 0?r.bnToUnpaddedBuffer(this.v):y.from([]),this.r!==void 0?r.bnToUnpaddedBuffer(this.r):y.from([]),this.s!==void 0?r.bnToUnpaddedBuffer(this.s):y.from([])]},f.prototype.serialize=function(){var u=this.raw();return y.concat([t,r.rlp.encode(u)])},f.prototype.getMessageToSign=function(u){u===void 0&&(u=!0);var h=this.raw().slice(0,9),c=y.concat([t,r.rlp.encode(h)]);return u?r.keccak256(c):c},f.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return r.keccak256(this.serialize())},f.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},f.prototype.getSenderPublicKey=function(){var u;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var h=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&((u=this.s)===null||u===void 0?void 0:u.gt(l.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var c=this,i=c.v,s=c.r,B=c.s;try{return r.ecrecover(h,i.addn(27),r.bnToUnpaddedBuffer(s),r.bnToUnpaddedBuffer(B))}catch{throw new Error("Invalid Signature")}},f.prototype._processSignature=function(u,h,c){var i={common:this.common};return f.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new r.BN(u-27),r:new r.BN(h),s:new r.BN(c)},i)},f.prototype.toJSON=function(){var u=n.AccessLists.getAccessListJSON(this.accessList);return{chainId:r.bnToHex(this.chainId),nonce:r.bnToHex(this.nonce),maxPriorityFeePerGas:r.bnToHex(this.maxPriorityFeePerGas),maxFeePerGas:r.bnToHex(this.maxFeePerGas),gasLimit:r.bnToHex(this.gasLimit),to:this.to!==void 0?this.to.toString():void 0,value:r.bnToHex(this.value),data:"0x"+this.data.toString("hex"),accessList:u,v:this.v!==void 0?r.bnToHex(this.v):void 0,r:this.r!==void 0?r.bnToHex(this.r):void 0,s:this.s!==void 0?r.bnToHex(this.s):void 0}},f}(m.BaseTransaction);e.default=p},29325:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__extends||function(){var a=function(f,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,c){h.__proto__=c}||function(h,c){for(var i in c)c.hasOwnProperty(i)&&(h[i]=c[i])},a(f,u)};return function(f,u){a(f,u);function h(){this.constructor=f}f.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),S=this&&this.__assign||function(){return S=Object.assign||function(a){for(var f,u=1,h=arguments.length;u<h;u++){f=arguments[u];for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(a[c]=f[c])}return a},S.apply(this,arguments)},b=this&&this.__read||function(a,f){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var h=u.call(a),c,i=[],s;try{for(;(f===void 0||f-- >0)&&!(c=h.next()).done;)i.push(c.value)}catch(B){s={error:B}}finally{try{c&&!c.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}return i};Object.defineProperty(e,"__esModule",{value:!0});var r=d(77295),m=d(36225),l=d(63458),n=d(82942),v=1,t=y.from(v.toString(16).padStart(2,"0"),"hex"),p=function(a){w(f,a);function f(u,h){h===void 0&&(h={});var c,i,s=a.call(this,S(S({},u),{type:v}))||this;s.DEFAULT_HARDFORK="berlin";var B=u.chainId,T=u.accessList,g=u.gasPrice;if(s.common=s._getCommon(h.common,B),s.chainId=s.common.chainIdBN(),!s.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");s.activeCapabilities=s.activeCapabilities.concat([2718,2930]);var A=n.AccessLists.getAccessListData(T!=null?T:[]);if(s.accessList=A.accessList,s.AccessListJSON=A.AccessListJSON,n.AccessLists.verifyAccessList(s.accessList),s.gasPrice=new r.BN(r.toBuffer(g===""?"0x":g)),s._validateCannotExceedMaxInteger({gasPrice:s.gasPrice}),s.v&&!s.v.eqn(0)&&!s.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(s.common.gteHardfork("homestead")&&((c=s.s)===null||c===void 0?void 0:c.gt(l.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var k=(i=h==null?void 0:h.freeze)!==null&&i!==void 0?i:!0;return k&&Object.freeze(s),s}return Object.defineProperty(f.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),f.fromTxData=function(u,h){return h===void 0&&(h={}),new f(u,h)},f.fromSerializedTx=function(u,h){if(h===void 0&&(h={}),!u.slice(0,1).equals(t))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: "+v+", received: "+u.slice(0,1).toString("hex"));var c=r.rlp.decode(u.slice(1));if(!Array.isArray(c))throw new Error("Invalid serialized tx input: must be array");return f.fromValuesArray(c,h)},f.fromRlpSerializedTx=function(u,h){return h===void 0&&(h={}),f.fromSerializedTx(u,h)},f.fromValuesArray=function(u,h){if(h===void 0&&(h={}),u.length!==8&&u.length!==11)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var c=b(u,11),i=c[0],s=c[1],B=c[2],T=c[3],g=c[4],A=c[5],k=c[6],C=c[7],F=c[8],D=c[9],P=c[10],o=[];return new f({chainId:new r.BN(i),nonce:s,gasPrice:B,gasLimit:T,to:g,value:A,data:k,accessList:C!=null?C:o,v:F!==void 0?new r.BN(F):void 0,r:D,s:P},h)},f.prototype.getDataFee=function(){var u=a.prototype.getDataFee.call(this);return u.iaddn(n.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),u},f.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},f.prototype.raw=function(){return[r.bnToUnpaddedBuffer(this.chainId),r.bnToUnpaddedBuffer(this.nonce),r.bnToUnpaddedBuffer(this.gasPrice),r.bnToUnpaddedBuffer(this.gasLimit),this.to!==void 0?this.to.buf:y.from([]),r.bnToUnpaddedBuffer(this.value),this.data,this.accessList,this.v!==void 0?r.bnToUnpaddedBuffer(this.v):y.from([]),this.r!==void 0?r.bnToUnpaddedBuffer(this.r):y.from([]),this.s!==void 0?r.bnToUnpaddedBuffer(this.s):y.from([])]},f.prototype.serialize=function(){var u=this.raw();return y.concat([t,r.rlp.encode(u)])},f.prototype.getMessageToSign=function(u){u===void 0&&(u=!0);var h=this.raw().slice(0,8),c=y.concat([t,r.rlp.encode(h)]);return u?r.keccak256(c):c},f.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return r.keccak256(this.serialize())},f.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},f.prototype.getSenderPublicKey=function(){var u;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var h=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&((u=this.s)===null||u===void 0?void 0:u.gt(l.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var c=this,i=c.yParity,s=c.r,B=c.s;try{return r.ecrecover(h,i.addn(27),r.bnToUnpaddedBuffer(s),r.bnToUnpaddedBuffer(B))}catch{throw new Error("Invalid Signature")}},f.prototype._processSignature=function(u,h,c){var i={common:this.common};return f.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new r.BN(u-27),r:new r.BN(h),s:new r.BN(c)},i)},f.prototype.toJSON=function(){var u=n.AccessLists.getAccessListJSON(this.accessList);return{chainId:r.bnToHex(this.chainId),nonce:r.bnToHex(this.nonce),gasPrice:r.bnToHex(this.gasPrice),gasLimit:r.bnToHex(this.gasLimit),to:this.to!==void 0?this.to.toString():void 0,value:r.bnToHex(this.value),data:"0x"+this.data.toString("hex"),accessList:u,v:this.v!==void 0?r.bnToHex(this.v):void 0,r:this.r!==void 0?r.bnToHex(this.r):void 0,s:this.s!==void 0?r.bnToHex(this.s):void 0}},f}(m.BaseTransaction);e.default=p},66052:function(L,e,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(l,n,v,t){t===void 0&&(t=v),Object.defineProperty(l,t,{enumerable:!0,get:function(){return n[v]}})}:function(l,n,v,t){t===void 0&&(t=v),l[t]=n[v]}),w=this&&this.__exportStar||function(l,n){for(var v in l)v!=="default"&&!n.hasOwnProperty(v)&&y(n,l,v)};Object.defineProperty(e,"__esModule",{value:!0});var S=d(35534);Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return S.default}});var b=d(29325);Object.defineProperty(e,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return b.default}});var r=d(31932);Object.defineProperty(e,"TransactionFactory",{enumerable:!0,get:function(){return r.default}});var m=d(47669);Object.defineProperty(e,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return m.default}}),w(d(63458),e)},35534:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__extends||function(){var t=function(p,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,u){f.__proto__=u}||function(f,u){for(var h in u)u.hasOwnProperty(h)&&(f[h]=u[h])},t(p,a)};return function(p,a){t(p,a);function f(){this.constructor=p}p.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),S=this&&this.__assign||function(){return S=Object.assign||function(t){for(var p,a=1,f=arguments.length;a<f;a++){p=arguments[a];for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&(t[u]=p[u])}return t},S.apply(this,arguments)},b=this&&this.__read||function(t,p){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var f=a.call(t),u,h=[],c;try{for(;(p===void 0||p-- >0)&&!(u=f.next()).done;)h.push(u.value)}catch(i){c={error:i}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(c)throw c.error}}return h};Object.defineProperty(e,"__esModule",{value:!0});var r=d(77295),m=d(63458),l=d(36225),n=0,v=function(t){w(p,t);function p(a,f){f===void 0&&(f={});var u,h=t.call(this,S(S({},a),{type:n}))||this;if(h.common=h._validateTxV(h.v,f.common),h.gasPrice=new r.BN(r.toBuffer(a.gasPrice===""?"0x":a.gasPrice)),h._validateCannotExceedMaxInteger({gasPrice:h.gasPrice}),h.common.gteHardfork("spuriousDragon"))if(!h.isSigned())h.activeCapabilities.push(m.Capability.EIP155ReplayProtection);else{var c=h.v,i=h.common.chainIdBN().muln(2);(c.eq(i.addn(35))||c.eq(i.addn(36)))&&h.activeCapabilities.push(m.Capability.EIP155ReplayProtection)}var s=(u=f==null?void 0:f.freeze)!==null&&u!==void 0?u:!0;return s&&Object.freeze(h),h}return p.fromTxData=function(a,f){return f===void 0&&(f={}),new p(a,f)},p.fromSerializedTx=function(a,f){f===void 0&&(f={});var u=r.rlp.decode(a);if(!Array.isArray(u))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(u,f)},p.fromRlpSerializedTx=function(a,f){return f===void 0&&(f={}),p.fromSerializedTx(a,f)},p.fromValuesArray=function(a,f){if(f===void 0&&(f={}),a.length!==6&&a.length!==9)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var u=b(a,9),h=u[0],c=u[1],i=u[2],s=u[3],B=u[4],T=u[5],g=u[6],A=u[7],k=u[8];return new p({nonce:h,gasPrice:c,gasLimit:i,to:s,value:B,data:T,v:g,r:A,s:k},f)},p.prototype.raw=function(){return[r.bnToUnpaddedBuffer(this.nonce),r.bnToUnpaddedBuffer(this.gasPrice),r.bnToUnpaddedBuffer(this.gasLimit),this.to!==void 0?this.to.buf:y.from([]),r.bnToUnpaddedBuffer(this.value),this.data,this.v!==void 0?r.bnToUnpaddedBuffer(this.v):y.from([]),this.r!==void 0?r.bnToUnpaddedBuffer(this.r):y.from([]),this.s!==void 0?r.bnToUnpaddedBuffer(this.s):y.from([])]},p.prototype.serialize=function(){return r.rlp.encode(this.raw())},p.prototype._getMessageToSign=function(){var a=[r.bnToUnpaddedBuffer(this.nonce),r.bnToUnpaddedBuffer(this.gasPrice),r.bnToUnpaddedBuffer(this.gasLimit),this.to!==void 0?this.to.buf:y.from([]),r.bnToUnpaddedBuffer(this.value),this.data];return this.supports(m.Capability.EIP155ReplayProtection)&&(a.push(r.toBuffer(this.common.chainIdBN())),a.push(r.unpadBuffer(r.toBuffer(0))),a.push(r.unpadBuffer(r.toBuffer(0)))),a},p.prototype.getMessageToSign=function(a){a===void 0&&(a=!0);var f=this._getMessageToSign();return a?r.rlphash(f):f},p.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},p.prototype.hash=function(){return r.rlphash(this.raw())},p.prototype.getMessageToVerifySignature=function(){if(!this.isSigned())throw Error("This transaction is not signed");var a=this._getMessageToSign();return r.rlphash(a)},p.prototype.getSenderPublicKey=function(){var a,f=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&((a=this.s)===null||a===void 0?void 0:a.gt(m.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var u=this,h=u.v,c=u.r,i=u.s;try{return r.ecrecover(f,h,r.bnToUnpaddedBuffer(c),r.bnToUnpaddedBuffer(i),this.supports(m.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch{throw new Error("Invalid Signature")}},p.prototype._processSignature=function(a,f,u){var h=new r.BN(a);this.supports(m.Capability.EIP155ReplayProtection)&&h.iadd(this.common.chainIdBN().muln(2).addn(8));var c={common:this.common};return p.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:h,r:new r.BN(f),s:new r.BN(u)},c)},p.prototype.toJSON=function(){return{nonce:r.bnToHex(this.nonce),gasPrice:r.bnToHex(this.gasPrice),gasLimit:r.bnToHex(this.gasLimit),to:this.to!==void 0?this.to.toString():void 0,value:r.bnToHex(this.value),data:"0x"+this.data.toString("hex"),v:this.v!==void 0?r.bnToHex(this.v):void 0,r:this.r!==void 0?r.bnToHex(this.r):void 0,s:this.s!==void 0?r.bnToHex(this.s):void 0}},p.prototype._validateTxV=function(a,f){var u;if(a!==void 0&&!a.eqn(0)&&(!f||f.gteHardfork("spuriousDragon"))&&!a.eqn(27)&&!a.eqn(28))if(f){var h=f.chainIdBN().muln(2),c=a.eq(h.addn(35))||a.eq(h.addn(36));if(!c)throw new Error("Incompatible EIP155-based V "+a.toString()+" and chain id "+f.chainIdBN().toString()+". See the Common parameter of the Transaction constructor to set the chain id.")}else{var i=void 0;a.subn(35).isEven()?i=35:i=36,u=a.subn(i).divn(2)}return this._getCommon(f,u)},p.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},p.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned())throw Error("This transaction is not signed");var a=this.common.gteHardfork("spuriousDragon"),f=this.v,u=this.common.chainIdBN().muln(2),h=f.eq(u.addn(35))||f.eq(u.addn(36));return h&&a},p}(l.BaseTransaction);e.default=v},31932:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var w=d(77295),S=d(66052),b=function(){function r(){}return r.fromTxData=function(m,l){if(l===void 0&&(l={}),!("type"in m)||m.type===void 0)return S.Transaction.fromTxData(m,l);var n=new w.BN(w.toBuffer(m.type)).toNumber();if(n===0)return S.Transaction.fromTxData(m,l);if(n===1)return S.AccessListEIP2930Transaction.fromTxData(m,l);if(n===2)return S.FeeMarketEIP1559Transaction.fromTxData(m,l);throw new Error("Tx instantiation with type "+n+" not supported")},r.fromSerializedData=function(m,l){if(l===void 0&&(l={}),m[0]<=127){var n=void 0;switch(m[0]){case 1:n=2930;break;case 2:n=1559;break;default:throw new Error("TypedTransaction with ID "+m[0]+" unknown")}return n===1559?S.FeeMarketEIP1559Transaction.fromSerializedTx(m,l):S.AccessListEIP2930Transaction.fromSerializedTx(m,l)}else return S.Transaction.fromSerializedTx(m,l)},r.fromBlockBodyData=function(m,l){if(l===void 0&&(l={}),y.isBuffer(m))return this.fromSerializedData(m,l);if(Array.isArray(m))return S.Transaction.fromValuesArray(m,l);throw new Error("Cannot decode transaction: unknown type input")},r.getTransactionClass=function(m,l){m===void 0&&(m=0);var n=m==0||m>=128&&m<=255;if(n)return S.Transaction;switch(m){case 1:return S.AccessListEIP2930Transaction;case 2:return S.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID "+m+" unknown")}},r}();e.default=b},63458:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.N_DIV_2=e.isAccessList=e.isAccessListBuffer=e.Capability=void 0;var y=d(77295),w;(function(r){r[r.EIP155ReplayProtection=155]="EIP155ReplayProtection",r[r.EIP1559FeeMarket=1559]="EIP1559FeeMarket",r[r.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",r[r.EIP2930AccessLists=2930]="EIP2930AccessLists"})(w=e.Capability||(e.Capability={}));function S(r){if(r.length===0)return!0;var m=r[0];return!!Array.isArray(m)}e.isAccessListBuffer=S;function b(r){return!S(r)}e.isAccessList=b,e.N_DIV_2=new y.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)},82942:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessLists=void 0;var y=d(77295),w=d(63458),S=function(){function b(){}return b.getAccessListData=function(r){var m,l;if(r&&w.isAccessList(r)){m=r;for(var n=[],v=0;v<r.length;v++){for(var t=r[v],p=y.toBuffer(t.address),a=[],f=0;f<t.storageKeys.length;f++)a.push(y.toBuffer(t.storageKeys[f]));n.push([p,a])}l=n}else{l=r!=null?r:[];for(var u=[],v=0;v<l.length;v++){for(var h=l[v],c=y.bufferToHex(h[0]),i=[],t=0;t<h[1].length;t++)i.push(y.bufferToHex(h[1][t]));var s={address:c,storageKeys:i};u.push(s)}m=u}return{AccessListJSON:m,accessList:l}},b.verifyAccessList=function(r){for(var m=0;m<r.length;m++){var l=r[m],n=l[0],v=l[1];if(l[2]!==void 0)throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");if(n.length!=20)throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");for(var t=0;t<v.length;t++)if(v[t].length!=32)throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes")}},b.getAccessListJSON=function(r){for(var m=[],l=0;l<r.length;l++){for(var n=r[l],v={address:"0x"+y.setLengthLeft(n[0],20).toString("hex"),storageKeys:[]},t=n[1],p=0;p<t.length;p++){var a=t[p];v.storageKeys.push("0x"+y.setLengthLeft(a,32).toString("hex"))}m.push(v)}return m},b.getDataFeeEIP2930=function(r,m){for(var l=m.param("gasPrices","accessListStorageKeyCost"),n=m.param("gasPrices","accessListAddressCost"),v=0,t=0;t<r.length;t++){var p=r[t],a=p[1];v+=a.length}var f=r.length;return f*n+v*l},b}();e.AccessLists=S},54090:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__read||function(P,o){var E=typeof Symbol=="function"&&P[Symbol.iterator];if(!E)return P;var O=E.call(P),x,M=[],U;try{for(;(o===void 0||o-- >0)&&!(x=O.next()).done;)M.push(x.value)}catch(j){U={error:j}}finally{try{x&&!x.done&&(E=O.return)&&E.call(O)}finally{if(U)throw U.error}}return M},S=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(e,"__esModule",{value:!0}),e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;var b=S(d(69282)),r=d(71856),m=d(95053),l=d(90433),n=d(32924),v=d(69611),t=d(28691),p=d(31012),a=d(27445),f=function(){function P(o,E,O,x){o===void 0&&(o=new r.BN(0)),E===void 0&&(E=new r.BN(0)),O===void 0&&(O=n.KECCAK256_RLP),x===void 0&&(x=n.KECCAK256_NULL),this.nonce=o,this.balance=E,this.stateRoot=O,this.codeHash=x,this._validate()}return P.fromAccountData=function(o){var E=o.nonce,O=o.balance,x=o.stateRoot,M=o.codeHash;return new P(E?new r.BN((0,v.toBuffer)(E)):void 0,O?new r.BN((0,v.toBuffer)(O)):void 0,x?(0,v.toBuffer)(x):void 0,M?(0,v.toBuffer)(M):void 0)},P.fromRlpSerializedAccount=function(o){var E=r.rlp.decode(o);if(!Array.isArray(E))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(E)},P.fromValuesArray=function(o){var E=w(o,4),O=E[0],x=E[1],M=E[2],U=E[3];return new P(new r.BN(O),new r.BN(x),M,U)},P.prototype._validate=function(){if(this.nonce.lt(new r.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new r.BN(0)))throw new Error("balance must be greater than zero");if(this.stateRoot.length!==32)throw new Error("stateRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")},P.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},P.prototype.serialize=function(){return r.rlp.encode(this.raw())},P.prototype.isContract=function(){return!this.codeHash.equals(n.KECCAK256_NULL)},P.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(n.KECCAK256_NULL)},P}();e.Account=f;var u=function(P){try{(0,p.assertIsString)(P)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(P)};e.isValidAddress=u;var h=function(P,o){(0,p.assertIsHexString)(P);var E=(0,l.stripHexPrefix)(P).toLowerCase(),O="";if(o){var x=(0,a.toType)(o,a.TypeOutput.BN);O=x.toString()+"0x"}for(var M=(0,t.keccakFromString)(O+E).toString("hex"),U="0x",j=0;j<E.length;j++)parseInt(M[j],16)>=8?U+=E[j].toUpperCase():U+=E[j];return U};e.toChecksumAddress=h;var c=function(P,o){return(0,e.isValidAddress)(P)&&(0,e.toChecksumAddress)(P,o)===P};e.isValidChecksumAddress=c;var i=function(P,o){(0,p.assertIsBuffer)(P),(0,p.assertIsBuffer)(o);var E=new r.BN(o);return E.isZero()?(0,t.rlphash)([P,null]).slice(-20):(0,t.rlphash)([P,y.from(E.toArray())]).slice(-20)};e.generateAddress=i;var s=function(P,o,E){(0,p.assertIsBuffer)(P),(0,p.assertIsBuffer)(o),(0,p.assertIsBuffer)(E),(0,b.default)(P.length===20),(0,b.default)(o.length===32);var O=(0,t.keccak256)(y.concat([y.from("ff","hex"),P,o,(0,t.keccak256)(E)]));return O.slice(-20)};e.generateAddress2=s;var B=function(P){return(0,m.privateKeyVerify)(P)};e.isValidPrivate=B;var T=function(P,o){return o===void 0&&(o=!1),(0,p.assertIsBuffer)(P),P.length===64?(0,m.publicKeyVerify)(y.concat([y.from([4]),P])):o?(0,m.publicKeyVerify)(P):!1};e.isValidPublic=T;var g=function(P,o){return o===void 0&&(o=!1),(0,p.assertIsBuffer)(P),o&&P.length!==64&&(P=y.from((0,m.publicKeyConvert)(P,!1).slice(1))),(0,b.default)(P.length===64),(0,t.keccak)(P).slice(-20)};e.pubToAddress=g,e.publicToAddress=e.pubToAddress;var A=function(P){return(0,p.assertIsBuffer)(P),y.from((0,m.publicKeyCreate)(P,!1)).slice(1)};e.privateToPublic=A;var k=function(P){return(0,e.publicToAddress)((0,e.privateToPublic)(P))};e.privateToAddress=k;var C=function(P){return(0,p.assertIsBuffer)(P),P.length!==64&&(P=y.from((0,m.publicKeyConvert)(P,!1).slice(1))),P};e.importPublic=C;var F=function(){var P=20,o=(0,v.zeros)(P);return(0,v.bufferToHex)(o)};e.zeroAddress=F;var D=function(P){try{(0,p.assertIsString)(P)}catch{return!1}var o=(0,e.zeroAddress)();return o===P};e.isZeroAddress=D},95797:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;var S=w(d(69282)),b=d(71856),r=d(69611),m=d(54090),l=function(){function n(v){(0,S.default)(v.length===20,"Invalid address length"),this.buf=v}return n.zero=function(){return new n((0,r.zeros)(20))},n.fromString=function(v){return(0,S.default)((0,m.isValidAddress)(v),"Invalid address"),new n((0,r.toBuffer)(v))},n.fromPublicKey=function(v){(0,S.default)(y.isBuffer(v),"Public key should be Buffer");var t=(0,m.pubToAddress)(v);return new n(t)},n.fromPrivateKey=function(v){(0,S.default)(y.isBuffer(v),"Private key should be Buffer");var t=(0,m.privateToAddress)(v);return new n(t)},n.generate=function(v,t){return(0,S.default)(b.BN.isBN(t)),new n((0,m.generateAddress)(v.buf,t.toArrayLike(y)))},n.generate2=function(v,t,p){return(0,S.default)(y.isBuffer(t)),(0,S.default)(y.isBuffer(p)),new n((0,m.generateAddress2)(v.buf,t,p))},n.prototype.equals=function(v){return this.buf.equals(v.buf)},n.prototype.isZero=function(){return this.equals(n.zero())},n.prototype.isPrecompileOrSystemAddress=function(){var v=new b.BN(this.buf),t=new b.BN(0),p=new b.BN("ffff","hex");return v.gte(t)&&v.lte(p)},n.prototype.toString=function(){return"0x"+this.buf.toString("hex")},n.prototype.toBuffer=function(){return y.from(this.buf)},n}();e.Address=l},69611:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__values||function(o){var E=typeof Symbol=="function"&&Symbol.iterator,O=E&&o[E],x=0;if(O)return O.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&x>=o.length&&(o=void 0),{value:o&&o[x++],done:!o}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},S=this&&this.__read||function(o,E){var O=typeof Symbol=="function"&&o[Symbol.iterator];if(!O)return o;var x=O.call(o),M,U=[],j;try{for(;(E===void 0||E-- >0)&&!(M=x.next()).done;)U.push(M.value)}catch(I){j={error:I}}finally{try{M&&!M.done&&(O=x.return)&&O.call(x)}finally{if(j)throw j.error}}return U};Object.defineProperty(e,"__esModule",{value:!0}),e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;var b=d(71856),r=d(90433),m=d(31012),l=function(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("Received an invalid integer type: ".concat(o));return"0x".concat(o.toString(16))};e.intToHex=l;var n=function(o){var E=(0,e.intToHex)(o);return y.from((0,r.padToEven)(E.slice(2)),"hex")};e.intToBuffer=n;var v=function(o){return y.allocUnsafe(o).fill(0)};e.zeros=v;var t=function(o,E,O){var x=(0,e.zeros)(E);return O?o.length<E?(o.copy(x),x):o.slice(0,E):o.length<E?(o.copy(x,E-o.length),x):o.slice(-E)},p=function(o,E){return(0,m.assertIsBuffer)(o),t(o,E,!1)};e.setLengthLeft=p;var a=function(o,E){return(0,m.assertIsBuffer)(o),t(o,E,!0)};e.setLengthRight=a;var f=function(o){for(var E=o[0];o.length>0&&E.toString()==="0";)o=o.slice(1),E=o[0];return o},u=function(o){return(0,m.assertIsBuffer)(o),f(o)};e.unpadBuffer=u;var h=function(o){return(0,m.assertIsArray)(o),f(o)};e.unpadArray=h;var c=function(o){return(0,m.assertIsHexString)(o),o=(0,r.stripHexPrefix)(o),f(o)};e.unpadHexString=c;var i=function(o){if(o==null)return y.allocUnsafe(0);if(y.isBuffer(o)||Array.isArray(o)||o instanceof Uint8Array)return y.from(o);if(typeof o=="string"){if(!(0,r.isHexString)(o))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(o));return y.from((0,r.padToEven)((0,r.stripHexPrefix)(o)),"hex")}if(typeof o=="number")return(0,e.intToBuffer)(o);if(b.BN.isBN(o)){if(o.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(o));return o.toArrayLike(y)}if(o.toArray)return y.from(o.toArray());if(o.toBuffer)return y.from(o.toBuffer());throw new Error("invalid type")};e.toBuffer=i;var s=function(o){return new b.BN((0,e.toBuffer)(o)).toNumber()};e.bufferToInt=s;var B=function(o){return o=(0,e.toBuffer)(o),"0x"+o.toString("hex")};e.bufferToHex=B;var T=function(o){return new b.BN(o).fromTwos(256)};e.fromSigned=T;var g=function(o){return y.from(o.toTwos(256).toArray())};e.toUnsigned=g;var A=function(o){return typeof o!="string"||(0,r.isHexPrefixed)(o)?o:"0x"+o};e.addHexPrefix=A;var k=function(o){var E=/^(00)+|(00)+$/g;if(o=(0,r.stripHexPrefix)(o),o.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");var O=y.from(o.replace(E,""),"hex");return O.toString("utf8")};e.toUtf8=k;var C=function(o){if(y.isBuffer(o))return"0x".concat(o.toString("hex"));if(o instanceof Array){for(var E=[],O=0;O<o.length;O++)E.push((0,e.baToJSON)(o[O]));return E}};e.baToJSON=C;var F=function(o){var E,O;try{for(var x=w(Object.entries(o)),M=x.next();!M.done;M=x.next()){var U=S(M.value,2),j=U[0],I=U[1];if(I!==void 0&&I.length>0&&I[0]===0)throw new Error("".concat(j," cannot have leading zeroes, received: ").concat(I.toString("hex")))}}catch(H){E={error:H}}finally{try{M&&!M.done&&(O=x.return)&&O.call(x)}finally{if(E)throw E.error}}};e.validateNoLeadingZeroes=F;function D(o){return Array.isArray(o)?o.map(function(E){return D(E)}):y.from(o)}e.arrToBufArr=D;function P(o){return Array.isArray(o)?o.map(function(E){return P(E)}):Uint8Array.from(o!=null?o:[])}e.bufArrToArr=P},32924:function(L,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=e.MAX_UINT64=void 0;var y=d(48764),w=d(71856);e.MAX_UINT64=new w.BN("ffffffffffffffff",16),e.MAX_INTEGER=new w.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new w.BN("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=y.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=y.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=y.Buffer.from(e.KECCAK256_RLP_S,"hex")},71856:function(L,e,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(l,n,v,t){t===void 0&&(t=v);var p=Object.getOwnPropertyDescriptor(n,v);(!p||("get"in p?!n.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return n[v]}}),Object.defineProperty(l,t,p)}:function(l,n,v,t){t===void 0&&(t=v),l[t]=n[v]}),w=this&&this.__setModuleDefault||(Object.create?function(l,n){Object.defineProperty(l,"default",{enumerable:!0,value:n})}:function(l,n){l.default=n}),S=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var n={};if(l!=null)for(var v in l)v!=="default"&&Object.prototype.hasOwnProperty.call(l,v)&&y(n,l,v);return w(n,l),n},b=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.rlp=e.BN=void 0;var r=b(d(13550));e.BN=r.default;var m=S(d(51675));e.rlp=m},28691:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160FromArray=e.ripemd160FromString=e.ripemd160=e.sha256FromArray=e.sha256FromString=e.sha256=e.keccakFromArray=e.keccakFromHexString=e.keccakFromString=e.keccak256=e.keccak=void 0;var w=d(82192),S=d(23482),b=d(71856),r=d(69611),m=d(31012),l=function(g,A){switch(A===void 0&&(A=256),(0,m.assertIsBuffer)(g),A){case 224:return(0,w.keccak224)(g);case 256:return(0,w.keccak256)(g);case 384:return(0,w.keccak384)(g);case 512:return(0,w.keccak512)(g);default:throw new Error("Invald algorithm: keccak".concat(A))}};e.keccak=l;var n=function(g){return(0,e.keccak)(g)};e.keccak256=n;var v=function(g,A){A===void 0&&(A=256),(0,m.assertIsString)(g);var k=y.from(g,"utf8");return(0,e.keccak)(k,A)};e.keccakFromString=v;var t=function(g,A){return A===void 0&&(A=256),(0,m.assertIsHexString)(g),(0,e.keccak)((0,r.toBuffer)(g),A)};e.keccakFromHexString=t;var p=function(g,A){return A===void 0&&(A=256),(0,m.assertIsArray)(g),(0,e.keccak)((0,r.toBuffer)(g),A)};e.keccakFromArray=p;var a=function(g){return g=(0,r.toBuffer)(g),S("sha256").update(g).digest()},f=function(g){return(0,m.assertIsBuffer)(g),a(g)};e.sha256=f;var u=function(g){return(0,m.assertIsString)(g),a(g)};e.sha256FromString=u;var h=function(g){return(0,m.assertIsArray)(g),a(g)};e.sha256FromArray=h;var c=function(g,A){g=(0,r.toBuffer)(g);var k=S("rmd160").update(g).digest();return A===!0?(0,r.setLengthLeft)(k,32):k},i=function(g,A){return(0,m.assertIsBuffer)(g),c(g,A)};e.ripemd160=i;var s=function(g,A){return(0,m.assertIsString)(g),c(g,A)};e.ripemd160FromString=s;var B=function(g,A){return(0,m.assertIsArray)(g),c(g,A)};e.ripemd160FromArray=B;var T=function(g){return(0,e.keccak)(b.rlp.encode(g))};e.rlphash=T},31012:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;var w=d(90433),S=function(l){if(!(0,w.isHexString)(l)){var n="This method only supports 0x-prefixed hex strings but input was: ".concat(l);throw new Error(n)}};e.assertIsHexString=S;var b=function(l){if(!y.isBuffer(l)){var n="This method only supports Buffer but input was: ".concat(l);throw new Error(n)}};e.assertIsBuffer=b;var r=function(l){if(!Array.isArray(l)){var n="This method only supports number arrays but input was: ".concat(l);throw new Error(n)}};e.assertIsArray=r;var m=function(l){if(typeof l!="string"){var n="This method only supports strings but input was: ".concat(l);throw new Error(n)}};e.assertIsString=m},77295:function(L,e,d){"use strict";var y=this&&this.__createBinding||(Object.create?function(b,r,m,l){l===void 0&&(l=m);var n=Object.getOwnPropertyDescriptor(r,m);(!n||("get"in n?!r.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return r[m]}}),Object.defineProperty(b,l,n)}:function(b,r,m,l){l===void 0&&(l=m),b[l]=r[m]}),w=this&&this.__exportStar||function(b,r){for(var m in b)m!=="default"&&!Object.prototype.hasOwnProperty.call(r,m)&&y(r,b,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,w(d(32924),e),w(d(54090),e),w(d(95797),e),w(d(28691),e),w(d(77959),e),w(d(69611),e),w(d(88637),e),w(d(71856),e),w(d(27445),e);var S=d(90433);Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return S.isHexPrefixed}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return S.stripHexPrefix}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return S.padToEven}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return S.getBinarySize}}),Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return S.arrayContainsArray}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return S.toAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return S.fromUtf8}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return S.fromAscii}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return S.getKeys}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return S.isHexString}})},90433:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0;function w(a){if(typeof a!="string")throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof a));return a[0]==="0"&&a[1]==="x"}e.isHexPrefixed=w;var S=function(a){if(typeof a!="string")throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof a));return w(a)?a.slice(2):a};e.stripHexPrefix=S;function b(a){var f=a;if(typeof f!="string")throw new Error("[padToEven] value must be type 'string', received ".concat(typeof f));return f.length%2&&(f="0".concat(f)),f}e.padToEven=b;function r(a){if(typeof a!="string")throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof a));return y.byteLength(a,"utf8")}e.getBinarySize=r;function m(a,f,u){if(Array.isArray(a)!==!0)throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof a,"'"));if(Array.isArray(f)!==!0)throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof f,"'"));return f[u?"some":"every"](function(h){return a.indexOf(h)>=0})}e.arrayContainsArray=m;function l(a){var f="",u=0,h=a.length;for(a.substring(0,2)==="0x"&&(u=2);u<h;u+=2){var c=parseInt(a.substr(u,2),16);f+=String.fromCharCode(c)}return f}e.toAscii=l;function n(a){var f=y.from(a,"utf8");return"0x".concat(b(f.toString("hex")).replace(/^0+|0+$/g,""))}e.fromUtf8=n;function v(a){for(var f="",u=0;u<a.length;u++){var h=a.charCodeAt(u),c=h.toString(16);f+=c.length<2?"0".concat(c):c}return"0x".concat(f)}e.fromAscii=v;function t(a,f,u){if(!Array.isArray(a))throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat(typeof a));if(typeof f!="string")throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat(typeof a));for(var h=[],c=0;c<a.length;c++){var i=a[c][f];if(u&&!i)i="";else if(typeof i!="string")throw new Error("invalid abi - expected type 'string', received ".concat(typeof i));h.push(i)}return h}e.getKeys=t;function p(a,f){return!(typeof a!="string"||!a.match(/^0x[0-9A-Fa-f]*$/)||f&&a.length!==2+2*f)}e.isHexString=p},88637:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var S=w(d(69282)),b=d(90433),r=d(71856),m=d(69611),l=function(n,v,t){if(n.raw=[],n._fields=[],n.toJSON=function(a){if(a===void 0&&(a=!1),a){var f={};return n._fields.forEach(function(u){f[u]="0x".concat(n[u].toString("hex"))}),f}return(0,m.baToJSON)(n.raw)},n.serialize=function(){return r.rlp.encode(n.raw)},v.forEach(function(a,f){n._fields.push(a.name);function u(){return n.raw[f]}function h(c){c=(0,m.toBuffer)(c),c.toString("hex")==="00"&&!a.allowZero&&(c=y.allocUnsafe(0)),a.allowLess&&a.length?(c=(0,m.unpadBuffer)(c),(0,S.default)(a.length>=c.length,"The field ".concat(a.name," must not have more ").concat(a.length," bytes"))):!(a.allowZero&&c.length===0)&&a.length&&(0,S.default)(a.length===c.length,"The field ".concat(a.name," must have byte length of ").concat(a.length)),n.raw[f]=c}Object.defineProperty(n,a.name,{enumerable:!0,configurable:!0,get:u,set:h}),a.default&&(n[a.name]=a.default),a.alias&&Object.defineProperty(n,a.alias,{enumerable:!1,configurable:!0,set:h,get:u})}),t)if(typeof t=="string"&&(t=y.from((0,b.stripHexPrefix)(t),"hex")),y.isBuffer(t)&&(t=r.rlp.decode(t)),Array.isArray(t)){if(t.length>n._fields.length)throw new Error("wrong number of fields in data");t.forEach(function(a,f){n[n._fields[f]]=(0,m.toBuffer)(a)})}else if(typeof t=="object"){var p=Object.keys(t);v.forEach(function(a){p.indexOf(a.name)!==-1&&(n[a.name]=t[a.name]),p.indexOf(a.alias)!==-1&&(n[a.alias]=t[a.alias])})}else throw new Error("invalid data")};e.defineProperties=l},77959:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var w=d(95053),S=d(71856),b=d(69611),r=d(28691),m=d(31012),l=d(27445);function n(i,s,B){var T=(0,w.ecdsaSign)(i,s),g=T.signature,A=T.recid,k=y.from(g.slice(0,32)),C=y.from(g.slice(32,64));if(!B||typeof B=="number"){if(B&&!Number.isSafeInteger(B))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var F=B?A+(B*2+35):A+27;return{r:k,s:C,v:F}}var D=(0,l.toType)(B,l.TypeOutput.BN),P=D.muln(2).addn(35).addn(A).toArrayLike(y);return{r:k,s:C,v:P}}e.ecsign=n;function v(i,s){var B=(0,l.toType)(i,l.TypeOutput.BN);if(B.eqn(0)||B.eqn(1))return(0,l.toType)(i,l.TypeOutput.BN);if(!s)return B.subn(27);var T=(0,l.toType)(s,l.TypeOutput.BN);return B.sub(T.muln(2).addn(35))}function t(i){var s=new S.BN(i);return s.eqn(0)||s.eqn(1)}var p=function(i,s,B,T,g){var A=y.concat([(0,b.setLengthLeft)(B,32),(0,b.setLengthLeft)(T,32)],64),k=v(s,g);if(!t(k))throw new Error("Invalid signature v value");var C=(0,w.ecdsaRecover)(A,k.toNumber(),i);return y.from((0,w.publicKeyConvert)(C,!1).slice(1))};e.ecrecover=p;var a=function(i,s,B,T){var g=v(i,T);if(!t(g))throw new Error("Invalid signature v value");return(0,b.bufferToHex)(y.concat([(0,b.setLengthLeft)(s,32),(0,b.setLengthLeft)(B,32),(0,b.toBuffer)(i)]))};e.toRpcSig=a;var f=function(i,s,B,T){var g=v(i,T);if(!t(g))throw new Error("Invalid signature v value");var A=(0,l.toType)(i,l.TypeOutput.Number),k=B;return(A>28&&A%2===1||A===1||A===28)&&(k=y.from(B),k[0]|=128),(0,b.bufferToHex)(y.concat([(0,b.setLengthLeft)(s,32),(0,b.setLengthLeft)(k,32)]))};e.toCompactSig=f;var u=function(i){var s=(0,b.toBuffer)(i),B,T,g;if(s.length>=65)B=s.slice(0,32),T=s.slice(32,64),g=(0,b.bufferToInt)(s.slice(64));else if(s.length===64)B=s.slice(0,32),T=s.slice(32,64),g=(0,b.bufferToInt)(s.slice(32,33))>>7,T[0]&=127;else throw new Error("Invalid signature length");return g<27&&(g+=27),{v:g,r:B,s:T}};e.fromRpcSig=u;var h=function(i,s,B,T,g){T===void 0&&(T=!0);var A=new S.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),k=new S.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(s.length!==32||B.length!==32||!t(v(i,g)))return!1;var C=new S.BN(s),F=new S.BN(B);return!(C.isZero()||C.gt(k)||F.isZero()||F.gt(k)||T&&F.cmp(A)===1)};e.isValidSignature=h;var c=function(i){(0,m.assertIsBuffer)(i);var s=y.from(`Ethereum Signed Message:
3
3
  `.concat(i.length),"utf-8");return(0,r.keccak)(y.concat([s,i]))};e.hashPersonalMessage=c},27445:function(L,e,d){"use strict";var y=d(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=e.bnToRlp=e.bnToUnpaddedBuffer=e.bnToHex=void 0;var w=d(71856),S=d(90433),b=d(69611);function r(t){return"0x".concat(t.toString(16))}e.bnToHex=r;function m(t){return(0,b.unpadBuffer)(t.toArrayLike(y))}e.bnToUnpaddedBuffer=m;function l(t){return m(t)}e.bnToRlp=l;var n;(function(t){t[t.Number=0]="Number",t[t.BN=1]="BN",t[t.Buffer=2]="Buffer",t[t.PrefixedHexString=3]="PrefixedHexString"})(n=e.TypeOutput||(e.TypeOutput={}));function v(t,p){if(t===null)return null;if(t!==void 0){if(typeof t=="string"&&!(0,S.isHexString)(t))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(t));if(typeof t=="number"&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var a=(0,b.toBuffer)(t);if(p===n.Buffer)return a;if(p===n.BN)return new w.BN(a);if(p===n.Number){var f=new w.BN(a),u=new w.BN(Number.MAX_SAFE_INTEGER.toString());if(f.gt(u))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return f.toNumber()}else return"0x".concat(a.toString("hex"))}}e.toType=v},34606:function(L,e){var d;(function(y){y(typeof DO_NOT_EXPORT_CRC>"u"?e:d={})})(function(y){y.version="1.2.0";function w(){for(var n=0,v=new Array(256),t=0;t!=256;++t)n=t,n=n&1?-306674912^n>>>1:n>>>1,n=n&1?-306674912^n>>>1:n>>>1,n=n&1?-306674912^n>>>1:n>>>1,n=n&1?-306674912^n>>>1:n>>>1,n=n&1?-306674912^n>>>1:n>>>1,n=n&1?-306674912^n>>>1:n>>>1,n=n&1?-306674912^n>>>1:n>>>1,n=n&1?-306674912^n>>>1:n>>>1,v[t]=n;return typeof Int32Array<"u"?new Int32Array(v):v}var S=w();function b(n,v){for(var t=v^-1,p=n.length-1,a=0;a<p;)t=t>>>8^S[(t^n.charCodeAt(a++))&255],t=t>>>8^S[(t^n.charCodeAt(a++))&255];return a===p&&(t=t>>>8^S[(t^n.charCodeAt(a))&255]),t^-1}function r(n,v){if(n.length>1e4)return m(n,v);for(var t=v^-1,p=n.length-3,a=0;a<p;)t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255];for(;a<p+3;)t=t>>>8^S[(t^n[a++])&255];return t^-1}function m(n,v){for(var t=v^-1,p=n.length-7,a=0;a<p;)t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255],t=t>>>8^S[(t^n[a++])&255];for(;a<p+7;)t=t>>>8^S[(t^n[a++])&255];return t^-1}function l(n,v){for(var t=v^-1,p=0,a=n.length,f,u;p<a;)f=n.charCodeAt(p++),f<128?t=t>>>8^S[(t^f)&255]:f<2048?(t=t>>>8^S[(t^(192|f>>6&31))&255],t=t>>>8^S[(t^(128|f&63))&255]):f>=55296&&f<57344?(f=(f&1023)+64,u=n.charCodeAt(p++)&1023,t=t>>>8^S[(t^(240|f>>8&7))&255],t=t>>>8^S[(t^(128|f>>2&63))&255],t=t>>>8^S[(t^(128|u>>6&15|(f&3)<<4))&255],t=t>>>8^S[(t^(128|u&63))&255]):(t=t>>>8^S[(t^(224|f>>12&15))&255],t=t>>>8^S[(t^(128|f>>6&63))&255],t=t>>>8^S[(t^(128|f&63))&255]);return t^-1}y.table=S,y.bstr=b,y.buf=r,y.str=l})},50144:function(L,e,d){"use strict";var y=d(48764).Buffer,w=this&&this.__createBinding||(Object.create?function(I,H,N,R){R===void 0&&(R=N),Object.defineProperty(I,R,{enumerable:!0,get:function(){return H[N]}})}:function(I,H,N,R){R===void 0&&(R=N),I[R]=H[N]}),S=this&&this.__setModuleDefault||(Object.create?function(I,H){Object.defineProperty(I,"default",{enumerable:!0,value:H})}:function(I,H){I.default=H}),b=this&&this.__importStar||function(I){if(I&&I.__esModule)return I;var H={};if(I!=null)for(var N in I)N!=="default"&&Object.prototype.hasOwnProperty.call(I,N)&&w(H,I,N);return S(H,I),H};Object.defineProperty(e,"__esModule",{value:!0}),e.recoverTypedSignature_v4=e.recoverTypedSignature=e.signTypedData_v4=e.signTypedData=e.recoverTypedMessage=e.signTypedMessage=e.getEncryptionPublicKey=e.decryptSafely=e.decrypt=e.encryptSafely=e.encrypt=e.recoverTypedSignatureLegacy=e.signTypedDataLegacy=e.typedSignatureHash=e.extractPublicKey=e.recoverPersonalSignature=e.personalSign=e.normalize=e.concatSig=e.TypedDataUtils=e.TYPED_MESSAGE_SCHEMA=void 0;const r=b(d(21964)),m=b(d(68142)),l=b(d(50780)),n=b(d(16885)),v={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]};e.TYPED_MESSAGE_SCHEMA=v;const t={encodeData(I,H,N,R=!0){const z=["bytes32"],K=[this.hashType(I,N)];if(R){const V=(G,J,_)=>{if(N[J]!==void 0)return["bytes32",_==null?"0x0000000000000000000000000000000000000000000000000000000000000000":r.keccak(this.encodeData(J,_,N,R))];if(_===void 0)throw new Error(`missing value for field ${G} of type ${J}`);if(J==="bytes")return["bytes32",r.keccak(_)];if(J==="string")return typeof _=="string"&&(_=y.from(_,"utf8")),["bytes32",r.keccak(_)];if(J.lastIndexOf("]")===J.length-1){const Y=J.slice(0,J.lastIndexOf("[")),W=_.map(Z=>V(G,Y,Z));return["bytes32",r.keccak(m.rawEncode(W.map(([Z])=>Z),W.map(([,Z])=>Z)))]}return[J,_]};for(const G of N[I]){const[J,_]=V(G.name,G.type,H[G.name]);z.push(J),K.push(_)}}else for(const V of N[I]){let G=H[V.name];if(G!==void 0)if(V.type==="bytes")z.push("bytes32"),G=r.keccak(G),K.push(G);else if(V.type==="string")z.push("bytes32"),typeof G=="string"&&(G=y.from(G,"utf8")),G=r.keccak(G),K.push(G);else if(N[V.type]!==void 0)z.push("bytes32"),G=r.keccak(this.encodeData(V.type,G,N,R)),K.push(G);else{if(V.type.lastIndexOf("]")===V.type.length-1)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");z.push(V.type),K.push(G)}}return m.rawEncode(z,K)},encodeType(I,H){let N="",R=this.findTypeDependencies(I,H).filter(z=>z!==I);R=[I].concat(R.sort());for(const z of R){if(!H[z])throw new Error(`No type definition specified: ${z}`);N+=`${z}(${H[z].map(({name:V,type:G})=>`${G} ${V}`).join(",")})`}return N},findTypeDependencies(I,H,N=[]){if([I]=I.match(/^\w*/u),N.includes(I)||H[I]===void 0)return N;N.push(I);for(const R of H[I])for(const z of this.findTypeDependencies(R.type,H,N))!N.includes(z)&&N.push(z);return N},hashStruct(I,H,N,R=!0){return r.keccak(this.encodeData(I,H,N,R))},hashType(I,H){return r.keccak(this.encodeType(I,H))},sanitizeData(I){const H={};for(const N in v.properties)I[N]&&(H[N]=I[N]);return"types"in H&&(H.types=Object.assign({EIP712Domain:[]},H.types)),H},sign(I,H=!0){const N=this.sanitizeData(I),R=[y.from("1901","hex")];return R.push(this.hashStruct("EIP712Domain",N.domain,N.types,H)),N.primaryType!=="EIP712Domain"&&R.push(this.hashStruct(N.primaryType,N.message,N.types,H)),r.keccak(y.concat(R))}};e.TypedDataUtils=t;function p(I,H,N){const R=r.fromSigned(H),z=r.fromSigned(N),K=r.bufferToInt(I),V=U(r.toUnsigned(R).toString("hex"),64),G=U(r.toUnsigned(z).toString("hex"),64),J=r.stripHexPrefix(r.intToHex(K));return r.addHexPrefix(V.concat(G,J)).toString("hex")}e.concatSig=p;function a(I){if(!!I){if(typeof I=="number"){const H=r.toBuffer(I);I=r.bufferToHex(H)}if(typeof I!="string"){let H="eth-sig-util.normalize() requires hex string or integer input.";throw H+=` received ${typeof I}: ${I}`,new Error(H)}return r.addHexPrefix(I.toLowerCase())}}e.normalize=a;function f(I,H){const N=r.toBuffer(H.data),R=r.hashPersonalMessage(N),z=r.ecsign(R,I);return r.bufferToHex(p(z.v,z.r,z.s))}e.personalSign=f;function u(I){const H=M(I),N=r.publicToAddress(H);return r.bufferToHex(N)}e.recoverPersonalSignature=u;function h(I){return`0x${M(I).toString("hex")}`}e.extractPublicKey=h;function c(I){const H=O(I);return r.bufferToHex(H)}e.typedSignatureHash=c;function i(I,H){const N=O(H.data),R=r.ecsign(N,I);return r.bufferToHex(p(R.v,R.r,R.s))}e.signTypedDataLegacy=i;function s(I){const H=O(I.data),N=x(H,I.sig),R=r.publicToAddress(N);return r.bufferToHex(R)}e.recoverTypedSignatureLegacy=s;function B(I,H,N){switch(N){case"x25519-xsalsa20-poly1305":{if(typeof H.data!="string")throw new Error('Cannot detect secret message, message params should be of the form {data: "secret message"} ');const R=l.box.keyPair();let z;try{z=n.decodeBase64(I)}catch{throw new Error("Bad public key")}const K=n.decodeUTF8(H.data),V=l.randomBytes(l.box.nonceLength),G=l.box(K,V,z,R.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:n.encodeBase64(V),ephemPublicKey:n.encodeBase64(R.publicKey),ciphertext:n.encodeBase64(G)}}default:throw new Error("Encryption type/version not supported")}}e.encrypt=B;function T(I,H,N){const{data:K}=H;if(!K)throw new Error("Cannot encrypt empty msg.data");if(typeof K=="object"&&"toJSON"in K)throw new Error("Cannot encrypt with toJSON property. Please remove toJSON property");const V={data:K,padding:""},J=y.byteLength(JSON.stringify(V),"utf-8")%2048;let _=0;J>0&&(_=2048-J-16),V.padding="0".repeat(_);const Y={data:JSON.stringify(V)};return B(I,Y,N)}e.encryptSafely=T;function g(I,H){switch(I.version){case"x25519-xsalsa20-poly1305":{const N=j(H),R=l.box.keyPair.fromSecretKey(N).secretKey,z=n.decodeBase64(I.nonce),K=n.decodeBase64(I.ciphertext),V=n.decodeBase64(I.ephemPublicKey),G=l.box.open(K,z,V,R);let J;try{J=n.encodeUTF8(G)}catch{throw new Error("Decryption failed.")}if(J)return J;throw new Error("Decryption failed.")}default:throw new Error("Encryption type/version not supported.")}}e.decrypt=g;function A(I,H){return JSON.parse(g(I,H)).data}e.decryptSafely=A;function k(I){const H=j(I),N=l.box.keyPair.fromSecretKey(H).publicKey;return n.encodeBase64(N)}e.getEncryptionPublicKey=k;function C(I,H,N="V4"){switch(N){case"V1":return i(I,H);case"V3":return D(I,H);case"V4":default:return P(I,H)}}e.signTypedMessage=C;function F(I,H="V4"){switch(H){case"V1":return s(I);case"V3":return o(I);case"V4":default:return E(I)}}e.recoverTypedMessage=F;function D(I,H){const N=t.sign(H.data,!1),R=r.ecsign(N,I);return r.bufferToHex(p(R.v,R.r,R.s))}e.signTypedData=D;function P(I,H){const N=t.sign(H.data),R=r.ecsign(N,I);return r.bufferToHex(p(R.v,R.r,R.s))}e.signTypedData_v4=P;function o(I){const H=t.sign(I.data,!1),N=x(H,I.sig),R=r.publicToAddress(N);return r.bufferToHex(R)}e.recoverTypedSignature=o;function E(I){const H=t.sign(I.data),N=x(H,I.sig),R=r.publicToAddress(N);return r.bufferToHex(R)}e.recoverTypedSignature_v4=E;function O(I){const H=new Error("Expect argument to be non-empty array");if(typeof I!="object"||!("length"in I)||!I.length)throw H;const N=I.map(function(K){return K.type==="bytes"?r.toBuffer(K.value):K.value}),R=I.map(function(K){return K.type}),z=I.map(function(K){if(!K.name)throw H;return`${K.type} ${K.name}`});return m.soliditySHA3(["bytes32","bytes32"],[m.soliditySHA3(new Array(I.length).fill("string"),z),m.soliditySHA3(R,N)])}function x(I,H){const N=r.toBuffer(H),R=r.fromRpcSig(N);return r.ecrecover(I,R.v,R.r,R.s)}function M(I){const H=r.toBuffer(I.data),N=r.hashPersonalMessage(H);return x(N,I.sig)}function U(I,H){let N=`${I}`;for(;N.length<H;)N=`0${N}`;return N}function j(I){const H=y.from(I,"hex").toString("base64");return n.decodeBase64(H)}},16885:function(L,e,d){var y=d(88924).Buffer;(function(w,S){"use strict";L.exports?L.exports=S():(w.nacl||(w.nacl={}),w.nacl.util=S())})(this,function(){"use strict";var w={};function S(b){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(b))throw new TypeError("invalid encoding")}return w.decodeUTF8=function(b){if(typeof b!="string")throw new TypeError("expected string");var r,m=unescape(encodeURIComponent(b)),l=new Uint8Array(m.length);for(r=0;r<m.length;r++)l[r]=m.charCodeAt(r);return l},w.encodeUTF8=function(b){var r,m=[];for(r=0;r<b.length;r++)m.push(String.fromCharCode(b[r]));return decodeURIComponent(escape(m.join("")))},typeof atob>"u"?typeof y.from<"u"?(w.encodeBase64=function(b){return y.from(b).toString("base64")},w.decodeBase64=function(b){return S(b),new Uint8Array(Array.prototype.slice.call(y.from(b,"base64"),0))}):(w.encodeBase64=function(b){return new y(b).toString("base64")},w.decodeBase64=function(b){return S(b),new Uint8Array(Array.prototype.slice.call(new y(b,"base64"),0))}):(w.encodeBase64=function(b){var r,m=[],l=b.length;for(r=0;r<l;r++)m.push(String.fromCharCode(b[r]));return btoa(m.join(""))},w.decodeBase64=function(b){S(b);var r,m=atob(b),l=new Uint8Array(m.length);for(r=0;r<m.length;r++)l[r]=m.charCodeAt(r);return l}),w})},45327:function(L){for(var e=[],d=0;d<256;++d)e[d]=(d+256).toString(16).substr(1);function y(w,S){var b=S||0,r=e;return[r[w[b++]],r[w[b++]],r[w[b++]],r[w[b++]],"-",r[w[b++]],r[w[b++]],"-",r[w[b++]],r[w[b++]],"-",r[w[b++]],r[w[b++]],"-",r[w[b++]],r[w[b++]],r[w[b++]],r[w[b++]],r[w[b++]],r[w[b++]]].join("")}L.exports=y},85217:function(L){var e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(e){var d=new Uint8Array(16);L.exports=function(){return e(d),d}}else{var y=new Array(16);L.exports=function(){for(var S=0,b;S<16;S++)(S&3)===0&&(b=Math.random()*4294967296),y[S]=b>>>((S&3)<<3)&255;return y}}},71171:function(L,e,d){var y=d(85217),w=d(45327);function S(b,r,m){var l=r&&m||0;typeof b=="string"&&(r=b==="binary"?new Array(16):null,b=null),b=b||{};var n=b.random||(b.rng||y)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r)for(var v=0;v<16;++v)r[l+v]=n[v];return r||w(n)}L.exports=S},38531:function(L){"use strict";L.exports=JSON.parse('{"name":"calaveras","chainId":123,"networkId":123,"defaultHardfork":"berlin","consensus":{"type":"poa","algorithm":"clique","clique":{"period":30,"epoch":30000}},"comment":"The Calaveras testnet chain","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/client-integration-testnets/calaveras.md","genesis":{"hash":"0xeb9233d066c275efcdfed8037f4fc082770176aefdbcb7691c71da412a5670f2","gasLimit":"0x47b760","difficulty":"0x1","nonce":"0x0000000000000000","extraData":"0x00000000000000000000000000000000000000000000000000000000000000005211cea3870c7ba7c6c44b185e62eecdb864cd8c560228ce57d31efbf64c200b2c200aacec78cf17a7148e784fe95a7a750335f8b9572ee28d72e7650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x664c93de37eb4a72953ea42b8c046cdb64c9f0b0bca5505ade8d970d49ebdb8c","timestamp":"0x60b3877f"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xe34c4aff"},{"name":"homestead","block":0,"forkHash":"0xe34c4aff"},{"name":"dao","block":null,"forkHash":"0xe34c4aff"},{"name":"tangerineWhistle","block":0,"forkHash":"0xe34c4aff"},{"name":"spuriousDragon","block":0,"forkHash":"0xe34c4aff"},{"name":"byzantium","block":0,"forkHash":"0xe34c4aff"},{"name":"constantinople","block":0,"forkHash":"0xe34c4aff"},{"name":"petersburg","block":0,"forkHash":"0xe34c4aff"},{"name":"istanbul","block":0,"forkHash":"0xe34c4aff"},{"name":"berlin","block":0,"forkHash":"0xe34c4aff"},{"name":"london","block":500,"forkHash":"0x173783e4"}],"bootstrapNodes":[{"ip":"3.21.156.138","port":30303,"id":"39eb08bbfad87481553c471a63ff2a4b4885fffa4ff50f1cf46744d9ad6e2f764ede146fe4df563fa9ccda1a46b9b1a88fb08135e1bf1d71b320912499da773d","location":"","comment":"Calaveras bootnode 1"},{"ip":"3.9.20.133","port":30303,"id":"9e1096aa59862a6f164994cb5cb16f5124d6c992cdbf4535ff7dea43ea1512afe5448dca9df1b7ab0726129603f1a3336b631e4d7a1a44c94daddd03241587f9","location":"","comment":"Calaveras bootnode 2"}]}')},17687:function(L){"use strict";L.exports=JSON.parse('{"name":"goerli","chainId":5,"networkId":5,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"Cross-client PoA test network","url":"https://github.com/goerli/testnet","genesis":{"hash":"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a","timestamp":"0x5c51a607","gasLimit":10485760,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xa3f5ab08"},{"name":"homestead","block":0,"forkHash":"0xa3f5ab08"},{"name":"dao","block":null,"forkHash":"0xa3f5ab08"},{"name":"tangerineWhistle","block":0,"forkHash":"0xa3f5ab08"},{"name":"spuriousDragon","block":0,"forkHash":"0xa3f5ab08"},{"name":"byzantium","block":0,"forkHash":"0xa3f5ab08"},{"name":"constantinople","block":0,"forkHash":"0xa3f5ab08"},{"name":"petersburg","block":0,"forkHash":"0xa3f5ab08"},{"name":"istanbul","block":1561651,"forkHash":"0xc25efa5c"},{"name":"berlin","block":4460644,"forkHash":"0x757a1c47"},{"name":"london","block":5062605,"forkHash":"0xb8c6299d"}],"bootstrapNodes":[{"ip":"51.141.78.53","port":30303,"id":"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a","location":"","comment":"Upstream bootnode 1"},{"ip":"13.93.54.137","port":30303,"id":"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b","location":"","comment":"Upstream bootnode 2"},{"ip":"94.237.54.114","port":30313,"id":"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291","location":"","comment":"Upstream bootnode 3"},{"ip":"18.218.250.66","port":30313,"id":"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949","location":"","comment":"Upstream bootnode 4"},{"ip":"3.11.147.67","port":30303,"id":"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91","location":"","comment":"Ethereum Foundation bootnode"},{"ip":"51.15.116.226","port":30303,"id":"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":30303,"id":"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":40303,"id":"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd","location":"","comment":"Goerli Initiative bootnode"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}')},37098:function(L){"use strict";L.exports=JSON.parse('{"name":"kovan","chainId":42,"networkId":42,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"aura","aura":{}},"comment":"Parity PoA test network","url":"https://kovan-testnet.github.io/website/","genesis":{"hash":"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9","timestamp":null,"gasLimit":6000000,"difficulty":131072,"nonce":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","extraData":"0x","stateRoot":"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x010ffe56"},{"name":"homestead","block":0,"forkHash":"0x010ffe56"},{"name":"dao","block":null,"forkHash":"0x010ffe56"},{"name":"tangerineWhistle","block":0,"forkHash":"0x010ffe56"},{"name":"spuriousDragon","block":0,"forkHash":"0x010ffe56"},{"name":"byzantium","block":5067000,"forkHash":"0x7f83c620"},{"name":"constantinople","block":9200000,"forkHash":"0xa94e3dc4"},{"name":"petersburg","block":10255201,"forkHash":"0x186874aa"},{"name":"istanbul","block":14111141,"forkHash":"0x7f6599a6"},{"name":"berlin","block":null,"forkHash":null},{"name":"london","block":null,"forkHash":null}],"bootstrapNodes":[{"ip":"116.203.116.241","port":30303,"id":"16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45","location":"","comment":"1"},{"ip":"3.217.96.11","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"2"},{"ip":"108.61.170.124","port":30303,"id":"740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c","location":"","comment":"3"},{"ip":"157.230.31.163","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"4"}]}')},87295:function(L){"use strict";L.exports=JSON.parse('{"name":"mainnet","chainId":1,"networkId":1,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"The Ethereum main chain","url":"https://ethstats.net/","genesis":{"hash":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","timestamp":null,"gasLimit":5000,"difficulty":17179869184,"nonce":"0x0000000000000042","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","stateRoot":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xfc64ec04"},{"name":"homestead","block":1150000,"forkHash":"0x97c2c34c"},{"name":"dao","block":1920000,"forkHash":"0x91d1f948"},{"name":"tangerineWhistle","block":2463000,"forkHash":"0x7a64da13"},{"name":"spuriousDragon","block":2675000,"forkHash":"0x3edd5b10"},{"name":"byzantium","block":4370000,"forkHash":"0xa00bc324"},{"name":"constantinople","block":7280000,"forkHash":"0x668db0af"},{"name":"petersburg","block":7280000,"forkHash":"0x668db0af"},{"name":"istanbul","block":9069000,"forkHash":"0x879d6e30"},{"name":"muirGlacier","block":9200000,"forkHash":"0xe029e991"},{"name":"berlin","block":12244000,"forkHash":"0x0eb440f6"},{"name":"london","block":12965000,"forkHash":"0xb715077d"}],"bootstrapNodes":[{"ip":"18.138.108.67","port":30303,"id":"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666","location":"ap-southeast-1-001","comment":"bootnode-aws-ap-southeast-1-001"},{"ip":"3.209.45.79","port":30303,"id":"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de","location":"us-east-1-001","comment":"bootnode-aws-us-east-1-001"},{"ip":"34.255.23.113","port":30303,"id":"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758","location":"eu-west-1-001","comment":"bootnode-aws-eu-west-1-001"},{"ip":"35.158.244.151","port":30303,"id":"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8","location":"eu-central-1-001","comment":"bootnode-aws-eu-central-1-001"},{"ip":"52.187.207.27","port":30303,"id":"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a","location":"australiaeast-001","comment":"bootnode-azure-australiaeast-001"},{"ip":"191.234.162.198","port":30303,"id":"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1","location":"brazilsouth-001","comment":"bootnode-azure-brazilsouth-001"},{"ip":"52.231.165.108","port":30303,"id":"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8","location":"koreasouth-001","comment":"bootnode-azure-koreasouth-001"},{"ip":"104.42.217.25","port":30303,"id":"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f","location":"westus-001","comment":"bootnode-azure-westus-001"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}')},40439:function(L){"use strict";L.exports=JSON.parse('{"name":"rinkeby","chainId":4,"networkId":4,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"PoA test network","url":"https://www.rinkeby.io","genesis":{"hash":"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177","timestamp":"0x58ee40ba","gasLimit":4700000,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x3b8e0691"},{"name":"homestead","block":1,"forkHash":"0x60949295"},{"name":"dao","block":null,"forkHash":null},{"name":"tangerineWhistle","block":2,"forkHash":"0x8bde40dd"},{"name":"spuriousDragon","block":3,"forkHash":"0xcb3a64bb"},{"name":"byzantium","block":1035301,"forkHash":"0x8d748b57"},{"name":"constantinople","block":3660663,"forkHash":"0xe49cab14"},{"name":"petersburg","block":4321234,"forkHash":"0xafec6b27"},{"name":"istanbul","block":5435345,"forkHash":"0xcbdb8838"},{"name":"berlin","block":8290928,"forkHash":"0x6910c8bd"},{"name":"london","block":8897988,"forkHash":"0x8e29f2f3"}],"bootstrapNodes":[{"ip":"52.169.42.101","port":30303,"id":"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf","location":"","comment":"IE"},{"ip":"52.3.158.184","port":30303,"id":"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8","location":"","comment":"INFURA"},{"ip":"159.89.28.211","port":30303,"id":"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6","location":"","comment":"AKASHA"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}')},31227:function(L){"use strict";L.exports=JSON.parse('{"name":"ropsten","chainId":3,"networkId":3,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"PoW test network","url":"https://github.com/ethereum/ropsten","genesis":{"hash":"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d","timestamp":null,"gasLimit":16777216,"difficulty":1048576,"nonce":"0x0000000000000042","extraData":"0x3535353535353535353535353535353535353535353535353535353535353535","stateRoot":"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x30c7ddbc"},{"name":"homestead","block":0,"forkHash":"0x30c7ddbc"},{"name":"dao","block":null,"forkHash":null},{"name":"tangerineWhistle","block":0,"forkHash":"0x30c7ddbc"},{"name":"spuriousDragon","block":10,"forkHash":"0x63760190"},{"name":"byzantium","block":1700000,"forkHash":"0x3ea159c7"},{"name":"constantinople","block":4230000,"forkHash":"0x97b544f3"},{"name":"petersburg","block":4939394,"forkHash":"0xd6e2149b"},{"name":"istanbul","block":6485846,"forkHash":"0x4bc66396"},{"name":"muirGlacier","block":7117117,"forkHash":"0x6727ef90"},{"name":"berlin","block":9812189,"forkHash":"0xa157d377"},{"name":"london","block":10499401,"forkHash":"0x7119b6b3"}],"bootstrapNodes":[{"ip":"52.176.7.10","port":30303,"id":"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606","location":"","comment":"US-Azure geth"},{"ip":"52.176.100.77","port":30303,"id":"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c","location":"","comment":"US-Azure parity"},{"ip":"52.232.243.152","port":30303,"id":"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f","location":"","comment":"Parity"},{"ip":"192.81.208.223","port":30303,"id":"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09","location":"","comment":"@gpip"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}')},77523:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-1559","number":1559,"comment":"Fee market change for ETH 1.0 chain","url":"https://eips.ethereum.org/EIPS/eip-1559","status":"Review","minimumHardfork":"berlin","requiredEIPs":[2930],"gasConfig":{"baseFeeMaxChangeDenominator":{"v":8,"d":"Maximum base fee change denominator"},"elasticityMultiplier":{"v":2,"d":"Maximum block gas target elasticity"},"initialBaseFee":{"v":1000000000,"d":"Initial base fee on first EIP1559 block"}},"gasPrices":{},"vm":{},"pow":{}}')},83339:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-2315","number":2315,"comment":"Simple subroutines for the EVM","url":"https://eips.ethereum.org/EIPS/eip-2315","status":"Draft","minimumHardfork":"istanbul","gasConfig":{},"gasPrices":{"beginsub":{"v":2,"d":"Base fee of the BEGINSUB opcode"},"returnsub":{"v":5,"d":"Base fee of the RETURNSUB opcode"},"jumpsub":{"v":10,"d":"Base fee of the JUMPSUB opcode"}},"vm":{},"pow":{}}')},26769:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-2537","number":2537,"comment":"BLS12-381 precompiles","url":"https://eips.ethereum.org/EIPS/eip-2537","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"Bls12381G1AddGas":{"v":600,"d":"Gas cost of a single BLS12-381 G1 addition precompile-call"},"Bls12381G1MulGas":{"v":12000,"d":"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},"Bls12381G2AddGas":{"v":4500,"d":"Gas cost of a single BLS12-381 G2 addition precompile-call"},"Bls12381G2MulGas":{"v":55000,"d":"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},"Bls12381PairingBaseGas":{"v":115000,"d":"Base gas cost of BLS12-381 pairing check"},"Bls12381PairingPerPairGas":{"v":23000,"d":"Per-pair gas cost of BLS12-381 pairing check"},"Bls12381MapG1Gas":{"v":5500,"d":"Gas cost of BLS12-381 map field element to G1"},"Bls12381MapG2Gas":{"v":110000,"d":"Gas cost of BLS12-381 map field element to G2"},"Bls12381MultiExpGasDiscount":{"v":[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],"d":"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},"vm":{},"pow":{}}')},17897:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-2565","number":2565,"comment":"ModExp gas cost","url":"https://eips.ethereum.org/EIPS/eip-2565","status":"Last call","minimumHardfork":"byzantium","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":3,"d":"Gquaddivisor from modexp precompile for gas calculation"}},"vm":{},"pow":{}}')},62170:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-2718","comment":"Typed Transaction Envelope","url":"https://eips.ethereum.org/EIPS/eip-2718","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},88436:function(L){"use strict";L.exports=JSON.parse(`{"name":"EIP-2929","comment":"Gas cost increases for state access opcodes","url":"https://eips.ethereum.org/EIPS/eip-2929","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"coldsload":{"v":2100,"d":"Gas cost of the first read of storage from a given location (per transaction)"},"coldaccountaccess":{"v":2600,"d":"Gas cost of the first read of a given address (per transaction)"},"warmstorageread":{"v":100,"d":"Gas cost of reading storage locations which have already loaded 'cold'"},"sstoreCleanGasEIP2200":{"v":2900,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreNoopGasEIP2200":{"v":100,"d":"Once per SSTORE operation if the value doesn't change"},"sstoreDirtyGasEIP2200":{"v":100,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitRefundEIP2200":{"v":19900,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanRefundEIP2200":{"v":4900,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"call":{"v":0,"d":"Base fee of the CALL opcode"},"callcode":{"v":0,"d":"Base fee of the CALLCODE opcode"},"delegatecall":{"v":0,"d":"Base fee of the DELEGATECALL opcode"},"staticcall":{"v":0,"d":"Base fee of the STATICCALL opcode"},"balance":{"v":0,"d":"Base fee of the BALANCE opcode"},"extcodesize":{"v":0,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":0,"d":"Base fee of the EXTCODECOPY opcode"},"extcodehash":{"v":0,"d":"Base fee of the EXTCODEHASH opcode"},"sload":{"v":0,"d":"Base fee of the SLOAD opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"}},"vm":{},"pow":{}}`)},96213:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-2930","comment":"Optional access lists","url":"https://eips.ethereum.org/EIPS/eip-2930","status":"Draft","minimumHardfork":"istanbul","requiredEIPs":[2718,2929],"gasConfig":{},"gasPrices":{"accessListStorageKeyCost":{"v":1900,"d":"Gas cost per storage key in an Access List transaction"},"accessListAddressCost":{"v":2400,"d":"Gas cost per storage key in an Access List transaction"}},"vm":{},"pow":{}}')},25491:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-3198","number":3198,"comment":"BASEFEE opcode","url":"https://eips.ethereum.org/EIPS/eip-3198","status":"Review","minimumHardfork":"london","gasConfig":{},"gasPrices":{"basefee":{"v":2,"d":"Gas cost of the BASEFEE opcode"}},"vm":{},"pow":{}}')},20070:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-3529","comment":"Reduction in refunds","url":"https://eips.ethereum.org/EIPS/eip-3529","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[2929],"gasConfig":{"maxRefundQuotient":{"v":5,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"selfdestructRefund":{"v":0,"d":"Refunded following a selfdestruct operation"},"sstoreClearRefundEIP2200":{"v":4800,"d":"Once per SSTORE operation for clearing an originally existing storage slot"}},"vm":{},"pow":{}}')},21871:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-3541","comment":"Reject new contracts starting with the 0xEF byte","url":"https://eips.ethereum.org/EIPS/eip-3541","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},47225:function(L){"use strict";L.exports=JSON.parse('{"name":"EIP-3554","comment":"Reduction in refunds","url":"Difficulty Bomb Delay to December 1st 2021","status":"Draft","minimumHardfork":"muirGlacier","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9500000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},20015:function(L){"use strict";L.exports=JSON.parse('{"name":"berlin","comment":"HF targeted for July 2020 following the Muir Glacier HF","url":"https://eips.ethereum.org/EIPS/eip-2070","status":"Draft","eips":[2565,2929,2718,2930]}')},26985:function(L){"use strict";L.exports=JSON.parse('{"name":"byzantium","comment":"Hardfork with new precompiles, instructions and other protocol changes","url":"https://eips.ethereum.org/EIPS/eip-609","status":"Final","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":20,"d":"Gquaddivisor from modexp precompile for gas calculation"},"ecAdd":{"v":500,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":40000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":100000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":80000,"d":"Gas costs regarding curve pairing precompile input length"},"revert":{"v":0,"d":"Base fee of the REVERT opcode"},"staticcall":{"v":700,"d":"Base fee of the STATICCALL opcode"},"returndatasize":{"v":2,"d":"Base fee of the RETURNDATASIZE opcode"},"returndatacopy":{"v":3,"d":"Base fee of the RETURNDATACOPY opcode"}},"vm":{},"pow":{"minerReward":{"v":"3000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":3000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},60114:function(L){"use strict";L.exports=JSON.parse(`{"name":"chainstart","comment":"Start of the Ethereum main chain","url":"","status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"},"maxRefundQuotient":{"v":2,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Base fee of the EXP opcode"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Base fee of the SHA3 opcode"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation's data"},"sload":{"v":50,"d":"Base fee of the SLOAD opcode"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Base fee of the JUMPDEST opcode"},"log":{"v":375,"d":"Base fee of the LOG opcode"},"logData":{"v":8,"d":"Per byte in a LOG* operation's data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Base fee of the CREATE opcode"},"call":{"v":40,"d":"Base fee of the CALL opcode"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn't exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""},"stop":{"v":0,"d":"Base fee of the STOP opcode"},"add":{"v":3,"d":"Base fee of the ADD opcode"},"mul":{"v":5,"d":"Base fee of the MUL opcode"},"sub":{"v":3,"d":"Base fee of the SUB opcode"},"div":{"v":5,"d":"Base fee of the DIV opcode"},"sdiv":{"v":5,"d":"Base fee of the SDIV opcode"},"mod":{"v":5,"d":"Base fee of the MOD opcode"},"smod":{"v":5,"d":"Base fee of the SMOD opcode"},"addmod":{"v":8,"d":"Base fee of the ADDMOD opcode"},"mulmod":{"v":8,"d":"Base fee of the MULMOD opcode"},"signextend":{"v":5,"d":"Base fee of the SIGNEXTEND opcode"},"lt":{"v":3,"d":"Base fee of the LT opcode"},"gt":{"v":3,"d":"Base fee of the GT opcode"},"slt":{"v":3,"d":"Base fee of the SLT opcode"},"sgt":{"v":3,"d":"Base fee of the SGT opcode"},"eq":{"v":3,"d":"Base fee of the EQ opcode"},"iszero":{"v":3,"d":"Base fee of the ISZERO opcode"},"and":{"v":3,"d":"Base fee of the AND opcode"},"or":{"v":3,"d":"Base fee of the OR opcode"},"xor":{"v":3,"d":"Base fee of the XOR opcode"},"not":{"v":3,"d":"Base fee of the NOT opcode"},"byte":{"v":3,"d":"Base fee of the BYTE opcode"},"address":{"v":2,"d":"Base fee of the ADDRESS opcode"},"balance":{"v":20,"d":"Base fee of the BALANCE opcode"},"origin":{"v":2,"d":"Base fee of the ORIGIN opcode"},"caller":{"v":2,"d":"Base fee of the CALLER opcode"},"callvalue":{"v":2,"d":"Base fee of the CALLVALUE opcode"},"calldataload":{"v":3,"d":"Base fee of the CALLDATALOAD opcode"},"calldatasize":{"v":2,"d":"Base fee of the CALLDATASIZE opcode"},"calldatacopy":{"v":3,"d":"Base fee of the CALLDATACOPY opcode"},"codesize":{"v":2,"d":"Base fee of the CODESIZE opcode"},"codecopy":{"v":3,"d":"Base fee of the CODECOPY opcode"},"gasprice":{"v":2,"d":"Base fee of the GASPRICE opcode"},"extcodesize":{"v":20,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":20,"d":"Base fee of the EXTCODECOPY opcode"},"blockhash":{"v":20,"d":"Base fee of the BLOCKHASH opcode"},"coinbase":{"v":2,"d":"Base fee of the COINBASE opcode"},"timestamp":{"v":2,"d":"Base fee of the TIMESTAMP opcode"},"number":{"v":2,"d":"Base fee of the NUMBER opcode"},"difficulty":{"v":2,"d":"Base fee of the DIFFICULTY opcode"},"gaslimit":{"v":2,"d":"Base fee of the GASLIMIT opcode"},"pop":{"v":2,"d":"Base fee of the POP opcode"},"mload":{"v":3,"d":"Base fee of the MLOAD opcode"},"mstore":{"v":3,"d":"Base fee of the MSTORE opcode"},"mstore8":{"v":3,"d":"Base fee of the MSTORE8 opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"},"jump":{"v":8,"d":"Base fee of the JUMP opcode"},"jumpi":{"v":10,"d":"Base fee of the JUMPI opcode"},"pc":{"v":2,"d":"Base fee of the PC opcode"},"msize":{"v":2,"d":"Base fee of the MSIZE opcode"},"gas":{"v":2,"d":"Base fee of the GAS opcode"},"push":{"v":3,"d":"Base fee of the PUSH opcode"},"dup":{"v":3,"d":"Base fee of the DUP opcode"},"swap":{"v":3,"d":"Base fee of the SWAP opcode"},"callcode":{"v":40,"d":"Base fee of the CALLCODE opcode"},"return":{"v":0,"d":"Base fee of the RETURN opcode"},"invalid":{"v":0,"d":"Base fee of the INVALID opcode"},"selfdestruct":{"v":0,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":0,"d":"the amount of blocks to delay the difficulty bomb with"}}}`)},35993:function(L){"use strict";L.exports=JSON.parse(`{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn't change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"},"shl":{"v":3,"d":"Base fee of the SHL opcode"},"shr":{"v":3,"d":"Base fee of the SHR opcode"},"sar":{"v":3,"d":"Base fee of the SAR opcode"},"extcodehash":{"v":400,"d":"Base fee of the EXTCODEHASH opcode"},"create2":{"v":32000,"d":"Base fee of the CREATE2 opcode"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"},"difficultyBombDelay":{"v":5000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}`)},7197:function(L){"use strict";L.exports=JSON.parse('{"name":"dao","comment":"DAO rescue hardfork","url":"https://eips.ethereum.org/EIPS/eip-779","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},62800:function(L){"use strict";L.exports=JSON.parse('{"name":"homestead","comment":"Homestead hardfork with protocol and network changes","url":"https://eips.ethereum.org/EIPS/eip-606","status":"Final","gasConfig":{},"gasPrices":{"delegatecall":{"v":40,"d":"Base fee of the DELEGATECALL opcode"}},"vm":{},"pow":{}}')},83166:function(L){"use strict";L.exports=JSON.parse(`{"name":"istanbul","comment":"HF targeted for December 2019 following the Constantinople/Petersburg HF","url":"https://eips.ethereum.org/EIPS/eip-1679","status":"Draft","gasConfig":{},"gasPrices":{"blake2Round":{"v":1,"d":"Gas cost per round for the Blake2 F precompile"},"ecAdd":{"v":150,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":6000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":45000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":34000,"d":"Gas costs regarding curve pairing precompile input length"},"txDataNonZero":{"v":16,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"sstoreSentryGasEIP2200":{"v":2300,"d":"Minimum gas required to be present for an SSTORE call, not consumed"},"sstoreNoopGasEIP2200":{"v":800,"d":"Once per SSTORE operation if the value doesn't change"},"sstoreDirtyGasEIP2200":{"v":800,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitGasEIP2200":{"v":20000,"d":"Once per SSTORE operation from clean zero to non-zero"},"sstoreInitRefundEIP2200":{"v":19200,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanGasEIP2200":{"v":5000,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreCleanRefundEIP2200":{"v":4200,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"sstoreClearRefundEIP2200":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"balance":{"v":700,"d":"Base fee of the BALANCE opcode"},"extcodehash":{"v":700,"d":"Base fee of the EXTCODEHASH opcode"},"chainid":{"v":2,"d":"Base fee of the CHAINID opcode"},"selfbalance":{"v":5,"d":"Base fee of the SELFBALANCE opcode"},"sload":{"v":800,"d":"Base fee of the SLOAD opcode"}},"vm":{},"pow":{}}`)},61250:function(L){"use strict";L.exports=JSON.parse('{"name":"london","comment":"HF targeted for July 2021 following the Berlin fork","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md","status":"Draft","eips":[1559,3198,3529,3541]}')},42946:function(L){"use strict";L.exports=JSON.parse('{"name":"muirGlacier","comment":"HF to delay the difficulty bomb","url":"https://eips.ethereum.org/EIPS/eip-2384","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},4064:function(L){"use strict";L.exports=JSON.parse('{"name":"petersburg","comment":"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople","url":"https://eips.ethereum.org/EIPS/eip-1716","status":"Draft","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreInitGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreCleanGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreDirtyGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreClearRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetClearRefund":{"v":null,"d":"Removed along EIP-1283"}},"vm":{},"pow":{}}')},90716:function(L){"use strict";L.exports=JSON.parse('{"name":"spuriousDragon","comment":"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit","url":"https://eips.ethereum.org/EIPS/eip-607","status":"Final","gasConfig":{},"gasPrices":{"expByte":{"v":50,"d":"Times ceil(log256(exponent)) for the EXP instruction"}},"vm":{"maxCodeSize":{"v":24576,"d":"Maximum length of contract code"}},"pow":{}}')},22302:function(L){"use strict";L.exports=JSON.parse('{"name":"tangerineWhistle","comment":"Hardfork with gas cost changes for IO-heavy operations","url":"https://eips.ethereum.org/EIPS/eip-608","status":"Final","gasConfig":{},"gasPrices":{"sload":{"v":200,"d":"Once per SLOAD operation"},"call":{"v":700,"d":"Once per CALL operation & message call transaction"},"extcodesize":{"v":700,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":700,"d":"Base fee of the EXTCODECOPY opcode"},"balance":{"v":400,"d":"Base fee of the BALANCE opcode"},"delegatecall":{"v":700,"d":"Base fee of the DELEGATECALL opcode"},"callcode":{"v":700,"d":"Base fee of the CALLCODE opcode"},"selfdestruct":{"v":5000,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{},"pow":{}}')}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[4650],{84650:function(F,K,D){D.d(K,{P:function(){return J}});var L=D(77591),Q=D.n(L),_=D(94935),p=D(20918),y=D(62177),I=D(76714),N=Object.defineProperty,R=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,P=(x,t,n)=>t in x?N(x,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):x[t]=n,B=(x,t)=>{for(var n in t||(t={}))U.call(t,n)&&P(x,n,t[n]);if(R)for(var n of R(t))$.call(t,n)&&P(x,n,t[n]);return x},d=(x,t,n)=>new Promise((s,o)=>{var c=u=>{try{m(n.next(u))}catch(T){o(T)}},r=u=>{try{m(n.throw(u))}catch(T){o(T)}},m=u=>u.done?s(u.value):Promise.resolve(u.value).then(c,r);m((n=n.apply(x,t)).next())});const j=1e4,W=1e3,M=3600*24;class J{constructor(t,n,s,o){this.allTokens=[],this.allTokensMap={},this.builtinTokens={},this.customTokens={},this.enabledTokenIds=[],this.enabledTokens=[];const{builtinTokens:c,currencyInfo:r}=t,{callbacks:m,customTokens:u,enabledTokenIds:T,log:C,walletLocalDisklet:v}=o;this.tools=n,this.log=C,this.warn=(O,S)=>this.log.warn(O+(0,I.HY)(S)),this.error=(O,S)=>this.log.error(O+(0,I.HY)(S)),this.engineOn=!1,this.addressesChecked=!1,this.tokenCheckBalanceStatus={},this.tokenCheckTransactionsStatus={},this.walletLocalDataDirty=!1,this.transactionsChangedArray=[],this.transactionList={},this.transactionListDirty=!1,this.transactionsLoaded=!1,this.txIdMap={},this.txIdList={},this.walletInfo=s,this.walletId=s.id,this.currencyInfo=r,this.timers={},this.otherData=void 0,this.minimumAddressBalance="0";const{currencyCode:b}=r;this.transactionList[b]=[],this.txIdMap[b]={},this.txIdList[b]=[],this.builtinTokens=c,this.changeCustomTokensSync(u),this.changeEnabledTokenIdsSync(T),o.userSettings!=null?this.currentSettings=o.userSettings:this.currentSettings=this.currencyInfo.defaultSettings,this.currencyEngineCallbacks=m,this.walletLocalDisklet=v,typeof this.walletInfo.keys.publicKey!="string"&&(this.walletInfo.keys.publicKey=s.keys.publicKey),this.walletLocalData={blockHeight:0,lastAddressQueryHeight:0,lastTransactionQueryHeight:{},lastTransactionDate:{},publicKey:"",totalBalances:{},lastCheckedTxsDropped:0,numUnconfirmedSpendTxs:0,numTransactions:{},unactivatedTokenIds:[],otherData:void 0},this.log(`Created Wallet Type ${this.walletInfo.type} for Currency Plugin ${this.currencyInfo.pluginId}`)}isSpendTx(t){if(t.nativeAmount!==""){if(t.nativeAmount.slice(0,1)==="-")return!0;if((0,L.gt)(t.nativeAmount,"0"))return!1}let n=!0;if(t.ourReceiveAddresses.length>0)for(const s of t.ourReceiveAddresses)s===this.walletLocalData.publicKey&&(n=!1);return n}setOtherData(t){throw new Error(`Unimplemented setOtherData for ${this.walletInfo.type}`)}loadTransactions(){return d(this,null,function*(){if(this.transactionsLoaded){this.log("Transactions already loaded");return}this.transactionsLoaded=!0;const t=this.walletLocalDisklet;let n;try{const r=yield t.getText(y.TD);n=JSON.parse(r)}catch{this.log("Could not load txidList file. Failure is ok on new device"),yield t.setText(y.TD,JSON.stringify(this.txIdList))}let s;try{const r=yield t.getText(y.DZ);s=JSON.parse(r)}catch{this.log("Could not load txidMap file. Failure is ok on new device"),yield t.setText(y.DZ,JSON.stringify(this.txIdMap))}let o;try{const r=yield t.getText(y.tC);o=JSON.parse(r)}catch(r){r.code==="ENOENT"?(this.log("Could not load transactionList file. Failure is ok on new device"),yield t.setText(y.tC,JSON.stringify(this.transactionList))):this.log.crash(r,this.walletLocalData)}let c=!0;for(const r of Object.keys(this.transactionList))if(this.transactionList[r]!=null&&this.transactionList[r].length>0){c=!1;break}if(c)this.transactionList=o!=null?o:this.transactionList,this.txIdList=n!=null?n:this.txIdList,this.txIdMap=s!=null?s:this.txIdMap;else if(o!=null)for(const r of Object.keys(o))for(const m of o[r])this.addTransaction(r,m);for(const r in this.transactionList)this.walletLocalData.numTransactions[r]=this.transactionList[r].length})}loadEngine(){return d(this,null,function*(){var t;const{walletInfo:n}=this,{currencyCode:s}=this.currencyInfo;this.walletInfo.keys.publicKey==null&&(this.walletInfo.keys.publicKey=n.keys.publicKey);const o=this.walletLocalDisklet;try{const c=yield o.getText(y.Pe);this.walletLocalData=(0,y.O2)(JSON.parse(c)),this.walletLocalData.publicKey=this.walletInfo.keys.publicKey}catch{try{this.log("No walletLocalData setup yet: Failure is ok"),this.walletLocalData=(0,y.O2)({}),this.walletLocalData.publicKey=this.walletInfo.keys.publicKey,yield o.setText(y.Pe,JSON.stringify(this.walletLocalData))}catch(r){throw this.error("Error writing to localDataStore. Engine not started: ",r),r}}this.setOtherData((t=this.walletLocalData.otherData)!=null?t:{}),this.walletLocalDataDirty=!(0,I.dQ)(this.otherData,this.walletLocalData.otherData),this.tokenCheckBalanceStatus[s]=0,this.tokenCheckTransactionsStatus[s]=0,this.doInitialBalanceCallback(),this.doInitialUnactivatedTokenIdsCallback()})}findTransaction(t,n){if(this.txIdMap[t]!=null){const s=this.txIdMap[t][n];if(typeof s=="number")return s}return-1}sortTxByDate(t,n){return n.date-t.date}addTransaction(t,n,s){this.log("executing addTransaction: ",n.txid),n.otherParams==null&&(n.otherParams={}),n.blockHeight<1&&(n.otherParams.lastSeenTime=s!=null?s:Math.round(Date.now()/1e3));const o=(0,I.f0)(n.txid),c=this.findTransaction(t,o);let r=!1;if(c===-1){if(this.isSpendTx(n)&&n.blockHeight===0&&(this.walletLocalData.numUnconfirmedSpendTxs++,this.walletLocalDataDirty=!0),r=!0,typeof this.transactionList[t]>"u")this.transactionList[t]=[];else if(this.transactionList[t].length>=W)return;this.transactionList[t].push(n),this.walletLocalData.numTransactions[t]=this.transactionList[t].length,this.walletLocalDataDirty=!0,this.transactionListDirty=!0,this.transactionsChangedArray.push(n),this.warn(`addTransaction new tx: ${n.txid}`)}else{const u=this.transactionList[t][c],{otherParams:T={}}=u,{otherParams:C={}}=n;(u.blockHeight<n.blockHeight||u.blockHeight===0&&n.blockHeight<0||u.blockHeight===n.blockHeight&&(u.networkFee!==n.networkFee||u.nativeAmount!==n.nativeAmount||T.lastSeenTime!==C.lastSeenTime||u.date!==n.date))&&(this.isSpendTx(n)&&n.blockHeight!==0&&u.blockHeight===0&&this.walletLocalData.numUnconfirmedSpendTxs--,u.date!==n.date&&(r=!0),this.warn(`addTransaction: update ${n.txid} height:${n.blockHeight}`),this.walletLocalDataDirty=!0,this.updateTransaction(t,n,c))}r&&this.sortTransactions(t)}sortTransactions(t){this.transactionList[t].sort(this.sortTxByDate);const n=[];let s=0;for(const o of this.transactionList[t])this.txIdMap[t]==null&&(this.txIdMap[t]={}),this.txIdMap[t][(0,I.f0)(o.txid)]=s,n.push((0,I.f0)(o.txid)),s++;this.txIdList[t]=n}checkDroppedTransactionsThrottled(){const t=Date.now()/1e3;t-this.walletLocalData.lastCheckedTxsDropped>M&&(this.checkDroppedTransactions(t),this.walletLocalData.lastCheckedTxsDropped=t,this.walletLocalDataDirty=!0,this.transactionsChangedArray.length>0&&(this.currencyEngineCallbacks.onTransactionsChanged(this.transactionsChangedArray),this.transactionsChangedArray=[]))}checkDroppedTransactions(t){let n=0;for(const s in this.transactionList)for(let o=0;o<this.transactionList[s].length;o++){const c=this.transactionList[s][o];if(c.blockHeight===0){const{otherParams:r={}}=c,m=r.lastSeenTime;t-m>M?(c.blockHeight=-1,c.nativeAmount="0",this.transactionsChangedArray.push(c)):this.isSpendTx(c)&&n++}}this.walletLocalData.numUnconfirmedSpendTxs=n,this.walletLocalDataDirty=!0}updateBalance(t,n){const s=this.walletLocalData.totalBalances[t];this.walletLocalData.totalBalances[t]==null&&(this.walletLocalData.totalBalances[t]="0"),(s==null||!(0,L.eq)(n,s))&&(this.walletLocalData.totalBalances[t]=n,this.walletLocalDataDirty=!0,this.warn(`${t}: token Address balance: ${n}`),this.currencyEngineCallbacks.onBalanceChanged(t,n)),this.tokenCheckBalanceStatus[t]=1,this.updateOnAddressesChecked()}updateTransaction(t,n,s){this.transactionList[t][s]=n,this.transactionListDirty=!0,this.transactionsChangedArray.push(n),this.warn(`updateTransaction: ${n.txid}`)}saveWalletLoop(){return d(this,null,function*(){const t=this.walletLocalDisklet,n=[];if(this.transactionListDirty){yield this.loadTransactions(),this.log("transactionListDirty. Saving...");let s=JSON.stringify(this.transactionList);n.push(t.setText(y.tC,s).catch(o=>{this.error("Error saving transactionList ",o)})),s=JSON.stringify(this.txIdList),n.push(t.setText(y.TD,s).catch(o=>{this.error("Error saving txIdList ",o)})),s=JSON.stringify(this.txIdMap),n.push(t.setText(y.DZ,s).catch(o=>{this.error("Error saving txIdMap ",o)})),yield Promise.all(n),this.transactionListDirty=!1}if(this.walletLocalDataDirty){this.log("walletLocalDataDirty. Saving..."),this.walletLocalData.otherData=this.otherData;const s=JSON.stringify(this.walletLocalData);yield t.setText(y.Pe,s).then(()=>{this.walletLocalDataDirty=!1}).catch(o=>{this.error("Error saving walletLocalData ",o)})}})}doInitialBalanceCallback(){var t;for(const n of this.enabledTokens)try{this.currencyEngineCallbacks.onBalanceChanged(n,(t=this.walletLocalData.totalBalances[n])!=null?t:"0")}catch(s){this.error(`doInitialBalanceCallback Error for currencyCode ${n}`,s)}}doInitialUnactivatedTokenIdsCallback(){try{this.walletLocalData.unactivatedTokenIds!=null&&this.walletLocalData.unactivatedTokenIds.length>0&&this.currencyEngineCallbacks.onUnactivatedTokenIdsChanged(this.walletLocalData.unactivatedTokenIds)}catch(t){this.error("doInitialUnactivatedTokenIdsCallback Error",t)}}addToLoop(t,n){return d(this,null,function*(){try{yield this[t]()}catch(s){this.error(`Error in Loop: ${t} `,s)}return this.engineOn&&(this.timers[t]=setTimeout(()=>{this.engineOn&&this.addToLoop(t,n).catch(s=>this.log(s.message))},n)),!0})}getTokenInfo(t){return this.allTokens.find(n=>n.currencyCode===t)}updateOnAddressesChecked(){var t,n;if(this.addressesChecked)return;const s=this.enabledTokens,o=1/s.length;let c=0,r=0;for(const m of s){const u=(t=this.tokenCheckBalanceStatus[m])!=null?t:0,T=(n=this.tokenCheckTransactionsStatus[m])!=null?n:0;c+=(u+T)/2*o,u===1&&T===1&&r++}r===s.length&&(c=1,this.addressesChecked=!0),this.log(`${this.walletId} syncRatio of: ${c}`),this.currencyEngineCallbacks.onAddressesChecked(c)}clearBlockchainCache(){return d(this,null,function*(){this.walletLocalData=(0,y.O2)({publicKey:this.walletLocalData.publicKey}),this.walletLocalDataDirty=!0,this.addressesChecked=!1,this.tokenCheckBalanceStatus={},this.tokenCheckTransactionsStatus={},this.transactionList={},this.txIdList={},this.txIdMap={},this.transactionListDirty=!0,this.setOtherData({}),yield this.saveWalletLoop()})}startEngine(){return d(this,null,function*(){this.addToLoop("saveWalletLoop",j).catch(()=>{})})}killEngine(){return d(this,null,function*(){this.engineOn=!1;for(const t in this.timers)clearTimeout(this.timers[t]);this.timers={}})}changeUserSettings(t){return d(this,null,function*(){this.currentSettings=t})}getBlockHeight(){return this.walletLocalData.blockHeight}changeCustomTokensSync(t){this.customTokens={};for(const n of Object.keys(t)){const s=t[n];try{(0,p.Rp)(s)}catch{this.log.warn(`Dropping custom token "${s.currencyCode}" / ${n}`);continue}this.customTokens[n]=s}this.allTokensMap=B(B({},this.customTokens),this.builtinTokens),this.allTokens=(0,p.ZS)(this.allTokensMap)}changeCustomTokens(t){return d(this,null,function*(){this.changeCustomTokensSync(t)})}changeEnabledTokenIdsSync(t){const{currencyCode:n}=this.currencyInfo,s=new Set,o=new Set;for(const c of t){const r=this.allTokensMap[c];r!=null&&(s.add(r.currencyCode),o.add(c))}this.enabledTokens=[...s,n],this.enabledTokenIds=[...o]}changeEnabledTokenIds(t){return d(this,null,function*(){this.changeEnabledTokenIdsSync(t)})}getBalance(t){const{currencyCode:n=this.currencyInfo.currencyCode}=t,s=this.walletLocalData.totalBalances[n];return s==null?"0":s}getNumTransactions(t){const{currencyCode:n=this.currencyInfo.currencyCode}=t;return this.walletLocalData.numTransactions[n]==null?0:this.walletLocalData.numTransactions[n]}getTransactions(t){return d(this,null,function*(){const{currencyCode:n=this.currencyInfo.currencyCode}=t;if(yield this.loadTransactions(),this.transactionList[n]==null)return[];let s=0,o=0;if(t===null)return this.transactionList[n].slice(0);t.startIndex!=null&&t.startIndex>0&&(s=t.startIndex,s>=this.transactionList[n].length&&(s=this.transactionList[n].length-1)),t.startEntries!=null&&t.startEntries>0&&(o=t.startEntries,o+s>this.transactionList[n].length&&(o=this.transactionList[n].length-s));let c=[];return o!==0?c=this.transactionList[n].slice(s,o+s):c=this.transactionList[n].slice(s),c})}getFreshAddress(t){return d(this,null,function*(){return{publicAddress:this.walletLocalData.publicKey}})}addGapLimitAddresses(t){return d(this,null,function*(){})}isAddressUsed(t){return d(this,null,function*(){return!1})}dumpData(){return d(this,null,function*(){return{walletId:this.walletId.split(" - ")[0],walletType:this.walletInfo.type,data:{pluginType:{pluginId:this.currencyInfo.pluginId},walletLocalData:this.walletLocalData}}})}makeSpendCheck(t){var n,s,o;const{skipChecks:c=!1}=t;for(const C of t.spendTargets)if(!c&&C.publicAddress===this.walletLocalData.publicKey)throw new _.l0;let r="";if(typeof t.currencyCode=="string"){if(r=t.currencyCode,r!==this.currencyInfo.currencyCode&&!this.enabledTokens.includes(r))throw new Error("Error: Token not supported or enabled")}else r=this.currencyInfo.currencyCode;const m=(n=this.walletLocalData.totalBalances[r])!=null?n:"0",u={};for(const C of t.spendTargets){const{nativeAmount:v}=C;v!=null&&(u[r]=(s=u[r])!=null?s:"0",u[r]=(0,L.add)(u[r],v))}for(const[C,v]of Object.entries(u)){const b=(o=this.walletLocalData.totalBalances[C])!=null?o:"0";if(!c&&(0,L.lt)(b,v))throw new _.C_}t.currencyCode=r;const T=(0,I.aL)(r,this.currencyInfo,this.allTokensMap);if(T==null)throw new Error("InternalErrorInvalidCurrencyCode");return{edgeSpendInfo:t,nativeBalance:m,currencyCode:r,denom:T,skipChecks:c}}checkRecipientMinimumBalance(t,n,s){return d(this,null,function*(){if((0,L.gte)(n,this.minimumAddressBalance))return;const o=yield t(s);if((0,L.lt)((0,L.add)(n,o),this.minimumAddressBalance)){const c=this.currencyInfo.denominations.find(m=>m.name===this.currencyInfo.currencyCode);if(c==null)throw new Error("Unknown denom");const r=(0,L.div)(this.minimumAddressBalance,c.multiplier);throw new Error(`Recipient address not activated. A minimum ${r} ${this.currencyInfo.currencyCode} transfer is required to send funds to this address`)}})}saveTx(t){return d(this,null,function*(){this.addTransaction(t.currencyCode,t),this.transactionsChangedArray.forEach(n=>this.warn(`executing back in saveTx and this.transactionsChangedArray is: ${(0,I.oX)(n)}`)),this.transactionsChangedArray.length>0&&this.currencyEngineCallbacks.onTransactionsChanged(this.transactionsChangedArray)})}resyncBlockchain(){return d(this,null,function*(){throw new Error("not implemented")})}makeSpend(t,n){return d(this,null,function*(){throw new Error("not implemented")})}signTx(t,n){return d(this,null,function*(){throw new Error("not implemented")})}broadcastTx(t,n){return d(this,null,function*(){throw new Error("not implemented")})}}},76714:function(F,K,D){D.d(K,{$9:function(){return M},EE:function(){return b},HB:function(){return n},HY:function(){return S},KT:function(){return d},NC:function(){return $},QJ:function(){return r},Qs:function(){return J},Sy:function(){return N},Vs:function(){return c},Wp:function(){return s},X0:function(){return W},Xp:function(){return u},Y7:function(){return V},Z8:function(){return j},aL:function(){return x},ah:function(){return P},dQ:function(){return X},f0:function(){return I},gc:function(){return B},jT:function(){return T},ml:function(){return o},nu:function(){return Z},oX:function(){return v},sD:function(){return m},vq:function(){return U},zR:function(){return O}});var L=D(77591),Q=D.n(L),_=D(48764),p=D(82448),y=(e,i,a)=>new Promise((l,f)=>{var g=k=>{try{w(a.next(k))}catch(E){f(E)}},h=k=>{try{w(a.throw(k))}catch(E){f(E)}},w=k=>k.done?l(k.value):Promise.resolve(k.value).then(g,h);w((a=a.apply(e,i)).next())});function I(e){return e.toLowerCase().replace("0x","")}function N(e){let i=e.length,a,l;for(;i!==0;)l=Math.floor(Math.random()*i),i-=1,a=e[i],e[i]=e[l],e[l]=a;return e}function R(e){return Object.keys(e).length!==0}function U(e){return/^[0-9A-F]+$/i.test(d(e))}function $(e){return(0,L.add)(e,"0",16)}function P(e){const i=e.replace("0x","");return _.Buffer.from(i,"hex")}function B(e,i){return 2*i-e.length>0?e.padStart(2*i,"0"):e}function d(e){return e.indexOf("0x")===0?e.substring(2):e}function j(e){const i=e.toLowerCase(),a=i.startsWith("0x")?i:`0x${i}`;return(0,L.add)(a,"0",10)}function W(e){return(0,L.add)(e,"0",16)}function M(e){return"0x"+_.Buffer.from(e).toString("hex")}function J(e,i,a){for(const l of i.denominations)if(l.name===e)return l;for(const l of a)for(const f of l.denominations)if(f.name===e)return f;for(const l of i.metaTokens)for(const f of l.denominations)if(f.name===e)return f}function x(e,i,a){for(const l of i.denominations)if(l.name===e)return l;for(const l of Object.keys(a)){const f=a[l];for(const g of f.denominations)if(g.name===e)return g}}const t=e=>y(void 0,null,function*(){return yield new Promise((i,a)=>setTimeout(a,e))}),n=e=>y(void 0,null,function*(){return yield new Promise(i=>setTimeout(i,e))});function s(e){return y(this,null,function*(){return yield new Promise((i,a)=>{let l=e.length;for(const f of e)f.then(g=>{i(g)},g=>{--l===0&&a(g)})})})}function o(e,i){return y(this,arguments,function*(a,l,f=a.length){const g={};return yield new Promise((h,w)=>{let k=0,E=0,z=!1;for(const G of a)G.then(H=>{const A=l(H);A!==void 0?(k++,g[A]!==void 0?g[A]++:g[A]=1,!z&&g[A]>=f&&(z=!0,h(H))):++E+k===a.length&&w(Error(`Could not resolve ${f} promises`))},H=>{++E+k===a.length&&w(H)})})})}function c(e,i){return y(this,arguments,function*(a,l,f=new Error(`Timeout of ${l}ms exceeded`)){return yield new Promise((g,h)=>{const w=setTimeout(()=>h(f),l);a.then(k=>{g(k),clearTimeout(w)},k=>{h(k),clearTimeout(w)})})})}function r(e,i=5e3){return y(this,null,function*(){let a=e.length;const l=[];for(const f of e){const g=l.length;l.push(f().catch(h=>{throw h.index=g,h})),a>1&&l.push(new Promise(h=>{n(i).then(()=>{h("async_waterfall_timed_out")})}));try{const h=yield Promise.race(l);if(h==="async_waterfall_timed_out"){const w=l.pop();w==null||w.then().catch(),--a}else return h}catch(h){const w=h.index;l.splice(w,1);const k=l.pop();if(k==null||k.then().catch(),--a,a===0)throw h}}})}function m(e,i){if(e.length<=i)return e;const a=[];for(let l=0;l<e.length&&a.length<i;++l){const f=(i-a.length)/(e.length-l);Math.random()<=f&&a.push(e[l])}return a}function u(e){const i=e.otherParams;if(i==null)throw new TypeError("Transaction is missing otherParams");return i}function T(){let e=!1;const i=[];return function(l){return y(this,null,function*(){e&&(yield new Promise(f=>i.push(()=>f(void 0))));try{return e=!0,yield l()}finally{e=!1;const f=i.shift();f!=null&&f()}})}}const C=(0,p.su)({txid:p.XC,spendTargets:(0,p.Zz)((0,p._2)((0,p.su)({currencyCode:p.XC,nativeAmount:p.XC,publicAddress:p.XC,uniqueIdentifier:(0,p.Zz)(p.XC)}))),signedTx:p.XC,otherParams:(0,p.Zz)((0,p.su)({gas:(0,p.Zz)(p.XC),gasPrice:(0,p.Zz)(p.XC),nonceUsed:(0,p.Zz)(p.XC)}))});function v(e){return JSON.stringify(C(e),null,2)}function b(e){const[i,a]=e.split("e");return a==null?e:(0,L.mul)(i,"1"+"0".repeat(parseInt(a))).toString()}function O(e){var i;return(i=e.fetchCors)!=null?i:e.fetch}function S(e){let i="";return e!=null&&(e.name!=null&&(i+=`${e.name} `),e.message!=null&&(i+=e.message)),i}function Z(...e){const i={};for(const a of e)if(a!=null)for(const l of Object.keys(a))a[l]!=null&&(i[l]=i[l]!=null&&typeof a[l]=="object"?Z(i[l],a[l]):a[l]);return i}function V(e){const[i,a]=e.split(".");return a==null?i:parseInt(a[0])>=5?(0,L.add)(i,"1"):i}const q=e=>console.log(JSON.stringify(e,null,2));function X(e,i){if(typeof e!="object"||typeof i!="object"||e==null||i==null)return e===i;const a=Array.isArray(e),l=Array.isArray(i);if(a!==l)return!1;if(a){if(e.length!==i.length)return!1;for(let h=0;h<e.length;++h)if(!X(e[h],i[h]))return!1;return!0}const f=Object.getOwnPropertyNames(e).filter(h=>e[h]!==void 0),g=Object.getOwnPropertyNames(i).filter(h=>i[h]!==void 0);if(f.length!==g.length)return!1;for(const h of f)if(!Object.prototype.hasOwnProperty.call(i,h)||!X(e[h],i[h]))return!1;return!0}const Y=(e,i)=>{for(const a of Object.keys(e)){if(typeof e[a]=="object"){if(typeof i[a]!="object"||!Y(e[a],i[a]))return!1;continue}if(e[a]!==i[a])return!1}return!0}}}]);