-
Notifications
You must be signed in to change notification settings - Fork 0
/
buidler.config.ts
35 lines (31 loc) · 890 Bytes
/
buidler.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { usePlugin, task } from "@nomiclabs/buidler/config";
// import { TASK_COMPILE_GET_COMPILER_INPUT } from "@nomiclabs/buidler/builtin-tasks/task-names";
usePlugin("@nomiclabs/buidler-ethers");
const solcVersion = {
major: 0,
minor: 7,
patch: 0,
toString() {
return `${this.major}.${this.minor}.${this.patch}`;
}
}
// Useful to generate bytecode with specific characteristics.
// task(TASK_COMPILE_GET_COMPILER_INPUT).setAction(async (_, __, runSuper) => {
// const input = await runSuper();
// input.settings.metadata.bytecodeHash = "none";
// return input;
// })
module.exports = {
solc: {
version: solcVersion.toString(),
},
paths: {
sources: `contracts/solc-${solcVersion.major}.${solcVersion.minor}`,
artifacts: `artifacts/solc-${solcVersion}`,
},
networks: {
ganacheStandalone: {
url: "http://localhost:9000"
}
},
};