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) 584 B
import{a as n,d as i,h as f}from"./chunk-TR4UKZXN.mjs";import{resolveConfig as l}from"hardhat/internal/core/config/config-resolution";import C from"pathe";import s from"consola";import{createJiti as c}from"jiti";import{resolve as d}from"pathe";function a(p){let{name:g,cwd:m}=p,o=d(m,`${g}.config.ts`),t={};try{t=c(__dirname,{interopDefault:!0})(o)}catch(e){s.log(e),s.debug(`Failed to load config file: ${o}`)}return{config:t,configFile:o}}var r=a({name:"harsta",cwd:n}).config,u=f(r),R=l(C.resolve(i,"hardhat.config.js"),u);r.networks||(r.networks={});export{r as a,u as b,R as c};