-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
73 lines (68 loc) · 2.65 KB
/
index.js
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
const Controller = require('./src/controllers/Controller');
const Service = require('./src/services/Service');
const BasicMainService = require('./src/services/BasicMain');
const MongoDBService = require('./src/services/MongoDB');
const ConnectorService = require('./src/services/Connector');
const BlockSubscribe = require('./src/services/BlockSubscribe');
const ForkManager = require('./src/services/ForkManager');
const UtilsLogger = require('./src/utils/Logger');
const UtilsMoments = require('./src/utils/Moments');
const UtilsTemplate = require('./src/utils/Template');
const UtilsRpcObject = require('./src/utils/RpcObject');
const UtilsContent = require('./src/utils/Content');
const utilsDefaultStarter = require('./src/utils/defaultStarter');
const UtilsGateClient = require('./src/utils/GateClient');
const UtilsGenesisProcessor = require('./src/utils/GenesisProcessor');
const UtilsParallel = require('./src/utils/Parallel');
const UtilsBulkSaver = require('./src/utils/BulkSaver');
const UtilsUserRegister = require('./src/utils/UserRegister');
const utilsMetrics = require('./src/utils/metrics');
const UtilsParallelPool = require('./src/utils/ParallelPool');
const utilsWaitForTransaction = require('./src/utils/waitForTransaction');
const UtilsCyberWayClient = require('./src/utils/CyberWayClient');
const { sendAlert } = require('./src/utils/alerts');
const TypesBigNum = require('./src/types/BigNum');
const TypesMongoBigNum = require('./src/types/MongoBigNum');
const dataEnv = require('./src/data/env');
const globalData = require('./src/data/data');
// Export public classes
module.exports = {
controllers: {
Controller,
Basic: Controller, // For backward compatibility
},
services: {
Service,
Basic: Service, // For backward compatibility
BasicMain: BasicMainService,
BlockSubscribe,
ForkManager,
MongoDB: MongoDBService,
Connector: ConnectorService,
},
utils: {
Logger: UtilsLogger,
Moments: UtilsMoments,
Template: UtilsTemplate,
RpcObject: UtilsRpcObject,
Parallel: UtilsParallel,
ParallelPool: UtilsParallelPool,
BulkSaver: UtilsBulkSaver,
Content: UtilsContent,
defaultStarter: utilsDefaultStarter,
GateClient: UtilsGateClient,
GenesisProcessor: UtilsGenesisProcessor,
metrics: utilsMetrics,
UserRegister: UtilsUserRegister,
waitForTransaction: utilsWaitForTransaction,
CyberWayClient: UtilsCyberWayClient,
sendAlert,
},
types: {
BigNum: TypesBigNum,
MongoBigNum: TypesMongoBigNum,
},
data: {
env: dataEnv,
},
};