-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
68 lines (64 loc) · 1.41 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import '@nomicfoundation/hardhat-toolbox';
import { HardhatUserConfig } from 'hardhat/config';
import 'dotenv/config';
const { WALLET_PRIVATE_KEY } = process.env;
const bellecourBase = {
chainId: 134,
gasPrice: 0,
blockGasLimit: 6_700_000,
hardfork: 'berlin',
};
const config: HardhatUserConfig = {
networks: {
hardhat: {
...bellecourBase,
forking: {
enabled: true,
url: 'https://bellecour.iex.ec',
},
},
bellecour: {
...bellecourBase,
url: 'https://bellecour.iex.ec',
accounts: WALLET_PRIVATE_KEY ? [WALLET_PRIVATE_KEY] : [],
},
// poco-chain native config
'dev-native': {
chainId: 65535,
url: process.env.RPC_URL ?? 'http://localhost:8545',
accounts: WALLET_PRIVATE_KEY ? [WALLET_PRIVATE_KEY] : [],
gasPrice: 0,
},
},
//to verify contract on Blockscout
etherscan: {
apiKey: {
bellecour: 'abc',
},
customChains: [
{
network: 'bellecour',
chainId: 134,
urls: {
apiURL: 'https://blockscout-v6.bellecour.iex.ec/api',
browserURL: 'https://blockscout-v6.bellecour.iex.ec',
},
},
],
},
//to generate gas report
gasReporter: {
enabled: true,
src: 'contracts',
},
solidity: {
version: '0.8.19',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};
export default config;