-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
68 lines (65 loc) · 2.14 KB
/
Copy pathhardhat.config.ts
File metadata and controls
68 lines (65 loc) · 2.14 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
require('dotenv').config();
const config: HardhatUserConfig = {
solidity: '0.8.24',
paths: {
sources: './src', // Directory for your Solidity contracts
tests: './test', // Directory for your Hardhat tests
cache: './cache',
artifacts: './artifacts',
},
networks: {
hardhat: {
// You can configure different networks here if needed
},
sepolia: {
accounts: [process.env.SEPOLIA_PRIVATE_KEY ?? ''],
chainId: 11155111,
url: `https://sepolia.infura.io/v3/${process.env.INFURA_ID}`,
},
optimism: {
accounts: [process.env.OPTIMISM_PRIVATE_KEY ?? ''],
chainId: 10,
url: `https://mainnet.optimism.io`,
},
ethereum: {
accounts: [process.env.OPTIMISM_PRIVATE_KEY ?? ''],
chainId: 1,
url: `https://ethereum-rpc.publicnode.com`,
},
arbitrum: {
accounts: [process.env.OPTIMISM_PRIVATE_KEY ?? ''],
chainId: 42161,
url: `https://arb1.arbitrum.io/rpc`,
},
base: {
accounts: [process.env.OPTIMISM_PRIVATE_KEY ?? ''],
chainId: 8453,
url: `https://mainnet.base.org`,
},
polygon: {
accounts: [process.env.OPTIMISM_PRIVATE_KEY ?? ''],
chainId: 137,
url: `https://polygon.api.onfinality.io/public`,
},
amoy: {
accounts: [process.env.OPTIMISM_PRIVATE_KEY ?? ''],
chainId: 80002,
url: `https://rpc-amoy.polygon.technology`,
},
op_sepolia: {
url: 'https://sepolia.optimism.io',
chainId: 11155420,
gasPrice: 8000000000,
gasMultiplier: 2,
accounts: [process.env.SEPOLIA_PRIVATE_KEY ?? ''],
},
optimism_sepolia: {
accounts: [process.env.SEPOLIA_PRIVATE_KEY ?? ''],
chainId: 11155420,
url: `https://sepolia.optimism.io`,
},
},
};
export default config;