1(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-vendors~b1d2aef6"],{1355:function(e,t,r){"use strict";(function(e){var i=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},n.apply(this,arguments)},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var a=r("5b66"),s=r("4b26"),c=r("6f3d"),h=r("be6a"),u=e.from(1..toString(16).padStart(2,"0"),"hex"),d=function(t){function r(e,r){void 0===r&&(r={});var i,o,s=this;(s=t.call(this,n(n({},e),{type:1}))||this).DEFAULT_HARDFORK="berlin";var u=e.chainId,d=e.accessList,f=e.gasPrice;if(s.common=s._getCommon(r.common,u),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 l=h.AccessLists.getAccessListData(null!=d?d:[]);if(s.accessList=l.accessList,s.AccessListJSON=l.AccessListJSON,h.AccessLists.verifyAccessList(s.accessList),s.gasPrice=new a.BN((0,a.toBuffer)(""===f?"0x":f)),s._validateCannotExceedMaxInteger({gasPrice:s.gasPrice}),s.gasPrice.mul(s.gasLimit).gt(a.MAX_INTEGER)){var v=s._errorMsg("gasLimit * gasPrice cannot exceed MAX_INTEGER");throw new Error(v)}if(s.v&&!s.v.eqn(0)&&!s.v.eqn(1))throw v=s._errorMsg("The y-parity of the transaction should either be 0 or 1"),new Error(v);if(s.common.gteHardfork("homestead")&&(null===(i=s.s)||void 0===i?void 0:i.gt(c.N_DIV_2)))throw v=s._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
1d"),new Error(v);return s.common.isActivatedEIP(3860)&&(0,h.checkMaxInitCodeSize)(s.common,s.data.length),(null===(o=null==r?void 0:r.freeze)||void 0===o||o)&&Object.freeze(s),s}return i(r,t),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){if(void 0===t&&(t={}),!e.slice(0,1).equals(u))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: ".concat(1,", received: ").concat(e.slice(0,1).toString("hex")));var i=a.rlp.decode(e.slice(1));if(!Array.isArray(i))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(i,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),8!==e.length&&11!==e.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var i=o(e,11),n=i[0],s=i[1],c=i[2],h=i[3],u=i[4],d=i[5],f=i[6],l=i[7],v=i[8],p=i[9],g=i[10];(0,a.validateNoLeadingZeroes)({nonce:s,gasPrice:c,gasLimit:h,value:d,v:v,r:p,s:g});return new r({chainId:new a.BN(n),nonce:s,gasPrice:c,gasLimit:h,to:u,value:d,data:f,accessList:null!=l?l:[],v:void 0!==v?new a.BN(v):void 0,r:p,s:g},t)},r.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var e=t.prototype.getDataFee.call(this);return e.iaddn(h.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:e,hardfork:this.common.hardfork()}),e},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.chainId),(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.gasPrice),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,a.bnToUnpaddedBuffer)(this.v):e.from([]),void 0!==this.r?(0,a.bnToUnpaddedBuffer)(this.r):e.from([]),void 0!==this.s?(0,a.bnToUnpaddedBuffer)(this.s):e.from([])]},r.prototype.serialize=function(){var t=this.raw();return e.concat([u,a.rlp.encode(t)])},r.prototype.getMessageToSign=function(t){void 0===t&&(t=!0);var r=this.raw().slice(0,8),i=e.concat([u,a.rlp.encode(r)]);return t?(0,a.keccak256)(i):i},r.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,a.keccak256)(this.serialize())),this.cache.hash):(0,a.keccak256)(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var r=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(c.N_DIV_2)))throw t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
1d"),new Error(t);var i=this,n=i.yParity,o=i.r,s=i.s;try{return(0,a.ecrecover)(r,n.addn(27),(0,a.bnToUnpaddedBuffer)(o),(0,a.bnToUnpaddedBuffer)(s))}catch(e){throw t=this._errorMsg("Invalid Signature"),new Error(t)}},r.prototype._processSignature=function(e,t,i){var n={common:this.common};return r.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 a.BN(e-27),r:new a.BN(t),s:new a.BN(i)},n)},r.prototype.toJSON=function(){var e=h.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,a.bnToHex)(this.chainId),nonce:(0,a.bnToHex)(this.nonce),gasPrice:(0,a.bnToHex)(this.gasPrice),gasLimit:(0,a.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,a.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,a.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,a.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,a.bnToHex)(this.s):void 0}},r.prototype.errorStr=function(){var e,t,r=this._getSharedErrorPostfix();return r+=" gasPrice=".concat(this.gasPrice," accessListCount=").concat(null!==(t=null===(e=this.accessList)||void 0===e?void 0:e.length)&&void 0!==t?t:0)},r.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},r}(s.BaseTransaction);t.default=d}).call(this,r("1c35").Buffer)},"24b7":function(e,t,r){"use strict";(function(e){var i=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},n.apply(this,arguments)},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var a=r("5b66"),s=r("6f3d"),c=r("4b26"),h=r("be6a"),u=function(t){function r(e,r){void 0===r&&(r={});var i,o=this;if((o=t.call(this,n(n({},e),{type:0}))||this).common=o._validateTxV(o.v,r.common),o.gasPrice=new a.BN((0,a.toBuffer)(""===e.gasPrice?"0x":e.gasPrice)),o.gasPrice.mul(o.gasLimit).gt(a.MAX_INTEGER)){var c=o._errorMsg("gas limit * gasPrice cannot exceed MAX_INTEGER (2^256-1)");throw new Error(c)}if(o._validateCannotExceedMaxInteger({gasPrice:o.gasPrice}),o.common.gteHardfork("spuriousDragon"))if(o.isSigned()){var u=o.v,d=o.common.chainIdBN().muln(2);(u.eq(d.addn(35))||u.eq(d.addn(36)))&&o.activeCapabilities.push(s.Capability.EIP155ReplayProtection)}else o.activeCapabilities.push(s.Capability.EIP155ReplayProtection);return o.common.isActivatedEIP(3860)&&(0,h.checkMaxInitCodeSize)(o.common,o.data.length),(null===(i=null==r?void 0:r.freeze)||void 0===i||i)&&Object.freeze(o),o}return i(r,t),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){void 0===t&&(t={});var r=a.rlp.decode(e);if(!Array.isArray(r))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(r,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),6!==e.length&&9!==e.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var i=o(e,9),n=i[0],s=i[1],c=i[2],h=i[3],u=i[4],d=i[5],f=i[6],l=i[7],v=i[8];return(0,a.validateNoLeadingZeroes)({nonce:n,gasPrice:s,gasLimit:c,value:u,v:f,r:l,s:v}),new r({nonce:n,gasPrice:s,gasLimit:c,to:h,value:u,data:d,v:f,r:l,s:v},t)},r.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.gasPrice),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data,void 0!==this.v?(0,a.bnToUnpaddedBuffer)(this.v):e.from([]),void 0!==this.r?(0,a.bnToUnpaddedBuffer)(this.r):e.from([]),void 0!==this.s?(0,a.bnToUnpaddedBuffer)(this.s):e.from([])]},r.prototype.serialize=function(){return a.rlp.encode(this.raw())},r.prototype._getMessageToSign=function(){var t=[(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.gasPrice),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data];return this.supports(s.Capability.EIP155ReplayProtection)&&(t.push((0,a.toBuffer)(this.common.chainIdBN())),t.push((0,a.unpadBuffer)((0,a.toBuffer)(0))),t.push((0,a.unpadBuffer)((0,a.toBuffer)(0)))),t},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this._getMessageToSign();return e?(0,a.rlphash)(t):t},r.prototype.getDataFee=function(){return this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork()?this.cache.dataFee.value:(Object.isFrozen(this)&&(this.cache.dataFee={value:t.prototype.getDataFee.call(this),hardfork:this.common.hardfork()}),t.prototype.getDataFee.call(this))},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.hash=function(){return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,a.rlphash)(this.raw())),this.cache.hash):(0,a.rlphash)(this.raw())},r.prototype.getMessageToVerifySignature=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this._getMessageToSign();return(0,a.rlphash)(t)},r.prototype.getSenderPublicKey=function(){var e,t=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(s.N_DIV_2))){var r=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
1d");throw new Error(r)}var i=this,n=i.v,o=i.r,c=i.s;try{return(0,a.ecrecover)(t,n,(0,a.bnToUnpaddedBuffer)(o),(0,a.bnToUnpaddedBuffer)(c),this.supports(s.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch(e){throw r=this._errorMsg("Invalid Signature"),new Error(r)}},r.prototype._processSignature=function(e,t,i){var n=new a.BN(e);this.supports(s.Capability.EIP155ReplayProtection)&&n.iadd(this.common.chainIdBN().muln(2).addn(8));var o={common:this.common};return r.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:n,r:new a.BN(t),s:new a.BN(i)},o)},r.prototype.toJSON=function(){return{nonce:(0,a.bnToHex)(this.nonce),gasPrice:(0,a.bnToHex)(this.gasPrice),gasLimit:(0,a.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,a.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),v:void 0!==this.v?(0,a.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,a.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,a.bnToHex)(this.s):void 0}},r.prototype._validateTxV=function(e,t){var r;if(void 0!==e&&!e.eqn(0)&&(!t||t.gteHardfork("spuriousDragon"))&&!e.eqn(27)&&!e.eqn(28))if(t){var i=t.chainIdBN().muln(2);if(!(e.eq(i.addn(35))||e.eq(i.addn(36))))throw new Error("Incompatible EIP155-based V ".concat(e," and chain id ").concat(t.chainIdBN(),". See the Common parameter of the Transaction constructor to set the chain id."))}else{var n;n=e.subn(35).isEven()?35:36,r=e.subn(n).divn(2)}return this._getCommon(t,r)},r.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},r.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this.common.gteHardfork("spuriousDragon"),r=this.v,i=this.common.chainIdBN().muln(2);return(r.eq(i.addn(35))||r.eq(i.addn(36)))&&t},r.prototype.errorStr=function(){var e=this._getSharedErrorPostfix();return e+=" gasPrice=".concat(this.gasPrice)},r.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},r}(c.BaseTransaction);t.default=u}).call(this,r("1c35").Buffer)},"4b26":function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var c=o(r("67aa")),h=r("5b66"),u=r("6f3d"),d=function(){function e(e){this.cache={hash:void 0,dataFee:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=c.Chain.Mainnet,this.DEFAULT_HARDFORK=c.Hardfork.Istanbul;var t=e.nonce,r=e.gasLimit,i=e.to,n=e.value,o=e.data,a=e.v,s=e.r,u=e.s,d=e.type;this._type=new h.BN((0,h.toBuffer)(d)).toNumber();var f=(0,h.toBuffer)(""===i?"0x":i),l=(0,h.toBuffer)(""===a?"0x":a),v=(0,h.toBuffer)(""===s?"0x":s),p=(0,h.toBuffer)(""===u?"0x":u);this.nonce=new h.BN((0,h.toBuffer)(""===t?"0x":t)),this.gasLimit=new h.BN((0,h.toBuffer)(""===r?"0x":r)),this.to=f.length>0?new h.Address(f):void 0,this.value=new h.BN((0,h.toBuffer)(""===n?"0x":n)),this.data=(0,h.toBuffer)(""===o?"0x":o),this.v=l.length>0?new h.BN(l):void 0,this.r=v.length>0?new h.BN(v):void 0,this.s=p.length>
10?new h.BN(p):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given ".concat(this.gasLimit,", need at least ").concat(this.getBaseFee())),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),r=0,i=0;i<this.data.length;i++)0===this.data[i]?r+=e:r+=t;if(r=new h.BN(r),(void 0===this.to||null===this.to)&&this.common.isActivatedEIP(3860)){var n=Math.ceil(this.data.length/32),o=new h.BN(this.common.param("gasPrices","initCodeWordCost")).imuln(n);r.iadd(o)}return r},e.prototype.toCreationAddress=function(){return void 0===this.to||0===this.to.buf.length},e.prototype.isSigned=function(){var e=this,t=e.v,r=e.r,i=e.s;return 0===this.type?!!(t&&r&&i):!(void 0===t||!r||!i)},e.prototype.verifySignature=function(){try{var e=this.getSenderPublicKey();return 0!==(0,h.unpadBuffer)(e).length}catch(e){return!1}},e.prototype.getSenderAddress=function(){return new h.Address((0,h.publicToAddress)(this.getSenderPublicKey()))},e.prototype.sign=function(e){if(32!==e.length){var t=this._errorMsg("Private key must be 32 bytes in length.");throw new Error(t)}var r=!1;0===this.type&&this.common.gteHardfork("spuriousDragon")&&!this.supports(u.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(u.Capability.EIP155ReplayProtection),r=!0);var i=this.getMessageToSign(!0),n=(0,h.ecsign)(i,e),o=n.v,a=n.r,s=n.s,c=this._processSignature(o,a,s);if(r){var d=this.activeCapabilities.indexOf(u.Capability.EIP155ReplayProtection);d>-1&&this.activeCapabilities.splice(d,1)}return c},e.prototype._getCommon=function(e,t){var r;if(t){var i=new h.BN((0,h.toBuffer)(t));if(e){if(!e.chainIdBN().eq(i)){var n=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(n)}return e.copy()}return c.default.isSupportedChainId(i)?new c.default({chain:i,hardfork:this.DEFAULT_HARDFORK}):c.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:i,chainId:i},this.DEFAULT_HARDFORK)}return null!==(r=null==e?void 0:e.copy())&&void 0!==r?r:new c.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t,r){var i,n;void 0===t&&(t=256),void 0===r&&(r=!1);try{for(var o=a(Object.entries(e)),c=o.next();!c.done;c=o.next()){var u=s(c.value,2),d=u[0],f=u[1];switch(t){case 64:if(r){if(null==f?void 0:f.gte(h.MAX_UINT64)){var l=this._errorMsg("".concat(d," cannot equal or exceed MAX_UINT64 (2^64-1), given ").concat(f));throw new Error(l)}}else if(null==f?void 0:f.gt(h.MAX_UINT64))throw l=this._errorMsg("".concat(d," cannot exceed MAX_UINT64 (2^64-1), given ").concat(f)),new Error(l);break;case 256:if(r){if(null==f?void 0:f.gte(h.MAX_INTEGER))throw l=this._errorMsg("".concat(d," cannot equal or exceed MAX_INTEGER (2^256-1), given ").concat(f)),new Error(l)}else if(null==f?void 0:f.gt(h.MAX_INTEGER))throw l=this._errorMsg("".concat(d," cannot exceed MAX_INTEGER (2^256-1), given ").concat(f)),new Error(l);break;default:throw l=this._errorMsg("unimplemented bits value"),new Error(l)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,h.bufferToHex)(this.hash()):"not available (unsigned)"}catch(t){e="error"}var t="";try{t=this.isSigned().toString()}catch(t){e="error"}var r="";try{r=this.common.hardfork()}catch(e){r="error"}
1var i="tx type=".concat(this.type," hash=").concat(e," nonce=").concat(this.nonce," value=").concat(this.value," ");return i+="signed=".concat(t," hf=").concat(r)},e}();t.BaseTransaction=d},5043:function(e,t,r){"use strict";(function(e){var i=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},n.apply(this,arguments)},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var a=r("5b66"),s=r("4b26"),c=r("6f3d"),h=r("be6a"),u=e.from(2..toString(16).padStart(2,"0"),"hex"),d=function(t){function r(e,r){void 0===r&&(r={});var i,o,s=this;(s=t.call(this,n(n({},e),{type:2}))||this).DEFAULT_HARDFORK="london";var u=e.chainId,d=e.accessList,f=e.maxFeePerGas,l=e.maxPriorityFeePerGas;if(s.common=s._getCommon(r.common,u),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 v=h.AccessLists.getAccessListData(null!=d?d:[]);if(s.accessList=v.accessList,s.AccessListJSON=v.AccessListJSON,h.AccessLists.verifyAccessList(s.accessList),s.maxFeePerGas=new a.BN((0,a.toBuffer)(""===f?"0x":f)),s.maxPriorityFeePerGas=new a.BN((0,a.toBuffer)(""===l?"0x":l)),s._validateCannotExceedMaxInteger({maxFeePerGas:s.maxFeePerGas,maxPriorityFeePerGas:s.maxPriorityFeePerGas}),s.gasLimit.mul(s.maxFeePerGas).gt(a.MAX_INTEGER)){var p=s._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw new Error(p)}if(s.maxFeePerGas.lt(s.maxPriorityFeePerGas))throw p=s._errorMsg("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)"),new Error(p);if(s.v&&!s.v.eqn(0)&&!s.v.eqn(1))throw p=s._errorMsg("The y-parity of the transaction should either be 0 or 1"),new Error(p);if(s.common.gteHardfork("homestead")&&(null===(i=s.s)||void 0===i?void 0:i.gt(c.N_DIV_2)))throw p=s._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
1d"),new Error(p);return s.common.isActivatedEIP(3860)&&(0,h.checkMaxInitCodeSize)(s.common,s.data.length),(null===(o=null==r?void 0:r.freeze)||void 0===o||o)&&Object.freeze(s),s}return i(r,t),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){if(void 0===t&&(t={}),!e.slice(0,1).equals(u))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: ".concat(2,", received: ").concat(e.slice(0,1).toString("hex")));var i=a.rlp.decode(e.slice(1));if(!Array.isArray(i))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(i,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),9!==e.length&&12!==e.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var i=o(e,12),n=i[0],s=i[1],c=i[2],h=i[3],u=i[4],d=i[5],f=i[6],l=i[7],v=i[8],p=i[9],g=i[10],m=i[11];return(0,a.validateNoLeadingZeroes)({nonce:s,maxPriorityFeePerGas:c,maxFeePerGas:h,gasLimit:u,value:f,v:p,r:g,s:m}),new r({chainId:new a.BN(n),nonce:s,maxPriorityFeePerGas:c,maxFeePerGas:h,gasLimit:u,to:d,value:f,data:l,accessList:null!=v?v:[],v:void 0!==p?new a.BN(p):void 0,r:g,s:m},t)},r.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var e=t.prototype.getDataFee.call(this);return e.iaddn(h.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:e,hardfork:this.common.hardfork()}),e},r.prototype.getUpfrontCost=function(e){void 0===e&&(e=new a.BN(0));var t=a.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(e)).add(e);return this.gasLimit.mul(t).add(this.value)},r.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.chainId),(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.maxPriorityFeePerGas),(0,a.bnToUnpaddedBuffer)(this.maxFeePerGas),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,a.bnToUnpaddedBuffer)(this.v):e.from([]),void 0!==this.r?(0,a.bnToUnpaddedBuffer)(this.r):e.from([]),void 0!==this.s?(0,a.bnToUnpaddedBuffer)(this.s):e.from([])]},r.prototype.serialize=function(){var t=this.raw();return e.concat([u,a.rlp.encode(t)])},r.prototype.getMessageToSign=function(t){void 0===t&&(t=!0);var r=this.raw().slice(0,9),i=e.concat([u,a.rlp.encode(r)]);return t?(0,a.keccak256)(i):i},r.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,a.keccak256)(this.serialize())),this.cache.hash):(0,a.keccak256)(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var r=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(c.N_DIV_2)))throw t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
1d"),new Error(t);var i=this,n=i.v,o=i.r,s=i.s;try{return(0,a.ecrecover)(r,n.addn(27),(0,a.bnToUnpaddedBuffer)(o),(0,a.bnToUnpaddedBuffer)(s))}catch(e){throw t=this._errorMsg("Invalid Signature"),new Error(t)}},r.prototype._processSignature=function(e,t,i){var n={common:this.common};return r.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 a.BN(e-27),r:new a.BN(t),s:new a.BN(i)},n)},r.prototype.toJSON=function(){var e=h.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,a.bnToHex)(this.chainId),nonce:(0,a.bnToHex)(this.nonce),maxPriorityFeePerGas:(0,a.bnToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,a.bnToHex)(this.maxFeePerGas),gasLimit:(0,a.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,a.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,a.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,a.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,a.bnToHex)(this.s):void 0}},r.prototype.errorStr=function(){var e=this._getSharedErrorPostfix();return e+=" maxFeePerGas=".concat(this.maxFeePerGas," maxPriorityFeePerGas=").concat(this.maxPriorityFeePerGas)},r.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},r}(s.BaseTransaction);t.default=d}).call(this,r("1c35").Buffer)},"6f3d":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.N_DIV_2=t.isAccessList=t.isAccessListBuffer=t.Capability=void 0;var i=r("5b66");function n(e){if(0===e.length)return!0;var t=e[0];return!!Array.isArray(t)}(function(e){e[e.EIP155ReplayProtection=155]="EIP155ReplayProtection",e[e.EIP1559FeeMarket=1559]="EIP1559FeeMarket",e[e.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",e[e.EIP2930AccessLists=2930]="EIP2930AccessLists"})(t.Capability||(t.Capability={})),t.isAccessListBuffer=n,t.isAccessList=function(e){return!n(e)},t.N_DIV_2=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)},be6a:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=t.checkMaxInitCodeSize=void 0;var i=r("5b66"),n=r("6f3d");t.checkMaxInitCodeSize=function(e,t){if(t>e.param("vm","maxInitCodeSize"))throw new Error("the initcode size of this transaction is too large: it is ".concat(t," while the max is ").concat(e.param("vm","maxInitCodeSize")))};var o=function(){function e(){}return e.getAccessListData=function(e){var t,r;if(e&&(0,n.isAccessList)(e)){t=e;for(var o=[],a=0;a<e.length;a++){for(var s=e[a],c=(0,i.toBuffer)(s.address),h=[],u=0;u<s.storageKeys.length;u++)h.push((0,i.toBuffer)(s.storageKeys[u]));o.push([c,h])}r=o}else{r=null!=e?e:[];var d=[];for(a=0;a<r.length;a++){var f=r[a],l=(0,i.bufferToHex)(f[0]),v=[];for(s=0;s<f[1].length;s++)v.push((0,i.bufferToHex)(f[1][s]));var p={address:l,storageKeys:v};d.push(p)}t=d}return{AccessListJSON:t,accessList:r}},e.verifyAccessList=function(e){for(var t=0;t<e.length;t++){var r=e[t],i=r[0],n=r[1];if(void 0!==r[2])throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");if(20!=i.length)throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");for(var o=0;o<n.length;o++)if(32!=n[o].length)throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes")}},e.getAccessListJSON=function(e){for(var t=[],r=0;r<e.length;r++){for(var n=e[r],o={address:"0x"+(0,i.setLengthLeft)(n[0],20).toString("hex"),storageKeys:[]},a=n[1],s=0;s<a.length;s++){var c=a[s];o.storageKeys.push("0x"+(0,i.setLengthLeft)(c,32).toString("hex"))}t.push(o)}return t},e.getDataFeeEIP2930=function(e,t){for(var r=t.param("gasPrices","accessListStorageKeyCost"),i=t.param("gasPrices","accessListAddressCost"),n=0,o=0;o<e.length;o++){n+=e[o][1].length}return e.length*i+n*r},e}();t.AccessLists=o},ced0:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
1n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeeMarketEIP1559Transaction=t.TransactionFactory=t.AccessListEIP2930Transaction=t.Transaction=void 0;var a=r("24b7");Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return o(a).default}});var s=r("1355");Object.defineProperty(t,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return o(s).default}});var c=r("f48f");Object.defineProperty(t,"TransactionFactory",{enumerable:!0,get:function(){return o(c).default}});var h=r("5043");Object.defineProperty(t,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return o(h).default}}),n(r("6f3d"),t)},f48f:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=r("5b66"),n=r("ced0"),o=function(){function t(){}return t.fromTxData=function(e,t){if(void 0===t&&(t={}),"type"in e&&void 0!==e.type){var r=new i.BN((0,i.toBuffer)(e.type)).toNumber();if(0===r)return n.Transaction.fromTxData(e,t);if(1===r)return n.AccessListEIP2930Transaction.fromTxData(e,t);if(2===r)return n.FeeMarketEIP1559Transaction.fromTxData(e,t);throw new Error("Tx instantiation with type ".concat(r," not supported"))}return n.Transaction.fromTxData(e,t)},t.fromSerializedData=function(e,t){if(void 0===t&&(t={}),e[0]<=127){var r=void 0;switch(e[0]){case 1:r=2930;break;case 2:r=1559;break;default:throw new Error("TypedTransaction with ID ".concat(e[0]," unknown"))}return 1559===r?n.FeeMarketEIP1559Transaction.fromSerializedTx(e,t):n.AccessListEIP2930Transaction.fromSerializedTx(e,t)}return n.Transaction.fromSerializedTx(e,t)},t.fromBlockBodyData=function(t,r){if(void 0===r&&(r={}),e.isBuffer(t))return this.fromSerializedData(t,r);if(Array.isArray(t))return n.Transaction.fromValuesArray(t,r);throw new Error("Cannot decode transaction: unknown type input")},t.getTransactionClass=function(e,t){if(void 0===e&&(e=0),0==e||e>=128&&e<=255)return n.Transaction;switch(e){case 1:return n.AccessListEIP2930Transaction;case 2:return n.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID ".concat(e," unknown"))}},t}();t.default=o}).call(this,r("1c35").Buffer)}}]); 2//# sourceMappingURL=chunk-vendors~b1d2aef6.19ca081d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.