-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
102 lines (95 loc) · 2.24 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-ethers";
import "@nomicfoundation/hardhat-verify";
import fs from "fs";
let mnemonic = 'inspire school random normal account steel strike shove close album produce cube bounce memory before';
if (fs.existsSync(".mnemonic")) {
mnemonic = fs.readFileSync(".mnemonic").toString().trim();
console.log("did read mnemonic from FS");
}
const config: HardhatUserConfig = {
defaultNetwork: "local",
networks: {
hardhat: {
accounts: {
count: 100,
mnemonic,
accountsBalance: "1000000000000000000000000000"
},
allowUnlimitedContractSize: true,
hardfork: "istanbul",
minGasPrice: 0,
blockGasLimit: 1199511627775
},
local: {
url: "http://127.0.0.1:8540",
accounts: {
count: 100,
mnemonic
},
allowUnlimitedContractSize: true,
hardfork: "istanbul",
minGasPrice: 1000000000
},
alpha3: {
url: "https://alpha3.uniq.domains/rpc",
accounts: {
count: 10,
path: "m/44'/60'/0'/0",
mnemonic
},
allowUnlimitedContractSize: true,
hardfork: "istanbul",
minGasPrice: 1000000000
},
},
solidity: {
version: "0.8.26",
settings: {
optimizer: {
enabled: true,
runs: 200,
details: {
yul: true,
},
},
evmVersion: "istanbul"
},
},
paths: {
artifacts: "./artifacts",
cache: "./cache",
sources: "./contracts",
tests: "./test",
},
typechain: {
target: "ethers-v6",
},
etherscan: {
apiKey: "123",
customChains: [
{
network: "local",
chainId: 777000,
urls: {
apiURL: "http://127.0.0.1:4000/api",
browserURL: "http://127.0.0.1:4000",
},
},
{
network: "alpha3",
chainId: 777017,
urls: {
apiURL: "http://62.171.133.46:4000/api",
browserURL: "http://62.171.133.46:4000",
},
},
],
},
mocha: {
timeout: 60000,
},
};
export default config;