-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.base.config.ts
More file actions
105 lines (104 loc) · 3.38 KB
/
hardhat.base.config.ts
File metadata and controls
105 lines (104 loc) · 3.38 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
97
98
99
100
101
102
103
104
105
const path = require('path');
const config = require('dotenv').config({ path: path.resolve(__dirname, '.env') });
const { ETHERSCAN_API_KEY, BSCSCAN_API_KEY, POLYGONSCAN_API_KEY, MNEMONIC, DEPLOY_GAS_LIMIT_MAX, DEPLOY_GAS_PRICE, INFURA_ID_PROJECT } =
config.parsed || {};
export default {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
loggingEnabled: false,
evm: 'paris',
},
localHardhat: {
url: `http://127.0.0.1:8545`,
accounts: ['0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'],
},
localGeth: {
url: `http://127.0.0.1:8545`,
chainId: 1337,
gas: 10000000,
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_ID_PROJECT}`,
},
ropsten: {
url: `https://ropsten.infura.io/v3/${INFURA_ID_PROJECT}`,
chainId: 3,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_ID_PROJECT}`,
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_ID_PROJECT}`,
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_ID_PROJECT}`,
chainId: 42,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
gasPrice: 8000000000,
},
bscTestnet: {
url: `https://data-seed-prebsc-2-s3.binance.org:8545`,
chainId: 97,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
bsc: {
url: `https://bsc-dataseed3.binance.org`,
},
mumbai: {
url: `https://polygon-mumbai-bor.publicnode.com`,
chainId: 80001,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
mantleTestnet: {
url: `https://rpc.testnet.mantle.xyz`,
chainId: 5001,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
mantle: {
url: `https://rpc.mantle.xyz`,
chainId: 5000,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
telosTestnet: {
url: `https://testnet.telos.net/evm`,
chainId: 41,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
maticMainnet: {
url: `https://rpc-mainnet.matic.quiknode.pro`,
chainId: 137,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
gasPrice: 50_000_000_000,
},
artheraTestnet: {
url: `https://rpc-test.arthera.net`,
chainId: 10243,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: `${POLYGONSCAN_API_KEY}`,
customChains: [
{
network: 'mantleTestnet',
chainId: 5001,
urls: {
apiURL: 'https://explorer.testnet.mantle.xyz/api',
browserURL: 'https://explorer.testnet.mantle.xyz/',
},
},
{
network: 'mantle',
chainId: 5000,
urls: {
apiURL: 'https://explorer.mantle.xyz/api',
browserURL: 'https://explorer.mantle.xyz/',
},
},
],
},
};