forked from Uniswap/merkle-distributor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
42 lines (41 loc) · 1.03 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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-waffle'
import "./tasks/deployMerkleDistributor";
import { vars } from "hardhat/config";
export default {
solidity: {
compilers: [
{
version: '0.6.11',
settings: {
evmVersion: "istanbul",
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
hardhat: {
settings: {
debug: {
revertStrings: 'debug',
},
},
},
tenderly: {
chainId: vars.has("TENDERLY_CHAIN_ID") ? parseInt(vars.get("TENDERLY_CHAIN_ID")) : 1,
url: vars.has("TENDERLY_RPC_URL") ? vars.get("TENDERLY_RPC_URL") : "",
accounts: vars.has("TENDERLY_PRIVATE_KEY") ? [vars.get("TENDERLY_PRIVATE_KEY")] : [],
},
mainnet: {
url: vars.has("ETH_RPC_URL") ? vars.get("ETH_RPC_URL") : "",
accounts: vars.has("ETH_PRIVATE_KEY") ? [vars.get("ETH_PRIVATE_KEY")] : [],
},
},
}