Config XmrTxProofParser in guice module

This commit is contained in:
chimp1984 2020-09-02 11:18:45 -05:00
parent d725590a9c
commit 6c333857e9
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
2 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,8 @@ import bisq.core.trade.failed.FailedTradesManager;
import bisq.core.trade.statistics.ReferralIdService;
import bisq.core.trade.statistics.TradeStatistics2StorageService;
import bisq.core.trade.statistics.TradeStatisticsManager;
import bisq.core.trade.txproof.AssetTxProofParser;
import bisq.core.trade.txproof.xmr.XmrTxProofParser;
import bisq.common.app.AppModule;
import bisq.common.config.Config;
@ -55,6 +57,7 @@ public class TradeModule extends AppModule {
bind(SignedWitnessService.class).in(Singleton.class);
bind(SignedWitnessStorageService.class).in(Singleton.class);
bind(ReferralIdService.class).in(Singleton.class);
bind(AssetTxProofParser.class).to(XmrTxProofParser.class);
bindConstant().annotatedWith(named(DUMP_STATISTICS)).to(config.dumpStatistics);
bindConstant().annotatedWith(named(DUMP_DELAYED_PAYOUT_TXS)).to(config.dumpDelayedPayoutTxs);
bindConstant().annotatedWith(named(ALLOW_FAULTY_DELAYED_TXS)).to(config.allowFaultyDelayedTxs);

View File

@ -30,13 +30,17 @@ import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.util.concurrent.TimeUnit;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Singleton
public
class XmrTxProofParser implements AssetTxProofParser<XmrTxProofModel, XmrTxProofRequest.Result> {
@Inject
public XmrTxProofParser() {
}