-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhardhat.config.ts
47 lines (43 loc) · 1.05 KB
/
hardhat.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
36
37
38
39
40
41
42
43
44
45
46
47
// TODO: update to ethers v6+@nomicfoundation once tenderly supports it
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import { config } from "@astrolabs/hardhat/dist/hardhat.config";
config.solidity!.compilers = [
{
version: "0.8.25",
settings: {
optimizer: {
enabled: true,
runs: 1000,
details: {
peephole: true,
jumpdestRemover: true,
orderLiterals: true,
deduplicate: true,
cse: true,
constantOptimizer: true,
yul: true,
yulDetails: {
stackAllocation: false,
optimizerSteps: "dhfoDgvulfnTUtnIf"
}
}
},
viaIR: false,
evmVersion: `paris`
},
},
];
config.paths = {
// registry
interfaces: "../registry/interfaces",
abis: "../registry/abis",
registry: "../registry",
// tmp build files
artifacts: "./artifacts",
cache: "./cache",
// local sources
sources: "./contracts",
tests: "./test/integration",
} as any;
export default config;