-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
67 lines (62 loc) · 1.67 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
import { HardhatUserConfig } from "hardhat/config";
const degen = {
live: true,
url: "https://follower.super-degen-chain.lattice.xyz",
accounts: ["0x26e86e45f6fc45ec6e2ecd128cec80fa1d1505e5507dcd2ae58c3130a7a97b48"],
chainId: 4242,
};
// this is when connecting to a localhost hh instance, it doesn't actually configure the hh network. for this setup stuff in the 'hardhat' key.
const localhost = {
url: "http://localhost:8545/",
accounts: [
"0x044C7963E9A89D4F8B64AB23E02E97B2E00DD57FCB60F316AC69B77135003AEF",
"0x523170AAE57904F24FFE1F61B7E4FF9E9A0CE7557987C2FC034EACB1C267B4AE",
"0x67195c963ff445314e667112ab22f4a7404bad7f9746564eb409b9bb8c6aed32",
],
chainId: 31337,
};
const hardhat = {
initialDate: "1993-11-19",
mining: {
auto: false,
interval: 1000,
},
gasPrice: 0,
initialBaseFeePerGas: 0,
blockGasLimit: 100_000_000,
accounts: [
// from/deployer is default the first address in accounts
{
privateKey: "0x044C7963E9A89D4F8B64AB23E02E97B2E00DD57FCB60F316AC69B77135003AEF",
balance: "100000000000000000000",
},
// user1 in tests
{
privateKey: "0x523170AAE57904F24FFE1F61B7E4FF9E9A0CE7557987C2FC034EACB1C267B4AE",
balance: "100000000000000000000",
},
// user2 in tests
{
privateKey: "0x67195c963ff445314e667112ab22f4a7404bad7f9746564eb409b9bb8c6aed32",
balance: "100000000000000000000",
},
],
};
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
degen,
localhost,
hardhat,
},
solidity: {
version: "0.8.13",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};
export default config;