forked from web3space/web3t
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (25 loc) · 714 Bytes
/
index.js
File metadata and controls
25 lines (25 loc) · 714 Bytes
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
// Generated by LiveScript 1.6.0
(function(){
var loadProviders, loadCoins, buildApi;
loadProviders = require('./load-providers.js');
loadCoins = require('./load-coins.js');
buildApi = require('./build-api.js');
module.exports = function(config, cb){
return loadCoins(config, function(err, coins){
if (err != null) {
return cb(err);
}
return loadProviders(config, function(err, providers){
if (err != null) {
return cb(err);
}
return buildApi(coins, providers, config, function(err, api){
if (err != null) {
return cb(err);
}
return cb(null, api);
});
});
});
};
}).call(this);