-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
96 lines (94 loc) · 3 KB
/
hardhat.config.ts
File metadata and controls
96 lines (94 loc) · 3 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import * as dotenv from 'dotenv';
dotenv.config();
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
require('@openzeppelin/hardhat-upgrades');
const config: HardhatUserConfig = {
networks: {
hardhat: {
accounts: { count: 20 },
chainId: 31337,
},
bscTestnet: {
url: 'https://data-seed-prebsc-1-s1.binance.org:8545/',
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
},
sepolia: {
url: `https://ethereum-sepolia.blockpi.network/v1/rpc/public`,
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
},
goerli: {
url: `https://goerli.blockpi.network/v1/rpc/public`,
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
},
mainnet: {
url: 'https://bsc-dataseed1.ninicoin.io',
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
},
mumbai: {
url: 'https://polygon-mumbai.blockpi.network/v1/rpc/public ',
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
chainId: 80001,
},
cvcTestnet: {
url: 'https://rpc-kura.cross.technology',
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
},
scroll_alpha: {
url: 'https://alpha-rpc.scroll.io/l2',
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
},
xdcTestnet: {
url: 'https://apothem.xdcrpc.com',
accounts: [process.env.DEPLOY_ACCOUNT_1!, process.env.DEPLOY_ACCOUNT_2!, process.env.DEPLOY_ACCOUNT_3!, process.env.DEPLOY_ACCOUNT_4!],
},
},
etherscan: {
apiKey: {
sepolia: `${process.env.ETHERSCAN_API_KEY}`,
bscTestnet: `${process.env.BINANCE_API_KEY}`,
mumbai: `${process.env.MUMBAI_API_KEY}`,
},
},
solidity: {
compilers: [
{
version: '0.8.16',
settings: {
optimizer: {
enabled: true,
runs: 200,
details: { yul: true },
},
},
},
{
version: '0.7.5',
settings: {
optimizer: {
enabled: true,
runs: 200,
details: { yul: true },
},
},
},
{
version: '0.8.10',
settings: {
optimizer: {
enabled: true,
runs: 200,
details: { yul: true },
},
},
},
],
},
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
},
};
export default config;