Add new param BsqBlockChain

This commit is contained in:
Manfred Karrer 2018-02-01 14:13:09 -05:00
parent ee9b133f65
commit 433363b633
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -19,6 +19,7 @@ package io.bisq.gui.main.funds.transactions;
import io.bisq.core.btc.wallet.BsqWalletService;
import io.bisq.core.btc.wallet.BtcWalletService;
import io.bisq.core.dao.blockchain.parse.BsqBlockChain;
import io.bisq.core.trade.Tradable;
import io.bisq.gui.util.BSFormatter;
import org.bitcoinj.core.Transaction;
@ -30,13 +31,15 @@ import java.util.Optional;
public class TransactionListItemFactory {
private final BtcWalletService btcWalletService;
private final BsqWalletService bsqWalletService;
private final BsqBlockChain bsqBlockChain;
private final BSFormatter formatter;
@Inject
TransactionListItemFactory(BtcWalletService btcWalletService, BsqWalletService bsqWalletService,
BSFormatter formatter) {
BsqBlockChain bsqBlockChain, BSFormatter formatter) {
this.btcWalletService = btcWalletService;
this.bsqWalletService = bsqWalletService;
this.bsqBlockChain = bsqBlockChain;
this.formatter = formatter;
}
@ -44,6 +47,6 @@ public class TransactionListItemFactory {
Optional<Tradable> maybeTradable = Optional.ofNullable(tradable)
.map(TransactionAwareTradable::asTradable);
return new TransactionsListItem(transaction, btcWalletService, bsqWalletService, maybeTradable, formatter);
return new TransactionsListItem(transaction, btcWalletService, bsqWalletService, maybeTradable, bsqBlockChain, formatter);
}
}