-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhardhat.config.ts
57 lines (53 loc) · 1.56 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
54
55
56
57
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-ignition-ethers";
import "@nomicfoundation/hardhat-ethers";
import "@nomicfoundation/hardhat-ignition-ethers";
import "@typechain/hardhat";
import * as dotenv from "dotenv";
import type { HardhatUserConfig } from "hardhat/config";
// Typescript cannot be compiled before running `npx hardhat compile`
// Should be uncommented after running `npx hardhat compile`
// // Basic
// import "./tasks/basic/create-wallet";
//
// // Currency Tasks
// import "./tasks/currency/info";
// import "./tasks/currency/mint-wallet";
// import "./tasks/currency/deploy-currency";
//
// // Core Tasks
// import "./tasks/uniswap/pair/get-reserves";
// import "./tasks/uniswap/pair/mint";
// import "./tasks/uniswap/pair/burn";
// import "./tasks/uniswap/pair/swap";
// import "./tasks/uniswap/factory/get-pair";
// import "./tasks/uniswap/factory/create-pair";
// import "./tasks/uniswap/factory/deploy-factory";
//
// // Demo Tasks
// import "./tasks/uniswap/demo-router";
// import "./tasks/uniswap/demo-router-sync";
dotenv.config();
const config: HardhatUserConfig = {
ignition: {
requiredConfirmations: 1,
},
defaultNetwork: "nil",
solidity: {
version: "0.8.26", // 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] : [],
},
},
};
export default config;