Files
uma/hardhat.config.js
nicholaspaiandGitHub 78d552aeac feat: Add Mainnet deployments for Beacon (L2<>L1) contracts + new hardhat features (#2998)
* WIP

* add SourceGovernor

Signed-off-by: Nick Pai <npai.nyc@gmail.com>

* allow importer to set path

Signed-off-by: Nick Pai <npai.nyc@gmail.com>

* Add chainIds to config

* rename to workingDir

Signed-off-by: Nick Pai <npai.nyc@gmail.com>
2021-05-20 00:07:15 -04:00

17 lines
542 B
JavaScript

// Note: this config is only here as a matter of convenience to allow all hardhat commands that can be run from core
// work at root as well.
const { getHardhatConfig } = require("@uma/common");
const path = require("path");
const coreWkdir = path.dirname(require.resolve("@uma/core/package.json"));
const configOverride = {
paths: {
root: coreWkdir,
sources: `${coreWkdir}/contracts`,
artifacts: `${coreWkdir}/artifacts`,
cache: `${coreWkdir}/cache`,
},
};
module.exports = getHardhatConfig(configOverride, coreWkdir);