-
Notifications
You must be signed in to change notification settings - Fork 3
/
hardhat.config.ts
38 lines (36 loc) · 1.1 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
import '@nomiclabs/hardhat-web3';
import * as dotenv from 'dotenv';
dotenv.config();
import './tasks/truebit';
const config: HardhatUserConfig = {
defaultNetwork: 'localhost',
networks: {
goerli: {
// ${INFURA_KEY} - must be your API key in process.env
// include your accounts PK
accounts: [`${process.env.ACCOUNT_PRIVATE_KEY1}`, `${process.env.ACCOUNT_PRIVATE_KEY2}`, `${process.env.ACCOUNT_PRIVATE_KEY3}`],
chainId: 5,
url: `https://goerli.infura.io/v3/${process.env.INFURA_KEY}`,
},
mainnet: {
// ${INFURA_KEY} - must be your API key in process.env
// include your accounts PK
accounts: [`${process.env.ACCOUNT_PRIVATE_KEY1}`, `${process.env.ACCOUNT_PRIVATE_KEY2}`, `${process.env.ACCOUNT_PRIVATE_KEY3}`],
chainId: 1,
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
},
},
solidity: {
compilers: [
{
version: '0.5.0',
},
{
version: '0.8.17',
},
],
},
};
export default config;