-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
69 lines (63 loc) · 1.48 KB
/
Copy pathhardhat.config.ts
File metadata and controls
69 lines (63 loc) · 1.48 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
"use client"
import { config as dotEnvConfig } from "dotenv";
dotEnvConfig();
import type { HardhatUserConfig } from 'hardhat/config';
const GOERLI_RPC_URL =
process.env.NEXT_PUBLIC_GOERLI_RPC_URL as string;
const OPGOERLI_RPC_URL =
process.env.NEXT_PUBLIC_OPGOERLI_RPC_URL as string;
const PRIVATE_KEY = process.env.NEXT_PUBLIC_PRIVATE_KEY as string;
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY as string;
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 31337,
allowUnlimitedContractSize: true,
},
localhost: {
chainId: 31337,
allowUnlimitedContractSize: true,
},
goerli: {
url: GOERLI_RPC_URL,
accounts: [PRIVATE_KEY],
gasPrice: 225000000000,
chainId: 5,
},
scroll_sepolia_testnet: {
url: "https://rpc.ankr.com/scroll_sepolia_testnet",
gasPrice: 1000000000,
accounts: [PRIVATE_KEY],
chainId: 534351,
},
OpGoerli: {
url: OPGOERLI_RPC_URL,
accounts: [PRIVATE_KEY],
gasPrice: 225000000000,
chainId: 420,
}
},
solidity: {
version: '0.8.19',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
//@ts-ignore
etherscan: {
apiKey: {
goerli: ETHERSCAN_API_KEY,
},
},
//@ts-ignore
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
},
},
};
export default config;