forked from BarnBridge/BarnBridge-SmartYieldBonds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts.dotenv
52 lines (47 loc) · 1.47 KB
/
config.ts.dotenv
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
import 'dotenv/config';
import { HardhatUserConfig } from 'hardhat/config';
const config: HardhatUserConfig = {
networks: {
// Needed for `solidity-coverage`
coverage: {
forking: {
url: 'https://eth-mainnet.alchemyapi.io/v2/' + process.env.ALCHEMY,
blockNumber: Number(process.env.BLOCKNUMBER),
},
allowUnlimitedContractSize: true,
url: 'http://localhost:8555',
},
hardhat: {
forking: {
url: 'https://eth-mainnet.alchemyapi.io/v2/' + process.env.ALCHEMY,
blockNumber: Number(process.env.BLOCKNUMBER),
},
},
env_network: {
url: 'https://' + process.env.CHAIN + '.infura.io/v3/' + process.env.INFURA,
chainId: Number(process.env.CHAINID),
accounts: {
mnemonic: process.env.MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 10
},
gas: "auto",
gasPrice: 1000000000, // 1 gwei
gasMultiplier: 1.5
},
// Mainnet
mainnet: {
url: "https://mainnet.infura.io/v3/YOUR-INFURA-KEY",
chainId: 1,
accounts: ["0xaaaa"],
gas: "auto",
gasPrice: 50000000000,
gasMultiplier: 1.5
}
},
etherscan: {
apiKey: process.env.ETHERSCAN,
},
};
export default config;