Transaction: remove TxIn/TxOut exports

This commit is contained in:
Daniel Cousens 2014-05-16 17:12:39 +10:00
parent b0317be4d5
commit 8b5647b0b9
6 changed files with 6 additions and 12 deletions

View file

@ -15,9 +15,7 @@ module.exports = {
HDNode: require('./hdnode'),
Script: require('./script'),
scripts: require('./scripts'),
Transaction: T.Transaction,
TransactionIn: T.TransactionIn,
TransactionOut: T.TransactionOut,
Transaction: require('./transaction'),
networks: require('./networks'),
Wallet: require('./wallet')
}

View file

@ -416,8 +416,4 @@ TransactionOut.prototype.clone = function() {
})
}
module.exports = {
Transaction: Transaction,
TransactionIn: TransactionIn,
TransactionOut: TransactionOut
}
module.exports = Transaction

View file

@ -4,7 +4,7 @@ var rng = require('secure-random')
var Address = require('./address')
var HDNode = require('./hdnode')
var Transaction = require('./transaction').Transaction
var Transaction = require('./transaction')
function Wallet(seed, network) {
network = network || networks.bitcoin

View file

@ -6,7 +6,7 @@ var networks = require('../src/networks')
var Address = require('../src/address')
var BigInteger = require('bigi')
var ECKey = require('../src/eckey')
var Transaction = require('../src/transaction').Transaction
var Transaction = require('../src/transaction')
var Script = require('../src/script')
var base58_encode_decode = require("./fixtures/core/base58_encode_decode.json")

View file

@ -4,7 +4,7 @@ var scripts = require('../src/scripts')
var Address = require('../src/address')
var ECKey = require('../src/eckey')
var Transaction = require('../src/transaction').Transaction
var Transaction = require('../src/transaction')
var Script = require('../src/script')
var fixtureTxes = require('./fixtures/mainnet_tx')

View file

@ -6,7 +6,7 @@ var scripts = require('../src/scripts')
var Address = require('../src/address')
var HDNode = require('../src/hdnode')
var Transaction = require('../src/transaction').Transaction
var Transaction = require('../src/transaction')
var Wallet = require('../src/wallet')
var fixtureTxes = require('./fixtures/mainnet_tx')