-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
43 lines (41 loc) · 1023 Bytes
/
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import 'dotenv/config';
import TESTING_ACCOUNTS from "./data/accounts-testing"
const config: HardhatUserConfig = {
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
defaultNetwork: "local",
networks: {
local: {
url: 'http://localhost:8545',
accounts: [...TESTING_ACCOUNTS.map(account=> account.privKey)],
},
moonbase: {
url: 'https://rpc.api.moonbase.moonbeam.network',
},
moonbeam: {
url: 'https://rpc.api.moonbeam.network',
},
kovan: {
url: `https://kovan.infura.io/v3/${process.env.DEPLOY_INFURA_KEY}`
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.DEPLOY_INFURA_KEY}`
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.DEPLOY_INFURA_KEY}`
},
},
paths: {
artifacts: "./build"
}
};
export default config;