-
-
Notifications
You must be signed in to change notification settings - Fork 159
/
Copy pathStores.ts
96 lines (93 loc) · 3.61 KB
/
Stores.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
import ChannelsStore from './ChannelsStore';
import InvoicesStore from './InvoicesStore';
import NodeInfoStore from './NodeInfoStore';
import SettingsStore from './SettingsStore';
import TransactionsStore from './TransactionsStore';
import BalanceStore from './BalanceStore';
import UnitsStore from './UnitsStore';
import PaymentsStore from './PaymentsStore';
import FeeStore from './FeeStore';
import LnurlPayStore from './LnurlPayStore';
import FiatStore from './FiatStore';
import UTXOsStore from './UTXOsStore';
import MessageSignStore from './MessageSignStore';
import ActivityStore from './ActivityStore';
import PosStore from './PosStore';
import ModalStore from './ModalStore';
import NotesStore from './NotesStore';
import SyncStore from './SyncStore';
import LSPStore from './LSPStore';
import LightningAddressStore from './LightningAddressStore';
import ChannelBackupStore from './ChannelBackupStore';
class Stores {
public channelsStore: ChannelsStore;
public invoicesStore: InvoicesStore;
public nodeInfoStore: NodeInfoStore;
public settingsStore: SettingsStore;
public fiatStore: FiatStore;
public transactionsStore: TransactionsStore;
public balanceStore: BalanceStore;
public unitsStore: UnitsStore;
public paymentsStore: PaymentsStore;
public feeStore: FeeStore;
public lnurlPayStore: LnurlPayStore;
public utxosStore: UTXOsStore;
public messageSignStore: MessageSignStore;
public activityStore: ActivityStore;
public posStore: PosStore;
public modalStore: ModalStore;
public notesStore: NotesStore;
public syncStore: SyncStore;
public lspStore: LSPStore;
public lightningAddressStore: LightningAddressStore;
public channelBackupStore: ChannelBackupStore;
constructor() {
this.settingsStore = new SettingsStore();
this.modalStore = new ModalStore();
this.fiatStore = new FiatStore(this.settingsStore);
this.channelsStore = new ChannelsStore(this.settingsStore);
this.nodeInfoStore = new NodeInfoStore(
this.channelsStore,
this.settingsStore
);
this.lspStore = new LSPStore(this.settingsStore, this.channelsStore);
this.lightningAddressStore = new LightningAddressStore(
this.nodeInfoStore,
this.settingsStore
);
this.channelBackupStore = new ChannelBackupStore(
this.nodeInfoStore,
this.settingsStore
);
this.invoicesStore = new InvoicesStore(
this.settingsStore,
this.lspStore,
this.channelsStore
);
this.transactionsStore = new TransactionsStore(this.settingsStore);
this.balanceStore = new BalanceStore(this.settingsStore);
this.unitsStore = new UnitsStore(this.settingsStore, this.fiatStore);
this.paymentsStore = new PaymentsStore(
this.settingsStore,
this.channelsStore
);
this.lnurlPayStore = new LnurlPayStore(
this.settingsStore,
this.nodeInfoStore
);
this.feeStore = new FeeStore(this.settingsStore, this.nodeInfoStore);
this.utxosStore = new UTXOsStore(this.settingsStore);
this.messageSignStore = new MessageSignStore();
this.notesStore = new NotesStore();
this.syncStore = new SyncStore(this.settingsStore);
this.activityStore = new ActivityStore(
this.settingsStore,
this.paymentsStore,
this.invoicesStore,
this.transactionsStore
);
this.posStore = new PosStore(this.settingsStore);
}
}
const stores = new Stores();
export default stores;