refactor dir structure.

This commit is contained in:
Christopher Jeffrey 2016-08-23 22:16:52 -07:00
parent 6d1b701c8a
commit 70a806bc5a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
47 changed files with 38 additions and 38 deletions

View File

@ -114,16 +114,16 @@ var global = utils.global;
function Environment() { function Environment() {
this.env = Environment; this.env = Environment;
this.bn = require('bn.js'); this.bn = require('bn.js');
this.utils = require('./utils'); this.utils = require('./utils/utils');
this.locker = require('./locker'); this.locker = require('./utils/locker');
this.reader = require('./reader'); this.reader = require('./utils/reader');
this.writer = require('./writer'); this.writer = require('./utils/writer');
this.ec = require('./ec'); this.ec = require('./crypto/ec');
this.lru = require('./lru'); this.lru = require('./utils/lru');
this.bloom = require('./bloom'); this.bloom = require('./primitives/bloom');
this.rbt = require('./rbt'); this.rbt = require('./db/rbt');
this.lowlevelup = require('./lowlevelup'); this.lowlevelup = require('./db/lowlevelup');
this.uri = require('./uri'); this.uri = require('./utils/uri');
this.logger = require('./logger'); this.logger = require('./logger');
this.config = require('./config'); this.config = require('./config');
@ -131,47 +131,47 @@ function Environment() {
this.packets = this.protocol.packets; this.packets = this.protocol.packets;
this.network = require('./network'); this.network = require('./network');
this.errors = require('./errors'); this.errors = require('./errors');
this.ldb = require('./ldb'); this.ldb = require('./db/ldb');
this.timedata = require('./timedata'); this.timedata = require('./timedata');
this.script = require('./script'); this.script = require('./primitives/script');
this.opcode = this.script.Opcode; this.opcode = this.script.Opcode;
this.stack = this.script.Stack; this.stack = this.script.Stack;
this.witness = this.script.Witness; this.witness = this.script.Witness;
this.address = require('./address'); this.address = require('./primitives/address');
this.input = require('./input'); this.input = require('./primitives/input');
this.outpoint = this.input.Outpoint; this.outpoint = this.input.Outpoint;
this.output = require('./output'); this.output = require('./primitives/output');
this.coin = require('./coin'); this.coin = require('./primitives/coin');
this.coins = require('./coins'); this.coins = require('./chain/coins');
this.coinview = require('./coinview'); this.coinview = require('./chain/coinview');
this.tx = require('./tx'); this.tx = require('./primitives/tx');
this.mtx = require('./mtx'); this.mtx = require('./primitives/mtx');
this.txdb = require('./txdb'); this.txdb = require('./wallet/txdb');
this.abstractblock = require('./abstractblock'); this.abstractblock = require('./primitives/abstractblock');
this.bip151 = require('./bip151'); this.bip151 = require('./net/bip151');
this.bip150 = require('./bip150'); this.bip150 = require('./net/bip150');
this.bip152 = require('./bip152'); this.bip152 = require('./net/bip152');
this.memblock = require('./memblock'); this.memblock = require('./primitives/memblock');
this.block = require('./block'); this.block = require('./primitives/block');
this.merkleblock = require('./merkleblock'); this.merkleblock = require('./primitives/merkleblock');
this.headers = require('./headers'); this.headers = require('./primitives/headers');
this.fees = require('./fees'); this.fees = require('./fees');
this.node = require('./node'); this.node = require('./node');
this.spvnode = require('./spvnode'); this.spvnode = require('./spvnode');
this.fullnode = require('./fullnode'); this.fullnode = require('./fullnode');
this.chainentry = require('./chainentry'); this.chainentry = require('./chain/chainentry');
this.chaindb = require('./chaindb'); this.chaindb = require('./chain/chaindb');
this.chain = require('./chain'); this.chain = require('./chain/chain');
this.mempool = require('./mempool'); this.mempool = require('./mempool');
this.mempoolentry = this.mempool.MempoolEntry; this.mempoolentry = this.mempool.MempoolEntry;
this.keyring = require('./keyring'); this.keyring = require('./primitives/keyring');
this.hd = require('./hd'); this.hd = require('./primitives/hd');
this.wallet = require('./wallet'); this.wallet = require('./wallet/wallet');
this.account = this.wallet.Account; this.account = this.wallet.Account;
this.walletdb = require('./walletdb'); this.walletdb = require('./wallet/walletdb');
this.path = this.walletdb.Path; this.path = this.walletdb.Path;
this.peer = require('./peer'); this.peer = require('./net/peer');
this.pool = require('./pool'); this.pool = require('./net/pool');
this.miner = require('./miner'); this.miner = require('./miner');
this.minerblock = this.miner.MinerBlock; this.minerblock = this.miner.MinerBlock;
this.http = require('./http'); this.http = require('./http');