mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Config XmrTxProofParser in guice module
This commit is contained in:
parent
d725590a9c
commit
6c333857e9
@ -26,6 +26,8 @@ import bisq.core.trade.failed.FailedTradesManager;
|
|||||||
import bisq.core.trade.statistics.ReferralIdService;
|
import bisq.core.trade.statistics.ReferralIdService;
|
||||||
import bisq.core.trade.statistics.TradeStatistics2StorageService;
|
import bisq.core.trade.statistics.TradeStatistics2StorageService;
|
||||||
import bisq.core.trade.statistics.TradeStatisticsManager;
|
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.app.AppModule;
|
||||||
import bisq.common.config.Config;
|
import bisq.common.config.Config;
|
||||||
@ -55,6 +57,7 @@ public class TradeModule extends AppModule {
|
|||||||
bind(SignedWitnessService.class).in(Singleton.class);
|
bind(SignedWitnessService.class).in(Singleton.class);
|
||||||
bind(SignedWitnessStorageService.class).in(Singleton.class);
|
bind(SignedWitnessStorageService.class).in(Singleton.class);
|
||||||
bind(ReferralIdService.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_STATISTICS)).to(config.dumpStatistics);
|
||||||
bindConstant().annotatedWith(named(DUMP_DELAYED_PAYOUT_TXS)).to(config.dumpDelayedPayoutTxs);
|
bindConstant().annotatedWith(named(DUMP_DELAYED_PAYOUT_TXS)).to(config.dumpDelayedPayoutTxs);
|
||||||
bindConstant().annotatedWith(named(ALLOW_FAULTY_DELAYED_TXS)).to(config.allowFaultyDelayedTxs);
|
bindConstant().annotatedWith(named(ALLOW_FAULTY_DELAYED_TXS)).to(config.allowFaultyDelayedTxs);
|
||||||
|
@ -30,13 +30,17 @@ import com.google.gson.JsonObject;
|
|||||||
import com.google.gson.JsonParseException;
|
import com.google.gson.JsonParseException;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
import javax.inject.Singleton;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@Singleton
|
||||||
|
public
|
||||||
class XmrTxProofParser implements AssetTxProofParser<XmrTxProofModel, XmrTxProofRequest.Result> {
|
class XmrTxProofParser implements AssetTxProofParser<XmrTxProofModel, XmrTxProofRequest.Result> {
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public XmrTxProofParser() {
|
public XmrTxProofParser() {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user