-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
46 lines (43 loc) · 1.05 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-conflux";
import 'hardhat-abi-exporter'
import 'solidity-docgen';
import { loadPrivateKey } from './scripts/utils';
import * as dotenv from 'dotenv' // see https://github.com/motdotla/dotenv#how-do-i-use-dotenv-with-import
dotenv.config()
const PRIVATE_KEY = loadPrivateKey();
const config: HardhatUserConfig = {
solidity: "0.8.17",
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
cfxtest: {
url: 'https://test.confluxrpc.com',
accounts: [PRIVATE_KEY],
chainId: 1,
},
cfx: {
url: 'https://main.confluxrpc.com',
accounts: [PRIVATE_KEY],
chainId: 1029,
}
},
abiExporter: {
path: './build/contracts',
runOnCompile: true,
clear: true,
flat: true,
except: [
'AggregatorInterface',
'StablePriceOracle',
'Controllable$',
'INameWrapper$',
'NameResolver$',
],
spacing: 2,
pretty: true,
}
};
export default config;