-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (24 loc) · 1.01 KB
/
index.js
File metadata and controls
30 lines (24 loc) · 1.01 KB
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
'use strict';
var bchLib = {};
// Module information
bchLib.version = 'v' + require('./package.json').version;
// Main bitcoin cash library
bchLib.Address = require('./lib/address');
bchLib.Block = require('./lib/block');
bchLib.BlockHeader = require('./lib/block/blockheader');
bchLib.Defaults = require('./lib/common/defaults');
bchLib.MerkleBlock = require('./lib/block/merkleblock');
bchLib.Networks = require('./lib/networks');
bchLib.Opcode = require('./lib/opcode');
bchLib.Script = require('./lib/script');
bchLib.Transaction = require('./lib/transaction');
bchLib.Unit = require('./lib/unit');
bchLib.URI = require('./lib/uri');
// Internal usage, exposed for testing/advanced tweaking
bchLib.Transaction.sighash = require('./lib/transaction/sighash');
// Inject this library into each of its networks as network.lib.
var bchNetworks = require('@owstack/network-lib').getFiltered({currency: bchLib.Networks.currency});
for (var i = 0; i < bchNetworks.length; i++) {
bchNetworks[i].lib = bchLib;
}
module.exports = bchLib;