-
Notifications
You must be signed in to change notification settings - Fork 1
/
tritiumClient.js
27 lines (24 loc) · 994 Bytes
/
tritiumClient.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
const axios = require('axios');
const Assets = require('./api/assets');
const Finance = require('./api/finance');
const Ledger = require('./api/ledger');
const Names = require('./api/names');
const Objects = require('./api/objects');
const Supply = require('./api/supply');
const System = require('./api/system');
const Tokens = require('./api/tokens');
const Users = require('./api/users');
class TritiumClient {
constructor(connectionDetails) {
this.assets = new Assets(connectionDetails, axios);
this.finance = new Finance(connectionDetails, axios);
this.ledger = new Ledger(connectionDetails, axios);
this.names = new Names(connectionDetails, axios);
this.objects = new Objects(connectionDetails, axios);
this.supply = new Supply(connectionDetails, axios);
this.system = new System(connectionDetails, axios);
this.tokens = new Tokens(connectionDetails, axios);
this.users = new Users(connectionDetails, axios);
}
}
module.exports = TritiumClient;