-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
55 lines (51 loc) · 1.21 KB
/
hardhat.config.ts
File metadata and controls
55 lines (51 loc) · 1.21 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
import type { HardhatUserConfig } from "hardhat/config";
import "dotenv/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomicfoundation/hardhat-viem-assertions";
import hardhatToolboxViem from "@nomicfoundation/hardhat-toolbox-viem";
const accounts = [process.env.PRODUCTION_PRIVATE_KEY].filter((x): x is string => !!x);
const config: HardhatUserConfig = {
plugins: [hardhatToolboxViem],
solidity: {
version: "0.8.23",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
networks: {
hardhatMainnet: {
url: "",
type: "edr-simulated",
chainType: "l1",
},
unique: {
url: "https://ws.unique.network",
chainType: "l1",
type: "http",
chainId: 8880,
accounts,
},
devnode: {
url: "https://rpc.web.uniquenetwork.dev",
chainType: "l1",
type: "http",
chainId: 8882,
accounts,
},
localhost: {
url: "http://127.0.0.1:9699/relay-unique/",
chainId: 8880,
chainType: "l1",
type: "http",
accounts: accounts.length > 0 ? accounts : undefined,
},
},
ignition: {
disableFeeBumping: true,
}
};
export default config;