text: ["^ ","~:resource-id",["~:shadow.build.npm/resource","node_modules/@ethereumjs/tx/dist.browser/baseTransaction.js"],"~:js","shadow$provide.module$node_modules$$ethereumjs$tx$dist_browser$baseTransaction=function(global,require,module,exports){var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k);o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,\"default\",{enumerable:!0,value:v})}:function(o,v){o[\"default\"]=\nv});global=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)\"default\"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);__setModuleDefault(result,mod);return result};var __values=this&&this.__values||function(o){var s=\"function\"===typeof Symbol&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&\"number\"===typeof o.length)return{next:function(){o&&i>=o.length&&(o=void 0);return{value:o&&o[i++],\ndone:!o}}};throw new TypeError(s?\"Object is not iterable.\":\"Symbol.iterator is not defined.\");},__read=this&&this.__read||function(o,n){var m=\"function\"===typeof Symbol&&o[Symbol.iterator];if(!m)return o;o=m.call(o);var r,ar=[];try{for(;(void 0===n||0<n--)&&!(r=o.next()).done;)ar.push(r.value)}catch(error){var e={error}}finally{try{r&&!r.done&&(m=o[\"return\"])&&m.call(o)}finally{if(e)throw e.error;}}return ar};Object.defineProperty(exports,\"__esModule\",{value:!0});exports.BaseTransaction=void 0;var common_1=\nglobal(require(\"module$node_modules$$ethereumjs$common$dist_browser$index\")),ethereumjs_util_1=require(\"module$node_modules$ethereumjs_util$dist_browser$index\"),types_1=require(\"module$node_modules$$ethereumjs$tx$dist_browser$types\");require=function(){function BaseTransaction(txData){this.cache={hash:void 0,dataFee:void 0};this.activeCapabilities=[];this.DEFAULT_CHAIN=common_1.Chain.Mainnet;this.DEFAULT_HARDFORK=common_1.Hardfork.Istanbul;var nonce=txData.nonce,gasLimit=txData.gasLimit,to=txData.to,\nvalue=txData.value,data=txData.data,v=txData.v,r=txData.r,s=txData.s;this._type=(new ethereumjs_util_1.BN((0,ethereumjs_util_1.toBuffer)(txData.type))).toNumber();txData=(0,ethereumjs_util_1.toBuffer)(\"\"===to?\"0x\":to);v=(0,ethereumjs_util_1.toBuffer)(\"\"===v?\"0x\":v);r=(0,ethereumjs_util_1.toBuffer)(\"\"===r?\"0x\":r);s=(0,ethereumjs_util_1.toBuffer)(\"\"===s?\"0x\":s);this.nonce=new ethereumjs_util_1.BN((0,ethereumjs_util_1.toBuffer)(\"\"===nonce?\"0x\":nonce));this.gasLimit=new ethereumjs_util_1.BN((0,ethereumjs_util_1.toBuffer)(\"\"===\ngasLimit?\"0x\":gasLimit));this.to=0<txData.length?new ethereumjs_util_1.Address(txData):void 0;this.value=new ethereumjs_util_1.BN((0,ethereumjs_util_1.toBuffer)(\"\"===value?\"0x\":value));this.data=(0,ethereumjs_util_1.toBuffer)(\"\"===data?\"0x\":data);this.v=0<v.length?new ethereumjs_util_1.BN(v):void 0;this.r=0<r.length?new ethereumjs_util_1.BN(r):void 0;this.s=0<s.length?new ethereumjs_util_1.BN(s):void 0;this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s});this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},\n64);this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}Object.defineProperty(BaseTransaction.prototype,\"transactionType\",{get:function(){return this.type},enumerable:!1,configurable:!0});Object.defineProperty(BaseTransaction.prototype,\"type\",{get:function(){return this._type},enumerable:!1,configurable:!0});BaseTransaction.prototype.supports=function(capability){return this.activeCapabilities.includes(capability)};BaseTransaction.prototype.validate=function(stringError){void 0===stringError&&\n(stringError=!1);var errors=[];this.getBaseFee().gt(this.gasLimit)&&errors.push(\"gasLimit is too low. given \".concat(this.gasLimit,\", need at least \").concat(this.getBaseFee()));this.isSigned()&&!this.verifySignature()&&errors.push(\"Invalid Signature\");return stringError?errors:0===errors.length};BaseTransaction.prototype.getBaseFee=function(){var fee=this.getDataFee().addn(this.common.param(\"gasPrices\",\"tx\"));this.common.gteHardfork(\"homestead\")&&this.toCreationAddress()&&fee.iaddn(this.common.param(\"gasPrices\",\n\"txCreation\"));return fee};BaseTransaction.prototype.getDataFee=function(){for(var txDataZero=this.common.param(\"gasPrices\",\"txDataZero\"),txDataNonZero=this.common.param(\"gasPrices\",\"txDataNonZero\"),cost=0,i=0;i<this.data.length;i++)0===this.data[i]?cost+=txDataZero:cost+=txDataNonZero;return new ethereumjs_util_1.BN(cost)};BaseTransaction.prototype.toCreationAddress=function(){return void 0===this.to||0===this.to.buf.length};BaseTransaction.prototype.isSigned=function(){var v=this.v,r=this.r,s=this.s;\nif(0===this.type){if(v&&r&&s)return!0}else if(void 0!==v&&r&&s)return!0;return!1};BaseTransaction.prototype.verifySignature=function(){try{var publicKey=this.getSenderPublicKey();return 0!==(0,ethereumjs_util_1.unpadBuffer)(publicKey).length}catch(e){return!1}};BaseTransaction.prototype.getSenderAddress=function(){return new ethereumjs_util_1.Address((0,ethereumjs_util_1.publicToAddress)(this.getSenderPublicKey()))};BaseTransaction.prototype.sign=function(privateKey){if(32!==privateKey.length){var msg=\nthis._errorMsg(\"Private key must be 32 bytes in length.\");throw Error(msg);}msg=!1;0===this.type&&this.common.gteHardfork(\"spuriousDragon\")&&!this.supports(types_1.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(types_1.Capability.EIP155ReplayProtection),msg=!0);var msgHash=this.getMessageToSign(!0);privateKey=(0,ethereumjs_util_1.ecsign)(msgHash,privateKey);privateKey=this._processSignature(privateKey.v,privateKey.r,privateKey.s);msg&&(msg=this.activeCapabilities.indexOf(types_1.Capability.EIP155ReplayProtection),\n-1<msg&&this.activeCapabilities.splice(msg,1));return privateKey};BaseTransaction.prototype._getCommon=function(common,chainId){var _a;if(chainId){chainId=new ethereumjs_util_1.BN((0,ethereumjs_util_1.toBuffer)(chainId));if(common){if(!common.chainIdBN().eq(chainId))throw common=this._errorMsg(\"The chain ID does not match the chain ID of Common\"),Error(common);return common.copy()}return common_1.default.isSupportedChainId(chainId)?new common_1.default({chain:chainId,hardfork:this.DEFAULT_HARDFORK}):\ncommon_1.default.forCustomChain(this.DEFAULT_CHAIN,{name:\"custom-chain\",networkId:chainId,chainId},this.DEFAULT_HARDFORK)}return null!==(_a=null===common||void 0===common?void 0:common.copy())&&void 0!==_a?_a:new common_1.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})};BaseTransaction.prototype._validateCannotExceedMaxInteger=function(values,bits,cannotEqual){var _a;void 0===bits&&(bits=256);void 0===cannotEqual&&(cannotEqual=!1);try{for(var _b=__values(Object.entries(values)),\n_c=_b.next();!_c.done;_c=_b.next()){var _d=__read(_c.value,2),key=_d[0],value=_d[1];switch(bits){case 64:if(cannotEqual){if(null===value||void 0===value?0:value.gte(ethereumjs_util_1.MAX_UINT64)){var msg=this._errorMsg(\"\".concat(key,\" cannot equal or exceed MAX_UINT64 (2^64-1), given \").concat(value));throw Error(msg);}}else if(null===value||void 0===value?0:value.gt(ethereumjs_util_1.MAX_UINT64))throw msg=this._errorMsg(\"\".concat(key,\" cannot exceed MAX_UINT64 (2^64-1), given \").concat(value)),Error(msg);\nbreak;case 256:if(cannotEqual){if(null===value||void 0===value?0:value.gte(ethereumjs_util_1.MAX_INTEGER))throw msg=this._errorMsg(\"\".concat(key,\" cannot equal or exceed MAX_INTEGER (2^256-1), given \").concat(value)),Error(msg);}else if(null===value||void 0===value?0:value.gt(ethereumjs_util_1.MAX_INTEGER))throw msg=this._errorMsg(\"\".concat(key,\" cannot exceed MAX_INTEGER (2^256-1), given \").concat(value)),Error(msg);break;default:throw msg=this._errorMsg(\"unimplemented bits value\"),Error(msg);}}}catch(e_1_1){var e_1=\n{error:e_1_1}}finally{try{_c&&!_c.done&&(_a=_b.return)&&_a.call(_b)}finally{if(e_1)throw e_1.error;}}};BaseTransaction.prototype._getSharedErrorPostfix=function(){var hash=\"\";try{hash=this.isSigned()?(0,ethereumjs_util_1.bufferToHex)(this.hash()):\"not available (unsigned)\"}catch(e){hash=\"error\"}var isSigned=\"\";try{isSigned=this.isSigned().toString()}catch(e){hash=\"error\"}var hf=\"\";try{hf=this.common.hardfork()}catch(e){hf=\"error\"}hash=\"tx type\\x3d\".concat(this.type,\" hash\\x3d\").concat(hash,\" nonce\\x3d\").concat(this.nonce,\n\" value\\x3d\").concat(this.value,\" \");return hash+=\"signed\\x3d\".concat(isSigned,\" hf\\x3d\").concat(hf)};return BaseTransaction}();exports.BaseTransaction=require}","~:source","shadow$provide[\"module$node_modules$$ethereumjs$tx$dist_browser$baseTransaction\"] = function(global,require,module,exports) {\n\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __values = (this && this.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BaseTransaction = void 0;\nvar common_1 = __importStar(require(\"@ethereumjs/common\"));\nvar ethereumjs_util_1 = require(\"ethereumjs-util\");\nvar types_1 = require(\"./types\");\n/**\n * This base class will likely be subject to further\n * refactoring along the introduction of additional tx types\n * on the Ethereum network.\n *\n * It is therefore not recommended to use directly.\n */\nvar BaseTransaction = /** @class */ (function () {\n    function BaseTransaction(txData) {\n        this.cache = {\n            hash: undefined,\n            dataFee: undefined,\n        };\n        /**\n         * List of tx type defining EIPs,\n         * e.g. 1559 (fee market) and 2930 (access lists)\n         * for FeeMarketEIP1559Transaction objects\n         */\n        this.activeCapabilities = [];\n        /**\n         * The default chain the tx falls back to if no Common\n         * is provided and if the chain can't be derived from\n         * a passed in chainId (only EIP-2718 typed txs) or\n         * EIP-155 signature (legacy txs).\n         *\n         * @hidden\n         */\n        this.DEFAULT_CHAIN = common_1.Chain.Mainnet;\n        /**\n         * The default HF if the tx type is active on that HF\n         * or the first greater HF where the tx is active.\n         *\n         * @hidden\n         */\n        this.DEFAULT_HARDFORK = common_1.Hardfork.Istanbul;\n        var nonce = txData.nonce, gasLimit = txData.gasLimit, to = txData.to, value = txData.value, data = txData.data, v = txData.v, r = txData.r, s = txData.s, type = txData.type;\n        this._type = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(type)).toNumber();\n        var toB = (0, ethereumjs_util_1.toBuffer)(to === '' ? '0x' : to);\n        var vB = (0, ethereumjs_util_1.toBuffer)(v === '' ? '0x' : v);\n        var rB = (0, ethereumjs_util_1.toBuffer)(r === '' ? '0x' : r);\n        var sB = (0, ethereumjs_util_1.toBuffer)(s === '' ? '0x' : s);\n        this.nonce = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(nonce === '' ? '0x' : nonce));\n        this.gasLimit = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(gasLimit === '' ? '0x' : gasLimit));\n        this.to = toB.length > 0 ? new ethereumjs_util_1.Address(toB) : undefined;\n        this.value = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(value === '' ? '0x' : value));\n        this.data = (0, ethereumjs_util_1.toBuffer)(data === '' ? '0x' : data);\n        this.v = vB.length > 0 ? new ethereumjs_util_1.BN(vB) : undefined;\n        this.r = rB.length > 0 ? new ethereumjs_util_1.BN(rB) : undefined;\n        this.s = sB.length > 0 ? new ethereumjs_util_1.BN(sB) : undefined;\n        this._validateCannotExceedMaxInteger({ value: this.value, r: this.r, s: this.s });\n        // geth limits gasLimit to 2^64-1\n        this._validateCannotExceedMaxInteger({ gasLimit: this.gasLimit }, 64);\n        // EIP-2681 limits nonce to 2^64-1 (cannot equal 2^64-1)\n        this._validateCannotExceedMaxInteger({ nonce: this.nonce }, 64, true);\n    }\n    Object.defineProperty(BaseTransaction.prototype, \"transactionType\", {\n        /**\n         * Alias for {@link BaseTransaction.type}\n         *\n         * @deprecated Use `type` instead\n         */\n        get: function () {\n            return this.type;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    Object.defineProperty(BaseTransaction.prototype, \"type\", {\n        /**\n         * Returns the transaction type.\n         *\n         * Note: legacy txs will return tx type `0`.\n         */\n        get: function () {\n            return this._type;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    /**\n     * Checks if a tx type defining capability is active\n     * on a tx, for example the EIP-1559 fee market mechanism\n     * or the EIP-2930 access list feature.\n     *\n     * Note that this is different from the tx type itself,\n     * so EIP-2930 access lists can very well be active\n     * on an EIP-1559 tx for example.\n     *\n     * This method can be useful for feature checks if the\n     * tx type is unknown (e.g. when instantiated with\n     * the tx factory).\n     *\n     * See `Capabilites` in the `types` module for a reference\n     * on all supported capabilities.\n     */\n    BaseTransaction.prototype.supports = function (capability) {\n        return this.activeCapabilities.includes(capability);\n    };\n    BaseTransaction.prototype.validate = function (stringError) {\n        if (stringError === void 0) { stringError = false; }\n        var errors = [];\n        if (this.getBaseFee().gt(this.gasLimit)) {\n            errors.push(\"gasLimit is too low. given \".concat(this.gasLimit, \", need at least \").concat(this.getBaseFee()));\n        }\n        if (this.isSigned() && !this.verifySignature()) {\n            errors.push('Invalid Signature');\n        }\n        return stringError ? errors : errors.length === 0;\n    };\n    /**\n     * The minimum amount of gas the tx must have (DataFee + TxFee + Creation Fee)\n     */\n    BaseTransaction.prototype.getBaseFee = function () {\n        var fee = this.getDataFee().addn(this.common.param('gasPrices', 'tx'));\n        if (this.common.gteHardfork('homestead') && this.toCreationAddress()) {\n            fee.iaddn(this.common.param('gasPrices', 'txCreation'));\n        }\n        return fee;\n    };\n    /**\n     * The amount of gas paid for the data in this tx\n     */\n    BaseTransaction.prototype.getDataFee = function () {\n        var txDataZero = this.common.param('gasPrices', 'txDataZero');\n        var txDataNonZero = this.common.param('gasPrices', 'txDataNonZero');\n        var cost = 0;\n        for (var i = 0; i < this.data.length; i++) {\n            this.data[i] === 0 ? (cost += txDataZero) : (cost += txDataNonZero);\n        }\n        return new ethereumjs_util_1.BN(cost);\n    };\n    /**\n     * If the tx's `to` is to the creation address\n     */\n    BaseTransaction.prototype.toCreationAddress = function () {\n        return this.to === undefined || this.to.buf.length === 0;\n    };\n    BaseTransaction.prototype.isSigned = function () {\n        var _a = this, v = _a.v, r = _a.r, s = _a.s;\n        if (this.type === 0) {\n            if (!v || !r || !s) {\n                return false;\n            }\n            else {\n                return true;\n            }\n        }\n        else {\n            if (v === undefined || !r || !s) {\n                return false;\n            }\n            else {\n                return true;\n            }\n        }\n    };\n    /**\n     * Determines if the signature is valid\n     */\n    BaseTransaction.prototype.verifySignature = function () {\n        try {\n            // Main signature verification is done in `getSenderPublicKey()`\n            var publicKey = this.getSenderPublicKey();\n            return (0, ethereumjs_util_1.unpadBuffer)(publicKey).length !== 0;\n        }\n        catch (e) {\n            return false;\n        }\n    };\n    /**\n     * Returns the sender's address\n     */\n    BaseTransaction.prototype.getSenderAddress = function () {\n        return new ethereumjs_util_1.Address((0, ethereumjs_util_1.publicToAddress)(this.getSenderPublicKey()));\n    };\n    /**\n     * Signs a transaction.\n     *\n     * Note that the signed tx is returned as a new object,\n     * use as follows:\n     * ```javascript\n     * const signedTx = tx.sign(privateKey)\n     * ```\n     */\n    BaseTransaction.prototype.sign = function (privateKey) {\n        if (privateKey.length !== 32) {\n            var msg = this._errorMsg('Private key must be 32 bytes in length.');\n            throw new Error(msg);\n        }\n        // Hack for the constellation that we have got a legacy tx after spuriousDragon with a non-EIP155 conforming signature\n        // and want to recreate a signature (where EIP155 should be applied)\n        // Leaving this hack lets the legacy.spec.ts -> sign(), verifySignature() test fail\n        // 2021-06-23\n        var hackApplied = false;\n        if (this.type === 0 &&\n            this.common.gteHardfork('spuriousDragon') &&\n            !this.supports(types_1.Capability.EIP155ReplayProtection)) {\n            this.activeCapabilities.push(types_1.Capability.EIP155ReplayProtection);\n            hackApplied = true;\n        }\n        var msgHash = this.getMessageToSign(true);\n        var _a = (0, ethereumjs_util_1.ecsign)(msgHash, privateKey), v = _a.v, r = _a.r, s = _a.s;\n        var tx = this._processSignature(v, r, s);\n        // Hack part 2\n        if (hackApplied) {\n            var index = this.activeCapabilities.indexOf(types_1.Capability.EIP155ReplayProtection);\n            if (index > -1) {\n                this.activeCapabilities.splice(index, 1);\n            }\n        }\n        return tx;\n    };\n    /**\n     * Does chain ID checks on common and returns a common\n     * to be used on instantiation\n     * @hidden\n     *\n     * @param common - {@link Common} instance from tx options\n     * @param chainId - Chain ID from tx options (typed txs) or signature (legacy tx)\n     */\n    BaseTransaction.prototype._getCommon = function (common, chainId) {\n        var _a;\n        // Chain ID provided\n        if (chainId) {\n            var chainIdBN = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(chainId));\n            if (common) {\n                if (!common.chainIdBN().eq(chainIdBN)) {\n                    var msg = this._errorMsg('The chain ID does not match the chain ID of Common');\n                    throw new Error(msg);\n                }\n                // Common provided, chain ID does match\n                // -> Return provided Common\n                return common.copy();\n            }\n            else {\n                if (common_1.default.isSupportedChainId(chainIdBN)) {\n                    // No Common, chain ID supported by Common\n                    // -> Instantiate Common with chain ID\n                    return new common_1.default({ chain: chainIdBN, hardfork: this.DEFAULT_HARDFORK });\n                }\n                else {\n                    // No Common, chain ID not supported by Common\n                    // -> Instantiate custom Common derived from DEFAULT_CHAIN\n                    return common_1.default.forCustomChain(this.DEFAULT_CHAIN, {\n                        name: 'custom-chain',\n                        networkId: chainIdBN,\n                        chainId: chainIdBN,\n                    }, this.DEFAULT_HARDFORK);\n                }\n            }\n        }\n        else {\n            // No chain ID provided\n            // -> return Common provided or create new default Common\n            return ((_a = common === null || common === void 0 ? void 0 : common.copy()) !== null && _a !== void 0 ? _a : new common_1.default({ chain: this.DEFAULT_CHAIN, hardfork: this.DEFAULT_HARDFORK }));\n        }\n    };\n    /**\n     * Validates that an object with BN values cannot exceed the specified bit limit.\n     * @param values Object containing string keys and BN values\n     * @param bits Number of bits to check (64 or 256)\n     * @param cannotEqual Pass true if the number also cannot equal one less the maximum value\n     */\n    BaseTransaction.prototype._validateCannotExceedMaxInteger = function (values, bits, cannotEqual) {\n        var e_1, _a;\n        if (bits === void 0) { bits = 256; }\n        if (cannotEqual === void 0) { cannotEqual = false; }\n        try {\n            for (var _b = __values(Object.entries(values)), _c = _b.next(); !_c.done; _c = _b.next()) {\n                var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n                switch (bits) {\n                    case 64:\n                        if (cannotEqual) {\n                            if (value === null || value === void 0 ? void 0 : value.gte(ethereumjs_util_1.MAX_UINT64)) {\n                                var msg = this._errorMsg(\"\".concat(key, \" cannot equal or exceed MAX_UINT64 (2^64-1), given \").concat(value));\n                                throw new Error(msg);\n                            }\n                        }\n                        else {\n                            if (value === null || value === void 0 ? void 0 : value.gt(ethereumjs_util_1.MAX_UINT64)) {\n                                var msg = this._errorMsg(\"\".concat(key, \" cannot exceed MAX_UINT64 (2^64-1), given \").concat(value));\n                                throw new Error(msg);\n                            }\n                        }\n                        break;\n                    case 256:\n                        if (cannotEqual) {\n                            if (value === null || value === void 0 ? void 0 : value.gte(ethereumjs_util_1.MAX_INTEGER)) {\n                                var msg = this._errorMsg(\"\".concat(key, \" cannot equal or exceed MAX_INTEGER (2^256-1), given \").concat(value));\n                                throw new Error(msg);\n                            }\n                        }\n                        else {\n                            if (value === null || value === void 0 ? void 0 : value.gt(ethereumjs_util_1.MAX_INTEGER)) {\n                                var msg = this._errorMsg(\"\".concat(key, \" cannot exceed MAX_INTEGER (2^256-1), given \").concat(value));\n                                throw new Error(msg);\n                            }\n                        }\n                        break;\n                    default: {\n                        var msg = this._errorMsg('unimplemented bits value');\n                        throw new Error(msg);\n                    }\n                }\n            }\n        }\n        catch (e_1_1) { e_1 = { error: e_1_1 }; }\n        finally {\n            try {\n                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n            }\n            finally { if (e_1) throw e_1.error; }\n        }\n    };\n    /**\n     * Returns the shared error postfix part for _error() method\n     * tx type implementations.\n     */\n    BaseTransaction.prototype._getSharedErrorPostfix = function () {\n        var hash = '';\n        try {\n            hash = this.isSigned() ? (0, ethereumjs_util_1.bufferToHex)(this.hash()) : 'not available (unsigned)';\n        }\n        catch (e) {\n            hash = 'error';\n        }\n        var isSigned = '';\n        try {\n            isSigned = this.isSigned().toString();\n        }\n        catch (e) {\n            hash = 'error';\n        }\n        var hf = '';\n        try {\n            hf = this.common.hardfork();\n        }\n        catch (e) {\n            hf = 'error';\n        }\n        var postfix = \"tx type=\".concat(this.type, \" hash=\").concat(hash, \" nonce=\").concat(this.nonce, \" value=\").concat(this.value, \" \");\n        postfix += \"signed=\".concat(isSigned, \" hf=\").concat(hf);\n        return postfix;\n    };\n    return BaseTransaction;\n}());\nexports.BaseTransaction = BaseTransaction;\n//# sourceMappingURL=baseTransaction.js.map\n};","~:removed-requires",["~#set",[]],"~:actual-requires",["^5",["~$module$node_modules$ethereumjs_util$dist_browser$index","~$shadow.js","~$module$node_modules$$ethereumjs$common$dist_browser$index","~$module$node_modules$$ethereumjs$tx$dist_browser$types"]],"~:properties",["^5",["dataFee","gasLimit","_type","s","next","chainId","toCreationAddress","_validateCannotExceedMaxInteger","DEFAULT_HARDFORK","validate","hash","__esModule","v","error","BaseTransaction","hardfork","cache","name","configurable","value","enumerable","getDataFee","type","r","supports","getBaseFee","isSigned","_getSharedErrorPostfix","activeCapabilities","DEFAULT_CHAIN","getSenderAddress","nonce","networkId","_getCommon","to","data","get","sign","default","done","chain","transactionType","verifySignature"]],"~:compiled-at",1644840880373,"~:source-map-json","{\n\"version\":3,\n\"file\":\"module$node_modules$$ethereumjs$tx$dist_browser$baseTransaction.js\",\n\"lineCount\":17,\n\"mappings\":\"AAAAA,cAAA,CAAA,+DAAA,CAAoF,QAAQ,CAACC,MAAD,CAAQC,OAAR,CAAgBC,MAAhB,CAAuBC,OAAvB,CAAgC,CAE5H,IAAIC,gBAAmB,IAAnBA,EAA2B,IAAKA,CAAAA,eAAhCA,GAAqDC,MAAOC,CAAAA,MAAP,CAAiB,QAAQ,CAACC,CAAD,CAAIC,CAAJ,CAAOC,CAAP,CAAUC,EAAV,CAAc,CACjFC,IAAAA,EAAX,GAAID,EAAJ,GAAsBA,EAAtB,CAA2BD,CAA3B,CACAJ,OAAOO,CAAAA,cAAP,CAAsBL,CAAtB,CAAyBG,EAAzB,CAA6B,CAAEG,WAAY,CAAA,CAAd,CAAoBC,IAAKA,QAAQ,EAAG,CAAE,MAAON,EAAA,CAAEC,CAAF,CAAT,CAApC,CAA7B,CAF4F,CAAvC,CAGnD,QAAQ,CAACF,CAAD,CAAIC,CAAJ,CAAOC,CAAP,CAAUC,EA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uCkB,CAAAA,MAAvC,CAA8CnC,IAA9C,CAAoD,YAApD,CAA+DmC,CAAAA,MAA/D,CAAsE,IAAK1B,CAAAA,KAA3E;AAAkF,YAAlF,CAA6F0B,CAAAA,MAA7F,CAAoG,IAAKjE,CAAAA,KAAzG,CAAgH,GAAhH,CAEd,OADA8I,KACA,EADW,YAAU7E,CAAAA,MAAV,CAAiBC,QAAjB,CAA2B,SAA3B,CAAmCD,CAAAA,MAAnC,CAA0C4E,EAA1C,CAvBgD,CA0B/D,OAAOrH,gBAjVsC,CAAZ,EAmVrCtC,QAAQsC,CAAAA,eAAR,CAA0BA,OA/YkG;\",\n\"sources\":[\"node_modules/@ethereumjs/tx/dist.browser/baseTransaction.js\"],\n\"sourcesContent\":[\"shadow$provide[\\\"module$node_modules$$ethereumjs$tx$dist_browser$baseTransaction\\\"] = function(global,require,module,exports) {\\n\\\"use strict\\\";\\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n    if (k2 === undefined) k2 = k;\\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\\n}) : (function(o, m, k, k2) {\\n    if (k2 === undefined) k2 = k;\\n    o[k2] = m[k];\\n}));\\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\\n    Object.defineProperty(o, \\\"default\\\", { enumerable: true, value: v });\\n}) : function(o, v) {\\n    o[\\\"default\\\"] = v;\\n});\\nvar __importStar = (this && this.__importStar) || function (mod) {\\n    if (mod && mod.__esModule) return mod;\\n    var result = {};\\n    if (mod != null) for (var k in mod) if (k !== \\\"default\\\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\\n    __setModuleDefault(result, mod);\\n    return result;\\n};\\nvar __values = (this && this.__values) || function(o) {\\n    var s = typeof Symbol === \\\"function\\\" && Symbol.iterator, m = s && o[s], i = 0;\\n    if (m) return m.call(o);\\n    if (o && typeof o.length === \\\"number\\\") return {\\n        next: function () {\\n            if (o && i >= o.length) o = void 0;\\n            return { value: o && o[i++], done: !o };\\n        }\\n    };\\n    throw new TypeError(s ? \\\"Object is not iterable.\\\" : \\\"Symbol.iterator is not defined.\\\");\\n};\\nvar __read = (this && this.__read) || function (o, n) {\\n    var m = typeof Symbol === \\\"function\\\" && o[Symbol.iterator];\\n    if (!m) return o;\\n    var i = m.call(o), r, ar = [], e;\\n    try {\\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\\n    }\\n    catch (error) { e = { error: error }; }\\n    finally {\\n        try {\\n            if (r && !r.done && (m = i[\\\"return\\\"])) m.call(i);\\n        }\\n        finally { if (e) throw e.error; }\\n    }\\n    return ar;\\n};\\nObject.defineProperty(exports, \\\"__esModule\\\", { value: true });\\nexports.BaseTransaction = void 0;\\nvar common_1 = __importStar(require(\\\"@ethereumjs/common\\\"));\\nvar ethereumjs_util_1 = require(\\\"ethereumjs-util\\\");\\nvar types_1 = require(\\\"./types\\\");\\n/**\\n * This base class will likely be subject to further\\n * refactoring along the introduction of additional tx types\\n * on the Ethereum network.\\n *\\n * It is therefore not recommended to use directly.\\n */\\nvar BaseTransaction = /** @class */ (function () {\\n    function BaseTransaction(txData) {\\n        this.cache = {\\n            hash: undefined,\\n            dataFee: undefined,\\n        };\\n        /**\\n         * List of tx type defining EIPs,\\n         * e.g. 1559 (fee market) and 2930 (access lists)\\n         * for FeeMarketEIP1559Transaction objects\\n         */\\n        this.activeCapabilities = [];\\n        /**\\n         * The default chain the tx falls back to if no Common\\n         * is provided and if the chain can't be derived from\\n         * a passed in chainId (only EIP-2718 typed txs) or\\n         * EIP-155 signature (legacy txs).\\n         *\\n         * @hidden\\n         */\\n        this.DEFAULT_CHAIN = common_1.Chain.Mainnet;\\n        /**\\n         * The default HF if the tx type is active on that HF\\n         * or the first greater HF where the tx is active.\\n         *\\n         * @hidden\\n         */\\n        this.DEFAULT_HARDFORK = common_1.Hardfork.Istanbul;\\n        var nonce = txData.nonce, gasLimit = txData.gasLimit, to = txData.to, value = txData.value, data = txData.data, v = txData.v, r = txData.r, s = txData.s, type = txData.type;\\n        this._type = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(type)).toNumber();\\n        var toB = (0, ethereumjs_util_1.toBuffer)(to === '' ? '0x' : to);\\n        var vB = (0, ethereumjs_util_1.toBuffer)(v === '' ? '0x' : v);\\n        var rB = (0, ethereumjs_util_1.toBuffer)(r === '' ? '0x' : r);\\n        var sB = (0, ethereumjs_util_1.toBuffer)(s === '' ? '0x' : s);\\n        this.nonce = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(nonce === '' ? '0x' : nonce));\\n        this.gasLimit = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(gasLimit === '' ? '0x' : gasLimit));\\n        this.to = toB.length > 0 ? new ethereumjs_util_1.Address(toB) : undefined;\\n        this.value = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(value === '' ? '0x' : value));\\n        this.data = (0, ethereumjs_util_1.toBuffer)(data === '' ? '0x' : data);\\n        this.v = vB.length > 0 ? new ethereumjs_util_1.BN(vB) : undefined;\\n        this.r = rB.length > 0 ? new ethereumjs_util_1.BN(rB) : undefined;\\n        this.s = sB.length > 0 ? new ethereumjs_util_1.BN(sB) : undefined;\\n        this._validateCannotExceedMaxInteger({ value: this.value, r: this.r, s: this.s });\\n        // geth limits gasLimit to 2^64-1\\n        this._validateCannotExceedMaxInteger({ gasLimit: this.gasLimit }, 64);\\n        // EIP-2681 limits nonce to 2^64-1 (cannot equal 2^64-1)\\n        this._validateCannotExceedMaxInteger({ nonce: this.nonce }, 64, true);\\n    }\\n    Object.defineProperty(BaseTransaction.prototype, \\\"transactionType\\\", {\\n        /**\\n         * Alias for {@link BaseTransaction.type}\\n         *\\n         * @deprecated Use `type` instead\\n         */\\n        get: function () {\\n            return this.type;\\n        },\\n        enumerable: false,\\n        configurable: true\\n    });\\n    Object.defineProperty(BaseTransaction.prototype, \\\"type\\\", {\\n        /**\\n         * Returns the transaction type.\\n         *\\n         * Note: legacy txs will return tx type `0`.\\n         */\\n        get: function () {\\n            return this._type;\\n        },\\n        enumerable: false,\\n        configurable: true\\n    });\\n    /**\\n     * Checks if a tx type defining capability is active\\n     * on a tx, for example the EIP-1559 fee market mechanism\\n     * or the EIP-2930 access list feature.\\n     *\\n     * Note that this is different from the tx type itself,\\n     * so EIP-2930 access lists can very well be active\\n     * on an EIP-1559 tx for example.\\n     *\\n     * This method can be useful for feature checks if the\\n     * tx type is unknown (e.g. when instantiated with\\n     * the tx factory).\\n     *\\n     * See `Capabilites` in the `types` module for a reference\\n     * on all supported capabilities.\\n     */\\n    BaseTransaction.prototype.supports = function (capability) {\\n        return this.activeCapabilities.includes(capability);\\n    };\\n    BaseTransaction.prototype.validate = function (stringError) {\\n        if (stringError === void 0) { stringError = false; }\\n        var errors = [];\\n        if (this.getBaseFee().gt(this.gasLimit)) {\\n            errors.push(\\\"gasLimit is too low. given \\\".concat(this.gasLimit, \\\", need at least \\\").concat(this.getBaseFee()));\\n        }\\n        if (this.isSigned() && !this.verifySignature()) {\\n            errors.push('Invalid Signature');\\n        }\\n        return stringError ? errors : errors.length === 0;\\n    };\\n    /**\\n     * The minimum amount of gas the tx must have (DataFee + TxFee + Creation Fee)\\n     */\\n    BaseTransaction.prototype.getBaseFee = function () {\\n        var fee = this.getDataFee().addn(this.common.param('gasPrices', 'tx'));\\n        if (this.common.gteHardfork('homestead') && this.toCreationAddress()) {\\n            fee.iaddn(this.common.param('gasPrices', 'txCreation'));\\n        }\\n        return fee;\\n    };\\n    /**\\n     * The amount of gas paid for the data in this tx\\n     */\\n    BaseTransaction.prototype.getDataFee = function () {\\n        var txDataZero = this.common.param('gasPrices', 'txDataZero');\\n        var txDataNonZero = this.common.param('gasPrices', 'txDataNonZero');\\n        var cost = 0;\\n        for (var i = 0; i < this.data.length; i++) {\\n            this.data[i] === 0 ? (cost += txDataZero) : (cost += txDataNonZero);\\n        }\\n        return new ethereumjs_util_1.BN(cost);\\n    };\\n    /**\\n     * If the tx's `to` is to the creation address\\n     */\\n    BaseTransaction.prototype.toCreationAddress = function () {\\n        return this.to === undefined || this.to.buf.length === 0;\\n    };\\n    BaseTransaction.prototype.isSigned = function () {\\n        var _a = this, v = _a.v, r = _a.r, s = _a.s;\\n        if (this.type === 0) {\\n            if (!v || !r || !s) {\\n                return false;\\n            }\\n            else {\\n                return true;\\n            }\\n        }\\n        else {\\n            if (v === undefined || !r || !s) {\\n                return false;\\n            }\\n            else {\\n                return true;\\n            }\\n        }\\n    };\\n    /**\\n     * Determines if the signature is valid\\n     */\\n    BaseTransaction.prototype.verifySignature = function () {\\n        try {\\n            // Main signature verification is done in `getSenderPublicKey()`\\n            var publicKey = this.getSenderPublicKey();\\n            return (0, ethereumjs_util_1.unpadBuffer)(publicKey).length !== 0;\\n        }\\n        catch (e) {\\n            return false;\\n        }\\n    };\\n    /**\\n     * Returns the sender's address\\n     */\\n    BaseTransaction.prototype.getSenderAddress = function () {\\n        return new ethereumjs_util_1.Address((0, ethereumjs_util_1.publicToAddress)(this.getSenderPublicKey()));\\n    };\\n    /**\\n     * Signs a transaction.\\n     *\\n     * Note that the signed tx is returned as a new object,\\n     * use as follows:\\n     * ```javascript\\n     * const signedTx = tx.sign(privateKey)\\n     * ```\\n     */\\n    BaseTransaction.prototype.sign = function (privateKey) {\\n        if (privateKey.length !== 32) {\\n            var msg = this._errorMsg('Private key must be 32 bytes in length.');\\n            throw new Error(msg);\\n        }\\n        // Hack for the constellation that we have got a legacy tx after spuriousDragon with a non-EIP155 conforming signature\\n        // and want to recreate a signature (where EIP155 should be applied)\\n        // Leaving this hack lets the legacy.spec.ts -> sign(), verifySignature() test fail\\n        // 2021-06-23\\n        var hackApplied = false;\\n        if (this.type === 0 &&\\n            this.common.gteHardfork('spuriousDragon') &&\\n            !this.supports(types_1.Capability.EIP155ReplayProtection)) {\\n            this.activeCapabilities.push(types_1.Capability.EIP155ReplayProtection);\\n            hackApplied = true;\\n        }\\n        var msgHash = this.getMessageToSign(true);\\n        var _a = (0, ethereumjs_util_1.ecsign)(msgHash, privateKey), v = _a.v, r = _a.r, s = _a.s;\\n        var tx = this._processSignature(v, r, s);\\n        // Hack part 2\\n        if (hackApplied) {\\n            var index = this.activeCapabilities.indexOf(types_1.Capability.EIP155ReplayProtection);\\n            if (index > -1) {\\n                this.activeCapabilities.splice(index, 1);\\n            }\\n        }\\n        return tx;\\n    };\\n    /**\\n     * Does chain ID checks on common and returns a common\\n     * to be used on instantiation\\n     * @hidden\\n     *\\n     * @param common - {@link Common} instance from tx options\\n     * @param chainId - Chain ID from tx options (typed txs) or signature (legacy tx)\\n     */\\n    BaseTransaction.prototype._getCommon = function (common, chainId) {\\n        var _a;\\n        // Chain ID provided\\n        if (chainId) {\\n            var chainIdBN = new ethereumjs_util_1.BN((0, ethereumjs_util_1.toBuffer)(chainId));\\n            if (common) {\\n                if (!common.chainIdBN().eq(chainIdBN)) {\\n                    var msg = this._errorMsg('The chain ID does not match the chain ID of Common');\\n                    throw new Error(msg);\\n                }\\n                // Common provided, chain ID does match\\n                // -> Return provided Common\\n                return common.copy();\\n            }\\n            else {\\n                if (common_1.default.isSupportedChainId(chainIdBN)) {\\n                    // No Common, chain ID supported by Common\\n                    // -> Instantiate Common with chain ID\\n                    return new common_1.default({ chain: chainIdBN, hardfork: this.DEFAULT_HARDFORK });\\n                }\\n                else {\\n                    // No Common, chain ID not supported by Common\\n                    // -> Instantiate custom Common derived from DEFAULT_CHAIN\\n                    return common_1.default.forCustomChain(this.DEFAULT_CHAIN, {\\n                        name: 'custom-chain',\\n                        networkId: chainIdBN,\\n                        chainId: chainIdBN,\\n                    }, this.DEFAULT_HARDFORK);\\n                }\\n            }\\n        }\\n        else {\\n            // No chain ID provided\\n            // -> return Common provided or create new default Common\\n            return ((_a = common === null || common === void 0 ? void 0 : common.copy()) !== null && _a !== void 0 ? _a : new common_1.default({ chain: this.DEFAULT_CHAIN, hardfork: this.DEFAULT_HARDFORK }));\\n        }\\n    };\\n    /**\\n     * Validates that an object with BN values cannot exceed the specified bit limit.\\n     * @param values Object containing string keys and BN values\\n     * @param bits Number of bits to check (64 or 256)\\n     * @param cannotEqual Pass true if the number also cannot equal one less the maximum value\\n     */\\n    BaseTransaction.prototype._validateCannotExceedMaxInteger = function (values, bits, cannotEqual) {\\n        var e_1, _a;\\n        if (bits === void 0) { bits = 256; }\\n        if (cannotEqual === void 0) { cannotEqual = false; }\\n        try {\\n            for (var _b = __values(Object.entries(values)), _c = _b.next(); !_c.done; _c = _b.next()) {\\n                var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\\n                switch (bits) {\\n                    case 64:\\n                        if (cannotEqual) {\\n                            if (value === null || value === void 0 ? void 0 : value.gte(ethereumjs_util_1.MAX_UINT64)) {\\n                                var msg = this._errorMsg(\\\"\\\".concat(key, \\\" cannot equal or exceed MAX_UINT64 (2^64-1), given \\\").concat(value));\\n                                throw new Error(msg);\\n                            }\\n                        }\\n                        else {\\n                            if (value === null || value === void 0 ? void 0 : value.gt(ethereumjs_util_1.MAX_UINT64)) {\\n                                var msg = this._errorMsg(\\\"\\\".concat(key, \\\" cannot exceed MAX_UINT64 (2^64-1), given \\\").concat(value));\\n                                throw new Error(msg);\\n                            }\\n                        }\\n                        break;\\n                    case 256:\\n                        if (cannotEqual) {\\n                            if (value === null || value === void 0 ? void 0 : value.gte(ethereumjs_util_1.MAX_INTEGER)) {\\n                                var msg = this._errorMsg(\\\"\\\".concat(key, \\\" cannot equal or exceed MAX_INTEGER (2^256-1), given \\\").concat(value));\\n                                throw new Error(msg);\\n                            }\\n                        }\\n                        else {\\n                            if (value === null || value === void 0 ? void 0 : value.gt(ethereumjs_util_1.MAX_INTEGER)) {\\n                                var msg = this._errorMsg(\\\"\\\".concat(key, \\\" cannot exceed MAX_INTEGER (2^256-1), given \\\").concat(value));\\n                                throw new Error(msg);\\n                            }\\n                        }\\n                        break;\\n                    default: {\\n                        var msg = this._errorMsg('unimplemented bits value');\\n                        throw new Error(msg);\\n                    }\\n                }\\n            }\\n        }\\n        catch (e_1_1) { e_1 = { error: e_1_1 }; }\\n        finally {\\n            try {\\n                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\\n            }\\n            finally { if (e_1) throw e_1.error; }\\n        }\\n    };\\n    /**\\n     * Returns the shared error postfix part for _error() method\\n     * tx type implementations.\\n     */\\n    BaseTransaction.prototype._getSharedErrorPostfix = function () {\\n        var hash = '';\\n        try {\\n            hash = this.isSigned() ? (0, ethereumjs_util_1.bufferToHex)(this.hash()) : 'not available (unsigned)';\\n        }\\n        catch (e) {\\n            hash = 'error';\\n        }\\n        var isSigned = '';\\n        try {\\n            isSigned = this.isSigned().toString();\\n        }\\n        catch (e) {\\n            hash = 'error';\\n        }\\n        var hf = '';\\n        try {\\n            hf = this.common.hardfork();\\n        }\\n        catch (e) {\\n            hf = 'error';\\n        }\\n        var postfix = \\\"tx type=\\\".concat(this.type, \\\" hash=\\\").concat(hash, \\\" nonce=\\\").concat(this.nonce, \\\" value=\\\").concat(this.value, \\\" \\\");\\n        postfix += \\\"signed=\\\".concat(isSigned, \\\" hf=\\\").concat(hf);\\n        return postfix;\\n    };\\n    return BaseTransaction;\\n}());\\nexports.BaseTransaction = BaseTransaction;\\n//# sourceMappingURL=baseTransaction.js.map\\n};\"],\n\"names\":[\"shadow$provide\",\"global\",\"require\",\"module\",\"exports\",\"__createBinding\",\"Object\",\"create\",\"o\",\"m\",\"k\",\"k2\",\"undefined\",\"defineProperty\",\"enumerable\",\"get\",\"__setModuleDefault\",\"v\",\"value\",\"__importStar\",\"mod\",\"__esModule\",\"result\",\"prototype\",\"hasOwnProperty\",\"call\",\"__values\",\"s\",\"Symbol\",\"iterator\",\"i\",\"length\",\"next\",\"done\",\"TypeError\",\"__read\",\"n\",\"r\",\"ar\",\"push\",\"error\",\"e\",\"BaseTransaction\",\"common_1\",\"ethereumjs_util_1\",\"types_1\",\"txData\",\"cache\",\"hash\",\"dataFee\",\"activeCapabilities\",\"DEFAULT_CHAIN\",\"Chain\",\"Mainnet\",\"DEFAULT_HARDFORK\",\"Hardfork\",\"Istanbul\",\"nonce\",\"gasLimit\",\"to\",\"data\",\"_type\",\"toNumber\",\"BN\",\"toBuffer\",\"type\",\"toB\",\"vB\",\"rB\",\"sB\",\"Address\",\"_validateCannotExceedMaxInteger\",\"configurable\",\"supports\",\"BaseTransaction.prototype.supports\",\"capability\",\"includes\",\"validate\",\"BaseTransaction.prototype.validate\",\"stringError\",\"errors\",\"getBaseFee\",\"gt\",\"concat\",\"isSigned\",\"verifySignature\",\"BaseTransaction.prototype.getBaseFee\",\"fee\",\"getDataFee\",\"addn\",\"common\",\"param\",\"gteHardfork\",\"toCreationAddress\",\"iaddn\",\"BaseTransaction.prototype.getDataFee\",\"txDataZero\",\"txDataNonZero\",\"cost\",\"BaseTransaction.prototype.toCreationAddress\",\"buf\",\"BaseTransaction.prototype.isSigned\",\"_a\",\"BaseTransaction.prototype.verifySignature\",\"publicKey\",\"getSenderPublicKey\",\"unpadBuffer\",\"getSenderAddress\",\"BaseTransaction.prototype.getSenderAddress\",\"publicToAddress\",\"sign\",\"BaseTransaction.prototype.sign\",\"privateKey\",\"msg\",\"_errorMsg\",\"Error\",\"hackApplied\",\"Capability\",\"EIP155ReplayProtection\",\"msgHash\",\"getMessageToSign\",\"ecsign\",\"tx\",\"_processSignature\",\"index\",\"indexOf\",\"splice\",\"_getCommon\",\"BaseTransaction.prototype._getCommon\",\"chainId\",\"chainIdBN\",\"eq\",\"copy\",\"default\",\"isSupportedChainId\",\"chain\",\"hardfork\",\"forCustomChain\",\"name\",\"networkId\",\"BaseTransaction.prototype._validateCannotExceedMaxInteger\",\"values\",\"bits\",\"cannotEqual\",\"_b\",\"entries\",\"_c\",\"_d\",\"key\",\"gte\",\"MAX_UINT64\",\"MAX_INTEGER\",\"e_1_1\",\"e_1\",\"return\",\"_getSharedErrorPostfix\",\"BaseTransaction.prototype._getSharedErrorPostfix\",\"bufferToHex\",\"toString\",\"hf\",\"postfix\"]\n}\n"]