mirror of
https://github.com/luxfi/uma.git
synced 2026-07-26 21:09:10 +00:00
* 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>
17 lines
542 B
JavaScript
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);
|