forked from blocktrail/blocktrail-sdk-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
34 lines (27 loc) · 1.27 KB
/
main.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
var APIClient = require('./lib/api_client');
var blocktrail = require('./lib/blocktrail');
Object.keys(blocktrail).forEach(function(key) {
APIClient[key] = blocktrail[key];
});
/*
* we used APIClient as base export so that people can client require('blocktrail')
* but that's deprecated and they should require('blocktrail').BlocktrailSDK now, but leaving it for now
*/
APIClient.BlocktrailSDK = APIClient;
APIClient.Wallet = require('./lib/wallet');
APIClient.BackupGenerator = require('./lib/backup_generator');
APIClient.Request = require('./lib/request');
APIClient.WalletSweeper = require('./lib/wallet_sweeper');
APIClient.UnspentOutputFinder = require('./lib/unspent_output_finder');
// data service providers, for wallet recovery
APIClient.BlocktrailBitcoinService = require('./lib/services/blocktrail_bitcoin_service');
APIClient.InsightBitcoinService = require('./lib/services/insight_bitcoin_service');
// expose these for using in the browser
APIClient.randomBytes = require('randombytes');
APIClient.lodash = require('lodash');
APIClient.CryptoJS = require('crypto-js');
APIClient.debug = require('debug');
APIClient.bip39 = require('bip39');
APIClient.bitcoin = require('bitcoinjs-lib');
APIClient.superagent = require('superagent');
exports = module.exports = APIClient;