forked from vminkov/veXYZ
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
72 lines (67 loc) · 1.79 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
62
63
64
65
66
67
68
69
70
71
72
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import { config as dotEnvConfig } from "dotenv";
import "hardhat-abi-exporter";
import "hardhat-deploy";
import { HardhatUserConfig } from "hardhat/types/config";
import "./tasks";
dotEnvConfig();
const OVERRIDE_RPC_URL = process.env.OVERRIDE_RPC_URL || process.env.ETH_PROVIDER_URL; // Deprecated: ETH_PROVIDER_URL
const mnemonic = process.env.MNEMONIC || "test test test test test test test test test test test junk";
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.13",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
paths: {
sources: "./none",
artifacts: "./out"
},
namedAccounts: {
deployer: { default: 0 },
alice: { default: 1 },
bob: { default: 2 },
rando: { default: 3 }
},
networks: {
// This is the unchangeable default network which is started with `hardhat node`
hardhat: {
accounts: { mnemonic },
allowUnlimitedContractSize: true,
chainId: 1337,
gas: 25e6,
gasPrice: 20e10
},
arbitrum: {
url: OVERRIDE_RPC_URL || `https://arb1.arbitrum.io/rpc`,
accounts: { mnemonic },
chainId: 42161
},
chapel: {
accounts: { mnemonic },
chainId: 97,
url: OVERRIDE_RPC_URL || "https://data-seed-prebsc-1-s1.binance.org:8545/"
},
mumbai: {
accounts: { mnemonic },
chainId: 80001,
url: OVERRIDE_RPC_URL || "https://rpc.ankr.com/polygon_mumbai"
},
arbigoerli: {
accounts: { mnemonic },
chainId: 421613,
url: OVERRIDE_RPC_URL || "https://endpoints.omniatech.io/v1/arbitrum/goerli/public"
}
}
};
export default config;