UNPKG

@dojima-wallet/contract-deployer

Version:

Contracts deployer package for evm and non-evm chains

78 lines (68 loc) 4.33 kB
/* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./lib/index.ts": /*!**********************!*\ !*** ./lib/index.ts ***! \**********************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./utils */ \"./lib/utils/index.ts\"), exports);\n\n\n//# sourceURL=webpack://@dojima-wallet/contract-deployer/./lib/index.ts?"); /***/ }), /***/ "./lib/utils/index.ts": /*!****************************!*\ !*** ./lib/utils/index.ts ***! \****************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.writeFile = exports.readFile = void 0;\nvar fs_1 = __webpack_require__(/*! fs */ \"fs\");\nfunction readFile(filePath) {\n try {\n return (0, fs_1.readFileSync)(filePath).toString();\n }\n catch (error) {\n console.error(\"Error reading file \".concat(filePath, \":\"), error);\n return undefined;\n }\n}\nexports.readFile = readFile;\nfunction writeFile(filePath, content) {\n try {\n (0, fs_1.writeFileSync)(filePath, content);\n }\n catch (error) {\n console.error(\"Error writing to file \".concat(filePath, \":\"), error);\n }\n}\nexports.writeFile = writeFile;\n\n\n//# sourceURL=webpack://@dojima-wallet/contract-deployer/./lib/utils/index.ts?"); /***/ }), /***/ "fs": /*!*********************!*\ !*** external "fs" ***! \*********************/ /***/ ((module) => { module.exports = require("fs"); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("./lib/index.ts"); /******/ module.exports = __webpack_exports__; /******/ /******/ })() ;