UNPKG

harsta

Version:

Harsta is a contract development tool based on Hardhat, designed to streamline the development, testing, and referencing of contracts, addresses, ABIs, and contract instances.

2 lines (1 loc) 1.08 kB
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkXZ56D4IIjs = require('./chunk-XZ56D4II.js');var _configresolution = require('hardhat/internal/core/config/config-resolution');var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);var _consola = require('consola'); var _consola2 = _interopRequireDefault(_consola);var _jiti = require('jiti');function a(p){let{name:g,cwd:m}=p,o=_pathe.resolve.call(void 0, m,`${g}.config.ts`),t={};try{t=_jiti.createJiti.call(void 0, __dirname,{interopDefault:!0})(o)}catch(e){_consola2.default.log(e),_consola2.default.debug(`Failed to load config file: ${o}`)}return{config:t,configFile:o}}var r=a({name:"harsta",cwd:_chunkXZ56D4IIjs.a}).config,u= exports.b =_chunkXZ56D4IIjs.h.call(void 0, r),R= exports.c =_configresolution.resolveConfig.call(void 0, _pathe2.default.resolve(_chunkXZ56D4IIjs.d,"hardhat.config.js"),u);r.networks||(r.networks={});exports.a = r; exports.b = u; exports.c = R;