-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
52 lines (49 loc) · 1.21 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
import 'dotenv/config';
import { HardhatUserConfig } from 'hardhat/config';
import 'hardhat-deploy';
import '@nomicfoundation/hardhat-toolbox';
const PRIVATE_KEY = process.env.PRIVATE_KEY || '';
const DEFAULT_MNEMONIC = 'test test test test test test test test test test test junk';
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.8.21',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: 'paris',
},
},
],
},
networks: {
hardhat: {
accounts: {
count: 11,
},
},
ronin: {
chainId: 2020,
url: 'https://api.roninchain.com/rpc',
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : { mnemonic: DEFAULT_MNEMONIC },
},
saigon: {
chainId: 2021,
url: 'https://saigon-testnet.roninchain.com/rpc',
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : { mnemonic: DEFAULT_MNEMONIC },
},
},
namedAccounts: {
deployer: 0,
},
gasReporter: {
excludeContracts: ['MockERC20', 'MockERC721', 'ERC20', 'ERC721', 'MockAtiaShrine', 'MockWRON', 'ERC1155'],
gasPrice: 20,
enabled: true,
token: 'RON',
},
};
export default config;