forked from OriginTrail/dkg.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
20 lines (17 loc) · 904 Bytes
/
index.js
File metadata and controls
20 lines (17 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// managers
const AssetOperationsManager = require('./managers/asset-operations-manager.js');
const BlockchainOperationsManager = require('./managers/blockchain-operations-manager');
const GraphOperationsManager = require('./managers/graph-operations-manager.js');
const NodeOperationsManager = require('./managers/node-operations-manager.js');
const BaseServiceManager = require('./services/base-service-manager.js');
class DkgClient {
constructor(config) {
const baseServiceManager = new BaseServiceManager(config);
const services = baseServiceManager.getServices();
this.asset = new AssetOperationsManager(config, services);
this.blockchain = new BlockchainOperationsManager(config, services);
this.graph = new GraphOperationsManager(config, services);
this.node = new NodeOperationsManager(config, services);
}
}
module.exports = DkgClient;