-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.ts
53 lines (47 loc) · 1.35 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
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-ignition-ethers";
import "@nomicfoundation/hardhat-ethers";
import "@nomicfoundation/hardhat-ignition-ethers";
import "@typechain/hardhat";
import "@nilfoundation/hardhat-plugin";
import type { NilHardhatUserConfig } from "@nilfoundation/hardhat-plugin";
import * as dotenv from "dotenv";
// Currency Tasks
import "./tasks/currency/info";
import "./tasks/currency/mint-wallet";
// Core Tasks
import "./tasks/core/pair/get-reserves";
import "./tasks/core/pair/mint";
import "./tasks/core/pair/burn";
import "./tasks/core/pair/swap";
import "./tasks/core/factory/get-pair";
import "./tasks/core/factory/create-pair";
// Demo Tasks
import "./tasks/core/demo";
import "./tasks/core/demo-router";
import "./tasks/core/demo-router-sync";
dotenv.config();
const config: NilHardhatUserConfig = {
ignition: {
requiredConfirmations: 1,
},
defaultNetwork: "nil",
solidity: {
version: "0.8.24", // or your desired version
settings: {
viaIR: true, // needed to compile router
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
nil: {
url: process.env.NIL_RPC_ENDPOINT,
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
},
},
walletAddress: process.env.WALLET_ADDR,
};
export default config;