-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
61 lines (58 loc) · 1.62 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require("dotenv").config();
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-dependency-compiler";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomiclabs/hardhat-ethers";
import "hardhat-deploy";
import "@nomiclabs/hardhat-etherscan";
import "solidity-coverage";
import "hardhat-gas-reporter";
import "hardhat-tracer";
const mnemonic = process.env.DEPLOYER_MNEMONIC as string;
const ganacheMnemonic = process.env.GANACHE_MNEMONIC as string;
const config: HardhatUserConfig = {
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
},
},
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: "./contracts",
cache: "./cache_hardhat",
},
dependencyCompiler: {
paths: [
"@equilibria/perennial/contracts/interfaces/IController.sol",
"@equilibria/perennial-oracle/contracts/ChainlinkFeedOracle.sol",
"@equilibria/perennial-vaults/contracts/BalancedVault.sol",
"@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol",
"@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol",
],
},
networks: {
arbitrumGoerli: {
url: process.env.ARBITRUM_GOERLI_API_URL,
accounts: { mnemonic: mnemonic },
},
arbitrum: {
url: process.env.ARBITRUM_API_URL,
accounts: { mnemonic: mnemonic },
},
},
verify: {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY as string,
}
}
};
export default config;